@cimulate/copilot-widget 1.9.1 → 1.9.2

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.
@@ -14,7 +14,7 @@
14
14
  `+E[x].replace(" at new "," at ");return i.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",i.displayName)),H}while(1<=x&&0<=R);break}}}finally{O=!1,Error.prepareStackTrace=l}return(i=i?i.displayName||i.name:"")?te(i):""}function Ie(i){switch(i.tag){case 5:return te(i.type);case 16:return te("Lazy");case 13:return te("Suspense");case 19:return te("SuspenseList");case 0:case 2:case 15:return i=_e(i.type,!1),i;case 11:return i=_e(i.type.render,!1),i;case 1:return i=_e(i.type,!0),i;default:return""}}function Ce(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case K:return"Fragment";case D:return"Portal";case be:return"Profiler";case re:return"StrictMode";case he:return"Suspense";case ue:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case Z:return(i.displayName||"Context")+".Consumer";case $:return(i._context.displayName||"Context")+".Provider";case ce:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Te:return s=i.displayName||null,s!==null?s:Ce(i.type)||"Memo";case Oe:s=i._payload,i=i._init;try{return Ce(i(s))}catch(l){}}return null}function $e(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(s);case 8:return s===re?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function we(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function We(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function pt(i){var s=We(i)?"checked":"value",l=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),h=""+i[s];if(!i.hasOwnProperty(s)&&typeof l!="undefined"&&typeof l.get=="function"&&typeof l.set=="function"){var E=l.get,b=l.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return E.call(this)},set:function(x){h=""+x,b.call(this,x)}}),Object.defineProperty(i,s,{enumerable:l.enumerable}),{getValue:function(){return h},setValue:function(x){h=""+x},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function on(i){i._valueTracker||(i._valueTracker=pt(i))}function qr(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var l=s.getValue(),h="";return i&&(h=We(i)?i.checked?"true":"false":i.value),i=h,i!==l?(s.setValue(i),!0):!1}function Sr(i){if(i=i||(typeof document!="undefined"?document:void 0),typeof i=="undefined")return null;try{return i.activeElement||i.body}catch(s){return i.body}}function Rn(i,s){var l=s.checked;return A({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l!=null?l:i._wrapperState.initialChecked})}function xo(i,s){var l=s.defaultValue==null?"":s.defaultValue,h=s.checked!=null?s.checked:s.defaultChecked;l=we(s.value!=null?s.value:l),i._wrapperState={initialChecked:h,initialValue:l,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Ii(i,s){s=s.checked,s!=null&&C(i,"checked",s,!1)}function ci(i,s){Ii(i,s);var l=we(s.value),h=s.type;if(l!=null)h==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+l):i.value!==""+l&&(i.value=""+l);else if(h==="submit"||h==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?Fe(i,s.type,l):s.hasOwnProperty("defaultValue")&&Fe(i,s.type,we(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function ve(i,s,l){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var h=s.type;if(!(h!=="submit"&&h!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,l||s===i.value||(i.value=s),i.defaultValue=s}l=i.name,l!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,l!==""&&(i.name=l)}function Fe(i,s,l){(s!=="number"||Sr(i.ownerDocument)!==i)&&(l==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+l&&(i.defaultValue=""+l))}var De=Array.isArray;function Qe(i,s,l,h){if(i=i.options,s){s={};for(var E=0;E<l.length;E++)s["$"+l[E]]=!0;for(l=0;l<i.length;l++)E=s.hasOwnProperty("$"+i[l].value),i[l].selected!==E&&(i[l].selected=E),E&&h&&(i[l].defaultSelected=!0)}else{for(l=""+we(l),s=null,E=0;E<i.length;E++){if(i[E].value===l){i[E].selected=!0,h&&(i[E].defaultSelected=!0);return}s!==null||i[E].disabled||(s=i[E])}s!==null&&(s.selected=!0)}}function ft(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return A({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function lt(i,s){var l=s.value;if(l==null){if(l=s.children,s=s.defaultValue,l!=null){if(s!=null)throw Error(n(92));if(De(l)){if(1<l.length)throw Error(n(93));l=l[0]}s=l}s==null&&(s=""),l=s}i._wrapperState={initialValue:we(l)}}function xn(i,s){var l=we(s.value),h=we(s.defaultValue);l!=null&&(l=""+l,l!==i.value&&(i.value=l),s.defaultValue==null&&i.defaultValue!==l&&(i.defaultValue=l)),h!=null&&(i.defaultValue=""+h)}function vt(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function ne(i){switch(i){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 oe(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?ne(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Re,Ve=(function(i){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(s,l,h,E){MSApp.execUnsafeLocalFunction(function(){return i(s,l,h,E)})}:i})(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(Re=Re||document.createElement("div"),Re.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Re.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function Xe(i,s){if(s){var l=i.firstChild;if(l&&l===i.lastChild&&l.nodeType===3){l.nodeValue=s;return}}i.textContent=s}var bt={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},or=["Webkit","ms","Moz","O"];Object.keys(bt).forEach(function(i){or.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),bt[s]=bt[i]})});function sr(i,s,l){return s==null||typeof s=="boolean"||s===""?"":l||typeof s!="number"||s===0||bt.hasOwnProperty(i)&&bt[i]?(""+s).trim():s+"px"}function Ri(i,s){i=i.style;for(var l in s)if(s.hasOwnProperty(l)){var h=l.indexOf("--")===0,E=sr(l,s[l],h);l==="float"&&(l="cssFloat"),h?i.setProperty(l,E):i[l]=E}}var wo=A({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 sn(i,s){if(s){if(wo[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function Yr(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){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 qn=null;function kp(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Pp=null,Ns=null,Os=null;function eS(i){if(i=Au(i)){if(typeof Pp!="function")throw Error(n(280));var s=i.stateNode;s&&(s=zc(s),Pp(i.stateNode,i.type,s))}}function tS(i){Ns?Os?Os.push(i):Os=[i]:Ns=i}function nS(){if(Ns){var i=Ns,s=Os;if(Os=Ns=null,eS(i),s)for(i=0;i<s.length;i++)eS(s[i])}}function rS(i,s){return i(s)}function iS(){}var Np=!1;function oS(i,s,l){if(Np)return i(s,l);Np=!0;try{return rS(i,s,l)}finally{Np=!1,(Ns!==null||Os!==null)&&(iS(),nS())}}function ou(i,s){var l=i.stateNode;if(l===null)return null;var h=zc(l);if(h===null)return null;l=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(l&&typeof l!="function")throw Error(n(231,s,typeof l));return l}var Op=!1;if(c)try{var su={};Object.defineProperty(su,"passive",{get:function(){Op=!0}}),window.addEventListener("test",su,su),window.removeEventListener("test",su,su)}catch(i){Op=!1}function IB(i,s,l,h,E,b,x,R,H){var J=Array.prototype.slice.call(arguments,3);try{s.apply(l,J)}catch(le){this.onError(le)}}var au=!1,bc=null,Tc=!1,Ip=null,RB={onError:function(i){au=!0,bc=i}};function LB(i,s,l,h,E,b,x,R,H){au=!1,bc=null,IB.apply(RB,arguments)}function DB(i,s,l,h,E,b,x,R,H){if(LB.apply(this,arguments),au){if(au){var J=bc;au=!1,bc=null}else throw Error(n(198));Tc||(Tc=!0,Ip=J)}}function Co(i){var s=i,l=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(l=s.return),i=s.return;while(i)}return s.tag===3?l:null}function sS(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function aS(i){if(Co(i)!==i)throw Error(n(188))}function MB(i){var s=i.alternate;if(!s){if(s=Co(i),s===null)throw Error(n(188));return s!==i?null:i}for(var l=i,h=s;;){var E=l.return;if(E===null)break;var b=E.alternate;if(b===null){if(h=E.return,h!==null){l=h;continue}break}if(E.child===b.child){for(b=E.child;b;){if(b===l)return aS(E),i;if(b===h)return aS(E),s;b=b.sibling}throw Error(n(188))}if(l.return!==h.return)l=E,h=b;else{for(var x=!1,R=E.child;R;){if(R===l){x=!0,l=E,h=b;break}if(R===h){x=!0,h=E,l=b;break}R=R.sibling}if(!x){for(R=b.child;R;){if(R===l){x=!0,l=b,h=E;break}if(R===h){x=!0,h=b,l=E;break}R=R.sibling}if(!x)throw Error(n(189))}}if(l.alternate!==h)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?i:s}function uS(i){return i=MB(i),i!==null?lS(i):null}function lS(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=lS(i);if(s!==null)return s;i=i.sibling}return null}var cS=t.unstable_scheduleCallback,dS=t.unstable_cancelCallback,FB=t.unstable_shouldYield,BB=t.unstable_requestPaint,Ft=t.unstable_now,UB=t.unstable_getCurrentPriorityLevel,Rp=t.unstable_ImmediatePriority,fS=t.unstable_UserBlockingPriority,_c=t.unstable_NormalPriority,HB=t.unstable_LowPriority,hS=t.unstable_IdlePriority,Sc=null,Gr=null;function zB(i){if(Gr&&typeof Gr.onCommitFiberRoot=="function")try{Gr.onCommitFiberRoot(Sc,i,void 0,(i.current.flags&128)===128)}catch(s){}}var xr=Math.clz32?Math.clz32:VB,jB=Math.log,$B=Math.LN2;function VB(i){return i>>>=0,i===0?32:31-(jB(i)/$B|0)|0}var xc=64,wc=4194304;function uu(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Cc(i,s){var l=i.pendingLanes;if(l===0)return 0;var h=0,E=i.suspendedLanes,b=i.pingedLanes,x=l&268435455;if(x!==0){var R=x&~E;R!==0?h=uu(R):(b&=x,b!==0&&(h=uu(b)))}else x=l&~E,x!==0?h=uu(x):b!==0&&(h=uu(b));if(h===0)return 0;if(s!==0&&s!==h&&(s&E)===0&&(E=h&-h,b=s&-s,E>=b||E===16&&(b&4194240)!==0))return s;if((h&4)!==0&&(h|=l&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=h;0<s;)l=31-xr(s),E=1<<l,h|=i[l],s&=~E;return h}function qB(i,s){switch(i){case 1:case 2:case 4:return s+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 s+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 YB(i,s){for(var l=i.suspendedLanes,h=i.pingedLanes,E=i.expirationTimes,b=i.pendingLanes;0<b;){var x=31-xr(b),R=1<<x,H=E[x];H===-1?((R&l)===0||(R&h)!==0)&&(E[x]=qB(R,s)):H<=s&&(i.expiredLanes|=R),b&=~R}}function Lp(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function pS(){var i=xc;return xc<<=1,(xc&4194240)===0&&(xc=64),i}function Dp(i){for(var s=[],l=0;31>l;l++)s.push(i);return s}function lu(i,s,l){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-xr(s),i[s]=l}function GB(i,s){var l=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var h=i.eventTimes;for(i=i.expirationTimes;0<l;){var E=31-xr(l),b=1<<E;s[E]=0,h[E]=-1,i[E]=-1,l&=~b}}function Mp(i,s){var l=i.entangledLanes|=s;for(i=i.entanglements;l;){var h=31-xr(l),E=1<<h;E&s|i[h]&s&&(i[h]|=s),l&=~E}}var ct=0;function mS(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var gS,Fp,ES,yS,bS,Bp=!1,Ac=[],Li=null,Di=null,Mi=null,cu=new Map,du=new Map,Fi=[],WB="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 TS(i,s){switch(i){case"focusin":case"focusout":Li=null;break;case"dragenter":case"dragleave":Di=null;break;case"mouseover":case"mouseout":Mi=null;break;case"pointerover":case"pointerout":cu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":du.delete(s.pointerId)}}function fu(i,s,l,h,E,b){return i===null||i.nativeEvent!==b?(i={blockedOn:s,domEventName:l,eventSystemFlags:h,nativeEvent:b,targetContainers:[E]},s!==null&&(s=Au(s),s!==null&&Fp(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,E!==null&&s.indexOf(E)===-1&&s.push(E),i)}function XB(i,s,l,h,E){switch(s){case"focusin":return Li=fu(Li,i,s,l,h,E),!0;case"dragenter":return Di=fu(Di,i,s,l,h,E),!0;case"mouseover":return Mi=fu(Mi,i,s,l,h,E),!0;case"pointerover":var b=E.pointerId;return cu.set(b,fu(cu.get(b)||null,i,s,l,h,E)),!0;case"gotpointercapture":return b=E.pointerId,du.set(b,fu(du.get(b)||null,i,s,l,h,E)),!0}return!1}function _S(i){var s=Ao(i.target);if(s!==null){var l=Co(s);if(l!==null){if(s=l.tag,s===13){if(s=sS(l),s!==null){i.blockedOn=s,bS(i.priority,function(){ES(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){i.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}i.blockedOn=null}function vc(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var l=Hp(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(l===null){l=i.nativeEvent;var h=new l.constructor(l.type,l);qn=h,l.target.dispatchEvent(h),qn=null}else return s=Au(l),s!==null&&Fp(s),i.blockedOn=l,!1;s.shift()}return!0}function SS(i,s,l){vc(i)&&l.delete(s)}function KB(){Bp=!1,Li!==null&&vc(Li)&&(Li=null),Di!==null&&vc(Di)&&(Di=null),Mi!==null&&vc(Mi)&&(Mi=null),cu.forEach(SS),du.forEach(SS)}function hu(i,s){i.blockedOn===s&&(i.blockedOn=null,Bp||(Bp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,KB)))}function pu(i){function s(E){return hu(E,i)}if(0<Ac.length){hu(Ac[0],i);for(var l=1;l<Ac.length;l++){var h=Ac[l];h.blockedOn===i&&(h.blockedOn=null)}}for(Li!==null&&hu(Li,i),Di!==null&&hu(Di,i),Mi!==null&&hu(Mi,i),cu.forEach(s),du.forEach(s),l=0;l<Fi.length;l++)h=Fi[l],h.blockedOn===i&&(h.blockedOn=null);for(;0<Fi.length&&(l=Fi[0],l.blockedOn===null);)_S(l),l.blockedOn===null&&Fi.shift()}var Is=M.ReactCurrentBatchConfig,kc=!0;function QB(i,s,l,h){var E=ct,b=Is.transition;Is.transition=null;try{ct=1,Up(i,s,l,h)}finally{ct=E,Is.transition=b}}function JB(i,s,l,h){var E=ct,b=Is.transition;Is.transition=null;try{ct=4,Up(i,s,l,h)}finally{ct=E,Is.transition=b}}function Up(i,s,l,h){if(kc){var E=Hp(i,s,l,h);if(E===null)rm(i,s,h,Pc,l),TS(i,h);else if(XB(E,i,s,l,h))h.stopPropagation();else if(TS(i,h),s&4&&-1<WB.indexOf(i)){for(;E!==null;){var b=Au(E);if(b!==null&&gS(b),b=Hp(i,s,l,h),b===null&&rm(i,s,h,Pc,l),b===E)break;E=b}E!==null&&h.stopPropagation()}else rm(i,s,h,null,l)}}var Pc=null;function Hp(i,s,l,h){if(Pc=null,i=kp(h),i=Ao(i),i!==null)if(s=Co(i),s===null)i=null;else if(l=s.tag,l===13){if(i=sS(s),i!==null)return i;i=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return Pc=i,null}function xS(i){switch(i){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(UB()){case Rp:return 1;case fS:return 4;case _c:case HB:return 16;case hS:return 536870912;default:return 16}default:return 16}}var Bi=null,zp=null,Nc=null;function wS(){if(Nc)return Nc;var i,s=zp,l=s.length,h,E="value"in Bi?Bi.value:Bi.textContent,b=E.length;for(i=0;i<l&&s[i]===E[i];i++);var x=l-i;for(h=1;h<=x&&s[l-h]===E[b-h];h++);return Nc=E.slice(i,1<h?1-h:void 0)}function Oc(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Ic(){return!0}function CS(){return!1}function Yn(i){function s(l,h,E,b,x){this._reactName=l,this._targetInst=E,this.type=h,this.nativeEvent=b,this.target=x,this.currentTarget=null;for(var R in i)i.hasOwnProperty(R)&&(l=i[R],this[R]=l?l(b):b[R]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Ic:CS,this.isPropagationStopped=CS,this}return A(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ic)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ic)},persist:function(){},isPersistent:Ic}),s}var Rs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jp=Yn(Rs),mu=A({},Rs,{view:0,detail:0}),ZB=Yn(mu),$p,Vp,gu,Rc=A({},mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yp,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==gu&&(gu&&i.type==="mousemove"?($p=i.screenX-gu.screenX,Vp=i.screenY-gu.screenY):Vp=$p=0,gu=i),$p)},movementY:function(i){return"movementY"in i?i.movementY:Vp}}),AS=Yn(Rc),e9=A({},Rc,{dataTransfer:0}),t9=Yn(e9),n9=A({},mu,{relatedTarget:0}),qp=Yn(n9),r9=A({},Rs,{animationName:0,elapsedTime:0,pseudoElement:0}),i9=Yn(r9),o9=A({},Rs,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),s9=Yn(o9),a9=A({},Rs,{data:0}),vS=Yn(a9),u9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l9={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"},c9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function d9(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=c9[i])?!!s[i]:!1}function Yp(){return d9}var f9=A({},mu,{key:function(i){if(i.key){var s=u9[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Oc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?l9[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yp,charCode:function(i){return i.type==="keypress"?Oc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Oc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),h9=Yn(f9),p9=A({},Rc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kS=Yn(p9),m9=A({},mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yp}),g9=Yn(m9),E9=A({},Rs,{propertyName:0,elapsedTime:0,pseudoElement:0}),y9=Yn(E9),b9=A({},Rc,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),T9=Yn(b9),_9=[9,13,27,32],Gp=c&&"CompositionEvent"in window,Eu=null;c&&"documentMode"in document&&(Eu=document.documentMode);var S9=c&&"TextEvent"in window&&!Eu,PS=c&&(!Gp||Eu&&8<Eu&&11>=Eu),NS=" ",OS=!1;function IS(i,s){switch(i){case"keyup":return _9.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RS(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ls=!1;function x9(i,s){switch(i){case"compositionend":return RS(s);case"keypress":return s.which!==32?null:(OS=!0,NS);case"textInput":return i=s.data,i===NS&&OS?null:i;default:return null}}function w9(i,s){if(Ls)return i==="compositionend"||!Gp&&IS(i,s)?(i=wS(),Nc=zp=Bi=null,Ls=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return PS&&s.locale!=="ko"?null:s.data;default:return null}}var C9={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 LS(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!C9[i.type]:s==="textarea"}function DS(i,s,l,h){tS(h),s=Bc(s,"onChange"),0<s.length&&(l=new jp("onChange","change",null,l,h),i.push({event:l,listeners:s}))}var yu=null,bu=null;function A9(i){ZS(i,0)}function Lc(i){var s=Us(i);if(qr(s))return i}function v9(i,s){if(i==="change")return s}var MS=!1;if(c){var Wp;if(c){var Xp="oninput"in document;if(!Xp){var FS=document.createElement("div");FS.setAttribute("oninput","return;"),Xp=typeof FS.oninput=="function"}Wp=Xp}else Wp=!1;MS=Wp&&(!document.documentMode||9<document.documentMode)}function BS(){yu&&(yu.detachEvent("onpropertychange",US),bu=yu=null)}function US(i){if(i.propertyName==="value"&&Lc(bu)){var s=[];DS(s,bu,i,kp(i)),oS(A9,s)}}function k9(i,s,l){i==="focusin"?(BS(),yu=s,bu=l,yu.attachEvent("onpropertychange",US)):i==="focusout"&&BS()}function P9(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Lc(bu)}function N9(i,s){if(i==="click")return Lc(s)}function O9(i,s){if(i==="input"||i==="change")return Lc(s)}function I9(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var wr=typeof Object.is=="function"?Object.is:I9;function Tu(i,s){if(wr(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var l=Object.keys(i),h=Object.keys(s);if(l.length!==h.length)return!1;for(h=0;h<l.length;h++){var E=l[h];if(!d.call(s,E)||!wr(i[E],s[E]))return!1}return!0}function HS(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function zS(i,s){var l=HS(i);i=0;for(var h;l;){if(l.nodeType===3){if(h=i+l.textContent.length,i<=s&&h>=s)return{node:l,offset:s-i};i=h}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=HS(l)}}function jS(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?jS(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function $S(){for(var i=window,s=Sr();s instanceof i.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch(h){l=!1}if(l)i=s.contentWindow;else break;s=Sr(i.document)}return s}function Kp(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function R9(i){var s=$S(),l=i.focusedElem,h=i.selectionRange;if(s!==l&&l&&l.ownerDocument&&jS(l.ownerDocument.documentElement,l)){if(h!==null&&Kp(l)){if(s=h.start,i=h.end,i===void 0&&(i=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(i,l.value.length);else if(i=(s=l.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var E=l.textContent.length,b=Math.min(h.start,E);h=h.end===void 0?b:Math.min(h.end,E),!i.extend&&b>h&&(E=h,h=b,b=E),E=zS(l,b);var x=zS(l,h);E&&x&&(i.rangeCount!==1||i.anchorNode!==E.node||i.anchorOffset!==E.offset||i.focusNode!==x.node||i.focusOffset!==x.offset)&&(s=s.createRange(),s.setStart(E.node,E.offset),i.removeAllRanges(),b>h?(i.addRange(s),i.extend(x.node,x.offset)):(s.setEnd(x.node,x.offset),i.addRange(s)))}}for(s=[],i=l;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<s.length;l++)i=s[l],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var L9=c&&"documentMode"in document&&11>=document.documentMode,Ds=null,Qp=null,_u=null,Jp=!1;function VS(i,s,l){var h=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Jp||Ds==null||Ds!==Sr(h)||(h=Ds,"selectionStart"in h&&Kp(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),_u&&Tu(_u,h)||(_u=h,h=Bc(Qp,"onSelect"),0<h.length&&(s=new jp("onSelect","select",null,s,l),i.push({event:s,listeners:h}),s.target=Ds)))}function Dc(i,s){var l={};return l[i.toLowerCase()]=s.toLowerCase(),l["Webkit"+i]="webkit"+s,l["Moz"+i]="moz"+s,l}var Ms={animationend:Dc("Animation","AnimationEnd"),animationiteration:Dc("Animation","AnimationIteration"),animationstart:Dc("Animation","AnimationStart"),transitionend:Dc("Transition","TransitionEnd")},Zp={},qS={};c&&(qS=document.createElement("div").style,"AnimationEvent"in window||(delete Ms.animationend.animation,delete Ms.animationiteration.animation,delete Ms.animationstart.animation),"TransitionEvent"in window||delete Ms.transitionend.transition);function Mc(i){if(Zp[i])return Zp[i];if(!Ms[i])return i;var s=Ms[i],l;for(l in s)if(s.hasOwnProperty(l)&&l in qS)return Zp[i]=s[l];return i}var YS=Mc("animationend"),GS=Mc("animationiteration"),WS=Mc("animationstart"),XS=Mc("transitionend"),KS=new Map,QS="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 Ui(i,s){KS.set(i,s),a(s,[i])}for(var em=0;em<QS.length;em++){var tm=QS[em],D9=tm.toLowerCase(),M9=tm[0].toUpperCase()+tm.slice(1);Ui(D9,"on"+M9)}Ui(YS,"onAnimationEnd"),Ui(GS,"onAnimationIteration"),Ui(WS,"onAnimationStart"),Ui("dblclick","onDoubleClick"),Ui("focusin","onFocus"),Ui("focusout","onBlur"),Ui(XS,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="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(" "),F9=new Set("cancel close invalid load scroll toggle".split(" ").concat(Su));function JS(i,s,l){var h=i.type||"unknown-event";i.currentTarget=l,DB(h,s,void 0,i),i.currentTarget=null}function ZS(i,s){s=(s&4)!==0;for(var l=0;l<i.length;l++){var h=i[l],E=h.event;h=h.listeners;e:{var b=void 0;if(s)for(var x=h.length-1;0<=x;x--){var R=h[x],H=R.instance,J=R.currentTarget;if(R=R.listener,H!==b&&E.isPropagationStopped())break e;JS(E,R,J),b=H}else for(x=0;x<h.length;x++){if(R=h[x],H=R.instance,J=R.currentTarget,R=R.listener,H!==b&&E.isPropagationStopped())break e;JS(E,R,J),b=H}}}if(Tc)throw i=Ip,Tc=!1,Ip=null,i}function St(i,s){var l=s[lm];l===void 0&&(l=s[lm]=new Set);var h=i+"__bubble";l.has(h)||(ex(s,i,2,!1),l.add(h))}function nm(i,s,l){var h=0;s&&(h|=4),ex(l,i,h,s)}var Fc="_reactListening"+Math.random().toString(36).slice(2);function xu(i){if(!i[Fc]){i[Fc]=!0,r.forEach(function(l){l!=="selectionchange"&&(F9.has(l)||nm(l,!1,i),nm(l,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Fc]||(s[Fc]=!0,nm("selectionchange",!1,s))}}function ex(i,s,l,h){switch(xS(s)){case 1:var E=QB;break;case 4:E=JB;break;default:E=Up}l=E.bind(null,s,l,i),E=void 0,!Op||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(E=!0),h?E!==void 0?i.addEventListener(s,l,{capture:!0,passive:E}):i.addEventListener(s,l,!0):E!==void 0?i.addEventListener(s,l,{passive:E}):i.addEventListener(s,l,!1)}function rm(i,s,l,h,E){var b=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var x=h.tag;if(x===3||x===4){var R=h.stateNode.containerInfo;if(R===E||R.nodeType===8&&R.parentNode===E)break;if(x===4)for(x=h.return;x!==null;){var H=x.tag;if((H===3||H===4)&&(H=x.stateNode.containerInfo,H===E||H.nodeType===8&&H.parentNode===E))return;x=x.return}for(;R!==null;){if(x=Ao(R),x===null)return;if(H=x.tag,H===5||H===6){h=b=x;continue e}R=R.parentNode}}h=h.return}oS(function(){var J=b,le=kp(l),pe=[];e:{var se=KS.get(i);if(se!==void 0){var xe=jp,ke=i;switch(i){case"keypress":if(Oc(l)===0)break e;case"keydown":case"keyup":xe=h9;break;case"focusin":ke="focus",xe=qp;break;case"focusout":ke="blur",xe=qp;break;case"beforeblur":case"afterblur":xe=qp;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=AS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=t9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=g9;break;case YS:case GS:case WS:xe=i9;break;case XS:xe=y9;break;case"scroll":xe=ZB;break;case"wheel":xe=T9;break;case"copy":case"cut":case"paste":xe=s9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=kS}var Ne=(s&4)!==0,Bt=!Ne&&i==="scroll",Y=Ne?se!==null?se+"Capture":null:se;Ne=[];for(var z=J,X;z!==null;){X=z;var ye=X.stateNode;if(X.tag===5&&ye!==null&&(X=ye,Y!==null&&(ye=ou(z,Y),ye!=null&&Ne.push(wu(z,ye,X)))),Bt)break;z=z.return}0<Ne.length&&(se=new xe(se,ke,null,l,le),pe.push({event:se,listeners:Ne}))}}if((s&7)===0){e:{if(se=i==="mouseover"||i==="pointerover",xe=i==="mouseout"||i==="pointerout",se&&l!==qn&&(ke=l.relatedTarget||l.fromElement)&&(Ao(ke)||ke[di]))break e;if((xe||se)&&(se=le.window===le?le:(se=le.ownerDocument)?se.defaultView||se.parentWindow:window,xe?(ke=l.relatedTarget||l.toElement,xe=J,ke=ke?Ao(ke):null,ke!==null&&(Bt=Co(ke),ke!==Bt||ke.tag!==5&&ke.tag!==6)&&(ke=null)):(xe=null,ke=J),xe!==ke)){if(Ne=AS,ye="onMouseLeave",Y="onMouseEnter",z="mouse",(i==="pointerout"||i==="pointerover")&&(Ne=kS,ye="onPointerLeave",Y="onPointerEnter",z="pointer"),Bt=xe==null?se:Us(xe),X=ke==null?se:Us(ke),se=new Ne(ye,z+"leave",xe,l,le),se.target=Bt,se.relatedTarget=X,ye=null,Ao(le)===J&&(Ne=new Ne(Y,z+"enter",ke,l,le),Ne.target=X,Ne.relatedTarget=Bt,ye=Ne),Bt=ye,xe&&ke)t:{for(Ne=xe,Y=ke,z=0,X=Ne;X;X=Fs(X))z++;for(X=0,ye=Y;ye;ye=Fs(ye))X++;for(;0<z-X;)Ne=Fs(Ne),z--;for(;0<X-z;)Y=Fs(Y),X--;for(;z--;){if(Ne===Y||Y!==null&&Ne===Y.alternate)break t;Ne=Fs(Ne),Y=Fs(Y)}Ne=null}else Ne=null;xe!==null&&tx(pe,se,xe,Ne,!1),ke!==null&&Bt!==null&&tx(pe,Bt,ke,Ne,!0)}}e:{if(se=J?Us(J):window,xe=se.nodeName&&se.nodeName.toLowerCase(),xe==="select"||xe==="input"&&se.type==="file")var Le=v9;else if(LS(se))if(MS)Le=O9;else{Le=P9;var He=k9}else(xe=se.nodeName)&&xe.toLowerCase()==="input"&&(se.type==="checkbox"||se.type==="radio")&&(Le=N9);if(Le&&(Le=Le(i,J))){DS(pe,Le,l,le);break e}He&&He(i,se,J),i==="focusout"&&(He=se._wrapperState)&&He.controlled&&se.type==="number"&&Fe(se,"number",se.value)}switch(He=J?Us(J):window,i){case"focusin":(LS(He)||He.contentEditable==="true")&&(Ds=He,Qp=J,_u=null);break;case"focusout":_u=Qp=Ds=null;break;case"mousedown":Jp=!0;break;case"contextmenu":case"mouseup":case"dragend":Jp=!1,VS(pe,l,le);break;case"selectionchange":if(L9)break;case"keydown":case"keyup":VS(pe,l,le)}var ze;if(Gp)e:{switch(i){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else Ls?IS(i,l)&&(qe="onCompositionEnd"):i==="keydown"&&l.keyCode===229&&(qe="onCompositionStart");qe&&(PS&&l.locale!=="ko"&&(Ls||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&Ls&&(ze=wS()):(Bi=le,zp="value"in Bi?Bi.value:Bi.textContent,Ls=!0)),He=Bc(J,qe),0<He.length&&(qe=new vS(qe,i,null,l,le),pe.push({event:qe,listeners:He}),ze?qe.data=ze:(ze=RS(l),ze!==null&&(qe.data=ze)))),(ze=S9?x9(i,l):w9(i,l))&&(J=Bc(J,"onBeforeInput"),0<J.length&&(le=new vS("onBeforeInput","beforeinput",null,l,le),pe.push({event:le,listeners:J}),le.data=ze))}ZS(pe,s)})}function wu(i,s,l){return{instance:i,listener:s,currentTarget:l}}function Bc(i,s){for(var l=s+"Capture",h=[];i!==null;){var E=i,b=E.stateNode;E.tag===5&&b!==null&&(E=b,b=ou(i,l),b!=null&&h.unshift(wu(i,b,E)),b=ou(i,s),b!=null&&h.push(wu(i,b,E))),i=i.return}return h}function Fs(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function tx(i,s,l,h,E){for(var b=s._reactName,x=[];l!==null&&l!==h;){var R=l,H=R.alternate,J=R.stateNode;if(H!==null&&H===h)break;R.tag===5&&J!==null&&(R=J,E?(H=ou(l,b),H!=null&&x.unshift(wu(l,H,R))):E||(H=ou(l,b),H!=null&&x.push(wu(l,H,R)))),l=l.return}x.length!==0&&i.push({event:s,listeners:x})}var B9=/\r\n?/g,U9=/\u0000|\uFFFD/g;function nx(i){return(typeof i=="string"?i:""+i).replace(B9,`
15
15
  `).replace(U9,"")}function Uc(i,s,l){if(s=nx(s),nx(i)!==s&&l)throw Error(n(425))}function Hc(){}var im=null,om=null;function sm(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var am=typeof setTimeout=="function"?setTimeout:void 0,H9=typeof clearTimeout=="function"?clearTimeout:void 0,rx=typeof Promise=="function"?Promise:void 0,z9=typeof queueMicrotask=="function"?queueMicrotask:typeof rx!="undefined"?function(i){return rx.resolve(null).then(i).catch(j9)}:am;function j9(i){setTimeout(function(){throw i})}function um(i,s){var l=s,h=0;do{var E=l.nextSibling;if(i.removeChild(l),E&&E.nodeType===8)if(l=E.data,l==="/$"){if(h===0){i.removeChild(E),pu(s);return}h--}else l!=="$"&&l!=="$?"&&l!=="$!"||h++;l=E}while(l);pu(s)}function Hi(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function ix(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var l=i.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return i;s--}else l==="/$"&&s++}i=i.previousSibling}return null}var Bs=Math.random().toString(36).slice(2),Wr="__reactFiber$"+Bs,Cu="__reactProps$"+Bs,di="__reactContainer$"+Bs,lm="__reactEvents$"+Bs,$9="__reactListeners$"+Bs,V9="__reactHandles$"+Bs;function Ao(i){var s=i[Wr];if(s)return s;for(var l=i.parentNode;l;){if(s=l[di]||l[Wr]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(i=ix(i);i!==null;){if(l=i[Wr])return l;i=ix(i)}return s}i=l,l=i.parentNode}return null}function Au(i){return i=i[Wr]||i[di],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Us(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function zc(i){return i[Cu]||null}var cm=[],Hs=-1;function zi(i){return{current:i}}function xt(i){0>Hs||(i.current=cm[Hs],cm[Hs]=null,Hs--)}function Tt(i,s){Hs++,cm[Hs]=i.current,i.current=s}var ji={},gn=zi(ji),Ln=zi(!1),vo=ji;function zs(i,s){var l=i.type.contextTypes;if(!l)return ji;var h=i.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===s)return h.__reactInternalMemoizedMaskedChildContext;var E={},b;for(b in l)E[b]=s[b];return h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=E),E}function Dn(i){return i=i.childContextTypes,i!=null}function jc(){xt(Ln),xt(gn)}function ox(i,s,l){if(gn.current!==ji)throw Error(n(168));Tt(gn,s),Tt(Ln,l)}function sx(i,s,l){var h=i.stateNode;if(s=s.childContextTypes,typeof h.getChildContext!="function")return l;h=h.getChildContext();for(var E in h)if(!(E in s))throw Error(n(108,$e(i)||"Unknown",E));return A({},l,h)}function $c(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ji,vo=gn.current,Tt(gn,i),Tt(Ln,Ln.current),!0}function ax(i,s,l){var h=i.stateNode;if(!h)throw Error(n(169));l?(i=sx(i,s,vo),h.__reactInternalMemoizedMergedChildContext=i,xt(Ln),xt(gn),Tt(gn,i)):xt(Ln),Tt(Ln,l)}var fi=null,Vc=!1,dm=!1;function ux(i){fi===null?fi=[i]:fi.push(i)}function q9(i){Vc=!0,ux(i)}function $i(){if(!dm&&fi!==null){dm=!0;var i=0,s=ct;try{var l=fi;for(ct=1;i<l.length;i++){var h=l[i];do h=h(!0);while(h!==null)}fi=null,Vc=!1}catch(E){throw fi!==null&&(fi=fi.slice(i+1)),cS(Rp,$i),E}finally{ct=s,dm=!1}}return null}var js=[],$s=0,qc=null,Yc=0,ar=[],ur=0,ko=null,hi=1,pi="";function Po(i,s){js[$s++]=Yc,js[$s++]=qc,qc=i,Yc=s}function lx(i,s,l){ar[ur++]=hi,ar[ur++]=pi,ar[ur++]=ko,ko=i;var h=hi;i=pi;var E=32-xr(h)-1;h&=~(1<<E),l+=1;var b=32-xr(s)+E;if(30<b){var x=E-E%5;b=(h&(1<<x)-1).toString(32),h>>=x,E-=x,hi=1<<32-xr(s)+E|l<<E|h,pi=b+i}else hi=1<<b|l<<E|h,pi=i}function fm(i){i.return!==null&&(Po(i,1),lx(i,1,0))}function hm(i){for(;i===qc;)qc=js[--$s],js[$s]=null,Yc=js[--$s],js[$s]=null;for(;i===ko;)ko=ar[--ur],ar[ur]=null,pi=ar[--ur],ar[ur]=null,hi=ar[--ur],ar[ur]=null}var Gn=null,Wn=null,kt=!1,Cr=null;function cx(i,s){var l=fr(5,null,null,0);l.elementType="DELETED",l.stateNode=s,l.return=i,s=i.deletions,s===null?(i.deletions=[l],i.flags|=16):s.push(l)}function dx(i,s){switch(i.tag){case 5:var l=i.type;return s=s.nodeType!==1||l.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,Gn=i,Wn=Hi(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,Gn=i,Wn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(l=ko!==null?{id:hi,overflow:pi}:null,i.memoizedState={dehydrated:s,treeContext:l,retryLane:1073741824},l=fr(18,null,null,0),l.stateNode=s,l.return=i,i.child=l,Gn=i,Wn=null,!0):!1;default:return!1}}function pm(i){return(i.mode&1)!==0&&(i.flags&128)===0}function mm(i){if(kt){var s=Wn;if(s){var l=s;if(!dx(i,s)){if(pm(i))throw Error(n(418));s=Hi(l.nextSibling);var h=Gn;s&&dx(i,s)?cx(h,l):(i.flags=i.flags&-4097|2,kt=!1,Gn=i)}}else{if(pm(i))throw Error(n(418));i.flags=i.flags&-4097|2,kt=!1,Gn=i}}}function fx(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Gn=i}function Gc(i){if(i!==Gn)return!1;if(!kt)return fx(i),kt=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!sm(i.type,i.memoizedProps)),s&&(s=Wn)){if(pm(i))throw hx(),Error(n(418));for(;s;)cx(i,s),s=Hi(s.nextSibling)}if(fx(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var l=i.data;if(l==="/$"){if(s===0){Wn=Hi(i.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++}i=i.nextSibling}Wn=null}}else Wn=Gn?Hi(i.stateNode.nextSibling):null;return!0}function hx(){for(var i=Wn;i;)i=Hi(i.nextSibling)}function Vs(){Wn=Gn=null,kt=!1}function gm(i){Cr===null?Cr=[i]:Cr.push(i)}var Y9=M.ReactCurrentBatchConfig;function vu(i,s,l){if(i=l.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var h=l.stateNode}if(!h)throw Error(n(147,i));var E=h,b=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===b?s.ref:(s=function(x){var R=E.refs;x===null?delete R[b]:R[b]=x},s._stringRef=b,s)}if(typeof i!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,i))}return i}function Wc(i,s){throw i=Object.prototype.toString.call(s),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function px(i){var s=i._init;return s(i._payload)}function mx(i){function s(Y,z){if(i){var X=Y.deletions;X===null?(Y.deletions=[z],Y.flags|=16):X.push(z)}}function l(Y,z){if(!i)return null;for(;z!==null;)s(Y,z),z=z.sibling;return null}function h(Y,z){for(Y=new Map;z!==null;)z.key!==null?Y.set(z.key,z):Y.set(z.index,z),z=z.sibling;return Y}function E(Y,z){return Y=Qi(Y,z),Y.index=0,Y.sibling=null,Y}function b(Y,z,X){return Y.index=X,i?(X=Y.alternate,X!==null?(X=X.index,X<z?(Y.flags|=2,z):X):(Y.flags|=2,z)):(Y.flags|=1048576,z)}function x(Y){return i&&Y.alternate===null&&(Y.flags|=2),Y}function R(Y,z,X,ye){return z===null||z.tag!==6?(z=a0(X,Y.mode,ye),z.return=Y,z):(z=E(z,X),z.return=Y,z)}function H(Y,z,X,ye){var Le=X.type;return Le===K?le(Y,z,X.props.children,ye,X.key):z!==null&&(z.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===Oe&&px(Le)===z.type)?(ye=E(z,X.props),ye.ref=vu(Y,z,X),ye.return=Y,ye):(ye=yd(X.type,X.key,X.props,null,Y.mode,ye),ye.ref=vu(Y,z,X),ye.return=Y,ye)}function J(Y,z,X,ye){return z===null||z.tag!==4||z.stateNode.containerInfo!==X.containerInfo||z.stateNode.implementation!==X.implementation?(z=u0(X,Y.mode,ye),z.return=Y,z):(z=E(z,X.children||[]),z.return=Y,z)}function le(Y,z,X,ye,Le){return z===null||z.tag!==7?(z=Fo(X,Y.mode,ye,Le),z.return=Y,z):(z=E(z,X),z.return=Y,z)}function pe(Y,z,X){if(typeof z=="string"&&z!==""||typeof z=="number")return z=a0(""+z,Y.mode,X),z.return=Y,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case V:return X=yd(z.type,z.key,z.props,null,Y.mode,X),X.ref=vu(Y,null,z),X.return=Y,X;case D:return z=u0(z,Y.mode,X),z.return=Y,z;case Oe:var ye=z._init;return pe(Y,ye(z._payload),X)}if(De(z)||ie(z))return z=Fo(z,Y.mode,X,null),z.return=Y,z;Wc(Y,z)}return null}function se(Y,z,X,ye){var Le=z!==null?z.key:null;if(typeof X=="string"&&X!==""||typeof X=="number")return Le!==null?null:R(Y,z,""+X,ye);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case V:return X.key===Le?H(Y,z,X,ye):null;case D:return X.key===Le?J(Y,z,X,ye):null;case Oe:return Le=X._init,se(Y,z,Le(X._payload),ye)}if(De(X)||ie(X))return Le!==null?null:le(Y,z,X,ye,null);Wc(Y,X)}return null}function xe(Y,z,X,ye,Le){if(typeof ye=="string"&&ye!==""||typeof ye=="number")return Y=Y.get(X)||null,R(z,Y,""+ye,Le);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case V:return Y=Y.get(ye.key===null?X:ye.key)||null,H(z,Y,ye,Le);case D:return Y=Y.get(ye.key===null?X:ye.key)||null,J(z,Y,ye,Le);case Oe:var He=ye._init;return xe(Y,z,X,He(ye._payload),Le)}if(De(ye)||ie(ye))return Y=Y.get(X)||null,le(z,Y,ye,Le,null);Wc(z,ye)}return null}function ke(Y,z,X,ye){for(var Le=null,He=null,ze=z,qe=z=0,rn=null;ze!==null&&qe<X.length;qe++){ze.index>qe?(rn=ze,ze=null):rn=ze.sibling;var ot=se(Y,ze,X[qe],ye);if(ot===null){ze===null&&(ze=rn);break}i&&ze&&ot.alternate===null&&s(Y,ze),z=b(ot,z,qe),He===null?Le=ot:He.sibling=ot,He=ot,ze=rn}if(qe===X.length)return l(Y,ze),kt&&Po(Y,qe),Le;if(ze===null){for(;qe<X.length;qe++)ze=pe(Y,X[qe],ye),ze!==null&&(z=b(ze,z,qe),He===null?Le=ze:He.sibling=ze,He=ze);return kt&&Po(Y,qe),Le}for(ze=h(Y,ze);qe<X.length;qe++)rn=xe(ze,Y,qe,X[qe],ye),rn!==null&&(i&&rn.alternate!==null&&ze.delete(rn.key===null?qe:rn.key),z=b(rn,z,qe),He===null?Le=rn:He.sibling=rn,He=rn);return i&&ze.forEach(function(Ji){return s(Y,Ji)}),kt&&Po(Y,qe),Le}function Ne(Y,z,X,ye){var Le=ie(X);if(typeof Le!="function")throw Error(n(150));if(X=Le.call(X),X==null)throw Error(n(151));for(var He=Le=null,ze=z,qe=z=0,rn=null,ot=X.next();ze!==null&&!ot.done;qe++,ot=X.next()){ze.index>qe?(rn=ze,ze=null):rn=ze.sibling;var Ji=se(Y,ze,ot.value,ye);if(Ji===null){ze===null&&(ze=rn);break}i&&ze&&Ji.alternate===null&&s(Y,ze),z=b(Ji,z,qe),He===null?Le=Ji:He.sibling=Ji,He=Ji,ze=rn}if(ot.done)return l(Y,ze),kt&&Po(Y,qe),Le;if(ze===null){for(;!ot.done;qe++,ot=X.next())ot=pe(Y,ot.value,ye),ot!==null&&(z=b(ot,z,qe),He===null?Le=ot:He.sibling=ot,He=ot);return kt&&Po(Y,qe),Le}for(ze=h(Y,ze);!ot.done;qe++,ot=X.next())ot=xe(ze,Y,qe,ot.value,ye),ot!==null&&(i&&ot.alternate!==null&&ze.delete(ot.key===null?qe:ot.key),z=b(ot,z,qe),He===null?Le=ot:He.sibling=ot,He=ot);return i&&ze.forEach(function(C7){return s(Y,C7)}),kt&&Po(Y,qe),Le}function Bt(Y,z,X,ye){if(typeof X=="object"&&X!==null&&X.type===K&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case V:e:{for(var Le=X.key,He=z;He!==null;){if(He.key===Le){if(Le=X.type,Le===K){if(He.tag===7){l(Y,He.sibling),z=E(He,X.props.children),z.return=Y,Y=z;break e}}else if(He.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===Oe&&px(Le)===He.type){l(Y,He.sibling),z=E(He,X.props),z.ref=vu(Y,He,X),z.return=Y,Y=z;break e}l(Y,He);break}else s(Y,He);He=He.sibling}X.type===K?(z=Fo(X.props.children,Y.mode,ye,X.key),z.return=Y,Y=z):(ye=yd(X.type,X.key,X.props,null,Y.mode,ye),ye.ref=vu(Y,z,X),ye.return=Y,Y=ye)}return x(Y);case D:e:{for(He=X.key;z!==null;){if(z.key===He)if(z.tag===4&&z.stateNode.containerInfo===X.containerInfo&&z.stateNode.implementation===X.implementation){l(Y,z.sibling),z=E(z,X.children||[]),z.return=Y,Y=z;break e}else{l(Y,z);break}else s(Y,z);z=z.sibling}z=u0(X,Y.mode,ye),z.return=Y,Y=z}return x(Y);case Oe:return He=X._init,Bt(Y,z,He(X._payload),ye)}if(De(X))return ke(Y,z,X,ye);if(ie(X))return Ne(Y,z,X,ye);Wc(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"?(X=""+X,z!==null&&z.tag===6?(l(Y,z.sibling),z=E(z,X),z.return=Y,Y=z):(l(Y,z),z=a0(X,Y.mode,ye),z.return=Y,Y=z),x(Y)):l(Y,z)}return Bt}var qs=mx(!0),gx=mx(!1),Xc=zi(null),Kc=null,Ys=null,Em=null;function ym(){Em=Ys=Kc=null}function bm(i){var s=Xc.current;xt(Xc),i._currentValue=s}function Tm(i,s,l){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===l)break;i=i.return}}function Gs(i,s){Kc=i,Em=Ys=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(Mn=!0),i.firstContext=null)}function lr(i){var s=i._currentValue;if(Em!==i)if(i={context:i,memoizedValue:s,next:null},Ys===null){if(Kc===null)throw Error(n(308));Ys=i,Kc.dependencies={lanes:0,firstContext:i}}else Ys=Ys.next=i;return s}var No=null;function _m(i){No===null?No=[i]:No.push(i)}function Ex(i,s,l,h){var E=s.interleaved;return E===null?(l.next=l,_m(s)):(l.next=E.next,E.next=l),s.interleaved=l,mi(i,h)}function mi(i,s){i.lanes|=s;var l=i.alternate;for(l!==null&&(l.lanes|=s),l=i,i=i.return;i!==null;)i.childLanes|=s,l=i.alternate,l!==null&&(l.childLanes|=s),l=i,i=i.return;return l.tag===3?l.stateNode:null}var Vi=!1;function Sm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yx(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function gi(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function qi(i,s,l){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(it&2)!==0){var E=h.pending;return E===null?s.next=s:(s.next=E.next,E.next=s),h.pending=s,mi(i,l)}return E=h.interleaved,E===null?(s.next=s,_m(h)):(s.next=E.next,E.next=s),h.interleaved=s,mi(i,l)}function Qc(i,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194240)!==0)){var h=s.lanes;h&=i.pendingLanes,l|=h,s.lanes=l,Mp(i,l)}}function bx(i,s){var l=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,l===h)){var E=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var x={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};b===null?E=b=x:b=b.next=x,l=l.next}while(l!==null);b===null?E=b=s:b=b.next=s}else E=b=s;l={baseState:h.baseState,firstBaseUpdate:E,lastBaseUpdate:b,shared:h.shared,effects:h.effects},i.updateQueue=l;return}i=l.lastBaseUpdate,i===null?l.firstBaseUpdate=s:i.next=s,l.lastBaseUpdate=s}function Jc(i,s,l,h){var E=i.updateQueue;Vi=!1;var b=E.firstBaseUpdate,x=E.lastBaseUpdate,R=E.shared.pending;if(R!==null){E.shared.pending=null;var H=R,J=H.next;H.next=null,x===null?b=J:x.next=J,x=H;var le=i.alternate;le!==null&&(le=le.updateQueue,R=le.lastBaseUpdate,R!==x&&(R===null?le.firstBaseUpdate=J:R.next=J,le.lastBaseUpdate=H))}if(b!==null){var pe=E.baseState;x=0,le=J=H=null,R=b;do{var se=R.lane,xe=R.eventTime;if((h&se)===se){le!==null&&(le=le.next={eventTime:xe,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var ke=i,Ne=R;switch(se=s,xe=l,Ne.tag){case 1:if(ke=Ne.payload,typeof ke=="function"){pe=ke.call(xe,pe,se);break e}pe=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Ne.payload,se=typeof ke=="function"?ke.call(xe,pe,se):ke,se==null)break e;pe=A({},pe,se);break e;case 2:Vi=!0}}R.callback!==null&&R.lane!==0&&(i.flags|=64,se=E.effects,se===null?E.effects=[R]:se.push(R))}else xe={eventTime:xe,lane:se,tag:R.tag,payload:R.payload,callback:R.callback,next:null},le===null?(J=le=xe,H=pe):le=le.next=xe,x|=se;if(R=R.next,R===null){if(R=E.shared.pending,R===null)break;se=R,R=se.next,se.next=null,E.lastBaseUpdate=se,E.shared.pending=null}}while(!0);if(le===null&&(H=pe),E.baseState=H,E.firstBaseUpdate=J,E.lastBaseUpdate=le,s=E.shared.interleaved,s!==null){E=s;do x|=E.lane,E=E.next;while(E!==s)}else b===null&&(E.shared.lanes=0);Ro|=x,i.lanes=x,i.memoizedState=pe}}function Tx(i,s,l){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var h=i[s],E=h.callback;if(E!==null){if(h.callback=null,h=l,typeof E!="function")throw Error(n(191,E));E.call(h)}}}var ku={},Xr=zi(ku),Pu=zi(ku),Nu=zi(ku);function Oo(i){if(i===ku)throw Error(n(174));return i}function xm(i,s){switch(Tt(Nu,s),Tt(Pu,i),Tt(Xr,ku),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:oe(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=oe(s,i)}xt(Xr),Tt(Xr,s)}function Ws(){xt(Xr),xt(Pu),xt(Nu)}function _x(i){Oo(Nu.current);var s=Oo(Xr.current),l=oe(s,i.type);s!==l&&(Tt(Pu,i),Tt(Xr,l))}function wm(i){Pu.current===i&&(xt(Xr),xt(Pu))}var Nt=zi(0);function Zc(i){for(var s=i;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Cm=[];function Am(){for(var i=0;i<Cm.length;i++)Cm[i]._workInProgressVersionPrimary=null;Cm.length=0}var ed=M.ReactCurrentDispatcher,vm=M.ReactCurrentBatchConfig,Io=0,Ot=null,Gt=null,tn=null,td=!1,Ou=!1,Iu=0,G9=0;function En(){throw Error(n(321))}function km(i,s){if(s===null)return!1;for(var l=0;l<s.length&&l<i.length;l++)if(!wr(i[l],s[l]))return!1;return!0}function Pm(i,s,l,h,E,b){if(Io=b,Ot=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,ed.current=i===null||i.memoizedState===null?Q9:J9,i=l(h,E),Ou){b=0;do{if(Ou=!1,Iu=0,25<=b)throw Error(n(301));b+=1,tn=Gt=null,s.updateQueue=null,ed.current=Z9,i=l(h,E)}while(Ou)}if(ed.current=id,s=Gt!==null&&Gt.next!==null,Io=0,tn=Gt=Ot=null,td=!1,s)throw Error(n(300));return i}function Nm(){var i=Iu!==0;return Iu=0,i}function Kr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?Ot.memoizedState=tn=i:tn=tn.next=i,tn}function cr(){if(Gt===null){var i=Ot.alternate;i=i!==null?i.memoizedState:null}else i=Gt.next;var s=tn===null?Ot.memoizedState:tn.next;if(s!==null)tn=s,Gt=i;else{if(i===null)throw Error(n(310));Gt=i,i={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},tn===null?Ot.memoizedState=tn=i:tn=tn.next=i}return tn}function Ru(i,s){return typeof s=="function"?s(i):s}function Om(i){var s=cr(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var h=Gt,E=h.baseQueue,b=l.pending;if(b!==null){if(E!==null){var x=E.next;E.next=b.next,b.next=x}h.baseQueue=E=b,l.pending=null}if(E!==null){b=E.next,h=h.baseState;var R=x=null,H=null,J=b;do{var le=J.lane;if((Io&le)===le)H!==null&&(H=H.next={lane:0,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),h=J.hasEagerState?J.eagerState:i(h,J.action);else{var pe={lane:le,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null};H===null?(R=H=pe,x=h):H=H.next=pe,Ot.lanes|=le,Ro|=le}J=J.next}while(J!==null&&J!==b);H===null?x=h:H.next=R,wr(h,s.memoizedState)||(Mn=!0),s.memoizedState=h,s.baseState=x,s.baseQueue=H,l.lastRenderedState=h}if(i=l.interleaved,i!==null){E=i;do b=E.lane,Ot.lanes|=b,Ro|=b,E=E.next;while(E!==i)}else E===null&&(l.lanes=0);return[s.memoizedState,l.dispatch]}function Im(i){var s=cr(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var h=l.dispatch,E=l.pending,b=s.memoizedState;if(E!==null){l.pending=null;var x=E=E.next;do b=i(b,x.action),x=x.next;while(x!==E);wr(b,s.memoizedState)||(Mn=!0),s.memoizedState=b,s.baseQueue===null&&(s.baseState=b),l.lastRenderedState=b}return[b,h]}function Sx(){}function xx(i,s){var l=Ot,h=cr(),E=s(),b=!wr(h.memoizedState,E);if(b&&(h.memoizedState=E,Mn=!0),h=h.queue,Rm(Ax.bind(null,l,h,i),[i]),h.getSnapshot!==s||b||tn!==null&&tn.memoizedState.tag&1){if(l.flags|=2048,Lu(9,Cx.bind(null,l,h,E,s),void 0,null),nn===null)throw Error(n(349));(Io&30)!==0||wx(l,s,E)}return E}function wx(i,s,l){i.flags|=16384,i={getSnapshot:s,value:l},s=Ot.updateQueue,s===null?(s={lastEffect:null,stores:null},Ot.updateQueue=s,s.stores=[i]):(l=s.stores,l===null?s.stores=[i]:l.push(i))}function Cx(i,s,l,h){s.value=l,s.getSnapshot=h,vx(s)&&kx(i)}function Ax(i,s,l){return l(function(){vx(s)&&kx(i)})}function vx(i){var s=i.getSnapshot;i=i.value;try{var l=s();return!wr(i,l)}catch(h){return!0}}function kx(i){var s=mi(i,1);s!==null&&Pr(s,i,1,-1)}function Px(i){var s=Kr();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ru,lastRenderedState:i},s.queue=i,i=i.dispatch=K9.bind(null,Ot,i),[s.memoizedState,i]}function Lu(i,s,l,h){return i={tag:i,create:s,destroy:l,deps:h,next:null},s=Ot.updateQueue,s===null?(s={lastEffect:null,stores:null},Ot.updateQueue=s,s.lastEffect=i.next=i):(l=s.lastEffect,l===null?s.lastEffect=i.next=i:(h=l.next,l.next=i,i.next=h,s.lastEffect=i)),i}function Nx(){return cr().memoizedState}function nd(i,s,l,h){var E=Kr();Ot.flags|=i,E.memoizedState=Lu(1|s,l,void 0,h===void 0?null:h)}function rd(i,s,l,h){var E=cr();h=h===void 0?null:h;var b=void 0;if(Gt!==null){var x=Gt.memoizedState;if(b=x.destroy,h!==null&&km(h,x.deps)){E.memoizedState=Lu(s,l,b,h);return}}Ot.flags|=i,E.memoizedState=Lu(1|s,l,b,h)}function Ox(i,s){return nd(8390656,8,i,s)}function Rm(i,s){return rd(2048,8,i,s)}function Ix(i,s){return rd(4,2,i,s)}function Rx(i,s){return rd(4,4,i,s)}function Lx(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function Dx(i,s,l){return l=l!=null?l.concat([i]):null,rd(4,4,Lx.bind(null,s,i),l)}function Lm(){}function Mx(i,s){var l=cr();s=s===void 0?null:s;var h=l.memoizedState;return h!==null&&s!==null&&km(s,h[1])?h[0]:(l.memoizedState=[i,s],i)}function Fx(i,s){var l=cr();s=s===void 0?null:s;var h=l.memoizedState;return h!==null&&s!==null&&km(s,h[1])?h[0]:(i=i(),l.memoizedState=[i,s],i)}function Bx(i,s,l){return(Io&21)===0?(i.baseState&&(i.baseState=!1,Mn=!0),i.memoizedState=l):(wr(l,s)||(l=pS(),Ot.lanes|=l,Ro|=l,i.baseState=!0),s)}function W9(i,s){var l=ct;ct=l!==0&&4>l?l:4,i(!0);var h=vm.transition;vm.transition={};try{i(!1),s()}finally{ct=l,vm.transition=h}}function Ux(){return cr().memoizedState}function X9(i,s,l){var h=Xi(i);if(l={lane:h,action:l,hasEagerState:!1,eagerState:null,next:null},Hx(i))zx(s,l);else if(l=Ex(i,s,l,h),l!==null){var E=Cn();Pr(l,i,h,E),jx(l,s,h)}}function K9(i,s,l){var h=Xi(i),E={lane:h,action:l,hasEagerState:!1,eagerState:null,next:null};if(Hx(i))zx(s,E);else{var b=i.alternate;if(i.lanes===0&&(b===null||b.lanes===0)&&(b=s.lastRenderedReducer,b!==null))try{var x=s.lastRenderedState,R=b(x,l);if(E.hasEagerState=!0,E.eagerState=R,wr(R,x)){var H=s.interleaved;H===null?(E.next=E,_m(s)):(E.next=H.next,H.next=E),s.interleaved=E;return}}catch(J){}l=Ex(i,s,E,h),l!==null&&(E=Cn(),Pr(l,i,h,E),jx(l,s,h))}}function Hx(i){var s=i.alternate;return i===Ot||s!==null&&s===Ot}function zx(i,s){Ou=td=!0;var l=i.pending;l===null?s.next=s:(s.next=l.next,l.next=s),i.pending=s}function jx(i,s,l){if((l&4194240)!==0){var h=s.lanes;h&=i.pendingLanes,l|=h,s.lanes=l,Mp(i,l)}}var id={readContext:lr,useCallback:En,useContext:En,useEffect:En,useImperativeHandle:En,useInsertionEffect:En,useLayoutEffect:En,useMemo:En,useReducer:En,useRef:En,useState:En,useDebugValue:En,useDeferredValue:En,useTransition:En,useMutableSource:En,useSyncExternalStore:En,useId:En,unstable_isNewReconciler:!1},Q9={readContext:lr,useCallback:function(i,s){return Kr().memoizedState=[i,s===void 0?null:s],i},useContext:lr,useEffect:Ox,useImperativeHandle:function(i,s,l){return l=l!=null?l.concat([i]):null,nd(4194308,4,Lx.bind(null,s,i),l)},useLayoutEffect:function(i,s){return nd(4194308,4,i,s)},useInsertionEffect:function(i,s){return nd(4,2,i,s)},useMemo:function(i,s){var l=Kr();return s=s===void 0?null:s,i=i(),l.memoizedState=[i,s],i},useReducer:function(i,s,l){var h=Kr();return s=l!==void 0?l(s):s,h.memoizedState=h.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},h.queue=i,i=i.dispatch=X9.bind(null,Ot,i),[h.memoizedState,i]},useRef:function(i){var s=Kr();return i={current:i},s.memoizedState=i},useState:Px,useDebugValue:Lm,useDeferredValue:function(i){return Kr().memoizedState=i},useTransition:function(){var i=Px(!1),s=i[0];return i=W9.bind(null,i[1]),Kr().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,l){var h=Ot,E=Kr();if(kt){if(l===void 0)throw Error(n(407));l=l()}else{if(l=s(),nn===null)throw Error(n(349));(Io&30)!==0||wx(h,s,l)}E.memoizedState=l;var b={value:l,getSnapshot:s};return E.queue=b,Ox(Ax.bind(null,h,b,i),[i]),h.flags|=2048,Lu(9,Cx.bind(null,h,b,l,s),void 0,null),l},useId:function(){var i=Kr(),s=nn.identifierPrefix;if(kt){var l=pi,h=hi;l=(h&~(1<<32-xr(h)-1)).toString(32)+l,s=":"+s+"R"+l,l=Iu++,0<l&&(s+="H"+l.toString(32)),s+=":"}else l=G9++,s=":"+s+"r"+l.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},J9={readContext:lr,useCallback:Mx,useContext:lr,useEffect:Rm,useImperativeHandle:Dx,useInsertionEffect:Ix,useLayoutEffect:Rx,useMemo:Fx,useReducer:Om,useRef:Nx,useState:function(){return Om(Ru)},useDebugValue:Lm,useDeferredValue:function(i){var s=cr();return Bx(s,Gt.memoizedState,i)},useTransition:function(){var i=Om(Ru)[0],s=cr().memoizedState;return[i,s]},useMutableSource:Sx,useSyncExternalStore:xx,useId:Ux,unstable_isNewReconciler:!1},Z9={readContext:lr,useCallback:Mx,useContext:lr,useEffect:Rm,useImperativeHandle:Dx,useInsertionEffect:Ix,useLayoutEffect:Rx,useMemo:Fx,useReducer:Im,useRef:Nx,useState:function(){return Im(Ru)},useDebugValue:Lm,useDeferredValue:function(i){var s=cr();return Gt===null?s.memoizedState=i:Bx(s,Gt.memoizedState,i)},useTransition:function(){var i=Im(Ru)[0],s=cr().memoizedState;return[i,s]},useMutableSource:Sx,useSyncExternalStore:xx,useId:Ux,unstable_isNewReconciler:!1};function Ar(i,s){if(i&&i.defaultProps){s=A({},s),i=i.defaultProps;for(var l in i)s[l]===void 0&&(s[l]=i[l]);return s}return s}function Dm(i,s,l,h){s=i.memoizedState,l=l(h,s),l=l==null?s:A({},s,l),i.memoizedState=l,i.lanes===0&&(i.updateQueue.baseState=l)}var od={isMounted:function(i){return(i=i._reactInternals)?Co(i)===i:!1},enqueueSetState:function(i,s,l){i=i._reactInternals;var h=Cn(),E=Xi(i),b=gi(h,E);b.payload=s,l!=null&&(b.callback=l),s=qi(i,b,E),s!==null&&(Pr(s,i,E,h),Qc(s,i,E))},enqueueReplaceState:function(i,s,l){i=i._reactInternals;var h=Cn(),E=Xi(i),b=gi(h,E);b.tag=1,b.payload=s,l!=null&&(b.callback=l),s=qi(i,b,E),s!==null&&(Pr(s,i,E,h),Qc(s,i,E))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var l=Cn(),h=Xi(i),E=gi(l,h);E.tag=2,s!=null&&(E.callback=s),s=qi(i,E,h),s!==null&&(Pr(s,i,h,l),Qc(s,i,h))}};function $x(i,s,l,h,E,b,x){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,b,x):s.prototype&&s.prototype.isPureReactComponent?!Tu(l,h)||!Tu(E,b):!0}function Vx(i,s,l){var h=!1,E=ji,b=s.contextType;return typeof b=="object"&&b!==null?b=lr(b):(E=Dn(s)?vo:gn.current,h=s.contextTypes,b=(h=h!=null)?zs(i,E):ji),s=new s(l,b),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=od,i.stateNode=s,s._reactInternals=i,h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=E,i.__reactInternalMemoizedMaskedChildContext=b),s}function qx(i,s,l,h){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,h),s.state!==i&&od.enqueueReplaceState(s,s.state,null)}function Mm(i,s,l,h){var E=i.stateNode;E.props=l,E.state=i.memoizedState,E.refs={},Sm(i);var b=s.contextType;typeof b=="object"&&b!==null?E.context=lr(b):(b=Dn(s)?vo:gn.current,E.context=zs(i,b)),E.state=i.memoizedState,b=s.getDerivedStateFromProps,typeof b=="function"&&(Dm(i,s,b,l),E.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(s=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),s!==E.state&&od.enqueueReplaceState(E,E.state,null),Jc(i,l,E,h),E.state=i.memoizedState),typeof E.componentDidMount=="function"&&(i.flags|=4194308)}function Xs(i,s){try{var l="",h=s;do l+=Ie(h),h=h.return;while(h);var E=l}catch(b){E=`
16
16
  Error generating stack: `+b.message+`
17
- `+b.stack}return{value:i,source:s,stack:E,digest:null}}function Fm(i,s,l){return{value:i,source:null,stack:l!=null?l:null,digest:s!=null?s:null}}function Bm(i,s){try{console.error(s.value)}catch(l){setTimeout(function(){throw l})}}var e7=typeof WeakMap=="function"?WeakMap:Map;function Yx(i,s,l){l=gi(-1,l),l.tag=3,l.payload={element:null};var h=s.value;return l.callback=function(){fd||(fd=!0,Zm=h),Bm(i,s)},l}function Gx(i,s,l){l=gi(-1,l),l.tag=3;var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var E=s.value;l.payload=function(){return h(E)},l.callback=function(){Bm(i,s)}}var b=i.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(l.callback=function(){Bm(i,s),typeof h!="function"&&(Gi===null?Gi=new Set([this]):Gi.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})}),l}function Wx(i,s,l){var h=i.pingCache;if(h===null){h=i.pingCache=new e7;var E=new Set;h.set(s,E)}else E=h.get(s),E===void 0&&(E=new Set,h.set(s,E));E.has(l)||(E.add(l),i=p7.bind(null,i,s,l),s.then(i,i))}function Xx(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function Kx(i,s,l,h,E){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(s=gi(-1,1),s.tag=2,qi(l,s,1))),l.lanes|=1),i):(i.flags|=65536,i.lanes=E,i)}var t7=M.ReactCurrentOwner,Mn=!1;function wn(i,s,l,h){s.child=i===null?gx(s,null,l,h):qs(s,i.child,l,h)}function Qx(i,s,l,h,E){l=l.render;var b=s.ref;return Gs(s,E),h=Pm(i,s,l,h,b,E),l=Nm(),i!==null&&!Mn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~E,Ei(i,s,E)):(kt&&l&&fm(s),s.flags|=1,wn(i,s,h,E),s.child)}function Jx(i,s,l,h,E){if(i===null){var b=l.type;return typeof b=="function"&&!s0(b)&&b.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(s.tag=15,s.type=b,Zx(i,s,b,h,E)):(i=yd(l.type,null,h,s,s.mode,E),i.ref=s.ref,i.return=s,s.child=i)}if(b=i.child,(i.lanes&E)===0){var x=b.memoizedProps;if(l=l.compare,l=l!==null?l:Tu,l(x,h)&&i.ref===s.ref)return Ei(i,s,E)}return s.flags|=1,i=Qi(b,h),i.ref=s.ref,i.return=s,s.child=i}function Zx(i,s,l,h,E){if(i!==null){var b=i.memoizedProps;if(Tu(b,h)&&i.ref===s.ref)if(Mn=!1,s.pendingProps=h=b,(i.lanes&E)!==0)(i.flags&131072)!==0&&(Mn=!0);else return s.lanes=i.lanes,Ei(i,s,E)}return Um(i,s,l,h,E)}function e2(i,s,l){var h=s.pendingProps,E=h.children,b=i!==null?i.memoizedState:null;if(h.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tt(Qs,Xn),Xn|=l;else{if((l&1073741824)===0)return i=b!==null?b.baseLanes|l:l,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,Tt(Qs,Xn),Xn|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=b!==null?b.baseLanes:l,Tt(Qs,Xn),Xn|=h}else b!==null?(h=b.baseLanes|l,s.memoizedState=null):h=l,Tt(Qs,Xn),Xn|=h;return wn(i,s,E,l),s.child}function t2(i,s){var l=s.ref;(i===null&&l!==null||i!==null&&i.ref!==l)&&(s.flags|=512,s.flags|=2097152)}function Um(i,s,l,h,E){var b=Dn(l)?vo:gn.current;return b=zs(s,b),Gs(s,E),l=Pm(i,s,l,h,b,E),h=Nm(),i!==null&&!Mn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~E,Ei(i,s,E)):(kt&&h&&fm(s),s.flags|=1,wn(i,s,l,E),s.child)}function n2(i,s,l,h,E){if(Dn(l)){var b=!0;$c(s)}else b=!1;if(Gs(s,E),s.stateNode===null)ad(i,s),Vx(s,l,h),Mm(s,l,h,E),h=!0;else if(i===null){var x=s.stateNode,R=s.memoizedProps;x.props=R;var H=x.context,J=l.contextType;typeof J=="object"&&J!==null?J=lr(J):(J=Dn(l)?vo:gn.current,J=zs(s,J));var le=l.getDerivedStateFromProps,pe=typeof le=="function"||typeof x.getSnapshotBeforeUpdate=="function";pe||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R!==h||H!==J)&&qx(s,x,h,J),Vi=!1;var se=s.memoizedState;x.state=se,Jc(s,h,x,E),H=s.memoizedState,R!==h||se!==H||Ln.current||Vi?(typeof le=="function"&&(Dm(s,l,le,h),H=s.memoizedState),(R=Vi||$x(s,l,R,h,se,H,J))?(pe||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(s.flags|=4194308)):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=H),x.props=h,x.state=H,x.context=J,h=R):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{x=s.stateNode,yx(i,s),R=s.memoizedProps,J=s.type===s.elementType?R:Ar(s.type,R),x.props=J,pe=s.pendingProps,se=x.context,H=l.contextType,typeof H=="object"&&H!==null?H=lr(H):(H=Dn(l)?vo:gn.current,H=zs(s,H));var xe=l.getDerivedStateFromProps;(le=typeof xe=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R!==pe||se!==H)&&qx(s,x,h,H),Vi=!1,se=s.memoizedState,x.state=se,Jc(s,h,x,E);var ke=s.memoizedState;R!==pe||se!==ke||Ln.current||Vi?(typeof xe=="function"&&(Dm(s,l,xe,h),ke=s.memoizedState),(J=Vi||$x(s,l,J,h,se,ke,H)||!1)?(le||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(h,ke,H),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(h,ke,H)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||R===i.memoizedProps&&se===i.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&se===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ke),x.props=h,x.state=ke,x.context=H,h=J):(typeof x.componentDidUpdate!="function"||R===i.memoizedProps&&se===i.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&se===i.memoizedState||(s.flags|=1024),h=!1)}return Hm(i,s,l,h,b,E)}function Hm(i,s,l,h,E,b){t2(i,s);var x=(s.flags&128)!==0;if(!h&&!x)return E&&ax(s,l,!1),Ei(i,s,b);h=s.stateNode,t7.current=s;var R=x&&typeof l.getDerivedStateFromError!="function"?null:h.render();return s.flags|=1,i!==null&&x?(s.child=qs(s,i.child,null,b),s.child=qs(s,null,R,b)):wn(i,s,R,b),s.memoizedState=h.state,E&&ax(s,l,!0),s.child}function r2(i){var s=i.stateNode;s.pendingContext?ox(i,s.pendingContext,s.pendingContext!==s.context):s.context&&ox(i,s.context,!1),xm(i,s.containerInfo)}function i2(i,s,l,h,E){return Vs(),gm(E),s.flags|=256,wn(i,s,l,h),s.child}var zm={dehydrated:null,treeContext:null,retryLane:0};function jm(i){return{baseLanes:i,cachePool:null,transitions:null}}function o2(i,s,l){var h=s.pendingProps,E=Nt.current,b=!1,x=(s.flags&128)!==0,R;if((R=x)||(R=i!==null&&i.memoizedState===null?!1:(E&2)!==0),R?(b=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(E|=1),Tt(Nt,E&1),i===null)return mm(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(x=h.children,i=h.fallback,b?(h=s.mode,b=s.child,x={mode:"hidden",children:x},(h&1)===0&&b!==null?(b.childLanes=0,b.pendingProps=x):b=bd(x,h,0,null),i=Fo(i,h,l,null),b.return=s,i.return=s,b.sibling=i,s.child=b,s.child.memoizedState=jm(l),s.memoizedState=zm,i):$m(s,x));if(E=i.memoizedState,E!==null&&(R=E.dehydrated,R!==null))return n7(i,s,x,h,R,E,l);if(b){b=h.fallback,x=s.mode,E=i.child,R=E.sibling;var H={mode:"hidden",children:h.children};return(x&1)===0&&s.child!==E?(h=s.child,h.childLanes=0,h.pendingProps=H,s.deletions=null):(h=Qi(E,H),h.subtreeFlags=E.subtreeFlags&14680064),R!==null?b=Qi(R,b):(b=Fo(b,x,l,null),b.flags|=2),b.return=s,h.return=s,h.sibling=b,s.child=h,h=b,b=s.child,x=i.child.memoizedState,x=x===null?jm(l):{baseLanes:x.baseLanes|l,cachePool:null,transitions:x.transitions},b.memoizedState=x,b.childLanes=i.childLanes&~l,s.memoizedState=zm,h}return b=i.child,i=b.sibling,h=Qi(b,{mode:"visible",children:h.children}),(s.mode&1)===0&&(h.lanes=l),h.return=s,h.sibling=null,i!==null&&(l=s.deletions,l===null?(s.deletions=[i],s.flags|=16):l.push(i)),s.child=h,s.memoizedState=null,h}function $m(i,s){return s=bd({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function sd(i,s,l,h){return h!==null&&gm(h),qs(s,i.child,null,l),i=$m(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function n7(i,s,l,h,E,b,x){if(l)return s.flags&256?(s.flags&=-257,h=Fm(Error(n(422))),sd(i,s,x,h)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(b=h.fallback,E=s.mode,h=bd({mode:"visible",children:h.children},E,0,null),b=Fo(b,E,x,null),b.flags|=2,h.return=s,b.return=s,h.sibling=b,s.child=h,(s.mode&1)!==0&&qs(s,i.child,null,x),s.child.memoizedState=jm(x),s.memoizedState=zm,b);if((s.mode&1)===0)return sd(i,s,x,null);if(E.data==="$!"){if(h=E.nextSibling&&E.nextSibling.dataset,h)var R=h.dgst;return h=R,b=Error(n(419)),h=Fm(b,h,void 0),sd(i,s,x,h)}if(R=(x&i.childLanes)!==0,Mn||R){if(h=nn,h!==null){switch(x&-x){case 4:E=2;break;case 16:E=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:E=32;break;case 536870912:E=268435456;break;default:E=0}E=(E&(h.suspendedLanes|x))!==0?0:E,E!==0&&E!==b.retryLane&&(b.retryLane=E,mi(i,E),Pr(h,i,E,-1))}return o0(),h=Fm(Error(n(421))),sd(i,s,x,h)}return E.data==="$?"?(s.flags|=128,s.child=i.child,s=m7.bind(null,i),E._reactRetry=s,null):(i=b.treeContext,Wn=Hi(E.nextSibling),Gn=s,kt=!0,Cr=null,i!==null&&(ar[ur++]=hi,ar[ur++]=pi,ar[ur++]=ko,hi=i.id,pi=i.overflow,ko=s),s=$m(s,h.children),s.flags|=4096,s)}function s2(i,s,l){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),Tm(i.return,s,l)}function Vm(i,s,l,h,E){var b=i.memoizedState;b===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:l,tailMode:E}:(b.isBackwards=s,b.rendering=null,b.renderingStartTime=0,b.last=h,b.tail=l,b.tailMode=E)}function a2(i,s,l){var h=s.pendingProps,E=h.revealOrder,b=h.tail;if(wn(i,s,h.children,l),h=Nt.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&s2(i,l,s);else if(i.tag===19)s2(i,l,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}if(Tt(Nt,h),(s.mode&1)===0)s.memoizedState=null;else switch(E){case"forwards":for(l=s.child,E=null;l!==null;)i=l.alternate,i!==null&&Zc(i)===null&&(E=l),l=l.sibling;l=E,l===null?(E=s.child,s.child=null):(E=l.sibling,l.sibling=null),Vm(s,!1,E,l,b);break;case"backwards":for(l=null,E=s.child,s.child=null;E!==null;){if(i=E.alternate,i!==null&&Zc(i)===null){s.child=E;break}i=E.sibling,E.sibling=l,l=E,E=i}Vm(s,!0,l,null,b);break;case"together":Vm(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ad(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function Ei(i,s,l){if(i!==null&&(s.dependencies=i.dependencies),Ro|=s.lanes,(l&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,l=Qi(i,i.pendingProps),s.child=l,l.return=s;i.sibling!==null;)i=i.sibling,l=l.sibling=Qi(i,i.pendingProps),l.return=s;l.sibling=null}return s.child}function r7(i,s,l){switch(s.tag){case 3:r2(s),Vs();break;case 5:_x(s);break;case 1:Dn(s.type)&&$c(s);break;case 4:xm(s,s.stateNode.containerInfo);break;case 10:var h=s.type._context,E=s.memoizedProps.value;Tt(Xc,h._currentValue),h._currentValue=E;break;case 13:if(h=s.memoizedState,h!==null)return h.dehydrated!==null?(Tt(Nt,Nt.current&1),s.flags|=128,null):(l&s.child.childLanes)!==0?o2(i,s,l):(Tt(Nt,Nt.current&1),i=Ei(i,s,l),i!==null?i.sibling:null);Tt(Nt,Nt.current&1);break;case 19:if(h=(l&s.childLanes)!==0,(i.flags&128)!==0){if(h)return a2(i,s,l);s.flags|=128}if(E=s.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),Tt(Nt,Nt.current),h)break;return null;case 22:case 23:return s.lanes=0,e2(i,s,l)}return Ei(i,s,l)}var u2,qm,l2,c2;u2=function(i,s){for(var l=s.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},qm=function(){},l2=function(i,s,l,h){var E=i.memoizedProps;if(E!==h){i=s.stateNode,Oo(Xr.current);var b=null;switch(l){case"input":E=Rn(i,E),h=Rn(i,h),b=[];break;case"select":E=A({},E,{value:void 0}),h=A({},h,{value:void 0}),b=[];break;case"textarea":E=ft(i,E),h=ft(i,h),b=[];break;default:typeof E.onClick!="function"&&typeof h.onClick=="function"&&(i.onclick=Hc)}sn(l,h);var x;l=null;for(J in E)if(!h.hasOwnProperty(J)&&E.hasOwnProperty(J)&&E[J]!=null)if(J==="style"){var R=E[J];for(x in R)R.hasOwnProperty(x)&&(l||(l={}),l[x]="")}else J!=="dangerouslySetInnerHTML"&&J!=="children"&&J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&J!=="autoFocus"&&(o.hasOwnProperty(J)?b||(b=[]):(b=b||[]).push(J,null));for(J in h){var H=h[J];if(R=E!=null?E[J]:void 0,h.hasOwnProperty(J)&&H!==R&&(H!=null||R!=null))if(J==="style")if(R){for(x in R)!R.hasOwnProperty(x)||H&&H.hasOwnProperty(x)||(l||(l={}),l[x]="");for(x in H)H.hasOwnProperty(x)&&R[x]!==H[x]&&(l||(l={}),l[x]=H[x])}else l||(b||(b=[]),b.push(J,l)),l=H;else J==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,R=R?R.__html:void 0,H!=null&&R!==H&&(b=b||[]).push(J,H)):J==="children"?typeof H!="string"&&typeof H!="number"||(b=b||[]).push(J,""+H):J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&(o.hasOwnProperty(J)?(H!=null&&J==="onScroll"&&St("scroll",i),b||R===H||(b=[])):(b=b||[]).push(J,H))}l&&(b=b||[]).push("style",l);var J=b;(s.updateQueue=J)&&(s.flags|=4)}},c2=function(i,s,l,h){l!==h&&(s.flags|=4)};function Du(i,s){if(!kt)switch(i.tailMode){case"hidden":s=i.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?i.tail=null:l.sibling=null;break;case"collapsed":l=i.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function yn(i){var s=i.alternate!==null&&i.alternate.child===i.child,l=0,h=0;if(s)for(var E=i.child;E!==null;)l|=E.lanes|E.childLanes,h|=E.subtreeFlags&14680064,h|=E.flags&14680064,E.return=i,E=E.sibling;else for(E=i.child;E!==null;)l|=E.lanes|E.childLanes,h|=E.subtreeFlags,h|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=h,i.childLanes=l,s}function i7(i,s,l){var h=s.pendingProps;switch(hm(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yn(s),null;case 1:return Dn(s.type)&&jc(),yn(s),null;case 3:return h=s.stateNode,Ws(),xt(Ln),xt(gn),Am(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(i===null||i.child===null)&&(Gc(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Cr!==null&&(n0(Cr),Cr=null))),qm(i,s),yn(s),null;case 5:wm(s);var E=Oo(Nu.current);if(l=s.type,i!==null&&s.stateNode!=null)l2(i,s,l,h,E),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!h){if(s.stateNode===null)throw Error(n(166));return yn(s),null}if(i=Oo(Xr.current),Gc(s)){h=s.stateNode,l=s.type;var b=s.memoizedProps;switch(h[Wr]=s,h[Cu]=b,i=(s.mode&1)!==0,l){case"dialog":St("cancel",h),St("close",h);break;case"iframe":case"object":case"embed":St("load",h);break;case"video":case"audio":for(E=0;E<Su.length;E++)St(Su[E],h);break;case"source":St("error",h);break;case"img":case"image":case"link":St("error",h),St("load",h);break;case"details":St("toggle",h);break;case"input":xo(h,b),St("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!b.multiple},St("invalid",h);break;case"textarea":lt(h,b),St("invalid",h)}sn(l,b),E=null;for(var x in b)if(b.hasOwnProperty(x)){var R=b[x];x==="children"?typeof R=="string"?h.textContent!==R&&(b.suppressHydrationWarning!==!0&&Uc(h.textContent,R,i),E=["children",R]):typeof R=="number"&&h.textContent!==""+R&&(b.suppressHydrationWarning!==!0&&Uc(h.textContent,R,i),E=["children",""+R]):o.hasOwnProperty(x)&&R!=null&&x==="onScroll"&&St("scroll",h)}switch(l){case"input":on(h),ve(h,b,!0);break;case"textarea":on(h),vt(h);break;case"select":case"option":break;default:typeof b.onClick=="function"&&(h.onclick=Hc)}h=E,s.updateQueue=h,h!==null&&(s.flags|=4)}else{x=E.nodeType===9?E:E.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=ne(l)),i==="http://www.w3.org/1999/xhtml"?l==="script"?(i=x.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof h.is=="string"?i=x.createElement(l,{is:h.is}):(i=x.createElement(l),l==="select"&&(x=i,h.multiple?x.multiple=!0:h.size&&(x.size=h.size))):i=x.createElementNS(i,l),i[Wr]=s,i[Cu]=h,u2(i,s,!1,!1),s.stateNode=i;e:{switch(x=Yr(l,h),l){case"dialog":St("cancel",i),St("close",i),E=h;break;case"iframe":case"object":case"embed":St("load",i),E=h;break;case"video":case"audio":for(E=0;E<Su.length;E++)St(Su[E],i);E=h;break;case"source":St("error",i),E=h;break;case"img":case"image":case"link":St("error",i),St("load",i),E=h;break;case"details":St("toggle",i),E=h;break;case"input":xo(i,h),E=Rn(i,h),St("invalid",i);break;case"option":E=h;break;case"select":i._wrapperState={wasMultiple:!!h.multiple},E=A({},h,{value:void 0}),St("invalid",i);break;case"textarea":lt(i,h),E=ft(i,h),St("invalid",i);break;default:E=h}sn(l,E),R=E;for(b in R)if(R.hasOwnProperty(b)){var H=R[b];b==="style"?Ri(i,H):b==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,H!=null&&Ve(i,H)):b==="children"?typeof H=="string"?(l!=="textarea"||H!=="")&&Xe(i,H):typeof H=="number"&&Xe(i,""+H):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(o.hasOwnProperty(b)?H!=null&&b==="onScroll"&&St("scroll",i):H!=null&&C(i,b,H,x))}switch(l){case"input":on(i),ve(i,h,!1);break;case"textarea":on(i),vt(i);break;case"option":h.value!=null&&i.setAttribute("value",""+we(h.value));break;case"select":i.multiple=!!h.multiple,b=h.value,b!=null?Qe(i,!!h.multiple,b,!1):h.defaultValue!=null&&Qe(i,!!h.multiple,h.defaultValue,!0);break;default:typeof E.onClick=="function"&&(i.onclick=Hc)}switch(l){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return yn(s),null;case 6:if(i&&s.stateNode!=null)c2(i,s,i.memoizedProps,h);else{if(typeof h!="string"&&s.stateNode===null)throw Error(n(166));if(l=Oo(Nu.current),Oo(Xr.current),Gc(s)){if(h=s.stateNode,l=s.memoizedProps,h[Wr]=s,(b=h.nodeValue!==l)&&(i=Gn,i!==null))switch(i.tag){case 3:Uc(h.nodeValue,l,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Uc(h.nodeValue,l,(i.mode&1)!==0)}b&&(s.flags|=4)}else h=(l.nodeType===9?l:l.ownerDocument).createTextNode(h),h[Wr]=s,s.stateNode=h}return yn(s),null;case 13:if(xt(Nt),h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(kt&&Wn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)hx(),Vs(),s.flags|=98560,b=!1;else if(b=Gc(s),h!==null&&h.dehydrated!==null){if(i===null){if(!b)throw Error(n(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(n(317));b[Wr]=s}else Vs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;yn(s),b=!1}else Cr!==null&&(n0(Cr),Cr=null),b=!0;if(!b)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=l,s):(h=h!==null,h!==(i!==null&&i.memoizedState!==null)&&h&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(Nt.current&1)!==0?Wt===0&&(Wt=3):o0())),s.updateQueue!==null&&(s.flags|=4),yn(s),null);case 4:return Ws(),qm(i,s),i===null&&xu(s.stateNode.containerInfo),yn(s),null;case 10:return bm(s.type._context),yn(s),null;case 17:return Dn(s.type)&&jc(),yn(s),null;case 19:if(xt(Nt),b=s.memoizedState,b===null)return yn(s),null;if(h=(s.flags&128)!==0,x=b.rendering,x===null)if(h)Du(b,!1);else{if(Wt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(x=Zc(i),x!==null){for(s.flags|=128,Du(b,!1),h=x.updateQueue,h!==null&&(s.updateQueue=h,s.flags|=4),s.subtreeFlags=0,h=l,l=s.child;l!==null;)b=l,i=h,b.flags&=14680066,x=b.alternate,x===null?(b.childLanes=0,b.lanes=i,b.child=null,b.subtreeFlags=0,b.memoizedProps=null,b.memoizedState=null,b.updateQueue=null,b.dependencies=null,b.stateNode=null):(b.childLanes=x.childLanes,b.lanes=x.lanes,b.child=x.child,b.subtreeFlags=0,b.deletions=null,b.memoizedProps=x.memoizedProps,b.memoizedState=x.memoizedState,b.updateQueue=x.updateQueue,b.type=x.type,i=x.dependencies,b.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),l=l.sibling;return Tt(Nt,Nt.current&1|2),s.child}i=i.sibling}b.tail!==null&&Ft()>Js&&(s.flags|=128,h=!0,Du(b,!1),s.lanes=4194304)}else{if(!h)if(i=Zc(x),i!==null){if(s.flags|=128,h=!0,l=i.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),Du(b,!0),b.tail===null&&b.tailMode==="hidden"&&!x.alternate&&!kt)return yn(s),null}else 2*Ft()-b.renderingStartTime>Js&&l!==1073741824&&(s.flags|=128,h=!0,Du(b,!1),s.lanes=4194304);b.isBackwards?(x.sibling=s.child,s.child=x):(l=b.last,l!==null?l.sibling=x:s.child=x,b.last=x)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=Ft(),s.sibling=null,l=Nt.current,Tt(Nt,h?l&1|2:l&1),s):(yn(s),null);case 22:case 23:return i0(),h=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==h&&(s.flags|=8192),h&&(s.mode&1)!==0?(Xn&1073741824)!==0&&(yn(s),s.subtreeFlags&6&&(s.flags|=8192)):yn(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function o7(i,s){switch(hm(s),s.tag){case 1:return Dn(s.type)&&jc(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Ws(),xt(Ln),xt(gn),Am(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return wm(s),null;case 13:if(xt(Nt),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Vs()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return xt(Nt),null;case 4:return Ws(),null;case 10:return bm(s.type._context),null;case 22:case 23:return i0(),null;case 24:return null;default:return null}}var ud=!1,bn=!1,s7=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function Ks(i,s){var l=i.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(h){Rt(i,s,h)}else l.current=null}function Ym(i,s,l){try{l()}catch(h){Rt(i,s,h)}}var d2=!1;function a7(i,s){if(im=kc,i=$S(),Kp(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else e:{l=(l=i.ownerDocument)&&l.defaultView||window;var h=l.getSelection&&l.getSelection();if(h&&h.rangeCount!==0){l=h.anchorNode;var E=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{l.nodeType,b.nodeType}catch(ye){l=null;break e}var x=0,R=-1,H=-1,J=0,le=0,pe=i,se=null;t:for(;;){for(var xe;pe!==l||E!==0&&pe.nodeType!==3||(R=x+E),pe!==b||h!==0&&pe.nodeType!==3||(H=x+h),pe.nodeType===3&&(x+=pe.nodeValue.length),(xe=pe.firstChild)!==null;)se=pe,pe=xe;for(;;){if(pe===i)break t;if(se===l&&++J===E&&(R=x),se===b&&++le===h&&(H=x),(xe=pe.nextSibling)!==null)break;pe=se,se=pe.parentNode}pe=xe}l=R===-1||H===-1?null:{start:R,end:H}}else l=null}l=l||{start:0,end:0}}else l=null;for(om={focusedElem:i,selectionRange:l},kc=!1,Ae=s;Ae!==null;)if(s=Ae,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Ae=i;else for(;Ae!==null;){s=Ae;try{var ke=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ke!==null){var Ne=ke.memoizedProps,Bt=ke.memoizedState,Y=s.stateNode,z=Y.getSnapshotBeforeUpdate(s.elementType===s.type?Ne:Ar(s.type,Ne),Bt);Y.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var X=s.stateNode.containerInfo;X.nodeType===1?X.textContent="":X.nodeType===9&&X.documentElement&&X.removeChild(X.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ye){Rt(s,s.return,ye)}if(i=s.sibling,i!==null){i.return=s.return,Ae=i;break}Ae=s.return}return ke=d2,d2=!1,ke}function Mu(i,s,l){var h=s.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var E=h=h.next;do{if((E.tag&i)===i){var b=E.destroy;E.destroy=void 0,b!==void 0&&Ym(s,l,b)}E=E.next}while(E!==h)}}function ld(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&i)===i){var h=l.create;l.destroy=h()}l=l.next}while(l!==s)}}function Gm(i){var s=i.ref;if(s!==null){var l=i.stateNode;i.tag,i=l,typeof s=="function"?s(i):s.current=i}}function f2(i){var s=i.alternate;s!==null&&(i.alternate=null,f2(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[Wr],delete s[Cu],delete s[lm],delete s[$9],delete s[V9])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function h2(i){return i.tag===5||i.tag===3||i.tag===4}function p2(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||h2(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Wm(i,s,l){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?l.nodeType===8?l.parentNode.insertBefore(i,s):l.insertBefore(i,s):(l.nodeType===8?(s=l.parentNode,s.insertBefore(i,l)):(s=l,s.appendChild(i)),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=Hc));else if(h!==4&&(i=i.child,i!==null))for(Wm(i,s,l),i=i.sibling;i!==null;)Wm(i,s,l),i=i.sibling}function Xm(i,s,l){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?l.insertBefore(i,s):l.appendChild(i);else if(h!==4&&(i=i.child,i!==null))for(Xm(i,s,l),i=i.sibling;i!==null;)Xm(i,s,l),i=i.sibling}var an=null,vr=!1;function Yi(i,s,l){for(l=l.child;l!==null;)m2(i,s,l),l=l.sibling}function m2(i,s,l){if(Gr&&typeof Gr.onCommitFiberUnmount=="function")try{Gr.onCommitFiberUnmount(Sc,l)}catch(R){}switch(l.tag){case 5:bn||Ks(l,s);case 6:var h=an,E=vr;an=null,Yi(i,s,l),an=h,vr=E,an!==null&&(vr?(i=an,l=l.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):an.removeChild(l.stateNode));break;case 18:an!==null&&(vr?(i=an,l=l.stateNode,i.nodeType===8?um(i.parentNode,l):i.nodeType===1&&um(i,l),pu(i)):um(an,l.stateNode));break;case 4:h=an,E=vr,an=l.stateNode.containerInfo,vr=!0,Yi(i,s,l),an=h,vr=E;break;case 0:case 11:case 14:case 15:if(!bn&&(h=l.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){E=h=h.next;do{var b=E,x=b.destroy;b=b.tag,x!==void 0&&((b&2)!==0||(b&4)!==0)&&Ym(l,s,x),E=E.next}while(E!==h)}Yi(i,s,l);break;case 1:if(!bn&&(Ks(l,s),h=l.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=l.memoizedProps,h.state=l.memoizedState,h.componentWillUnmount()}catch(R){Rt(l,s,R)}Yi(i,s,l);break;case 21:Yi(i,s,l);break;case 22:l.mode&1?(bn=(h=bn)||l.memoizedState!==null,Yi(i,s,l),bn=h):Yi(i,s,l);break;default:Yi(i,s,l)}}function g2(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var l=i.stateNode;l===null&&(l=i.stateNode=new s7),s.forEach(function(h){var E=g7.bind(null,i,h);l.has(h)||(l.add(h),h.then(E,E))})}}function kr(i,s){var l=s.deletions;if(l!==null)for(var h=0;h<l.length;h++){var E=l[h];try{var b=i,x=s,R=x;e:for(;R!==null;){switch(R.tag){case 5:an=R.stateNode,vr=!1;break e;case 3:an=R.stateNode.containerInfo,vr=!0;break e;case 4:an=R.stateNode.containerInfo,vr=!0;break e}R=R.return}if(an===null)throw Error(n(160));m2(b,x,E),an=null,vr=!1;var H=E.alternate;H!==null&&(H.return=null),E.return=null}catch(J){Rt(E,s,J)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)E2(s,i),s=s.sibling}function E2(i,s){var l=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(kr(s,i),Qr(i),h&4){try{Mu(3,i,i.return),ld(3,i)}catch(Ne){Rt(i,i.return,Ne)}try{Mu(5,i,i.return)}catch(Ne){Rt(i,i.return,Ne)}}break;case 1:kr(s,i),Qr(i),h&512&&l!==null&&Ks(l,l.return);break;case 5:if(kr(s,i),Qr(i),h&512&&l!==null&&Ks(l,l.return),i.flags&32){var E=i.stateNode;try{Xe(E,"")}catch(Ne){Rt(i,i.return,Ne)}}if(h&4&&(E=i.stateNode,E!=null)){var b=i.memoizedProps,x=l!==null?l.memoizedProps:b,R=i.type,H=i.updateQueue;if(i.updateQueue=null,H!==null)try{R==="input"&&b.type==="radio"&&b.name!=null&&Ii(E,b),Yr(R,x);var J=Yr(R,b);for(x=0;x<H.length;x+=2){var le=H[x],pe=H[x+1];le==="style"?Ri(E,pe):le==="dangerouslySetInnerHTML"?Ve(E,pe):le==="children"?Xe(E,pe):C(E,le,pe,J)}switch(R){case"input":ci(E,b);break;case"textarea":xn(E,b);break;case"select":var se=E._wrapperState.wasMultiple;E._wrapperState.wasMultiple=!!b.multiple;var xe=b.value;xe!=null?Qe(E,!!b.multiple,xe,!1):se!==!!b.multiple&&(b.defaultValue!=null?Qe(E,!!b.multiple,b.defaultValue,!0):Qe(E,!!b.multiple,b.multiple?[]:"",!1))}E[Cu]=b}catch(Ne){Rt(i,i.return,Ne)}}break;case 6:if(kr(s,i),Qr(i),h&4){if(i.stateNode===null)throw Error(n(162));E=i.stateNode,b=i.memoizedProps;try{E.nodeValue=b}catch(Ne){Rt(i,i.return,Ne)}}break;case 3:if(kr(s,i),Qr(i),h&4&&l!==null&&l.memoizedState.isDehydrated)try{pu(s.containerInfo)}catch(Ne){Rt(i,i.return,Ne)}break;case 4:kr(s,i),Qr(i);break;case 13:kr(s,i),Qr(i),E=i.child,E.flags&8192&&(b=E.memoizedState!==null,E.stateNode.isHidden=b,!b||E.alternate!==null&&E.alternate.memoizedState!==null||(Jm=Ft())),h&4&&g2(i);break;case 22:if(le=l!==null&&l.memoizedState!==null,i.mode&1?(bn=(J=bn)||le,kr(s,i),bn=J):kr(s,i),Qr(i),h&8192){if(J=i.memoizedState!==null,(i.stateNode.isHidden=J)&&!le&&(i.mode&1)!==0)for(Ae=i,le=i.child;le!==null;){for(pe=Ae=le;Ae!==null;){switch(se=Ae,xe=se.child,se.tag){case 0:case 11:case 14:case 15:Mu(4,se,se.return);break;case 1:Ks(se,se.return);var ke=se.stateNode;if(typeof ke.componentWillUnmount=="function"){h=se,l=se.return;try{s=h,ke.props=s.memoizedProps,ke.state=s.memoizedState,ke.componentWillUnmount()}catch(Ne){Rt(h,l,Ne)}}break;case 5:Ks(se,se.return);break;case 22:if(se.memoizedState!==null){T2(pe);continue}}xe!==null?(xe.return=se,Ae=xe):T2(pe)}le=le.sibling}e:for(le=null,pe=i;;){if(pe.tag===5){if(le===null){le=pe;try{E=pe.stateNode,J?(b=E.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none"):(R=pe.stateNode,H=pe.memoizedProps.style,x=H!=null&&H.hasOwnProperty("display")?H.display:null,R.style.display=sr("display",x))}catch(Ne){Rt(i,i.return,Ne)}}}else if(pe.tag===6){if(le===null)try{pe.stateNode.nodeValue=J?"":pe.memoizedProps}catch(Ne){Rt(i,i.return,Ne)}}else if((pe.tag!==22&&pe.tag!==23||pe.memoizedState===null||pe===i)&&pe.child!==null){pe.child.return=pe,pe=pe.child;continue}if(pe===i)break e;for(;pe.sibling===null;){if(pe.return===null||pe.return===i)break e;le===pe&&(le=null),pe=pe.return}le===pe&&(le=null),pe.sibling.return=pe.return,pe=pe.sibling}}break;case 19:kr(s,i),Qr(i),h&4&&g2(i);break;case 21:break;default:kr(s,i),Qr(i)}}function Qr(i){var s=i.flags;if(s&2){try{e:{for(var l=i.return;l!==null;){if(h2(l)){var h=l;break e}l=l.return}throw Error(n(160))}switch(h.tag){case 5:var E=h.stateNode;h.flags&32&&(Xe(E,""),h.flags&=-33);var b=p2(i);Xm(i,b,E);break;case 3:case 4:var x=h.stateNode.containerInfo,R=p2(i);Wm(i,R,x);break;default:throw Error(n(161))}}catch(H){Rt(i,i.return,H)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function u7(i,s,l){Ae=i,y2(i)}function y2(i,s,l){for(var h=(i.mode&1)!==0;Ae!==null;){var E=Ae,b=E.child;if(E.tag===22&&h){var x=E.memoizedState!==null||ud;if(!x){var R=E.alternate,H=R!==null&&R.memoizedState!==null||bn;R=ud;var J=bn;if(ud=x,(bn=H)&&!J)for(Ae=E;Ae!==null;)x=Ae,H=x.child,x.tag===22&&x.memoizedState!==null?_2(E):H!==null?(H.return=x,Ae=H):_2(E);for(;b!==null;)Ae=b,y2(b),b=b.sibling;Ae=E,ud=R,bn=J}b2(i)}else(E.subtreeFlags&8772)!==0&&b!==null?(b.return=E,Ae=b):b2(i)}}function b2(i){for(;Ae!==null;){var s=Ae;if((s.flags&8772)!==0){var l=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:bn||ld(5,s);break;case 1:var h=s.stateNode;if(s.flags&4&&!bn)if(l===null)h.componentDidMount();else{var E=s.elementType===s.type?l.memoizedProps:Ar(s.type,l.memoizedProps);h.componentDidUpdate(E,l.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var b=s.updateQueue;b!==null&&Tx(s,b,h);break;case 3:var x=s.updateQueue;if(x!==null){if(l=null,s.child!==null)switch(s.child.tag){case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}Tx(s,x,l)}break;case 5:var R=s.stateNode;if(l===null&&s.flags&4){l=R;var H=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":H.autoFocus&&l.focus();break;case"img":H.src&&(l.src=H.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var J=s.alternate;if(J!==null){var le=J.memoizedState;if(le!==null){var pe=le.dehydrated;pe!==null&&pu(pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}bn||s.flags&512&&Gm(s)}catch(se){Rt(s,s.return,se)}}if(s===i){Ae=null;break}if(l=s.sibling,l!==null){l.return=s.return,Ae=l;break}Ae=s.return}}function T2(i){for(;Ae!==null;){var s=Ae;if(s===i){Ae=null;break}var l=s.sibling;if(l!==null){l.return=s.return,Ae=l;break}Ae=s.return}}function _2(i){for(;Ae!==null;){var s=Ae;try{switch(s.tag){case 0:case 11:case 15:var l=s.return;try{ld(4,s)}catch(H){Rt(s,l,H)}break;case 1:var h=s.stateNode;if(typeof h.componentDidMount=="function"){var E=s.return;try{h.componentDidMount()}catch(H){Rt(s,E,H)}}var b=s.return;try{Gm(s)}catch(H){Rt(s,b,H)}break;case 5:var x=s.return;try{Gm(s)}catch(H){Rt(s,x,H)}}}catch(H){Rt(s,s.return,H)}if(s===i){Ae=null;break}var R=s.sibling;if(R!==null){R.return=s.return,Ae=R;break}Ae=s.return}}var l7=Math.ceil,cd=M.ReactCurrentDispatcher,Km=M.ReactCurrentOwner,dr=M.ReactCurrentBatchConfig,it=0,nn=null,Vt=null,un=0,Xn=0,Qs=zi(0),Wt=0,Fu=null,Ro=0,dd=0,Qm=0,Bu=null,Fn=null,Jm=0,Js=1/0,yi=null,fd=!1,Zm=null,Gi=null,hd=!1,Wi=null,pd=0,Uu=0,e0=null,md=-1,gd=0;function Cn(){return(it&6)!==0?Ft():md!==-1?md:md=Ft()}function Xi(i){return(i.mode&1)===0?1:(it&2)!==0&&un!==0?un&-un:Y9.transition!==null?(gd===0&&(gd=pS()),gd):(i=ct,i!==0||(i=window.event,i=i===void 0?16:xS(i.type)),i)}function Pr(i,s,l,h){if(50<Uu)throw Uu=0,e0=null,Error(n(185));lu(i,l,h),((it&2)===0||i!==nn)&&(i===nn&&((it&2)===0&&(dd|=l),Wt===4&&Ki(i,un)),Bn(i,h),l===1&&it===0&&(s.mode&1)===0&&(Js=Ft()+500,Vc&&$i()))}function Bn(i,s){var l=i.callbackNode;YB(i,s);var h=Cc(i,i===nn?un:0);if(h===0)l!==null&&dS(l),i.callbackNode=null,i.callbackPriority=0;else if(s=h&-h,i.callbackPriority!==s){if(l!=null&&dS(l),s===1)i.tag===0?q9(x2.bind(null,i)):ux(x2.bind(null,i)),z9(function(){(it&6)===0&&$i()}),l=null;else{switch(mS(h)){case 1:l=Rp;break;case 4:l=fS;break;case 16:l=_c;break;case 536870912:l=hS;break;default:l=_c}l=O2(l,S2.bind(null,i))}i.callbackPriority=s,i.callbackNode=l}}function S2(i,s){if(md=-1,gd=0,(it&6)!==0)throw Error(n(327));var l=i.callbackNode;if(Zs()&&i.callbackNode!==l)return null;var h=Cc(i,i===nn?un:0);if(h===0)return null;if((h&30)!==0||(h&i.expiredLanes)!==0||s)s=Ed(i,h);else{s=h;var E=it;it|=2;var b=C2();(nn!==i||un!==s)&&(yi=null,Js=Ft()+500,Do(i,s));do try{f7();break}catch(R){w2(i,R)}while(!0);ym(),cd.current=b,it=E,Vt!==null?s=0:(nn=null,un=0,s=Wt)}if(s!==0){if(s===2&&(E=Lp(i),E!==0&&(h=E,s=t0(i,E))),s===1)throw l=Fu,Do(i,0),Ki(i,h),Bn(i,Ft()),l;if(s===6)Ki(i,h);else{if(E=i.current.alternate,(h&30)===0&&!c7(E)&&(s=Ed(i,h),s===2&&(b=Lp(i),b!==0&&(h=b,s=t0(i,b))),s===1))throw l=Fu,Do(i,0),Ki(i,h),Bn(i,Ft()),l;switch(i.finishedWork=E,i.finishedLanes=h,s){case 0:case 1:throw Error(n(345));case 2:Mo(i,Fn,yi);break;case 3:if(Ki(i,h),(h&130023424)===h&&(s=Jm+500-Ft(),10<s)){if(Cc(i,0)!==0)break;if(E=i.suspendedLanes,(E&h)!==h){Cn(),i.pingedLanes|=i.suspendedLanes&E;break}i.timeoutHandle=am(Mo.bind(null,i,Fn,yi),s);break}Mo(i,Fn,yi);break;case 4:if(Ki(i,h),(h&4194240)===h)break;for(s=i.eventTimes,E=-1;0<h;){var x=31-xr(h);b=1<<x,x=s[x],x>E&&(E=x),h&=~b}if(h=E,h=Ft()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*l7(h/1960))-h,10<h){i.timeoutHandle=am(Mo.bind(null,i,Fn,yi),h);break}Mo(i,Fn,yi);break;case 5:Mo(i,Fn,yi);break;default:throw Error(n(329))}}}return Bn(i,Ft()),i.callbackNode===l?S2.bind(null,i):null}function t0(i,s){var l=Bu;return i.current.memoizedState.isDehydrated&&(Do(i,s).flags|=256),i=Ed(i,s),i!==2&&(s=Fn,Fn=l,s!==null&&n0(s)),i}function n0(i){Fn===null?Fn=i:Fn.push.apply(Fn,i)}function c7(i){for(var s=i;;){if(s.flags&16384){var l=s.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var h=0;h<l.length;h++){var E=l[h],b=E.getSnapshot;E=E.value;try{if(!wr(b(),E))return!1}catch(x){return!1}}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ki(i,s){for(s&=~Qm,s&=~dd,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var l=31-xr(s),h=1<<l;i[l]=-1,s&=~h}}function x2(i){if((it&6)!==0)throw Error(n(327));Zs();var s=Cc(i,0);if((s&1)===0)return Bn(i,Ft()),null;var l=Ed(i,s);if(i.tag!==0&&l===2){var h=Lp(i);h!==0&&(s=h,l=t0(i,h))}if(l===1)throw l=Fu,Do(i,0),Ki(i,s),Bn(i,Ft()),l;if(l===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,Mo(i,Fn,yi),Bn(i,Ft()),null}function r0(i,s){var l=it;it|=1;try{return i(s)}finally{it=l,it===0&&(Js=Ft()+500,Vc&&$i())}}function Lo(i){Wi!==null&&Wi.tag===0&&(it&6)===0&&Zs();var s=it;it|=1;var l=dr.transition,h=ct;try{if(dr.transition=null,ct=1,i)return i()}finally{ct=h,dr.transition=l,it=s,(it&6)===0&&$i()}}function i0(){Xn=Qs.current,xt(Qs)}function Do(i,s){i.finishedWork=null,i.finishedLanes=0;var l=i.timeoutHandle;if(l!==-1&&(i.timeoutHandle=-1,H9(l)),Vt!==null)for(l=Vt.return;l!==null;){var h=l;switch(hm(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&jc();break;case 3:Ws(),xt(Ln),xt(gn),Am();break;case 5:wm(h);break;case 4:Ws();break;case 13:xt(Nt);break;case 19:xt(Nt);break;case 10:bm(h.type._context);break;case 22:case 23:i0()}l=l.return}if(nn=i,Vt=i=Qi(i.current,null),un=Xn=s,Wt=0,Fu=null,Qm=dd=Ro=0,Fn=Bu=null,No!==null){for(s=0;s<No.length;s++)if(l=No[s],h=l.interleaved,h!==null){l.interleaved=null;var E=h.next,b=l.pending;if(b!==null){var x=b.next;b.next=E,h.next=x}l.pending=h}No=null}return i}function w2(i,s){do{var l=Vt;try{if(ym(),ed.current=id,td){for(var h=Ot.memoizedState;h!==null;){var E=h.queue;E!==null&&(E.pending=null),h=h.next}td=!1}if(Io=0,tn=Gt=Ot=null,Ou=!1,Iu=0,Km.current=null,l===null||l.return===null){Wt=1,Fu=s,Vt=null;break}e:{var b=i,x=l.return,R=l,H=s;if(s=un,R.flags|=32768,H!==null&&typeof H=="object"&&typeof H.then=="function"){var J=H,le=R,pe=le.tag;if((le.mode&1)===0&&(pe===0||pe===11||pe===15)){var se=le.alternate;se?(le.updateQueue=se.updateQueue,le.memoizedState=se.memoizedState,le.lanes=se.lanes):(le.updateQueue=null,le.memoizedState=null)}var xe=Xx(x);if(xe!==null){xe.flags&=-257,Kx(xe,x,R,b,s),xe.mode&1&&Wx(b,J,s),s=xe,H=J;var ke=s.updateQueue;if(ke===null){var Ne=new Set;Ne.add(H),s.updateQueue=Ne}else ke.add(H);break e}else{if((s&1)===0){Wx(b,J,s),o0();break e}H=Error(n(426))}}else if(kt&&R.mode&1){var Bt=Xx(x);if(Bt!==null){(Bt.flags&65536)===0&&(Bt.flags|=256),Kx(Bt,x,R,b,s),gm(Xs(H,R));break e}}b=H=Xs(H,R),Wt!==4&&(Wt=2),Bu===null?Bu=[b]:Bu.push(b),b=x;do{switch(b.tag){case 3:b.flags|=65536,s&=-s,b.lanes|=s;var Y=Yx(b,H,s);bx(b,Y);break e;case 1:R=H;var z=b.type,X=b.stateNode;if((b.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||X!==null&&typeof X.componentDidCatch=="function"&&(Gi===null||!Gi.has(X)))){b.flags|=65536,s&=-s,b.lanes|=s;var ye=Gx(b,R,s);bx(b,ye);break e}}b=b.return}while(b!==null)}v2(l)}catch(Le){s=Le,Vt===l&&l!==null&&(Vt=l=l.return);continue}break}while(!0)}function C2(){var i=cd.current;return cd.current=id,i===null?id:i}function o0(){(Wt===0||Wt===3||Wt===2)&&(Wt=4),nn===null||(Ro&268435455)===0&&(dd&268435455)===0||Ki(nn,un)}function Ed(i,s){var l=it;it|=2;var h=C2();(nn!==i||un!==s)&&(yi=null,Do(i,s));do try{d7();break}catch(E){w2(i,E)}while(!0);if(ym(),it=l,cd.current=h,Vt!==null)throw Error(n(261));return nn=null,un=0,Wt}function d7(){for(;Vt!==null;)A2(Vt)}function f7(){for(;Vt!==null&&!FB();)A2(Vt)}function A2(i){var s=N2(i.alternate,i,Xn);i.memoizedProps=i.pendingProps,s===null?v2(i):Vt=s,Km.current=null}function v2(i){var s=i;do{var l=s.alternate;if(i=s.return,(s.flags&32768)===0){if(l=i7(l,s,Xn),l!==null){Vt=l;return}}else{if(l=o7(l,s),l!==null){l.flags&=32767,Vt=l;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Wt=6,Vt=null;return}}if(s=s.sibling,s!==null){Vt=s;return}Vt=s=i}while(s!==null);Wt===0&&(Wt=5)}function Mo(i,s,l){var h=ct,E=dr.transition;try{dr.transition=null,ct=1,h7(i,s,l,h)}finally{dr.transition=E,ct=h}return null}function h7(i,s,l,h){do Zs();while(Wi!==null);if((it&6)!==0)throw Error(n(327));l=i.finishedWork;var E=i.finishedLanes;if(l===null)return null;if(i.finishedWork=null,i.finishedLanes=0,l===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var b=l.lanes|l.childLanes;if(GB(i,b),i===nn&&(Vt=nn=null,un=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||hd||(hd=!0,O2(_c,function(){return Zs(),null})),b=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||b){b=dr.transition,dr.transition=null;var x=ct;ct=1;var R=it;it|=4,Km.current=null,a7(i,l),E2(l,i),R9(om),kc=!!im,om=im=null,i.current=l,u7(l),BB(),it=R,ct=x,dr.transition=b}else i.current=l;if(hd&&(hd=!1,Wi=i,pd=E),b=i.pendingLanes,b===0&&(Gi=null),zB(l.stateNode),Bn(i,Ft()),s!==null)for(h=i.onRecoverableError,l=0;l<s.length;l++)E=s[l],h(E.value,{componentStack:E.stack,digest:E.digest});if(fd)throw fd=!1,i=Zm,Zm=null,i;return(pd&1)!==0&&i.tag!==0&&Zs(),b=i.pendingLanes,(b&1)!==0?i===e0?Uu++:(Uu=0,e0=i):Uu=0,$i(),null}function Zs(){if(Wi!==null){var i=mS(pd),s=dr.transition,l=ct;try{if(dr.transition=null,ct=16>i?16:i,Wi===null)var h=!1;else{if(i=Wi,Wi=null,pd=0,(it&6)!==0)throw Error(n(331));var E=it;for(it|=4,Ae=i.current;Ae!==null;){var b=Ae,x=b.child;if((Ae.flags&16)!==0){var R=b.deletions;if(R!==null){for(var H=0;H<R.length;H++){var J=R[H];for(Ae=J;Ae!==null;){var le=Ae;switch(le.tag){case 0:case 11:case 15:Mu(8,le,b)}var pe=le.child;if(pe!==null)pe.return=le,Ae=pe;else for(;Ae!==null;){le=Ae;var se=le.sibling,xe=le.return;if(f2(le),le===J){Ae=null;break}if(se!==null){se.return=xe,Ae=se;break}Ae=xe}}}var ke=b.alternate;if(ke!==null){var Ne=ke.child;if(Ne!==null){ke.child=null;do{var Bt=Ne.sibling;Ne.sibling=null,Ne=Bt}while(Ne!==null)}}Ae=b}}if((b.subtreeFlags&2064)!==0&&x!==null)x.return=b,Ae=x;else e:for(;Ae!==null;){if(b=Ae,(b.flags&2048)!==0)switch(b.tag){case 0:case 11:case 15:Mu(9,b,b.return)}var Y=b.sibling;if(Y!==null){Y.return=b.return,Ae=Y;break e}Ae=b.return}}var z=i.current;for(Ae=z;Ae!==null;){x=Ae;var X=x.child;if((x.subtreeFlags&2064)!==0&&X!==null)X.return=x,Ae=X;else e:for(x=z;Ae!==null;){if(R=Ae,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:ld(9,R)}}catch(Le){Rt(R,R.return,Le)}if(R===x){Ae=null;break e}var ye=R.sibling;if(ye!==null){ye.return=R.return,Ae=ye;break e}Ae=R.return}}if(it=E,$i(),Gr&&typeof Gr.onPostCommitFiberRoot=="function")try{Gr.onPostCommitFiberRoot(Sc,i)}catch(Le){}h=!0}return h}finally{ct=l,dr.transition=s}}return!1}function k2(i,s,l){s=Xs(l,s),s=Yx(i,s,1),i=qi(i,s,1),s=Cn(),i!==null&&(lu(i,1,s),Bn(i,s))}function Rt(i,s,l){if(i.tag===3)k2(i,i,l);else for(;s!==null;){if(s.tag===3){k2(s,i,l);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Gi===null||!Gi.has(h))){i=Xs(l,i),i=Gx(s,i,1),s=qi(s,i,1),i=Cn(),s!==null&&(lu(s,1,i),Bn(s,i));break}}s=s.return}}function p7(i,s,l){var h=i.pingCache;h!==null&&h.delete(s),s=Cn(),i.pingedLanes|=i.suspendedLanes&l,nn===i&&(un&l)===l&&(Wt===4||Wt===3&&(un&130023424)===un&&500>Ft()-Jm?Do(i,0):Qm|=l),Bn(i,s)}function P2(i,s){s===0&&((i.mode&1)===0?s=1:(s=wc,wc<<=1,(wc&130023424)===0&&(wc=4194304)));var l=Cn();i=mi(i,s),i!==null&&(lu(i,s,l),Bn(i,l))}function m7(i){var s=i.memoizedState,l=0;s!==null&&(l=s.retryLane),P2(i,l)}function g7(i,s){var l=0;switch(i.tag){case 13:var h=i.stateNode,E=i.memoizedState;E!==null&&(l=E.retryLane);break;case 19:h=i.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(s),P2(i,l)}var N2;N2=function(i,s,l){if(i!==null)if(i.memoizedProps!==s.pendingProps||Ln.current)Mn=!0;else{if((i.lanes&l)===0&&(s.flags&128)===0)return Mn=!1,r7(i,s,l);Mn=(i.flags&131072)!==0}else Mn=!1,kt&&(s.flags&1048576)!==0&&lx(s,Yc,s.index);switch(s.lanes=0,s.tag){case 2:var h=s.type;ad(i,s),i=s.pendingProps;var E=zs(s,gn.current);Gs(s,l),E=Pm(null,s,h,i,E,l);var b=Nm();return s.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Dn(h)?(b=!0,$c(s)):b=!1,s.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,Sm(s),E.updater=od,s.stateNode=E,E._reactInternals=s,Mm(s,h,i,l),s=Hm(null,s,h,!0,b,l)):(s.tag=0,kt&&b&&fm(s),wn(null,s,E,l),s=s.child),s;case 16:h=s.elementType;e:{switch(ad(i,s),i=s.pendingProps,E=h._init,h=E(h._payload),s.type=h,E=s.tag=y7(h),i=Ar(h,i),E){case 0:s=Um(null,s,h,i,l);break e;case 1:s=n2(null,s,h,i,l);break e;case 11:s=Qx(null,s,h,i,l);break e;case 14:s=Jx(null,s,h,Ar(h.type,i),l);break e}throw Error(n(306,h,""))}return s;case 0:return h=s.type,E=s.pendingProps,E=s.elementType===h?E:Ar(h,E),Um(i,s,h,E,l);case 1:return h=s.type,E=s.pendingProps,E=s.elementType===h?E:Ar(h,E),n2(i,s,h,E,l);case 3:e:{if(r2(s),i===null)throw Error(n(387));h=s.pendingProps,b=s.memoizedState,E=b.element,yx(i,s),Jc(s,h,null,l);var x=s.memoizedState;if(h=x.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},s.updateQueue.baseState=b,s.memoizedState=b,s.flags&256){E=Xs(Error(n(423)),s),s=i2(i,s,h,l,E);break e}else if(h!==E){E=Xs(Error(n(424)),s),s=i2(i,s,h,l,E);break e}else for(Wn=Hi(s.stateNode.containerInfo.firstChild),Gn=s,kt=!0,Cr=null,l=gx(s,null,h,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Vs(),h===E){s=Ei(i,s,l);break e}wn(i,s,h,l)}s=s.child}return s;case 5:return _x(s),i===null&&mm(s),h=s.type,E=s.pendingProps,b=i!==null?i.memoizedProps:null,x=E.children,sm(h,E)?x=null:b!==null&&sm(h,b)&&(s.flags|=32),t2(i,s),wn(i,s,x,l),s.child;case 6:return i===null&&mm(s),null;case 13:return o2(i,s,l);case 4:return xm(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=qs(s,null,h,l):wn(i,s,h,l),s.child;case 11:return h=s.type,E=s.pendingProps,E=s.elementType===h?E:Ar(h,E),Qx(i,s,h,E,l);case 7:return wn(i,s,s.pendingProps,l),s.child;case 8:return wn(i,s,s.pendingProps.children,l),s.child;case 12:return wn(i,s,s.pendingProps.children,l),s.child;case 10:e:{if(h=s.type._context,E=s.pendingProps,b=s.memoizedProps,x=E.value,Tt(Xc,h._currentValue),h._currentValue=x,b!==null)if(wr(b.value,x)){if(b.children===E.children&&!Ln.current){s=Ei(i,s,l);break e}}else for(b=s.child,b!==null&&(b.return=s);b!==null;){var R=b.dependencies;if(R!==null){x=b.child;for(var H=R.firstContext;H!==null;){if(H.context===h){if(b.tag===1){H=gi(-1,l&-l),H.tag=2;var J=b.updateQueue;if(J!==null){J=J.shared;var le=J.pending;le===null?H.next=H:(H.next=le.next,le.next=H),J.pending=H}}b.lanes|=l,H=b.alternate,H!==null&&(H.lanes|=l),Tm(b.return,l,s),R.lanes|=l;break}H=H.next}}else if(b.tag===10)x=b.type===s.type?null:b.child;else if(b.tag===18){if(x=b.return,x===null)throw Error(n(341));x.lanes|=l,R=x.alternate,R!==null&&(R.lanes|=l),Tm(x,l,s),x=b.sibling}else x=b.child;if(x!==null)x.return=b;else for(x=b;x!==null;){if(x===s){x=null;break}if(b=x.sibling,b!==null){b.return=x.return,x=b;break}x=x.return}b=x}wn(i,s,E.children,l),s=s.child}return s;case 9:return E=s.type,h=s.pendingProps.children,Gs(s,l),E=lr(E),h=h(E),s.flags|=1,wn(i,s,h,l),s.child;case 14:return h=s.type,E=Ar(h,s.pendingProps),E=Ar(h.type,E),Jx(i,s,h,E,l);case 15:return Zx(i,s,s.type,s.pendingProps,l);case 17:return h=s.type,E=s.pendingProps,E=s.elementType===h?E:Ar(h,E),ad(i,s),s.tag=1,Dn(h)?(i=!0,$c(s)):i=!1,Gs(s,l),Vx(s,h,E),Mm(s,h,E,l),Hm(null,s,h,!0,i,l);case 19:return a2(i,s,l);case 22:return e2(i,s,l)}throw Error(n(156,s.tag))};function O2(i,s){return cS(i,s)}function E7(i,s,l,h){this.tag=i,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fr(i,s,l,h){return new E7(i,s,l,h)}function s0(i){return i=i.prototype,!(!i||!i.isReactComponent)}function y7(i){if(typeof i=="function")return s0(i)?1:0;if(i!=null){if(i=i.$$typeof,i===ce)return 11;if(i===Te)return 14}return 2}function Qi(i,s){var l=i.alternate;return l===null?(l=fr(i.tag,s,i.key,i.mode),l.elementType=i.elementType,l.type=i.type,l.stateNode=i.stateNode,l.alternate=i,i.alternate=l):(l.pendingProps=s,l.type=i.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=i.flags&14680064,l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,s=i.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=i.sibling,l.index=i.index,l.ref=i.ref,l}function yd(i,s,l,h,E,b){var x=2;if(h=i,typeof i=="function")s0(i)&&(x=1);else if(typeof i=="string")x=5;else e:switch(i){case K:return Fo(l.children,E,b,s);case re:x=8,E|=8;break;case be:return i=fr(12,l,s,E|2),i.elementType=be,i.lanes=b,i;case he:return i=fr(13,l,s,E),i.elementType=he,i.lanes=b,i;case ue:return i=fr(19,l,s,E),i.elementType=ue,i.lanes=b,i;case de:return bd(l,E,b,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case $:x=10;break e;case Z:x=9;break e;case ce:x=11;break e;case Te:x=14;break e;case Oe:x=16,h=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return s=fr(x,l,s,E),s.elementType=i,s.type=h,s.lanes=b,s}function Fo(i,s,l,h){return i=fr(7,i,h,s),i.lanes=l,i}function bd(i,s,l,h){return i=fr(22,i,h,s),i.elementType=de,i.lanes=l,i.stateNode={isHidden:!1},i}function a0(i,s,l){return i=fr(6,i,null,s),i.lanes=l,i}function u0(i,s,l){return s=fr(4,i.children!==null?i.children:[],i.key,s),s.lanes=l,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function b7(i,s,l,h,E){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dp(0),this.expirationTimes=Dp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dp(0),this.identifierPrefix=h,this.onRecoverableError=E,this.mutableSourceEagerHydrationData=null}function l0(i,s,l,h,E,b,x,R,H){return i=new b7(i,s,l,R,H),s===1?(s=1,b===!0&&(s|=8)):s=0,b=fr(3,null,null,s),i.current=b,b.stateNode=i,b.memoizedState={element:h,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sm(b),i}function T7(i,s,l){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:h==null?null:""+h,children:i,containerInfo:s,implementation:l}}function I2(i){if(!i)return ji;i=i._reactInternals;e:{if(Co(i)!==i||i.tag!==1)throw Error(n(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Dn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(i.tag===1){var l=i.type;if(Dn(l))return sx(i,l,s)}return s}function R2(i,s,l,h,E,b,x,R,H){return i=l0(l,h,!0,i,E,b,x,R,H),i.context=I2(null),l=i.current,h=Cn(),E=Xi(l),b=gi(h,E),b.callback=s!=null?s:null,qi(l,b,E),i.current.lanes=E,lu(i,E,h),Bn(i,h),i}function Td(i,s,l,h){var E=s.current,b=Cn(),x=Xi(E);return l=I2(l),s.context===null?s.context=l:s.pendingContext=l,s=gi(b,x),s.payload={element:i},h=h===void 0?null:h,h!==null&&(s.callback=h),i=qi(E,s,x),i!==null&&(Pr(i,E,x,b),Qc(i,E,x)),x}function _d(i){return i=i.current,i.child?(i.child.tag===5,i.child.stateNode):null}function L2(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<s?l:s}}function c0(i,s){L2(i,s),(i=i.alternate)&&L2(i,s)}function _7(){return null}var D2=typeof reportError=="function"?reportError:function(i){console.error(i)};function d0(i){this._internalRoot=i}Sd.prototype.render=d0.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));Td(i,s,null,null)},Sd.prototype.unmount=d0.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Lo(function(){Td(null,i,null,null)}),s[di]=null}};function Sd(i){this._internalRoot=i}Sd.prototype.unstable_scheduleHydration=function(i){if(i){var s=yS();i={blockedOn:null,target:i,priority:s};for(var l=0;l<Fi.length&&s!==0&&s<Fi[l].priority;l++);Fi.splice(l,0,i),l===0&&_S(i)}};function f0(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function xd(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function M2(){}function S7(i,s,l,h,E){if(E){if(typeof h=="function"){var b=h;h=function(){var J=_d(x);b.call(J)}}var x=R2(s,h,i,0,null,!1,!1,"",M2);return i._reactRootContainer=x,i[di]=x.current,xu(i.nodeType===8?i.parentNode:i),Lo(),x}for(;E=i.lastChild;)i.removeChild(E);if(typeof h=="function"){var R=h;h=function(){var J=_d(H);R.call(J)}}var H=l0(i,0,!1,null,null,!1,!1,"",M2);return i._reactRootContainer=H,i[di]=H.current,xu(i.nodeType===8?i.parentNode:i),Lo(function(){Td(s,H,l,h)}),H}function wd(i,s,l,h,E){var b=l._reactRootContainer;if(b){var x=b;if(typeof E=="function"){var R=E;E=function(){var H=_d(x);R.call(H)}}Td(s,x,i,E)}else x=S7(l,s,i,E,h);return _d(x)}gS=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var l=uu(s.pendingLanes);l!==0&&(Mp(s,l|1),Bn(s,Ft()),(it&6)===0&&(Js=Ft()+500,$i()))}break;case 13:Lo(function(){var h=mi(i,1);if(h!==null){var E=Cn();Pr(h,i,1,E)}}),c0(i,1)}},Fp=function(i){if(i.tag===13){var s=mi(i,134217728);if(s!==null){var l=Cn();Pr(s,i,134217728,l)}c0(i,134217728)}},ES=function(i){if(i.tag===13){var s=Xi(i),l=mi(i,s);if(l!==null){var h=Cn();Pr(l,i,s,h)}c0(i,s)}},yS=function(){return ct},bS=function(i,s){var l=ct;try{return ct=i,s()}finally{ct=l}},Pp=function(i,s,l){switch(s){case"input":if(ci(i,l),s=l.name,l.type==="radio"&&s!=null){for(l=i;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<l.length;s++){var h=l[s];if(h!==i&&h.form===i.form){var E=zc(h);if(!E)throw Error(n(90));qr(h),ci(h,E)}}}break;case"textarea":xn(i,l);break;case"select":s=l.value,s!=null&&Qe(i,!!l.multiple,s,!1)}},rS=r0,iS=Lo;var x7={usingClientEntryPoint:!1,Events:[Au,Us,zc,tS,nS,r0]},Hu={findFiberByHostInstance:Ao,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},w7={bundleType:Hu.bundleType,version:Hu.version,rendererPackageName:Hu.rendererPackageName,rendererConfig:Hu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=uS(i),i===null?null:i.stateNode},findFiberByHostInstance:Hu.findFiberByHostInstance||_7,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Cd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cd.isDisabled&&Cd.supportsFiber)try{Sc=Cd.inject(w7),Gr=Cd}catch(i){}}return kn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x7,kn.createPortal=function(i,s){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f0(s))throw Error(n(200));return T7(i,s,null,l)},kn.createRoot=function(i,s){if(!f0(i))throw Error(n(299));var l=!1,h="",E=D2;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onRecoverableError!==void 0&&(E=s.onRecoverableError)),s=l0(i,1,!1,null,null,l,!1,h,E),i[di]=s.current,xu(i.nodeType===8?i.parentNode:i),new d0(s)},kn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=uS(s),i=i===null?null:i.stateNode,i},kn.flushSync=function(i){return Lo(i)},kn.hydrate=function(i,s,l){if(!xd(s))throw Error(n(200));return wd(null,i,s,!0,l)},kn.hydrateRoot=function(i,s,l){if(!f0(i))throw Error(n(405));var h=l!=null&&l.hydratedSources||null,E=!1,b="",x=D2;if(l!=null&&(l.unstable_strictMode===!0&&(E=!0),l.identifierPrefix!==void 0&&(b=l.identifierPrefix),l.onRecoverableError!==void 0&&(x=l.onRecoverableError)),s=R2(s,null,i,1,l!=null?l:null,E,!1,b,x),i[di]=s.current,xu(i),h)for(i=0;i<h.length;i++)l=h[i],E=l._getVersion,E=E(l._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[l,E]:s.mutableSourceEagerHydrationData.push(l,E);return new Sd(s)},kn.render=function(i,s,l){if(!xd(s))throw Error(n(200));return wd(null,i,s,!1,l)},kn.unmountComponentAtNode=function(i){if(!xd(i))throw Error(n(40));return i._reactRootContainer?(Lo(function(){wd(null,null,i,!1,function(){i._reactRootContainer=null,i[di]=null})}),!0):!1},kn.unstable_batchedUpdates=r0,kn.unstable_renderSubtreeIntoContainer=function(i,s,l,h){if(!xd(l))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return wd(i,s,l,!1,h)},kn.version="18.3.1-next-f1338f8080-20240426",kn}var T1;function _1(){if(T1)return vf.exports;T1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vf.exports=Ek(),vf.exports}var Xo=_1();function S1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=S1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function W(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=S1(e))&&(r&&(r+=" "),r+=t);return r}const ri=({className:e,iconUrl:t,icon:n,type:r="button",ariaLabel:o,title:a,disabled:u=!1,onClick:c})=>!n&&!t?null:w.jsx("button",{className:W(e,`${j}-icon-button`),type:r,"aria-label":o,title:a,onClick:c,disabled:u,children:t?w.jsx("img",{className:W(`${j}-icon-image`),src:t,alt:o,loading:"lazy"}):n}),yk="data:image/svg+xml,%3csvg%20width='140'%20height='137'%20viewBox='0%200%20140%20137'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M140%2034.5C140%2040.8513%20135.075%2046%20129%2046C122.925%2046%20118%2040.8513%20118%2034.5C118%2028.1487%20122.925%2023%20129%2023C135.075%2023%20140%2028.1487%20140%2034.5Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M85%2011.3028C85%205.06042%2090.1487%200%2096.5%200C102.851%200%20108%205.06042%20108%2011.3028V21.6972C108%2027.9396%20102.851%2033%2096.5%2033C90.1487%2033%2085%2027.9396%2085%2021.6972V11.3028Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M41.3868%2030.0986C36.9601%2025.6719%2036.9601%2018.4948%2041.3868%2014.0682C45.8134%209.64151%2052.9905%209.6415%2057.4172%2014.0682L71.3628%2028.0138C75.7894%2032.4404%2075.7894%2039.6175%2071.3628%2044.0442C66.9361%2048.4708%2059.759%2048.4708%2055.3324%2044.0442L41.3868%2030.0986Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M140%20101C140%2094.9249%20135.075%2090%20129%2090C122.925%2090%20118%2094.9249%20118%20101C118%20107.075%20122.925%20112%20129%20112C135.075%20112%20140%20107.075%20140%20101Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M85%20125.697C85%20131.94%2090.1487%20137%2096.5%20137C102.851%20137%20108%20131.94%20108%20125.697V115.303C108%20109.06%20102.851%20104%2096.5%20104C90.1487%20104%2085%20109.06%2085%20115.303V125.697Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M41.3868%20106.932C36.9601%20111.359%2036.9601%20118.536%2041.3868%20122.963C45.8134%20127.389%2052.9905%20127.39%2057.4172%20122.963L71.3628%20109.017C75.7894%20104.591%2075.7894%2097.4135%2071.3628%2092.9868C66.9361%2088.5602%2059.759%2088.5602%2055.3324%2092.9868L41.3868%20106.932Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M11.259%2080C5.04084%2080%200%2074.8513%200%2068.5C0%2062.1487%205.04084%2057%2011.259%2057H49.741C55.9592%2057%2061%2062.1487%2061%2068.5C61%2074.8513%2055.9592%2080%2049.741%2080H11.259Z'%20fill='%23F3F2EB'/%3e%3c/svg%3e",bk=()=>{const{globalClassName:e,headerConfig:t,themeVariables:n}=at(),r=()=>{pl(!1),Si(!0)};return Xo.createPortal(w.jsx("div",{className:W(e,`${j}-minimized-container`),style:n,children:w.jsx(ri,{className:W(e,`${j}-minimized-button`),ariaLabel:"Open Copilot",icon:w.jsx("img",{src:(t==null?void 0:t.logoUrl)||yk,alt:"Copilot",className:W(e,`${j}-minimized-icon-img`)}),onClick:r})}),document.body)};var x1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},w1=Zi.createContext&&Zi.createContext(x1),Tk=["attr","size","title"];function _k(e,t){if(e==null)return{};var n=Sk(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sk(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},El.apply(this,arguments)}function C1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(n),!0).forEach(function(r){xk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xk(e,t,n){return t=wk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wk(e){var t=Ck(e,"string");return typeof t=="symbol"?t:t+""}function Ck(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A1(e){return e&&e.map((t,n)=>Zi.createElement(t.tag,yl({key:n},t.attr),A1(t.child)))}function zt(e){return t=>Zi.createElement(Ak,El({attr:yl({},e.attr)},t),A1(e.child))}function Ak(e){var t=n=>{var{attr:r,size:o,title:a}=e,u=_k(e,Tk),c=o||n.size||"1em",d;return n.className&&(d=n.className),e.className&&(d=(d?d+" ":"")+e.className),Zi.createElement("svg",El({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,u,{className:d,style:yl(yl({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&Zi.createElement("title",null,a),e.children)};return w1!==void 0?Zi.createElement(w1.Consumer,null,n=>t(n)):t(x1)}function v1(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},child:[]}]})(e)}function k1(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 19h12v2H6z"},child:[]}]})(e)}function Ko(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function vk(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]}]})(e)}function P1(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"},child:[]}]})(e)}function kk(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"},child:[]}]})(e)}function Pk(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(e)}function Nk(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"},child:[]}]})(e)}function Ok(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"},child:[]}]})(e)}function Ik(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.12 4 1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"},child:[]}]})(e)}const Rk=e=>({[`${ni}-header-background-color`]:(e==null?void 0:e.headerBackgroundColor)||"transparent",[`${ni}-header-text-font-size`]:(e==null?void 0:e.headerTextFontSize)||"1.25rem"}),N1=({className:e,label:t="Close",onClick:n,disabled:r=!1})=>w.jsx("button",{"aria-label":t,className:W(e,`${j}-close-button`),disabled:r,onClick:n,children:w.jsx("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20",width:"16",height:"16",fill:"currentColor",children:w.jsx("path",{d:"M18.3 5.7a1 1 0 0 0-1.4-1.4L12 9.6 7.1 4.7a1 1 0 1 0-1.4 1.4l4.9 4.9-4.9 4.9a1 1 0 1 0 1.4 1.4l4.9-4.9 4.9 4.9a1 1 0 0 0 1.4-1.4l-4.9-4.9 4.9-4.9z"})})}),bl=({className:e,children:t,type:n,disabled:r=!1,onClick:o})=>w.jsx("button",{className:W(`${j}-button`,e,{disabled:r}),type:n||"button",disabled:r,onClick:o,children:t}),Lk=({searchConfig:e,globalClassName:t})=>{const n=e.buttonIconUrl;return n?w.jsx("img",{className:W(`${j}-search-button-icon-image`,t),src:n,alt:"",loading:"lazy"}):w.jsx(Ko,{size:"16px"})},Dk=({className:e,searchConfig:t,globalClassName:n,componentType:r,isLoading:o})=>{if((t==null?void 0:t.buttonType)==="icon")return w.jsx(ri,{className:W(e,n,`cim-${r}-component`,`${j}-search-button-icon`),type:"submit",disabled:o,ariaLabel:(t==null?void 0:t.buttonAriaLabel)||(t==null?void 0:t.buttonLabel)||"Search Copilot",icon:t!=null&&t.buttonIconUrl?null:w.jsx(Ko,{size:"16px"}),iconUrl:t==null?void 0:t.buttonIconUrl});const a=(t==null?void 0:t.buttonType)==="icon-text";return w.jsxs(bl,{className:W(e,n,`cim-${r}-component`,`${j}-search-button`),type:"submit","aria-label":(t==null?void 0:t.buttonAriaLabel)||"",disabled:o,children:[a&&w.jsx(Lk,{globalClassName:n,searchConfig:t}),(t==null?void 0:t.buttonLabel)||"Search"]})};function Mk(e){return zt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 9h8"},child:[]},{tag:"path",attr:{d:"M8 13h6"},child:[]},{tag:"path",attr:{d:"M13 18l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6"},child:[]},{tag:"path",attr:{d:"M17 17v5"},child:[]},{tag:"path",attr:{d:"M21 17v5"},child:[]}]})(e)}const Fk=()=>{const{messages:e}=er(),{handleCancel:t}=Rr();return{cancelRequest:U.useCallback(()=>{if(!(e!=null&&e.length))return null;const r=e[e.length-1],o=r.eventSourceId||r.id;t(o)},[t,e])}},Bk=({isLoading:e})=>{const{globalClassName:t,searchConfig:n}=at(),{cancelRequest:r}=Fk();return n!=null&&n.enableCancelSearch?w.jsx(ri,{className:W(t,`${j}-cancel-button`),ariaLabel:"Cancel Copilot chat processing",title:"Cancel Copilot request",icon:w.jsx(Mk,{}),disabled:!e,onClick:r}):null};function iU(){}function oU(){}function O1(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const u=n.slice(o,r).trim();(u||!a)&&t.push(u),o=r+1,r=n.indexOf(",",o)}return t}function I1(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Uk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zk={};function R1(e,t){return(zk.jsx?Hk:Uk).test(e)}const jk=/[ \t\n\f\r]/g;function $k(e){return typeof e=="object"?e.type==="text"?L1(e.value):!1:L1(e)}function L1(e){return e.replace(jk,"")===""}let Ta=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ta.prototype.normal={},Ta.prototype.property={},Ta.prototype.space=void 0;function D1(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Ta(n,r,t)}function _a(e){return e.toLowerCase()}let Pn=class{constructor(t,n){this.attribute=n,this.property=t}};Pn.prototype.attribute="",Pn.prototype.booleanish=!1,Pn.prototype.boolean=!1,Pn.prototype.commaOrSpaceSeparated=!1,Pn.prototype.commaSeparated=!1,Pn.prototype.defined=!1,Pn.prototype.mustUseProperty=!1,Pn.prototype.number=!1,Pn.prototype.overloadedBoolean=!1,Pn.prototype.property="",Pn.prototype.spaceSeparated=!1,Pn.prototype.space=void 0;let Vk=0;const Ge=so(),jt=so(),Nf=so(),ge=so(),Et=so(),Qo=so(),Hn=so();function so(){return ta(2,++Vk)}const Of=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:jt,commaOrSpaceSeparated:Hn,commaSeparated:Qo,number:ge,overloadedBoolean:Nf,spaceSeparated:Et},Symbol.toStringTag,{value:"Module"})),If=Object.keys(Of);let Rf=class extends Pn{constructor(t,n,r,o){let a=-1;if(super(t,n),M1(this,"space",o),typeof r=="number")for(;++a<If.length;){const u=If[a];M1(this,If[a],(r&Of[u])===Of[u])}}};Rf.prototype.defined=!0;function M1(e,t,n){n&&(e[t]=n)}function Jo(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new Rf(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[_a(r)]=r,n[_a(a.attribute)]=r}return new Ta(t,n,e.space)}const F1=Jo({properties:{ariaActiveDescendant:null,ariaAtomic:jt,ariaAutoComplete:null,ariaBusy:jt,ariaChecked:jt,ariaColCount:ge,ariaColIndex:ge,ariaColSpan:ge,ariaControls:Et,ariaCurrent:null,ariaDescribedBy:Et,ariaDetails:null,ariaDisabled:jt,ariaDropEffect:Et,ariaErrorMessage:null,ariaExpanded:jt,ariaFlowTo:Et,ariaGrabbed:jt,ariaHasPopup:null,ariaHidden:jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Et,ariaLevel:ge,ariaLive:null,ariaModal:jt,ariaMultiLine:jt,ariaMultiSelectable:jt,ariaOrientation:null,ariaOwns:Et,ariaPlaceholder:null,ariaPosInSet:ge,ariaPressed:jt,ariaReadOnly:jt,ariaRelevant:null,ariaRequired:jt,ariaRoleDescription:Et,ariaRowCount:ge,ariaRowIndex:ge,ariaRowSpan:ge,ariaSelected:jt,ariaSetSize:ge,ariaSort:null,ariaValueMax:ge,ariaValueMin:ge,ariaValueNow:ge,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function B1(e,t){return t in e?e[t]:t}function U1(e,t){return B1(e,t.toLowerCase())}const qk=Jo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qo,acceptCharset:Et,accessKey:Et,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:Et,autoFocus:Ge,autoPlay:Ge,blocking:Et,capture:null,charSet:null,checked:Ge,cite:null,className:Et,cols:ge,colSpan:null,content:null,contentEditable:jt,controls:Ge,controlsList:Et,coords:ge|Qo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:Nf,draggable:jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:Et,height:ge,hidden:Nf,high:ge,href:null,hrefLang:null,htmlFor:Et,httpEquiv:Et,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:Et,itemRef:Et,itemScope:Ge,itemType:Et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ge,low:ge,manifest:null,max:null,maxLength:ge,media:null,method:null,min:null,minLength:ge,multiple:Ge,muted:Ge,name:null,nonce:null,noModule:Ge,noValidate:Ge,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:Ge,optimum:ge,pattern:null,ping:Et,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:Et,required:Ge,reversed:Ge,rows:ge,rowSpan:ge,sandbox:Et,scope:null,scoped:Ge,seamless:Ge,selected:Ge,shadowRootClonable:Ge,shadowRootDelegatesFocus:Ge,shadowRootMode:null,shape:null,size:ge,sizes:null,slot:null,span:ge,spellCheck:jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ge,step:null,style:null,tabIndex:ge,target:null,title:null,translate:null,type:null,typeMustMatch:Ge,useMap:null,value:jt,width:ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Et,axis:null,background:null,bgColor:null,border:ge,borderColor:null,bottomMargin:ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ge,declare:Ge,event:null,face:null,frame:null,frameBorder:null,hSpace:ge,leftMargin:ge,link:null,longDesc:null,lowSrc:null,marginHeight:ge,marginWidth:ge,noResize:Ge,noHref:Ge,noShade:Ge,noWrap:Ge,object:null,profile:null,prompt:null,rev:null,rightMargin:ge,rules:null,scheme:null,scrolling:jt,standby:null,summary:null,text:null,topMargin:ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ge,disableRemotePlayback:Ge,prefix:null,property:null,results:ge,security:null,unselectable:null},space:"html",transform:U1}),Yk=Jo({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:Hn,accentHeight:ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ge,amplitude:ge,arabicForm:null,ascent:ge,attributeName:null,attributeType:null,azimuth:ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ge,by:null,calcMode:null,capHeight:ge,className:Et,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:ge,diffuseConstant:ge,direction:null,display:null,dur:null,divisor:ge,dominantBaseline:null,download:Ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:ge,enableBackground:null,end:null,event:null,exponent:ge,externalResourcesRequired:null,fill:null,fillOpacity:ge,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:Qo,g2:Qo,glyphName:Qo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ge,horizOriginX:ge,horizOriginY:ge,id:null,ideographic:ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ge,k:ge,k1:ge,k2:ge,k3:ge,k4:ge,kernelMatrix:Hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ge,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:ge,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:ge,overlineThickness:ge,paintOrder:null,panose1:null,path:null,pathLength:ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ge,pointsAtY:ge,pointsAtZ:ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hn,rev:Hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hn,requiredFeatures:Hn,requiredFonts:Hn,requiredFormats:Hn,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:ge,specularExponent:ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ge,strikethroughThickness:ge,string:null,stroke:null,strokeDashArray:Hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ge,strokeOpacity:ge,strokeWidth:null,style:null,surfaceScale:ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hn,tabIndex:ge,tableValues:null,target:null,targetX:ge,targetY:ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ge,underlineThickness:ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ge,values:null,vAlphabetic:ge,vMathematical:ge,vectorEffect:null,vHanging:ge,vIdeographic:ge,version:null,vertAdvY:ge,vertOriginX:ge,vertOriginY:ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:B1}),H1=Jo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),z1=Jo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:U1}),j1=Jo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Gk={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"},Wk=/[A-Z]/g,$1=/-[a-z]/g,Xk=/^data[-\w.:]+$/i;function Lf(e,t){const n=_a(t);let r=t,o=Pn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xk.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace($1,Qk);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!$1.test(a)){let u=a.replace(Wk,Kk);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}o=Rf}return new o(r,t)}function Kk(e){return"-"+e.toLowerCase()}function Qk(e){return e.charAt(1).toUpperCase()}const Tl=D1([F1,qk,H1,z1,j1],"html"),Zo=D1([F1,Yk,H1,z1,j1],"svg");function V1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function q1(e){return e.join(" ").trim()}var es={},Df,Y1;function Jk(){if(Y1)return Df;Y1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
17
+ `+b.stack}return{value:i,source:s,stack:E,digest:null}}function Fm(i,s,l){return{value:i,source:null,stack:l!=null?l:null,digest:s!=null?s:null}}function Bm(i,s){try{console.error(s.value)}catch(l){setTimeout(function(){throw l})}}var e7=typeof WeakMap=="function"?WeakMap:Map;function Yx(i,s,l){l=gi(-1,l),l.tag=3,l.payload={element:null};var h=s.value;return l.callback=function(){fd||(fd=!0,Zm=h),Bm(i,s)},l}function Gx(i,s,l){l=gi(-1,l),l.tag=3;var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var E=s.value;l.payload=function(){return h(E)},l.callback=function(){Bm(i,s)}}var b=i.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(l.callback=function(){Bm(i,s),typeof h!="function"&&(Gi===null?Gi=new Set([this]):Gi.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})}),l}function Wx(i,s,l){var h=i.pingCache;if(h===null){h=i.pingCache=new e7;var E=new Set;h.set(s,E)}else E=h.get(s),E===void 0&&(E=new Set,h.set(s,E));E.has(l)||(E.add(l),i=p7.bind(null,i,s,l),s.then(i,i))}function Xx(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function Kx(i,s,l,h,E){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(s=gi(-1,1),s.tag=2,qi(l,s,1))),l.lanes|=1),i):(i.flags|=65536,i.lanes=E,i)}var t7=M.ReactCurrentOwner,Mn=!1;function wn(i,s,l,h){s.child=i===null?gx(s,null,l,h):qs(s,i.child,l,h)}function Qx(i,s,l,h,E){l=l.render;var b=s.ref;return Gs(s,E),h=Pm(i,s,l,h,b,E),l=Nm(),i!==null&&!Mn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~E,Ei(i,s,E)):(kt&&l&&fm(s),s.flags|=1,wn(i,s,h,E),s.child)}function Jx(i,s,l,h,E){if(i===null){var b=l.type;return typeof b=="function"&&!s0(b)&&b.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(s.tag=15,s.type=b,Zx(i,s,b,h,E)):(i=yd(l.type,null,h,s,s.mode,E),i.ref=s.ref,i.return=s,s.child=i)}if(b=i.child,(i.lanes&E)===0){var x=b.memoizedProps;if(l=l.compare,l=l!==null?l:Tu,l(x,h)&&i.ref===s.ref)return Ei(i,s,E)}return s.flags|=1,i=Qi(b,h),i.ref=s.ref,i.return=s,s.child=i}function Zx(i,s,l,h,E){if(i!==null){var b=i.memoizedProps;if(Tu(b,h)&&i.ref===s.ref)if(Mn=!1,s.pendingProps=h=b,(i.lanes&E)!==0)(i.flags&131072)!==0&&(Mn=!0);else return s.lanes=i.lanes,Ei(i,s,E)}return Um(i,s,l,h,E)}function e2(i,s,l){var h=s.pendingProps,E=h.children,b=i!==null?i.memoizedState:null;if(h.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tt(Qs,Xn),Xn|=l;else{if((l&1073741824)===0)return i=b!==null?b.baseLanes|l:l,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,Tt(Qs,Xn),Xn|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=b!==null?b.baseLanes:l,Tt(Qs,Xn),Xn|=h}else b!==null?(h=b.baseLanes|l,s.memoizedState=null):h=l,Tt(Qs,Xn),Xn|=h;return wn(i,s,E,l),s.child}function t2(i,s){var l=s.ref;(i===null&&l!==null||i!==null&&i.ref!==l)&&(s.flags|=512,s.flags|=2097152)}function Um(i,s,l,h,E){var b=Dn(l)?vo:gn.current;return b=zs(s,b),Gs(s,E),l=Pm(i,s,l,h,b,E),h=Nm(),i!==null&&!Mn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~E,Ei(i,s,E)):(kt&&h&&fm(s),s.flags|=1,wn(i,s,l,E),s.child)}function n2(i,s,l,h,E){if(Dn(l)){var b=!0;$c(s)}else b=!1;if(Gs(s,E),s.stateNode===null)ad(i,s),Vx(s,l,h),Mm(s,l,h,E),h=!0;else if(i===null){var x=s.stateNode,R=s.memoizedProps;x.props=R;var H=x.context,J=l.contextType;typeof J=="object"&&J!==null?J=lr(J):(J=Dn(l)?vo:gn.current,J=zs(s,J));var le=l.getDerivedStateFromProps,pe=typeof le=="function"||typeof x.getSnapshotBeforeUpdate=="function";pe||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R!==h||H!==J)&&qx(s,x,h,J),Vi=!1;var se=s.memoizedState;x.state=se,Jc(s,h,x,E),H=s.memoizedState,R!==h||se!==H||Ln.current||Vi?(typeof le=="function"&&(Dm(s,l,le,h),H=s.memoizedState),(R=Vi||$x(s,l,R,h,se,H,J))?(pe||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(s.flags|=4194308)):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=H),x.props=h,x.state=H,x.context=J,h=R):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{x=s.stateNode,yx(i,s),R=s.memoizedProps,J=s.type===s.elementType?R:Ar(s.type,R),x.props=J,pe=s.pendingProps,se=x.context,H=l.contextType,typeof H=="object"&&H!==null?H=lr(H):(H=Dn(l)?vo:gn.current,H=zs(s,H));var xe=l.getDerivedStateFromProps;(le=typeof xe=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R!==pe||se!==H)&&qx(s,x,h,H),Vi=!1,se=s.memoizedState,x.state=se,Jc(s,h,x,E);var ke=s.memoizedState;R!==pe||se!==ke||Ln.current||Vi?(typeof xe=="function"&&(Dm(s,l,xe,h),ke=s.memoizedState),(J=Vi||$x(s,l,J,h,se,ke,H)||!1)?(le||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(h,ke,H),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(h,ke,H)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||R===i.memoizedProps&&se===i.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&se===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ke),x.props=h,x.state=ke,x.context=H,h=J):(typeof x.componentDidUpdate!="function"||R===i.memoizedProps&&se===i.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&se===i.memoizedState||(s.flags|=1024),h=!1)}return Hm(i,s,l,h,b,E)}function Hm(i,s,l,h,E,b){t2(i,s);var x=(s.flags&128)!==0;if(!h&&!x)return E&&ax(s,l,!1),Ei(i,s,b);h=s.stateNode,t7.current=s;var R=x&&typeof l.getDerivedStateFromError!="function"?null:h.render();return s.flags|=1,i!==null&&x?(s.child=qs(s,i.child,null,b),s.child=qs(s,null,R,b)):wn(i,s,R,b),s.memoizedState=h.state,E&&ax(s,l,!0),s.child}function r2(i){var s=i.stateNode;s.pendingContext?ox(i,s.pendingContext,s.pendingContext!==s.context):s.context&&ox(i,s.context,!1),xm(i,s.containerInfo)}function i2(i,s,l,h,E){return Vs(),gm(E),s.flags|=256,wn(i,s,l,h),s.child}var zm={dehydrated:null,treeContext:null,retryLane:0};function jm(i){return{baseLanes:i,cachePool:null,transitions:null}}function o2(i,s,l){var h=s.pendingProps,E=Nt.current,b=!1,x=(s.flags&128)!==0,R;if((R=x)||(R=i!==null&&i.memoizedState===null?!1:(E&2)!==0),R?(b=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(E|=1),Tt(Nt,E&1),i===null)return mm(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(x=h.children,i=h.fallback,b?(h=s.mode,b=s.child,x={mode:"hidden",children:x},(h&1)===0&&b!==null?(b.childLanes=0,b.pendingProps=x):b=bd(x,h,0,null),i=Fo(i,h,l,null),b.return=s,i.return=s,b.sibling=i,s.child=b,s.child.memoizedState=jm(l),s.memoizedState=zm,i):$m(s,x));if(E=i.memoizedState,E!==null&&(R=E.dehydrated,R!==null))return n7(i,s,x,h,R,E,l);if(b){b=h.fallback,x=s.mode,E=i.child,R=E.sibling;var H={mode:"hidden",children:h.children};return(x&1)===0&&s.child!==E?(h=s.child,h.childLanes=0,h.pendingProps=H,s.deletions=null):(h=Qi(E,H),h.subtreeFlags=E.subtreeFlags&14680064),R!==null?b=Qi(R,b):(b=Fo(b,x,l,null),b.flags|=2),b.return=s,h.return=s,h.sibling=b,s.child=h,h=b,b=s.child,x=i.child.memoizedState,x=x===null?jm(l):{baseLanes:x.baseLanes|l,cachePool:null,transitions:x.transitions},b.memoizedState=x,b.childLanes=i.childLanes&~l,s.memoizedState=zm,h}return b=i.child,i=b.sibling,h=Qi(b,{mode:"visible",children:h.children}),(s.mode&1)===0&&(h.lanes=l),h.return=s,h.sibling=null,i!==null&&(l=s.deletions,l===null?(s.deletions=[i],s.flags|=16):l.push(i)),s.child=h,s.memoizedState=null,h}function $m(i,s){return s=bd({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function sd(i,s,l,h){return h!==null&&gm(h),qs(s,i.child,null,l),i=$m(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function n7(i,s,l,h,E,b,x){if(l)return s.flags&256?(s.flags&=-257,h=Fm(Error(n(422))),sd(i,s,x,h)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(b=h.fallback,E=s.mode,h=bd({mode:"visible",children:h.children},E,0,null),b=Fo(b,E,x,null),b.flags|=2,h.return=s,b.return=s,h.sibling=b,s.child=h,(s.mode&1)!==0&&qs(s,i.child,null,x),s.child.memoizedState=jm(x),s.memoizedState=zm,b);if((s.mode&1)===0)return sd(i,s,x,null);if(E.data==="$!"){if(h=E.nextSibling&&E.nextSibling.dataset,h)var R=h.dgst;return h=R,b=Error(n(419)),h=Fm(b,h,void 0),sd(i,s,x,h)}if(R=(x&i.childLanes)!==0,Mn||R){if(h=nn,h!==null){switch(x&-x){case 4:E=2;break;case 16:E=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:E=32;break;case 536870912:E=268435456;break;default:E=0}E=(E&(h.suspendedLanes|x))!==0?0:E,E!==0&&E!==b.retryLane&&(b.retryLane=E,mi(i,E),Pr(h,i,E,-1))}return o0(),h=Fm(Error(n(421))),sd(i,s,x,h)}return E.data==="$?"?(s.flags|=128,s.child=i.child,s=m7.bind(null,i),E._reactRetry=s,null):(i=b.treeContext,Wn=Hi(E.nextSibling),Gn=s,kt=!0,Cr=null,i!==null&&(ar[ur++]=hi,ar[ur++]=pi,ar[ur++]=ko,hi=i.id,pi=i.overflow,ko=s),s=$m(s,h.children),s.flags|=4096,s)}function s2(i,s,l){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),Tm(i.return,s,l)}function Vm(i,s,l,h,E){var b=i.memoizedState;b===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:l,tailMode:E}:(b.isBackwards=s,b.rendering=null,b.renderingStartTime=0,b.last=h,b.tail=l,b.tailMode=E)}function a2(i,s,l){var h=s.pendingProps,E=h.revealOrder,b=h.tail;if(wn(i,s,h.children,l),h=Nt.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&s2(i,l,s);else if(i.tag===19)s2(i,l,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}if(Tt(Nt,h),(s.mode&1)===0)s.memoizedState=null;else switch(E){case"forwards":for(l=s.child,E=null;l!==null;)i=l.alternate,i!==null&&Zc(i)===null&&(E=l),l=l.sibling;l=E,l===null?(E=s.child,s.child=null):(E=l.sibling,l.sibling=null),Vm(s,!1,E,l,b);break;case"backwards":for(l=null,E=s.child,s.child=null;E!==null;){if(i=E.alternate,i!==null&&Zc(i)===null){s.child=E;break}i=E.sibling,E.sibling=l,l=E,E=i}Vm(s,!0,l,null,b);break;case"together":Vm(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ad(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function Ei(i,s,l){if(i!==null&&(s.dependencies=i.dependencies),Ro|=s.lanes,(l&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,l=Qi(i,i.pendingProps),s.child=l,l.return=s;i.sibling!==null;)i=i.sibling,l=l.sibling=Qi(i,i.pendingProps),l.return=s;l.sibling=null}return s.child}function r7(i,s,l){switch(s.tag){case 3:r2(s),Vs();break;case 5:_x(s);break;case 1:Dn(s.type)&&$c(s);break;case 4:xm(s,s.stateNode.containerInfo);break;case 10:var h=s.type._context,E=s.memoizedProps.value;Tt(Xc,h._currentValue),h._currentValue=E;break;case 13:if(h=s.memoizedState,h!==null)return h.dehydrated!==null?(Tt(Nt,Nt.current&1),s.flags|=128,null):(l&s.child.childLanes)!==0?o2(i,s,l):(Tt(Nt,Nt.current&1),i=Ei(i,s,l),i!==null?i.sibling:null);Tt(Nt,Nt.current&1);break;case 19:if(h=(l&s.childLanes)!==0,(i.flags&128)!==0){if(h)return a2(i,s,l);s.flags|=128}if(E=s.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),Tt(Nt,Nt.current),h)break;return null;case 22:case 23:return s.lanes=0,e2(i,s,l)}return Ei(i,s,l)}var u2,qm,l2,c2;u2=function(i,s){for(var l=s.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},qm=function(){},l2=function(i,s,l,h){var E=i.memoizedProps;if(E!==h){i=s.stateNode,Oo(Xr.current);var b=null;switch(l){case"input":E=Rn(i,E),h=Rn(i,h),b=[];break;case"select":E=A({},E,{value:void 0}),h=A({},h,{value:void 0}),b=[];break;case"textarea":E=ft(i,E),h=ft(i,h),b=[];break;default:typeof E.onClick!="function"&&typeof h.onClick=="function"&&(i.onclick=Hc)}sn(l,h);var x;l=null;for(J in E)if(!h.hasOwnProperty(J)&&E.hasOwnProperty(J)&&E[J]!=null)if(J==="style"){var R=E[J];for(x in R)R.hasOwnProperty(x)&&(l||(l={}),l[x]="")}else J!=="dangerouslySetInnerHTML"&&J!=="children"&&J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&J!=="autoFocus"&&(o.hasOwnProperty(J)?b||(b=[]):(b=b||[]).push(J,null));for(J in h){var H=h[J];if(R=E!=null?E[J]:void 0,h.hasOwnProperty(J)&&H!==R&&(H!=null||R!=null))if(J==="style")if(R){for(x in R)!R.hasOwnProperty(x)||H&&H.hasOwnProperty(x)||(l||(l={}),l[x]="");for(x in H)H.hasOwnProperty(x)&&R[x]!==H[x]&&(l||(l={}),l[x]=H[x])}else l||(b||(b=[]),b.push(J,l)),l=H;else J==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,R=R?R.__html:void 0,H!=null&&R!==H&&(b=b||[]).push(J,H)):J==="children"?typeof H!="string"&&typeof H!="number"||(b=b||[]).push(J,""+H):J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&(o.hasOwnProperty(J)?(H!=null&&J==="onScroll"&&St("scroll",i),b||R===H||(b=[])):(b=b||[]).push(J,H))}l&&(b=b||[]).push("style",l);var J=b;(s.updateQueue=J)&&(s.flags|=4)}},c2=function(i,s,l,h){l!==h&&(s.flags|=4)};function Du(i,s){if(!kt)switch(i.tailMode){case"hidden":s=i.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?i.tail=null:l.sibling=null;break;case"collapsed":l=i.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function yn(i){var s=i.alternate!==null&&i.alternate.child===i.child,l=0,h=0;if(s)for(var E=i.child;E!==null;)l|=E.lanes|E.childLanes,h|=E.subtreeFlags&14680064,h|=E.flags&14680064,E.return=i,E=E.sibling;else for(E=i.child;E!==null;)l|=E.lanes|E.childLanes,h|=E.subtreeFlags,h|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=h,i.childLanes=l,s}function i7(i,s,l){var h=s.pendingProps;switch(hm(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yn(s),null;case 1:return Dn(s.type)&&jc(),yn(s),null;case 3:return h=s.stateNode,Ws(),xt(Ln),xt(gn),Am(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(i===null||i.child===null)&&(Gc(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Cr!==null&&(n0(Cr),Cr=null))),qm(i,s),yn(s),null;case 5:wm(s);var E=Oo(Nu.current);if(l=s.type,i!==null&&s.stateNode!=null)l2(i,s,l,h,E),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!h){if(s.stateNode===null)throw Error(n(166));return yn(s),null}if(i=Oo(Xr.current),Gc(s)){h=s.stateNode,l=s.type;var b=s.memoizedProps;switch(h[Wr]=s,h[Cu]=b,i=(s.mode&1)!==0,l){case"dialog":St("cancel",h),St("close",h);break;case"iframe":case"object":case"embed":St("load",h);break;case"video":case"audio":for(E=0;E<Su.length;E++)St(Su[E],h);break;case"source":St("error",h);break;case"img":case"image":case"link":St("error",h),St("load",h);break;case"details":St("toggle",h);break;case"input":xo(h,b),St("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!b.multiple},St("invalid",h);break;case"textarea":lt(h,b),St("invalid",h)}sn(l,b),E=null;for(var x in b)if(b.hasOwnProperty(x)){var R=b[x];x==="children"?typeof R=="string"?h.textContent!==R&&(b.suppressHydrationWarning!==!0&&Uc(h.textContent,R,i),E=["children",R]):typeof R=="number"&&h.textContent!==""+R&&(b.suppressHydrationWarning!==!0&&Uc(h.textContent,R,i),E=["children",""+R]):o.hasOwnProperty(x)&&R!=null&&x==="onScroll"&&St("scroll",h)}switch(l){case"input":on(h),ve(h,b,!0);break;case"textarea":on(h),vt(h);break;case"select":case"option":break;default:typeof b.onClick=="function"&&(h.onclick=Hc)}h=E,s.updateQueue=h,h!==null&&(s.flags|=4)}else{x=E.nodeType===9?E:E.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=ne(l)),i==="http://www.w3.org/1999/xhtml"?l==="script"?(i=x.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof h.is=="string"?i=x.createElement(l,{is:h.is}):(i=x.createElement(l),l==="select"&&(x=i,h.multiple?x.multiple=!0:h.size&&(x.size=h.size))):i=x.createElementNS(i,l),i[Wr]=s,i[Cu]=h,u2(i,s,!1,!1),s.stateNode=i;e:{switch(x=Yr(l,h),l){case"dialog":St("cancel",i),St("close",i),E=h;break;case"iframe":case"object":case"embed":St("load",i),E=h;break;case"video":case"audio":for(E=0;E<Su.length;E++)St(Su[E],i);E=h;break;case"source":St("error",i),E=h;break;case"img":case"image":case"link":St("error",i),St("load",i),E=h;break;case"details":St("toggle",i),E=h;break;case"input":xo(i,h),E=Rn(i,h),St("invalid",i);break;case"option":E=h;break;case"select":i._wrapperState={wasMultiple:!!h.multiple},E=A({},h,{value:void 0}),St("invalid",i);break;case"textarea":lt(i,h),E=ft(i,h),St("invalid",i);break;default:E=h}sn(l,E),R=E;for(b in R)if(R.hasOwnProperty(b)){var H=R[b];b==="style"?Ri(i,H):b==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,H!=null&&Ve(i,H)):b==="children"?typeof H=="string"?(l!=="textarea"||H!=="")&&Xe(i,H):typeof H=="number"&&Xe(i,""+H):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(o.hasOwnProperty(b)?H!=null&&b==="onScroll"&&St("scroll",i):H!=null&&C(i,b,H,x))}switch(l){case"input":on(i),ve(i,h,!1);break;case"textarea":on(i),vt(i);break;case"option":h.value!=null&&i.setAttribute("value",""+we(h.value));break;case"select":i.multiple=!!h.multiple,b=h.value,b!=null?Qe(i,!!h.multiple,b,!1):h.defaultValue!=null&&Qe(i,!!h.multiple,h.defaultValue,!0);break;default:typeof E.onClick=="function"&&(i.onclick=Hc)}switch(l){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return yn(s),null;case 6:if(i&&s.stateNode!=null)c2(i,s,i.memoizedProps,h);else{if(typeof h!="string"&&s.stateNode===null)throw Error(n(166));if(l=Oo(Nu.current),Oo(Xr.current),Gc(s)){if(h=s.stateNode,l=s.memoizedProps,h[Wr]=s,(b=h.nodeValue!==l)&&(i=Gn,i!==null))switch(i.tag){case 3:Uc(h.nodeValue,l,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Uc(h.nodeValue,l,(i.mode&1)!==0)}b&&(s.flags|=4)}else h=(l.nodeType===9?l:l.ownerDocument).createTextNode(h),h[Wr]=s,s.stateNode=h}return yn(s),null;case 13:if(xt(Nt),h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(kt&&Wn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)hx(),Vs(),s.flags|=98560,b=!1;else if(b=Gc(s),h!==null&&h.dehydrated!==null){if(i===null){if(!b)throw Error(n(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(n(317));b[Wr]=s}else Vs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;yn(s),b=!1}else Cr!==null&&(n0(Cr),Cr=null),b=!0;if(!b)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=l,s):(h=h!==null,h!==(i!==null&&i.memoizedState!==null)&&h&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(Nt.current&1)!==0?Wt===0&&(Wt=3):o0())),s.updateQueue!==null&&(s.flags|=4),yn(s),null);case 4:return Ws(),qm(i,s),i===null&&xu(s.stateNode.containerInfo),yn(s),null;case 10:return bm(s.type._context),yn(s),null;case 17:return Dn(s.type)&&jc(),yn(s),null;case 19:if(xt(Nt),b=s.memoizedState,b===null)return yn(s),null;if(h=(s.flags&128)!==0,x=b.rendering,x===null)if(h)Du(b,!1);else{if(Wt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(x=Zc(i),x!==null){for(s.flags|=128,Du(b,!1),h=x.updateQueue,h!==null&&(s.updateQueue=h,s.flags|=4),s.subtreeFlags=0,h=l,l=s.child;l!==null;)b=l,i=h,b.flags&=14680066,x=b.alternate,x===null?(b.childLanes=0,b.lanes=i,b.child=null,b.subtreeFlags=0,b.memoizedProps=null,b.memoizedState=null,b.updateQueue=null,b.dependencies=null,b.stateNode=null):(b.childLanes=x.childLanes,b.lanes=x.lanes,b.child=x.child,b.subtreeFlags=0,b.deletions=null,b.memoizedProps=x.memoizedProps,b.memoizedState=x.memoizedState,b.updateQueue=x.updateQueue,b.type=x.type,i=x.dependencies,b.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),l=l.sibling;return Tt(Nt,Nt.current&1|2),s.child}i=i.sibling}b.tail!==null&&Ft()>Js&&(s.flags|=128,h=!0,Du(b,!1),s.lanes=4194304)}else{if(!h)if(i=Zc(x),i!==null){if(s.flags|=128,h=!0,l=i.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),Du(b,!0),b.tail===null&&b.tailMode==="hidden"&&!x.alternate&&!kt)return yn(s),null}else 2*Ft()-b.renderingStartTime>Js&&l!==1073741824&&(s.flags|=128,h=!0,Du(b,!1),s.lanes=4194304);b.isBackwards?(x.sibling=s.child,s.child=x):(l=b.last,l!==null?l.sibling=x:s.child=x,b.last=x)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=Ft(),s.sibling=null,l=Nt.current,Tt(Nt,h?l&1|2:l&1),s):(yn(s),null);case 22:case 23:return i0(),h=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==h&&(s.flags|=8192),h&&(s.mode&1)!==0?(Xn&1073741824)!==0&&(yn(s),s.subtreeFlags&6&&(s.flags|=8192)):yn(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function o7(i,s){switch(hm(s),s.tag){case 1:return Dn(s.type)&&jc(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Ws(),xt(Ln),xt(gn),Am(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return wm(s),null;case 13:if(xt(Nt),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Vs()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return xt(Nt),null;case 4:return Ws(),null;case 10:return bm(s.type._context),null;case 22:case 23:return i0(),null;case 24:return null;default:return null}}var ud=!1,bn=!1,s7=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function Ks(i,s){var l=i.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(h){Rt(i,s,h)}else l.current=null}function Ym(i,s,l){try{l()}catch(h){Rt(i,s,h)}}var d2=!1;function a7(i,s){if(im=kc,i=$S(),Kp(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else e:{l=(l=i.ownerDocument)&&l.defaultView||window;var h=l.getSelection&&l.getSelection();if(h&&h.rangeCount!==0){l=h.anchorNode;var E=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{l.nodeType,b.nodeType}catch(ye){l=null;break e}var x=0,R=-1,H=-1,J=0,le=0,pe=i,se=null;t:for(;;){for(var xe;pe!==l||E!==0&&pe.nodeType!==3||(R=x+E),pe!==b||h!==0&&pe.nodeType!==3||(H=x+h),pe.nodeType===3&&(x+=pe.nodeValue.length),(xe=pe.firstChild)!==null;)se=pe,pe=xe;for(;;){if(pe===i)break t;if(se===l&&++J===E&&(R=x),se===b&&++le===h&&(H=x),(xe=pe.nextSibling)!==null)break;pe=se,se=pe.parentNode}pe=xe}l=R===-1||H===-1?null:{start:R,end:H}}else l=null}l=l||{start:0,end:0}}else l=null;for(om={focusedElem:i,selectionRange:l},kc=!1,Ae=s;Ae!==null;)if(s=Ae,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Ae=i;else for(;Ae!==null;){s=Ae;try{var ke=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ke!==null){var Ne=ke.memoizedProps,Bt=ke.memoizedState,Y=s.stateNode,z=Y.getSnapshotBeforeUpdate(s.elementType===s.type?Ne:Ar(s.type,Ne),Bt);Y.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var X=s.stateNode.containerInfo;X.nodeType===1?X.textContent="":X.nodeType===9&&X.documentElement&&X.removeChild(X.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ye){Rt(s,s.return,ye)}if(i=s.sibling,i!==null){i.return=s.return,Ae=i;break}Ae=s.return}return ke=d2,d2=!1,ke}function Mu(i,s,l){var h=s.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var E=h=h.next;do{if((E.tag&i)===i){var b=E.destroy;E.destroy=void 0,b!==void 0&&Ym(s,l,b)}E=E.next}while(E!==h)}}function ld(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&i)===i){var h=l.create;l.destroy=h()}l=l.next}while(l!==s)}}function Gm(i){var s=i.ref;if(s!==null){var l=i.stateNode;i.tag,i=l,typeof s=="function"?s(i):s.current=i}}function f2(i){var s=i.alternate;s!==null&&(i.alternate=null,f2(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[Wr],delete s[Cu],delete s[lm],delete s[$9],delete s[V9])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function h2(i){return i.tag===5||i.tag===3||i.tag===4}function p2(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||h2(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Wm(i,s,l){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?l.nodeType===8?l.parentNode.insertBefore(i,s):l.insertBefore(i,s):(l.nodeType===8?(s=l.parentNode,s.insertBefore(i,l)):(s=l,s.appendChild(i)),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=Hc));else if(h!==4&&(i=i.child,i!==null))for(Wm(i,s,l),i=i.sibling;i!==null;)Wm(i,s,l),i=i.sibling}function Xm(i,s,l){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?l.insertBefore(i,s):l.appendChild(i);else if(h!==4&&(i=i.child,i!==null))for(Xm(i,s,l),i=i.sibling;i!==null;)Xm(i,s,l),i=i.sibling}var an=null,vr=!1;function Yi(i,s,l){for(l=l.child;l!==null;)m2(i,s,l),l=l.sibling}function m2(i,s,l){if(Gr&&typeof Gr.onCommitFiberUnmount=="function")try{Gr.onCommitFiberUnmount(Sc,l)}catch(R){}switch(l.tag){case 5:bn||Ks(l,s);case 6:var h=an,E=vr;an=null,Yi(i,s,l),an=h,vr=E,an!==null&&(vr?(i=an,l=l.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):an.removeChild(l.stateNode));break;case 18:an!==null&&(vr?(i=an,l=l.stateNode,i.nodeType===8?um(i.parentNode,l):i.nodeType===1&&um(i,l),pu(i)):um(an,l.stateNode));break;case 4:h=an,E=vr,an=l.stateNode.containerInfo,vr=!0,Yi(i,s,l),an=h,vr=E;break;case 0:case 11:case 14:case 15:if(!bn&&(h=l.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){E=h=h.next;do{var b=E,x=b.destroy;b=b.tag,x!==void 0&&((b&2)!==0||(b&4)!==0)&&Ym(l,s,x),E=E.next}while(E!==h)}Yi(i,s,l);break;case 1:if(!bn&&(Ks(l,s),h=l.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=l.memoizedProps,h.state=l.memoizedState,h.componentWillUnmount()}catch(R){Rt(l,s,R)}Yi(i,s,l);break;case 21:Yi(i,s,l);break;case 22:l.mode&1?(bn=(h=bn)||l.memoizedState!==null,Yi(i,s,l),bn=h):Yi(i,s,l);break;default:Yi(i,s,l)}}function g2(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var l=i.stateNode;l===null&&(l=i.stateNode=new s7),s.forEach(function(h){var E=g7.bind(null,i,h);l.has(h)||(l.add(h),h.then(E,E))})}}function kr(i,s){var l=s.deletions;if(l!==null)for(var h=0;h<l.length;h++){var E=l[h];try{var b=i,x=s,R=x;e:for(;R!==null;){switch(R.tag){case 5:an=R.stateNode,vr=!1;break e;case 3:an=R.stateNode.containerInfo,vr=!0;break e;case 4:an=R.stateNode.containerInfo,vr=!0;break e}R=R.return}if(an===null)throw Error(n(160));m2(b,x,E),an=null,vr=!1;var H=E.alternate;H!==null&&(H.return=null),E.return=null}catch(J){Rt(E,s,J)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)E2(s,i),s=s.sibling}function E2(i,s){var l=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(kr(s,i),Qr(i),h&4){try{Mu(3,i,i.return),ld(3,i)}catch(Ne){Rt(i,i.return,Ne)}try{Mu(5,i,i.return)}catch(Ne){Rt(i,i.return,Ne)}}break;case 1:kr(s,i),Qr(i),h&512&&l!==null&&Ks(l,l.return);break;case 5:if(kr(s,i),Qr(i),h&512&&l!==null&&Ks(l,l.return),i.flags&32){var E=i.stateNode;try{Xe(E,"")}catch(Ne){Rt(i,i.return,Ne)}}if(h&4&&(E=i.stateNode,E!=null)){var b=i.memoizedProps,x=l!==null?l.memoizedProps:b,R=i.type,H=i.updateQueue;if(i.updateQueue=null,H!==null)try{R==="input"&&b.type==="radio"&&b.name!=null&&Ii(E,b),Yr(R,x);var J=Yr(R,b);for(x=0;x<H.length;x+=2){var le=H[x],pe=H[x+1];le==="style"?Ri(E,pe):le==="dangerouslySetInnerHTML"?Ve(E,pe):le==="children"?Xe(E,pe):C(E,le,pe,J)}switch(R){case"input":ci(E,b);break;case"textarea":xn(E,b);break;case"select":var se=E._wrapperState.wasMultiple;E._wrapperState.wasMultiple=!!b.multiple;var xe=b.value;xe!=null?Qe(E,!!b.multiple,xe,!1):se!==!!b.multiple&&(b.defaultValue!=null?Qe(E,!!b.multiple,b.defaultValue,!0):Qe(E,!!b.multiple,b.multiple?[]:"",!1))}E[Cu]=b}catch(Ne){Rt(i,i.return,Ne)}}break;case 6:if(kr(s,i),Qr(i),h&4){if(i.stateNode===null)throw Error(n(162));E=i.stateNode,b=i.memoizedProps;try{E.nodeValue=b}catch(Ne){Rt(i,i.return,Ne)}}break;case 3:if(kr(s,i),Qr(i),h&4&&l!==null&&l.memoizedState.isDehydrated)try{pu(s.containerInfo)}catch(Ne){Rt(i,i.return,Ne)}break;case 4:kr(s,i),Qr(i);break;case 13:kr(s,i),Qr(i),E=i.child,E.flags&8192&&(b=E.memoizedState!==null,E.stateNode.isHidden=b,!b||E.alternate!==null&&E.alternate.memoizedState!==null||(Jm=Ft())),h&4&&g2(i);break;case 22:if(le=l!==null&&l.memoizedState!==null,i.mode&1?(bn=(J=bn)||le,kr(s,i),bn=J):kr(s,i),Qr(i),h&8192){if(J=i.memoizedState!==null,(i.stateNode.isHidden=J)&&!le&&(i.mode&1)!==0)for(Ae=i,le=i.child;le!==null;){for(pe=Ae=le;Ae!==null;){switch(se=Ae,xe=se.child,se.tag){case 0:case 11:case 14:case 15:Mu(4,se,se.return);break;case 1:Ks(se,se.return);var ke=se.stateNode;if(typeof ke.componentWillUnmount=="function"){h=se,l=se.return;try{s=h,ke.props=s.memoizedProps,ke.state=s.memoizedState,ke.componentWillUnmount()}catch(Ne){Rt(h,l,Ne)}}break;case 5:Ks(se,se.return);break;case 22:if(se.memoizedState!==null){T2(pe);continue}}xe!==null?(xe.return=se,Ae=xe):T2(pe)}le=le.sibling}e:for(le=null,pe=i;;){if(pe.tag===5){if(le===null){le=pe;try{E=pe.stateNode,J?(b=E.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none"):(R=pe.stateNode,H=pe.memoizedProps.style,x=H!=null&&H.hasOwnProperty("display")?H.display:null,R.style.display=sr("display",x))}catch(Ne){Rt(i,i.return,Ne)}}}else if(pe.tag===6){if(le===null)try{pe.stateNode.nodeValue=J?"":pe.memoizedProps}catch(Ne){Rt(i,i.return,Ne)}}else if((pe.tag!==22&&pe.tag!==23||pe.memoizedState===null||pe===i)&&pe.child!==null){pe.child.return=pe,pe=pe.child;continue}if(pe===i)break e;for(;pe.sibling===null;){if(pe.return===null||pe.return===i)break e;le===pe&&(le=null),pe=pe.return}le===pe&&(le=null),pe.sibling.return=pe.return,pe=pe.sibling}}break;case 19:kr(s,i),Qr(i),h&4&&g2(i);break;case 21:break;default:kr(s,i),Qr(i)}}function Qr(i){var s=i.flags;if(s&2){try{e:{for(var l=i.return;l!==null;){if(h2(l)){var h=l;break e}l=l.return}throw Error(n(160))}switch(h.tag){case 5:var E=h.stateNode;h.flags&32&&(Xe(E,""),h.flags&=-33);var b=p2(i);Xm(i,b,E);break;case 3:case 4:var x=h.stateNode.containerInfo,R=p2(i);Wm(i,R,x);break;default:throw Error(n(161))}}catch(H){Rt(i,i.return,H)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function u7(i,s,l){Ae=i,y2(i)}function y2(i,s,l){for(var h=(i.mode&1)!==0;Ae!==null;){var E=Ae,b=E.child;if(E.tag===22&&h){var x=E.memoizedState!==null||ud;if(!x){var R=E.alternate,H=R!==null&&R.memoizedState!==null||bn;R=ud;var J=bn;if(ud=x,(bn=H)&&!J)for(Ae=E;Ae!==null;)x=Ae,H=x.child,x.tag===22&&x.memoizedState!==null?_2(E):H!==null?(H.return=x,Ae=H):_2(E);for(;b!==null;)Ae=b,y2(b),b=b.sibling;Ae=E,ud=R,bn=J}b2(i)}else(E.subtreeFlags&8772)!==0&&b!==null?(b.return=E,Ae=b):b2(i)}}function b2(i){for(;Ae!==null;){var s=Ae;if((s.flags&8772)!==0){var l=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:bn||ld(5,s);break;case 1:var h=s.stateNode;if(s.flags&4&&!bn)if(l===null)h.componentDidMount();else{var E=s.elementType===s.type?l.memoizedProps:Ar(s.type,l.memoizedProps);h.componentDidUpdate(E,l.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var b=s.updateQueue;b!==null&&Tx(s,b,h);break;case 3:var x=s.updateQueue;if(x!==null){if(l=null,s.child!==null)switch(s.child.tag){case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}Tx(s,x,l)}break;case 5:var R=s.stateNode;if(l===null&&s.flags&4){l=R;var H=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":H.autoFocus&&l.focus();break;case"img":H.src&&(l.src=H.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var J=s.alternate;if(J!==null){var le=J.memoizedState;if(le!==null){var pe=le.dehydrated;pe!==null&&pu(pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}bn||s.flags&512&&Gm(s)}catch(se){Rt(s,s.return,se)}}if(s===i){Ae=null;break}if(l=s.sibling,l!==null){l.return=s.return,Ae=l;break}Ae=s.return}}function T2(i){for(;Ae!==null;){var s=Ae;if(s===i){Ae=null;break}var l=s.sibling;if(l!==null){l.return=s.return,Ae=l;break}Ae=s.return}}function _2(i){for(;Ae!==null;){var s=Ae;try{switch(s.tag){case 0:case 11:case 15:var l=s.return;try{ld(4,s)}catch(H){Rt(s,l,H)}break;case 1:var h=s.stateNode;if(typeof h.componentDidMount=="function"){var E=s.return;try{h.componentDidMount()}catch(H){Rt(s,E,H)}}var b=s.return;try{Gm(s)}catch(H){Rt(s,b,H)}break;case 5:var x=s.return;try{Gm(s)}catch(H){Rt(s,x,H)}}}catch(H){Rt(s,s.return,H)}if(s===i){Ae=null;break}var R=s.sibling;if(R!==null){R.return=s.return,Ae=R;break}Ae=s.return}}var l7=Math.ceil,cd=M.ReactCurrentDispatcher,Km=M.ReactCurrentOwner,dr=M.ReactCurrentBatchConfig,it=0,nn=null,Vt=null,un=0,Xn=0,Qs=zi(0),Wt=0,Fu=null,Ro=0,dd=0,Qm=0,Bu=null,Fn=null,Jm=0,Js=1/0,yi=null,fd=!1,Zm=null,Gi=null,hd=!1,Wi=null,pd=0,Uu=0,e0=null,md=-1,gd=0;function Cn(){return(it&6)!==0?Ft():md!==-1?md:md=Ft()}function Xi(i){return(i.mode&1)===0?1:(it&2)!==0&&un!==0?un&-un:Y9.transition!==null?(gd===0&&(gd=pS()),gd):(i=ct,i!==0||(i=window.event,i=i===void 0?16:xS(i.type)),i)}function Pr(i,s,l,h){if(50<Uu)throw Uu=0,e0=null,Error(n(185));lu(i,l,h),((it&2)===0||i!==nn)&&(i===nn&&((it&2)===0&&(dd|=l),Wt===4&&Ki(i,un)),Bn(i,h),l===1&&it===0&&(s.mode&1)===0&&(Js=Ft()+500,Vc&&$i()))}function Bn(i,s){var l=i.callbackNode;YB(i,s);var h=Cc(i,i===nn?un:0);if(h===0)l!==null&&dS(l),i.callbackNode=null,i.callbackPriority=0;else if(s=h&-h,i.callbackPriority!==s){if(l!=null&&dS(l),s===1)i.tag===0?q9(x2.bind(null,i)):ux(x2.bind(null,i)),z9(function(){(it&6)===0&&$i()}),l=null;else{switch(mS(h)){case 1:l=Rp;break;case 4:l=fS;break;case 16:l=_c;break;case 536870912:l=hS;break;default:l=_c}l=O2(l,S2.bind(null,i))}i.callbackPriority=s,i.callbackNode=l}}function S2(i,s){if(md=-1,gd=0,(it&6)!==0)throw Error(n(327));var l=i.callbackNode;if(Zs()&&i.callbackNode!==l)return null;var h=Cc(i,i===nn?un:0);if(h===0)return null;if((h&30)!==0||(h&i.expiredLanes)!==0||s)s=Ed(i,h);else{s=h;var E=it;it|=2;var b=C2();(nn!==i||un!==s)&&(yi=null,Js=Ft()+500,Do(i,s));do try{f7();break}catch(R){w2(i,R)}while(!0);ym(),cd.current=b,it=E,Vt!==null?s=0:(nn=null,un=0,s=Wt)}if(s!==0){if(s===2&&(E=Lp(i),E!==0&&(h=E,s=t0(i,E))),s===1)throw l=Fu,Do(i,0),Ki(i,h),Bn(i,Ft()),l;if(s===6)Ki(i,h);else{if(E=i.current.alternate,(h&30)===0&&!c7(E)&&(s=Ed(i,h),s===2&&(b=Lp(i),b!==0&&(h=b,s=t0(i,b))),s===1))throw l=Fu,Do(i,0),Ki(i,h),Bn(i,Ft()),l;switch(i.finishedWork=E,i.finishedLanes=h,s){case 0:case 1:throw Error(n(345));case 2:Mo(i,Fn,yi);break;case 3:if(Ki(i,h),(h&130023424)===h&&(s=Jm+500-Ft(),10<s)){if(Cc(i,0)!==0)break;if(E=i.suspendedLanes,(E&h)!==h){Cn(),i.pingedLanes|=i.suspendedLanes&E;break}i.timeoutHandle=am(Mo.bind(null,i,Fn,yi),s);break}Mo(i,Fn,yi);break;case 4:if(Ki(i,h),(h&4194240)===h)break;for(s=i.eventTimes,E=-1;0<h;){var x=31-xr(h);b=1<<x,x=s[x],x>E&&(E=x),h&=~b}if(h=E,h=Ft()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*l7(h/1960))-h,10<h){i.timeoutHandle=am(Mo.bind(null,i,Fn,yi),h);break}Mo(i,Fn,yi);break;case 5:Mo(i,Fn,yi);break;default:throw Error(n(329))}}}return Bn(i,Ft()),i.callbackNode===l?S2.bind(null,i):null}function t0(i,s){var l=Bu;return i.current.memoizedState.isDehydrated&&(Do(i,s).flags|=256),i=Ed(i,s),i!==2&&(s=Fn,Fn=l,s!==null&&n0(s)),i}function n0(i){Fn===null?Fn=i:Fn.push.apply(Fn,i)}function c7(i){for(var s=i;;){if(s.flags&16384){var l=s.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var h=0;h<l.length;h++){var E=l[h],b=E.getSnapshot;E=E.value;try{if(!wr(b(),E))return!1}catch(x){return!1}}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ki(i,s){for(s&=~Qm,s&=~dd,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var l=31-xr(s),h=1<<l;i[l]=-1,s&=~h}}function x2(i){if((it&6)!==0)throw Error(n(327));Zs();var s=Cc(i,0);if((s&1)===0)return Bn(i,Ft()),null;var l=Ed(i,s);if(i.tag!==0&&l===2){var h=Lp(i);h!==0&&(s=h,l=t0(i,h))}if(l===1)throw l=Fu,Do(i,0),Ki(i,s),Bn(i,Ft()),l;if(l===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,Mo(i,Fn,yi),Bn(i,Ft()),null}function r0(i,s){var l=it;it|=1;try{return i(s)}finally{it=l,it===0&&(Js=Ft()+500,Vc&&$i())}}function Lo(i){Wi!==null&&Wi.tag===0&&(it&6)===0&&Zs();var s=it;it|=1;var l=dr.transition,h=ct;try{if(dr.transition=null,ct=1,i)return i()}finally{ct=h,dr.transition=l,it=s,(it&6)===0&&$i()}}function i0(){Xn=Qs.current,xt(Qs)}function Do(i,s){i.finishedWork=null,i.finishedLanes=0;var l=i.timeoutHandle;if(l!==-1&&(i.timeoutHandle=-1,H9(l)),Vt!==null)for(l=Vt.return;l!==null;){var h=l;switch(hm(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&jc();break;case 3:Ws(),xt(Ln),xt(gn),Am();break;case 5:wm(h);break;case 4:Ws();break;case 13:xt(Nt);break;case 19:xt(Nt);break;case 10:bm(h.type._context);break;case 22:case 23:i0()}l=l.return}if(nn=i,Vt=i=Qi(i.current,null),un=Xn=s,Wt=0,Fu=null,Qm=dd=Ro=0,Fn=Bu=null,No!==null){for(s=0;s<No.length;s++)if(l=No[s],h=l.interleaved,h!==null){l.interleaved=null;var E=h.next,b=l.pending;if(b!==null){var x=b.next;b.next=E,h.next=x}l.pending=h}No=null}return i}function w2(i,s){do{var l=Vt;try{if(ym(),ed.current=id,td){for(var h=Ot.memoizedState;h!==null;){var E=h.queue;E!==null&&(E.pending=null),h=h.next}td=!1}if(Io=0,tn=Gt=Ot=null,Ou=!1,Iu=0,Km.current=null,l===null||l.return===null){Wt=1,Fu=s,Vt=null;break}e:{var b=i,x=l.return,R=l,H=s;if(s=un,R.flags|=32768,H!==null&&typeof H=="object"&&typeof H.then=="function"){var J=H,le=R,pe=le.tag;if((le.mode&1)===0&&(pe===0||pe===11||pe===15)){var se=le.alternate;se?(le.updateQueue=se.updateQueue,le.memoizedState=se.memoizedState,le.lanes=se.lanes):(le.updateQueue=null,le.memoizedState=null)}var xe=Xx(x);if(xe!==null){xe.flags&=-257,Kx(xe,x,R,b,s),xe.mode&1&&Wx(b,J,s),s=xe,H=J;var ke=s.updateQueue;if(ke===null){var Ne=new Set;Ne.add(H),s.updateQueue=Ne}else ke.add(H);break e}else{if((s&1)===0){Wx(b,J,s),o0();break e}H=Error(n(426))}}else if(kt&&R.mode&1){var Bt=Xx(x);if(Bt!==null){(Bt.flags&65536)===0&&(Bt.flags|=256),Kx(Bt,x,R,b,s),gm(Xs(H,R));break e}}b=H=Xs(H,R),Wt!==4&&(Wt=2),Bu===null?Bu=[b]:Bu.push(b),b=x;do{switch(b.tag){case 3:b.flags|=65536,s&=-s,b.lanes|=s;var Y=Yx(b,H,s);bx(b,Y);break e;case 1:R=H;var z=b.type,X=b.stateNode;if((b.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||X!==null&&typeof X.componentDidCatch=="function"&&(Gi===null||!Gi.has(X)))){b.flags|=65536,s&=-s,b.lanes|=s;var ye=Gx(b,R,s);bx(b,ye);break e}}b=b.return}while(b!==null)}v2(l)}catch(Le){s=Le,Vt===l&&l!==null&&(Vt=l=l.return);continue}break}while(!0)}function C2(){var i=cd.current;return cd.current=id,i===null?id:i}function o0(){(Wt===0||Wt===3||Wt===2)&&(Wt=4),nn===null||(Ro&268435455)===0&&(dd&268435455)===0||Ki(nn,un)}function Ed(i,s){var l=it;it|=2;var h=C2();(nn!==i||un!==s)&&(yi=null,Do(i,s));do try{d7();break}catch(E){w2(i,E)}while(!0);if(ym(),it=l,cd.current=h,Vt!==null)throw Error(n(261));return nn=null,un=0,Wt}function d7(){for(;Vt!==null;)A2(Vt)}function f7(){for(;Vt!==null&&!FB();)A2(Vt)}function A2(i){var s=N2(i.alternate,i,Xn);i.memoizedProps=i.pendingProps,s===null?v2(i):Vt=s,Km.current=null}function v2(i){var s=i;do{var l=s.alternate;if(i=s.return,(s.flags&32768)===0){if(l=i7(l,s,Xn),l!==null){Vt=l;return}}else{if(l=o7(l,s),l!==null){l.flags&=32767,Vt=l;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Wt=6,Vt=null;return}}if(s=s.sibling,s!==null){Vt=s;return}Vt=s=i}while(s!==null);Wt===0&&(Wt=5)}function Mo(i,s,l){var h=ct,E=dr.transition;try{dr.transition=null,ct=1,h7(i,s,l,h)}finally{dr.transition=E,ct=h}return null}function h7(i,s,l,h){do Zs();while(Wi!==null);if((it&6)!==0)throw Error(n(327));l=i.finishedWork;var E=i.finishedLanes;if(l===null)return null;if(i.finishedWork=null,i.finishedLanes=0,l===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var b=l.lanes|l.childLanes;if(GB(i,b),i===nn&&(Vt=nn=null,un=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||hd||(hd=!0,O2(_c,function(){return Zs(),null})),b=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||b){b=dr.transition,dr.transition=null;var x=ct;ct=1;var R=it;it|=4,Km.current=null,a7(i,l),E2(l,i),R9(om),kc=!!im,om=im=null,i.current=l,u7(l),BB(),it=R,ct=x,dr.transition=b}else i.current=l;if(hd&&(hd=!1,Wi=i,pd=E),b=i.pendingLanes,b===0&&(Gi=null),zB(l.stateNode),Bn(i,Ft()),s!==null)for(h=i.onRecoverableError,l=0;l<s.length;l++)E=s[l],h(E.value,{componentStack:E.stack,digest:E.digest});if(fd)throw fd=!1,i=Zm,Zm=null,i;return(pd&1)!==0&&i.tag!==0&&Zs(),b=i.pendingLanes,(b&1)!==0?i===e0?Uu++:(Uu=0,e0=i):Uu=0,$i(),null}function Zs(){if(Wi!==null){var i=mS(pd),s=dr.transition,l=ct;try{if(dr.transition=null,ct=16>i?16:i,Wi===null)var h=!1;else{if(i=Wi,Wi=null,pd=0,(it&6)!==0)throw Error(n(331));var E=it;for(it|=4,Ae=i.current;Ae!==null;){var b=Ae,x=b.child;if((Ae.flags&16)!==0){var R=b.deletions;if(R!==null){for(var H=0;H<R.length;H++){var J=R[H];for(Ae=J;Ae!==null;){var le=Ae;switch(le.tag){case 0:case 11:case 15:Mu(8,le,b)}var pe=le.child;if(pe!==null)pe.return=le,Ae=pe;else for(;Ae!==null;){le=Ae;var se=le.sibling,xe=le.return;if(f2(le),le===J){Ae=null;break}if(se!==null){se.return=xe,Ae=se;break}Ae=xe}}}var ke=b.alternate;if(ke!==null){var Ne=ke.child;if(Ne!==null){ke.child=null;do{var Bt=Ne.sibling;Ne.sibling=null,Ne=Bt}while(Ne!==null)}}Ae=b}}if((b.subtreeFlags&2064)!==0&&x!==null)x.return=b,Ae=x;else e:for(;Ae!==null;){if(b=Ae,(b.flags&2048)!==0)switch(b.tag){case 0:case 11:case 15:Mu(9,b,b.return)}var Y=b.sibling;if(Y!==null){Y.return=b.return,Ae=Y;break e}Ae=b.return}}var z=i.current;for(Ae=z;Ae!==null;){x=Ae;var X=x.child;if((x.subtreeFlags&2064)!==0&&X!==null)X.return=x,Ae=X;else e:for(x=z;Ae!==null;){if(R=Ae,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:ld(9,R)}}catch(Le){Rt(R,R.return,Le)}if(R===x){Ae=null;break e}var ye=R.sibling;if(ye!==null){ye.return=R.return,Ae=ye;break e}Ae=R.return}}if(it=E,$i(),Gr&&typeof Gr.onPostCommitFiberRoot=="function")try{Gr.onPostCommitFiberRoot(Sc,i)}catch(Le){}h=!0}return h}finally{ct=l,dr.transition=s}}return!1}function k2(i,s,l){s=Xs(l,s),s=Yx(i,s,1),i=qi(i,s,1),s=Cn(),i!==null&&(lu(i,1,s),Bn(i,s))}function Rt(i,s,l){if(i.tag===3)k2(i,i,l);else for(;s!==null;){if(s.tag===3){k2(s,i,l);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Gi===null||!Gi.has(h))){i=Xs(l,i),i=Gx(s,i,1),s=qi(s,i,1),i=Cn(),s!==null&&(lu(s,1,i),Bn(s,i));break}}s=s.return}}function p7(i,s,l){var h=i.pingCache;h!==null&&h.delete(s),s=Cn(),i.pingedLanes|=i.suspendedLanes&l,nn===i&&(un&l)===l&&(Wt===4||Wt===3&&(un&130023424)===un&&500>Ft()-Jm?Do(i,0):Qm|=l),Bn(i,s)}function P2(i,s){s===0&&((i.mode&1)===0?s=1:(s=wc,wc<<=1,(wc&130023424)===0&&(wc=4194304)));var l=Cn();i=mi(i,s),i!==null&&(lu(i,s,l),Bn(i,l))}function m7(i){var s=i.memoizedState,l=0;s!==null&&(l=s.retryLane),P2(i,l)}function g7(i,s){var l=0;switch(i.tag){case 13:var h=i.stateNode,E=i.memoizedState;E!==null&&(l=E.retryLane);break;case 19:h=i.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(s),P2(i,l)}var N2;N2=function(i,s,l){if(i!==null)if(i.memoizedProps!==s.pendingProps||Ln.current)Mn=!0;else{if((i.lanes&l)===0&&(s.flags&128)===0)return Mn=!1,r7(i,s,l);Mn=(i.flags&131072)!==0}else Mn=!1,kt&&(s.flags&1048576)!==0&&lx(s,Yc,s.index);switch(s.lanes=0,s.tag){case 2:var h=s.type;ad(i,s),i=s.pendingProps;var E=zs(s,gn.current);Gs(s,l),E=Pm(null,s,h,i,E,l);var b=Nm();return s.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Dn(h)?(b=!0,$c(s)):b=!1,s.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,Sm(s),E.updater=od,s.stateNode=E,E._reactInternals=s,Mm(s,h,i,l),s=Hm(null,s,h,!0,b,l)):(s.tag=0,kt&&b&&fm(s),wn(null,s,E,l),s=s.child),s;case 16:h=s.elementType;e:{switch(ad(i,s),i=s.pendingProps,E=h._init,h=E(h._payload),s.type=h,E=s.tag=y7(h),i=Ar(h,i),E){case 0:s=Um(null,s,h,i,l);break e;case 1:s=n2(null,s,h,i,l);break e;case 11:s=Qx(null,s,h,i,l);break e;case 14:s=Jx(null,s,h,Ar(h.type,i),l);break e}throw Error(n(306,h,""))}return s;case 0:return h=s.type,E=s.pendingProps,E=s.elementType===h?E:Ar(h,E),Um(i,s,h,E,l);case 1:return h=s.type,E=s.pendingProps,E=s.elementType===h?E:Ar(h,E),n2(i,s,h,E,l);case 3:e:{if(r2(s),i===null)throw Error(n(387));h=s.pendingProps,b=s.memoizedState,E=b.element,yx(i,s),Jc(s,h,null,l);var x=s.memoizedState;if(h=x.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},s.updateQueue.baseState=b,s.memoizedState=b,s.flags&256){E=Xs(Error(n(423)),s),s=i2(i,s,h,l,E);break e}else if(h!==E){E=Xs(Error(n(424)),s),s=i2(i,s,h,l,E);break e}else for(Wn=Hi(s.stateNode.containerInfo.firstChild),Gn=s,kt=!0,Cr=null,l=gx(s,null,h,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Vs(),h===E){s=Ei(i,s,l);break e}wn(i,s,h,l)}s=s.child}return s;case 5:return _x(s),i===null&&mm(s),h=s.type,E=s.pendingProps,b=i!==null?i.memoizedProps:null,x=E.children,sm(h,E)?x=null:b!==null&&sm(h,b)&&(s.flags|=32),t2(i,s),wn(i,s,x,l),s.child;case 6:return i===null&&mm(s),null;case 13:return o2(i,s,l);case 4:return xm(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=qs(s,null,h,l):wn(i,s,h,l),s.child;case 11:return h=s.type,E=s.pendingProps,E=s.elementType===h?E:Ar(h,E),Qx(i,s,h,E,l);case 7:return wn(i,s,s.pendingProps,l),s.child;case 8:return wn(i,s,s.pendingProps.children,l),s.child;case 12:return wn(i,s,s.pendingProps.children,l),s.child;case 10:e:{if(h=s.type._context,E=s.pendingProps,b=s.memoizedProps,x=E.value,Tt(Xc,h._currentValue),h._currentValue=x,b!==null)if(wr(b.value,x)){if(b.children===E.children&&!Ln.current){s=Ei(i,s,l);break e}}else for(b=s.child,b!==null&&(b.return=s);b!==null;){var R=b.dependencies;if(R!==null){x=b.child;for(var H=R.firstContext;H!==null;){if(H.context===h){if(b.tag===1){H=gi(-1,l&-l),H.tag=2;var J=b.updateQueue;if(J!==null){J=J.shared;var le=J.pending;le===null?H.next=H:(H.next=le.next,le.next=H),J.pending=H}}b.lanes|=l,H=b.alternate,H!==null&&(H.lanes|=l),Tm(b.return,l,s),R.lanes|=l;break}H=H.next}}else if(b.tag===10)x=b.type===s.type?null:b.child;else if(b.tag===18){if(x=b.return,x===null)throw Error(n(341));x.lanes|=l,R=x.alternate,R!==null&&(R.lanes|=l),Tm(x,l,s),x=b.sibling}else x=b.child;if(x!==null)x.return=b;else for(x=b;x!==null;){if(x===s){x=null;break}if(b=x.sibling,b!==null){b.return=x.return,x=b;break}x=x.return}b=x}wn(i,s,E.children,l),s=s.child}return s;case 9:return E=s.type,h=s.pendingProps.children,Gs(s,l),E=lr(E),h=h(E),s.flags|=1,wn(i,s,h,l),s.child;case 14:return h=s.type,E=Ar(h,s.pendingProps),E=Ar(h.type,E),Jx(i,s,h,E,l);case 15:return Zx(i,s,s.type,s.pendingProps,l);case 17:return h=s.type,E=s.pendingProps,E=s.elementType===h?E:Ar(h,E),ad(i,s),s.tag=1,Dn(h)?(i=!0,$c(s)):i=!1,Gs(s,l),Vx(s,h,E),Mm(s,h,E,l),Hm(null,s,h,!0,i,l);case 19:return a2(i,s,l);case 22:return e2(i,s,l)}throw Error(n(156,s.tag))};function O2(i,s){return cS(i,s)}function E7(i,s,l,h){this.tag=i,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fr(i,s,l,h){return new E7(i,s,l,h)}function s0(i){return i=i.prototype,!(!i||!i.isReactComponent)}function y7(i){if(typeof i=="function")return s0(i)?1:0;if(i!=null){if(i=i.$$typeof,i===ce)return 11;if(i===Te)return 14}return 2}function Qi(i,s){var l=i.alternate;return l===null?(l=fr(i.tag,s,i.key,i.mode),l.elementType=i.elementType,l.type=i.type,l.stateNode=i.stateNode,l.alternate=i,i.alternate=l):(l.pendingProps=s,l.type=i.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=i.flags&14680064,l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,s=i.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=i.sibling,l.index=i.index,l.ref=i.ref,l}function yd(i,s,l,h,E,b){var x=2;if(h=i,typeof i=="function")s0(i)&&(x=1);else if(typeof i=="string")x=5;else e:switch(i){case K:return Fo(l.children,E,b,s);case re:x=8,E|=8;break;case be:return i=fr(12,l,s,E|2),i.elementType=be,i.lanes=b,i;case he:return i=fr(13,l,s,E),i.elementType=he,i.lanes=b,i;case ue:return i=fr(19,l,s,E),i.elementType=ue,i.lanes=b,i;case de:return bd(l,E,b,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case $:x=10;break e;case Z:x=9;break e;case ce:x=11;break e;case Te:x=14;break e;case Oe:x=16,h=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return s=fr(x,l,s,E),s.elementType=i,s.type=h,s.lanes=b,s}function Fo(i,s,l,h){return i=fr(7,i,h,s),i.lanes=l,i}function bd(i,s,l,h){return i=fr(22,i,h,s),i.elementType=de,i.lanes=l,i.stateNode={isHidden:!1},i}function a0(i,s,l){return i=fr(6,i,null,s),i.lanes=l,i}function u0(i,s,l){return s=fr(4,i.children!==null?i.children:[],i.key,s),s.lanes=l,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function b7(i,s,l,h,E){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dp(0),this.expirationTimes=Dp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dp(0),this.identifierPrefix=h,this.onRecoverableError=E,this.mutableSourceEagerHydrationData=null}function l0(i,s,l,h,E,b,x,R,H){return i=new b7(i,s,l,R,H),s===1?(s=1,b===!0&&(s|=8)):s=0,b=fr(3,null,null,s),i.current=b,b.stateNode=i,b.memoizedState={element:h,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sm(b),i}function T7(i,s,l){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:h==null?null:""+h,children:i,containerInfo:s,implementation:l}}function I2(i){if(!i)return ji;i=i._reactInternals;e:{if(Co(i)!==i||i.tag!==1)throw Error(n(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Dn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(i.tag===1){var l=i.type;if(Dn(l))return sx(i,l,s)}return s}function R2(i,s,l,h,E,b,x,R,H){return i=l0(l,h,!0,i,E,b,x,R,H),i.context=I2(null),l=i.current,h=Cn(),E=Xi(l),b=gi(h,E),b.callback=s!=null?s:null,qi(l,b,E),i.current.lanes=E,lu(i,E,h),Bn(i,h),i}function Td(i,s,l,h){var E=s.current,b=Cn(),x=Xi(E);return l=I2(l),s.context===null?s.context=l:s.pendingContext=l,s=gi(b,x),s.payload={element:i},h=h===void 0?null:h,h!==null&&(s.callback=h),i=qi(E,s,x),i!==null&&(Pr(i,E,x,b),Qc(i,E,x)),x}function _d(i){return i=i.current,i.child?(i.child.tag===5,i.child.stateNode):null}function L2(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<s?l:s}}function c0(i,s){L2(i,s),(i=i.alternate)&&L2(i,s)}function _7(){return null}var D2=typeof reportError=="function"?reportError:function(i){console.error(i)};function d0(i){this._internalRoot=i}Sd.prototype.render=d0.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));Td(i,s,null,null)},Sd.prototype.unmount=d0.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Lo(function(){Td(null,i,null,null)}),s[di]=null}};function Sd(i){this._internalRoot=i}Sd.prototype.unstable_scheduleHydration=function(i){if(i){var s=yS();i={blockedOn:null,target:i,priority:s};for(var l=0;l<Fi.length&&s!==0&&s<Fi[l].priority;l++);Fi.splice(l,0,i),l===0&&_S(i)}};function f0(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function xd(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function M2(){}function S7(i,s,l,h,E){if(E){if(typeof h=="function"){var b=h;h=function(){var J=_d(x);b.call(J)}}var x=R2(s,h,i,0,null,!1,!1,"",M2);return i._reactRootContainer=x,i[di]=x.current,xu(i.nodeType===8?i.parentNode:i),Lo(),x}for(;E=i.lastChild;)i.removeChild(E);if(typeof h=="function"){var R=h;h=function(){var J=_d(H);R.call(J)}}var H=l0(i,0,!1,null,null,!1,!1,"",M2);return i._reactRootContainer=H,i[di]=H.current,xu(i.nodeType===8?i.parentNode:i),Lo(function(){Td(s,H,l,h)}),H}function wd(i,s,l,h,E){var b=l._reactRootContainer;if(b){var x=b;if(typeof E=="function"){var R=E;E=function(){var H=_d(x);R.call(H)}}Td(s,x,i,E)}else x=S7(l,s,i,E,h);return _d(x)}gS=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var l=uu(s.pendingLanes);l!==0&&(Mp(s,l|1),Bn(s,Ft()),(it&6)===0&&(Js=Ft()+500,$i()))}break;case 13:Lo(function(){var h=mi(i,1);if(h!==null){var E=Cn();Pr(h,i,1,E)}}),c0(i,1)}},Fp=function(i){if(i.tag===13){var s=mi(i,134217728);if(s!==null){var l=Cn();Pr(s,i,134217728,l)}c0(i,134217728)}},ES=function(i){if(i.tag===13){var s=Xi(i),l=mi(i,s);if(l!==null){var h=Cn();Pr(l,i,s,h)}c0(i,s)}},yS=function(){return ct},bS=function(i,s){var l=ct;try{return ct=i,s()}finally{ct=l}},Pp=function(i,s,l){switch(s){case"input":if(ci(i,l),s=l.name,l.type==="radio"&&s!=null){for(l=i;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<l.length;s++){var h=l[s];if(h!==i&&h.form===i.form){var E=zc(h);if(!E)throw Error(n(90));qr(h),ci(h,E)}}}break;case"textarea":xn(i,l);break;case"select":s=l.value,s!=null&&Qe(i,!!l.multiple,s,!1)}},rS=r0,iS=Lo;var x7={usingClientEntryPoint:!1,Events:[Au,Us,zc,tS,nS,r0]},Hu={findFiberByHostInstance:Ao,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},w7={bundleType:Hu.bundleType,version:Hu.version,rendererPackageName:Hu.rendererPackageName,rendererConfig:Hu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=uS(i),i===null?null:i.stateNode},findFiberByHostInstance:Hu.findFiberByHostInstance||_7,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Cd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cd.isDisabled&&Cd.supportsFiber)try{Sc=Cd.inject(w7),Gr=Cd}catch(i){}}return kn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x7,kn.createPortal=function(i,s){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f0(s))throw Error(n(200));return T7(i,s,null,l)},kn.createRoot=function(i,s){if(!f0(i))throw Error(n(299));var l=!1,h="",E=D2;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onRecoverableError!==void 0&&(E=s.onRecoverableError)),s=l0(i,1,!1,null,null,l,!1,h,E),i[di]=s.current,xu(i.nodeType===8?i.parentNode:i),new d0(s)},kn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=uS(s),i=i===null?null:i.stateNode,i},kn.flushSync=function(i){return Lo(i)},kn.hydrate=function(i,s,l){if(!xd(s))throw Error(n(200));return wd(null,i,s,!0,l)},kn.hydrateRoot=function(i,s,l){if(!f0(i))throw Error(n(405));var h=l!=null&&l.hydratedSources||null,E=!1,b="",x=D2;if(l!=null&&(l.unstable_strictMode===!0&&(E=!0),l.identifierPrefix!==void 0&&(b=l.identifierPrefix),l.onRecoverableError!==void 0&&(x=l.onRecoverableError)),s=R2(s,null,i,1,l!=null?l:null,E,!1,b,x),i[di]=s.current,xu(i),h)for(i=0;i<h.length;i++)l=h[i],E=l._getVersion,E=E(l._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[l,E]:s.mutableSourceEagerHydrationData.push(l,E);return new Sd(s)},kn.render=function(i,s,l){if(!xd(s))throw Error(n(200));return wd(null,i,s,!1,l)},kn.unmountComponentAtNode=function(i){if(!xd(i))throw Error(n(40));return i._reactRootContainer?(Lo(function(){wd(null,null,i,!1,function(){i._reactRootContainer=null,i[di]=null})}),!0):!1},kn.unstable_batchedUpdates=r0,kn.unstable_renderSubtreeIntoContainer=function(i,s,l,h){if(!xd(l))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return wd(i,s,l,!1,h)},kn.version="18.3.1-next-f1338f8080-20240426",kn}var T1;function _1(){if(T1)return vf.exports;T1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vf.exports=Ek(),vf.exports}var Xo=_1();function S1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=S1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function W(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=S1(e))&&(r&&(r+=" "),r+=t);return r}const ri=({className:e,iconUrl:t,icon:n,type:r="button",ariaLabel:o,title:a,disabled:u=!1,onClick:c})=>!n&&!t?null:w.jsx("button",{className:W(e,`${j}-icon-button`),type:r,"aria-label":o,title:a,onClick:c,disabled:u,children:t?w.jsx("img",{className:W(`${j}-icon-image`),src:t,alt:o,loading:"lazy"}):n}),yk="data:image/svg+xml,%3csvg%20width='140'%20height='137'%20viewBox='0%200%20140%20137'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M140%2034.5C140%2040.8513%20135.075%2046%20129%2046C122.925%2046%20118%2040.8513%20118%2034.5C118%2028.1487%20122.925%2023%20129%2023C135.075%2023%20140%2028.1487%20140%2034.5Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M85%2011.3028C85%205.06042%2090.1487%200%2096.5%200C102.851%200%20108%205.06042%20108%2011.3028V21.6972C108%2027.9396%20102.851%2033%2096.5%2033C90.1487%2033%2085%2027.9396%2085%2021.6972V11.3028Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M41.3868%2030.0986C36.9601%2025.6719%2036.9601%2018.4948%2041.3868%2014.0682C45.8134%209.64151%2052.9905%209.6415%2057.4172%2014.0682L71.3628%2028.0138C75.7894%2032.4404%2075.7894%2039.6175%2071.3628%2044.0442C66.9361%2048.4708%2059.759%2048.4708%2055.3324%2044.0442L41.3868%2030.0986Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M140%20101C140%2094.9249%20135.075%2090%20129%2090C122.925%2090%20118%2094.9249%20118%20101C118%20107.075%20122.925%20112%20129%20112C135.075%20112%20140%20107.075%20140%20101Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M85%20125.697C85%20131.94%2090.1487%20137%2096.5%20137C102.851%20137%20108%20131.94%20108%20125.697V115.303C108%20109.06%20102.851%20104%2096.5%20104C90.1487%20104%2085%20109.06%2085%20115.303V125.697Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M41.3868%20106.932C36.9601%20111.359%2036.9601%20118.536%2041.3868%20122.963C45.8134%20127.389%2052.9905%20127.39%2057.4172%20122.963L71.3628%20109.017C75.7894%20104.591%2075.7894%2097.4135%2071.3628%2092.9868C66.9361%2088.5602%2059.759%2088.5602%2055.3324%2092.9868L41.3868%20106.932Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M11.259%2080C5.04084%2080%200%2074.8513%200%2068.5C0%2062.1487%205.04084%2057%2011.259%2057H49.741C55.9592%2057%2061%2062.1487%2061%2068.5C61%2074.8513%2055.9592%2080%2049.741%2080H11.259Z'%20fill='%23F3F2EB'/%3e%3c/svg%3e",bk=()=>{const{globalClassName:e,headerConfig:t,themeVariables:n}=at(),r=()=>{pl(!1),Si(!0)};return Xo.createPortal(w.jsx("div",{className:W(e,`${j}-minimized-container`),style:n,children:w.jsx(ri,{className:W(e,`${j}-minimized-button`),ariaLabel:"Open Copilot",icon:w.jsx("img",{src:(t==null?void 0:t.logoUrl)||yk,alt:"Copilot",className:W(e,`${j}-minimized-icon-img`)}),onClick:r})}),document.body)};var x1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},w1=Zi.createContext&&Zi.createContext(x1),Tk=["attr","size","title"];function _k(e,t){if(e==null)return{};var n=Sk(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sk(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},El.apply(this,arguments)}function C1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(n),!0).forEach(function(r){xk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xk(e,t,n){return t=wk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wk(e){var t=Ck(e,"string");return typeof t=="symbol"?t:t+""}function Ck(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A1(e){return e&&e.map((t,n)=>Zi.createElement(t.tag,yl({key:n},t.attr),A1(t.child)))}function zt(e){return t=>Zi.createElement(Ak,El({attr:yl({},e.attr)},t),A1(e.child))}function Ak(e){var t=n=>{var{attr:r,size:o,title:a}=e,u=_k(e,Tk),c=o||n.size||"1em",d;return n.className&&(d=n.className),e.className&&(d=(d?d+" ":"")+e.className),Zi.createElement("svg",El({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,u,{className:d,style:yl(yl({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&Zi.createElement("title",null,a),e.children)};return w1!==void 0?Zi.createElement(w1.Consumer,null,n=>t(n)):t(x1)}function v1(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},child:[]}]})(e)}function k1(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 19h12v2H6z"},child:[]}]})(e)}function Ko(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function vk(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]}]})(e)}function P1(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"},child:[]}]})(e)}function kk(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"},child:[]}]})(e)}function Pk(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(e)}function Nk(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"},child:[]}]})(e)}function Ok(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"},child:[]}]})(e)}function Ik(e){return zt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.12 4 1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm-3 7c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5z"},child:[]}]})(e)}const Rk=e=>({[`${ni}-header-background-color`]:(e==null?void 0:e.headerBackgroundColor)||"transparent",[`${ni}-header-text-font-size`]:(e==null?void 0:e.headerTextFontSize)||"1.25rem"}),N1=({className:e,label:t="Close",onClick:n,disabled:r=!1})=>w.jsx("button",{"aria-label":t,title:t,className:W(e,`${j}-close-button`),disabled:r,onClick:n,children:w.jsx("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20",width:"16",height:"16",fill:"currentColor",children:w.jsx("path",{d:"M18.3 5.7a1 1 0 0 0-1.4-1.4L12 9.6 7.1 4.7a1 1 0 1 0-1.4 1.4l4.9 4.9-4.9 4.9a1 1 0 1 0 1.4 1.4l4.9-4.9 4.9 4.9a1 1 0 0 0 1.4-1.4l-4.9-4.9 4.9-4.9z"})})}),bl=({className:e,children:t,type:n,disabled:r=!1,onClick:o})=>w.jsx("button",{className:W(`${j}-button`,e,{disabled:r}),type:n||"button",disabled:r,onClick:o,children:t}),Lk=({searchConfig:e,globalClassName:t})=>{const n=e.buttonIconUrl;return n?w.jsx("img",{className:W(`${j}-search-button-icon-image`,t),src:n,alt:"",loading:"lazy"}):w.jsx(Ko,{size:"16px"})},Dk=({className:e,searchConfig:t,globalClassName:n,componentType:r,isLoading:o})=>{if((t==null?void 0:t.buttonType)==="icon")return w.jsx(ri,{className:W(e,n,`cim-${r}-component`,`${j}-search-button-icon`),type:"submit",disabled:o,ariaLabel:(t==null?void 0:t.buttonAriaLabel)||(t==null?void 0:t.buttonLabel)||"Search Copilot",icon:t!=null&&t.buttonIconUrl?null:w.jsx(Ko,{size:"16px"}),iconUrl:t==null?void 0:t.buttonIconUrl});const a=(t==null?void 0:t.buttonType)==="icon-text";return w.jsxs(bl,{className:W(e,n,`cim-${r}-component`,`${j}-search-button`),type:"submit","aria-label":(t==null?void 0:t.buttonAriaLabel)||"",disabled:o,children:[a&&w.jsx(Lk,{globalClassName:n,searchConfig:t}),(t==null?void 0:t.buttonLabel)||"Search"]})};function Mk(e){return zt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 9h8"},child:[]},{tag:"path",attr:{d:"M8 13h6"},child:[]},{tag:"path",attr:{d:"M13 18l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6"},child:[]},{tag:"path",attr:{d:"M17 17v5"},child:[]},{tag:"path",attr:{d:"M21 17v5"},child:[]}]})(e)}const Fk=()=>{const{messages:e}=er(),{handleCancel:t}=Rr();return{cancelRequest:U.useCallback(()=>{if(!(e!=null&&e.length))return null;const r=e[e.length-1],o=r.eventSourceId||r.id;t(o)},[t,e])}},Bk=({isLoading:e})=>{const{globalClassName:t,searchConfig:n}=at(),{cancelRequest:r}=Fk();return n!=null&&n.enableCancelSearch?w.jsx(ri,{className:W(t,`${j}-cancel-button`),ariaLabel:"Cancel Copilot chat processing",title:"Cancel Copilot request",icon:w.jsx(Mk,{}),disabled:!e,onClick:r}):null};function iU(){}function oU(){}function O1(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const u=n.slice(o,r).trim();(u||!a)&&t.push(u),o=r+1,r=n.indexOf(",",o)}return t}function I1(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Uk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zk={};function R1(e,t){return(zk.jsx?Hk:Uk).test(e)}const jk=/[ \t\n\f\r]/g;function $k(e){return typeof e=="object"?e.type==="text"?L1(e.value):!1:L1(e)}function L1(e){return e.replace(jk,"")===""}let Ta=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ta.prototype.normal={},Ta.prototype.property={},Ta.prototype.space=void 0;function D1(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Ta(n,r,t)}function _a(e){return e.toLowerCase()}let Pn=class{constructor(t,n){this.attribute=n,this.property=t}};Pn.prototype.attribute="",Pn.prototype.booleanish=!1,Pn.prototype.boolean=!1,Pn.prototype.commaOrSpaceSeparated=!1,Pn.prototype.commaSeparated=!1,Pn.prototype.defined=!1,Pn.prototype.mustUseProperty=!1,Pn.prototype.number=!1,Pn.prototype.overloadedBoolean=!1,Pn.prototype.property="",Pn.prototype.spaceSeparated=!1,Pn.prototype.space=void 0;let Vk=0;const Ge=so(),jt=so(),Nf=so(),ge=so(),Et=so(),Qo=so(),Hn=so();function so(){return ta(2,++Vk)}const Of=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:jt,commaOrSpaceSeparated:Hn,commaSeparated:Qo,number:ge,overloadedBoolean:Nf,spaceSeparated:Et},Symbol.toStringTag,{value:"Module"})),If=Object.keys(Of);let Rf=class extends Pn{constructor(t,n,r,o){let a=-1;if(super(t,n),M1(this,"space",o),typeof r=="number")for(;++a<If.length;){const u=If[a];M1(this,If[a],(r&Of[u])===Of[u])}}};Rf.prototype.defined=!0;function M1(e,t,n){n&&(e[t]=n)}function Jo(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new Rf(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[_a(r)]=r,n[_a(a.attribute)]=r}return new Ta(t,n,e.space)}const F1=Jo({properties:{ariaActiveDescendant:null,ariaAtomic:jt,ariaAutoComplete:null,ariaBusy:jt,ariaChecked:jt,ariaColCount:ge,ariaColIndex:ge,ariaColSpan:ge,ariaControls:Et,ariaCurrent:null,ariaDescribedBy:Et,ariaDetails:null,ariaDisabled:jt,ariaDropEffect:Et,ariaErrorMessage:null,ariaExpanded:jt,ariaFlowTo:Et,ariaGrabbed:jt,ariaHasPopup:null,ariaHidden:jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Et,ariaLevel:ge,ariaLive:null,ariaModal:jt,ariaMultiLine:jt,ariaMultiSelectable:jt,ariaOrientation:null,ariaOwns:Et,ariaPlaceholder:null,ariaPosInSet:ge,ariaPressed:jt,ariaReadOnly:jt,ariaRelevant:null,ariaRequired:jt,ariaRoleDescription:Et,ariaRowCount:ge,ariaRowIndex:ge,ariaRowSpan:ge,ariaSelected:jt,ariaSetSize:ge,ariaSort:null,ariaValueMax:ge,ariaValueMin:ge,ariaValueNow:ge,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function B1(e,t){return t in e?e[t]:t}function U1(e,t){return B1(e,t.toLowerCase())}const qk=Jo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qo,acceptCharset:Et,accessKey:Et,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:Et,autoFocus:Ge,autoPlay:Ge,blocking:Et,capture:null,charSet:null,checked:Ge,cite:null,className:Et,cols:ge,colSpan:null,content:null,contentEditable:jt,controls:Ge,controlsList:Et,coords:ge|Qo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:Nf,draggable:jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:Et,height:ge,hidden:Nf,high:ge,href:null,hrefLang:null,htmlFor:Et,httpEquiv:Et,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:Et,itemRef:Et,itemScope:Ge,itemType:Et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ge,low:ge,manifest:null,max:null,maxLength:ge,media:null,method:null,min:null,minLength:ge,multiple:Ge,muted:Ge,name:null,nonce:null,noModule:Ge,noValidate:Ge,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:Ge,optimum:ge,pattern:null,ping:Et,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:Et,required:Ge,reversed:Ge,rows:ge,rowSpan:ge,sandbox:Et,scope:null,scoped:Ge,seamless:Ge,selected:Ge,shadowRootClonable:Ge,shadowRootDelegatesFocus:Ge,shadowRootMode:null,shape:null,size:ge,sizes:null,slot:null,span:ge,spellCheck:jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ge,step:null,style:null,tabIndex:ge,target:null,title:null,translate:null,type:null,typeMustMatch:Ge,useMap:null,value:jt,width:ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Et,axis:null,background:null,bgColor:null,border:ge,borderColor:null,bottomMargin:ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ge,declare:Ge,event:null,face:null,frame:null,frameBorder:null,hSpace:ge,leftMargin:ge,link:null,longDesc:null,lowSrc:null,marginHeight:ge,marginWidth:ge,noResize:Ge,noHref:Ge,noShade:Ge,noWrap:Ge,object:null,profile:null,prompt:null,rev:null,rightMargin:ge,rules:null,scheme:null,scrolling:jt,standby:null,summary:null,text:null,topMargin:ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ge,disableRemotePlayback:Ge,prefix:null,property:null,results:ge,security:null,unselectable:null},space:"html",transform:U1}),Yk=Jo({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:Hn,accentHeight:ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ge,amplitude:ge,arabicForm:null,ascent:ge,attributeName:null,attributeType:null,azimuth:ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ge,by:null,calcMode:null,capHeight:ge,className:Et,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:ge,diffuseConstant:ge,direction:null,display:null,dur:null,divisor:ge,dominantBaseline:null,download:Ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:ge,enableBackground:null,end:null,event:null,exponent:ge,externalResourcesRequired:null,fill:null,fillOpacity:ge,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:Qo,g2:Qo,glyphName:Qo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ge,horizOriginX:ge,horizOriginY:ge,id:null,ideographic:ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ge,k:ge,k1:ge,k2:ge,k3:ge,k4:ge,kernelMatrix:Hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ge,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:ge,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:ge,overlineThickness:ge,paintOrder:null,panose1:null,path:null,pathLength:ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ge,pointsAtY:ge,pointsAtZ:ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hn,rev:Hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hn,requiredFeatures:Hn,requiredFonts:Hn,requiredFormats:Hn,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:ge,specularExponent:ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ge,strikethroughThickness:ge,string:null,stroke:null,strokeDashArray:Hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ge,strokeOpacity:ge,strokeWidth:null,style:null,surfaceScale:ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hn,tabIndex:ge,tableValues:null,target:null,targetX:ge,targetY:ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ge,underlineThickness:ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ge,values:null,vAlphabetic:ge,vMathematical:ge,vectorEffect:null,vHanging:ge,vIdeographic:ge,version:null,vertAdvY:ge,vertOriginX:ge,vertOriginY:ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:B1}),H1=Jo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),z1=Jo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:U1}),j1=Jo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Gk={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"},Wk=/[A-Z]/g,$1=/-[a-z]/g,Xk=/^data[-\w.:]+$/i;function Lf(e,t){const n=_a(t);let r=t,o=Pn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xk.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace($1,Qk);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!$1.test(a)){let u=a.replace(Wk,Kk);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}o=Rf}return new o(r,t)}function Kk(e){return"-"+e.toLowerCase()}function Qk(e){return e.charAt(1).toUpperCase()}const Tl=D1([F1,qk,H1,z1,j1],"html"),Zo=D1([F1,Yk,H1,z1,j1],"svg");function V1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function q1(e){return e.join(" ").trim()}var es={},Df,Y1;function Jk(){if(Y1)return Df;Y1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
18
18
  `,f="/",p="*",g="",T="comment",y="declaration";Df=function(S,k){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];k=k||{};var v=1,N=1;function C(he){var ue=he.match(t);ue&&(v+=ue.length);var Te=he.lastIndexOf(d);N=~Te?he.length-Te:N+he.length}function M(){var he={line:v,column:N};return function(ue){return ue.position=new V(he),re(),ue}}function V(he){this.start=he,this.end={line:v,column:N},this.source=k.source}V.prototype.content=S;function D(he){var ue=new Error(k.source+":"+v+":"+N+": "+he);if(ue.reason=he,ue.filename=k.source,ue.line=v,ue.column=N,ue.source=S,!k.silent)throw ue}function K(he){var ue=he.exec(S);if(ue){var Te=ue[0];return C(Te),S=S.slice(Te.length),ue}}function re(){K(n)}function be(he){var ue;for(he=he||[];ue=$();)ue!==!1&&he.push(ue);return he}function $(){var he=M();if(!(f!=S.charAt(0)||p!=S.charAt(1))){for(var ue=2;g!=S.charAt(ue)&&(p!=S.charAt(ue)||f!=S.charAt(ue+1));)++ue;if(ue+=2,g===S.charAt(ue-1))return D("End of comment missing");var Te=S.slice(2,ue-2);return N+=2,C(Te),S=S.slice(ue),N+=2,he({type:T,comment:Te})}}function Z(){var he=M(),ue=K(r);if(ue){if($(),!K(o))return D("property missing ':'");var Te=K(a),Oe=he({type:y,property:_(ue[0].replace(e,g)),value:Te?_(Te[0].replace(e,g)):g});return K(u),Oe}}function ce(){var he=[];be(he);for(var ue;ue=Z();)ue!==!1&&(he.push(ue),be(he));return he}return re(),ce()};function _(S){return S?S.replace(c,g):g}return Df}var G1;function Zk(){if(G1)return es;G1=1;var e=es&&es.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(es,"__esModule",{value:!0}),es.default=n;var t=e(Jk());function n(r,o){var a=null;if(!r||typeof r!="string")return a;var u=(0,t.default)(r),c=typeof o=="function";return u.forEach(function(d){if(d.type==="declaration"){var f=d.property,p=d.value;c?o(f,p,d):p&&(a=a||{},a[f]=p)}}),a}return es}var Sa={},W1;function eP(){if(W1)return Sa;W1=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(f){return!f||n.test(f)||e.test(f)},u=function(f,p){return p.toUpperCase()},c=function(f,p){return"".concat(p,"-")},d=function(f,p){return p===void 0&&(p={}),a(f)?f:(f=f.toLowerCase(),p.reactCompat?f=f.replace(o,c):f=f.replace(r,c),f.replace(t,u))};return Sa.camelCase=d,Sa}var xa,X1;function tP(){if(X1)return xa;X1=1;var e=xa&&xa.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(Zk()),n=eP();function r(o,a){var u={};return!o||typeof o!="string"||(0,t.default)(o,function(c,d){c&&d&&(u[(0,n.camelCase)(c,a)]=d)}),u}return r.default=r,xa=r,xa}var nP=tP();const rP=Je(nP),_l=K1("end"),Lr=K1("start");function K1(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};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 Q1(e){const t=Lr(e),n=_l(e);if(t&&n)return{start:t,end:n}}function wa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?J1(e.position):"start"in e||"end"in e?J1(e):"line"in e||"column"in e?Mf(e):""}function Mf(e){return Z1(e&&e.line)+":"+Z1(e&&e.column)}function J1(e){return Mf(e&&e.start)+"-"+Mf(e&&e.end)}function Z1(e){return e&&typeof e=="number"?e:1}class fn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",a={},u=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a=F({},n)),typeof t=="string"?o=t:!a.cause&&t&&(u=!0,o=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?a.ruleId=r:(a.source=r.slice(0,d),a.ruleId=r.slice(d+1))}if(!a.place&&a.ancestors&&a.ancestors){const d=a.ancestors[a.ancestors.length-1];d&&(a.place=d.position)}const c=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=c?c.line:void 0,this.name=wa(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}fn.prototype.file="",fn.prototype.name="",fn.prototype.reason="",fn.prototype.message="",fn.prototype.stack="",fn.prototype.column=void 0,fn.prototype.line=void 0,fn.prototype.ancestors=void 0,fn.prototype.cause=void 0,fn.prototype.fatal=void 0,fn.prototype.place=void 0,fn.prototype.ruleId=void 0,fn.prototype.source=void 0;const Ff={}.hasOwnProperty,iP=new Map,oP=/[A-Z]/g,sP=new Set(["table","tbody","thead","tfoot","tr"]),aP=new Set(["td","th"]),eE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uP(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=gP(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=mP(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Zo:Tl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=tE(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function tE(e,t,n){if(t.type==="element")return lP(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return cP(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return fP(e,t,n);if(t.type==="mdxjsEsm")return dP(e,t);if(t.type==="root")return hP(e,t,n);if(t.type==="text")return pP(e,t)}function lP(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Zo,e.schema=o),e.ancestors.push(t);const a=rE(e,t.tagName,!1),u=EP(e,t);let c=Uf(e,t);return sP.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!$k(d):!0})),nE(e,u,a,t),Bf(u,c),e.ancestors.pop(),e.schema=r,e.create(t,a,u,n)}function cP(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ca(e,t.position)}function dP(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ca(e,t.position)}function fP(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Zo,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:rE(e,t.name,!0),u=yP(e,t),c=Uf(e,t);return nE(e,u,a,t),Bf(u,c),e.ancestors.pop(),e.schema=r,e.create(t,a,u,n)}function hP(e,t,n){const r={};return Bf(r,Uf(e,t)),e.create(t,e.Fragment,r,n)}function pP(e,t){return t.value}function nE(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Bf(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function mP(e,t,n){return r;function r(o,a,u,c){const f=Array.isArray(u.children)?n:t;return c?f(a,u,c):f(a,u)}}function gP(e,t){return n;function n(r,o,a,u){const c=Array.isArray(a.children),d=Lr(r);return t(o,a,u,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function EP(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&Ff.call(t.properties,o)){const a=bP(e,o,t.properties[o]);if(a){const[u,c]=a;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&aP.has(t.tagName)?r=c:n[u]=c}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function yP(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const u=a.expression;u.type;const c=u.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else Ca(e,t.position);else{const o=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,a=e.evaluater.evaluateExpression(c.expression)}else Ca(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function Uf(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:iP;for(;++r<t.children.length;){const a=t.children[r];let u;if(e.passKeys){const d=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(d){const f=o.get(d)||0;u=d+"-"+f,o.set(d,f+1)}}const c=tE(e,a,u);c!==void 0&&n.push(c)}return n}function bP(e,t,n){const r=Lf(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?I1(n):q1(n)),r.property==="style"){let o=typeof n=="object"?n:TP(e,String(n));return e.stylePropertyNameCase==="css"&&(o=_P(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Gk[r.property]||r.property:r.attribute,n]}}function TP(e,t){try{return rP(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new fn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=eE+"#cannot-parse-style-attribute",o}}function rE(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,u;for(;++a<o.length;){const c=R1(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};u=u?{type:"MemberExpression",object:u,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}r=u}else r=R1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return Ff.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ca(e)}function Ca(e,t){const n=new fn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=eE+"#cannot-handle-mdx-estrees-without-createevaluater",n}function _P(e){const t={};let n;for(n in e)Ff.call(e,n)&&(t[SP(n)]=e[n]);return t}function SP(e){let t=e.replace(oP,xP);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function xP(e){return"-"+e.toLowerCase()}const Hf={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"]},wP={};function zf(e,t){const n=wP,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return iE(e,r,o)}function iE(e,t,n){if(CP(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return oE(e.children,t,n)}return Array.isArray(e)?oE(e,t,n):""}function oE(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=iE(e[o],t,n);return r.join("")}function CP(e){return!!(e&&typeof e=="object")}const sE=document.createElement("i");function jf(e){const t="&"+e+";";sE.innerHTML=t;const n=sE.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function zn(e,t,n,r){const o=e.length;let a=0,u;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);a<r.length;)u=r.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function tr(e,t){return e.length>0?(zn(e,e.length,0,t),e):t}const aE={}.hasOwnProperty;function uE(e){const t={};let n=-1;for(;++n<e.length;)AP(t,e[n]);return t}function AP(e,t){let n;for(n in t){const o=(aE.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let u;if(a)for(u in a){aE.call(o,u)||(o[u]=[]);const c=a[u];vP(o[u],Array.isArray(c)?c:c?[c]:[])}}}function vP(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);zn(e,0,0,r)}function lE(e,t){const n=Number.parseInt(e,t);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 Er(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Sn=wi(/[A-Za-z]/),hn=wi(/[\dA-Za-z]/),kP=wi(/[#-'*+\--9=?A-Z^-~]/);function Sl(e){return e!==null&&(e<32||e===127)}const $f=wi(/\d/),PP=wi(/[\dA-Fa-f]/),NP=wi(/[!-/:-@[-`{-~]/);function Ue(e){return e!==null&&e<-2}function ht(e){return e!==null&&(e<0||e===32)}function et(e){return e===-2||e===-1||e===32}const xl=wi(new RegExp("\\p{P}|\\p{S}","u")),ao=wi(/\s/);function wi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ts(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let u="";if(a===37&&hn(e.charCodeAt(n+1))&&hn(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const c=e.charCodeAt(n+1);a<56320&&c>56319&&c<57344?(u=String.fromCharCode(a,c),o=1):u="�"}else u=String.fromCharCode(a);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+o+1,u=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function rt(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(d){return et(d)?(e.enter(n),c(d)):t(d)}function c(d){return et(d)&&a++<o?(e.consume(d),c):(e.exit(n),t(d))}}const OP={tokenize:IP};function IP(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),rt(e,t,"linePrefix")}function o(c){return e.enter("paragraph"),a(c)}function a(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(c)}function u(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ue(c)?(e.consume(c),e.exit("chunkText"),a):(e.consume(c),u)}}const RP={tokenize:LP},cE={tokenize:DP};function LP(e){const t=this,n=[];let r=0,o,a,u;return c;function c(C){if(r<n.length){const M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,d,f)(C)}return f(C)}function d(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&N();const M=t.events.length;let V=M,D;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){D=t.events[V][1].end;break}v(r);let K=M;for(;K<t.events.length;)t.events[K][1].end=F({},D),K++;return zn(t.events,V+1,0,t.events.slice(M)),t.events.length=K,f(C)}return c(C)}function f(C){if(r===n.length){if(!o)return T(C);if(o.currentConstruct&&o.currentConstruct.concrete)return _(C);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(cE,p,g)(C)}function p(C){return o&&N(),v(r),T(C)}function g(C){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,_(C)}function T(C){return t.containerState={},e.attempt(cE,y,_)(C)}function y(C){return r++,n.push([t.currentConstruct,t.containerState]),T(C)}function _(C){if(C===null){o&&N(),v(0),e.consume(C);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),S(C)}function S(C){if(C===null){k(e.exit("chunkFlow"),!0),v(0),e.consume(C);return}return Ue(C)?(e.consume(C),k(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(C),S)}function k(C,M){const V=t.sliceStream(C);if(M&&V.push(null),C.previous=a,a&&(a.next=C),a=C,o.defineSkip(C.start),o.write(V),t.parser.lazy[C.start.line]){let D=o.events.length;for(;D--;)if(o.events[D][1].start.offset<u&&(!o.events[D][1].end||o.events[D][1].end.offset>u))return;const K=t.events.length;let re=K,be,$;for(;re--;)if(t.events[re][0]==="exit"&&t.events[re][1].type==="chunkFlow"){if(be){$=t.events[re][1].end;break}be=!0}for(v(r),D=K;D<t.events.length;)t.events[D][1].end=F({},$),D++;zn(t.events,re+1,0,t.events.slice(K)),t.events.length=D}}function v(C){let M=n.length;for(;M-- >C;){const V=n[M];t.containerState=V[1],V[0].exit.call(t,e)}n.length=C}function N(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function DP(e,t,n){return rt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ns(e){if(e===null||ht(e)||ao(e))return 1;if(xl(e))return 2}function wl(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Vf={name:"attention",resolveAll:MP,tokenize:FP};function MP(e,t){let n=-1,r,o,a,u,c,d,f,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g=F({},e[r][1].end),T=F({},e[n][1].start);dE(g,-d),dE(T,d),u={type:d>1?"strongSequence":"emphasisSequence",start:g,end:F({},e[r][1].end)},c={type:d>1?"strongSequence":"emphasisSequence",start:F({},e[n][1].start),end:T},a={type:d>1?"strongText":"emphasisText",start:F({},e[r][1].end),end:F({},e[n][1].start)},o={type:d>1?"strong":"emphasis",start:F({},u.start),end:F({},c.end)},e[r][1].end=F({},u.start),e[n][1].start=F({},c.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=tr(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=tr(f,[["enter",o,t],["enter",u,t],["exit",u,t],["enter",a,t]]),f=tr(f,wl(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=tr(f,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=tr(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,zn(e,r-1,n-r+3,f),n=r+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function FP(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=ns(r);let a;return u;function u(d){return a=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===a)return e.consume(d),c;const f=e.exit("attentionSequence"),p=ns(d),g=!p||p===2&&o||n.includes(d),T=!o||o===2&&p||n.includes(r);return f._open=!!(a===42?g:g&&(o||!T)),f._close=!!(a===42?T:T&&(p||!g)),t(d)}}function dE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const BP={name:"autolink",tokenize:UP};function UP(e,t,n){let r=0;return o;function o(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(y){return Sn(y)?(e.consume(y),u):y===64?n(y):f(y)}function u(y){return y===43||y===45||y===46||hn(y)?(r=1,c(y)):f(y)}function c(y){return y===58?(e.consume(y),r=0,d):(y===43||y===45||y===46||hn(y))&&r++<32?(e.consume(y),c):(r=0,f(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Sl(y)?n(y):(e.consume(y),d)}function f(y){return y===64?(e.consume(y),p):kP(y)?(e.consume(y),f):n(y)}function p(y){return hn(y)?g(y):n(y)}function g(y){return y===46?(e.consume(y),r=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):T(y)}function T(y){if((y===45||hn(y))&&r++<63){const _=y===45?T:g;return e.consume(y),_}return n(y)}}const Aa={partial:!0,tokenize:HP};function HP(e,t,n){return r;function r(a){return et(a)?rt(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||Ue(a)?t(a):n(a)}}const fE={continuation:{tokenize:jP},exit:$P,name:"blockQuote",tokenize:zP};function zP(e,t,n){const r=this;return o;function o(u){if(u===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return n(u)}function a(u){return et(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function jP(e,t,n){const r=this;return o;function o(u){return et(u)?rt(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(fE,t,n)(u)}}function $P(e){e.exit("blockQuote")}const hE={name:"characterEscape",tokenize:VP};function VP(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return NP(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const pE={name:"characterReference",tokenize:qP};function qP(e,t,n){const r=this;let o=0,a,u;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),a=31,u=hn,p(g))}function f(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=PP,p):(e.enter("characterReferenceValue"),a=7,u=$f,p(g))}function p(g){if(g===59&&o){const T=e.exit("characterReferenceValue");return u===hn&&!jf(r.sliceSerialize(T))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&o++<a?(e.consume(g),p):n(g)}}const mE={partial:!0,tokenize:GP},gE={concrete:!0,name:"codeFenced",tokenize:YP};function YP(e,t,n){const r=this,o={partial:!0,tokenize:V};let a=0,u=0,c;return d;function d(D){return f(D)}function f(D){const K=r.events[r.events.length-1];return a=K&&K[1].type==="linePrefix"?K[2].sliceSerialize(K[1],!0).length:0,c=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(D)}function p(D){return D===c?(u++,e.consume(D),p):u<3?n(D):(e.exit("codeFencedFenceSequence"),et(D)?rt(e,g,"whitespace")(D):g(D))}function g(D){return D===null||Ue(D)?(e.exit("codeFencedFence"),r.interrupt?t(D):e.check(mE,S,M)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(D))}function T(D){return D===null||Ue(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(D)):et(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rt(e,y,"whitespace")(D)):D===96&&D===c?n(D):(e.consume(D),T)}function y(D){return D===null||Ue(D)?g(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(D))}function _(D){return D===null||Ue(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(D)):D===96&&D===c?n(D):(e.consume(D),_)}function S(D){return e.attempt(o,M,k)(D)}function k(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),v}function v(D){return a>0&&et(D)?rt(e,N,"linePrefix",a+1)(D):N(D)}function N(D){return D===null||Ue(D)?e.check(mE,S,M)(D):(e.enter("codeFlowValue"),C(D))}function C(D){return D===null||Ue(D)?(e.exit("codeFlowValue"),N(D)):(e.consume(D),C)}function M(D){return e.exit("codeFenced"),t(D)}function V(D,K,re){let be=0;return $;function $(Te){return D.enter("lineEnding"),D.consume(Te),D.exit("lineEnding"),Z}function Z(Te){return D.enter("codeFencedFence"),et(Te)?rt(D,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Te):ce(Te)}function ce(Te){return Te===c?(D.enter("codeFencedFenceSequence"),he(Te)):re(Te)}function he(Te){return Te===c?(be++,D.consume(Te),he):be>=u?(D.exit("codeFencedFenceSequence"),et(Te)?rt(D,ue,"whitespace")(Te):ue(Te)):re(Te)}function ue(Te){return Te===null||Ue(Te)?(D.exit("codeFencedFence"),K(Te)):re(Te)}}}function GP(e,t,n){const r=this;return o;function o(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const qf={name:"codeIndented",tokenize:XP},WP={partial:!0,tokenize:KP};function XP(e,t,n){const r=this;return o;function o(f){return e.enter("codeIndented"),rt(e,a,"linePrefix",5)(f)}function a(f){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?u(f):n(f)}function u(f){return f===null?d(f):Ue(f)?e.attempt(WP,u,d)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||Ue(f)?(e.exit("codeFlowValue"),u(f)):(e.consume(f),c)}function d(f){return e.exit("codeIndented"),t(f)}}function KP(e,t,n){const r=this;return o;function o(u){return r.parser.lazy[r.now().line]?n(u):Ue(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):rt(e,a,"linePrefix",5)(u)}function a(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):Ue(u)?o(u):n(u)}}const QP={name:"codeText",previous:ZP,resolve:JP,tokenize:eN};function JP(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function ZP(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function eN(e,t,n){let r=0,o,a;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),r++,c):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(a=e.enter("codeTextSequence"),o=0,p(g)):Ue(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(g))}function f(g){return g===null||g===32||g===96||Ue(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),f)}function p(g){return g===96?(e.consume(g),o++,p):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",f(g))}}class tN{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n==null?Number.POSITIVE_INFINITY:n;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&va(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),va(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),va(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);va(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);va(this.left,n.reverse())}}}function va(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function EE(e){const t={};let n=-1,r,o,a,u,c,d,f;const p=new tN(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,a=0,a<d.length&&d[a][1].type==="lineEndingBlank"&&(a+=2),a<d.length&&d[a][1].type==="content"))for(;++a<d.length&&d[a][1].type!=="content";)d[a][1].type==="chunkText"&&(d[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,nN(p,n)),n=t[n],f=!0);else if(r[1]._container){for(a=n,o=void 0;a--;)if(u=p.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(p.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;o&&(r[1].end=F({},p.get(o)[1].start),c=p.slice(o,n),c.unshift(r),p.splice(o,n-o+1,c))}}return zn(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function nN(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let u=n._tokenizer;u||(u=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const c=u.events,d=[],f={};let p,g,T=-1,y=n,_=0,S=0;const k=[S];for(;y;){for(;e.get(++o)[1]!==y;);a.push(o),y._tokenizer||(p=r.sliceStream(y),y.next||p.push(null),g&&u.defineSkip(y.start),y._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(p),y._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=y,y=y.next}for(y=n;++T<c.length;)c[T][0]==="exit"&&c[T-1][0]==="enter"&&c[T][1].type===c[T-1][1].type&&c[T][1].start.line!==c[T][1].end.line&&(S=T+1,k.push(S),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(u.events=[],y?(y._tokenizer=void 0,y.previous=void 0):k.pop(),T=k.length;T--;){const v=c.slice(k[T],k[T+1]),N=a.pop();d.push([N,N+v.length-1]),e.splice(N,2,v)}for(d.reverse(),T=-1;++T<d.length;)f[_+d[T][0]]=_+d[T][1],_+=d[T][1]-d[T][0]-1;return f}const rN={resolve:oN,tokenize:sN},iN={partial:!0,tokenize:aN};function oN(e){return EE(e),e}function sN(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(c)}function o(c){return c===null?a(c):Ue(c)?e.check(iN,u,a)(c):(e.consume(c),o)}function a(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function u(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function aN(e,t,n){const r=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),rt(e,a,"linePrefix")}function a(u){if(u===null||Ue(u))return n(u);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function yE(e,t,n,r,o,a,u,c,d){const f=d||Number.POSITIVE_INFINITY;let p=0;return g;function g(v){return v===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(v),e.exit(a),T):v===null||v===32||v===41||Sl(v)?n(v):(e.enter(r),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),S(v))}function T(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===62?(e.exit("chunkString"),e.exit(c),T(v)):v===null||v===60||Ue(v)?n(v):(e.consume(v),v===92?_:y)}function _(v){return v===60||v===62||v===92?(e.consume(v),y):y(v)}function S(v){return!p&&(v===null||v===41||ht(v))?(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(r),t(v)):p<f&&v===40?(e.consume(v),p++,S):v===41?(e.consume(v),p--,S):v===null||v===32||v===40||Sl(v)?n(v):(e.consume(v),v===92?k:S)}function k(v){return v===40||v===41||v===92?(e.consume(v),S):S(v)}}function bE(e,t,n,r,o,a){const u=this;let c=0,d;return f;function f(y){return e.enter(r),e.enter(o),e.consume(y),e.exit(o),e.enter(a),p}function p(y){return c>999||y===null||y===91||y===93&&!d||y===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(y):y===93?(e.exit(a),e.enter(o),e.consume(y),e.exit(o),e.exit(r),t):Ue(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===null||y===91||y===93||Ue(y)||c++>999?(e.exit("chunkString"),p(y)):(e.consume(y),d||(d=!et(y)),y===92?T:g)}function T(y){return y===91||y===92||y===93?(e.consume(y),c++,g):g(y)}}function TE(e,t,n,r,o,a){let u;return c;function c(T){return T===34||T===39||T===40?(e.enter(r),e.enter(o),e.consume(T),e.exit(o),u=T===40?41:T,d):n(T)}function d(T){return T===u?(e.enter(o),e.consume(T),e.exit(o),e.exit(r),t):(e.enter(a),f(T))}function f(T){return T===u?(e.exit(a),d(u)):T===null?n(T):Ue(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),rt(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===u||T===null||Ue(T)?(e.exit("chunkString"),f(T)):(e.consume(T),T===92?g:p)}function g(T){return T===u||T===92?(e.consume(T),p):p(T)}}function ka(e,t){let n;return r;function r(o){return Ue(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):et(o)?rt(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const uN={name:"definition",tokenize:cN},lN={partial:!0,tokenize:dN};function cN(e,t,n){const r=this;let o;return a;function a(y){return e.enter("definition"),u(y)}function u(y){return bE.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return o=Er(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return ht(y)?ka(e,f)(y):f(y)}function f(y){return yE(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(lN,g,g)(y)}function g(y){return et(y)?rt(e,T,"whitespace")(y):T(y)}function T(y){return y===null||Ue(y)?(e.exit("definition"),r.parser.defined.push(o),t(y)):n(y)}}function dN(e,t,n){return r;function r(c){return ht(c)?ka(e,o)(c):n(c)}function o(c){return TE(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return et(c)?rt(e,u,"whitespace")(c):u(c)}function u(c){return c===null||Ue(c)?t(c):n(c)}}const fN={name:"hardBreakEscape",tokenize:hN};function hN(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return Ue(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const pN={name:"headingAtx",resolve:mN,tokenize:gN};function mN(e,t){let n=e.length-2,r=3,o,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},zn(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function gN(e,t,n){let r=0;return o;function o(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),u(p)}function u(p){return p===35&&r++<6?(e.consume(p),u):p===null||ht(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),d(p)):p===null||Ue(p)?(e.exit("atxHeading"),t(p)):et(p)?rt(e,c,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function d(p){return p===35?(e.consume(p),d):(e.exit("atxHeadingSequence"),c(p))}function f(p){return p===null||p===35||ht(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),f)}}const EN=["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"],_E=["pre","script","style","textarea"],yN={concrete:!0,name:"htmlFlow",resolveTo:_N,tokenize:SN},bN={partial:!0,tokenize:wN},TN={partial:!0,tokenize:xN};function _N(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function SN(e,t,n){const r=this;let o,a,u,c,d;return f;function f(O){return p(O)}function p(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),g}function g(O){return O===33?(e.consume(O),T):O===47?(e.consume(O),a=!0,S):O===63?(e.consume(O),o=3,r.interrupt?t:A):Sn(O)?(e.consume(O),u=String.fromCharCode(O),k):n(O)}function T(O){return O===45?(e.consume(O),o=2,y):O===91?(e.consume(O),o=5,c=0,_):Sn(O)?(e.consume(O),o=4,r.interrupt?t:A):n(O)}function y(O){return O===45?(e.consume(O),r.interrupt?t:A):n(O)}function _(O){const _e="CDATA[";return O===_e.charCodeAt(c++)?(e.consume(O),c===_e.length?r.interrupt?t:ce:_):n(O)}function S(O){return Sn(O)?(e.consume(O),u=String.fromCharCode(O),k):n(O)}function k(O){if(O===null||O===47||O===62||ht(O)){const _e=O===47,Ie=u.toLowerCase();return!_e&&!a&&_E.includes(Ie)?(o=1,r.interrupt?t(O):ce(O)):EN.includes(u.toLowerCase())?(o=6,_e?(e.consume(O),v):r.interrupt?t(O):ce(O)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(O):a?N(O):C(O))}return O===45||hn(O)?(e.consume(O),u+=String.fromCharCode(O),k):n(O)}function v(O){return O===62?(e.consume(O),r.interrupt?t:ce):n(O)}function N(O){return et(O)?(e.consume(O),N):$(O)}function C(O){return O===47?(e.consume(O),$):O===58||O===95||Sn(O)?(e.consume(O),M):et(O)?(e.consume(O),C):$(O)}function M(O){return O===45||O===46||O===58||O===95||hn(O)?(e.consume(O),M):V(O)}function V(O){return O===61?(e.consume(O),D):et(O)?(e.consume(O),V):C(O)}function D(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),d=O,K):et(O)?(e.consume(O),D):re(O)}function K(O){return O===d?(e.consume(O),d=null,be):O===null||Ue(O)?n(O):(e.consume(O),K)}function re(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||ht(O)?V(O):(e.consume(O),re)}function be(O){return O===47||O===62||et(O)?C(O):n(O)}function $(O){return O===62?(e.consume(O),Z):n(O)}function Z(O){return O===null||Ue(O)?ce(O):et(O)?(e.consume(O),Z):n(O)}function ce(O){return O===45&&o===2?(e.consume(O),Oe):O===60&&o===1?(e.consume(O),de):O===62&&o===4?(e.consume(O),B):O===63&&o===3?(e.consume(O),A):O===93&&o===5?(e.consume(O),ie):Ue(O)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(bN,te,he)(O)):O===null||Ue(O)?(e.exit("htmlFlowData"),he(O)):(e.consume(O),ce)}function he(O){return e.check(TN,ue,te)(O)}function ue(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),Te}function Te(O){return O===null||Ue(O)?he(O):(e.enter("htmlFlowData"),ce(O))}function Oe(O){return O===45?(e.consume(O),A):ce(O)}function de(O){return O===47?(e.consume(O),u="",Q):ce(O)}function Q(O){if(O===62){const _e=u.toLowerCase();return _E.includes(_e)?(e.consume(O),B):ce(O)}return Sn(O)&&u.length<8?(e.consume(O),u+=String.fromCharCode(O),Q):ce(O)}function ie(O){return O===93?(e.consume(O),A):ce(O)}function A(O){return O===62?(e.consume(O),B):O===45&&o===2?(e.consume(O),A):ce(O)}function B(O){return O===null||Ue(O)?(e.exit("htmlFlowData"),te(O)):(e.consume(O),B)}function te(O){return e.exit("htmlFlow"),t(O)}}function xN(e,t,n){const r=this;return o;function o(u){return Ue(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):n(u)}function a(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function wN(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Aa,t,n)}}const CN={name:"htmlText",tokenize:AN};function AN(e,t,n){const r=this;let o,a,u;return c;function c(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),d}function d(A){return A===33?(e.consume(A),f):A===47?(e.consume(A),V):A===63?(e.consume(A),C):Sn(A)?(e.consume(A),re):n(A)}function f(A){return A===45?(e.consume(A),p):A===91?(e.consume(A),a=0,_):Sn(A)?(e.consume(A),N):n(A)}function p(A){return A===45?(e.consume(A),y):n(A)}function g(A){return A===null?n(A):A===45?(e.consume(A),T):Ue(A)?(u=g,de(A)):(e.consume(A),g)}function T(A){return A===45?(e.consume(A),y):g(A)}function y(A){return A===62?Oe(A):A===45?T(A):g(A)}function _(A){const B="CDATA[";return A===B.charCodeAt(a++)?(e.consume(A),a===B.length?S:_):n(A)}function S(A){return A===null?n(A):A===93?(e.consume(A),k):Ue(A)?(u=S,de(A)):(e.consume(A),S)}function k(A){return A===93?(e.consume(A),v):S(A)}function v(A){return A===62?Oe(A):A===93?(e.consume(A),v):S(A)}function N(A){return A===null||A===62?Oe(A):Ue(A)?(u=N,de(A)):(e.consume(A),N)}function C(A){return A===null?n(A):A===63?(e.consume(A),M):Ue(A)?(u=C,de(A)):(e.consume(A),C)}function M(A){return A===62?Oe(A):C(A)}function V(A){return Sn(A)?(e.consume(A),D):n(A)}function D(A){return A===45||hn(A)?(e.consume(A),D):K(A)}function K(A){return Ue(A)?(u=K,de(A)):et(A)?(e.consume(A),K):Oe(A)}function re(A){return A===45||hn(A)?(e.consume(A),re):A===47||A===62||ht(A)?be(A):n(A)}function be(A){return A===47?(e.consume(A),Oe):A===58||A===95||Sn(A)?(e.consume(A),$):Ue(A)?(u=be,de(A)):et(A)?(e.consume(A),be):Oe(A)}function $(A){return A===45||A===46||A===58||A===95||hn(A)?(e.consume(A),$):Z(A)}function Z(A){return A===61?(e.consume(A),ce):Ue(A)?(u=Z,de(A)):et(A)?(e.consume(A),Z):be(A)}function ce(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),o=A,he):Ue(A)?(u=ce,de(A)):et(A)?(e.consume(A),ce):(e.consume(A),ue)}function he(A){return A===o?(e.consume(A),o=void 0,Te):A===null?n(A):Ue(A)?(u=he,de(A)):(e.consume(A),he)}function ue(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||ht(A)?be(A):(e.consume(A),ue)}function Te(A){return A===47||A===62||ht(A)?be(A):n(A)}function Oe(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function de(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),Q}function Q(A){return et(A)?rt(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):ie(A)}function ie(A){return e.enter("htmlTextData"),u(A)}}const Yf={name:"labelEnd",resolveAll:NN,resolveTo:ON,tokenize:IN},vN={tokenize:RN},kN={tokenize:LN},PN={tokenize:DN};function NN(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&zn(e,0,e.length,n),e}function ON(e,t){let n=e.length,r=0,o,a,u,c;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(u=n);const d={type:e[a][1].type==="labelLink"?"link":"image",start:F({},e[a][1].start),end:F({},e[e.length-1][1].end)},f={type:"label",start:F({},e[a][1].start),end:F({},e[u][1].end)},p={type:"labelText",start:F({},e[a+r+2][1].end),end:F({},e[u-2][1].start)};return c=[["enter",d,t],["enter",f,t]],c=tr(c,e.slice(a+1,a+r+3)),c=tr(c,[["enter",p,t]]),c=tr(c,wl(t.parser.constructs.insideSpan.null,e.slice(a+r+4,u-3),t)),c=tr(c,[["exit",p,t],e[u-2],e[u-1],["exit",f,t]]),c=tr(c,e.slice(u+1)),c=tr(c,[["exit",d,t]]),zn(e,a,e.length,c),e}function IN(e,t,n){const r=this;let o=r.events.length,a,u;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){a=r.events[o][1];break}return c;function c(T){return a?a._inactive?g(T):(u=r.parser.defined.includes(Er(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(T),e.exit("labelMarker"),e.exit("labelEnd"),d):n(T)}function d(T){return T===40?e.attempt(vN,p,u?p:g)(T):T===91?e.attempt(kN,p,u?f:g)(T):u?p(T):g(T)}function f(T){return e.attempt(PN,p,g)(T)}function p(T){return t(T)}function g(T){return a._balanced=!0,n(T)}}function RN(e,t,n){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return ht(g)?ka(e,a)(g):a(g)}function a(g){return g===41?p(g):yE(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return ht(g)?ka(e,d)(g):p(g)}function c(g){return n(g)}function d(g){return g===34||g===39||g===40?TE(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function f(g){return ht(g)?ka(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function LN(e,t,n){const r=this;return o;function o(c){return bE.call(r,e,a,u,"reference","referenceMarker","referenceString")(c)}function a(c){return r.parser.defined.includes(Er(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function DN(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const MN={name:"labelStartImage",resolveAll:Yf.resolveAll,tokenize:FN};function FN(e,t,n){const r=this;return o;function o(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),a}function a(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),u):n(c)}function u(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const BN={name:"labelStartLink",resolveAll:Yf.resolveAll,tokenize:UN};function UN(e,t,n){const r=this;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Gf={name:"lineEnding",tokenize:HN};function HN(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),rt(e,t,"linePrefix")}}const Cl={name:"thematicBreak",tokenize:zN};function zN(e,t,n){let r=0,o;return a;function a(f){return e.enter("thematicBreak"),u(f)}function u(f){return o=f,c(f)}function c(f){return f===o?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||Ue(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===o?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),et(f)?rt(e,c,"whitespace")(f):c(f))}}const Nn={continuation:{tokenize:qN},exit:GN,name:"list",tokenize:VN},jN={partial:!0,tokenize:WN},$N={partial:!0,tokenize:YN};function VN(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return c;function c(y){const _=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:$f(y)){if(r.containerState.type||(r.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Cl,n,f)(y):f(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return $f(y)&&++u<10?(e.consume(y),d):(!r.interrupt||u<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),f(y)):n(y)}function f(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(Aa,r.interrupt?n:p,e.attempt(jN,T,g))}function p(y){return r.containerState.initialBlankLine=!0,a++,T(y)}function g(y){return et(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),T):n(y)}function T(y){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function qN(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Aa,o,a);function o(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,rt(e,t,"listItemIndent",r.containerState.size+1)(c)}function a(c){return r.containerState.furtherBlankLines||!et(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($N,t,u)(c))}function u(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,rt(e,e.attempt(Nn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function YN(e,t,n){const r=this;return rt(e,o,"listItemIndent",r.containerState.size+1);function o(a){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(a):n(a)}}function GN(e){e.exit(this.containerState.type)}function WN(e,t,n){const r=this;return rt(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const u=r.events[r.events.length-1];return!et(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const SE={name:"setextUnderline",resolveTo:XN,tokenize:KN};function XN(e,t){let n=e.length,r,o,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const u={type:"setextHeading",start:F({},e[r][1].start),end:F({},e[e.length-1][1].end)};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",u,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=F({},e[a][1].end)):e[r][1]=u,e.push(["exit",u,t]),e}function KN(e,t,n){const r=this;let o;return a;function a(f){let p=r.events.length,g;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){g=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),o=f,u(f)):n(f)}function u(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===o?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),et(f)?rt(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||Ue(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const QN={tokenize:JN};function JN(e){const t=this,n=e.attempt(Aa,r,e.attempt(this.parser.constructs.flowInitial,o,rt(e,e.attempt(this.parser.constructs.flow,o,e.attempt(rN,o)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ZN={resolveAll:wE()},eO=xE("string"),tO=xE("text");function xE(e){return{resolveAll:wE(e==="text"?nO:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,u,c);return u;function u(p){return f(p)?a(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),d}function d(p){return f(p)?(n.exit("data"),a(p)):(n.consume(p),d)}function f(p){if(p===null)return!0;const g=o[p];let T=-1;if(g)for(;++T<g.length;){const y=g[T];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function wE(e){return t;function t(n,r){let o=-1,a;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function nO(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let a=o.length,u=-1,c=0,d;for(;a--;){const f=o[a];if(typeof f=="string"){for(u=f.length;f.charCodeAt(u-1)===32;)c++,u--;if(u)break;u=-1}else if(f===-2)d=!0,c++;else if(f!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const f={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:r.start._bufferIndex+u,_index:r.start._index+a,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:F({},r.end)};r.end=F({},f.start),r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const rO=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:uN},disable:{null:[]},document:{42:Nn,43:Nn,45:Nn,48:Nn,49:Nn,50:Nn,51:Nn,52:Nn,53:Nn,54:Nn,55:Nn,56:Nn,57:Nn,62:fE},flow:{35:pN,42:Cl,45:[SE,Cl],60:yN,61:SE,95:Cl,96:gE,126:gE},flowInitial:{[-2]:qf,[-1]:qf,32:qf},insideSpan:{null:[Vf,ZN]},string:{38:pE,92:hE},text:{[-5]:Gf,[-4]:Gf,[-3]:Gf,33:MN,38:pE,42:Vf,60:[BP,CN],91:BN,92:[fN,hE],93:Yf,95:Vf,96:QP}},Symbol.toStringTag,{value:"Module"}));function iO(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let u=[],c=[];const d={attempt:K(V),check:K(D),consume:N,enter:C,exit:M,interrupt:K(D,{interrupt:!0})},f={code:null,containerState:{},defineSkip:S,events:[],now:_,parser:e,previous:null,sliceSerialize:T,sliceStream:y,write:g};let p=t.tokenize.call(f,d);return t.resolveAll&&a.push(t),f;function g(Z){return u=tr(u,Z),k(),u[u.length-1]!==null?[]:(re(t,0),f.events=wl(a,f.events,f),f.events)}function T(Z,ce){return sO(y(Z),ce)}function y(Z){return oO(u,Z)}function _(){const{_bufferIndex:Z,_index:ce,line:he,column:ue,offset:Te}=r;return{_bufferIndex:Z,_index:ce,line:he,column:ue,offset:Te}}function S(Z){o[Z.line]=Z.column,$()}function k(){let Z;for(;r._index<u.length;){const ce=u[r._index];if(typeof ce=="string")for(Z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Z&&r._bufferIndex<ce.length;)v(ce.charCodeAt(r._bufferIndex));else v(ce)}}function v(Z){p=p(Z)}function N(Z){Ue(Z)?(r.line++,r.column=1,r.offset+=Z===-3?2:1,$()):Z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=Z}function C(Z,ce){const he=ce||{};return he.type=Z,he.start=_(),f.events.push(["enter",he,f]),c.push(he),he}function M(Z){const ce=c.pop();return ce.end=_(),f.events.push(["exit",ce,f]),ce}function V(Z,ce){re(Z,ce.from)}function D(Z,ce){ce.restore()}function K(Z,ce){return he;function he(ue,Te,Oe){let de,Q,ie,A;return Array.isArray(ue)?te(ue):"tokenize"in ue?te([ue]):B(ue);function B(Ce){return $e;function $e(we){const We=we!==null&&Ce[we],pt=we!==null&&Ce.null,on=[...Array.isArray(We)?We:We?[We]:[],...Array.isArray(pt)?pt:pt?[pt]:[]];return te(on)(we)}}function te(Ce){return de=Ce,Q=0,Ce.length===0?Oe:O(Ce[Q])}function O(Ce){return $e;function $e(we){return A=be(),ie=Ce,Ce.partial||(f.currentConstruct=Ce),Ce.name&&f.parser.constructs.disable.null.includes(Ce.name)?Ie():Ce.tokenize.call(ce?Object.assign(Object.create(f),ce):f,d,_e,Ie)(we)}}function _e(Ce){return Z(ie,A),Te}function Ie(Ce){return A.restore(),++Q<de.length?O(de[Q]):Oe}}}function re(Z,ce){Z.resolveAll&&!a.includes(Z)&&a.push(Z),Z.resolve&&zn(f.events,ce,f.events.length-ce,Z.resolve(f.events.slice(ce),f)),Z.resolveTo&&(f.events=Z.resolveTo(f.events,f))}function be(){const Z=_(),ce=f.previous,he=f.currentConstruct,ue=f.events.length,Te=Array.from(c);return{from:ue,restore:Oe};function Oe(){r=Z,f.previous=ce,f.currentConstruct=he,f.events.length=ue,c=Te,$()}}function $(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function oO(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let u;if(n===o)u=[e[n].slice(r,a)];else{if(u=e.slice(n,o),r>-1){const c=u[0];typeof c=="string"?u[0]=c.slice(r):u.shift()}a>0&&u.push(e[o].slice(0,a))}return u}function sO(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
19
19
  `;break}case-3:{u=`\r
20
20
  `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(a)}o=a===-2,r.push(u)}return r.join("")}function aO(e){const r={constructs:uE([rO,...(e||{}).extensions||[]]),content:o(OP),defined:[],document:o(RP),flow:o(QN),lazy:{},string:o(eO),text:o(tO)};return r;function o(a){return u;function u(c){return iO(r,a,c)}}}function uO(e){for(;!EE(e););return e}const CE=/[\0\t\n\r]/g;function lO(){let e=1,t="",n=!0,r;return o;function o(a,u,c){const d=[];let f,p,g,T,y;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),g=0,t="",n&&(a.charCodeAt(0)===65279&&g++,n=void 0);g<a.length;){if(CE.lastIndex=g,f=CE.exec(a),T=f&&f.index!==void 0?f.index:a.length,y=a.charCodeAt(T),!f){t=a.slice(g);break}if(y===10&&g===T&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),g<T&&(d.push(a.slice(g,T)),e+=T-g),y){case 0:{d.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,d.push(-2);e++<p;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}g=T+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const cO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dO(e){return e.replace(cO,fO)}function fO(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),a=o===120||o===88;return lE(n.slice(a?2:1),a?16:10)}return jf(n)||e}const AE={}.hasOwnProperty;function hO(e,t,n){return typeof t!="string"&&(n=t,t=void 0),pO(n)(uO(aO(n).document().write(lO()(e,t,!0))))}function pO(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Fe),autolinkProtocol:be,autolinkEmail:be,atxHeading:a(xo),blockQuote:a(pt),characterEscape:be,characterReference:be,codeFenced:a(on),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(on,u),codeText:a(qr,u),codeTextData:be,data:be,codeFlowValue:be,definition:a(Sr),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Rn),hardBreakEscape:a(Ii),hardBreakTrailing:a(Ii),htmlFlow:a(ci,u),htmlFlowData:be,htmlText:a(ci,u),htmlTextData:be,image:a(ve),label:u,link:a(Fe),listItem:a(Qe),listItemValue:T,listOrdered:a(De,g),listUnordered:a(De),paragraph:a(ft),reference:O,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(xo),strong:a(lt),thematicBreak:a(vt)},exit:{atxHeading:d(),atxHeadingSequence:V,autolink:d(),autolinkEmail:We,autolinkProtocol:we,blockQuote:d(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:Ce,characterReference:$e,codeFenced:d(k),codeFencedFence:S,codeFencedFenceInfo:y,codeFencedFenceMeta:_,codeFlowValue:$,codeIndented:d(v),codeText:d(Te),codeTextData:$,data:$,definition:d(),definitionDestinationString:M,definitionLabelString:N,definitionTitleString:C,emphasis:d(),hardBreakEscape:d(ce),hardBreakTrailing:d(ce),htmlFlow:d(he),htmlFlowData:$,htmlText:d(ue),htmlTextData:$,image:d(de),label:ie,labelText:Q,lineEnding:Z,link:d(Oe),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:_e,resourceDestinationString:A,resourceTitleString:B,resource:te,setextHeading:d(re),setextHeadingLineSequence:K,setextHeadingText:D,strong:d(),thematicBreak:d()}};vE(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ne){let oe={type:"root",children:[]};const Re={stack:[oe],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:p,data:n},Ve=[];let Xe=-1;for(;++Xe<ne.length;)if(ne[Xe][1].type==="listOrdered"||ne[Xe][1].type==="listUnordered")if(ne[Xe][0]==="enter")Ve.push(Xe);else{const bt=Ve.pop();Xe=o(ne,bt,Xe)}for(Xe=-1;++Xe<ne.length;){const bt=t[ne[Xe][0]];AE.call(bt,ne[Xe][1].type)&&bt[ne[Xe][1].type].call(Object.assign({sliceSerialize:ne[Xe][2].sliceSerialize},Re),ne[Xe][1])}if(Re.tokenStack.length>0){const bt=Re.tokenStack[Re.tokenStack.length-1];(bt[1]||kE).call(Re,void 0,bt[0])}for(oe.position={start:Ci(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:Ci(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},Xe=-1;++Xe<t.transforms.length;)oe=t.transforms[Xe](oe)||oe;return oe}function o(ne,oe,Re){let Ve=oe-1,Xe=-1,bt=!1,or,sr,Ri,wo;for(;++Ve<=Re;){const sn=ne[Ve];switch(sn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{sn[0]==="enter"?Xe++:Xe--,wo=void 0;break}case"lineEndingBlank":{sn[0]==="enter"&&(or&&!wo&&!Xe&&!Ri&&(Ri=Ve),wo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wo=void 0}if(!Xe&&sn[0]==="enter"&&sn[1].type==="listItemPrefix"||Xe===-1&&sn[0]==="exit"&&(sn[1].type==="listUnordered"||sn[1].type==="listOrdered")){if(or){let Yr=Ve;for(sr=void 0;Yr--;){const qn=ne[Yr];if(qn[1].type==="lineEnding"||qn[1].type==="lineEndingBlank"){if(qn[0]==="exit")continue;sr&&(ne[sr][1].type="lineEndingBlank",bt=!0),qn[1].type="lineEnding",sr=Yr}else if(!(qn[1].type==="linePrefix"||qn[1].type==="blockQuotePrefix"||qn[1].type==="blockQuotePrefixWhitespace"||qn[1].type==="blockQuoteMarker"||qn[1].type==="listItemIndent"))break}Ri&&(!sr||Ri<sr)&&(or._spread=!0),or.end=Object.assign({},sr?ne[sr][1].start:sn[1].end),ne.splice(sr||Ve,0,["exit",or,sn[2]]),Ve++,Re++}if(sn[1].type==="listItemPrefix"){const Yr={type:"listItem",_spread:!1,start:Object.assign({},sn[1].start),end:void 0};or=Yr,ne.splice(Ve,0,["enter",Yr,sn[2]]),Ve++,Re++,Ri=void 0,wo=!0}}}return ne[oe][1]._spread=bt,Re}function a(ne,oe){return Re;function Re(Ve){c.call(this,ne(Ve),Ve),oe&&oe.call(this,Ve)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(ne,oe,Re){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([oe,Re||void 0]),ne.position={start:Ci(oe.start),end:void 0}}function d(ne){return oe;function oe(Re){ne&&ne.call(this,Re),f.call(this,Re)}}function f(ne,oe){const Re=this.stack.pop(),Ve=this.tokenStack.pop();if(Ve)Ve[0].type!==ne.type&&(oe?oe.call(this,ne,Ve[0]):(Ve[1]||kE).call(this,ne,Ve[0]));else throw new Error("Cannot close `"+ne.type+"` ("+wa({start:ne.start,end:ne.end})+"): it’s not open");Re.position.end=Ci(ne.end)}function p(){return zf(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function T(ne){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=ne}function _(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=ne}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.value=ne.replace(/(\r?\n|\r)$/g,"")}function N(ne){const oe=this.resume(),Re=this.stack[this.stack.length-1];Re.label=oe,Re.identifier=Er(this.sliceSerialize(ne)).toLowerCase()}function C(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.title=ne}function M(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.url=ne}function V(ne){const oe=this.stack[this.stack.length-1];if(!oe.depth){const Re=this.sliceSerialize(ne).length;oe.depth=Re}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function K(ne){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function re(){this.data.setextHeadingSlurpLineEnding=void 0}function be(ne){const Re=this.stack[this.stack.length-1].children;let Ve=Re[Re.length-1];(!Ve||Ve.type!=="text")&&(Ve=xn(),Ve.position={start:Ci(ne.start),end:void 0},Re.push(Ve)),this.stack.push(Ve)}function $(ne){const oe=this.stack.pop();oe.value+=this.sliceSerialize(ne),oe.position.end=Ci(ne.end)}function Z(ne){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Re=oe.children[oe.children.length-1];Re.position.end=Ci(ne.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(oe.type)&&(be.call(this,ne),$.call(this,ne))}function ce(){this.data.atHardBreak=!0}function he(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.value=ne}function ue(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.value=ne}function Te(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.value=ne}function Oe(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=oe,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function de(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=oe,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function Q(ne){const oe=this.sliceSerialize(ne),Re=this.stack[this.stack.length-2];Re.label=dO(oe),Re.identifier=Er(oe).toLowerCase()}function ie(){const ne=this.stack[this.stack.length-1],oe=this.resume(),Re=this.stack[this.stack.length-1];if(this.data.inReference=!0,Re.type==="link"){const Ve=ne.children;Re.children=Ve}else Re.alt=oe}function A(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.url=ne}function B(){const ne=this.resume(),oe=this.stack[this.stack.length-1];oe.title=ne}function te(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function _e(ne){const oe=this.resume(),Re=this.stack[this.stack.length-1];Re.label=oe,Re.identifier=Er(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function Ie(ne){this.data.characterReferenceType=ne.type}function Ce(ne){const oe=this.sliceSerialize(ne),Re=this.data.characterReferenceType;let Ve;Re?(Ve=lE(oe,Re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ve=jf(oe);const Xe=this.stack[this.stack.length-1];Xe.value+=Ve}function $e(ne){const oe=this.stack.pop();oe.position.end=Ci(ne.end)}function we(ne){$.call(this,ne);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(ne)}function We(ne){$.call(this,ne);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(ne)}function pt(){return{type:"blockquote",children:[]}}function on(){return{type:"code",lang:null,meta:null,value:""}}function qr(){return{type:"inlineCode",value:""}}function Sr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rn(){return{type:"emphasis",children:[]}}function xo(){return{type:"heading",depth:0,children:[]}}function Ii(){return{type:"break"}}function ci(){return{type:"html",value:""}}function ve(){return{type:"image",title:null,url:"",alt:null}}function Fe(){return{type:"link",title:null,url:"",children:[]}}function De(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function Qe(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function ft(){return{type:"paragraph",children:[]}}function lt(){return{type:"strong",children:[]}}function xn(){return{type:"text",value:""}}function vt(){return{type:"thematicBreak"}}}function Ci(e){return{line:e.line,column:e.column,offset:e.offset}}function vE(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?vE(e,r):mO(e,r)}}function mO(e,t){let n;for(n in t)if(AE.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function kE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+wa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wa({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+wa({start:t.start,end:t.end})+") is still open")}function gO(e){const t=this;t.parser=n;function n(r){return hO(r,me(F(F({},t.data("settings")),e),{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}function EO(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function yO(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
@@ -28,7 +28,7 @@ Error generating stack: `+b.message+`
28
28
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
29
29
  `}),n}function jE(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function $E(e,t){const n=oI(e,t),r=n.one(e,void 0),o=XO(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:`
30
30
  `},o),a}function cI(e,t){return e&&"run"in e?function(n,r){return tt(this,null,function*(){const o=$E(n,F({file:r},t));yield e.run(o,r)})}:function(n,r){return $E(n,F({file:r},e||t))}}function VE(e){if(e)throw e}var eh,qE;function dI(){if(qE)return eh;qE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},a=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var p=e.call(f,"constructor"),g=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!p&&!g)return!1;var T;for(T in f);return typeof T=="undefined"||e.call(f,T)},u=function(f,p){n&&p.name==="__proto__"?n(f,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):f[p.name]=p.newValue},c=function(f,p){if(p==="__proto__")if(e.call(f,p)){if(r)return r(f,p).value}else return;return f[p]};return eh=function d(){var f,p,g,T,y,_,S=arguments[0],k=1,v=arguments.length,N=!1;for(typeof S=="boolean"&&(N=S,S=arguments[1]||{},k=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});k<v;++k)if(f=arguments[k],f!=null)for(p in f)g=c(S,p),T=c(f,p),S!==T&&(N&&T&&(a(T)||(y=o(T)))?(y?(y=!1,_=g&&o(g)?g:[]):_=g&&a(g)?g:{},u(S,{name:p,newValue:d(N,_,T)})):typeof T!="undefined"&&u(S,{name:p,newValue:T}));return S},eh}var fI=dI();const th=Je(fI);function nh(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function hI(){const e=[],t={run:n,use:r};return t;function n(...o){let a=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...o);function c(d,...f){const p=e[++a];let g=-1;if(d){u(d);return}for(;++g<o.length;)(f[g]===null||f[g]===void 0)&&(f[g]=o[g]);o=f,p?pI(p,c)(...f):u(null,...f)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function pI(e,t){let n;return r;function r(...u){const c=e.length>u.length;let d;c&&u.push(o);try{d=e.apply(this,u)}catch(f){const p=f;if(c&&n)throw p;return o(p)}c||(d&&d.then&&typeof d.then=="function"?d.then(a,o):d instanceof Error?o(d):a(d))}function o(u,...c){n||(n=!0,t(u,...c))}function a(u){o(null,u)}}const Dr={basename:mI,dirname:gI,extname:EI,join:yI,sep:"/"};function mI(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Oa(e);let n=0,r=-1,o=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else r<0&&(a=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else u<0&&(a=!0,u=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(r=o):(c=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function gI(e){if(Oa(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function EI(e){Oa(e);let t=e.length,n=-1,r=0,o=-1,a=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||n<0||a===0||a===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function yI(...e){let t=-1,n;for(;++t<e.length;)Oa(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":bI(n)}function bI(e){Oa(e);const t=e.codePointAt(0)===47;let n=TI(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function TI(e,t){let n="",r=0,o=-1,a=0,u=-1,c,d;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(o===u-1||a===1))if(o!==u-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),o=u,a=0;continue}}else if(n.length>0){n="",r=0,o=u,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,u):n=e.slice(o+1,u),r=u-o-1;o=u,a=0}else c===46&&a>-1?a++:a=-1}return n}function Oa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _I={cwd:SI};function SI(){return"/"}function rh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xI(e){if(typeof e=="string")e=new URL(e);else if(!rh(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return wI(e)}function wI(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const ih=["history","path","basename","stem","extname","dirname"];class YE{constructor(t){let n;t?rh(t)?n={path:t}:typeof t=="string"||CI(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":_I.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ih.length;){const a=ih[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let o;for(o in n)ih.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?Dr.basename(this.path):void 0}set basename(t){sh(t,"basename"),oh(t,"basename"),this.path=Dr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Dr.dirname(this.path):void 0}set dirname(t){GE(this.basename,"dirname"),this.path=Dr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Dr.extname(this.path):void 0}set extname(t){if(oh(t,"extname"),GE(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Dr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){rh(t)&&(t=xI(t)),sh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Dr.basename(this.path,this.extname):void 0}set stem(t){sh(t,"stem"),oh(t,"stem"),this.path=Dr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new fn(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function oh(e,t){if(e&&e.includes(Dr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Dr.sep+"`")}function sh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function GE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function CI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const AI=(function(e){const r=this.constructor.prototype,o=r[e],a=function(){return o.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),vI={}.hasOwnProperty;class ah extends AI{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=hI()}copy(){const t=new ah;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(th(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ch("data",this.frozen),this.namespace[t]=n,this):vI.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ch("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Rl(t),r=this.parser||this.Parser;return uh("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),uh("process",this.parser||this.Parser),lh("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,u){const c=Rl(t),d=r.parse(c);r.run(d,c,function(p,g,T){if(p||!g||!T)return f(p);const y=g,_=r.stringify(y,T);NI(_)?T.value=_:T.result=_,f(p,T)});function f(p,g){p||!g?u(p):a?a(g):n(void 0,g)}}}processSync(t){let n=!1,r;return this.freeze(),uh("processSync",this.parser||this.Parser),lh("processSync",this.compiler||this.Compiler),this.process(t,o),XE("processSync","process",n),r;function o(a,u){n=!0,VE(a),r=u}}run(t,n,r){WE(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(u,c){const d=Rl(n);o.run(t,d,f);function f(p,g,T){const y=g||t;p?c(p):u?u(y):r(void 0,y,T)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),XE("runSync","run",r),o;function a(u,c){VE(u),o=c,r=!0}}stringify(t,n){this.freeze();const r=Rl(n),o=this.compiler||this.Compiler;return lh("stringify",o),WE(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(ch("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...g]=f;d(p,g)}else u(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function u(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(f.plugins),f.settings&&(o.settings=th(!0,o.settings,f.settings))}function c(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const g=f[p];a(g)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,p){let g=-1,T=-1;for(;++g<r.length;)if(r[g][0]===f){T=g;break}if(T===-1)r.push([f,...p]);else if(p.length>0){let[y,..._]=p;const S=r[T][1];nh(S)&&nh(y)&&(y=th(!0,S,y)),r[T]=[f,y,..._]}}}}const kI=new ah().freeze();function uh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function lh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ch(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function WE(e){if(!nh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function XE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Rl(e){return PI(e)?e:new YE(e)}function PI(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function NI(e){return typeof e=="string"||OI(e)}function OI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const II="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",KE=[],QE={allowDangerousHtml:!0},RI=/^(https?|ircs?|mailto|xmpp)$/i,LI=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function JE(e){const t=DI(e),n=MI(e);return FI(t.runSync(t.parse(n),n),e)}function DI(e){const t=e.rehypePlugins||KE,n=e.remarkPlugins||KE,r=e.remarkRehypeOptions?F(F({},e.remarkRehypeOptions),QE):QE;return kI().use(gO).use(n).use(cI,r).use(t)}function MI(e){const t=e.children||"",n=new YE;return typeof t=="string"&&(n.value=t),n}function FI(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,a=t.disallowedElements,u=t.skipHtml,c=t.unwrapDisallowed,d=t.urlTransform||BI;for(const p of LI)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+II+p.id,void 0);return Il(e,f),uP(e,{Fragment:w.Fragment,components:o,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.jsxs,passKeys:!0,passNode:!0});function f(p,g,T){if(p.type==="raw"&&T&&typeof g=="number")return u?T.children.splice(g,1):T.children[g]={type:"text",value:p.value},g;if(p.type==="element"){let y;for(y in Hf)if(Object.hasOwn(Hf,y)&&Object.hasOwn(p.properties,y)){const _=p.properties[y],S=Hf[y];(S===null||S.includes(p.tagName))&&(p.properties[y]=d(String(_||""),y,p))}}if(p.type==="element"){let y=n?!n.includes(p.tagName):a?a.includes(p.tagName):!1;if(!y&&r&&typeof g=="number"&&(y=!r(p,g,T)),y&&T&&typeof g=="number")return c&&p.children?T.children.splice(g,1,...p.children):T.children.splice(g,1),g}}}function BI(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||RI.test(e.slice(0,t))?e:""}const ZE=/[#.]/g;function UI(e,t){const n=e||"",r={};let o=0,a,u;for(;o<n.length;){ZE.lastIndex=o;const c=ZE.exec(n),d=n.slice(o,c?c.index:n.length);d&&(a?a==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:u=d,o+=d.length),c&&(a=c[0],o++)}return{type:"element",tagName:u||t||"div",properties:r,children:[]}}function ey(e,t,n){const r=n?$I(n):void 0;function o(a,u,...c){let d;if(a==null){d={type:"root",children:[]};const f=u;c.unshift(f)}else{d=UI(a,t);const f=d.tagName.toLowerCase(),p=r?r.get(f):void 0;if(d.tagName=p||f,HI(u))c.unshift(u);else for(const[g,T]of Object.entries(u))zI(e,d.properties,g,T)}for(const f of c)dh(d.children,f);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return o}function HI(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const o=t[r];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const a=o;for(const u of a)if(typeof u!="number"&&typeof u!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function zI(e,t,n,r){const o=Lf(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?o.spaceSeparated?a=V1(r):o.commaSeparated?a=O1(r):o.commaOrSpaceSeparated?a=V1(O1(r).join(" ")):a=ty(o,o.property,r):Array.isArray(r)?a=[...r]:a=o.property==="style"?jI(r):String(r);if(Array.isArray(a)){const u=[];for(const c of a)u.push(ty(o,o.property,c));a=u}o.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}function dh(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)dh(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?dh(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function ty(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||_a(n)===_a(t)))return!0}return n}function jI(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function $I(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const VI=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],qI=ey(Tl,"div"),YI=ey(Zo,"g",VI);function GI(e){const t=String(e),n=[];return{toOffset:o,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let u=0;for(;;){let c=n[u];if(c===void 0){const d=ny(t,n[u-1]);c=d===-1?t.length+1:d+1,n[u]=c}if(c>a)return{line:u+1,column:a-(u>0?n[u-1]:0)+1,offset:a};u++}}}function o(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const c=n[n.length-1],d=ny(t,c),f=d===-1?t.length+1:d+1;if(c===f)break;n.push(f)}const u=(a.line>1?n[a.line-2]:0)+a.column-1;if(u<n[a.line-1])return u}}}function ny(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
31
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const lo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ry={}.hasOwnProperty,WI=Object.prototype;function XI(e,t){const n=t||{};return fh({file:n.file||void 0,location:!1,schema:n.space==="svg"?Zo:Tl,verbose:n.verbose||!1},e)}function fh(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Ll(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:iy(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const a=String(e.file),u=GI(a),c=u.toPoint(0),d=u.toPoint(a.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Ll(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Ll(e,r,n),n}default:return n=KI(e,t),n}}function iy(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=fh(e,t[n]);r.push(o)}return r}function KI(e,t){const n=e.schema;e.schema=t.namespaceURI===lo.svg?Zo:Tl;let r=-1;const o={};for(;++r<t.attrs.length;){const c=t.attrs[r],d=(c.prefix?c.prefix+":":"")+c.name;ry.call(WI,d)||(o[d]=c.value)}const u=(e.schema.space==="svg"?YI:qI)(t.tagName,o,iy(e,t.childNodes));if(Ll(e,t,u),u.tagName==="template"){const c=t,d=c.sourceCodeLocation,f=d&&d.startTag&&is(d.startTag),p=d&&d.endTag&&is(d.endTag),g=fh(e,c.content);f&&p&&e.file&&(g.position={start:f.end,end:p.start}),u.content=g}return e.schema=n,u}function Ll(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=QI(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function QI(e,t,n){const r=is(n);if(t.type==="element"){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const a={};let u;if(n.attrs)for(u in n.attrs)ry.call(n.attrs,u)&&(a[Lf(e.schema,u).property]=is(n.attrs[u]));n.startTag;const c=is(n.startTag),d=n.endTag?is(n.endTag):void 0,f={opening:c};d&&(f.closing=d),f.properties=a,t.data={position:f}}}return r}function is(e){const t=oy({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=oy({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function oy(e){return e.line&&e.column?e:void 0}class Ia{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Ia.prototype.property={},Ia.prototype.normal={},Ia.prototype.space=null;function sy(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Ia(n,r,t)}function hh(e){return e.toLowerCase()}class nr{constructor(t,n){this.property=t,this.attribute=n}}nr.prototype.space=null,nr.prototype.boolean=!1,nr.prototype.booleanish=!1,nr.prototype.overloadedBoolean=!1,nr.prototype.number=!1,nr.prototype.commaSeparated=!1,nr.prototype.spaceSeparated=!1,nr.prototype.commaOrSpaceSeparated=!1,nr.prototype.mustUseProperty=!1,nr.prototype.defined=!1;let JI=0;const Ye=co(),$t=co(),ay=co(),Ee=co(),yt=co(),os=co(),jn=co();function co(){return ta(2,++JI)}const ph=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ye,booleanish:$t,commaOrSpaceSeparated:jn,commaSeparated:os,number:Ee,overloadedBoolean:ay,spaceSeparated:yt},Symbol.toStringTag,{value:"Module"})),mh=Object.keys(ph);class gh extends nr{constructor(t,n,r,o){let a=-1;if(super(t,n),uy(this,"space",o),typeof r=="number")for(;++a<mh.length;){const u=mh[a];uy(this,mh[a],(r&ph[u])===ph[u])}}}gh.prototype.defined=!0;function uy(e,t,n){n&&(e[t]=n)}const ZI={}.hasOwnProperty;function ss(e){const t={},n={};let r;for(r in e.properties)if(ZI.call(e.properties,r)){const o=e.properties[r],a=new gh(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[hh(r)]=r,n[hh(a.attribute)]=r}return new Ia(t,n,e.space)}const ly=ss({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),cy=ss({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dy(e,t){return t in e?e[t]:t}function fy(e,t){return dy(e,t.toLowerCase())}const hy=ss({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:fy,properties:{xmlns:null,xmlnsXLink:null}}),py=ss({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$t,ariaAutoComplete:null,ariaBusy:$t,ariaChecked:$t,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:yt,ariaCurrent:null,ariaDescribedBy:yt,ariaDetails:null,ariaDisabled:$t,ariaDropEffect:yt,ariaErrorMessage:null,ariaExpanded:$t,ariaFlowTo:yt,ariaGrabbed:$t,ariaHasPopup:null,ariaHidden:$t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yt,ariaLevel:Ee,ariaLive:null,ariaModal:$t,ariaMultiLine:$t,ariaMultiSelectable:$t,ariaOrientation:null,ariaOwns:yt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:$t,ariaReadOnly:$t,ariaRelevant:null,ariaRequired:$t,ariaRoleDescription:yt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:$t,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null}}),e3=ss({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:fy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:os,acceptCharset:yt,accessKey:yt,action:null,allow:null,allowFullScreen:Ye,allowPaymentRequest:Ye,allowUserMedia:Ye,alt:null,as:null,async:Ye,autoCapitalize:null,autoComplete:yt,autoFocus:Ye,autoPlay:Ye,blocking:yt,capture:null,charSet:null,checked:Ye,cite:null,className:yt,cols:Ee,colSpan:null,content:null,contentEditable:$t,controls:Ye,controlsList:yt,coords:Ee|os,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ye,defer:Ye,dir:null,dirName:null,disabled:Ye,download:ay,draggable:$t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ye,formTarget:null,headers:yt,height:Ee,hidden:Ye,high:Ee,href:null,hrefLang:null,htmlFor:yt,httpEquiv:yt,id:null,imageSizes:null,imageSrcSet:null,inert:Ye,inputMode:null,integrity:null,is:null,isMap:Ye,itemId:null,itemProp:yt,itemRef:yt,itemScope:Ye,itemType:yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ye,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:Ye,muted:Ye,name:null,nonce:null,noModule:Ye,noValidate:Ye,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:Ye,optimum:Ee,pattern:null,ping:yt,placeholder:null,playsInline:Ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ye,referrerPolicy:null,rel:yt,required:Ye,reversed:Ye,rows:Ee,rowSpan:Ee,sandbox:yt,scope:null,scoped:Ye,seamless:Ye,selected:Ye,shadowRootClonable:Ye,shadowRootDelegatesFocus:Ye,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:$t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:Ye,useMap:null,value:$t,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ye,declare:Ye,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:Ye,noHref:Ye,noShade:Ye,noWrap:Ye,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:$t,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ye,disableRemotePlayback:Ye,prefix:null,property:null,results:Ee,security:null,unselectable:null}}),t3=ss({space:"svg",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"},transform:dy,properties:{about:jn,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:yt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:Ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:os,g2:os,glyphName:os,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:jn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,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:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jn,rev:jn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jn,requiredFeatures:jn,requiredFonts:jn,requiredFormats:jn,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:jn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),n3=/^data[-\w.:]+$/i,my=/-[a-z]/g,r3=/[A-Z]/g;function i3(e,t){const n=hh(t);let r=t,o=nr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&n3.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(my,s3);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!my.test(a)){let u=a.replace(r3,o3);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}o=gh}return new o(r,t)}function o3(e){return"-"+e.toLowerCase()}function s3(e){return e.charAt(1).toUpperCase()}const a3=sy([cy,ly,hy,py,e3],"html"),gy=sy([cy,ly,hy,py,t3],"svg"),Ey={}.hasOwnProperty;function yy(e,t){const n=t||{};function r(o,...a){let u=r.invalid;const c=r.handlers;if(o&&Ey.call(o,e)){const d=String(o[e]);u=Ey.call(c,d)?c[d]:r.unknown}if(u)return u.call(this,o,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const u3={},l3={}.hasOwnProperty,by=yy("type",{handlers:{root:d3,element:g3,text:p3,comment:m3,doctype:h3}});function c3(e,t){const r=(t||u3).space;return by(e,r==="svg"?gy:a3)}function d3(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Eh(e.children,n,t),as(e,n),n}function f3(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Eh(e.children,n,t),as(e,n),n}function h3(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return as(e,t),t}function p3(e){const t={nodeName:"#text",value:e.value,parentNode:null};return as(e,t),t}function m3(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return as(e,t),t}function g3(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=gy);const o=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&l3.call(e.properties,a)){const d=E3(r,a,e.properties[a]);d&&o.push(d)}}const u=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:lo[u],childNodes:[],parentNode:null};return c.childNodes=Eh(e.children,c,r),as(e,c),e.tagName==="template"&&e.content&&(c.content=f3(e.content,r)),c}function E3(e,t,n){const r=i3(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?I1(n):q1(n));const o={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=o.name.indexOf(":");a<0?o.prefix="":(o.name=o.name.slice(a+1),o.prefix=r.attribute.slice(0,a)),o.namespace=lo[r.space]}return o}function Eh(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=by(e[r],n);a.parentNode=t,o.push(a)}return o}function as(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const y3=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],b3=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ct="�";var P;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(P||(P={}));const On={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Ty(e){return e>=55296&&e<=57343}function T3(e){return e>=56320&&e<=57343}function _3(e,t){return(e-55296)*1024+9216+t}function _y(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Sy(e){return e>=64976&&e<=65007||b3.has(e)}var ee;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ee||(ee={}));const S3=65536;class x3{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=S3,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:o,offset:a}=this,u=o+n,c=a+n;return{code:t,startLine:r,endLine:r,startCol:u,endCol:u,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(T3(n))return this.pos++,this._addGap(),_3(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,P.EOF;return this._err(ee.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;const r=this.html.charCodeAt(n);return r===P.CARRIAGE_RETURN?P.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;let t=this.html.charCodeAt(this.pos);return t===P.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,P.LINE_FEED):t===P.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ty(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===P.LINE_FEED||t===P.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){_y(t)?this._err(ee.controlCharacterInInputStream):Sy(t)&&this._err(ee.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ke;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ke||(Ke={}));function xy(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const w3=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),C3=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function A3(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=C3.get(e))!==null&&t!==void 0?t:e}var Qt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Qt||(Qt={}));const v3=32;var Ai;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ai||(Ai={}));function yh(e){return e>=Qt.ZERO&&e<=Qt.NINE}function k3(e){return e>=Qt.UPPER_A&&e<=Qt.UPPER_F||e>=Qt.LOWER_A&&e<=Qt.LOWER_F}function P3(e){return e>=Qt.UPPER_A&&e<=Qt.UPPER_Z||e>=Qt.LOWER_A&&e<=Qt.LOWER_Z||yh(e)}function N3(e){return e===Qt.EQUALS||P3(e)}var Jt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Jt||(Jt={}));var ii;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ii||(ii={}));class O3{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Jt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ii.Strict}startEntity(t){this.decodeMode=t,this.state=Jt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Jt.EntityStart:return t.charCodeAt(n)===Qt.NUM?(this.state=Jt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Jt.NamedEntity,this.stateNamedEntity(t,n));case Jt.NumericStart:return this.stateNumericStart(t,n);case Jt.NumericDecimal:return this.stateNumericDecimal(t,n);case Jt.NumericHex:return this.stateNumericHex(t,n);case Jt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|v3)===Qt.LOWER_X?(this.state=Jt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Jt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const a=r-n;this.result=this.result*Math.pow(o,a)+Number.parseInt(t.substr(n,a),o),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(yh(o)||k3(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(yh(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Qt.SEMI)this.consumed+=1;else if(this.decodeMode===ii.Strict)return 0;return this.emitCodePoint(A3(this.result),this.consumed),this.errors&&(t!==Qt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],a=(o&Ai.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=I3(r,o,this.treeIndex+Math.max(1,a),u),this.treeIndex<0)return this.result===0||this.decodeMode===ii.Attribute&&(a===0||N3(u))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],a=(o&Ai.VALUE_LENGTH)>>14,a!==0){if(u===Qt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==ii.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&Ai.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Ai.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Jt.NamedEntity:return this.result!==0&&(this.decodeMode!==ii.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Jt.NumericDecimal:return this.emitNumericEntity(0,2);case Jt.NumericHex:return this.emitNumericEntity(0,3);case Jt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Jt.EntityStart:return 0}}}function I3(e,t,n,r){const o=(t&Ai.BRANCH_LENGTH)>>7,a=t&Ai.JUMP_TABLE;if(o===0)return a!==0&&r===a?n:-1;if(a){const d=r-a;return d<0||d>=o?-1:e[n+d]-1}let u=n,c=u+o-1;for(;u<=c;){const d=u+c>>>1,f=e[d];if(f<r)u=d+1;else if(f>r)c=d-1;else return e[d+o]}return-1}var ae;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ae||(ae={}));var fo;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(fo||(fo={}));var rr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(rr||(rr={}));var G;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(G||(G={}));var m;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(m||(m={}));const R3=new Map([[G.A,m.A],[G.ADDRESS,m.ADDRESS],[G.ANNOTATION_XML,m.ANNOTATION_XML],[G.APPLET,m.APPLET],[G.AREA,m.AREA],[G.ARTICLE,m.ARTICLE],[G.ASIDE,m.ASIDE],[G.B,m.B],[G.BASE,m.BASE],[G.BASEFONT,m.BASEFONT],[G.BGSOUND,m.BGSOUND],[G.BIG,m.BIG],[G.BLOCKQUOTE,m.BLOCKQUOTE],[G.BODY,m.BODY],[G.BR,m.BR],[G.BUTTON,m.BUTTON],[G.CAPTION,m.CAPTION],[G.CENTER,m.CENTER],[G.CODE,m.CODE],[G.COL,m.COL],[G.COLGROUP,m.COLGROUP],[G.DD,m.DD],[G.DESC,m.DESC],[G.DETAILS,m.DETAILS],[G.DIALOG,m.DIALOG],[G.DIR,m.DIR],[G.DIV,m.DIV],[G.DL,m.DL],[G.DT,m.DT],[G.EM,m.EM],[G.EMBED,m.EMBED],[G.FIELDSET,m.FIELDSET],[G.FIGCAPTION,m.FIGCAPTION],[G.FIGURE,m.FIGURE],[G.FONT,m.FONT],[G.FOOTER,m.FOOTER],[G.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[G.FORM,m.FORM],[G.FRAME,m.FRAME],[G.FRAMESET,m.FRAMESET],[G.H1,m.H1],[G.H2,m.H2],[G.H3,m.H3],[G.H4,m.H4],[G.H5,m.H5],[G.H6,m.H6],[G.HEAD,m.HEAD],[G.HEADER,m.HEADER],[G.HGROUP,m.HGROUP],[G.HR,m.HR],[G.HTML,m.HTML],[G.I,m.I],[G.IMG,m.IMG],[G.IMAGE,m.IMAGE],[G.INPUT,m.INPUT],[G.IFRAME,m.IFRAME],[G.KEYGEN,m.KEYGEN],[G.LABEL,m.LABEL],[G.LI,m.LI],[G.LINK,m.LINK],[G.LISTING,m.LISTING],[G.MAIN,m.MAIN],[G.MALIGNMARK,m.MALIGNMARK],[G.MARQUEE,m.MARQUEE],[G.MATH,m.MATH],[G.MENU,m.MENU],[G.META,m.META],[G.MGLYPH,m.MGLYPH],[G.MI,m.MI],[G.MO,m.MO],[G.MN,m.MN],[G.MS,m.MS],[G.MTEXT,m.MTEXT],[G.NAV,m.NAV],[G.NOBR,m.NOBR],[G.NOFRAMES,m.NOFRAMES],[G.NOEMBED,m.NOEMBED],[G.NOSCRIPT,m.NOSCRIPT],[G.OBJECT,m.OBJECT],[G.OL,m.OL],[G.OPTGROUP,m.OPTGROUP],[G.OPTION,m.OPTION],[G.P,m.P],[G.PARAM,m.PARAM],[G.PLAINTEXT,m.PLAINTEXT],[G.PRE,m.PRE],[G.RB,m.RB],[G.RP,m.RP],[G.RT,m.RT],[G.RTC,m.RTC],[G.RUBY,m.RUBY],[G.S,m.S],[G.SCRIPT,m.SCRIPT],[G.SEARCH,m.SEARCH],[G.SECTION,m.SECTION],[G.SELECT,m.SELECT],[G.SOURCE,m.SOURCE],[G.SMALL,m.SMALL],[G.SPAN,m.SPAN],[G.STRIKE,m.STRIKE],[G.STRONG,m.STRONG],[G.STYLE,m.STYLE],[G.SUB,m.SUB],[G.SUMMARY,m.SUMMARY],[G.SUP,m.SUP],[G.TABLE,m.TABLE],[G.TBODY,m.TBODY],[G.TEMPLATE,m.TEMPLATE],[G.TEXTAREA,m.TEXTAREA],[G.TFOOT,m.TFOOT],[G.TD,m.TD],[G.TH,m.TH],[G.THEAD,m.THEAD],[G.TITLE,m.TITLE],[G.TR,m.TR],[G.TRACK,m.TRACK],[G.TT,m.TT],[G.U,m.U],[G.UL,m.UL],[G.SVG,m.SVG],[G.VAR,m.VAR],[G.WBR,m.WBR],[G.XMP,m.XMP]]);function us(e){var t;return(t=R3.get(e))!==null&&t!==void 0?t:m.UNKNOWN}const fe=m,L3={[ae.HTML]:new Set([fe.ADDRESS,fe.APPLET,fe.AREA,fe.ARTICLE,fe.ASIDE,fe.BASE,fe.BASEFONT,fe.BGSOUND,fe.BLOCKQUOTE,fe.BODY,fe.BR,fe.BUTTON,fe.CAPTION,fe.CENTER,fe.COL,fe.COLGROUP,fe.DD,fe.DETAILS,fe.DIR,fe.DIV,fe.DL,fe.DT,fe.EMBED,fe.FIELDSET,fe.FIGCAPTION,fe.FIGURE,fe.FOOTER,fe.FORM,fe.FRAME,fe.FRAMESET,fe.H1,fe.H2,fe.H3,fe.H4,fe.H5,fe.H6,fe.HEAD,fe.HEADER,fe.HGROUP,fe.HR,fe.HTML,fe.IFRAME,fe.IMG,fe.INPUT,fe.LI,fe.LINK,fe.LISTING,fe.MAIN,fe.MARQUEE,fe.MENU,fe.META,fe.NAV,fe.NOEMBED,fe.NOFRAMES,fe.NOSCRIPT,fe.OBJECT,fe.OL,fe.P,fe.PARAM,fe.PLAINTEXT,fe.PRE,fe.SCRIPT,fe.SECTION,fe.SELECT,fe.SOURCE,fe.STYLE,fe.SUMMARY,fe.TABLE,fe.TBODY,fe.TD,fe.TEMPLATE,fe.TEXTAREA,fe.TFOOT,fe.TH,fe.THEAD,fe.TITLE,fe.TR,fe.TRACK,fe.UL,fe.WBR,fe.XMP]),[ae.MATHML]:new Set([fe.MI,fe.MO,fe.MN,fe.MS,fe.MTEXT,fe.ANNOTATION_XML]),[ae.SVG]:new Set([fe.TITLE,fe.FOREIGN_OBJECT,fe.DESC]),[ae.XLINK]:new Set,[ae.XML]:new Set,[ae.XMLNS]:new Set},bh=new Set([fe.H1,fe.H2,fe.H3,fe.H4,fe.H5,fe.H6]);G.STYLE,G.SCRIPT,G.XMP,G.IFRAME,G.NOEMBED,G.NOFRAMES,G.PLAINTEXT;var I;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(I||(I={}));const Mt={DATA:I.DATA,RCDATA:I.RCDATA,RAWTEXT:I.RAWTEXT,SCRIPT_DATA:I.SCRIPT_DATA,PLAINTEXT:I.PLAINTEXT,CDATA_SECTION:I.CDATA_SECTION};function D3(e){return e>=P.DIGIT_0&&e<=P.DIGIT_9}function Ra(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_Z}function M3(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_Z}function vi(e){return M3(e)||Ra(e)}function wy(e){return vi(e)||D3(e)}function Dl(e){return e+32}function Cy(e){return e===P.SPACE||e===P.LINE_FEED||e===P.TABULATION||e===P.FORM_FEED}function Ay(e){return Cy(e)||e===P.SOLIDUS||e===P.GREATER_THAN_SIGN}function F3(e){return e===P.NULL?ee.nullCharacterReference:e>1114111?ee.characterReferenceOutsideUnicodeRange:Ty(e)?ee.surrogateCharacterReference:Sy(e)?ee.noncharacterCharacterReference:_y(e)||e===P.CARRIAGE_RETURN?ee.controlCharacterReference:null}class B3{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=I.DATA,this.returnState=I.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new x3(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new O3(w3,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ee.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(ee.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=F3(r);o&&this._err(o,1)}}:void 0)}_err(t,n=0){var r,o;(o=(r=this.handler).onParseError)===null||o===void 0||o.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ke.START_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ke.END_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ke.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ke.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(xy(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const o=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ee.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=us(t.tagName),t.type===Ke.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ee.endTagWithAttributes),t.selfClosing&&this._err(ee.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ke.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ke.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ke.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ke.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Cy(t)?Ke.WHITESPACE_CHARACTER:t===P.NULL?Ke.NULL_CHARACTER:Ke.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ke.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=I.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ii.Attribute:ii.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===I.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===I.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===I.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case I.DATA:{this._stateData(t);break}case I.RCDATA:{this._stateRcdata(t);break}case I.RAWTEXT:{this._stateRawtext(t);break}case I.SCRIPT_DATA:{this._stateScriptData(t);break}case I.PLAINTEXT:{this._statePlaintext(t);break}case I.TAG_OPEN:{this._stateTagOpen(t);break}case I.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case I.TAG_NAME:{this._stateTagName(t);break}case I.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case I.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case I.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case I.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case I.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case I.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case I.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case I.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case I.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case I.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case I.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case I.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case I.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case I.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case I.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case I.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case I.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case I.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case I.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case I.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case I.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case I.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case I.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case I.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case I.BOGUS_COMMENT:{this._stateBogusComment(t);break}case I.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case I.COMMENT_START:{this._stateCommentStart(t);break}case I.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case I.COMMENT:{this._stateComment(t);break}case I.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case I.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case I.COMMENT_END:{this._stateCommentEnd(t);break}case I.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case I.DOCTYPE:{this._stateDoctype(t);break}case I.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case I.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case I.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case I.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case I.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case I.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case I.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case I.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case I.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case I.CDATA_SECTION:{this._stateCdataSection(t);break}case I.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case I.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case I.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case I.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=I.TAG_OPEN;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitCodePoint(t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case P.AMPERSAND:{this._startCharacterReference();break}case P.LESS_THAN_SIGN:{this.state=I.RCDATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case P.LESS_THAN_SIGN:{this.state=I.RAWTEXT_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(vi(t))this._createStartTagToken(),this.state=I.TAG_NAME,this._stateTagName(t);else switch(t){case P.EXCLAMATION_MARK:{this.state=I.MARKUP_DECLARATION_OPEN;break}case P.SOLIDUS:{this.state=I.END_TAG_OPEN;break}case P.QUESTION_MARK:{this._err(ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t);break}case P.EOF:{this._err(ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=I.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(vi(t))this._createEndTagToken(),this.state=I.TAG_NAME,this._stateTagName(t);else switch(t){case P.GREATER_THAN_SIGN:{this._err(ee.missingEndTagName),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ee.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this.state=I.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.tagName+=Ct;break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Ra(t)?Dl(t):t)}}_stateRcdataLessThanSign(t){t===P.SOLIDUS?this.state=I.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=I.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){vi(t)?(this.state=I.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=I.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=I.BEFORE_ATTRIBUTE_NAME,!1;case P.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=I.SELF_CLOSING_START_TAG,!1;case P.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=I.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===P.SOLIDUS?this.state=I.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=I.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){vi(t)?(this.state=I.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=I.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case P.SOLIDUS:{this.state=I.SCRIPT_DATA_END_TAG_OPEN;break}case P.EXCLAMATION_MARK:{this.state=I.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=I.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){vi(t)?(this.state=I.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===P.HYPHEN_MINUS?(this.state=I.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===P.HYPHEN_MINUS?(this.state=I.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.GREATER_THAN_SIGN:{this.state=I.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===P.SOLIDUS?this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:vi(t)?(this._emitChars("<"),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){vi(t)?(this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(On.SCRIPT,!1)&&Ay(this.preprocessor.peek(On.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<On.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.GREATER_THAN_SIGN:{this.state=I.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===P.SOLIDUS?(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(On.SCRIPT,!1)&&Ay(this.preprocessor.peek(On.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<On.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=I.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this.state=I.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._err(ee.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=I.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=I.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this._leaveAttrName(),this.state=I.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._leaveAttrName(),this.state=I.BEFORE_ATTRIBUTE_VALUE;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:{this._err(ee.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.name+=Ct;break}default:this.currentAttr.name+=String.fromCodePoint(Ra(t)?Dl(t):t)}}_stateAfterAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:{this.state=I.SELF_CLOSING_START_TAG;break}case P.EQUALS_SIGN:{this.state=I.BEFORE_ATTRIBUTE_VALUE;break}case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=I.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{this.state=I.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this.state=I.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingAttributeValue),this.state=I.DATA,this.emitCurrentTagToken();break}default:this.state=I.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case P.QUOTATION_MARK:{this.state=I.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case P.APOSTROPHE:{this.state=I.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=I.BEFORE_ATTRIBUTE_NAME;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=I.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:case P.EQUALS_SIGN:case P.GRAVE_ACCENT:{this._err(ee.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=I.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this._leaveAttrValue(),this.state=I.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=I.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this._err(ee.missingWhitespaceBetweenAttributes),this.state=I.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case P.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=I.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this._err(ee.unexpectedSolidusInTag),this.state=I.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentComment(n);break}case P.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.data+=Ct;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(On.DASH_DASH,!0)?(this._createCommentToken(On.DASH_DASH.length+1),this.state=I.COMMENT_START):this._consumeSequenceIfMatch(On.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(On.DOCTYPE.length+1),this.state=I.DOCTYPE):this._consumeSequenceIfMatch(On.CDATA_START,!0)?this.inForeignNode?this.state=I.CDATA_SECTION:(this._err(ee.cdataInHtmlContent),this._createCommentToken(On.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=I.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ee.incorrectlyOpenedComment),this._createCommentToken(2),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case P.HYPHEN_MINUS:{this.state=I.COMMENT_START_DASH;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptClosingOfEmptyComment),this.state=I.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=I.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=I.COMMENT_END;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptClosingOfEmptyComment),this.state=I.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=I.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=I.COMMENT_END_DASH;break}case P.LESS_THAN_SIGN:{n.data+="<",this.state=I.COMMENT_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.data+=Ct;break}case P.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case P.EXCLAMATION_MARK:{n.data+="!",this.state=I.COMMENT_LESS_THAN_SIGN_BANG;break}case P.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=I.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===P.HYPHEN_MINUS?this.state=I.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=I.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===P.HYPHEN_MINUS?this.state=I.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=I.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==P.GREATER_THAN_SIGN&&t!==P.EOF&&this._err(ee.nestedComment),this.state=I.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=I.COMMENT_END;break}case P.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=I.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentComment(n);break}case P.EXCLAMATION_MARK:{this.state=I.COMMENT_END_BANG;break}case P.HYPHEN_MINUS:{n.data+="-";break}case P.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=I.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{n.data+="--!",this.state=I.COMMENT_END_DASH;break}case P.GREATER_THAN_SIGN:{this._err(ee.incorrectlyClosedComment),this.state=I.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=I.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=I.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case P.EOF:{this._err(ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingWhitespaceBeforeDoctypeName),this.state=I.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ra(t))this._createDoctypeToken(String.fromCharCode(Dl(t))),this.state=I.DOCTYPE_NAME;else switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.NULL:{this._err(ee.unexpectedNullCharacter),this._createDoctypeToken(Ct),this.state=I.DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=I.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.AFTER_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.name+=Ct;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Ra(t)?Dl(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(On.PUBLIC,!1)?this.state=I.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(On.SYSTEM,!1)?this.state=I.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ee.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.publicId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case P.APOSTROPHE:{this.state=I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.publicId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.QUOTATION_MARK:{this._err(ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.QUOTATION_MARK:{n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.systemId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case P.APOSTROPHE:{this.state=I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.systemId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.NULL:{this._err(ee.unexpectedNullCharacter);break}case P.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case P.RIGHT_SQUARE_BRACKET:{this.state=I.CDATA_SECTION_BRACKET;break}case P.EOF:{this._err(ee.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===P.RIGHT_SQUARE_BRACKET?this.state=I.CDATA_SECTION_END:(this._emitChars("]"),this.state=I.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case P.GREATER_THAN_SIGN:{this.state=I.DATA;break}case P.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=I.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(P.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&wy(this.preprocessor.peek(1))?I.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){wy(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===P.SEMICOLON&&this._err(ee.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const vy=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),ky=new Set([...vy,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),Ml=new Set([m.APPLET,m.CAPTION,m.HTML,m.MARQUEE,m.OBJECT,m.TABLE,m.TD,m.TEMPLATE,m.TH]),U3=new Set([...Ml,m.OL,m.UL]),H3=new Set([...Ml,m.BUTTON]),Py=new Set([m.ANNOTATION_XML,m.MI,m.MN,m.MO,m.MS,m.MTEXT]),Ny=new Set([m.DESC,m.FOREIGN_OBJECT,m.TITLE]),z3=new Set([m.TR,m.TEMPLATE,m.HTML]),j3=new Set([m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML]),$3=new Set([m.TABLE,m.TEMPLATE,m.HTML]),V3=new Set([m.TD,m.TH]);class q3{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ae.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const o=this._indexOf(t)+1;this.items.splice(o,0,n),this.tagIDs.splice(o,0,r),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ae.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(bh,ae.HTML)}popUntilTableCellPopped(){this.popUntilPopped(V3,ae.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo($3,ae.HTML)}clearBackToTableBodyContext(){this.clearBackTo(j3,ae.HTML)}clearBackToTableRowContext(){this.clearBackTo(z3,ae.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===m.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const o=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case ae.HTML:{if(o===t)return!0;if(n.has(o))return!1;break}case ae.SVG:{if(Ny.has(o))return!1;break}case ae.MATHML:{if(Py.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ml)}hasInListItemScope(t){return this.hasInDynamicScope(t,U3)}hasInButtonScope(t){return this.hasInDynamicScope(t,H3)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ae.HTML:{if(bh.has(n))return!0;if(Ml.has(n))return!1;break}case ae.SVG:{if(Ny.has(n))return!1;break}case ae.MATHML:{if(Py.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ae.HTML)switch(this.tagIDs[n]){case t:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ae.HTML)switch(this.tagIDs[t]){case m.TBODY:case m.THEAD:case m.TFOOT:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ae.HTML)switch(this.tagIDs[n]){case t:return!0;case m.OPTION:case m.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&vy.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ky.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ky.has(this.currentTagId);)this.pop()}}const Th=3;var Mr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Mr||(Mr={}));const Oy={type:Mr.Marker};class Y3{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],o=n.length,a=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===Mr.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===a&&this.treeAdapter.getNamespaceURI(f)===u){const p=this.treeAdapter.getAttrList(f);p.length===o&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Th)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Th)return;const o=new Map(n.map(u=>[u.name,u.value]));let a=0;for(let u=0;u<r.length;u++){const c=r[u];c.attrs.every(d=>o.get(d.name)===d.value)&&(a+=1,a>=Th&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(Oy)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Mr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Mr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Oy);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Mr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Mr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Mr.Element&&n.element===t)}}const ki={createDocument(){return{nodeName:"#document",mode:rr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const o=e.childNodes.find(a=>a.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ki.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ki.isTextNode(n)){n.value+=t;return}}ki.appendChild(e,ki.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ki.isTextNode(r)?r.value+=t:ki.insertBefore(e,ki.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation=F(F({},e.sourceCodeLocation),t)}},Iy="html",G3="about:legacy-compat",W3="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ry=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],X3=[...Ry,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],K3=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ly=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Q3=[...Ly,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Dy(e,t){return t.some(n=>e.startsWith(n))}function J3(e){return e.name===Iy&&e.publicId===null&&(e.systemId===null||e.systemId===G3)}function Z3(e){if(e.name!==Iy)return rr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===W3)return rr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),K3.has(n))return rr.QUIRKS;let r=t===null?X3:Ry;if(Dy(n,r))return rr.QUIRKS;if(r=t===null?Ly:Q3,Dy(n,r))return rr.LIMITED_QUIRKS}return rr.NO_QUIRKS}const My={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},eR="definitionurl",tR="definitionURL",nR=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),rR=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ae.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ae.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ae.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ae.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ae.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ae.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ae.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ae.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ae.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ae.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ae.XMLNS}]]),iR=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),oR=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function sR(e){const t=e.tagID;return t===m.FONT&&e.attrs.some(({name:r})=>r===fo.COLOR||r===fo.SIZE||r===fo.FACE)||oR.has(t)}function Fy(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===eR){e.attrs[t].name=tR;break}}function By(e){for(let t=0;t<e.attrs.length;t++){const n=nR.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function _h(e){for(let t=0;t<e.attrs.length;t++){const n=rR.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function aR(e){const t=iR.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=us(e.tagName))}function uR(e,t){return t===ae.MATHML&&(e===m.MI||e===m.MO||e===m.MN||e===m.MS||e===m.MTEXT)}function lR(e,t,n){if(t===ae.MATHML&&e===m.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===fo.ENCODING){const o=n[r].value.toLowerCase();return o===My.TEXT_HTML||o===My.APPLICATION_XML}}return t===ae.SVG&&(e===m.FOREIGN_OBJECT||e===m.DESC||e===m.TITLE)}function cR(e,t,n,r){return(!r||r===ae.HTML)&&lR(e,t,n)||(!r||r===ae.MATHML)&&uR(e,t)}const dR="hidden",fR=8,hR=3;var L;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(L||(L={}));const pR={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Uy=new Set([m.TABLE,m.TBODY,m.TFOOT,m.THEAD,m.TR]),Hy={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ki,onParseError:null};class zy{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=L.INITIAL,this.originalInsertionMode=L.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=F(F({},Hy),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n!=null?n:this.treeAdapter.createDocument(),this.tokenizer=new B3(this.options,this),this.activeFormattingElements=new Y3(this.treeAdapter),this.fragmentContextID=r?us(this.treeAdapter.getTagName(r)):m.UNKNOWN,this._setContextModes(r!=null?r:this.document,this.fragmentContextID),this.openElements=new q3(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r=F(F({},Hy),n);t!=null||(t=r.treeAdapter.createElement(G.TEMPLATE,ae.HTML,[]));const o=r.treeAdapter.createElement("documentmock",ae.HTML,[]),a=new this(r,o,t);return a.fragmentContextID===m.TEMPLATE&&a.tmplInsertionModeStack.unshift(L.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var o;if(!this.onParseError)return;const a=(o=t.location)!==null&&o!==void 0?o:pR,u={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(u)}onItemPush(t,n,r){var o,a;(a=(o=this.treeAdapter).onItemPush)===null||a===void 0||a.call(o,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(r=this.treeAdapter).onItemPop)===null||o===void 0||o.call(r,t,this.openElements.current),n){let a,u;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,u=this.fragmentContextID):{current:a,currentTagId:u}=this.openElements,this._setContextModes(a,u)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ae.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ae.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=L.TEXT}switchToPlaintextParsing(){this.insertionMode=L.TEXT,this.originalInsertionMode=L.IN_BODY,this.tokenizer.state=Mt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===G.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ae.HTML))switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:{this.tokenizer.state=Mt.RCDATA;break}case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:{this.tokenizer.state=Mt.RAWTEXT;break}case m.SCRIPT:{this.tokenizer.state=Mt.SCRIPT_DATA;break}case m.PLAINTEXT:{this.tokenizer.state=Mt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,o),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&me(F({},n),{startTag:n});this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r!=null?r:this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ae.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ae.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(G.HTML,ae.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,m.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(n),a=r?o.lastIndexOf(r):o.length,u=o[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:d,endCol:f,endOffset:p}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:d,endCol:f,endOffset:p})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,o=this.treeAdapter.getTagName(t),a=n.type===Ke.END_TAG&&o===n.tagName?{endTag:F({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===m.SVG&&this.treeAdapter.getTagName(n)===G.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ae.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===m.MGLYPH||t.tagID===m.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,ae.HTML)}_processToken(t){switch(t.type){case Ke.CHARACTER:{this.onCharacter(t);break}case Ke.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ke.COMMENT:{this.onComment(t);break}case Ke.DOCTYPE:{this.onDoctype(t);break}case Ke.START_TAG:{this._processStartTag(t);break}case Ke.END_TAG:{this.onEndTag(t);break}case Ke.EOF:{this.onEof(t);break}case Ke.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return cR(t,o,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===Mr.Marker||this.openElements.contains(o.element)),r=n===-1?t-1:n-1;for(let o=r;o>=0;o--){const a=this.activeFormattingElements.entries[o];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=L.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case m.TR:{this.insertionMode=L.IN_ROW;return}case m.TBODY:case m.THEAD:case m.TFOOT:{this.insertionMode=L.IN_TABLE_BODY;return}case m.CAPTION:{this.insertionMode=L.IN_CAPTION;return}case m.COLGROUP:{this.insertionMode=L.IN_COLUMN_GROUP;return}case m.TABLE:{this.insertionMode=L.IN_TABLE;return}case m.BODY:{this.insertionMode=L.IN_BODY;return}case m.FRAMESET:{this.insertionMode=L.IN_FRAMESET;return}case m.SELECT:{this._resetInsertionModeForSelect(t);return}case m.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case m.HTML:{this.insertionMode=this.headElement?L.AFTER_HEAD:L.BEFORE_HEAD;return}case m.TD:case m.TH:{if(t>0){this.insertionMode=L.IN_CELL;return}break}case m.HEAD:{if(t>0){this.insertionMode=L.IN_HEAD;return}break}}this.insertionMode=L.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===m.TEMPLATE)break;if(r===m.TABLE){this.insertionMode=L.IN_SELECT_IN_TABLE;return}}this.insertionMode=L.IN_SELECT}_isElementCausesFosterParenting(t){return Uy.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case m.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ae.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case m.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return L3[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){VL(this,t);return}switch(this.insertionMode){case L.INITIAL:{La(this,t);break}case L.BEFORE_HTML:{Da(this,t);break}case L.BEFORE_HEAD:{Ma(this,t);break}case L.IN_HEAD:{Fa(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Ba(this,t);break}case L.AFTER_HEAD:{Ua(this,t);break}case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:{$y(this,t);break}case L.TEXT:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Ch(this,t);break}case L.IN_TABLE_TEXT:{Qy(this,t);break}case L.IN_COLUMN_GROUP:{Ul(this,t);break}case L.AFTER_BODY:{jl(this,t);break}case L.AFTER_AFTER_BODY:{$l(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$L(this,t);return}switch(this.insertionMode){case L.INITIAL:{La(this,t);break}case L.BEFORE_HTML:{Da(this,t);break}case L.BEFORE_HEAD:{Ma(this,t);break}case L.IN_HEAD:{Fa(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Ba(this,t);break}case L.AFTER_HEAD:{Ua(this,t);break}case L.TEXT:{this._insertCharacters(t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Ch(this,t);break}case L.IN_COLUMN_GROUP:{Ul(this,t);break}case L.AFTER_BODY:{jl(this,t);break}case L.AFTER_AFTER_BODY:{$l(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){xh(this,t);return}switch(this.insertionMode){case L.INITIAL:case L.BEFORE_HTML:case L.BEFORE_HEAD:case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:case L.IN_BODY:case L.IN_TABLE:case L.IN_CAPTION:case L.IN_COLUMN_GROUP:case L.IN_TABLE_BODY:case L.IN_ROW:case L.IN_CELL:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:case L.IN_TEMPLATE:case L.IN_FRAMESET:case L.AFTER_FRAMESET:{xh(this,t);break}case L.IN_TABLE_TEXT:{ja(this,t);break}case L.AFTER_BODY:{_R(this,t);break}case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{SR(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case L.INITIAL:{xR(this,t);break}case L.BEFORE_HEAD:case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:{this._err(t,ee.misplacedDoctype);break}case L.IN_TABLE_TEXT:{ja(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ee.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?qL(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{La(this,t);break}case L.BEFORE_HTML:{wR(this,t);break}case L.BEFORE_HEAD:{AR(this,t);break}case L.IN_HEAD:{yr(this,t);break}case L.IN_HEAD_NO_SCRIPT:{PR(this,t);break}case L.AFTER_HEAD:{OR(this,t);break}case L.IN_BODY:{pn(this,t);break}case L.IN_TABLE:{ls(this,t);break}case L.IN_TABLE_TEXT:{ja(this,t);break}case L.IN_CAPTION:{vL(this,t);break}case L.IN_COLUMN_GROUP:{Ah(this,t);break}case L.IN_TABLE_BODY:{Hl(this,t);break}case L.IN_ROW:{zl(this,t);break}case L.IN_CELL:{NL(this,t);break}case L.IN_SELECT:{eb(this,t);break}case L.IN_SELECT_IN_TABLE:{IL(this,t);break}case L.IN_TEMPLATE:{LL(this,t);break}case L.AFTER_BODY:{ML(this,t);break}case L.IN_FRAMESET:{FL(this,t);break}case L.AFTER_FRAMESET:{UL(this,t);break}case L.AFTER_AFTER_BODY:{zL(this,t);break}case L.AFTER_AFTER_FRAMESET:{jL(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?YL(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{La(this,t);break}case L.BEFORE_HTML:{CR(this,t);break}case L.BEFORE_HEAD:{vR(this,t);break}case L.IN_HEAD:{kR(this,t);break}case L.IN_HEAD_NO_SCRIPT:{NR(this,t);break}case L.AFTER_HEAD:{IR(this,t);break}case L.IN_BODY:{Bl(this,t);break}case L.TEXT:{EL(this,t);break}case L.IN_TABLE:{Ha(this,t);break}case L.IN_TABLE_TEXT:{ja(this,t);break}case L.IN_CAPTION:{kL(this,t);break}case L.IN_COLUMN_GROUP:{PL(this,t);break}case L.IN_TABLE_BODY:{vh(this,t);break}case L.IN_ROW:{Zy(this,t);break}case L.IN_CELL:{OL(this,t);break}case L.IN_SELECT:{tb(this,t);break}case L.IN_SELECT_IN_TABLE:{RL(this,t);break}case L.IN_TEMPLATE:{DL(this,t);break}case L.AFTER_BODY:{rb(this,t);break}case L.IN_FRAMESET:{BL(this,t);break}case L.AFTER_FRAMESET:{HL(this,t);break}case L.AFTER_AFTER_BODY:{$l(this,t);break}}}onEof(t){switch(this.insertionMode){case L.INITIAL:{La(this,t);break}case L.BEFORE_HTML:{Da(this,t);break}case L.BEFORE_HEAD:{Ma(this,t);break}case L.IN_HEAD:{Fa(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Ba(this,t);break}case L.AFTER_HEAD:{Ua(this,t);break}case L.IN_BODY:case L.IN_TABLE:case L.IN_CAPTION:case L.IN_COLUMN_GROUP:case L.IN_TABLE_BODY:case L.IN_ROW:case L.IN_CELL:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:{Xy(this,t);break}case L.TEXT:{yL(this,t);break}case L.IN_TABLE_TEXT:{ja(this,t);break}case L.IN_TEMPLATE:{nb(this,t);break}case L.AFTER_BODY:case L.IN_FRAMESET:case L.AFTER_FRAMESET:case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{wh(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===P.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:case L.TEXT:case L.IN_COLUMN_GROUP:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:case L.IN_FRAMESET:case L.AFTER_FRAMESET:{this._insertCharacters(t);break}case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:case L.AFTER_BODY:case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{jy(this,t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Ch(this,t);break}case L.IN_TABLE_TEXT:{Ky(this,t);break}}}}function mR(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Wy(e,t),n}function gR(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function ER(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let a=0,u=o;u!==n;a++,u=o){o=e.openElements.getCommonAncestor(u);const c=e.activeFormattingElements.getElementEntry(u),d=c&&a>=hR;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(u)):(u=yR(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(u,r),r=u)}return r}function yR(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function bR(e,t,n){const r=e.treeAdapter.getTagName(t),o=us(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);o===m.TEMPLATE&&a===ae.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function TR(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,a=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,o.tagID)}function Sh(e,t){for(let n=0;n<fR;n++){const r=mR(e,t);if(!r)break;const o=gR(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const a=ER(e,o,r.element),u=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),u&&bR(e,u,a),TR(e,o,r)}}function xh(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function _R(e,t){e._appendCommentNode(t,e.openElements.items[0])}function SR(e,t){e._appendCommentNode(t,e.document)}function wh(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(a);u&&!u.endTag&&e._setEndLocation(a,t)}}}}function xR(e,t){e._setDocumentType(t);const n=t.forceQuirks?rr.QUIRKS:Z3(t);J3(t)||e._err(t,ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=L.BEFORE_HTML}function La(e,t){e._err(t,ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,rr.QUIRKS),e.insertionMode=L.BEFORE_HTML,e._processToken(t)}function wR(e,t){t.tagID===m.HTML?(e._insertElement(t,ae.HTML),e.insertionMode=L.BEFORE_HEAD):Da(e,t)}function CR(e,t){const n=t.tagID;(n===m.HTML||n===m.HEAD||n===m.BODY||n===m.BR)&&Da(e,t)}function Da(e,t){e._insertFakeRootElement(),e.insertionMode=L.BEFORE_HEAD,e._processToken(t)}function AR(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.HEAD:{e._insertElement(t,ae.HTML),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD;break}default:Ma(e,t)}}function vR(e,t){const n=t.tagID;n===m.HEAD||n===m.BODY||n===m.HTML||n===m.BR?Ma(e,t):e._err(t,ee.endTagWithoutMatchingOpenElement)}function Ma(e,t){e._insertFakeElement(G.HEAD,m.HEAD),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD,e._processToken(t)}function yr(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case m.TITLE:{e._switchToTextParsing(t,Mt.RCDATA);break}case m.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Mt.RAWTEXT):(e._insertElement(t,ae.HTML),e.insertionMode=L.IN_HEAD_NO_SCRIPT);break}case m.NOFRAMES:case m.STYLE:{e._switchToTextParsing(t,Mt.RAWTEXT);break}case m.SCRIPT:{e._switchToTextParsing(t,Mt.SCRIPT_DATA);break}case m.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=L.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(L.IN_TEMPLATE);break}case m.HEAD:{e._err(t,ee.misplacedStartTagForHeadElement);break}default:Fa(e,t)}}function kR(e,t){switch(t.tagID){case m.HEAD:{e.openElements.pop(),e.insertionMode=L.AFTER_HEAD;break}case m.BODY:case m.BR:case m.HTML:{Fa(e,t);break}case m.TEMPLATE:{ho(e,t);break}default:e._err(t,ee.endTagWithoutMatchingOpenElement)}}function ho(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==m.TEMPLATE&&e._err(t,ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ee.endTagWithoutMatchingOpenElement)}function Fa(e,t){e.openElements.pop(),e.insertionMode=L.AFTER_HEAD,e._processToken(t)}function PR(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:{yr(e,t);break}case m.NOSCRIPT:{e._err(t,ee.nestedNoscriptInHead);break}default:Ba(e,t)}}function NR(e,t){switch(t.tagID){case m.NOSCRIPT:{e.openElements.pop(),e.insertionMode=L.IN_HEAD;break}case m.BR:{Ba(e,t);break}default:e._err(t,ee.endTagWithoutMatchingOpenElement)}}function Ba(e,t){const n=t.type===Ke.EOF?ee.openElementsLeftAfterEof:ee.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=L.IN_HEAD,e._processToken(t)}function OR(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.BODY:{e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=L.IN_BODY;break}case m.FRAMESET:{e._insertElement(t,ae.HTML),e.insertionMode=L.IN_FRAMESET;break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{e._err(t,ee.abandonedHeadElementChild),e.openElements.push(e.headElement,m.HEAD),yr(e,t),e.openElements.remove(e.headElement);break}case m.HEAD:{e._err(t,ee.misplacedStartTagForHeadElement);break}default:Ua(e,t)}}function IR(e,t){switch(t.tagID){case m.BODY:case m.HTML:case m.BR:{Ua(e,t);break}case m.TEMPLATE:{ho(e,t);break}default:e._err(t,ee.endTagWithoutMatchingOpenElement)}}function Ua(e,t){e._insertFakeElement(G.BODY,m.BODY),e.insertionMode=L.IN_BODY,Fl(e,t)}function Fl(e,t){switch(t.type){case Ke.CHARACTER:{$y(e,t);break}case Ke.WHITESPACE_CHARACTER:{jy(e,t);break}case Ke.COMMENT:{xh(e,t);break}case Ke.START_TAG:{pn(e,t);break}case Ke.END_TAG:{Bl(e,t);break}case Ke.EOF:{Xy(e,t);break}}}function jy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $y(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function RR(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function LR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function DR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_FRAMESET)}function MR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function FR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&bh.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ae.HTML)}function BR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function UR(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML),n||(e.formElement=e.openElements.current))}function HR(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.tagIDs[r];if(n===m.LI&&o===m.LI||(n===m.DD||n===m.DT)&&(o===m.DD||o===m.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==m.ADDRESS&&o!==m.DIV&&o!==m.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function zR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.tokenizer.state=Mt.PLAINTEXT}function jR(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1}function $R(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(G.A);n&&(Sh(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function VR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function qR(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(Sh(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function YR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function GR(e,t){e.treeAdapter.getDocumentMode(e.document)!==rr.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=L.IN_TABLE}function Vy(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qy(e){const t=xy(e,fo.TYPE);return t!=null&&t.toLowerCase()===dR}function WR(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),qy(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function XR(e,t){e._appendElement(t,ae.HTML),t.ackSelfClosing=!0}function KR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function QR(e,t){t.tagName=G.IMG,t.tagID=m.IMG,Vy(e,t)}function JR(e,t){e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Mt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=L.TEXT}function ZR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Mt.RAWTEXT)}function eL(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Mt.RAWTEXT)}function Yy(e,t){e._switchToTextParsing(t,Mt.RAWTEXT)}function tL(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===L.IN_TABLE||e.insertionMode===L.IN_CAPTION||e.insertionMode===L.IN_TABLE_BODY||e.insertionMode===L.IN_ROW||e.insertionMode===L.IN_CELL?L.IN_SELECT_IN_TABLE:L.IN_SELECT}function nL(e,t){e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function rL(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ae.HTML)}function iL(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,ae.HTML)}function oL(e,t){e._reconstructActiveFormattingElements(),Fy(t),_h(t),t.selfClosing?e._appendElement(t,ae.MATHML):e._insertElement(t,ae.MATHML),t.ackSelfClosing=!0}function sL(e,t){e._reconstructActiveFormattingElements(),By(t),_h(t),t.selfClosing?e._appendElement(t,ae.SVG):e._insertElement(t,ae.SVG),t.ackSelfClosing=!0}function Gy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function pn(e,t){switch(t.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:{VR(e,t);break}case m.A:{$R(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{FR(e,t);break}case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{MR(e,t);break}case m.LI:case m.DD:case m.DT:{HR(e,t);break}case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:{Vy(e,t);break}case m.HR:{KR(e,t);break}case m.RB:case m.RTC:{rL(e,t);break}case m.RT:case m.RP:{iL(e,t);break}case m.PRE:case m.LISTING:{BR(e,t);break}case m.XMP:{ZR(e,t);break}case m.SVG:{sL(e,t);break}case m.HTML:{RR(e,t);break}case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:{yr(e,t);break}case m.BODY:{LR(e,t);break}case m.FORM:{UR(e,t);break}case m.NOBR:{qR(e,t);break}case m.MATH:{oL(e,t);break}case m.TABLE:{GR(e,t);break}case m.INPUT:{WR(e,t);break}case m.PARAM:case m.TRACK:case m.SOURCE:{XR(e,t);break}case m.IMAGE:{QR(e,t);break}case m.BUTTON:{jR(e,t);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{YR(e,t);break}case m.IFRAME:{eL(e,t);break}case m.SELECT:{tL(e,t);break}case m.OPTION:case m.OPTGROUP:{nL(e,t);break}case m.NOEMBED:case m.NOFRAMES:{Yy(e,t);break}case m.FRAMESET:{DR(e,t);break}case m.TEXTAREA:{JR(e,t);break}case m.NOSCRIPT:{e.options.scriptingEnabled?Yy(e,t):Gy(e,t);break}case m.PLAINTEXT:{zR(e,t);break}case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:Gy(e,t)}}function aL(e,t){if(e.openElements.hasInScope(m.BODY)&&(e.insertionMode=L.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function uL(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=L.AFTER_BODY,rb(e,t))}function lL(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function cL(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):n&&e.openElements.remove(n))}function dL(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(G.P,m.P),e._closePElement()}function fL(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function hL(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function pL(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function mL(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function gL(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(G.BR,m.BR),e.openElements.pop(),e.framesetOk=!1}function Wy(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const a=e.openElements.items[o],u=e.openElements.tagIDs[o];if(r===u&&(r!==m.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(a,u))break}}function Bl(e,t){switch(t.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:{Sh(e,t);break}case m.P:{dL(e);break}case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{lL(e,t);break}case m.LI:{fL(e);break}case m.DD:case m.DT:{hL(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{pL(e);break}case m.BR:{gL(e);break}case m.BODY:{aL(e,t);break}case m.HTML:{uL(e,t);break}case m.FORM:{cL(e);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{mL(e,t);break}case m.TEMPLATE:{ho(e,t);break}default:Wy(e,t)}}function Xy(e,t){e.tmplInsertionModeStack.length>0?nb(e,t):wh(e,t)}function EL(e,t){var n;t.tagID===m.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function yL(e,t){e._err(t,ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ch(e,t){if(e.openElements.currentTagId!==void 0&&Uy.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=L.IN_TABLE_TEXT,t.type){case Ke.CHARACTER:{Qy(e,t);break}case Ke.WHITESPACE_CHARACTER:{Ky(e,t);break}}else za(e,t)}function bL(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_CAPTION}function TL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_COLUMN_GROUP}function _L(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.COLGROUP,m.COLGROUP),e.insertionMode=L.IN_COLUMN_GROUP,Ah(e,t)}function SL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_TABLE_BODY}function xL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.TBODY,m.TBODY),e.insertionMode=L.IN_TABLE_BODY,Hl(e,t)}function wL(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function CL(e,t){qy(t)?e._appendElement(t,ae.HTML):za(e,t),t.ackSelfClosing=!0}function AL(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ae.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ls(e,t){switch(t.tagID){case m.TD:case m.TH:case m.TR:{xL(e,t);break}case m.STYLE:case m.SCRIPT:case m.TEMPLATE:{yr(e,t);break}case m.COL:{_L(e,t);break}case m.FORM:{AL(e,t);break}case m.TABLE:{wL(e,t);break}case m.TBODY:case m.TFOOT:case m.THEAD:{SL(e,t);break}case m.INPUT:{CL(e,t);break}case m.CAPTION:{bL(e,t);break}case m.COLGROUP:{TL(e,t);break}default:za(e,t)}}function Ha(e,t){switch(t.tagID){case m.TABLE:{e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode());break}case m.TEMPLATE:{ho(e,t);break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:za(e,t)}}function za(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Fl(e,t),e.fosterParentingEnabled=n}function Ky(e,t){e.pendingCharacterTokens.push(t)}function Qy(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ja(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)za(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Jy=new Set([m.CAPTION,m.COL,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]);function vL(e,t){const n=t.tagID;Jy.has(n)?e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,ls(e,t)):pn(e,t)}function kL(e,t){const n=t.tagID;switch(n){case m.CAPTION:case m.TABLE:{e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,n===m.TABLE&&Ha(e,t));break}case m.BODY:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:Bl(e,t)}}function Ah(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.COL:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case m.TEMPLATE:{yr(e,t);break}default:Ul(e,t)}}function PL(e,t){switch(t.tagID){case m.COLGROUP:{e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case m.TEMPLATE:{ho(e,t);break}case m.COL:break;default:Ul(e,t)}}function Ul(e,t){e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE,e._processToken(t))}function Hl(e,t){switch(t.tagID){case m.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_ROW;break}case m.TH:case m.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(G.TR,m.TR),e.insertionMode=L.IN_ROW,zl(e,t);break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,ls(e,t));break}default:ls(e,t)}}function vh(e,t){const n=t.tagID;switch(t.tagID){case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case m.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,Ha(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:case m.TR:break;default:Ha(e,t)}}function zl(e,t){switch(t.tagID){case m.TH:case m.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_CELL,e.activeFormattingElements.insertMarker();break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Hl(e,t));break}default:ls(e,t)}}function Zy(e,t){switch(t.tagID){case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY);break}case m.TABLE:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,vh(e,t));break}case m.TBODY:case m.TFOOT:case m.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(m.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,vh(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:break;default:Ha(e,t)}}function NL(e,t){const n=t.tagID;Jy.has(n)?(e.openElements.hasInTableScope(m.TD)||e.openElements.hasInTableScope(m.TH))&&(e._closeTableCell(),zl(e,t)):pn(e,t)}function OL(e,t){const n=t.tagID;switch(n){case m.TD:case m.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_ROW);break}case m.TABLE:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Zy(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:break;default:Bl(e,t)}}function eb(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._insertElement(t,ae.HTML);break}case m.OPTGROUP:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ae.HTML);break}case m.HR:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case m.INPUT:case m.KEYGEN:case m.TEXTAREA:case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),t.tagID!==m.SELECT&&e._processStartTag(t));break}case m.SCRIPT:case m.TEMPLATE:{yr(e,t);break}}}function tb(e,t){switch(t.tagID){case m.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===m.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===m.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop();break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop();break}case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode());break}case m.TEMPLATE:{ho(e,t);break}}}function IL(e,t){const n=t.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processStartTag(t)):eb(e,t)}function RL(e,t){const n=t.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e.onEndTag(t)):tb(e,t)}function LL(e,t){switch(t.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{yr(e,t);break}case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.tmplInsertionModeStack[0]=L.IN_TABLE,e.insertionMode=L.IN_TABLE,ls(e,t);break}case m.COL:{e.tmplInsertionModeStack[0]=L.IN_COLUMN_GROUP,e.insertionMode=L.IN_COLUMN_GROUP,Ah(e,t);break}case m.TR:{e.tmplInsertionModeStack[0]=L.IN_TABLE_BODY,e.insertionMode=L.IN_TABLE_BODY,Hl(e,t);break}case m.TD:case m.TH:{e.tmplInsertionModeStack[0]=L.IN_ROW,e.insertionMode=L.IN_ROW,zl(e,t);break}default:e.tmplInsertionModeStack[0]=L.IN_BODY,e.insertionMode=L.IN_BODY,pn(e,t)}}function DL(e,t){t.tagID===m.TEMPLATE&&ho(e,t)}function nb(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):wh(e,t)}function ML(e,t){t.tagID===m.HTML?pn(e,t):jl(e,t)}function rb(e,t){var n;if(t.tagID===m.HTML){if(e.fragmentContext||(e.insertionMode=L.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===m.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else jl(e,t)}function jl(e,t){e.insertionMode=L.IN_BODY,Fl(e,t)}function FL(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.FRAMESET:{e._insertElement(t,ae.HTML);break}case m.FRAME:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case m.NOFRAMES:{yr(e,t);break}}}function BL(e,t){t.tagID===m.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==m.FRAMESET&&(e.insertionMode=L.AFTER_FRAMESET))}function UL(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.NOFRAMES:{yr(e,t);break}}}function HL(e,t){t.tagID===m.HTML&&(e.insertionMode=L.AFTER_AFTER_FRAMESET)}function zL(e,t){t.tagID===m.HTML?pn(e,t):$l(e,t)}function $l(e,t){e.insertionMode=L.IN_BODY,Fl(e,t)}function jL(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.NOFRAMES:{yr(e,t);break}}}function $L(e,t){t.chars=Ct,e._insertCharacters(t)}function VL(e,t){e._insertCharacters(t),e.framesetOk=!1}function ib(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ae.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function qL(e,t){if(sR(t))ib(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ae.MATHML?Fy(t):r===ae.SVG&&(aR(t),By(t)),_h(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function YL(e,t){if(t.tagID===m.P||t.tagID===m.BR){ib(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ae.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}G.AREA,G.BASE,G.BASEFONT,G.BGSOUND,G.BR,G.COL,G.EMBED,G.FRAME,G.HR,G.IMG,G.INPUT,G.KEYGEN,G.LINK,G.META,G.PARAM,G.SOURCE,G.TRACK,G.WBR;const GL=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,WL=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ob={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function sb(e,t){const n=i6(e),r=yy("type",{handlers:{root:XL,element:KL,text:QL,comment:ub,doctype:JL,raw:e6},unknown:t6}),o={parser:n?new zy(ob):zy.getFragmentParser(void 0,ob),handle(c){r(c,o)},stitches:!1,options:t||{}};r(e,o),cs(o,Lr());const a=n?o.parser.document:o.parser.getFragment(),u=XI(a,{file:o.options.file});return o.stitches&&Il(u,"comment",function(c,d,f){const p=c;if(p.value.stitch&&f&&d!==void 0){const g=f.children;return g[d]=p.value.stitch,d}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function ab(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function XL(e,t){ab(e.children,t)}function KL(e,t){n6(e,t),ab(e.children,t),r6(e,t)}function QL(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ke.CHARACTER,chars:e.value,location:$a(e)};cs(t,Lr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function JL(e,t){const n={type:Ke.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:$a(e)};cs(t,Lr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ZL(e,t){t.stitches=!0;const n=o6(e);if("children"in e&&"children"in n){const r=sb({type:"root",children:e.children},t.options);n.children=r.children}ub({type:"comment",value:{stitch:n}},t)}function ub(e,t){const n=e.value,r={type:Ke.COMMENT,data:n,location:$a(e)};cs(t,Lr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function e6(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,lb(t,Lr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(GL,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function t6(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))ZL(n,t);else{let r="";throw WL.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function cs(e,t){lb(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Mt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function lb(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function n6(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Mt.PLAINTEXT)return;cs(t,Lr(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:lo.html;o===lo.html&&n==="svg"&&(o=lo.svg);const a=c3(me(F({},e),{children:[]}),{space:o===lo.svg?"svg":"html"}),u={type:Ke.START_TAG,tagName:n,tagID:us(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:$a(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function r6(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&y3.includes(n)||t.parser.tokenizer.state===Mt.PLAINTEXT)return;cs(t,_l(e));const r={type:Ke.END_TAG,tagName:n,tagID:us(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:$a(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Mt.RCDATA||t.parser.tokenizer.state===Mt.RAWTEXT||t.parser.tokenizer.state===Mt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Mt.DATA)}function i6(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function $a(e){const t=Lr(e)||{line:void 0,column:void 0,offset:void 0},n=_l(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function o6(e){return"children"in e?uo(me(F({},e),{children:[]})):uo(e)}function cb(e){return function(t,n){return sb(t,me(F({},e),{file:n}))}}const po=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],db={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...po,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...po],h2:[["className","sr-only"]],img:[...po,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...po,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...po],table:[...po],ul:[...po,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Pi={}.hasOwnProperty;function s6(e,t){let n={type:"root",children:[]};const r={schema:t?F(F({},db),t):db,stack:[]},o=fb(r,e);return o&&(Array.isArray(o)?o.length===1?n=o[0]:n.children=o:n=o),n}function fb(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return a6(e,n);case"doctype":return u6(e,n);case"element":return l6(e,n);case"root":return c6(e,n);case"text":return d6(e,n)}}}function a6(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return Va(a,t),a}}function u6(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Va(n,t),n}}function l6(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=hb(e,t.children),o=f6(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Pi.call(e.schema.ancestors,n))){const c=e.schema.ancestors[n];let d=-1;for(a=!1;++d<c.length;)e.stack.includes(c[d])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const u={type:"element",tagName:n,properties:o,children:r};return Va(u,t),u}function c6(e,t){const r={type:"root",children:hb(e,t.children)};return Va(r,t),r}function d6(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return Va(r,t),r}function hb(e,t){const n=[];if(Array.isArray(t)){const r=t;let o=-1;for(;++o<r.length;){const a=fb(e,r[o]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function f6(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,o=e.schema.required,a=r&&Pi.call(r,n)?r[n]:void 0,u=r&&Pi.call(r,"*")?r["*"]:void 0,c=t&&typeof t=="object"?t:{},d={};let f;for(f in c)if(Pi.call(c,f)){const p=c[f];let g=pb(e,gb(a,f),f,p);g==null&&(g=pb(e,gb(u,f),f,p)),g!=null&&(d[f]=g)}if(o&&Pi.call(o,n)){const p=o[n];for(f in p)Pi.call(p,f)&&!Pi.call(d,f)&&(d[f]=p[f])}return d}function pb(e,t,n,r){return t?Array.isArray(r)?h6(e,t,n,r):mb(e,t,n,r):void 0}function h6(e,t,n,r){let o=-1;const a=[];for(;++o<r.length;){const u=mb(e,t,n,r[o]);(typeof u=="number"||typeof u=="string")&&a.push(u)}return a}function mb(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&p6(e,n,r)){if(typeof t=="object"&&t.length>1){let o=!1,a=0;for(;++a<t.length;){const u=t[a];if(u&&typeof u=="object"&&"flags"in u){if(u.test(String(r))){o=!0;break}}else if(u===r){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function p6(e,t,n){const r=e.schema.protocols&&Pi.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const o=String(n),a=o.indexOf(":"),u=o.indexOf("?"),c=o.indexOf("#"),d=o.indexOf("/");if(a<0||d>-1&&a>d||u>-1&&a>u||c>-1&&a>c)return!0;let f=-1;for(;++f<r.length;){const p=r[f];if(a===p.length&&o.slice(0,p.length)===p)return!0}return!1}function Va(e,t){const n=Q1(t);t.data&&(e.data=uo(t.data)),n&&(e.position=n)}function gb(e,t){let n,r=-1;if(e)for(;++r<e.length;){const o=e[r],a=typeof o=="string"?o:o[0];if(a===t)return o;a==="data*"&&(n=o)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function m6(e){return function(t){return s6(t,e)}}const Eb=({globalClassName:e,openLinksInNewTab:t,href:n,title:r,children:o})=>{const a=n?t?"_blank":"_self":void 0;return w.jsx("a",me(F(F({className:W(e,`${j}-link`)},n?{href:n,target:a}:{}),r?{title:r}:{}),{rel:"noopener noreferrer",children:o}))},g6=()=>{const{disclaimerText:e,disclaimerMarkdown:t,globalClassName:n}=at();return!e&&!t?null:w.jsx("div",{className:W(n,`${j}-disclaimer`),children:t?w.jsx(JE,{rehypePlugins:[cb,m6],components:{ul:({children:r})=>w.jsx("ul",{className:W(n,`${j}-ul`),children:r}),ol:({children:r})=>w.jsx("ol",{className:W(n,`${j}-ol`),children:r}),li:({children:r})=>w.jsx("li",{className:W(n,`${j}-li`),children:r}),a:({href:r,title:o,children:a})=>w.jsx(Eb,{globalClassName:n,openLinksInNewTab:!0,href:r,title:o,children:a}),img:({src:r,alt:o})=>w.jsx("img",{className:W(n,`${j}-disclaimer-image`),src:r,alt:o}),p:({children:r})=>w.jsx("p",{className:W(n,`${j}-disclaimer-text`),children:r}),span:({children:r})=>w.jsx("span",{className:W(n,`${j}-disclaimer-text-span`),children:r})},children:t}):w.jsx("p",{className:W(n,`${j}-disclaimer-text`),children:e})})},kh=({className:e,isLoading:t,componentType:n,onSubmit:r})=>{const{connected:o,imageFile:a}=er(),{setImageFile:u}=Wo(),{logger:c,globalClassName:d,searchConfig:f,features:p}=at(),g=U.useRef(null),T=U.useRef(null),y=!!(p!=null&&p.enableImageUpload),_=(a==null?void 0:a.name)||"",S=!!o||!1,k=S?"connected":"disconnected",v=t||!S,N=()=>a?new Promise((D,K)=>{const re=new FileReader;re.readAsDataURL(a),re.onload=()=>D(re.result),re.onerror=be=>K(be)}):Promise.resolve(""),C=D=>tt(null,null,function*(){var be;if(v)return;const K=10*1024*1024,re=(be=D.target.files)==null?void 0:be[0];if(re){if(re.size>K){alert("File size exceeds the 10MB limit. Please choose a smaller file."),u(null);return}u(re)}}),M=()=>{u(null),T.current&&(T.current.value="")},V=D=>tt(null,null,function*(){var be;D.preventDefault();const K=(((be=g.current)==null?void 0:be.value)||"").trim();let re="";try{re=yield N()}catch($){c==null||c.error("Error converting file to base64:",$),alert("There was an error processing the file. Please try again.");return}K&&(M(),g.current.value="",r(K,re))});return w.jsxs("div",{className:W(d,e,`cim-${n}-component`,a&&"with-attachments",`${j}-search-bar-wrapper`),children:[a&&w.jsxs("div",{className:W(d,`cim-${n}-component`,`${j}-image-file-preview`),children:[w.jsx("img",{className:W(d,`cim-${n}-component`,`${j}-image-preview`),src:URL.createObjectURL(a),alt:`${_} preview`,loading:"lazy"}),w.jsx("span",{className:W(d,`cim-${n}-component`,`${j}-image-file-name`),title:_,children:_}),w.jsx(N1,{className:W(`cim-${n}-component`,"clear-attachment"),label:"Remove image",onClick:M})]}),w.jsxs("form",{className:W(d,e,`cim-${n}-component`,`${j}-search-bar`),name:`${j}-search-form`,onSubmit:V,children:[w.jsx("span",{role:"status",className:W(`${j}-connection-status-icon`,k)}),y&&w.jsxs("div",{role:"button",className:W(d,e,`cim-${n}-component`,v&&"disabled",`${j}-image-upload-button`),"aria-disabled":v,tabIndex:0,children:[w.jsx("label",{className:W(d,e,`cim-${n}-component`,v&&"disabled",`${j}-image-upload-label`),htmlFor:"image-input","aria-label":"Upload an image",children:w.jsx(Ik,{})}),w.jsx("input",{className:W(d,e,`cim-${n}-component`,`${j}-file-input`),type:"file",ref:T,id:"image-input",accept:".png,.jpg,.jpeg,.avif,.svg,.gif,.tiff,.tif,.webp",name:`${j}-file-input`,disabled:v,onInput:C})]}),w.jsx("input",{className:W(d,e,`cim-${n}-component`,`${j}-search-input`),type:"text",ref:g,placeholder:f==null?void 0:f.placeholder,name:`${j}-user-input`}),w.jsx(Bk,{isLoading:v}),w.jsx(Dk,{className:e,globalClassName:d,searchConfig:f,componentType:n,isLoading:v})]}),w.jsx(g6,{})]})};function E6(e){return zt({attr:{version:"1.1",viewBox:"0 0 17 17"},child:[{tag:"g",attr:{},child:[]},{tag:"path",attr:{d:"M6 8h-6v-6h1v4.109c1.013-3.193 4.036-5.484 7.5-5.484 3.506 0 6.621 2.36 7.574 5.739l-0.963 0.271c-0.832-2.95-3.551-5.011-6.611-5.011-3.226 0.001-6.016 2.276-6.708 5.376h4.208v1zM11 9v1h4.208c-0.693 3.101-3.479 5.375-6.708 5.375-3.062 0-5.78-2.061-6.611-5.011l-0.963 0.271c0.952 3.379 4.067 5.739 7.574 5.739 3.459 0 6.475-2.28 7.5-5.482v4.108h1v-6h-6z"},child:[]}]})(e)}const yb=U.createContext({isOpen:!1}),Ph=U.createContext(null),bb=U.createContext(null),qa=()=>{var n,r;const e=U.useContext(Ph),t=U.useContext(bb);return(r=(n=e==null?void 0:e.closeMenu)!=null?n:t==null?void 0:t.closeMenu)!=null?r:(()=>{})},Tb=({onClearChat:e,componentType:t})=>{const n=qa(),r=()=>{e(),n()};return w.jsxs("button",{className:W(`${j}-overflow-menu-button`,"clear-chat-button",`cim-${t}-component`),onClick:r,children:[w.jsx(E6,{}),"Clear chat"]})};function y6(e){return e==null?[]:Array.isArray(e)?e:[e]}var b6=(e,...t)=>e.concat(t),T6=(e,...t)=>e.filter(n=>!t.includes(n)),_6=e=>Array.from(new Set(e));function _b(e,t,n={}){const{step:r=1,loop:o=!0}=n,a=t+r,u=e.length,c=u-1;return t===-1?r>0?0:c:a<0?o?c:0:a>=u?o?0:t>u?u:t:a}function S6(e,t,n={}){const{step:r=1,loop:o=!0}=n;return _b(e,t,{step:-r,loop:o})}var x6=e=>Array.isArray(e),Sb=e=>e!=null&&typeof e=="object",w6=e=>Sb(e)&&!x6(e),Vl=e=>typeof e=="string",ds=e=>typeof e=="function",C6=e=>e==null,A6=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),v6=e=>Object.prototype.toString.call(e),xb=Function.prototype.toString,k6=xb.call(Object),P6=e=>{if(!Sb(e)||v6(e)!="[object Object]"||I6(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=A6(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&xb.call(n)==k6},N6=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,O6=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,I6=e=>N6(e)||O6(e),R6=e=>e(),L6=()=>{},Nh=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})};function D6(e,t=0){let n=0,r=null;return((...o)=>{const a=Date.now(),u=a-n;u>=t?(r&&(clearTimeout(r),r=null),e(...o),n=a):r||(r=setTimeout(()=>{e(...o),n=Date.now(),r=null},t-u))})}var{min:M6,max:F6}=Math,B6=e=>Number.isNaN(e),U6=e=>B6(e)?0:e,wb=(e,t,n)=>M6(F6(U6(e),t),n);function Oh(e){if(!P6(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=Oh(o))}return n}function Ih(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function H6(e,t){if(e==null)throw new Error(t())}function z6(e,t,n){let r=[];for(const o of t)e[o]==null&&r.push(o);if(r.length>0)throw new Error(`[zag-js${` > ${n}`}] missing required props: ${r.join(", ")}`)}var j6=Object.defineProperty,$6=(e,t,n)=>t in e?j6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rh=(e,t,n)=>$6(e,typeof t!="symbol"?t+"":t,n),Cb=()=>{},ql=e=>typeof e=="object"&&e!==null,fs=e=>e?"":void 0,Ab=e=>e?"true":void 0,V6=1,q6=9,Y6=11,Zt=e=>ql(e)&&e.nodeType===V6&&typeof e.nodeName=="string",Yl=e=>ql(e)&&e.nodeType===q6,G6=e=>ql(e)&&e===e.window,vb=e=>Zt(e)?e.localName||"":"#document";function W6(e){return["html","body","#document"].includes(vb(e))}var X6=e=>ql(e)&&e.nodeType!==void 0,mo=e=>X6(e)&&e.nodeType===Y6&&"host"in e,K6=e=>Zt(e)&&e.localName==="input",Q6=e=>Zt(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Ya(e){if(!e)return!1;const t=e.getRootNode();return ms(t)===e}var J6=/(textarea|select)/;function Z6(e){if(e==null||!Zt(e))return!1;try{return K6(e)&&e.selectionStart!=null||J6.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch(t){return!1}}function hs(e,t){var r;if(!e||!t||!Zt(e)||!Zt(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&mo(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Fr(e){var t;return Yl(e)?e:G6(e)?e.document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function eD(e){return Fr(e).documentElement}function ps(e){var t,n,r;return mo(e)?ps(e.host):Yl(e)?(t=e.defaultView)!=null?t:window:Zt(e)&&(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window}function ms(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(!n||n===t)break;t=n}return t}function tD(e){if(vb(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mo(e)&&e.host||eD(e);return mo(t)?t.host:t}function Lh(e){var n;let t;try{if(t=e.getRootNode({composed:!0}),Yl(t)||mo(t))return t}catch(r){}return(n=e.ownerDocument)!=null?n:document}var Dh=new WeakMap;function gs(e){return Dh.has(e)||Dh.set(e,ps(e).getComputedStyle(e)),Dh.get(e)}var Mh=new Set(["menu","listbox","dialog","grid","tree","region"]),nD=e=>Mh.has(e),kb=e=>{var t;return((t=e.getAttribute("aria-controls"))==null?void 0:t.split(" "))||[]};function Pb(e,t){const n=new Set,r=Lh(e),o=a=>{const u=a.querySelectorAll("[aria-controls]");for(const c of u){if(c.getAttribute("aria-expanded")!=="true")continue;const d=kb(c);for(const f of d){if(!f||n.has(f))continue;n.add(f);const p=r.getElementById(f);if(p){const g=p.getAttribute("role"),T=p.getAttribute("aria-modal")==="true";if(g&&nD(g)&&!T&&(p===t||p.contains(t)||o(p)))return!0}}}return!1};return o(e)}function Nb(e,t){const n=Lh(e),r=new Set,o=a=>{const u=a.querySelectorAll("[aria-controls]");for(const c of u){if(c.getAttribute("aria-expanded")!=="true")continue;const d=kb(c);for(const f of d){if(!f||r.has(f))continue;r.add(f);const p=n.getElementById(f);if(p){const g=p.getAttribute("role"),T=p.getAttribute("aria-modal")==="true";g&&Mh.has(g)&&!T&&(t(p),o(p))}}}};o(e)}function rD(e){const t=new Set;return Nb(e,n=>{e.contains(n)||t.add(n)}),Array.from(t)}function iD(e){const t=e.getAttribute("role");return!!(t&&Mh.has(t))}function oD(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function sD(e){var t;return oD(e)?!0:!!((t=e.querySelector)!=null&&t.call(e,'[aria-controls][aria-expanded="true"]'))}function aD(e){if(!e.id)return!1;const t=Lh(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&iD(e))}var Fh=()=>typeof document!="undefined";function uD(){var t;const e=navigator.userAgentData;return(t=e==null?void 0:e.platform)!=null?t:navigator.platform}var Bh=e=>Fh()&&e.test(uD()),lD=e=>Fh()&&e.test(navigator.vendor),Ob=()=>Fh()&&!!navigator.maxTouchPoints,cD=()=>Bh(/^iPhone/i),dD=()=>Bh(/^iPad/i)||Uh()&&navigator.maxTouchPoints>1,Gl=()=>cD()||dD(),fD=()=>Uh()||Gl(),Uh=()=>Bh(/^Mac/i),hD=()=>fD()&&lD(/apple/i);function pD(e){var t,n,r,o;return(o=(t=e.composedPath)==null?void 0:t.call(e))!=null?o:(r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n)}function br(e){var n;const t=pD(e);return(n=t==null?void 0:t[0])!=null?n:e.target}var Ib=e=>e.button===0,mD=e=>e.button===2||Uh()&&e.ctrlKey&&e.button===0,gD=e=>"touches"in e&&e.touches.length>0,ED={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},Rb={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function yD(e,t={}){var u;const{dir:n="ltr",orientation:r="horizontal"}=t;let o=e.key;return o=(u=ED[o])!=null?u:o,n==="rtl"&&r==="horizontal"&&o in Rb&&(o=Rb[o]),o}function Lb(e,t="client"){const n=gD(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var en=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,n,r),()=>{o==null||o.removeEventListener(t,n,r)}},Db=e=>Zt(e)&&e.tagName==="IFRAME",bD=/^(audio|video|details)$/;function Mb(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var TD=e=>!Number.isNaN(Mb(e)),_D=e=>Mb(e)<0;function SD(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const n=t(e);return(n===!0?e.shadowRoot:n)||null}function Fb(e,t,n){const r=[...e],o=[...e],a=new Set,u=new Map;e.forEach((d,f)=>u.set(d,f));let c=0;for(;c<o.length;){const d=o[c++];if(!d||a.has(d))continue;a.add(d);const f=SD(d,t);if(f){const p=Array.from(f.querySelectorAll(Wl)).filter(n),g=u.get(d);if(g!==void 0){const T=g+1;r.splice(T,0,...p),p.forEach((y,_)=>{u.set(y,T+_)});for(let y=T+p.length;y<r.length;y++)u.set(r[y],y)}else{const T=r.length;r.push(...p),p.forEach((y,_)=>{u.set(y,T+_)})}o.push(...p)}}return r}var Wl="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Bb=(e,t={})=>{if(!e)return[];const{includeContainer:n=!1,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Wl));(n==!0||n=="if-empty"&&o.length===0)&&Zt(e)&&Br(e)&&o.unshift(e);const u=[];for(const c of o)if(Br(c)){if(Db(c)&&c.contentDocument){const d=c.contentDocument.body;u.push(...Bb(d,{getShadowRoot:r}));continue}u.push(c)}return r?Fb(u,r,Br):u};function Br(e){return!Zt(e)||e.closest("[inert]")?!1:e.matches(Wl)&&Q6(e)}function Es(e,t={}){if(!e)return[];const{includeContainer:n,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Wl));n&&go(e)&&o.unshift(e);const a=[];for(const u of o)if(go(u)){if(Db(u)&&u.contentDocument){const c=u.contentDocument.body;a.push(...Es(c,{getShadowRoot:r}));continue}a.push(u)}if(r){const u=Fb(a,r,go);return!u.length&&n?o:u}return!a.length&&n?o:a}function go(e){return Zt(e)&&e.tabIndex>0?!0:Br(e)&&!_D(e)}function xD(e,t={}){const n=Es(e,t),r=n[0]||null,o=n[n.length-1]||null;return[r,o]}function wD(e,t={}){const{current:n,getShadowRoot:r}=t,o=Es(e,{getShadowRoot:r}),a=(e==null?void 0:e.ownerDocument)||document,u=n!=null?n:ms(a);if(!u)return null;const c=o.indexOf(u);return o[c+1]||null}function Ga(e){return e.tabIndex<0&&(bD.test(e.localName)||Z6(e))&&!TD(e)?0:e.tabIndex}function Ub(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let a=null;if(a||(a=typeof n=="function"?n():n),a||(a=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!a){const u=Es(t);a=r?u.filter(r)[0]:u[0]}return a||t||void 0}var CD=class j2{constructor(){Rh(this,"id",null),Rh(this,"fn_cleanup"),Rh(this,"cleanup",()=>{this.cancel()})}static create(){return new j2}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t==null?void 0:t()})}cancel(){var t;this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),(t=this.fn_cleanup)==null||t.call(this),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function qt(e){const t=CD.create();return t.request(e),t.cleanup}function Hb(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function Hh(e){const t=tD(e);return W6(t)?Fr(t).body:Zt(t)&&kD(t)?t:Hh(t)}var AD=/auto|scroll|overlay|hidden|clip/,vD=new Set(["inline","contents"]);function kD(e){const t=ps(e),{overflow:n,overflowX:r,overflowY:o,display:a}=t.getComputedStyle(e);return AD.test(n+o+r)&&!vD.has(a)}var ys="default",zh="",Xl=new WeakMap;function PD(e={}){const{target:t,doc:n}=e,r=n!=null?n:document,o=r.documentElement;return Gl()?(ys==="default"&&(zh=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),ys="disabled"):t&&(Xl.set(t,t.style.userSelect),t.style.userSelect="none"),()=>ND({target:t,doc:r})}function ND(e={}){const{target:t,doc:n}=e,o=(n!=null?n:document).documentElement;if(Gl()){if(ys!=="disabled")return;ys="restoring",setTimeout(()=>{Hb(()=>{ys==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=zh||""),zh="",ys="default")})},300)}else if(t&&Xl.has(t)){const a=Xl.get(t);t.style.userSelect==="none"&&(t.style.userSelect=a!=null?a:""),t.getAttribute("style")===""&&t.removeAttribute("style"),Xl.delete(t)}}function OD(e={}){const u=e,{defer:t,target:n}=u,r=ln(u,["defer","target"]),o=t?qt:c=>c(),a=[];return a.push(o(()=>{const c=typeof n=="function"?n():n;a.push(PD(me(F({},r),{target:c})))})),()=>{a.forEach(c=>c==null?void 0:c())}}function ID(e,t){const{onPointerMove:n,onPointerUp:r}=t,o=c=>{const d=Lb(c),f=Math.sqrt(ta(d.x,2)+ta(d.y,2)),p=c.pointerType==="touch"?10:5;if(!(f<p)){if(c.pointerType==="mouse"&&c.button===0){a(c);return}n({point:d,event:c})}},a=c=>{const d=Lb(c);r({point:d,event:c})},u=[en(e,"pointermove",o,!1),en(e,"pointerup",a,!1),en(e,"pointercancel",a,!1),en(e,"contextmenu",a,!1),OD({doc:e})];return()=>{u.forEach(c=>c())}}function RD(e,t={}){const{triggerElement:n,onFocus:r,onFocusEnter:o,getShadowRoot:a}=t,u=(e==null?void 0:e.ownerDocument)||document,c=u.body;function d(f){if(f.key!=="Tab")return;let p=null;const[g,T]=xD(e,{includeContainer:!0,getShadowRoot:a}),y=wD(c,{current:n,getShadowRoot:a}),_=!g&&!T;f.shiftKey&&Ya(y)?(o==null||o(),p=T):f.shiftKey&&(Ya(g)||_)?p=n:!f.shiftKey&&Ya(n)?(o==null||o(),p=g):!f.shiftKey&&(Ya(T)||_)&&(p=y),p&&(f.preventDefault(),typeof r=="function"?r(p):p.focus())}return en(u,"keydown",d,!0)}function LD(e,t){const c=t,{defer:n,triggerElement:r}=c,o=ln(c,["defer","triggerElement"]),a=n?qt:d=>d(),u=[];return u.push(a(()=>{const d=typeof e=="function"?e():e,f=typeof r=="function"?r():r;u.push(RD(d,F({triggerElement:f},o)))})),()=>{u.forEach(d=>d==null?void 0:d())}}function DD(e,t){var n;return Array.from((n=e==null?void 0:e.querySelectorAll(t))!=null?n:[])}function Kl(e,t){if(!e)return Cb;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function MD(e,t,n){if(!e)return Cb;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function FD(e,t,n){const{signal:r}=t;return[new Promise((u,c)=>{const d=setTimeout(()=>{c(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(d),c(new Error("Promise aborted"))}),e.then(f=>{r.aborted||(clearTimeout(d),u(f))}).catch(f=>{r.aborted||(clearTimeout(d),c(f))})}),()=>t.abort()]}function BD(e,t){const{timeout:n,rootNode:r}=t,o=ps(r),a=Fr(r),u=new o.AbortController;return FD(new Promise(c=>{const d=e();if(d){c(d);return}const f=new o.MutationObserver(()=>{const p=e();p&&p.isConnected&&(f.disconnect(),c(p))});f.observe(a.body,{childList:!0,subtree:!0})}),u,n)}var UD=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),HD=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,zb=e=>{const t={};let n;for(;n=HD.exec(e);)t[n[1]]=n[2];return t},zD=(e,t)=>{if(Vl(e)){if(Vl(t))return`${e};${t}`;e=zb(e)}else Vl(t)&&(t=zb(t));return Object.assign({},e!=null?e:{},t!=null?t:{})};function Yt(...e){let t={};for(let n of e){if(!n)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof n[o]=="function"){t[o]=Nh(n[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=UD(t[o],n[o]);continue}if(o==="style"){t[o]=zD(t[o],n[o]);continue}t[o]=n[o]!==void 0?n[o]:t[o]}for(let o in n)t[o]===void 0&&(t[o]=n[o]);const r=Object.getOwnPropertySymbols(n);for(let o of r)t[o]=n[o]}return t}function gU(e){return e}var bs=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(bs||{}),jh="__init__";function jD(e){const t=()=>{var u,c;return(c=(u=e.getRootNode)==null?void 0:u.call(e))!=null?c:document},n=()=>Fr(t()),r=()=>{var u;return(u=n().defaultView)!=null?u:window},o=()=>ms(t()),a=u=>t().getElementById(u);return me(F({},e),{getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:Ya,getById:a})}function $D(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var Ts=()=>e=>Array.from(new Set(e)),jb=typeof globalThis.document!="undefined"?U.useLayoutEffect:U.useEffect;function Ql(e){var g,T;const t=(g=e().value)!=null?g:e().defaultValue,n=(T=e().isEqual)!=null?T:Object.is,[r]=U.useState(t),[o,a]=U.useState(r),u=e().value!==void 0,c=U.useRef(o);c.current=u?e().value:o;const d=U.useRef(c.current);jb(()=>{d.current=c.current},[o,e().value]);const f=y=>{var k,v;const _=d.current,S=ds(y)?y(_):y;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:S,prev:_}),u||a(S),n(S,_)||(v=(k=e()).onChange)==null||v.call(k,S,_)};function p(){return u?e().value:o}return{initial:r,ref:c,get:p,set(y){(e().sync?Xo.flushSync:R6)(()=>f(y))},invoke(y,_){var S,k;(k=(S=e()).onChange)==null||k.call(S,y,_)},hash(y){var _,S,k;return(k=(S=(_=e()).hash)==null?void 0:S.call(_,y))!=null?k:String(y)}}}Ql.cleanup=e=>{U.useEffect(()=>e,[])},Ql.ref=e=>{const t=U.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function VD(e){const t=U.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var qD=(e,t)=>{const n=U.useRef(!1),r=U.useRef(!1);U.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e!=null?e:[]).map(o=>typeof o=="function"?o():o)]),U.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Jl(e,t={}){var Z,ce,he,ue,Te,Oe;const n=U.useMemo(()=>{const{id:de,ids:Q,getRootNode:ie}=t;return jD({id:de,ids:Q,getRootNode:ie})},[t]),r=(...de)=>{e.debug&&console.log(...de)},o=(ce=(Z=e.props)==null?void 0:Z.call(e,{props:Oh(t),scope:n}))!=null?ce:t,a=YD(o),u=(he=e.context)==null?void 0:he.call(e,{prop:a,bindable:Ql,scope:n,flush:Vb,getContext(){return d},getComputed(){return V},getRefs(){return S},getEvent(){return y()}}),c=$b(u),d={get(de){var Q;return(Q=c.current)==null?void 0:Q[de].ref.current},set(de,Q){var ie;(ie=c.current)==null||ie[de].set(Q)},initial(de){var Q;return(Q=c.current)==null?void 0:Q[de].initial},hash(de){var ie,A;const Q=(ie=c.current)==null?void 0:ie[de].get();return(A=c.current)==null?void 0:A[de].hash(Q)}},f=U.useRef(new Map),p=U.useRef(null),g=U.useRef(null),T=U.useRef({type:""}),y=()=>me(F({},T.current),{current(){return T.current},previous(){return g.current}}),_=()=>me(F({},D),{matches(...de){return de.includes(D.ref.current)},hasTag(de){var Q,ie;return!!((ie=(Q=e.states[D.ref.current])==null?void 0:Q.tags)!=null&&ie.includes(de))}}),S=VD((Te=(ue=e.refs)==null?void 0:ue.call(e,{prop:a,context:d}))!=null?Te:{}),k=()=>({state:_(),context:d,event:y(),prop:a,send:$,action:v,guard:N,track:qD,refs:S,computed:V,flush:Vb,scope:n,choose:M}),v=de=>{const Q=ds(de)?de(k()):de;if(!Q)return;const ie=Q.map(A=>{var te,O;const B=(O=(te=e.implementations)==null?void 0:te.actions)==null?void 0:O[A];return B||Ih(`[zag-js] No implementation found for action "${JSON.stringify(A)}"`),B});for(const A of ie)A==null||A(k())},N=de=>{var Q,ie;return ds(de)?de(k()):(ie=(Q=e.implementations)==null?void 0:Q.guards)==null?void 0:ie[de](k())},C=de=>{const Q=ds(de)?de(k()):de;if(!Q)return;const ie=Q.map(B=>{var O,_e;const te=(_e=(O=e.implementations)==null?void 0:O.effects)==null?void 0:_e[B];return te||Ih(`[zag-js] No implementation found for effect "${JSON.stringify(B)}"`),te}),A=[];for(const B of ie){const te=B==null?void 0:B(k());te&&A.push(te)}return()=>A.forEach(B=>B==null?void 0:B())},M=de=>y6(de).find(Q=>{let ie=!Q.guard;return Vl(Q.guard)?ie=!!N(Q.guard):ds(Q.guard)&&(ie=Q.guard(k())),ie}),V=de=>{H6(e.computed,()=>"[zag-js] No computed object found on machine");const Q=e.computed[de];return Q({context:d,event:y(),prop:a,refs:S,scope:n,computed:V})},D=Ql(()=>({defaultValue:e.initialState({prop:a}),onChange(de,Q){var A,B,te,O;if(Q){const _e=f.current.get(Q);_e==null||_e(),f.current.delete(Q)}Q&&v((A=e.states[Q])==null?void 0:A.exit),v((B=p.current)==null?void 0:B.actions);const ie=C((te=e.states[de])==null?void 0:te.effects);if(ie&&f.current.set(de,ie),Q===jh){v(e.entry);const _e=C(e.effects);_e&&f.current.set(jh,_e)}v((O=e.states[de])==null?void 0:O.entry)}})),K=U.useRef(void 0),re=U.useRef(bs.NotStarted);jb(()=>{queueMicrotask(()=>{var B;const ie=re.current===bs.Started;re.current=bs.Started,r(ie?"rehydrating...":"initializing...");const A=(B=K.current)!=null?B:D.initial;D.invoke(A,ie?D.get():jh)});const de=f.current,Q=D.ref.current;return()=>{r("unmounting..."),K.current=Q,re.current=bs.Stopped,de.forEach(ie=>ie==null?void 0:ie()),f.current=new Map,p.current=null,queueMicrotask(()=>{v(e.exit)})}},[]);const be=()=>"ref"in D?D.ref.current:D.get(),$=de=>{queueMicrotask(()=>{var O,_e,Ie,Ce,$e;if(re.current!==bs.Started)return;g.current=T.current,T.current=de;let Q=be();const ie=(Ie=(O=e.states[Q].on)==null?void 0:O[de.type])!=null?Ie:(_e=e.on)==null?void 0:_e[de.type],A=M(ie);if(!A)return;p.current=A;const B=(Ce=A.target)!=null?Ce:Q;r("transition",de.type,A.target||Q,`(${A.actions})`);const te=B!==Q;te?Xo.flushSync(()=>D.set(B)):A.reenter&&!te?D.invoke(Q,Q):v(($e=A.actions)!=null?$e:[])})};return(Oe=e.watch)==null||Oe.call(e,k()),{state:_(),send:$,context:d,prop:a,scope:n,refs:S,computed:V,event:y(),getStatus:()=>re.current}}function $b(e){const t=U.useRef(e);return t.current=e,t}function YD(e){const t=$b(e);return function(r){return t.current[r]}}function Vb(e){queueMicrotask(()=>{Xo.flushSync(()=>e())})}var $h=$D(e=>e);function Zl(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function GD(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Vh=e=>{const t=U.memo(U.forwardRef((n,r)=>{const f=n,{asChild:o,children:a}=f,u=ln(f,["asChild","children"]);if(!o)return U.createElement(e,me(F({},u),{ref:r}),a);if(!U.isValidElement(a))return null;const c=U.Children.only(a),d=GD(c);return U.cloneElement(c,me(F({},Yt(u,c.props)),{ref:r?Zl(r,d):d}))}));return t.displayName=e.displayName||e.name,t},mn=(()=>{const e=new Map;return new Proxy(Vh,{apply(t,n,r){return Vh(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Vh(r)),e.get(r)}})})();function WD(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Eo(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:a,defaultValue:u}=e,c=U.createContext(u);c.displayName=t;function d(){var p;const f=U.useContext(c);if(!f&&n){const g=new Error(a!=null?a:WD(r,o));throw g.name="ContextError",(p=Error.captureStackTrace)==null||p.call(Error,g,d),g}return f}return[c.Provider,d,c]}const[XD,qh]=Eo({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),[qb,Wa]=Eo({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),Yb=U.forwardRef((e,t)=>{const n=qh(),r=Wa(),o=Yt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:w.jsx(mn.div,me(F({},o),{ref:Zl(r.ref,t)}))});Yb.displayName="PopoverContent";const Gb=U.forwardRef((e,t)=>{const n=qh(),r=Wa(),o=Yt(n.getPositionerProps(),e);return r.unmounted?null:w.jsx(mn.div,me(F({},o),{ref:t}))});Gb.displayName="PopoverPositioner";const Xa=()=>(e,t)=>t.reduce((n,r)=>{const[o,a]=n,u=r;return a[u]!==void 0&&(o[u]=a[u]),delete a[u],[o,a]},[{},F({},e)]),Wb=e=>Xa()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function KD(e,t){const{state:n,send:r,context:o}=e,a=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:a,setNode(u){u&&r({type:"NODE.SET",node:u})},unmount(){r({type:"UNMOUNT"})}}}var QD={props({props:e}){return me(F({},e),{present:!!e.present})},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",gs(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const a=t.get("node");if(!o&&(a==null?void 0:a.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});qt(()=>{var c,d;const u=ec(t.get("styles"));e.set("unmountAnimationName",u),u==="none"||u===e.get("prevAnimationName")||((c=t.get("styles"))==null?void 0:c.display)==="none"||((d=t.get("styles"))==null?void 0:d.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{qt(()=>{e.set("prevAnimationName",ec(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n,prop:r})=>{const o=t.get("node");if(!o)return;const a=d=>{var p,g,T;((T=(g=(p=d.composedPath)==null?void 0:p.call(d))==null?void 0:g[0])!=null?T:d.target)===o&&e.set("prevAnimationName",ec(t.get("styles")))},u=d=>{const f=ec(t.get("styles"));br(d)===o&&f===e.get("unmountAnimationName")&&!r("present")&&n({type:"UNMOUNT",src:"animationend"})};o.addEventListener("animationstart",a),o.addEventListener("animationcancel",u),o.addEventListener("animationend",u);const c=Kl(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",u),o.removeEventListener("animationend",u),Hb(()=>c())}}}}};function ec(e){return(e==null?void 0:e.animationName)||"none"}Ts()(["onExitComplete","present","immediate"]);function JD(e,t={}){const{sync:n=!1}=t,r=ZD(e);return U.useCallback((...o)=>{var a;return n?queueMicrotask(()=>{var u;return(u=r.current)==null?void 0:u.call(r,...o)}):(a=r.current)==null?void 0:a.call(r,...o)},[n,r])}function ZD(e){const t=U.useRef(e);return t.current=e,t}const Yh=(e={})=>{const T=e,{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1}=T,a=ln(T,["lazyMount","unmountOnExit","present","skipAnimationOnMount"]),u=U.useRef(!1),c=me(F({},a),{present:r,onExitComplete:JD(e.onExitComplete)}),d=Jl(QD,c),f=KD(d);f.present&&(u.current=!0);const p=!f.present&&!u.current&&t||n&&!f.present&&u.current,g=()=>({"data-state":f.skip&&o?void 0:r?"open":"closed",hidden:!f.present});return{ref:f.setNode,getPresenceProps:g,present:f.present,unmounted:p}};var yo=(e,t=[])=>({parts:(...n)=>{if(e4(t))return yo(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>yo(e,[...t,...n]),omit:(...n)=>yo(e,t.filter(r=>!n.includes(r))),rename:n=>yo(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${_s(e)}"][data-part="${_s(r)}"]`,`& [data-scope="${_s(e)}"][data-part="${_s(r)}"]`].join(", "),attrs:{"data-scope":_s(e),"data-part":_s(r)}}}),{})}),_s=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),e4=e=>e.length===0;const t4=["top","right","bottom","left"],Ni=Math.min,$n=Math.max,tc=Math.round,nc=Math.floor,Ur=e=>({x:e,y:e}),n4={left:"right",right:"left",bottom:"top",top:"bottom"},r4={start:"end",end:"start"};function Gh(e,t,n){return $n(e,Ni(t,n))}function oi(e,t){return typeof e=="function"?e(t):e}function si(e){return e.split("-")[0]}function Ss(e){return e.split("-")[1]}function Wh(e){return e==="x"?"y":"x"}function Xh(e){return e==="y"?"height":"width"}const i4=new Set(["top","bottom"]);function Hr(e){return i4.has(si(e))?"y":"x"}function Kh(e){return Wh(Hr(e))}function o4(e,t,n){n===void 0&&(n=!1);const r=Ss(e),o=Kh(e),a=Xh(o);let u=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(u=rc(u)),[u,rc(u)]}function s4(e){const t=rc(e);return[Qh(e),t,Qh(t)]}function Qh(e){return e.replace(/start|end/g,t=>r4[t])}const Xb=["left","right"],Kb=["right","left"],a4=["top","bottom"],u4=["bottom","top"];function l4(e,t,n){switch(e){case"top":case"bottom":return n?t?Kb:Xb:t?Xb:Kb;case"left":case"right":return t?a4:u4;default:return[]}}function c4(e,t,n,r){const o=Ss(e);let a=l4(si(e),n==="start",r);return o&&(a=a.map(u=>u+"-"+o),t&&(a=a.concat(a.map(Qh)))),a}function rc(e){return e.replace(/left|right|bottom|top/g,t=>n4[t])}function d4(e){return F({top:0,right:0,bottom:0,left:0},e)}function Qb(e){return typeof e!="number"?d4(e):{top:e,right:e,bottom:e,left:e}}function ic(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Jb(e,t,n){let{reference:r,floating:o}=e;const a=Hr(t),u=Kh(t),c=Xh(u),d=si(t),f=a==="y",p=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,T=r[c]/2-o[c]/2;let y;switch(d){case"top":y={x:p,y:r.y-o.height};break;case"bottom":y={x:p,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-o.width,y:g};break;default:y={x:r.x,y:r.y}}switch(Ss(t)){case"start":y[u]-=T*(n&&f?-1:1);break;case"end":y[u]+=T*(n&&f?-1:1);break}return y}const f4=(e,t,n)=>tt(null,null,function*(){const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:u}=n,c=a.filter(Boolean),d=yield u.isRTL==null?void 0:u.isRTL(t);let f=yield u.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:g}=Jb(f,r,d),T=r,y={},_=0;for(let S=0;S<c.length;S++){const{name:k,fn:v}=c[S],{x:N,y:C,data:M,reset:V}=yield v({x:p,y:g,initialPlacement:r,placement:T,strategy:o,middlewareData:y,rects:f,platform:u,elements:{reference:e,floating:t}});p=N!=null?N:p,g=C!=null?C:g,y=me(F({},y),{[k]:F(F({},y[k]),M)}),V&&_<=50&&(_++,typeof V=="object"&&(V.placement&&(T=V.placement),V.rects&&(f=V.rects===!0?yield u.getElementRects({reference:e,floating:t,strategy:o}):V.rects),{x:p,y:g}=Jb(f,T,d)),S=-1)}return{x:p,y:g,placement:T,strategy:o,middlewareData:y}});function Ka(e,t){return tt(this,null,function*(){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:u,elements:c,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:T=!1,padding:y=0}=oi(t,e),_=Qb(y),k=c[T?g==="floating"?"reference":"floating":g],v=ic(yield a.getClippingRect({element:(n=yield a.isElement==null?void 0:a.isElement(k))==null||n?k:k.contextElement||(yield a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:f,rootBoundary:p,strategy:d})),N=g==="floating"?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,C=yield a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating),M=(yield a.isElement==null?void 0:a.isElement(C))?(yield a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},V=ic(a.convertOffsetParentRelativeRectToViewportRelativeRect?yield a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:C,strategy:d}):N);return{top:(v.top-V.top+_.top)/M.y,bottom:(V.bottom-v.bottom+_.bottom)/M.y,left:(v.left-V.left+_.left)/M.x,right:(V.right-v.right+_.right)/M.x}})}const h4=e=>({name:"arrow",options:e,fn(n){return tt(this,null,function*(){const{x:r,y:o,placement:a,rects:u,platform:c,elements:d,middlewareData:f}=n,{element:p,padding:g=0}=oi(e,n)||{};if(p==null)return{};const T=Qb(g),y={x:r,y:o},_=Kh(a),S=Xh(_),k=yield c.getDimensions(p),v=_==="y",N=v?"top":"left",C=v?"bottom":"right",M=v?"clientHeight":"clientWidth",V=u.reference[S]+u.reference[_]-y[_]-u.floating[S],D=y[_]-u.reference[_],K=yield c.getOffsetParent==null?void 0:c.getOffsetParent(p);let re=K?K[M]:0;(!re||!(yield c.isElement==null?void 0:c.isElement(K)))&&(re=d.floating[M]||u.floating[S]);const be=V/2-D/2,$=re/2-k[S]/2-1,Z=Ni(T[N],$),ce=Ni(T[C],$),he=Z,ue=re-k[S]-ce,Te=re/2-k[S]/2+be,Oe=Gh(he,Te,ue),de=!f.arrow&&Ss(a)!=null&&Te!==Oe&&u.reference[S]/2-(Te<he?Z:ce)-k[S]/2<0,Q=de?Te<he?Te-he:Te-ue:0;return{[_]:y[_]+Q,data:F({[_]:Oe,centerOffset:Te-Oe-Q},de&&{alignmentOffset:Q}),reset:de}})}}),p4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return tt(this,null,function*(){var r,o;const{placement:a,middlewareData:u,rects:c,initialPlacement:d,platform:f,elements:p}=n,Te=oi(e,n),{mainAxis:g=!0,crossAxis:T=!0,fallbackPlacements:y,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:k=!0}=Te,v=ln(Te,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const N=si(a),C=Hr(d),M=si(d)===d,V=yield f.isRTL==null?void 0:f.isRTL(p.floating),D=y||(M||!k?[rc(d)]:s4(d)),K=S!=="none";!y&&K&&D.push(...c4(d,k,S,V));const re=[d,...D],be=yield Ka(n,v),$=[];let Z=((o=u.flip)==null?void 0:o.overflows)||[];if(g&&$.push(be[N]),T){const Oe=o4(a,c,V);$.push(be[Oe[0]],be[Oe[1]])}if(Z=[...Z,{placement:a,overflows:$}],!$.every(Oe=>Oe<=0)){var ce,he;const Oe=(((ce=u.flip)==null?void 0:ce.index)||0)+1,de=re[Oe];if(de&&(!(T==="alignment"?C!==Hr(de):!1)||Z.every(A=>Hr(A.placement)===C?A.overflows[0]>0:!0)))return{data:{index:Oe,overflows:Z},reset:{placement:de}};let Q=(he=Z.filter(ie=>ie.overflows[0]<=0).sort((ie,A)=>ie.overflows[1]-A.overflows[1])[0])==null?void 0:he.placement;if(!Q)switch(_){case"bestFit":{var ue;const ie=(ue=Z.filter(A=>{if(K){const B=Hr(A.placement);return B===C||B==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(B=>B>0).reduce((B,te)=>B+te,0)]).sort((A,B)=>A[1]-B[1])[0])==null?void 0:ue[0];ie&&(Q=ie);break}case"initialPlacement":Q=d;break}if(a!==Q)return{reset:{placement:Q}}}return{}})}}};function Zb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eT(e){return t4.some(t=>e[t]>=0)}const m4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,fn(n){return tt(this,null,function*(){const{rects:r}=n,u=oi(e,n),{strategy:o="referenceHidden"}=u,a=ln(u,["strategy"]);switch(o){case"referenceHidden":{const c=yield Ka(n,me(F({},a),{elementContext:"reference"})),d=Zb(c,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:eT(d)}}}case"escaped":{const c=yield Ka(n,me(F({},a),{altBoundary:!0})),d=Zb(c,r.floating);return{data:{escapedOffsets:d,escaped:eT(d)}}}default:return{}}})}}},tT=new Set(["left","top"]);function g4(e,t){return tt(this,null,function*(){const{placement:n,platform:r,elements:o}=e,a=yield r.isRTL==null?void 0:r.isRTL(o.floating),u=si(n),c=Ss(n),d=Hr(n)==="y",f=tT.has(u)?-1:1,p=a&&d?-1:1,g=oi(t,e);let{mainAxis:T,crossAxis:y,alignmentAxis:_}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof _=="number"&&(y=c==="end"?_*-1:_),d?{x:y*p,y:T*f}:{x:T*f,y:y*p}})}const E4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return tt(this,null,function*(){var r,o;const{x:a,y:u,placement:c,middlewareData:d}=n,f=yield g4(n,e);return c===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:a+f.x,y:u+f.y,data:me(F({},f),{placement:c})}})}}},y4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return tt(this,null,function*(){const{x:r,y:o,placement:a}=n,v=oi(e,n),{mainAxis:u=!0,crossAxis:c=!1,limiter:d={fn:N=>{let{x:C,y:M}=N;return{x:C,y:M}}}}=v,f=ln(v,["mainAxis","crossAxis","limiter"]),p={x:r,y:o},g=yield Ka(n,f),T=Hr(si(a)),y=Wh(T);let _=p[y],S=p[T];if(u){const N=y==="y"?"top":"left",C=y==="y"?"bottom":"right",M=_+g[N],V=_-g[C];_=Gh(M,_,V)}if(c){const N=T==="y"?"top":"left",C=T==="y"?"bottom":"right",M=S+g[N],V=S-g[C];S=Gh(M,S,V)}const k=d.fn(me(F({},n),{[y]:_,[T]:S}));return me(F({},k),{data:{x:k.x-r,y:k.y-o,enabled:{[y]:u,[T]:c}}})})}}},b4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:u}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=oi(e,t),p={x:n,y:r},g=Hr(o),T=Wh(g);let y=p[T],_=p[g];const S=oi(c,t),k=typeof S=="number"?{mainAxis:S,crossAxis:0}:F({mainAxis:0,crossAxis:0},S);if(d){const C=T==="y"?"height":"width",M=a.reference[T]-a.floating[C]+k.mainAxis,V=a.reference[T]+a.reference[C]-k.mainAxis;y<M?y=M:y>V&&(y=V)}if(f){var v,N;const C=T==="y"?"width":"height",M=tT.has(si(o)),V=a.reference[g]-a.floating[C]+(M&&((v=u.offset)==null?void 0:v[g])||0)+(M?0:k.crossAxis),D=a.reference[g]+a.reference[C]+(M?0:((N=u.offset)==null?void 0:N[g])||0)-(M?k.crossAxis:0);_<V?_=V:_>D&&(_=D)}return{[T]:y,[g]:_}}}},T4=function(e){return e===void 0&&(e={}),{name:"size",options:e,fn(n){return tt(this,null,function*(){var r,o;const{placement:a,rects:u,platform:c,elements:d}=n,Z=oi(e,n),{apply:f=()=>{}}=Z,p=ln(Z,["apply"]),g=yield Ka(n,p),T=si(a),y=Ss(a),_=Hr(a)==="y",{width:S,height:k}=u.floating;let v,N;T==="top"||T==="bottom"?(v=T,N=y===((yield c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(N=T,v=y==="end"?"top":"bottom");const C=k-g.top-g.bottom,M=S-g.left-g.right,V=Ni(k-g[v],C),D=Ni(S-g[N],M),K=!n.middlewareData.shift;let re=V,be=D;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(be=M),(o=n.middlewareData.shift)!=null&&o.enabled.y&&(re=C),K&&!y){const ce=$n(g.left,0),he=$n(g.right,0),ue=$n(g.top,0),Te=$n(g.bottom,0);_?be=S-2*(ce!==0||he!==0?ce+he:$n(g.left,g.right)):re=k-2*(ue!==0||Te!==0?ue+Te:$n(g.top,g.bottom))}yield f(me(F({},n),{availableWidth:be,availableHeight:re}));const $=yield c.getDimensions(d.floating);return S!==$.width||k!==$.height?{reset:{rects:!0}}:{}})}}};function oc(){return typeof window!="undefined"}function xs(e){return nT(e)?(e.nodeName||"").toLowerCase():"#document"}function Vn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zr(e){var t;return(t=(nT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nT(e){return oc()?e instanceof Node||e instanceof Vn(e).Node:!1}function Tr(e){return oc()?e instanceof Element||e instanceof Vn(e).Element:!1}function jr(e){return oc()?e instanceof HTMLElement||e instanceof Vn(e).HTMLElement:!1}function rT(e){return!oc()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Vn(e).ShadowRoot}const _4=new Set(["inline","contents"]);function Qa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_r(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_4.has(o)}const S4=new Set(["table","td","th"]);function x4(e){return S4.has(xs(e))}const w4=[":popover-open",":modal"];function sc(e){return w4.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const C4=["transform","translate","scale","rotate","perspective"],A4=["transform","translate","scale","rotate","perspective","filter"],v4=["paint","layout","strict","content"];function Jh(e){const t=Zh(),n=Tr(e)?_r(e):e;return C4.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||A4.some(r=>(n.willChange||"").includes(r))||v4.some(r=>(n.contain||"").includes(r))}function k4(e){let t=Oi(e);for(;jr(t)&&!ws(t);){if(Jh(t))return t;if(sc(t))return null;t=Oi(t)}return null}function Zh(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const P4=new Set(["html","body","#document"]);function ws(e){return P4.has(xs(e))}function _r(e){return Vn(e).getComputedStyle(e)}function ac(e){return Tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oi(e){if(xs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rT(e)&&e.host||zr(e);return rT(t)?t.host:t}function iT(e){const t=Oi(e);return ws(t)?e.ownerDocument?e.ownerDocument.body:e.body:jr(t)&&Qa(t)?t:iT(t)}function Ja(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=iT(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),u=Vn(o);if(a){const c=ep(u);return t.concat(u,u.visualViewport||[],Qa(o)?o:[],c&&n?Ja(c):[])}return t.concat(o,Ja(o,[],n))}function ep(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oT(e){const t=_r(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=jr(e),a=o?e.offsetWidth:n,u=o?e.offsetHeight:r,c=tc(n)!==a||tc(r)!==u;return c&&(n=a,r=u),{width:n,height:r,$:c}}function tp(e){return Tr(e)?e:e.contextElement}function Cs(e){const t=tp(e);if(!jr(t))return Ur(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=oT(t);let u=(a?tc(n.width):n.width)/r,c=(a?tc(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const N4=Ur(0);function sT(e){const t=Vn(e);return!Zh()||!t.visualViewport?N4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function O4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vn(e)?!1:t}function bo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=tp(e);let u=Ur(1);t&&(r?Tr(r)&&(u=Cs(r)):u=Cs(e));const c=O4(a,n,r)?sT(a):Ur(0);let d=(o.left+c.x)/u.x,f=(o.top+c.y)/u.y,p=o.width/u.x,g=o.height/u.y;if(a){const T=Vn(a),y=r&&Tr(r)?Vn(r):r;let _=T,S=ep(_);for(;S&&r&&y!==_;){const k=Cs(S),v=S.getBoundingClientRect(),N=_r(S),C=v.left+(S.clientLeft+parseFloat(N.paddingLeft))*k.x,M=v.top+(S.clientTop+parseFloat(N.paddingTop))*k.y;d*=k.x,f*=k.y,p*=k.x,g*=k.y,d+=C,f+=M,_=Vn(S),S=ep(_)}}return ic({width:p,height:g,x:d,y:f})}function uc(e,t){const n=ac(e).scrollLeft;return t?t.left+n:bo(zr(e)).left+n}function aT(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-uc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function I4(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",u=zr(r),c=t?sc(t.floating):!1;if(r===u||c&&a)return n;let d={scrollLeft:0,scrollTop:0},f=Ur(1);const p=Ur(0),g=jr(r);if((g||!g&&!a)&&((xs(r)!=="body"||Qa(u))&&(d=ac(r)),jr(r))){const y=bo(r);f=Cs(r),p.x=y.x+r.clientLeft,p.y=y.y+r.clientTop}const T=u&&!g&&!a?aT(u,d):Ur(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+p.x+T.x,y:n.y*f.y-d.scrollTop*f.y+p.y+T.y}}function R4(e){return Array.from(e.getClientRects())}function L4(e){const t=zr(e),n=ac(e),r=e.ownerDocument.body,o=$n(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=$n(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+uc(e);const c=-n.scrollTop;return _r(r).direction==="rtl"&&(u+=$n(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:u,y:c}}const uT=25;function D4(e,t){const n=Vn(e),r=zr(e),o=n.visualViewport;let a=r.clientWidth,u=r.clientHeight,c=0,d=0;if(o){a=o.width,u=o.height;const p=Zh();(!p||p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}const f=uc(r);if(f<=0){const p=r.ownerDocument,g=p.body,T=getComputedStyle(g),y=p.compatMode==="CSS1Compat"&&parseFloat(T.marginLeft)+parseFloat(T.marginRight)||0,_=Math.abs(r.clientWidth-g.clientWidth-y);_<=uT&&(a-=_)}else f<=uT&&(a+=f);return{width:a,height:u,x:c,y:d}}const M4=new Set(["absolute","fixed"]);function F4(e,t){const n=bo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=jr(e)?Cs(e):Ur(1),u=e.clientWidth*a.x,c=e.clientHeight*a.y,d=o*a.x,f=r*a.y;return{width:u,height:c,x:d,y:f}}function lT(e,t,n){let r;if(t==="viewport")r=D4(e,n);else if(t==="document")r=L4(zr(e));else if(Tr(t))r=F4(t,n);else{const o=sT(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ic(r)}function cT(e,t){const n=Oi(e);return n===t||!Tr(n)||ws(n)?!1:_r(n).position==="fixed"||cT(n,t)}function B4(e,t){const n=t.get(e);if(n)return n;let r=Ja(e,[],!1).filter(c=>Tr(c)&&xs(c)!=="body"),o=null;const a=_r(e).position==="fixed";let u=a?Oi(e):e;for(;Tr(u)&&!ws(u);){const c=_r(u),d=Jh(u);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&M4.has(o.position)||Qa(u)&&!d&&cT(e,u))?r=r.filter(p=>p!==u):o=c,u=Oi(u)}return t.set(e,r),r}function U4(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const u=[...n==="clippingAncestors"?sc(t)?[]:B4(t,this._c):[].concat(n),r],c=u[0],d=u.reduce((f,p)=>{const g=lT(t,p,o);return f.top=$n(g.top,f.top),f.right=Ni(g.right,f.right),f.bottom=Ni(g.bottom,f.bottom),f.left=$n(g.left,f.left),f},lT(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function H4(e){const{width:t,height:n}=oT(e);return{width:t,height:n}}function z4(e,t,n){const r=jr(t),o=zr(t),a=n==="fixed",u=bo(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const d=Ur(0);function f(){d.x=uc(o)}if(r||!r&&!a)if((xs(t)!=="body"||Qa(o))&&(c=ac(t)),r){const y=bo(t,!0,a,t);d.x=y.x+t.clientLeft,d.y=y.y+t.clientTop}else o&&f();a&&!r&&o&&f();const p=o&&!r&&!a?aT(o,c):Ur(0),g=u.left+c.scrollLeft-d.x-p.x,T=u.top+c.scrollTop-d.y-p.y;return{x:g,y:T,width:u.width,height:u.height}}function np(e){return _r(e).position==="static"}function dT(e,t){if(!jr(e)||_r(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zr(e)===n&&(n=n.ownerDocument.body),n}function fT(e,t){const n=Vn(e);if(sc(e))return n;if(!jr(e)){let o=Oi(e);for(;o&&!ws(o);){if(Tr(o)&&!np(o))return o;o=Oi(o)}return n}let r=dT(e,t);for(;r&&x4(r)&&np(r);)r=dT(r,t);return r&&ws(r)&&np(r)&&!Jh(r)?n:r||k4(e)||n}const j4=function(e){return tt(this,null,function*(){const t=this.getOffsetParent||fT,n=this.getDimensions,r=yield n(e.floating);return{reference:z4(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function $4(e){return _r(e).direction==="rtl"}const V4={convertOffsetParentRelativeRectToViewportRelativeRect:I4,getDocumentElement:zr,getClippingRect:U4,getOffsetParent:fT,getElementRects:j4,getClientRects:R4,getDimensions:H4,getScale:Cs,isElement:Tr,isRTL:$4};function hT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function q4(e,t){let n=null,r;const o=zr(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function u(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();const f=e.getBoundingClientRect(),{left:p,top:g,width:T,height:y}=f;if(c||t(),!T||!y)return;const _=nc(g),S=nc(o.clientWidth-(p+T)),k=nc(o.clientHeight-(g+y)),v=nc(p),C={rootMargin:-_+"px "+-S+"px "+-k+"px "+-v+"px",threshold:$n(0,Ni(1,d))||1};let M=!0;function V(D){const K=D[0].intersectionRatio;if(K!==d){if(!M)return u();K?u(!1,K):r=setTimeout(()=>{u(!1,1e-7)},1e3)}K===1&&!hT(f,e.getBoundingClientRect())&&u(),M=!1}try{n=new IntersectionObserver(V,me(F({},C),{root:o.ownerDocument}))}catch(D){n=new IntersectionObserver(V,C)}n.observe(e)}return u(!0),a}function Y4(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=tp(e),p=o||a?[...f?Ja(f):[],...Ja(t)]:[];p.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const g=f&&c?q4(f,n):null;let T=-1,y=null;u&&(y=new ResizeObserver(v=>{let[N]=v;N&&N.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var C;(C=y)==null||C.observe(t)})),n()}),f&&!d&&y.observe(f),y.observe(t));let _,S=d?bo(e):null;d&&k();function k(){const v=bo(e);S&&!hT(S,v)&&n(),S=v,_=requestAnimationFrame(k)}return n(),()=>{var v;p.forEach(N=>{o&&N.removeEventListener("scroll",n),a&&N.removeEventListener("resize",n)}),g==null||g(),(v=y)==null||v.disconnect(),y=null,d&&cancelAnimationFrame(_)}}const G4=E4,W4=y4,X4=p4,K4=T4,Q4=m4,J4=h4,Z4=b4,e5=(e,t,n)=>{const r=new Map,o=F({platform:V4},n),a=me(F({},o.platform),{_c:r});return f4(e,t,me(F({},o),{platform:a}))};function pT(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return me(F({},o),{toJSON:()=>o})}function t5(e){if(!e)return pT();const{x:t,y:n,width:r,height:o}=e;return pT(t,n,r,o)}function n5(e,t){return{contextElement:Zt(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?t5(r):n.getBoundingClientRect()}}}var Za=e=>({variable:e,reference:`var(${e})`}),ai={arrowSize:Za("--arrow-size"),arrowSizeHalf:Za("--arrow-size-half"),arrowBg:Za("--arrow-background"),transformOrigin:Za("--transform-origin"),arrowOffset:Za("--arrow-offset")},r5=e=>e==="top"||e==="bottom"?"y":"x";function i5(e,t){return{name:"transformOrigin",fn(n){var be,$,Z,ce,he;const{elements:r,middlewareData:o,placement:a,rects:u,y:c}=n,d=a.split("-")[0],f=r5(d),p=((be=o.arrow)==null?void 0:be.x)||0,g=(($=o.arrow)==null?void 0:$.y)||0,T=(t==null?void 0:t.clientWidth)||0,y=(t==null?void 0:t.clientHeight)||0,_=p+T/2,S=g+y/2,k=Math.abs(((Z=o.shift)==null?void 0:Z.y)||0),v=u.reference.height/2,N=y/2,C=(he=(ce=e.offset)==null?void 0:ce.mainAxis)!=null?he:e.gutter,M=typeof C=="number"?C+N:C!=null?C:N,V=k>M,D={top:`${_}px calc(100% + ${M}px)`,bottom:`${_}px ${-M}px`,left:`calc(100% + ${M}px) ${S}px`,right:`${-M}px ${S}px`}[d],K=`${_}px ${u.reference.y+v-c}px`,re=!!e.overlap&&f==="y"&&V;return r.floating.style.setProperty(ai.transformOrigin.variable,re?K:D),{data:{transformOrigin:re?K:D}}}}}var o5={name:"rects",fn({rects:e}){return{data:e}}},s5=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:o}=n.arrow,a=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[a]:`calc(100% + ${ai.arrowOffset.reference})`}),{}}}};function a5(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}var u5={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function mT(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function rp(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function l5(e,t,n){const r=e||t.createElement("div");return J4({element:r,padding:n.arrowPadding})}function c5(e,t){var n;if(!C6((n=t.offset)!=null?n:t.gutter))return G4(({placement:r})=>{var p,g,T,y;const o=((e==null?void 0:e.clientHeight)||0)/2,a=(g=(p=t.offset)==null?void 0:p.mainAxis)!=null?g:t.gutter,u=typeof a=="number"?a+o:a!=null?a:o,{hasAlign:c}=a5(r),d=c?void 0:t.shift,f=(y=(T=t.offset)==null?void 0:T.crossAxis)!=null?y:d;return Oh({crossAxis:f,mainAxis:u,alignmentAxis:t.shift})})}function d5(e){if(!e.flip)return;const t=rp(e.boundary);return X4(me(F({},t?{boundary:t}:void 0),{padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip}))}function f5(e){if(!e.slide&&!e.overlap)return;const t=rp(e.boundary);return W4(me(F({},t?{boundary:t}:void 0),{mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Z4()}))}function h5(e){return K4({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:o}){const a=t.floating,u=Math.round(n.reference.width),c=Math.round(n.reference.height);o=Math.floor(o),r=Math.floor(r),a.style.setProperty("--reference-width",`${u}px`),a.style.setProperty("--reference-height",`${c}px`),a.style.setProperty("--available-width",`${o}px`),a.style.setProperty("--available-height",`${r}px`)}})}function p5(e){var t;if(e.hideWhenDetached)return Q4({strategy:"referenceHidden",boundary:(t=rp(e.boundary))!=null?t:"clippingAncestors"})}function m5(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function g5(e,t,n={}){const r=n5(e,n.getAnchorRect);if(!t||!r)return;const o=Object.assign({},u5,n),a=t.querySelector("[data-part=arrow]"),u=[c5(a,o),d5(o),f5(o),l5(a,t.ownerDocument,o),s5(a),i5({gutter:o.gutter,offset:o.offset,overlap:o.overlap},a),h5(o),p5(o),o5],{placement:c,strategy:d,onComplete:f,onPositioned:p}=o,g=()=>tt(null,null,function*(){var M;if(!r||!t)return;const S=yield e5(r,t,{placement:c,middleware:u,strategy:d});f==null||f(S),p==null||p({placed:!0});const k=ps(t),v=mT(k,S.x),N=mT(k,S.y);t.style.setProperty("--x",`${v}px`),t.style.setProperty("--y",`${N}px`),o.hideWhenDetached&&(((M=S.middlewareData.hide)==null?void 0:M.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const C=t.firstElementChild;if(C){const V=gs(C);t.style.setProperty("--z-index",V.zIndex)}}),T=()=>tt(null,null,function*(){n.updatePosition?(yield n.updatePosition({updatePosition:g,floatingElement:t}),p==null||p({placed:!0})):yield g()}),y=m5(o.listeners),_=o.listeners?Y4(r,t,T,y):L6;return T(),()=>{_==null||_(),p==null||p({placed:!1})}}function gT(e,t,n={}){const c=n,{defer:r}=c,o=ln(c,["defer"]),a=r?qt:d=>d(),u=[];return u.push(a(()=>{const d=typeof e=="function"?e():e,f=typeof t=="function"?t():t;u.push(g5(d,f,o))})),()=>{u.forEach(d=>d==null?void 0:d())}}var E5={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function y5(e={}){const{placement:t,sameWidth:n,fitViewport:r,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:ai.arrowSize.reference,height:ai.arrowSize.reference,[ai.arrowSizeHalf.variable]:`calc(${ai.arrowSize.reference} / 2)`,[ai.arrowOffset.variable]:`calc(${ai.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?E5[t.split("-")[0]]:void 0,background:ai.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}var As=new WeakMap,lc=new WeakMap,cc={},ip=0,ET=e=>e&&(e.host||ET(e.parentNode)),b5=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=ET(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),T5=new Set(["script","output","status","next-route-announcer"]),_5=e=>T5.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),S5=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o,followControlledElements:a=!0}=t,u=b5(n,Array.isArray(e)?e:[e]);cc[r]||(cc[r]=new WeakMap);const c=cc[r],d=[],f=new Set,p=new Set(u),g=y=>{!y||f.has(y)||(f.add(y),g(y.parentNode))};u.forEach(y=>{g(y),a&&Zt(y)&&Nb(y,_=>{g(_)})});const T=y=>{!y||p.has(y)||Array.prototype.forEach.call(y.children,_=>{if(f.has(_))T(_);else try{if(_5(_))return;const k=_.getAttribute(o)==="true",v=(As.get(_)||0)+1,N=(c.get(_)||0)+1;As.set(_,v),c.set(_,N),d.push(_),v===1&&k&&lc.set(_,!0),N===1&&_.setAttribute(r,""),k||_.setAttribute(o,"true")}catch(S){console.error("[zag-js > ariaHidden] cannot operate on ",_,S)}})};return T(n),f.clear(),ip++,()=>{d.forEach(y=>{const _=As.get(y)-1,S=c.get(y)-1;As.set(y,_),c.set(y,S),_||(lc.has(y)||y.removeAttribute(o),lc.delete(y)),S||y.removeAttribute(r)}),ip--,ip||(As=new WeakMap,As=new WeakMap,lc=new WeakMap,cc={})}},x5=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,w5=(e,t=x5(e),n="data-aria-hidden",r=!0)=>{if(t)return S5(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden",followControlledElements:r})},C5=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function yT(e,t={}){const{defer:n=!0}=t,r=n?C5:a=>a(),o=[];return o.push(r(()=>{const u=(typeof e=="function"?e():e).filter(Boolean);u.length!==0&&o.push(w5(u))})),()=>{o.forEach(a=>a==null?void 0:a())}}function A5(e){const t={each(n){var r;for(let o=0;o<((r=e.frames)==null?void 0:r.length);o+=1){const a=e.frames[o];a&&n(a)}},addEventListener(n,r,o){return t.each(a=>{try{a.document.addEventListener(n,r,o)}catch(u){}}),()=>{try{t.removeEventListener(n,r,o)}catch(a){}}},removeEventListener(n,r,o){t.each(a=>{try{a.document.removeEventListener(n,r,o)}catch(u){}})}};return t}function v5(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t==null||t.addEventListener(n,r,o)}catch(a){}return()=>{try{t==null||t.removeEventListener(n,r,o)}catch(a){}}},removeEventListener:(n,r,o)=>{try{t==null||t.removeEventListener(n,r,o)}catch(a){}}}}var bT="pointerdown.outside",TT="focus.outside";function k5(e){for(const t of e)if(Zt(t)&&Br(t))return!0;return!1}var _T=e=>"clientY"in e;function P5(e,t){if(!_T(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function N5(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function ST(e,t){if(!t||!_T(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,a=o&&e.clientY>t.offsetTop+t.clientHeight,u={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},c={x:e.clientX,y:e.clientY};return N5(u,c)?r||a:!1}function O5(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:a,defer:u,followControlledElements:c=!0}=t;if(!e)return;const d=Fr(e),f=ps(e),p=A5(f),g=v5(f);function T(C,M){if(!Zt(M)||!M.isConnected||hs(e,M)||P5(e,C)||c&&Pb(e,M))return!1;const V=d.querySelector(`[aria-controls="${e.id}"]`);if(V){const K=Hh(V);if(ST(C,K))return!1}const D=Hh(e);return ST(C,D)?!1:!(n!=null&&n(M))}const y=new Set,_=mo(e==null?void 0:e.getRootNode());function S(C){function M(V){var be,$;const D=u&&!Ob()?qt:Z=>Z(),K=V!=null?V:C,re=($=(be=K==null?void 0:K.composedPath)==null?void 0:be.call(K))!=null?$:[K==null?void 0:K.target];D(()=>{const Z=_?re[0]:br(C);if(!(!e||!T(C,Z))){if(o||a){const ce=Nh(o,a);e.addEventListener(bT,ce,{once:!0})}xT(e,bT,{bubbles:!1,cancelable:!0,detail:{originalEvent:K,contextmenu:mD(K),focusable:k5(re),target:Z}})}})}C.pointerType==="touch"?(y.forEach(V=>V()),y.add(en(d,"click",M,{once:!0})),y.add(g.addEventListener("click",M,{once:!0})),y.add(p.addEventListener("click",M,{once:!0}))):M()}const k=new Set,v=setTimeout(()=>{k.add(en(d,"pointerdown",S,!0)),k.add(g.addEventListener("pointerdown",S,!0)),k.add(p.addEventListener("pointerdown",S,!0))},0);function N(C){(u?qt:V=>V())(()=>{var K,re;const V=(re=(K=C==null?void 0:C.composedPath)==null?void 0:K.call(C))!=null?re:[C==null?void 0:C.target],D=_?V[0]:br(C);if(!(!e||!T(C,D))){if(r||a){const be=Nh(r,a);e.addEventListener(TT,be,{once:!0})}xT(e,TT,{bubbles:!1,cancelable:!0,detail:{originalEvent:C,contextmenu:!1,focusable:Br(D),target:D}})}})}return Ob()||(k.add(en(d,"focusin",N,!0)),k.add(g.addEventListener("focusin",N,!0)),k.add(p.addEventListener("focusin",N,!0))),()=>{clearTimeout(v),y.forEach(C=>C()),k.forEach(C=>C())}}function I5(e,t){const{defer:n}=t,r=n?qt:a=>a(),o=[];return o.push(r(()=>{const a=typeof e=="function"?e():e;o.push(O5(a,t))})),()=>{o.forEach(a=>a==null?void 0:a())}}function xT(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function R5(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return en(Fr(e),"keydown",n,{capture:!0})}var wT="layer:request-dismiss",ir={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return t<n},isTopMost(e){const t=this.layers[this.count()-1];return(t==null?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){const n=this.indexOf(e);return n===-1?[]:this.layers.slice(n+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>hs(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>hs(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>ir.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const r=this.countNestedLayersOfType(e.node,e.type);r>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${r}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];D5(e,wT,o=>{var a;(a=r.requestDismiss)==null||a.call(r,o),o.defaultPrevented||r==null||r.dismiss()}),L5(e,wT,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function L5(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(o)}function D5(e,t,n){e.addEventListener(t,n,{once:!0})}var CT;function AT(){ir.layers.forEach(({node:e})=>{e.style.pointerEvents=ir.isBelowPointerBlockingLayer(e)?"none":"auto"})}function M5(e){e.style.pointerEvents=""}function F5(e,t){const n=Fr(e),r=[];return ir.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(CT=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(o=>{const[a,u]=BD(()=>{const c=o();return Zt(c)?c:null},{timeout:1e3});a.then(c=>r.push(Kl(c,{pointerEvents:"auto"}))),r.push(u)}),()=>{ir.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=CT,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function B5(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){Ih("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:a,exclude:u,debug:c,type:d="dialog"}=t,f={dismiss:r,node:e,type:d,pointerBlocking:a,requestDismiss:o};ir.add(f),AT();function p(S){var v,N;const k=br(S.detail.originalEvent);ir.isBelowPointerBlockingLayer(e)||ir.isInBranch(k)||((v=t.onPointerDownOutside)==null||v.call(t,S),(N=t.onInteractOutside)==null||N.call(t,S),!S.defaultPrevented&&(c&&console.log("onPointerDownOutside:",S.detail.originalEvent),r==null||r()))}function g(S){var v,N;const k=br(S.detail.originalEvent);ir.isInBranch(k)||((v=t.onFocusOutside)==null||v.call(t,S),(N=t.onInteractOutside)==null||N.call(t,S),!S.defaultPrevented&&(c&&console.log("onFocusOutside:",S.detail.originalEvent),r==null||r()))}function T(S){var k;ir.isTopMost(e)&&((k=t.onEscapeKeyDown)==null||k.call(t,S),!S.defaultPrevented&&r&&(S.preventDefault(),r()))}function y(S){var C;if(!e)return!1;const k=typeof u=="function"?u():u,v=Array.isArray(k)?k:[k],N=(C=t.persistentElements)==null?void 0:C.map(M=>M()).filter(Zt);return N&&v.push(...N),v.some(M=>hs(M,S))||ir.isInNestedLayer(e,S)}const _=[a?F5(e,t.persistentElements):void 0,R5(e,T),I5(e,{exclude:y,onFocusOutside:g,onPointerDownOutside:p,defer:t.defer})];return()=>{ir.remove(e),AT(),M5(e),_.forEach(S=>S==null?void 0:S())}}function vT(e,t){const{defer:n}=t,r=n?qt:a=>a(),o=[];return o.push(r(()=>{const a=ds(e)?e():e;o.push(B5(a,t))})),()=>{o.forEach(a=>a==null?void 0:a())}}var U5=Object.defineProperty,H5=(e,t,n)=>t in e?U5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,At=(e,t,n)=>H5(e,typeof t!="symbol"?t+"":t,n),kT={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},z5=[],j5=class{constructor(e,t){At(this,"trapStack"),At(this,"config"),At(this,"doc"),At(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),At(this,"portalContainers",new Set),At(this,"listenerCleanups",[]),At(this,"handleFocus",r=>{const o=br(r),a=this.findContainerIndex(o,r)>=0;if(a||Yl(o))a&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let u,c=!0;if(this.state.mostRecentlyFocusedNode)if(Ga(this.state.mostRecentlyFocusedNode)>0){const d=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:f}=this.state.containerGroups[d];if(f.length>0){const p=f.findIndex(g=>g===this.state.mostRecentlyFocusedNode);p>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?p+1<f.length&&(u=f[p+1],c=!1):p-1>=0&&(u=f[p-1],c=!1))}}else this.state.containerGroups.some(d=>d.tabbableNodes.some(f=>Ga(f)>0))||(c=!1);else c=!1;c&&(u=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),u?this.tryFocus(u):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),At(this,"handlePointerDown",r=>{const o=br(r);if(!(this.findContainerIndex(o,r)>=0)){if(tu(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}tu(this.config.allowOutsideClick,r)||r.preventDefault()}}),At(this,"handleClick",r=>{const o=br(r);this.findContainerIndex(o,r)>=0||tu(this.config.clickOutsideDeactivates,r)||tu(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),At(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),a=this.findNextNavNode({event:r,isBackward:o});if(!a)return;eu(r)&&r.preventDefault(),this.tryFocus(a)}}),At(this,"handleEscapeKey",r=>{$5(r)&&tu(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),At(this,"_mutationObserver"),At(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(c=>Array.from(c.removedNodes).some(f=>f===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),o.some(c=>c.type==="attributes"&&(c.attributeName==="aria-controls"||c.attributeName==="aria-expanded")?!0:c.type==="childList"&&c.addedNodes.length>0?Array.from(c.addedNodes).some(d=>{if(d.nodeType!==Node.ELEMENT_NODE)return!1;const f=d;return sD(f)?!0:f.id&&!this.state.containers.some(p=>p.contains(f))?aD(f):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),At(this,"updateObservedNodes",()=>{var r;(r=this._mutationObserver)==null||r.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(o=>{var a;(a=this._mutationObserver)==null||a.observe(o,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(o=>{this.observePortalContainer(o)}))}),At(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Br(r)){const o=ms(this.doc);if(o&&this.findContainerIndex(o)>=0)r=o;else{const a=this.state.tabbableGroups[0];r=a&&a.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),At(this,"tryFocus",r=>{if(r!==!1&&r!==ms(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,V5(r)&&r.select()}}),At(this,"deactivate",r=>{if(!this.state.active)return this;const o=F({onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus},r);clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),kT.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const a=this.getOption(o,"onDeactivate"),u=this.getOption(o,"onPostDeactivate"),c=this.getOption(o,"checkCanReturnFocus"),d=this.getOption(o,"returnFocus","returnFocusOnDeactivate");a==null||a();const f=()=>{PT(()=>{if(d){const p=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(p)}u==null||u()})};if(d&&c){const p=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return c(p).then(f,f),this}return f(),this}),At(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),a=this.getOption(r,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),a==null||a(),this}),At(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),a=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),a==null||a(),this}),At(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),At(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),At(this,"getOption",(r,o,a)=>r&&r[o]!==void 0?r[o]:this.config[a||o]),At(this,"getNodeForOption",(r,{hasFallback:o=!1,params:a=[]}={})=>{let u=this.config[r];if(typeof u=="function"&&(u=u(...a)),u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let c=u;if(typeof u=="string"){try{c=this.doc.querySelector(u)}catch(d){throw new Error(`\`${r}\` appears to be an invalid selector; error="${d.message}"`)}if(!c&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return c}),At(this,"findNextNavNode",r=>{const{event:o,isBackward:a=!1}=r,u=r.target||br(o);this.updateTabbableNodes();let c=null;if(this.state.tabbableGroups.length>0){const d=this.findContainerIndex(u,o),f=d>=0?this.state.containerGroups[d]:void 0;if(d<0)a?c=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:c=this.state.tabbableGroups[0].firstTabbableNode;else if(a){let p=this.state.tabbableGroups.findIndex(({firstTabbableNode:g})=>u===g);if(p<0&&((f==null?void 0:f.container)===u||Br(u)&&!go(u)&&!(f!=null&&f.nextTabbableNode(u,!1)))&&(p=d),p>=0){const g=p===0?this.state.tabbableGroups.length-1:p-1,T=this.state.tabbableGroups[g];c=Ga(u)>=0?T.lastTabbableNode:T.lastDomTabbableNode}else eu(o)||(c=f==null?void 0:f.nextTabbableNode(u,!1))}else{let p=this.state.tabbableGroups.findIndex(({lastTabbableNode:g})=>u===g);if(p<0&&((f==null?void 0:f.container)===u||Br(u)&&!go(u)&&!(f!=null&&f.nextTabbableNode(u)))&&(p=d),p>=0){const g=p===this.state.tabbableGroups.length-1?0:p+1,T=this.state.tabbableGroups[g];c=Ga(u)>=0?T.firstTabbableNode:T.firstDomTabbableNode}else eu(o)||(c=f==null?void 0:f.nextTabbableNode(u))}}else c=this.getNodeForOption("fallbackFocus");return c}),this.trapStack=t.trapStack||z5;const n=F({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(r){return eu(r)&&!r.shiftKey},isKeyBackward(r){return eu(r)&&r.shiftKey}},t);this.doc=n.document||Fr(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){var t;(t=this._mutationObserver)==null||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{rD(e).forEach(n=>{this.addPortalContainer(n)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||(n==null?void 0:n.includes(r))||o.find(a=>a===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?Pb(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Es(e,{getShadowRoot:this.config.getShadowRoot}),n=Bb(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],o=t[t.length-1],a=r,u=o;let c=!1;for(let f=0;f<t.length;f++)if(Ga(t[f])>0){c=!0;break}function d(f,p=!0){const g=t.indexOf(f);if(g>=0)return t[g+(p?1:-1)];const T=n.indexOf(f);if(!(T<0)){if(p){for(let y=T+1;y<n.length;y++)if(go(n[y]))return n[y]}else for(let y=T-1;y>=0;y--)if(go(n[y]))return n[y]}}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:u,nextTabbableNode:d}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return kT.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?PT(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(en(this.doc,"focusin",this.handleFocus,!0),en(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),en(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),en(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),en(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),en(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=ms(this.doc),t==null||t();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n==null||n()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},eu=e=>e.key==="Tab",tu=(e,...t)=>typeof e=="function"?e(...t):e,$5=e=>!e.isComposing&&e.key==="Escape",PT=e=>setTimeout(e,0),V5=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function NT(e,t={}){let n;const r=qt(()=>{const o=typeof e=="function"?e():e;if(o){n=new j5(o,me(F({escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o},t),{document:Fr(o)}));try{n.activate()}catch(a){}}});return function(){n==null||n.deactivate(),r()}}var op="data-scroll-lock";function q5(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function OT(e){const t=gs(e),n=t==null?void 0:t.scrollbarGutter;return n==="stable"||(n==null?void 0:n.startsWith("stable "))===!0}function IT(e){var y;const t=e!=null?e:document,n=(y=t.defaultView)!=null?y:window,{documentElement:r,body:o}=t;if(o.hasAttribute(op))return;const u=OT(r)||OT(o),c=n.innerWidth-r.clientWidth;o.setAttribute(op,"");const d=()=>MD(r,"--scrollbar-width",`${c}px`),f=q5(r),p=()=>{const _={overflow:"hidden"};return!u&&c>0&&(_[f]=`${c}px`),Kl(o,_)},g=()=>{var V,D;const{scrollX:_,scrollY:S,visualViewport:k}=n,v=(V=k==null?void 0:k.offsetLeft)!=null?V:0,N=(D=k==null?void 0:k.offsetTop)!=null?D:0,C={position:"fixed",overflow:"hidden",top:`${-(S-Math.floor(N))}px`,left:`${-(_-Math.floor(v))}px`,right:"0"};!u&&c>0&&(C[f]=`${c}px`);const M=Kl(o,C);return()=>{M==null||M(),n.scrollTo({left:_,top:S,behavior:"instant"})}},T=[d(),Gl()?g():p()];return()=>{T.forEach(_=>_==null?void 0:_()),o.removeAttribute(op)}}var Y5=yo("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),$r=Y5.build(),RT=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.anchor)!=null?n:`popover:${e.id}:anchor`},LT=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.trigger)!=null?n:`popover:${e.id}:trigger`},sp=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.content)!=null?n:`popover:${e.id}:content`},DT=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.positioner)!=null?n:`popover:${e.id}:popper`},G5=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.arrow)!=null?n:`popover:${e.id}:arrow`},ap=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.title)!=null?n:`popover:${e.id}:title`},up=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.description)!=null?n:`popover:${e.id}:desc`},W5=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.closeTrigger)!=null?n:`popover:${e.id}:close`},MT=e=>e.getById(RT(e)),vs=e=>e.getById(LT(e)),ks=e=>e.getById(sp(e)),FT=e=>e.getById(DT(e)),X5=e=>e.getById(ap(e)),K5=e=>e.getById(up(e));function Q5(e,t){const{state:n,context:r,send:o,computed:a,prop:u,scope:c}=e,d=n.matches("open"),f=r.get("currentPlacement"),p=a("currentPortalled"),g=r.get("renderedElements"),T=y5(me(F({},u("positioning")),{placement:f}));return{portalled:p,open:d,setOpen(y){n.matches("open")!==y&&o({type:y?"OPEN":"CLOSE"})},reposition(y={}){o({type:"POSITIONING.SET",options:y})},getArrowProps(){return t.element(me(F({id:G5(c)},$r.arrow.attrs),{dir:u("dir"),style:T.arrow}))},getArrowTipProps(){return t.element(me(F({},$r.arrowTip.attrs),{dir:u("dir"),style:T.arrowTip}))},getAnchorProps(){return t.element(me(F({},$r.anchor.attrs),{dir:u("dir"),id:RT(c)}))},getTriggerProps(){return t.button(me(F({},$r.trigger.attrs),{dir:u("dir"),type:"button","data-placement":f,id:LT(c),"aria-haspopup":"dialog","aria-expanded":d,"data-state":d?"open":"closed","aria-controls":sp(c),onPointerDown(y){Ib(y)&&hD()&&y.currentTarget.focus()},onClick(y){y.defaultPrevented||o({type:"TOGGLE"})},onBlur(y){o({type:"TRIGGER_BLUR",target:y.relatedTarget})}}))},getIndicatorProps(){return t.element(me(F({},$r.indicator.attrs),{dir:u("dir"),"data-state":d?"open":"closed"}))},getPositionerProps(){return t.element(me(F({id:DT(c)},$r.positioner.attrs),{dir:u("dir"),style:T.floating}))},getContentProps(){return t.element(me(F({},$r.content.attrs),{dir:u("dir"),id:sp(c),tabIndex:-1,role:"dialog","aria-modal":Ab(u("modal")),hidden:!d,"data-state":d?"open":"closed","data-expanded":fs(d),"aria-labelledby":g.title?ap(c):void 0,"aria-describedby":g.description?up(c):void 0,"data-placement":f}))},getTitleProps(){return t.element(me(F({},$r.title.attrs),{id:ap(c),dir:u("dir")}))},getDescriptionProps(){return t.element(me(F({},$r.description.attrs),{id:up(c),dir:u("dir")}))},getCloseTriggerProps(){return t.button(me(F({},$r.closeTrigger.attrs),{dir:u("dir"),id:W5(c),type:"button","aria-label":"close",onClick(y){y.defaultPrevented||(y.stopPropagation(),o({type:"CLOSE"}))}}))}}}var J5={props({props:e}){return me(F({closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0},e),{positioning:F({placement:"bottom"},e.positioning)})},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:n}){e([()=>t("open")],()=>{n(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:n}){var a;e.set("currentPlacement",t("positioning").placement);const r=(a=MT(n))!=null?a:vs(n);return gT(r,()=>FT(n),me(F({},t("positioning")),{defer:!0,onComplete(u){e.set("currentPlacement",u.placement)}}))},trackDismissableElement({send:e,prop:t,scope:n}){const r=()=>ks(n);let o=!0;return vT(r,{type:"popover",pointerBlocking:t("modal"),exclude:vs(n),defer:!0,onEscapeKeyDown(a){var u;(u=t("onEscapeKeyDown"))==null||u(a),!t("closeOnEscape")&&a.preventDefault()},onInteractOutside(a){var u;(u=t("onInteractOutside"))==null||u(a),!a.defaultPrevented&&(o=!(a.detail.focusable||a.detail.contextmenu),t("closeOnInteractOutside")||a.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},proxyTabFocus({prop:e,scope:t}){return e("modal")||!e("portalled")?void 0:LD(()=>ks(t),{triggerElement:vs(t),defer:!0,getShadowRoot:!0,onFocus(r){r.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){return e("modal")?yT(()=>[ks(t),vs(t)],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return IT(t.getDoc())},trapFocus({prop:e,scope:t}){return e("modal")?NT(()=>ks(t),{initialFocus:()=>Ub({root:ks(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:n,context:r}){var u;const o=(u=MT(n))!=null?u:vs(n);gT(o,()=>FT(n),me(F(F({},t("positioning")),e.options),{defer:!0,listeners:!1,onComplete(c){r.set("currentPlacement",c.placement)}}))},checkRenderedElements({context:e,scope:t}){qt(()=>{Object.assign(e.get("renderedElements"),{title:!!X5(t),description:!!K5(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||qt(()=>{const n=Ub({root:ks(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")});n==null||n.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){var r,o;const n=(o=e.restoreFocus)!=null?o:(r=e.previousEvent)==null?void 0:r.restoreFocus;n!=null&&!n||qt(()=>{const a=vs(t);a==null||a.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{var n;(n=e("onOpenChange"))==null||n({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{var n;(n=e("onOpenChange"))==null||n({open:!1})})},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}};Ts()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const[yU,dc]=Eo({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[bU,lp]=Eo({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),Z5=e=>{const t=U.useId(),{getRootNode:n}=dc(),{dir:r}=lp(),o=F({id:t,dir:r,getRootNode:n},e),a=Jl(J5,o);return Q5(a,$h)},eM=e=>{const[t,u]=Wb(e),c=u,{children:n}=c,r=ln(c,["children"]),o=Z5(r),a=Yh(Yt({present:o.open},t));return w.jsx(XD,{value:o,children:w.jsx(qb,{value:a,children:n})})},BT=U.forwardRef((e,t)=>{const n=qh(),r=Wa(),o=Yt(me(F({},n.getTriggerProps()),{"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]}),e);return w.jsx(mn.button,me(F({},o),{ref:t}))});BT.displayName="PopoverTrigger";function tM(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.854 3.646a.5.5 0 0 1 0 .708L8.207 8l3.647 3.646a.5.5 0 0 1-.708.708l-4-4a.5.5 0 0 1 0-.708l4-4a.5.5 0 0 1 .708 0M4.5 1a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 1 0v-13a.5.5 0 0 0-.5-.5"},child:[]}]})(e)}function nM(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.146 3.646a.5.5 0 0 0 0 .708L7.793 8l-3.647 3.646a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708 0M11.5 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13a.5.5 0 0 1 .5-.5"},child:[]}]})(e)}function rM(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"},child:[]}]})(e)}function iM(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"},child:[]}]})(e)}function oM(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M7.657 6.247c.11-.33.576-.33.686 0l.645 1.937a2.89 2.89 0 0 0 1.829 1.828l1.936.645c.33.11.33.576 0 .686l-1.937.645a2.89 2.89 0 0 0-1.828 1.829l-.645 1.936a.361.361 0 0 1-.686 0l-.645-1.937a2.89 2.89 0 0 0-1.828-1.828l-1.937-.645a.361.361 0 0 1 0-.686l1.937-.645a2.89 2.89 0 0 0 1.828-1.828zM3.794 1.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387A1.73 1.73 0 0 0 4.593 5.69l-.387 1.162a.217.217 0 0 1-.412 0L3.407 5.69A1.73 1.73 0 0 0 2.31 4.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387A1.73 1.73 0 0 0 3.407 2.31zM10.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.16 1.16 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.16 1.16 0 0 0-.732-.732L9.1 2.137a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732z"},child:[]}]})(e)}function UT(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"},child:[]}]})(e)}const sM=({className:e,componentType:t,children:n})=>{const[r,o]=U.useState(!1),{globalClassName:a}=at(),u=f=>{o(f.open)},c=U.useCallback(()=>{o(!1)},[]),d=U.useMemo(()=>({closeMenu:c}),[c]);return w.jsxs(eM,{open:r,onOpenChange:u,positioning:{placement:"bottom-end"},children:[w.jsx(BT,{"aria-label":`Overflow menu for ${t}`,className:W(`${j}-overflow-menu-button-trigger`,`${j}-icon-button`,a,e,`cim-${t}-component`),children:w.jsx(UT,{})}),w.jsx(Gb,{children:w.jsx(Yb,{className:W(`${j}-overflow-menu-list`,a,`cim-${t}-component`),children:w.jsx(bb.Provider,{value:d,children:n})})})]})};function HT(e){return zt({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M15 4.00008H13V11.0001H20V9.00008H16.4142L20.7071 4.70718L19.2929 3.29297L15 7.58586V4.00008ZM4.00008 15H7.58586L3.29297 19.2929L4.70718 20.7071L9.00008 16.4142V20H11.0001V13H4.00008V15Z"},child:[]}]})(e)}function zT(e){return zt({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17.5858 5H14V3H21V10H19V6.41421L14.7071 10.7071L13.2929 9.29289L17.5858 5ZM3 14H5V17.5858L9.29289 13.2929L10.7071 14.7071L6.41421 19H10V21H3V14Z"},child:[]}]})(e)}const[aM,To]=Eo({name:"CarouselContext",hookName:"useCarouselContext",providerName:"<CarouselProvider />"}),jT=U.forwardRef((e,t)=>{const n=To(),r=Yt(n.getControlProps(),e);return w.jsx(mn.div,me(F(F({},r),e),{ref:t}))});jT.displayName="CarouselControl";const $T=U.forwardRef((e,t)=>{const[n,r]=Xa()(e,["readOnly","index"]),o=To(),a=Yt(o.getIndicatorProps(n),r);return w.jsx(mn.button,me(F({},a),{ref:t}))});$T.displayName="CarouselIndicator";const VT=U.forwardRef((e,t)=>{const n=To(),r=Yt(n.getIndicatorGroupProps(),e);return w.jsx(mn.div,me(F({},r),{ref:t}))});VT.displayName="CarouselIndicatorGroup";const qT=U.forwardRef((e,t)=>{const[n,r]=Xa()(e,["index","snapAlign"]),o=To(),a=Yt(o.getItemProps(n),r);return w.jsx(mn.div,me(F({},a),{ref:t}))});qT.displayName="CarouselItem";const YT=U.forwardRef((e,t)=>{const n=To(),r=Yt(n.getItemGroupProps(),e);return w.jsx(mn.div,me(F({},r),{ref:t}))});YT.displayName="CarouselItemGroup";const GT=U.forwardRef((e,t)=>{const n=To(),r=Yt(n.getNextTriggerProps(),e);return w.jsx(mn.button,me(F({},r),{ref:t}))});GT.displayName="CarouselNextTrigger";const WT=U.forwardRef((e,t)=>{const n=To(),r=Yt(n.getPrevTriggerProps(),e);return w.jsx(mn.button,me(F({},r),{ref:t}))});WT.displayName="CarouselPrevTrigger";function uM(e){const t=gs(e),n=e.getBoundingClientRect();let r=t.getPropertyValue("scroll-padding-left").replace("auto","0px"),o=t.getPropertyValue("scroll-padding-top").replace("auto","0px"),a=t.getPropertyValue("scroll-padding-right").replace("auto","0px"),u=t.getPropertyValue("scroll-padding-bottom").replace("auto","0px");function c(T,y){let _=parseFloat(T);return/%/.test(T)&&(_/=100,_*=y),Number.isNaN(_)?0:_}let d=c(r,n.width),f=c(o,n.height),p=c(a,n.width),g=c(u,n.height);return{x:{before:d,after:p},y:{before:f,after:g}}}function lM(e,t,n="both"){return n==="x"&&e.right>=t.left&&e.left<=t.right||n==="y"&&e.bottom>=t.top&&e.top<=t.bottom||n==="both"&&e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}function XT(e){let t=[];for(const n of e.children)t=t.concat(n,XT(n));return t}function KT(e,t=!1){const n=e.getBoundingClientRect(),r={x:{start:[],center:[],end:[]},y:{start:[],center:[],end:[]}},o=t?XT(e):e.children;for(const a of["x","y"]){const u=a==="x"?"y":"x",c=a==="x"?"left":"top",d=a==="x"?"width":"height",f=a==="x"?"scrollLeft":"scrollTop";for(const p of o){const g=p.getBoundingClientRect();if(!lM(n,g,u))continue;const T=gs(p);let[y,_]=T.getPropertyValue("scroll-snap-align").split(" ");typeof _=="undefined"&&(_=y);const S=a==="x"?_:y,k=g[c]-n[c]+e[f];switch(S){case"none":break;case"start":r[a].start.push({node:p,position:k});break;case"center":r[a].center.push({node:p,position:k+g[d]/2});break;case"end":r[a].end.push({node:p,position:k+g[d]});break}}}return r}function QT(e){const t=e.getBoundingClientRect(),n=uM(e),r=KT(e),o={x:e.scrollWidth-e.offsetWidth,y:e.scrollHeight-e.offsetHeight};return{x:JT([...r.x.start.map(a=>a.position-n.x.before),...r.x.center.map(a=>a.position-t.width/2),...r.x.end.map(a=>a.position-t.width+n.x.after)].map(ZT(0,o.x))),y:JT([...r.y.start.map(a=>a.position-n.y.before),...r.y.center.map(a=>a.position-t.height/2),...r.y.end.map(a=>a.position-t.height+n.y.after)].map(ZT(0,o.y)))}}function cM(e,t,n){const r=KT(e),o=[...r[t].start,...r[t].center,...r[t].end];for(const a of o)if(n(a.node))return a.position}var JT=e=>[...new Set(e)],ZT=(e,t)=>n=>Math.max(e,Math.min(t,n)),dM=yo("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger"),ui=dM.build(),fM=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.root)!=null?n:`carousel:${e.id}`},hM=(e,t)=>{var n,r,o;return(o=(r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))!=null?o:`carousel:${e.id}:item:${t}`},fc=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.itemGroup)!=null?n:`carousel:${e.id}:item-group`},pM=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.nextTrigger)!=null?n:`carousel:${e.id}:next-trigger`},mM=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.prevTrigger)!=null?n:`carousel:${e.id}:prev-trigger`},gM=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.indicatorGroup)!=null?n:`carousel:${e.id}:indicator-group`},e_=(e,t)=>{var n,r,o;return(o=(r=(n=e.ids)==null?void 0:n.indicator)==null?void 0:r.call(n,t))!=null?o:`carousel:${e.id}:indicator:${t}`},In=e=>e.getById(fc(e)),t_=e=>DD(In(e),"[data-part=item]"),EM=(e,t)=>e.getById(e_(e,t)),n_=e=>{const t=In(e);if(!t)return;const n=Es(t);t.setAttribute("tabindex",n.length>0?"-1":"0")};function yM(e,t){const{state:n,context:r,computed:o,send:a,scope:u,prop:c}=e,d=n.matches("autoplay"),f=n.matches("dragging"),p=o("canScrollNext"),g=o("canScrollPrev"),T=o("isHorizontal"),y=Array.from(r.get("pageSnapPoints")),_=r.get("page"),S=c("slidesPerPage"),k=c("padding"),v=c("translations");return{isPlaying:d,isDragging:f,page:_,pageSnapPoints:y,canScrollNext:p,canScrollPrev:g,getProgress(){return _/y.length},scrollToIndex(N,C){a({type:"INDEX.SET",index:N,instant:C})},scrollTo(N,C){a({type:"PAGE.SET",index:N,instant:C})},scrollNext(N){a({type:"PAGE.NEXT",instant:N})},scrollPrev(N){a({type:"PAGE.PREV",instant:N})},play(){a({type:"AUTOPLAY.START"})},pause(){a({type:"AUTOPLAY.PAUSE"})},isInView(N){return Array.from(r.get("slidesInView")).includes(N)},refresh(){a({type:"SNAP.REFRESH"})},getRootProps(){return t.element(me(F({},ui.root.attrs),{id:fM(u),role:"region","aria-roledescription":"carousel","data-orientation":c("orientation"),dir:c("dir"),style:{"--slides-per-page":S,"--slide-spacing":c("spacing"),"--slide-item-size":"calc(100% / var(--slides-per-page) - var(--slide-spacing) * (var(--slides-per-page) - 1) / var(--slides-per-page))"}}))},getItemGroupProps(){return t.element(me(F({},ui.itemGroup.attrs),{id:fc(u),"data-orientation":c("orientation"),"data-dragging":fs(f),dir:c("dir"),"aria-live":d?"off":"polite",onFocus(N){hs(N.currentTarget,br(N))&&a({type:"VIEWPORT.FOCUS"})},onBlur(N){hs(N.currentTarget,N.relatedTarget)||a({type:"VIEWPORT.BLUR"})},onMouseDown(N){if(N.defaultPrevented||!c("allowMouseDrag")||!Ib(N))return;const C=br(N);Br(C)&&C!==N.currentTarget||(N.preventDefault(),a({type:"DRAGGING.START"}))},onWheel:D6(N=>{const C=c("orientation")==="horizontal"?"deltaX":"deltaY";N[C]<0&&!o("canScrollPrev")||N[C]>0&&!o("canScrollNext")||a({type:"USER.SCROLL"})},150),onTouchStart(){a({type:"USER.SCROLL"})},style:{display:"grid",gap:"var(--slide-spacing)",scrollSnapType:[T?"x":"y",c("snapType")].join(" "),gridAutoFlow:T?"column":"row",scrollbarWidth:"none",overscrollBehaviorX:"contain",[T?"gridAutoColumns":"gridAutoRows"]:"var(--slide-item-size)",[T?"scrollPaddingInline":"scrollPaddingBlock"]:k,[T?"paddingInline":"paddingBlock"]:k,[T?"overflowX":"overflowY"]:"auto"}}))},getItemProps(N){const C=r.get("slidesInView").includes(N.index);return t.element(me(F({},ui.item.attrs),{id:hM(u,N.index),dir:c("dir"),role:"group","data-index":N.index,"data-inview":fs(C),"aria-roledescription":"slide","data-orientation":c("orientation"),"aria-label":v.item(N.index,c("slideCount")),"aria-hidden":Ab(!C),style:{scrollSnapAlign:(()=>{var re;const M=(re=N.snapAlign)!=null?re:"start",V=c("slidesPerMove"),D=V==="auto"?Math.floor(c("slidesPerPage")):V;return(N.index+D)%D===0?M:void 0})()}}))},getControlProps(){return t.element(me(F({},ui.control.attrs),{"data-orientation":c("orientation")}))},getPrevTriggerProps(){return t.button(me(F({},ui.prevTrigger.attrs),{id:mM(u),type:"button",disabled:!g,dir:c("dir"),"aria-label":v.prevTrigger,"data-orientation":c("orientation"),"aria-controls":fc(u),onClick(N){N.defaultPrevented||a({type:"PAGE.PREV",src:"trigger"})}}))},getNextTriggerProps(){return t.button(me(F({},ui.nextTrigger.attrs),{dir:c("dir"),id:pM(u),type:"button","aria-label":v.nextTrigger,"data-orientation":c("orientation"),"aria-controls":fc(u),disabled:!p,onClick(N){N.defaultPrevented||a({type:"PAGE.NEXT",src:"trigger"})}}))},getIndicatorGroupProps(){return t.element(me(F({},ui.indicatorGroup.attrs),{dir:c("dir"),id:gM(u),"data-orientation":c("orientation"),onKeyDown(N){if(N.defaultPrevented)return;const C="indicator",M={ArrowDown(K){T||(a({type:"PAGE.NEXT",src:C}),K.preventDefault())},ArrowUp(K){T||(a({type:"PAGE.PREV",src:C}),K.preventDefault())},ArrowRight(K){T&&(a({type:"PAGE.NEXT",src:C}),K.preventDefault())},ArrowLeft(K){T&&(a({type:"PAGE.PREV",src:C}),K.preventDefault())},Home(K){a({type:"PAGE.SET",index:0,src:C}),K.preventDefault()},End(K){a({type:"PAGE.SET",index:y.length-1,src:C}),K.preventDefault()}},V=yD(N,{dir:c("dir"),orientation:c("orientation")}),D=M[V];D==null||D(N)}}))},getIndicatorProps(N){return t.button(me(F({},ui.indicator.attrs),{dir:c("dir"),id:e_(u,N.index),type:"button","data-orientation":c("orientation"),"data-index":N.index,"data-readonly":fs(N.readOnly),"data-current":fs(N.index===_),"aria-label":v.indicator(N.index),onClick(C){C.defaultPrevented||N.readOnly||a({type:"PAGE.SET",index:N.index,src:"indicator"})}}))},getAutoplayTriggerProps(){return t.button(me(F({},ui.autoplayTrigger.attrs),{type:"button","data-orientation":c("orientation"),"data-pressed":fs(d),"aria-label":d?v.autoplayStop:v.autoplayStart,onClick(N){N.defaultPrevented||a({type:d?"AUTOPLAY.PAUSE":"AUTOPLAY.START"})}}))}}}var bM={props({props:e}){return z6(e,["slideCount"],"carousel"),me(F({dir:"ltr",defaultPage:0,orientation:"horizontal",snapType:"mandatory",loop:!!e.autoplay,slidesPerPage:1,slidesPerMove:"auto",spacing:"0px",autoplay:!1,allowMouseDrag:!1,inViewThreshold:.6},e),{translations:F({nextTrigger:"Next slide",prevTrigger:"Previous slide",indicator:t=>`Go to slide ${t+1}`,item:(t,n)=>`${t+1} of ${n}`,autoplayStart:"Start slide rotation",autoplayStop:"Stop slide rotation"},e.translations)})},refs(){return{timeoutRef:void 0}},initialState({prop:e}){return e("autoplay")?"autoplay":"idle"},context({prop:e,bindable:t,getContext:n}){return{page:t(()=>({defaultValue:e("defaultPage"),value:e("page"),onChange(r){var u;const a=n().get("pageSnapPoints");(u=e("onPageChange"))==null||u({page:r,pageSnapPoint:a[r]})}})),pageSnapPoints:t(()=>({defaultValue:TM(e("slideCount"),e("slidesPerMove"),e("slidesPerPage"))})),slidesInView:t(()=>({defaultValue:[]}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",isHorizontal:({prop:e})=>e("orientation")==="horizontal",canScrollNext:({prop:e,context:t})=>e("loop")||t.get("page")<t.get("pageSnapPoints").length-1,canScrollPrev:({prop:e,context:t})=>e("loop")||t.get("page")>0,autoplayInterval:({prop:e})=>{const t=e("autoplay");return w6(t)?t.delay:4e3}},watch({track:e,action:t,context:n,prop:r,send:o}){e([()=>r("slidesPerPage"),()=>r("slidesPerMove")],()=>{t(["setSnapPoints"])}),e([()=>n.get("page")],()=>{t(["scrollToPage","focusIndicatorEl"])}),e([()=>r("orientation")],()=>{t(["setSnapPoints","scrollToPage"])}),e([()=>r("slideCount")],()=>{o({type:"SNAP.REFRESH",src:"slide.count"})}),e([()=>!!r("autoplay")],()=>{o({type:r("autoplay")?"AUTOPLAY.START":"AUTOPLAY.PAUSE",src:"autoplay.prop.change"})})},on:{"PAGE.NEXT":{target:"idle",actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{target:"idle",actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{target:"idle",actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{target:"idle",actions:["clearScrollEndTimer","setMatchingPage"]},"SNAP.REFRESH":{actions:["setSnapPoints","clampPage"]},"PAGE.SCROLL":{actions:["scrollToPage"]}},effects:["trackSlideMutation","trackSlideIntersections","trackSlideResize"],entry:["setSnapPoints","setPage"],exit:["clearScrollEndTimer"],states:{idle:{on:{"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.START":{target:"autoplay",actions:["invokeAutoplayStart"]},"USER.SCROLL":{target:"userScroll"},"VIEWPORT.FOCUS":{target:"focus"}}},focus:{effects:["trackKeyboardScroll"],on:{"VIEWPORT.BLUR":{target:"idle"},"PAGE.NEXT":{actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{actions:["clearScrollEndTimer","setMatchingPage"]},"USER.SCROLL":{target:"userScroll"}}},dragging:{effects:["trackPointerMove"],entry:["disableScrollSnap"],on:{DRAGGING:{actions:["scrollSlides","invokeDragging"]},"DRAGGING.END":{target:"idle",actions:["endDragging","invokeDraggingEnd"]}}},userScroll:{effects:["trackScroll"],on:{"SCROLL.END":[{guard:"isFocused",target:"focus",actions:["setClosestPage"]},{target:"idle",actions:["setClosestPage"]}]}},autoplay:{effects:["trackDocumentVisibility","trackScroll","autoUpdateSlide"],exit:["invokeAutoplayEnd"],on:{"AUTOPLAY.TICK":{actions:["setNextPage","invokeAutoplay"]},"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.PAUSE":{target:"idle"}}}},implementations:{guards:{isFocused:({scope:e})=>e.isActiveElement(In(e))},effects:{autoUpdateSlide({computed:e,send:t}){const n=setInterval(()=>{t({type:e("canScrollNext")?"AUTOPLAY.TICK":"AUTOPLAY.PAUSE",src:"autoplay.interval"})},e("autoplayInterval"));return()=>clearInterval(n)},trackSlideMutation({scope:e,send:t}){const n=In(e);if(!n)return;const r=e.getWin(),o=new r.MutationObserver(()=>{t({type:"SNAP.REFRESH",src:"slide.mutation"}),n_(e)});return n_(e),o.observe(n,{childList:!0,subtree:!0}),()=>o.disconnect()},trackSlideResize({scope:e,send:t}){if(!In(e))return;const r=e.getWin(),o=()=>{t({type:"SNAP.REFRESH",src:"slide.resize"})};qt(()=>{o(),qt(()=>{t({type:"PAGE.SCROLL",instant:!0})})});const a=new r.ResizeObserver(o);return t_(e).forEach(u=>a.observe(u)),()=>a.disconnect()},trackSlideIntersections({scope:e,prop:t,context:n}){const r=In(e),o=e.getWin(),a=new o.IntersectionObserver(u=>{const c=u.reduce((d,f)=>{var T;const p=f.target,g=Number((T=p.dataset.index)!=null?T:"-1");return g==null||Number.isNaN(g)||g===-1?d:f.isIntersecting?b6(d,g):T6(d,g)},n.get("slidesInView"));n.set("slidesInView",_6(c))},{root:r,threshold:t("inViewThreshold")});return t_(e).forEach(u=>a.observe(u)),()=>a.disconnect()},trackScroll({send:e,refs:t,scope:n}){const r=In(n);return r?en(r,"scroll",()=>{clearTimeout(t.get("timeoutRef")),t.set("timeoutRef",void 0),t.set("timeoutRef",setTimeout(()=>{e({type:"SCROLL.END"})},150))},{passive:!0}):void 0},trackDocumentVisibility({scope:e,send:t}){const n=e.getDoc();return en(n,"visibilitychange",()=>{n.visibilityState!=="visible"&&t({type:"AUTOPLAY.PAUSE",src:"doc.hidden"})})},trackPointerMove({scope:e,send:t}){const n=e.getDoc();return ID(n,{onPointerMove({event:r}){t({type:"DRAGGING",left:-r.movementX,top:-r.movementY})},onPointerUp(){t({type:"DRAGGING.END"})}})},trackKeyboardScroll({scope:e,send:t,context:n}){const r=e.getWin();return en(r,"keydown",a=>{switch(a.key){case"ArrowRight":a.preventDefault(),t({type:"PAGE.NEXT"});break;case"ArrowLeft":a.preventDefault(),t({type:"PAGE.PREV"});break;case"Home":a.preventDefault(),t({type:"PAGE.SET",index:0});break;case"End":a.preventDefault(),t({type:"PAGE.SET",index:n.get("pageSnapPoints").length-1})}},{capture:!0})}},actions:{clearScrollEndTimer({refs:e}){e.get("timeoutRef")!=null&&(clearTimeout(e.get("timeoutRef")),e.set("timeoutRef",void 0))},scrollToPage({context:e,event:t,scope:n,computed:r,flush:o}){var f;const a=t.instant?"instant":"smooth",u=wb((f=t.index)!=null?f:e.get("page"),0,e.get("pageSnapPoints").length-1),c=In(n);if(!c)return;const d=r("isHorizontal")?"left":"top";o(()=>{c.scrollTo({[d]:e.get("pageSnapPoints")[u],behavior:a})})},setClosestPage({context:e,scope:t,computed:n}){const r=In(t);if(!r)return;const o=n("isHorizontal")?r.scrollLeft:r.scrollTop,a=e.get("pageSnapPoints").findIndex(u=>Math.abs(u-o)<1);a!==-1&&e.set("page",a)},setNextPage({context:e,prop:t,state:n}){const r=n.matches("autoplay")||t("loop"),o=_b(e.get("pageSnapPoints"),e.get("page"),{loop:r});e.set("page",o)},setPrevPage({context:e,prop:t,state:n}){const r=n.matches("autoplay")||t("loop"),o=S6(e.get("pageSnapPoints"),e.get("page"),{loop:r});e.set("page",o)},setMatchingPage({context:e,event:t,computed:n,scope:r}){const o=In(r);if(!o)return;const a=cM(o,n("isHorizontal")?"x":"y",c=>c.dataset.index===t.index.toString());if(a==null)return;const u=e.get("pageSnapPoints").findIndex(c=>Math.abs(c-a)<1);e.set("page",u)},setPage({context:e,event:t}){var r;const n=(r=t.index)!=null?r:e.get("page");e.set("page",n)},clampPage({context:e}){const t=wb(e.get("page"),0,e.get("pageSnapPoints").length-1);e.set("page",t)},setSnapPoints({context:e,computed:t,scope:n}){const r=In(n);if(!r)return;const o=QT(r);e.set("pageSnapPoints",t("isHorizontal")?o.x:o.y)},disableScrollSnap({scope:e}){const t=In(e);if(!t)return;const n=getComputedStyle(t);t.dataset.scrollSnapType=n.getPropertyValue("scroll-snap-type"),t.style.setProperty("scroll-snap-type","none")},scrollSlides({scope:e,event:t}){const n=In(e);n==null||n.scrollBy({left:t.left,top:t.top,behavior:"instant"})},endDragging({scope:e,context:t,computed:n}){const r=In(e);if(!r)return;const o=r.scrollLeft,a=r.scrollTop,u=QT(r),c=u.x.reduce((f,p)=>Math.abs(p-o)<Math.abs(f-o)?p:f,u.x[0]),d=u.y.reduce((f,p)=>Math.abs(p-a)<Math.abs(f-a)?p:f,u.y[0]);qt(()=>{r.scrollTo({left:c,top:d,behavior:"smooth"});const f=n("isHorizontal")?c:d;t.set("page",t.get("pageSnapPoints").indexOf(f));const p=r.dataset.scrollSnapType;p&&(r.style.setProperty("scroll-snap-type",p),delete r.dataset.scrollSnapType)})},focusIndicatorEl({context:e,event:t,scope:n}){if(t.src!=="indicator")return;const r=EM(n,e.get("page"));r&&qt(()=>r.focus({preventScroll:!0}))},invokeDragStart({context:e,prop:t}){var n;(n=t("onDragStatusChange"))==null||n({type:"dragging.start",isDragging:!0,page:e.get("page")})},invokeDragging({context:e,prop:t}){var n;(n=t("onDragStatusChange"))==null||n({type:"dragging",isDragging:!0,page:e.get("page")})},invokeDraggingEnd({context:e,prop:t}){var n;(n=t("onDragStatusChange"))==null||n({type:"dragging.end",isDragging:!1,page:e.get("page")})},invokeAutoplay({context:e,prop:t}){var n;(n=t("onAutoplayStatusChange"))==null||n({type:"autoplay",isPlaying:!0,page:e.get("page")})},invokeAutoplayStart({context:e,prop:t}){var n;(n=t("onAutoplayStatusChange"))==null||n({type:"autoplay.start",isPlaying:!0,page:e.get("page")})},invokeAutoplayEnd({context:e,prop:t}){var n;(n=t("onAutoplayStatusChange"))==null||n({type:"autoplay.stop",isPlaying:!1,page:e.get("page")})}}}};function TM(e,t,n){if(e==null||n<=0)return[];const r=[],o=t==="auto"?Math.floor(n):t;if(o<=0)return[];for(let a=0;a<e&&!(a+n>e);a+=o)r.push(a);return r}Ts()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","onDragStatusChange","onAutoplayStatusChange"]),Ts()(["index","readOnly"]),Ts()(["index","snapAlign"]);const _M=e=>{const t=U.useId(),{getRootNode:n}=dc(),{dir:r}=lp(),o=F({id:t,dir:r,getRootNode:n},e),a=Jl(bM,o);return yM(a,$h)},r_=U.forwardRef((e,t)=>{const[n,r]=Xa()(e,["allowMouseDrag","autoplay","defaultPage","id","ids","inViewThreshold","loop","onAutoplayStatusChange","onDragStatusChange","onPageChange","orientation","padding","page","slideCount","slidesPerMove","slidesPerPage","snapType","spacing","translations"]),o=_M(n),a=Yt(o.getRootProps(),r);return w.jsx(aM,{value:o,children:w.jsx(mn.div,me(F({},a),{ref:t}))})});r_.displayName="CarouselRoot";const SM=180,xM=e=>{const t=e.trim(),n=parseFloat(t);return Number.isNaN(n)?0:t.endsWith("rem")?n*16:n},wM=({globalClassName:e,className:t,itemMinWidth:n=SM,spacing:r="0.5rem",loop:o=!1,allowMouseDrag:a=!0,showIndicators:u=!0,showNavigation:c=!0,onPageChange:d,ariaLabel:f="Product carousel",children:p})=>{const g=Array.from(p),T=g.length,y=U.useRef(null),[_,S]=U.useState(0),{width:k}=Sv();U.useLayoutEffect(()=>{y.current&&S(y.current.getBoundingClientRect().width)},[k,T]);const v=xM(r),N=n+v,C=_>0?(_+v)/N:1,M=Math.max(1,Math.floor(C));if(T===0)return null;const V=T>M,D=Math.ceil(T/M),K=V?Math.max(1,C):M;return w.jsxs(r_,{ref:y,className:W(e,t,`${j}-carousel`),slidesPerPage:K,slidesPerMove:M,spacing:r,loop:o,allowMouseDrag:a,slideCount:T,onPageChange:d,"aria-label":f,children:[w.jsx(YT,{className:W(e,`${j}-carousel__item-group`,{"carousel-row-container":!V}),children:g.map((re,be)=>w.jsx(qT,{index:be,className:W(e,`${j}-carousel__item`),children:re},be))}),c&&V&&w.jsxs(jT,{className:W(e,`${j}-carousel__control`),children:[w.jsx(WT,{className:W(e,`${j}-carousel__prev-trigger`),"aria-label":"Previous slide",children:w.jsx(rM,{})}),w.jsx(GT,{className:W(e,`${j}-carousel__next-trigger`),"aria-label":"Next slide",children:w.jsx(iM,{})})]}),u&&V&&w.jsx(VT,{className:W(e,`${j}-carousel__indicator-group`),children:Array.from({length:D},(re,be)=>w.jsx($T,{index:be,className:W(e,`${j}-carousel__indicator`),"aria-label":`Go to slide group ${be+1}`},be))})]})},[CM,AM]=Eo({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),vM=e=>Xa()(e,["lazyMount","unmountOnExit"]),[kM,nu]=Eo({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),i_=U.forwardRef((e,t)=>{const n=nu(),r=AM(),o=Yh(me(F({},r),{present:n.open})),a=Yt(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:w.jsx(mn.div,me(F({},a),{ref:Zl(o.ref,t)}))});i_.displayName="DialogBackdrop";const cp=U.forwardRef((e,t)=>{const n=nu(),r=Wa(),o=Yt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:w.jsx(mn.div,me(F({},o),{ref:Zl(r.ref,t)}))});cp.displayName="DialogContent";const dp=U.forwardRef((e,t)=>{const n=nu(),r=Yt(n.getDescriptionProps(),e);return w.jsx(mn.div,me(F({},r),{ref:t}))});dp.displayName="DialogDescription";const fp=U.forwardRef((e,t)=>{const n=nu(),r=Yt(n.getPositionerProps(),e);return Wa().unmounted?null:w.jsx(mn.div,me(F({},r),{ref:t}))});fp.displayName="DialogPositioner";var PM=yo("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),_o=PM.build(),o_=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.positioner)!=null?n:`dialog:${e.id}:positioner`},s_=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.backdrop)!=null?n:`dialog:${e.id}:backdrop`},hp=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.content)!=null?n:`dialog:${e.id}:content`},a_=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.trigger)!=null?n:`dialog:${e.id}:trigger`},pp=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.title)!=null?n:`dialog:${e.id}:title`},mp=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.description)!=null?n:`dialog:${e.id}:description`},u_=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.closeTrigger)!=null?n:`dialog:${e.id}:close`},hc=e=>e.getById(hp(e)),NM=e=>e.getById(o_(e)),OM=e=>e.getById(s_(e)),IM=e=>e.getById(a_(e)),RM=e=>e.getById(pp(e)),LM=e=>e.getById(mp(e)),DM=e=>e.getById(u_(e));function MM(e,t){const{state:n,send:r,context:o,prop:a,scope:u}=e,c=a("aria-label"),d=n.matches("open");return{open:d,setOpen(f){n.matches("open")!==f&&r({type:f?"OPEN":"CLOSE"})},getTriggerProps(){return t.button(me(F({},_o.trigger.attrs),{dir:a("dir"),id:a_(u),"aria-haspopup":"dialog",type:"button","aria-expanded":d,"data-state":d?"open":"closed","aria-controls":hp(u),onClick(f){f.defaultPrevented||r({type:"TOGGLE"})}}))},getBackdropProps(){return t.element(me(F({},_o.backdrop.attrs),{dir:a("dir"),hidden:!d,id:s_(u),"data-state":d?"open":"closed"}))},getPositionerProps(){return t.element(me(F({},_o.positioner.attrs),{dir:a("dir"),id:o_(u),style:{pointerEvents:d?void 0:"none"}}))},getContentProps(){const f=o.get("rendered");return t.element(me(F({},_o.content.attrs),{dir:a("dir"),role:a("role"),hidden:!d,id:hp(u),tabIndex:-1,"data-state":d?"open":"closed","aria-modal":!0,"aria-label":c||void 0,"aria-labelledby":c||!f.title?void 0:pp(u),"aria-describedby":f.description?mp(u):void 0}))},getTitleProps(){return t.element(me(F({},_o.title.attrs),{dir:a("dir"),id:pp(u)}))},getDescriptionProps(){return t.element(me(F({},_o.description.attrs),{dir:a("dir"),id:mp(u)}))},getCloseTriggerProps(){return t.button(me(F({},_o.closeTrigger.attrs),{dir:a("dir"),id:u_(u),type:"button",onClick(f){f.defaultPrevented||(f.stopPropagation(),r({type:"CLOSE"}))}}))}}}var FM={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>DM(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return F({role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r},e)},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return vT(()=>hc(e),{type:"dialog",defer:!0,pointerBlocking:n("modal"),exclude:[IM(e)],onInteractOutside(o){var a;(a=n("onInteractOutside"))==null||a(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(o){var a;(a=n("onEscapeKeyDown"))==null||a(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return IT(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?NT(()=>hc(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>{var o,a;return(a=(o=t("finalFocusEl"))==null?void 0:o())!=null?a:r},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?yT(()=>[hc(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){qt(()=>{e.set("rendered",{title:!!RM(t),description:!!LM(t)})})},syncZIndex({scope:e}){qt(()=>{const t=hc(e);if(!t)return;const n=gs(t);[NM(e),OM(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",n.zIndex),o==null||o.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};Ts()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const BM=e=>{const t=U.useId(),{getRootNode:n}=dc(),{dir:r}=lp(),o=F({id:t,getRootNode:n,dir:r},e),a=Jl(FM,o);return MM(a,$h)},l_=e=>{const[t,c]=Wb(e),d=c,{children:n}=d,r=ln(d,["children"]),[o]=vM(t),a=BM(r),u=Yh(Yt({present:a.open},t));return w.jsx(kM,{value:a,children:w.jsx(CM,{value:o,children:w.jsx(qb,{value:u,children:n})})})},c_=U.forwardRef((e,t)=>{const n=nu(),r=Yt(n.getTitleProps(),e);return w.jsx(mn.h2,me(F({},r),{ref:t}))});c_.displayName="DialogTitle";const UM=({children:e})=>{const[t,n]=U.useState(!1),r=U.useMemo(()=>({toggleMenu:()=>n(a=>!a),closeMenu:()=>n(!1)}),[]),o=U.useMemo(()=>({isOpen:t}),[t]);return w.jsx(Ph.Provider,{value:r,children:w.jsx(yb.Provider,{value:o,children:e})})},d_=()=>U.useContext(yb),f_=()=>{const e=U.useContext(Ph);if(!e)throw new Error("useOverflowMenuDispatch must be used within an OverflowMenuProvider");return e},HM=`${j}-overflow-menu-button-trigger`,zM=({componentType:e,children:t})=>{const{isOpen:n}=d_(),{closeMenu:r}=f_(),{globalClassName:o}=at(),a=U.useRef(null);return U.useEffect(()=>{if(!n)return;const u=d=>{d.key==="Escape"&&r()},c=d=>{const f=d.target;f instanceof Element&&f.closest(`.${HM}`)||a.current&&!a.current.contains(f)&&r()};return document.addEventListener("keydown",u),document.addEventListener("mousedown",c),()=>{document.removeEventListener("keydown",u),document.removeEventListener("mousedown",c)}},[n,r]),n?w.jsx("div",{ref:a,role:"menu","aria-label":`Overflow menu for ${e}`,className:W(`${j}-overflow-panel`,o,`cim-${e}-component`),children:t}):null},jM=({componentType:e,className:t})=>{const{toggleMenu:n}=f_(),{isOpen:r}=d_(),{globalClassName:o}=at();return w.jsx("button",{"aria-label":`Overflow menu for ${e}`,"aria-expanded":r,"aria-haspopup":"menu",className:W(`${j}-overflow-menu-button-trigger`,`${j}-icon-button`,o,t,`cim-${e}-component`),onClick:n,children:w.jsx(UT,{})})},gp=()=>{const{status:e,entryType:t}=Zn(),{messages:n}=er(),r=t==="ask_cim",o=!!(n&&n.length>0),a=!!e.isOpen;return r&&a||!r&&a&&o},$M=({componentType:e,isIcon:t})=>{const{globalClassName:n}=at(),{previousComponentType:r}=Zn(),o=qa(),a=()=>{ml(r||"dialog"),o()};return t?w.jsx(ri,{className:W(n,`${j}-toggle-dialog-button`,`cim-${e}-component`),ariaLabel:"Toggle Dialog",onClick:a,icon:w.jsx(HT,{})}):w.jsxs("button",{className:W(n,`${j}-overflow-menu-button`,`${j}-toggle-dialog-button`,`cim-${e}-component`),onClick:a,children:[w.jsx(HT,{}),"Show ",r||"dialog"]})},VM=({componentType:e,isIcon:t})=>{const{globalClassName:n}=at(),{isModalFullscreen:r}=Zn(),o=qa(),a=()=>{wf(!r),o()},u=r?Nk:Ok,c="Toggle Fullscreen";return t?w.jsx(ri,{ariaLabel:c,title:c,className:W(n,`${j}-modal-fullscreen-button`,`cim-${e}-component`),icon:w.jsx(u,{}),onClick:a}):w.jsxs("button",{className:W(n,`${j}-overflow-menu-button`,`${j}-modal-fullscreen-button`,`cim-${e}-component`),onClick:a,children:[w.jsx(u,{}),c]})},qM=({componentType:e,isIcon:t})=>{const{globalClassName:n}=at(),{dialogPosition:r}=Zn(),o=qa(),a=r==="bottom-left",u=()=>{Cf(a?"bottom-right":"bottom-left"),o()},c=a?nM:tM,d=a?"Move right":"Move left";return t?w.jsx(ri,{className:W(n,`${j}-left-right-toggle-button`,`cim-${e}-component`),ariaLabel:d,onClick:u,icon:w.jsx(c,{})}):w.jsxs("button",{className:W(n,`${j}-overflow-menu-button`,`${j}-left-right-toggle-button`,`cim-${e}-component`),onClick:u,children:[w.jsx(c,{}),d]})},h_=({componentType:e,onClearChat:t,onClose:n})=>{const{headerConfig:r,globalClassName:o}=at(),{mode:a}=Zn(),u=a==="standalone",c=e==="modal",d=c?$M:p_,f=c?VM:qM,p=U.useMemo(()=>r?Rk(r):{},[r]);return w.jsx(UM,{children:w.jsxs("div",{className:W(o,`${j}-${e}-header-wrapper`),style:{display:"flex",flexDirection:"column",position:"relative"},children:[w.jsxs("div",{className:W(o,`${j}-${e}-header`,{standalone:u,embedded:!u}),style:p,children:[(r==null?void 0:r.logoUrl)&&w.jsx("img",{alt:"",role:"img",className:W(o,`${j}-${e}-logo`,{standalone:u,embedded:!u}),src:r.logoUrl}),w.jsx(c_,{className:W(o,`${j}-${e}-title`,{standalone:u,embedded:!u}),children:r==null?void 0:r.headerText}),w.jsxs("div",{className:W(o,`${j}-${e}-controls`),children:[w.jsx(d,{componentType:e,isIcon:!0}),w.jsx(jM,{componentType:e}),w.jsx(N1,{className:W(o,`cim-${e}-component`),onClick:n})]})]}),w.jsxs(zM,{componentType:e,children:[w.jsx(f,{componentType:e}),w.jsx(GM,{componentType:e}),w.jsx(Tb,{componentType:e,onClearChat:t})]})]})})},YM=({className:e,globalClassName:t,suggestions:n,disabled:r,isWidgetStandalone:o,onSuggestionClick:a})=>{const u=o?"standalone":"embedded",c=d=>()=>{a(d)};return w.jsx("div",{className:W(t,`${j}-suggestion-container ${u}`,e),children:n.map(d=>o?w.jsx(bl,{disabled:r,className:W(t,`${j}-suggestion-button standalone`),onClick:c(d),children:d},d):w.jsx("button",{disabled:r,className:W(t,`${j}-suggestion-button embedded`),onClick:c(d),children:d},d))})},GM=({componentType:e,isIcon:t})=>{const{globalClassName:n,enableMinimize:r}=at();if(!r)return null;const o=()=>{Si(!1),pl(!0)};return t?w.jsx(ri,{className:W(n,`${j}-toggle-minimize-button`,`cim-${e}-component`),ariaLabel:"Toggle Minimize",title:"Minimize",onClick:o,icon:w.jsx(k1,{})}):w.jsxs("button",{className:W(n,`${j}-overflow-menu-button`,`${j}-toggle-minimize-button`,`cim-${e}-component`),onClick:o,children:[w.jsx(k1,{}),"Minimize"]})},p_=({componentType:e,isIcon:t})=>{const{globalClassName:n}=at(),r=qa(),o=()=>{ml("modal"),r()};return t?w.jsx(ri,{className:W(n,`${j}-toggle-modal-button`,`cim-${e}-component`),ariaLabel:"Toggle Modal",onClick:o,icon:w.jsx(zT,{})}):w.jsxs("button",{className:W(n,`${j}-overflow-menu-button`,`${j}-toggle-modal-button`,`cim-${e}-component`),onClick:o,children:[w.jsx(zT,{}),"Show modal"]})},WM=({isWidgetStandalone:e})=>{var g;const{globalClassName:t,entryMessage:n,resetConversationMessage:r}=at(),{askCimPrompts:o,messages:a}=er(),{isLoading:u,handleSuggestion:c}=Rr(),d=U.useMemo(()=>{const T=typeof n=="string"?n:"Hi! I'm your Cimulate Co-Pilot. Ask me anything — I can help you find products, compare items, discover trends, and more!";return a.some(_=>_.name==="conversation_reset")&&r||T},[a,n,r]),f=((g=o.message)==null?void 0:g.suggestions)||[],p=(T,y)=>()=>{c(T,y)};return w.jsxs("div",{className:W(t,`${j}-ask-cim-entry-message`,`${j}-message-group`,e?"standalone":"embedded"),children:[w.jsx("p",{className:W(t,`${j}-ask-cim-entry-text`),children:d}),!!(f!=null&&f.length)&&w.jsx("div",{className:W(t,`${j}-ask-cim-suggestions-container`,`${j}-suggestion-container`,e?"standalone":"embedded"),children:f.map(T=>{var y;return w.jsx(bl,{disabled:u,className:W(t,`${j}-ask-cim-suggestion-button`,`${j}-suggestion-button`,e?"standalone":"embedded"),onClick:p(T,((y=o.message)==null?void 0:y.eventSourceId)||""),children:T.displayText},T.displayText)})})]})},XM=({isWidgetStandalone:e,product:t})=>{const{configModule:n,globalClassName:r,openLinksInNewTab:o}=at();if(!n)return null;const a=n.getName(t),u=n.getBrand(t),c=n.getPriceDisplay(t),d=n.getRelativePdp(t),f=n.getPdp(t),p=n.getImage(t),g=d&&typeof d=="string"?new URL(d,window.location.origin).href:f;return w.jsxs("div",{className:W(r,`${j}-product-tile`,{embedded:!e,standalone:e}),children:[g?w.jsx("a",{href:`${g}`,target:o?"_blank":"_self",rel:"noopener noreferrer","aria-label":`Go to product page for ${a}`,children:w.jsx("img",{className:W(r,`${j}-product-tile-image`,{embedded:!e,standalone:e}),src:`${p}`,alt:`${a}`,loading:"lazy"})}):w.jsx("img",{className:W(r,`${j}-product-tile-image`,{embedded:!e,standalone:e}),src:`${p}`,alt:`${a}`,loading:"lazy"}),w.jsxs("div",{className:W(r,`${j}-product-tile-details`,{embedded:!e,standalone:e}),children:[w.jsxs("div",{className:W(r,`${j}-product-tile-content`),children:[u&&w.jsx("p",{className:`${j}-product-tile-brand`,children:u}),g?w.jsxs("a",{"aria-label":`Go to product page for ${a}`,className:W(r,`${j}-product-tile-pdp`),href:`${g}`,target:o?"_blank":"_self",rel:"noopener noreferrer",children:[a," ",w.jsx("span",{className:W(r,`${j}-product-tile-pdp-arrow`),children:"→"})]}):w.jsx("p",{className:W(r,`${j}-product-tile-name`),title:a,children:a})]}),w.jsx("div",{className:W(r,`${j}-product-tile-footer`),children:w.jsx("p",{className:W(r,`${j}-product-tile-price`),children:c})})]})]})},KM=({isWidgetStandalone:e,message:t})=>{const{configModule:n,globalClassName:r}=at(),o=t;return n?w.jsxs("div",{className:W(r,`${j}-display-products`),children:[w.jsx("p",{children:o.message}),o.products&&o.products.length>0&&w.jsx(wM,{globalClassName:r,spacing:"0.5rem",ariaLabel:"Recommended products",children:o.products.map(a=>{const u=n.getPid(a);return w.jsx(XM,{isWidgetStandalone:e,product:a},`${u}`)})})]}):null},QM=({globalClassName:e,message:t,isWidgetStandalone:n})=>w.jsx("div",{className:W(e,`${j}-error-message`,{standalone:n,embedded:!n}),children:w.jsxs("p",{className:W(e,`${j}-error-message-text`,{standalone:n,embedded:!n}),children:[w.jsx(vk,{})," ",t.message||"An error occurred while processing your request."]})}),JM=({globalClassName:e,entryType:t,message:n,isWidgetStandalone:r,handleSuggestionClick:o})=>{var _;const{isLoading:a}=Rr(),{messages:u}=er(),c=u.find(S=>S.id===n.eventSourceId),d=!!c,f=((_=c==null?void 0:c.name)==null?void 0:_.replace("_suggestions",""))||"",p=d?pC(f):null,T=a||!d||!(d&&(p===t||t==="ask_cim")),y=S=>{const k=n.suggestions.find(v=>v.displayText===S);k&&o(k,n.eventSourceId||n.id)};return w.jsxs("div",{className:W(e,`${j}-follow-up`),children:[w.jsx("p",{className:W(e,`${j}-text`),children:n.message}),w.jsx(YM,{suggestions:n.suggestions.map(S=>S.displayText),disabled:T,isWidgetStandalone:r,onSuggestionClick:y,globalClassName:e})]})};function m_(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function ZM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function e8(e,t,n){const o=Nl((n||{}).ignore||[]),a=t8(t);let u=-1;for(;++u<a.length;)zE(e,"text",c);function c(f,p){let g=-1,T;for(;++g<p.length;){const y=p[g],_=T?T.children:void 0;if(o(y,_?_.indexOf(y):void 0,T))return;T=y}if(T)return d(f,p)}function d(f,p){const g=p[p.length-1],T=a[u][0],y=a[u][1];let _=0;const k=g.children.indexOf(f);let v=!1,N=[];T.lastIndex=0;let C=T.exec(f.value);for(;C;){const M=C.index,V={index:C.index,input:C.input,stack:[...p,f]};let D=y(...C,V);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?T.lastIndex=M+1:(_!==M&&N.push({type:"text",value:f.value.slice(_,M)}),Array.isArray(D)?N.push(...D):D&&N.push(D),_=M+C[0].length,v=!0),!T.global)break;C=T.exec(f.value)}return v?(_<f.value.length&&N.push({type:"text",value:f.value.slice(_)}),g.children.splice(k,1,...N)):N=[f],k+N.length}}function t8(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([n8(o[0]),r8(o[1])])}return t}function n8(e){return typeof e=="string"?new RegExp(ZM(e),"g"):e}function r8(e){return typeof e=="function"?e:function(){return e}}const Ep="phrasing",yp=["autolink","link","image","label"];function i8(){return{transforms:[d8],enter:{literalAutolink:s8,literalAutolinkEmail:bp,literalAutolinkHttp:bp,literalAutolinkWww:bp},exit:{literalAutolink:c8,literalAutolinkEmail:l8,literalAutolinkHttp:a8,literalAutolinkWww:u8}}}function o8(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ep,notInConstruct:yp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ep,notInConstruct:yp},{character:":",before:"[ps]",after:"\\/",inConstruct:Ep,notInConstruct:yp}]}}function s8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function bp(e){this.config.enter.autolinkProtocol.call(this,e)}function a8(e){this.config.exit.autolinkProtocol.call(this,e)}function u8(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function l8(e){this.config.exit.autolinkEmail.call(this,e)}function c8(e){this.exit(e)}function d8(e){e8(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,f8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),h8]],{ignore:["link","linkReference"]})}function f8(e,t,n,r,o){let a="";if(!g_(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!p8(n)))return!1;const u=m8(n+r);if(!u[0])return!1;const c={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[c,{type:"text",value:u[1]}]:c}function h8(e,t,n,r){return!g_(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function p8(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function m8(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=m_(e,"(");let a=m_(e,")");for(;r!==-1&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function g_(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ao(n)||xl(n))&&(!t||n!==47)}E_.peek=w8;function g8(){this.buffer()}function E8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function y8(){this.buffer()}function b8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function T8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Er(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _8(e){this.exit(e)}function S8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Er(this.sliceSerialize(e)).toLowerCase(),n.label=t}function x8(e){this.exit(e)}function w8(){return"["}function E_(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const u=n.enter("footnoteReference"),c=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),c(),u(),a+=o.move("]"),a}function C8(){return{enter:{gfmFootnoteCallString:g8,gfmFootnoteCall:E8,gfmFootnoteDefinitionLabelString:y8,gfmFootnoteDefinition:b8},exit:{gfmFootnoteCallString:T8,gfmFootnoteCall:_8,gfmFootnoteDefinitionLabelString:S8,gfmFootnoteDefinition:x8}}}function A8(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:E_},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,u){const c=a.createTracker(u);let d=c.move("[^");const f=a.enter("footnoteDefinition"),p=a.enter("label");return d+=c.move(a.safe(a.associationId(r),{before:d,after:"]"})),p(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
31
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const lo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ry={}.hasOwnProperty,WI=Object.prototype;function XI(e,t){const n=t||{};return fh({file:n.file||void 0,location:!1,schema:n.space==="svg"?Zo:Tl,verbose:n.verbose||!1},e)}function fh(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Ll(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:iy(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const a=String(e.file),u=GI(a),c=u.toPoint(0),d=u.toPoint(a.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Ll(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Ll(e,r,n),n}default:return n=KI(e,t),n}}function iy(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=fh(e,t[n]);r.push(o)}return r}function KI(e,t){const n=e.schema;e.schema=t.namespaceURI===lo.svg?Zo:Tl;let r=-1;const o={};for(;++r<t.attrs.length;){const c=t.attrs[r],d=(c.prefix?c.prefix+":":"")+c.name;ry.call(WI,d)||(o[d]=c.value)}const u=(e.schema.space==="svg"?YI:qI)(t.tagName,o,iy(e,t.childNodes));if(Ll(e,t,u),u.tagName==="template"){const c=t,d=c.sourceCodeLocation,f=d&&d.startTag&&is(d.startTag),p=d&&d.endTag&&is(d.endTag),g=fh(e,c.content);f&&p&&e.file&&(g.position={start:f.end,end:p.start}),u.content=g}return e.schema=n,u}function Ll(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=QI(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function QI(e,t,n){const r=is(n);if(t.type==="element"){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const a={};let u;if(n.attrs)for(u in n.attrs)ry.call(n.attrs,u)&&(a[Lf(e.schema,u).property]=is(n.attrs[u]));n.startTag;const c=is(n.startTag),d=n.endTag?is(n.endTag):void 0,f={opening:c};d&&(f.closing=d),f.properties=a,t.data={position:f}}}return r}function is(e){const t=oy({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=oy({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function oy(e){return e.line&&e.column?e:void 0}class Ia{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Ia.prototype.property={},Ia.prototype.normal={},Ia.prototype.space=null;function sy(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Ia(n,r,t)}function hh(e){return e.toLowerCase()}class nr{constructor(t,n){this.property=t,this.attribute=n}}nr.prototype.space=null,nr.prototype.boolean=!1,nr.prototype.booleanish=!1,nr.prototype.overloadedBoolean=!1,nr.prototype.number=!1,nr.prototype.commaSeparated=!1,nr.prototype.spaceSeparated=!1,nr.prototype.commaOrSpaceSeparated=!1,nr.prototype.mustUseProperty=!1,nr.prototype.defined=!1;let JI=0;const Ye=co(),$t=co(),ay=co(),Ee=co(),yt=co(),os=co(),jn=co();function co(){return ta(2,++JI)}const ph=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ye,booleanish:$t,commaOrSpaceSeparated:jn,commaSeparated:os,number:Ee,overloadedBoolean:ay,spaceSeparated:yt},Symbol.toStringTag,{value:"Module"})),mh=Object.keys(ph);class gh extends nr{constructor(t,n,r,o){let a=-1;if(super(t,n),uy(this,"space",o),typeof r=="number")for(;++a<mh.length;){const u=mh[a];uy(this,mh[a],(r&ph[u])===ph[u])}}}gh.prototype.defined=!0;function uy(e,t,n){n&&(e[t]=n)}const ZI={}.hasOwnProperty;function ss(e){const t={},n={};let r;for(r in e.properties)if(ZI.call(e.properties,r)){const o=e.properties[r],a=new gh(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[hh(r)]=r,n[hh(a.attribute)]=r}return new Ia(t,n,e.space)}const ly=ss({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),cy=ss({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dy(e,t){return t in e?e[t]:t}function fy(e,t){return dy(e,t.toLowerCase())}const hy=ss({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:fy,properties:{xmlns:null,xmlnsXLink:null}}),py=ss({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$t,ariaAutoComplete:null,ariaBusy:$t,ariaChecked:$t,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:yt,ariaCurrent:null,ariaDescribedBy:yt,ariaDetails:null,ariaDisabled:$t,ariaDropEffect:yt,ariaErrorMessage:null,ariaExpanded:$t,ariaFlowTo:yt,ariaGrabbed:$t,ariaHasPopup:null,ariaHidden:$t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yt,ariaLevel:Ee,ariaLive:null,ariaModal:$t,ariaMultiLine:$t,ariaMultiSelectable:$t,ariaOrientation:null,ariaOwns:yt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:$t,ariaReadOnly:$t,ariaRelevant:null,ariaRequired:$t,ariaRoleDescription:yt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:$t,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null}}),e3=ss({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:fy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:os,acceptCharset:yt,accessKey:yt,action:null,allow:null,allowFullScreen:Ye,allowPaymentRequest:Ye,allowUserMedia:Ye,alt:null,as:null,async:Ye,autoCapitalize:null,autoComplete:yt,autoFocus:Ye,autoPlay:Ye,blocking:yt,capture:null,charSet:null,checked:Ye,cite:null,className:yt,cols:Ee,colSpan:null,content:null,contentEditable:$t,controls:Ye,controlsList:yt,coords:Ee|os,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ye,defer:Ye,dir:null,dirName:null,disabled:Ye,download:ay,draggable:$t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ye,formTarget:null,headers:yt,height:Ee,hidden:Ye,high:Ee,href:null,hrefLang:null,htmlFor:yt,httpEquiv:yt,id:null,imageSizes:null,imageSrcSet:null,inert:Ye,inputMode:null,integrity:null,is:null,isMap:Ye,itemId:null,itemProp:yt,itemRef:yt,itemScope:Ye,itemType:yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ye,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:Ye,muted:Ye,name:null,nonce:null,noModule:Ye,noValidate:Ye,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:Ye,optimum:Ee,pattern:null,ping:yt,placeholder:null,playsInline:Ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ye,referrerPolicy:null,rel:yt,required:Ye,reversed:Ye,rows:Ee,rowSpan:Ee,sandbox:yt,scope:null,scoped:Ye,seamless:Ye,selected:Ye,shadowRootClonable:Ye,shadowRootDelegatesFocus:Ye,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:$t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:Ye,useMap:null,value:$t,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ye,declare:Ye,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:Ye,noHref:Ye,noShade:Ye,noWrap:Ye,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:$t,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ye,disableRemotePlayback:Ye,prefix:null,property:null,results:Ee,security:null,unselectable:null}}),t3=ss({space:"svg",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"},transform:dy,properties:{about:jn,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:yt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:Ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:os,g2:os,glyphName:os,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:jn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,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:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jn,rev:jn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jn,requiredFeatures:jn,requiredFonts:jn,requiredFormats:jn,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:jn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),n3=/^data[-\w.:]+$/i,my=/-[a-z]/g,r3=/[A-Z]/g;function i3(e,t){const n=hh(t);let r=t,o=nr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&n3.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(my,s3);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!my.test(a)){let u=a.replace(r3,o3);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}o=gh}return new o(r,t)}function o3(e){return"-"+e.toLowerCase()}function s3(e){return e.charAt(1).toUpperCase()}const a3=sy([cy,ly,hy,py,e3],"html"),gy=sy([cy,ly,hy,py,t3],"svg"),Ey={}.hasOwnProperty;function yy(e,t){const n=t||{};function r(o,...a){let u=r.invalid;const c=r.handlers;if(o&&Ey.call(o,e)){const d=String(o[e]);u=Ey.call(c,d)?c[d]:r.unknown}if(u)return u.call(this,o,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const u3={},l3={}.hasOwnProperty,by=yy("type",{handlers:{root:d3,element:g3,text:p3,comment:m3,doctype:h3}});function c3(e,t){const r=(t||u3).space;return by(e,r==="svg"?gy:a3)}function d3(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Eh(e.children,n,t),as(e,n),n}function f3(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Eh(e.children,n,t),as(e,n),n}function h3(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return as(e,t),t}function p3(e){const t={nodeName:"#text",value:e.value,parentNode:null};return as(e,t),t}function m3(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return as(e,t),t}function g3(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=gy);const o=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&l3.call(e.properties,a)){const d=E3(r,a,e.properties[a]);d&&o.push(d)}}const u=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:lo[u],childNodes:[],parentNode:null};return c.childNodes=Eh(e.children,c,r),as(e,c),e.tagName==="template"&&e.content&&(c.content=f3(e.content,r)),c}function E3(e,t,n){const r=i3(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?I1(n):q1(n));const o={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=o.name.indexOf(":");a<0?o.prefix="":(o.name=o.name.slice(a+1),o.prefix=r.attribute.slice(0,a)),o.namespace=lo[r.space]}return o}function Eh(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=by(e[r],n);a.parentNode=t,o.push(a)}return o}function as(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const y3=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],b3=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ct="�";var P;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(P||(P={}));const On={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Ty(e){return e>=55296&&e<=57343}function T3(e){return e>=56320&&e<=57343}function _3(e,t){return(e-55296)*1024+9216+t}function _y(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Sy(e){return e>=64976&&e<=65007||b3.has(e)}var ee;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ee||(ee={}));const S3=65536;class x3{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=S3,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:o,offset:a}=this,u=o+n,c=a+n;return{code:t,startLine:r,endLine:r,startCol:u,endCol:u,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(T3(n))return this.pos++,this._addGap(),_3(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,P.EOF;return this._err(ee.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;const r=this.html.charCodeAt(n);return r===P.CARRIAGE_RETURN?P.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,P.EOF;let t=this.html.charCodeAt(this.pos);return t===P.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,P.LINE_FEED):t===P.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ty(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===P.LINE_FEED||t===P.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){_y(t)?this._err(ee.controlCharacterInInputStream):Sy(t)&&this._err(ee.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ke;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ke||(Ke={}));function xy(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const w3=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),C3=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function A3(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=C3.get(e))!==null&&t!==void 0?t:e}var Qt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Qt||(Qt={}));const v3=32;var Ai;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ai||(Ai={}));function yh(e){return e>=Qt.ZERO&&e<=Qt.NINE}function k3(e){return e>=Qt.UPPER_A&&e<=Qt.UPPER_F||e>=Qt.LOWER_A&&e<=Qt.LOWER_F}function P3(e){return e>=Qt.UPPER_A&&e<=Qt.UPPER_Z||e>=Qt.LOWER_A&&e<=Qt.LOWER_Z||yh(e)}function N3(e){return e===Qt.EQUALS||P3(e)}var Jt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Jt||(Jt={}));var ii;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ii||(ii={}));class O3{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Jt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ii.Strict}startEntity(t){this.decodeMode=t,this.state=Jt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Jt.EntityStart:return t.charCodeAt(n)===Qt.NUM?(this.state=Jt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Jt.NamedEntity,this.stateNamedEntity(t,n));case Jt.NumericStart:return this.stateNumericStart(t,n);case Jt.NumericDecimal:return this.stateNumericDecimal(t,n);case Jt.NumericHex:return this.stateNumericHex(t,n);case Jt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|v3)===Qt.LOWER_X?(this.state=Jt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Jt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const a=r-n;this.result=this.result*Math.pow(o,a)+Number.parseInt(t.substr(n,a),o),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(yh(o)||k3(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(yh(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Qt.SEMI)this.consumed+=1;else if(this.decodeMode===ii.Strict)return 0;return this.emitCodePoint(A3(this.result),this.consumed),this.errors&&(t!==Qt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],a=(o&Ai.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=I3(r,o,this.treeIndex+Math.max(1,a),u),this.treeIndex<0)return this.result===0||this.decodeMode===ii.Attribute&&(a===0||N3(u))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],a=(o&Ai.VALUE_LENGTH)>>14,a!==0){if(u===Qt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==ii.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&Ai.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Ai.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Jt.NamedEntity:return this.result!==0&&(this.decodeMode!==ii.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Jt.NumericDecimal:return this.emitNumericEntity(0,2);case Jt.NumericHex:return this.emitNumericEntity(0,3);case Jt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Jt.EntityStart:return 0}}}function I3(e,t,n,r){const o=(t&Ai.BRANCH_LENGTH)>>7,a=t&Ai.JUMP_TABLE;if(o===0)return a!==0&&r===a?n:-1;if(a){const d=r-a;return d<0||d>=o?-1:e[n+d]-1}let u=n,c=u+o-1;for(;u<=c;){const d=u+c>>>1,f=e[d];if(f<r)u=d+1;else if(f>r)c=d-1;else return e[d+o]}return-1}var ae;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ae||(ae={}));var fo;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(fo||(fo={}));var rr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(rr||(rr={}));var G;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(G||(G={}));var m;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(m||(m={}));const R3=new Map([[G.A,m.A],[G.ADDRESS,m.ADDRESS],[G.ANNOTATION_XML,m.ANNOTATION_XML],[G.APPLET,m.APPLET],[G.AREA,m.AREA],[G.ARTICLE,m.ARTICLE],[G.ASIDE,m.ASIDE],[G.B,m.B],[G.BASE,m.BASE],[G.BASEFONT,m.BASEFONT],[G.BGSOUND,m.BGSOUND],[G.BIG,m.BIG],[G.BLOCKQUOTE,m.BLOCKQUOTE],[G.BODY,m.BODY],[G.BR,m.BR],[G.BUTTON,m.BUTTON],[G.CAPTION,m.CAPTION],[G.CENTER,m.CENTER],[G.CODE,m.CODE],[G.COL,m.COL],[G.COLGROUP,m.COLGROUP],[G.DD,m.DD],[G.DESC,m.DESC],[G.DETAILS,m.DETAILS],[G.DIALOG,m.DIALOG],[G.DIR,m.DIR],[G.DIV,m.DIV],[G.DL,m.DL],[G.DT,m.DT],[G.EM,m.EM],[G.EMBED,m.EMBED],[G.FIELDSET,m.FIELDSET],[G.FIGCAPTION,m.FIGCAPTION],[G.FIGURE,m.FIGURE],[G.FONT,m.FONT],[G.FOOTER,m.FOOTER],[G.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[G.FORM,m.FORM],[G.FRAME,m.FRAME],[G.FRAMESET,m.FRAMESET],[G.H1,m.H1],[G.H2,m.H2],[G.H3,m.H3],[G.H4,m.H4],[G.H5,m.H5],[G.H6,m.H6],[G.HEAD,m.HEAD],[G.HEADER,m.HEADER],[G.HGROUP,m.HGROUP],[G.HR,m.HR],[G.HTML,m.HTML],[G.I,m.I],[G.IMG,m.IMG],[G.IMAGE,m.IMAGE],[G.INPUT,m.INPUT],[G.IFRAME,m.IFRAME],[G.KEYGEN,m.KEYGEN],[G.LABEL,m.LABEL],[G.LI,m.LI],[G.LINK,m.LINK],[G.LISTING,m.LISTING],[G.MAIN,m.MAIN],[G.MALIGNMARK,m.MALIGNMARK],[G.MARQUEE,m.MARQUEE],[G.MATH,m.MATH],[G.MENU,m.MENU],[G.META,m.META],[G.MGLYPH,m.MGLYPH],[G.MI,m.MI],[G.MO,m.MO],[G.MN,m.MN],[G.MS,m.MS],[G.MTEXT,m.MTEXT],[G.NAV,m.NAV],[G.NOBR,m.NOBR],[G.NOFRAMES,m.NOFRAMES],[G.NOEMBED,m.NOEMBED],[G.NOSCRIPT,m.NOSCRIPT],[G.OBJECT,m.OBJECT],[G.OL,m.OL],[G.OPTGROUP,m.OPTGROUP],[G.OPTION,m.OPTION],[G.P,m.P],[G.PARAM,m.PARAM],[G.PLAINTEXT,m.PLAINTEXT],[G.PRE,m.PRE],[G.RB,m.RB],[G.RP,m.RP],[G.RT,m.RT],[G.RTC,m.RTC],[G.RUBY,m.RUBY],[G.S,m.S],[G.SCRIPT,m.SCRIPT],[G.SEARCH,m.SEARCH],[G.SECTION,m.SECTION],[G.SELECT,m.SELECT],[G.SOURCE,m.SOURCE],[G.SMALL,m.SMALL],[G.SPAN,m.SPAN],[G.STRIKE,m.STRIKE],[G.STRONG,m.STRONG],[G.STYLE,m.STYLE],[G.SUB,m.SUB],[G.SUMMARY,m.SUMMARY],[G.SUP,m.SUP],[G.TABLE,m.TABLE],[G.TBODY,m.TBODY],[G.TEMPLATE,m.TEMPLATE],[G.TEXTAREA,m.TEXTAREA],[G.TFOOT,m.TFOOT],[G.TD,m.TD],[G.TH,m.TH],[G.THEAD,m.THEAD],[G.TITLE,m.TITLE],[G.TR,m.TR],[G.TRACK,m.TRACK],[G.TT,m.TT],[G.U,m.U],[G.UL,m.UL],[G.SVG,m.SVG],[G.VAR,m.VAR],[G.WBR,m.WBR],[G.XMP,m.XMP]]);function us(e){var t;return(t=R3.get(e))!==null&&t!==void 0?t:m.UNKNOWN}const fe=m,L3={[ae.HTML]:new Set([fe.ADDRESS,fe.APPLET,fe.AREA,fe.ARTICLE,fe.ASIDE,fe.BASE,fe.BASEFONT,fe.BGSOUND,fe.BLOCKQUOTE,fe.BODY,fe.BR,fe.BUTTON,fe.CAPTION,fe.CENTER,fe.COL,fe.COLGROUP,fe.DD,fe.DETAILS,fe.DIR,fe.DIV,fe.DL,fe.DT,fe.EMBED,fe.FIELDSET,fe.FIGCAPTION,fe.FIGURE,fe.FOOTER,fe.FORM,fe.FRAME,fe.FRAMESET,fe.H1,fe.H2,fe.H3,fe.H4,fe.H5,fe.H6,fe.HEAD,fe.HEADER,fe.HGROUP,fe.HR,fe.HTML,fe.IFRAME,fe.IMG,fe.INPUT,fe.LI,fe.LINK,fe.LISTING,fe.MAIN,fe.MARQUEE,fe.MENU,fe.META,fe.NAV,fe.NOEMBED,fe.NOFRAMES,fe.NOSCRIPT,fe.OBJECT,fe.OL,fe.P,fe.PARAM,fe.PLAINTEXT,fe.PRE,fe.SCRIPT,fe.SECTION,fe.SELECT,fe.SOURCE,fe.STYLE,fe.SUMMARY,fe.TABLE,fe.TBODY,fe.TD,fe.TEMPLATE,fe.TEXTAREA,fe.TFOOT,fe.TH,fe.THEAD,fe.TITLE,fe.TR,fe.TRACK,fe.UL,fe.WBR,fe.XMP]),[ae.MATHML]:new Set([fe.MI,fe.MO,fe.MN,fe.MS,fe.MTEXT,fe.ANNOTATION_XML]),[ae.SVG]:new Set([fe.TITLE,fe.FOREIGN_OBJECT,fe.DESC]),[ae.XLINK]:new Set,[ae.XML]:new Set,[ae.XMLNS]:new Set},bh=new Set([fe.H1,fe.H2,fe.H3,fe.H4,fe.H5,fe.H6]);G.STYLE,G.SCRIPT,G.XMP,G.IFRAME,G.NOEMBED,G.NOFRAMES,G.PLAINTEXT;var I;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(I||(I={}));const Mt={DATA:I.DATA,RCDATA:I.RCDATA,RAWTEXT:I.RAWTEXT,SCRIPT_DATA:I.SCRIPT_DATA,PLAINTEXT:I.PLAINTEXT,CDATA_SECTION:I.CDATA_SECTION};function D3(e){return e>=P.DIGIT_0&&e<=P.DIGIT_9}function Ra(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_Z}function M3(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_Z}function vi(e){return M3(e)||Ra(e)}function wy(e){return vi(e)||D3(e)}function Dl(e){return e+32}function Cy(e){return e===P.SPACE||e===P.LINE_FEED||e===P.TABULATION||e===P.FORM_FEED}function Ay(e){return Cy(e)||e===P.SOLIDUS||e===P.GREATER_THAN_SIGN}function F3(e){return e===P.NULL?ee.nullCharacterReference:e>1114111?ee.characterReferenceOutsideUnicodeRange:Ty(e)?ee.surrogateCharacterReference:Sy(e)?ee.noncharacterCharacterReference:_y(e)||e===P.CARRIAGE_RETURN?ee.controlCharacterReference:null}class B3{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=I.DATA,this.returnState=I.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new x3(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new O3(w3,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ee.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(ee.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=F3(r);o&&this._err(o,1)}}:void 0)}_err(t,n=0){var r,o;(o=(r=this.handler).onParseError)===null||o===void 0||o.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ke.START_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ke.END_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ke.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ke.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(xy(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const o=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ee.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=us(t.tagName),t.type===Ke.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ee.endTagWithAttributes),t.selfClosing&&this._err(ee.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ke.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ke.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ke.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ke.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Cy(t)?Ke.WHITESPACE_CHARACTER:t===P.NULL?Ke.NULL_CHARACTER:Ke.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ke.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=I.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ii.Attribute:ii.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===I.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===I.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===I.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case I.DATA:{this._stateData(t);break}case I.RCDATA:{this._stateRcdata(t);break}case I.RAWTEXT:{this._stateRawtext(t);break}case I.SCRIPT_DATA:{this._stateScriptData(t);break}case I.PLAINTEXT:{this._statePlaintext(t);break}case I.TAG_OPEN:{this._stateTagOpen(t);break}case I.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case I.TAG_NAME:{this._stateTagName(t);break}case I.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case I.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case I.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case I.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case I.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case I.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case I.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case I.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case I.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case I.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case I.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case I.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case I.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case I.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case I.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case I.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case I.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case I.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case I.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case I.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case I.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case I.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case I.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case I.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case I.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case I.BOGUS_COMMENT:{this._stateBogusComment(t);break}case I.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case I.COMMENT_START:{this._stateCommentStart(t);break}case I.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case I.COMMENT:{this._stateComment(t);break}case I.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case I.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case I.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case I.COMMENT_END:{this._stateCommentEnd(t);break}case I.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case I.DOCTYPE:{this._stateDoctype(t);break}case I.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case I.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case I.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case I.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case I.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case I.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case I.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case I.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case I.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case I.CDATA_SECTION:{this._stateCdataSection(t);break}case I.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case I.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case I.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case I.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=I.TAG_OPEN;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitCodePoint(t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case P.AMPERSAND:{this._startCharacterReference();break}case P.LESS_THAN_SIGN:{this.state=I.RCDATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case P.LESS_THAN_SIGN:{this.state=I.RAWTEXT_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(vi(t))this._createStartTagToken(),this.state=I.TAG_NAME,this._stateTagName(t);else switch(t){case P.EXCLAMATION_MARK:{this.state=I.MARKUP_DECLARATION_OPEN;break}case P.SOLIDUS:{this.state=I.END_TAG_OPEN;break}case P.QUESTION_MARK:{this._err(ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t);break}case P.EOF:{this._err(ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=I.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(vi(t))this._createEndTagToken(),this.state=I.TAG_NAME,this._stateTagName(t);else switch(t){case P.GREATER_THAN_SIGN:{this._err(ee.missingEndTagName),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ee.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this.state=I.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.tagName+=Ct;break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Ra(t)?Dl(t):t)}}_stateRcdataLessThanSign(t){t===P.SOLIDUS?this.state=I.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=I.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){vi(t)?(this.state=I.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=I.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=I.BEFORE_ATTRIBUTE_NAME,!1;case P.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=I.SELF_CLOSING_START_TAG,!1;case P.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=I.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===P.SOLIDUS?this.state=I.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=I.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){vi(t)?(this.state=I.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=I.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case P.SOLIDUS:{this.state=I.SCRIPT_DATA_END_TAG_OPEN;break}case P.EXCLAMATION_MARK:{this.state=I.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=I.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){vi(t)?(this.state=I.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===P.HYPHEN_MINUS?(this.state=I.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===P.HYPHEN_MINUS?(this.state=I.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=I.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.GREATER_THAN_SIGN:{this.state=I.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===P.SOLIDUS?this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:vi(t)?(this._emitChars("<"),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){vi(t)?(this.state=I.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(On.SCRIPT,!1)&&Ay(this.preprocessor.peek(On.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<On.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=I.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.GREATER_THAN_SIGN:{this.state=I.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ct);break}case P.EOF:{this._err(ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===P.SOLIDUS?(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(On.SCRIPT,!1)&&Ay(this.preprocessor.peek(On.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<On.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=I.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=I.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this.state=I.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._err(ee.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=I.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=I.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this._leaveAttrName(),this.state=I.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._leaveAttrName(),this.state=I.BEFORE_ATTRIBUTE_VALUE;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:{this._err(ee.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.name+=Ct;break}default:this.currentAttr.name+=String.fromCodePoint(Ra(t)?Dl(t):t)}}_stateAfterAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:{this.state=I.SELF_CLOSING_START_TAG;break}case P.EQUALS_SIGN:{this.state=I.BEFORE_ATTRIBUTE_VALUE;break}case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=I.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{this.state=I.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this.state=I.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingAttributeValue),this.state=I.DATA,this.emitCurrentTagToken();break}default:this.state=I.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case P.QUOTATION_MARK:{this.state=I.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case P.APOSTROPHE:{this.state=I.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=I.BEFORE_ATTRIBUTE_NAME;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=I.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),this.currentAttr.value+=Ct;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:case P.EQUALS_SIGN:case P.GRAVE_ACCENT:{this._err(ee.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=I.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this._leaveAttrValue(),this.state=I.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=I.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this._err(ee.missingWhitespaceBetweenAttributes),this.state=I.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case P.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=I.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(ee.eofInTag),this._emitEOFToken();break}default:this._err(ee.unexpectedSolidusInTag),this.state=I.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentComment(n);break}case P.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.data+=Ct;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(On.DASH_DASH,!0)?(this._createCommentToken(On.DASH_DASH.length+1),this.state=I.COMMENT_START):this._consumeSequenceIfMatch(On.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(On.DOCTYPE.length+1),this.state=I.DOCTYPE):this._consumeSequenceIfMatch(On.CDATA_START,!0)?this.inForeignNode?this.state=I.CDATA_SECTION:(this._err(ee.cdataInHtmlContent),this._createCommentToken(On.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=I.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ee.incorrectlyOpenedComment),this._createCommentToken(2),this.state=I.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case P.HYPHEN_MINUS:{this.state=I.COMMENT_START_DASH;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptClosingOfEmptyComment),this.state=I.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=I.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=I.COMMENT_END;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptClosingOfEmptyComment),this.state=I.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=I.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=I.COMMENT_END_DASH;break}case P.LESS_THAN_SIGN:{n.data+="<",this.state=I.COMMENT_LESS_THAN_SIGN;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.data+=Ct;break}case P.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case P.EXCLAMATION_MARK:{n.data+="!",this.state=I.COMMENT_LESS_THAN_SIGN_BANG;break}case P.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=I.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===P.HYPHEN_MINUS?this.state=I.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=I.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===P.HYPHEN_MINUS?this.state=I.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=I.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==P.GREATER_THAN_SIGN&&t!==P.EOF&&this._err(ee.nestedComment),this.state=I.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=I.COMMENT_END;break}case P.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=I.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentComment(n);break}case P.EXCLAMATION_MARK:{this.state=I.COMMENT_END_BANG;break}case P.HYPHEN_MINUS:{n.data+="-";break}case P.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=I.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{n.data+="--!",this.state=I.COMMENT_END_DASH;break}case P.GREATER_THAN_SIGN:{this._err(ee.incorrectlyClosedComment),this.state=I.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=I.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=I.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case P.EOF:{this._err(ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingWhitespaceBeforeDoctypeName),this.state=I.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ra(t))this._createDoctypeToken(String.fromCharCode(Dl(t))),this.state=I.DOCTYPE_NAME;else switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.NULL:{this._err(ee.unexpectedNullCharacter),this._createDoctypeToken(Ct),this.state=I.DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=I.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.AFTER_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.name+=Ct;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Ra(t)?Dl(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(On.PUBLIC,!1)?this.state=I.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(On.SYSTEM,!1)?this.state=I.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ee.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.publicId="",this.state=I.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.publicId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case P.APOSTROPHE:{this.state=I.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.publicId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case P.GREATER_THAN_SIGN:{this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.QUOTATION_MARK:{this._err(ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.QUOTATION_MARK:{n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=I.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=I.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.systemId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case P.APOSTROPHE:{this.state=I.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(ee.unexpectedNullCharacter),n.systemId+=Ct;break}case P.GREATER_THAN_SIGN:{this._err(ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.EOF:{this._err(ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ee.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=I.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=I.DATA;break}case P.NULL:{this._err(ee.unexpectedNullCharacter);break}case P.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case P.RIGHT_SQUARE_BRACKET:{this.state=I.CDATA_SECTION_BRACKET;break}case P.EOF:{this._err(ee.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===P.RIGHT_SQUARE_BRACKET?this.state=I.CDATA_SECTION_END:(this._emitChars("]"),this.state=I.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case P.GREATER_THAN_SIGN:{this.state=I.DATA;break}case P.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=I.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(P.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&wy(this.preprocessor.peek(1))?I.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){wy(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===P.SEMICOLON&&this._err(ee.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const vy=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),ky=new Set([...vy,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),Ml=new Set([m.APPLET,m.CAPTION,m.HTML,m.MARQUEE,m.OBJECT,m.TABLE,m.TD,m.TEMPLATE,m.TH]),U3=new Set([...Ml,m.OL,m.UL]),H3=new Set([...Ml,m.BUTTON]),Py=new Set([m.ANNOTATION_XML,m.MI,m.MN,m.MO,m.MS,m.MTEXT]),Ny=new Set([m.DESC,m.FOREIGN_OBJECT,m.TITLE]),z3=new Set([m.TR,m.TEMPLATE,m.HTML]),j3=new Set([m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML]),$3=new Set([m.TABLE,m.TEMPLATE,m.HTML]),V3=new Set([m.TD,m.TH]);class q3{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ae.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const o=this._indexOf(t)+1;this.items.splice(o,0,n),this.tagIDs.splice(o,0,r),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ae.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(bh,ae.HTML)}popUntilTableCellPopped(){this.popUntilPopped(V3,ae.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo($3,ae.HTML)}clearBackToTableBodyContext(){this.clearBackTo(j3,ae.HTML)}clearBackToTableRowContext(){this.clearBackTo(z3,ae.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===m.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const o=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case ae.HTML:{if(o===t)return!0;if(n.has(o))return!1;break}case ae.SVG:{if(Ny.has(o))return!1;break}case ae.MATHML:{if(Py.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ml)}hasInListItemScope(t){return this.hasInDynamicScope(t,U3)}hasInButtonScope(t){return this.hasInDynamicScope(t,H3)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ae.HTML:{if(bh.has(n))return!0;if(Ml.has(n))return!1;break}case ae.SVG:{if(Ny.has(n))return!1;break}case ae.MATHML:{if(Py.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ae.HTML)switch(this.tagIDs[n]){case t:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ae.HTML)switch(this.tagIDs[t]){case m.TBODY:case m.THEAD:case m.TFOOT:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ae.HTML)switch(this.tagIDs[n]){case t:return!0;case m.OPTION:case m.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&vy.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ky.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ky.has(this.currentTagId);)this.pop()}}const Th=3;var Mr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Mr||(Mr={}));const Oy={type:Mr.Marker};class Y3{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],o=n.length,a=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===Mr.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===a&&this.treeAdapter.getNamespaceURI(f)===u){const p=this.treeAdapter.getAttrList(f);p.length===o&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Th)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Th)return;const o=new Map(n.map(u=>[u.name,u.value]));let a=0;for(let u=0;u<r.length;u++){const c=r[u];c.attrs.every(d=>o.get(d.name)===d.value)&&(a+=1,a>=Th&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(Oy)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Mr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Mr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Oy);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Mr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Mr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Mr.Element&&n.element===t)}}const ki={createDocument(){return{nodeName:"#document",mode:rr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const o=e.childNodes.find(a=>a.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ki.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ki.isTextNode(n)){n.value+=t;return}}ki.appendChild(e,ki.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ki.isTextNode(r)?r.value+=t:ki.insertBefore(e,ki.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation=F(F({},e.sourceCodeLocation),t)}},Iy="html",G3="about:legacy-compat",W3="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ry=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],X3=[...Ry,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],K3=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ly=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Q3=[...Ly,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Dy(e,t){return t.some(n=>e.startsWith(n))}function J3(e){return e.name===Iy&&e.publicId===null&&(e.systemId===null||e.systemId===G3)}function Z3(e){if(e.name!==Iy)return rr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===W3)return rr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),K3.has(n))return rr.QUIRKS;let r=t===null?X3:Ry;if(Dy(n,r))return rr.QUIRKS;if(r=t===null?Ly:Q3,Dy(n,r))return rr.LIMITED_QUIRKS}return rr.NO_QUIRKS}const My={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},eR="definitionurl",tR="definitionURL",nR=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),rR=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ae.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ae.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ae.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ae.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ae.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ae.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ae.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ae.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ae.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ae.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ae.XMLNS}]]),iR=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),oR=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function sR(e){const t=e.tagID;return t===m.FONT&&e.attrs.some(({name:r})=>r===fo.COLOR||r===fo.SIZE||r===fo.FACE)||oR.has(t)}function Fy(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===eR){e.attrs[t].name=tR;break}}function By(e){for(let t=0;t<e.attrs.length;t++){const n=nR.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function _h(e){for(let t=0;t<e.attrs.length;t++){const n=rR.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function aR(e){const t=iR.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=us(e.tagName))}function uR(e,t){return t===ae.MATHML&&(e===m.MI||e===m.MO||e===m.MN||e===m.MS||e===m.MTEXT)}function lR(e,t,n){if(t===ae.MATHML&&e===m.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===fo.ENCODING){const o=n[r].value.toLowerCase();return o===My.TEXT_HTML||o===My.APPLICATION_XML}}return t===ae.SVG&&(e===m.FOREIGN_OBJECT||e===m.DESC||e===m.TITLE)}function cR(e,t,n,r){return(!r||r===ae.HTML)&&lR(e,t,n)||(!r||r===ae.MATHML)&&uR(e,t)}const dR="hidden",fR=8,hR=3;var L;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(L||(L={}));const pR={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Uy=new Set([m.TABLE,m.TBODY,m.TFOOT,m.THEAD,m.TR]),Hy={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ki,onParseError:null};class zy{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=L.INITIAL,this.originalInsertionMode=L.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=F(F({},Hy),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n!=null?n:this.treeAdapter.createDocument(),this.tokenizer=new B3(this.options,this),this.activeFormattingElements=new Y3(this.treeAdapter),this.fragmentContextID=r?us(this.treeAdapter.getTagName(r)):m.UNKNOWN,this._setContextModes(r!=null?r:this.document,this.fragmentContextID),this.openElements=new q3(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r=F(F({},Hy),n);t!=null||(t=r.treeAdapter.createElement(G.TEMPLATE,ae.HTML,[]));const o=r.treeAdapter.createElement("documentmock",ae.HTML,[]),a=new this(r,o,t);return a.fragmentContextID===m.TEMPLATE&&a.tmplInsertionModeStack.unshift(L.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var o;if(!this.onParseError)return;const a=(o=t.location)!==null&&o!==void 0?o:pR,u={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(u)}onItemPush(t,n,r){var o,a;(a=(o=this.treeAdapter).onItemPush)===null||a===void 0||a.call(o,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(r=this.treeAdapter).onItemPop)===null||o===void 0||o.call(r,t,this.openElements.current),n){let a,u;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,u=this.fragmentContextID):{current:a,currentTagId:u}=this.openElements,this._setContextModes(a,u)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ae.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ae.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=L.TEXT}switchToPlaintextParsing(){this.insertionMode=L.TEXT,this.originalInsertionMode=L.IN_BODY,this.tokenizer.state=Mt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===G.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ae.HTML))switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:{this.tokenizer.state=Mt.RCDATA;break}case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:{this.tokenizer.state=Mt.RAWTEXT;break}case m.SCRIPT:{this.tokenizer.state=Mt.SCRIPT_DATA;break}case m.PLAINTEXT:{this.tokenizer.state=Mt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,o),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&me(F({},n),{startTag:n});this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r!=null?r:this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ae.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ae.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(G.HTML,ae.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,m.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(n),a=r?o.lastIndexOf(r):o.length,u=o[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:d,endCol:f,endOffset:p}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:d,endCol:f,endOffset:p})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,o=this.treeAdapter.getTagName(t),a=n.type===Ke.END_TAG&&o===n.tagName?{endTag:F({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===m.SVG&&this.treeAdapter.getTagName(n)===G.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ae.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===m.MGLYPH||t.tagID===m.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,ae.HTML)}_processToken(t){switch(t.type){case Ke.CHARACTER:{this.onCharacter(t);break}case Ke.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ke.COMMENT:{this.onComment(t);break}case Ke.DOCTYPE:{this.onDoctype(t);break}case Ke.START_TAG:{this._processStartTag(t);break}case Ke.END_TAG:{this.onEndTag(t);break}case Ke.EOF:{this.onEof(t);break}case Ke.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return cR(t,o,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===Mr.Marker||this.openElements.contains(o.element)),r=n===-1?t-1:n-1;for(let o=r;o>=0;o--){const a=this.activeFormattingElements.entries[o];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=L.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case m.TR:{this.insertionMode=L.IN_ROW;return}case m.TBODY:case m.THEAD:case m.TFOOT:{this.insertionMode=L.IN_TABLE_BODY;return}case m.CAPTION:{this.insertionMode=L.IN_CAPTION;return}case m.COLGROUP:{this.insertionMode=L.IN_COLUMN_GROUP;return}case m.TABLE:{this.insertionMode=L.IN_TABLE;return}case m.BODY:{this.insertionMode=L.IN_BODY;return}case m.FRAMESET:{this.insertionMode=L.IN_FRAMESET;return}case m.SELECT:{this._resetInsertionModeForSelect(t);return}case m.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case m.HTML:{this.insertionMode=this.headElement?L.AFTER_HEAD:L.BEFORE_HEAD;return}case m.TD:case m.TH:{if(t>0){this.insertionMode=L.IN_CELL;return}break}case m.HEAD:{if(t>0){this.insertionMode=L.IN_HEAD;return}break}}this.insertionMode=L.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===m.TEMPLATE)break;if(r===m.TABLE){this.insertionMode=L.IN_SELECT_IN_TABLE;return}}this.insertionMode=L.IN_SELECT}_isElementCausesFosterParenting(t){return Uy.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case m.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ae.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case m.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return L3[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){VL(this,t);return}switch(this.insertionMode){case L.INITIAL:{La(this,t);break}case L.BEFORE_HTML:{Da(this,t);break}case L.BEFORE_HEAD:{Ma(this,t);break}case L.IN_HEAD:{Fa(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Ba(this,t);break}case L.AFTER_HEAD:{Ua(this,t);break}case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:{$y(this,t);break}case L.TEXT:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Ch(this,t);break}case L.IN_TABLE_TEXT:{Qy(this,t);break}case L.IN_COLUMN_GROUP:{Ul(this,t);break}case L.AFTER_BODY:{jl(this,t);break}case L.AFTER_AFTER_BODY:{$l(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$L(this,t);return}switch(this.insertionMode){case L.INITIAL:{La(this,t);break}case L.BEFORE_HTML:{Da(this,t);break}case L.BEFORE_HEAD:{Ma(this,t);break}case L.IN_HEAD:{Fa(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Ba(this,t);break}case L.AFTER_HEAD:{Ua(this,t);break}case L.TEXT:{this._insertCharacters(t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Ch(this,t);break}case L.IN_COLUMN_GROUP:{Ul(this,t);break}case L.AFTER_BODY:{jl(this,t);break}case L.AFTER_AFTER_BODY:{$l(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){xh(this,t);return}switch(this.insertionMode){case L.INITIAL:case L.BEFORE_HTML:case L.BEFORE_HEAD:case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:case L.IN_BODY:case L.IN_TABLE:case L.IN_CAPTION:case L.IN_COLUMN_GROUP:case L.IN_TABLE_BODY:case L.IN_ROW:case L.IN_CELL:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:case L.IN_TEMPLATE:case L.IN_FRAMESET:case L.AFTER_FRAMESET:{xh(this,t);break}case L.IN_TABLE_TEXT:{ja(this,t);break}case L.AFTER_BODY:{_R(this,t);break}case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{SR(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case L.INITIAL:{xR(this,t);break}case L.BEFORE_HEAD:case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:{this._err(t,ee.misplacedDoctype);break}case L.IN_TABLE_TEXT:{ja(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ee.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?qL(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{La(this,t);break}case L.BEFORE_HTML:{wR(this,t);break}case L.BEFORE_HEAD:{AR(this,t);break}case L.IN_HEAD:{yr(this,t);break}case L.IN_HEAD_NO_SCRIPT:{PR(this,t);break}case L.AFTER_HEAD:{OR(this,t);break}case L.IN_BODY:{pn(this,t);break}case L.IN_TABLE:{ls(this,t);break}case L.IN_TABLE_TEXT:{ja(this,t);break}case L.IN_CAPTION:{vL(this,t);break}case L.IN_COLUMN_GROUP:{Ah(this,t);break}case L.IN_TABLE_BODY:{Hl(this,t);break}case L.IN_ROW:{zl(this,t);break}case L.IN_CELL:{NL(this,t);break}case L.IN_SELECT:{eb(this,t);break}case L.IN_SELECT_IN_TABLE:{IL(this,t);break}case L.IN_TEMPLATE:{LL(this,t);break}case L.AFTER_BODY:{ML(this,t);break}case L.IN_FRAMESET:{FL(this,t);break}case L.AFTER_FRAMESET:{UL(this,t);break}case L.AFTER_AFTER_BODY:{zL(this,t);break}case L.AFTER_AFTER_FRAMESET:{jL(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?YL(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{La(this,t);break}case L.BEFORE_HTML:{CR(this,t);break}case L.BEFORE_HEAD:{vR(this,t);break}case L.IN_HEAD:{kR(this,t);break}case L.IN_HEAD_NO_SCRIPT:{NR(this,t);break}case L.AFTER_HEAD:{IR(this,t);break}case L.IN_BODY:{Bl(this,t);break}case L.TEXT:{EL(this,t);break}case L.IN_TABLE:{Ha(this,t);break}case L.IN_TABLE_TEXT:{ja(this,t);break}case L.IN_CAPTION:{kL(this,t);break}case L.IN_COLUMN_GROUP:{PL(this,t);break}case L.IN_TABLE_BODY:{vh(this,t);break}case L.IN_ROW:{Zy(this,t);break}case L.IN_CELL:{OL(this,t);break}case L.IN_SELECT:{tb(this,t);break}case L.IN_SELECT_IN_TABLE:{RL(this,t);break}case L.IN_TEMPLATE:{DL(this,t);break}case L.AFTER_BODY:{rb(this,t);break}case L.IN_FRAMESET:{BL(this,t);break}case L.AFTER_FRAMESET:{HL(this,t);break}case L.AFTER_AFTER_BODY:{$l(this,t);break}}}onEof(t){switch(this.insertionMode){case L.INITIAL:{La(this,t);break}case L.BEFORE_HTML:{Da(this,t);break}case L.BEFORE_HEAD:{Ma(this,t);break}case L.IN_HEAD:{Fa(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Ba(this,t);break}case L.AFTER_HEAD:{Ua(this,t);break}case L.IN_BODY:case L.IN_TABLE:case L.IN_CAPTION:case L.IN_COLUMN_GROUP:case L.IN_TABLE_BODY:case L.IN_ROW:case L.IN_CELL:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:{Xy(this,t);break}case L.TEXT:{yL(this,t);break}case L.IN_TABLE_TEXT:{ja(this,t);break}case L.IN_TEMPLATE:{nb(this,t);break}case L.AFTER_BODY:case L.IN_FRAMESET:case L.AFTER_FRAMESET:case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{wh(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===P.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:case L.TEXT:case L.IN_COLUMN_GROUP:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:case L.IN_FRAMESET:case L.AFTER_FRAMESET:{this._insertCharacters(t);break}case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:case L.AFTER_BODY:case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{jy(this,t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Ch(this,t);break}case L.IN_TABLE_TEXT:{Ky(this,t);break}}}}function mR(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Wy(e,t),n}function gR(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function ER(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let a=0,u=o;u!==n;a++,u=o){o=e.openElements.getCommonAncestor(u);const c=e.activeFormattingElements.getElementEntry(u),d=c&&a>=hR;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(u)):(u=yR(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(u,r),r=u)}return r}function yR(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function bR(e,t,n){const r=e.treeAdapter.getTagName(t),o=us(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);o===m.TEMPLATE&&a===ae.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function TR(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,a=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,o.tagID)}function Sh(e,t){for(let n=0;n<fR;n++){const r=mR(e,t);if(!r)break;const o=gR(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const a=ER(e,o,r.element),u=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),u&&bR(e,u,a),TR(e,o,r)}}function xh(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function _R(e,t){e._appendCommentNode(t,e.openElements.items[0])}function SR(e,t){e._appendCommentNode(t,e.document)}function wh(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(a);u&&!u.endTag&&e._setEndLocation(a,t)}}}}function xR(e,t){e._setDocumentType(t);const n=t.forceQuirks?rr.QUIRKS:Z3(t);J3(t)||e._err(t,ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=L.BEFORE_HTML}function La(e,t){e._err(t,ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,rr.QUIRKS),e.insertionMode=L.BEFORE_HTML,e._processToken(t)}function wR(e,t){t.tagID===m.HTML?(e._insertElement(t,ae.HTML),e.insertionMode=L.BEFORE_HEAD):Da(e,t)}function CR(e,t){const n=t.tagID;(n===m.HTML||n===m.HEAD||n===m.BODY||n===m.BR)&&Da(e,t)}function Da(e,t){e._insertFakeRootElement(),e.insertionMode=L.BEFORE_HEAD,e._processToken(t)}function AR(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.HEAD:{e._insertElement(t,ae.HTML),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD;break}default:Ma(e,t)}}function vR(e,t){const n=t.tagID;n===m.HEAD||n===m.BODY||n===m.HTML||n===m.BR?Ma(e,t):e._err(t,ee.endTagWithoutMatchingOpenElement)}function Ma(e,t){e._insertFakeElement(G.HEAD,m.HEAD),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD,e._processToken(t)}function yr(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case m.TITLE:{e._switchToTextParsing(t,Mt.RCDATA);break}case m.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Mt.RAWTEXT):(e._insertElement(t,ae.HTML),e.insertionMode=L.IN_HEAD_NO_SCRIPT);break}case m.NOFRAMES:case m.STYLE:{e._switchToTextParsing(t,Mt.RAWTEXT);break}case m.SCRIPT:{e._switchToTextParsing(t,Mt.SCRIPT_DATA);break}case m.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=L.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(L.IN_TEMPLATE);break}case m.HEAD:{e._err(t,ee.misplacedStartTagForHeadElement);break}default:Fa(e,t)}}function kR(e,t){switch(t.tagID){case m.HEAD:{e.openElements.pop(),e.insertionMode=L.AFTER_HEAD;break}case m.BODY:case m.BR:case m.HTML:{Fa(e,t);break}case m.TEMPLATE:{ho(e,t);break}default:e._err(t,ee.endTagWithoutMatchingOpenElement)}}function ho(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==m.TEMPLATE&&e._err(t,ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ee.endTagWithoutMatchingOpenElement)}function Fa(e,t){e.openElements.pop(),e.insertionMode=L.AFTER_HEAD,e._processToken(t)}function PR(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:{yr(e,t);break}case m.NOSCRIPT:{e._err(t,ee.nestedNoscriptInHead);break}default:Ba(e,t)}}function NR(e,t){switch(t.tagID){case m.NOSCRIPT:{e.openElements.pop(),e.insertionMode=L.IN_HEAD;break}case m.BR:{Ba(e,t);break}default:e._err(t,ee.endTagWithoutMatchingOpenElement)}}function Ba(e,t){const n=t.type===Ke.EOF?ee.openElementsLeftAfterEof:ee.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=L.IN_HEAD,e._processToken(t)}function OR(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.BODY:{e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=L.IN_BODY;break}case m.FRAMESET:{e._insertElement(t,ae.HTML),e.insertionMode=L.IN_FRAMESET;break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{e._err(t,ee.abandonedHeadElementChild),e.openElements.push(e.headElement,m.HEAD),yr(e,t),e.openElements.remove(e.headElement);break}case m.HEAD:{e._err(t,ee.misplacedStartTagForHeadElement);break}default:Ua(e,t)}}function IR(e,t){switch(t.tagID){case m.BODY:case m.HTML:case m.BR:{Ua(e,t);break}case m.TEMPLATE:{ho(e,t);break}default:e._err(t,ee.endTagWithoutMatchingOpenElement)}}function Ua(e,t){e._insertFakeElement(G.BODY,m.BODY),e.insertionMode=L.IN_BODY,Fl(e,t)}function Fl(e,t){switch(t.type){case Ke.CHARACTER:{$y(e,t);break}case Ke.WHITESPACE_CHARACTER:{jy(e,t);break}case Ke.COMMENT:{xh(e,t);break}case Ke.START_TAG:{pn(e,t);break}case Ke.END_TAG:{Bl(e,t);break}case Ke.EOF:{Xy(e,t);break}}}function jy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $y(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function RR(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function LR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function DR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_FRAMESET)}function MR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function FR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&bh.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ae.HTML)}function BR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function UR(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML),n||(e.formElement=e.openElements.current))}function HR(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.tagIDs[r];if(n===m.LI&&o===m.LI||(n===m.DD||n===m.DT)&&(o===m.DD||o===m.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==m.ADDRESS&&o!==m.DIV&&o!==m.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function zR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.tokenizer.state=Mt.PLAINTEXT}function jR(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1}function $R(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(G.A);n&&(Sh(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function VR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function qR(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(Sh(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function YR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function GR(e,t){e.treeAdapter.getDocumentMode(e.document)!==rr.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=L.IN_TABLE}function Vy(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qy(e){const t=xy(e,fo.TYPE);return t!=null&&t.toLowerCase()===dR}function WR(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),qy(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function XR(e,t){e._appendElement(t,ae.HTML),t.ackSelfClosing=!0}function KR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function QR(e,t){t.tagName=G.IMG,t.tagID=m.IMG,Vy(e,t)}function JR(e,t){e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Mt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=L.TEXT}function ZR(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Mt.RAWTEXT)}function eL(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Mt.RAWTEXT)}function Yy(e,t){e._switchToTextParsing(t,Mt.RAWTEXT)}function tL(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===L.IN_TABLE||e.insertionMode===L.IN_CAPTION||e.insertionMode===L.IN_TABLE_BODY||e.insertionMode===L.IN_ROW||e.insertionMode===L.IN_CELL?L.IN_SELECT_IN_TABLE:L.IN_SELECT}function nL(e,t){e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function rL(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ae.HTML)}function iL(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,ae.HTML)}function oL(e,t){e._reconstructActiveFormattingElements(),Fy(t),_h(t),t.selfClosing?e._appendElement(t,ae.MATHML):e._insertElement(t,ae.MATHML),t.ackSelfClosing=!0}function sL(e,t){e._reconstructActiveFormattingElements(),By(t),_h(t),t.selfClosing?e._appendElement(t,ae.SVG):e._insertElement(t,ae.SVG),t.ackSelfClosing=!0}function Gy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function pn(e,t){switch(t.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:{VR(e,t);break}case m.A:{$R(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{FR(e,t);break}case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{MR(e,t);break}case m.LI:case m.DD:case m.DT:{HR(e,t);break}case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:{Vy(e,t);break}case m.HR:{KR(e,t);break}case m.RB:case m.RTC:{rL(e,t);break}case m.RT:case m.RP:{iL(e,t);break}case m.PRE:case m.LISTING:{BR(e,t);break}case m.XMP:{ZR(e,t);break}case m.SVG:{sL(e,t);break}case m.HTML:{RR(e,t);break}case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:{yr(e,t);break}case m.BODY:{LR(e,t);break}case m.FORM:{UR(e,t);break}case m.NOBR:{qR(e,t);break}case m.MATH:{oL(e,t);break}case m.TABLE:{GR(e,t);break}case m.INPUT:{WR(e,t);break}case m.PARAM:case m.TRACK:case m.SOURCE:{XR(e,t);break}case m.IMAGE:{QR(e,t);break}case m.BUTTON:{jR(e,t);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{YR(e,t);break}case m.IFRAME:{eL(e,t);break}case m.SELECT:{tL(e,t);break}case m.OPTION:case m.OPTGROUP:{nL(e,t);break}case m.NOEMBED:case m.NOFRAMES:{Yy(e,t);break}case m.FRAMESET:{DR(e,t);break}case m.TEXTAREA:{JR(e,t);break}case m.NOSCRIPT:{e.options.scriptingEnabled?Yy(e,t):Gy(e,t);break}case m.PLAINTEXT:{zR(e,t);break}case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:Gy(e,t)}}function aL(e,t){if(e.openElements.hasInScope(m.BODY)&&(e.insertionMode=L.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function uL(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=L.AFTER_BODY,rb(e,t))}function lL(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function cL(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):n&&e.openElements.remove(n))}function dL(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(G.P,m.P),e._closePElement()}function fL(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function hL(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function pL(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function mL(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function gL(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(G.BR,m.BR),e.openElements.pop(),e.framesetOk=!1}function Wy(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const a=e.openElements.items[o],u=e.openElements.tagIDs[o];if(r===u&&(r!==m.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(a,u))break}}function Bl(e,t){switch(t.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:{Sh(e,t);break}case m.P:{dL(e);break}case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{lL(e,t);break}case m.LI:{fL(e);break}case m.DD:case m.DT:{hL(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{pL(e);break}case m.BR:{gL(e);break}case m.BODY:{aL(e,t);break}case m.HTML:{uL(e,t);break}case m.FORM:{cL(e);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{mL(e,t);break}case m.TEMPLATE:{ho(e,t);break}default:Wy(e,t)}}function Xy(e,t){e.tmplInsertionModeStack.length>0?nb(e,t):wh(e,t)}function EL(e,t){var n;t.tagID===m.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function yL(e,t){e._err(t,ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ch(e,t){if(e.openElements.currentTagId!==void 0&&Uy.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=L.IN_TABLE_TEXT,t.type){case Ke.CHARACTER:{Qy(e,t);break}case Ke.WHITESPACE_CHARACTER:{Ky(e,t);break}}else za(e,t)}function bL(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_CAPTION}function TL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_COLUMN_GROUP}function _L(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.COLGROUP,m.COLGROUP),e.insertionMode=L.IN_COLUMN_GROUP,Ah(e,t)}function SL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_TABLE_BODY}function xL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.TBODY,m.TBODY),e.insertionMode=L.IN_TABLE_BODY,Hl(e,t)}function wL(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function CL(e,t){qy(t)?e._appendElement(t,ae.HTML):za(e,t),t.ackSelfClosing=!0}function AL(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ae.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ls(e,t){switch(t.tagID){case m.TD:case m.TH:case m.TR:{xL(e,t);break}case m.STYLE:case m.SCRIPT:case m.TEMPLATE:{yr(e,t);break}case m.COL:{_L(e,t);break}case m.FORM:{AL(e,t);break}case m.TABLE:{wL(e,t);break}case m.TBODY:case m.TFOOT:case m.THEAD:{SL(e,t);break}case m.INPUT:{CL(e,t);break}case m.CAPTION:{bL(e,t);break}case m.COLGROUP:{TL(e,t);break}default:za(e,t)}}function Ha(e,t){switch(t.tagID){case m.TABLE:{e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode());break}case m.TEMPLATE:{ho(e,t);break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:za(e,t)}}function za(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Fl(e,t),e.fosterParentingEnabled=n}function Ky(e,t){e.pendingCharacterTokens.push(t)}function Qy(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ja(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)za(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Jy=new Set([m.CAPTION,m.COL,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]);function vL(e,t){const n=t.tagID;Jy.has(n)?e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,ls(e,t)):pn(e,t)}function kL(e,t){const n=t.tagID;switch(n){case m.CAPTION:case m.TABLE:{e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,n===m.TABLE&&Ha(e,t));break}case m.BODY:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:Bl(e,t)}}function Ah(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.COL:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case m.TEMPLATE:{yr(e,t);break}default:Ul(e,t)}}function PL(e,t){switch(t.tagID){case m.COLGROUP:{e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case m.TEMPLATE:{ho(e,t);break}case m.COL:break;default:Ul(e,t)}}function Ul(e,t){e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE,e._processToken(t))}function Hl(e,t){switch(t.tagID){case m.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_ROW;break}case m.TH:case m.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(G.TR,m.TR),e.insertionMode=L.IN_ROW,zl(e,t);break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,ls(e,t));break}default:ls(e,t)}}function vh(e,t){const n=t.tagID;switch(t.tagID){case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case m.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,Ha(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:case m.TR:break;default:Ha(e,t)}}function zl(e,t){switch(t.tagID){case m.TH:case m.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ae.HTML),e.insertionMode=L.IN_CELL,e.activeFormattingElements.insertMarker();break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Hl(e,t));break}default:ls(e,t)}}function Zy(e,t){switch(t.tagID){case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY);break}case m.TABLE:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,vh(e,t));break}case m.TBODY:case m.TFOOT:case m.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(m.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,vh(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:break;default:Ha(e,t)}}function NL(e,t){const n=t.tagID;Jy.has(n)?(e.openElements.hasInTableScope(m.TD)||e.openElements.hasInTableScope(m.TH))&&(e._closeTableCell(),zl(e,t)):pn(e,t)}function OL(e,t){const n=t.tagID;switch(n){case m.TD:case m.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_ROW);break}case m.TABLE:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Zy(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:break;default:Bl(e,t)}}function eb(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._insertElement(t,ae.HTML);break}case m.OPTGROUP:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ae.HTML);break}case m.HR:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case m.INPUT:case m.KEYGEN:case m.TEXTAREA:case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),t.tagID!==m.SELECT&&e._processStartTag(t));break}case m.SCRIPT:case m.TEMPLATE:{yr(e,t);break}}}function tb(e,t){switch(t.tagID){case m.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===m.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===m.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop();break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop();break}case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode());break}case m.TEMPLATE:{ho(e,t);break}}}function IL(e,t){const n=t.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processStartTag(t)):eb(e,t)}function RL(e,t){const n=t.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e.onEndTag(t)):tb(e,t)}function LL(e,t){switch(t.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{yr(e,t);break}case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.tmplInsertionModeStack[0]=L.IN_TABLE,e.insertionMode=L.IN_TABLE,ls(e,t);break}case m.COL:{e.tmplInsertionModeStack[0]=L.IN_COLUMN_GROUP,e.insertionMode=L.IN_COLUMN_GROUP,Ah(e,t);break}case m.TR:{e.tmplInsertionModeStack[0]=L.IN_TABLE_BODY,e.insertionMode=L.IN_TABLE_BODY,Hl(e,t);break}case m.TD:case m.TH:{e.tmplInsertionModeStack[0]=L.IN_ROW,e.insertionMode=L.IN_ROW,zl(e,t);break}default:e.tmplInsertionModeStack[0]=L.IN_BODY,e.insertionMode=L.IN_BODY,pn(e,t)}}function DL(e,t){t.tagID===m.TEMPLATE&&ho(e,t)}function nb(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):wh(e,t)}function ML(e,t){t.tagID===m.HTML?pn(e,t):jl(e,t)}function rb(e,t){var n;if(t.tagID===m.HTML){if(e.fragmentContext||(e.insertionMode=L.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===m.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else jl(e,t)}function jl(e,t){e.insertionMode=L.IN_BODY,Fl(e,t)}function FL(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.FRAMESET:{e._insertElement(t,ae.HTML);break}case m.FRAME:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case m.NOFRAMES:{yr(e,t);break}}}function BL(e,t){t.tagID===m.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==m.FRAMESET&&(e.insertionMode=L.AFTER_FRAMESET))}function UL(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.NOFRAMES:{yr(e,t);break}}}function HL(e,t){t.tagID===m.HTML&&(e.insertionMode=L.AFTER_AFTER_FRAMESET)}function zL(e,t){t.tagID===m.HTML?pn(e,t):$l(e,t)}function $l(e,t){e.insertionMode=L.IN_BODY,Fl(e,t)}function jL(e,t){switch(t.tagID){case m.HTML:{pn(e,t);break}case m.NOFRAMES:{yr(e,t);break}}}function $L(e,t){t.chars=Ct,e._insertCharacters(t)}function VL(e,t){e._insertCharacters(t),e.framesetOk=!1}function ib(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ae.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function qL(e,t){if(sR(t))ib(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ae.MATHML?Fy(t):r===ae.SVG&&(aR(t),By(t)),_h(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function YL(e,t){if(t.tagID===m.P||t.tagID===m.BR){ib(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ae.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}G.AREA,G.BASE,G.BASEFONT,G.BGSOUND,G.BR,G.COL,G.EMBED,G.FRAME,G.HR,G.IMG,G.INPUT,G.KEYGEN,G.LINK,G.META,G.PARAM,G.SOURCE,G.TRACK,G.WBR;const GL=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,WL=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ob={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function sb(e,t){const n=i6(e),r=yy("type",{handlers:{root:XL,element:KL,text:QL,comment:ub,doctype:JL,raw:e6},unknown:t6}),o={parser:n?new zy(ob):zy.getFragmentParser(void 0,ob),handle(c){r(c,o)},stitches:!1,options:t||{}};r(e,o),cs(o,Lr());const a=n?o.parser.document:o.parser.getFragment(),u=XI(a,{file:o.options.file});return o.stitches&&Il(u,"comment",function(c,d,f){const p=c;if(p.value.stitch&&f&&d!==void 0){const g=f.children;return g[d]=p.value.stitch,d}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function ab(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function XL(e,t){ab(e.children,t)}function KL(e,t){n6(e,t),ab(e.children,t),r6(e,t)}function QL(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ke.CHARACTER,chars:e.value,location:$a(e)};cs(t,Lr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function JL(e,t){const n={type:Ke.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:$a(e)};cs(t,Lr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ZL(e,t){t.stitches=!0;const n=o6(e);if("children"in e&&"children"in n){const r=sb({type:"root",children:e.children},t.options);n.children=r.children}ub({type:"comment",value:{stitch:n}},t)}function ub(e,t){const n=e.value,r={type:Ke.COMMENT,data:n,location:$a(e)};cs(t,Lr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function e6(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,lb(t,Lr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(GL,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function t6(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))ZL(n,t);else{let r="";throw WL.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function cs(e,t){lb(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Mt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function lb(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function n6(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Mt.PLAINTEXT)return;cs(t,Lr(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:lo.html;o===lo.html&&n==="svg"&&(o=lo.svg);const a=c3(me(F({},e),{children:[]}),{space:o===lo.svg?"svg":"html"}),u={type:Ke.START_TAG,tagName:n,tagID:us(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:$a(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function r6(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&y3.includes(n)||t.parser.tokenizer.state===Mt.PLAINTEXT)return;cs(t,_l(e));const r={type:Ke.END_TAG,tagName:n,tagID:us(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:$a(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Mt.RCDATA||t.parser.tokenizer.state===Mt.RAWTEXT||t.parser.tokenizer.state===Mt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Mt.DATA)}function i6(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function $a(e){const t=Lr(e)||{line:void 0,column:void 0,offset:void 0},n=_l(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function o6(e){return"children"in e?uo(me(F({},e),{children:[]})):uo(e)}function cb(e){return function(t,n){return sb(t,me(F({},e),{file:n}))}}const po=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],db={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...po,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...po],h2:[["className","sr-only"]],img:[...po,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...po,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...po],table:[...po],ul:[...po,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Pi={}.hasOwnProperty;function s6(e,t){let n={type:"root",children:[]};const r={schema:t?F(F({},db),t):db,stack:[]},o=fb(r,e);return o&&(Array.isArray(o)?o.length===1?n=o[0]:n.children=o:n=o),n}function fb(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return a6(e,n);case"doctype":return u6(e,n);case"element":return l6(e,n);case"root":return c6(e,n);case"text":return d6(e,n)}}}function a6(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return Va(a,t),a}}function u6(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Va(n,t),n}}function l6(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=hb(e,t.children),o=f6(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Pi.call(e.schema.ancestors,n))){const c=e.schema.ancestors[n];let d=-1;for(a=!1;++d<c.length;)e.stack.includes(c[d])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const u={type:"element",tagName:n,properties:o,children:r};return Va(u,t),u}function c6(e,t){const r={type:"root",children:hb(e,t.children)};return Va(r,t),r}function d6(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return Va(r,t),r}function hb(e,t){const n=[];if(Array.isArray(t)){const r=t;let o=-1;for(;++o<r.length;){const a=fb(e,r[o]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function f6(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,o=e.schema.required,a=r&&Pi.call(r,n)?r[n]:void 0,u=r&&Pi.call(r,"*")?r["*"]:void 0,c=t&&typeof t=="object"?t:{},d={};let f;for(f in c)if(Pi.call(c,f)){const p=c[f];let g=pb(e,gb(a,f),f,p);g==null&&(g=pb(e,gb(u,f),f,p)),g!=null&&(d[f]=g)}if(o&&Pi.call(o,n)){const p=o[n];for(f in p)Pi.call(p,f)&&!Pi.call(d,f)&&(d[f]=p[f])}return d}function pb(e,t,n,r){return t?Array.isArray(r)?h6(e,t,n,r):mb(e,t,n,r):void 0}function h6(e,t,n,r){let o=-1;const a=[];for(;++o<r.length;){const u=mb(e,t,n,r[o]);(typeof u=="number"||typeof u=="string")&&a.push(u)}return a}function mb(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&p6(e,n,r)){if(typeof t=="object"&&t.length>1){let o=!1,a=0;for(;++a<t.length;){const u=t[a];if(u&&typeof u=="object"&&"flags"in u){if(u.test(String(r))){o=!0;break}}else if(u===r){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function p6(e,t,n){const r=e.schema.protocols&&Pi.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const o=String(n),a=o.indexOf(":"),u=o.indexOf("?"),c=o.indexOf("#"),d=o.indexOf("/");if(a<0||d>-1&&a>d||u>-1&&a>u||c>-1&&a>c)return!0;let f=-1;for(;++f<r.length;){const p=r[f];if(a===p.length&&o.slice(0,p.length)===p)return!0}return!1}function Va(e,t){const n=Q1(t);t.data&&(e.data=uo(t.data)),n&&(e.position=n)}function gb(e,t){let n,r=-1;if(e)for(;++r<e.length;){const o=e[r],a=typeof o=="string"?o:o[0];if(a===t)return o;a==="data*"&&(n=o)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function m6(e){return function(t){return s6(t,e)}}const Eb=({globalClassName:e,openLinksInNewTab:t,href:n,title:r,children:o})=>{const a=n?t?"_blank":"_self":void 0;return w.jsx("a",me(F(F({className:W(e,`${j}-link`)},n?{href:n,target:a}:{}),r?{title:r}:{}),{rel:"noopener noreferrer",children:o}))},g6=()=>{const{disclaimerText:e,disclaimerMarkdown:t,globalClassName:n}=at();return!e&&!t?null:w.jsx("div",{className:W(n,`${j}-disclaimer`),children:t?w.jsx(JE,{rehypePlugins:[cb,m6],components:{ul:({children:r})=>w.jsx("ul",{className:W(n,`${j}-ul`),children:r}),ol:({children:r})=>w.jsx("ol",{className:W(n,`${j}-ol`),children:r}),li:({children:r})=>w.jsx("li",{className:W(n,`${j}-li`),children:r}),a:({href:r,title:o,children:a})=>w.jsx(Eb,{globalClassName:n,openLinksInNewTab:!0,href:r,title:o,children:a}),img:({src:r,alt:o})=>w.jsx("img",{className:W(n,`${j}-disclaimer-image`),src:r,alt:o}),p:({children:r})=>w.jsx("p",{className:W(n,`${j}-disclaimer-text`),children:r}),span:({children:r})=>w.jsx("span",{className:W(n,`${j}-disclaimer-text-span`),children:r})},children:t}):w.jsx("p",{className:W(n,`${j}-disclaimer-text`),children:e})})},kh=({className:e,isLoading:t,componentType:n,onSubmit:r})=>{const{connected:o,imageFile:a}=er(),{setImageFile:u}=Wo(),{logger:c,globalClassName:d,searchConfig:f,features:p}=at(),g=U.useRef(null),T=U.useRef(null),y=!!(p!=null&&p.enableImageUpload),_=(a==null?void 0:a.name)||"",S=!!o||!1,k=S?"connected":"disconnected",v=t||!S,N=()=>a?new Promise((D,K)=>{const re=new FileReader;re.readAsDataURL(a),re.onload=()=>D(re.result),re.onerror=be=>K(be)}):Promise.resolve(""),C=D=>tt(null,null,function*(){var be;if(v)return;const K=10*1024*1024,re=(be=D.target.files)==null?void 0:be[0];if(re){if(re.size>K){alert("File size exceeds the 10MB limit. Please choose a smaller file."),u(null);return}u(re)}}),M=()=>{u(null),T.current&&(T.current.value="")},V=D=>tt(null,null,function*(){var be;D.preventDefault();const K=(((be=g.current)==null?void 0:be.value)||"").trim();let re="";try{re=yield N()}catch($){c==null||c.error("Error converting file to base64:",$),alert("There was an error processing the file. Please try again.");return}K&&(M(),g.current.value="",r(K,re))});return w.jsxs("div",{className:W(d,e,`cim-${n}-component`,a&&"with-attachments",`${j}-search-bar-wrapper`),children:[a&&w.jsxs("div",{className:W(d,`cim-${n}-component`,`${j}-image-file-preview`),children:[w.jsx("img",{className:W(d,`cim-${n}-component`,`${j}-image-preview`),src:URL.createObjectURL(a),alt:`${_} preview`,loading:"lazy"}),w.jsx("span",{className:W(d,`cim-${n}-component`,`${j}-image-file-name`),title:_,children:_}),w.jsx(N1,{className:W(`cim-${n}-component`,"clear-attachment"),label:"Remove image",onClick:M})]}),w.jsxs("form",{className:W(d,e,`cim-${n}-component`,`${j}-search-bar`),name:`${j}-search-form`,onSubmit:V,children:[w.jsx("span",{role:"status",className:W(`${j}-connection-status-icon`,k)}),y&&w.jsxs("div",{role:"button",className:W(d,e,`cim-${n}-component`,v&&"disabled",`${j}-image-upload-button`),"aria-disabled":v,tabIndex:0,children:[w.jsx("label",{className:W(d,e,`cim-${n}-component`,v&&"disabled",`${j}-image-upload-label`),htmlFor:"image-input","aria-label":"Upload an image",children:w.jsx(Ik,{})}),w.jsx("input",{className:W(d,e,`cim-${n}-component`,`${j}-file-input`),type:"file",ref:T,id:"image-input",accept:".png,.jpg,.jpeg,.avif,.svg,.gif,.tiff,.tif,.webp",name:`${j}-file-input`,disabled:v,onInput:C})]}),w.jsx("input",{className:W(d,e,`cim-${n}-component`,`${j}-search-input`),type:"text",ref:g,placeholder:f==null?void 0:f.placeholder,name:`${j}-user-input`}),w.jsx(Bk,{isLoading:v}),w.jsx(Dk,{className:e,globalClassName:d,searchConfig:f,componentType:n,isLoading:v})]}),w.jsx(g6,{})]})};function E6(e){return zt({attr:{version:"1.1",viewBox:"0 0 17 17"},child:[{tag:"g",attr:{},child:[]},{tag:"path",attr:{d:"M6 8h-6v-6h1v4.109c1.013-3.193 4.036-5.484 7.5-5.484 3.506 0 6.621 2.36 7.574 5.739l-0.963 0.271c-0.832-2.95-3.551-5.011-6.611-5.011-3.226 0.001-6.016 2.276-6.708 5.376h4.208v1zM11 9v1h4.208c-0.693 3.101-3.479 5.375-6.708 5.375-3.062 0-5.78-2.061-6.611-5.011l-0.963 0.271c0.952 3.379 4.067 5.739 7.574 5.739 3.459 0 6.475-2.28 7.5-5.482v4.108h1v-6h-6z"},child:[]}]})(e)}const yb=U.createContext({isOpen:!1}),Ph=U.createContext(null),bb=U.createContext(null),qa=()=>{var n,r;const e=U.useContext(Ph),t=U.useContext(bb);return(r=(n=e==null?void 0:e.closeMenu)!=null?n:t==null?void 0:t.closeMenu)!=null?r:(()=>{})},Tb=({onClearChat:e,componentType:t})=>{const n=qa(),r=()=>{e(),n()};return w.jsxs("button",{className:W(`${j}-overflow-menu-button`,"clear-chat-button",`cim-${t}-component`),onClick:r,children:[w.jsx(E6,{}),"Clear chat"]})};function y6(e){return e==null?[]:Array.isArray(e)?e:[e]}var b6=(e,...t)=>e.concat(t),T6=(e,...t)=>e.filter(n=>!t.includes(n)),_6=e=>Array.from(new Set(e));function _b(e,t,n={}){const{step:r=1,loop:o=!0}=n,a=t+r,u=e.length,c=u-1;return t===-1?r>0?0:c:a<0?o?c:0:a>=u?o?0:t>u?u:t:a}function S6(e,t,n={}){const{step:r=1,loop:o=!0}=n;return _b(e,t,{step:-r,loop:o})}var x6=e=>Array.isArray(e),Sb=e=>e!=null&&typeof e=="object",w6=e=>Sb(e)&&!x6(e),Vl=e=>typeof e=="string",ds=e=>typeof e=="function",C6=e=>e==null,A6=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),v6=e=>Object.prototype.toString.call(e),xb=Function.prototype.toString,k6=xb.call(Object),P6=e=>{if(!Sb(e)||v6(e)!="[object Object]"||I6(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=A6(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&xb.call(n)==k6},N6=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,O6=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,I6=e=>N6(e)||O6(e),R6=e=>e(),L6=()=>{},Nh=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})};function D6(e,t=0){let n=0,r=null;return((...o)=>{const a=Date.now(),u=a-n;u>=t?(r&&(clearTimeout(r),r=null),e(...o),n=a):r||(r=setTimeout(()=>{e(...o),n=Date.now(),r=null},t-u))})}var{min:M6,max:F6}=Math,B6=e=>Number.isNaN(e),U6=e=>B6(e)?0:e,wb=(e,t,n)=>M6(F6(U6(e),t),n);function Oh(e){if(!P6(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=Oh(o))}return n}function Ih(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function H6(e,t){if(e==null)throw new Error(t())}function z6(e,t,n){let r=[];for(const o of t)e[o]==null&&r.push(o);if(r.length>0)throw new Error(`[zag-js${` > ${n}`}] missing required props: ${r.join(", ")}`)}var j6=Object.defineProperty,$6=(e,t,n)=>t in e?j6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rh=(e,t,n)=>$6(e,typeof t!="symbol"?t+"":t,n),Cb=()=>{},ql=e=>typeof e=="object"&&e!==null,fs=e=>e?"":void 0,Ab=e=>e?"true":void 0,V6=1,q6=9,Y6=11,Zt=e=>ql(e)&&e.nodeType===V6&&typeof e.nodeName=="string",Yl=e=>ql(e)&&e.nodeType===q6,G6=e=>ql(e)&&e===e.window,vb=e=>Zt(e)?e.localName||"":"#document";function W6(e){return["html","body","#document"].includes(vb(e))}var X6=e=>ql(e)&&e.nodeType!==void 0,mo=e=>X6(e)&&e.nodeType===Y6&&"host"in e,K6=e=>Zt(e)&&e.localName==="input",Q6=e=>Zt(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Ya(e){if(!e)return!1;const t=e.getRootNode();return ms(t)===e}var J6=/(textarea|select)/;function Z6(e){if(e==null||!Zt(e))return!1;try{return K6(e)&&e.selectionStart!=null||J6.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch(t){return!1}}function hs(e,t){var r;if(!e||!t||!Zt(e)||!Zt(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&mo(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Fr(e){var t;return Yl(e)?e:G6(e)?e.document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function eD(e){return Fr(e).documentElement}function ps(e){var t,n,r;return mo(e)?ps(e.host):Yl(e)?(t=e.defaultView)!=null?t:window:Zt(e)&&(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window}function ms(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(!n||n===t)break;t=n}return t}function tD(e){if(vb(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mo(e)&&e.host||eD(e);return mo(t)?t.host:t}function Lh(e){var n;let t;try{if(t=e.getRootNode({composed:!0}),Yl(t)||mo(t))return t}catch(r){}return(n=e.ownerDocument)!=null?n:document}var Dh=new WeakMap;function gs(e){return Dh.has(e)||Dh.set(e,ps(e).getComputedStyle(e)),Dh.get(e)}var Mh=new Set(["menu","listbox","dialog","grid","tree","region"]),nD=e=>Mh.has(e),kb=e=>{var t;return((t=e.getAttribute("aria-controls"))==null?void 0:t.split(" "))||[]};function Pb(e,t){const n=new Set,r=Lh(e),o=a=>{const u=a.querySelectorAll("[aria-controls]");for(const c of u){if(c.getAttribute("aria-expanded")!=="true")continue;const d=kb(c);for(const f of d){if(!f||n.has(f))continue;n.add(f);const p=r.getElementById(f);if(p){const g=p.getAttribute("role"),T=p.getAttribute("aria-modal")==="true";if(g&&nD(g)&&!T&&(p===t||p.contains(t)||o(p)))return!0}}}return!1};return o(e)}function Nb(e,t){const n=Lh(e),r=new Set,o=a=>{const u=a.querySelectorAll("[aria-controls]");for(const c of u){if(c.getAttribute("aria-expanded")!=="true")continue;const d=kb(c);for(const f of d){if(!f||r.has(f))continue;r.add(f);const p=n.getElementById(f);if(p){const g=p.getAttribute("role"),T=p.getAttribute("aria-modal")==="true";g&&Mh.has(g)&&!T&&(t(p),o(p))}}}};o(e)}function rD(e){const t=new Set;return Nb(e,n=>{e.contains(n)||t.add(n)}),Array.from(t)}function iD(e){const t=e.getAttribute("role");return!!(t&&Mh.has(t))}function oD(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function sD(e){var t;return oD(e)?!0:!!((t=e.querySelector)!=null&&t.call(e,'[aria-controls][aria-expanded="true"]'))}function aD(e){if(!e.id)return!1;const t=Lh(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&iD(e))}var Fh=()=>typeof document!="undefined";function uD(){var t;const e=navigator.userAgentData;return(t=e==null?void 0:e.platform)!=null?t:navigator.platform}var Bh=e=>Fh()&&e.test(uD()),lD=e=>Fh()&&e.test(navigator.vendor),Ob=()=>Fh()&&!!navigator.maxTouchPoints,cD=()=>Bh(/^iPhone/i),dD=()=>Bh(/^iPad/i)||Uh()&&navigator.maxTouchPoints>1,Gl=()=>cD()||dD(),fD=()=>Uh()||Gl(),Uh=()=>Bh(/^Mac/i),hD=()=>fD()&&lD(/apple/i);function pD(e){var t,n,r,o;return(o=(t=e.composedPath)==null?void 0:t.call(e))!=null?o:(r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n)}function br(e){var n;const t=pD(e);return(n=t==null?void 0:t[0])!=null?n:e.target}var Ib=e=>e.button===0,mD=e=>e.button===2||Uh()&&e.ctrlKey&&e.button===0,gD=e=>"touches"in e&&e.touches.length>0,ED={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},Rb={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function yD(e,t={}){var u;const{dir:n="ltr",orientation:r="horizontal"}=t;let o=e.key;return o=(u=ED[o])!=null?u:o,n==="rtl"&&r==="horizontal"&&o in Rb&&(o=Rb[o]),o}function Lb(e,t="client"){const n=gD(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var en=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,n,r),()=>{o==null||o.removeEventListener(t,n,r)}},Db=e=>Zt(e)&&e.tagName==="IFRAME",bD=/^(audio|video|details)$/;function Mb(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var TD=e=>!Number.isNaN(Mb(e)),_D=e=>Mb(e)<0;function SD(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const n=t(e);return(n===!0?e.shadowRoot:n)||null}function Fb(e,t,n){const r=[...e],o=[...e],a=new Set,u=new Map;e.forEach((d,f)=>u.set(d,f));let c=0;for(;c<o.length;){const d=o[c++];if(!d||a.has(d))continue;a.add(d);const f=SD(d,t);if(f){const p=Array.from(f.querySelectorAll(Wl)).filter(n),g=u.get(d);if(g!==void 0){const T=g+1;r.splice(T,0,...p),p.forEach((y,_)=>{u.set(y,T+_)});for(let y=T+p.length;y<r.length;y++)u.set(r[y],y)}else{const T=r.length;r.push(...p),p.forEach((y,_)=>{u.set(y,T+_)})}o.push(...p)}}return r}var Wl="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Bb=(e,t={})=>{if(!e)return[];const{includeContainer:n=!1,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Wl));(n==!0||n=="if-empty"&&o.length===0)&&Zt(e)&&Br(e)&&o.unshift(e);const u=[];for(const c of o)if(Br(c)){if(Db(c)&&c.contentDocument){const d=c.contentDocument.body;u.push(...Bb(d,{getShadowRoot:r}));continue}u.push(c)}return r?Fb(u,r,Br):u};function Br(e){return!Zt(e)||e.closest("[inert]")?!1:e.matches(Wl)&&Q6(e)}function Es(e,t={}){if(!e)return[];const{includeContainer:n,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Wl));n&&go(e)&&o.unshift(e);const a=[];for(const u of o)if(go(u)){if(Db(u)&&u.contentDocument){const c=u.contentDocument.body;a.push(...Es(c,{getShadowRoot:r}));continue}a.push(u)}if(r){const u=Fb(a,r,go);return!u.length&&n?o:u}return!a.length&&n?o:a}function go(e){return Zt(e)&&e.tabIndex>0?!0:Br(e)&&!_D(e)}function xD(e,t={}){const n=Es(e,t),r=n[0]||null,o=n[n.length-1]||null;return[r,o]}function wD(e,t={}){const{current:n,getShadowRoot:r}=t,o=Es(e,{getShadowRoot:r}),a=(e==null?void 0:e.ownerDocument)||document,u=n!=null?n:ms(a);if(!u)return null;const c=o.indexOf(u);return o[c+1]||null}function Ga(e){return e.tabIndex<0&&(bD.test(e.localName)||Z6(e))&&!TD(e)?0:e.tabIndex}function Ub(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let a=null;if(a||(a=typeof n=="function"?n():n),a||(a=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!a){const u=Es(t);a=r?u.filter(r)[0]:u[0]}return a||t||void 0}var CD=class j2{constructor(){Rh(this,"id",null),Rh(this,"fn_cleanup"),Rh(this,"cleanup",()=>{this.cancel()})}static create(){return new j2}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t==null?void 0:t()})}cancel(){var t;this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),(t=this.fn_cleanup)==null||t.call(this),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function qt(e){const t=CD.create();return t.request(e),t.cleanup}function Hb(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function Hh(e){const t=tD(e);return W6(t)?Fr(t).body:Zt(t)&&kD(t)?t:Hh(t)}var AD=/auto|scroll|overlay|hidden|clip/,vD=new Set(["inline","contents"]);function kD(e){const t=ps(e),{overflow:n,overflowX:r,overflowY:o,display:a}=t.getComputedStyle(e);return AD.test(n+o+r)&&!vD.has(a)}var ys="default",zh="",Xl=new WeakMap;function PD(e={}){const{target:t,doc:n}=e,r=n!=null?n:document,o=r.documentElement;return Gl()?(ys==="default"&&(zh=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),ys="disabled"):t&&(Xl.set(t,t.style.userSelect),t.style.userSelect="none"),()=>ND({target:t,doc:r})}function ND(e={}){const{target:t,doc:n}=e,o=(n!=null?n:document).documentElement;if(Gl()){if(ys!=="disabled")return;ys="restoring",setTimeout(()=>{Hb(()=>{ys==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=zh||""),zh="",ys="default")})},300)}else if(t&&Xl.has(t)){const a=Xl.get(t);t.style.userSelect==="none"&&(t.style.userSelect=a!=null?a:""),t.getAttribute("style")===""&&t.removeAttribute("style"),Xl.delete(t)}}function OD(e={}){const u=e,{defer:t,target:n}=u,r=ln(u,["defer","target"]),o=t?qt:c=>c(),a=[];return a.push(o(()=>{const c=typeof n=="function"?n():n;a.push(PD(me(F({},r),{target:c})))})),()=>{a.forEach(c=>c==null?void 0:c())}}function ID(e,t){const{onPointerMove:n,onPointerUp:r}=t,o=c=>{const d=Lb(c),f=Math.sqrt(ta(d.x,2)+ta(d.y,2)),p=c.pointerType==="touch"?10:5;if(!(f<p)){if(c.pointerType==="mouse"&&c.button===0){a(c);return}n({point:d,event:c})}},a=c=>{const d=Lb(c);r({point:d,event:c})},u=[en(e,"pointermove",o,!1),en(e,"pointerup",a,!1),en(e,"pointercancel",a,!1),en(e,"contextmenu",a,!1),OD({doc:e})];return()=>{u.forEach(c=>c())}}function RD(e,t={}){const{triggerElement:n,onFocus:r,onFocusEnter:o,getShadowRoot:a}=t,u=(e==null?void 0:e.ownerDocument)||document,c=u.body;function d(f){if(f.key!=="Tab")return;let p=null;const[g,T]=xD(e,{includeContainer:!0,getShadowRoot:a}),y=wD(c,{current:n,getShadowRoot:a}),_=!g&&!T;f.shiftKey&&Ya(y)?(o==null||o(),p=T):f.shiftKey&&(Ya(g)||_)?p=n:!f.shiftKey&&Ya(n)?(o==null||o(),p=g):!f.shiftKey&&(Ya(T)||_)&&(p=y),p&&(f.preventDefault(),typeof r=="function"?r(p):p.focus())}return en(u,"keydown",d,!0)}function LD(e,t){const c=t,{defer:n,triggerElement:r}=c,o=ln(c,["defer","triggerElement"]),a=n?qt:d=>d(),u=[];return u.push(a(()=>{const d=typeof e=="function"?e():e,f=typeof r=="function"?r():r;u.push(RD(d,F({triggerElement:f},o)))})),()=>{u.forEach(d=>d==null?void 0:d())}}function DD(e,t){var n;return Array.from((n=e==null?void 0:e.querySelectorAll(t))!=null?n:[])}function Kl(e,t){if(!e)return Cb;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function MD(e,t,n){if(!e)return Cb;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function FD(e,t,n){const{signal:r}=t;return[new Promise((u,c)=>{const d=setTimeout(()=>{c(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(d),c(new Error("Promise aborted"))}),e.then(f=>{r.aborted||(clearTimeout(d),u(f))}).catch(f=>{r.aborted||(clearTimeout(d),c(f))})}),()=>t.abort()]}function BD(e,t){const{timeout:n,rootNode:r}=t,o=ps(r),a=Fr(r),u=new o.AbortController;return FD(new Promise(c=>{const d=e();if(d){c(d);return}const f=new o.MutationObserver(()=>{const p=e();p&&p.isConnected&&(f.disconnect(),c(p))});f.observe(a.body,{childList:!0,subtree:!0})}),u,n)}var UD=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),HD=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,zb=e=>{const t={};let n;for(;n=HD.exec(e);)t[n[1]]=n[2];return t},zD=(e,t)=>{if(Vl(e)){if(Vl(t))return`${e};${t}`;e=zb(e)}else Vl(t)&&(t=zb(t));return Object.assign({},e!=null?e:{},t!=null?t:{})};function Yt(...e){let t={};for(let n of e){if(!n)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof n[o]=="function"){t[o]=Nh(n[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=UD(t[o],n[o]);continue}if(o==="style"){t[o]=zD(t[o],n[o]);continue}t[o]=n[o]!==void 0?n[o]:t[o]}for(let o in n)t[o]===void 0&&(t[o]=n[o]);const r=Object.getOwnPropertySymbols(n);for(let o of r)t[o]=n[o]}return t}function gU(e){return e}var bs=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(bs||{}),jh="__init__";function jD(e){const t=()=>{var u,c;return(c=(u=e.getRootNode)==null?void 0:u.call(e))!=null?c:document},n=()=>Fr(t()),r=()=>{var u;return(u=n().defaultView)!=null?u:window},o=()=>ms(t()),a=u=>t().getElementById(u);return me(F({},e),{getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:Ya,getById:a})}function $D(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var Ts=()=>e=>Array.from(new Set(e)),jb=typeof globalThis.document!="undefined"?U.useLayoutEffect:U.useEffect;function Ql(e){var g,T;const t=(g=e().value)!=null?g:e().defaultValue,n=(T=e().isEqual)!=null?T:Object.is,[r]=U.useState(t),[o,a]=U.useState(r),u=e().value!==void 0,c=U.useRef(o);c.current=u?e().value:o;const d=U.useRef(c.current);jb(()=>{d.current=c.current},[o,e().value]);const f=y=>{var k,v;const _=d.current,S=ds(y)?y(_):y;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:S,prev:_}),u||a(S),n(S,_)||(v=(k=e()).onChange)==null||v.call(k,S,_)};function p(){return u?e().value:o}return{initial:r,ref:c,get:p,set(y){(e().sync?Xo.flushSync:R6)(()=>f(y))},invoke(y,_){var S,k;(k=(S=e()).onChange)==null||k.call(S,y,_)},hash(y){var _,S,k;return(k=(S=(_=e()).hash)==null?void 0:S.call(_,y))!=null?k:String(y)}}}Ql.cleanup=e=>{U.useEffect(()=>e,[])},Ql.ref=e=>{const t=U.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function VD(e){const t=U.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var qD=(e,t)=>{const n=U.useRef(!1),r=U.useRef(!1);U.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e!=null?e:[]).map(o=>typeof o=="function"?o():o)]),U.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Jl(e,t={}){var Z,ce,he,ue,Te,Oe;const n=U.useMemo(()=>{const{id:de,ids:Q,getRootNode:ie}=t;return jD({id:de,ids:Q,getRootNode:ie})},[t]),r=(...de)=>{e.debug&&console.log(...de)},o=(ce=(Z=e.props)==null?void 0:Z.call(e,{props:Oh(t),scope:n}))!=null?ce:t,a=YD(o),u=(he=e.context)==null?void 0:he.call(e,{prop:a,bindable:Ql,scope:n,flush:Vb,getContext(){return d},getComputed(){return V},getRefs(){return S},getEvent(){return y()}}),c=$b(u),d={get(de){var Q;return(Q=c.current)==null?void 0:Q[de].ref.current},set(de,Q){var ie;(ie=c.current)==null||ie[de].set(Q)},initial(de){var Q;return(Q=c.current)==null?void 0:Q[de].initial},hash(de){var ie,A;const Q=(ie=c.current)==null?void 0:ie[de].get();return(A=c.current)==null?void 0:A[de].hash(Q)}},f=U.useRef(new Map),p=U.useRef(null),g=U.useRef(null),T=U.useRef({type:""}),y=()=>me(F({},T.current),{current(){return T.current},previous(){return g.current}}),_=()=>me(F({},D),{matches(...de){return de.includes(D.ref.current)},hasTag(de){var Q,ie;return!!((ie=(Q=e.states[D.ref.current])==null?void 0:Q.tags)!=null&&ie.includes(de))}}),S=VD((Te=(ue=e.refs)==null?void 0:ue.call(e,{prop:a,context:d}))!=null?Te:{}),k=()=>({state:_(),context:d,event:y(),prop:a,send:$,action:v,guard:N,track:qD,refs:S,computed:V,flush:Vb,scope:n,choose:M}),v=de=>{const Q=ds(de)?de(k()):de;if(!Q)return;const ie=Q.map(A=>{var te,O;const B=(O=(te=e.implementations)==null?void 0:te.actions)==null?void 0:O[A];return B||Ih(`[zag-js] No implementation found for action "${JSON.stringify(A)}"`),B});for(const A of ie)A==null||A(k())},N=de=>{var Q,ie;return ds(de)?de(k()):(ie=(Q=e.implementations)==null?void 0:Q.guards)==null?void 0:ie[de](k())},C=de=>{const Q=ds(de)?de(k()):de;if(!Q)return;const ie=Q.map(B=>{var O,_e;const te=(_e=(O=e.implementations)==null?void 0:O.effects)==null?void 0:_e[B];return te||Ih(`[zag-js] No implementation found for effect "${JSON.stringify(B)}"`),te}),A=[];for(const B of ie){const te=B==null?void 0:B(k());te&&A.push(te)}return()=>A.forEach(B=>B==null?void 0:B())},M=de=>y6(de).find(Q=>{let ie=!Q.guard;return Vl(Q.guard)?ie=!!N(Q.guard):ds(Q.guard)&&(ie=Q.guard(k())),ie}),V=de=>{H6(e.computed,()=>"[zag-js] No computed object found on machine");const Q=e.computed[de];return Q({context:d,event:y(),prop:a,refs:S,scope:n,computed:V})},D=Ql(()=>({defaultValue:e.initialState({prop:a}),onChange(de,Q){var A,B,te,O;if(Q){const _e=f.current.get(Q);_e==null||_e(),f.current.delete(Q)}Q&&v((A=e.states[Q])==null?void 0:A.exit),v((B=p.current)==null?void 0:B.actions);const ie=C((te=e.states[de])==null?void 0:te.effects);if(ie&&f.current.set(de,ie),Q===jh){v(e.entry);const _e=C(e.effects);_e&&f.current.set(jh,_e)}v((O=e.states[de])==null?void 0:O.entry)}})),K=U.useRef(void 0),re=U.useRef(bs.NotStarted);jb(()=>{queueMicrotask(()=>{var B;const ie=re.current===bs.Started;re.current=bs.Started,r(ie?"rehydrating...":"initializing...");const A=(B=K.current)!=null?B:D.initial;D.invoke(A,ie?D.get():jh)});const de=f.current,Q=D.ref.current;return()=>{r("unmounting..."),K.current=Q,re.current=bs.Stopped,de.forEach(ie=>ie==null?void 0:ie()),f.current=new Map,p.current=null,queueMicrotask(()=>{v(e.exit)})}},[]);const be=()=>"ref"in D?D.ref.current:D.get(),$=de=>{queueMicrotask(()=>{var O,_e,Ie,Ce,$e;if(re.current!==bs.Started)return;g.current=T.current,T.current=de;let Q=be();const ie=(Ie=(O=e.states[Q].on)==null?void 0:O[de.type])!=null?Ie:(_e=e.on)==null?void 0:_e[de.type],A=M(ie);if(!A)return;p.current=A;const B=(Ce=A.target)!=null?Ce:Q;r("transition",de.type,A.target||Q,`(${A.actions})`);const te=B!==Q;te?Xo.flushSync(()=>D.set(B)):A.reenter&&!te?D.invoke(Q,Q):v(($e=A.actions)!=null?$e:[])})};return(Oe=e.watch)==null||Oe.call(e,k()),{state:_(),send:$,context:d,prop:a,scope:n,refs:S,computed:V,event:y(),getStatus:()=>re.current}}function $b(e){const t=U.useRef(e);return t.current=e,t}function YD(e){const t=$b(e);return function(r){return t.current[r]}}function Vb(e){queueMicrotask(()=>{Xo.flushSync(()=>e())})}var $h=$D(e=>e);function Zl(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function GD(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Vh=e=>{const t=U.memo(U.forwardRef((n,r)=>{const f=n,{asChild:o,children:a}=f,u=ln(f,["asChild","children"]);if(!o)return U.createElement(e,me(F({},u),{ref:r}),a);if(!U.isValidElement(a))return null;const c=U.Children.only(a),d=GD(c);return U.cloneElement(c,me(F({},Yt(u,c.props)),{ref:r?Zl(r,d):d}))}));return t.displayName=e.displayName||e.name,t},mn=(()=>{const e=new Map;return new Proxy(Vh,{apply(t,n,r){return Vh(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Vh(r)),e.get(r)}})})();function WD(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Eo(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:a,defaultValue:u}=e,c=U.createContext(u);c.displayName=t;function d(){var p;const f=U.useContext(c);if(!f&&n){const g=new Error(a!=null?a:WD(r,o));throw g.name="ContextError",(p=Error.captureStackTrace)==null||p.call(Error,g,d),g}return f}return[c.Provider,d,c]}const[XD,qh]=Eo({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),[qb,Wa]=Eo({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),Yb=U.forwardRef((e,t)=>{const n=qh(),r=Wa(),o=Yt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:w.jsx(mn.div,me(F({},o),{ref:Zl(r.ref,t)}))});Yb.displayName="PopoverContent";const Gb=U.forwardRef((e,t)=>{const n=qh(),r=Wa(),o=Yt(n.getPositionerProps(),e);return r.unmounted?null:w.jsx(mn.div,me(F({},o),{ref:t}))});Gb.displayName="PopoverPositioner";const Xa=()=>(e,t)=>t.reduce((n,r)=>{const[o,a]=n,u=r;return a[u]!==void 0&&(o[u]=a[u]),delete a[u],[o,a]},[{},F({},e)]),Wb=e=>Xa()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function KD(e,t){const{state:n,send:r,context:o}=e,a=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:a,setNode(u){u&&r({type:"NODE.SET",node:u})},unmount(){r({type:"UNMOUNT"})}}}var QD={props({props:e}){return me(F({},e),{present:!!e.present})},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",gs(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const a=t.get("node");if(!o&&(a==null?void 0:a.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});qt(()=>{var c,d;const u=ec(t.get("styles"));e.set("unmountAnimationName",u),u==="none"||u===e.get("prevAnimationName")||((c=t.get("styles"))==null?void 0:c.display)==="none"||((d=t.get("styles"))==null?void 0:d.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{qt(()=>{e.set("prevAnimationName",ec(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n,prop:r})=>{const o=t.get("node");if(!o)return;const a=d=>{var p,g,T;((T=(g=(p=d.composedPath)==null?void 0:p.call(d))==null?void 0:g[0])!=null?T:d.target)===o&&e.set("prevAnimationName",ec(t.get("styles")))},u=d=>{const f=ec(t.get("styles"));br(d)===o&&f===e.get("unmountAnimationName")&&!r("present")&&n({type:"UNMOUNT",src:"animationend"})};o.addEventListener("animationstart",a),o.addEventListener("animationcancel",u),o.addEventListener("animationend",u);const c=Kl(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",u),o.removeEventListener("animationend",u),Hb(()=>c())}}}}};function ec(e){return(e==null?void 0:e.animationName)||"none"}Ts()(["onExitComplete","present","immediate"]);function JD(e,t={}){const{sync:n=!1}=t,r=ZD(e);return U.useCallback((...o)=>{var a;return n?queueMicrotask(()=>{var u;return(u=r.current)==null?void 0:u.call(r,...o)}):(a=r.current)==null?void 0:a.call(r,...o)},[n,r])}function ZD(e){const t=U.useRef(e);return t.current=e,t}const Yh=(e={})=>{const T=e,{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1}=T,a=ln(T,["lazyMount","unmountOnExit","present","skipAnimationOnMount"]),u=U.useRef(!1),c=me(F({},a),{present:r,onExitComplete:JD(e.onExitComplete)}),d=Jl(QD,c),f=KD(d);f.present&&(u.current=!0);const p=!f.present&&!u.current&&t||n&&!f.present&&u.current,g=()=>({"data-state":f.skip&&o?void 0:r?"open":"closed",hidden:!f.present});return{ref:f.setNode,getPresenceProps:g,present:f.present,unmounted:p}};var yo=(e,t=[])=>({parts:(...n)=>{if(e4(t))return yo(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>yo(e,[...t,...n]),omit:(...n)=>yo(e,t.filter(r=>!n.includes(r))),rename:n=>yo(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${_s(e)}"][data-part="${_s(r)}"]`,`& [data-scope="${_s(e)}"][data-part="${_s(r)}"]`].join(", "),attrs:{"data-scope":_s(e),"data-part":_s(r)}}}),{})}),_s=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),e4=e=>e.length===0;const t4=["top","right","bottom","left"],Ni=Math.min,$n=Math.max,tc=Math.round,nc=Math.floor,Ur=e=>({x:e,y:e}),n4={left:"right",right:"left",bottom:"top",top:"bottom"},r4={start:"end",end:"start"};function Gh(e,t,n){return $n(e,Ni(t,n))}function oi(e,t){return typeof e=="function"?e(t):e}function si(e){return e.split("-")[0]}function Ss(e){return e.split("-")[1]}function Wh(e){return e==="x"?"y":"x"}function Xh(e){return e==="y"?"height":"width"}const i4=new Set(["top","bottom"]);function Hr(e){return i4.has(si(e))?"y":"x"}function Kh(e){return Wh(Hr(e))}function o4(e,t,n){n===void 0&&(n=!1);const r=Ss(e),o=Kh(e),a=Xh(o);let u=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(u=rc(u)),[u,rc(u)]}function s4(e){const t=rc(e);return[Qh(e),t,Qh(t)]}function Qh(e){return e.replace(/start|end/g,t=>r4[t])}const Xb=["left","right"],Kb=["right","left"],a4=["top","bottom"],u4=["bottom","top"];function l4(e,t,n){switch(e){case"top":case"bottom":return n?t?Kb:Xb:t?Xb:Kb;case"left":case"right":return t?a4:u4;default:return[]}}function c4(e,t,n,r){const o=Ss(e);let a=l4(si(e),n==="start",r);return o&&(a=a.map(u=>u+"-"+o),t&&(a=a.concat(a.map(Qh)))),a}function rc(e){return e.replace(/left|right|bottom|top/g,t=>n4[t])}function d4(e){return F({top:0,right:0,bottom:0,left:0},e)}function Qb(e){return typeof e!="number"?d4(e):{top:e,right:e,bottom:e,left:e}}function ic(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Jb(e,t,n){let{reference:r,floating:o}=e;const a=Hr(t),u=Kh(t),c=Xh(u),d=si(t),f=a==="y",p=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,T=r[c]/2-o[c]/2;let y;switch(d){case"top":y={x:p,y:r.y-o.height};break;case"bottom":y={x:p,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-o.width,y:g};break;default:y={x:r.x,y:r.y}}switch(Ss(t)){case"start":y[u]-=T*(n&&f?-1:1);break;case"end":y[u]+=T*(n&&f?-1:1);break}return y}const f4=(e,t,n)=>tt(null,null,function*(){const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:u}=n,c=a.filter(Boolean),d=yield u.isRTL==null?void 0:u.isRTL(t);let f=yield u.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:g}=Jb(f,r,d),T=r,y={},_=0;for(let S=0;S<c.length;S++){const{name:k,fn:v}=c[S],{x:N,y:C,data:M,reset:V}=yield v({x:p,y:g,initialPlacement:r,placement:T,strategy:o,middlewareData:y,rects:f,platform:u,elements:{reference:e,floating:t}});p=N!=null?N:p,g=C!=null?C:g,y=me(F({},y),{[k]:F(F({},y[k]),M)}),V&&_<=50&&(_++,typeof V=="object"&&(V.placement&&(T=V.placement),V.rects&&(f=V.rects===!0?yield u.getElementRects({reference:e,floating:t,strategy:o}):V.rects),{x:p,y:g}=Jb(f,T,d)),S=-1)}return{x:p,y:g,placement:T,strategy:o,middlewareData:y}});function Ka(e,t){return tt(this,null,function*(){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:u,elements:c,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:T=!1,padding:y=0}=oi(t,e),_=Qb(y),k=c[T?g==="floating"?"reference":"floating":g],v=ic(yield a.getClippingRect({element:(n=yield a.isElement==null?void 0:a.isElement(k))==null||n?k:k.contextElement||(yield a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:f,rootBoundary:p,strategy:d})),N=g==="floating"?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,C=yield a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating),M=(yield a.isElement==null?void 0:a.isElement(C))?(yield a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},V=ic(a.convertOffsetParentRelativeRectToViewportRelativeRect?yield a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:C,strategy:d}):N);return{top:(v.top-V.top+_.top)/M.y,bottom:(V.bottom-v.bottom+_.bottom)/M.y,left:(v.left-V.left+_.left)/M.x,right:(V.right-v.right+_.right)/M.x}})}const h4=e=>({name:"arrow",options:e,fn(n){return tt(this,null,function*(){const{x:r,y:o,placement:a,rects:u,platform:c,elements:d,middlewareData:f}=n,{element:p,padding:g=0}=oi(e,n)||{};if(p==null)return{};const T=Qb(g),y={x:r,y:o},_=Kh(a),S=Xh(_),k=yield c.getDimensions(p),v=_==="y",N=v?"top":"left",C=v?"bottom":"right",M=v?"clientHeight":"clientWidth",V=u.reference[S]+u.reference[_]-y[_]-u.floating[S],D=y[_]-u.reference[_],K=yield c.getOffsetParent==null?void 0:c.getOffsetParent(p);let re=K?K[M]:0;(!re||!(yield c.isElement==null?void 0:c.isElement(K)))&&(re=d.floating[M]||u.floating[S]);const be=V/2-D/2,$=re/2-k[S]/2-1,Z=Ni(T[N],$),ce=Ni(T[C],$),he=Z,ue=re-k[S]-ce,Te=re/2-k[S]/2+be,Oe=Gh(he,Te,ue),de=!f.arrow&&Ss(a)!=null&&Te!==Oe&&u.reference[S]/2-(Te<he?Z:ce)-k[S]/2<0,Q=de?Te<he?Te-he:Te-ue:0;return{[_]:y[_]+Q,data:F({[_]:Oe,centerOffset:Te-Oe-Q},de&&{alignmentOffset:Q}),reset:de}})}}),p4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return tt(this,null,function*(){var r,o;const{placement:a,middlewareData:u,rects:c,initialPlacement:d,platform:f,elements:p}=n,Te=oi(e,n),{mainAxis:g=!0,crossAxis:T=!0,fallbackPlacements:y,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:k=!0}=Te,v=ln(Te,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const N=si(a),C=Hr(d),M=si(d)===d,V=yield f.isRTL==null?void 0:f.isRTL(p.floating),D=y||(M||!k?[rc(d)]:s4(d)),K=S!=="none";!y&&K&&D.push(...c4(d,k,S,V));const re=[d,...D],be=yield Ka(n,v),$=[];let Z=((o=u.flip)==null?void 0:o.overflows)||[];if(g&&$.push(be[N]),T){const Oe=o4(a,c,V);$.push(be[Oe[0]],be[Oe[1]])}if(Z=[...Z,{placement:a,overflows:$}],!$.every(Oe=>Oe<=0)){var ce,he;const Oe=(((ce=u.flip)==null?void 0:ce.index)||0)+1,de=re[Oe];if(de&&(!(T==="alignment"?C!==Hr(de):!1)||Z.every(A=>Hr(A.placement)===C?A.overflows[0]>0:!0)))return{data:{index:Oe,overflows:Z},reset:{placement:de}};let Q=(he=Z.filter(ie=>ie.overflows[0]<=0).sort((ie,A)=>ie.overflows[1]-A.overflows[1])[0])==null?void 0:he.placement;if(!Q)switch(_){case"bestFit":{var ue;const ie=(ue=Z.filter(A=>{if(K){const B=Hr(A.placement);return B===C||B==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(B=>B>0).reduce((B,te)=>B+te,0)]).sort((A,B)=>A[1]-B[1])[0])==null?void 0:ue[0];ie&&(Q=ie);break}case"initialPlacement":Q=d;break}if(a!==Q)return{reset:{placement:Q}}}return{}})}}};function Zb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eT(e){return t4.some(t=>e[t]>=0)}const m4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,fn(n){return tt(this,null,function*(){const{rects:r}=n,u=oi(e,n),{strategy:o="referenceHidden"}=u,a=ln(u,["strategy"]);switch(o){case"referenceHidden":{const c=yield Ka(n,me(F({},a),{elementContext:"reference"})),d=Zb(c,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:eT(d)}}}case"escaped":{const c=yield Ka(n,me(F({},a),{altBoundary:!0})),d=Zb(c,r.floating);return{data:{escapedOffsets:d,escaped:eT(d)}}}default:return{}}})}}},tT=new Set(["left","top"]);function g4(e,t){return tt(this,null,function*(){const{placement:n,platform:r,elements:o}=e,a=yield r.isRTL==null?void 0:r.isRTL(o.floating),u=si(n),c=Ss(n),d=Hr(n)==="y",f=tT.has(u)?-1:1,p=a&&d?-1:1,g=oi(t,e);let{mainAxis:T,crossAxis:y,alignmentAxis:_}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof _=="number"&&(y=c==="end"?_*-1:_),d?{x:y*p,y:T*f}:{x:T*f,y:y*p}})}const E4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return tt(this,null,function*(){var r,o;const{x:a,y:u,placement:c,middlewareData:d}=n,f=yield g4(n,e);return c===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:a+f.x,y:u+f.y,data:me(F({},f),{placement:c})}})}}},y4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return tt(this,null,function*(){const{x:r,y:o,placement:a}=n,v=oi(e,n),{mainAxis:u=!0,crossAxis:c=!1,limiter:d={fn:N=>{let{x:C,y:M}=N;return{x:C,y:M}}}}=v,f=ln(v,["mainAxis","crossAxis","limiter"]),p={x:r,y:o},g=yield Ka(n,f),T=Hr(si(a)),y=Wh(T);let _=p[y],S=p[T];if(u){const N=y==="y"?"top":"left",C=y==="y"?"bottom":"right",M=_+g[N],V=_-g[C];_=Gh(M,_,V)}if(c){const N=T==="y"?"top":"left",C=T==="y"?"bottom":"right",M=S+g[N],V=S-g[C];S=Gh(M,S,V)}const k=d.fn(me(F({},n),{[y]:_,[T]:S}));return me(F({},k),{data:{x:k.x-r,y:k.y-o,enabled:{[y]:u,[T]:c}}})})}}},b4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:u}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=oi(e,t),p={x:n,y:r},g=Hr(o),T=Wh(g);let y=p[T],_=p[g];const S=oi(c,t),k=typeof S=="number"?{mainAxis:S,crossAxis:0}:F({mainAxis:0,crossAxis:0},S);if(d){const C=T==="y"?"height":"width",M=a.reference[T]-a.floating[C]+k.mainAxis,V=a.reference[T]+a.reference[C]-k.mainAxis;y<M?y=M:y>V&&(y=V)}if(f){var v,N;const C=T==="y"?"width":"height",M=tT.has(si(o)),V=a.reference[g]-a.floating[C]+(M&&((v=u.offset)==null?void 0:v[g])||0)+(M?0:k.crossAxis),D=a.reference[g]+a.reference[C]+(M?0:((N=u.offset)==null?void 0:N[g])||0)-(M?k.crossAxis:0);_<V?_=V:_>D&&(_=D)}return{[T]:y,[g]:_}}}},T4=function(e){return e===void 0&&(e={}),{name:"size",options:e,fn(n){return tt(this,null,function*(){var r,o;const{placement:a,rects:u,platform:c,elements:d}=n,Z=oi(e,n),{apply:f=()=>{}}=Z,p=ln(Z,["apply"]),g=yield Ka(n,p),T=si(a),y=Ss(a),_=Hr(a)==="y",{width:S,height:k}=u.floating;let v,N;T==="top"||T==="bottom"?(v=T,N=y===((yield c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(N=T,v=y==="end"?"top":"bottom");const C=k-g.top-g.bottom,M=S-g.left-g.right,V=Ni(k-g[v],C),D=Ni(S-g[N],M),K=!n.middlewareData.shift;let re=V,be=D;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(be=M),(o=n.middlewareData.shift)!=null&&o.enabled.y&&(re=C),K&&!y){const ce=$n(g.left,0),he=$n(g.right,0),ue=$n(g.top,0),Te=$n(g.bottom,0);_?be=S-2*(ce!==0||he!==0?ce+he:$n(g.left,g.right)):re=k-2*(ue!==0||Te!==0?ue+Te:$n(g.top,g.bottom))}yield f(me(F({},n),{availableWidth:be,availableHeight:re}));const $=yield c.getDimensions(d.floating);return S!==$.width||k!==$.height?{reset:{rects:!0}}:{}})}}};function oc(){return typeof window!="undefined"}function xs(e){return nT(e)?(e.nodeName||"").toLowerCase():"#document"}function Vn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zr(e){var t;return(t=(nT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nT(e){return oc()?e instanceof Node||e instanceof Vn(e).Node:!1}function Tr(e){return oc()?e instanceof Element||e instanceof Vn(e).Element:!1}function jr(e){return oc()?e instanceof HTMLElement||e instanceof Vn(e).HTMLElement:!1}function rT(e){return!oc()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Vn(e).ShadowRoot}const _4=new Set(["inline","contents"]);function Qa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_r(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_4.has(o)}const S4=new Set(["table","td","th"]);function x4(e){return S4.has(xs(e))}const w4=[":popover-open",":modal"];function sc(e){return w4.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const C4=["transform","translate","scale","rotate","perspective"],A4=["transform","translate","scale","rotate","perspective","filter"],v4=["paint","layout","strict","content"];function Jh(e){const t=Zh(),n=Tr(e)?_r(e):e;return C4.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||A4.some(r=>(n.willChange||"").includes(r))||v4.some(r=>(n.contain||"").includes(r))}function k4(e){let t=Oi(e);for(;jr(t)&&!ws(t);){if(Jh(t))return t;if(sc(t))return null;t=Oi(t)}return null}function Zh(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const P4=new Set(["html","body","#document"]);function ws(e){return P4.has(xs(e))}function _r(e){return Vn(e).getComputedStyle(e)}function ac(e){return Tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oi(e){if(xs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rT(e)&&e.host||zr(e);return rT(t)?t.host:t}function iT(e){const t=Oi(e);return ws(t)?e.ownerDocument?e.ownerDocument.body:e.body:jr(t)&&Qa(t)?t:iT(t)}function Ja(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=iT(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),u=Vn(o);if(a){const c=ep(u);return t.concat(u,u.visualViewport||[],Qa(o)?o:[],c&&n?Ja(c):[])}return t.concat(o,Ja(o,[],n))}function ep(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oT(e){const t=_r(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=jr(e),a=o?e.offsetWidth:n,u=o?e.offsetHeight:r,c=tc(n)!==a||tc(r)!==u;return c&&(n=a,r=u),{width:n,height:r,$:c}}function tp(e){return Tr(e)?e:e.contextElement}function Cs(e){const t=tp(e);if(!jr(t))return Ur(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=oT(t);let u=(a?tc(n.width):n.width)/r,c=(a?tc(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const N4=Ur(0);function sT(e){const t=Vn(e);return!Zh()||!t.visualViewport?N4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function O4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vn(e)?!1:t}function bo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=tp(e);let u=Ur(1);t&&(r?Tr(r)&&(u=Cs(r)):u=Cs(e));const c=O4(a,n,r)?sT(a):Ur(0);let d=(o.left+c.x)/u.x,f=(o.top+c.y)/u.y,p=o.width/u.x,g=o.height/u.y;if(a){const T=Vn(a),y=r&&Tr(r)?Vn(r):r;let _=T,S=ep(_);for(;S&&r&&y!==_;){const k=Cs(S),v=S.getBoundingClientRect(),N=_r(S),C=v.left+(S.clientLeft+parseFloat(N.paddingLeft))*k.x,M=v.top+(S.clientTop+parseFloat(N.paddingTop))*k.y;d*=k.x,f*=k.y,p*=k.x,g*=k.y,d+=C,f+=M,_=Vn(S),S=ep(_)}}return ic({width:p,height:g,x:d,y:f})}function uc(e,t){const n=ac(e).scrollLeft;return t?t.left+n:bo(zr(e)).left+n}function aT(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-uc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function I4(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",u=zr(r),c=t?sc(t.floating):!1;if(r===u||c&&a)return n;let d={scrollLeft:0,scrollTop:0},f=Ur(1);const p=Ur(0),g=jr(r);if((g||!g&&!a)&&((xs(r)!=="body"||Qa(u))&&(d=ac(r)),jr(r))){const y=bo(r);f=Cs(r),p.x=y.x+r.clientLeft,p.y=y.y+r.clientTop}const T=u&&!g&&!a?aT(u,d):Ur(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+p.x+T.x,y:n.y*f.y-d.scrollTop*f.y+p.y+T.y}}function R4(e){return Array.from(e.getClientRects())}function L4(e){const t=zr(e),n=ac(e),r=e.ownerDocument.body,o=$n(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=$n(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+uc(e);const c=-n.scrollTop;return _r(r).direction==="rtl"&&(u+=$n(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:u,y:c}}const uT=25;function D4(e,t){const n=Vn(e),r=zr(e),o=n.visualViewport;let a=r.clientWidth,u=r.clientHeight,c=0,d=0;if(o){a=o.width,u=o.height;const p=Zh();(!p||p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}const f=uc(r);if(f<=0){const p=r.ownerDocument,g=p.body,T=getComputedStyle(g),y=p.compatMode==="CSS1Compat"&&parseFloat(T.marginLeft)+parseFloat(T.marginRight)||0,_=Math.abs(r.clientWidth-g.clientWidth-y);_<=uT&&(a-=_)}else f<=uT&&(a+=f);return{width:a,height:u,x:c,y:d}}const M4=new Set(["absolute","fixed"]);function F4(e,t){const n=bo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=jr(e)?Cs(e):Ur(1),u=e.clientWidth*a.x,c=e.clientHeight*a.y,d=o*a.x,f=r*a.y;return{width:u,height:c,x:d,y:f}}function lT(e,t,n){let r;if(t==="viewport")r=D4(e,n);else if(t==="document")r=L4(zr(e));else if(Tr(t))r=F4(t,n);else{const o=sT(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ic(r)}function cT(e,t){const n=Oi(e);return n===t||!Tr(n)||ws(n)?!1:_r(n).position==="fixed"||cT(n,t)}function B4(e,t){const n=t.get(e);if(n)return n;let r=Ja(e,[],!1).filter(c=>Tr(c)&&xs(c)!=="body"),o=null;const a=_r(e).position==="fixed";let u=a?Oi(e):e;for(;Tr(u)&&!ws(u);){const c=_r(u),d=Jh(u);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&M4.has(o.position)||Qa(u)&&!d&&cT(e,u))?r=r.filter(p=>p!==u):o=c,u=Oi(u)}return t.set(e,r),r}function U4(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const u=[...n==="clippingAncestors"?sc(t)?[]:B4(t,this._c):[].concat(n),r],c=u[0],d=u.reduce((f,p)=>{const g=lT(t,p,o);return f.top=$n(g.top,f.top),f.right=Ni(g.right,f.right),f.bottom=Ni(g.bottom,f.bottom),f.left=$n(g.left,f.left),f},lT(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function H4(e){const{width:t,height:n}=oT(e);return{width:t,height:n}}function z4(e,t,n){const r=jr(t),o=zr(t),a=n==="fixed",u=bo(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const d=Ur(0);function f(){d.x=uc(o)}if(r||!r&&!a)if((xs(t)!=="body"||Qa(o))&&(c=ac(t)),r){const y=bo(t,!0,a,t);d.x=y.x+t.clientLeft,d.y=y.y+t.clientTop}else o&&f();a&&!r&&o&&f();const p=o&&!r&&!a?aT(o,c):Ur(0),g=u.left+c.scrollLeft-d.x-p.x,T=u.top+c.scrollTop-d.y-p.y;return{x:g,y:T,width:u.width,height:u.height}}function np(e){return _r(e).position==="static"}function dT(e,t){if(!jr(e)||_r(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zr(e)===n&&(n=n.ownerDocument.body),n}function fT(e,t){const n=Vn(e);if(sc(e))return n;if(!jr(e)){let o=Oi(e);for(;o&&!ws(o);){if(Tr(o)&&!np(o))return o;o=Oi(o)}return n}let r=dT(e,t);for(;r&&x4(r)&&np(r);)r=dT(r,t);return r&&ws(r)&&np(r)&&!Jh(r)?n:r||k4(e)||n}const j4=function(e){return tt(this,null,function*(){const t=this.getOffsetParent||fT,n=this.getDimensions,r=yield n(e.floating);return{reference:z4(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function $4(e){return _r(e).direction==="rtl"}const V4={convertOffsetParentRelativeRectToViewportRelativeRect:I4,getDocumentElement:zr,getClippingRect:U4,getOffsetParent:fT,getElementRects:j4,getClientRects:R4,getDimensions:H4,getScale:Cs,isElement:Tr,isRTL:$4};function hT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function q4(e,t){let n=null,r;const o=zr(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function u(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();const f=e.getBoundingClientRect(),{left:p,top:g,width:T,height:y}=f;if(c||t(),!T||!y)return;const _=nc(g),S=nc(o.clientWidth-(p+T)),k=nc(o.clientHeight-(g+y)),v=nc(p),C={rootMargin:-_+"px "+-S+"px "+-k+"px "+-v+"px",threshold:$n(0,Ni(1,d))||1};let M=!0;function V(D){const K=D[0].intersectionRatio;if(K!==d){if(!M)return u();K?u(!1,K):r=setTimeout(()=>{u(!1,1e-7)},1e3)}K===1&&!hT(f,e.getBoundingClientRect())&&u(),M=!1}try{n=new IntersectionObserver(V,me(F({},C),{root:o.ownerDocument}))}catch(D){n=new IntersectionObserver(V,C)}n.observe(e)}return u(!0),a}function Y4(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=tp(e),p=o||a?[...f?Ja(f):[],...Ja(t)]:[];p.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const g=f&&c?q4(f,n):null;let T=-1,y=null;u&&(y=new ResizeObserver(v=>{let[N]=v;N&&N.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var C;(C=y)==null||C.observe(t)})),n()}),f&&!d&&y.observe(f),y.observe(t));let _,S=d?bo(e):null;d&&k();function k(){const v=bo(e);S&&!hT(S,v)&&n(),S=v,_=requestAnimationFrame(k)}return n(),()=>{var v;p.forEach(N=>{o&&N.removeEventListener("scroll",n),a&&N.removeEventListener("resize",n)}),g==null||g(),(v=y)==null||v.disconnect(),y=null,d&&cancelAnimationFrame(_)}}const G4=E4,W4=y4,X4=p4,K4=T4,Q4=m4,J4=h4,Z4=b4,e5=(e,t,n)=>{const r=new Map,o=F({platform:V4},n),a=me(F({},o.platform),{_c:r});return f4(e,t,me(F({},o),{platform:a}))};function pT(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return me(F({},o),{toJSON:()=>o})}function t5(e){if(!e)return pT();const{x:t,y:n,width:r,height:o}=e;return pT(t,n,r,o)}function n5(e,t){return{contextElement:Zt(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?t5(r):n.getBoundingClientRect()}}}var Za=e=>({variable:e,reference:`var(${e})`}),ai={arrowSize:Za("--arrow-size"),arrowSizeHalf:Za("--arrow-size-half"),arrowBg:Za("--arrow-background"),transformOrigin:Za("--transform-origin"),arrowOffset:Za("--arrow-offset")},r5=e=>e==="top"||e==="bottom"?"y":"x";function i5(e,t){return{name:"transformOrigin",fn(n){var be,$,Z,ce,he;const{elements:r,middlewareData:o,placement:a,rects:u,y:c}=n,d=a.split("-")[0],f=r5(d),p=((be=o.arrow)==null?void 0:be.x)||0,g=(($=o.arrow)==null?void 0:$.y)||0,T=(t==null?void 0:t.clientWidth)||0,y=(t==null?void 0:t.clientHeight)||0,_=p+T/2,S=g+y/2,k=Math.abs(((Z=o.shift)==null?void 0:Z.y)||0),v=u.reference.height/2,N=y/2,C=(he=(ce=e.offset)==null?void 0:ce.mainAxis)!=null?he:e.gutter,M=typeof C=="number"?C+N:C!=null?C:N,V=k>M,D={top:`${_}px calc(100% + ${M}px)`,bottom:`${_}px ${-M}px`,left:`calc(100% + ${M}px) ${S}px`,right:`${-M}px ${S}px`}[d],K=`${_}px ${u.reference.y+v-c}px`,re=!!e.overlap&&f==="y"&&V;return r.floating.style.setProperty(ai.transformOrigin.variable,re?K:D),{data:{transformOrigin:re?K:D}}}}}var o5={name:"rects",fn({rects:e}){return{data:e}}},s5=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:o}=n.arrow,a=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[a]:`calc(100% + ${ai.arrowOffset.reference})`}),{}}}};function a5(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}var u5={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function mT(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function rp(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function l5(e,t,n){const r=e||t.createElement("div");return J4({element:r,padding:n.arrowPadding})}function c5(e,t){var n;if(!C6((n=t.offset)!=null?n:t.gutter))return G4(({placement:r})=>{var p,g,T,y;const o=((e==null?void 0:e.clientHeight)||0)/2,a=(g=(p=t.offset)==null?void 0:p.mainAxis)!=null?g:t.gutter,u=typeof a=="number"?a+o:a!=null?a:o,{hasAlign:c}=a5(r),d=c?void 0:t.shift,f=(y=(T=t.offset)==null?void 0:T.crossAxis)!=null?y:d;return Oh({crossAxis:f,mainAxis:u,alignmentAxis:t.shift})})}function d5(e){if(!e.flip)return;const t=rp(e.boundary);return X4(me(F({},t?{boundary:t}:void 0),{padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip}))}function f5(e){if(!e.slide&&!e.overlap)return;const t=rp(e.boundary);return W4(me(F({},t?{boundary:t}:void 0),{mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Z4()}))}function h5(e){return K4({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:o}){const a=t.floating,u=Math.round(n.reference.width),c=Math.round(n.reference.height);o=Math.floor(o),r=Math.floor(r),a.style.setProperty("--reference-width",`${u}px`),a.style.setProperty("--reference-height",`${c}px`),a.style.setProperty("--available-width",`${o}px`),a.style.setProperty("--available-height",`${r}px`)}})}function p5(e){var t;if(e.hideWhenDetached)return Q4({strategy:"referenceHidden",boundary:(t=rp(e.boundary))!=null?t:"clippingAncestors"})}function m5(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function g5(e,t,n={}){const r=n5(e,n.getAnchorRect);if(!t||!r)return;const o=Object.assign({},u5,n),a=t.querySelector("[data-part=arrow]"),u=[c5(a,o),d5(o),f5(o),l5(a,t.ownerDocument,o),s5(a),i5({gutter:o.gutter,offset:o.offset,overlap:o.overlap},a),h5(o),p5(o),o5],{placement:c,strategy:d,onComplete:f,onPositioned:p}=o,g=()=>tt(null,null,function*(){var M;if(!r||!t)return;const S=yield e5(r,t,{placement:c,middleware:u,strategy:d});f==null||f(S),p==null||p({placed:!0});const k=ps(t),v=mT(k,S.x),N=mT(k,S.y);t.style.setProperty("--x",`${v}px`),t.style.setProperty("--y",`${N}px`),o.hideWhenDetached&&(((M=S.middlewareData.hide)==null?void 0:M.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const C=t.firstElementChild;if(C){const V=gs(C);t.style.setProperty("--z-index",V.zIndex)}}),T=()=>tt(null,null,function*(){n.updatePosition?(yield n.updatePosition({updatePosition:g,floatingElement:t}),p==null||p({placed:!0})):yield g()}),y=m5(o.listeners),_=o.listeners?Y4(r,t,T,y):L6;return T(),()=>{_==null||_(),p==null||p({placed:!1})}}function gT(e,t,n={}){const c=n,{defer:r}=c,o=ln(c,["defer"]),a=r?qt:d=>d(),u=[];return u.push(a(()=>{const d=typeof e=="function"?e():e,f=typeof t=="function"?t():t;u.push(g5(d,f,o))})),()=>{u.forEach(d=>d==null?void 0:d())}}var E5={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function y5(e={}){const{placement:t,sameWidth:n,fitViewport:r,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:ai.arrowSize.reference,height:ai.arrowSize.reference,[ai.arrowSizeHalf.variable]:`calc(${ai.arrowSize.reference} / 2)`,[ai.arrowOffset.variable]:`calc(${ai.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?E5[t.split("-")[0]]:void 0,background:ai.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}var As=new WeakMap,lc=new WeakMap,cc={},ip=0,ET=e=>e&&(e.host||ET(e.parentNode)),b5=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=ET(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),T5=new Set(["script","output","status","next-route-announcer"]),_5=e=>T5.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),S5=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o,followControlledElements:a=!0}=t,u=b5(n,Array.isArray(e)?e:[e]);cc[r]||(cc[r]=new WeakMap);const c=cc[r],d=[],f=new Set,p=new Set(u),g=y=>{!y||f.has(y)||(f.add(y),g(y.parentNode))};u.forEach(y=>{g(y),a&&Zt(y)&&Nb(y,_=>{g(_)})});const T=y=>{!y||p.has(y)||Array.prototype.forEach.call(y.children,_=>{if(f.has(_))T(_);else try{if(_5(_))return;const k=_.getAttribute(o)==="true",v=(As.get(_)||0)+1,N=(c.get(_)||0)+1;As.set(_,v),c.set(_,N),d.push(_),v===1&&k&&lc.set(_,!0),N===1&&_.setAttribute(r,""),k||_.setAttribute(o,"true")}catch(S){console.error("[zag-js > ariaHidden] cannot operate on ",_,S)}})};return T(n),f.clear(),ip++,()=>{d.forEach(y=>{const _=As.get(y)-1,S=c.get(y)-1;As.set(y,_),c.set(y,S),_||(lc.has(y)||y.removeAttribute(o),lc.delete(y)),S||y.removeAttribute(r)}),ip--,ip||(As=new WeakMap,As=new WeakMap,lc=new WeakMap,cc={})}},x5=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,w5=(e,t=x5(e),n="data-aria-hidden",r=!0)=>{if(t)return S5(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden",followControlledElements:r})},C5=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function yT(e,t={}){const{defer:n=!0}=t,r=n?C5:a=>a(),o=[];return o.push(r(()=>{const u=(typeof e=="function"?e():e).filter(Boolean);u.length!==0&&o.push(w5(u))})),()=>{o.forEach(a=>a==null?void 0:a())}}function A5(e){const t={each(n){var r;for(let o=0;o<((r=e.frames)==null?void 0:r.length);o+=1){const a=e.frames[o];a&&n(a)}},addEventListener(n,r,o){return t.each(a=>{try{a.document.addEventListener(n,r,o)}catch(u){}}),()=>{try{t.removeEventListener(n,r,o)}catch(a){}}},removeEventListener(n,r,o){t.each(a=>{try{a.document.removeEventListener(n,r,o)}catch(u){}})}};return t}function v5(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t==null||t.addEventListener(n,r,o)}catch(a){}return()=>{try{t==null||t.removeEventListener(n,r,o)}catch(a){}}},removeEventListener:(n,r,o)=>{try{t==null||t.removeEventListener(n,r,o)}catch(a){}}}}var bT="pointerdown.outside",TT="focus.outside";function k5(e){for(const t of e)if(Zt(t)&&Br(t))return!0;return!1}var _T=e=>"clientY"in e;function P5(e,t){if(!_T(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function N5(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function ST(e,t){if(!t||!_T(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,a=o&&e.clientY>t.offsetTop+t.clientHeight,u={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},c={x:e.clientX,y:e.clientY};return N5(u,c)?r||a:!1}function O5(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:a,defer:u,followControlledElements:c=!0}=t;if(!e)return;const d=Fr(e),f=ps(e),p=A5(f),g=v5(f);function T(C,M){if(!Zt(M)||!M.isConnected||hs(e,M)||P5(e,C)||c&&Pb(e,M))return!1;const V=d.querySelector(`[aria-controls="${e.id}"]`);if(V){const K=Hh(V);if(ST(C,K))return!1}const D=Hh(e);return ST(C,D)?!1:!(n!=null&&n(M))}const y=new Set,_=mo(e==null?void 0:e.getRootNode());function S(C){function M(V){var be,$;const D=u&&!Ob()?qt:Z=>Z(),K=V!=null?V:C,re=($=(be=K==null?void 0:K.composedPath)==null?void 0:be.call(K))!=null?$:[K==null?void 0:K.target];D(()=>{const Z=_?re[0]:br(C);if(!(!e||!T(C,Z))){if(o||a){const ce=Nh(o,a);e.addEventListener(bT,ce,{once:!0})}xT(e,bT,{bubbles:!1,cancelable:!0,detail:{originalEvent:K,contextmenu:mD(K),focusable:k5(re),target:Z}})}})}C.pointerType==="touch"?(y.forEach(V=>V()),y.add(en(d,"click",M,{once:!0})),y.add(g.addEventListener("click",M,{once:!0})),y.add(p.addEventListener("click",M,{once:!0}))):M()}const k=new Set,v=setTimeout(()=>{k.add(en(d,"pointerdown",S,!0)),k.add(g.addEventListener("pointerdown",S,!0)),k.add(p.addEventListener("pointerdown",S,!0))},0);function N(C){(u?qt:V=>V())(()=>{var K,re;const V=(re=(K=C==null?void 0:C.composedPath)==null?void 0:K.call(C))!=null?re:[C==null?void 0:C.target],D=_?V[0]:br(C);if(!(!e||!T(C,D))){if(r||a){const be=Nh(r,a);e.addEventListener(TT,be,{once:!0})}xT(e,TT,{bubbles:!1,cancelable:!0,detail:{originalEvent:C,contextmenu:!1,focusable:Br(D),target:D}})}})}return Ob()||(k.add(en(d,"focusin",N,!0)),k.add(g.addEventListener("focusin",N,!0)),k.add(p.addEventListener("focusin",N,!0))),()=>{clearTimeout(v),y.forEach(C=>C()),k.forEach(C=>C())}}function I5(e,t){const{defer:n}=t,r=n?qt:a=>a(),o=[];return o.push(r(()=>{const a=typeof e=="function"?e():e;o.push(O5(a,t))})),()=>{o.forEach(a=>a==null?void 0:a())}}function xT(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function R5(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return en(Fr(e),"keydown",n,{capture:!0})}var wT="layer:request-dismiss",ir={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return t<n},isTopMost(e){const t=this.layers[this.count()-1];return(t==null?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){const n=this.indexOf(e);return n===-1?[]:this.layers.slice(n+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>hs(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>hs(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>ir.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const r=this.countNestedLayersOfType(e.node,e.type);r>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${r}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];D5(e,wT,o=>{var a;(a=r.requestDismiss)==null||a.call(r,o),o.defaultPrevented||r==null||r.dismiss()}),L5(e,wT,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function L5(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(o)}function D5(e,t,n){e.addEventListener(t,n,{once:!0})}var CT;function AT(){ir.layers.forEach(({node:e})=>{e.style.pointerEvents=ir.isBelowPointerBlockingLayer(e)?"none":"auto"})}function M5(e){e.style.pointerEvents=""}function F5(e,t){const n=Fr(e),r=[];return ir.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(CT=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(o=>{const[a,u]=BD(()=>{const c=o();return Zt(c)?c:null},{timeout:1e3});a.then(c=>r.push(Kl(c,{pointerEvents:"auto"}))),r.push(u)}),()=>{ir.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=CT,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function B5(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){Ih("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:a,exclude:u,debug:c,type:d="dialog"}=t,f={dismiss:r,node:e,type:d,pointerBlocking:a,requestDismiss:o};ir.add(f),AT();function p(S){var v,N;const k=br(S.detail.originalEvent);ir.isBelowPointerBlockingLayer(e)||ir.isInBranch(k)||((v=t.onPointerDownOutside)==null||v.call(t,S),(N=t.onInteractOutside)==null||N.call(t,S),!S.defaultPrevented&&(c&&console.log("onPointerDownOutside:",S.detail.originalEvent),r==null||r()))}function g(S){var v,N;const k=br(S.detail.originalEvent);ir.isInBranch(k)||((v=t.onFocusOutside)==null||v.call(t,S),(N=t.onInteractOutside)==null||N.call(t,S),!S.defaultPrevented&&(c&&console.log("onFocusOutside:",S.detail.originalEvent),r==null||r()))}function T(S){var k;ir.isTopMost(e)&&((k=t.onEscapeKeyDown)==null||k.call(t,S),!S.defaultPrevented&&r&&(S.preventDefault(),r()))}function y(S){var C;if(!e)return!1;const k=typeof u=="function"?u():u,v=Array.isArray(k)?k:[k],N=(C=t.persistentElements)==null?void 0:C.map(M=>M()).filter(Zt);return N&&v.push(...N),v.some(M=>hs(M,S))||ir.isInNestedLayer(e,S)}const _=[a?F5(e,t.persistentElements):void 0,R5(e,T),I5(e,{exclude:y,onFocusOutside:g,onPointerDownOutside:p,defer:t.defer})];return()=>{ir.remove(e),AT(),M5(e),_.forEach(S=>S==null?void 0:S())}}function vT(e,t){const{defer:n}=t,r=n?qt:a=>a(),o=[];return o.push(r(()=>{const a=ds(e)?e():e;o.push(B5(a,t))})),()=>{o.forEach(a=>a==null?void 0:a())}}var U5=Object.defineProperty,H5=(e,t,n)=>t in e?U5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,At=(e,t,n)=>H5(e,typeof t!="symbol"?t+"":t,n),kT={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},z5=[],j5=class{constructor(e,t){At(this,"trapStack"),At(this,"config"),At(this,"doc"),At(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),At(this,"portalContainers",new Set),At(this,"listenerCleanups",[]),At(this,"handleFocus",r=>{const o=br(r),a=this.findContainerIndex(o,r)>=0;if(a||Yl(o))a&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let u,c=!0;if(this.state.mostRecentlyFocusedNode)if(Ga(this.state.mostRecentlyFocusedNode)>0){const d=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:f}=this.state.containerGroups[d];if(f.length>0){const p=f.findIndex(g=>g===this.state.mostRecentlyFocusedNode);p>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?p+1<f.length&&(u=f[p+1],c=!1):p-1>=0&&(u=f[p-1],c=!1))}}else this.state.containerGroups.some(d=>d.tabbableNodes.some(f=>Ga(f)>0))||(c=!1);else c=!1;c&&(u=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),u?this.tryFocus(u):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),At(this,"handlePointerDown",r=>{const o=br(r);if(!(this.findContainerIndex(o,r)>=0)){if(tu(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}tu(this.config.allowOutsideClick,r)||r.preventDefault()}}),At(this,"handleClick",r=>{const o=br(r);this.findContainerIndex(o,r)>=0||tu(this.config.clickOutsideDeactivates,r)||tu(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),At(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),a=this.findNextNavNode({event:r,isBackward:o});if(!a)return;eu(r)&&r.preventDefault(),this.tryFocus(a)}}),At(this,"handleEscapeKey",r=>{$5(r)&&tu(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),At(this,"_mutationObserver"),At(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(c=>Array.from(c.removedNodes).some(f=>f===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),o.some(c=>c.type==="attributes"&&(c.attributeName==="aria-controls"||c.attributeName==="aria-expanded")?!0:c.type==="childList"&&c.addedNodes.length>0?Array.from(c.addedNodes).some(d=>{if(d.nodeType!==Node.ELEMENT_NODE)return!1;const f=d;return sD(f)?!0:f.id&&!this.state.containers.some(p=>p.contains(f))?aD(f):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),At(this,"updateObservedNodes",()=>{var r;(r=this._mutationObserver)==null||r.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(o=>{var a;(a=this._mutationObserver)==null||a.observe(o,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(o=>{this.observePortalContainer(o)}))}),At(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Br(r)){const o=ms(this.doc);if(o&&this.findContainerIndex(o)>=0)r=o;else{const a=this.state.tabbableGroups[0];r=a&&a.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),At(this,"tryFocus",r=>{if(r!==!1&&r!==ms(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,V5(r)&&r.select()}}),At(this,"deactivate",r=>{if(!this.state.active)return this;const o=F({onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus},r);clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),kT.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const a=this.getOption(o,"onDeactivate"),u=this.getOption(o,"onPostDeactivate"),c=this.getOption(o,"checkCanReturnFocus"),d=this.getOption(o,"returnFocus","returnFocusOnDeactivate");a==null||a();const f=()=>{PT(()=>{if(d){const p=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(p)}u==null||u()})};if(d&&c){const p=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return c(p).then(f,f),this}return f(),this}),At(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),a=this.getOption(r,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),a==null||a(),this}),At(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),a=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),a==null||a(),this}),At(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),At(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),At(this,"getOption",(r,o,a)=>r&&r[o]!==void 0?r[o]:this.config[a||o]),At(this,"getNodeForOption",(r,{hasFallback:o=!1,params:a=[]}={})=>{let u=this.config[r];if(typeof u=="function"&&(u=u(...a)),u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let c=u;if(typeof u=="string"){try{c=this.doc.querySelector(u)}catch(d){throw new Error(`\`${r}\` appears to be an invalid selector; error="${d.message}"`)}if(!c&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return c}),At(this,"findNextNavNode",r=>{const{event:o,isBackward:a=!1}=r,u=r.target||br(o);this.updateTabbableNodes();let c=null;if(this.state.tabbableGroups.length>0){const d=this.findContainerIndex(u,o),f=d>=0?this.state.containerGroups[d]:void 0;if(d<0)a?c=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:c=this.state.tabbableGroups[0].firstTabbableNode;else if(a){let p=this.state.tabbableGroups.findIndex(({firstTabbableNode:g})=>u===g);if(p<0&&((f==null?void 0:f.container)===u||Br(u)&&!go(u)&&!(f!=null&&f.nextTabbableNode(u,!1)))&&(p=d),p>=0){const g=p===0?this.state.tabbableGroups.length-1:p-1,T=this.state.tabbableGroups[g];c=Ga(u)>=0?T.lastTabbableNode:T.lastDomTabbableNode}else eu(o)||(c=f==null?void 0:f.nextTabbableNode(u,!1))}else{let p=this.state.tabbableGroups.findIndex(({lastTabbableNode:g})=>u===g);if(p<0&&((f==null?void 0:f.container)===u||Br(u)&&!go(u)&&!(f!=null&&f.nextTabbableNode(u)))&&(p=d),p>=0){const g=p===this.state.tabbableGroups.length-1?0:p+1,T=this.state.tabbableGroups[g];c=Ga(u)>=0?T.firstTabbableNode:T.firstDomTabbableNode}else eu(o)||(c=f==null?void 0:f.nextTabbableNode(u))}}else c=this.getNodeForOption("fallbackFocus");return c}),this.trapStack=t.trapStack||z5;const n=F({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(r){return eu(r)&&!r.shiftKey},isKeyBackward(r){return eu(r)&&r.shiftKey}},t);this.doc=n.document||Fr(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){var t;(t=this._mutationObserver)==null||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{rD(e).forEach(n=>{this.addPortalContainer(n)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||(n==null?void 0:n.includes(r))||o.find(a=>a===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?Pb(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Es(e,{getShadowRoot:this.config.getShadowRoot}),n=Bb(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],o=t[t.length-1],a=r,u=o;let c=!1;for(let f=0;f<t.length;f++)if(Ga(t[f])>0){c=!0;break}function d(f,p=!0){const g=t.indexOf(f);if(g>=0)return t[g+(p?1:-1)];const T=n.indexOf(f);if(!(T<0)){if(p){for(let y=T+1;y<n.length;y++)if(go(n[y]))return n[y]}else for(let y=T-1;y>=0;y--)if(go(n[y]))return n[y]}}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:u,nextTabbableNode:d}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return kT.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?PT(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(en(this.doc,"focusin",this.handleFocus,!0),en(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),en(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),en(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),en(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),en(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=ms(this.doc),t==null||t();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n==null||n()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},eu=e=>e.key==="Tab",tu=(e,...t)=>typeof e=="function"?e(...t):e,$5=e=>!e.isComposing&&e.key==="Escape",PT=e=>setTimeout(e,0),V5=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function NT(e,t={}){let n;const r=qt(()=>{const o=typeof e=="function"?e():e;if(o){n=new j5(o,me(F({escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o},t),{document:Fr(o)}));try{n.activate()}catch(a){}}});return function(){n==null||n.deactivate(),r()}}var op="data-scroll-lock";function q5(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function OT(e){const t=gs(e),n=t==null?void 0:t.scrollbarGutter;return n==="stable"||(n==null?void 0:n.startsWith("stable "))===!0}function IT(e){var y;const t=e!=null?e:document,n=(y=t.defaultView)!=null?y:window,{documentElement:r,body:o}=t;if(o.hasAttribute(op))return;const u=OT(r)||OT(o),c=n.innerWidth-r.clientWidth;o.setAttribute(op,"");const d=()=>MD(r,"--scrollbar-width",`${c}px`),f=q5(r),p=()=>{const _={overflow:"hidden"};return!u&&c>0&&(_[f]=`${c}px`),Kl(o,_)},g=()=>{var V,D;const{scrollX:_,scrollY:S,visualViewport:k}=n,v=(V=k==null?void 0:k.offsetLeft)!=null?V:0,N=(D=k==null?void 0:k.offsetTop)!=null?D:0,C={position:"fixed",overflow:"hidden",top:`${-(S-Math.floor(N))}px`,left:`${-(_-Math.floor(v))}px`,right:"0"};!u&&c>0&&(C[f]=`${c}px`);const M=Kl(o,C);return()=>{M==null||M(),n.scrollTo({left:_,top:S,behavior:"instant"})}},T=[d(),Gl()?g():p()];return()=>{T.forEach(_=>_==null?void 0:_()),o.removeAttribute(op)}}var Y5=yo("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),$r=Y5.build(),RT=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.anchor)!=null?n:`popover:${e.id}:anchor`},LT=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.trigger)!=null?n:`popover:${e.id}:trigger`},sp=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.content)!=null?n:`popover:${e.id}:content`},DT=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.positioner)!=null?n:`popover:${e.id}:popper`},G5=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.arrow)!=null?n:`popover:${e.id}:arrow`},ap=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.title)!=null?n:`popover:${e.id}:title`},up=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.description)!=null?n:`popover:${e.id}:desc`},W5=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.closeTrigger)!=null?n:`popover:${e.id}:close`},MT=e=>e.getById(RT(e)),vs=e=>e.getById(LT(e)),ks=e=>e.getById(sp(e)),FT=e=>e.getById(DT(e)),X5=e=>e.getById(ap(e)),K5=e=>e.getById(up(e));function Q5(e,t){const{state:n,context:r,send:o,computed:a,prop:u,scope:c}=e,d=n.matches("open"),f=r.get("currentPlacement"),p=a("currentPortalled"),g=r.get("renderedElements"),T=y5(me(F({},u("positioning")),{placement:f}));return{portalled:p,open:d,setOpen(y){n.matches("open")!==y&&o({type:y?"OPEN":"CLOSE"})},reposition(y={}){o({type:"POSITIONING.SET",options:y})},getArrowProps(){return t.element(me(F({id:G5(c)},$r.arrow.attrs),{dir:u("dir"),style:T.arrow}))},getArrowTipProps(){return t.element(me(F({},$r.arrowTip.attrs),{dir:u("dir"),style:T.arrowTip}))},getAnchorProps(){return t.element(me(F({},$r.anchor.attrs),{dir:u("dir"),id:RT(c)}))},getTriggerProps(){return t.button(me(F({},$r.trigger.attrs),{dir:u("dir"),type:"button","data-placement":f,id:LT(c),"aria-haspopup":"dialog","aria-expanded":d,"data-state":d?"open":"closed","aria-controls":sp(c),onPointerDown(y){Ib(y)&&hD()&&y.currentTarget.focus()},onClick(y){y.defaultPrevented||o({type:"TOGGLE"})},onBlur(y){o({type:"TRIGGER_BLUR",target:y.relatedTarget})}}))},getIndicatorProps(){return t.element(me(F({},$r.indicator.attrs),{dir:u("dir"),"data-state":d?"open":"closed"}))},getPositionerProps(){return t.element(me(F({id:DT(c)},$r.positioner.attrs),{dir:u("dir"),style:T.floating}))},getContentProps(){return t.element(me(F({},$r.content.attrs),{dir:u("dir"),id:sp(c),tabIndex:-1,role:"dialog","aria-modal":Ab(u("modal")),hidden:!d,"data-state":d?"open":"closed","data-expanded":fs(d),"aria-labelledby":g.title?ap(c):void 0,"aria-describedby":g.description?up(c):void 0,"data-placement":f}))},getTitleProps(){return t.element(me(F({},$r.title.attrs),{id:ap(c),dir:u("dir")}))},getDescriptionProps(){return t.element(me(F({},$r.description.attrs),{id:up(c),dir:u("dir")}))},getCloseTriggerProps(){return t.button(me(F({},$r.closeTrigger.attrs),{dir:u("dir"),id:W5(c),type:"button","aria-label":"close",onClick(y){y.defaultPrevented||(y.stopPropagation(),o({type:"CLOSE"}))}}))}}}var J5={props({props:e}){return me(F({closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0},e),{positioning:F({placement:"bottom"},e.positioning)})},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:n}){e([()=>t("open")],()=>{n(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:n}){var a;e.set("currentPlacement",t("positioning").placement);const r=(a=MT(n))!=null?a:vs(n);return gT(r,()=>FT(n),me(F({},t("positioning")),{defer:!0,onComplete(u){e.set("currentPlacement",u.placement)}}))},trackDismissableElement({send:e,prop:t,scope:n}){const r=()=>ks(n);let o=!0;return vT(r,{type:"popover",pointerBlocking:t("modal"),exclude:vs(n),defer:!0,onEscapeKeyDown(a){var u;(u=t("onEscapeKeyDown"))==null||u(a),!t("closeOnEscape")&&a.preventDefault()},onInteractOutside(a){var u;(u=t("onInteractOutside"))==null||u(a),!a.defaultPrevented&&(o=!(a.detail.focusable||a.detail.contextmenu),t("closeOnInteractOutside")||a.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},proxyTabFocus({prop:e,scope:t}){return e("modal")||!e("portalled")?void 0:LD(()=>ks(t),{triggerElement:vs(t),defer:!0,getShadowRoot:!0,onFocus(r){r.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){return e("modal")?yT(()=>[ks(t),vs(t)],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return IT(t.getDoc())},trapFocus({prop:e,scope:t}){return e("modal")?NT(()=>ks(t),{initialFocus:()=>Ub({root:ks(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:n,context:r}){var u;const o=(u=MT(n))!=null?u:vs(n);gT(o,()=>FT(n),me(F(F({},t("positioning")),e.options),{defer:!0,listeners:!1,onComplete(c){r.set("currentPlacement",c.placement)}}))},checkRenderedElements({context:e,scope:t}){qt(()=>{Object.assign(e.get("renderedElements"),{title:!!X5(t),description:!!K5(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||qt(()=>{const n=Ub({root:ks(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")});n==null||n.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){var r,o;const n=(o=e.restoreFocus)!=null?o:(r=e.previousEvent)==null?void 0:r.restoreFocus;n!=null&&!n||qt(()=>{const a=vs(t);a==null||a.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{var n;(n=e("onOpenChange"))==null||n({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{var n;(n=e("onOpenChange"))==null||n({open:!1})})},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}};Ts()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const[yU,dc]=Eo({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[bU,lp]=Eo({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),Z5=e=>{const t=U.useId(),{getRootNode:n}=dc(),{dir:r}=lp(),o=F({id:t,dir:r,getRootNode:n},e),a=Jl(J5,o);return Q5(a,$h)},eM=e=>{const[t,u]=Wb(e),c=u,{children:n}=c,r=ln(c,["children"]),o=Z5(r),a=Yh(Yt({present:o.open},t));return w.jsx(XD,{value:o,children:w.jsx(qb,{value:a,children:n})})},BT=U.forwardRef((e,t)=>{const n=qh(),r=Wa(),o=Yt(me(F({},n.getTriggerProps()),{"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]}),e);return w.jsx(mn.button,me(F({},o),{ref:t}))});BT.displayName="PopoverTrigger";function tM(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.854 3.646a.5.5 0 0 1 0 .708L8.207 8l3.647 3.646a.5.5 0 0 1-.708.708l-4-4a.5.5 0 0 1 0-.708l4-4a.5.5 0 0 1 .708 0M4.5 1a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 1 0v-13a.5.5 0 0 0-.5-.5"},child:[]}]})(e)}function nM(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.146 3.646a.5.5 0 0 0 0 .708L7.793 8l-3.647 3.646a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708 0M11.5 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13a.5.5 0 0 1 .5-.5"},child:[]}]})(e)}function rM(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"},child:[]}]})(e)}function iM(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"},child:[]}]})(e)}function oM(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M7.657 6.247c.11-.33.576-.33.686 0l.645 1.937a2.89 2.89 0 0 0 1.829 1.828l1.936.645c.33.11.33.576 0 .686l-1.937.645a2.89 2.89 0 0 0-1.828 1.829l-.645 1.936a.361.361 0 0 1-.686 0l-.645-1.937a2.89 2.89 0 0 0-1.828-1.828l-1.937-.645a.361.361 0 0 1 0-.686l1.937-.645a2.89 2.89 0 0 0 1.828-1.828zM3.794 1.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387A1.73 1.73 0 0 0 4.593 5.69l-.387 1.162a.217.217 0 0 1-.412 0L3.407 5.69A1.73 1.73 0 0 0 2.31 4.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387A1.73 1.73 0 0 0 3.407 2.31zM10.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.16 1.16 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.16 1.16 0 0 0-.732-.732L9.1 2.137a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732z"},child:[]}]})(e)}function UT(e){return zt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"},child:[]}]})(e)}const sM=({className:e,componentType:t,children:n})=>{const[r,o]=U.useState(!1),{globalClassName:a}=at(),u=f=>{o(f.open)},c=U.useCallback(()=>{o(!1)},[]),d=U.useMemo(()=>({closeMenu:c}),[c]);return w.jsxs(eM,{open:r,onOpenChange:u,positioning:{placement:"bottom-end"},children:[w.jsx(BT,{"aria-label":`Overflow menu for ${t}`,className:W(`${j}-overflow-menu-button-trigger`,`${j}-icon-button`,a,e,`cim-${t}-component`),children:w.jsx(UT,{})}),w.jsx(Gb,{children:w.jsx(Yb,{className:W(`${j}-overflow-menu-list`,a,`cim-${t}-component`),children:w.jsx(bb.Provider,{value:d,children:n})})})]})};function HT(e){return zt({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M15 4.00008H13V11.0001H20V9.00008H16.4142L20.7071 4.70718L19.2929 3.29297L15 7.58586V4.00008ZM4.00008 15H7.58586L3.29297 19.2929L4.70718 20.7071L9.00008 16.4142V20H11.0001V13H4.00008V15Z"},child:[]}]})(e)}function zT(e){return zt({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17.5858 5H14V3H21V10H19V6.41421L14.7071 10.7071L13.2929 9.29289L17.5858 5ZM3 14H5V17.5858L9.29289 13.2929L10.7071 14.7071L6.41421 19H10V21H3V14Z"},child:[]}]})(e)}const[aM,To]=Eo({name:"CarouselContext",hookName:"useCarouselContext",providerName:"<CarouselProvider />"}),jT=U.forwardRef((e,t)=>{const n=To(),r=Yt(n.getControlProps(),e);return w.jsx(mn.div,me(F(F({},r),e),{ref:t}))});jT.displayName="CarouselControl";const $T=U.forwardRef((e,t)=>{const[n,r]=Xa()(e,["readOnly","index"]),o=To(),a=Yt(o.getIndicatorProps(n),r);return w.jsx(mn.button,me(F({},a),{ref:t}))});$T.displayName="CarouselIndicator";const VT=U.forwardRef((e,t)=>{const n=To(),r=Yt(n.getIndicatorGroupProps(),e);return w.jsx(mn.div,me(F({},r),{ref:t}))});VT.displayName="CarouselIndicatorGroup";const qT=U.forwardRef((e,t)=>{const[n,r]=Xa()(e,["index","snapAlign"]),o=To(),a=Yt(o.getItemProps(n),r);return w.jsx(mn.div,me(F({},a),{ref:t}))});qT.displayName="CarouselItem";const YT=U.forwardRef((e,t)=>{const n=To(),r=Yt(n.getItemGroupProps(),e);return w.jsx(mn.div,me(F({},r),{ref:t}))});YT.displayName="CarouselItemGroup";const GT=U.forwardRef((e,t)=>{const n=To(),r=Yt(n.getNextTriggerProps(),e);return w.jsx(mn.button,me(F({},r),{ref:t}))});GT.displayName="CarouselNextTrigger";const WT=U.forwardRef((e,t)=>{const n=To(),r=Yt(n.getPrevTriggerProps(),e);return w.jsx(mn.button,me(F({},r),{ref:t}))});WT.displayName="CarouselPrevTrigger";function uM(e){const t=gs(e),n=e.getBoundingClientRect();let r=t.getPropertyValue("scroll-padding-left").replace("auto","0px"),o=t.getPropertyValue("scroll-padding-top").replace("auto","0px"),a=t.getPropertyValue("scroll-padding-right").replace("auto","0px"),u=t.getPropertyValue("scroll-padding-bottom").replace("auto","0px");function c(T,y){let _=parseFloat(T);return/%/.test(T)&&(_/=100,_*=y),Number.isNaN(_)?0:_}let d=c(r,n.width),f=c(o,n.height),p=c(a,n.width),g=c(u,n.height);return{x:{before:d,after:p},y:{before:f,after:g}}}function lM(e,t,n="both"){return n==="x"&&e.right>=t.left&&e.left<=t.right||n==="y"&&e.bottom>=t.top&&e.top<=t.bottom||n==="both"&&e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}function XT(e){let t=[];for(const n of e.children)t=t.concat(n,XT(n));return t}function KT(e,t=!1){const n=e.getBoundingClientRect(),r={x:{start:[],center:[],end:[]},y:{start:[],center:[],end:[]}},o=t?XT(e):e.children;for(const a of["x","y"]){const u=a==="x"?"y":"x",c=a==="x"?"left":"top",d=a==="x"?"width":"height",f=a==="x"?"scrollLeft":"scrollTop";for(const p of o){const g=p.getBoundingClientRect();if(!lM(n,g,u))continue;const T=gs(p);let[y,_]=T.getPropertyValue("scroll-snap-align").split(" ");typeof _=="undefined"&&(_=y);const S=a==="x"?_:y,k=g[c]-n[c]+e[f];switch(S){case"none":break;case"start":r[a].start.push({node:p,position:k});break;case"center":r[a].center.push({node:p,position:k+g[d]/2});break;case"end":r[a].end.push({node:p,position:k+g[d]});break}}}return r}function QT(e){const t=e.getBoundingClientRect(),n=uM(e),r=KT(e),o={x:e.scrollWidth-e.offsetWidth,y:e.scrollHeight-e.offsetHeight};return{x:JT([...r.x.start.map(a=>a.position-n.x.before),...r.x.center.map(a=>a.position-t.width/2),...r.x.end.map(a=>a.position-t.width+n.x.after)].map(ZT(0,o.x))),y:JT([...r.y.start.map(a=>a.position-n.y.before),...r.y.center.map(a=>a.position-t.height/2),...r.y.end.map(a=>a.position-t.height+n.y.after)].map(ZT(0,o.y)))}}function cM(e,t,n){const r=KT(e),o=[...r[t].start,...r[t].center,...r[t].end];for(const a of o)if(n(a.node))return a.position}var JT=e=>[...new Set(e)],ZT=(e,t)=>n=>Math.max(e,Math.min(t,n)),dM=yo("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger"),ui=dM.build(),fM=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.root)!=null?n:`carousel:${e.id}`},hM=(e,t)=>{var n,r,o;return(o=(r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))!=null?o:`carousel:${e.id}:item:${t}`},fc=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.itemGroup)!=null?n:`carousel:${e.id}:item-group`},pM=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.nextTrigger)!=null?n:`carousel:${e.id}:next-trigger`},mM=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.prevTrigger)!=null?n:`carousel:${e.id}:prev-trigger`},gM=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.indicatorGroup)!=null?n:`carousel:${e.id}:indicator-group`},e_=(e,t)=>{var n,r,o;return(o=(r=(n=e.ids)==null?void 0:n.indicator)==null?void 0:r.call(n,t))!=null?o:`carousel:${e.id}:indicator:${t}`},In=e=>e.getById(fc(e)),t_=e=>DD(In(e),"[data-part=item]"),EM=(e,t)=>e.getById(e_(e,t)),n_=e=>{const t=In(e);if(!t)return;const n=Es(t);t.setAttribute("tabindex",n.length>0?"-1":"0")};function yM(e,t){const{state:n,context:r,computed:o,send:a,scope:u,prop:c}=e,d=n.matches("autoplay"),f=n.matches("dragging"),p=o("canScrollNext"),g=o("canScrollPrev"),T=o("isHorizontal"),y=Array.from(r.get("pageSnapPoints")),_=r.get("page"),S=c("slidesPerPage"),k=c("padding"),v=c("translations");return{isPlaying:d,isDragging:f,page:_,pageSnapPoints:y,canScrollNext:p,canScrollPrev:g,getProgress(){return _/y.length},scrollToIndex(N,C){a({type:"INDEX.SET",index:N,instant:C})},scrollTo(N,C){a({type:"PAGE.SET",index:N,instant:C})},scrollNext(N){a({type:"PAGE.NEXT",instant:N})},scrollPrev(N){a({type:"PAGE.PREV",instant:N})},play(){a({type:"AUTOPLAY.START"})},pause(){a({type:"AUTOPLAY.PAUSE"})},isInView(N){return Array.from(r.get("slidesInView")).includes(N)},refresh(){a({type:"SNAP.REFRESH"})},getRootProps(){return t.element(me(F({},ui.root.attrs),{id:fM(u),role:"region","aria-roledescription":"carousel","data-orientation":c("orientation"),dir:c("dir"),style:{"--slides-per-page":S,"--slide-spacing":c("spacing"),"--slide-item-size":"calc(100% / var(--slides-per-page) - var(--slide-spacing) * (var(--slides-per-page) - 1) / var(--slides-per-page))"}}))},getItemGroupProps(){return t.element(me(F({},ui.itemGroup.attrs),{id:fc(u),"data-orientation":c("orientation"),"data-dragging":fs(f),dir:c("dir"),"aria-live":d?"off":"polite",onFocus(N){hs(N.currentTarget,br(N))&&a({type:"VIEWPORT.FOCUS"})},onBlur(N){hs(N.currentTarget,N.relatedTarget)||a({type:"VIEWPORT.BLUR"})},onMouseDown(N){if(N.defaultPrevented||!c("allowMouseDrag")||!Ib(N))return;const C=br(N);Br(C)&&C!==N.currentTarget||(N.preventDefault(),a({type:"DRAGGING.START"}))},onWheel:D6(N=>{const C=c("orientation")==="horizontal"?"deltaX":"deltaY";N[C]<0&&!o("canScrollPrev")||N[C]>0&&!o("canScrollNext")||a({type:"USER.SCROLL"})},150),onTouchStart(){a({type:"USER.SCROLL"})},style:{display:"grid",gap:"var(--slide-spacing)",scrollSnapType:[T?"x":"y",c("snapType")].join(" "),gridAutoFlow:T?"column":"row",scrollbarWidth:"none",overscrollBehaviorX:"contain",[T?"gridAutoColumns":"gridAutoRows"]:"var(--slide-item-size)",[T?"scrollPaddingInline":"scrollPaddingBlock"]:k,[T?"paddingInline":"paddingBlock"]:k,[T?"overflowX":"overflowY"]:"auto"}}))},getItemProps(N){const C=r.get("slidesInView").includes(N.index);return t.element(me(F({},ui.item.attrs),{id:hM(u,N.index),dir:c("dir"),role:"group","data-index":N.index,"data-inview":fs(C),"aria-roledescription":"slide","data-orientation":c("orientation"),"aria-label":v.item(N.index,c("slideCount")),"aria-hidden":Ab(!C),style:{scrollSnapAlign:(()=>{var re;const M=(re=N.snapAlign)!=null?re:"start",V=c("slidesPerMove"),D=V==="auto"?Math.floor(c("slidesPerPage")):V;return(N.index+D)%D===0?M:void 0})()}}))},getControlProps(){return t.element(me(F({},ui.control.attrs),{"data-orientation":c("orientation")}))},getPrevTriggerProps(){return t.button(me(F({},ui.prevTrigger.attrs),{id:mM(u),type:"button",disabled:!g,dir:c("dir"),"aria-label":v.prevTrigger,"data-orientation":c("orientation"),"aria-controls":fc(u),onClick(N){N.defaultPrevented||a({type:"PAGE.PREV",src:"trigger"})}}))},getNextTriggerProps(){return t.button(me(F({},ui.nextTrigger.attrs),{dir:c("dir"),id:pM(u),type:"button","aria-label":v.nextTrigger,"data-orientation":c("orientation"),"aria-controls":fc(u),disabled:!p,onClick(N){N.defaultPrevented||a({type:"PAGE.NEXT",src:"trigger"})}}))},getIndicatorGroupProps(){return t.element(me(F({},ui.indicatorGroup.attrs),{dir:c("dir"),id:gM(u),"data-orientation":c("orientation"),onKeyDown(N){if(N.defaultPrevented)return;const C="indicator",M={ArrowDown(K){T||(a({type:"PAGE.NEXT",src:C}),K.preventDefault())},ArrowUp(K){T||(a({type:"PAGE.PREV",src:C}),K.preventDefault())},ArrowRight(K){T&&(a({type:"PAGE.NEXT",src:C}),K.preventDefault())},ArrowLeft(K){T&&(a({type:"PAGE.PREV",src:C}),K.preventDefault())},Home(K){a({type:"PAGE.SET",index:0,src:C}),K.preventDefault()},End(K){a({type:"PAGE.SET",index:y.length-1,src:C}),K.preventDefault()}},V=yD(N,{dir:c("dir"),orientation:c("orientation")}),D=M[V];D==null||D(N)}}))},getIndicatorProps(N){return t.button(me(F({},ui.indicator.attrs),{dir:c("dir"),id:e_(u,N.index),type:"button","data-orientation":c("orientation"),"data-index":N.index,"data-readonly":fs(N.readOnly),"data-current":fs(N.index===_),"aria-label":v.indicator(N.index),onClick(C){C.defaultPrevented||N.readOnly||a({type:"PAGE.SET",index:N.index,src:"indicator"})}}))},getAutoplayTriggerProps(){return t.button(me(F({},ui.autoplayTrigger.attrs),{type:"button","data-orientation":c("orientation"),"data-pressed":fs(d),"aria-label":d?v.autoplayStop:v.autoplayStart,onClick(N){N.defaultPrevented||a({type:d?"AUTOPLAY.PAUSE":"AUTOPLAY.START"})}}))}}}var bM={props({props:e}){return z6(e,["slideCount"],"carousel"),me(F({dir:"ltr",defaultPage:0,orientation:"horizontal",snapType:"mandatory",loop:!!e.autoplay,slidesPerPage:1,slidesPerMove:"auto",spacing:"0px",autoplay:!1,allowMouseDrag:!1,inViewThreshold:.6},e),{translations:F({nextTrigger:"Next slide",prevTrigger:"Previous slide",indicator:t=>`Go to slide ${t+1}`,item:(t,n)=>`${t+1} of ${n}`,autoplayStart:"Start slide rotation",autoplayStop:"Stop slide rotation"},e.translations)})},refs(){return{timeoutRef:void 0}},initialState({prop:e}){return e("autoplay")?"autoplay":"idle"},context({prop:e,bindable:t,getContext:n}){return{page:t(()=>({defaultValue:e("defaultPage"),value:e("page"),onChange(r){var u;const a=n().get("pageSnapPoints");(u=e("onPageChange"))==null||u({page:r,pageSnapPoint:a[r]})}})),pageSnapPoints:t(()=>({defaultValue:TM(e("slideCount"),e("slidesPerMove"),e("slidesPerPage"))})),slidesInView:t(()=>({defaultValue:[]}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",isHorizontal:({prop:e})=>e("orientation")==="horizontal",canScrollNext:({prop:e,context:t})=>e("loop")||t.get("page")<t.get("pageSnapPoints").length-1,canScrollPrev:({prop:e,context:t})=>e("loop")||t.get("page")>0,autoplayInterval:({prop:e})=>{const t=e("autoplay");return w6(t)?t.delay:4e3}},watch({track:e,action:t,context:n,prop:r,send:o}){e([()=>r("slidesPerPage"),()=>r("slidesPerMove")],()=>{t(["setSnapPoints"])}),e([()=>n.get("page")],()=>{t(["scrollToPage","focusIndicatorEl"])}),e([()=>r("orientation")],()=>{t(["setSnapPoints","scrollToPage"])}),e([()=>r("slideCount")],()=>{o({type:"SNAP.REFRESH",src:"slide.count"})}),e([()=>!!r("autoplay")],()=>{o({type:r("autoplay")?"AUTOPLAY.START":"AUTOPLAY.PAUSE",src:"autoplay.prop.change"})})},on:{"PAGE.NEXT":{target:"idle",actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{target:"idle",actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{target:"idle",actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{target:"idle",actions:["clearScrollEndTimer","setMatchingPage"]},"SNAP.REFRESH":{actions:["setSnapPoints","clampPage"]},"PAGE.SCROLL":{actions:["scrollToPage"]}},effects:["trackSlideMutation","trackSlideIntersections","trackSlideResize"],entry:["setSnapPoints","setPage"],exit:["clearScrollEndTimer"],states:{idle:{on:{"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.START":{target:"autoplay",actions:["invokeAutoplayStart"]},"USER.SCROLL":{target:"userScroll"},"VIEWPORT.FOCUS":{target:"focus"}}},focus:{effects:["trackKeyboardScroll"],on:{"VIEWPORT.BLUR":{target:"idle"},"PAGE.NEXT":{actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{actions:["clearScrollEndTimer","setMatchingPage"]},"USER.SCROLL":{target:"userScroll"}}},dragging:{effects:["trackPointerMove"],entry:["disableScrollSnap"],on:{DRAGGING:{actions:["scrollSlides","invokeDragging"]},"DRAGGING.END":{target:"idle",actions:["endDragging","invokeDraggingEnd"]}}},userScroll:{effects:["trackScroll"],on:{"SCROLL.END":[{guard:"isFocused",target:"focus",actions:["setClosestPage"]},{target:"idle",actions:["setClosestPage"]}]}},autoplay:{effects:["trackDocumentVisibility","trackScroll","autoUpdateSlide"],exit:["invokeAutoplayEnd"],on:{"AUTOPLAY.TICK":{actions:["setNextPage","invokeAutoplay"]},"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.PAUSE":{target:"idle"}}}},implementations:{guards:{isFocused:({scope:e})=>e.isActiveElement(In(e))},effects:{autoUpdateSlide({computed:e,send:t}){const n=setInterval(()=>{t({type:e("canScrollNext")?"AUTOPLAY.TICK":"AUTOPLAY.PAUSE",src:"autoplay.interval"})},e("autoplayInterval"));return()=>clearInterval(n)},trackSlideMutation({scope:e,send:t}){const n=In(e);if(!n)return;const r=e.getWin(),o=new r.MutationObserver(()=>{t({type:"SNAP.REFRESH",src:"slide.mutation"}),n_(e)});return n_(e),o.observe(n,{childList:!0,subtree:!0}),()=>o.disconnect()},trackSlideResize({scope:e,send:t}){if(!In(e))return;const r=e.getWin(),o=()=>{t({type:"SNAP.REFRESH",src:"slide.resize"})};qt(()=>{o(),qt(()=>{t({type:"PAGE.SCROLL",instant:!0})})});const a=new r.ResizeObserver(o);return t_(e).forEach(u=>a.observe(u)),()=>a.disconnect()},trackSlideIntersections({scope:e,prop:t,context:n}){const r=In(e),o=e.getWin(),a=new o.IntersectionObserver(u=>{const c=u.reduce((d,f)=>{var T;const p=f.target,g=Number((T=p.dataset.index)!=null?T:"-1");return g==null||Number.isNaN(g)||g===-1?d:f.isIntersecting?b6(d,g):T6(d,g)},n.get("slidesInView"));n.set("slidesInView",_6(c))},{root:r,threshold:t("inViewThreshold")});return t_(e).forEach(u=>a.observe(u)),()=>a.disconnect()},trackScroll({send:e,refs:t,scope:n}){const r=In(n);return r?en(r,"scroll",()=>{clearTimeout(t.get("timeoutRef")),t.set("timeoutRef",void 0),t.set("timeoutRef",setTimeout(()=>{e({type:"SCROLL.END"})},150))},{passive:!0}):void 0},trackDocumentVisibility({scope:e,send:t}){const n=e.getDoc();return en(n,"visibilitychange",()=>{n.visibilityState!=="visible"&&t({type:"AUTOPLAY.PAUSE",src:"doc.hidden"})})},trackPointerMove({scope:e,send:t}){const n=e.getDoc();return ID(n,{onPointerMove({event:r}){t({type:"DRAGGING",left:-r.movementX,top:-r.movementY})},onPointerUp(){t({type:"DRAGGING.END"})}})},trackKeyboardScroll({scope:e,send:t,context:n}){const r=e.getWin();return en(r,"keydown",a=>{switch(a.key){case"ArrowRight":a.preventDefault(),t({type:"PAGE.NEXT"});break;case"ArrowLeft":a.preventDefault(),t({type:"PAGE.PREV"});break;case"Home":a.preventDefault(),t({type:"PAGE.SET",index:0});break;case"End":a.preventDefault(),t({type:"PAGE.SET",index:n.get("pageSnapPoints").length-1})}},{capture:!0})}},actions:{clearScrollEndTimer({refs:e}){e.get("timeoutRef")!=null&&(clearTimeout(e.get("timeoutRef")),e.set("timeoutRef",void 0))},scrollToPage({context:e,event:t,scope:n,computed:r,flush:o}){var f;const a=t.instant?"instant":"smooth",u=wb((f=t.index)!=null?f:e.get("page"),0,e.get("pageSnapPoints").length-1),c=In(n);if(!c)return;const d=r("isHorizontal")?"left":"top";o(()=>{c.scrollTo({[d]:e.get("pageSnapPoints")[u],behavior:a})})},setClosestPage({context:e,scope:t,computed:n}){const r=In(t);if(!r)return;const o=n("isHorizontal")?r.scrollLeft:r.scrollTop,a=e.get("pageSnapPoints").findIndex(u=>Math.abs(u-o)<1);a!==-1&&e.set("page",a)},setNextPage({context:e,prop:t,state:n}){const r=n.matches("autoplay")||t("loop"),o=_b(e.get("pageSnapPoints"),e.get("page"),{loop:r});e.set("page",o)},setPrevPage({context:e,prop:t,state:n}){const r=n.matches("autoplay")||t("loop"),o=S6(e.get("pageSnapPoints"),e.get("page"),{loop:r});e.set("page",o)},setMatchingPage({context:e,event:t,computed:n,scope:r}){const o=In(r);if(!o)return;const a=cM(o,n("isHorizontal")?"x":"y",c=>c.dataset.index===t.index.toString());if(a==null)return;const u=e.get("pageSnapPoints").findIndex(c=>Math.abs(c-a)<1);e.set("page",u)},setPage({context:e,event:t}){var r;const n=(r=t.index)!=null?r:e.get("page");e.set("page",n)},clampPage({context:e}){const t=wb(e.get("page"),0,e.get("pageSnapPoints").length-1);e.set("page",t)},setSnapPoints({context:e,computed:t,scope:n}){const r=In(n);if(!r)return;const o=QT(r);e.set("pageSnapPoints",t("isHorizontal")?o.x:o.y)},disableScrollSnap({scope:e}){const t=In(e);if(!t)return;const n=getComputedStyle(t);t.dataset.scrollSnapType=n.getPropertyValue("scroll-snap-type"),t.style.setProperty("scroll-snap-type","none")},scrollSlides({scope:e,event:t}){const n=In(e);n==null||n.scrollBy({left:t.left,top:t.top,behavior:"instant"})},endDragging({scope:e,context:t,computed:n}){const r=In(e);if(!r)return;const o=r.scrollLeft,a=r.scrollTop,u=QT(r),c=u.x.reduce((f,p)=>Math.abs(p-o)<Math.abs(f-o)?p:f,u.x[0]),d=u.y.reduce((f,p)=>Math.abs(p-a)<Math.abs(f-a)?p:f,u.y[0]);qt(()=>{r.scrollTo({left:c,top:d,behavior:"smooth"});const f=n("isHorizontal")?c:d;t.set("page",t.get("pageSnapPoints").indexOf(f));const p=r.dataset.scrollSnapType;p&&(r.style.setProperty("scroll-snap-type",p),delete r.dataset.scrollSnapType)})},focusIndicatorEl({context:e,event:t,scope:n}){if(t.src!=="indicator")return;const r=EM(n,e.get("page"));r&&qt(()=>r.focus({preventScroll:!0}))},invokeDragStart({context:e,prop:t}){var n;(n=t("onDragStatusChange"))==null||n({type:"dragging.start",isDragging:!0,page:e.get("page")})},invokeDragging({context:e,prop:t}){var n;(n=t("onDragStatusChange"))==null||n({type:"dragging",isDragging:!0,page:e.get("page")})},invokeDraggingEnd({context:e,prop:t}){var n;(n=t("onDragStatusChange"))==null||n({type:"dragging.end",isDragging:!1,page:e.get("page")})},invokeAutoplay({context:e,prop:t}){var n;(n=t("onAutoplayStatusChange"))==null||n({type:"autoplay",isPlaying:!0,page:e.get("page")})},invokeAutoplayStart({context:e,prop:t}){var n;(n=t("onAutoplayStatusChange"))==null||n({type:"autoplay.start",isPlaying:!0,page:e.get("page")})},invokeAutoplayEnd({context:e,prop:t}){var n;(n=t("onAutoplayStatusChange"))==null||n({type:"autoplay.stop",isPlaying:!1,page:e.get("page")})}}}};function TM(e,t,n){if(e==null||n<=0)return[];const r=[],o=t==="auto"?Math.floor(n):t;if(o<=0)return[];for(let a=0;a<e&&!(a+n>e);a+=o)r.push(a);return r}Ts()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","onDragStatusChange","onAutoplayStatusChange"]),Ts()(["index","readOnly"]),Ts()(["index","snapAlign"]);const _M=e=>{const t=U.useId(),{getRootNode:n}=dc(),{dir:r}=lp(),o=F({id:t,dir:r,getRootNode:n},e),a=Jl(bM,o);return yM(a,$h)},r_=U.forwardRef((e,t)=>{const[n,r]=Xa()(e,["allowMouseDrag","autoplay","defaultPage","id","ids","inViewThreshold","loop","onAutoplayStatusChange","onDragStatusChange","onPageChange","orientation","padding","page","slideCount","slidesPerMove","slidesPerPage","snapType","spacing","translations"]),o=_M(n),a=Yt(o.getRootProps(),r);return w.jsx(aM,{value:o,children:w.jsx(mn.div,me(F({},a),{ref:t}))})});r_.displayName="CarouselRoot";const SM=180,xM=e=>{const t=e.trim(),n=parseFloat(t);return Number.isNaN(n)?0:t.endsWith("rem")?n*16:n},wM=({globalClassName:e,className:t,itemMinWidth:n=SM,spacing:r="0.5rem",loop:o=!1,allowMouseDrag:a=!0,showIndicators:u=!0,showNavigation:c=!0,onPageChange:d,ariaLabel:f="Product carousel",children:p})=>{const g=Array.from(p),T=g.length,y=U.useRef(null),[_,S]=U.useState(0),{width:k}=Sv();U.useLayoutEffect(()=>{y.current&&S(y.current.getBoundingClientRect().width)},[k,T]);const v=xM(r),N=n+v,C=_>0?(_+v)/N:1,M=Math.max(1,Math.floor(C));if(T===0)return null;const V=T>M,D=Math.ceil(T/M),K=V?Math.max(1,C):M;return w.jsxs(r_,{ref:y,className:W(e,t,`${j}-carousel`),slidesPerPage:K,slidesPerMove:M,spacing:r,loop:o,allowMouseDrag:a,slideCount:T,onPageChange:d,"aria-label":f,children:[w.jsx(YT,{className:W(e,`${j}-carousel__item-group`,{"carousel-row-container":!V}),children:g.map((re,be)=>w.jsx(qT,{index:be,className:W(e,`${j}-carousel__item`),children:re},be))}),c&&V&&w.jsxs(jT,{className:W(e,`${j}-carousel__control`),children:[w.jsx(WT,{className:W(e,`${j}-carousel__prev-trigger`),"aria-label":"Previous slide",children:w.jsx(rM,{})}),w.jsx(GT,{className:W(e,`${j}-carousel__next-trigger`),"aria-label":"Next slide",children:w.jsx(iM,{})})]}),u&&V&&w.jsx(VT,{className:W(e,`${j}-carousel__indicator-group`),children:Array.from({length:D},(re,be)=>w.jsx($T,{index:be,className:W(e,`${j}-carousel__indicator`),"aria-label":`Go to slide group ${be+1}`},be))})]})},[CM,AM]=Eo({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),vM=e=>Xa()(e,["lazyMount","unmountOnExit"]),[kM,nu]=Eo({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),i_=U.forwardRef((e,t)=>{const n=nu(),r=AM(),o=Yh(me(F({},r),{present:n.open})),a=Yt(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:w.jsx(mn.div,me(F({},a),{ref:Zl(o.ref,t)}))});i_.displayName="DialogBackdrop";const cp=U.forwardRef((e,t)=>{const n=nu(),r=Wa(),o=Yt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:w.jsx(mn.div,me(F({},o),{ref:Zl(r.ref,t)}))});cp.displayName="DialogContent";const dp=U.forwardRef((e,t)=>{const n=nu(),r=Yt(n.getDescriptionProps(),e);return w.jsx(mn.div,me(F({},r),{ref:t}))});dp.displayName="DialogDescription";const fp=U.forwardRef((e,t)=>{const n=nu(),r=Yt(n.getPositionerProps(),e);return Wa().unmounted?null:w.jsx(mn.div,me(F({},r),{ref:t}))});fp.displayName="DialogPositioner";var PM=yo("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),_o=PM.build(),o_=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.positioner)!=null?n:`dialog:${e.id}:positioner`},s_=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.backdrop)!=null?n:`dialog:${e.id}:backdrop`},hp=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.content)!=null?n:`dialog:${e.id}:content`},a_=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.trigger)!=null?n:`dialog:${e.id}:trigger`},pp=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.title)!=null?n:`dialog:${e.id}:title`},mp=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.description)!=null?n:`dialog:${e.id}:description`},u_=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.closeTrigger)!=null?n:`dialog:${e.id}:close`},hc=e=>e.getById(hp(e)),NM=e=>e.getById(o_(e)),OM=e=>e.getById(s_(e)),IM=e=>e.getById(a_(e)),RM=e=>e.getById(pp(e)),LM=e=>e.getById(mp(e)),DM=e=>e.getById(u_(e));function MM(e,t){const{state:n,send:r,context:o,prop:a,scope:u}=e,c=a("aria-label"),d=n.matches("open");return{open:d,setOpen(f){n.matches("open")!==f&&r({type:f?"OPEN":"CLOSE"})},getTriggerProps(){return t.button(me(F({},_o.trigger.attrs),{dir:a("dir"),id:a_(u),"aria-haspopup":"dialog",type:"button","aria-expanded":d,"data-state":d?"open":"closed","aria-controls":hp(u),onClick(f){f.defaultPrevented||r({type:"TOGGLE"})}}))},getBackdropProps(){return t.element(me(F({},_o.backdrop.attrs),{dir:a("dir"),hidden:!d,id:s_(u),"data-state":d?"open":"closed"}))},getPositionerProps(){return t.element(me(F({},_o.positioner.attrs),{dir:a("dir"),id:o_(u),style:{pointerEvents:d?void 0:"none"}}))},getContentProps(){const f=o.get("rendered");return t.element(me(F({},_o.content.attrs),{dir:a("dir"),role:a("role"),hidden:!d,id:hp(u),tabIndex:-1,"data-state":d?"open":"closed","aria-modal":!0,"aria-label":c||void 0,"aria-labelledby":c||!f.title?void 0:pp(u),"aria-describedby":f.description?mp(u):void 0}))},getTitleProps(){return t.element(me(F({},_o.title.attrs),{dir:a("dir"),id:pp(u)}))},getDescriptionProps(){return t.element(me(F({},_o.description.attrs),{dir:a("dir"),id:mp(u)}))},getCloseTriggerProps(){return t.button(me(F({},_o.closeTrigger.attrs),{dir:a("dir"),id:u_(u),type:"button",onClick(f){f.defaultPrevented||(f.stopPropagation(),r({type:"CLOSE"}))}}))}}}var FM={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>DM(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return F({role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r},e)},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return vT(()=>hc(e),{type:"dialog",defer:!0,pointerBlocking:n("modal"),exclude:[IM(e)],onInteractOutside(o){var a;(a=n("onInteractOutside"))==null||a(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(o){var a;(a=n("onEscapeKeyDown"))==null||a(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return IT(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?NT(()=>hc(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>{var o,a;return(a=(o=t("finalFocusEl"))==null?void 0:o())!=null?a:r},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?yT(()=>[hc(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){qt(()=>{e.set("rendered",{title:!!RM(t),description:!!LM(t)})})},syncZIndex({scope:e}){qt(()=>{const t=hc(e);if(!t)return;const n=gs(t);[NM(e),OM(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",n.zIndex),o==null||o.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};Ts()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const BM=e=>{const t=U.useId(),{getRootNode:n}=dc(),{dir:r}=lp(),o=F({id:t,getRootNode:n,dir:r},e),a=Jl(FM,o);return MM(a,$h)},l_=e=>{const[t,c]=Wb(e),d=c,{children:n}=d,r=ln(d,["children"]),[o]=vM(t),a=BM(r),u=Yh(Yt({present:a.open},t));return w.jsx(kM,{value:a,children:w.jsx(CM,{value:o,children:w.jsx(qb,{value:u,children:n})})})},c_=U.forwardRef((e,t)=>{const n=nu(),r=Yt(n.getTitleProps(),e);return w.jsx(mn.h2,me(F({},r),{ref:t}))});c_.displayName="DialogTitle";const UM=({children:e})=>{const[t,n]=U.useState(!1),r=U.useMemo(()=>({toggleMenu:()=>n(a=>!a),closeMenu:()=>n(!1)}),[]),o=U.useMemo(()=>({isOpen:t}),[t]);return w.jsx(Ph.Provider,{value:r,children:w.jsx(yb.Provider,{value:o,children:e})})},d_=()=>U.useContext(yb),f_=()=>{const e=U.useContext(Ph);if(!e)throw new Error("useOverflowMenuDispatch must be used within an OverflowMenuProvider");return e},HM=`${j}-overflow-menu-button-trigger`,zM=({componentType:e,children:t})=>{const{isOpen:n}=d_(),{closeMenu:r}=f_(),{globalClassName:o}=at(),a=U.useRef(null);return U.useEffect(()=>{if(!n)return;const u=d=>{d.key==="Escape"&&r()},c=d=>{const f=d.target;f instanceof Element&&f.closest(`.${HM}`)||a.current&&!a.current.contains(f)&&r()};return document.addEventListener("keydown",u),document.addEventListener("mousedown",c),()=>{document.removeEventListener("keydown",u),document.removeEventListener("mousedown",c)}},[n,r]),n?w.jsx("div",{ref:a,role:"menu","aria-label":`Overflow menu for ${e}`,className:W(`${j}-overflow-panel`,o,`cim-${e}-component`),children:t}):null},jM=({componentType:e,className:t})=>{const{toggleMenu:n}=f_(),{isOpen:r}=d_(),{globalClassName:o}=at();return w.jsx("button",{"aria-label":`Overflow menu for ${e}`,title:"More options","aria-expanded":r,"aria-haspopup":"menu",className:W(`${j}-overflow-menu-button-trigger`,`${j}-icon-button`,o,t,`cim-${e}-component`),onClick:n,children:w.jsx(UT,{})})},gp=()=>{const{status:e,entryType:t}=Zn(),{messages:n}=er(),r=t==="ask_cim",o=!!(n&&n.length>0),a=!!e.isOpen;return r&&a||!r&&a&&o},$M=({componentType:e,isIcon:t})=>{const{globalClassName:n}=at(),{previousComponentType:r}=Zn(),o=qa(),a=()=>{ml(r||"dialog"),o()};return t?w.jsx(ri,{className:W(n,`${j}-toggle-dialog-button`,`cim-${e}-component`),ariaLabel:"Collapse",title:"Collapse",onClick:a,icon:w.jsx(HT,{})}):w.jsxs("button",{className:W(n,`${j}-overflow-menu-button`,`${j}-toggle-dialog-button`,`cim-${e}-component`),onClick:a,children:[w.jsx(HT,{}),"Show ",r||"dialog"]})},VM=({componentType:e,isIcon:t})=>{const{globalClassName:n}=at(),{isModalFullscreen:r}=Zn(),o=qa(),a=()=>{wf(!r),o()},u=r?Nk:Ok,c="Toggle Fullscreen";return t?w.jsx(ri,{ariaLabel:c,title:c,className:W(n,`${j}-modal-fullscreen-button`,`cim-${e}-component`),icon:w.jsx(u,{}),onClick:a}):w.jsxs("button",{className:W(n,`${j}-overflow-menu-button`,`${j}-modal-fullscreen-button`,`cim-${e}-component`),onClick:a,children:[w.jsx(u,{}),c]})},qM=({componentType:e,isIcon:t})=>{const{globalClassName:n}=at(),{dialogPosition:r}=Zn(),o=qa(),a=r==="bottom-left",u=()=>{Cf(a?"bottom-right":"bottom-left"),o()},c=a?nM:tM,d=a?"Move right":"Move left";return t?w.jsx(ri,{className:W(n,`${j}-left-right-toggle-button`,`cim-${e}-component`),ariaLabel:d,title:d,onClick:u,icon:w.jsx(c,{})}):w.jsxs("button",{className:W(n,`${j}-overflow-menu-button`,`${j}-left-right-toggle-button`,`cim-${e}-component`),onClick:u,children:[w.jsx(c,{}),d]})},h_=({componentType:e,onClearChat:t,onClose:n})=>{const{headerConfig:r,globalClassName:o}=at(),{mode:a}=Zn(),u=a==="standalone",c=e==="modal",d=c?$M:p_,f=c?VM:qM,p=U.useMemo(()=>r?Rk(r):{},[r]);return w.jsx(UM,{children:w.jsxs("div",{className:W(o,`${j}-${e}-header-wrapper`),style:{display:"flex",flexDirection:"column",position:"relative"},children:[w.jsxs("div",{className:W(o,`${j}-${e}-header`,{standalone:u,embedded:!u}),style:p,children:[(r==null?void 0:r.logoUrl)&&w.jsx("img",{alt:"",role:"img",className:W(o,`${j}-${e}-logo`,{standalone:u,embedded:!u}),src:r.logoUrl}),w.jsx(c_,{className:W(o,`${j}-${e}-title`,{standalone:u,embedded:!u}),children:r==null?void 0:r.headerText}),w.jsxs("div",{className:W(o,`${j}-${e}-controls`),children:[w.jsx(d,{componentType:e,isIcon:!0}),w.jsx(jM,{componentType:e}),w.jsx(N1,{className:W(o,`cim-${e}-component`),onClick:n})]})]}),w.jsxs(zM,{componentType:e,children:[w.jsx(f,{componentType:e}),w.jsx(GM,{componentType:e}),w.jsx(Tb,{componentType:e,onClearChat:t})]})]})})},YM=({className:e,globalClassName:t,suggestions:n,disabled:r,isWidgetStandalone:o,onSuggestionClick:a})=>{const u=o?"standalone":"embedded",c=d=>()=>{a(d)};return w.jsx("div",{className:W(t,`${j}-suggestion-container ${u}`,e),children:n.map(d=>o?w.jsx(bl,{disabled:r,className:W(t,`${j}-suggestion-button standalone`),onClick:c(d),children:d},d):w.jsx("button",{disabled:r,className:W(t,`${j}-suggestion-button embedded`),onClick:c(d),children:d},d))})},GM=({componentType:e,isIcon:t})=>{const{globalClassName:n,enableMinimize:r}=at();if(!r)return null;const o=()=>{Si(!1),pl(!0)};return t?w.jsx(ri,{className:W(n,`${j}-toggle-minimize-button`,`cim-${e}-component`),ariaLabel:"Toggle Minimize",title:"Minimize",onClick:o,icon:w.jsx(k1,{})}):w.jsxs("button",{className:W(n,`${j}-overflow-menu-button`,`${j}-toggle-minimize-button`,`cim-${e}-component`),onClick:o,children:[w.jsx(k1,{}),"Minimize"]})},p_=({componentType:e,isIcon:t})=>{const{globalClassName:n}=at(),r=qa(),o=()=>{ml("modal"),r()};return t?w.jsx(ri,{className:W(n,`${j}-toggle-modal-button`,`cim-${e}-component`),ariaLabel:"Expand",title:"Expand",onClick:o,icon:w.jsx(zT,{})}):w.jsxs("button",{className:W(n,`${j}-overflow-menu-button`,`${j}-toggle-modal-button`,`cim-${e}-component`),onClick:o,children:[w.jsx(zT,{}),"Show modal"]})},WM=({isWidgetStandalone:e})=>{var g;const{globalClassName:t,entryMessage:n,resetConversationMessage:r}=at(),{askCimPrompts:o,messages:a}=er(),{isLoading:u,handleSuggestion:c}=Rr(),d=U.useMemo(()=>{const T=typeof n=="string"?n:"Hi! I'm your Cimulate Co-Pilot. Ask me anything — I can help you find products, compare items, discover trends, and more!";return a.some(_=>_.name==="conversation_reset")&&r||T},[a,n,r]),f=((g=o.message)==null?void 0:g.suggestions)||[],p=(T,y)=>()=>{c(T,y)};return w.jsxs("div",{className:W(t,`${j}-ask-cim-entry-message`,`${j}-message-group`,e?"standalone":"embedded"),children:[w.jsx("p",{className:W(t,`${j}-ask-cim-entry-text`),children:d}),!!(f!=null&&f.length)&&w.jsx("div",{className:W(t,`${j}-ask-cim-suggestions-container`,`${j}-suggestion-container`,e?"standalone":"embedded"),children:f.map(T=>{var y;return w.jsx(bl,{disabled:u,className:W(t,`${j}-ask-cim-suggestion-button`,`${j}-suggestion-button`,e?"standalone":"embedded"),onClick:p(T,((y=o.message)==null?void 0:y.eventSourceId)||""),children:T.displayText},T.displayText)})})]})},XM=({isWidgetStandalone:e,product:t})=>{const{configModule:n,globalClassName:r,openLinksInNewTab:o}=at();if(!n)return null;const a=n.getName(t),u=n.getBrand(t),c=n.getPriceDisplay(t),d=n.getRelativePdp(t),f=n.getPdp(t),p=n.getImage(t),g=d&&typeof d=="string"?new URL(d,window.location.origin).href:f;return w.jsxs("div",{className:W(r,`${j}-product-tile`,{embedded:!e,standalone:e}),children:[g?w.jsx("a",{href:`${g}`,target:o?"_blank":"_self",rel:"noopener noreferrer","aria-label":`Go to product page for ${a}`,children:w.jsx("img",{className:W(r,`${j}-product-tile-image`,{embedded:!e,standalone:e}),src:`${p}`,alt:`${a}`,loading:"lazy"})}):w.jsx("img",{className:W(r,`${j}-product-tile-image`,{embedded:!e,standalone:e}),src:`${p}`,alt:`${a}`,loading:"lazy"}),w.jsxs("div",{className:W(r,`${j}-product-tile-details`,{embedded:!e,standalone:e}),children:[w.jsxs("div",{className:W(r,`${j}-product-tile-content`),children:[u&&w.jsx("p",{className:`${j}-product-tile-brand`,children:u}),g?w.jsxs("a",{"aria-label":`Go to product page for ${a}`,className:W(r,`${j}-product-tile-pdp`),href:`${g}`,target:o?"_blank":"_self",rel:"noopener noreferrer",children:[a," ",w.jsx("span",{className:W(r,`${j}-product-tile-pdp-arrow`),children:"→"})]}):w.jsx("p",{className:W(r,`${j}-product-tile-name`),title:a,children:a})]}),w.jsx("div",{className:W(r,`${j}-product-tile-footer`),children:w.jsx("p",{className:W(r,`${j}-product-tile-price`),children:c})})]})]})},KM=({isWidgetStandalone:e,message:t})=>{const{configModule:n,globalClassName:r}=at(),o=t;return n?w.jsxs("div",{className:W(r,`${j}-display-products`),children:[w.jsx("p",{children:o.message}),o.products&&o.products.length>0&&w.jsx(wM,{globalClassName:r,spacing:"0.5rem",ariaLabel:"Recommended products",children:o.products.map(a=>{const u=n.getPid(a);return w.jsx(XM,{isWidgetStandalone:e,product:a},`${u}`)})})]}):null},QM=({globalClassName:e,message:t,isWidgetStandalone:n})=>w.jsx("div",{className:W(e,`${j}-error-message`,{standalone:n,embedded:!n}),children:w.jsxs("p",{className:W(e,`${j}-error-message-text`,{standalone:n,embedded:!n}),children:[w.jsx(vk,{})," ",t.message||"An error occurred while processing your request."]})}),JM=({globalClassName:e,entryType:t,message:n,isWidgetStandalone:r,handleSuggestionClick:o})=>{var _;const{isLoading:a}=Rr(),{messages:u}=er(),c=u.find(S=>S.id===n.eventSourceId),d=!!c,f=((_=c==null?void 0:c.name)==null?void 0:_.replace("_suggestions",""))||"",p=d?pC(f):null,T=a||!d||!(d&&(p===t||t==="ask_cim")),y=S=>{const k=n.suggestions.find(v=>v.displayText===S);k&&o(k,n.eventSourceId||n.id)};return w.jsxs("div",{className:W(e,`${j}-follow-up`),children:[w.jsx("p",{className:W(e,`${j}-text`),children:n.message}),w.jsx(YM,{suggestions:n.suggestions.map(S=>S.displayText),disabled:T,isWidgetStandalone:r,onSuggestionClick:y,globalClassName:e})]})};function m_(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function ZM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function e8(e,t,n){const o=Nl((n||{}).ignore||[]),a=t8(t);let u=-1;for(;++u<a.length;)zE(e,"text",c);function c(f,p){let g=-1,T;for(;++g<p.length;){const y=p[g],_=T?T.children:void 0;if(o(y,_?_.indexOf(y):void 0,T))return;T=y}if(T)return d(f,p)}function d(f,p){const g=p[p.length-1],T=a[u][0],y=a[u][1];let _=0;const k=g.children.indexOf(f);let v=!1,N=[];T.lastIndex=0;let C=T.exec(f.value);for(;C;){const M=C.index,V={index:C.index,input:C.input,stack:[...p,f]};let D=y(...C,V);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?T.lastIndex=M+1:(_!==M&&N.push({type:"text",value:f.value.slice(_,M)}),Array.isArray(D)?N.push(...D):D&&N.push(D),_=M+C[0].length,v=!0),!T.global)break;C=T.exec(f.value)}return v?(_<f.value.length&&N.push({type:"text",value:f.value.slice(_)}),g.children.splice(k,1,...N)):N=[f],k+N.length}}function t8(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([n8(o[0]),r8(o[1])])}return t}function n8(e){return typeof e=="string"?new RegExp(ZM(e),"g"):e}function r8(e){return typeof e=="function"?e:function(){return e}}const Ep="phrasing",yp=["autolink","link","image","label"];function i8(){return{transforms:[d8],enter:{literalAutolink:s8,literalAutolinkEmail:bp,literalAutolinkHttp:bp,literalAutolinkWww:bp},exit:{literalAutolink:c8,literalAutolinkEmail:l8,literalAutolinkHttp:a8,literalAutolinkWww:u8}}}function o8(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ep,notInConstruct:yp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ep,notInConstruct:yp},{character:":",before:"[ps]",after:"\\/",inConstruct:Ep,notInConstruct:yp}]}}function s8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function bp(e){this.config.enter.autolinkProtocol.call(this,e)}function a8(e){this.config.exit.autolinkProtocol.call(this,e)}function u8(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function l8(e){this.config.exit.autolinkEmail.call(this,e)}function c8(e){this.exit(e)}function d8(e){e8(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,f8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),h8]],{ignore:["link","linkReference"]})}function f8(e,t,n,r,o){let a="";if(!g_(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!p8(n)))return!1;const u=m8(n+r);if(!u[0])return!1;const c={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[c,{type:"text",value:u[1]}]:c}function h8(e,t,n,r){return!g_(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function p8(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function m8(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=m_(e,"(");let a=m_(e,")");for(;r!==-1&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function g_(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ao(n)||xl(n))&&(!t||n!==47)}E_.peek=w8;function g8(){this.buffer()}function E8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function y8(){this.buffer()}function b8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function T8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Er(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _8(e){this.exit(e)}function S8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Er(this.sliceSerialize(e)).toLowerCase(),n.label=t}function x8(e){this.exit(e)}function w8(){return"["}function E_(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const u=n.enter("footnoteReference"),c=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),c(),u(),a+=o.move("]"),a}function C8(){return{enter:{gfmFootnoteCallString:g8,gfmFootnoteCall:E8,gfmFootnoteDefinitionLabelString:y8,gfmFootnoteDefinition:b8},exit:{gfmFootnoteCallString:T8,gfmFootnoteCall:_8,gfmFootnoteDefinitionLabelString:S8,gfmFootnoteDefinition:x8}}}function A8(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:E_},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,u){const c=a.createTracker(u);let d=c.move("[^");const f=a.enter("footnoteDefinition"),p=a.enter("label");return d+=c.move(a.safe(a.associationId(r),{before:d,after:"]"})),p(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
32
32
  `:" ")+a.indentLines(a.containerFlow(r,c.current()),t?y_:v8))),f(),d}}function v8(e,t,n){return t===0?e:y_(e,t,n)}function y_(e,t,n){return(n?"":" ")+e}const k8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];b_.peek=R8;function P8(){return{canContainEols:["delete"],enter:{strikethrough:O8},exit:{strikethrough:I8}}}function N8(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:k8}],handlers:{delete:b_}}}function O8(e){this.enter({type:"delete",children:[]},e)}function I8(e){this.exit(e)}function b_(e,t,n,r){const o=n.createTracker(r),a=n.enter("strikethrough");let u=o.move("~~");return u+=n.containerPhrasing(e,me(F({},o.current()),{before:u,after:"~"})),u+=o.move("~~"),a(),u}function R8(){return"~"}function L8(e){return e.length}function D8(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||L8,a=[],u=[],c=[],d=[];let f=0,p=-1;for(;++p<e.length;){const S=[],k=[];let v=-1;for(e[p].length>f&&(f=e[p].length);++v<e[p].length;){const N=M8(e[p][v]);if(n.alignDelimiters!==!1){const C=o(N);k[v]=C,(d[v]===void 0||C>d[v])&&(d[v]=C)}S.push(N)}u[p]=S,c[p]=k}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<f;)a[g]=T_(r[g]);else{const S=T_(r);for(;++g<f;)a[g]=S}g=-1;const T=[],y=[];for(;++g<f;){const S=a[g];let k="",v="";S===99?(k=":",v=":"):S===108?k=":":S===114&&(v=":");let N=n.alignDelimiters===!1?1:Math.max(1,d[g]-k.length-v.length);const C=k+"-".repeat(N)+v;n.alignDelimiters!==!1&&(N=k.length+N+v.length,N>d[g]&&(d[g]=N),y[g]=N),T[g]=C}u.splice(1,0,T),c.splice(1,0,y),p=-1;const _=[];for(;++p<u.length;){const S=u[p],k=c[p];g=-1;const v=[];for(;++g<f;){const N=S[g]||"";let C="",M="";if(n.alignDelimiters!==!1){const V=d[g]-(k[g]||0),D=a[g];D===114?C=" ".repeat(V):D===99?V%2?(C=" ".repeat(V/2+.5),M=" ".repeat(V/2-.5)):(C=" ".repeat(V/2),M=C):M=" ".repeat(V)}n.delimiterStart!==!1&&!g&&v.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&N==="")&&(n.delimiterStart!==!1||g)&&v.push(" "),n.alignDelimiters!==!1&&v.push(C),v.push(N),n.alignDelimiters!==!1&&v.push(M),n.padding!==!1&&v.push(" "),(n.delimiterEnd!==!1||g!==f-1)&&v.push("|")}_.push(n.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return _.join(`
33
33
  `)}function M8(e){return e==null?"":String(e)}function T_(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function F8(e,t,n,r){const o=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const u=n.indentLines(n.containerFlow(e,a.current()),B8);return o(),u}function B8(e,t,n){return">"+(n?"":" ")+e}function U8(e,t){return __(e,t.inConstruct,!0)&&!__(e,t.notInConstruct,!1)}function __(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function S_(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
34
34
  `&&U8(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\