@opencx/widget-react 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +5 -0
  2. package/dist/WidgetPopoverAnchor.d.ts +2 -0
  3. package/dist/WidgetPopoverContent.d.ts +3 -0
  4. package/dist/WidgetPopoverTrigger.d.ts +3 -0
  5. package/dist/components/AgentOrBotAvatar.d.ts +6 -0
  6. package/dist/components/AttachmentPreview.d.ts +7 -0
  7. package/dist/components/BotOrAgentMessage.d.ts +7 -0
  8. package/dist/components/BotOrAgentMessageGroup.d.ts +7 -0
  9. package/dist/components/Header.d.ts +3 -0
  10. package/dist/components/MightSolveUserIssueSuggestedReplies.d.ts +2 -0
  11. package/dist/components/PoweredByOpen.d.ts +4 -0
  12. package/dist/components/SuggestedReplyButton.d.ts +5 -0
  13. package/dist/components/UserMessage.d.ts +8 -0
  14. package/dist/components/UserMessageGroup.d.ts +5 -0
  15. package/dist/components/custom-components/BotOrAgentTextResponse.component.d.ts +16 -0
  16. package/dist/components/custom-components/Fallback.component.d.ts +6 -0
  17. package/dist/components/custom-components/Handoff.component.d.ts +3 -0
  18. package/dist/components/custom-components/Loading.component.d.ts +6 -0
  19. package/dist/components/lib/DynamicIcon.d.ts +6 -0
  20. package/dist/components/lib/LoadingSpinner.d.ts +4 -0
  21. package/dist/components/lib/MotionDiv.d.ts +19 -0
  22. package/dist/components/lib/avatar.d.ts +6 -0
  23. package/dist/components/lib/button.d.ts +11 -0
  24. package/dist/components/lib/dialog.d.ts +24 -0
  25. package/dist/components/lib/dropdown-menu.d.ts +27 -0
  26. package/dist/components/lib/input.d.ts +4 -0
  27. package/dist/components/lib/popover.d.ts +8 -0
  28. package/dist/components/lib/skeleton.d.ts +3 -0
  29. package/dist/components/lib/switch.d.ts +4 -0
  30. package/dist/components/lib/tooltip.d.ts +10 -0
  31. package/dist/components/lib/utils/cn.d.ts +2 -0
  32. package/dist/components/lib/widget-portal.d.ts +9 -0
  33. package/dist/components/lib/wobble.d.ts +26 -0
  34. package/dist/components/markdown.d.ts +3 -0
  35. package/dist/components/svg/ChatBubbleSvg.d.ts +5 -0
  36. package/dist/components/svg/OpenLogoSvg.d.ts +4 -0
  37. package/dist/hooks/useCanvas.d.ts +3 -0
  38. package/dist/hooks/useIsSmallScreen.d.ts +3 -0
  39. package/dist/hooks/useLocale.d.ts +6 -0
  40. package/dist/hooks/useSetWidgetSize.d.ts +8 -0
  41. package/dist/hooks/useTheme.d.ts +62 -0
  42. package/dist/hooks/useWidgetContentHeight.d.ts +3 -0
  43. package/dist/index.cjs +51 -0
  44. package/dist/index.cjs.map +1 -0
  45. package/dist/index.d.ts +9 -0
  46. package/dist/index.js +2778 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/screens/chat/ChatCanvas.d.ts +2 -0
  49. package/dist/screens/chat/ChatFooter.d.ts +2 -0
  50. package/dist/screens/chat/ChatMain.d.ts +2 -0
  51. package/dist/screens/chat/index.d.ts +2 -0
  52. package/dist/screens/index.d.ts +2 -0
  53. package/dist/screens/sessions/index.d.ts +2 -0
  54. package/dist/screens/welcome/index.d.ts +2 -0
  55. package/dist/translation/ar.locale.d.ts +2 -0
  56. package/dist/translation/de.locale.d.ts +2 -0
  57. package/dist/translation/en.locale.d.ts +2 -0
  58. package/dist/translation/es.locale.d.ts +2 -0
  59. package/dist/translation/fr.locale.d.ts +2 -0
  60. package/dist/translation/index.d.ts +16 -0
  61. package/dist/translation/nl.locale.d.ts +2 -0
  62. package/dist/translation/pt.locale.d.ts +2 -0
  63. package/dist/translation/tr.locale.d.ts +2 -0
  64. package/dist/translation/translation.types.d.ts +4 -0
  65. package/dist/utils/data-component.d.ts +7 -0
  66. package/dist/utils/group-messages-by-type.d.ts +5 -0
  67. package/dist-embed/script.js +365 -0
  68. package/dist-embed/script.js.map +1 -0
  69. package/package.json +75 -0
@@ -0,0 +1,365 @@
1
+ (function(){"use strict";function p4(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Fi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m4(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var zy={exports:{}},Bc={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var g4=Symbol.for("react.transitional.element"),b4=Symbol.for("react.fragment");function jy(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:g4,type:e,key:r,ref:t!==void 0?t:null,props:n}}Bc.Fragment=b4,Bc.jsx=jy,Bc.jsxs=jy,zy.exports=Bc;var x=zy.exports,Fy={exports:{}},Ae={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var ip=Symbol.for("react.transitional.element"),y4=Symbol.for("react.portal"),v4=Symbol.for("react.fragment"),x4=Symbol.for("react.strict_mode"),E4=Symbol.for("react.profiler"),T4=Symbol.for("react.consumer"),w4=Symbol.for("react.context"),_4=Symbol.for("react.forward_ref"),S4=Symbol.for("react.suspense"),A4=Symbol.for("react.memo"),Hy=Symbol.for("react.lazy"),Vy=Symbol.iterator;function C4(e){return e===null||typeof e!="object"?null:(e=Vy&&e[Vy]||e["@@iterator"],typeof e=="function"?e:null)}var qy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yy=Object.assign,Gy={};function Ds(e,t,n){this.props=e,this.context=t,this.refs=Gy,this.updater=n||qy}Ds.prototype.isReactComponent={},Ds.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Ds.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $y(){}$y.prototype=Ds.prototype;function ap(e,t,n){this.props=e,this.context=t,this.refs=Gy,this.updater=n||qy}var sp=ap.prototype=new $y;sp.constructor=ap,Yy(sp,Ds.prototype),sp.isPureReactComponent=!0;var Xy=Array.isArray,pt={H:null,A:null,T:null,S:null,V:null},Ky=Object.prototype.hasOwnProperty;function op(e,t,n,r,i,a){return n=a.ref,{$$typeof:ip,type:e,key:t,ref:n!==void 0?n:null,props:a}}function k4(e,t){return op(e.type,t,void 0,void 0,void 0,e.props)}function lp(e){return typeof e=="object"&&e!==null&&e.$$typeof===ip}function O4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wy=/\/+/g;function up(e,t){return typeof e=="object"&&e!==null&&e.key!=null?O4(""+e.key):t.toString(36)}function Qy(){}function R4(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Qy,Qy):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ms(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ip:case y4:s=!0;break;case Hy:return s=e._init,Ms(s(e._payload),t,n,r,i)}}if(s)return i=i(e),s=r===""?"."+up(e,0):r,Xy(i)?(n="",s!=null&&(n=s.replace(Wy,"$&/")+"/"),Ms(i,t,n,"",function(u){return u})):i!=null&&(lp(i)&&(i=k4(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(Wy,"$&/")+"/")+s)),t.push(i)),1;s=0;var o=r===""?".":r+":";if(Xy(e))for(var l=0;l<e.length;l++)r=e[l],a=o+up(r,l),s+=Ms(r,t,n,a,i);else if(l=C4(e),typeof l=="function")for(e=l.call(e),l=0;!(r=e.next()).done;)r=r.value,a=o+up(r,l++),s+=Ms(r,t,n,a,i);else if(a==="object"){if(typeof e.then=="function")return Ms(R4(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function Uc(e,t,n){if(e==null)return e;var r=[],i=0;return Ms(e,r,"","",function(a){return t.call(n,a,i++)}),r}function N4(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Zy=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function D4(){}Ae.Children={map:Uc,forEach:function(e,t,n){Uc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Uc(e,function(){t++}),t},toArray:function(e){return Uc(e,function(t){return t})||[]},only:function(e){if(!lp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ae.Component=Ds,Ae.Fragment=v4,Ae.Profiler=E4,Ae.PureComponent=ap,Ae.StrictMode=x4,Ae.Suspense=S4,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=pt,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(e){return pt.H.useMemoCache(e)}},Ae.cache=function(e){return function(){return e.apply(null,arguments)}},Ae.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=Yy({},e.props),i=e.key,a=void 0;if(t!=null)for(s in t.ref!==void 0&&(a=void 0),t.key!==void 0&&(i=""+t.key),t)!Ky.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(r[s]=t[s]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];r.children=o}return op(e.type,i,void 0,void 0,a,r)},Ae.createContext=function(e){return e={$$typeof:w4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:T4,_context:e},e},Ae.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=""+t.key),t)Ky.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];i.children=o}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return op(e,a,void 0,void 0,null,i)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(e){return{$$typeof:_4,render:e}},Ae.isValidElement=lp,Ae.lazy=function(e){return{$$typeof:Hy,_payload:{_status:-1,_result:e},_init:N4}},Ae.memo=function(e,t){return{$$typeof:A4,type:e,compare:t===void 0?null:t}},Ae.startTransition=function(e){var t=pt.T,n={};pt.T=n;try{var r=e(),i=pt.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(D4,Zy)}catch(a){Zy(a)}finally{pt.T=t}},Ae.unstable_useCacheRefresh=function(){return pt.H.useCacheRefresh()},Ae.use=function(e){return pt.H.use(e)},Ae.useActionState=function(e,t,n){return pt.H.useActionState(e,t,n)},Ae.useCallback=function(e,t){return pt.H.useCallback(e,t)},Ae.useContext=function(e){return pt.H.useContext(e)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(e,t){return pt.H.useDeferredValue(e,t)},Ae.useEffect=function(e,t,n){var r=pt.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},Ae.useId=function(){return pt.H.useId()},Ae.useImperativeHandle=function(e,t,n){return pt.H.useImperativeHandle(e,t,n)},Ae.useInsertionEffect=function(e,t){return pt.H.useInsertionEffect(e,t)},Ae.useLayoutEffect=function(e,t){return pt.H.useLayoutEffect(e,t)},Ae.useMemo=function(e,t){return pt.H.useMemo(e,t)},Ae.useOptimistic=function(e,t){return pt.H.useOptimistic(e,t)},Ae.useReducer=function(e,t,n){return pt.H.useReducer(e,t,n)},Ae.useRef=function(e){return pt.H.useRef(e)},Ae.useState=function(e){return pt.H.useState(e)},Ae.useSyncExternalStore=function(e,t,n){return pt.H.useSyncExternalStore(e,t,n)},Ae.useTransition=function(){return pt.H.useTransition()},Ae.version="19.1.1",Fy.exports=Ae;var E=Fy.exports;const Un=vl(E),Jy=p4({__proto__:null,default:Un},[E]);var ev={exports:{}},zc={},tv={exports:{}},nv={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(H,V){var j=H.length;H.push(V);e:for(;0<j;){var te=j-1>>>1,O=H[te];if(0<i(O,V))H[te]=V,H[j]=O,j=te;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var V=H[0],j=H.pop();if(j!==V){H[0]=j;e:for(var te=0,O=H.length,he=O>>>1;te<he;){var je=2*(te+1)-1,M=H[je],Le=je+1,pe=H[Le];if(0>i(M,j))Le<O&&0>i(pe,M)?(H[te]=pe,H[Le]=j,te=Le):(H[te]=M,H[je]=j,te=je);else if(Le<O&&0>i(pe,j))H[te]=pe,H[Le]=j,te=Le;else break e}}return V}function i(H,V){var j=H.sortIndex-V.sortIndex;return j!==0?j:H.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,b=!1,T=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function w(H){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=H)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function _(H){if(b=!1,w(H),!g)if(n(l)!==null)g=!0,A||(A=!0,F());else{var V=n(u);V!==null&&W(_,V.startTime-H)}}var A=!1,D=-1,L=5,U=-1;function R(){return T?!0:!(e.unstable_now()-U<L)}function q(){if(T=!1,A){var H=e.unstable_now();U=H;var V=!0;try{e:{g=!1,b&&(b=!1,y(D),D=-1),h=!0;var j=d;try{t:{for(w(H),f=n(l);f!==null&&!(f.expirationTime>H&&R());){var te=f.callback;if(typeof te=="function"){f.callback=null,d=f.priorityLevel;var O=te(f.expirationTime<=H);if(H=e.unstable_now(),typeof O=="function"){f.callback=O,w(H),V=!0;break t}f===n(l)&&r(l),w(H)}else r(l);f=n(l)}if(f!==null)V=!0;else{var he=n(u);he!==null&&W(_,he.startTime-H),V=!1}}break e}finally{f=null,d=j,h=!1}V=void 0}}finally{V?F():A=!1}}}var F;if(typeof v=="function")F=function(){v(q)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,K=ne.port2;ne.port1.onmessage=q,F=function(){K.postMessage(null)}}else F=function(){m(q,0)};function W(H,V){D=m(function(){H(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(H){switch(d){case 1:case 2:case 3:var V=3;break;default:V=d}var j=d;d=V;try{return H()}finally{d=j}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(H,V){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var j=d;d=H;try{return V()}finally{d=j}},e.unstable_scheduleCallback=function(H,V,j){var te=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?te+j:te):j=te,H){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=j+O,H={id:c++,callback:V,priorityLevel:H,startTime:j,expirationTime:O,sortIndex:-1},j>te?(H.sortIndex=j,t(u,H),n(l)===null&&H===n(u)&&(b?(y(D),D=-1):b=!0,W(_,j-te))):(H.sortIndex=O,t(l,H),g||h||(g=!0,A||(A=!0,F()))),H},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(H){var V=d;return function(){var j=d;d=V;try{return H.apply(this,arguments)}finally{d=j}}}})(nv),tv.exports=nv;var M4=tv.exports,rv={exports:{}},xn={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var L4=E;function iv(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Hi(){}var En={d:{f:Hi,r:function(){throw Error(iv(522))},D:Hi,C:Hi,L:Hi,m:Hi,X:Hi,S:Hi,M:Hi},p:0,findDOMNode:null},I4=Symbol.for("react.portal");function P4(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I4,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var xl=L4.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function jc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=En,xn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(iv(299));return P4(e,t,null,n)},xn.flushSync=function(e){var t=xl.T,n=En.p;try{if(xl.T=null,En.p=2,e)return e()}finally{xl.T=t,En.p=n,En.d.f()}},xn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,En.d.C(e,t))},xn.prefetchDNS=function(e){typeof e=="string"&&En.d.D(e)},xn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=jc(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?En.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:a}):n==="script"&&En.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}},xn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=jc(t.as,t.crossOrigin);En.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&En.d.M(e)},xn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=jc(n,t.crossOrigin);En.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}},xn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=jc(t.as,t.crossOrigin);En.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else En.d.m(e)},xn.requestFormReset=function(e){En.d.r(e)},xn.unstable_batchedUpdates=function(e,t){return e(t)},xn.useFormState=function(e,t,n){return xl.H.useFormState(e,t,n)},xn.useFormStatus=function(){return xl.H.useHostTransitionStatus()},xn.version="19.1.1";function av(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(av)}catch(e){console.error(e)}}av(),rv.exports=xn;var Ls=rv.exports;/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var jt=M4,sv=E,B4=Ls;function Y(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ov(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function El(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function lv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function uv(e){if(El(e)!==e)throw Error(Y(188))}function U4(e){var t=e.alternate;if(!t){if(t=El(e),t===null)throw Error(Y(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return uv(i),e;if(a===r)return uv(i),t;a=a.sibling}throw Error(Y(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s)throw Error(Y(189))}}if(n.alternate!==r)throw Error(Y(190))}if(n.tag!==3)throw Error(Y(188));return n.stateNode.current===n?e:t}function cv(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=cv(e),t!==null)return t;e=e.sibling}return null}var ut=Object.assign,z4=Symbol.for("react.element"),Fc=Symbol.for("react.transitional.element"),Tl=Symbol.for("react.portal"),Is=Symbol.for("react.fragment"),fv=Symbol.for("react.strict_mode"),cp=Symbol.for("react.profiler"),j4=Symbol.for("react.provider"),dv=Symbol.for("react.consumer"),si=Symbol.for("react.context"),fp=Symbol.for("react.forward_ref"),dp=Symbol.for("react.suspense"),hp=Symbol.for("react.suspense_list"),pp=Symbol.for("react.memo"),Vi=Symbol.for("react.lazy"),mp=Symbol.for("react.activity"),F4=Symbol.for("react.memo_cache_sentinel"),hv=Symbol.iterator;function wl(e){return e===null||typeof e!="object"?null:(e=hv&&e[hv]||e["@@iterator"],typeof e=="function"?e:null)}var H4=Symbol.for("react.client.reference");function gp(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===H4?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Is:return"Fragment";case cp:return"Profiler";case fv:return"StrictMode";case dp:return"Suspense";case hp:return"SuspenseList";case mp:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Tl:return"Portal";case si:return(e.displayName||"Context")+".Provider";case dv:return(e._context.displayName||"Context")+".Consumer";case fp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pp:return t=e.displayName||null,t!==null?t:gp(e.type)||"Memo";case Vi:t=e._payload,e=e._init;try{return gp(e(t))}catch{}}return null}var _l=Array.isArray,ge=sv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ye=B4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ha={pending:!1,data:null,method:null,action:null},bp=[],Ps=-1;function Br(e){return{current:e}}function Xt(e){0>Ps||(e.current=bp[Ps],bp[Ps]=null,Ps--)}function mt(e,t){Ps++,bp[Ps]=e.current,e.current=t}var Ur=Br(null),Sl=Br(null),qi=Br(null),Hc=Br(null);function Vc(e,t){switch(mt(qi,t),mt(Sl,e),mt(Ur,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?LT(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=LT(t),e=IT(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Xt(Ur),mt(Ur,e)}function Bs(){Xt(Ur),Xt(Sl),Xt(qi)}function yp(e){e.memoizedState!==null&&mt(Hc,e);var t=Ur.current,n=IT(t,e.type);t!==n&&(mt(Sl,e),mt(Ur,n))}function qc(e){Sl.current===e&&(Xt(Ur),Xt(Sl)),Hc.current===e&&(Xt(Hc),yu._currentValue=Ha)}var vp=Object.prototype.hasOwnProperty,xp=jt.unstable_scheduleCallback,Ep=jt.unstable_cancelCallback,V4=jt.unstable_shouldYield,q4=jt.unstable_requestPaint,zr=jt.unstable_now,Y4=jt.unstable_getCurrentPriorityLevel,pv=jt.unstable_ImmediatePriority,mv=jt.unstable_UserBlockingPriority,Yc=jt.unstable_NormalPriority,G4=jt.unstable_LowPriority,gv=jt.unstable_IdlePriority,$4=jt.log,X4=jt.unstable_setDisableYieldValue,Al=null,zn=null;function Yi(e){if(typeof $4=="function"&&X4(e),zn&&typeof zn.setStrictMode=="function")try{zn.setStrictMode(Al,e)}catch{}}var jn=Math.clz32?Math.clz32:Q4,K4=Math.log,W4=Math.LN2;function Q4(e){return e>>>=0,e===0?32:31-(K4(e)/W4|0)|0}var Gc=256,$c=4194304;function Va(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xc(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~a,r!==0?i=Va(r):(s&=o,s!==0?i=Va(s):n||(n=o&~e,n!==0&&(i=Va(n))))):(o=r&~a,o!==0?i=Va(o):s!==0?i=Va(s):n||(n=r&~e,n!==0&&(i=Va(n)))),i===0?0:t!==0&&t!==i&&!(t&a)&&(a=i&-i,n=t&-t,a>=n||a===32&&(n&4194048)!==0)?t:i}function Cl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Z4(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bv(){var e=Gc;return Gc<<=1,!(Gc&4194048)&&(Gc=256),e}function yv(){var e=$c;return $c<<=1,!($c&62914560)&&($c=4194304),e}function Tp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function J4(e,t,n,r,i,a){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-jn(n),f=1<<c;o[c]=0,l[c]=-1;var d=u[c];if(d!==null)for(u[c]=null,c=0;c<d.length;c++){var h=d[c];h!==null&&(h.lane&=-536870913)}n&=~f}r!==0&&vv(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(s&~t))}function vv(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-jn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&4194090}function xv(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function wp(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function _p(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ev(){var e=Ye.p;return e!==0?e:(e=window.event,e===void 0?32:e2(e.type))}function eN(e,t){var n=Ye.p;try{return Ye.p=e,t()}finally{Ye.p=n}}var Gi=Math.random().toString(36).slice(2),cn="__reactFiber$"+Gi,Cn="__reactProps$"+Gi,Us="__reactContainer$"+Gi,Sp="__reactEvents$"+Gi,tN="__reactListeners$"+Gi,nN="__reactHandles$"+Gi,Tv="__reactResources$"+Gi,Ol="__reactMarker$"+Gi;function Ap(e){delete e[cn],delete e[Cn],delete e[Sp],delete e[tN],delete e[nN]}function zs(e){var t=e[cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Us]||n[cn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zT(e);e!==null;){if(n=e[cn])return n;e=zT(e)}return t}e=n,n=e.parentNode}return null}function js(e){if(e=e[cn]||e[Us]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Rl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(Y(33))}function Fs(e){var t=e[Tv];return t||(t=e[Tv]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Kt(e){e[Ol]=!0}var wv=new Set,_v={};function qa(e,t){Hs(e,t),Hs(e+"Capture",t)}function Hs(e,t){for(_v[e]=t,e=0;e<t.length;e++)wv.add(t[e])}var rN=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sv={},Av={};function iN(e){return vp.call(Av,e)?!0:vp.call(Sv,e)?!1:rN.test(e)?Av[e]=!0:(Sv[e]=!0,!1)}function Kc(e,t,n){if(iN(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Wc(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function oi(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}var Cp,Cv;function Vs(e){if(Cp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Cp=t&&t[1]||"",Cv=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Cp+e+Cv}var kp=!1;function Op(e,t){if(!e||kp)return"";kp=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(h){var d=h}Reflect.construct(e,[],f)}else{try{f.call()}catch(h){d=h}e.call(f.prototype)}}else{try{throw Error()}catch(h){d=h}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(h){if(h&&d&&typeof h.stack=="string")return[h.stack,d.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=r.DetermineComponentFrameRoot(),s=a[0],o=a[1];if(s&&o){var l=s.split(`
44
+ `),u=o.split(`
45
+ `);for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(r!==1||i!==1)do if(r--,i--,0>i||l[r]!==u[i]){var c=`
46
+ `+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=r&&0<=i);break}}}finally{kp=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Vs(n):""}function aN(e){switch(e.tag){case 26:case 27:case 5:return Vs(e.type);case 16:return Vs("Lazy");case 13:return Vs("Suspense");case 19:return Vs("SuspenseList");case 0:case 15:return Op(e.type,!1);case 11:return Op(e.type.render,!1);case 1:return Op(e.type,!0);case 31:return Vs("Activity");default:return""}}function kv(e){try{var t="";do t+=aN(e),e=e.return;while(e);return t}catch(n){return`
47
+ Error generating stack: `+n.message+`
48
+ `+n.stack}}function or(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ov(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sN(e){var t=Ov(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qc(e){e._valueTracker||(e._valueTracker=sN(e))}function Rv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ov(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var oN=/[\n"\\]/g;function lr(e){return e.replace(oN,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Rp(e,t,n,r,i,a,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+or(t)):e.value!==""+or(t)&&(e.value=""+or(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Np(e,s,or(t)):n!=null?Np(e,s,or(n)):r!=null&&e.removeAttribute("value"),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+or(o):e.removeAttribute("name")}function Nv(e,t,n,r,i,a,s,o){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null))return;n=n!=null?""+or(n):"",t=t!=null?""+or(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s)}function Np(e,t,n){t==="number"&&Zc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function qs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+or(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Dv(e,t,n){if(t!=null&&(t=""+or(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+or(n):""}function Mv(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(Y(92));if(_l(r)){if(1<r.length)throw Error(Y(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=or(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r)}function Ys(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var lN=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Lv(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||lN.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Iv(e,t,n){if(t!=null&&typeof t!="object")throw Error(Y(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Lv(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&Lv(e,a,t[a])}function Dp(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uN=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),cN=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jc(e){return cN.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Mp=null;function Lp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gs=null,$s=null;function Pv(e){var t=js(e);if(t&&(e=t.stateNode)){var n=e[Cn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Rp(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+lr(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Cn]||null;if(!i)throw Error(Y(90));Rp(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Rv(r)}break e;case"textarea":Dv(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&qs(e,!!n.multiple,t,!1)}}}var Ip=!1;function Bv(e,t,n){if(Ip)return e(t,n);Ip=!0;try{var r=e(t);return r}finally{if(Ip=!1,(Gs!==null||$s!==null)&&(zf(),Gs&&(t=Gs,e=$s,$s=Gs=null,Pv(t),e)))for(t=0;t<e.length;t++)Pv(e[t])}}function Nl(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Cn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Y(231,t,typeof n));return n}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pp=!1;if(li)try{var Dl={};Object.defineProperty(Dl,"passive",{get:function(){Pp=!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{Pp=!1}var $i=null,Bp=null,ef=null;function Uv(){if(ef)return ef;var e,t=Bp,n=t.length,r,i="value"in $i?$i.value:$i.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[a-r];r++);return ef=i.slice(e,1<r?1-r:void 0)}function tf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function nf(){return!0}function zv(){return!1}function kn(e){function t(n,r,i,a,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?nf:zv,this.isPropagationStopped=zv,this}return ut(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nf)},persist:function(){},isPersistent:nf}),t}var Ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rf=kn(Ya),Ml=ut({},Ya,{view:0,detail:0}),fN=kn(Ml),Up,zp,Ll,af=ut({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ll&&(Ll&&e.type==="mousemove"?(Up=e.screenX-Ll.screenX,zp=e.screenY-Ll.screenY):zp=Up=0,Ll=e),Up)},movementY:function(e){return"movementY"in e?e.movementY:zp}}),jv=kn(af),dN=ut({},af,{dataTransfer:0}),hN=kn(dN),pN=ut({},Ml,{relatedTarget:0}),jp=kn(pN),mN=ut({},Ya,{animationName:0,elapsedTime:0,pseudoElement:0}),gN=kn(mN),bN=ut({},Ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yN=kn(bN),vN=ut({},Ya,{data:0}),Fv=kn(vN),xN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EN={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"},TN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=TN[e])?!!t[e]:!1}function Fp(){return wN}var _N=ut({},Ml,{key:function(e){if(e.key){var t=xN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?EN[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fp,charCode:function(e){return e.type==="keypress"?tf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),SN=kn(_N),AN=ut({},af,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hv=kn(AN),CN=ut({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fp}),kN=kn(CN),ON=ut({},Ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),RN=kn(ON),NN=ut({},af,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),DN=kn(NN),MN=ut({},Ya,{newState:0,oldState:0}),LN=kn(MN),IN=[9,13,27,32],Hp=li&&"CompositionEvent"in window,Il=null;li&&"documentMode"in document&&(Il=document.documentMode);var PN=li&&"TextEvent"in window&&!Il,Vv=li&&(!Hp||Il&&8<Il&&11>=Il),qv=" ",Yv=!1;function Gv(e,t){switch(e){case"keyup":return IN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $v(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xs=!1;function BN(e,t){switch(e){case"compositionend":return $v(t);case"keypress":return t.which!==32?null:(Yv=!0,qv);case"textInput":return e=t.data,e===qv&&Yv?null:e;default:return null}}function UN(e,t){if(Xs)return e==="compositionend"||!Hp&&Gv(e,t)?(e=Uv(),ef=Bp=$i=null,Xs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vv&&t.locale!=="ko"?null:t.data;default:return null}}var zN={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 Xv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zN[e.type]:t==="textarea"}function Kv(e,t,n,r){Gs?$s?$s.push(r):$s=[r]:Gs=r,t=Yf(t,"onChange"),0<t.length&&(n=new rf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Pl=null,Bl=null;function jN(e){OT(e,0)}function sf(e){var t=Rl(e);if(Rv(t))return e}function Wv(e,t){if(e==="change")return t}var Qv=!1;if(li){var Vp;if(li){var qp="oninput"in document;if(!qp){var Zv=document.createElement("div");Zv.setAttribute("oninput","return;"),qp=typeof Zv.oninput=="function"}Vp=qp}else Vp=!1;Qv=Vp&&(!document.documentMode||9<document.documentMode)}function Jv(){Pl&&(Pl.detachEvent("onpropertychange",ex),Bl=Pl=null)}function ex(e){if(e.propertyName==="value"&&sf(Bl)){var t=[];Kv(t,Bl,e,Lp(e)),Bv(jN,t)}}function FN(e,t,n){e==="focusin"?(Jv(),Pl=t,Bl=n,Pl.attachEvent("onpropertychange",ex)):e==="focusout"&&Jv()}function HN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sf(Bl)}function VN(e,t){if(e==="click")return sf(t)}function qN(e,t){if(e==="input"||e==="change")return sf(t)}function YN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:YN;function Ul(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!vp.call(t,i)||!Fn(e[i],t[i]))return!1}return!0}function tx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nx(e,t){var n=tx(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tx(n)}}function rx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ix(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zc(e.document)}return t}function Yp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var GN=li&&"documentMode"in document&&11>=document.documentMode,Ks=null,Gp=null,zl=null,$p=!1;function ax(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$p||Ks==null||Ks!==Zc(r)||(r=Ks,"selectionStart"in r&&Yp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zl&&Ul(zl,r)||(zl=r,r=Yf(Gp,"onSelect"),0<r.length&&(t=new rf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ks)))}function Ga(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ws={animationend:Ga("Animation","AnimationEnd"),animationiteration:Ga("Animation","AnimationIteration"),animationstart:Ga("Animation","AnimationStart"),transitionrun:Ga("Transition","TransitionRun"),transitionstart:Ga("Transition","TransitionStart"),transitioncancel:Ga("Transition","TransitionCancel"),transitionend:Ga("Transition","TransitionEnd")},Xp={},sx={};li&&(sx=document.createElement("div").style,"AnimationEvent"in window||(delete Ws.animationend.animation,delete Ws.animationiteration.animation,delete Ws.animationstart.animation),"TransitionEvent"in window||delete Ws.transitionend.transition);function $a(e){if(Xp[e])return Xp[e];if(!Ws[e])return e;var t=Ws[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sx)return Xp[e]=t[n];return e}var ox=$a("animationend"),lx=$a("animationiteration"),ux=$a("animationstart"),$N=$a("transitionrun"),XN=$a("transitionstart"),KN=$a("transitioncancel"),cx=$a("transitionend"),fx=new Map,Kp="abort auxClick beforeToggle 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(" ");Kp.push("scrollEnd");function Sr(e,t){fx.set(e,t),qa(t,[e])}var dx=new WeakMap;function ur(e,t){if(typeof e=="object"&&e!==null){var n=dx.get(e);return n!==void 0?n:(t={value:e,source:t,stack:kv(t)},dx.set(e,t),t)}return{value:e,source:t,stack:kv(t)}}var cr=[],Qs=0,Wp=0;function of(){for(var e=Qs,t=Wp=Qs=0;t<e;){var n=cr[t];cr[t++]=null;var r=cr[t];cr[t++]=null;var i=cr[t];cr[t++]=null;var a=cr[t];if(cr[t++]=null,r!==null&&i!==null){var s=r.pending;s===null?i.next=i:(i.next=s.next,s.next=i),r.pending=i}a!==0&&hx(n,i,a)}}function lf(e,t,n,r){cr[Qs++]=e,cr[Qs++]=t,cr[Qs++]=n,cr[Qs++]=r,Wp|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Qp(e,t,n,r){return lf(e,t,n,r),uf(e)}function Zs(e,t){return lf(e,null,null,t),uf(e)}function hx(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-jn(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function uf(e){if(50<cu)throw cu=0,r0=null,Error(Y(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Js={};function WN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hn(e,t,n,r){return new WN(e,t,n,r)}function Zp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=Hn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function px(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cf(e,t,n,r,i,a){var s=0;if(r=e,typeof e=="function")Zp(e)&&(s=1);else if(typeof e=="string")s=ZD(e,n,Ur.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case mp:return e=Hn(31,n,t,i),e.elementType=mp,e.lanes=a,e;case Is:return Xa(n.children,i,a,t);case fv:s=8,i|=24;break;case cp:return e=Hn(12,n,t,i|2),e.elementType=cp,e.lanes=a,e;case dp:return e=Hn(13,n,t,i),e.elementType=dp,e.lanes=a,e;case hp:return e=Hn(19,n,t,i),e.elementType=hp,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j4:case si:s=10;break e;case dv:s=9;break e;case fp:s=11;break e;case pp:s=14;break e;case Vi:s=16,r=null;break e}s=29,n=Error(Y(130,e===null?"null":typeof e,"")),r=null}return t=Hn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Xa(e,t,n,r){return e=Hn(7,e,r,t),e.lanes=n,e}function Jp(e,t,n){return e=Hn(6,e,null,t),e.lanes=n,e}function em(e,t,n){return t=Hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var eo=[],to=0,ff=null,df=0,fr=[],dr=0,Ka=null,ci=1,fi="";function Wa(e,t){eo[to++]=df,eo[to++]=ff,ff=e,df=t}function mx(e,t,n){fr[dr++]=ci,fr[dr++]=fi,fr[dr++]=Ka,Ka=e;var r=ci;e=fi;var i=32-jn(r)-1;r&=~(1<<i),n+=1;var a=32-jn(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ci=1<<32-jn(t)+i|n<<i|r,fi=a+e}else ci=1<<a|n<<i|r,fi=e}function tm(e){e.return!==null&&(Wa(e,1),mx(e,1,0))}function nm(e){for(;e===ff;)ff=eo[--to],eo[to]=null,df=eo[--to],eo[to]=null;for(;e===Ka;)Ka=fr[--dr],fr[dr]=null,fi=fr[--dr],fr[dr]=null,ci=fr[--dr],fr[dr]=null}var Tn=null,wt=null,Ge=!1,Qa=null,jr=!1,rm=Error(Y(519));function Za(e){var t=Error(Y(418,""));throw Hl(ur(t,e)),rm}function gx(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[cn]=e,t[Cn]=r,n){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(n=0;n<du.length;n++)De(du[n],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Nv(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),Qc(t);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Mv(t,r.value,r.defaultValue,r.children),Qc(t)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||MT(t.textContent,n)?(r.popover!=null&&(De("beforetoggle",t),De("toggle",t)),r.onScroll!=null&&De("scroll",t),r.onScrollEnd!=null&&De("scrollend",t),r.onClick!=null&&(t.onclick=Gf),t=!0):t=!1,t||Za(e)}function bx(e){for(Tn=e.return;Tn;)switch(Tn.tag){case 5:case 13:jr=!1;return;case 27:case 3:jr=!0;return;default:Tn=Tn.return}}function jl(e){if(e!==Tn)return!1;if(!Ge)return bx(e),Ge=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||v0(e.type,e.memoizedProps)),n=!n),n&&wt&&Za(e),bx(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Y(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){wt=Cr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}wt=null}}else t===27?(t=wt,ua(e.type)?(e=w0,w0=null,wt=e):wt=t):wt=Tn?Cr(e.stateNode.nextSibling):null;return!0}function Fl(){wt=Tn=null,Ge=!1}function yx(){var e=Qa;return e!==null&&(Nn===null?Nn=e:Nn.push.apply(Nn,e),Qa=null),e}function Hl(e){Qa===null?Qa=[e]:Qa.push(e)}var im=Br(null),Ja=null,di=null;function Xi(e,t,n){mt(im,t._currentValue),t._currentValue=n}function hi(e){e._currentValue=im.current,Xt(im)}function am(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function sm(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var s=i.child;a=a.firstContext;e:for(;a!==null;){var o=a;a=i;for(var l=0;l<t.length;l++)if(o.context===t[l]){a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),am(a.return,n,e),r||(s=null);break e}a=o.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(Y(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),am(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Vl(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(Y(387));if(s=s.memoizedProps,s!==null){var o=i.type;Fn(i.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(i===Hc.current){if(s=i.alternate,s===null)throw Error(Y(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(yu):e=[yu])}i=i.return}e!==null&&sm(t,e,n,r),t.flags|=262144}function hf(e){for(e=e.firstContext;e!==null;){if(!Fn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function es(e){Ja=e,di=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function fn(e){return vx(Ja,e)}function pf(e,t){return Ja===null&&es(e),vx(e,t)}function vx(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},di===null){if(e===null)throw Error(Y(308));di=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else di=di.next=t;return n}var QN=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},ZN=jt.unstable_scheduleCallback,JN=jt.unstable_NormalPriority,Ft={$$typeof:si,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function om(){return{controller:new QN,data:new Map,refCount:0}}function ql(e){e.refCount--,e.refCount===0&&ZN(JN,function(){e.controller.abort()})}var Yl=null,lm=0,no=0,ro=null;function eD(e,t){if(Yl===null){var n=Yl=[];lm=0,no=c0(),ro={status:"pending",value:void 0,then:function(r){n.push(r)}}}return lm++,t.then(xx,xx),t}function xx(){if(--lm===0&&Yl!==null){ro!==null&&(ro.status="fulfilled");var e=Yl;Yl=null,no=0,ro=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tD(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var Ex=ge.S;ge.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&eD(e,t),Ex!==null&&Ex(e,t)};var ts=Br(null);function um(){var e=ts.current;return e!==null?e:at.pooledCache}function mf(e,t){t===null?mt(ts,ts.current):mt(ts,t.pool)}function Tx(){var e=um();return e===null?null:{parent:Ft._currentValue,pool:e}}var Gl=Error(Y(460)),wx=Error(Y(474)),gf=Error(Y(542)),cm={then:function(){}};function _x(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bf(){}function Sx(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(bf,bf),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cx(e),e;default:if(typeof t.status=="string")t.then(bf,bf);else{if(e=at,e!==null&&100<e.shellSuspendCounter)throw Error(Y(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cx(e),e}throw $l=t,Gl}}var $l=null;function Ax(){if($l===null)throw Error(Y(459));var e=$l;return $l=null,e}function Cx(e){if(e===Gl||e===gf)throw Error(Y(483))}var Ki=!1;function fm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ke&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=uf(e),hx(e,null,n),t}return lf(e,r,t,n),uf(e)}function Xl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xv(e,n)}}function hm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var pm=!1;function Kl(){if(pm){var e=ro;if(e!==null)throw e}}function Wl(e,t,n,r){pm=!1;var i=e.updateQueue;Ki=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?a=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;s=0,c=u=l=null,o=a;do{var d=o.lane&-536870913,h=d!==o.lane;if(h?(Ue&d)===d:(r&d)===d){d!==0&&d===no&&(pm=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,b=o;d=t;var T=n;switch(b.tag){case 1:if(g=b.payload,typeof g=="function"){f=g.call(T,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,d=typeof g=="function"?g.call(T,f,d):g,d==null)break e;f=ut({},f,d);break e;case 2:Ki=!0}}d=o.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=i.callbacks,h===null?i.callbacks=[d]:h.push(d))}else h={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,s|=d;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,a===null&&(i.shared.lanes=0),aa|=s,e.lanes=s,e.memoizedState=f}}function kx(e,t){if(typeof e!="function")throw Error(Y(191,e));e.call(t)}function Ox(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)kx(n[e],t)}var io=Br(null),yf=Br(0);function Rx(e,t){e=xi,mt(yf,e),mt(io,t),xi=e|t.baseLanes}function mm(){mt(yf,xi),mt(io,io.current)}function gm(){xi=yf.current,Xt(io),Xt(yf)}var Zi=0,Ce=null,Ze=null,Mt=null,vf=!1,ao=!1,ns=!1,xf=0,Ql=0,so=null,nD=0;function kt(){throw Error(Y(321))}function bm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fn(e[n],t[n]))return!1;return!0}function ym(e,t,n,r,i,a){return Zi=a,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ge.H=e===null||e.memoizedState===null?hE:pE,ns=!1,a=n(r,i),ns=!1,ao&&(a=Dx(t,n,r,i)),Nx(e),a}function Nx(e){ge.H=Af;var t=Ze!==null&&Ze.next!==null;if(Zi=0,Mt=Ze=Ce=null,vf=!1,Ql=0,so=null,t)throw Error(Y(300));e===null||Wt||(e=e.dependencies,e!==null&&hf(e)&&(Wt=!0))}function Dx(e,t,n,r){Ce=e;var i=0;do{if(ao&&(so=null),Ql=0,ao=!1,25<=i)throw Error(Y(301));if(i+=1,Mt=Ze=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}ge.H=uD,a=t(n,r)}while(ao);return a}function rD(){var e=ge.H,t=e.useState()[0];return t=typeof t.then=="function"?Zl(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(Ce.flags|=1024),t}function vm(){var e=xf!==0;return xf=0,e}function xm(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Em(e){if(vf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vf=!1}Zi=0,Mt=Ze=Ce=null,ao=!1,Ql=xf=0,so=null}function On(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Ce.memoizedState=Mt=e:Mt=Mt.next=e,Mt}function Lt(){if(Ze===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=Mt===null?Ce.memoizedState:Mt.next;if(t!==null)Mt=t,Ze=e;else{if(e===null)throw Ce.alternate===null?Error(Y(467)):Error(Y(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Mt===null?Ce.memoizedState=Mt=e:Mt=Mt.next=e}return Mt}function Tm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zl(e){var t=Ql;return Ql+=1,so===null&&(so=[]),e=Sx(so,e,t),t=Ce,(Mt===null?t.memoizedState:Mt.next)===null&&(t=t.alternate,ge.H=t===null||t.memoizedState===null?hE:pE),e}function Ef(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Zl(e);if(e.$$typeof===si)return fn(e)}throw Error(Y(438,String(e)))}function wm(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ce.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Tm(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=F4;return t.index++,n}function pi(e,t){return typeof t=="function"?t(e):t}function Tf(e){var t=Lt();return _m(t,Ze,e)}function _m(e,t,n){var r=e.queue;if(r===null)throw Error(Y(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var o=s=null,l=null,u=t,c=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(Ue&f)===f:(Zi&f)===f){var d=u.revertLane;if(d===0)l!==null&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===no&&(c=!0);else if((Zi&d)===d){u=u.next,d===no&&(c=!0);continue}else f={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=f,s=a):l=l.next=f,Ce.lanes|=d,aa|=d;f=u.action,ns&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else d={lane:f,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=d,s=a):l=l.next=d,Ce.lanes|=f,aa|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=o,!Fn(a,e.memoizedState)&&(Wt=!0,c&&(n=ro,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Sm(e){var t=Lt(),n=t.queue;if(n===null)throw Error(Y(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Fn(a,t.memoizedState)||(Wt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Mx(e,t,n){var r=Ce,i=Lt(),a=Ge;if(a){if(n===void 0)throw Error(Y(407));n=n()}else n=t();var s=!Fn((Ze||i).memoizedState,n);s&&(i.memoizedState=n,Wt=!0),i=i.queue;var o=Px.bind(null,r,i,e);if(Jl(2048,8,o,[e]),i.getSnapshot!==t||s||Mt!==null&&Mt.memoizedState.tag&1){if(r.flags|=2048,oo(9,wf(),Ix.bind(null,r,i,n,t),null),at===null)throw Error(Y(349));a||Zi&124||Lx(r,t,n)}return n}function Lx(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Tm(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ix(e,t,n,r){t.value=n,t.getSnapshot=r,Bx(t)&&Ux(e)}function Px(e,t,n){return n(function(){Bx(t)&&Ux(e)})}function Bx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fn(e,n)}catch{return!0}}function Ux(e){var t=Zs(e,2);t!==null&&$n(t,e,2)}function Am(e){var t=On();if(typeof e=="function"){var n=e;if(e=n(),ns){Yi(!0);try{n()}finally{Yi(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:e},t}function zx(e,t,n,r){return e.baseState=n,_m(e,Ze,typeof r=="function"?r:pi)}function iD(e,t,n,r,i){if(Sf(e))throw Error(Y(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){a.listeners.push(s)}};ge.T!==null?n(!0):a.isTransition=!1,r(a),n=t.pending,n===null?(a.next=t.pending=a,jx(t,a)):(a.next=n.next,t.pending=n.next=a)}}function jx(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=ge.T,s={};ge.T=s;try{var o=n(i,r),l=ge.S;l!==null&&l(s,o),Fx(e,t,o)}catch(u){Cm(e,t,u)}finally{ge.T=a}}else try{a=n(i,r),Fx(e,t,a)}catch(u){Cm(e,t,u)}}function Fx(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){Hx(e,t,r)},function(r){return Cm(e,t,r)}):Hx(e,t,n)}function Hx(e,t,n){t.status="fulfilled",t.value=n,Vx(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,jx(e,n)))}function Cm(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,Vx(t),t=t.next;while(t!==r)}e.action=null}function Vx(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qx(e,t){return t}function Yx(e,t){if(Ge){var n=at.formState;if(n!==null){e:{var r=Ce;if(Ge){if(wt){t:{for(var i=wt,a=jr;i.nodeType!==8;){if(!a){i=null;break t}if(i=Cr(i.nextSibling),i===null){i=null;break t}}a=i.data,i=a==="F!"||a==="F"?i:null}if(i){wt=Cr(i.nextSibling),r=i.data==="F!";break e}}Za(r)}r=!1}r&&(t=n[0])}}return n=On(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qx,lastRenderedState:t},n.queue=r,n=cE.bind(null,Ce,r),r.dispatch=n,r=Am(!1),a=Dm.bind(null,Ce,!1,r.queue),r=On(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=iD.bind(null,Ce,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Gx(e){var t=Lt();return $x(t,Ze,e)}function $x(e,t,n){if(t=_m(e,t,qx)[0],e=Tf(pi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Zl(t)}catch(s){throw s===Gl?gf:s}else r=t;t=Lt();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,oo(9,wf(),aD.bind(null,i,n),null)),[r,a,e]}function aD(e,t){e.action=t}function Xx(e){var t=Lt(),n=Ze;if(n!==null)return $x(t,n,e);Lt(),t=t.memoizedState,n=Lt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function oo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Tm(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function wf(){return{destroy:void 0,resource:void 0}}function Kx(){return Lt().memoizedState}function _f(e,t,n,r){var i=On();r=r===void 0?null:r,Ce.flags|=e,i.memoizedState=oo(1|t,wf(),n,r)}function Jl(e,t,n,r){var i=Lt();r=r===void 0?null:r;var a=i.memoizedState.inst;Ze!==null&&r!==null&&bm(r,Ze.memoizedState.deps)?i.memoizedState=oo(t,a,n,r):(Ce.flags|=e,i.memoizedState=oo(1|t,a,n,r))}function Wx(e,t){_f(8390656,8,e,t)}function Qx(e,t){Jl(2048,8,e,t)}function Zx(e,t){return Jl(4,2,e,t)}function Jx(e,t){return Jl(4,4,e,t)}function eE(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tE(e,t,n){n=n!=null?n.concat([e]):null,Jl(4,4,eE.bind(null,t,e),n)}function km(){}function nE(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&bm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rE(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&bm(t,r[1]))return r[0];if(r=e(),ns){Yi(!0);try{e()}finally{Yi(!1)}}return n.memoizedState=[r,t],r}function Om(e,t,n){return n===void 0||Zi&1073741824?e.memoizedState=t:(e.memoizedState=n,e=sT(),Ce.lanes|=e,aa|=e,n)}function iE(e,t,n,r){return Fn(n,t)?n:io.current!==null?(e=Om(e,n,r),Fn(e,t)||(Wt=!0),e):Zi&42?(e=sT(),Ce.lanes|=e,aa|=e,t):(Wt=!0,e.memoizedState=n)}function aE(e,t,n,r,i){var a=Ye.p;Ye.p=a!==0&&8>a?a:8;var s=ge.T,o={};ge.T=o,Dm(e,!1,t,n);try{var l=i(),u=ge.S;if(u!==null&&u(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=tD(l,r);eu(e,t,c,Gn(e))}else eu(e,t,r,Gn(e))}catch(f){eu(e,t,{then:function(){},status:"rejected",reason:f},Gn())}finally{Ye.p=a,ge.T=s}}function sD(){}function Rm(e,t,n,r){if(e.tag!==5)throw Error(Y(476));var i=sE(e).queue;aE(e,i,t,Ha,n===null?sD:function(){return oE(e),n(r)})}function sE(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ha,baseState:Ha,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:Ha},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function oE(e){var t=sE(e).next.queue;eu(e,t,{},Gn())}function Nm(){return fn(yu)}function lE(){return Lt().memoizedState}function uE(){return Lt().memoizedState}function oD(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Gn();e=Wi(n);var r=Qi(t,e,n);r!==null&&($n(r,t,n),Xl(r,t,n)),t={cache:om()},e.payload=t;return}t=t.return}}function lD(e,t,n){var r=Gn();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Sf(e)?fE(t,n):(n=Qp(e,t,n,r),n!==null&&($n(n,e,r),dE(n,t,r)))}function cE(e,t,n){var r=Gn();eu(e,t,n,r)}function eu(e,t,n,r){var i={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sf(e))fE(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Fn(o,s))return lf(e,t,i,0),at===null&&of(),!1}catch{}finally{}if(n=Qp(e,t,i,r),n!==null)return $n(n,e,r),dE(n,t,r),!0}return!1}function Dm(e,t,n,r){if(r={lane:2,revertLane:c0(),action:r,hasEagerState:!1,eagerState:null,next:null},Sf(e)){if(t)throw Error(Y(479))}else t=Qp(e,n,r,2),t!==null&&$n(t,e,2)}function Sf(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function fE(e,t){ao=vf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dE(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xv(e,n)}}var Af={readContext:fn,use:Ef,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt},hE={readContext:fn,use:Ef,useCallback:function(e,t){return On().memoizedState=[e,t===void 0?null:t],e},useContext:fn,useEffect:Wx,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,_f(4194308,4,eE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _f(4194308,4,e,t)},useInsertionEffect:function(e,t){_f(4,2,e,t)},useMemo:function(e,t){var n=On();t=t===void 0?null:t;var r=e();if(ns){Yi(!0);try{e()}finally{Yi(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=On();if(n!==void 0){var i=n(t);if(ns){Yi(!0);try{n(t)}finally{Yi(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=lD.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=On();return e={current:e},t.memoizedState=e},useState:function(e){e=Am(e);var t=e.queue,n=cE.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:km,useDeferredValue:function(e,t){var n=On();return Om(n,e,t)},useTransition:function(){var e=Am(!1);return e=aE.bind(null,Ce,e.queue,!0,!1),On().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ce,i=On();if(Ge){if(n===void 0)throw Error(Y(407));n=n()}else{if(n=t(),at===null)throw Error(Y(349));Ue&124||Lx(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Wx(Px.bind(null,r,a,e),[e]),r.flags|=2048,oo(9,wf(),Ix.bind(null,r,a,n,t),null),n},useId:function(){var e=On(),t=at.identifierPrefix;if(Ge){var n=fi,r=ci;n=(r&~(1<<32-jn(r)-1)).toString(32)+n,t="«"+t+"R"+n,n=xf++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=nD++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Nm,useFormState:Yx,useActionState:Yx,useOptimistic:function(e){var t=On();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Dm.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:wm,useCacheRefresh:function(){return On().memoizedState=oD.bind(null,Ce)}},pE={readContext:fn,use:Ef,useCallback:nE,useContext:fn,useEffect:Qx,useImperativeHandle:tE,useInsertionEffect:Zx,useLayoutEffect:Jx,useMemo:rE,useReducer:Tf,useRef:Kx,useState:function(){return Tf(pi)},useDebugValue:km,useDeferredValue:function(e,t){var n=Lt();return iE(n,Ze.memoizedState,e,t)},useTransition:function(){var e=Tf(pi)[0],t=Lt().memoizedState;return[typeof e=="boolean"?e:Zl(e),t]},useSyncExternalStore:Mx,useId:lE,useHostTransitionStatus:Nm,useFormState:Gx,useActionState:Gx,useOptimistic:function(e,t){var n=Lt();return zx(n,Ze,e,t)},useMemoCache:wm,useCacheRefresh:uE},uD={readContext:fn,use:Ef,useCallback:nE,useContext:fn,useEffect:Qx,useImperativeHandle:tE,useInsertionEffect:Zx,useLayoutEffect:Jx,useMemo:rE,useReducer:Sm,useRef:Kx,useState:function(){return Sm(pi)},useDebugValue:km,useDeferredValue:function(e,t){var n=Lt();return Ze===null?Om(n,e,t):iE(n,Ze.memoizedState,e,t)},useTransition:function(){var e=Sm(pi)[0],t=Lt().memoizedState;return[typeof e=="boolean"?e:Zl(e),t]},useSyncExternalStore:Mx,useId:lE,useHostTransitionStatus:Nm,useFormState:Xx,useActionState:Xx,useOptimistic:function(e,t){var n=Lt();return Ze!==null?zx(n,Ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:wm,useCacheRefresh:uE},lo=null,tu=0;function Cf(e){var t=tu;return tu+=1,lo===null&&(lo=[]),Sx(lo,e,t)}function nu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function kf(e,t){throw t.$$typeof===z4?Error(Y(525)):(e=Object.prototype.toString.call(t),Error(Y(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function mE(e){var t=e._init;return t(e._payload)}function gE(e){function t(m,y){if(e){var v=m.deletions;v===null?(m.deletions=[y],m.flags|=16):v.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m){for(var y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function i(m,y){return m=ui(m,y),m.index=0,m.sibling=null,m}function a(m,y,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<y?(m.flags|=67108866,y):v):(m.flags|=67108866,y)):(m.flags|=1048576,y)}function s(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,y,v,w){return y===null||y.tag!==6?(y=Jp(v,m.mode,w),y.return=m,y):(y=i(y,v),y.return=m,y)}function l(m,y,v,w){var _=v.type;return _===Is?c(m,y,v.props.children,w,v.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Vi&&mE(_)===y.type)?(y=i(y,v.props),nu(y,v),y.return=m,y):(y=cf(v.type,v.key,v.props,null,m.mode,w),nu(y,v),y.return=m,y)}function u(m,y,v,w){return y===null||y.tag!==4||y.stateNode.containerInfo!==v.containerInfo||y.stateNode.implementation!==v.implementation?(y=em(v,m.mode,w),y.return=m,y):(y=i(y,v.children||[]),y.return=m,y)}function c(m,y,v,w,_){return y===null||y.tag!==7?(y=Xa(v,m.mode,w,_),y.return=m,y):(y=i(y,v),y.return=m,y)}function f(m,y,v){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Jp(""+y,m.mode,v),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Fc:return v=cf(y.type,y.key,y.props,null,m.mode,v),nu(v,y),v.return=m,v;case Tl:return y=em(y,m.mode,v),y.return=m,y;case Vi:var w=y._init;return y=w(y._payload),f(m,y,v)}if(_l(y)||wl(y))return y=Xa(y,m.mode,v,null),y.return=m,y;if(typeof y.then=="function")return f(m,Cf(y),v);if(y.$$typeof===si)return f(m,pf(m,y),v);kf(m,y)}return null}function d(m,y,v,w){var _=y!==null?y.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return _!==null?null:o(m,y,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Fc:return v.key===_?l(m,y,v,w):null;case Tl:return v.key===_?u(m,y,v,w):null;case Vi:return _=v._init,v=_(v._payload),d(m,y,v,w)}if(_l(v)||wl(v))return _!==null?null:c(m,y,v,w,null);if(typeof v.then=="function")return d(m,y,Cf(v),w);if(v.$$typeof===si)return d(m,y,pf(m,v),w);kf(m,v)}return null}function h(m,y,v,w,_){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return m=m.get(v)||null,o(y,m,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Fc:return m=m.get(w.key===null?v:w.key)||null,l(y,m,w,_);case Tl:return m=m.get(w.key===null?v:w.key)||null,u(y,m,w,_);case Vi:var A=w._init;return w=A(w._payload),h(m,y,v,w,_)}if(_l(w)||wl(w))return m=m.get(v)||null,c(y,m,w,_,null);if(typeof w.then=="function")return h(m,y,v,Cf(w),_);if(w.$$typeof===si)return h(m,y,v,pf(y,w),_);kf(y,w)}return null}function g(m,y,v,w){for(var _=null,A=null,D=y,L=y=0,U=null;D!==null&&L<v.length;L++){D.index>L?(U=D,D=null):U=D.sibling;var R=d(m,D,v[L],w);if(R===null){D===null&&(D=U);break}e&&D&&R.alternate===null&&t(m,D),y=a(R,y,L),A===null?_=R:A.sibling=R,A=R,D=U}if(L===v.length)return n(m,D),Ge&&Wa(m,L),_;if(D===null){for(;L<v.length;L++)D=f(m,v[L],w),D!==null&&(y=a(D,y,L),A===null?_=D:A.sibling=D,A=D);return Ge&&Wa(m,L),_}for(D=r(D);L<v.length;L++)U=h(D,m,L,v[L],w),U!==null&&(e&&U.alternate!==null&&D.delete(U.key===null?L:U.key),y=a(U,y,L),A===null?_=U:A.sibling=U,A=U);return e&&D.forEach(function(q){return t(m,q)}),Ge&&Wa(m,L),_}function b(m,y,v,w){if(v==null)throw Error(Y(151));for(var _=null,A=null,D=y,L=y=0,U=null,R=v.next();D!==null&&!R.done;L++,R=v.next()){D.index>L?(U=D,D=null):U=D.sibling;var q=d(m,D,R.value,w);if(q===null){D===null&&(D=U);break}e&&D&&q.alternate===null&&t(m,D),y=a(q,y,L),A===null?_=q:A.sibling=q,A=q,D=U}if(R.done)return n(m,D),Ge&&Wa(m,L),_;if(D===null){for(;!R.done;L++,R=v.next())R=f(m,R.value,w),R!==null&&(y=a(R,y,L),A===null?_=R:A.sibling=R,A=R);return Ge&&Wa(m,L),_}for(D=r(D);!R.done;L++,R=v.next())R=h(D,m,L,R.value,w),R!==null&&(e&&R.alternate!==null&&D.delete(R.key===null?L:R.key),y=a(R,y,L),A===null?_=R:A.sibling=R,A=R);return e&&D.forEach(function(F){return t(m,F)}),Ge&&Wa(m,L),_}function T(m,y,v,w){if(typeof v=="object"&&v!==null&&v.type===Is&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Fc:e:{for(var _=v.key;y!==null;){if(y.key===_){if(_=v.type,_===Is){if(y.tag===7){n(m,y.sibling),w=i(y,v.props.children),w.return=m,m=w;break e}}else if(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Vi&&mE(_)===y.type){n(m,y.sibling),w=i(y,v.props),nu(w,v),w.return=m,m=w;break e}n(m,y);break}else t(m,y);y=y.sibling}v.type===Is?(w=Xa(v.props.children,m.mode,w,v.key),w.return=m,m=w):(w=cf(v.type,v.key,v.props,null,m.mode,w),nu(w,v),w.return=m,m=w)}return s(m);case Tl:e:{for(_=v.key;y!==null;){if(y.key===_)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(m,y.sibling),w=i(y,v.children||[]),w.return=m,m=w;break e}else{n(m,y);break}else t(m,y);y=y.sibling}w=em(v,m.mode,w),w.return=m,m=w}return s(m);case Vi:return _=v._init,v=_(v._payload),T(m,y,v,w)}if(_l(v))return g(m,y,v,w);if(wl(v)){if(_=wl(v),typeof _!="function")throw Error(Y(150));return v=_.call(v),b(m,y,v,w)}if(typeof v.then=="function")return T(m,y,Cf(v),w);if(v.$$typeof===si)return T(m,y,pf(m,v),w);kf(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,y!==null&&y.tag===6?(n(m,y.sibling),w=i(y,v),w.return=m,m=w):(n(m,y),w=Jp(v,m.mode,w),w.return=m,m=w),s(m)):n(m,y)}return function(m,y,v,w){try{tu=0;var _=T(m,y,v,w);return lo=null,_}catch(D){if(D===Gl||D===gf)throw D;var A=Hn(29,D,null,m.mode);return A.lanes=w,A.return=m,A}finally{}}}var uo=gE(!0),bE=gE(!1),hr=Br(null),Fr=null;function Ji(e){var t=e.alternate;mt(Ht,Ht.current&1),mt(hr,e),Fr===null&&(t===null||io.current!==null||t.memoizedState!==null)&&(Fr=e)}function yE(e){if(e.tag===22){if(mt(Ht,Ht.current),mt(hr,e),Fr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Fr=e)}}else ea()}function ea(){mt(Ht,Ht.current),mt(hr,hr.current)}function mi(e){Xt(hr),Fr===e&&(Fr=null),Xt(Ht)}var Ht=Br(0);function Of(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||T0(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Mm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ut({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Lm={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gn(),i=Wi(r);i.payload=t,n!=null&&(i.callback=n),t=Qi(e,i,r),t!==null&&($n(t,e,r),Xl(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gn(),i=Wi(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Qi(e,i,r),t!==null&&($n(t,e,r),Xl(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gn(),r=Wi(n);r.tag=2,t!=null&&(r.callback=t),t=Qi(e,r,n),t!==null&&($n(t,e,n),Xl(t,e,n))}};function vE(e,t,n,r,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!Ul(n,r)||!Ul(i,a):!0}function xE(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Lm.enqueueReplaceState(t,t.state,null)}function rs(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=ut({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}var Rf=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function EE(e){Rf(e)}function TE(e){console.error(e)}function wE(e){Rf(e)}function Nf(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function _E(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Im(e,t,n){return n=Wi(n),n.tag=3,n.payload={element:null},n.callback=function(){Nf(e,t)},n}function SE(e){return e=Wi(e),e.tag=3,e}function AE(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){_E(t,n,r)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){_E(t,n,r),typeof i!="function"&&(sa===null?sa=new Set([this]):sa.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function cD(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Vl(t,n,i,!0),n=hr.current,n!==null){switch(n.tag){case 13:return Fr===null?a0():n.alternate===null&&_t===0&&(_t=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===cm?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),o0(e,r,i)),!1;case 22:return n.flags|=65536,r===cm?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),o0(e,r,i)),!1}throw Error(Y(435,n.tag))}return o0(e,r,i),a0(),!1}if(Ge)return t=hr.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==rm&&(e=Error(Y(422),{cause:r}),Hl(ur(e,n)))):(r!==rm&&(t=Error(Y(423),{cause:r}),Hl(ur(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=ur(r,n),i=Im(e.stateNode,r,i),hm(e,i),_t!==4&&(_t=2)),!1;var a=Error(Y(520),{cause:r});if(a=ur(a,n),uu===null?uu=[a]:uu.push(a),_t!==4&&(_t=2),t===null)return!0;r=ur(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Im(n.stateNode,r,e),hm(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(sa===null||!sa.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=SE(i),AE(i,e,n,r),hm(n,i),!1}n=n.return}while(n!==null);return!1}var CE=Error(Y(461)),Wt=!1;function rn(e,t,n,r){t.child=e===null?bE(t,null,n,r):uo(t,e.child,n,r)}function kE(e,t,n,r,i){n=n.render;var a=t.ref;if("ref"in r){var s={};for(var o in r)o!=="ref"&&(s[o]=r[o])}else s=r;return es(t),r=ym(e,t,n,s,a,i),o=vm(),e!==null&&!Wt?(xm(e,t,i),gi(e,t,i)):(Ge&&o&&tm(t),t.flags|=1,rn(e,t,r,i),t.child)}function OE(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!Zp(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,RE(e,t,a,r,i)):(e=cf(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Vm(e,i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:Ul,n(s,r)&&e.ref===t.ref)return gi(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function RE(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ul(a,r)&&e.ref===t.ref)if(Wt=!1,t.pendingProps=r=a,Vm(e,i))e.flags&131072&&(Wt=!0);else return t.lanes=e.lanes,gi(e,t,i)}return Pm(e,t,n,r,i)}function NE(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden"){if(t.flags&128){if(r=a!==null?a.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;t.childLanes=a&~r}else t.childLanes=0,t.child=null;return DE(e,t,r,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mf(t,a!==null?a.cachePool:null),a!==null?Rx(t,a):mm(),yE(t);else return t.lanes=t.childLanes=536870912,DE(e,t,a!==null?a.baseLanes|n:n,n)}else a!==null?(mf(t,a.cachePool),Rx(t,a),ea(),t.memoizedState=null):(e!==null&&mf(t,null),mm(),ea());return rn(e,t,i,n),t.child}function DE(e,t,n,r){var i=um();return i=i===null?null:{parent:Ft._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&mf(t,null),mm(),yE(t),e!==null&&Vl(e,t,r,!0),null}function Df(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(Y(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Pm(e,t,n,r,i){return es(t),n=ym(e,t,n,r,void 0,i),r=vm(),e!==null&&!Wt?(xm(e,t,i),gi(e,t,i)):(Ge&&r&&tm(t),t.flags|=1,rn(e,t,n,i),t.child)}function ME(e,t,n,r,i,a){return es(t),t.updateQueue=null,n=Dx(t,r,n,i),Nx(e),r=vm(),e!==null&&!Wt?(xm(e,t,a),gi(e,t,a)):(Ge&&r&&tm(t),t.flags|=1,rn(e,t,n,a),t.child)}function LE(e,t,n,r,i){if(es(t),t.stateNode===null){var a=Js,s=n.contextType;typeof s=="object"&&s!==null&&(a=fn(s)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Lm,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},fm(t),s=n.contextType,a.context=typeof s=="object"&&s!==null?fn(s):Js,a.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(Mm(t,n,s,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(s=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),s!==a.state&&Lm.enqueueReplaceState(a,a.state,null),Wl(t,r,a,i),Kl(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var o=t.memoizedProps,l=rs(n,o);a.props=l;var u=a.context,c=n.contextType;s=Js,typeof c=="object"&&c!==null&&(s=fn(c));var f=n.getDerivedStateFromProps;c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o||u!==s)&&xE(t,a,r,s),Ki=!1;var d=t.memoizedState;a.state=d,Wl(t,r,a,i),Kl(),u=t.memoizedState,o||d!==u||Ki?(typeof f=="function"&&(Mm(t,n,f,r),u=t.memoizedState),(l=Ki||vE(t,n,l,r,d,u,s))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,dm(e,t),s=t.memoizedProps,c=rs(n,s),a.props=c,f=t.pendingProps,d=a.context,u=n.contextType,l=Js,typeof u=="object"&&u!==null&&(l=fn(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==l)&&xE(t,a,r,l),Ki=!1,d=t.memoizedState,a.state=d,Wl(t,r,a,i),Kl();var h=t.memoizedState;s!==f||d!==h||Ki||e!==null&&e.dependencies!==null&&hf(e.dependencies)?(typeof o=="function"&&(Mm(t,n,o,r),h=t.memoizedState),(c=Ki||vE(t,n,c,r,d,h,l)||e!==null&&e.dependencies!==null&&hf(e.dependencies))?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,h,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Df(e,t),r=(t.flags&128)!==0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&r?(t.child=uo(t,e.child,null,i),t.child=uo(t,null,n,i)):rn(e,t,n,i),t.memoizedState=a.state,e=t.child):e=gi(e,t,i),e}function IE(e,t,n,r){return Fl(),t.flags|=256,rn(e,t,n,r),t.child}var Bm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Um(e){return{baseLanes:e,cachePool:Tx()}}function zm(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=pr),e}function PE(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(Ht.current&2)!==0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ge){if(i?Ji(t):ea(),Ge){var o=wt,l;if(l=o){e:{for(l=o,o=jr;l.nodeType!==8;){if(!o){o=null;break e}if(l=Cr(l.nextSibling),l===null){o=null;break e}}o=l}o!==null?(t.memoizedState={dehydrated:o,treeContext:Ka!==null?{id:ci,overflow:fi}:null,retryLane:536870912,hydrationErrors:null},l=Hn(18,null,null,0),l.stateNode=o,l.return=t,t.child=l,Tn=t,wt=null,l=!0):l=!1}l||Za(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return T0(o)?t.lanes=32:t.lanes=536870912,null;mi(t)}return o=r.children,r=r.fallback,i?(ea(),i=t.mode,o=Mf({mode:"hidden",children:o},i),r=Xa(r,i,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,i=t.child,i.memoizedState=Um(n),i.childLanes=zm(e,s,n),t.memoizedState=Bm,r):(Ji(t),jm(t,o))}if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null)){if(a)t.flags&256?(Ji(t),t.flags&=-257,t=Fm(e,t,n)):t.memoizedState!==null?(ea(),t.child=e.child,t.flags|=128,t=null):(ea(),i=r.fallback,o=t.mode,r=Mf({mode:"visible",children:r.children},o),i=Xa(i,o,n,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,uo(t,e.child,null,n),r=t.child,r.memoizedState=Um(n),r.childLanes=zm(e,s,n),t.memoizedState=Bm,t=i);else if(Ji(t),T0(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(Y(419)),r.stack="",r.digest=s,Hl({value:r,source:null,stack:null}),t=Fm(e,t,n)}else if(Wt||Vl(e,t,n,!1),s=(n&e.childLanes)!==0,Wt||s){if(s=at,s!==null&&(r=n&-n,r=r&42?1:wp(r),r=r&(s.suspendedLanes|n)?0:r,r!==0&&r!==l.retryLane))throw l.retryLane=r,Zs(e,r),$n(s,e,r),CE;o.data==="$?"||a0(),t=Fm(e,t,n)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,wt=Cr(o.nextSibling),Tn=t,Ge=!0,Qa=null,jr=!1,e!==null&&(fr[dr++]=ci,fr[dr++]=fi,fr[dr++]=Ka,ci=e.id,fi=e.overflow,Ka=t),t=jm(t,r.children),t.flags|=4096);return t}return i?(ea(),i=r.fallback,o=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:"hidden",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u!==null?i=ui(u,i):(i=Xa(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o===null?o=Um(n):(l=o.cachePool,l!==null?(u=Ft._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=Tx(),o={baseLanes:o.baseLanes|n,cachePool:l}),i.memoizedState=o,i.childLanes=zm(e,s,n),t.memoizedState=Bm,r):(Ji(t),n=e.child,e=n.sibling,n=ui(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function jm(e,t){return t=Mf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mf(e,t){return e=Hn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Fm(e,t,n){return uo(t,e.child,null,n),e=jm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function BE(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),am(e.return,t,n)}function Hm(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function UE(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(rn(e,t,r.children,n),r=Ht.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&BE(e,n,t);else if(e.tag===19)BE(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(mt(Ht,r),i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Of(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Hm(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Of(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Hm(t,!0,n,null,a);break;case"together":Hm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),aa|=t.lanes,!(n&t.childLanes))if(e!==null){if(Vl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(Y(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vm(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&hf(e)))}function fD(e,t,n){switch(t.tag){case 3:Vc(t,t.stateNode.containerInfo),Xi(t,Ft,e.memoizedState.cache),Fl();break;case 27:case 5:yp(t);break;case 4:Vc(t,t.stateNode.containerInfo);break;case 10:Xi(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ji(t),t.flags|=128,null):n&t.child.childLanes?PE(e,t,n):(Ji(t),e=gi(e,t,n),e!==null?e.sibling:null);Ji(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Vl(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return UE(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),mt(Ht,Ht.current),r)break;return null;case 22:case 23:return t.lanes=0,NE(e,t,n);case 24:Xi(t,Ft,e.memoizedState.cache)}return gi(e,t,n)}function zE(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Wt=!0;else{if(!Vm(e,n)&&!(t.flags&128))return Wt=!1,fD(e,t,n);Wt=!!(e.flags&131072)}else Wt=!1,Ge&&t.flags&1048576&&mx(t,df,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,i=r._init;if(r=i(r._payload),t.type=r,typeof r=="function")Zp(r)?(e=rs(r,e),t.tag=1,t=LE(null,t,r,e,n)):(t.tag=0,t=Pm(null,t,r,e,n));else{if(r!=null){if(i=r.$$typeof,i===fp){t.tag=11,t=kE(null,t,r,e,n);break e}else if(i===pp){t.tag=14,t=OE(null,t,r,e,n);break e}}throw t=gp(r)||r,Error(Y(306,t,""))}}return t;case 0:return Pm(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=rs(r,t.pendingProps),LE(e,t,r,i,n);case 3:e:{if(Vc(t,t.stateNode.containerInfo),e===null)throw Error(Y(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,dm(e,t),Wl(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Xi(t,Ft,r),r!==a.cache&&sm(t,[Ft],n,!0),Kl(),r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=IE(e,t,r,n);break e}else if(r!==i){i=ur(Error(Y(424)),t),Hl(i),t=IE(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(wt=Cr(e.firstChild),Tn=t,Ge=!0,Qa=null,jr=!0,n=bE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fl(),r===i){t=gi(e,t,n);break e}rn(e,t,r,n)}t=t.child}return t;case 26:return Df(e,t),e===null?(n=VT(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ge||(n=t.type,e=t.pendingProps,r=$f(qi.current).createElement(n),r[cn]=t,r[Cn]=e,sn(r,n,e),Kt(r),t.stateNode=r):t.memoizedState=VT(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return yp(t),e===null&&Ge&&(r=t.stateNode=jT(t.type,t.pendingProps,qi.current),Tn=t,jr=!0,i=wt,ua(t.type)?(w0=i,wt=Cr(r.firstChild)):wt=i),rn(e,t,t.pendingProps.children,n),Df(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ge&&((i=r=wt)&&(r=zD(r,t.type,t.pendingProps,jr),r!==null?(t.stateNode=r,Tn=t,wt=Cr(r.firstChild),jr=!1,i=!0):i=!1),i||Za(t)),yp(t),i=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,r=a.children,v0(i,a)?r=null:s!==null&&v0(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=ym(e,t,rD,null,null,n),yu._currentValue=i),Df(e,t),rn(e,t,r,n),t.child;case 6:return e===null&&Ge&&((e=n=wt)&&(n=jD(n,t.pendingProps,jr),n!==null?(t.stateNode=n,Tn=t,wt=null,e=!0):e=!1),e||Za(t)),null;case 13:return PE(e,t,n);case 4:return Vc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=uo(t,null,r,n):rn(e,t,r,n),t.child;case 11:return kE(e,t,t.type,t.pendingProps,n);case 7:return rn(e,t,t.pendingProps,n),t.child;case 8:return rn(e,t,t.pendingProps.children,n),t.child;case 12:return rn(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Xi(t,t.type,r.value),rn(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,es(t),i=fn(i),r=r(i),t.flags|=1,rn(e,t,r,n),t.child;case 14:return OE(e,t,t.type,t.pendingProps,n);case 15:return RE(e,t,t.type,t.pendingProps,n);case 19:return UE(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},e===null?(n=Mf(r,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=ui(e.child,r),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return NE(e,t,n);case 24:return es(t),r=fn(Ft),e===null?(i=um(),i===null&&(i=at,a=om(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},fm(t),Xi(t,Ft,i)):(e.lanes&n&&(dm(e,t),Wl(t,null,null,n),Kl()),i=e.memoizedState,a=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Xi(t,Ft,r)):(r=a.cache,Xi(t,Ft,r),r!==i.cache&&sm(t,[Ft],n,!0))),rn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(Y(156,t.tag))}function bi(e){e.flags|=4}function jE(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!XT(t)){if(t=hr.current,t!==null&&((Ue&4194048)===Ue?Fr!==null:(Ue&62914560)!==Ue&&!(Ue&536870912)||t!==Fr))throw $l=cm,wx;e.flags|=8192}}function Lf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yv():536870912,e.lanes|=t,po|=t)}function ru(e,t){if(!Ge)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function vt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dD(e,t,n){var r=t.pendingProps;switch(nm(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(t),null;case 1:return vt(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),hi(Ft),Bs(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(jl(t)?bi(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yx())),vt(t),null;case 26:return n=t.memoizedState,e===null?(bi(t),n!==null?(vt(t),jE(t,n)):(vt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(bi(t),vt(t),jE(t,n)):(vt(t),t.flags&=-16777217):(e.memoizedProps!==r&&bi(t),vt(t),t.flags&=-16777217),null;case 27:qc(t),n=qi.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==r&&bi(t);else{if(!r){if(t.stateNode===null)throw Error(Y(166));return vt(t),null}e=Ur.current,jl(t)?gx(t):(e=jT(i,r,n),t.stateNode=e,bi(t))}return vt(t),null;case 5:if(qc(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&bi(t);else{if(!r){if(t.stateNode===null)throw Error(Y(166));return vt(t),null}if(e=Ur.current,jl(t))gx(t);else{switch(i=$f(qi.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?i.createElement(n,{is:r.is}):i.createElement(n)}}e[cn]=t,e[Cn]=r;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(sn(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&bi(t)}}return vt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&bi(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Y(166));if(e=qi.current,jl(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Tn,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[cn]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||MT(e.nodeValue,n)),e||Za(t)}else e=$f(e).createTextNode(r),e[cn]=t,t.stateNode=e}return vt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=jl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Y(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Y(317));i[cn]=t}else Fl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vt(t),i=!1}else i=yx(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(mi(t),t):(mi(t),null)}if(mi(t),t.flags&128)return t.lanes=n,t;if(n=r!==null,e=e!==null&&e.memoizedState!==null,n){r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool);var a=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Lf(t,t.updateQueue),vt(t),null;case 4:return Bs(),e===null&&p0(t.stateNode.containerInfo),vt(t),null;case 10:return hi(t.type),vt(t),null;case 19:if(Xt(Ht),i=t.memoizedState,i===null)return vt(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)ru(i,!1);else{if(_t!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Of(e),a!==null){for(t.flags|=128,ru(i,!1),e=a.updateQueue,t.updateQueue=e,Lf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)px(n,e),n=n.sibling;return mt(Ht,Ht.current&1|2),t.child}e=e.sibling}i.tail!==null&&zr()>Bf&&(t.flags|=128,r=!0,ru(i,!1),t.lanes=4194304)}else{if(!r)if(e=Of(a),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Lf(t,e),ru(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ge)return vt(t),null}else 2*zr()-i.renderingStartTime>Bf&&n!==536870912&&(t.flags|=128,r=!0,ru(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=zr(),t.sibling=null,e=Ht.current,mt(Ht,r?e&1|2:e&1),t):(vt(t),null);case 22:case 23:return mi(t),gm(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(vt(t),t.subtreeFlags&6&&(t.flags|=8192)):vt(t),n=t.updateQueue,n!==null&&Lf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Xt(ts),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),hi(Ft),vt(t),null;case 25:return null;case 30:return null}throw Error(Y(156,t.tag))}function hD(e,t){switch(nm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hi(Ft),Bs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qc(t),null;case 13:if(mi(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Y(340));Fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xt(Ht),null;case 4:return Bs(),null;case 10:return hi(t.type),null;case 22:case 23:return mi(t),gm(),e!==null&&Xt(ts),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return hi(Ft),null;case 25:return null;default:return null}}function FE(e,t){switch(nm(t),t.tag){case 3:hi(Ft),Bs();break;case 26:case 27:case 5:qc(t);break;case 4:Bs();break;case 13:mi(t);break;case 19:Xt(Ht);break;case 10:hi(t.type);break;case 22:case 23:mi(t),gm(),e!==null&&Xt(ts);break;case 24:hi(Ft)}}function iu(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,s=n.inst;r=a(),s.destroy=r}n=n.next}while(n!==i)}}catch(o){tt(t,t.return,o)}}function ta(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var s=r.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,i=t;var l=n,u=o;try{u()}catch(c){tt(i,l,c)}}}r=r.next}while(r!==a)}}catch(c){tt(t,t.return,c)}}function HE(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ox(t,n)}catch(r){tt(e,e.return,r)}}}function VE(e,t,n){n.props=rs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){tt(e,t,r)}}function au(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(i){tt(e,t,i)}}function Hr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){tt(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){tt(e,t,i)}else n.current=null}function qE(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){tt(e,e.return,i)}}function qm(e,t,n){try{var r=e.stateNode;LD(r,e.type,n,t),r[Cn]=t}catch(i){tt(e,e.return,i)}}function YE(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ua(e.type)||e.tag===4}function Ym(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||YE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ua(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gf));else if(r!==4&&(r===27&&ua(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gm(e,t,n),e=e.sibling;e!==null;)Gm(e,t,n),e=e.sibling}function If(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ua(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(If(e,t,n),e=e.sibling;e!==null;)If(e,t,n),e=e.sibling}function GE(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);sn(t,r,n),t[cn]=e,t[Cn]=n}catch(a){tt(e,e.return,a)}}var yi=!1,Ot=!1,$m=!1,$E=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function pD(e,t){if(e=e.containerInfo,b0=Jf,e=ix(e),Yp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(o=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(o=s),d===a&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(y0={focusedElem:e,selectionRange:n},Jf=!1,Qt=t;Qt!==null;)if(t=Qt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Qt=e;else for(;Qt!==null;){switch(t=Qt,a=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var g=rs(n.type,i,n.elementType===n.type);e=r.getSnapshotBeforeUpdate(g,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(b){tt(n,n.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)E0(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":E0(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(Y(163))}if(e=t.sibling,e!==null){e.return=t.return,Qt=e;break}Qt=t.return}}function XE(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:na(e,n),r&4&&iu(5,n);break;case 1:if(na(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){tt(n,n.return,s)}else{var i=rs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){tt(n,n.return,s)}}r&64&&HE(n),r&512&&au(n,n.return);break;case 3:if(na(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ox(e,t)}catch(s){tt(n,n.return,s)}}break;case 27:t===null&&r&4&&GE(n);case 26:case 5:na(e,n),t===null&&r&4&&qE(n),r&512&&au(n,n.return);break;case 12:na(e,n);break;case 13:na(e,n),r&4&&QE(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=wD.bind(null,n),FD(e,n))));break;case 22:if(r=n.memoizedState!==null||yi,!r){t=t!==null&&t.memoizedState!==null||Ot,i=yi;var a=Ot;yi=r,(Ot=t)&&!a?ra(e,n,(n.subtreeFlags&8772)!==0):na(e,n),yi=i,Ot=a}break;case 30:break;default:na(e,n)}}function KE(e){var t=e.alternate;t!==null&&(e.alternate=null,KE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ap(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gt=null,Rn=!1;function vi(e,t,n){for(n=n.child;n!==null;)WE(e,t,n),n=n.sibling}function WE(e,t,n){if(zn&&typeof zn.onCommitFiberUnmount=="function")try{zn.onCommitFiberUnmount(Al,n)}catch{}switch(n.tag){case 26:Ot||Hr(n,t),vi(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ot||Hr(n,t);var r=gt,i=Rn;ua(n.type)&&(gt=n.stateNode,Rn=!1),vi(e,t,n),pu(n.stateNode),gt=r,Rn=i;break;case 5:Ot||Hr(n,t);case 6:if(r=gt,i=Rn,gt=null,vi(e,t,n),gt=r,Rn=i,gt!==null)if(Rn)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(n.stateNode)}catch(a){tt(n,t,a)}else try{gt.removeChild(n.stateNode)}catch(a){tt(n,t,a)}break;case 18:gt!==null&&(Rn?(e=gt,UT(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Tu(e)):UT(gt,n.stateNode));break;case 4:r=gt,i=Rn,gt=n.stateNode.containerInfo,Rn=!0,vi(e,t,n),gt=r,Rn=i;break;case 0:case 11:case 14:case 15:Ot||ta(2,n,t),Ot||ta(4,n,t),vi(e,t,n);break;case 1:Ot||(Hr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&VE(n,t,r)),vi(e,t,n);break;case 21:vi(e,t,n);break;case 22:Ot=(r=Ot)||n.memoizedState!==null,vi(e,t,n),Ot=r;break;default:vi(e,t,n)}}function QE(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Tu(e)}catch(n){tt(t,t.return,n)}}function mD(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $E),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $E),t;default:throw Error(Y(435,e.tag))}}function Xm(e,t){var n=mD(e);t.forEach(function(r){var i=_D.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}function Vn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if(ua(o.type)){gt=o.stateNode,Rn=!1;break e}break;case 5:gt=o.stateNode,Rn=!1;break e;case 3:case 4:gt=o.stateNode.containerInfo,Rn=!0;break e}o=o.return}if(gt===null)throw Error(Y(160));WE(a,s,i),gt=null,Rn=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)ZE(t,e),t=t.sibling}var Ar=null;function ZE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Vn(t,e),qn(e),r&4&&(ta(3,e,e.return),iu(3,e),ta(5,e,e.return));break;case 1:Vn(t,e),qn(e),r&512&&(Ot||n===null||Hr(n,n.return)),r&64&&yi&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=Ar;if(Vn(t,e),qn(e),r&512&&(Ot||n===null||Hr(n,n.return)),r&4){var a=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":a=i.getElementsByTagName("title")[0],(!a||a[Ol]||a[cn]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector("head > title"))),sn(a,r,n),a[cn]=e,Kt(a),r=a;break e;case"link":var s=GT("link","href",i).get(r+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(a=s[o],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}a=i.createElement(r),sn(a,r,n),i.head.appendChild(a);break;case"meta":if(s=GT("meta","content",i).get(r+(n.content||""))){for(o=0;o<s.length;o++)if(a=s[o],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}a=i.createElement(r),sn(a,r,n),i.head.appendChild(a);break;default:throw Error(Y(468,r))}a[cn]=e,Kt(a),r=a}e.stateNode=r}else $T(i,e.type,e.stateNode);else e.stateNode=YT(i,r,e.memoizedProps);else a!==r?(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?$T(i,e.type,e.stateNode):YT(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&qm(e,e.memoizedProps,n.memoizedProps)}break;case 27:Vn(t,e),qn(e),r&512&&(Ot||n===null||Hr(n,n.return)),n!==null&&r&4&&qm(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Vn(t,e),qn(e),r&512&&(Ot||n===null||Hr(n,n.return)),e.flags&32){i=e.stateNode;try{Ys(i,"")}catch(h){tt(e,e.return,h)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,qm(e,i,n!==null?n.memoizedProps:i)),r&1024&&($m=!0);break;case 6:if(Vn(t,e),qn(e),r&4){if(e.stateNode===null)throw Error(Y(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(h){tt(e,e.return,h)}}break;case 3:if(Wf=null,i=Ar,Ar=Xf(t.containerInfo),Vn(t,e),Ar=i,qn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Tu(t.containerInfo)}catch(h){tt(e,e.return,h)}$m&&($m=!1,JE(e));break;case 4:r=Ar,Ar=Xf(e.stateNode.containerInfo),Vn(t,e),qn(e),Ar=r;break;case 12:Vn(t,e),qn(e);break;case 13:Vn(t,e),qn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(e0=zr()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Xm(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=yi,c=Ot;if(yi=u||i,Ot=c||l,Vn(t,e),Ot=c,yi=u,qn(e),r&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||yi||Ot||is(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)s=a.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=l.stateNode;var f=l.memoizedProps.style,d=f!=null&&f.hasOwnProperty("display")?f.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(h){tt(l,l.return,h)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?"":l.memoizedProps}catch(h){tt(l,l.return,h)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Xm(e,n))));break;case 19:Vn(t,e),qn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Xm(e,r)));break;case 30:break;case 21:break;default:Vn(t,e),qn(e)}}function qn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(YE(r)){n=r;break}r=r.return}if(n==null)throw Error(Y(160));switch(n.tag){case 27:var i=n.stateNode,a=Ym(e);If(e,a,i);break;case 5:var s=n.stateNode;n.flags&32&&(Ys(s,""),n.flags&=-33);var o=Ym(e);If(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,u=Ym(e);Gm(e,u,l);break;default:throw Error(Y(161))}}catch(c){tt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function JE(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;JE(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)XE(e,t.alternate,t),t=t.sibling}function is(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ta(4,t,t.return),is(t);break;case 1:Hr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&VE(t,t.return,n),is(t);break;case 27:pu(t.stateNode);case 26:case 5:Hr(t,t.return),is(t);break;case 22:t.memoizedState===null&&is(t);break;case 30:is(t);break;default:is(t)}e=e.sibling}}function ra(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,s=a.flags;switch(a.tag){case 0:case 11:case 15:ra(i,a,n),iu(4,a);break;case 1:if(ra(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){tt(r,r.return,u)}if(r=a,i=r.updateQueue,i!==null){var o=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)kx(l[i],o)}catch(u){tt(r,r.return,u)}}n&&s&64&&HE(a),au(a,a.return);break;case 27:GE(a);case 26:case 5:ra(i,a,n),n&&r===null&&s&4&&qE(a),au(a,a.return);break;case 12:ra(i,a,n);break;case 13:ra(i,a,n),n&&s&4&&QE(i,a);break;case 22:a.memoizedState===null&&ra(i,a,n),au(a,a.return);break;case 30:break;default:ra(i,a,n)}t=t.sibling}}function Km(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ql(n))}function Wm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ql(e))}function Vr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eT(e,t,n,r),t=t.sibling}function eT(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Vr(e,t,n,r),i&2048&&iu(9,t);break;case 1:Vr(e,t,n,r);break;case 3:Vr(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ql(e)));break;case 12:if(i&2048){Vr(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,s=a.id,o=a.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){tt(t,t.return,l)}}else Vr(e,t,n,r);break;case 13:Vr(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,s=t.alternate,t.memoizedState!==null?a._visibility&2?Vr(e,t,n,r):su(e,t):a._visibility&2?Vr(e,t,n,r):(a._visibility|=2,co(e,t,n,r,(t.subtreeFlags&10256)!==0)),i&2048&&Km(s,t);break;case 24:Vr(e,t,n,r),i&2048&&Wm(t.alternate,t);break;default:Vr(e,t,n,r)}}function co(e,t,n,r,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var a=e,s=t,o=n,l=r,u=s.flags;switch(s.tag){case 0:case 11:case 15:co(a,s,o,l,i),iu(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?co(a,s,o,l,i):su(a,s):(c._visibility|=2,co(a,s,o,l,i)),i&&u&2048&&Km(s.alternate,s);break;case 24:co(a,s,o,l,i),i&&u&2048&&Wm(s.alternate,s);break;default:co(a,s,o,l,i)}t=t.sibling}}function su(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:su(n,r),i&2048&&Km(r.alternate,r);break;case 24:su(n,r),i&2048&&Wm(r.alternate,r);break;default:su(n,r)}t=t.sibling}}var ou=8192;function fo(e){if(e.subtreeFlags&ou)for(e=e.child;e!==null;)tT(e),e=e.sibling}function tT(e){switch(e.tag){case 26:fo(e),e.flags&ou&&e.memoizedState!==null&&e5(Ar,e.memoizedState,e.memoizedProps);break;case 5:fo(e);break;case 3:case 4:var t=Ar;Ar=Xf(e.stateNode.containerInfo),fo(e),Ar=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=ou,ou=16777216,fo(e),ou=t):fo(e));break;default:fo(e)}}function nT(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function lu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qt=r,iT(r,e)}nT(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rT(e),e=e.sibling}function rT(e){switch(e.tag){case 0:case 11:case 15:lu(e),e.flags&2048&&ta(9,e,e.return);break;case 3:lu(e);break;case 12:lu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pf(e)):lu(e);break;default:lu(e)}}function Pf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qt=r,iT(r,e)}nT(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ta(8,t,t.return),Pf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Pf(t));break;default:Pf(t)}e=e.sibling}}function iT(e,t){for(;Qt!==null;){var n=Qt;switch(n.tag){case 0:case 11:case 15:ta(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ql(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Qt=r;else e:for(n=e;Qt!==null;){r=Qt;var i=r.sibling,a=r.return;if(KE(r),r===n){Qt=null;break e}if(i!==null){i.return=a,Qt=i;break e}Qt=a}}}var gD={getCacheForType:function(e){var t=fn(Ft),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},bD=typeof WeakMap=="function"?WeakMap:Map,Ke=0,at=null,Ne=null,Ue=0,We=0,Yn=null,ia=!1,ho=!1,Qm=!1,xi=0,_t=0,aa=0,as=0,Zm=0,pr=0,po=0,uu=null,Nn=null,Jm=!1,e0=0,Bf=1/0,Uf=null,sa=null,an=0,oa=null,mo=null,go=0,t0=0,n0=null,aT=null,cu=0,r0=null;function Gn(){if(Ke&2&&Ue!==0)return Ue&-Ue;if(ge.T!==null){var e=no;return e!==0?e:c0()}return Ev()}function sT(){pr===0&&(pr=!(Ue&536870912)||Ge?bv():536870912);var e=hr.current;return e!==null&&(e.flags|=32),pr}function $n(e,t,n){(e===at&&(We===2||We===9)||e.cancelPendingCommit!==null)&&(bo(e,0),la(e,Ue,pr,!1)),kl(e,n),(!(Ke&2)||e!==at)&&(e===at&&(!(Ke&2)&&(as|=n),_t===4&&la(e,Ue,pr,!1)),qr(e))}function oT(e,t,n){if(Ke&6)throw Error(Y(327));var r=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Cl(e,t),i=r?xD(e,t):s0(e,t,!0),a=r;do{if(i===0){ho&&!r&&la(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!yD(n)){i=s0(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;i=uu;var l=o.current.memoizedState.isDehydrated;if(l&&(bo(o,s).flags|=256),s=s0(o,s,!1),s!==2){if(Qm&&!l){o.errorRecoveryDisabledLanes|=a,as|=a,i=4;break e}a=Nn,Nn=i,a!==null&&(Nn===null?Nn=a:Nn.push.apply(Nn,a))}i=s}if(a=!1,i!==2)continue}}if(i===1){bo(e,0),la(e,t,0,!0);break}e:{switch(r=e,a=i,a){case 0:case 1:throw Error(Y(345));case 4:if((t&4194048)!==t)break;case 6:la(r,t,pr,!ia);break e;case 2:Nn=null;break;case 3:case 5:break;default:throw Error(Y(329))}if((t&62914560)===t&&(i=e0+300-zr(),10<i)){if(la(r,t,pr,!ia),Xc(r,0,!0)!==0)break e;r.timeoutHandle=PT(lT.bind(null,r,n,Nn,Uf,Jm,t,pr,as,po,ia,a,2,-0,0),i);break e}lT(r,n,Nn,Uf,Jm,t,pr,as,po,ia,a,0,-0,0)}}break}while(!0);qr(e)}function lT(e,t,n,r,i,a,s,o,l,u,c,f,d,h){if(e.timeoutHandle=-1,f=t.subtreeFlags,(f&8192||(f&16785408)===16785408)&&(bu={stylesheets:null,count:0,unsuspend:JD},tT(t),f=t5(),f!==null)){e.cancelPendingCommit=f(mT.bind(null,e,t,a,n,r,i,s,o,l,c,1,d,h)),la(e,a,s,!u);return}mT(e,t,a,n,r,i,s,o,l)}function yD(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Fn(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function la(e,t,n,r){t&=~Zm,t&=~as,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-jn(i),s=1<<a;r[a]=-1,i&=~s}n!==0&&vv(e,n,t)}function zf(){return Ke&6?!0:(fu(0),!1)}function i0(){if(Ne!==null){if(We===0)var e=Ne.return;else e=Ne,di=Ja=null,Em(e),lo=null,tu=0,e=Ne;for(;e!==null;)FE(e.alternate,e),e=e.return;Ne=null}}function bo(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,PD(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),i0(),at=e,Ne=n=ui(e.current,null),Ue=t,We=0,Yn=null,ia=!1,ho=Cl(e,t),Qm=!1,po=pr=Zm=as=aa=_t=0,Nn=uu=null,Jm=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-jn(r),a=1<<i;t|=e[i],r&=~a}return xi=t,of(),n}function uT(e,t){Ce=null,ge.H=Af,t===Gl||t===gf?(t=Ax(),We=3):t===wx?(t=Ax(),We=4):We=t===CE?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yn=t,Ne===null&&(_t=1,Nf(e,ur(t,e.current)))}function cT(){var e=ge.H;return ge.H=Af,e===null?Af:e}function fT(){var e=ge.A;return ge.A=gD,e}function a0(){_t=4,ia||(Ue&4194048)!==Ue&&hr.current!==null||(ho=!0),!(aa&134217727)&&!(as&134217727)||at===null||la(at,Ue,pr,!1)}function s0(e,t,n){var r=Ke;Ke|=2;var i=cT(),a=fT();(at!==e||Ue!==t)&&(Uf=null,bo(e,t)),t=!1;var s=_t;e:do try{if(We!==0&&Ne!==null){var o=Ne,l=Yn;switch(We){case 8:i0(),s=6;break e;case 3:case 2:case 9:case 6:hr.current===null&&(t=!0);var u=We;if(We=0,Yn=null,yo(e,o,l,u),n&&ho){s=0;break e}break;default:u=We,We=0,Yn=null,yo(e,o,l,u)}}vD(),s=_t;break}catch(c){uT(e,c)}while(!0);return t&&e.shellSuspendCounter++,di=Ja=null,Ke=r,ge.H=i,ge.A=a,Ne===null&&(at=null,Ue=0,of()),s}function vD(){for(;Ne!==null;)dT(Ne)}function xD(e,t){var n=Ke;Ke|=2;var r=cT(),i=fT();at!==e||Ue!==t?(Uf=null,Bf=zr()+500,bo(e,t)):ho=Cl(e,t);e:do try{if(We!==0&&Ne!==null){t=Ne;var a=Yn;t:switch(We){case 1:We=0,Yn=null,yo(e,t,a,1);break;case 2:case 9:if(_x(a)){We=0,Yn=null,hT(t);break}t=function(){We!==2&&We!==9||at!==e||(We=7),qr(e)},a.then(t,t);break e;case 3:We=7;break e;case 4:We=5;break e;case 7:_x(a)?(We=0,Yn=null,hT(t)):(We=0,Yn=null,yo(e,t,a,7));break;case 5:var s=null;switch(Ne.tag){case 26:s=Ne.memoizedState;case 5:case 27:var o=Ne;if(!s||XT(s)){We=0,Yn=null;var l=o.sibling;if(l!==null)Ne=l;else{var u=o.return;u!==null?(Ne=u,jf(u)):Ne=null}break t}}We=0,Yn=null,yo(e,t,a,5);break;case 6:We=0,Yn=null,yo(e,t,a,6);break;case 8:i0(),_t=6;break e;default:throw Error(Y(462))}}ED();break}catch(c){uT(e,c)}while(!0);return di=Ja=null,ge.H=r,ge.A=i,Ke=n,Ne!==null?0:(at=null,Ue=0,of(),_t)}function ED(){for(;Ne!==null&&!V4();)dT(Ne)}function dT(e){var t=zE(e.alternate,e,xi);e.memoizedProps=e.pendingProps,t===null?jf(e):Ne=t}function hT(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ME(n,t,t.pendingProps,t.type,void 0,Ue);break;case 11:t=ME(n,t,t.pendingProps,t.type.render,t.ref,Ue);break;case 5:Em(t);default:FE(n,t),t=Ne=px(t,xi),t=zE(n,t,xi)}e.memoizedProps=e.pendingProps,t===null?jf(e):Ne=t}function yo(e,t,n,r){di=Ja=null,Em(t),lo=null,tu=0;var i=t.return;try{if(cD(e,i,t,n,Ue)){_t=1,Nf(e,ur(n,e.current)),Ne=null;return}}catch(a){if(i!==null)throw Ne=i,a;_t=1,Nf(e,ur(n,e.current)),Ne=null;return}t.flags&32768?(Ge||r===1?e=!0:ho||Ue&536870912?e=!1:(ia=e=!0,(r===2||r===9||r===3||r===6)&&(r=hr.current,r!==null&&r.tag===13&&(r.flags|=16384))),pT(t,e)):jf(t)}function jf(e){var t=e;do{if(t.flags&32768){pT(t,ia);return}e=t.return;var n=dD(t.alternate,t,xi);if(n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);_t===0&&(_t=5)}function pT(e,t){do{var n=hD(e.alternate,e);if(n!==null){n.flags&=32767,Ne=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=n}while(e!==null);_t=6,Ne=null}function mT(e,t,n,r,i,a,s,o,l){e.cancelPendingCommit=null;do Ff();while(an!==0);if(Ke&6)throw Error(Y(327));if(t!==null){if(t===e.current)throw Error(Y(177));if(a=t.lanes|t.childLanes,a|=Wp,J4(e,n,a,s,o,l),e===at&&(Ne=at=null,Ue=0),mo=t,oa=e,go=n,t0=a,n0=i,aT=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,SD(Yc,function(){return xT(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=ge.T,ge.T=null,i=Ye.p,Ye.p=2,s=Ke,Ke|=4;try{pD(e,t,n)}finally{Ke=s,Ye.p=i,ge.T=r}}an=1,gT(),bT(),yT()}}function gT(){if(an===1){an=0;var e=oa,t=mo,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=ge.T,ge.T=null;var r=Ye.p;Ye.p=2;var i=Ke;Ke|=4;try{ZE(t,e);var a=y0,s=ix(e.containerInfo),o=a.focusedElem,l=a.selectionRange;if(s!==o&&o&&o.ownerDocument&&rx(o.ownerDocument.documentElement,o)){if(l!==null&&Yp(o)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(c,o.value.length);else{var f=o.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),g=o.textContent.length,b=Math.min(l.start,g),T=l.end===void 0?b:Math.min(l.end,g);!h.extend&&b>T&&(s=T,T=b,b=s);var m=nx(o,b),y=nx(o,T);if(m&&y&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var v=f.createRange();v.setStart(m.node,m.offset),h.removeAllRanges(),b>T?(h.addRange(v),h.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),h.addRange(v))}}}}for(f=[],h=o;h=h.parentNode;)h.nodeType===1&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<f.length;o++){var w=f[o];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Jf=!!b0,y0=b0=null}finally{Ke=i,Ye.p=r,ge.T=n}}e.current=t,an=2}}function bT(){if(an===2){an=0;var e=oa,t=mo,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=ge.T,ge.T=null;var r=Ye.p;Ye.p=2;var i=Ke;Ke|=4;try{XE(e,t.alternate,t)}finally{Ke=i,Ye.p=r,ge.T=n}}an=3}}function yT(){if(an===4||an===3){an=0,q4();var e=oa,t=mo,n=go,r=aT;t.subtreeFlags&10256||t.flags&10256?an=5:(an=0,mo=oa=null,vT(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(sa=null),_p(n),t=t.stateNode,zn&&typeof zn.onCommitFiberRoot=="function")try{zn.onCommitFiberRoot(Al,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ge.T,i=Ye.p,Ye.p=2,ge.T=null;try{for(var a=e.onRecoverableError,s=0;s<r.length;s++){var o=r[s];a(o.value,{componentStack:o.stack})}}finally{ge.T=t,Ye.p=i}}go&3&&Ff(),qr(e),i=e.pendingLanes,n&4194090&&i&42?e===r0?cu++:(cu=0,r0=e):cu=0,fu(0)}}function vT(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ql(t)))}function Ff(e){return gT(),bT(),yT(),xT()}function xT(){if(an!==5)return!1;var e=oa,t=t0;t0=0;var n=_p(go),r=ge.T,i=Ye.p;try{Ye.p=32>n?32:n,ge.T=null,n=n0,n0=null;var a=oa,s=go;if(an=0,mo=oa=null,go=0,Ke&6)throw Error(Y(331));var o=Ke;if(Ke|=4,rT(a.current),eT(a,a.current,s,n),Ke=o,fu(0,!1),zn&&typeof zn.onPostCommitFiberRoot=="function")try{zn.onPostCommitFiberRoot(Al,a)}catch{}return!0}finally{Ye.p=i,ge.T=r,vT(e,t)}}function ET(e,t,n){t=ur(n,t),t=Im(e.stateNode,t,2),e=Qi(e,t,2),e!==null&&(kl(e,2),qr(e))}function tt(e,t,n){if(e.tag===3)ET(e,e,n);else for(;t!==null;){if(t.tag===3){ET(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(sa===null||!sa.has(r))){e=ur(n,e),n=SE(2),r=Qi(t,n,2),r!==null&&(AE(n,r,t,e),kl(r,2),qr(r));break}}t=t.return}}function o0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bD;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Qm=!0,i.add(n),e=TD.bind(null,e,t,n),t.then(e,e))}function TD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,at===e&&(Ue&n)===n&&(_t===4||_t===3&&(Ue&62914560)===Ue&&300>zr()-e0?!(Ke&2)&&bo(e,0):Zm|=n,po===Ue&&(po=0)),qr(e)}function TT(e,t){t===0&&(t=yv()),e=Zs(e,t),e!==null&&(kl(e,t),qr(e))}function wD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),TT(e,n)}function _D(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(Y(314))}r!==null&&r.delete(t),TT(e,n)}function SD(e,t){return xp(e,t)}var Hf=null,vo=null,l0=!1,Vf=!1,u0=!1,ss=0;function qr(e){e!==vo&&e.next===null&&(vo===null?Hf=vo=e:vo=vo.next=e),Vf=!0,l0||(l0=!0,CD())}function fu(e,t){if(!u0&&Vf){u0=!0;do for(var n=!1,r=Hf;r!==null;){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var s=r.suspendedLanes,o=r.pingedLanes;a=(1<<31-jn(42|e)+1)-1,a&=i&~(s&~o),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,AT(r,a))}else a=Ue,a=Xc(r,r===at?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Cl(r,a)||(n=!0,AT(r,a));r=r.next}while(n);u0=!1}}function AD(){wT()}function wT(){Vf=l0=!1;var e=0;ss!==0&&(ID()&&(e=ss),ss=0);for(var t=zr(),n=null,r=Hf;r!==null;){var i=r.next,a=_T(r,t);a===0?(r.next=null,n===null?Hf=i:n.next=i,i===null&&(vo=n)):(n=r,(e!==0||a&3)&&(Vf=!0)),r=i}fu(e)}function _T(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var s=31-jn(a),o=1<<s,l=i[s];l===-1?(!(o&n)||o&r)&&(i[s]=Z4(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}if(t=at,n=Ue,n=Xc(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(We===2||We===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ep(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Cl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ep(r),_p(n)){case 2:case 8:n=mv;break;case 32:n=Yc;break;case 268435456:n=gv;break;default:n=Yc}return r=ST.bind(null,e),n=xp(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ep(r),e.callbackPriority=2,e.callbackNode=null,2}function ST(e,t){if(an!==0&&an!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ff()&&e.callbackNode!==n)return null;var r=Ue;return r=Xc(e,e===at?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(oT(e,r,t),_T(e,zr()),e.callbackNode!=null&&e.callbackNode===n?ST.bind(null,e):null)}function AT(e,t){if(Ff())return null;oT(e,t,!0)}function CD(){BD(function(){Ke&6?xp(pv,AD):wT()})}function c0(){return ss===0&&(ss=bv()),ss}function CT(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jc(""+e)}function kT(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function kD(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var a=CT((i[Cn]||null).action),s=r.submitter;s&&(t=(t=s[Cn]||null)?CT(t.formAction):s.getAttribute("formAction"),t!==null&&(a=t,s=null));var o=new rf("action","action",null,r,i);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ss!==0){var l=s?kT(i,s):new FormData(i);Rm(n,{pending:!0,data:l,method:i.method,action:a},null,l)}}else typeof a=="function"&&(o.preventDefault(),l=s?kT(i,s):new FormData(i),Rm(n,{pending:!0,data:l,method:i.method,action:a},a,l))},currentTarget:i}]})}}for(var f0=0;f0<Kp.length;f0++){var d0=Kp[f0],OD=d0.toLowerCase(),RD=d0[0].toUpperCase()+d0.slice(1);Sr(OD,"on"+RD)}Sr(ox,"onAnimationEnd"),Sr(lx,"onAnimationIteration"),Sr(ux,"onAnimationStart"),Sr("dblclick","onDoubleClick"),Sr("focusin","onFocus"),Sr("focusout","onBlur"),Sr($N,"onTransitionRun"),Sr(XN,"onTransitionStart"),Sr(KN,"onTransitionCancel"),Sr(cx,"onTransitionEnd"),Hs("onMouseEnter",["mouseout","mouseover"]),Hs("onMouseLeave",["mouseout","mouseover"]),Hs("onPointerEnter",["pointerout","pointerover"]),Hs("onPointerLeave",["pointerout","pointerover"]),qa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qa("onBeforeInput",["compositionend","keypress","textInput","paste"]),qa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var du="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(" "),ND=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(du));function OT(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break e;a=o,i.currentTarget=u;try{a(i)}catch(c){Rf(c)}i.currentTarget=null,a=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break e;a=o,i.currentTarget=u;try{a(i)}catch(c){Rf(c)}i.currentTarget=null,a=l}}}}function De(e,t){var n=t[Sp];n===void 0&&(n=t[Sp]=new Set);var r=e+"__bubble";n.has(r)||(RT(t,e,2,!1),n.add(r))}function h0(e,t,n){var r=0;t&&(r|=4),RT(n,e,r,t)}var qf="_reactListening"+Math.random().toString(36).slice(2);function p0(e){if(!e[qf]){e[qf]=!0,wv.forEach(function(n){n!=="selectionchange"&&(ND.has(n)||h0(n,!1,e),h0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qf]||(t[qf]=!0,h0("selectionchange",!1,t))}}function RT(e,t,n,r){switch(e2(t)){case 2:var i=i5;break;case 8:i=a5;break;default:i=k0}n=i.bind(null,t,n,e),i=void 0,!Pp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function m0(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;o!==null;){if(s=zs(o),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue e}o=o.parentNode}}r=r.return}Bv(function(){var u=a,c=Lp(n),f=[];e:{var d=fx.get(e);if(d!==void 0){var h=rf,g=e;switch(e){case"keypress":if(tf(n)===0)break e;case"keydown":case"keyup":h=SN;break;case"focusin":g="focus",h=jp;break;case"focusout":g="blur",h=jp;break;case"beforeblur":case"afterblur":h=jp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=jv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=hN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=kN;break;case ox:case lx:case ux:h=gN;break;case cx:h=RN;break;case"scroll":case"scrollend":h=fN;break;case"wheel":h=DN;break;case"copy":case"cut":case"paste":h=yN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Hv;break;case"toggle":case"beforetoggle":h=LN}var b=(t&4)!==0,T=!b&&(e==="scroll"||e==="scrollend"),m=b?d!==null?d+"Capture":null:d;b=[];for(var y=u,v;y!==null;){var w=y;if(v=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||v===null||m===null||(w=Nl(y,m),w!=null&&b.push(hu(y,w,v))),T)break;y=y.return}0<b.length&&(d=new h(d,g,null,n,c),f.push({event:d,listeners:b}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Mp&&(g=n.relatedTarget||n.fromElement)&&(zs(g)||g[Us]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?zs(g):null,g!==null&&(T=El(g),b=g.tag,g!==T||b!==5&&b!==27&&b!==6)&&(g=null)):(h=null,g=u),h!==g)){if(b=jv,w="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(b=Hv,w="onPointerLeave",m="onPointerEnter",y="pointer"),T=h==null?d:Rl(h),v=g==null?d:Rl(g),d=new b(w,y+"leave",h,n,c),d.target=T,d.relatedTarget=v,w=null,zs(c)===u&&(b=new b(m,y+"enter",g,n,c),b.target=v,b.relatedTarget=T,w=b),T=w,h&&g)t:{for(b=h,m=g,y=0,v=b;v;v=xo(v))y++;for(v=0,w=m;w;w=xo(w))v++;for(;0<y-v;)b=xo(b),y--;for(;0<v-y;)m=xo(m),v--;for(;y--;){if(b===m||m!==null&&b===m.alternate)break t;b=xo(b),m=xo(m)}b=null}else b=null;h!==null&&NT(f,d,h,b,!1),g!==null&&T!==null&&NT(f,T,g,b,!0)}}e:{if(d=u?Rl(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var _=Wv;else if(Xv(d))if(Qv)_=qN;else{_=HN;var A=FN}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Dp(u.elementType)&&(_=Wv):_=VN;if(_&&(_=_(e,u))){Kv(f,_,n,c);break e}A&&A(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&Np(d,"number",d.value)}switch(A=u?Rl(u):window,e){case"focusin":(Xv(A)||A.contentEditable==="true")&&(Ks=A,Gp=u,zl=null);break;case"focusout":zl=Gp=Ks=null;break;case"mousedown":$p=!0;break;case"contextmenu":case"mouseup":case"dragend":$p=!1,ax(f,n,c);break;case"selectionchange":if(GN)break;case"keydown":case"keyup":ax(f,n,c)}var D;if(Hp)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Xs?Gv(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Vv&&n.locale!=="ko"&&(Xs||L!=="onCompositionStart"?L==="onCompositionEnd"&&Xs&&(D=Uv()):($i=c,Bp="value"in $i?$i.value:$i.textContent,Xs=!0)),A=Yf(u,L),0<A.length&&(L=new Fv(L,e,null,n,c),f.push({event:L,listeners:A}),D?L.data=D:(D=$v(n),D!==null&&(L.data=D)))),(D=PN?BN(e,n):UN(e,n))&&(L=Yf(u,"onBeforeInput"),0<L.length&&(A=new Fv("onBeforeInput","beforeinput",null,n,c),f.push({event:A,listeners:L}),A.data=D)),kD(f,e,u,n,c)}OT(f,t)})}function hu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yf(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Nl(e,n),i!=null&&r.unshift(hu(e,i,a)),i=Nl(e,t),i!=null&&r.push(hu(e,i,a))),e.tag===3)return r;e=e.return}return[]}function xo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function NT(e,t,n,r,i){for(var a=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,u=o.stateNode;if(o=o.tag,l!==null&&l===r)break;o!==5&&o!==26&&o!==27||u===null||(l=u,i?(u=Nl(n,a),u!=null&&s.unshift(hu(n,u,l))):i||(u=Nl(n,a),u!=null&&s.push(hu(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var DD=/\r\n?/g,MD=/\u0000|\uFFFD/g;function DT(e){return(typeof e=="string"?e:""+e).replace(DD,`
49
+ `).replace(MD,"")}function MT(e,t){return t=DT(t),DT(e)===t}function Gf(){}function Je(e,t,n,r,i,a){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ys(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ys(e,""+r);break;case"className":Wc(e,"class",r);break;case"tabIndex":Wc(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Wc(e,n,r);break;case"style":Iv(e,r,a);break;case"data":if(t!=="object"){Wc(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Jc(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&Je(e,t,"name",i.name,i,null),Je(e,t,"formEncType",i.formEncType,i,null),Je(e,t,"formMethod",i.formMethod,i,null),Je(e,t,"formTarget",i.formTarget,i,null)):(Je(e,t,"encType",i.encType,i,null),Je(e,t,"method",i.method,i,null),Je(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Jc(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Gf);break;case"onScroll":r!=null&&De("scroll",e);break;case"onScrollEnd":r!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(Y(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(Y(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Jc(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":De("beforetoggle",e),De("toggle",e),Kc(e,"popover",r);break;case"xlinkActuate":oi(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":oi(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":oi(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":oi(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":oi(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":oi(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":oi(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":oi(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":oi(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Kc(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=uN.get(n)||n,Kc(e,n,r))}}function g0(e,t,n,r,i,a){switch(n){case"style":Iv(e,r,a);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(Y(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(Y(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Ys(e,r):(typeof r=="number"||typeof r=="bigint")&&Ys(e,""+r);break;case"onScroll":r!=null&&De("scroll",e);break;case"onScrollEnd":r!=null&&De("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Gf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_v.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),a=e[Cn]||null,a=a!=null?a[n]:null,typeof a=="function"&&e.removeEventListener(t,a,i),typeof r=="function")){typeof a!="function"&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):Kc(e,n,r)}}}function sn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Y(137,t));default:Je(e,t,a,s,n,null)}}i&&Je(e,t,"srcSet",n.srcSet,n,null),r&&Je(e,t,"src",n.src,n,null);return;case"input":De("invalid",e);var o=a=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var c=n[r];if(c!=null)switch(r){case"name":i=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":a=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(Y(137,t));break;default:Je(e,t,r,c,n,null)}}Nv(e,a,o,l,u,s,i,!1),Qc(e);return;case"select":De("invalid",e),r=s=a=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":a=o;break;case"defaultValue":s=o;break;case"multiple":r=o;default:Je(e,t,i,o,n,null)}t=a,n=s,e.multiple=!!r,t!=null?qs(e,!!r,t,!1):n!=null&&qs(e,!!r,n,!0);return;case"textarea":De("invalid",e),a=i=r=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":r=o;break;case"defaultValue":i=o;break;case"children":a=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(Y(91));break;default:Je(e,t,s,o,n,null)}Mv(e,r,i,a),Qc(e);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Je(e,t,l,r,n,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(r=0;r<du.length;r++)De(du[r],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(Y(137,t));default:Je(e,t,u,r,n,null)}return;default:if(Dp(t)){for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!==void 0&&g0(e,t,c,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&Je(e,t,o,r,n,null))}function LD(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,o=null,l=null,u=null,c=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&f!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=f;default:r.hasOwnProperty(h)||Je(e,t,h,null,r,f)}}for(var d in r){var h=r[d];if(f=n[d],r.hasOwnProperty(d)&&(h!=null||f!=null))switch(d){case"type":a=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":s=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(Y(137,t));break;default:h!==f&&Je(e,t,d,h,r,f)}}Rp(e,s,o,l,u,c,a,i);return;case"select":h=s=o=d=null;for(a in n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case"value":break;case"multiple":h=l;default:r.hasOwnProperty(a)||Je(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case"value":d=a;break;case"defaultValue":o=a;break;case"multiple":s=a;default:a!==l&&Je(e,t,i,a,r,l)}t=o,n=s,r=h,d!=null?qs(e,!!n,d,!1):!!r!=!!n&&(t!=null?qs(e,!!n,t,!0):qs(e,!!n,n?[]:"",!1));return;case"textarea":h=d=null;for(o in n)if(i=n[o],n.hasOwnProperty(o)&&i!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Je(e,t,o,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case"value":d=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(Y(91));break;default:i!==a&&Je(e,t,s,i,r,a)}Dv(e,d,h);return;case"option":for(var g in n)if(d=n[g],n.hasOwnProperty(g)&&d!=null&&!r.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Je(e,t,g,null,r,d)}for(l in r)if(d=r[l],h=n[l],r.hasOwnProperty(l)&&d!==h&&(d!=null||h!=null))switch(l){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Je(e,t,l,d,r,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)d=n[b],n.hasOwnProperty(b)&&d!=null&&!r.hasOwnProperty(b)&&Je(e,t,b,null,r,d);for(u in r)if(d=r[u],h=n[u],r.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(Y(137,t));break;default:Je(e,t,u,d,r,h)}return;default:if(Dp(t)){for(var T in n)d=n[T],n.hasOwnProperty(T)&&d!==void 0&&!r.hasOwnProperty(T)&&g0(e,t,T,void 0,r,d);for(c in r)d=r[c],h=n[c],!r.hasOwnProperty(c)||d===h||d===void 0&&h===void 0||g0(e,t,c,d,r,h);return}}for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!r.hasOwnProperty(m)&&Je(e,t,m,null,r,d);for(f in r)d=r[f],h=n[f],!r.hasOwnProperty(f)||d===h||d==null&&h==null||Je(e,t,f,d,r,h)}var b0=null,y0=null;function $f(e){return e.nodeType===9?e:e.ownerDocument}function LT(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function IT(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function v0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var x0=null;function ID(){var e=window.event;return e&&e.type==="popstate"?e===x0?!1:(x0=e,!0):(x0=null,!1)}var PT=typeof setTimeout=="function"?setTimeout:void 0,PD=typeof clearTimeout=="function"?clearTimeout:void 0,BT=typeof Promise=="function"?Promise:void 0,BD=typeof queueMicrotask=="function"?queueMicrotask:typeof BT<"u"?function(e){return BT.resolve(null).then(e).catch(UD)}:PT;function UD(e){setTimeout(function(){throw e})}function ua(e){return e==="head"}function UT(e,t){var n=t,r=0,i=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(0<r&&8>r){n=r;var s=e.ownerDocument;if(n&1&&pu(s.documentElement),n&2&&pu(s.body),n&4)for(n=s.head,pu(n),s=n.firstChild;s;){var o=s.nextSibling,l=s.nodeName;s[Ol]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=o}}if(i===0){e.removeChild(a),Tu(t);return}i--}else n==="$"||n==="$?"||n==="$!"?i++:r=n.charCodeAt(0)-48;else r=0;n=a}while(n);Tu(t)}function E0(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":E0(n),Ap(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function zD(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Ol])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=Cr(e.nextSibling),e===null)break}return null}function jD(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Cr(e.nextSibling),e===null))return null;return e}function T0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function FD(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Cr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var w0=null;function zT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function jT(e,t,n){switch(t=$f(n),e){case"html":if(e=t.documentElement,!e)throw Error(Y(452));return e;case"head":if(e=t.head,!e)throw Error(Y(453));return e;case"body":if(e=t.body,!e)throw Error(Y(454));return e;default:throw Error(Y(451))}}function pu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ap(e)}var mr=new Map,FT=new Set;function Xf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ei=Ye.d;Ye.d={f:HD,r:VD,D:qD,C:YD,L:GD,m:$D,X:KD,S:XD,M:WD};function HD(){var e=Ei.f(),t=zf();return e||t}function VD(e){var t=js(e);t!==null&&t.tag===5&&t.type==="form"?oE(t):Ei.r(e)}var Eo=typeof document>"u"?null:document;function HT(e,t,n){var r=Eo;if(r&&typeof t=="string"&&t){var i=lr(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),FT.has(i)||(FT.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),sn(t,"link",e),Kt(t),r.head.appendChild(t)))}}function qD(e){Ei.D(e),HT("dns-prefetch",e,null)}function YD(e,t){Ei.C(e,t),HT("preconnect",e,t)}function GD(e,t,n){Ei.L(e,t,n);var r=Eo;if(r&&e&&t){var i='link[rel="preload"][as="'+lr(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+lr(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+lr(n.imageSizes)+'"]')):i+='[href="'+lr(e)+'"]';var a=i;switch(t){case"style":a=To(e);break;case"script":a=wo(e)}mr.has(a)||(e=ut({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),mr.set(a,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(mu(a))||t==="script"&&r.querySelector(gu(a))||(t=r.createElement("link"),sn(t,"link",e),Kt(t),r.head.appendChild(t)))}}function $D(e,t){Ei.m(e,t);var n=Eo;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+lr(r)+'"][href="'+lr(e)+'"]',a=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=wo(e)}if(!mr.has(a)&&(e=ut({rel:"modulepreload",href:e},t),mr.set(a,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gu(a)))return}r=n.createElement("link"),sn(r,"link",e),Kt(r),n.head.appendChild(r)}}}function XD(e,t,n){Ei.S(e,t,n);var r=Eo;if(r&&e){var i=Fs(r).hoistableStyles,a=To(e);t=t||"default";var s=i.get(a);if(!s){var o={loading:0,preload:null};if(s=r.querySelector(mu(a)))o.loading=5;else{e=ut({rel:"stylesheet",href:e,"data-precedence":t},n),(n=mr.get(a))&&_0(e,n);var l=s=r.createElement("link");Kt(l),sn(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Kf(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:o},i.set(a,s)}}}function KD(e,t){Ei.X(e,t);var n=Eo;if(n&&e){var r=Fs(n).hoistableScripts,i=wo(e),a=r.get(i);a||(a=n.querySelector(gu(i)),a||(e=ut({src:e,async:!0},t),(t=mr.get(i))&&S0(e,t),a=n.createElement("script"),Kt(a),sn(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function WD(e,t){Ei.M(e,t);var n=Eo;if(n&&e){var r=Fs(n).hoistableScripts,i=wo(e),a=r.get(i);a||(a=n.querySelector(gu(i)),a||(e=ut({src:e,async:!0,type:"module"},t),(t=mr.get(i))&&S0(e,t),a=n.createElement("script"),Kt(a),sn(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function VT(e,t,n,r){var i=(i=qi.current)?Xf(i):null;if(!i)throw Error(Y(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=To(n.href),n=Fs(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=To(n.href);var a=Fs(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(mu(e)))&&!a._p&&(s.instance=a,s.state.loading=5),mr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mr.set(e,n),a||QD(i,e,n,s.state))),t&&r===null)throw Error(Y(528,""));return s}if(t&&r!==null)throw Error(Y(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wo(n),n=Fs(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(Y(444,e))}}function To(e){return'href="'+lr(e)+'"'}function mu(e){return'link[rel="stylesheet"]['+e+"]"}function qT(e){return ut({},e,{"data-precedence":e.precedence,precedence:null})}function QD(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),sn(t,"link",n),Kt(t),e.head.appendChild(t))}function wo(e){return'[src="'+lr(e)+'"]'}function gu(e){return"script[async]"+e}function YT(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+lr(n.href)+'"]');if(r)return t.instance=r,Kt(r),r;var i=ut({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Kt(r),sn(r,"style",i),Kf(r,n.precedence,e),t.instance=r;case"stylesheet":i=To(n.href);var a=e.querySelector(mu(i));if(a)return t.state.loading|=4,t.instance=a,Kt(a),a;r=qT(n),(i=mr.get(i))&&_0(r,i),a=(e.ownerDocument||e).createElement("link"),Kt(a);var s=a;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),sn(a,"link",r),t.state.loading|=4,Kf(a,n.precedence,e),t.instance=a;case"script":return a=wo(n.src),(i=e.querySelector(gu(a)))?(t.instance=i,Kt(i),i):(r=n,(i=mr.get(a))&&(r=ut({},n),S0(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),Kt(i),sn(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(Y(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,a=i,s=0;s<r.length;s++){var o=r[s];if(o.dataset.precedence===t)a=o;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function _0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function S0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wf=null;function GT(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Ol]||a[cn]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var s=a.getAttribute(t)||"";s=e+s;var o=r.get(s);o?o.push(a):r.set(s,[a])}}return r}function $T(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ZD(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function XT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var bu=null;function JD(){}function e5(e,t,n){if(bu===null)throw Error(Y(475));var r=bu;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var i=To(n.href),a=e.querySelector(mu(i));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=Qf.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,Kt(a);return}a=e.ownerDocument||e,n=qT(n),(i=mr.get(i))&&_0(n,i),a=a.createElement("link"),Kt(a);var s=a;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),sn(a,"link",n),t.instance=a}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=Qf.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function t5(){if(bu===null)throw Error(Y(475));var e=bu;return e.stylesheets&&e.count===0&&A0(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&A0(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Qf(){if(this.count--,this.count===0){if(this.stylesheets)A0(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function A0(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach(n5,e),Zf=null,Qf.call(e))}function n5(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var s=i[a];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}i=t.instance,s=i.getAttribute("data-precedence"),a=n.get(s)||r,a===r&&n.set(null,i),n.set(s,i),this.count++,r=Qf.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var yu={$$typeof:si,Provider:null,Consumer:null,_currentValue:Ha,_currentValue2:Ha,_threadCount:0};function r5(e,t,n,r,i,a,s,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Tp(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tp(0),this.hiddenUpdates=Tp(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function KT(e,t,n,r,i,a,s,o,l,u,c,f){return e=new r5(e,t,n,s,o,l,u,f),t=1,a===!0&&(t|=24),a=Hn(3,null,null,t),e.current=a,a.stateNode=e,t=om(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},fm(a),e}function WT(e){return e?(e=Js,e):Js}function QT(e,t,n,r,i,a){i=WT(i),r.context===null?r.context=i:r.pendingContext=i,r=Wi(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Qi(e,r,t),n!==null&&($n(n,e,t),Xl(n,e,t))}function ZT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function C0(e,t){ZT(e,t),(e=e.alternate)&&ZT(e,t)}function JT(e){if(e.tag===13){var t=Zs(e,67108864);t!==null&&$n(t,e,67108864),C0(e,67108864)}}var Jf=!0;function i5(e,t,n,r){var i=ge.T;ge.T=null;var a=Ye.p;try{Ye.p=2,k0(e,t,n,r)}finally{Ye.p=a,ge.T=i}}function a5(e,t,n,r){var i=ge.T;ge.T=null;var a=Ye.p;try{Ye.p=8,k0(e,t,n,r)}finally{Ye.p=a,ge.T=i}}function k0(e,t,n,r){if(Jf){var i=O0(r);if(i===null)m0(e,t,r,ed,n),t2(e,r);else if(o5(i,e,t,n,r))r.stopPropagation();else if(t2(e,r),t&4&&-1<s5.indexOf(e)){for(;i!==null;){var a=js(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=Va(a.pendingLanes);if(s!==0){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-jn(s);o.entanglements[1]|=l,s&=~l}qr(a),!(Ke&6)&&(Bf=zr()+500,fu(0))}}break;case 13:o=Zs(a,2),o!==null&&$n(o,a,2),zf(),C0(a,2)}if(a=O0(r),a===null&&m0(e,t,r,ed,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else m0(e,t,r,null,n)}}function O0(e){return e=Lp(e),R0(e)}var ed=null;function R0(e){if(ed=null,e=zs(e),e!==null){var t=El(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=lv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ed=e,null}function e2(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Y4()){case pv:return 2;case mv:return 8;case Yc:case G4:return 32;case gv:return 268435456;default:return 32}default:return 32}}var N0=!1,ca=null,fa=null,da=null,vu=new Map,xu=new Map,ha=[],s5="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".split(" ");function t2(e,t){switch(e){case"focusin":case"focusout":ca=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":vu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xu.delete(t.pointerId)}}function Eu(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=js(t),t!==null&&JT(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function o5(e,t,n,r,i){switch(t){case"focusin":return ca=Eu(ca,e,t,n,r,i),!0;case"dragenter":return fa=Eu(fa,e,t,n,r,i),!0;case"mouseover":return da=Eu(da,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return vu.set(a,Eu(vu.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,xu.set(a,Eu(xu.get(a)||null,e,t,n,r,i)),!0}return!1}function n2(e){var t=zs(e.target);if(t!==null){var n=El(t);if(n!==null){if(t=n.tag,t===13){if(t=lv(n),t!==null){e.blockedOn=t,eN(e.priority,function(){if(n.tag===13){var r=Gn();r=wp(r);var i=Zs(n,r);i!==null&&$n(i,n,r),C0(n,r)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function td(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=O0(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mp=r,n.target.dispatchEvent(r),Mp=null}else return t=js(n),t!==null&&JT(t),e.blockedOn=n,!1;t.shift()}return!0}function r2(e,t,n){td(e)&&n.delete(t)}function l5(){N0=!1,ca!==null&&td(ca)&&(ca=null),fa!==null&&td(fa)&&(fa=null),da!==null&&td(da)&&(da=null),vu.forEach(r2),xu.forEach(r2)}function nd(e,t){e.blockedOn===t&&(e.blockedOn=null,N0||(N0=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,l5)))}var rd=null;function i2(e){rd!==e&&(rd=e,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,function(){rd===e&&(rd=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(R0(r||n)===null)continue;break}var a=js(n);a!==null&&(e.splice(t,3),t-=3,Rm(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Tu(e){function t(l){return nd(l,e)}ca!==null&&nd(ca,e),fa!==null&&nd(fa,e),da!==null&&nd(da,e),vu.forEach(t),xu.forEach(t);for(var n=0;n<ha.length;n++){var r=ha[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ha.length&&(n=ha[0],n.blockedOn===null);)n2(n),n.blockedOn===null&&ha.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],s=i[Cn]||null;if(typeof a=="function")s||i2(n);else if(s){var o=null;if(a&&a.hasAttribute("formAction")){if(i=a,s=a[Cn]||null)o=s.formAction;else if(R0(i)!==null)continue}else o=s.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),i2(n)}}}function D0(e){this._internalRoot=e}id.prototype.render=D0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Y(409));var n=t.current,r=Gn();QT(n,r,e,t,null,null)},id.prototype.unmount=D0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;QT(e.current,2,null,e,null,null),zf(),t[Us]=null}};function id(e){this._internalRoot=e}id.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ev();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ha.length&&t!==0&&t<ha[n].priority;n++);ha.splice(n,0,e),n===0&&n2(e)}};var a2=sv.version;if(a2!=="19.1.1")throw Error(Y(527,a2,"19.1.1"));Ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Y(188)):(e=Object.keys(e).join(","),Error(Y(268,e)));return e=U4(t),e=e!==null?cv(e):null,e=e===null?null:e.stateNode,e};var u5={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:ge,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ad=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ad.isDisabled&&ad.supportsFiber)try{Al=ad.inject(u5),zn=ad}catch{}}zc.createRoot=function(e,t){if(!ov(e))throw Error(Y(299));var n=!1,r="",i=EE,a=TE,s=wE,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=KT(e,1,!1,null,null,n,r,i,a,s,o,null),e[Us]=t.current,p0(e),new D0(t)},zc.hydrateRoot=function(e,t,n){if(!ov(e))throw Error(Y(299));var r=!1,i="",a=EE,s=TE,o=wE,l=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(l=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=KT(e,1,!0,t,n??null,r,i,a,s,o,l,u),t.context=WT(null),n=t.current,r=Gn(),r=wp(r),i=Wi(r),i.callback=null,Qi(n,i,r),n=r,t.current.lanes=n,kl(t,n),qr(t),e[Us]=t.current,p0(e),new id(t)},zc.version="19.1.1";function s2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s2)}catch(e){console.error(e)}}s2(),ev.exports=zc;var c5=ev.exports;const f5="4.0.0";function Vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function o2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function l2(...e){return t=>{let n=!1;const r=e.map(i=>{const a=o2(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():o2(e[i],null)}}}}function Xn(...e){return E.useCallback(l2(...e),e)}function d5(e,t){const n=E.createContext(t),r=a=>{const{children:s,...o}=a,l=E.useMemo(()=>o,Object.values(o));return x.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function i(a){const s=E.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,i]}function wu(e,t=[]){let n=[];function r(a,s){const o=E.createContext(s),l=n.length;n=[...n,s];const u=f=>{var m;const{scope:d,children:h,...g}=f,b=((m=d==null?void 0:d[e])==null?void 0:m[l])||o,T=E.useMemo(()=>g,Object.values(g));return x.jsx(b.Provider,{value:T,children:h})};u.displayName=a+"Provider";function c(f,d){var b;const h=((b=d==null?void 0:d[e])==null?void 0:b[l])||o,g=E.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,c]}const i=()=>{const a=n.map(s=>E.createContext(s));return function(o){const l=(o==null?void 0:o[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[r,h5(i,...t)]}function h5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=r.reduce((o,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...o,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function sd(e){const t=m5(e),n=E.forwardRef((r,i)=>{const{children:a,...s}=r,o=E.Children.toArray(a),l=o.find(b5);if(l){const u=l.props.children,c=o.map(f=>f===l?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return x.jsx(t,{...s,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,c):null})}return x.jsx(t,{...s,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var p5=sd("Slot");function m5(e){const t=E.forwardRef((n,r)=>{const{children:i,...a}=n;if(E.isValidElement(i)){const s=v5(i),o=y5(a,i.props);return i.type!==E.Fragment&&(o.ref=r?l2(r,s):s),E.cloneElement(i,o)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u2=Symbol("radix.slottable");function g5(e){const t=({children:n})=>x.jsx(x.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=u2,t}function b5(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u2}function y5(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...o)=>{const l=a(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function v5(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=x5.reduce((e,t)=>{const n=sd(`Primitive.${t}`),r=E.forwardRef((i,a)=>{const{asChild:s,...o}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(l,{...o,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function E5(e,t){e&&Ls.flushSync(()=>e.dispatchEvent(t))}function os(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function T5(e,t=globalThis==null?void 0:globalThis.document){const n=os(e);E.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var w5="DismissableLayer",M0="dismissableLayer.update",_5="dismissableLayer.pointerDownOutside",S5="dismissableLayer.focusOutside",c2,f2=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),od=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,u=E.useContext(f2),[c,f]=E.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=E.useState({}),g=Xn(t,D=>f(D)),b=Array.from(u.layers),[T]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(T),y=c?b.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,w=y>=m,_=k5(D=>{const L=D.target,U=[...u.branches].some(R=>R.contains(L));!w||U||(i==null||i(D),s==null||s(D),D.defaultPrevented||o==null||o())},d),A=O5(D=>{const L=D.target;[...u.branches].some(R=>R.contains(L))||(a==null||a(D),s==null||s(D),D.defaultPrevented||o==null||o())},d);return T5(D=>{y===u.layers.size-1&&(r==null||r(D),!D.defaultPrevented&&o&&(D.preventDefault(),o()))},d),E.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(c2=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),d2(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=c2)}},[c,d,n,u]),E.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),d2())},[c,u]),E.useEffect(()=>{const D=()=>h({});return document.addEventListener(M0,D),()=>document.removeEventListener(M0,D)},[]),x.jsx(Zt.div,{...l,ref:g,style:{pointerEvents:v?w?"auto":"none":void 0,...e.style},onFocusCapture:Vt(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Vt(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Vt(e.onPointerDownCapture,_.onPointerDownCapture)})});od.displayName=w5;var A5="DismissableLayerBranch",C5=E.forwardRef((e,t)=>{const n=E.useContext(f2),r=E.useRef(null),i=Xn(t,r);return E.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),x.jsx(Zt.div,{...e,ref:i})});C5.displayName=A5;function k5(e,t=globalThis==null?void 0:globalThis.document){const n=os(e),r=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const a=o=>{if(o.target&&!r.current){let l=function(){h2(_5,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function O5(e,t=globalThis==null?void 0:globalThis.document){const n=os(e),r=E.useRef(!1);return E.useEffect(()=>{const i=a=>{a.target&&!r.current&&h2(S5,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function d2(){const e=new CustomEvent(M0);document.dispatchEvent(e)}function h2(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?E5(i,a):i.dispatchEvent(a)}var L0=0;function p2(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??m2()),document.body.insertAdjacentElement("beforeend",e[1]??m2()),L0++,()=>{L0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),L0--}},[])}function m2(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var I0="focusScope.autoFocusOnMount",P0="focusScope.autoFocusOnUnmount",g2={bubbles:!1,cancelable:!0},R5="FocusScope",B0=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[o,l]=E.useState(null),u=os(i),c=os(a),f=E.useRef(null),d=Xn(t,b=>l(b)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let b=function(v){if(h.paused||!o)return;const w=v.target;o.contains(w)?f.current=w:pa(f.current,{select:!0})},T=function(v){if(h.paused||!o)return;const w=v.relatedTarget;w!==null&&(o.contains(w)||pa(f.current,{select:!0}))},m=function(v){if(document.activeElement===document.body)for(const _ of v)_.removedNodes.length>0&&pa(o)};document.addEventListener("focusin",b),document.addEventListener("focusout",T);const y=new MutationObserver(m);return o&&y.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",T),y.disconnect()}}},[r,o,h.paused]),E.useEffect(()=>{if(o){v2.add(h);const b=document.activeElement;if(!o.contains(b)){const m=new CustomEvent(I0,g2);o.addEventListener(I0,u),o.dispatchEvent(m),m.defaultPrevented||(N5(P5(b2(o)),{select:!0}),document.activeElement===b&&pa(o))}return()=>{o.removeEventListener(I0,u),setTimeout(()=>{const m=new CustomEvent(P0,g2);o.addEventListener(P0,c),o.dispatchEvent(m),m.defaultPrevented||pa(b??document.body,{select:!0}),o.removeEventListener(P0,c),v2.remove(h)},0)}}},[o,u,c,h]);const g=E.useCallback(b=>{if(!n&&!r||h.paused)return;const T=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,m=document.activeElement;if(T&&m){const y=b.currentTarget,[v,w]=D5(y);v&&w?!b.shiftKey&&m===w?(b.preventDefault(),n&&pa(v,{select:!0})):b.shiftKey&&m===v&&(b.preventDefault(),n&&pa(w,{select:!0})):m===y&&b.preventDefault()}},[n,r,h.paused]);return x.jsx(Zt.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});B0.displayName=R5;function N5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(pa(r,{select:t}),document.activeElement!==n)return}function D5(e){const t=b2(e),n=y2(t,e),r=y2(t.reverse(),e);return[n,r]}function b2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function y2(e,t){for(const n of e)if(!M5(n,{upTo:t}))return n}function M5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function L5(e){return e instanceof HTMLInputElement&&"select"in e}function pa(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&L5(e)&&t&&e.select()}}var v2=I5();function I5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=x2(e,t),e.unshift(t)},remove(t){var n;e=x2(e,t),(n=e[0])==null||n.resume()}}}function x2(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function P5(e){return e.filter(t=>t.tagName!=="A")}var Yr=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},B5=Jy[" useId ".trim().toString()]||(()=>{}),U5=0;function _u(e){const[t,n]=E.useState(B5());return Yr(()=>{n(r=>r??String(U5++))},[e]),e||(t?`radix-${t}`:"")}const z5=["top","right","bottom","left"],ma=Math.min,Kn=Math.max,ld=Math.round,ud=Math.floor,Gr=e=>({x:e,y:e}),j5={left:"right",right:"left",bottom:"top",top:"bottom"},F5={start:"end",end:"start"};function U0(e,t,n){return Kn(e,ma(t,n))}function Ti(e,t){return typeof e=="function"?e(t):e}function wi(e){return e.split("-")[0]}function _o(e){return e.split("-")[1]}function z0(e){return e==="x"?"y":"x"}function j0(e){return e==="y"?"height":"width"}const H5=new Set(["top","bottom"]);function $r(e){return H5.has(wi(e))?"y":"x"}function F0(e){return z0($r(e))}function V5(e,t,n){n===void 0&&(n=!1);const r=_o(e),i=F0(e),a=j0(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=cd(s)),[s,cd(s)]}function q5(e){const t=cd(e);return[H0(e),t,H0(t)]}function H0(e){return e.replace(/start|end/g,t=>F5[t])}const E2=["left","right"],T2=["right","left"],Y5=["top","bottom"],G5=["bottom","top"];function $5(e,t,n){switch(e){case"top":case"bottom":return n?t?T2:E2:t?E2:T2;case"left":case"right":return t?Y5:G5;default:return[]}}function X5(e,t,n,r){const i=_o(e);let a=$5(wi(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(H0)))),a}function cd(e){return e.replace(/left|right|bottom|top/g,t=>j5[t])}function K5(e){return{top:0,right:0,bottom:0,left:0,...e}}function w2(e){return typeof e!="number"?K5(e):{top:e,right:e,bottom:e,left:e}}function fd(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _2(e,t,n){let{reference:r,floating:i}=e;const a=$r(t),s=F0(t),o=j0(s),l=wi(t),u=a==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[o]/2-i[o]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(_o(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}const W5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=_2(u,r,l),d=r,h={},g=0;for(let b=0;b<o.length;b++){const{name:T,fn:m}=o[b],{x:y,y:v,data:w,reset:_}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=y??c,f=v??f,h={...h,[T]:{...h[T],...w}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(u=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:f}=_2(u,d,l)),b=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:h}};async function Su(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Ti(t,e),g=w2(h),T=o[d?f==="floating"?"reference":"floating":f],m=fd(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(T)))==null||n?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),y=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),w=await(a.isElement==null?void 0:a.isElement(v))?await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1}:{x:1,y:1},_=fd(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:v,strategy:l}):y);return{top:(m.top-_.top+g.top)/w.y,bottom:(_.bottom-m.bottom+g.bottom)/w.y,left:(m.left-_.left+g.left)/w.x,right:(_.right-m.right+g.right)/w.x}}const Q5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=Ti(e,t)||{};if(u==null)return{};const f=w2(c),d={x:n,y:r},h=F0(i),g=j0(h),b=await s.getDimensions(u),T=h==="y",m=T?"top":"left",y=T?"bottom":"right",v=T?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[h]-d[h]-a.floating[g],_=d[h]-a.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let D=A?A[v]:0;(!D||!await(s.isElement==null?void 0:s.isElement(A)))&&(D=o.floating[v]||a.floating[g]);const L=w/2-_/2,U=D/2-b[g]/2-1,R=ma(f[m],U),q=ma(f[y],U),F=R,ne=D-b[g]-q,K=D/2-b[g]/2+L,W=U0(F,K,ne),H=!l.arrow&&_o(i)!=null&&K!==W&&a.reference[g]/2-(K<F?R:q)-b[g]/2<0,V=H?K<F?K-F:K-ne:0;return{[h]:d[h]+V,data:{[h]:W,centerOffset:K-W-V,...H&&{alignmentOffset:V}},reset:H}}}),Z5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...T}=Ti(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const m=wi(i),y=$r(o),v=wi(o)===o,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=d||(v||!b?[cd(o)]:q5(o)),A=g!=="none";!d&&A&&_.push(...X5(o,b,g,w));const D=[o,..._],L=await Su(t,T),U=[];let R=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&U.push(L[m]),f){const K=V5(i,s,w);U.push(L[K[0]],L[K[1]])}if(R=[...R,{placement:i,overflows:U}],!U.every(K=>K<=0)){var q,F;const K=(((q=a.flip)==null?void 0:q.index)||0)+1,W=D[K];if(W&&(!(f==="alignment"?y!==$r(W):!1)||R.every(j=>$r(j.placement)===y?j.overflows[0]>0:!0)))return{data:{index:K,overflows:R},reset:{placement:W}};let H=(F=R.filter(V=>V.overflows[0]<=0).sort((V,j)=>V.overflows[1]-j.overflows[1])[0])==null?void 0:F.placement;if(!H)switch(h){case"bestFit":{var ne;const V=(ne=R.filter(j=>{if(A){const te=$r(j.placement);return te===y||te==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(te=>te>0).reduce((te,O)=>te+O,0)]).sort((j,te)=>j[1]-te[1])[0])==null?void 0:ne[0];V&&(H=V);break}case"initialPlacement":H=o;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function S2(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A2(e){return z5.some(t=>e[t]>=0)}const J5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ti(e,t);switch(r){case"referenceHidden":{const a=await Su(t,{...i,elementContext:"reference"}),s=S2(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:A2(s)}}}case"escaped":{const a=await Su(t,{...i,altBoundary:!0}),s=S2(a,n.floating);return{data:{escapedOffsets:s,escaped:A2(s)}}}default:return{}}}}},C2=new Set(["left","top"]);async function eM(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=wi(n),o=_o(n),l=$r(n)==="y",u=C2.has(s)?-1:1,c=a&&l?-1:1,f=Ti(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const tM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:o}=t,l=await eM(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}}},nM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:T=>{let{x:m,y}=T;return{x:m,y}}},...l}=Ti(e,t),u={x:n,y:r},c=await Su(t,l),f=$r(wi(i)),d=z0(f);let h=u[d],g=u[f];if(a){const T=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=h+c[T],v=h-c[m];h=U0(y,h,v)}if(s){const T=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=g+c[T],v=g-c[m];g=U0(y,g,v)}const b=o.fn({...t,[d]:h,[f]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[d]:a,[f]:s}}}}}},rM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:s}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=Ti(e,t),c={x:n,y:r},f=$r(i),d=z0(f);let h=c[d],g=c[f];const b=Ti(o,t),T=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const v=d==="y"?"height":"width",w=a.reference[d]-a.floating[v]+T.mainAxis,_=a.reference[d]+a.reference[v]-T.mainAxis;h<w?h=w:h>_&&(h=_)}if(u){var m,y;const v=d==="y"?"width":"height",w=C2.has(wi(i)),_=a.reference[f]-a.floating[v]+(w&&((m=s.offset)==null?void 0:m[f])||0)+(w?0:T.crossAxis),A=a.reference[f]+a.reference[v]+(w?0:((y=s.offset)==null?void 0:y[f])||0)-(w?T.crossAxis:0);g<_?g=_:g>A&&(g=A)}return{[d]:h,[f]:g}}}},iM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:s,elements:o}=t,{apply:l=()=>{},...u}=Ti(e,t),c=await Su(t,u),f=wi(i),d=_o(i),h=$r(i)==="y",{width:g,height:b}=a.floating;let T,m;f==="top"||f==="bottom"?(T=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(m=f,T=d==="end"?"top":"bottom");const y=b-c.top-c.bottom,v=g-c.left-c.right,w=ma(b-c[T],y),_=ma(g-c[m],v),A=!t.middlewareData.shift;let D=w,L=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=y),A&&!d){const R=Kn(c.left,0),q=Kn(c.right,0),F=Kn(c.top,0),ne=Kn(c.bottom,0);h?L=g-2*(R!==0||q!==0?R+q:Kn(c.left,c.right)):D=b-2*(F!==0||ne!==0?F+ne:Kn(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:D});const U=await s.getDimensions(o.floating);return g!==U.width||b!==U.height?{reset:{rects:!0}}:{}}}};function dd(){return typeof window<"u"}function So(e){return k2(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xr(e){var t;return(t=(k2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function k2(e){return dd()?e instanceof Node||e instanceof Wn(e).Node:!1}function kr(e){return dd()?e instanceof Element||e instanceof Wn(e).Element:!1}function Kr(e){return dd()?e instanceof HTMLElement||e instanceof Wn(e).HTMLElement:!1}function O2(e){return!dd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot}const aM=new Set(["inline","contents"]);function Au(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Or(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!aM.has(i)}const sM=new Set(["table","td","th"]);function oM(e){return sM.has(So(e))}const lM=[":popover-open",":modal"];function hd(e){return lM.some(t=>{try{return e.matches(t)}catch{return!1}})}const uM=["transform","translate","scale","rotate","perspective"],cM=["transform","translate","scale","rotate","perspective","filter"],fM=["paint","layout","strict","content"];function V0(e){const t=q0(),n=kr(e)?Or(e):e;return uM.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)||cM.some(r=>(n.willChange||"").includes(r))||fM.some(r=>(n.contain||"").includes(r))}function dM(e){let t=ga(e);for(;Kr(t)&&!Ao(t);){if(V0(t))return t;if(hd(t))return null;t=ga(t)}return null}function q0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hM=new Set(["html","body","#document"]);function Ao(e){return hM.has(So(e))}function Or(e){return Wn(e).getComputedStyle(e)}function pd(e){return kr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ga(e){if(So(e)==="html")return e;const t=e.assignedSlot||e.parentNode||O2(e)&&e.host||Xr(e);return O2(t)?t.host:t}function R2(e){const t=ga(e);return Ao(t)?e.ownerDocument?e.ownerDocument.body:e.body:Kr(t)&&Au(t)?t:R2(t)}function Cu(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=R2(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Wn(i);if(a){const o=Y0(s);return t.concat(s,s.visualViewport||[],Au(i)?i:[],o&&n?Cu(o):[])}return t.concat(i,Cu(i,[],n))}function Y0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function N2(e){const t=Or(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Kr(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,o=ld(n)!==a||ld(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function G0(e){return kr(e)?e:e.contextElement}function Co(e){const t=G0(e);if(!Kr(t))return Gr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=N2(t);let s=(a?ld(n.width):n.width)/r,o=(a?ld(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const pM=Gr(0);function D2(e){const t=Wn(e);return!q0()||!t.visualViewport?pM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wn(e)?!1:t}function ls(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=G0(e);let s=Gr(1);t&&(r?kr(r)&&(s=Co(r)):s=Co(e));const o=mM(a,n,r)?D2(a):Gr(0);let l=(i.left+o.x)/s.x,u=(i.top+o.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(a){const d=Wn(a),h=r&&kr(r)?Wn(r):r;let g=d,b=Y0(g);for(;b&&r&&h!==g;){const T=Co(b),m=b.getBoundingClientRect(),y=Or(b),v=m.left+(b.clientLeft+parseFloat(y.paddingLeft))*T.x,w=m.top+(b.clientTop+parseFloat(y.paddingTop))*T.y;l*=T.x,u*=T.y,c*=T.x,f*=T.y,l+=v,u+=w,g=Wn(b),b=Y0(g)}}return fd({width:c,height:f,x:l,y:u})}function $0(e,t){const n=pd(e).scrollLeft;return t?t.left+n:ls(Xr(e)).left+n}function M2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:$0(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function gM(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=Xr(r),o=t?hd(t.floating):!1;if(r===s||o&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Gr(1);const c=Gr(0),f=Kr(r);if((f||!f&&!a)&&((So(r)!=="body"||Au(s))&&(l=pd(r)),Kr(r))){const h=ls(r);u=Co(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const d=s&&!f&&!a?M2(s,l,!0):Gr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function bM(e){return Array.from(e.getClientRects())}function yM(e){const t=Xr(e),n=pd(e),r=e.ownerDocument.body,i=Kn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Kn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+$0(e);const o=-n.scrollTop;return Or(r).direction==="rtl"&&(s+=Kn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:o}}function vM(e,t){const n=Wn(e),r=Xr(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;const u=q0();(!u||u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o,y:l}}const xM=new Set(["absolute","fixed"]);function EM(e,t){const n=ls(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Kr(e)?Co(e):Gr(1),s=e.clientWidth*a.x,o=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:s,height:o,x:l,y:u}}function L2(e,t,n){let r;if(t==="viewport")r=vM(e,n);else if(t==="document")r=yM(Xr(e));else if(kr(t))r=EM(t,n);else{const i=D2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return fd(r)}function I2(e,t){const n=ga(e);return n===t||!kr(n)||Ao(n)?!1:Or(n).position==="fixed"||I2(n,t)}function TM(e,t){const n=t.get(e);if(n)return n;let r=Cu(e,[],!1).filter(o=>kr(o)&&So(o)!=="body"),i=null;const a=Or(e).position==="fixed";let s=a?ga(e):e;for(;kr(s)&&!Ao(s);){const o=Or(s),l=V0(s);!l&&o.position==="fixed"&&(i=null),(a?!l&&!i:!l&&o.position==="static"&&!!i&&xM.has(i.position)||Au(s)&&!l&&I2(e,s))?r=r.filter(c=>c!==s):i=o,s=ga(s)}return t.set(e,r),r}function wM(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?hd(t)?[]:TM(t,this._c):[].concat(n),r],o=s[0],l=s.reduce((u,c)=>{const f=L2(t,c,i);return u.top=Kn(f.top,u.top),u.right=ma(f.right,u.right),u.bottom=ma(f.bottom,u.bottom),u.left=Kn(f.left,u.left),u},L2(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _M(e){const{width:t,height:n}=N2(e);return{width:t,height:n}}function SM(e,t,n){const r=Kr(t),i=Xr(t),a=n==="fixed",s=ls(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const l=Gr(0);function u(){l.x=$0(i)}if(r||!r&&!a)if((So(t)!=="body"||Au(i))&&(o=pd(t)),r){const h=ls(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&u();a&&!r&&i&&u();const c=i&&!r&&!a?M2(i,o):Gr(0),f=s.left+o.scrollLeft-l.x-c.x,d=s.top+o.scrollTop-l.y-c.y;return{x:f,y:d,width:s.width,height:s.height}}function X0(e){return Or(e).position==="static"}function P2(e,t){if(!Kr(e)||Or(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xr(e)===n&&(n=n.ownerDocument.body),n}function B2(e,t){const n=Wn(e);if(hd(e))return n;if(!Kr(e)){let i=ga(e);for(;i&&!Ao(i);){if(kr(i)&&!X0(i))return i;i=ga(i)}return n}let r=P2(e,t);for(;r&&oM(r)&&X0(r);)r=P2(r,t);return r&&Ao(r)&&X0(r)&&!V0(r)?n:r||dM(e)||n}const AM=async function(e){const t=this.getOffsetParent||B2,n=this.getDimensions,r=await n(e.floating);return{reference:SM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function CM(e){return Or(e).direction==="rtl"}const kM={convertOffsetParentRelativeRectToViewportRelativeRect:gM,getDocumentElement:Xr,getClippingRect:wM,getOffsetParent:B2,getElementRects:AM,getClientRects:bM,getDimensions:_M,getScale:Co,isElement:kr,isRTL:CM};function U2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OM(e,t){let n=null,r;const i=Xr(e);function a(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=u;if(o||t(),!d||!h)return;const g=ud(f),b=ud(i.clientWidth-(c+d)),T=ud(i.clientHeight-(f+h)),m=ud(c),v={rootMargin:-g+"px "+-b+"px "+-T+"px "+-m+"px",threshold:Kn(0,ma(1,l))||1};let w=!0;function _(A){const D=A[0].intersectionRatio;if(D!==l){if(!w)return s();D?s(!1,D):r=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!U2(u,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(_,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,v)}n.observe(e)}return s(!0),a}function RM(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=G0(e),c=i||a?[...u?Cu(u):[],...Cu(t)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),a&&m.addEventListener("resize",n)});const f=u&&o?OM(u,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,b=l?ls(e):null;l&&T();function T(){const m=ls(e);b&&!U2(b,m)&&n(),b=m,g=requestAnimationFrame(T)}return n(),()=>{var m;c.forEach(y=>{i&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f==null||f(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const NM=tM,DM=nM,MM=Z5,LM=iM,IM=J5,z2=Q5,PM=rM,BM=(e,t,n)=>{const r=new Map,i={platform:kM,...n},a={...i.platform,_c:r};return W5(e,t,{...i,platform:a})};var UM=typeof document<"u",zM=function(){},md=UM?E.useLayoutEffect:zM;function gd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!gd(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!gd(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function j2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function F2(e,t){const n=j2(e);return Math.round(t*n)/n}function K0(e){const t=E.useRef(e);return md(()=>{t.current=e}),t}function jM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[c,f]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(r);gd(d,r)||h(r);const[g,b]=E.useState(null),[T,m]=E.useState(null),y=E.useCallback(j=>{j!==A.current&&(A.current=j,b(j))},[]),v=E.useCallback(j=>{j!==D.current&&(D.current=j,m(j))},[]),w=a||g,_=s||T,A=E.useRef(null),D=E.useRef(null),L=E.useRef(c),U=l!=null,R=K0(l),q=K0(i),F=K0(u),ne=E.useCallback(()=>{if(!A.current||!D.current)return;const j={placement:t,strategy:n,middleware:d};q.current&&(j.platform=q.current),BM(A.current,D.current,j).then(te=>{const O={...te,isPositioned:F.current!==!1};K.current&&!gd(L.current,O)&&(L.current=O,Ls.flushSync(()=>{f(O)}))})},[d,t,n,q,F]);md(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,f(j=>({...j,isPositioned:!1})))},[u]);const K=E.useRef(!1);md(()=>(K.current=!0,()=>{K.current=!1}),[]),md(()=>{if(w&&(A.current=w),_&&(D.current=_),w&&_){if(R.current)return R.current(w,_,ne);ne()}},[w,_,ne,R,U]);const W=E.useMemo(()=>({reference:A,floating:D,setReference:y,setFloating:v}),[y,v]),H=E.useMemo(()=>({reference:w,floating:_}),[w,_]),V=E.useMemo(()=>{const j={position:n,left:0,top:0};if(!H.floating)return j;const te=F2(H.floating,c.x),O=F2(H.floating,c.y);return o?{...j,transform:"translate("+te+"px, "+O+"px)",...j2(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:O}},[n,o,H.floating,c.x,c.y]);return E.useMemo(()=>({...c,update:ne,refs:W,elements:H,floatingStyles:V}),[c,ne,W,H,V])}const FM=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?z2({element:r.current,padding:i}).fn(n):{}:r?z2({element:r,padding:i}).fn(n):{}}}},HM=(e,t)=>({...NM(e),options:[e,t]}),VM=(e,t)=>({...DM(e),options:[e,t]}),qM=(e,t)=>({...PM(e),options:[e,t]}),YM=(e,t)=>({...MM(e),options:[e,t]}),GM=(e,t)=>({...LM(e),options:[e,t]}),$M=(e,t)=>({...IM(e),options:[e,t]}),XM=(e,t)=>({...FM(e),options:[e,t]});var KM="Arrow",H2=E.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return x.jsx(Zt.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});H2.displayName=KM;var WM=H2;function QM(e){const[t,n]=E.useState(void 0);return Yr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let s,o;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,o=u.blockSize}else s=e.offsetWidth,o=e.offsetHeight;n({width:s,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var W0="Popper",[V2,bd]=wu(W0),[ZM,q2]=V2(W0),Y2=e=>{const{__scopePopper:t,children:n}=e,[r,i]=E.useState(null);return x.jsx(ZM,{scope:t,anchor:r,onAnchorChange:i,children:n})};Y2.displayName=W0;var G2="PopperAnchor",$2=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=q2(G2,n),s=E.useRef(null),o=Xn(t,s);return E.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:x.jsx(Zt.div,{...i,ref:o})});$2.displayName=G2;var Q0="PopperContent",[JM,eL]=V2(Q0),X2=E.forwardRef((e,t)=>{var Gt,Qe,Ut,lt,Dt,$t;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:g,...b}=e,T=q2(Q0,n),[m,y]=E.useState(null),v=Xn(t,ye=>y(ye)),[w,_]=E.useState(null),A=QM(w),D=(A==null?void 0:A.width)??0,L=(A==null?void 0:A.height)??0,U=r+(a!=="center"?"-"+a:""),R=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},q=Array.isArray(u)?u:[u],F=q.length>0,ne={padding:R,boundary:q.filter(nL),altBoundary:F},{refs:K,floatingStyles:W,placement:H,isPositioned:V,middlewareData:j}=jM({strategy:"fixed",placement:U,whileElementsMounted:(...ye)=>RM(...ye,{animationFrame:h==="always"}),elements:{reference:T.anchor},middleware:[HM({mainAxis:i+L,alignmentAxis:s}),l&&VM({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?qM():void 0,...ne}),l&&YM({...ne}),GM({...ne,apply:({elements:ye,rects:Ie,availableWidth:$e,availableHeight:Re})=>{const{width:et,height:At}=Ie.reference,Be=ye.floating.style;Be.setProperty("--radix-popper-available-width",`${$e}px`),Be.setProperty("--radix-popper-available-height",`${Re}px`),Be.setProperty("--radix-popper-anchor-width",`${et}px`),Be.setProperty("--radix-popper-anchor-height",`${At}px`)}}),w&&XM({element:w,padding:o}),rL({arrowWidth:D,arrowHeight:L}),d&&$M({strategy:"referenceHidden",...ne})]}),[te,O]=Q2(H),he=os(g);Yr(()=>{V&&(he==null||he())},[V,he]);const je=(Gt=j.arrow)==null?void 0:Gt.x,M=(Qe=j.arrow)==null?void 0:Qe.y,Le=((Ut=j.arrow)==null?void 0:Ut.centerOffset)!==0,[pe,Pe]=E.useState();return Yr(()=>{m&&Pe(window.getComputedStyle(m).zIndex)},[m]),x.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:V?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(lt=j.transformOrigin)==null?void 0:lt.x,(Dt=j.transformOrigin)==null?void 0:Dt.y].join(" "),...(($t=j.hide)==null?void 0:$t.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(JM,{scope:n,placedSide:te,onArrowChange:_,arrowX:je,arrowY:M,shouldHideArrow:Le,children:x.jsx(Zt.div,{"data-side":te,"data-align":O,...b,ref:v,style:{...b.style,animation:V?void 0:"none"}})})})});X2.displayName=Q0;var K2="PopperArrow",tL={top:"bottom",right:"left",bottom:"top",left:"right"},W2=E.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=eL(K2,r),s=tL[a.placedSide];return x.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:x.jsx(WM,{...i,ref:n,style:{...i.style,display:"block"}})})});W2.displayName=K2;function nL(e){return e!==null}var rL=e=>({name:"transformOrigin",options:e,fn(t){var T,m,y;const{placement:n,rects:r,middlewareData:i}=t,s=((T=i.arrow)==null?void 0:T.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=Q2(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((m=i.arrow)==null?void 0:m.x)??0)+o/2,h=(((y=i.arrow)==null?void 0:y.y)??0)+l/2;let g="",b="";return u==="bottom"?(g=s?f:`${d}px`,b=`${-l}px`):u==="top"?(g=s?f:`${d}px`,b=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,b=s?f:`${h}px`):u==="left"&&(g=`${r.floating.width+l}px`,b=s?f:`${h}px`),{data:{x:g,y:b}}}});function Q2(e){const[t,n="center"]=e.split("-");return[t,n]}var Z2=Y2,Z0=$2,J2=X2,ew=W2;function iL(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var ku=e=>{const{present:t,children:n}=e,r=aL(t),i=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),a=Xn(r.ref,sL(i));return typeof n=="function"||r.isPresent?E.cloneElement(i,{ref:a}):null};ku.displayName="Presence";function aL(e){const[t,n]=E.useState(),r=E.useRef(null),i=E.useRef(e),a=E.useRef("none"),s=e?"mounted":"unmounted",[o,l]=iL(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=yd(r.current);a.current=o==="mounted"?u:"none"},[o]),Yr(()=>{const u=r.current,c=i.current;if(c!==e){const d=a.current,h=yd(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Yr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=h=>{const b=yd(r.current).includes(h.animationName);if(h.target===t&&b&&(l("ANIMATION_END"),!i.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},d=h=>{h.target===t&&(a.current=yd(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:E.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function yd(e){return(e==null?void 0:e.animationName)||"none"}function sL(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oL=Jy[" useInsertionEffect ".trim().toString()]||Yr;function J0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,s]=lL({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:i;{const c=E.useRef(e!==void 0);E.useEffect(()=>{const f=c.current;f!==o&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=o},[o,r])}const u=E.useCallback(c=>{var f;if(o){const d=uL(c)?c(e):c;d!==e&&((f=s.current)==null||f.call(s,d))}else a(c)},[o,e,a,s]);return[l,u]}function lL({defaultProp:e,onChange:t}){const[n,r]=E.useState(e),i=E.useRef(n),a=E.useRef(t);return oL(()=>{a.current=t},[t]),E.useEffect(()=>{var s;i.current!==n&&((s=a.current)==null||s.call(a,n),i.current=n)},[n,i]),[n,r,a]}function uL(e){return typeof e=="function"}var cL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ko=new WeakMap,vd=new WeakMap,xd={},eg=0,tw=function(e){return e&&(e.host||tw(e.parentNode))},fL=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=tw(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dL=function(e,t,n,r){var i=fL(t,Array.isArray(e)?e:[e]);xd[n]||(xd[n]=new WeakMap);var a=xd[n],s=[],o=new Set,l=new Set(i),u=function(f){!f||o.has(f)||(o.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(o.has(d))c(d);else try{var h=d.getAttribute(r),g=h!==null&&h!=="false",b=(ko.get(d)||0)+1,T=(a.get(d)||0)+1;ko.set(d,b),a.set(d,T),s.push(d),b===1&&g&&vd.set(d,!0),T===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return c(t),o.clear(),eg++,function(){s.forEach(function(f){var d=ko.get(f)-1,h=a.get(f)-1;ko.set(f,d),a.set(f,h),d||(vd.has(f)||f.removeAttribute(r),vd.delete(f)),h||f.removeAttribute(n)}),eg--,eg||(ko=new WeakMap,ko=new WeakMap,vd=new WeakMap,xd={})}},nw=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=cL(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),dL(r,i,n,"aria-hidden")):function(){return null}},tg=function(e,t){return tg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},tg(e,t)};function rw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tg(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var gr=function(){return gr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},gr.apply(this,arguments)};function Ed(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function iw(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,n,a):s(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function aw(e,t){return function(n,r){t(n,r,e)}}function sw(e,t,n,r,i,a){function s(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var o=r.kind,l=o==="getter"?"get":o==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,d=!1,h=n.length-1;h>=0;h--){var g={};for(var b in r)g[b]=b==="access"?{}:r[b];for(var b in r.access)g.access[b]=r.access[b];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(m||null))};var T=(0,n[h])(o==="accessor"?{get:c.get,set:c.set}:c[l],g);if(o==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(f=s(T.get))&&(c.get=f),(f=s(T.set))&&(c.set=f),(f=s(T.init))&&i.unshift(f)}else(f=s(T))&&(o==="field"?i.unshift(f):c[l]=f)}u&&Object.defineProperty(u,r.name,c),d=!0}function ow(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function lw(e){return typeof e=="symbol"?e:"".concat(e)}function uw(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function cw(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function _i(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})}function fw(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Td=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function dw(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Td(t,e,n)}function wd(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ng(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a}function hw(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ng(arguments[t]));return e}function pw(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)r[i]=a[s];return r}function rg(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Oo(e){return this instanceof Oo?(this.v=e,this):new Oo(e)}function mw(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(g){return Promise.resolve(g).then(h,f)}}function o(h,g){r[h]&&(i[h]=function(b){return new Promise(function(T,m){a.push([h,b,T,m])>1||l(h,b)})},g&&(i[h]=g(i[h])))}function l(h,g){try{u(r[h](g))}catch(b){d(a[0][3],b)}}function u(h){h.value instanceof Oo?Promise.resolve(h.value.v).then(c,f):d(a[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function d(h,g){h(g),a.shift(),a.length&&l(a[0][0],a[0][1])}}function gw(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(s){return(n=!n)?{value:Oo(e[i](s)),done:!1}:a?a(s):s}:a}}function bw(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof wd=="function"?wd(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(s){return new Promise(function(o,l){s=e[a](s),i(o,l,s.done,s.value)})}}function i(a,s,o,l){Promise.resolve(l).then(function(u){a({value:u,done:o})},s)}}function yw(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var hL=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},ig=function(e){return ig=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},ig(e)};function vw(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ig(e),r=0;r<n.length;r++)n[r]!=="default"&&Td(t,e,n[r]);return hL(t,e),t}function xw(e){return e&&e.__esModule?e:{default:e}}function Ew(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function Tw(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function ww(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function _w(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var pL=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function Sw(e){function t(a){e.error=e.hasError?new pL(a,e.error,"An error was suppressed during disposal."):a,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(s){return t(s),i()})}else r|=1}catch(s){t(s)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function Aw(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,i,a,s){return r?t?".jsx":".js":i&&(!a||!s)?n:i+a+"."+s.toLowerCase()+"js"}):e}const mL=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:_w,get __assign(){return gr},__asyncDelegator:gw,__asyncGenerator:mw,__asyncValues:bw,__await:Oo,__awaiter:_i,__classPrivateFieldGet:Ew,__classPrivateFieldIn:ww,__classPrivateFieldSet:Tw,__createBinding:Td,__decorate:iw,__disposeResources:Sw,__esDecorate:sw,__exportStar:dw,__extends:rw,__generator:fw,__importDefault:xw,__importStar:vw,__makeTemplateObject:yw,__metadata:cw,__param:aw,__propKey:lw,__read:ng,__rest:Ed,__rewriteRelativeImportExtension:Aw,__runInitializers:ow,__setFunctionName:uw,__spread:hw,__spreadArray:rg,__spreadArrays:pw,__values:wd,default:{__extends:rw,__assign:gr,__rest:Ed,__decorate:iw,__param:aw,__esDecorate:sw,__runInitializers:ow,__propKey:lw,__setFunctionName:uw,__metadata:cw,__awaiter:_i,__generator:fw,__createBinding:Td,__exportStar:dw,__values:wd,__read:ng,__spread:hw,__spreadArrays:pw,__spreadArray:rg,__await:Oo,__asyncGenerator:mw,__asyncDelegator:gw,__asyncValues:bw,__makeTemplateObject:yw,__importStar:vw,__importDefault:xw,__classPrivateFieldGet:Ew,__classPrivateFieldSet:Tw,__classPrivateFieldIn:ww,__addDisposableResource:_w,__disposeResources:Sw,__rewriteRelativeImportExtension:Aw}},Symbol.toStringTag,{value:"Module"}));var _d="right-scroll-bar-position",Sd="width-before-scroll-bar",gL="with-scroll-bars-hidden",bL="--removed-body-scroll-bar-size";function ag(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yL(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var vL=typeof window<"u"?E.useLayoutEffect:E.useEffect,Cw=new WeakMap;function xL(e,t){var n=yL(null,function(r){return e.forEach(function(i){return ag(i,r)})});return vL(function(){var r=Cw.get(n);if(r){var i=new Set(r),a=new Set(e),s=n.current;i.forEach(function(o){a.has(o)||ag(o,null)}),a.forEach(function(o){i.has(o)||ag(o,s)})}Cw.set(n,e)},[e]),n}function EL(e){return e}function TL(e,t){t===void 0&&(t=EL);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(o){return a(o)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(a),s=n}var l=function(){var c=s;s=[],c.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function wL(e){e===void 0&&(e={});var t=TL(null);return t.options=gr({async:!0,ssr:!1},e),t}var kw=function(e){var t=e.sideCar,n=Ed(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return E.createElement(r,gr({},n))};kw.isSideCarExport=!0;function _L(e,t){return e.useMedium(t),kw}var Ow=wL(),sg=function(){},Ad=E.forwardRef(function(e,t){var n=E.useRef(null),r=E.useState({onScrollCapture:sg,onWheelCapture:sg,onTouchMoveCapture:sg}),i=r[0],a=r[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,g=e.noIsolation,b=e.inert,T=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,v=e.gapMode,w=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=d,A=xL([n,t]),D=gr(gr({},w),i);return E.createElement(E.Fragment,null,c&&E.createElement(_,{sideCar:Ow,removeScrollBar:u,shards:f,noRelative:h,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!T,lockRef:n,gapMode:v}),s?E.cloneElement(E.Children.only(o),gr(gr({},D),{ref:A})):E.createElement(y,gr({},D,{className:l,ref:A}),o))});Ad.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ad.classNames={fullWidth:Sd,zeroRight:_d};var SL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function AL(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=SL();return t&&e.setAttribute("nonce",t),e}function CL(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kL(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var OL=function(){var e=0,t=null;return{add:function(n){e==0&&(t=AL())&&(CL(t,n),kL(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},RL=function(){var e=OL();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rw=function(){var e=RL(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},NL={left:0,top:0,right:0,gap:0},og=function(e){return parseInt(e||"",10)||0},DL=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[og(n),og(r),og(i)]},ML=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return NL;var t=DL(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},LL=Rw(),Ro="data-scroll-locked",IL=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
50
+ .`.concat(gL,` {
51
+ overflow: hidden `).concat(r,`;
52
+ padding-right: `).concat(o,"px ").concat(r,`;
53
+ }
54
+ body[`).concat(Ro,`] {
55
+ overflow: hidden `).concat(r,`;
56
+ overscroll-behavior: contain;
57
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
58
+ padding-left: `.concat(i,`px;
59
+ padding-top: `).concat(a,`px;
60
+ padding-right: `).concat(s,`px;
61
+ margin-left:0;
62
+ margin-top:0;
63
+ margin-right: `).concat(o,"px ").concat(r,`;
64
+ `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
65
+ }
66
+
67
+ .`).concat(_d,` {
68
+ right: `).concat(o,"px ").concat(r,`;
69
+ }
70
+
71
+ .`).concat(Sd,` {
72
+ margin-right: `).concat(o,"px ").concat(r,`;
73
+ }
74
+
75
+ .`).concat(_d," .").concat(_d,` {
76
+ right: 0 `).concat(r,`;
77
+ }
78
+
79
+ .`).concat(Sd," .").concat(Sd,` {
80
+ margin-right: 0 `).concat(r,`;
81
+ }
82
+
83
+ body[`).concat(Ro,`] {
84
+ `).concat(bL,": ").concat(o,`px;
85
+ }
86
+ `)},Nw=function(){var e=parseInt(document.body.getAttribute(Ro)||"0",10);return isFinite(e)?e:0},PL=function(){E.useEffect(function(){return document.body.setAttribute(Ro,(Nw()+1).toString()),function(){var e=Nw()-1;e<=0?document.body.removeAttribute(Ro):document.body.setAttribute(Ro,e.toString())}},[])},BL=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;PL();var a=E.useMemo(function(){return ML(i)},[i]);return E.createElement(LL,{styles:IL(a,!t,i,n?"":"!important")})},lg=!1;if(typeof window<"u")try{var Cd=Object.defineProperty({},"passive",{get:function(){return lg=!0,!0}});window.addEventListener("test",Cd,Cd),window.removeEventListener("test",Cd,Cd)}catch{lg=!1}var No=lg?{passive:!1}:!1,UL=function(e){return e.tagName==="TEXTAREA"},Dw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!UL(e)&&n[t]==="visible")},zL=function(e){return Dw(e,"overflowY")},jL=function(e){return Dw(e,"overflowX")},Mw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Lw(e,r);if(i){var a=Iw(e,r),s=a[1],o=a[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},FL=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},HL=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Lw=function(e,t){return e==="v"?zL(t):jL(t)},Iw=function(e,t){return e==="v"?FL(t):HL(t)},VL=function(e,t){return e==="h"&&t==="rtl"?-1:1},qL=function(e,t,n,r,i){var a=VL(e,window.getComputedStyle(t).direction),s=a*r,o=n.target,l=t.contains(o),u=!1,c=s>0,f=0,d=0;do{if(!o)break;var h=Iw(e,o),g=h[0],b=h[1],T=h[2],m=b-T-a*g;(g||m)&&Lw(e,o)&&(f+=m,d+=g);var y=o.parentNode;o=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},kd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pw=function(e){return[e.deltaX,e.deltaY]},Bw=function(e){return e&&"current"in e?e.current:e},YL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GL=function(e){return`
87
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
88
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
89
+ `)},$L=0,Do=[];function XL(e){var t=E.useRef([]),n=E.useRef([0,0]),r=E.useRef(),i=E.useState($L++)[0],a=E.useState(Rw)[0],s=E.useRef(e);E.useEffect(function(){s.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=rg([e.lockRef.current],(e.shards||[]).map(Bw),!0).filter(Boolean);return b.forEach(function(T){return T.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=E.useCallback(function(b,T){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!s.current.allowPinchZoom;var m=kd(b),y=n.current,v="deltaX"in b?b.deltaX:y[0]-m[0],w="deltaY"in b?b.deltaY:y[1]-m[1],_,A=b.target,D=Math.abs(v)>Math.abs(w)?"h":"v";if("touches"in b&&D==="h"&&A.type==="range")return!1;var L=Mw(D,A);if(!L)return!0;if(L?_=D:(_=D==="v"?"h":"v",L=Mw(D,A)),!L)return!1;if(!r.current&&"changedTouches"in b&&(v||w)&&(r.current=_),!_)return!0;var U=r.current||_;return qL(U,T,b,U==="h"?v:w)},[]),l=E.useCallback(function(b){var T=b;if(!(!Do.length||Do[Do.length-1]!==a)){var m="deltaY"in T?Pw(T):kd(T),y=t.current.filter(function(_){return _.name===T.type&&(_.target===T.target||T.target===_.shadowParent)&&YL(_.delta,m)})[0];if(y&&y.should){T.cancelable&&T.preventDefault();return}if(!y){var v=(s.current.shards||[]).map(Bw).filter(Boolean).filter(function(_){return _.contains(T.target)}),w=v.length>0?o(T,v[0]):!s.current.noIsolation;w&&T.cancelable&&T.preventDefault()}}},[]),u=E.useCallback(function(b,T,m,y){var v={name:b,delta:T,target:m,should:y,shadowParent:KL(m)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(w){return w!==v})},1)},[]),c=E.useCallback(function(b){n.current=kd(b),r.current=void 0},[]),f=E.useCallback(function(b){u(b.type,Pw(b),b.target,o(b,e.lockRef.current))},[]),d=E.useCallback(function(b){u(b.type,kd(b),b.target,o(b,e.lockRef.current))},[]);E.useEffect(function(){return Do.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,No),document.addEventListener("touchmove",l,No),document.addEventListener("touchstart",c,No),function(){Do=Do.filter(function(b){return b!==a}),document.removeEventListener("wheel",l,No),document.removeEventListener("touchmove",l,No),document.removeEventListener("touchstart",c,No)}},[]);var h=e.removeScrollBar,g=e.inert;return E.createElement(E.Fragment,null,g?E.createElement(a,{styles:GL(i)}):null,h?E.createElement(BL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function KL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const WL=_L(Ow,XL);var ug=E.forwardRef(function(e,t){return E.createElement(Ad,gr({},e,{ref:t,sideCar:WL}))});ug.classNames=Ad.classNames;var Od="Popover",[Uw,PJ]=wu(Od,[bd]),Ou=bd(),[QL,us]=Uw(Od),zw=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,o=Ou(t),l=E.useRef(null),[u,c]=E.useState(!1),[f,d]=J0({prop:r,defaultProp:i??!1,onChange:a,caller:Od});return x.jsx(Z2,{...o,children:x.jsx(QL,{scope:t,contentId:_u(),triggerRef:l,open:f,onOpenChange:d,onOpenToggle:E.useCallback(()=>d(h=>!h),[d]),hasCustomAnchor:u,onCustomAnchorAdd:E.useCallback(()=>c(!0),[]),onCustomAnchorRemove:E.useCallback(()=>c(!1),[]),modal:s,children:n})})};zw.displayName=Od;var jw="PopoverAnchor",Fw=E.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=us(jw,n),a=Ou(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:o}=i;return E.useEffect(()=>(s(),()=>o()),[s,o]),x.jsx(Z0,{...a,...r,ref:t})});Fw.displayName=jw;var Hw="PopoverTrigger",Vw=E.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=us(Hw,n),a=Ou(n),s=Xn(t,i.triggerRef),o=x.jsx(Zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":$w(i.open),...r,ref:s,onClick:Vt(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?o:x.jsx(Z0,{asChild:!0,...a,children:o})});Vw.displayName=Hw;var ZL="PopoverPortal",[BJ,JL]=Uw(ZL,{forceMount:void 0}),Mo="PopoverContent",qw=E.forwardRef((e,t)=>{const n=JL(Mo,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=us(Mo,e.__scopePopover);return x.jsx(ku,{present:r||a.open,children:a.modal?x.jsx(tI,{...i,ref:t}):x.jsx(nI,{...i,ref:t})})});qw.displayName=Mo;var eI=sd("PopoverContent.RemoveScroll"),tI=E.forwardRef((e,t)=>{const n=us(Mo,e.__scopePopover),r=E.useRef(null),i=Xn(t,r),a=E.useRef(!1);return E.useEffect(()=>{const s=r.current;if(s)return nw(s)},[]),x.jsx(ug,{as:eI,allowPinchZoom:!0,children:x.jsx(Yw,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Vt(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),a.current||(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Vt(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0,u=o.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Vt(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),nI=E.forwardRef((e,t)=>{const n=us(Mo,e.__scopePopover),r=E.useRef(!1),i=E.useRef(!1);return x.jsx(Yw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,o;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(o=n.triggerRef.current)==null||o.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),Yw=E.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...f}=e,d=us(Mo,n),h=Ou(n);return p2(),x.jsx(B0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:x.jsx(od,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1),children:x.jsx(J2,{"data-state":$w(d.open),role:"dialog",id:d.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Gw="PopoverClose",rI=E.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=us(Gw,n);return x.jsx(Zt.button,{type:"button",...r,ref:t,onClick:Vt(e.onClick,()=>i.onOpenChange(!1))})});rI.displayName=Gw;var iI="PopoverArrow",aI=E.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Ou(n);return x.jsx(ew,{...i,...r,ref:t})});aI.displayName=iI;function $w(e){return e?"open":"closed"}var sI=zw,oI=Fw,lI=qw;const uI=/\{[^{}]+\}/g,cI=()=>{var e,t;return typeof process=="object"&&Number.parseInt((t=(e=process==null?void 0:process.versions)==null?void 0:e.node)==null?void 0:t.substring(0,2))>=18&&process.versions.undici};function fI(){return Math.random().toString(36).slice(2,11)}function dI(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:i,bodySerializer:a,headers:s,requestInitExt:o=void 0,...l}={...e};o=cI()?o:void 0,t=Zw(t);const u=[];async function c(f,d){const{baseUrl:h,fetch:g=r,Request:b=n,headers:T,params:m={},parseAs:y="json",querySerializer:v,bodySerializer:w=a??pI,body:_,...A}=d||{};let D=t;h&&(D=Zw(h)??t);let L=typeof i=="function"?i:Ww(i);v&&(L=typeof v=="function"?v:Ww({...typeof i=="object"?i:{},...v}));const U=_===void 0?void 0:w(_,Qw(s,T,m.header)),R=Qw(U===void 0||U instanceof FormData?{}:{"Content-Type":"application/json"},s,T,m.header),q={redirect:"follow",...l,...A,body:U,headers:R};let F,ne,K=new n(mI(f,{baseUrl:D,params:m,querySerializer:L}),q),W;for(const V in A)V in K||(K[V]=A[V]);if(u.length){F=fI(),ne=Object.freeze({baseUrl:D,fetch:g,parseAs:y,querySerializer:L,bodySerializer:w});for(const V of u)if(V&&typeof V=="object"&&typeof V.onRequest=="function"){const j=await V.onRequest({request:K,schemaPath:f,params:m,options:ne,id:F});if(j)if(j instanceof n)K=j;else if(j instanceof Response){W=j;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!W){try{W=await g(K,o)}catch(V){let j=V;if(u.length)for(let te=u.length-1;te>=0;te--){const O=u[te];if(O&&typeof O=="object"&&typeof O.onError=="function"){const he=await O.onError({request:K,error:j,schemaPath:f,params:m,options:ne,id:F});if(he){if(he instanceof Response){j=void 0,W=he;break}if(he instanceof Error){j=he;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(j)throw j}if(u.length)for(let V=u.length-1;V>=0;V--){const j=u[V];if(j&&typeof j=="object"&&typeof j.onResponse=="function"){const te=await j.onResponse({request:K,response:W,schemaPath:f,params:m,options:ne,id:F});if(te){if(!(te instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");W=te}}}}if(W.status===204||K.method==="HEAD"||W.headers.get("Content-Length")==="0")return W.ok?{data:void 0,response:W}:{error:void 0,response:W};if(W.ok)return y==="stream"?{data:W.body,response:W}:{data:await W[y](),response:W};let H=await W.text();try{H=JSON.parse(H)}catch{}return{error:H,response:W}}return{request(f,d,h){return c(d,{...h,method:f.toUpperCase()})},GET(f,d){return c(f,{...d,method:"GET"})},PUT(f,d){return c(f,{...d,method:"PUT"})},POST(f,d){return c(f,{...d,method:"POST"})},DELETE(f,d){return c(f,{...d,method:"DELETE"})},OPTIONS(f,d){return c(f,{...d,method:"OPTIONS"})},HEAD(f,d){return c(f,{...d,method:"HEAD"})},PATCH(f,d){return c(f,{...d,method:"PATCH"})},TRACE(f,d){return c(f,{...d,method:"TRACE"})},use(...f){for(const d of f)if(d){if(typeof d!="object"||!("onRequest"in d||"onResponse"in d||"onError"in d))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(d)}},eject(...f){for(const d of f){const h=u.indexOf(d);h!==-1&&u.splice(h,1)}}}}function Rd(e,t,n){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${(n==null?void 0:n.allowReserved)===!0?t:encodeURIComponent(t)}`}function Xw(e,t,n){if(!t||typeof t!="object")return"";const r=[],i={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const o in t)r.push(o,n.allowReserved===!0?t[o]:encodeURIComponent(t[o]));const s=r.join(",");switch(n.style){case"form":return`${e}=${s}`;case"label":return`.${s}`;case"matrix":return`;${e}=${s}`;default:return s}}for(const s in t){const o=n.style==="deepObject"?`${e}[${s}]`:s;r.push(Rd(o,t[s],n))}const a=r.join(i);return n.style==="label"||n.style==="matrix"?`${i}${a}`:a}function Kw(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const a={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",s=(n.allowReserved===!0?t:t.map(o=>encodeURIComponent(o))).join(a);switch(n.style){case"simple":return s;case"label":return`.${s}`;case"matrix":return`;${e}=${s}`;default:return`${e}=${s}`}}const r={simple:",",label:".",matrix:";"}[n.style]||"&",i=[];for(const a of t)n.style==="simple"||n.style==="label"?i.push(n.allowReserved===!0?a:encodeURIComponent(a)):i.push(Rd(e,a,n));return n.style==="label"||n.style==="matrix"?`${r}${i.join(r)}`:i.join(r)}function Ww(e){return function(n){const r=[];if(n&&typeof n=="object")for(const i in n){const a=n[i];if(a!=null){if(Array.isArray(a)){if(a.length===0)continue;r.push(Kw(i,a,{style:"form",explode:!0,...e==null?void 0:e.array,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}if(typeof a=="object"){r.push(Xw(i,a,{style:"deepObject",explode:!0,...e==null?void 0:e.object,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}r.push(Rd(i,a,e))}}return r.join("&")}}function hI(e,t){let n=e;for(const r of e.match(uI)??[]){let i=r.substring(1,r.length-1),a=!1,s="simple";if(i.endsWith("*")&&(a=!0,i=i.substring(0,i.length-1)),i.startsWith(".")?(s="label",i=i.substring(1)):i.startsWith(";")&&(s="matrix",i=i.substring(1)),!t||t[i]===void 0||t[i]===null)continue;const o=t[i];if(Array.isArray(o)){n=n.replace(r,Kw(i,o,{style:s,explode:a}));continue}if(typeof o=="object"){n=n.replace(r,Xw(i,o,{style:s,explode:a}));continue}if(s==="matrix"){n=n.replace(r,`;${Rd(i,o)}`);continue}n=n.replace(r,s==="label"?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function pI(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function mI(e,t){var i;let n=`${t.baseUrl}${e}`;(i=t.params)!=null&&i.path&&(n=hI(n,t.params.path));let r=t.querySerializer(t.params.query??{});return r.startsWith("?")&&(r=r.substring(1)),r&&(n+=`?${r}`),n}function Qw(...e){const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const r=n instanceof Headers?n.entries():Object.entries(n);for(const[i,a]of r)if(a===null)t.delete(i);else if(Array.isArray(a))for(const s of a)t.append(i,s);else a!==void 0&&t.set(i,a)}return t}function Zw(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var Nd={exports:{}};Nd.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,o="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",g="[object GeneratorFunction]",b="[object Map]",T="[object Number]",m="[object Null]",y="[object Object]",v="[object Promise]",w="[object Proxy]",_="[object RegExp]",A="[object Set]",D="[object String]",L="[object Symbol]",U="[object Undefined]",R="[object WeakMap]",q="[object ArrayBuffer]",F="[object DataView]",ne="[object Float32Array]",K="[object Float64Array]",W="[object Int8Array]",H="[object Int16Array]",V="[object Int32Array]",j="[object Uint8Array]",te="[object Uint8ClampedArray]",O="[object Uint16Array]",he="[object Uint32Array]",je=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,Le=/^(?:0|[1-9]\d*)$/,pe={};pe[ne]=pe[K]=pe[W]=pe[H]=pe[V]=pe[j]=pe[te]=pe[O]=pe[he]=!0,pe[o]=pe[l]=pe[q]=pe[c]=pe[F]=pe[f]=pe[d]=pe[h]=pe[b]=pe[T]=pe[y]=pe[_]=pe[A]=pe[D]=pe[R]=!1;var Pe=typeof Fi=="object"&&Fi&&Fi.Object===Object&&Fi,Gt=typeof self=="object"&&self&&self.Object===Object&&self,Qe=Pe||Gt||Function("return this")(),Ut=t&&!t.nodeType&&t,lt=Ut&&!0&&e&&!e.nodeType&&e,Dt=lt&&lt.exports===Ut,$t=Dt&&Pe.process,ye=function(){try{return $t&&$t.binding&&$t.binding("util")}catch{}}(),Ie=ye&&ye.isTypedArray;function $e(C,I){for(var $=-1,ae=C==null?0:C.length,ht=0,Se=[];++$<ae;){var Ct=C[$];I(Ct,$,C)&&(Se[ht++]=Ct)}return Se}function Re(C,I){for(var $=-1,ae=I.length,ht=C.length;++$<ae;)C[ht+$]=I[$];return C}function et(C,I){for(var $=-1,ae=C==null?0:C.length;++$<ae;)if(I(C[$],$,C))return!0;return!1}function At(C,I){for(var $=-1,ae=Array(C);++$<C;)ae[$]=I($);return ae}function Be(C){return function(I){return C(I)}}function dt(C,I){return C.has(I)}function _n(C,I){return C==null?void 0:C[I]}function Ba(C){var I=-1,$=Array(C.size);return C.forEach(function(ae,ht){$[++I]=[ht,ae]}),$}function Ua(C,I){return function($){return C(I($))}}function re(C){var I=-1,$=Array(C.size);return C.forEach(function(ae){$[++I]=ae}),$}var se=Array.prototype,B=Function.prototype,G=Object.prototype,oe=Qe["__core-js_shared__"],be=B.toString,ve=G.hasOwnProperty,tn=function(){var C=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),Pn=G.toString,Sn=RegExp("^"+be.call(ve).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ir=Dt?Qe.Buffer:void 0,Bn=Qe.Symbol,zt=Qe.Uint8Array,ar=G.propertyIsEnumerable,An=se.splice,Ui=Bn?Bn.toStringTag:void 0,n4=Object.getOwnPropertySymbols,zZ=ir?ir.isBuffer:void 0,jZ=Ua(Object.keys,Object),My=yl(Qe,"DataView"),Mc=yl(Qe,"Map"),Ly=yl(Qe,"Promise"),Iy=yl(Qe,"Set"),Py=yl(Qe,"WeakMap"),Lc=yl(Object,"create"),FZ=Rs(My),HZ=Rs(Mc),VZ=Rs(Ly),qZ=Rs(Iy),YZ=Rs(Py),r4=Bn?Bn.prototype:void 0,By=r4?r4.valueOf:void 0;function ks(C){var I=-1,$=C==null?0:C.length;for(this.clear();++I<$;){var ae=C[I];this.set(ae[0],ae[1])}}function GZ(){this.__data__=Lc?Lc(null):{},this.size=0}function $Z(C){var I=this.has(C)&&delete this.__data__[C];return this.size-=I?1:0,I}function XZ(C){var I=this.__data__;if(Lc){var $=I[C];return $===r?void 0:$}return ve.call(I,C)?I[C]:void 0}function KZ(C){var I=this.__data__;return Lc?I[C]!==void 0:ve.call(I,C)}function WZ(C,I){var $=this.__data__;return this.size+=this.has(C)?0:1,$[C]=Lc&&I===void 0?r:I,this}ks.prototype.clear=GZ,ks.prototype.delete=$Z,ks.prototype.get=XZ,ks.prototype.has=KZ,ks.prototype.set=WZ;function zi(C){var I=-1,$=C==null?0:C.length;for(this.clear();++I<$;){var ae=C[I];this.set(ae[0],ae[1])}}function QZ(){this.__data__=[],this.size=0}function ZZ(C){var I=this.__data__,$=Zh(I,C);if($<0)return!1;var ae=I.length-1;return $==ae?I.pop():An.call(I,$,1),--this.size,!0}function JZ(C){var I=this.__data__,$=Zh(I,C);return $<0?void 0:I[$][1]}function eJ(C){return Zh(this.__data__,C)>-1}function tJ(C,I){var $=this.__data__,ae=Zh($,C);return ae<0?(++this.size,$.push([C,I])):$[ae][1]=I,this}zi.prototype.clear=QZ,zi.prototype.delete=ZZ,zi.prototype.get=JZ,zi.prototype.has=eJ,zi.prototype.set=tJ;function Os(C){var I=-1,$=C==null?0:C.length;for(this.clear();++I<$;){var ae=C[I];this.set(ae[0],ae[1])}}function nJ(){this.size=0,this.__data__={hash:new ks,map:new(Mc||zi),string:new ks}}function rJ(C){var I=Jh(this,C).delete(C);return this.size-=I?1:0,I}function iJ(C){return Jh(this,C).get(C)}function aJ(C){return Jh(this,C).has(C)}function sJ(C,I){var $=Jh(this,C),ae=$.size;return $.set(C,I),this.size+=$.size==ae?0:1,this}Os.prototype.clear=nJ,Os.prototype.delete=rJ,Os.prototype.get=iJ,Os.prototype.has=aJ,Os.prototype.set=sJ;function Qh(C){var I=-1,$=C==null?0:C.length;for(this.__data__=new Os;++I<$;)this.add(C[I])}function oJ(C){return this.__data__.set(C,r),this}function lJ(C){return this.__data__.has(C)}Qh.prototype.add=Qh.prototype.push=oJ,Qh.prototype.has=lJ;function za(C){var I=this.__data__=new zi(C);this.size=I.size}function uJ(){this.__data__=new zi,this.size=0}function cJ(C){var I=this.__data__,$=I.delete(C);return this.size=I.size,$}function fJ(C){return this.__data__.get(C)}function dJ(C){return this.__data__.has(C)}function hJ(C,I){var $=this.__data__;if($ instanceof zi){var ae=$.__data__;if(!Mc||ae.length<n-1)return ae.push([C,I]),this.size=++$.size,this;$=this.__data__=new Os(ae)}return $.set(C,I),this.size=$.size,this}za.prototype.clear=uJ,za.prototype.delete=cJ,za.prototype.get=fJ,za.prototype.has=dJ,za.prototype.set=hJ;function pJ(C,I){var $=ep(C),ae=!$&&OJ(C),ht=!$&&!ae&&Uy(C),Se=!$&&!ae&&!ht&&d4(C),Ct=$||ae||ht||Se,nn=Ct?At(C.length,String):[],un=nn.length;for(var Tt in C)ve.call(C,Tt)&&!(Ct&&(Tt=="length"||ht&&(Tt=="offset"||Tt=="parent")||Se&&(Tt=="buffer"||Tt=="byteLength"||Tt=="byteOffset")||_J(Tt,un)))&&nn.push(Tt);return nn}function Zh(C,I){for(var $=C.length;$--;)if(l4(C[$][0],I))return $;return-1}function mJ(C,I,$){var ae=I(C);return ep(C)?ae:Re(ae,$(C))}function Ic(C){return C==null?C===void 0?U:m:Ui&&Ui in Object(C)?TJ(C):kJ(C)}function i4(C){return Pc(C)&&Ic(C)==o}function a4(C,I,$,ae,ht){return C===I?!0:C==null||I==null||!Pc(C)&&!Pc(I)?C!==C&&I!==I:gJ(C,I,$,ae,a4,ht)}function gJ(C,I,$,ae,ht,Se){var Ct=ep(C),nn=ep(I),un=Ct?l:ja(C),Tt=nn?l:ja(I);un=un==o?y:un,Tt=Tt==o?y:Tt;var sr=un==y,Pr=Tt==y,vn=un==Tt;if(vn&&Uy(C)){if(!Uy(I))return!1;Ct=!0,sr=!1}if(vn&&!sr)return Se||(Se=new za),Ct||d4(C)?s4(C,I,$,ae,ht,Se):xJ(C,I,un,$,ae,ht,Se);if(!($&i)){var wr=sr&&ve.call(C,"__wrapped__"),_r=Pr&&ve.call(I,"__wrapped__");if(wr||_r){var Fa=wr?C.value():C,ji=_r?I.value():I;return Se||(Se=new za),ht(Fa,ji,$,ae,Se)}}return vn?(Se||(Se=new za),EJ(C,I,$,ae,ht,Se)):!1}function bJ(C){if(!f4(C)||AJ(C))return!1;var I=u4(C)?Sn:M;return I.test(Rs(C))}function yJ(C){return Pc(C)&&c4(C.length)&&!!pe[Ic(C)]}function vJ(C){if(!CJ(C))return jZ(C);var I=[];for(var $ in Object(C))ve.call(C,$)&&$!="constructor"&&I.push($);return I}function s4(C,I,$,ae,ht,Se){var Ct=$&i,nn=C.length,un=I.length;if(nn!=un&&!(Ct&&un>nn))return!1;var Tt=Se.get(C);if(Tt&&Se.get(I))return Tt==I;var sr=-1,Pr=!0,vn=$&a?new Qh:void 0;for(Se.set(C,I),Se.set(I,C);++sr<nn;){var wr=C[sr],_r=I[sr];if(ae)var Fa=Ct?ae(_r,wr,sr,I,C,Se):ae(wr,_r,sr,C,I,Se);if(Fa!==void 0){if(Fa)continue;Pr=!1;break}if(vn){if(!et(I,function(ji,Ns){if(!dt(vn,Ns)&&(wr===ji||ht(wr,ji,$,ae,Se)))return vn.push(Ns)})){Pr=!1;break}}else if(!(wr===_r||ht(wr,_r,$,ae,Se))){Pr=!1;break}}return Se.delete(C),Se.delete(I),Pr}function xJ(C,I,$,ae,ht,Se,Ct){switch($){case F:if(C.byteLength!=I.byteLength||C.byteOffset!=I.byteOffset)return!1;C=C.buffer,I=I.buffer;case q:return!(C.byteLength!=I.byteLength||!Se(new zt(C),new zt(I)));case c:case f:case T:return l4(+C,+I);case d:return C.name==I.name&&C.message==I.message;case _:case D:return C==I+"";case b:var nn=Ba;case A:var un=ae&i;if(nn||(nn=re),C.size!=I.size&&!un)return!1;var Tt=Ct.get(C);if(Tt)return Tt==I;ae|=a,Ct.set(C,I);var sr=s4(nn(C),nn(I),ae,ht,Se,Ct);return Ct.delete(C),sr;case L:if(By)return By.call(C)==By.call(I)}return!1}function EJ(C,I,$,ae,ht,Se){var Ct=$&i,nn=o4(C),un=nn.length,Tt=o4(I),sr=Tt.length;if(un!=sr&&!Ct)return!1;for(var Pr=un;Pr--;){var vn=nn[Pr];if(!(Ct?vn in I:ve.call(I,vn)))return!1}var wr=Se.get(C);if(wr&&Se.get(I))return wr==I;var _r=!0;Se.set(C,I),Se.set(I,C);for(var Fa=Ct;++Pr<un;){vn=nn[Pr];var ji=C[vn],Ns=I[vn];if(ae)var h4=Ct?ae(Ns,ji,vn,I,C,Se):ae(ji,Ns,vn,C,I,Se);if(!(h4===void 0?ji===Ns||ht(ji,Ns,$,ae,Se):h4)){_r=!1;break}Fa||(Fa=vn=="constructor")}if(_r&&!Fa){var tp=C.constructor,np=I.constructor;tp!=np&&"constructor"in C&&"constructor"in I&&!(typeof tp=="function"&&tp instanceof tp&&typeof np=="function"&&np instanceof np)&&(_r=!1)}return Se.delete(C),Se.delete(I),_r}function o4(C){return mJ(C,DJ,wJ)}function Jh(C,I){var $=C.__data__;return SJ(I)?$[typeof I=="string"?"string":"hash"]:$.map}function yl(C,I){var $=_n(C,I);return bJ($)?$:void 0}function TJ(C){var I=ve.call(C,Ui),$=C[Ui];try{C[Ui]=void 0;var ae=!0}catch{}var ht=Pn.call(C);return ae&&(I?C[Ui]=$:delete C[Ui]),ht}var wJ=n4?function(C){return C==null?[]:(C=Object(C),$e(n4(C),function(I){return ar.call(C,I)}))}:MJ,ja=Ic;(My&&ja(new My(new ArrayBuffer(1)))!=F||Mc&&ja(new Mc)!=b||Ly&&ja(Ly.resolve())!=v||Iy&&ja(new Iy)!=A||Py&&ja(new Py)!=R)&&(ja=function(C){var I=Ic(C),$=I==y?C.constructor:void 0,ae=$?Rs($):"";if(ae)switch(ae){case FZ:return F;case HZ:return b;case VZ:return v;case qZ:return A;case YZ:return R}return I});function _J(C,I){return I=I??s,!!I&&(typeof C=="number"||Le.test(C))&&C>-1&&C%1==0&&C<I}function SJ(C){var I=typeof C;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?C!=="__proto__":C===null}function AJ(C){return!!tn&&tn in C}function CJ(C){var I=C&&C.constructor,$=typeof I=="function"&&I.prototype||G;return C===$}function kJ(C){return Pn.call(C)}function Rs(C){if(C!=null){try{return be.call(C)}catch{}try{return C+""}catch{}}return""}function l4(C,I){return C===I||C!==C&&I!==I}var OJ=i4(function(){return arguments}())?i4:function(C){return Pc(C)&&ve.call(C,"callee")&&!ar.call(C,"callee")},ep=Array.isArray;function RJ(C){return C!=null&&c4(C.length)&&!u4(C)}var Uy=zZ||LJ;function NJ(C,I){return a4(C,I)}function u4(C){if(!f4(C))return!1;var I=Ic(C);return I==h||I==g||I==u||I==w}function c4(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=s}function f4(C){var I=typeof C;return C!=null&&(I=="object"||I=="function")}function Pc(C){return C!=null&&typeof C=="object"}var d4=Ie?Be(Ie):yJ;function DJ(C){return RJ(C)?pJ(C):vJ(C)}function MJ(){return[]}function LJ(){return!1}e.exports=NJ}(Nd,Nd.exports);var gI=Nd.exports;const bI=vl(gI),on=[];for(let e=0;e<256;++e)on.push((e+256).toString(16).slice(1));function yI(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}let cg;const vI=new Uint8Array(16);function xI(){if(!cg){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");cg=crypto.getRandomValues.bind(crypto)}return cg(vI)}const Jw={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function fg(e,t,n){var i;if(Jw.randomUUID&&!e)return Jw.randomUUID();e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??xI();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,yI(r)}const EI=e=>{console.log(e.error)},TI=e=>{const t=dI({baseUrl:e.baseUrl}),n={onRequest:e.onRequest,onResponse:e.onResponse,onError:e.onError||EI};return t.use(n),t};let e_=class{constructor({config:t}){var n,r;this.userToken=null,this.constructClientOptions=s=>{const o=this.config.apiUrl||"https://api.open.cx",l={"X-Bot-Token":this.config.token,"Content-Type":"application/json",Accept:"application/json",Authorization:s?`Bearer ${s}`:void 0};return{baseUrl:o,headers:l}},this.createOpenAPIClient=({baseUrl:s,headers:o})=>TI({baseUrl:s,onRequest:({request:l})=>{Object.entries(o).forEach(([u,c])=>{c&&l.headers.set(u,c)})}}),this.setAuthToken=s=>{this.userToken=s;const{baseUrl:o,headers:l}=this.constructClientOptions(s);this.client=this.createOpenAPIClient({baseUrl:o,headers:l})},this.getExternalWidgetConfig=async()=>await this.client.GET("/backend/widget/v2/config",{params:{header:{"X-Bot-Token":this.config.token}}}),this.widgetPrelude=async()=>await this.client.GET("/backend/widget/v2/prelude",{params:{header:{"X-Bot-Token":this.config.token}}}),this.sendMessage=async(s,o)=>await this.client.POST("/backend/widget/v2/chat/send",{body:s,signal:o}),this.createUnverifiedContact=async s=>await this.client.POST("/backend/widget/v2/contact/create-unverified",{params:{header:{"x-bot-token":this.config.token}},body:s}),this.createSession=async s=>await this.client.POST("/backend/widget/v2/create-session",{body:s}),this.pollSessionAndHistory=async({sessionId:s,lastMessageTimestamp:o,abortSignal:l})=>{const u=o?{lastMessageTimestamp:o}:void 0;return await this.client.GET("/backend/widget/v2/poll/{sessionId}",{params:{path:{sessionId:s},query:u},signal:l})},this.getSessions=async({cursor:s,filters:o,abortSignal:l})=>await this.client.GET("/backend/widget/v2/sessions",{params:{query:{cursor:s,filters:JSON.stringify(o)}},signal:l}),this.uploadFile=async({file:s,abortSignal:o,onProgress:l})=>new Promise((u,c)=>{var f;const d=new FormData;d.append("file",s);const h=new XMLHttpRequest;if(o&&(o.addEventListener("abort",()=>{h.abort(),c(new DOMException("Aborted","AbortError"))}),o.aborted)){c(new DOMException("Aborted","AbortError"));return}h.upload.addEventListener("progress",T=>{if(T.lengthComputable&&l){const m=Math.round(T.loaded/T.total*100);l(m)}}),h.addEventListener("load",()=>{if(h.status>=200&&h.status<300)try{const T=JSON.parse(h.responseText);u(T)}catch(T){c(new Error(`Failed to parse response: ${T}`))}else c(new Error(`Upload failed with status: ${h.status}`))}),h.addEventListener("error",()=>{c(new Error("Network error occurred"))}),h.addEventListener("timeout",()=>{c(new Error("Upload timed out"))});const{baseUrl:g}=this.constructClientOptions(this.userToken),b=`${g}/backend/widget/v2/upload`;h.open("POST",b),h.setRequestHeader("X-Bot-Token",this.config.token),this.userToken??((f=this.config.user)==null?void 0:f.token)?h.setRequestHeader("Authorization",`Bearer ${this.userToken}`):console.error("User token not set"),h.send(d)}),this.vote=async s=>await this.client.POST("/backend/widget/v2/chat/vote",{body:s}),this.resolveSession=async(s,o)=>await this.client.POST("/backend/widget/v2/session/resolve",{body:s,signal:o}),this.createStateCheckpoint=async s=>await this.client.POST("/backend/widget/v2/checkpoint",{body:s}),this.config=t,this.userToken=((n=t.user)==null?void 0:n.token)||null;const{baseUrl:i,headers:a}=this.constructClientOptions((r=t.user)==null?void 0:r.token);this.client=this.createOpenAPIClient({baseUrl:i,headers:a})}};class Lo{constructor(t){this.subscribers=new Set,this.get=()=>this.state,this.set=n=>{bI(this.state,n)||(this.state=n,this.notifySubscribers(n))},this.setPartial=n=>{if(n==null)return;const r={...this.state,...n};this.set(r)},this.reset=()=>{this.set(this.initialState)},this.notifySubscribers=n=>{Array.from(this.subscribers).forEach(r=>{try{r(n)}catch(i){console.error(i)}})},this.subscribe=n=>(this.subscribers.add(n),()=>{this.subscribers.delete(n)}),this.state=t,this.initialState=t}}class t_{constructor(){this.state=new Lo({isPolling:!1,isError:!1}),this.abortController=new AbortController,this.reset=()=>{var t;this.abortController.abort("Resetting poller"),(t=this.stopPolling)==null||t.call(this),this.stopPolling=null},this.stopPolling=null,this.startPolling=(t,n)=>{if(this.stopPolling)return;const r=[],i=async()=>{this.abortController=new AbortController,this.state.setPartial({isPolling:!0});try{await t(this.abortController.signal)}catch(a){if(this.abortController.signal.aborted)return;console.error("Failed to poll:",a),this.state.setPartial({isError:!0})}finally{this.state.setPartial({isPolling:!1})}this.abortController.signal.aborted?console.log("Poller aborted, not scheduling anymore"):r.push(setTimeout(i,n))};i(),this.stopPolling=()=>{r.forEach(clearTimeout),this.state.reset()}}}}function wI(e){try{const t=e();return t instanceof Promise?t.then(n=>({data:n})).catch(n=>({error:n})):{data:t}}catch(t){return{error:t}}}class _I{constructor({api:t,config:n,sessionCtx:r,messageCtx:i,sessionPollingIntervalSeconds:a}){this.poller=new t_,this.registerPolling=()=>{this.sessionCtx.sessionState.subscribe(({session:s})=>{s!=null&&s.id?this.poller.startPolling(async o=>{this.hackAndSlash(s.id,o)},this.sessionPollingIntervalSeconds*1e3):this.poller.reset()})},this.hackAndSlash=async(s,o)=>{var l;this.messageCtx.state.get().messages.length===0&&this.messageCtx.state.setPartial({isInitialFetchLoading:!0});const u=this.messageCtx.state.get().messages,c=u.length>0?(l=u[u.length-1])==null?void 0:l.timestamp:void 0,{data:f}=await this.api.pollSessionAndHistory({sessionId:s,abortSignal:o,lastMessageTimestamp:c});if(f!=null&&f.session&&(this.sessionCtx.sessionState.setPartial({session:f.session}),this.sessionCtx.setSessions([f.session])),f!=null&&f.history&&f.history.length>0){const d=this.messageCtx.state.get().messages,h=f.history.map(this.mapHistoryToMessage).filter(g=>!d.some(b=>b.id===g.id));this.messageCtx.state.setPartial({messages:[...d,...h]})}this.messageCtx.state.get().isInitialFetchLoading&&this.messageCtx.state.setPartial({isInitialFetchLoading:!1})},this.mapHistoryToMessage=s=>{var o,l;const u={id:s.publicId,timestamp:s.sentAt||"",attachments:s.attachments||void 0};if(s.sender.kind==="user")return{...u,type:"FROM_USER",content:s.content.text||"",deliveredAt:s.sentAt||""};if(s.sender.kind==="agent")return{...u,type:"FROM_AGENT",component:"agent_message",data:{message:s.content.text||""},agent:{name:s.sender.name||"",avatar:s.sender.avatar||"",id:null,isAi:!1}};const c=s.actionCalls&&s.actionCalls.length>0?s.actionCalls[s.actionCalls.length-1]:void 0;return{...u,type:"FROM_BOT",component:"bot_message",agent:{id:null,name:((o=this.config.bot)==null?void 0:o.name)||"",isAi:!0,avatar:((l=this.config.bot)==null?void 0:l.avatar)||""},data:{message:s.content.text||"",action:c?{name:c.actionName,data:this.extractActionResult(c)}:void 0}}},this.extractActionResult=s=>{const o=s.result;if(o===null||typeof o!="object")return o;if("responseBodyText"in o&&typeof o.responseBodyText=="string"){const l=o.responseBodyText,u=wI(()=>JSON.parse(l)).data;if(u)return u}return s.result},this.api=t,this.config=n,this.sessionCtx=r,this.messageCtx=i,this.sessionPollingIntervalSeconds=a,this.registerPolling()}}class SI{constructor({config:t,api:n,storageCtx:r}){var i;this.shouldCollectData=()=>{var a;return!!(!((a=this.state.get().contact)!=null&&a.token)&&this.config.collectUserData)},this.autoCreateUnverifiedUserIfNotExists=async()=>{var a,s,o,l,u,c,f,d,h,g,b,T,m,y;if(!((a=this.config.user)!=null&&a.token)){if(this.config.collectUserData&&!((o=(s=this.config.user)==null?void 0:s.data)!=null&&o.email)){if((l=this.config.extraDataCollectionFields)!=null&&l.length)return;const v=await((u=this.storageCtx)==null?void 0:u.getContactToken());v&&await this.setUnverifiedContact(v);return}if(!((f=(c=this.config.user)==null?void 0:c.data)!=null&&f.email)){const v=await((d=this.storageCtx)==null?void 0:d.getContactToken());if(v){await this.setUnverifiedContact(v);return}}await this.createUnverifiedContact({email:(g=(h=this.config.user)==null?void 0:h.data)==null?void 0:g.email,non_verified_name:((T=(b=this.config.user)==null?void 0:b.data)==null?void 0:T.name)||"Anonymous",non_verified_custom_data:(y=(m=this.config.user)==null?void 0:m.data)==null?void 0:y.customData})}},this.createUnverifiedContact=async(a,s)=>{this.state.setPartial({extraCollectedData:s});try{this.state.setPartial({isCreatingUnverifiedContact:!0,isErrorCreatingUnverifiedContact:!1});const{data:o}=await this.api.createUnverifiedContact(a);o!=null&&o.token?await this.setUnverifiedContact(o.token):this.state.setPartial({isErrorCreatingUnverifiedContact:!0})}finally{this.state.setPartial({isCreatingUnverifiedContact:!1})}},this.setUnverifiedContact=async a=>{var s,o,l,u;const c=await((s=this.storageCtx)==null?void 0:s.getExternalContactId()),f=((o=this.config.user)==null?void 0:o.externalId)||c||fg();this.api.setAuthToken(a),await((l=this.storageCtx)==null?void 0:l.setContactToken(a)),await((u=this.storageCtx)==null?void 0:u.setExternalContactId(f)),this.state.setPartial({contact:{token:a,externalId:f}})},this.config=t,this.storageCtx=r,this.api=n,this.state=new Lo({contact:(i=t.user)!=null&&i.token?{token:t.user.token,externalId:t.user.externalId}:null,extraCollectedData:void 0,isCreatingUnverifiedContact:!1,isErrorCreatingUnverifiedContact:!1}),this.autoCreateUnverifiedUserIfNotExists()}}function dg(){return fg()}let AI=class{constructor({config:t,api:n,contactCtx:r,sessionsPollingIntervalSeconds:i}){this.sessionsRefresher=new t_,this.sessionState=new Lo({session:null,isCreatingSession:!1,isResolvingSession:!1}),this.sessionsState=new Lo({data:[],cursor:void 0,isLastPage:!1,didStartInitialFetch:!1,isInitialFetchLoading:!0}),this.reset=async()=>{this.sessionState.reset()},this.registerSessionsRefresherWrapper=()=>{var a;(a=this.contactCtx.state.get().contact)!=null&&a.token&&!this.sessionsState.get().didStartInitialFetch?this.registerSessionsRefresher():this.contactCtx.state.subscribe(({contact:s})=>{s!=null&&s.token&&!this.sessionsState.get().didStartInitialFetch&&this.registerSessionsRefresher()})},this.registerSessionsRefresher=()=>{this.sessionsRefresher.startPolling(async()=>{this.sessionsState.get().didStartInitialFetch===!1&&this.sessionsState.setPartial({didStartInitialFetch:!0}),await this.refreshSessions(),this.sessionsState.get().isInitialFetchLoading===!0&&this.sessionsState.setPartial({isInitialFetchLoading:!1})},this.sessionsPollingIntervalSeconds*1e3)},this.createSession=async()=>{var a;this.sessionState.setPartial({session:null,isCreatingSession:!0});const s=(a=this.contactCtx.state.get().contact)==null?void 0:a.externalId,o={...this.config.sessionCustomData,...s?{external_id:s}:{}},{data:l,error:u}=await this.api.createSession({customData:Object.keys(o).length>0?o:void 0});return l?(this.sessionState.setPartial({session:l,isCreatingSession:!1}),l):(this.sessionState.setPartial({isCreatingSession:!1}),console.error("Failed to create session:",u),null)},this.loadMoreSessions=async()=>{if(this.sessionsState.get().isLastPage)return;const{data:a}=await this.getSessions({cursor:this.sessionsState.get().cursor});if(a){const s=[...this.sessionsState.get().data,...a.items].filter((o,l,u)=>l===u.findIndex(c=>o.id===c.id));this.sessionsState.setPartial({data:s,cursor:a.next||void 0,isLastPage:a.next===null})}},this.getSessions=async({cursor:a})=>{var s,o;if(!((s=this.contactCtx.state.get().contact)!=null&&s.token))return{data:null};const l=(o=this.contactCtx.state.get().contact)==null?void 0:o.externalId;return await this.api.getSessions({cursor:a,filters:l?{external_id:l}:{}})},this.setSessions=a=>{const s=[...a,...this.sessionsState.get().data].filter((o,l,u)=>l===u.findIndex(c=>o.id===c.id));this.sessionsState.setPartial({data:s})},this.refreshSessions=async()=>{const{data:a}=await this.getSessions({cursor:void 0});a&&this.setSessions(a.items)},this.resolveSession=async()=>{const a=this.sessionState.get().session;if(!a||!a.isOpened)return{success:!1,error:"Session is not opened"};this.sessionState.setPartial({isResolvingSession:!0});const{data:s,error:o}=await this.api.resolveSession({session_id:a.id});return s?(this.sessionState.setPartial({session:s,isResolvingSession:!1}),{success:!0,data:s}):(this.sessionState.setPartial({isResolvingSession:!1}),{success:!1,error:o})},this.createStateCheckpoint=async a=>{var s;const o=(s=this.sessionState.get().session)==null?void 0:s.id;if(!o)return;const{data:l,error:u}=await this.api.createStateCheckpoint({session_id:o,payload:a});return l?{data:l}:{success:!1,error:u}},this.config=t,this.api=n,this.contactCtx=r,this.sessionsPollingIntervalSeconds=i,this.registerSessionsRefresherWrapper()}},CI=class{constructor({config:t,api:n,sessionCtx:r,contactCtx:i}){this.state=new Lo({messages:[],isSendingMessage:!1,lastAIResMightSolveUserIssue:!1,isInitialFetchLoading:!1}),this.sendMessageAbortController=new AbortController,this.reset=()=>{this.sendMessageAbortController.abort("Resetting chat"),this.state.reset()},this.sendMessage=async a=>{var s,o,l,u,c,f,d,h;try{if(!a.content.trim()&&(!a.attachments||a.attachments.length===0)){console.warn("Cannot send an empty message of no content or attachments");return}const g=this.state.get().isSendingMessage,b=((s=this.sessionCtx.sessionState.get().session)==null?void 0:s.assignee.kind)==="ai",T=this.state.get().messages,m=T.length>0?T[T.length-1]:void 0;if(b&&g||b&&(m==null?void 0:m.type)==="FROM_USER"){console.warn("Cannot send messages while awaiting AI response");return}this.sendMessageAbortController=new AbortController,this.state.setPartial({lastAIResMightSolveUserIssue:!1}),this.state.setPartial({isSendingMessage:!0});const y=this.toUserMessage(a.content.trim(),a.attachments||void 0),v=this.state.get().messages;if(this.state.setPartial({messages:[...v,y]}),!((o=this.sessionCtx.sessionState.get().session)!=null&&o.id)){if(!await this.sessionCtx.createSession()){console.error("Failed to create session");return}this.sessionCtx.refreshSessions()}const w=(l=this.sessionCtx.sessionState.get().session)==null?void 0:l.id;if(!w)return;const{data:_}=await this.api.sendMessage({uuid:y.id,bot_token:this.config.token,headers:this.config.headers,query_params:this.config.queryParams,body_properties:this.config.bodyProperties,session_id:w,content:y.content,attachments:a.attachments,clientContext:this.config.context,custom_data:{...this.config.messageCustomData||{},...a.customData||{}},language:this.config.language,exit_mode_prompt:a.exitModePrompt},this.sendMessageAbortController.signal);if(_!=null&&_.success){const A=this.toBotMessage(_);if(A){const D=this.state.get().messages;if(D.some(L=>L.id===A.id)){this.state.setPartial({lastAIResMightSolveUserIssue:((u=_.autopilotResponse)==null?void 0:u.mightSolveUserIssue)||((c=_.uiResponse)==null?void 0:c.mightSolveUserIssue)});return}this.state.setPartial({messages:[...D,A],lastAIResMightSolveUserIssue:((f=_.autopilotResponse)==null?void 0:f.mightSolveUserIssue)||((d=_.uiResponse)==null?void 0:d.mightSolveUserIssue)})}_.session&&this.sessionCtx.sessionState.setPartial({session:_.session})}else{const A=this.toBotErrorMessage(((h=_==null?void 0:_.error)==null?void 0:h.message)||"Unknown error occurred"),D=this.state.get().messages;this.state.setPartial({messages:[...D,A]})}}catch(g){this.sendMessageAbortController.signal.aborted||console.error("Failed to send message:",g)}finally{this.state.setPartial({isSendingMessage:!1})}},this.toUserMessage=(a,s)=>{const o=(()=>{const l=this.contactCtx.state.get().extraCollectedData;return this.state.get().messages.length===0&&l&&Object.keys(l).length>0?`${Object.entries(l).filter(([u,c])=>!!c).map(([u,c])=>`${u}: ${c}`).join(`
90
+ `)}
91
+
92
+ ${a}`:a})();return{id:dg(),type:"FROM_USER",content:o,deliveredAt:new Date().toISOString(),attachments:s,timestamp:new Date().toISOString()}},this.toBotMessage=a=>{var s;return a.success&&a.autopilotResponse?{type:"FROM_BOT",id:a.autopilotResponse.id||dg(),timestamp:new Date().toISOString(),component:"bot_message",agent:this.config.bot?{name:this.config.bot.name||"",isAi:!0,avatar:this.config.bot.avatar||"",id:null}:void 0,data:{message:a.autopilotResponse.value.content,action:(s=a.uiResponse)!=null&&s.value.name?{name:a.uiResponse.value.name,data:a.uiResponse.value.request_response}:void 0}}:null},this.toBotErrorMessage=a=>({type:"FROM_BOT",id:dg(),timestamp:new Date().toISOString(),component:"TEXT",data:{message:a,variant:"error",action:void 0}}),this.config=t,this.api=n,this.sessionCtx=r,this.contactCtx=i}},kI=class{constructor({config:t,contactCtx:n,sessionCtx:r,resetChat:i}){var a;this.registerRoutingListener=()=>{this.contactCtx.state.subscribe(({contact:s})=>{var o;s!=null&&s.token&&this.state.get().screen==="welcome"&&this.state.setPartial({screen:(o=this.config.router)!=null&&o.chatScreenOnly?"chat":"sessions"})}),this.sessionCtx.sessionsState.subscribe(({isInitialFetchLoading:s,data:o})=>{var l,u,c,f;if((l=this.config.router)!=null&&l.chatScreenOnly&&!((u=this.sessionCtx.sessionState.get().session)!=null&&u.id)){const d=(c=o.find(h=>h.isOpened))==null?void 0:c.id;return d?this.toChatScreen(d):void 0}o.length||((f=this.config.router)==null?void 0:f.goToChatIfNoSessions)!==!1&&!s&&this.state.get().screen!=="chat"&&this.toChatScreen()})},this.toSessionsScreen=()=>{this.resetChat(),this.state.setPartial({screen:"sessions"})},this.toChatScreen=s=>{if(this.resetChat(),s){const o=this.sessionCtx.sessionsState.get().data.find(l=>l.id===s);if(!o)return;this.sessionCtx.sessionState.setPartial({session:o})}this.state.setPartial({screen:"chat"})},this.config=t,this.contactCtx=n,this.sessionCtx=r,this.resetChat=i,this.state=new Lo({screen:this.contactCtx.shouldCollectData()?"welcome":(a=this.config.router)!=null&&a.chatScreenOnly?"chat":"sessions"}),this.registerRoutingListener()}},OI=class{constructor({storage:t,config:n}){this.KEYS={contactToken:r=>`opencx-widget:org-token-${r}:contact-token`,externalContactId:r=>`opencx-widget:org-token-${r}:external-contact-id`},this.setContactToken=async r=>{await this.storage.set(this.KEYS.contactToken(this.config.token),r)},this.getContactToken=async()=>this.storage.get(this.KEYS.contactToken(this.config.token)),this.setExternalContactId=async r=>{await this.storage.set(this.KEYS.externalContactId(this.config.token),r)},this.getExternalContactId=async()=>this.storage.get(this.KEYS.externalContactId(this.config.token)),this.storage=t,this.config=n}};const Ru=class rp{constructor({config:t,storage:n,modes:r}){if(this.modes=[],this.resetChat=()=>{this.sessionCtx.reset(),this.messageCtx.reset()},!rp.pollingIntervalsSeconds)throw Error("Widget polling values are not defined, did you call WidgetCtx.initialize()");this.config=t,this.api=new e_({config:t}),this.storageCtx=n?new OI({storage:n,config:t}):void 0,this.modes=r,this.contactCtx=new SI({api:this.api,config:this.config,storageCtx:this.storageCtx}),this.sessionCtx=new AI({config:this.config,api:this.api,contactCtx:this.contactCtx,sessionsPollingIntervalSeconds:rp.pollingIntervalsSeconds.sessions}),this.messageCtx=new CI({config:this.config,api:this.api,sessionCtx:this.sessionCtx,contactCtx:this.contactCtx}),this.activeSessionPollingCtx=new _I({api:this.api,config:this.config,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx,sessionPollingIntervalSeconds:rp.pollingIntervalsSeconds.session}),this.routerCtx=new kI({config:this.config,contactCtx:this.contactCtx,sessionCtx:this.sessionCtx,resetChat:this.resetChat})}};Ru.pollingIntervalsSeconds=null,Ru.initialize=async({config:e,storage:t})=>{var n,r,i;const a=await new e_({config:e}).getExternalWidgetConfig();return Ru.pollingIntervalsSeconds={session:((n=a.data)==null?void 0:n.sessionPollingIntervalSeconds)||10,sessions:((r=a.data)==null?void 0:r.sessionsPollingIntervalSeconds)||60},new Ru({config:e,storage:t,modes:((i=a.data)==null?void 0:i.modes)||[]})};let RI=Ru;function Rr(e,t){console.error(`Missing case for ${e} in ${t}`)}var n_={exports:{}},r_={};/**
93
+ * @license React
94
+ * use-sync-external-store-shim.production.js
95
+ *
96
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
97
+ *
98
+ * This source code is licensed under the MIT license found in the
99
+ * LICENSE file in the root directory of this source tree.
100
+ */var Io=E;function NI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DI=typeof Object.is=="function"?Object.is:NI,MI=Io.useState,LI=Io.useEffect,II=Io.useLayoutEffect,PI=Io.useDebugValue;function BI(e,t){var n=t(),r=MI({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return II(function(){i.value=n,i.getSnapshot=t,hg(i)&&a({inst:i})},[e,n,t]),LI(function(){return hg(i)&&a({inst:i}),e(function(){hg(i)&&a({inst:i})})},[e]),PI(n),n}function hg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!DI(e,n)}catch{return!0}}function UI(e,t){return t()}var zI=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?UI:BI;r_.useSyncExternalStore=Io.useSyncExternalStore!==void 0?Io.useSyncExternalStore:zI,n_.exports=r_;var i_=n_.exports;const a_=0,s_=1,o_=2,l_=3;var u_=Object.prototype.hasOwnProperty;function pg(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&pg(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(u_.call(e,n)&&++r&&!u_.call(t,n)||!(n in t)||!pg(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Si=new WeakMap,ba=()=>{},dn=ba(),mg=Object,Fe=e=>e===dn,Wr=e=>typeof e=="function",ya=(e,t)=>({...e,...t}),c_=e=>Wr(e.then),gg={},Dd={},bg="undefined",Nu=typeof window!=bg,yg=typeof document!=bg,jI=Nu&&"Deno"in window,FI=()=>Nu&&typeof window.requestAnimationFrame!=bg,f_=(e,t)=>{const n=Si.get(e);return[()=>!Fe(t)&&e.get(t)||gg,r=>{if(!Fe(t)){const i=e.get(t);t in Dd||(Dd[t]=i),n[5](t,ya(i,r),i||gg)}},n[6],()=>!Fe(t)&&t in Dd?Dd[t]:!Fe(t)&&e.get(t)||gg]};let vg=!0;const HI=()=>vg,[xg,Eg]=Nu&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ba,ba],VI=()=>{const e=yg&&document.visibilityState;return Fe(e)||e!=="hidden"},qI=e=>(yg&&document.addEventListener("visibilitychange",e),xg("focus",e),()=>{yg&&document.removeEventListener("visibilitychange",e),Eg("focus",e)}),YI=e=>{const t=()=>{vg=!0,e()},n=()=>{vg=!1};return xg("online",t),xg("offline",n),()=>{Eg("online",t),Eg("offline",n)}},GI={isOnline:HI,isVisible:VI},$I={initFocus:qI,initReconnect:YI},d_=!Un.useId,Du=!Nu||jI,XI=e=>FI()?window.requestAnimationFrame(e):setTimeout(e,1),Tg=Du?E.useEffect:E.useLayoutEffect,wg=typeof navigator<"u"&&navigator.connection,h_=!Du&&wg&&(["slow-2g","2g"].includes(wg.effectiveType)||wg.saveData),Md=new WeakMap,KI=e=>mg.prototype.toString.call(e),_g=(e,t)=>e===`[object ${t}]`;let WI=0;const Sg=e=>{const t=typeof e,n=KI(e),r=_g(n,"Date"),i=_g(n,"RegExp"),a=_g(n,"Object");let s,o;if(mg(e)===e&&!r&&!i){if(s=Md.get(e),s)return s;if(s=++WI+"~",Md.set(e,s),Array.isArray(e)){for(s="@",o=0;o<e.length;o++)s+=Sg(e[o])+",";Md.set(e,s)}if(a){s="#";const l=mg.keys(e).sort();for(;!Fe(o=l.pop());)Fe(e[o])||(s+=o+":"+Sg(e[o])+",");Md.set(e,s)}}else s=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},Ag=e=>{if(Wr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Sg(e):"",[e,t]};let QI=0;const Cg=()=>++QI;async function p_(...e){const[t,n,r,i]=e,a=ya({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let s=a.populateCache;const o=a.rollbackOnError;let l=a.optimisticData;const u=d=>typeof o=="function"?o(d):o!==!1,c=a.throwOnError;if(Wr(n)){const d=n,h=[],g=t.keys();for(const b of g)!/^\$(inf|sub)\$/.test(b)&&d(t.get(b)._k)&&h.push(b);return Promise.all(h.map(f))}return f(n);async function f(d){const[h]=Ag(d);if(!h)return;const[g,b]=f_(t,h),[T,m,y,v]=Si.get(t),w=()=>{const K=T[h];return(Wr(a.revalidate)?a.revalidate(g().data,d):a.revalidate!==!1)&&(delete y[h],delete v[h],K&&K[0])?K[0](o_).then(()=>g().data):g().data};if(e.length<3)return w();let _=r,A,D=!1;const L=Cg();m[h]=[L,0];const U=!Fe(l),R=g(),q=R.data,F=R._c,ne=Fe(F)?q:F;if(U&&(l=Wr(l)?l(ne,q):l,b({data:l,_c:ne})),Wr(_))try{_=_(ne)}catch(K){A=K,D=!0}if(_&&c_(_))if(_=await _.catch(K=>{A=K,D=!0}),L!==m[h][0]){if(D)throw A;return _}else D&&U&&u(A)&&(s=!0,b({data:ne,_c:dn}));if(s&&!D)if(Wr(s)){const K=s(_,ne);b({data:K,error:dn,_c:dn})}else b({data:_,error:dn,_c:dn});if(m[h][1]=Cg(),Promise.resolve(w()).then(()=>{b({_c:dn})}),D){if(c)throw A;return}return _}}const m_=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},ZI=(e,t)=>{if(!Si.has(e)){const n=ya($I,t),r=Object.create(null),i=p_.bind(dn,e);let a=ba;const s=Object.create(null),o=(c,f)=>{const d=s[c]||[];return s[c]=d,d.push(f),()=>d.splice(d.indexOf(f),1)},l=(c,f,d)=>{e.set(c,f);const h=s[c];if(h)for(const g of h)g(f,d)},u=()=>{if(!Si.has(e)&&(Si.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,l,o]),!Du)){const c=n.initFocus(setTimeout.bind(dn,m_.bind(dn,r,a_))),f=n.initReconnect(setTimeout.bind(dn,m_.bind(dn,r,s_)));a=()=>{c&&c(),f&&f(),Si.delete(e)}}};return u(),[e,i,u,a]}return[e,Si.get(e)[4]]},JI=(e,t,n,r,i)=>{const a=n.errorRetryCount,s=i.retryCount,o=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!Fe(a)&&s>a||setTimeout(r,o,i)},e8=pg,[g_,t8]=ZI(new Map),n8=ya({onLoadingSlow:ba,onSuccess:ba,onError:ba,onErrorRetry:JI,onDiscarded:ba,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:h_?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:h_?5e3:3e3,compare:e8,isPaused:()=>!1,cache:g_,mutate:t8,fallback:{}},GI),r8=(e,t)=>{const n=ya(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:s}=t;r&&a&&(n.use=r.concat(a)),i&&s&&(n.fallback=ya(i,s))}return n},i8=E.createContext({}),a8="$inf$",b_=Nu&&window.__SWR_DEVTOOLS_USE__,s8=b_?window.__SWR_DEVTOOLS_USE__:[],o8=()=>{b_&&(window.__SWR_DEVTOOLS_REACT__=Un)},l8=e=>Wr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],u8=()=>{const e=E.useContext(i8);return E.useMemo(()=>ya(n8,e),[e])},c8=e=>(t,n,r)=>e(t,n&&((...a)=>{const[s]=Ag(t),[,,,o]=Si.get(g_);if(s.startsWith(a8))return n(...a);const l=o[s];return Fe(l)?n(...a):(delete o[s],l)}),r),f8=s8.concat(c8),d8=e=>function(...n){const r=u8(),[i,a,s]=l8(n),o=r8(r,s);let l=e;const{use:u}=o,c=(u||[]).concat(f8);for(let f=c.length;f--;)l=c[f](l);return l(i,a||o.fetcher||null,o)},h8=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};o8();const kg=Un.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Og={dedupe:!0},y_=Promise.resolve(dn),p8=d8((e,t,n)=>{const{cache:r,compare:i,suspense:a,fallbackData:s,revalidateOnMount:o,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:f,keepPreviousData:d}=n,[h,g,b,T]=Si.get(r),[m,y]=Ag(e),v=E.useRef(!1),w=E.useRef(!1),_=E.useRef(m),A=E.useRef(t),D=E.useRef(n),L=()=>D.current,U=()=>L().isVisible()&&L().isOnline(),[R,q,F,ne]=f_(r,m),K=E.useRef({}).current,W=Fe(s)?Fe(n.fallback)?dn:n.fallback[m]:s,H=(ye,Ie)=>{for(const $e in K){const Re=$e;if(Re==="data"){if(!i(ye[Re],Ie[Re])&&(!Fe(ye[Re])||!i(pe,Ie[Re])))return!1}else if(Ie[Re]!==ye[Re])return!1}return!0},V=E.useMemo(()=>{const ye=!m||!t?!1:Fe(o)?L().isPaused()||a?!1:l!==!1:o,Ie=dt=>{const _n=ya(dt);return delete _n._k,ye?{isValidating:!0,isLoading:!0,..._n}:_n},$e=R(),Re=ne(),et=Ie($e),At=$e===Re?et:Ie(Re);let Be=et;return[()=>{const dt=Ie(R());return H(dt,Be)?(Be.data=dt.data,Be.isLoading=dt.isLoading,Be.isValidating=dt.isValidating,Be.error=dt.error,Be):(Be=dt,dt)},()=>At]},[r,m]),j=i_.useSyncExternalStore(E.useCallback(ye=>F(m,(Ie,$e)=>{H($e,Ie)||ye()}),[r,m]),V[0],V[1]),te=!v.current,O=h[m]&&h[m].length>0,he=j.data,je=Fe(he)?W&&c_(W)?kg(W):W:he,M=j.error,Le=E.useRef(je),pe=d?Fe(he)?Fe(Le.current)?je:Le.current:he:je,Pe=O&&!Fe(M)?!1:te&&!Fe(o)?o:L().isPaused()?!1:a?Fe(je)?!1:l:Fe(je)||l,Gt=!!(m&&t&&te&&Pe),Qe=Fe(j.isValidating)?Gt:j.isValidating,Ut=Fe(j.isLoading)?Gt:j.isLoading,lt=E.useCallback(async ye=>{const Ie=A.current;if(!m||!Ie||w.current||L().isPaused())return!1;let $e,Re,et=!0;const At=ye||{},Be=!b[m]||!At.dedupe,dt=()=>d_?!w.current&&m===_.current&&v.current:m===_.current,_n={isValidating:!1,isLoading:!1},Ba=()=>{q(_n)},Ua=()=>{const se=b[m];se&&se[1]===Re&&delete b[m]},re={isValidating:!0};Fe(R().data)&&(re.isLoading=!0);try{if(Be&&(q(re),n.loadingTimeout&&Fe(R().data)&&setTimeout(()=>{et&&dt()&&L().onLoadingSlow(m,n)},n.loadingTimeout),b[m]=[Ie(y),Cg()]),[$e,Re]=b[m],$e=await $e,Be&&setTimeout(Ua,n.dedupingInterval),!b[m]||b[m][1]!==Re)return Be&&dt()&&L().onDiscarded(m),!1;_n.error=dn;const se=g[m];if(!Fe(se)&&(Re<=se[0]||Re<=se[1]||se[1]===0))return Ba(),Be&&dt()&&L().onDiscarded(m),!1;const B=R().data;_n.data=i(B,$e)?B:$e,Be&&dt()&&L().onSuccess($e,m,n)}catch(se){Ua();const B=L(),{shouldRetryOnError:G}=B;B.isPaused()||(_n.error=se,Be&&dt()&&(B.onError(se,m,B),(G===!0||Wr(G)&&G(se))&&(!L().revalidateOnFocus||!L().revalidateOnReconnect||U())&&B.onErrorRetry(se,m,B,oe=>{const be=h[m];be&&be[0]&&be[0](l_,oe)},{retryCount:(At.retryCount||0)+1,dedupe:!0})))}return et=!1,Ba(),!0},[m,r]),Dt=E.useCallback((...ye)=>p_(r,_.current,...ye),[]);if(Tg(()=>{A.current=t,D.current=n,Fe(he)||(Le.current=he)}),Tg(()=>{if(!m)return;const ye=lt.bind(dn,Og);let Ie=0;L().revalidateOnFocus&&(Ie=Date.now()+L().focusThrottleInterval);const Re=h8(m,h,(et,At={})=>{if(et==a_){const Be=Date.now();L().revalidateOnFocus&&Be>Ie&&U()&&(Ie=Be+L().focusThrottleInterval,ye())}else if(et==s_)L().revalidateOnReconnect&&U()&&ye();else{if(et==o_)return lt();if(et==l_)return lt(At)}});return w.current=!1,_.current=m,v.current=!0,q({_k:y}),Pe&&(b[m]||(Fe(je)||Du?ye():XI(ye))),()=>{w.current=!0,Re()}},[m]),Tg(()=>{let ye;function Ie(){const Re=Wr(u)?u(R().data):u;Re&&ye!==-1&&(ye=setTimeout($e,Re))}function $e(){!R().error&&(c||L().isVisible())&&(f||L().isOnline())?lt(Og).then(Ie):Ie()}return Ie(),()=>{ye&&(clearTimeout(ye),ye=-1)}},[u,c,f,m]),E.useDebugValue(pe),a){if(!d_&&Du)throw new Error("Fallback data is required when using Suspense in SSR.");const ye=m&&Fe(je);ye&&(A.current=t,D.current=n,w.current=!1);const Ie=T[m],$e=!Fe(Ie)&&ye?Dt(Ie):y_;if(kg($e),!Fe(M)&&ye)throw M;const Re=ye?lt(Og):y_;!Fe(pe)&&ye&&(Re.status="fulfilled",Re.value=!0),kg(Re)}return{mutate:Dt,get data(){return K.data=!0,pe},get error(){return K.error=!0,M},get isValidating(){return K.isValidating=!0,Qe},get isLoading(){return K.isLoading=!0,Ut}}}),m8="4.0.0";class g8{constructor(t){this.components=[];const{components:n}=t;if(n&&n.forEach(r=>this.register(r)),this.components.length===0)throw new Error("No components registered");if(!this.get("fallback"))throw new Error("No fallback component registered")}register(t){const n=this.components.findIndex(r=>r.key===t.key);return n!==-1?this.components[n]=t:this.components.push(t),this}get(t){return this.components.find(r=>r.key.toUpperCase()===t.toUpperCase())||null}getComponent(t){var n;return(n=this.get(t))==null?void 0:n.component}}const v_=E.createContext(null);function b8({options:e,children:t,components:n,storage:r,loadingComponent:i}){const a=E.useRef(null),s=E.useRef(!1),[o,l]=E.useState(null),u=E.useMemo(()=>new g8({components:n}),[n]);return E.useEffect(()=>{s.current||(s.current=!0,RI.initialize({config:e,storage:r}).then(l))},[]),o?Un.createElement(v_.Provider,{value:{widgetCtx:o,config:e,components:n,componentStore:u,version:m8,contentIframeRef:a}},t):i||null}function hn(){const e=E.useContext(v_);if(!e)throw new Error("useWidget must be used within a WidgetProvider");return e}function qt(){const{config:e}=hn();return e}function Mu(e){return E.useSyncExternalStore(e.subscribe,e.get,e.get)}function y8(){const{widgetCtx:e}=hn();return{contactState:Mu(e.contactCtx.state),createUnverifiedContact:e.contactCtx.createUnverifiedContact}}const Rg=()=>{const[e,t]=E.useState("ltr");return E.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle(document.body).direction)};n();const r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{r.disconnect(),window.removeEventListener("languagechange",n)}},[]),e};function va(){const{widgetCtx:e}=hn();return{messagesState:Mu(e.messageCtx.state),sendMessage:e.messageCtx.sendMessage}}function Ai(){const{widgetCtx:e}=hn(),{oneOpenSessionAllowed:t}=qt(),n=Mu(e.sessionCtx.sessionState),r=Mu(e.sessionCtx.sessionsState),{openSessions:i,closedSessions:a}=E.useMemo(()=>({openSessions:r.data.filter(o=>o.isOpened===!0),closedSessions:r.data.filter(o=>o.isOpened===!1)}),[r.data]),s=E.useMemo(()=>t?i.length===0:!0,[t,i.length]);return{sessionState:n,sessionsState:r,loadMoreSessions:e.sessionCtx.loadMoreSessions,resolveSession:e.sessionCtx.resolveSession,createStateCheckpoint:e.sessionCtx.createStateCheckpoint,openSessions:i,closedSessions:a,canCreateNewSession:s}}function x_(){var e;const{sessionState:t}=Ai(),{messagesState:n}=va(),r=((e=t.session)==null?void 0:e.assignee.kind)==="ai",i=n.messages.length>0?n.messages[n.messages.length-1]:null,a=(i==null?void 0:i.type)==="FROM_USER";return{isAwaitingBotReply:(r||t.isCreatingSession)&&(n.isSendingMessage||a)}}function Ld(){const{widgetCtx:e}=hn();return p8([e.config.token],e.api.widgetPrelude,{revalidateOnFocus:!1})}function Ci(){const{widgetCtx:e}=hn();return{routerState:Mu(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}const xa=new Map;function v8(){const[e,t]=E.useState([]),{widgetCtx:{api:n}}=hn();function r(c){const f=c.map(d=>({file:d,id:fg(),status:"pending",progress:0}));t(d=>[...d,...f]),f.forEach(s)}function i(c,f){t(d=>d.map(h=>h.id===c?{...h,...f}:h))}function a(c){t(f=>f.filter(d=>d.id!==c))}const s=async c=>{const f=new AbortController;xa.set(c.id,f);try{t(h=>h.map(g=>g.id===c.id?{...g,status:"uploading",progress:0}:g));const d=await n.uploadFile({file:c.file,abortSignal:f.signal,onProgress:h=>{i(c.id,{progress:h})}});i(c.id,{status:"success",fileUrl:d.fileUrl,progress:100})}catch(d){f.signal.aborted||i(c.id,{status:"error",error:d instanceof Error?d.message:"Upload failed",progress:0})}finally{xa.delete(c.id)}},o=c=>{const f=xa.get(c);f&&(f.abort(),xa.delete(c)),a(c)},l=E.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function u(){xa.forEach(c=>c.abort()),xa.clear(),t([])}return E.useEffect(()=>()=>{xa.forEach(c=>c.abort()),xa.clear()},[]),{allFiles:e,appendFiles:r,handleCancelUpload:o,successFiles:l,emptyTheFiles:u,getFileById:c=>e.find(f=>f.id===c),getUploadProgress:c=>{var f;return((f=e.find(d=>d.id===c))==null?void 0:f.progress)??0},getUploadStatus:c=>{var f;return(f=e.find(d=>d.id===c))==null?void 0:f.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}const E_=E.createContext(null);function x8({children:e}){const t=qt(),[n,r]=E.useState(()=>t.inline?!0:t.isOpen??!1);return E.useEffect(()=>{r(i=>t.isOpen??i)},[t.isOpen]),E.useEffect(()=>{const i=t.openAfterNSeconds;if(typeof i!="number"||isNaN(i))return;const a=setTimeout(()=>r(!0),i*1e3);return()=>clearTimeout(a)},[t.openAfterNSeconds]),Un.createElement(E_.Provider,{value:{isOpen:n,setIsOpen:r}},e)}function Po(){const e=E.useContext(E_);if(!e)throw new Error("useWidgetTrigger must be used within a WidgetTriggerProvider");return e}function T_(){var e,t;const{widgetCtx:n}=hn(),{modesComponents:r}=qt(),{sessionState:i}=Ai(),a=n.modes,s=(e=i.session)==null?void 0:e.modeId,o=a.find(u=>u.id===s),l=(t=r==null?void 0:r.find(u=>{var c,f;return[(o==null?void 0:o.id)||"",((c=o==null?void 0:o.name)==null?void 0:c.toLowerCase())||"",((f=o==null?void 0:o.slug)==null?void 0:f.toLowerCase())||""].includes(u.key.toLowerCase())}))==null?void 0:t.component;return{modes:a,modesComponents:r,activeModeId:s,activeMode:o,Component:l}}const w_=-1,Id=0,Lu=1,Pd=2,Ng=3,Dg=4,Mg=5,Lg=6,__=7,S_=8,A_=typeof self=="object"?self:globalThis,E8=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Id:case w_:return n(s,i);case Lu:{const o=n([],i);for(const l of s)o.push(r(l));return o}case Pd:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case Ng:return n(new Date(s),i);case Dg:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case Mg:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case Lg:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case __:{const{name:o,message:l}=s;return n(new A_[o](l),i)}case S_:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new A_[a](s),i)};return r},C_=e=>E8(new Map,e)(0),Bo="",{toString:T8}={},{keys:w8}=Object,Iu=e=>{const t=typeof e;if(t!=="object"||!e)return[Id,t];const n=T8.call(e).slice(8,-1);switch(n){case"Array":return[Lu,Bo];case"Object":return[Pd,Bo];case"Date":return[Ng,Bo];case"RegExp":return[Dg,Bo];case"Map":return[Mg,Bo];case"Set":return[Lg,Bo];case"DataView":return[Lu,n]}return n.includes("Array")?[Lu,n]:n.includes("Error")?[__,n]:[Pd,n]},Bd=([e,t])=>e===Id&&(t==="function"||t==="symbol"),_8=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=Iu(s);switch(o){case Id:{let c=s;switch(l){case"bigint":o=S_,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([w_],s)}return i([o,c],s)}case Lu:{if(l){let d=s;return l==="DataView"?d=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(s)),i([l,[...d]],s)}const c=[],f=i([o,c],s);for(const d of s)c.push(a(d));return f}case Pd:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],f=i([o,c],s);for(const d of w8(s))(e||!Bd(Iu(s[d])))&&c.push([a(d),a(s[d])]);return f}case Ng:return i([o,s.toISOString()],s);case Dg:{const{source:c,flags:f}=s;return i([o,{source:c,flags:f}],s)}case Mg:{const c=[],f=i([o,c],s);for(const[d,h]of s)(e||!(Bd(Iu(d))||Bd(Iu(h))))&&c.push([a(d),a(h)]);return f}case Lg:{const c=[],f=i([o,c],s);for(const d of s)(e||!Bd(Iu(d)))&&c.push(a(d));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},k_=(e,{json:t,lossy:n}={})=>{const r=[];return _8(!(t||n),!!t,new Map,r)(e),r},Uo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?C_(k_(e,t)):structuredClone(e):(e,t)=>C_(k_(e,t));function jJ(){}function FJ(){}let Pu=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Pu.prototype.normal={},Pu.prototype.property={},Pu.prototype.space=void 0;function O_(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Pu(n,r,t)}function Bu(e){return e.toLowerCase()}let Dn=class{constructor(t,n){this.attribute=n,this.property=t}};Dn.prototype.attribute="",Dn.prototype.booleanish=!1,Dn.prototype.boolean=!1,Dn.prototype.commaOrSpaceSeparated=!1,Dn.prototype.commaSeparated=!1,Dn.prototype.defined=!1,Dn.prototype.mustUseProperty=!1,Dn.prototype.number=!1,Dn.prototype.overloadedBoolean=!1,Dn.prototype.property="",Dn.prototype.spaceSeparated=!1,Dn.prototype.space=void 0;let S8=0;const we=cs(),It=cs(),Ig=cs(),Z=cs(),st=cs(),zo=cs(),Qn=cs();function cs(){return 2**++S8}const Pg=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:It,commaOrSpaceSeparated:Qn,commaSeparated:zo,number:Z,overloadedBoolean:Ig,spaceSeparated:st},Symbol.toStringTag,{value:"Module"})),Bg=Object.keys(Pg);let Ug=class extends Dn{constructor(t,n,r,i){let a=-1;if(super(t,n),R_(this,"space",i),typeof r=="number")for(;++a<Bg.length;){const s=Bg[a];R_(this,Bg[a],(r&Pg[s])===Pg[s])}}};Ug.prototype.defined=!0;function R_(e,t,n){n&&(e[t]=n)}function jo(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Ug(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Bu(r)]=r,n[Bu(a.attribute)]=r}return new Pu(t,n,e.space)}const N_=jo({properties:{ariaActiveDescendant:null,ariaAtomic:It,ariaAutoComplete:null,ariaBusy:It,ariaChecked:It,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:st,ariaCurrent:null,ariaDescribedBy:st,ariaDetails:null,ariaDisabled:It,ariaDropEffect:st,ariaErrorMessage:null,ariaExpanded:It,ariaFlowTo:st,ariaGrabbed:It,ariaHasPopup:null,ariaHidden:It,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:st,ariaLevel:Z,ariaLive:null,ariaModal:It,ariaMultiLine:It,ariaMultiSelectable:It,ariaOrientation:null,ariaOwns:st,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:It,ariaReadOnly:It,ariaRelevant:null,ariaRequired:It,ariaRoleDescription:st,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:It,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function D_(e,t){return t in e?e[t]:t}function M_(e,t){return D_(e,t.toLowerCase())}const A8=jo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zo,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:st,autoFocus:we,autoPlay:we,blocking:st,capture:null,charSet:null,checked:we,cite:null,className:st,cols:Z,colSpan:null,content:null,contentEditable:It,controls:we,controlsList:st,coords:Z|zo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:Ig,draggable:It,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:st,height:Z,hidden:Ig,high:Z,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:st,itemRef:st,itemScope:we,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:we,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:we,muted:we,name:null,nonce:null,noModule:we,noValidate:we,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:we,optimum:Z,pattern:null,ping:st,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:st,required:we,reversed:we,rows:Z,rowSpan:Z,sandbox:st,scope:null,scoped:we,seamless:we,selected:we,shadowRootClonable:we,shadowRootDelegatesFocus:we,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:It,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:we,useMap:null,value:It,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:we,declare:we,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:we,noHref:we,noShade:we,noWrap:we,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:It,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:we,disableRemotePlayback:we,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:M_}),C8=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:Qn,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:st,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:we,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:zo,g2:zo,glyphName:zo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Qn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:st,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qn,rev:Qn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qn,requiredFeatures:Qn,requiredFonts:Qn,requiredFormats:Qn,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Qn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qn,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:D_}),L_=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()}}),I_=jo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:M_}),P_=jo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),k8={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"},O8=/[A-Z]/g,B_=/-[a-z]/g,R8=/^data[-\w.:]+$/i;function zg(e,t){const n=Bu(t);let r=t,i=Dn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&R8.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(B_,D8);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!B_.test(a)){let s=a.replace(O8,N8);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Ug}return new i(r,t)}function N8(e){return"-"+e.toLowerCase()}function D8(e){return e.charAt(1).toUpperCase()}const Ud=O_([N_,A8,L_,I_,P_],"html"),Fo=O_([N_,C8,L_,I_,P_],"svg");function U_(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function z_(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const j_=/[#.]/g;function M8(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){j_.lastIndex=i;const o=j_.exec(n),l=n.slice(i,o?o.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,i+=l.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function F_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function H_(e){return e.join(" ").trim()}function V_(e,t,n){const r=n?B8(n):void 0;function i(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=M8(a,t);const u=l.tagName.toLowerCase(),c=r?r.get(u):void 0;if(l.tagName=c||u,L8(s))o.unshift(s);else for(const[f,d]of Object.entries(s))I8(e,l.properties,f,d)}for(const u of o)jg(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function L8(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 i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function I8(e,t,n,r){const i=zg(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"?i.spaceSeparated?a=F_(r):i.commaSeparated?a=U_(r):i.commaOrSpaceSeparated?a=F_(U_(r).join(" ")):a=q_(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?P8(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(q_(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function jg(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)jg(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?jg(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function q_(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Bu(n)===Bu(t)))return!0}return n}function P8(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function B8(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const U8=["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"],z8=V_(Ud,"div"),j8=V_(Fo,"g",U8);function F8(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=Y_(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(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 o=n[n.length-1],l=Y_(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function Y_(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
101
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const fs={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/"},G_={}.hasOwnProperty,H8=Object.prototype;function V8(e,t){const n=t||{};return Fg({file:n.file||void 0,location:!1,schema:n.space==="svg"?Fo:Ud,verbose:n.verbose||!1},e)}function Fg(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},zd(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:$_(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=F8(a),o=s.toPoint(0),l=s.toPoint(a.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},zd(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},zd(e,r,n),n}default:return n=q8(e,t),n}}function $_(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Fg(e,t[n]);r.push(i)}return r}function q8(e,t){const n=e.schema;e.schema=t.namespaceURI===fs.svg?Fo:Ud;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;G_.call(H8,l)||(i[l]=o.value)}const s=(e.schema.space==="svg"?j8:z8)(t.tagName,i,$_(e,t.childNodes));if(zd(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,u=l&&l.startTag&&Ho(l.startTag),c=l&&l.endTag&&Ho(l.endTag),f=Fg(e,o.content);u&&c&&e.file&&(f.position={start:u.end,end:c.start}),s.content=f}return e.schema=n,s}function zd(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Y8(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Y8(e,t,n){const r=Ho(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)G_.call(n.attrs,s)&&(a[zg(e.schema,s).property]=Ho(n.attrs[s]));n.startTag;const o=Ho(n.startTag),l=n.endTag?Ho(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=a,t.data={position:u}}}return r}function Ho(e){const t=X_({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=X_({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function X_(e){return e.line&&e.column?e:void 0}class Uu{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Uu.prototype.property={},Uu.prototype.normal={},Uu.prototype.space=null;function K_(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Uu(n,r,t)}function Hg(e){return e.toLowerCase()}class br{constructor(t,n){this.property=t,this.attribute=n}}br.prototype.space=null,br.prototype.boolean=!1,br.prototype.booleanish=!1,br.prototype.overloadedBoolean=!1,br.prototype.number=!1,br.prototype.commaSeparated=!1,br.prototype.spaceSeparated=!1,br.prototype.commaOrSpaceSeparated=!1,br.prototype.mustUseProperty=!1,br.prototype.defined=!1;let G8=0;const Te=ds(),Pt=ds(),W_=ds(),J=ds(),ot=ds(),Vo=ds(),Zn=ds();function ds(){return 2**++G8}const Vg=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:Pt,commaOrSpaceSeparated:Zn,commaSeparated:Vo,number:J,overloadedBoolean:W_,spaceSeparated:ot},Symbol.toStringTag,{value:"Module"})),qg=Object.keys(Vg);class Yg extends br{constructor(t,n,r,i){let a=-1;if(super(t,n),Q_(this,"space",i),typeof r=="number")for(;++a<qg.length;){const s=qg[a];Q_(this,qg[a],(r&Vg[s])===Vg[s])}}}Yg.prototype.defined=!0;function Q_(e,t,n){n&&(e[t]=n)}const $8={}.hasOwnProperty;function qo(e){const t={},n={};let r;for(r in e.properties)if($8.call(e.properties,r)){const i=e.properties[r],a=new Yg(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Hg(r)]=r,n[Hg(a.attribute)]=r}return new Uu(t,n,e.space)}const Z_=qo({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}}),J_=qo({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function eS(e,t){return t in e?e[t]:t}function tS(e,t){return eS(e,t.toLowerCase())}const nS=qo({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:tS,properties:{xmlns:null,xmlnsXLink:null}}),rS=qo({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pt,ariaAutoComplete:null,ariaBusy:Pt,ariaChecked:Pt,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:ot,ariaCurrent:null,ariaDescribedBy:ot,ariaDetails:null,ariaDisabled:Pt,ariaDropEffect:ot,ariaErrorMessage:null,ariaExpanded:Pt,ariaFlowTo:ot,ariaGrabbed:Pt,ariaHasPopup:null,ariaHidden:Pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ot,ariaLevel:J,ariaLive:null,ariaModal:Pt,ariaMultiLine:Pt,ariaMultiSelectable:Pt,ariaOrientation:null,ariaOwns:ot,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:Pt,ariaReadOnly:Pt,ariaRelevant:null,ariaRequired:Pt,ariaRoleDescription:ot,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:Pt,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null}}),X8=qo({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tS,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vo,acceptCharset:ot,accessKey:ot,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:ot,autoFocus:Te,autoPlay:Te,blocking:ot,capture:null,charSet:null,checked:Te,cite:null,className:ot,cols:J,colSpan:null,content:null,contentEditable:Pt,controls:Te,controlsList:ot,coords:J|Vo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:W_,draggable:Pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:ot,height:J,hidden:Te,high:J,href:null,hrefLang:null,htmlFor:ot,httpEquiv:ot,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:ot,itemRef:ot,itemScope:Te,itemType:ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,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:Te,optimum:J,pattern:null,ping:ot,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:ot,required:Te,reversed:Te,rows:J,rowSpan:J,sandbox:ot,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:Pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:Pt,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ot,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:Pt,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:J,security:null,unselectable:null}}),K8=qo({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:eS,properties:{about:Zn,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:ot,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:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,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:Vo,g2:Vo,glyphName:Vo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,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:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ot,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zn,rev:Zn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zn,requiredFeatures:Zn,requiredFonts:Zn,requiredFormats:Zn,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zn,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),W8=/^data[-\w.:]+$/i,iS=/-[a-z]/g,Q8=/[A-Z]/g;function Z8(e,t){const n=Hg(t);let r=t,i=br;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&W8.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(iS,eP);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!iS.test(a)){let s=a.replace(Q8,J8);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Yg}return new i(r,t)}function J8(e){return"-"+e.toLowerCase()}function eP(e){return e.charAt(1).toUpperCase()}const tP=K_([J_,Z_,nS,rS,X8],"html"),aS=K_([J_,Z_,nS,rS,K8],"svg"),sS={}.hasOwnProperty;function oS(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&sS.call(i,e)){const l=String(i[e]);s=sS.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const nP={},rP={}.hasOwnProperty,lS=oS("type",{handlers:{root:aP,element:cP,text:lP,comment:uP,doctype:oP}});function iP(e,t){const r=(t||nP).space;return lS(e,r==="svg"?aS:tP)}function aP(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Gg(e.children,n,t),Yo(e,n),n}function sP(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Gg(e.children,n,t),Yo(e,n),n}function oP(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Yo(e,t),t}function lP(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Yo(e,t),t}function uP(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Yo(e,t),t}function cP(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=aS);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&rP.call(e.properties,a)){const l=fP(r,a,e.properties[a]);l&&i.push(l)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:fs[s],childNodes:[],parentNode:null};return o.childNodes=Gg(e.children,o,r),Yo(e,o),e.tagName==="template"&&e.content&&(o.content=sP(e.content,r)),o}function fP(e,t,n){const r=Z8(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?z_(n):H_(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=fs[r.space]}return i}function Gg(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=lS(e[r],n);a.parentNode=t,i.push(a)}return i}function Yo(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 dP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],hP=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]),bt="�";var S;(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"})(S||(S={}));const Mn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function uS(e){return e>=55296&&e<=57343}function pP(e){return e>=56320&&e<=57343}function mP(e,t){return(e-55296)*1024+9216+t}function cS(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function fS(e){return e>=64976&&e<=65007||hP.has(e)}var z;(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"})(z||(z={}));const gP=65536;class bP{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=gP,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:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_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(pP(n))return this.pos++,this._addGap(),mP(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,S.EOF;return this._err(z.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,S.EOF;const r=this.html.charCodeAt(n);return r===S.CARRIAGE_RETURN?S.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,S.EOF;let t=this.html.charCodeAt(this.pos);return t===S.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,S.LINE_FEED):t===S.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,uS(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===S.LINE_FEED||t===S.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){cS(t)?this._err(z.controlCharacterInInputStream):fS(t)&&this._err(z.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 dS(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 yP=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))),vP=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 xP(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=vP.get(e))!==null&&t!==void 0?t:e}var Jt;(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"})(Jt||(Jt={}));const EP=32;var Ea;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ea||(Ea={}));function $g(e){return e>=Jt.ZERO&&e<=Jt.NINE}function TP(e){return e>=Jt.UPPER_A&&e<=Jt.UPPER_F||e>=Jt.LOWER_A&&e<=Jt.LOWER_F}function wP(e){return e>=Jt.UPPER_A&&e<=Jt.UPPER_Z||e>=Jt.LOWER_A&&e<=Jt.LOWER_Z||$g(e)}function _P(e){return e===Jt.EQUALS||wP(e)}var en;(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"})(en||(en={}));var ki;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ki||(ki={}));class SP{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=en.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ki.Strict}startEntity(t){this.decodeMode=t,this.state=en.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case en.EntityStart:return t.charCodeAt(n)===Jt.NUM?(this.state=en.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=en.NamedEntity,this.stateNamedEntity(t,n));case en.NumericStart:return this.stateNumericStart(t,n);case en.NumericDecimal:return this.stateNumericDecimal(t,n);case en.NumericHex:return this.stateNumericHex(t,n);case en.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|EP)===Jt.LOWER_X?(this.state=en.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=en.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if($g(i)||TP(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if($g(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,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===Jt.SEMI)this.consumed+=1;else if(this.decodeMode===ki.Strict)return 0;return this.emitCodePoint(xP(this.result),this.consumed),this.errors&&(t!==Jt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&Ea.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=AP(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===ki.Attribute&&(a===0||_P(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&Ea.VALUE_LENGTH)>>14,a!==0){if(s===Jt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==ki.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Ea.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Ea.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case en.NamedEntity:return this.result!==0&&(this.decodeMode!==ki.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case en.NumericDecimal:return this.emitNumericEntity(0,2);case en.NumericHex:return this.emitNumericEntity(0,3);case en.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case en.EntityStart:return 0}}}function AP(e,t,n,r){const i=(t&Ea.BRANCH_LENGTH)>>7,a=t&Ea.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<r)s=l+1;else if(u>r)o=l-1;else return e[l+i]}return-1}var X;(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/"})(X||(X={}));var hs;(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"})(hs||(hs={}));var yr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(yr||(yr={}));var P;(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"})(P||(P={}));var p;(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"})(p||(p={}));const CP=new Map([[P.A,p.A],[P.ADDRESS,p.ADDRESS],[P.ANNOTATION_XML,p.ANNOTATION_XML],[P.APPLET,p.APPLET],[P.AREA,p.AREA],[P.ARTICLE,p.ARTICLE],[P.ASIDE,p.ASIDE],[P.B,p.B],[P.BASE,p.BASE],[P.BASEFONT,p.BASEFONT],[P.BGSOUND,p.BGSOUND],[P.BIG,p.BIG],[P.BLOCKQUOTE,p.BLOCKQUOTE],[P.BODY,p.BODY],[P.BR,p.BR],[P.BUTTON,p.BUTTON],[P.CAPTION,p.CAPTION],[P.CENTER,p.CENTER],[P.CODE,p.CODE],[P.COL,p.COL],[P.COLGROUP,p.COLGROUP],[P.DD,p.DD],[P.DESC,p.DESC],[P.DETAILS,p.DETAILS],[P.DIALOG,p.DIALOG],[P.DIR,p.DIR],[P.DIV,p.DIV],[P.DL,p.DL],[P.DT,p.DT],[P.EM,p.EM],[P.EMBED,p.EMBED],[P.FIELDSET,p.FIELDSET],[P.FIGCAPTION,p.FIGCAPTION],[P.FIGURE,p.FIGURE],[P.FONT,p.FONT],[P.FOOTER,p.FOOTER],[P.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[P.FORM,p.FORM],[P.FRAME,p.FRAME],[P.FRAMESET,p.FRAMESET],[P.H1,p.H1],[P.H2,p.H2],[P.H3,p.H3],[P.H4,p.H4],[P.H5,p.H5],[P.H6,p.H6],[P.HEAD,p.HEAD],[P.HEADER,p.HEADER],[P.HGROUP,p.HGROUP],[P.HR,p.HR],[P.HTML,p.HTML],[P.I,p.I],[P.IMG,p.IMG],[P.IMAGE,p.IMAGE],[P.INPUT,p.INPUT],[P.IFRAME,p.IFRAME],[P.KEYGEN,p.KEYGEN],[P.LABEL,p.LABEL],[P.LI,p.LI],[P.LINK,p.LINK],[P.LISTING,p.LISTING],[P.MAIN,p.MAIN],[P.MALIGNMARK,p.MALIGNMARK],[P.MARQUEE,p.MARQUEE],[P.MATH,p.MATH],[P.MENU,p.MENU],[P.META,p.META],[P.MGLYPH,p.MGLYPH],[P.MI,p.MI],[P.MO,p.MO],[P.MN,p.MN],[P.MS,p.MS],[P.MTEXT,p.MTEXT],[P.NAV,p.NAV],[P.NOBR,p.NOBR],[P.NOFRAMES,p.NOFRAMES],[P.NOEMBED,p.NOEMBED],[P.NOSCRIPT,p.NOSCRIPT],[P.OBJECT,p.OBJECT],[P.OL,p.OL],[P.OPTGROUP,p.OPTGROUP],[P.OPTION,p.OPTION],[P.P,p.P],[P.PARAM,p.PARAM],[P.PLAINTEXT,p.PLAINTEXT],[P.PRE,p.PRE],[P.RB,p.RB],[P.RP,p.RP],[P.RT,p.RT],[P.RTC,p.RTC],[P.RUBY,p.RUBY],[P.S,p.S],[P.SCRIPT,p.SCRIPT],[P.SEARCH,p.SEARCH],[P.SECTION,p.SECTION],[P.SELECT,p.SELECT],[P.SOURCE,p.SOURCE],[P.SMALL,p.SMALL],[P.SPAN,p.SPAN],[P.STRIKE,p.STRIKE],[P.STRONG,p.STRONG],[P.STYLE,p.STYLE],[P.SUB,p.SUB],[P.SUMMARY,p.SUMMARY],[P.SUP,p.SUP],[P.TABLE,p.TABLE],[P.TBODY,p.TBODY],[P.TEMPLATE,p.TEMPLATE],[P.TEXTAREA,p.TEXTAREA],[P.TFOOT,p.TFOOT],[P.TD,p.TD],[P.TH,p.TH],[P.THEAD,p.THEAD],[P.TITLE,p.TITLE],[P.TR,p.TR],[P.TRACK,p.TRACK],[P.TT,p.TT],[P.U,p.U],[P.UL,p.UL],[P.SVG,p.SVG],[P.VAR,p.VAR],[P.WBR,p.WBR],[P.XMP,p.XMP]]);function Go(e){var t;return(t=CP.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const Q=p,kP={[X.HTML]:new Set([Q.ADDRESS,Q.APPLET,Q.AREA,Q.ARTICLE,Q.ASIDE,Q.BASE,Q.BASEFONT,Q.BGSOUND,Q.BLOCKQUOTE,Q.BODY,Q.BR,Q.BUTTON,Q.CAPTION,Q.CENTER,Q.COL,Q.COLGROUP,Q.DD,Q.DETAILS,Q.DIR,Q.DIV,Q.DL,Q.DT,Q.EMBED,Q.FIELDSET,Q.FIGCAPTION,Q.FIGURE,Q.FOOTER,Q.FORM,Q.FRAME,Q.FRAMESET,Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6,Q.HEAD,Q.HEADER,Q.HGROUP,Q.HR,Q.HTML,Q.IFRAME,Q.IMG,Q.INPUT,Q.LI,Q.LINK,Q.LISTING,Q.MAIN,Q.MARQUEE,Q.MENU,Q.META,Q.NAV,Q.NOEMBED,Q.NOFRAMES,Q.NOSCRIPT,Q.OBJECT,Q.OL,Q.P,Q.PARAM,Q.PLAINTEXT,Q.PRE,Q.SCRIPT,Q.SECTION,Q.SELECT,Q.SOURCE,Q.STYLE,Q.SUMMARY,Q.TABLE,Q.TBODY,Q.TD,Q.TEMPLATE,Q.TEXTAREA,Q.TFOOT,Q.TH,Q.THEAD,Q.TITLE,Q.TR,Q.TRACK,Q.UL,Q.WBR,Q.XMP]),[X.MATHML]:new Set([Q.MI,Q.MO,Q.MN,Q.MS,Q.MTEXT,Q.ANNOTATION_XML]),[X.SVG]:new Set([Q.TITLE,Q.FOREIGN_OBJECT,Q.DESC]),[X.XLINK]:new Set,[X.XML]:new Set,[X.XMLNS]:new Set},Xg=new Set([Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6]);P.STYLE,P.SCRIPT,P.XMP,P.IFRAME,P.NOEMBED,P.NOFRAMES,P.PLAINTEXT;var k;(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"})(k||(k={}));const Rt={DATA:k.DATA,RCDATA:k.RCDATA,RAWTEXT:k.RAWTEXT,SCRIPT_DATA:k.SCRIPT_DATA,PLAINTEXT:k.PLAINTEXT,CDATA_SECTION:k.CDATA_SECTION};function OP(e){return e>=S.DIGIT_0&&e<=S.DIGIT_9}function zu(e){return e>=S.LATIN_CAPITAL_A&&e<=S.LATIN_CAPITAL_Z}function RP(e){return e>=S.LATIN_SMALL_A&&e<=S.LATIN_SMALL_Z}function Ta(e){return RP(e)||zu(e)}function hS(e){return Ta(e)||OP(e)}function jd(e){return e+32}function pS(e){return e===S.SPACE||e===S.LINE_FEED||e===S.TABULATION||e===S.FORM_FEED}function mS(e){return pS(e)||e===S.SOLIDUS||e===S.GREATER_THAN_SIGN}function NP(e){return e===S.NULL?z.nullCharacterReference:e>1114111?z.characterReferenceOutsideUnicodeRange:uS(e)?z.surrogateCharacterReference:fS(e)?z.noncharacterCharacterReference:cS(e)||e===S.CARRIAGE_RETURN?z.controlCharacterReference:null}class DP{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=k.DATA,this.returnState=k.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new bP(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new SP(yP,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(z.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(z.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=NP(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.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:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ke.END_TAG,tagName:"",tagID:p.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(dS(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(z.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=Go(t.tagName),t.type===ke.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(z.endTagWithAttributes),t.selfClosing&&this._err(z.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=pS(t)?ke.WHITESPACE_CHARACTER:t===S.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=k.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ki.Attribute:ki.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===k.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case k.DATA:{this._stateData(t);break}case k.RCDATA:{this._stateRcdata(t);break}case k.RAWTEXT:{this._stateRawtext(t);break}case k.SCRIPT_DATA:{this._stateScriptData(t);break}case k.PLAINTEXT:{this._statePlaintext(t);break}case k.TAG_OPEN:{this._stateTagOpen(t);break}case k.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case k.TAG_NAME:{this._stateTagName(t);break}case k.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case k.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case k.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case k.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case k.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case k.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case k.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case k.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case k.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case k.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case k.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case k.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case k.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case k.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case k.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case k.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case k.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case k.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case k.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case k.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case k.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case k.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case k.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case k.BOGUS_COMMENT:{this._stateBogusComment(t);break}case k.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case k.COMMENT_START:{this._stateCommentStart(t);break}case k.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case k.COMMENT:{this._stateComment(t);break}case k.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case k.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case k.COMMENT_END:{this._stateCommentEnd(t);break}case k.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case k.DOCTYPE:{this._stateDoctype(t);break}case k.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case k.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case k.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case k.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case k.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case k.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case k.CDATA_SECTION:{this._stateCdataSection(t);break}case k.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case k.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case k.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case k.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case S.LESS_THAN_SIGN:{this.state=k.TAG_OPEN;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err(z.unexpectedNullCharacter),this._emitCodePoint(t);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case S.AMPERSAND:{this._startCharacterReference();break}case S.LESS_THAN_SIGN:{this.state=k.RCDATA_LESS_THAN_SIGN;break}case S.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case S.LESS_THAN_SIGN:{this.state=k.RAWTEXT_LESS_THAN_SIGN;break}case S.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_LESS_THAN_SIGN;break}case S.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case S.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ta(t))this._createStartTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case S.EXCLAMATION_MARK:{this.state=k.MARKUP_DECLARATION_OPEN;break}case S.SOLIDUS:{this.state=k.END_TAG_OPEN;break}case S.QUESTION_MARK:{this._err(z.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t);break}case S.EOF:{this._err(z.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(z.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=k.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ta(t))this._createEndTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case S.GREATER_THAN_SIGN:{this._err(z.missingEndTagName),this.state=k.DATA;break}case S.EOF:{this._err(z.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(z.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.BEFORE_ATTRIBUTE_NAME;break}case S.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case S.NULL:{this._err(z.unexpectedNullCharacter),n.tagName+=bt;break}case S.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(zu(t)?jd(t):t)}}_stateRcdataLessThanSign(t){t===S.SOLIDUS?this.state=k.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ta(t)?(this.state=k.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=k.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 S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=k.BEFORE_ATTRIBUTE_NAME,!1;case S.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=k.SELF_CLOSING_START_TAG,!1;case S.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=k.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===S.SOLIDUS?this.state=k.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ta(t)?(this.state=k.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case S.SOLIDUS:{this.state=k.SCRIPT_DATA_END_TAG_OPEN;break}case S.EXCLAMATION_MARK:{this.state=k.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=k.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ta(t)?(this.state=k.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===S.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===S.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case S.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case S.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.NULL:{this._err(z.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(bt);break}case S.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case S.HYPHEN_MINUS:{this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case S.NULL:{this._err(z.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(bt);break}case S.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===S.SOLIDUS?this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ta(t)?(this._emitChars("<"),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ta(t)?(this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Mn.SCRIPT,!1)&&mS(this.preprocessor.peek(Mn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Mn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case S.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case S.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.NULL:{this._err(z.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(bt);break}case S.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case S.HYPHEN_MINUS:{this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case S.NULL:{this._err(z.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(bt);break}case S.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===S.SOLIDUS?(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Mn.SCRIPT,!1)&&mS(this.preprocessor.peek(Mn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Mn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.SOLIDUS:case S.GREATER_THAN_SIGN:case S.EOF:{this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case S.EQUALS_SIGN:{this._err(z.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=k.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:case S.SOLIDUS:case S.GREATER_THAN_SIGN:case S.EOF:{this._leaveAttrName(),this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case S.EQUALS_SIGN:{this._leaveAttrName(),this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case S.QUOTATION_MARK:case S.APOSTROPHE:case S.LESS_THAN_SIGN:{this._err(z.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case S.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.name+=bt;break}default:this.currentAttr.name+=String.fromCodePoint(zu(t)?jd(t):t)}}_stateAfterAttributeName(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case S.EQUALS_SIGN:{this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{this.state=k.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this.state=k.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(z.missingAttributeValue),this.state=k.DATA,this.emitCurrentTagToken();break}default:this.state=k.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case S.QUOTATION_MARK:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.value+=bt;break}case S.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case S.APOSTROPHE:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.value+=bt;break}case S.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case S.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.value+=bt;break}case S.QUOTATION_MARK:case S.APOSTROPHE:case S.LESS_THAN_SIGN:case S.EQUALS_SIGN:case S.GRAVE_ACCENT:{this._err(z.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case S.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case S.SOLIDUS:{this._leaveAttrValue(),this.state=k.SELF_CLOSING_START_TAG;break}case S.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this._err(z.missingWhitespaceBetweenAttributes),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case S.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=k.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this._err(z.unexpectedSolidusInTag),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case S.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case S.NULL:{this._err(z.unexpectedNullCharacter),n.data+=bt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Mn.DASH_DASH,!0)?(this._createCommentToken(Mn.DASH_DASH.length+1),this.state=k.COMMENT_START):this._consumeSequenceIfMatch(Mn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Mn.DOCTYPE.length+1),this.state=k.DOCTYPE):this._consumeSequenceIfMatch(Mn.CDATA_START,!0)?this.inForeignNode?this.state=k.CDATA_SECTION:(this._err(z.cdataInHtmlContent),this._createCommentToken(Mn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=k.BOGUS_COMMENT):this._ensureHibernation()||(this._err(z.incorrectlyOpenedComment),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case S.HYPHEN_MINUS:{this.state=k.COMMENT_START_DASH;break}case S.GREATER_THAN_SIGN:{this._err(z.abruptClosingOfEmptyComment),this.state=k.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case S.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case S.GREATER_THAN_SIGN:{this._err(z.abruptClosingOfEmptyComment),this.state=k.DATA,this.emitCurrentComment(n);break}case S.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case S.HYPHEN_MINUS:{this.state=k.COMMENT_END_DASH;break}case S.LESS_THAN_SIGN:{n.data+="<",this.state=k.COMMENT_LESS_THAN_SIGN;break}case S.NULL:{this._err(z.unexpectedNullCharacter),n.data+=bt;break}case S.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case S.EXCLAMATION_MARK:{n.data+="!",this.state=k.COMMENT_LESS_THAN_SIGN_BANG;break}case S.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===S.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=k.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===S.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=k.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==S.GREATER_THAN_SIGN&&t!==S.EOF&&this._err(z.nestedComment),this.state=k.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case S.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case S.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case S.EXCLAMATION_MARK:{this.state=k.COMMENT_END_BANG;break}case S.HYPHEN_MINUS:{n.data+="-";break}case S.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case S.HYPHEN_MINUS:{n.data+="--!",this.state=k.COMMENT_END_DASH;break}case S.GREATER_THAN_SIGN:{this._err(z.incorrectlyClosedComment),this.state=k.DATA,this.emitCurrentComment(n);break}case S.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=k.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case S.EOF:{this._err(z.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingWhitespaceBeforeDoctypeName),this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(zu(t))this._createDoctypeToken(String.fromCharCode(jd(t))),this.state=k.DOCTYPE_NAME;else switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.NULL:{this._err(z.unexpectedNullCharacter),this._createDoctypeToken(bt),this.state=k.DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this._err(z.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(z.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=k.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.AFTER_DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.NULL:{this._err(z.unexpectedNullCharacter),n.name+=bt;break}case S.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(zu(t)?jd(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Mn.PUBLIC,!1)?this.state=k.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Mn.SYSTEM,!1)?this.state=k.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(z.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.QUOTATION_MARK:{this._err(z.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err(z.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(z.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(z.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case S.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.NULL:{this._err(z.unexpectedNullCharacter),n.publicId+=bt;break}case S.GREATER_THAN_SIGN:{this._err(z.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(z.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 S.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.NULL:{this._err(z.unexpectedNullCharacter),n.publicId+=bt;break}case S.GREATER_THAN_SIGN:{this._err(z.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(z.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 S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.QUOTATION_MARK:{this._err(z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err(z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.QUOTATION_MARK:{this._err(z.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err(z.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(z.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(z.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case S.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.NULL:{this._err(z.unexpectedNullCharacter),n.systemId+=bt;break}case S.GREATER_THAN_SIGN:{this._err(z.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(z.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 S.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.NULL:{this._err(z.unexpectedNullCharacter),n.systemId+=bt;break}case S.GREATER_THAN_SIGN:{this._err(z.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(z.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 S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.NULL:{this._err(z.unexpectedNullCharacter);break}case S.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case S.RIGHT_SQUARE_BRACKET:{this.state=k.CDATA_SECTION_BRACKET;break}case S.EOF:{this._err(z.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===S.RIGHT_SQUARE_BRACKET?this.state=k.CDATA_SECTION_END:(this._emitChars("]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case S.GREATER_THAN_SIGN:{this.state=k.DATA;break}case S.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=k.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(S.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&hS(this.preprocessor.peek(1))?k.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){hS(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===S.SEMICOLON&&this._err(z.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const gS=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),bS=new Set([...gS,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),Fd=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),MP=new Set([...Fd,p.OL,p.UL]),LP=new Set([...Fd,p.BUTTON]),yS=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),vS=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),IP=new Set([p.TR,p.TEMPLATE,p.HTML]),PP=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),BP=new Set([p.TABLE,p.TEMPLATE,p.HTML]),UP=new Set([p.TD,p.TH]);class zP{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=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===X.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 i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===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])!==X.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(Xg,X.HTML)}popUntilTableCellPopped(){this.popUntilPopped(UP,X.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(BP,X.HTML)}clearBackToTableBodyContext(){this.clearBackTo(PP,X.HTML)}clearBackToTableRowContext(){this.clearBackTo(IP,X.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]===p.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]===p.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case X.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case X.SVG:{if(vS.has(i))return!1;break}case X.MATHML:{if(yS.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Fd)}hasInListItemScope(t){return this.hasInDynamicScope(t,MP)}hasInButtonScope(t){return this.hasInDynamicScope(t,LP)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case X.HTML:{if(Xg.has(n))return!0;if(Fd.has(n))return!1;break}case X.SVG:{if(vS.has(n))return!1;break}case X.MATHML:{if(yS.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===X.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case p.OPTION:case p.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&gS.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&bS.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&bS.has(this.currentTagId);)this.pop()}}const Kg=3;var Qr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Qr||(Qr={}));const xS={type:Qr.Marker};class jP{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===Qr.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===a&&this.treeAdapter.getNamespaceURI(u)===s){const c=this.treeAdapter.getAttrList(u);c.length===i&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Kg)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Kg)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(l=>i.get(l.name)===l.value)&&(a+=1,a>=Kg&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(xS)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Qr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Qr.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(xS);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Qr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Qr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Qr.Element&&n.element===t)}}const wa={createDocument(){return{nodeName:"#document",mode:yr.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 i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};wa.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(wa.isTextNode(n)){n.value+=t;return}}wa.appendChild(e,wa.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&wa.isTextNode(r)?r.value+=t:wa.insertBefore(e,wa.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={...e.sourceCodeLocation,...t}}},ES="html",FP="about:legacy-compat",HP="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",TS=["+//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//"],VP=[...TS,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],qP=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),wS=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],YP=[...wS,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function _S(e,t){return t.some(n=>e.startsWith(n))}function GP(e){return e.name===ES&&e.publicId===null&&(e.systemId===null||e.systemId===FP)}function $P(e){if(e.name!==ES)return yr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===HP)return yr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),qP.has(n))return yr.QUIRKS;let r=t===null?VP:TS;if(_S(n,r))return yr.QUIRKS;if(r=t===null?wS:YP,_S(n,r))return yr.LIMITED_QUIRKS}return yr.NO_QUIRKS}const SS={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},XP="definitionurl",KP="definitionURL",WP=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])),QP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:X.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:X.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:X.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:X.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:X.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:X.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:X.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:X.XML}],["xml:space",{prefix:"xml",name:"space",namespace:X.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:X.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:X.XMLNS}]]),ZP=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])),JP=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function e9(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:r})=>r===hs.COLOR||r===hs.SIZE||r===hs.FACE)||JP.has(t)}function AS(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===XP){e.attrs[t].name=KP;break}}function CS(e){for(let t=0;t<e.attrs.length;t++){const n=WP.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Wg(e){for(let t=0;t<e.attrs.length;t++){const n=QP.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 t9(e){const t=ZP.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Go(e.tagName))}function n9(e,t){return t===X.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function r9(e,t,n){if(t===X.MATHML&&e===p.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===hs.ENCODING){const i=n[r].value.toLowerCase();return i===SS.TEXT_HTML||i===SS.APPLICATION_XML}}return t===X.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function i9(e,t,n,r){return(!r||r===X.HTML)&&r9(e,t,n)||(!r||r===X.MATHML)&&n9(e,t)}const a9="hidden",s9=8,o9=3;var N;(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"})(N||(N={}));const l9={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},kS=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),OS={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:wa,onParseError:null};class RS{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=N.INITIAL,this.originalInsertionMode=N.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={...OS,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new DP(this.options,this),this.activeFormattingElements=new jP(this.treeAdapter),this.fragmentContextID=r?Go(this.treeAdapter.getTagName(r)):p.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new zP(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={...OS,...n};t??(t=r.treeAdapter.createElement(P.TEMPLATE,X.HTML,[]));const i=r.treeAdapter.createElement("documentmock",X.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===p.TEMPLATE&&a.tmplInsertionModeStack.unshift(N.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 i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:l9,s={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(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===X.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,X.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=N.TEXT}switchToPlaintextParsing(){this.insertionMode=N.TEXT,this.originalInsertionMode=N.IN_BODY,this.tokenizer.state=Rt.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)===P.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==X.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=Rt.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=Rt.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=Rt.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=Rt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(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,X.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,X.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(P.HTML,X.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.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 i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,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,i=this.treeAdapter.getTagName(t),a=n.type===ke.END_TAG&&i===n.tagName?{endTag:{...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===p.SVG&&this.treeAdapter.getTagName(n)===P.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===X.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,X.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 i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return i9(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Qr.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];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=N.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=N.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=N.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=N.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=N.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=N.IN_TABLE;return}case p.BODY:{this.insertionMode=N.IN_BODY;return}case p.FRAMESET:{this.insertionMode=N.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?N.AFTER_HEAD:N.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=N.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=N.IN_HEAD;return}break}}this.insertionMode=N.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===p.TEMPLATE)break;if(r===p.TABLE){this.insertionMode=N.IN_SELECT_IN_TABLE;return}}this.insertionMode=N.IN_SELECT}_isElementCausesFosterParenting(t){return kS.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 p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===X.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case p.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 kP[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){U7(this,t);return}switch(this.insertionMode){case N.INITIAL:{ju(this,t);break}case N.BEFORE_HTML:{Fu(this,t);break}case N.BEFORE_HEAD:{Hu(this,t);break}case N.IN_HEAD:{Vu(this,t);break}case N.IN_HEAD_NO_SCRIPT:{qu(this,t);break}case N.AFTER_HEAD:{Yu(this,t);break}case N.IN_BODY:case N.IN_CAPTION:case N.IN_CELL:case N.IN_TEMPLATE:{DS(this,t);break}case N.TEXT:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{e1(this,t);break}case N.IN_TABLE_TEXT:{jS(this,t);break}case N.IN_COLUMN_GROUP:{qd(this,t);break}case N.AFTER_BODY:{$d(this,t);break}case N.AFTER_AFTER_BODY:{Xd(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){B7(this,t);return}switch(this.insertionMode){case N.INITIAL:{ju(this,t);break}case N.BEFORE_HTML:{Fu(this,t);break}case N.BEFORE_HEAD:{Hu(this,t);break}case N.IN_HEAD:{Vu(this,t);break}case N.IN_HEAD_NO_SCRIPT:{qu(this,t);break}case N.AFTER_HEAD:{Yu(this,t);break}case N.TEXT:{this._insertCharacters(t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{e1(this,t);break}case N.IN_COLUMN_GROUP:{qd(this,t);break}case N.AFTER_BODY:{$d(this,t);break}case N.AFTER_AFTER_BODY:{Xd(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Zg(this,t);return}switch(this.insertionMode){case N.INITIAL:case N.BEFORE_HTML:case N.BEFORE_HEAD:case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:case N.IN_BODY:case N.IN_TABLE:case N.IN_CAPTION:case N.IN_COLUMN_GROUP:case N.IN_TABLE_BODY:case N.IN_ROW:case N.IN_CELL:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:case N.IN_TEMPLATE:case N.IN_FRAMESET:case N.AFTER_FRAMESET:{Zg(this,t);break}case N.IN_TABLE_TEXT:{Xu(this,t);break}case N.AFTER_BODY:{m9(this,t);break}case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{g9(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case N.INITIAL:{b9(this,t);break}case N.BEFORE_HEAD:case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:{this._err(t,z.misplacedDoctype);break}case N.IN_TABLE_TEXT:{Xu(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,z.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?z7(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case N.INITIAL:{ju(this,t);break}case N.BEFORE_HTML:{y9(this,t);break}case N.BEFORE_HEAD:{x9(this,t);break}case N.IN_HEAD:{Nr(this,t);break}case N.IN_HEAD_NO_SCRIPT:{w9(this,t);break}case N.AFTER_HEAD:{S9(this,t);break}case N.IN_BODY:{pn(this,t);break}case N.IN_TABLE:{$o(this,t);break}case N.IN_TABLE_TEXT:{Xu(this,t);break}case N.IN_CAPTION:{E7(this,t);break}case N.IN_COLUMN_GROUP:{t1(this,t);break}case N.IN_TABLE_BODY:{Yd(this,t);break}case N.IN_ROW:{Gd(this,t);break}case N.IN_CELL:{_7(this,t);break}case N.IN_SELECT:{VS(this,t);break}case N.IN_SELECT_IN_TABLE:{A7(this,t);break}case N.IN_TEMPLATE:{k7(this,t);break}case N.AFTER_BODY:{R7(this,t);break}case N.IN_FRAMESET:{N7(this,t);break}case N.AFTER_FRAMESET:{M7(this,t);break}case N.AFTER_AFTER_BODY:{I7(this,t);break}case N.AFTER_AFTER_FRAMESET:{P7(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?j7(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case N.INITIAL:{ju(this,t);break}case N.BEFORE_HTML:{v9(this,t);break}case N.BEFORE_HEAD:{E9(this,t);break}case N.IN_HEAD:{T9(this,t);break}case N.IN_HEAD_NO_SCRIPT:{_9(this,t);break}case N.AFTER_HEAD:{A9(this,t);break}case N.IN_BODY:{Vd(this,t);break}case N.TEXT:{f7(this,t);break}case N.IN_TABLE:{Gu(this,t);break}case N.IN_TABLE_TEXT:{Xu(this,t);break}case N.IN_CAPTION:{T7(this,t);break}case N.IN_COLUMN_GROUP:{w7(this,t);break}case N.IN_TABLE_BODY:{n1(this,t);break}case N.IN_ROW:{HS(this,t);break}case N.IN_CELL:{S7(this,t);break}case N.IN_SELECT:{qS(this,t);break}case N.IN_SELECT_IN_TABLE:{C7(this,t);break}case N.IN_TEMPLATE:{O7(this,t);break}case N.AFTER_BODY:{GS(this,t);break}case N.IN_FRAMESET:{D7(this,t);break}case N.AFTER_FRAMESET:{L7(this,t);break}case N.AFTER_AFTER_BODY:{Xd(this,t);break}}}onEof(t){switch(this.insertionMode){case N.INITIAL:{ju(this,t);break}case N.BEFORE_HTML:{Fu(this,t);break}case N.BEFORE_HEAD:{Hu(this,t);break}case N.IN_HEAD:{Vu(this,t);break}case N.IN_HEAD_NO_SCRIPT:{qu(this,t);break}case N.AFTER_HEAD:{Yu(this,t);break}case N.IN_BODY:case N.IN_TABLE:case N.IN_CAPTION:case N.IN_COLUMN_GROUP:case N.IN_TABLE_BODY:case N.IN_ROW:case N.IN_CELL:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:{US(this,t);break}case N.TEXT:{d7(this,t);break}case N.IN_TABLE_TEXT:{Xu(this,t);break}case N.IN_TEMPLATE:{YS(this,t);break}case N.AFTER_BODY:case N.IN_FRAMESET:case N.AFTER_FRAMESET:case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{Jg(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===S.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 N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:case N.TEXT:case N.IN_COLUMN_GROUP:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:case N.IN_FRAMESET:case N.AFTER_FRAMESET:{this._insertCharacters(t);break}case N.IN_BODY:case N.IN_CAPTION:case N.IN_CELL:case N.IN_TEMPLATE:case N.AFTER_BODY:case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{NS(this,t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{e1(this,t);break}case N.IN_TABLE_TEXT:{zS(this,t);break}}}}function u9(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):BS(e,t),n}function c9(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function f9(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=o9;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=d9(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function d9(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 h9(e,t,n){const r=e.treeAdapter.getTagName(t),i=Go(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===p.TEMPLATE&&a===X.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function p9(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Qg(e,t){for(let n=0;n<s9;n++){const r=u9(e,t);if(!r)break;const i=c9(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=f9(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&h9(e,s,a),p9(e,i,r)}}function Zg(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function m9(e,t){e._appendCommentNode(t,e.openElements.items[0])}function g9(e,t){e._appendCommentNode(t,e.document)}function Jg(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],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function b9(e,t){e._setDocumentType(t);const n=t.forceQuirks?yr.QUIRKS:$P(t);GP(t)||e._err(t,z.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=N.BEFORE_HTML}function ju(e,t){e._err(t,z.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,yr.QUIRKS),e.insertionMode=N.BEFORE_HTML,e._processToken(t)}function y9(e,t){t.tagID===p.HTML?(e._insertElement(t,X.HTML),e.insertionMode=N.BEFORE_HEAD):Fu(e,t)}function v9(e,t){const n=t.tagID;(n===p.HTML||n===p.HEAD||n===p.BODY||n===p.BR)&&Fu(e,t)}function Fu(e,t){e._insertFakeRootElement(),e.insertionMode=N.BEFORE_HEAD,e._processToken(t)}function x9(e,t){switch(t.tagID){case p.HTML:{pn(e,t);break}case p.HEAD:{e._insertElement(t,X.HTML),e.headElement=e.openElements.current,e.insertionMode=N.IN_HEAD;break}default:Hu(e,t)}}function E9(e,t){const n=t.tagID;n===p.HEAD||n===p.BODY||n===p.HTML||n===p.BR?Hu(e,t):e._err(t,z.endTagWithoutMatchingOpenElement)}function Hu(e,t){e._insertFakeElement(P.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=N.IN_HEAD,e._processToken(t)}function Nr(e,t){switch(t.tagID){case p.HTML:{pn(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,Rt.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Rt.RAWTEXT):(e._insertElement(t,X.HTML),e.insertionMode=N.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,Rt.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,Rt.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=N.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(N.IN_TEMPLATE);break}case p.HEAD:{e._err(t,z.misplacedStartTagForHeadElement);break}default:Vu(e,t)}}function T9(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=N.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{Vu(e,t);break}case p.TEMPLATE:{ps(e,t);break}default:e._err(t,z.endTagWithoutMatchingOpenElement)}}function ps(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,z.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,z.endTagWithoutMatchingOpenElement)}function Vu(e,t){e.openElements.pop(),e.insertionMode=N.AFTER_HEAD,e._processToken(t)}function w9(e,t){switch(t.tagID){case p.HTML:{pn(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{Nr(e,t);break}case p.NOSCRIPT:{e._err(t,z.nestedNoscriptInHead);break}default:qu(e,t)}}function _9(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=N.IN_HEAD;break}case p.BR:{qu(e,t);break}default:e._err(t,z.endTagWithoutMatchingOpenElement)}}function qu(e,t){const n=t.type===ke.EOF?z.openElementsLeftAfterEof:z.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=N.IN_HEAD,e._processToken(t)}function S9(e,t){switch(t.tagID){case p.HTML:{pn(e,t);break}case p.BODY:{e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=N.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,X.HTML),e.insertionMode=N.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,z.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),Nr(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,z.misplacedStartTagForHeadElement);break}default:Yu(e,t)}}function A9(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{Yu(e,t);break}case p.TEMPLATE:{ps(e,t);break}default:e._err(t,z.endTagWithoutMatchingOpenElement)}}function Yu(e,t){e._insertFakeElement(P.BODY,p.BODY),e.insertionMode=N.IN_BODY,Hd(e,t)}function Hd(e,t){switch(t.type){case ke.CHARACTER:{DS(e,t);break}case ke.WHITESPACE_CHARACTER:{NS(e,t);break}case ke.COMMENT:{Zg(e,t);break}case ke.START_TAG:{pn(e,t);break}case ke.END_TAG:{Vd(e,t);break}case ke.EOF:{US(e,t);break}}}function NS(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function DS(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function C9(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function k9(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function O9(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,X.HTML),e.insertionMode=N.IN_FRAMESET)}function R9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function N9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Xg.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,X.HTML)}function D9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function M9(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),n||(e.formElement=e.openElements.current))}function L9(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===p.LI&&i===p.LI||(n===p.DD||n===p.DT)&&(i===p.DD||i===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==p.ADDRESS&&i!==p.DIV&&i!==p.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function I9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.tokenizer.state=Rt.PLAINTEXT}function P9(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1}function B9(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(P.A);n&&(Qg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function U9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function z9(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(Qg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function j9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function F9(e,t){e.treeAdapter.getDocumentMode(e.document)!==yr.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=N.IN_TABLE}function MS(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function LS(e){const t=dS(e,hs.TYPE);return t!=null&&t.toLowerCase()===a9}function H9(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),LS(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function V9(e,t){e._appendElement(t,X.HTML),t.ackSelfClosing=!0}function q9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Y9(e,t){t.tagName=P.IMG,t.tagID=p.IMG,MS(e,t)}function G9(e,t){e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Rt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=N.TEXT}function $9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Rt.RAWTEXT)}function X9(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Rt.RAWTEXT)}function IS(e,t){e._switchToTextParsing(t,Rt.RAWTEXT)}function K9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===N.IN_TABLE||e.insertionMode===N.IN_CAPTION||e.insertionMode===N.IN_TABLE_BODY||e.insertionMode===N.IN_ROW||e.insertionMode===N.IN_CELL?N.IN_SELECT_IN_TABLE:N.IN_SELECT}function W9(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function Q9(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,X.HTML)}function Z9(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,X.HTML)}function J9(e,t){e._reconstructActiveFormattingElements(),AS(t),Wg(t),t.selfClosing?e._appendElement(t,X.MATHML):e._insertElement(t,X.MATHML),t.ackSelfClosing=!0}function e7(e,t){e._reconstructActiveFormattingElements(),CS(t),Wg(t),t.selfClosing?e._appendElement(t,X.SVG):e._insertElement(t,X.SVG),t.ackSelfClosing=!0}function PS(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function pn(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{U9(e,t);break}case p.A:{B9(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{N9(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{R9(e,t);break}case p.LI:case p.DD:case p.DT:{L9(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{MS(e,t);break}case p.HR:{q9(e,t);break}case p.RB:case p.RTC:{Q9(e,t);break}case p.RT:case p.RP:{Z9(e,t);break}case p.PRE:case p.LISTING:{D9(e,t);break}case p.XMP:{$9(e,t);break}case p.SVG:{e7(e,t);break}case p.HTML:{C9(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{Nr(e,t);break}case p.BODY:{k9(e,t);break}case p.FORM:{M9(e,t);break}case p.NOBR:{z9(e,t);break}case p.MATH:{J9(e,t);break}case p.TABLE:{F9(e,t);break}case p.INPUT:{H9(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{V9(e,t);break}case p.IMAGE:{Y9(e,t);break}case p.BUTTON:{P9(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{j9(e,t);break}case p.IFRAME:{X9(e,t);break}case p.SELECT:{K9(e,t);break}case p.OPTION:case p.OPTGROUP:{W9(e,t);break}case p.NOEMBED:case p.NOFRAMES:{IS(e,t);break}case p.FRAMESET:{O9(e,t);break}case p.TEXTAREA:{G9(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?IS(e,t):PS(e,t);break}case p.PLAINTEXT:{I9(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:PS(e,t)}}function t7(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=N.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function n7(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=N.AFTER_BODY,GS(e,t))}function r7(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function i7(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):n&&e.openElements.remove(n))}function a7(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(P.P,p.P),e._closePElement()}function s7(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function o7(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function l7(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function u7(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function c7(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(P.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function BS(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==p.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Vd(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{Qg(e,t);break}case p.P:{a7(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{r7(e,t);break}case p.LI:{s7(e);break}case p.DD:case p.DT:{o7(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{l7(e);break}case p.BR:{c7(e);break}case p.BODY:{t7(e,t);break}case p.HTML:{n7(e,t);break}case p.FORM:{i7(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{u7(e,t);break}case p.TEMPLATE:{ps(e,t);break}default:BS(e,t)}}function US(e,t){e.tmplInsertionModeStack.length>0?YS(e,t):Jg(e,t)}function f7(e,t){var n;t.tagID===p.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function d7(e,t){e._err(t,z.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function e1(e,t){if(e.openElements.currentTagId!==void 0&&kS.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=N.IN_TABLE_TEXT,t.type){case ke.CHARACTER:{jS(e,t);break}case ke.WHITESPACE_CHARACTER:{zS(e,t);break}}else $u(e,t)}function h7(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,X.HTML),e.insertionMode=N.IN_CAPTION}function p7(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=N.IN_COLUMN_GROUP}function m7(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.COLGROUP,p.COLGROUP),e.insertionMode=N.IN_COLUMN_GROUP,t1(e,t)}function g7(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=N.IN_TABLE_BODY}function b7(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.TBODY,p.TBODY),e.insertionMode=N.IN_TABLE_BODY,Yd(e,t)}function y7(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function v7(e,t){LS(t)?e._appendElement(t,X.HTML):$u(e,t),t.ackSelfClosing=!0}function x7(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,X.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function $o(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{b7(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{Nr(e,t);break}case p.COL:{m7(e,t);break}case p.FORM:{x7(e,t);break}case p.TABLE:{y7(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{g7(e,t);break}case p.INPUT:{v7(e,t);break}case p.CAPTION:{h7(e,t);break}case p.COLGROUP:{p7(e,t);break}default:$u(e,t)}}function Gu(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{ps(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:$u(e,t)}}function $u(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Hd(e,t),e.fosterParentingEnabled=n}function zS(e,t){e.pendingCharacterTokens.push(t)}function jS(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Xu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)$u(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const FS=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function E7(e,t){const n=t.tagID;FS.has(n)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_TABLE,$o(e,t)):pn(e,t)}function T7(e,t){const n=t.tagID;switch(n){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_TABLE,n===p.TABLE&&Gu(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Vd(e,t)}}function t1(e,t){switch(t.tagID){case p.HTML:{pn(e,t);break}case p.COL:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{Nr(e,t);break}default:qd(e,t)}}function w7(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=N.IN_TABLE);break}case p.TEMPLATE:{ps(e,t);break}case p.COL:break;default:qd(e,t)}}function qd(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=N.IN_TABLE,e._processToken(t))}function Yd(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,X.HTML),e.insertionMode=N.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(P.TR,p.TR),e.insertionMode=N.IN_ROW,Gd(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE,$o(e,t));break}default:$o(e,t)}}function n1(e,t){const n=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE,Gu(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:Gu(e,t)}}function Gd(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,X.HTML),e.insertionMode=N.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,Yd(e,t));break}default:$o(e,t)}}function HS(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,n1(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,n1(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:Gu(e,t)}}function _7(e,t){const n=t.tagID;FS.has(n)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),Gd(e,t)):pn(e,t)}function S7(e,t){const n=t.tagID;switch(n){case p.TD:case p.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),HS(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:Vd(e,t)}}function VS(e,t){switch(t.tagID){case p.HTML:{pn(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{Nr(e,t);break}}}function qS(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{ps(e,t);break}}}function A7(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):VS(e,t)}function C7(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):qS(e,t)}function k7(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{Nr(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=N.IN_TABLE,e.insertionMode=N.IN_TABLE,$o(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=N.IN_COLUMN_GROUP,e.insertionMode=N.IN_COLUMN_GROUP,t1(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=N.IN_TABLE_BODY,e.insertionMode=N.IN_TABLE_BODY,Yd(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=N.IN_ROW,e.insertionMode=N.IN_ROW,Gd(e,t);break}default:e.tmplInsertionModeStack[0]=N.IN_BODY,e.insertionMode=N.IN_BODY,pn(e,t)}}function O7(e,t){t.tagID===p.TEMPLATE&&ps(e,t)}function YS(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Jg(e,t)}function R7(e,t){t.tagID===p.HTML?pn(e,t):$d(e,t)}function GS(e,t){var n;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=N.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.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 $d(e,t)}function $d(e,t){e.insertionMode=N.IN_BODY,Hd(e,t)}function N7(e,t){switch(t.tagID){case p.HTML:{pn(e,t);break}case p.FRAMESET:{e._insertElement(t,X.HTML);break}case p.FRAME:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{Nr(e,t);break}}}function D7(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=N.AFTER_FRAMESET))}function M7(e,t){switch(t.tagID){case p.HTML:{pn(e,t);break}case p.NOFRAMES:{Nr(e,t);break}}}function L7(e,t){t.tagID===p.HTML&&(e.insertionMode=N.AFTER_AFTER_FRAMESET)}function I7(e,t){t.tagID===p.HTML?pn(e,t):Xd(e,t)}function Xd(e,t){e.insertionMode=N.IN_BODY,Hd(e,t)}function P7(e,t){switch(t.tagID){case p.HTML:{pn(e,t);break}case p.NOFRAMES:{Nr(e,t);break}}}function B7(e,t){t.chars=bt,e._insertCharacters(t)}function U7(e,t){e._insertCharacters(t),e.framesetOk=!1}function $S(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==X.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function z7(e,t){if(e9(t))$S(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===X.MATHML?AS(t):r===X.SVG&&(t9(t),CS(t)),Wg(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function j7(e,t){if(t.tagID===p.P||t.tagID===p.BR){$S(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)===X.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}P.AREA,P.BASE,P.BASEFONT,P.BGSOUND,P.BR,P.COL,P.EMBED,P.FRAME,P.HR,P.IMG,P.INPUT,P.KEYGEN,P.LINK,P.META,P.PARAM,P.SOURCE,P.TRACK,P.WBR;const Kd=XS("end"),Zr=XS("start");function XS(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 F7(e){const t=Zr(e),n=Kd(e);if(t&&n)return{start:t,end:n}}const Wd=function(e){if(e==null)return Y7;if(typeof e=="function")return Qd(e);if(typeof e=="object")return Array.isArray(e)?H7(e):V7(e);if(typeof e=="string")return q7(e);throw new Error("Expected function, string, or object as test")};function H7(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Wd(e[n]);return Qd(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function V7(e){const t=e;return Qd(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function q7(e){return Qd(t);function t(n){return n&&n.type===e}}function Qd(e){return t;function t(n,r,i){return!!(G7(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Y7(){return!0}function G7(e){return e!==null&&typeof e=="object"&&"type"in e}function HJ(e){return e}const KS=[],$7=!0,r1=!1,X7="skip";function WS(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Wd(i),s=r?-1:1;o(e,void 0,[])();function o(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=KS,g,b,T;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=K7(n(l,c)),h[0]===r1))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==X7)for(b=(r?m.children.length:-1)+s,T=c.concat(m);b>-1&&b<m.children.length;){const y=m.children[b];if(g=o(y,b,T)(),g[0]===r1)return g;b=typeof g[1]=="number"?g[1]:b+s}}return h}}}function K7(e){return Array.isArray(e)?e:typeof e=="number"?[$7,e]:e==null?KS:[e]}function Zd(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),WS(e,a,o,i);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const W7=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Q7=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),QS={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ZS(e,t){const n=oB(e),r=oS("type",{handlers:{root:Z7,element:J7,text:eB,comment:eA,doctype:tB,raw:rB},unknown:iB}),i={parser:n?new RS(QS):RS.getFragmentParser(void 0,QS),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),Xo(i,Zr());const a=n?i.parser.document:i.parser.getFragment(),s=V8(a,{file:i.options.file});return i.stitches&&Zd(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function JS(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Z7(e,t){JS(e.children,t)}function J7(e,t){aB(e,t),JS(e.children,t),sB(e,t)}function eB(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:ke.CHARACTER,chars:e.value,location:Ku(e)};Xo(t,Zr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tB(e,t){const n={type:ke.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ku(e)};Xo(t,Zr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nB(e,t){t.stitches=!0;const n=lB(e);if("children"in e&&"children"in n){const r=ZS({type:"root",children:e.children},t.options);n.children=r.children}eA({type:"comment",value:{stitch:n}},t)}function eA(e,t){const n=e.value,r={type:ke.COMMENT,data:n,location:Ku(e)};Xo(t,Zr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function rB(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,tA(t,Zr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(W7,"&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 iB(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))nB(n,t);else{let r="";throw Q7.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 Xo(e,t){tA(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=Rt.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 tA(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 aB(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Rt.PLAINTEXT)return;Xo(t,Zr(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:fs.html;i===fs.html&&n==="svg"&&(i=fs.svg);const a=iP({...e,children:[]},{space:i===fs.svg?"svg":"html"}),s={type:ke.START_TAG,tagName:n,tagID:Go(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Ku(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function sB(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&dP.includes(n)||t.parser.tokenizer.state===Rt.PLAINTEXT)return;Xo(t,Kd(e));const r={type:ke.END_TAG,tagName:n,tagID:Go(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ku(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Rt.RCDATA||t.parser.tokenizer.state===Rt.RAWTEXT||t.parser.tokenizer.state===Rt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Rt.DATA)}function oB(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ku(e){const t=Zr(e)||{line:void 0,column:void 0,offset:void 0},n=Kd(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 lB(e){return"children"in e?Uo({...e,children:[]}):Uo(e)}function nA(e){return function(t,n){return ZS(t,{...e,file:n})}}function rA(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const wn=_a(/[A-Za-z]/),mn=_a(/[\dA-Za-z]/),uB=_a(/[#-'*+\--9=?A-Z^-~]/);function Jd(e){return e!==null&&(e<32||e===127)}const i1=_a(/\d/),cB=_a(/[\dA-Fa-f]/),fB=_a(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function nt(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const eh=_a(new RegExp("\\p{P}|\\p{S}","u")),ms=_a(/\s/);function _a(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function dB(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function hB(e,t,n){const i=Wd((n||{}).ignore||[]),a=pB(t);let s=-1;for(;++s<a.length;)WS(e,"text",o);function o(u,c){let f=-1,d;for(;++f<c.length;){const h=c[f],g=d?d.children:void 0;if(i(h,g?g.indexOf(h):void 0,d))return;d=h}if(d)return l(u,c)}function l(u,c){const f=c[c.length-1],d=a[s][0],h=a[s][1];let g=0;const T=f.children.indexOf(u);let m=!1,y=[];d.lastIndex=0;let v=d.exec(u.value);for(;v;){const w=v.index,_={index:v.index,input:v.input,stack:[...c,u]};let A=h(...v,_);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?d.lastIndex=w+1:(g!==w&&y.push({type:"text",value:u.value.slice(g,w)}),Array.isArray(A)?y.push(...A):A&&y.push(A),g=w+v[0].length,m=!0),!d.global)break;v=d.exec(u.value)}return m?(g<u.value.length&&y.push({type:"text",value:u.value.slice(g)}),f.children.splice(T,1,...y)):y=[u],T+y.length}}function pB(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 i=n[r];t.push([mB(i[0]),gB(i[1])])}return t}function mB(e){return typeof e=="string"?new RegExp(dB(e),"g"):e}function gB(e){return typeof e=="function"?e:function(){return e}}const a1="phrasing",s1=["autolink","link","image","label"];function bB(){return{transforms:[_B],enter:{literalAutolink:vB,literalAutolinkEmail:o1,literalAutolinkHttp:o1,literalAutolinkWww:o1},exit:{literalAutolink:wB,literalAutolinkEmail:TB,literalAutolinkHttp:xB,literalAutolinkWww:EB}}}function yB(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:a1,notInConstruct:s1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:a1,notInConstruct:s1},{character:":",before:"[ps]",after:"\\/",inConstruct:a1,notInConstruct:s1}]}}function vB(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function o1(e){this.config.enter.autolinkProtocol.call(this,e)}function xB(e){this.config.exit.autolinkProtocol.call(this,e)}function EB(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 TB(e){this.config.exit.autolinkEmail.call(this,e)}function wB(e){this.exit(e)}function _B(e){hB(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,SB],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),AB]],{ignore:["link","linkReference"]})}function SB(e,t,n,r,i){let a="";if(!iA(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!CB(n)))return!1;const s=kB(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function AB(e,t,n,r){return!iA(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function CB(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 kB(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 i=rA(e,"(");let a=rA(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function iA(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ms(n)||eh(n))&&(!t||n!==47)}function Dr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}aA.peek=BB;function OB(){this.buffer()}function RB(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function NB(){this.buffer()}function DB(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function MB(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Dr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function LB(e){this.exit(e)}function IB(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Dr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function PB(e){this.exit(e)}function BB(){return"["}function aA(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function UB(){return{enter:{gfmFootnoteCallString:OB,gfmFootnoteCall:RB,gfmFootnoteDefinitionLabelString:NB,gfmFootnoteDefinition:DB},exit:{gfmFootnoteCallString:MB,gfmFootnoteCall:LB,gfmFootnoteDefinitionLabelString:IB,gfmFootnoteDefinition:PB}}}function zB(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:aA},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let l=o.move("[^");const u=a.enter("footnoteDefinition"),c=a.enter("label");return l+=o.move(a.safe(a.associationId(r),{before:l,after:"]"})),c(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((t?`
102
+ `:" ")+a.indentLines(a.containerFlow(r,o.current()),t?sA:jB))),u(),l}}function jB(e,t,n){return t===0?e:sA(e,t,n)}function sA(e,t,n){return(n?"":" ")+e}const FB=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];oA.peek=GB;function HB(){return{canContainEols:["delete"],enter:{strikethrough:qB},exit:{strikethrough:YB}}}function VB(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:FB}],handlers:{delete:oA}}}function qB(e){this.enter({type:"delete",children:[]},e)}function YB(e){this.exit(e)}function oA(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function GB(){return"~"}function $B(e){return e.length}function XB(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||$B,a=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const b=[],T=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const y=KB(e[c][m]);if(n.alignDelimiters!==!1){const v=i(y);T[m]=v,(l[m]===void 0||v>l[m])&&(l[m]=v)}b.push(y)}s[c]=b,o[c]=T}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)a[f]=lA(r[f]);else{const b=lA(r);for(;++f<u;)a[f]=b}f=-1;const d=[],h=[];for(;++f<u;){const b=a[f];let T="",m="";b===99?(T=":",m=":"):b===108?T=":":b===114&&(m=":");let y=n.alignDelimiters===!1?1:Math.max(1,l[f]-T.length-m.length);const v=T+"-".repeat(y)+m;n.alignDelimiters!==!1&&(y=T.length+y+m.length,y>l[f]&&(l[f]=y),h[f]=y),d[f]=v}s.splice(1,0,d),o.splice(1,0,h),c=-1;const g=[];for(;++c<s.length;){const b=s[c],T=o[c];f=-1;const m=[];for(;++f<u;){const y=b[f]||"";let v="",w="";if(n.alignDelimiters!==!1){const _=l[f]-(T[f]||0),A=a[f];A===114?v=" ".repeat(_):A===99?_%2?(v=" ".repeat(_/2+.5),w=" ".repeat(_/2-.5)):(v=" ".repeat(_/2),w=v):w=" ".repeat(_)}n.delimiterStart!==!1&&!f&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||f)&&m.push(" "),n.alignDelimiters!==!1&&m.push(v),m.push(y),n.alignDelimiters!==!1&&m.push(w),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
103
+ `)}function KB(e){return e==null?"":String(e)}function lA(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 WB(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),QB);return i(),s}function QB(e,t,n){return">"+(n?"":" ")+e}function ZB(e,t){return uA(e,t.inConstruct,!0)&&!uA(e,t.notInConstruct,!1)}function uA(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 cA(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
104
+ `&&ZB(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
105
+ `}function JB(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function eU(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function tU(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function nU(e,t,n,r){const i=tU(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(eU(e,n)){const f=n.enter("codeIndented"),d=n.indentLines(a,rU);return f(),d}const o=n.createTracker(r),l=i.repeat(Math.max(JB(a,i)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
106
+ `,encode:["`"],...o.current()})),f()}return c+=o.move(`
107
+ `),a&&(c+=o.move(a+`
108
+ `)),c+=o.move(l),u(),c}function rU(e,t,n){return(n?"":" ")+e}function l1(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function iU(e,t,n,r){const i=l1(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
109
+ `,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),s(),u}function aU(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Wu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ko(e){if(e===null||nt(e)||ms(e))return 1;if(eh(e))return 2}function th(e,t,n){const r=Ko(e),i=Ko(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}fA.peek=sU;function fA(e,t,n,r){const i=aU(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let l=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const u=l.charCodeAt(0),c=th(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Wu(u)+l.slice(1));const f=l.charCodeAt(l.length-1),d=th(r.after.charCodeAt(0),f,i);d.inside&&(l=l.slice(0,-1)+Wu(f));const h=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},o+l+h}function sU(e,t,n){return n.options.emphasis||"*"}const oU={};function u1(e,t){const n=oU,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return dA(e,r,i)}function dA(e,t,n){if(lU(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 hA(e.children,t,n)}return Array.isArray(e)?hA(e,t,n):""}function hA(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=dA(e[i],t,n);return r.join("")}function lU(e){return!!(e&&typeof e=="object")}function uU(e,t){let n=!1;return Zd(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,r1}),!!((!e.depth||e.depth<3)&&u1(e)&&(t.options.setext||n))}function cU(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(uU(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),d=n.containerPhrasing(e,{...a.current(),before:`
110
+ `,after:`
111
+ `});return f(),c(),d+`
112
+ `+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
113
+ `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");a.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
114
+ `,...a.current()});return/^[\t ]/.test(u)&&(u=Wu(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}pA.peek=fU;function pA(e){return e.value||""}function fU(){return"<"}mA.peek=dU;function mA(e,t,n,r){const i=l1(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function dU(){return"!"}gA.peek=hU;function gA(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function hU(){return"!"}bA.peek=pU;function bA(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],o=n.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function pU(){return"`"}function yA(e,t){const n=u1(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}vA.peek=mU;function vA(e,t,n,r){const i=l1(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(yA(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=c,f}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function mU(e,t,n){return yA(e,n)?"<":"["}xA.peek=gU;function xA(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function gU(){return"["}function c1(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function bU(e){const t=c1(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function yU(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function EA(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function vU(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?yU(n):c1(n);const o=e.ordered?s==="."?")":".":bU(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),EA(n)===s&&c){let f=-1;for(;++f<e.children.length;){const d=e.children[f];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),u}function xU(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function EU(e,t,n,r){const i=xU(n);let a=n.bulletCurrent||c1(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return l(),u;function c(f,d,h){return d?(h?"":" ".repeat(s))+f:(h?a:a+" ".repeat(s-a.length))+f}}function TU(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const wU=Wd(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _U(e,t,n,r){return(e.children.some(function(s){return wU(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function SU(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}TA.peek=AU;function TA(e,t,n,r){const i=SU(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let l=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const u=l.charCodeAt(0),c=th(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Wu(u)+l.slice(1));const f=l.charCodeAt(l.length-1),d=th(r.after.charCodeAt(0),f,i);d.inside&&(l=l.slice(0,-1)+Wu(f));const h=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},o+l+h}function AU(e,t,n){return n.options.strong||"*"}function CU(e,t,n,r){return n.safe(e.value,r)}function kU(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function OU(e,t,n){const r=(EA(n)+(n.options.ruleSpaces?" ":"")).repeat(kU(n));return n.options.ruleSpaces?r.slice(0,-1):r}const wA={blockquote:WB,break:cA,code:nU,definition:iU,emphasis:fA,hardBreak:cA,heading:cU,html:pA,image:mA,imageReference:gA,inlineCode:bA,link:vA,linkReference:xA,list:vU,listItem:EU,paragraph:TU,root:_U,strong:TA,text:CU,thematicBreak:OU},_A=document.createElement("i");function f1(e){const t="&"+e+";";_A.innerHTML=t;const n=_A.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function SA(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)}const RU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function NU(e){return e.replace(RU,DU)}function DU(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return SA(n.slice(a?2:1),a?16:10)}return f1(n)||e}function MU(){return{enter:{table:LU,tableData:AA,tableHeader:AA,tableRow:PU},exit:{codeText:BU,table:IU,tableData:d1,tableHeader:d1,tableRow:d1}}}function LU(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function IU(e){this.exit(e),this.data.inTable=void 0}function PU(e){this.enter({type:"tableRow",children:[]},e)}function d1(e){this.exit(e)}function AA(e){this.enter({type:"tableCell",children:[]},e)}function BU(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,UU));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function UU(e,t){return t==="|"?t:e}function zU(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
115
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:l,tableRow:o}};function s(h,g,b,T){return u(c(h,b,T),h.align)}function o(h,g,b,T){const m=f(h,b,T),y=u([m]);return y.slice(0,y.indexOf(`
116
+ `))}function l(h,g,b,T){const m=b.enter("tableCell"),y=b.enter("phrasing"),v=b.containerPhrasing(h,{...T,before:a,after:a});return y(),m(),v}function u(h,g){return XB(h,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function c(h,g,b){const T=h.children;let m=-1;const y=[],v=g.enter("table");for(;++m<T.length;)y[m]=f(T[m],g,b);return v(),y}function f(h,g,b){const T=h.children;let m=-1;const y=[],v=g.enter("tableRow");for(;++m<T.length;)y[m]=l(T[m],h,g,b);return v(),y}function d(h,g,b){let T=wA.inlineCode(h,g,b);return b.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function jU(){return{exit:{taskListCheckValueChecked:CA,taskListCheckValueUnchecked:CA,paragraph:HU}}}function FU(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:VU}}}function CA(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function HU(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function VU(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let l=wA.listItem(e,t,n,{...r,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function qU(){return[bB(),UB(),HB(),MU(),jU()]}function YU(e){return{extensions:[yB(),zB(e),VB(),zU(e),FU()]}}function Jn(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function vr(e,t){return e.length>0?(Jn(e,e.length,0,t),e):t}const kA={}.hasOwnProperty;function OA(e){const t={};let n=-1;for(;++n<e.length;)GU(t,e[n]);return t}function GU(e,t){let n;for(n in t){const i=(kA.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){kA.call(i,s)||(i[s]=[]);const o=a[s];$U(i[s],Array.isArray(o)?o:o?[o]:[])}}}function $U(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Jn(e,0,0,r)}const XU={tokenize:ez,partial:!0},RA={tokenize:tz,partial:!0},NA={tokenize:nz,partial:!0},DA={tokenize:rz,partial:!0},KU={tokenize:iz,partial:!0},MA={name:"wwwAutolink",tokenize:ZU,previous:IA},LA={name:"protocolAutolink",tokenize:JU,previous:PA},Oi={name:"emailAutolink",tokenize:QU,previous:BA},Jr={};function WU(){return{text:Jr}}let gs=48;for(;gs<123;)Jr[gs]=Oi,gs++,gs===58?gs=65:gs===91&&(gs=97);Jr[43]=Oi,Jr[45]=Oi,Jr[46]=Oi,Jr[95]=Oi,Jr[72]=[Oi,LA],Jr[104]=[Oi,LA],Jr[87]=[Oi,MA],Jr[119]=[Oi,MA];function QU(e,t,n){const r=this;let i,a;return s;function s(f){return!h1(f)||!BA.call(r,r.previous)||p1(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return h1(f)?(e.consume(f),o):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(KU,c,u)(f):f===45||f===95||mn(f)?(a=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return a&&i&&wn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function ZU(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!IA.call(r,r.previous)||p1(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(XU,e.attempt(RA,e.attempt(NA,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function JU(e,t,n){const r=this;let i="",a=!1;return s;function s(f){return(f===72||f===104)&&PA.call(r,r.previous)&&!p1(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),o):n(f)}function o(f){if(wn(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),a?u:(a=!0,l)):n(f)}function u(f){return f===null||Jd(f)||nt(f)||ms(f)||eh(f)?n(f):e.attempt(RA,e.attempt(NA,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function ez(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function tz(e,t,n){let r,i,a;return s;function s(u){return u===46||u===95?e.check(DA,l,o)(u):u===null||nt(u)||ms(u)||u!==45&&eh(u)?l(u):(a=!0,e.consume(u),s)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function l(u){return i||r||!a?n(u):t(u)}}function nz(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(DA,t,a)(s):s===null||nt(s)||ms(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function rz(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||nt(o)||ms(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||nt(o)||ms(o)?t(o):r(o)}function a(o){return wn(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):wn(o)?(e.consume(o),s):n(o)}}function iz(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return mn(a)?n(a):t(a)}}function IA(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||nt(e)}function PA(e){return!wn(e)}function BA(e){return!(e===47||h1(e))}function h1(e){return e===43||e===45||e===46||e===95||mn(e)}function p1(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Wo(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&mn(e.charCodeAt(n+1))&&mn(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function nh(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const m1={name:"attention",resolveAll:az,tokenize:sz};function az(e,t){let n=-1,r,i,a,s,o,l,u,c;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;l=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 f={...e[r][1].end},d={...e[n][1].start};UA(f,-l),UA(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=vr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=vr(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=vr(u,nh(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=vr(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=vr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Jn(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function sz(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ko(r);let a;return s;function s(l){return a=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===a)return e.consume(l),o;const u=e.exit("attentionSequence"),c=Ko(l),f=!c||c===2&&i||n.includes(l),d=!i||i===2&&c||n.includes(r);return u._open=!!(a===42?f:f&&(i||!d)),u._close=!!(a===42?d:d&&(c||!f)),t(l)}}function UA(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const oz={name:"autolink",tokenize:lz};function lz(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return wn(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||mn(h)?(r=1,o(h)):u(h)}function o(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||mn(h))&&r++<32?(e.consume(h),o):(r=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Jd(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):uB(h)?(e.consume(h),u):n(h)}function c(h){return mn(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||mn(h))&&r++<63){const g=h===45?d:f;return e.consume(h),g}return n(h)}}function ze(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Me(l)?(e.enter(n),o(l)):t(l)}function o(l){return Me(l)&&a++<i?(e.consume(l),o):(e.exit(n),t(l))}}const Qu={partial:!0,tokenize:uz};function uz(e,t,n){return r;function r(a){return Me(a)?ze(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||fe(a)?t(a):n(a)}}const zA={continuation:{tokenize:fz},exit:dz,name:"blockQuote",tokenize:cz};function cz(e,t,n){const r=this;return i;function i(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return Me(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function fz(e,t,n){const r=this;return i;function i(s){return Me(s)?ze(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(zA,t,n)(s)}}function dz(e){e.exit("blockQuote")}const jA={name:"characterEscape",tokenize:hz};function hz(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return fB(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const FA={name:"characterReference",tokenize:pz};function pz(e,t,n){const r=this;let i=0,a,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,s=mn,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=cB,c):(e.enter("characterReferenceValue"),a=7,s=i1,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return s===mn&&!f1(r.sliceSerialize(d))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<a?(e.consume(f),c):n(f)}}const HA={partial:!0,tokenize:gz},VA={concrete:!0,name:"codeFenced",tokenize:mz};function mz(e,t,n){const r=this,i={partial:!0,tokenize:_};let a=0,s=0,o;return l;function l(A){return u(A)}function u(A){const D=r.events[r.events.length-1];return a=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===o?(s++,e.consume(A),c):s<3?n(A):(e.exit("codeFencedFenceSequence"),Me(A)?ze(e,f,"whitespace")(A):f(A))}function f(A){return A===null||fe(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(HA,b,w)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(A))}function d(A){return A===null||fe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(A)):Me(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ze(e,h,"whitespace")(A)):A===96&&A===o?n(A):(e.consume(A),d)}function h(A){return A===null||fe(A)?f(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||fe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(A)):A===96&&A===o?n(A):(e.consume(A),g)}function b(A){return e.attempt(i,w,T)(A)}function T(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),m}function m(A){return a>0&&Me(A)?ze(e,y,"linePrefix",a+1)(A):y(A)}function y(A){return A===null||fe(A)?e.check(HA,b,w)(A):(e.enter("codeFlowValue"),v(A))}function v(A){return A===null||fe(A)?(e.exit("codeFlowValue"),y(A)):(e.consume(A),v)}function w(A){return e.exit("codeFenced"),t(A)}function _(A,D,L){let U=0;return R;function R(W){return A.enter("lineEnding"),A.consume(W),A.exit("lineEnding"),q}function q(W){return A.enter("codeFencedFence"),Me(W)?ze(A,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):F(W)}function F(W){return W===o?(A.enter("codeFencedFenceSequence"),ne(W)):L(W)}function ne(W){return W===o?(U++,A.consume(W),ne):U>=s?(A.exit("codeFencedFenceSequence"),Me(W)?ze(A,K,"whitespace")(W):K(W)):L(W)}function K(W){return W===null||fe(W)?(A.exit("codeFencedFence"),D(W)):L(W)}}}function gz(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const g1={name:"codeIndented",tokenize:yz},bz={partial:!0,tokenize:vz};function yz(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ze(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?s(u):n(u)}function s(u){return u===null?l(u):fe(u)?e.attempt(bz,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||fe(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function vz(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ze(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):fe(s)?i(s):n(s)}}const xz={name:"codeText",previous:Tz,resolve:Ez,tokenize:wz};function Ez(e){let t=e.length-4,n=3,r,i;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;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Tz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wz(e,t,n){let r=0,i,a;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),i=0,c(f)):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||fe(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}class _z{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??Number.POSITIVE_INFINITY;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 i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Zu(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),Zu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zu(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);Zu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zu(this.left,n.reverse())}}}function Zu(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 qA(e){const t={};let n=-1,r,i,a,s,o,l,u;const c=new _z(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Sz(c,n)),n=t[n],u=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=c.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},o=c.slice(i,n),o.unshift(r),c.splice(i,n-i+1,o))}}return Jn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Sz(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let c,f,d=-1,h=n,g=0,b=0;const T=[b];for(;h;){for(;e.get(++i)[1]!==h;);a.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(b=d+1,T.push(b),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):T.pop(),d=T.length;d--;){const m=o.slice(T[d],T[d+1]),y=a.pop();l.push([y,y+m.length-1]),e.splice(y,2,m)}for(l.reverse(),d=-1;++d<l.length;)u[g+l[d][0]]=g+l[d][1],g+=l[d][1]-l[d][0]-1;return u}const Az={resolve:kz,tokenize:Oz},Cz={partial:!0,tokenize:Rz};function kz(e){return qA(e),e}function Oz(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):fe(o)?e.check(Cz,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Rz(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ze(e,a,"linePrefix")}function a(s){if(s===null||fe(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function YA(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||Jd(m)?n(m):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(o),d(m)):m===null||m===60||fe(m)?n(m):(e.consume(m),m===92?g:h)}function g(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function b(m){return!c&&(m===null||m===41||nt(m))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(m)):c<u&&m===40?(e.consume(m),c++,b):m===41?(e.consume(m),c--,b):m===null||m===32||m===40||Jd(m)?n(m):(e.consume(m),m===92?T:b)}function T(m){return m===40||m===41||m===92?(e.consume(m),b):b(m)}}function GA(e,t,n,r,i,a){const s=this;let o=0,l;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(a),c}function c(h){return o>999||h===null||h===91||h===93&&!l||h===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):fe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||fe(h)||o++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Me(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}function $A(e,t,n,r,i,a){let s;return o;function o(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),s=d===40?41:d,l):n(d)}function l(d){return d===s?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(a),u(d))}function u(d){return d===s?(e.exit(a),l(s)):d===null?n(d):fe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ze(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||fe(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===s||d===92?(e.consume(d),c):c(d)}}function Ju(e,t){let n;return r;function r(i){return fe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Me(i)?ze(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Nz={name:"definition",tokenize:Mz},Dz={partial:!0,tokenize:Lz};function Mz(e,t,n){const r=this;let i;return a;function a(h){return e.enter("definition"),s(h)}function s(h){return GA.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return i=Dr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return nt(h)?Ju(e,u)(h):u(h)}function u(h){return YA(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Dz,f,f)(h)}function f(h){return Me(h)?ze(e,d,"whitespace")(h):d(h)}function d(h){return h===null||fe(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Lz(e,t,n){return r;function r(o){return nt(o)?Ju(e,i)(o):n(o)}function i(o){return $A(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Me(o)?ze(e,s,"whitespace")(o):s(o)}function s(o){return o===null||fe(o)?t(o):n(o)}}const Iz={name:"hardBreakEscape",tokenize:Pz};function Pz(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return fe(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Bz={name:"headingAtx",resolve:Uz,tokenize:zz};function Uz(e,t){let n=e.length-2,r=3,i,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&&(i={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"},Jn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function zz(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||nt(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):Me(c)?ze(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||nt(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const jz=["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"],XA=["pre","script","style","textarea"],Fz={concrete:!0,name:"htmlFlow",resolveTo:qz,tokenize:Yz},Hz={partial:!0,tokenize:$z},Vz={partial:!0,tokenize:Gz};function qz(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 Yz(e,t,n){const r=this;let i,a,s,o,l;return u;function u(M){return c(M)}function c(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),f}function f(M){return M===33?(e.consume(M),d):M===47?(e.consume(M),a=!0,b):M===63?(e.consume(M),i=3,r.interrupt?t:O):wn(M)?(e.consume(M),s=String.fromCharCode(M),T):n(M)}function d(M){return M===45?(e.consume(M),i=2,h):M===91?(e.consume(M),i=5,o=0,g):wn(M)?(e.consume(M),i=4,r.interrupt?t:O):n(M)}function h(M){return M===45?(e.consume(M),r.interrupt?t:O):n(M)}function g(M){const Le="CDATA[";return M===Le.charCodeAt(o++)?(e.consume(M),o===Le.length?r.interrupt?t:F:g):n(M)}function b(M){return wn(M)?(e.consume(M),s=String.fromCharCode(M),T):n(M)}function T(M){if(M===null||M===47||M===62||nt(M)){const Le=M===47,pe=s.toLowerCase();return!Le&&!a&&XA.includes(pe)?(i=1,r.interrupt?t(M):F(M)):jz.includes(s.toLowerCase())?(i=6,Le?(e.consume(M),m):r.interrupt?t(M):F(M)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(M):a?y(M):v(M))}return M===45||mn(M)?(e.consume(M),s+=String.fromCharCode(M),T):n(M)}function m(M){return M===62?(e.consume(M),r.interrupt?t:F):n(M)}function y(M){return Me(M)?(e.consume(M),y):R(M)}function v(M){return M===47?(e.consume(M),R):M===58||M===95||wn(M)?(e.consume(M),w):Me(M)?(e.consume(M),v):R(M)}function w(M){return M===45||M===46||M===58||M===95||mn(M)?(e.consume(M),w):_(M)}function _(M){return M===61?(e.consume(M),A):Me(M)?(e.consume(M),_):v(M)}function A(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),l=M,D):Me(M)?(e.consume(M),A):L(M)}function D(M){return M===l?(e.consume(M),l=null,U):M===null||fe(M)?n(M):(e.consume(M),D)}function L(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||nt(M)?_(M):(e.consume(M),L)}function U(M){return M===47||M===62||Me(M)?v(M):n(M)}function R(M){return M===62?(e.consume(M),q):n(M)}function q(M){return M===null||fe(M)?F(M):Me(M)?(e.consume(M),q):n(M)}function F(M){return M===45&&i===2?(e.consume(M),H):M===60&&i===1?(e.consume(M),V):M===62&&i===4?(e.consume(M),he):M===63&&i===3?(e.consume(M),O):M===93&&i===5?(e.consume(M),te):fe(M)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Hz,je,ne)(M)):M===null||fe(M)?(e.exit("htmlFlowData"),ne(M)):(e.consume(M),F)}function ne(M){return e.check(Vz,K,je)(M)}function K(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),W}function W(M){return M===null||fe(M)?ne(M):(e.enter("htmlFlowData"),F(M))}function H(M){return M===45?(e.consume(M),O):F(M)}function V(M){return M===47?(e.consume(M),s="",j):F(M)}function j(M){if(M===62){const Le=s.toLowerCase();return XA.includes(Le)?(e.consume(M),he):F(M)}return wn(M)&&s.length<8?(e.consume(M),s+=String.fromCharCode(M),j):F(M)}function te(M){return M===93?(e.consume(M),O):F(M)}function O(M){return M===62?(e.consume(M),he):M===45&&i===2?(e.consume(M),O):F(M)}function he(M){return M===null||fe(M)?(e.exit("htmlFlowData"),je(M)):(e.consume(M),he)}function je(M){return e.exit("htmlFlow"),t(M)}}function Gz(e,t,n){const r=this;return i;function i(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function $z(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qu,t,n)}}const Xz={name:"htmlText",tokenize:Kz};function Kz(e,t,n){const r=this;let i,a,s;return o;function o(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),l}function l(O){return O===33?(e.consume(O),u):O===47?(e.consume(O),_):O===63?(e.consume(O),v):wn(O)?(e.consume(O),L):n(O)}function u(O){return O===45?(e.consume(O),c):O===91?(e.consume(O),a=0,g):wn(O)?(e.consume(O),y):n(O)}function c(O){return O===45?(e.consume(O),h):n(O)}function f(O){return O===null?n(O):O===45?(e.consume(O),d):fe(O)?(s=f,V(O)):(e.consume(O),f)}function d(O){return O===45?(e.consume(O),h):f(O)}function h(O){return O===62?H(O):O===45?d(O):f(O)}function g(O){const he="CDATA[";return O===he.charCodeAt(a++)?(e.consume(O),a===he.length?b:g):n(O)}function b(O){return O===null?n(O):O===93?(e.consume(O),T):fe(O)?(s=b,V(O)):(e.consume(O),b)}function T(O){return O===93?(e.consume(O),m):b(O)}function m(O){return O===62?H(O):O===93?(e.consume(O),m):b(O)}function y(O){return O===null||O===62?H(O):fe(O)?(s=y,V(O)):(e.consume(O),y)}function v(O){return O===null?n(O):O===63?(e.consume(O),w):fe(O)?(s=v,V(O)):(e.consume(O),v)}function w(O){return O===62?H(O):v(O)}function _(O){return wn(O)?(e.consume(O),A):n(O)}function A(O){return O===45||mn(O)?(e.consume(O),A):D(O)}function D(O){return fe(O)?(s=D,V(O)):Me(O)?(e.consume(O),D):H(O)}function L(O){return O===45||mn(O)?(e.consume(O),L):O===47||O===62||nt(O)?U(O):n(O)}function U(O){return O===47?(e.consume(O),H):O===58||O===95||wn(O)?(e.consume(O),R):fe(O)?(s=U,V(O)):Me(O)?(e.consume(O),U):H(O)}function R(O){return O===45||O===46||O===58||O===95||mn(O)?(e.consume(O),R):q(O)}function q(O){return O===61?(e.consume(O),F):fe(O)?(s=q,V(O)):Me(O)?(e.consume(O),q):U(O)}function F(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),i=O,ne):fe(O)?(s=F,V(O)):Me(O)?(e.consume(O),F):(e.consume(O),K)}function ne(O){return O===i?(e.consume(O),i=void 0,W):O===null?n(O):fe(O)?(s=ne,V(O)):(e.consume(O),ne)}function K(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===47||O===62||nt(O)?U(O):(e.consume(O),K)}function W(O){return O===47||O===62||nt(O)?U(O):n(O)}function H(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):n(O)}function V(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),j}function j(O){return Me(O)?ze(e,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):te(O)}function te(O){return e.enter("htmlTextData"),s(O)}}const b1={name:"labelEnd",resolveAll:Jz,resolveTo:ej,tokenize:tj},Wz={tokenize:nj},Qz={tokenize:rj},Zz={tokenize:ij};function Jz(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 i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Jn(e,0,e.length,n),e}function ej(e,t){let n=e.length,r=0,i,a,s,o;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=vr(o,e.slice(a+1,a+r+3)),o=vr(o,[["enter",c,t]]),o=vr(o,nh(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=vr(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=vr(o,e.slice(s+1)),o=vr(o,[["exit",l,t]]),Jn(e,a,e.length,o),e}function tj(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(d){return a?a._inactive?f(d):(s=r.parser.defined.includes(Dr(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(Wz,c,s?c:f)(d):d===91?e.attempt(Qz,c,s?u:f)(d):s?c(d):f(d)}function u(d){return e.attempt(Zz,c,f)(d)}function c(d){return t(d)}function f(d){return a._balanced=!0,n(d)}}function nj(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return nt(f)?Ju(e,a)(f):a(f)}function a(f){return f===41?c(f):YA(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return nt(f)?Ju(e,l)(f):c(f)}function o(f){return n(f)}function l(f){return f===34||f===39||f===40?$A(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return nt(f)?Ju(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function rj(e,t,n){const r=this;return i;function i(o){return GA.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(Dr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function ij(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const aj={name:"labelStartImage",resolveAll:b1.resolveAll,tokenize:sj};function sj(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const oj={name:"labelStartLink",resolveAll:b1.resolveAll,tokenize:lj};function lj(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const y1={name:"lineEnding",tokenize:uj};function uj(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ze(e,t,"linePrefix")}}const rh={name:"thematicBreak",tokenize:cj};function cj(e,t,n){let r=0,i;return a;function a(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||fe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Me(u)?ze(e,o,"whitespace")(u):o(u))}}const Ln={continuation:{tokenize:pj},exit:gj,name:"list",tokenize:hj},fj={partial:!0,tokenize:bj},dj={partial:!0,tokenize:mj};function hj(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:i1(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(rh,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return i1(h)&&++s<10?(e.consume(h),l):(!r.interrupt||s<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Qu,r.interrupt?n:c,e.attempt(fj,d,f))}function c(h){return r.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return Me(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function pj(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Qu,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ze(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Me(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(dj,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ze(e,e.attempt(Ln,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function mj(e,t,n){const r=this;return ze(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function gj(e){e.exit(this.containerState.type)}function bj(e,t,n){const r=this;return ze(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Me(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const KA={name:"setextUnderline",resolveTo:yj,tokenize:vj};function yj(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function vj(e,t,n){const r=this;let i;return a;function a(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Me(u)?ze(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||fe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const xj={tokenize:kj,partial:!0};function Ej(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Sj,continuation:{tokenize:Aj},exit:Cj}},text:{91:{name:"gfmFootnoteCall",tokenize:_j},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Tj,resolveTo:wj}}}}function Tj(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=Dr(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function wj(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function _j(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!s||f===null||f===91||nt(f))return n(f);if(f===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(Dr(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return nt(f)||(s=!0),a++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function Sj(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(s>999||g===93&&!o||g===null||g===91||nt(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Dr(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return nt(g)||(o=!0),s++,e.consume(g),g===92?f:c}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),ze(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}function Aj(e,t,n){return e.check(Qu,t,e.attempt(xj,t,n))}function Cj(e){e.exit("gfmFootnoteDefinition")}function kj(e,t,n){const r=this;return ze(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function Oj(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},d=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",f,o]],h=o.parser.constructs.insideSpan.null;h&&Jn(d,d.length,0,nh(h,s.slice(u+1,l),o)),Jn(d,d.length,0,[["exit",f,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),Jn(s,u-1,l-u+3,d),l=u+d.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function a(s,o,l){const u=this.previous,c=this.events;let f=0;return d;function d(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const b=Ko(u);if(g===126)return f>1?l(g):(s.consume(g),f++,h);if(f<2&&!n)return l(g);const T=s.exit("strikethroughSequenceTemporary"),m=Ko(g);return T._open=!m||m===2&&!!b,T._close=!b||b===2&&!!m,o(g)}}}class Rj{constructor(){this.map=[]}add(t,n,r){Nj(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function Nj(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Dj(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Mj(){return{flow:{null:{name:"table",tokenize:Lj,resolveAll:Ij}}}}function Lj(e,t,n){const r=this;let i=0,a=0,s;return o;function o(R){let q=r.events.length-1;for(;q>-1;){const K=r.events[q][1].type;if(K==="lineEnding"||K==="linePrefix")q--;else break}const F=q>-1?r.events[q][1].type:null,ne=F==="tableHead"||F==="tableRow"?A:l;return ne===A&&r.parser.lazy[r.now().line]?n(R):ne(R)}function l(R){return e.enter("tableHead"),e.enter("tableRow"),u(R)}function u(R){return R===124||(s=!0,a+=1),c(R)}function c(R){return R===null?n(R):fe(R)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),h):n(R):Me(R)?ze(e,c,"whitespace")(R):(a+=1,s&&(s=!1,i+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(R)))}function f(R){return R===null||R===124||nt(R)?(e.exit("data"),c(R)):(e.consume(R),R===92?d:f)}function d(R){return R===92||R===124?(e.consume(R),f):f(R)}function h(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(e.enter("tableDelimiterRow"),s=!1,Me(R)?ze(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):g(R))}function g(R){return R===45||R===58?T(R):R===124?(s=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),b):_(R)}function b(R){return Me(R)?ze(e,T,"whitespace")(R):T(R)}function T(R){return R===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),m):R===45?(a+=1,m(R)):R===null||fe(R)?w(R):_(R)}function m(R){return R===45?(e.enter("tableDelimiterFiller"),y(R)):_(R)}function y(R){return R===45?(e.consume(R),y):R===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(R))}function v(R){return Me(R)?ze(e,w,"whitespace")(R):w(R)}function w(R){return R===124?g(R):R===null||fe(R)?!s||i!==a?_(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):_(R)}function _(R){return n(R)}function A(R){return e.enter("tableRow"),D(R)}function D(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),D):R===null||fe(R)?(e.exit("tableRow"),t(R)):Me(R)?ze(e,D,"whitespace")(R):(e.enter("data"),L(R))}function L(R){return R===null||R===124||nt(R)?(e.exit("data"),D(R)):(e.consume(R),R===92?U:L)}function U(R){return R===92||R===124?(e.consume(R),L):L(R)}}function Ij(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,f;const d=new Rj;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(WA(d,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",c,t]])),i=g.type==="tableDelimiterRow"?2:c?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],f=ih(d,t,a,i,void 0,f),a=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],f=ih(d,t,a,i,void 0,f)),a=s,s=[a[1],n,0,0])):g.type==="tableHead"?(o=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(s[0]=s[1],f=ih(d,t,a,i,n,f)):s[1]!==0&&(f=ih(d,t,s,i,n,f)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&WA(d,t,l,u,c),d.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Dj(t.events,n))}return e}function ih(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},Qo(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=Qo(t.events,n[1]);if(a={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=Qo(t.events,n[2]),c=Qo(t.events,n[3]),f={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const d=t.events[n[2]],h=t.events[n[3]];if(d[1].end=Object.assign({},h[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},Qo(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function WA(e,t,n,r,i){const a=[],s=Qo(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Qo(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Pj={name:"tasklistCheck",tokenize:Uj};function Bj(){return{text:{91:Pj}}}function Uj(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return nt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return fe(l)?t(l):Me(l)?e.check({tokenize:zj},t,n)(l):n(l)}}function zj(e,t,n){return ze(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function jj(e){return OA([WU(),Ej(),Oj(e),Mj(),Bj()])}const Fj={};function QA(e){const t=this,n=e||Fj,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(jj(n)),a.push(qU()),s.push(YU(n))}function Ve(e){return{"data-component":e}}var ah="Dialog",[ZA,VJ]=wu(ah),[Hj,ei]=ZA(ah),JA=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,o=E.useRef(null),l=E.useRef(null),[u,c]=J0({prop:r,defaultProp:i??!1,onChange:a,caller:ah});return x.jsx(Hj,{scope:t,triggerRef:o,contentRef:l,contentId:_u(),titleId:_u(),descriptionId:_u(),open:u,onOpenChange:c,onOpenToggle:E.useCallback(()=>c(f=>!f),[c]),modal:s,children:n})};JA.displayName=ah;var eC="DialogTrigger",tC=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ei(eC,n),a=Xn(t,i.triggerRef);return x.jsx(Zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":x1(i.open),...r,ref:a,onClick:Vt(e.onClick,i.onOpenToggle)})});tC.displayName=eC;var Vj="DialogPortal",[qJ,nC]=ZA(Vj,{forceMount:void 0}),sh="DialogOverlay",rC=E.forwardRef((e,t)=>{const n=nC(sh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ei(sh,e.__scopeDialog);return a.modal?x.jsx(ku,{present:r||a.open,children:x.jsx(Yj,{...i,ref:t})}):null});rC.displayName=sh;var qj=sd("DialogOverlay.RemoveScroll"),Yj=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ei(sh,n);return x.jsx(ug,{as:qj,allowPinchZoom:!0,shards:[i.contentRef],children:x.jsx(Zt.div,{"data-state":x1(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),bs="DialogContent",iC=E.forwardRef((e,t)=>{const n=nC(bs,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ei(bs,e.__scopeDialog);return x.jsx(ku,{present:r||a.open,children:a.modal?x.jsx(Gj,{...i,ref:t}):x.jsx($j,{...i,ref:t})})});iC.displayName=bs;var Gj=E.forwardRef((e,t)=>{const n=ei(bs,e.__scopeDialog),r=E.useRef(null),i=Xn(t,n.contentRef,r);return E.useEffect(()=>{const a=r.current;if(a)return nw(a)},[]),x.jsx(aC,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Vt(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Vt(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,o=s.button===0&&s.ctrlKey===!0;(s.button===2||o)&&a.preventDefault()}),onFocusOutside:Vt(e.onFocusOutside,a=>a.preventDefault())})}),$j=E.forwardRef((e,t)=>{const n=ei(bs,e.__scopeDialog),r=E.useRef(!1),i=E.useRef(!1);return x.jsx(aC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,o;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(o=n.triggerRef.current)==null||o.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),aC=E.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,o=ei(bs,n),l=E.useRef(null),u=Xn(t,l);return p2(),x.jsxs(x.Fragment,{children:[x.jsx(B0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:x.jsx(od,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":x1(o.open),...s,ref:u,onDismiss:()=>o.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(Xj,{titleId:o.titleId}),x.jsx(Wj,{contentRef:l,descriptionId:o.descriptionId})]})]})}),v1="DialogTitle",sC=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ei(v1,n);return x.jsx(Zt.h2,{id:i.titleId,...r,ref:t})});sC.displayName=v1;var oC="DialogDescription",lC=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ei(oC,n);return x.jsx(Zt.p,{id:i.descriptionId,...r,ref:t})});lC.displayName=oC;var uC="DialogClose",cC=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ei(uC,n);return x.jsx(Zt.button,{type:"button",...r,ref:t,onClick:Vt(e.onClick,()=>i.onOpenChange(!1))})});cC.displayName=uC;function x1(e){return e?"open":"closed"}var fC="DialogTitleWarning",[YJ,dC]=d5(fC,{contentName:bs,titleName:v1,docsSlug:"dialog"}),Xj=({titleId:e})=>{const t=dC(fC),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
117
+
118
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
119
+
120
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Kj="DialogDescriptionWarning",Wj=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dC(Kj).contentName}}.`;return E.useEffect(()=>{var a;const i=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Qj=JA,Zj=tC,hC=rC,pC=iC,mC=sC,gC=lC,Jj=cC;/**
121
+ * @license lucide-react v0.436.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const eF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bC=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
126
+ * @license lucide-react v0.436.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */var tF={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
131
+ * @license lucide-react v0.436.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const nF=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:s,...o},l)=>E.createElement("svg",{ref:l,...tF,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:bC("lucide",i),...o},[...s.map(([u,c])=>E.createElement(u,c)),...Array.isArray(a)?a:[a]]));/**
136
+ * @license lucide-react v0.436.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const Xe=(e,t)=>{const n=E.forwardRef(({className:r,...i},a)=>E.createElement(nF,{ref:a,iconNode:t,className:bC(`lucide-${eF(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
141
+ * @license lucide-react v0.436.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const rF=Xe("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
146
+ * @license lucide-react v0.436.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const iF=Xe("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
151
+ * @license lucide-react v0.436.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const aF=Xe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
156
+ * @license lucide-react v0.436.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const sF=Xe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
161
+ * @license lucide-react v0.436.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const oF=Xe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
166
+ * @license lucide-react v0.436.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const lF=Xe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
171
+ * @license lucide-react v0.436.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const uF=Xe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
176
+ * @license lucide-react v0.436.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const cF=Xe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
181
+ * @license lucide-react v0.436.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const yC=Xe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
186
+ * @license lucide-react v0.436.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const vC=Xe("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
191
+ * @license lucide-react v0.436.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const fF=Xe("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
196
+ * @license lucide-react v0.436.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const dF=Xe("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);/**
201
+ * @license lucide-react v0.436.0 - ISC
202
+ *
203
+ * This source code is licensed under the ISC license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */const hF=Xe("FileAudio2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"3",cy:"17",r:"1",key:"vo6nti"}],["path",{d:"M2 17v-3a4 4 0 0 1 8 0v3",key:"1ggdre"}],["circle",{cx:"9",cy:"17",r:"1",key:"bc1fq4"}]]);/**
206
+ * @license lucide-react v0.436.0 - ISC
207
+ *
208
+ * This source code is licensed under the ISC license.
209
+ * See the LICENSE file in the root directory of this source tree.
210
+ */const pF=Xe("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);/**
211
+ * @license lucide-react v0.436.0 - ISC
212
+ *
213
+ * This source code is licensed under the ISC license.
214
+ * See the LICENSE file in the root directory of this source tree.
215
+ */const mF=Xe("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
216
+ * @license lucide-react v0.436.0 - ISC
217
+ *
218
+ * This source code is licensed under the ISC license.
219
+ * See the LICENSE file in the root directory of this source tree.
220
+ */const gF=Xe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
221
+ * @license lucide-react v0.436.0 - ISC
222
+ *
223
+ * This source code is licensed under the ISC license.
224
+ * See the LICENSE file in the root directory of this source tree.
225
+ */const bF=Xe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
226
+ * @license lucide-react v0.436.0 - ISC
227
+ *
228
+ * This source code is licensed under the ISC license.
229
+ * See the LICENSE file in the root directory of this source tree.
230
+ */const yF=Xe("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
231
+ * @license lucide-react v0.436.0 - ISC
232
+ *
233
+ * This source code is licensed under the ISC license.
234
+ * See the LICENSE file in the root directory of this source tree.
235
+ */const vF=Xe("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
236
+ * @license lucide-react v0.436.0 - ISC
237
+ *
238
+ * This source code is licensed under the ISC license.
239
+ * See the LICENSE file in the root directory of this source tree.
240
+ */const xF=Xe("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);/**
241
+ * @license lucide-react v0.436.0 - ISC
242
+ *
243
+ * This source code is licensed under the ISC license.
244
+ * See the LICENSE file in the root directory of this source tree.
245
+ */const EF=Xe("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
246
+ * @license lucide-react v0.436.0 - ISC
247
+ *
248
+ * This source code is licensed under the ISC license.
249
+ * See the LICENSE file in the root directory of this source tree.
250
+ */const TF=Xe("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);/**
251
+ * @license lucide-react v0.436.0 - ISC
252
+ *
253
+ * This source code is licensed under the ISC license.
254
+ * See the LICENSE file in the root directory of this source tree.
255
+ */const wF=Xe("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
256
+ * @license lucide-react v0.436.0 - ISC
257
+ *
258
+ * This source code is licensed under the ISC license.
259
+ * See the LICENSE file in the root directory of this source tree.
260
+ */const _F=Xe("SendHorizontal",[["path",{d:"m3 3 3 9-3 9 19-9Z",key:"1aobqy"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/**
261
+ * @license lucide-react v0.436.0 - ISC
262
+ *
263
+ * This source code is licensed under the ISC license.
264
+ * See the LICENSE file in the root directory of this source tree.
265
+ */const SF=Xe("Shrink",[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]]);/**
266
+ * @license lucide-react v0.436.0 - ISC
267
+ *
268
+ * This source code is licensed under the ISC license.
269
+ * See the LICENSE file in the root directory of this source tree.
270
+ */const AF=Xe("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
271
+ * @license lucide-react v0.436.0 - ISC
272
+ *
273
+ * This source code is licensed under the ISC license.
274
+ * See the LICENSE file in the root directory of this source tree.
275
+ */const CF=Xe("SquareCheck",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
276
+ * @license lucide-react v0.436.0 - ISC
277
+ *
278
+ * This source code is licensed under the ISC license.
279
+ * See the LICENSE file in the root directory of this source tree.
280
+ */const kF=Xe("SquareX",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
281
+ * @license lucide-react v0.436.0 - ISC
282
+ *
283
+ * This source code is licensed under the ISC license.
284
+ * See the LICENSE file in the root directory of this source tree.
285
+ */const OF=Xe("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
286
+ * @license lucide-react v0.436.0 - ISC
287
+ *
288
+ * This source code is licensed under the ISC license.
289
+ * See the LICENSE file in the root directory of this source tree.
290
+ */const oh=Xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function xC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function EC(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xC(e))&&(r&&(r+=" "),r+=t);return r}const E1="-",RF=e=>{const t=DF(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const o=s.split(E1);return o[0]===""&&o.length!==1&&o.shift(),TC(o,t)||NF(s)},getConflictingClassGroupIds:(s,o)=>{const l=n[s]||[];return o&&r[s]?[...l,...r[s]]:l}}},TC=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?TC(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(E1);return(s=t.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},wC=/^\[(.+)\]$/,NF=e=>{if(wC.test(e)){const t=wC.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},DF=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return LF(Object.entries(e.classGroups),n).forEach(([a,s])=>{T1(s,r,a,t)}),r},T1=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:_C(t,i);a.classGroupId=n;return}if(typeof i=="function"){if(MF(i)){T1(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,s])=>{T1(s,_C(t,a),n,r)})})},_C=(e,t)=>{let n=e;return t.split(E1).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},MF=e=>e.isThemeGetter,LF=(e,t)=>t?e.map(([n,r])=>{const i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,o])=>[t+s,o])):a);return[n,i]}):e,IF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return i(a,s),s},set(a,s){n.has(a)?n.set(a,s):i(a,s)}}},SC="!",PF=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,s=o=>{const l=[];let u=0,c=0,f;for(let T=0;T<o.length;T++){let m=o[T];if(u===0){if(m===i&&(r||o.slice(T,T+a)===t)){l.push(o.slice(c,T)),c=T+a;continue}if(m==="/"){f=T;continue}}m==="["?u++:m==="]"&&u--}const d=l.length===0?o:o.substring(c),h=d.startsWith(SC),g=h?d.substring(1):d,b=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:b}};return n?o=>n({className:o,parseClassName:s}):s},BF=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},UF=e=>({cache:IF(e.cacheSize),parseClassName:PF(e),...RF(e)}),zF=/\s+/,jF=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],s=e.trim().split(zF);let o="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=n(u);let g=!!h,b=r(g?d.substring(0,h):d);if(!b){if(!g){o=u+(o.length>0?" "+o:o);continue}if(b=r(d),!b){o=u+(o.length>0?" "+o:o);continue}g=!1}const T=BF(c).join(":"),m=f?T+SC:T,y=m+b;if(a.includes(y))continue;a.push(y);const v=i(b,g);for(let w=0;w<v.length;++w){const _=v[w];a.push(m+_)}o=u+(o.length>0?" "+o:o)}return o};function FF(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=AC(t))&&(r&&(r+=" "),r+=n);return r}const AC=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=AC(e[r]))&&(n&&(n+=" "),n+=t);return n};function HF(e,...t){let n,r,i,a=s;function s(l){const u=t.reduce((c,f)=>f(c),e());return n=UF(u),r=n.cache.get,i=n.cache.set,a=o,o(l)}function o(l){const u=r(l);if(u)return u;const c=jF(l,n);return i(l,c),c}return function(){return a(FF.apply(null,arguments))}}const ct=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},CC=/^\[(?:([a-z-]+):)?(.+)\]$/i,VF=/^\d+\/\d+$/,qF=new Set(["px","full","screen"]),YF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GF=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$F=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,XF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,KF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ri=e=>Zo(e)||qF.has(e)||VF.test(e),Sa=e=>Jo(e,"length",rH),Zo=e=>!!e&&!Number.isNaN(Number(e)),w1=e=>Jo(e,"number",Zo),ec=e=>!!e&&Number.isInteger(Number(e)),WF=e=>e.endsWith("%")&&Zo(e.slice(0,-1)),_e=e=>CC.test(e),Aa=e=>YF.test(e),QF=new Set(["length","size","percentage"]),ZF=e=>Jo(e,QF,kC),JF=e=>Jo(e,"position",kC),eH=new Set(["image","url"]),tH=e=>Jo(e,eH,aH),nH=e=>Jo(e,"",iH),tc=()=>!0,Jo=(e,t,n)=>{const r=CC.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},rH=e=>GF.test(e)&&!$F.test(e),kC=()=>!1,iH=e=>XF.test(e),aH=e=>KF.test(e),sH=HF(()=>{const e=ct("colors"),t=ct("spacing"),n=ct("blur"),r=ct("brightness"),i=ct("borderColor"),a=ct("borderRadius"),s=ct("borderSpacing"),o=ct("borderWidth"),l=ct("contrast"),u=ct("grayscale"),c=ct("hueRotate"),f=ct("invert"),d=ct("gap"),h=ct("gradientColorStops"),g=ct("gradientColorStopPositions"),b=ct("inset"),T=ct("margin"),m=ct("opacity"),y=ct("padding"),v=ct("saturate"),w=ct("scale"),_=ct("sepia"),A=ct("skew"),D=ct("space"),L=ct("translate"),U=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",_e,t],F=()=>[_e,t],ne=()=>["",Ri,Sa],K=()=>["auto",Zo,_e],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",_e],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>[Zo,_e];return{cacheSize:500,separator:":",theme:{colors:[tc],spacing:[Ri,Sa],blur:["none","",Aa,_e],brightness:he(),borderColor:[e],borderRadius:["none","","full",Aa,_e],borderSpacing:F(),borderWidth:ne(),contrast:he(),grayscale:te(),hueRotate:he(),invert:te(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[WF,Sa],inset:q(),margin:q(),opacity:he(),padding:F(),saturate:he(),scale:he(),sepia:te(),skew:he(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",_e]}],container:["container"],columns:[{columns:[Aa]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),_e]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ec,_e]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_e]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",ec,_e]}],"grid-cols":[{"grid-cols":[tc]}],"col-start-end":[{col:["auto",{span:["full",ec,_e]},_e]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[tc]}],"row-start-end":[{row:["auto",{span:[ec,_e]},_e]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_e]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_e]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_e,t]}],"min-w":[{"min-w":[_e,t,"min","max","fit"]}],"max-w":[{"max-w":[_e,t,"none","full","min","max","fit","prose",{screen:[Aa]},Aa]}],h:[{h:[_e,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_e,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_e,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_e,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Aa,Sa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",w1]}],"font-family":[{font:[tc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",_e]}],"line-clamp":[{"line-clamp":["none",Zo,w1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ri,_e]}],"list-image":[{"list-image":["none",_e]}],"list-style-type":[{list:["none","disc","decimal",_e]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ri,Sa]}],"underline-offset":[{"underline-offset":["auto",Ri,_e]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),JF]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ZF]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tH]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:H()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[Ri,_e]}],"outline-w":[{outline:[Ri,Sa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Ri,Sa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Aa,nH]}],"shadow-color":[{shadow:[tc]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Aa,_e]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_e]}],duration:[{duration:he()}],ease:[{ease:["linear","in","out","in-out",_e]}],delay:[{delay:he()}],animate:[{animate:["none","spin","ping","pulse","bounce",_e]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ec,_e]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_e]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_e]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_e]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ri,Sa,w1]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function de(...e){return sH(EC(e))}function _1(){return _1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_1.apply(null,arguments)}function oH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var OC,RC;typeof document<"u"&&(OC=document),typeof window<"u"&&(RC=window);var NC=Un.createContext({document:OC,window:RC}),lH=()=>Un.useContext(NC),uH=["children","head","initialContent","src","mountTarget"],S1=E.forwardRef((e,t)=>{var{children:n,head:r,initialContent:i,src:a,mountTarget:s}=e,o=oH(e,uH),[l,u]=E.useState(!1),[c,f]=E.useState(),d=w=>{w&&f(w)};E.useImperativeHandle(t,()=>c,[c]);var h=i||"<!DOCTYPE html><html><head></head><body></body></html>",g=()=>c?c.contentDocument:null,b=()=>{var w=g();return s?w==null?void 0:w.querySelector(s):w==null?void 0:w.body},T=E.useRef(),m=E.useCallback(w=>{T.current=w;var _=()=>setInterval(()=>m(w),500);clearInterval(_()),l||u(!0)},[l]);E.useMemo(()=>{!a&&o.onLoad&&l&&o.onLoad(T.current)},[l]),E.useEffect(()=>{if(c&&!a){var w;(w=c.contentWindow)==null||w.addEventListener("DOMContentLoaded",m)}return()=>{if(c&&!a){var _;(_=c.contentWindow)==null||_.removeEventListener("DOMContentLoaded",m)}}},[c,m]);var y=()=>{var w,_=g(),A=(w=g())==null?void 0:w.head,D=b(),L=(_==null?void 0:_.defaultView)||(_==null?void 0:_.parentView),U=x.jsx(NC.Provider,{value:{document:_,window:L},children:n});return[A&&r&&Ls.createPortal(r,A),c&&D&&Ls.createPortal(U,D)]},v={};return a?(delete v.srcDoc,v.src=a,v.onLoad=o.onLoad):v.srcDoc=h,x.jsx("iframe",_1({title:o.title,ref:d},o,{onLoad:m},v,{children:l&&y()}))});S1.displayName="IFrame";const DC="opencx-widget-portal";function lh(){return null}function cH({children:e}){var n,r;const t=(r=(n=lH())==null?void 0:n.document)==null?void 0:r.getElementById(DC);return t?Ls.createPortal(e,t):(console.error("Portal container not found!"),null)}function fH(){return x.jsx("div",{id:DC,className:"absolute size-full top-0 left-0"})}lh.Portal=cH,lh.Container=fH;const MC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,LC=EC,dH=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return LC(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],f=a==null?void 0:a[u];if(c===null)return null;const d=MC(c)||MC(f);return i[u][d]}),o=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(g=>{let[b,T]=g;return Array.isArray(T)?T.includes({...a,...o}[b]):{...a,...o}[b]===T})?[...u,f,d]:u},[]);return LC(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},el={x:2,y:2},Ni=E.memo(E.forwardRef(({children:e,className:t,scale:n=1.02,off:r=!1},i)=>{const[a,s]=E.useState(!1),[o,l]=E.useState({x:0,y:0});if(r||/translate/.test(e.props.className||""))return e;const c=g=>{var L,U;const{clientX:b,clientY:T}=g,m=g.currentTarget.getBoundingClientRect(),y=b-(m.left+m.width/2),v=T-(m.top+m.height/2),w=Math.max(-1,Math.min(1,y/(m.width/2))),_=Math.max(-1,Math.min(1,v/(m.height/2))),A=w*el.x,D=_*el.y;l({x:A,y:D}),(U=(L=e.props).onMouseMove)==null||U.call(L,g)},f=()=>{var g,b;s(!0),(b=(g=e.props).onMouseEnter)==null||b.call(g)},d=()=>{var g,b;s(!1),l({x:0,y:0}),(b=(g=e.props).onMouseLeave)==null||b.call(g)},h={"--wobble-x":a?`${o.x}px`:"0px","--wobble-y":a?`${o.y}px`:"0px","--scale":1-(n-1)};return E.cloneElement(e,{ref:i,onMouseMove:c,onMouseEnter:f,onMouseLeave:d,style:{...h,...e.props.style},className:de("translate-x-[var(--wobble-x)]","translate-y-[var(--wobble-y)]","hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",t,e.props.className,"transition-all ease-out")})}));Ni.displayName="Wobble";const hH=dH(de("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","active:scale-95 hover:active:scale-95","rounded-xl","transition"),{variants:{variant:{default:"bg-primary text-primary-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background",secondary:"bg-secondary text-secondary-foreground",ghost:"hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"py-2 px-3.5 text-xs",lg:"min-h-12 px-4 rounded-[20px]",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2",selfless:"p-0"}},defaultVariants:{variant:"default",size:"default"}}),Yt=E.forwardRef(({className:e,variant:t="default",size:n,asChild:r=!1,...i},a)=>{const s=r?p5:"button";return x.jsx(Ni,{ref:a,children:x.jsx(s,{...Ve("ui_lib/btn"),"data-variant":t,className:de(hH({variant:t,size:n,className:e})),...i})})});Yt.displayName="Button";const IC=Qj,PC=Zj,BC=E.forwardRef(({className:e,...t},n)=>x.jsx(hC,{ref:n,className:de("fixed inset-0 z-50 bg-black/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));BC.displayName=hC.displayName;const A1=E.forwardRef(({className:e,children:t,withClose:n=!1,...r},i)=>x.jsxs(lh.Portal,{children:[x.jsx(BC,{}),x.jsxs(pC,{ref:i,className:de("fixed left-[50%] top-[50%] z-50 flex flex-col space-y-4 w-full max-w-[61.8%] translate-x-[-50%] translate-y-[-50%] border bg-background p-4 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-3xl",e),...r,children:[t,n&&x.jsx(Jj,{asChild:!0,className:"absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:x.jsxs(Yt,{size:"fit",className:"rounded-full",variant:"secondary",children:[x.jsx(oh,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));A1.displayName=pC.displayName;const UC=({className:e,...t})=>x.jsx("div",{className:de("flex flex-col gap-2 text-center pt-2",e),...t});UC.displayName="DialogHeader";const zC=({className:e,...t})=>x.jsx("div",{className:de("flex flex-col gap-2 text-center",e),...t});zC.displayName="DialogBody";const jC=({className:e,...t})=>x.jsx("div",{className:de("flex flex-col gap-2",e),...t});jC.displayName="DialogFooter";const C1=E.forwardRef(({className:e,...t},n)=>x.jsx(mC,{ref:n,className:de("text-lg font-semibold leading-none tracking-tight",e),...t}));C1.displayName=mC.displayName;const FC=E.forwardRef(({className:e,...t},n)=>x.jsx(gC,{ref:n,className:de("text-sm text-muted-foreground",e),...t}));FC.displayName=gC.displayName;function HC({attachment:e}){const{name:t,size:n,type:r,url:i}=e,a=r.startsWith("image/"),s=r.startsWith("video/"),o=r.startsWith("audio/");return o?x.jsx(Ni,{children:x.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:x.jsxs("audio",{controls:!0,className:"w-full",children:[x.jsx("source",{src:i,type:r}),"Your browser does not support the audio tag."]})})}):s?x.jsx(Ni,{children:x.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:x.jsxs("video",{controls:!0,children:[x.jsx("source",{src:i,type:r}),"Your browser does not support the video tag."]})})}):!a&&!s&&!o?x.jsx(Ni,{children:x.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:x.jsxs("div",{className:"flex items-end gap-2 p-2",children:[x.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:de("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:t}),x.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(n/1024).toFixed(2)," KB"]})]})})}):x.jsxs(IC,{children:[x.jsx(Ni,{children:x.jsx(PC,{children:x.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:a&&x.jsx("img",{src:i,className:"object-cover size-16",alt:t})})})}),x.jsxs(A1,{"aria-describedby":void 0,className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:[x.jsx(C1,{className:"sr-only",children:"Image preview"}),a&&x.jsx("div",{className:"size-fit shrink-0 rounded-2xl overflow-hidden max-h-full",children:x.jsx("img",{src:i,className:"object-cover size-auto",alt:t})})]})]})}const pH=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mH=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gH={};function VC(e,t){return(gH.jsx?mH:pH).test(e)}const bH=/[ \t\n\f\r]/g;function yH(e){return typeof e=="object"?e.type==="text"?qC(e.value):!1:qC(e)}function qC(e){return e.replace(bH,"")===""}var k1={},YC=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vH=/\n/g,xH=/^\s*/,EH=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,TH=/^:\s*/,wH=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_H=/^[;\s]*/,SH=/^\s+|\s+$/g,AH=`
291
+ `,GC="/",$C="*",ys="",CH="comment",kH="declaration",OH=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var b=g.match(vH);b&&(n+=b.length);var T=g.lastIndexOf(AH);r=~T?g.length-T:r+g.length}function a(){var g={line:n,column:r};return function(b){return b.position=new s(g),u(),b}}function s(g){this.start=g,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(g){var b=new Error(t.source+":"+n+":"+r+": "+g);if(b.reason=g,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(g){var b=g.exec(e);if(b){var T=b[0];return i(T),e=e.slice(T.length),b}}function u(){l(xH)}function c(g){var b;for(g=g||[];b=f();)b!==!1&&g.push(b);return g}function f(){var g=a();if(!(GC!=e.charAt(0)||$C!=e.charAt(1))){for(var b=2;ys!=e.charAt(b)&&($C!=e.charAt(b)||GC!=e.charAt(b+1));)++b;if(b+=2,ys===e.charAt(b-1))return o("End of comment missing");var T=e.slice(2,b-2);return r+=2,i(T),e=e.slice(b),r+=2,g({type:CH,comment:T})}}function d(){var g=a(),b=l(EH);if(b){if(f(),!l(TH))return o("property missing ':'");var T=l(wH),m=g({type:kH,property:XC(b[0].replace(YC,ys)),value:T?XC(T[0].replace(YC,ys)):ys});return l(_H),m}}function h(){var g=[];c(g);for(var b;b=d();)b!==!1&&(g.push(b),c(g));return g}return u(),h()};function XC(e){return e?e.replace(SH,ys):ys}var RH=Fi&&Fi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(k1,"__esModule",{value:!0}),k1.default=DH;var NH=RH(OH);function DH(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,NH.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}var uh={};Object.defineProperty(uh,"__esModule",{value:!0}),uh.camelCase=void 0;var MH=/^--[a-zA-Z0-9_-]+$/,LH=/-([a-z])/g,IH=/^[^-]+$/,PH=/^-(webkit|moz|ms|o|khtml)-/,BH=/^-(ms)-/,UH=function(e){return!e||IH.test(e)||MH.test(e)},zH=function(e,t){return t.toUpperCase()},KC=function(e,t){return"".concat(t,"-")},jH=function(e,t){return t===void 0&&(t={}),UH(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(BH,KC):e=e.replace(PH,KC),e.replace(LH,zH))};uh.camelCase=jH;var FH=Fi&&Fi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},HH=FH(k1),VH=uh;function O1(e,t){var n={};return!e||typeof e!="string"||(0,HH.default)(e,function(r,i){r&&i&&(n[(0,VH.camelCase)(r,t)]=i)}),n}O1.default=O1;var qH=O1;const YH=vl(qH);function nc(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?WC(e.position):"start"in e||"end"in e?WC(e):"line"in e||"column"in e?R1(e):""}function R1(e){return QC(e&&e.line)+":"+QC(e&&e.column)}function WC(e){return R1(e&&e.start)+"-"+R1(e&&e.end)}function QC(e){return e&&typeof e=="number"?e:1}class gn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!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={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=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=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=nc(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=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}gn.prototype.file="",gn.prototype.name="",gn.prototype.reason="",gn.prototype.message="",gn.prototype.stack="",gn.prototype.column=void 0,gn.prototype.line=void 0,gn.prototype.ancestors=void 0,gn.prototype.cause=void 0,gn.prototype.fatal=void 0,gn.prototype.place=void 0,gn.prototype.ruleId=void 0,gn.prototype.source=void 0;const N1={}.hasOwnProperty,GH=new Map,$H=/[A-Z]/g,XH=new Set(["table","tbody","thead","tfoot","tr"]),KH=new Set(["td","th"]),ZC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function WH(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=iV(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=rV(n,t.jsx,t.jsxs)}const i={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"?Fo:Ud,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=JC(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function JC(e,t,n){if(t.type==="element")return QH(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ZH(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return eV(e,t,n);if(t.type==="mdxjsEsm")return JH(e,t);if(t.type==="root")return tV(e,t,n);if(t.type==="text")return nV(e,t)}function QH(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Fo,e.schema=i),e.ancestors.push(t);const a=t3(e,t.tagName,!1),s=aV(e,t);let o=M1(e,t);return XH.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!yH(l):!0})),e3(e,s,a,t),D1(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function ZH(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)}rc(e,t.position)}function JH(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rc(e,t.position)}function eV(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Fo,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:t3(e,t.name,!0),s=sV(e,t),o=M1(e,t);return e3(e,s,a,t),D1(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function tV(e,t,n){const r={};return D1(r,M1(e,t)),e.create(t,e.Fragment,r,n)}function nV(e,t){return t.value}function e3(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function D1(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function rV(e,t,n){return r;function r(i,a,s,o){const u=Array.isArray(s.children)?n:t;return o?u(a,s,o):u(a,s)}}function iV(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=Zr(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function aV(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&N1.call(t.properties,i)){const a=oV(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&KH.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function sV(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 s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else rc(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else rc(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function M1(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:GH;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const o=JC(e,a,s);o!==void 0&&n.push(o)}return n}function oV(e,t,n){const r=zg(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?z_(n):H_(n)),r.property==="style"){let i=typeof n=="object"?n:lV(e,String(n));return e.stylePropertyNameCase==="css"&&(i=uV(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?k8[r.property]||r.property:r.attribute,n]}}function lV(e,t){try{return YH(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new gn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=ZC+"#cannot-parse-style-attribute",i}}function t3(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=VC(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=VC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return N1.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);rc(e)}function rc(e,t){const n=new gn("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=ZC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function uV(e){const t={};let n;for(n in e)N1.call(e,n)&&(t[cV(n)]=e[n]);return t}function cV(e){let t=e.replace($H,fV);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function fV(e){return"-"+e.toLowerCase()}const L1={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"]},dV={tokenize:hV};function hV(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ze(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return fe(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const pV={tokenize:mV},n3={tokenize:gV};function mV(e){const t=this,n=[];let r=0,i,a,s;return o;function o(v){if(r<n.length){const w=n[r];return t.containerState=w[1],e.attempt(w[0].continuation,l,u)(v)}return u(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const w=t.events.length;let _=w,A;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){A=t.events[_][1].end;break}m(r);let D=w;for(;D<t.events.length;)t.events[D][1].end={...A},D++;return Jn(t.events,_+1,0,t.events.slice(w)),t.events.length=D,u(v)}return o(v)}function u(v){if(r===n.length){if(!i)return d(v);if(i.currentConstruct&&i.currentConstruct.concrete)return g(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(n3,c,f)(v)}function c(v){return i&&y(),m(r),d(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(v)}function d(v){return t.containerState={},e.attempt(n3,h,g)(v)}function h(v){return r++,n.push([t.currentConstruct,t.containerState]),d(v)}function g(v){if(v===null){i&&y(),m(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),b(v)}function b(v){if(v===null){T(e.exit("chunkFlow"),!0),m(0),e.consume(v);return}return fe(v)?(e.consume(v),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(v),b)}function T(v,w){const _=t.sliceStream(v);if(w&&_.push(null),v.previous=a,a&&(a.next=v),a=v,i.defineSkip(v.start),i.write(_),t.parser.lazy[v.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<s&&(!i.events[A][1].end||i.events[A][1].end.offset>s))return;const D=t.events.length;let L=D,U,R;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(U){R=t.events[L][1].end;break}U=!0}for(m(r),A=D;A<t.events.length;)t.events[A][1].end={...R},A++;Jn(t.events,L+1,0,t.events.slice(D)),t.events.length=A}}function m(v){let w=n.length;for(;w-- >v;){const _=n[w];t.containerState=_[1],_[0].exit.call(t,e)}n.length=v}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gV(e,t,n){return ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const bV={tokenize:yV};function yV(e){const t=this,n=e.attempt(Qu,r,e.attempt(this.parser.constructs.flowInitial,i,ze(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Az,i)),"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 i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const vV={resolveAll:i3()},xV=r3("string"),EV=r3("text");function r3(e){return{resolveAll:i3(e==="text"?TV:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return u(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),a(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function i3(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function TV(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],i=t.sliceStream(r);let a=i.length,s=-1,o=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const wV=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Nz},disable:{null:[]},document:{42:Ln,43:Ln,45:Ln,48:Ln,49:Ln,50:Ln,51:Ln,52:Ln,53:Ln,54:Ln,55:Ln,56:Ln,57:Ln,62:zA},flow:{35:Bz,42:rh,45:[KA,rh],60:Fz,61:KA,95:rh,96:VA,126:VA},flowInitial:{[-2]:g1,[-1]:g1,32:g1},insideSpan:{null:[m1,vV]},string:{38:FA,92:jA},text:{[-5]:y1,[-4]:y1,[-3]:y1,33:aj,38:FA,42:m1,60:[oz,Xz],91:oj,92:[Iz,jA],93:b1,95:m1,96:xz}},Symbol.toStringTag,{value:"Module"}));function _V(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 i={},a=[];let s=[],o=[];const l={attempt:D(_),check:D(A),consume:y,enter:v,exit:w,interrupt:D(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function f(q){return s=vr(s,q),T(),s[s.length-1]!==null?[]:(L(t,0),u.events=nh(a,u.events,u),u.events)}function d(q,F){return AV(h(q),F)}function h(q){return SV(s,q)}function g(){const{_bufferIndex:q,_index:F,line:ne,column:K,offset:W}=r;return{_bufferIndex:q,_index:F,line:ne,column:K,offset:W}}function b(q){i[q.line]=q.column,R()}function T(){let q;for(;r._index<s.length;){const F=s[r._index];if(typeof F=="string")for(q=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===q&&r._bufferIndex<F.length;)m(F.charCodeAt(r._bufferIndex));else m(F)}}function m(q){c=c(q)}function y(q){fe(q)?(r.line++,r.column=1,r.offset+=q===-3?2:1,R()):q!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=q}function v(q,F){const ne=F||{};return ne.type=q,ne.start=g(),u.events.push(["enter",ne,u]),o.push(ne),ne}function w(q){const F=o.pop();return F.end=g(),u.events.push(["exit",F,u]),F}function _(q,F){L(q,F.from)}function A(q,F){F.restore()}function D(q,F){return ne;function ne(K,W,H){let V,j,te,O;return Array.isArray(K)?je(K):"tokenize"in K?je([K]):he(K);function he(Pe){return Gt;function Gt(Qe){const Ut=Qe!==null&&Pe[Qe],lt=Qe!==null&&Pe.null,Dt=[...Array.isArray(Ut)?Ut:Ut?[Ut]:[],...Array.isArray(lt)?lt:lt?[lt]:[]];return je(Dt)(Qe)}}function je(Pe){return V=Pe,j=0,Pe.length===0?H:M(Pe[j])}function M(Pe){return Gt;function Gt(Qe){return O=U(),te=Pe,Pe.partial||(u.currentConstruct=Pe),Pe.name&&u.parser.constructs.disable.null.includes(Pe.name)?pe():Pe.tokenize.call(F?Object.assign(Object.create(u),F):u,l,Le,pe)(Qe)}}function Le(Pe){return q(te,O),W}function pe(Pe){return O.restore(),++j<V.length?M(V[j]):H}}}function L(q,F){q.resolveAll&&!a.includes(q)&&a.push(q),q.resolve&&Jn(u.events,F,u.events.length-F,q.resolve(u.events.slice(F),u)),q.resolveTo&&(u.events=q.resolveTo(u.events,u))}function U(){const q=g(),F=u.previous,ne=u.currentConstruct,K=u.events.length,W=Array.from(o);return{from:K,restore:H};function H(){r=q,u.previous=F,u.currentConstruct=ne,u.events.length=K,o=W,R()}}function R(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function SV(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function AV(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
292
+ `;break}case-3:{s=`\r
293
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function CV(e){const r={constructs:OA([wV,...(e||{}).extensions||[]]),content:i(dV),defined:[],document:i(pV),flow:i(bV),lazy:{},string:i(xV),text:i(EV)};return r;function i(a){return s;function s(o){return _V(r,a,o)}}}function kV(e){for(;!qA(e););return e}const a3=/[\0\t\n\r]/g;function OV(){let e=1,t="",n=!0,r;return i;function i(a,s,o){const l=[];let u,c,f,d,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(a3.lastIndex=f,u=a3.exec(a),d=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(d),!u){t=a.slice(f);break}if(h===10&&f===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const s3={}.hasOwnProperty;function RV(e,t,n){return typeof t!="string"&&(n=t,t=void 0),NV(n)(kV(CV(n).document().write(OV()(e,t,!0))))}function NV(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Be),autolinkProtocol:U,autolinkEmail:U,atxHeading:a($e),blockQuote:a(lt),characterEscape:U,characterReference:U,codeFenced:a(Dt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Dt,s),codeText:a($t,s),codeTextData:U,data:U,codeFlowValue:U,definition:a(ye),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Ie),hardBreakEscape:a(Re),hardBreakTrailing:a(Re),htmlFlow:a(et,s),htmlFlowData:U,htmlText:a(et,s),htmlTextData:U,image:a(At),label:s,link:a(Be),listItem:a(_n),listItemValue:d,listOrdered:a(dt,f),listUnordered:a(dt),paragraph:a(Ba),reference:M,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a($e),strong:a(Ua),thematicBreak:a(se)},exit:{atxHeading:l(),atxHeadingSequence:_,autolink:l(),autolinkEmail:Ut,autolinkProtocol:Qe,blockQuote:l(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:Pe,characterReference:Gt,codeFenced:l(T),codeFencedFence:b,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:R,codeIndented:l(m),codeText:l(W),codeTextData:R,data:R,definition:l(),definitionDestinationString:w,definitionLabelString:y,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(F),hardBreakTrailing:l(F),htmlFlow:l(ne),htmlFlowData:R,htmlText:l(K),htmlTextData:R,image:l(V),label:te,labelText:j,lineEnding:q,link:l(H),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Le,resourceDestinationString:O,resourceTitleString:he,resource:je,setextHeading:l(L),setextHeadingLineSequence:D,setextHeadingText:A,strong:l(),thematicBreak:l()}};o3(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(B){let G={type:"root",children:[]};const oe={stack:[G],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:n},be=[];let ve=-1;for(;++ve<B.length;)if(B[ve][1].type==="listOrdered"||B[ve][1].type==="listUnordered")if(B[ve][0]==="enter")be.push(ve);else{const tn=be.pop();ve=i(B,tn,ve)}for(ve=-1;++ve<B.length;){const tn=t[B[ve][0]];s3.call(tn,B[ve][1].type)&&tn[B[ve][1].type].call(Object.assign({sliceSerialize:B[ve][2].sliceSerialize},oe),B[ve][1])}if(oe.tokenStack.length>0){const tn=oe.tokenStack[oe.tokenStack.length-1];(tn[1]||l3).call(oe,void 0,tn[0])}for(G.position={start:Ca(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:Ca(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)G=t.transforms[ve](G)||G;return G}function i(B,G,oe){let be=G-1,ve=-1,tn=!1,Pn,Sn,ir,Bn;for(;++be<=oe;){const zt=B[be];switch(zt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{zt[0]==="enter"?ve++:ve--,Bn=void 0;break}case"lineEndingBlank":{zt[0]==="enter"&&(Pn&&!Bn&&!ve&&!ir&&(ir=be),Bn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bn=void 0}if(!ve&&zt[0]==="enter"&&zt[1].type==="listItemPrefix"||ve===-1&&zt[0]==="exit"&&(zt[1].type==="listUnordered"||zt[1].type==="listOrdered")){if(Pn){let ar=be;for(Sn=void 0;ar--;){const An=B[ar];if(An[1].type==="lineEnding"||An[1].type==="lineEndingBlank"){if(An[0]==="exit")continue;Sn&&(B[Sn][1].type="lineEndingBlank",tn=!0),An[1].type="lineEnding",Sn=ar}else if(!(An[1].type==="linePrefix"||An[1].type==="blockQuotePrefix"||An[1].type==="blockQuotePrefixWhitespace"||An[1].type==="blockQuoteMarker"||An[1].type==="listItemIndent"))break}ir&&(!Sn||ir<Sn)&&(Pn._spread=!0),Pn.end=Object.assign({},Sn?B[Sn][1].start:zt[1].end),B.splice(Sn||be,0,["exit",Pn,zt[2]]),be++,oe++}if(zt[1].type==="listItemPrefix"){const ar={type:"listItem",_spread:!1,start:Object.assign({},zt[1].start),end:void 0};Pn=ar,B.splice(be,0,["enter",ar,zt[2]]),be++,oe++,ir=void 0,Bn=!0}}}return B[G][1]._spread=tn,oe}function a(B,G){return oe;function oe(be){o.call(this,B(be),be),G&&G.call(this,be)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(B,G,oe){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([G,oe||void 0]),B.position={start:Ca(G.start),end:void 0}}function l(B){return G;function G(oe){B&&B.call(this,oe),u.call(this,oe)}}function u(B,G){const oe=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==B.type&&(G?G.call(this,B,be[0]):(be[1]||l3).call(this,B,be[0]));else throw new Error("Cannot close `"+B.type+"` ("+nc({start:B.start,end:B.end})+"): it’s not open");oe.position.end=Ca(B.end)}function c(){return u1(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(B){if(this.data.expectingFirstListItemValue){const G=this.stack[this.stack.length-2];G.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function h(){const B=this.resume(),G=this.stack[this.stack.length-1];G.lang=B}function g(){const B=this.resume(),G=this.stack[this.stack.length-1];G.meta=B}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const B=this.resume(),G=this.stack[this.stack.length-1];G.value=B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const B=this.resume(),G=this.stack[this.stack.length-1];G.value=B.replace(/(\r?\n|\r)$/g,"")}function y(B){const G=this.resume(),oe=this.stack[this.stack.length-1];oe.label=G,oe.identifier=Dr(this.sliceSerialize(B)).toLowerCase()}function v(){const B=this.resume(),G=this.stack[this.stack.length-1];G.title=B}function w(){const B=this.resume(),G=this.stack[this.stack.length-1];G.url=B}function _(B){const G=this.stack[this.stack.length-1];if(!G.depth){const oe=this.sliceSerialize(B).length;G.depth=oe}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function D(B){const G=this.stack[this.stack.length-1];G.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function U(B){const oe=this.stack[this.stack.length-1].children;let be=oe[oe.length-1];(!be||be.type!=="text")&&(be=re(),be.position={start:Ca(B.start),end:void 0},oe.push(be)),this.stack.push(be)}function R(B){const G=this.stack.pop();G.value+=this.sliceSerialize(B),G.position.end=Ca(B.end)}function q(B){const G=this.stack[this.stack.length-1];if(this.data.atHardBreak){const oe=G.children[G.children.length-1];oe.position.end=Ca(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(G.type)&&(U.call(this,B),R.call(this,B))}function F(){this.data.atHardBreak=!0}function ne(){const B=this.resume(),G=this.stack[this.stack.length-1];G.value=B}function K(){const B=this.resume(),G=this.stack[this.stack.length-1];G.value=B}function W(){const B=this.resume(),G=this.stack[this.stack.length-1];G.value=B}function H(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=G,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function V(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=G,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function j(B){const G=this.sliceSerialize(B),oe=this.stack[this.stack.length-2];oe.label=NU(G),oe.identifier=Dr(G).toLowerCase()}function te(){const B=this.stack[this.stack.length-1],G=this.resume(),oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,oe.type==="link"){const be=B.children;oe.children=be}else oe.alt=G}function O(){const B=this.resume(),G=this.stack[this.stack.length-1];G.url=B}function he(){const B=this.resume(),G=this.stack[this.stack.length-1];G.title=B}function je(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function Le(B){const G=this.resume(),oe=this.stack[this.stack.length-1];oe.label=G,oe.identifier=Dr(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function pe(B){this.data.characterReferenceType=B.type}function Pe(B){const G=this.sliceSerialize(B),oe=this.data.characterReferenceType;let be;oe?(be=SA(G,oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=f1(G);const ve=this.stack[this.stack.length-1];ve.value+=be}function Gt(B){const G=this.stack.pop();G.position.end=Ca(B.end)}function Qe(B){R.call(this,B);const G=this.stack[this.stack.length-1];G.url=this.sliceSerialize(B)}function Ut(B){R.call(this,B);const G=this.stack[this.stack.length-1];G.url="mailto:"+this.sliceSerialize(B)}function lt(){return{type:"blockquote",children:[]}}function Dt(){return{type:"code",lang:null,meta:null,value:""}}function $t(){return{type:"inlineCode",value:""}}function ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ie(){return{type:"emphasis",children:[]}}function $e(){return{type:"heading",depth:0,children:[]}}function Re(){return{type:"break"}}function et(){return{type:"html",value:""}}function At(){return{type:"image",title:null,url:"",alt:null}}function Be(){return{type:"link",title:null,url:"",children:[]}}function dt(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function _n(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function Ba(){return{type:"paragraph",children:[]}}function Ua(){return{type:"strong",children:[]}}function re(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}function Ca(e){return{line:e.line,column:e.column,offset:e.offset}}function o3(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?o3(e,r):DV(e,r)}}function DV(e,t){let n;for(n in t)if(s3.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 l3(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nc({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nc({start:t.start,end:t.end})+") is still open")}function MV(e){const t=this;t.parser=n;function n(r){return RV(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function LV(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 IV(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
294
+ `}]}function PV(e,t){const n=t.value?t.value+`
295
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function BV(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function UV(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zV(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Wo(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function jV(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function FV(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function u3(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function HV(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return u3(e,t);const i={src:Wo(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function VV(e,t){const n={src:Wo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function qV(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function YV(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return u3(e,t);const i={href:Wo(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function GV(e,t){const n={href:Wo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $V(e,t,n){const r=e.all(t),i=n?XV(n):c3(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
296
+ `}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
297
+ `});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function XV(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=c3(n[r])}return t}function c3(e){const t=e.spread;return t??e.children.length>1}function KV(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function WV(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function QV(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function ZV(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function JV(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Zr(t.children[1]),l=Kd(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function eq(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const f=t.children[l],d={},h=s?s[l]:void 0;h&&(d.align=h);let g={type:"element",tagName:a,properties:d,children:[]};f&&(g.children=e.all(f),e.patch(f,g),g=e.applyData(f,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function tq(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const f3=9,d3=32;function nq(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(h3(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(h3(t.slice(i),i>0,!1)),a.join("")}function h3(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===f3||a===d3;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===f3||a===d3;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function rq(e,t){const n={type:"text",value:nq(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function iq(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const aq={blockquote:LV,break:IV,code:PV,delete:BV,emphasis:UV,footnoteReference:zV,heading:jV,html:FV,imageReference:HV,image:VV,inlineCode:qV,linkReference:YV,link:GV,listItem:$V,list:KV,paragraph:WV,root:QV,strong:ZV,table:JV,tableCell:tq,tableRow:eq,text:rq,thematicBreak:iq,toml:ch,yaml:ch,definition:ch,footnoteDefinition:ch};function ch(){}function sq(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function oq(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function lq(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||sq,r=e.options.footnoteBackLabel||oq,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),d=Wo(f.toLowerCase());let h=0;const g=[],b=e.footnoteCounts.get(f);for(;b!==void 0&&++h<=b;){g.length>0&&g.push({type:"text",value:" "});let y=typeof n=="string"?n:n(l,h);typeof y=="string"&&(y={type:"text",value:y}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const T=c[c.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const y=T.children[T.children.length-1];y&&y.type==="text"?y.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Uo(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
298
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
299
+ `}]}}const I1={}.hasOwnProperty,uq={};function cq(e,t){const n=t||uq,r=new Map,i=new Map,a=new Map,s={...aq,...n.handlers},o={all:u,applyData:dq,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:n,patch:fq,wrap:pq};return Zd(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),o;function l(c,f){const d=c.type,h=o.handlers[d];if(I1.call(o.handlers,d)&&h)return h(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(d)){if("children"in c){const{children:b,...T}=c,m=Uo(T);return m.children=o.all(c),m}return Uo(c)}return(o.options.unknownHandler||hq)(o,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let h=-1;for(;++h<d.length;){const g=o.one(d[h],c);if(g){if(h&&d[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=p3(g.value)),!Array.isArray(g)&&g.type==="element")){const b=g.children[0];b&&b.type==="text"&&(b.value=p3(b.value))}Array.isArray(g)?f.push(...g):f.push(g)}}}return f}}function fq(e,t){e.position&&(t.position=F7(e))}function dq(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,Uo(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function hq(e,t){const n=t.data||{},r="value"in t&&!(I1.call(n,"hProperties")||I1.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pq(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
300
+ `});++r<e.length;)r&&n.push({type:"text",value:`
301
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
302
+ `}),n}function p3(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function m3(e,t){const n=cq(e,t),r=n.one(e,void 0),i=lq(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
303
+ `},i),a}function mq(e,t){return e&&"run"in e?async function(n,r){const i=m3(n,{file:r,...t});await e.run(i,r)}:function(n,r){return m3(n,{file:r,...e||t})}}function g3(e){if(e)throw e}var fh=Object.prototype.hasOwnProperty,b3=Object.prototype.toString,y3=Object.defineProperty,v3=Object.getOwnPropertyDescriptor,x3=function(t){return typeof Array.isArray=="function"?Array.isArray(t):b3.call(t)==="[object Array]"},E3=function(t){if(!t||b3.call(t)!=="[object Object]")return!1;var n=fh.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&fh.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||fh.call(t,i)},T3=function(t,n){y3&&n.name==="__proto__"?y3(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},w3=function(t,n){if(n==="__proto__")if(fh.call(t,n)){if(v3)return v3(t,n).value}else return;return t[n]},gq=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,u=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=w3(o,n),i=w3(t,n),o!==i&&(c&&i&&(E3(i)||(a=x3(i)))?(a?(a=!1,s=r&&x3(r)?r:[]):s=r&&E3(r)?r:{},T3(o,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&T3(o,{name:n,newValue:i}));return o};const P1=vl(gq);function B1(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 bq(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(l,...u){const c=e[++a];let f=-1;if(l){s(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?yq(c,o)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function yq(e,t){let n;return r;function r(...s){const o=e.length>s.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const ti={basename:vq,dirname:xq,extname:Eq,join:Tq,sep:"/"};function vq(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ic(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function xq(e){if(ic(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 Eq(e){ic(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Tq(...e){let t=-1,n;for(;++t<e.length;)ic(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":wq(n)}function wq(e){ic(e);const t=e.codePointAt(0)===47;let n=_q(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _q(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-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(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function ic(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sq={cwd:Aq};function Aq(){return"/"}function U1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Cq(e){if(typeof e=="string")e=new URL(e);else if(!U1(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 kq(e)}function kq(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 i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const z1=["history","path","basename","stem","extname","dirname"];class _3{constructor(t){let n;t?U1(t)?n={path:t}:typeof t=="string"||Oq(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Sq.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<z1.length;){const a=z1[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)z1.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ti.basename(this.path):void 0}set basename(t){F1(t,"basename"),j1(t,"basename"),this.path=ti.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ti.dirname(this.path):void 0}set dirname(t){S3(this.basename,"dirname"),this.path=ti.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ti.extname(this.path):void 0}set extname(t){if(j1(t,"extname"),S3(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=ti.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){U1(t)&&(t=Cq(t)),F1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ti.basename(this.path,this.extname):void 0}set stem(t){F1(t,"stem"),j1(t,"stem"),this.path=ti.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new gn(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function j1(e,t){if(e&&e.includes(ti.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ti.sep+"`")}function F1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function S3(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Oq(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Rq=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},Nq={}.hasOwnProperty;class H1 extends Rq{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=bq()}copy(){const t=new H1;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(P1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Y1("data",this.frozen),this.namespace[t]=n,this):Nq.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Y1("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 i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=dh(t),r=this.parser||this.Parser;return V1("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),V1("process",this.parser||this.Parser),q1("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const o=dh(t),l=r.parse(o);r.run(l,o,function(c,f,d){if(c||!f||!d)return u(c);const h=f,g=r.stringify(h,d);Lq(g)?d.value=g:d.result=g,u(c,d)});function u(c,f){c||!f?s(c):a?a(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),V1("processSync",this.parser||this.Parser),q1("processSync",this.compiler||this.Compiler),this.process(t,i),C3("processSync","process",n),r;function i(a,s){n=!0,g3(a),r=s}}run(t,n,r){A3(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const l=dh(n);i.run(t,l,u);function u(c,f,d){const h=f||t;c?o(c):s?s(h):r(void 0,h,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),C3("runSync","run",r),i;function a(s,o){g3(s),i=o,r=!0}}stringify(t,n){this.freeze();const r=dh(n),i=this.compiler||this.Compiler;return q1("stringify",i),A3(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Y1("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))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");o(u.plugins),u.settings&&(i.settings=P1(!0,i.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];a(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,d=-1;for(;++f<r.length;)if(r[f][0]===u){d=f;break}if(d===-1)r.push([u,...c]);else if(c.length>0){let[h,...g]=c;const b=r[d][1];B1(b)&&B1(h)&&(h=P1(!0,b,h)),r[d]=[u,h,...g]}}}}const Dq=new H1().freeze();function V1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function q1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Y1(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 A3(e){if(!B1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function C3(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function dh(e){return Mq(e)?e:new _3(e)}function Mq(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Lq(e){return typeof e=="string"||Iq(e)}function Iq(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Pq="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",k3=[],O3={allowDangerousHtml:!0},Bq=/^(https?|ircs?|mailto|xmpp)$/i,Uq=[{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:"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 zq(e){const t=jq(e),n=Fq(e);return Hq(t.runSync(t.parse(n),n),e)}function jq(e){const t=e.rehypePlugins||k3,n=e.remarkPlugins||k3,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...O3}:O3;return Dq().use(MV).use(n).use(mq,r).use(t)}function Fq(e){const t=e.children||"",n=new _3;return typeof t=="string"&&(n.value=t),n}function Hq(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||Vq;for(const c of Uq)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Pq+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Zd(e,u),WH(e,{Fragment:x.Fragment,components:i,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function u(c,f,d){if(c.type==="raw"&&d&&typeof f=="number")return s?d.children.splice(f,1):d.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in L1)if(Object.hasOwn(L1,h)&&Object.hasOwn(c.properties,h)){const g=c.properties[h],b=L1[h];(b===null||b.includes(c.tagName))&&(c.properties[h]=l(String(g||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(c,f,d)),h&&d&&typeof f=="number")return o&&c.children?d.children.splice(f,1,...c.children):d.children.splice(f,1),f}}}function Vq(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Bq.test(e.slice(0,t))?e:""}const R3=Un.memo(zq,(e,t)=>e.children===t.children&&e.className===t.className);function hh({data:e,id:t,type:n,attachments:r,isFirstInGroup:i,isLastInGroup:a,isAloneInGroup:s,dataComponentNames:o,classNames:l}){const{anchorTarget:u}=qt(),{message:c,variant:f="default"}=e;return f==="error"?x.jsx("div",{children:x.jsx("div",{className:"flex flex-row flex-wrap items-center justify-start",children:x.jsx("div",{className:"leading-snug text-sm text-destructive",children:c})})}):x.jsxs("div",{...Ve((o==null?void 0:o.messageContainer)??"chat/agent_msg/root"),className:de("w-5/6 flex flex-col items-start gap-1",l==null?void 0:l.messageContainer),children:[r&&r.length>0&&x.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:r==null?void 0:r.map(d=>x.jsx(HC,{attachment:d},d.id))}),c.length>0&&x.jsx("div",{...Ve((o==null?void 0:o.message)??"chat/agent_msg/msg"),"data-first":i,"data-last":a,"data-alone":s,className:de("transition-all","w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground","leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline","break-words [word-break:break-word]",i&&!s&&"rounded-bl-md",a&&!s&&"rounded-tl-md",!i&&!a&&!s&&"rounded-l-md",l==null?void 0:l.message),children:x.jsx(R3,{"data-type":n,"data-id":t,remarkPlugins:[QA],rehypePlugins:[nA],components:{a:({children:d,...h})=>x.jsx("a",{target:u??"_top",...h,children:d})},children:c})})]})}function qq(e){return x.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:x.jsx("pre",{dir:"auto",className:"text-xs leading-tight whitespace-pre-wrap break-word",children:JSON.stringify(e,null,1)})})}const G1=E.createContext({});function $1(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const ph=E.createContext(null),X1=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Yq extends E.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Gq({children:e,isPresent:t}){const n=E.useId(),r=E.useRef(null),i=E.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=E.useContext(X1);return E.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:u}=i.current;if(t||!r.current||!s||!o)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return a&&(c.nonce=a),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
304
+ [data-motion-pop-id="${n}"] {
305
+ position: absolute !important;
306
+ width: ${s}px !important;
307
+ height: ${o}px !important;
308
+ top: ${l}px !important;
309
+ left: ${u}px !important;
310
+ }
311
+ `),()=>{document.head.removeChild(c)}},[t]),x.jsx(Yq,{isPresent:t,childRef:r,sizeRef:i,children:E.cloneElement(e,{ref:r})})}const $q=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:s})=>{const o=$1(Xq),l=E.useId(),u=E.useCallback(f=>{o.set(f,!0);for(const d of o.values())if(!d)return;r&&r()},[o,r]),c=E.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(o.set(f,!1),()=>o.delete(f))}),a?[Math.random(),u]:[n,u]);return E.useMemo(()=>{o.forEach((f,d)=>o.set(d,!1))},[n]),E.useEffect(()=>{!n&&!o.size&&r&&r()},[n]),s==="popLayout"&&(e=x.jsx(Gq,{isPresent:n,children:e})),x.jsx(ph.Provider,{value:c,children:e})};function Xq(){return new Map}function N3(e=!0){const t=E.useContext(ph);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=E.useId();E.useEffect(()=>{e&&i(a)},[e]);const s=E.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const mh=e=>e.key||"";function D3(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const K1=typeof window<"u",M3=K1?E.useLayoutEffect:E.useEffect,In=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:s=!1})=>{const[o,l]=N3(s),u=E.useMemo(()=>D3(e),[e]),c=s&&!o?[]:u.map(mh),f=E.useRef(!0),d=E.useRef(u),h=$1(()=>new Map),[g,b]=E.useState(u),[T,m]=E.useState(u);M3(()=>{f.current=!1,d.current=u;for(let w=0;w<T.length;w++){const _=mh(T[w]);c.includes(_)?h.delete(_):h.get(_)!==!0&&h.set(_,!1)}},[T,c.length,c.join("-")]);const y=[];if(u!==g){let w=[...u];for(let _=0;_<T.length;_++){const A=T[_],D=mh(A);c.includes(D)||(w.splice(_,0,A),y.push(A))}a==="wait"&&y.length&&(w=y),m(D3(w)),b(u);return}const{forceRender:v}=E.useContext(G1);return x.jsx(x.Fragment,{children:T.map(w=>{const _=mh(w),A=s&&!o?!1:u===T||c.includes(_),D=()=>{if(h.has(_))h.set(_,!0);else return;let L=!0;h.forEach(U=>{U||(L=!1)}),L&&(v==null||v(),m(d.current),s&&(l==null||l()),r&&r())};return x.jsx($q,{isPresent:A,initial:!f.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:i,mode:a,onExitComplete:A?void 0:D,children:w},_)})})},er=e=>e;let L3=er;function W1(e){let t;return()=>(t===void 0&&(t=e()),t)}const tl=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Di=e=>e*1e3,Mi=e=>e/1e3,Kq={useManualTiming:!1};function Wq(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(u){a.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,f=!1)=>{const h=f&&r?t:n;return c&&a.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),a.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(o),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const gh=["read","resolveKeyframes","update","preRender","render","postRender"],Qq=40;function I3(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=gh.reduce((m,y)=>(m[y]=Wq(a),m),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:d}=s,h=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,Qq),1),i.timestamp=m,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:gh.reduce((m,y)=>{const v=s[y];return m[y]=(w,_=!1,A=!1)=>(n||g(),v.schedule(w,_,A)),m},{}),cancel:m=>{for(let y=0;y<gh.length;y++)s[gh[y]].cancel(m)},state:i,steps:s}}const{schedule:ft,cancel:ka,state:ln,steps:Q1}=I3(typeof requestAnimationFrame<"u"?requestAnimationFrame:er,!0),P3=E.createContext({strict:!1}),B3={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nl={};for(const e in B3)nl[e]={isEnabled:t=>B3[e].some(n=>!!t[n])};function Zq(e){for(const t in e)nl[t]={...nl[t],...e[t]}}const Jq=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Jq.has(e)}let U3=e=>!bh(e);function eY(e){e&&(U3=t=>t.startsWith("on")?!bh(t):e(t))}try{eY(require("@emotion/is-prop-valid").default)}catch{}function tY(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(U3(i)||n===!0&&bh(i)||!t&&!bh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function nY(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const yh=E.createContext({});function ac(e){return typeof e=="string"||Array.isArray(e)}function vh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Z1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],J1=["initial",...Z1];function xh(e){return vh(e.animate)||J1.some(t=>ac(e[t]))}function z3(e){return!!(xh(e)||e.variants)}function rY(e,t){if(xh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ac(n)?n:void 0,animate:ac(r)?r:void 0}}return e.inherit!==!1?t:{}}function iY(e){const{initial:t,animate:n}=rY(e,E.useContext(yh));return E.useMemo(()=>({initial:t,animate:n}),[j3(t),j3(n)])}function j3(e){return Array.isArray(e)?e.join(" "):e}const aY=Symbol.for("motionComponentSymbol");function rl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sY(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):rl(n)&&(n.current=r))},[t])}const eb=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),F3="data-"+eb("framerAppearId"),{schedule:tb}=I3(queueMicrotask,!1),H3=E.createContext({});function oY(e,t,n,r,i){var a,s;const{visualElement:o}=E.useContext(yh),l=E.useContext(P3),u=E.useContext(ph),c=E.useContext(X1).reducedMotion,f=E.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,h=E.useContext(H3);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&lY(f.current,n,i,h);const g=E.useRef(!1);E.useInsertionEffect(()=>{d&&g.current&&d.update(n,u)});const b=n[F3],T=E.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,b)));return M3(()=>{d&&(g.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),tb.render(d.render),T.current&&d.animationState&&d.animationState.animateChanges())}),E.useEffect(()=>{d&&(!T.current&&d.animationState&&d.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,b)}),T.current=!1))}),d}function lY(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:V3(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&rl(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function V3(e){if(e)return e.options.allowProjection!==!1?e.projection:V3(e.parent)}function uY({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,s;e&&Zq(e);function o(u,c){let f;const d={...E.useContext(X1),...u,layoutId:cY(u)},{isStatic:h}=d,g=iY(u),b=r(u,h);if(!h&&K1){fY();const T=dY(d);f=T.MeasureLayout,g.visualElement=oY(i,b,d,t,T.ProjectionNode)}return x.jsxs(yh.Provider,{value:g,children:[f&&g.visualElement?x.jsx(f,{visualElement:g.visualElement,...d}):null,n(i,u,sY(b,g.visualElement,c),b,h,g.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${(s=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&s!==void 0?s:""})`}`;const l=E.forwardRef(o);return l[aY]=i,l}function cY({layoutId:e}){const t=E.useContext(G1).id;return t&&e!==void 0?t+"-"+e:e}function fY(e,t){E.useContext(P3).strict}function dY(e){const{drag:t,layout:n}=nl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const hY=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nb(e){return typeof e!="string"||e.includes("-")?!1:!!(hY.indexOf(e)>-1||/[A-Z]/u.test(e))}function q3(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function rb(e,t,n,r){if(typeof t=="function"){const[i,a]=q3(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=q3(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const ib=e=>Array.isArray(e),pY=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mY=e=>ib(e)?e[e.length-1]||0:e,bn=e=>!!(e&&e.getVelocity);function Eh(e){const t=bn(e)?e.get():e;return pY(t)?t.toValue():t}function gY({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const s={latestValues:bY(r,i,a,e),renderState:t()};return n&&(s.onMount=o=>n({props:r,current:o,...s}),s.onUpdate=o=>n(o)),s}const Y3=e=>(t,n)=>{const r=E.useContext(yh),i=E.useContext(ph),a=()=>gY(e,t,r,i);return n?a():$1(a)};function bY(e,t,n,r){const i={},a=r(e,{});for(const d in a)i[d]=Eh(a[d]);let{initial:s,animate:o}=e;const l=xh(e),u=z3(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?o:s;if(f&&typeof f!="boolean"&&!vh(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const g=rb(e,d[h]);if(g){const{transitionEnd:b,transition:T,...m}=g;for(const y in m){let v=m[y];if(Array.isArray(v)){const w=c?v.length-1:0;v=v[w]}v!==null&&(i[y]=v)}for(const y in b)i[y]=b[y]}}}return i}const il=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vs=new Set(il),G3=e=>t=>typeof t=="string"&&t.startsWith(e),$3=G3("--"),yY=G3("var(--"),ab=e=>yY(e)?vY.test(e.split("/*")[0].trim()):!1,vY=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,X3=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Li=(e,t,n)=>n>t?t:n<e?e:n,al={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},sc={...al,transform:e=>Li(0,1,e)},Th={...al,default:1},oc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Oa=oc("deg"),ni=oc("%"),me=oc("px"),xY=oc("vh"),EY=oc("vw"),K3={...ni,parse:e=>ni.parse(e)/100,transform:e=>ni.transform(e*100)},TY={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,backgroundPositionX:me,backgroundPositionY:me},wY={rotate:Oa,rotateX:Oa,rotateY:Oa,rotateZ:Oa,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:Oa,skewX:Oa,skewY:Oa,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:sc,originX:K3,originY:K3,originZ:me},W3={...al,transform:Math.round},sb={...TY,...wY,zIndex:W3,size:me,fillOpacity:sc,strokeOpacity:sc,numOctaves:W3},_Y={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},SY=il.length;function AY(e,t,n){let r="",i=!0;for(let a=0;a<SY;a++){const s=il[a],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=X3(o,sb[s]);if(!l){i=!1;const c=_Y[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ob(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const l in t){const u=t[l];if(vs.has(l)){s=!0;continue}else if($3(l)){i[l]=u;continue}else{const c=X3(u,sb[l]);l.startsWith("origin")?(o=!0,a[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=AY(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=a;r.transformOrigin=`${l} ${u} ${c}`}}const CY={offset:"stroke-dashoffset",array:"stroke-dasharray"},kY={offset:"strokeDashoffset",array:"strokeDasharray"};function OY(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?CY:kY;e[a.offset]=me.transform(-r);const s=me.transform(t),o=me.transform(n);e[a.array]=`${s} ${o}`}function Q3(e,t,n){return typeof e=="string"?e:me.transform(t+n*e)}function RY(e,t,n){const r=Q3(t,e.x,e.width),i=Q3(n,e.y,e.height);return`${r} ${i}`}function lb(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},c,f){if(ob(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h,dimensions:g}=e;d.transform&&(g&&(h.transform=d.transform),delete d.transform),g&&(i!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=RY(g,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&OY(d,s,o,l,!1)}const ub=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Z3=()=>({...ub(),attrs:{}}),cb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function J3(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const ek=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tk(e,t,n,r){J3(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ek.has(i)?i:eb(i),t.attrs[i])}const wh={};function NY(e){Object.assign(wh,e)}function nk(e,{layout:t,layoutId:n}){return vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wh[e]||e==="opacity")}function fb(e,t,n){var r;const{style:i}=e,a={};for(const s in i)(bn(i[s])||t.style&&bn(t.style[s])||nk(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[s]=i[s]);return a}function rk(e,t,n){const r=fb(e,t,n);for(const i in e)if(bn(e[i])||bn(t[i])){const a=il.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function DY(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const ik=["x","y","width","height","cx","cy","r"],MY={useVisualState:Y3({scrapeMotionValuesFromProps:rk,createRenderState:Z3,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const o in i)if(vs.has(o)){a=!0;break}}if(!a)return;let s=!t;if(t)for(let o=0;o<ik.length;o++){const l=ik[o];e[l]!==t[l]&&(s=!0)}s&&ft.read(()=>{DY(n,r),ft.render(()=>{lb(r,i,cb(n.tagName),e.transformTemplate),tk(n,r)})})}})},LY={useVisualState:Y3({scrapeMotionValuesFromProps:fb,createRenderState:ub})};function ak(e,t,n){for(const r in t)!bn(t[r])&&!nk(r,n)&&(e[r]=t[r])}function IY({transformTemplate:e},t){return E.useMemo(()=>{const n=ub();return ob(n,t,e),Object.assign({},n.vars,n.style)},[t])}function PY(e,t){const n=e.style||{},r={};return ak(r,n,e),Object.assign(r,IY(e,t)),r}function BY(e,t){const n={},r=PY(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function UY(e,t,n,r){const i=E.useMemo(()=>{const a=Z3();return lb(a,t,cb(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};ak(a,e.style,e),i.style={...a,...i.style}}return i}function zY(e=!1){return(n,r,i,{latestValues:a},s)=>{const l=(nb(n)?UY:BY)(r,a,s,n),u=tY(r,typeof n=="string",e),c=n!==E.Fragment?{...u,...l,ref:i}:{},{children:f}=r,d=E.useMemo(()=>bn(f)?f.get():f,[f]);return E.createElement(n,{...c,children:d})}}function jY(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...nb(r)?MY:LY,preloadedFeatures:e,useRender:zY(i),createVisualElement:t,Component:r};return uY(s)}}function sk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function _h(e,t,n){const r=e.getProps();return rb(r,t,n!==void 0?n:r.custom,e)}const FY=W1(()=>window.ScrollTimeline!==void 0);class HY{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(FY()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class VY extends HY{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function db(e,t){return e?e[t]||e.default||e:void 0}const hb=2e4;function ok(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hb;)t+=n,r=e.next(t);return t>=hb?1/0:t}function pb(e){return typeof e=="function"}function lk(e,t){e.timeline=t,e.onfinish=null}const mb=e=>Array.isArray(e)&&typeof e[0]=="number",qY={linearEasing:void 0};function YY(e,t){const n=W1(e);return()=>{var r;return(r=qY[t])!==null&&r!==void 0?r:n()}}const Sh=YY(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),uk=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(tl(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function ck(e){return!!(typeof e=="function"&&Sh()||!e||typeof e=="string"&&(e in gb||Sh())||mb(e)||Array.isArray(e)&&e.every(ck))}const lc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,gb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:lc([0,.65,.55,1]),circOut:lc([.55,0,1,.45]),backIn:lc([.31,.01,.66,-.59]),backOut:lc([.33,1.53,.69,.99])};function fk(e,t){if(e)return typeof e=="function"&&Sh()?uk(e,t):mb(e)?lc(e):Array.isArray(e)?e.map(n=>fk(n,t)||gb.easeOut):gb[e]}const Mr={x:!1,y:!1};function dk(){return Mr.x||Mr.y}function GY(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function hk(e,t){const n=GY(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function pk(e){return t=>{t.pointerType==="touch"||dk()||e(t)}}function $Y(e,t,n={}){const[r,i,a]=hk(e,n),s=pk(o=>{const{target:l}=o,u=t(o);if(typeof u!="function"||!l)return;const c=pk(f=>{u(f),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const mk=(e,t)=>t?e===t?!0:mk(e,t.parentElement):!1,bb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,XY=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function KY(e){return XY.has(e.tagName)||e.tabIndex!==-1}const uc=new WeakSet;function gk(e){return t=>{t.key==="Enter"&&e(t)}}function yb(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const WY=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gk(()=>{if(uc.has(n))return;yb(n,"down");const i=gk(()=>{yb(n,"up")}),a=()=>yb(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function bk(e){return bb(e)&&!dk()}function QY(e,t,n={}){const[r,i,a]=hk(e,n),s=o=>{const l=o.currentTarget;if(!bk(o)||uc.has(l))return;uc.add(l);const u=t(o),c=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!bk(h)||!uc.has(l))&&(uc.delete(l),typeof u=="function"&&u(h,{success:g}))},f=h=>{c(h,n.useGlobalTarget||mk(l,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(o=>{!KY(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),o.addEventListener("focus",u=>WY(u,i),i)}),a}function ZY(e){return e==="x"||e==="y"?Mr[e]?null:(Mr[e]=!0,()=>{Mr[e]=!1}):Mr.x||Mr.y?null:(Mr.x=Mr.y=!0,()=>{Mr.x=Mr.y=!1})}const yk=new Set(["width","height","top","left","right","bottom",...il]);let Ah;function JY(){Ah=void 0}const ri={now:()=>(Ah===void 0&&ri.set(ln.isProcessing||Kq.useManualTiming?ln.timestamp:performance.now()),Ah),set:e=>{Ah=e,queueMicrotask(JY)}};function vb(e,t){e.indexOf(t)===-1&&e.push(t)}function xb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Eb{constructor(){this.subscriptions=[]}add(t){return vb(this.subscriptions,t),()=>xb(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function vk(e,t){return t?e*(1e3/t):0}const xk=30,eG=e=>!isNaN(parseFloat(e));class tG{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=ri.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ri.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=eG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Eb);const r=this.events[t].add(n);return t==="change"?()=>{r(),ft.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ri.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xk)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xk);return vk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function cc(e,t){return new tG(e,t)}function nG(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,cc(n))}function rG(e,t){const n=_h(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=mY(a[s]);nG(e,s,o)}}function iG(e){return!!(bn(e)&&e.add)}function Tb(e,t){const n=e.getValue("willChange");if(iG(n))return n.add(t)}function Ek(e){return e.props[F3]}const Tk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aG=1e-7,sG=12;function oG(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=Tk(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>aG&&++o<sG);return s}function fc(e,t,n,r){if(e===t&&n===r)return er;const i=a=>oG(a,0,1,e,n);return a=>a===0||a===1?a:Tk(i(a),t,r)}const wk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_k=e=>t=>1-e(1-t),Sk=fc(.33,1.53,.69,.99),wb=_k(Sk),Ak=wk(wb),Ck=e=>(e*=2)<1?.5*wb(e):.5*(2-Math.pow(2,-10*(e-1))),_b=e=>1-Math.sin(Math.acos(e)),kk=_k(_b),Ok=wk(_b),Rk=e=>/^0[^.\s]+$/u.test(e);function lG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rk(e):!0}const dc=e=>Math.round(e*1e5)/1e5,Sb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uG(e){return e==null}const cG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ab=(e,t)=>n=>!!(typeof n=="string"&&cG.test(n)&&n.startsWith(e)||t&&!uG(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Sb);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},fG=e=>Li(0,255,e),Cb={...al,transform:e=>Math.round(fG(e))},xs={test:Ab("rgb","red"),parse:Nk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Cb.transform(e)+", "+Cb.transform(t)+", "+Cb.transform(n)+", "+dc(sc.transform(r))+")"};function dG(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const kb={test:Ab("#"),parse:dG,transform:xs.transform},sl={test:Ab("hsl","hue"),parse:Nk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ni.transform(dc(t))+", "+ni.transform(dc(n))+", "+dc(sc.transform(r))+")"},yn={test:e=>xs.test(e)||kb.test(e)||sl.test(e),parse:e=>xs.test(e)?xs.parse(e):sl.test(e)?sl.parse(e):kb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xs.transform(e):sl.transform(e)},hG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pG(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Sb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(hG))===null||n===void 0?void 0:n.length)||0)>0}const Dk="number",Mk="color",mG="var",gG="var(",Lk="${}",bG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function hc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(bG,l=>(yn.test(l)?(r.color.push(a),i.push(Mk),n.push(yn.parse(l))):l.startsWith(gG)?(r.var.push(a),i.push(mG),n.push(l)):(r.number.push(a),i.push(Dk),n.push(parseFloat(l))),++a,Lk)).split(Lk);return{values:n,split:o,indexes:r,types:i}}function Ik(e){return hc(e).values}function Pk(e){const{split:t,types:n}=hc(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const o=n[s];o===Dk?a+=dc(i[s]):o===Mk?a+=yn.transform(i[s]):a+=i[s]}return a}}const yG=e=>typeof e=="number"?0:e;function vG(e){const t=Ik(e);return Pk(e)(t.map(yG))}const Ra={test:pG,parse:Ik,createTransformer:Pk,getAnimatableNone:vG},xG=new Set(["brightness","contrast","saturate","opacity"]);function EG(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Sb)||[];if(!r)return e;const i=n.replace(r,"");let a=xG.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const TG=/\b([a-z-]*)\(.*?\)/gu,Ob={...Ra,getAnimatableNone:e=>{const t=e.match(TG);return t?t.map(EG).join(" "):e}},wG={...sb,color:yn,backgroundColor:yn,outlineColor:yn,fill:yn,stroke:yn,borderColor:yn,borderTopColor:yn,borderRightColor:yn,borderBottomColor:yn,borderLeftColor:yn,filter:Ob,WebkitFilter:Ob},Rb=e=>wG[e];function Bk(e,t){let n=Rb(e);return n!==Ob&&(n=Ra),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _G=new Set(["auto","none","0"]);function SG(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!_G.has(a)&&hc(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=Bk(n,i)}const Uk=e=>e===al||e===me,zk=(e,t)=>parseFloat(e.split(", ")[t]),jk=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return zk(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?zk(a[1],e):0}},AG=new Set(["x","y","z"]),CG=il.filter(e=>!AG.has(e));function kG(e){const t=[];return CG.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ol={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:jk(4,13),y:jk(5,14)};ol.translateX=ol.x,ol.translateY=ol.y;const Es=new Set;let Nb=!1,Db=!1;function Fk(){if(Db){const e=Array.from(Es).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=kG(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var o;(o=r.getValue(a))===null||o===void 0||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Db=!1,Nb=!1,Es.forEach(e=>e.complete()),Es.clear()}function Hk(){Es.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Db=!0)})}function OG(){Hk(),Fk()}class Mb{constructor(t,n,r,i,a,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Es.add(this),Nb||(Nb=!0,ft.read(Hk),ft.resolveKeyframes(Fk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Vk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),RG=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function NG(e){const t=RG.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function qk(e,t,n=1){const[r,i]=NG(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return Vk(s)?parseFloat(s):s}return ab(i)?qk(i,t,n+1):i}const Yk=e=>t=>t.test(e),Gk=[al,me,ni,Oa,EY,xY,{test:e=>e==="auto",parse:e=>e}],$k=e=>Gk.find(Yk(e));class Xk extends Mb{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),ab(u))){const c=qk(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!yk.has(r)||t.length!==2)return;const[i,a]=t,s=$k(i),o=$k(a);if(s!==o)if(Uk(s)&&Uk(o))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)lG(t[i])&&r.push(i);r.length&&SG(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ol[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const s=i.length-1,o=i[s];i[s]=ol[r](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Kk=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ra.test(e)||e==="0")&&!e.startsWith("url("));function DG(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function MG(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=Kk(i,t),o=Kk(a,t);return!s||!o?!1:DG(e)||(n==="spring"||pb(n))&&r}const LG=e=>e!==null;function Ch(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(LG),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const IG=40;class Wk{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ri.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>IG?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&OG(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ri.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!MG(t,r,i,a))if(s)this.options.duration=0;else{l&&l(Ch(t,this.options,n)),o&&o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const xt=(e,t,n)=>e+(t-e)*n;function Lb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function PG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=Lb(l,o,e+1/3),a=Lb(l,o,e),s=Lb(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function kh(e,t){return n=>n>0?t:e}const Ib=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},BG=[kb,xs,sl],UG=e=>BG.find(t=>t.test(e));function Qk(e){const t=UG(e);if(!t)return!1;let n=t.parse(e);return t===sl&&(n=PG(n)),n}const Zk=(e,t)=>{const n=Qk(e),r=Qk(t);if(!n||!r)return kh(e,t);const i={...n};return a=>(i.red=Ib(n.red,r.red,a),i.green=Ib(n.green,r.green,a),i.blue=Ib(n.blue,r.blue,a),i.alpha=xt(n.alpha,r.alpha,a),xs.transform(i))},zG=(e,t)=>n=>t(e(n)),pc=(...e)=>e.reduce(zG),Pb=new Set(["none","hidden"]);function jG(e,t){return Pb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function FG(e,t){return n=>xt(e,t,n)}function Bb(e){return typeof e=="number"?FG:typeof e=="string"?ab(e)?kh:yn.test(e)?Zk:qG:Array.isArray(e)?Jk:typeof e=="object"?yn.test(e)?Zk:HG:kh}function Jk(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>Bb(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function HG(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Bb(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function VG(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],o=e.indexes[s][i[s]],l=(n=e.values[o])!==null&&n!==void 0?n:0;r[a]=l,i[s]++}return r}const qG=(e,t)=>{const n=Ra.createTransformer(t),r=hc(e),i=hc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Pb.has(e)&&!i.values.length||Pb.has(t)&&!r.values.length?jG(e,t):pc(Jk(VG(r,i),i.values),n):kh(e,t)};function e6(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):Bb(e)(e,t)}const YG=5;function t6(e,t,n){const r=Math.max(t-YG,0);return vk(n-e(r),t-r)}const St={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ub=.001;function GG({duration:e=St.duration,bounce:t=St.bounce,velocity:n=St.velocity,mass:r=St.mass}){let i,a,s=1-t;s=Li(St.minDamping,St.maxDamping,s),e=Li(St.minDuration,St.maxDuration,Mi(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=zb(u,s),g=Math.exp(-f);return Ub-d/h*g},a=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),b=zb(Math.pow(u,2),s);return(-i(u)+Ub>0?-1:1)*((d-h)*g)/b}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Ub+c*f},a=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const o=5/e,l=XG(i,a,o);if(e=Di(e),isNaN(l))return{stiffness:St.stiffness,damping:St.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const $G=12;function XG(e,t,n){let r=n;for(let i=1;i<$G;i++)r=r-e(r)/t(r);return r}function zb(e,t){return e*Math.sqrt(1-t*t)}const KG=["duration","bounce"],WG=["stiffness","damping","mass"];function n6(e,t){return t.some(n=>e[n]!==void 0)}function QG(e){let t={velocity:St.velocity,stiffness:St.stiffness,damping:St.damping,mass:St.mass,isResolvedFromDuration:!1,...e};if(!n6(e,WG)&&n6(e,KG))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Li(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:St.mass,stiffness:i,damping:a}}else{const n=GG(e);t={...t,...n,mass:St.mass},t.isResolvedFromDuration=!0}return t}function r6(e=St.visualDuration,t=St.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=QG({...n,velocity:-Mi(n.velocity||0)}),g=d||0,b=u/(2*Math.sqrt(l*c)),T=s-a,m=Mi(Math.sqrt(l/c)),y=Math.abs(T)<5;r||(r=y?St.restSpeed.granular:St.restSpeed.default),i||(i=y?St.restDelta.granular:St.restDelta.default);let v;if(b<1){const _=zb(m,b);v=A=>{const D=Math.exp(-b*m*A);return s-D*((g+b*m*T)/_*Math.sin(_*A)+T*Math.cos(_*A))}}else if(b===1)v=_=>s-Math.exp(-m*_)*(T+(g+m*T)*_);else{const _=m*Math.sqrt(b*b-1);v=A=>{const D=Math.exp(-b*m*A),L=Math.min(_*A,300);return s-D*((g+b*m*T)*Math.sinh(L)+_*T*Math.cosh(L))/_}}const w={calculatedDuration:h&&f||null,next:_=>{const A=v(_);if(h)o.done=_>=f;else{let D=0;b<1&&(D=_===0?Di(g):t6(v,_,A));const L=Math.abs(D)<=r,U=Math.abs(s-A)<=i;o.done=L&&U}return o.value=o.done?s:A,o},toString:()=>{const _=Math.min(ok(w),hb),A=uk(D=>w.next(_*D).value,_,30);return _+"ms "+A}};return w}function i6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=L=>o!==void 0&&L<o||l!==void 0&&L>l,g=L=>o===void 0?l:l===void 0||Math.abs(o-L)<Math.abs(l-L)?o:l;let b=n*t;const T=f+b,m=s===void 0?T:s(T);m!==T&&(b=m-f);const y=L=>-b*Math.exp(-L/r),v=L=>m+y(L),w=L=>{const U=y(L),R=v(L);d.done=Math.abs(U)<=u,d.value=d.done?m:R};let _,A;const D=L=>{h(d.value)&&(_=L,A=r6({keyframes:[d.value,g(d.value)],velocity:t6(v,L,d.value),damping:i,stiffness:a,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:L=>{let U=!1;return!A&&_===void 0&&(U=!0,w(L),D(L)),_!==void 0&&L>=_?A.next(L-_):(!U&&w(L),d)}}}const ZG=fc(.42,0,1,1),JG=fc(0,0,.58,1),a6=fc(.42,0,.58,1),e$=e=>Array.isArray(e)&&typeof e[0]!="number",t$={linear:er,easeIn:ZG,easeInOut:a6,easeOut:JG,circIn:_b,circInOut:Ok,circOut:kk,backIn:wb,backInOut:Ak,backOut:Sk,anticipate:Ck},s6=e=>{if(mb(e)){L3(e.length===4);const[t,n,r,i]=e;return fc(t,n,r,i)}else if(typeof e=="string")return t$[e];return e};function n$(e,t,n){const r=[],i=n||e6,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||er:t;o=pc(l,o)}r.push(o)}return r}function r$(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(L3(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=n$(t,r,i),l=o.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=tl(e[f],e[f+1],c);return o[f](d)};return n?c=>u(Li(e[0],e[a-1],c)):u}function i$(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=tl(0,t,r);e.push(xt(n,1,i))}}function a$(e){const t=[0];return i$(t,e.length-1),t}function s$(e,t){return e.map(n=>n*t)}function o$(e,t){return e.map(()=>t||a6).splice(0,e.length-1)}function Oh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=e$(r)?r.map(s6):s6(r),a={done:!1,value:t[0]},s=s$(n&&n.length===t.length?n:a$(t),e),o=r$(s,t,{ease:Array.isArray(i)?i:o$(t,i)});return{calculatedDuration:e,next:l=>(a.value=o(l),a.done=l>=e,a)}}const l$=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ft.update(t,!0),stop:()=>ka(t),now:()=>ln.isProcessing?ln.timestamp:ri.now()}},u$={decay:i6,inertia:i6,tween:Oh,keyframes:Oh,spring:r6},c$=e=>e/100;class jb extends Wk{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Mb,o=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(a,o,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=this.options,o=pb(n)?n:u$[n]||Oh;let l,u;o!==Oh&&typeof t[0]!="number"&&(l=pc(c$,e6(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});a==="mirror"&&(u=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=ok(c));const{calculatedDuration:f}=c,d=f+i,h=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:L}=this.options;return{done:!0,value:L[L.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return a.next(0);const{delay:d,repeat:h,repeatType:g,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,w=a;if(h){const L=Math.min(this.currentTime,c)/f;let U=Math.floor(L),R=L%1;!R&&L>=1&&(R=1),R===1&&U--,U=Math.min(U,h+1),!!(U%2)&&(g==="reverse"?(R=1-R,b&&(R-=b/f)):g==="mirror"&&(w=s)),v=Li(0,1,R)*f}const _=y?{done:!1,value:l[0]}:w.next(v);o&&(_.value=o(_.value));let{done:A}=_;!y&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return D&&i!==void 0&&(_.value=Ch(l,this.options,i)),T&&T(_.value),D&&this.finish(),_}get duration(){const{resolved:t}=this;return t?Mi(t.calculatedDuration):0}get time(){return Mi(this.currentTime)}set time(t){t=Di(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Mi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=l$,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const f$=new Set(["opacity","clipPath","filter","transform"]);function d$(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=fk(o,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}const h$=W1(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rh=10,p$=2e4;function m$(e){return pb(e.type)||e.type==="spring"||!ck(e.ease)}function g$(e,t){const n=new jb({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<p$;)r=n.sample(a),i.push(r.value),a+=Rh;return{times:void 0,keyframes:i,duration:a-Rh,ease:"linear"}}const o6={anticipate:Ck,backInOut:Ak,circInOut:Ok};function b$(e){return e in o6}class l6 extends Wk{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new Xk(a,(s,o)=>this.onKeyframesResolved(s,o),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:s,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof a=="string"&&Sh()&&b$(a)&&(a=o6[a]),m$(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,element:g,...b}=this.options,T=g$(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,a=T.ease,s="keyframes"}const c=d$(o.owner.current,l,t,{...this.options,duration:r,times:i,ease:a});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(lk(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;o.set(Ch(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Mi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Mi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Di(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return er;const{animation:r}=n;lk(r,t)}return er}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...h}=this.options,g=new jb({...h,keyframes:r,duration:i,type:a,ease:s,times:o,isGenerator:!0}),b=Di(this.time);u.setWithVelocity(g.sample(b-Rh).value,g.sample(b).value,Rh)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:s,type:o}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return h$()&&r&&f$.has(r)&&!l&&!u&&!i&&a!=="mirror"&&s!==0&&o!=="inertia"}}const y$={type:"spring",stiffness:500,damping:25,restSpeed:10},v$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),x$={type:"keyframes",duration:.8},E$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},T$=(e,{keyframes:t})=>t.length>2?x$:vs.has(e)?e.startsWith("scale")?v$(t[1]):y$:E$;function w$({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Fb=(e,t,n,r={},i,a)=>s=>{const o=db(r,e)||{},l=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Di(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:d=>{t.set(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};w$(o)||(c={...c,...T$(e,c)}),c.duration&&(c.duration=Di(c.duration)),c.repeatDelay&&(c.repeatDelay=Di(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!a&&t.get()!==void 0){const d=Ch(c.keyframes,o);if(d!==void 0)return ft.update(()=>{c.onUpdate(d),c.onComplete()}),new VY([])}return!a&&l6.supports(c)?new l6(c):new jb(c)};function _$({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function u6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const d=e.getValue(f,(a=e.latestValues[f])!==null&&a!==void 0?a:null),h=l[f];if(h===void 0||c&&_$(c,f))continue;const g={delay:n,...db(s||{},f)};let b=!1;if(window.MotionHandoffAnimation){const m=Ek(e);if(m){const y=window.MotionHandoffAnimation(m,f,ft);y!==null&&(g.startTime=y,b=!0)}}Tb(e,f),d.start(Fb(f,d,h,e.shouldReduceMotion&&yk.has(f)?{type:!1}:g,e,b));const T=d.animation;T&&u.push(T)}return o&&Promise.all(u).then(()=>{ft.update(()=>{o&&rG(e,o)})}),u}function Hb(e,t,n={}){var r;const i=_h(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const s=i?()=>Promise.all(u6(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=a;return S$(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[u,c]=l==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function S$(e,t,n=0,r=0,i=1,a){const s=[],o=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>o-u*r;return Array.from(e.variantChildren).sort(A$).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Hb(u,t,{...a,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function A$(e,t){return e.sortNodePosition(t)}function C$(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Hb(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Hb(e,t,n);else{const i=typeof t=="function"?_h(e,t,n.custom):t;r=Promise.all(u6(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const k$=J1.length;function c6(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?c6(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<k$;n++){const r=J1[n],i=e.props[r];(ac(i)||i===!1)&&(t[r]=i)}return t}const O$=[...Z1].reverse(),R$=Z1.length;function N$(e){return t=>Promise.all(t.map(({animation:n,options:r})=>C$(e,n,r)))}function D$(e){let t=N$(e),n=f6(),r=!0;const i=l=>(u,c)=>{var f;const d=_h(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:g,...b}=d;u={...u,...b,...g}}return u};function a(l){t=l(e)}function s(l){const{props:u}=e,c=c6(e.parent)||{},f=[],d=new Set;let h={},g=1/0;for(let T=0;T<R$;T++){const m=O$[T],y=n[m],v=u[m]!==void 0?u[m]:c[m],w=ac(v),_=m===l?y.isActive:null;_===!1&&(g=T);let A=v===c[m]&&v!==u[m]&&w;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...h},!y.isActive&&_===null||!v&&!y.prevProp||vh(v)||typeof v=="boolean")continue;const D=M$(y.prevProp,v);let L=D||m===l&&y.isActive&&!A&&w||T>g&&w,U=!1;const R=Array.isArray(v)?v:[v];let q=R.reduce(i(m),{});_===!1&&(q={});const{prevResolvedValues:F={}}=y,ne={...F,...q},K=V=>{L=!0,d.has(V)&&(U=!0,d.delete(V)),y.needsAnimating[V]=!0;const j=e.getValue(V);j&&(j.liveStyle=!1)};for(const V in ne){const j=q[V],te=F[V];if(h.hasOwnProperty(V))continue;let O=!1;ib(j)&&ib(te)?O=!sk(j,te):O=j!==te,O?j!=null?K(V):d.add(V):j!==void 0&&d.has(V)?K(V):y.protectedKeys[V]=!0}y.prevProp=v,y.prevResolvedValues=q,y.isActive&&(h={...h,...q}),r&&e.blockInitialAnimation&&(L=!1),L&&(!(A&&D)||U)&&f.push(...R.map(V=>({animation:V,options:{type:m}})))}if(d.size){const T={};d.forEach(m=>{const y=e.getBaseTarget(m),v=e.getValue(m);v&&(v.liveStyle=!0),T[m]=y??null}),f.push({animation:T})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}function o(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=f6(),r=!0}}}function M$(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sk(t,e):!1}function Ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f6(){return{animate:Ts(!0),whileInView:Ts(),whileHover:Ts(),whileTap:Ts(),whileDrag:Ts(),whileFocus:Ts(),exit:Ts()}}class Na{constructor(t){this.isMounted=!1,this.node=t}update(){}}class L$ extends Na{constructor(t){super(t),t.animationState||(t.animationState=D$(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();vh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let I$=0;class P$ extends Na{constructor(){super(...arguments),this.id=I$++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const B$={animation:{Feature:L$},exit:{Feature:P$}};function mc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gc(e){return{point:{x:e.pageX,y:e.pageY}}}const U$=e=>t=>bb(t)&&e(t,gc(t));function bc(e,t,n,r){return mc(e,t,U$(n),r)}const d6=(e,t)=>Math.abs(e-t);function z$(e,t){const n=d6(e.x,t.x),r=d6(e.y,t.y);return Math.sqrt(n**2+r**2)}class h6{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=qb(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=z$(f.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:g}=f,{timestamp:b}=ln;this.history.push({...g,timestamp:b});const{onStart:T,onMove:m}=this.handlers;d||(T&&T(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Vb(d,this.transformPagePoint),ft.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=qb(f.type==="pointercancel"?this.lastMoveEventInfo:Vb(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,T),g&&g(f,T)},!bb(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=gc(t),o=Vb(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=ln;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,qb(o,this.history)),this.removeListeners=pc(bc(this.contextWindow,"pointermove",this.handlePointerMove),bc(this.contextWindow,"pointerup",this.handlePointerUp),bc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ka(this.updatePoint)}}function Vb(e,t){return t?{point:t(e.point)}:e}function p6(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qb({point:e},t){return{point:e,delta:p6(e,m6(t)),offset:p6(e,j$(t)),velocity:F$(t,.1)}}function j$(e){return e[0]}function m6(e){return e[e.length-1]}function F$(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=m6(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Di(t)));)n--;if(!r)return{x:0,y:0};const a=Mi(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const g6=1e-4,H$=1-g6,V$=1+g6,b6=.01,q$=0-b6,Y$=0+b6;function tr(e){return e.max-e.min}function G$(e,t,n){return Math.abs(e-t)<=n}function y6(e,t,n,r=.5){e.origin=r,e.originPoint=xt(t.min,t.max,e.origin),e.scale=tr(n)/tr(t),e.translate=xt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=H$&&e.scale<=V$||isNaN(e.scale))&&(e.scale=1),(e.translate>=q$&&e.translate<=Y$||isNaN(e.translate))&&(e.translate=0)}function yc(e,t,n,r){y6(e.x,t.x,n.x,r?r.originX:void 0),y6(e.y,t.y,n.y,r?r.originY:void 0)}function v6(e,t,n){e.min=n.min+t.min,e.max=e.min+tr(t)}function $$(e,t,n){v6(e.x,t.x,n.x),v6(e.y,t.y,n.y)}function x6(e,t,n){e.min=t.min-n.min,e.max=e.min+tr(t)}function vc(e,t,n){x6(e.x,t.x,n.x),x6(e.y,t.y,n.y)}function X$(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?xt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?xt(n,e,r.max):Math.min(e,n)),e}function E6(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function K$(e,{top:t,left:n,bottom:r,right:i}){return{x:E6(e.x,n,i),y:E6(e.y,t,r)}}function T6(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function W$(e,t){return{x:T6(e.x,t.x),y:T6(e.y,t.y)}}function Q$(e,t){let n=.5;const r=tr(e),i=tr(t);return i>r?n=tl(t.min,t.max-r,e.min):r>i&&(n=tl(e.min,e.max-i,t.min)),Li(0,1,n)}function Z$(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Yb=.35;function J$(e=Yb){return e===!1?e=0:e===!0&&(e=Yb),{x:w6(e,"left","right"),y:w6(e,"top","bottom")}}function w6(e,t,n){return{min:_6(e,t),max:_6(e,n)}}function _6(e,t){return typeof e=="number"?e:e[t]||0}const S6=()=>({translate:0,scale:1,origin:0,originPoint:0}),ll=()=>({x:S6(),y:S6()}),A6=()=>({min:0,max:0}),Nt=()=>({x:A6(),y:A6()});function xr(e){return[e("x"),e("y")]}function C6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function eX({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function tX(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Gb(e){return e===void 0||e===1}function $b({scale:e,scaleX:t,scaleY:n}){return!Gb(e)||!Gb(t)||!Gb(n)}function ws(e){return $b(e)||k6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function k6(e){return O6(e.x)||O6(e.y)}function O6(e){return e&&e!=="0%"}function Nh(e,t,n){const r=e-n,i=t*r;return n+i}function R6(e,t,n,r,i){return i!==void 0&&(e=Nh(e,i,r)),Nh(e,n,r)+t}function Xb(e,t=0,n=1,r,i){e.min=R6(e.min,t,n,r,i),e.max=R6(e.max,t,n,r,i)}function N6(e,{x:t,y:n}){Xb(e.x,t.translate,t.scale,t.originPoint),Xb(e.y,n.translate,n.scale,n.originPoint)}const D6=.999999999999,M6=1.0000000000001;function nX(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o<i;o++){a=n[o],s=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&cl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,N6(e,s)),r&&ws(a.latestValues)&&cl(e,a.latestValues))}t.x<M6&&t.x>D6&&(t.x=1),t.y<M6&&t.y>D6&&(t.y=1)}function ul(e,t){e.min=e.min+t,e.max=e.max+t}function L6(e,t,n,r,i=.5){const a=xt(e.min,e.max,i);Xb(e,t,n,a,r)}function cl(e,t){L6(e.x,t.x,t.scaleX,t.scale,t.originX),L6(e.y,t.y,t.scaleY,t.scale,t.originY)}function I6(e,t){return C6(tX(e.getBoundingClientRect(),t))}function rX(e,t,n){const r=I6(e,n),{scroll:i}=t;return i&&(ul(r.x,i.offset.x),ul(r.y,i.offset.y)),r}const P6=({current:e})=>e?e.ownerDocument.defaultView:null,iX=new WeakMap;class aX{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Nt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gc(c).point)},a=(c,f)=>{const{drag:d,dragPropagation:h,onDragStart:g}=this.getProps();if(d&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ZY(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xr(T=>{let m=this.getAxisMotionValue(T).get()||0;if(ni.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[T];v&&(m=tr(v)*(parseFloat(m)/100))}}this.originPoint[T]=m}),g&&ft.postRender(()=>g(c,f)),Tb(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:g,onDrag:b}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:T}=f;if(h&&this.currentDirection===null){this.currentDirection=sX(T),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,T),this.updateAxis("y",f.point,T),this.visualElement.render(),b&&b(c,f)},o=(c,f)=>this.stop(c,f),l=()=>xr(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new h6(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:P6(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&ft.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Dh(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=X$(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&rl(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=K$(i.layoutBox,n):this.constraints=!1,this.elastic=J$(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&xr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Z$(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rl(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=rX(r,i.root,this.visualElement.getTransformPagePoint());let s=W$(i.layout.layoutBox,a);if(n){const o=n(eX(s));this.hasMutatedConstraints=!!o,o&&(s=C6(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=xr(c=>{if(!Dh(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Tb(this.visualElement,t),r.start(Fb(t,r,0,n,this.visualElement,!1))}stopAnimation(){xr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){xr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){xr(n=>{const{drag:r}=this.getProps();if(!Dh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-xt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};xr(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();i[s]=Q$({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),xr(s=>{if(!Dh(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(xt(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;iX.set(this.visualElement,this);const t=this.visualElement.current,n=bc(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();rl(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ft.read(r);const s=mc(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(xr(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Yb,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Dh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class oX extends Na{constructor(t){super(t),this.removeGroupControls=er,this.removeListeners=er,this.controls=new aX(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||er}unmount(){this.removeGroupControls(),this.removeListeners()}}const B6=e=>(t,n)=>{e&&ft.postRender(()=>e(t,n))};class lX extends Na{constructor(){super(...arguments),this.removePointerDownListener=er}onPointerDown(t){this.session=new h6(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:P6(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:B6(t),onStart:B6(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&ft.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=bc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Mh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function U6(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const n=U6(e,t.target.x),r=U6(e,t.target.y);return`${n}% ${r}%`}},uX={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ra.parse(e);if(i.length>5)return r;const a=Ra.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=l;const u=xt(o,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),a(i)}};class cX extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;NY(fX),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Mh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,s=r.projection;return s&&(s.isPresent=a,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||ft.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function z6(e){const[t,n]=N3(),r=E.useContext(G1);return x.jsx(cX,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(H3),isPresent:t,safeToRemove:n})}const fX={borderRadius:{...xc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xc,borderTopRightRadius:xc,borderBottomLeftRadius:xc,borderBottomRightRadius:xc,boxShadow:uX};function dX(e,t,n){const r=bn(e)?e:cc(e);return r.start(Fb("",r,t,n)),r.animation}function hX(e){return e instanceof SVGElement&&e.tagName!=="svg"}const pX=(e,t)=>e.depth-t.depth;class mX{constructor(){this.children=[],this.isDirty=!1}add(t){vb(this.children,t),this.isDirty=!0}remove(t){xb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pX),this.isDirty=!1,this.children.forEach(t)}}function gX(e,t){const n=ri.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(ka(r),e(a-t))};return ft.read(r,!0),()=>ka(r)}const j6=["TopLeft","TopRight","BottomLeft","BottomRight"],bX=j6.length,F6=e=>typeof e=="string"?parseFloat(e):e,H6=e=>typeof e=="number"||me.test(e);function yX(e,t,n,r,i,a){i?(e.opacity=xt(0,n.opacity!==void 0?n.opacity:1,vX(r)),e.opacityExit=xt(t.opacity!==void 0?t.opacity:1,0,xX(r))):a&&(e.opacity=xt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<bX;s++){const o=`border${j6[s]}Radius`;let l=V6(t,o),u=V6(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||H6(l)===H6(u)?(e[o]=Math.max(xt(F6(l),F6(u),r),0),(ni.test(u)||ni.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=xt(t.rotate||0,n.rotate||0,r))}function V6(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vX=q6(0,.5,kk),xX=q6(.5,.95,er);function q6(e,t,n){return r=>r<e?0:r>t?1:n(tl(e,t,r))}function Y6(e,t){e.min=t.min,e.max=t.max}function Er(e,t){Y6(e.x,t.x),Y6(e.y,t.y)}function G6(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $6(e,t,n,r,i){return e-=t,e=Nh(e,1/n,r),i!==void 0&&(e=Nh(e,1/i,r)),e}function EX(e,t=0,n=1,r=.5,i,a=e,s=e){if(ni.test(t)&&(t=parseFloat(t),t=xt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=xt(a.min,a.max,r);e===a&&(o-=t),e.min=$6(e.min,t,n,o,i),e.max=$6(e.max,t,n,o,i)}function X6(e,t,[n,r,i],a,s){EX(e,t[n],t[r],t[i],t.scale,a,s)}const TX=["x","scaleX","originX"],wX=["y","scaleY","originY"];function K6(e,t,n,r){X6(e.x,t,TX,n?n.x:void 0,r?r.x:void 0),X6(e.y,t,wX,n?n.y:void 0,r?r.y:void 0)}function W6(e){return e.translate===0&&e.scale===1}function Q6(e){return W6(e.x)&&W6(e.y)}function Z6(e,t){return e.min===t.min&&e.max===t.max}function _X(e,t){return Z6(e.x,t.x)&&Z6(e.y,t.y)}function J6(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function eO(e,t){return J6(e.x,t.x)&&J6(e.y,t.y)}function tO(e){return tr(e.x)/tr(e.y)}function nO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class SX{constructor(){this.members=[]}add(t){vb(this.members,t),t.scheduleRender()}remove(t){if(xb(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function AX(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:h,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const _s={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ec=typeof window<"u"&&window.MotionDebug!==void 0,Kb=["","X","Y","Z"],CX={visibility:"hidden"},rO=1e3;let kX=0;function Wb(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ek(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ft,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&iO(r)}function aO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t==null?void 0:t()){this.id=kX++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ec&&(_s.totalNodes=_s.resolvedTargetDeltas=_s.recalculatedProjection=0),this.nodes.forEach(NX),this.nodes.forEach(PX),this.nodes.forEach(BX),this.nodes.forEach(DX),Ec&&window.MotionDebug.record(_s)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new mX)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Eb),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=hX(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=gX(d,250),Mh.hasAnimatedSinceResize&&(Mh.hasAnimatedSinceResize=!1,this.nodes.forEach(oO))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||HX,{onLayoutAnimationStart:T,onLayoutAnimationComplete:m}=c.getProps(),y=!this.targetLayout||!eO(this.targetLayout,g)||h,v=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const w={...db(b,"layout"),onPlay:T,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||oO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ka(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(UX),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&iO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sO);return}this.isUpdating||this.nodes.forEach(LX),this.isUpdating=!1,this.nodes.forEach(IX),this.nodes.forEach(OX),this.nodes.forEach(RX),this.clearAllSnapshots();const o=ri.now();ln.delta=Li(0,1e3/60,o-ln.timestamp),ln.timestamp=o,ln.isProcessing=!0,Q1.update.process(ln),Q1.preRender.process(ln),Q1.render.process(ln),ln.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(MX),this.sharedNodes.forEach(zX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ft.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ft.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Nt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!Q6(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(o||ws(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),VX(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return Nt();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(qX))){const{scroll:c}=this.root;c&&(ul(l.x,c.offset.x),ul(l.y,c.offset.y))}return l}removeElementScroll(s){var o;const l=Nt();if(Er(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Er(l,s),ul(l.x,f.offset.x),ul(l.y,f.offset.y))}return l}applyTransform(s,o=!1){const l=Nt();Er(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&cl(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ws(c.latestValues)&&cl(l,c.latestValues)}return ws(this.latestValues)&&cl(l,this.latestValues),l}removeTransform(s){const o=Nt();Er(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ws(u.latestValues))continue;$b(u.latestValues)&&u.updateSnapshot();const c=Nt(),f=u.measurePageBox();Er(c,f),K6(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return ws(this.latestValues)&&K6(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ln.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=ln.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Nt(),this.relativeTargetOrigin=Nt(),vc(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Er(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Nt(),this.targetWithTransforms=Nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$$(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Er(this.target,this.layout.layoutBox),N6(this.target,this.targetDelta)):Er(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Nt(),this.relativeTargetOrigin=Nt(),vc(this.relativeTargetOrigin,this.target,h.target),Er(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ec&&_s.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$b(this.parent.latestValues)||k6(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ln.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;Er(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;nX(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Nt());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(G6(this.prevProjectionDelta.x,this.projectionDelta.x),G6(this.prevProjectionDelta.y,this.projectionDelta.y)),yc(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!nO(this.projectionDelta.x,this.prevProjectionDelta.x)||!nO(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Ec&&_s.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ll(),this.projectionDelta=ll(),this.projectionDeltaWithTransform=ll()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=ll();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const d=Nt(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=h!==g,T=this.getStack(),m=!T||T.members.length<=1,y=!!(b&&!m&&this.options.crossfade===!0&&!this.path.some(FX));this.animationProgress=0;let v;this.mixTargetDelta=w=>{const _=w/1e3;lO(f.x,s.x,_),lO(f.y,s.y,_),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vc(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jX(this.relativeTarget,this.relativeTargetOrigin,d,_),v&&_X(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Nt()),Er(v,this.relativeTarget)),b&&(this.animationValues=c,yX(c,u,this.latestValues,_,y,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ka(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ft.update(()=>{Mh.hasAnimatedSinceResize=!0,this.currentAnimation=dX(0,rO,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&hO(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Nt();const f=tr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=tr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Er(o,l),cl(o,c),yc(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new SX),this.sharedNodes.get(s).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&Wb("z",s,u,this.animationValues);for(let c=0;c<Kb.length;c++)Wb(`rotate${Kb[c]}`,s,u,this.animationValues),Wb(`skew${Kb[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return CX;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Eh(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Eh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ws(this.latestValues)&&(b.transform=c?c({},""):"none",this.hasProjected=!1),b}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=AX(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(o=d.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const b in wh){if(d[b]===void 0)continue;const{correct:T,applyTo:m}=wh[b],y=u.transform==="none"?d[b]:T(d[b],f);if(m){const v=m.length;for(let w=0;w<v;w++)u[m[w]]=y}else u[b]=y}return this.options.layoutId&&(u.pointerEvents=f===this?Eh(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(sO),this.root.sharedNodes.clear()}}}function OX(e){e.updateLayout()}function RX(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=n.source!==e.layout.source;a==="size"?xr(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=tr(d);d.min=r[f].min,d.max=d.min+h}):hO(a,n.layoutBox,r)&&xr(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=tr(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const o=ll();yc(o,r,n.layoutBox);const l=ll();s?yc(l,e.applyTransform(i,!0),n.measuredBox):yc(l,r,n.layoutBox);const u=!Q6(o);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=Nt();vc(g,n.layoutBox,d.layoutBox);const b=Nt();vc(b,r,h.layoutBox),eO(g,b)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function NX(e){Ec&&_s.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function DX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function MX(e){e.clearSnapshot()}function sO(e){e.clearMeasurements()}function LX(e){e.isLayoutDirty=!1}function IX(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function oO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function PX(e){e.resolveTargetDelta()}function BX(e){e.calcProjection()}function UX(e){e.resetSkewAndRotation()}function zX(e){e.removeLeadSnapshot()}function lO(e,t,n){e.translate=xt(t.translate,0,n),e.scale=xt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function uO(e,t,n,r){e.min=xt(t.min,n.min,r),e.max=xt(t.max,n.max,r)}function jX(e,t,n,r){uO(e.x,t.x,n.x,r),uO(e.y,t.y,n.y,r)}function FX(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const HX={duration:.45,ease:[.4,0,.1,1]},cO=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fO=cO("applewebkit/")&&!cO("chrome/")?Math.round:er;function dO(e){e.min=fO(e.min),e.max=fO(e.max)}function VX(e){dO(e.x),dO(e.y)}function hO(e,t,n){return e==="position"||e==="preserve-aspect"&&!G$(tO(t),tO(n),.2)}function qX(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const YX=aO({attachResizeListener:(e,t)=>mc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Qb={current:void 0},pO=aO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qb.current){const e=new YX({});e.mount(window),e.setOptions({layoutScroll:!0}),Qb.current=e}return Qb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),GX={pan:{Feature:lX},drag:{Feature:oX,ProjectionNode:pO,MeasureLayout:z6}};function mO(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&ft.postRender(()=>a(t,gc(t)))}class $X extends Na{mount(){const{current:t}=this.node;t&&(this.unmount=$Y(t,n=>(mO(this.node,n,"Start"),r=>mO(this.node,r,"End"))))}unmount(){}}class XX extends Na{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pc(mc(this.node.current,"focus",()=>this.onFocus()),mc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gO(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&ft.postRender(()=>a(t,gc(t)))}class KX extends Na{mount(){const{current:t}=this.node;t&&(this.unmount=QY(t,n=>(gO(this.node,n,"Start"),(r,{success:i})=>gO(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zb=new WeakMap,Jb=new WeakMap,WX=e=>{const t=Zb.get(e.target);t&&t(e)},QX=e=>{e.forEach(WX)};function ZX({root:e,...t}){const n=e||document;Jb.has(n)||Jb.set(n,{});const r=Jb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(QX,{root:e,...t})),r[i]}function JX(e,t,n){const r=ZX(t);return Zb.set(e,n),r.observe(e),()=>{Zb.delete(e),r.unobserve(e)}}const eK={some:0,all:1};class tK extends Na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:eK[i]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return JX(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nK(t,n))&&this.startObserver()}unmount(){}}function nK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rK={inView:{Feature:tK},tap:{Feature:KX},focus:{Feature:XX},hover:{Feature:$X}},iK={layout:{ProjectionNode:pO,MeasureLayout:z6}},ey={current:null},bO={current:!1};function aK(){if(bO.current=!0,!!K1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ey.current=e.matches;e.addListener(t),t()}else ey.current=!1}const sK=[...Gk,yn,Ra],oK=e=>sK.find(Yk(e)),yO=new WeakMap;function lK(e,t,n){for(const r in t){const i=t[r],a=n[r];if(bn(i))e.addValue(r,i);else if(bn(a))e.addValue(r,cc(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,cc(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const vO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class uK{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Mb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ri.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ft.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=xh(n),this.isVariantNode=z3(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const g=d[h];l[h]!==void 0&&bn(g)&&g.set(l[h],!1)}}mount(t){this.current=t,yO.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),bO.current||aK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ey.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yO.delete(this.current),this.projection&&this.projection.unmount(),ka(this.notifyUpdate),ka(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=vs.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&ft.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in nl){const n=nl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Nt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<vO.length;r++){const i=vO[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=lK(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=cc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Vk(i)||Rk(i))?i=parseFloat(i):!oK(i)&&Ra.test(n)&&(i=Bk(t,n)),this.setBaseTarget(t,bn(i)?i.get():i)),bn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=rb(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!bn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Eb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class xO extends uK{constructor(){super(...arguments),this.KeyframeResolver=Xk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;bn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function cK(e){return window.getComputedStyle(e)}class fK extends xO{constructor(){super(...arguments),this.type="html",this.renderInstance=J3}readValueFromInstance(t,n){if(vs.has(n)){const r=Rb(n);return r&&r.default||0}else{const r=cK(t),i=($3(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return I6(t,n)}build(t,n,r){ob(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return fb(t,n,r)}}class dK extends xO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Nt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vs.has(n)){const r=Rb(n);return r&&r.default||0}return n=ek.has(n)?n:eb(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return rk(t,n,r)}build(t,n,r){lb(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){tk(t,n,r,i)}mount(t){this.isSVGTag=cb(t.tagName),super.mount(t)}}const hK=(e,t)=>nb(e)?new dK(t):new fK(t,{allowProjection:e!==E.Fragment}),pK=jY({...B$,...rK,...GX,...iK},hK),Tc=nY(pK);function mK(){return i_.useSyncExternalStore(gK,()=>!0,()=>!1)}function gK(){return()=>{}}var ty="Avatar",[bK,iee]=wu(ty),[yK,EO]=bK(ty),TO=E.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,a]=E.useState("idle");return x.jsx(yK,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:x.jsx(Zt.span,{...r,ref:t})})});TO.displayName=ty;var wO="AvatarImage",_O=E.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,s=EO(wO,n),o=vK(r,a),l=os(u=>{i(u),s.onImageLoadingStatusChange(u)});return Yr(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?x.jsx(Zt.img,{...a,ref:t,src:r}):null});_O.displayName=wO;var SO="AvatarFallback",AO=E.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,a=EO(SO,n),[s,o]=E.useState(r===void 0);return E.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>o(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?x.jsx(Zt.span,{...i,ref:t}):null});AO.displayName=SO;function CO(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function vK(e,{referrerPolicy:t,crossOrigin:n}){const r=mK(),i=E.useRef(null),a=r?(i.current||(i.current=new window.Image),i.current):null,[s,o]=E.useState(()=>CO(a,e));return Yr(()=>{o(CO(a,e))},[a,e]),Yr(()=>{const l=f=>()=>{o(f)};if(!a)return;const u=l("loaded"),c=l("error");return a.addEventListener("load",u),a.addEventListener("error",c),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",c)}},[a,n,t]),s}var kO=TO,OO=_O,RO=AO;const ny=E.forwardRef(({className:e,...t},n)=>x.jsx(kO,{ref:n,className:de("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",e),...t}));ny.displayName=kO.displayName;const ry=E.forwardRef(({className:e,...t},n)=>x.jsx(OO,{ref:n,className:de("aspect-square h-full w-full",e),...t}));ry.displayName=OO.displayName;const iy=E.forwardRef(({className:e,...t},n)=>x.jsx(RO,{ref:n,className:de("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));iy.displayName=RO.displayName;function ay({agent:e,...t}){var n,r;return x.jsxs(ny,{...t,children:[x.jsx(ry,{src:(e==null?void 0:e.avatar)??"",alt:"Agent Icon"}),(e==null?void 0:e.name)&&x.jsx(iy,{children:(r=(n=e==null?void 0:e.name)==null?void 0:n.slice(0,1))==null?void 0:r.toUpperCase()})]})}const xK=10,EK={right:(e,t,n)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:e,...t.exit}}),left:(e,t,n)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:-e,...t.exit}}),up:(e,t,n)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:-e,...t.exit}}),down:(e,t,n)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:e,...t.exit}})},rt=E.forwardRef(({fadeIn:e="down",distance:t=xK,children:n,snapExit:r=!1,overrides:i={},delay:a=0,...s},o)=>{const l=e?EK[e](t,i,a):{};return r&&l.exit&&typeof l.exit=="object"&&!Array.isArray(l.exit)&&(l.exit.transition={duration:0}),x.jsx(Tc.div,{ref:o,...s,...l,children:n})});rt.displayName="MotionDiv";function TK({agent:e}){return x.jsx(In,{children:x.jsxs(rt,{...Ve("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[x.jsx(ay,{agent:e}),x.jsxs("div",{...Ve("chat/bot_loading/bouncing_dots_container"),className:de("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[x.jsx(Tc.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),x.jsx(Tc.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),x.jsx(Tc.span,{className:"rounded-full animate-bounce"})]})]})})}const NO='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-auto{margin-left:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--opencx-ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--opencx-muted-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rtl\\:text-right:where([dir=rtl],[dir=rtl] *){text-align:right}.rtl\\:placeholder\\:text-right:where([dir=rtl],[dir=rtl] *)::placeholder{text-align:right}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}';var wK=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_K="VisuallyHidden",DO=E.forwardRef((e,t)=>x.jsx(Zt.span,{...e,ref:t,style:{...wK,...e.style}}));DO.displayName=_K;var SK=DO,[Lh,uee]=wu("Tooltip",[bd]),Ih=bd(),MO="TooltipProvider",AK=700,sy="tooltip.open",[CK,oy]=Lh(MO),LO=e=>{const{__scopeTooltip:t,delayDuration:n=AK,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,s=E.useRef(!0),o=E.useRef(!1),l=E.useRef(0);return E.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),x.jsx(CK,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:o,onPointerInTransitChange:E.useCallback(u=>{o.current=u},[]),disableHoverableContent:i,children:a})};LO.displayName=MO;var wc="Tooltip",[kK,Ph]=Lh(wc),IO=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:s,delayDuration:o}=e,l=oy(wc,e.__scopeTooltip),u=Ih(t),[c,f]=E.useState(null),d=_u(),h=E.useRef(0),g=s??l.disableHoverableContent,b=o??l.delayDuration,T=E.useRef(!1),[m,y]=J0({prop:r,defaultProp:i??!1,onChange:D=>{D?(l.onOpen(),document.dispatchEvent(new CustomEvent(sy))):l.onClose(),a==null||a(D)},caller:wc}),v=E.useMemo(()=>m?T.current?"delayed-open":"instant-open":"closed",[m]),w=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,T.current=!1,y(!0)},[y]),_=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),A=E.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{T.current=!0,y(!0),h.current=0},b)},[b,y]);return E.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),x.jsx(Z2,{...u,children:x.jsx(kK,{scope:t,contentId:d,open:m,stateAttribute:v,trigger:c,onTriggerChange:f,onTriggerEnter:E.useCallback(()=>{l.isOpenDelayedRef.current?A():w()},[l.isOpenDelayedRef,A,w]),onTriggerLeave:E.useCallback(()=>{g?_():(window.clearTimeout(h.current),h.current=0)},[_,g]),onOpen:w,onClose:_,disableHoverableContent:g,children:n})})};IO.displayName=wc;var ly="TooltipTrigger",PO=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ph(ly,n),a=oy(ly,n),s=Ih(n),o=E.useRef(null),l=Xn(t,o,i.onTriggerChange),u=E.useRef(!1),c=E.useRef(!1),f=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),x.jsx(Z0,{asChild:!0,...s,children:x.jsx(Zt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Vt(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Vt(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Vt(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Vt(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:Vt(e.onBlur,i.onClose),onClick:Vt(e.onClick,i.onClose)})})});PO.displayName=ly;var OK="TooltipPortal",[cee,RK]=Lh(OK,{forceMount:void 0}),fl="TooltipContent",BO=E.forwardRef((e,t)=>{const n=RK(fl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,s=Ph(fl,e.__scopeTooltip);return x.jsx(ku,{present:r||s.open,children:s.disableHoverableContent?x.jsx(UO,{side:i,...a,ref:t}):x.jsx(NK,{side:i,...a,ref:t})})}),NK=E.forwardRef((e,t)=>{const n=Ph(fl,e.__scopeTooltip),r=oy(fl,e.__scopeTooltip),i=E.useRef(null),a=Xn(t,i),[s,o]=E.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:f}=r,d=E.useCallback(()=>{o(null),f(!1)},[f]),h=E.useCallback((g,b)=>{const T=g.currentTarget,m={x:g.clientX,y:g.clientY},y=PK(m,T.getBoundingClientRect()),v=BK(m,y),w=UK(b.getBoundingClientRect()),_=jK([...v,...w]);o(_),f(!0)},[f]);return E.useEffect(()=>()=>d(),[d]),E.useEffect(()=>{if(l&&c){const g=T=>h(T,c),b=T=>h(T,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[l,c,h,d]),E.useEffect(()=>{if(s){const g=b=>{const T=b.target,m={x:b.clientX,y:b.clientY},y=(l==null?void 0:l.contains(T))||(c==null?void 0:c.contains(T)),v=!zK(m,s);y?d():v&&(d(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,s,u,d]),x.jsx(UO,{...e,ref:a})}),[DK,MK]=Lh(wc,{isInside:!1}),LK=g5("TooltipContent"),UO=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...o}=e,l=Ph(fl,n),u=Ih(n),{onClose:c}=l;return E.useEffect(()=>(document.addEventListener(sy,c),()=>document.removeEventListener(sy,c)),[c]),E.useEffect(()=>{if(l.trigger){const f=d=>{const h=d.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),x.jsx(od,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:x.jsxs(J2,{"data-state":l.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[x.jsx(LK,{children:r}),x.jsx(DK,{scope:n,isInside:!0,children:x.jsx(SK,{id:l.contentId,role:"tooltip",children:i||r})})]})})});BO.displayName=fl;var zO="TooltipArrow",IK=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ih(n);return MK(zO,n).isInside?null:x.jsx(ew,{...i,...r,ref:t})});IK.displayName=zO;function PK(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function BK(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function UK(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function zK(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const o=t[a],l=t[s],u=o.x,c=o.y,f=l.x,d=l.y;c>r!=d>r&&n<(f-u)*(r-c)/(d-c)+u&&(i=!i)}return i}function jK(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),FK(t)}function FK(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var HK=LO,VK=IO,qK=PO,jO=BO;const YK=HK,GK=VK,$K=qK,FO=E.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(jO,{ref:r,sideOffset:t,className:de("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));FO.displayName=jO.displayName;function _c({children:e,content:t,side:n,align:r}){const{disableTooltips:i}=qt();return!t||i?e:x.jsxs(GK,{children:[x.jsx($K,{asChild:!0,children:e}),x.jsx(FO,{side:n,align:r,collisionPadding:8,avoidCollisions:!0,children:t})]})}function Bh(e){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(e)}var XK=/^\s+/,KK=/\s+$/;function ce(e,t){if(e=e||"",t=t||{},e instanceof ce)return e;if(!(this instanceof ce))return new ce(e,t);var n=WK(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}ce.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,s,o;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*s+.0722*o},setAlpha:function(t){return this._a=$O(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=VO(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=VO(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=HO(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=HO(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return qO(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return eW(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(yt(this._r,255)*100)+"%",g:Math.round(yt(this._g,255)*100)+"%",b:Math.round(yt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(yt(this._r,255)*100)+"%, "+Math.round(yt(this._g,255)*100)+"%, "+Math.round(yt(this._b,255)*100)+"%)":"rgba("+Math.round(yt(this._r,255)*100)+"%, "+Math.round(yt(this._g,255)*100)+"%, "+Math.round(yt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:dW[qO(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+YO(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=ce(t);r="#"+YO(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return ce(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(iW,arguments)},brighten:function(){return this._applyModification(aW,arguments)},darken:function(){return this._applyModification(sW,arguments)},desaturate:function(){return this._applyModification(tW,arguments)},saturate:function(){return this._applyModification(nW,arguments)},greyscale:function(){return this._applyModification(rW,arguments)},spin:function(){return this._applyModification(oW,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(cW,arguments)},complement:function(){return this._applyCombination(lW,arguments)},monochromatic:function(){return this._applyCombination(fW,arguments)},splitcomplement:function(){return this._applyCombination(uW,arguments)},triad:function(){return this._applyCombination(GO,[3])},tetrad:function(){return this._applyCombination(GO,[4])}},ce.fromRatio=function(e,t){if(Bh(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Sc(e[r]));e=n}return ce(e,t)};function WK(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,s=!1,o=!1;return typeof e=="string"&&(e=gW(e)),Bh(e)=="object"&&(Ii(e.r)&&Ii(e.g)&&Ii(e.b)?(t=QK(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ii(e.h)&&Ii(e.s)&&Ii(e.v)?(r=Sc(e.s),i=Sc(e.v),t=JK(e.h,r,i),s=!0,o="hsv"):Ii(e.h)&&Ii(e.s)&&Ii(e.l)&&(r=Sc(e.s),a=Sc(e.l),t=ZK(e.h,r,a),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=$O(n),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function QK(e,t,n){return{r:yt(e,255)*255,g:yt(t,255)*255,b:yt(n,255)*255}}function HO(e,t,n){e=yt(e,255),t=yt(t,255),n=yt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,s,o=(r+i)/2;if(r==i)a=s=0;else{var l=r-i;switch(s=o>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:o}}function ZK(e,t,n){var r,i,a;e=yt(e,360),t=yt(t,100),n=yt(n,100);function s(u,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(c-u)*6*f:f<1/2?c:f<2/3?u+(c-u)*(2/3-f)*6:u}if(t===0)r=i=a=n;else{var o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;r=s(l,o,e+1/3),i=s(l,o,e),a=s(l,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function VO(e,t,n){e=yt(e,255),t=yt(t,255),n=yt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,s,o=r,l=r-i;if(s=r===0?0:l/r,r==i)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:o}}function JK(e,t,n){e=yt(e,360)*6,t=yt(t,100),n=yt(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),s=n*(1-i*t),o=n*(1-(1-i)*t),l=r%6,u=[n,s,a,a,o,n][l],c=[o,n,n,s,a,a][l],f=[a,a,o,n,n,s][l];return{r:u*255,g:c*255,b:f*255}}function qO(e,t,n,r){var i=[Lr(Math.round(e).toString(16)),Lr(Math.round(t).toString(16)),Lr(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function eW(e,t,n,r,i){var a=[Lr(Math.round(e).toString(16)),Lr(Math.round(t).toString(16)),Lr(Math.round(n).toString(16)),Lr(XO(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function YO(e,t,n,r){var i=[Lr(XO(r)),Lr(Math.round(e).toString(16)),Lr(Math.round(t).toString(16)),Lr(Math.round(n).toString(16))];return i.join("")}ce.equals=function(e,t){return!e||!t?!1:ce(e).toRgbString()==ce(t).toRgbString()},ce.random=function(){return ce.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function tW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.s-=t/100,n.s=Uh(n.s),ce(n)}function nW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.s+=t/100,n.s=Uh(n.s),ce(n)}function rW(e){return ce(e).desaturate(100)}function iW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.l+=t/100,n.l=Uh(n.l),ce(n)}function aW(e,t){t=t===0?0:t||10;var n=ce(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),ce(n)}function sW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.l-=t/100,n.l=Uh(n.l),ce(n)}function oW(e,t){var n=ce(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,ce(n)}function lW(e){var t=ce(e).toHsl();return t.h=(t.h+180)%360,ce(t)}function GO(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=ce(e).toHsl(),r=[ce(e)],i=360/t,a=1;a<t;a++)r.push(ce({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function uW(e){var t=ce(e).toHsl(),n=t.h;return[ce(e),ce({h:(n+72)%360,s:t.s,l:t.l}),ce({h:(n+216)%360,s:t.s,l:t.l})]}function cW(e,t,n){t=t||6,n=n||30;var r=ce(e).toHsl(),i=360/n,a=[ce(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(ce(r));return a}function fW(e,t){t=t||6;for(var n=ce(e).toHsv(),r=n.h,i=n.s,a=n.v,s=[],o=1/t;t--;)s.push(ce({h:r,s:i,v:a})),a=(a+o)%1;return s}ce.mix=function(e,t,n){n=n===0?0:n||50;var r=ce(e).toRgb(),i=ce(t).toRgb(),a=n/100,s={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return ce(s)},ce.readability=function(e,t){var n=ce(e),r=ce(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},ce.isReadable=function(e,t,n){var r=ce.readability(e,t),i,a;switch(a=!1,i=bW(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a},ce.mostReadable=function(e,t,n){var r=null,i=0,a,s,o,l;n=n||{},s=n.includeFallbackColors,o=n.level,l=n.size;for(var u=0;u<t.length;u++)a=ce.readability(e,t[u]),a>i&&(i=a,r=ce(t[u]));return ce.isReadable(e,r,{level:o,size:l})||!s?r:(n.includeFallbackColors=!1,ce.mostReadable(e,["#fff","#000"],n))};var uy=ce.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},dW=ce.hexNames=hW(uy);function hW(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function $O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function yt(e,t){pW(e)&&(e="100%");var n=mW(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Uh(e){return Math.min(1,Math.max(0,e))}function nr(e){return parseInt(e,16)}function pW(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function mW(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Lr(e){return e.length==1?"0"+e:""+e}function Sc(e){return e<=1&&(e=e*100+"%"),e}function XO(e){return Math.round(parseFloat(e)*255).toString(16)}function KO(e){return nr(e)/255}var Ir=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ii(e){return!!Ir.CSS_UNIT.exec(e)}function gW(e){e=e.replace(XK,"").replace(KK,"").toLowerCase();var t=!1;if(uy[e])e=uy[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ir.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ir.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ir.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ir.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ir.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ir.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ir.hex8.exec(e))?{r:nr(n[1]),g:nr(n[2]),b:nr(n[3]),a:KO(n[4]),format:t?"name":"hex8"}:(n=Ir.hex6.exec(e))?{r:nr(n[1]),g:nr(n[2]),b:nr(n[3]),format:t?"name":"hex"}:(n=Ir.hex4.exec(e))?{r:nr(n[1]+""+n[1]),g:nr(n[2]+""+n[2]),b:nr(n[3]+""+n[3]),a:KO(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ir.hex3.exec(e))?{r:nr(n[1]+""+n[1]),g:nr(n[2]+""+n[2]),b:nr(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function bW(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const WO=450;function Pi(){const[e,t]=Un.useState(()=>(window.top||window).innerWidth<WO);return Un.useEffect(()=>{const n=window.top||window,r=()=>{t(n.innerWidth<WO)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}},[]),{isSmallScreen:e}}const zh={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function Ss(){var u,c,f,d,h,g,b,T,m,y,v,w,_,A,D,L,U,R,q,F,ne,K,W,H,V,j,te,O,he,je,M,Le,pe,Pe,Gt,Qe,Ut,lt,Dt,$t,ye,Ie,$e,Re,et;const{isSmallScreen:e}=Pi(),{theme:t,inline:n}=qt(),r=At=>n?"100%":At,i=(At,Be)=>e?`100dv${At}`:Be,a=(At,Be)=>r(i(At,Be)),s={zIndex:((u=t==null?void 0:t.widgetTrigger)==null?void 0:u.zIndex)??1e7,offset:{bottom:((f=(c=t==null?void 0:t.widgetTrigger)==null?void 0:c.offset)==null?void 0:f.bottom)??20,right:((h=(d=t==null?void 0:t.widgetTrigger)==null?void 0:d.offset)==null?void 0:h.right)??20},size:{button:((b=(g=t==null?void 0:t.widgetTrigger)==null?void 0:g.size)==null?void 0:b.button)??48,icon:((m=(T=t==null?void 0:t.widgetTrigger)==null?void 0:T.size)==null?void 0:m.icon)??24}},o={palette:(t==null?void 0:t.palette)??"neutral",primaryColor:(t==null?void 0:t.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:s,widgetContentContainer:{borderRadius:e?"0px":((y=t==null?void 0:t.widgetContentContainer)==null?void 0:y.borderRadius)??"32px",zIndex:((v=t==null?void 0:t.widgetContentContainer)==null?void 0:v.zIndex)??s.zIndex+1,outline:((w=t==null?void 0:t.widgetContentContainer)==null?void 0:w.outline)??"none",outlineColor:((_=t==null?void 0:t.widgetContentContainer)==null?void 0:_.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((A=t==null?void 0:t.widgetContentContainer)==null?void 0:A.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((D=t==null?void 0:t.widgetContentContainer)==null?void 0:D.transitionProperty)??"all",transitionTimingFunction:((L=t==null?void 0:t.widgetContentContainer)==null?void 0:L.transitionTimingFunction)??zh.transitionTimingFunction,transitionDuration:((U=t==null?void 0:t.widgetContentContainer)==null?void 0:U.transitionDuration)??zh.transitionDuration,offset:{side:e?0:s.offset.bottom+s.size.button+el.y*2+(((q=(R=t==null?void 0:t.widgetContentContainer)==null?void 0:R.offset)==null?void 0:q.side)??10),align:e?0:s.offset.right+(((ne=(F=t==null?void 0:t.widgetContentContainer)==null?void 0:F.offset)==null?void 0:ne.align)??0)}},screens:{welcome:{width:a("w",((W=(K=t==null?void 0:t.screens)==null?void 0:K.welcome)==null?void 0:W.width)??"400px"),minHeight:a("h",((V=(H=t==null?void 0:t.screens)==null?void 0:H.welcome)==null?void 0:V.minHeight)??"1px")},sessions:{width:a("w",((te=(j=t==null?void 0:t.screens)==null?void 0:j.sessions)==null?void 0:te.width)??"450px"),height:a("h",((he=(O=t==null?void 0:t.screens)==null?void 0:O.sessions)==null?void 0:he.height)??"600px")},chat:{width:a("w",((M=(je=t==null?void 0:t.screens)==null?void 0:je.chat)==null?void 0:M.width)??"525px"),height:a("h",((pe=(Le=t==null?void 0:t.screens)==null?void 0:Le.chat)==null?void 0:pe.height)??"700px"),withCanvas:{width:a("w",((Qe=(Gt=(Pe=t==null?void 0:t.screens)==null?void 0:Pe.chat)==null?void 0:Gt.withCanvas)==null?void 0:Qe.width)??"min(1050px, 100vw)"),height:a("h",((Dt=(lt=(Ut=t==null?void 0:t.screens)==null?void 0:Ut.chat)==null?void 0:lt.withCanvas)==null?void 0:Dt.height)??"min(800px, 100vh)"),transitionTimingFunction:((Ie=(ye=($t=t==null?void 0:t.screens)==null?void 0:$t.chat)==null?void 0:ye.withCanvas)==null?void 0:Ie.transitionTimingFunction)??zh.transitionTimingFunction,transitionDuration:((et=(Re=($e=t==null?void 0:t.screens)==null?void 0:$e.chat)==null?void 0:Re.withCanvas)==null?void 0:et.transitionDuration)??zh.transitionDuration}}}},l={maxHeight:a("h",`calc(
312
+ 100vh
313
+ - ${o.widgetTrigger.offset.bottom}px
314
+ - ${o.widgetContentContainer.offset.side}px
315
+ - ${el.y*2}px
316
+ )`),maxWidth:a("w",`calc(
317
+ 100vw
318
+ - ${o.widgetTrigger.offset.right*2}px
319
+ )`),minHeight:a("h",`min(
320
+ ${o.screens.welcome.minHeight},
321
+ ${o.screens.sessions.height},
322
+ ${o.screens.chat.height}
323
+ )`),minWidth:a("w",`min(
324
+ ${o.screens.welcome.width},
325
+ ${o.screens.sessions.width},
326
+ ${o.screens.chat.width}
327
+ )`)};return{theme:o,computed:l,cssVars:yW({palette:o.palette,primary:o.primaryColor})}}function yW({palette:e,primary:t}){const n=QO(e),r=ce(t).toHsl(),i=ce(t).isLight()?n[950]:n[50];return{"--opencx-primary":`${r.h} ${r.s*100}% ${r.l*100}%`,"--opencx-primary-foreground":i,"--opencx-background":n[100],"--opencx-foreground":n[950],"--opencx-destructive":"0 72.2% 50.6%","--opencx-destructive-foreground":n[50],"--opencx-accent":n[200],"--opencx-accent-foreground":"var(--opencx-foreground)","--opencx-secondary":n[200],"--opencx-secondary-foreground":"var(--opencx-foreground)","--opencx-muted":n[200],"--opencx-muted-foreground":n[500],"--opencx-input":n[300],"--opencx-border":n[300],"--opencx-ring":"var(--opencx-foreground)"}}function QO(e){const t={50:"0 0% 98%",100:"0 0% 96.1%",200:"0 0% 89.8%",300:"0 0% 83.1%",400:"0 0% 63.9%",500:"0 0% 45.1%",600:"0 0% 32.2%",700:"0 0% 25.1%",800:"0 0% 14.9%",900:"0 0% 9%",950:"0 0% 3.9%"},n={50:"60 9.1% 97.8%",100:"60 4.8% 95.9%",200:"20 5.9% 90%",300:"24 5.7% 82.9%",400:"24 5.4% 63.9%",500:"25 5.3% 44.7%",600:"33.3 5.5% 32.4%",700:"30 6.3% 25.1%",800:"12 6.5% 15.1%",900:"24 9.8% 10%",950:"20 14.3% 4.1%"},r={50:"0 0% 98%",100:"240 4.8% 95.9%",200:"240 5.9% 90%",300:"240 4.9% 83.9%",400:"240 5% 64.9%",500:"240 3.8% 46.1%",600:"240 5.2% 33.9%",700:"240 5.3% 26.1%",800:"240 3.7% 15.9%",900:"240 5.9% 10%",950:"240 10% 3.9%"},i={50:"210 40% 98%",100:"210 40% 96.1%",200:"214.3 31.8% 91.4%",300:"212.7 26.8% 83.9%",400:"215 20.2% 65.1%",500:"215.4 16.3% 46.9%",600:"215.3 19.3% 34.5%",700:"215.3 25% 26.7%",800:"217.2 32.6% 17.5%",900:"222.2 47.4% 11.2%",950:"222.2 84% 4.9%"};switch(e){case"neutral":return t;case"stone":return n;case"zinc":return r;case"slate":return i;default:return Rr(e,QO.name),t}}function ZO(){const{contentIframeRef:e}=hn(),{inline:t}=qt();return{setWidth:n=>{var r;(r=e==null?void 0:e.current)==null||r.style.setProperty("--opencx-widget-width",t?"100%":n)},setHeight:n=>{var r;(r=e==null?void 0:e.current)==null||r.style.setProperty("--opencx-widget-height",t?"100%":n)}}}function cy({width:e,height:t}){const{isSmallScreen:n}=Pi(),{setWidth:r,setHeight:i}=ZO();E.useEffect(()=>{e&&r(e),t&&i(t)},[n,t,e,r,i])}const JO=vC;function Ac({name:e,className:t}){const n=(()=>{switch(e){case"Check":return aF;case"CheckCheck":return iF;case"CircleCheck":return yC;case"CircleCheckBig":return cF;case"CircleX":return fF;case"Expand":return dF;case"Maximize":return xF;case"Maximize2":return vF;case"Minimize":return TF;case"Minimize2":return EF;case"Shrink":return SF;case"SquareCheck":return CF;case"SquareCheckBig":return AF;case"SquareX":return kF;case"X":return oh;case void 0:return JO;default:return Rr(e,Ac.name),JO}})();return x.jsx(n,{className:de("size-4",t)})}function eR({className:e,...t}){return x.jsx("div",{className:de("animate-pulse rounded-md bg-secondary",e),...t})}function fy(){var i;const{data:e}=Ld(),{routerState:{screen:t}}=Ci(),{textContent:n}=qt();return(()=>{var a,s;switch(t){case"chat":return(a=n==null?void 0:n.chatScreen)==null?void 0:a.headerTitle;case"sessions":return(s=n==null?void 0:n.sessionsScreen)==null?void 0:s.headerTitle;case"welcome":return;default:Rr(t,fy.name);return}})()??((i=e==null?void 0:e.data)==null?void 0:i.organizationName)??"Chat"}function vW(e){switch(e){case"chat":return Ve("chat/header");case"sessions":return Ve("sessions/header");case"welcome":return;default:Rr(e,fy.name);return}}function xW(){const{router:e}=qt(),{routerState:{screen:t},toSessionsScreen:n}=Ci();return t!=="chat"||e!=null&&e.chatScreenOnly?null:x.jsx(Yt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:n,children:x.jsx(oF,{className:"size-4"})})}function EW({button:e}){const{setIsOpen:t}=Po(),{isSmallScreen:n}=Pi();return n&&e.hideOnSmallScreen||!n&&e.hideOnLargeScreen?null:x.jsx(Yt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:()=>t(!1),children:x.jsx(Ac,{name:e.icon})})}function dy({button:e}){const[t,n]=E.useState(!1),{routerState:{screen:r}}=Ci(),{isSmallScreen:i}=Pi(),{theme:a}=Ss(),{setWidth:s,setHeight:o}=ZO();if(r!=="chat"&&r!=="sessions")return null;const l=(()=>{switch(r){case"chat":return a.screens.chat.height;case"sessions":return a.screens.sessions.height;default:return Rr(r,dy.name),a.screens.chat.height}})(),u=(()=>{switch(r){case"chat":return a.screens.chat.width;case"sessions":return a.screens.sessions.width;default:return Rr(r,dy.name),a.screens.chat.width}})(),c=()=>{n(f=>{const d=!f;return o(d?"100vh":l),s(d?`max(40vw, ${u})`:u),d})};return i&&e.hideOnSmallScreen||!i&&e.hideOnLargeScreen?null:x.jsx(Yt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:c,children:x.jsx(Ac,{name:e.icon||(t?e.shrinkIcon:e.expandIcon)})})}function tR({button:e}){var T,m;const[t,n]=E.useState(!1),{widgetCtx:r}=hn(),{setIsOpen:i}=Po(),{resolveSession:a,sessionState:s}=Ai(),{isSmallScreen:o}=Pi(),l=!s.session,u=((T=s.session)==null?void 0:T.isOpened)===!1,c=e.onResolved||"stay-in-chat",f=e.behaviorBeforeSessionCreation||"disabled",d=e.behaviorIfSessionIsResolved||"disabled",h=!!(s.isResolvingSession||l&&f==="disabled"||u&&d==="disabled"),g=async()=>{const{success:y,error:v}=await a();if(n(!1),!y)return console.error(v);switch(c){case"stay-in-chat":return;case"close-widget":i(!1);break;case"reset-chat":r.resetChat();break;case"reset-chat-and-close-widget":i(!1),r.resetChat();break;default:Rr(c,tR.name);break}},b=()=>{if(l)switch(f){case"disabled":return;case"close-widget":i(!1);break;default:Rr(f,b.name)}if(u)switch(d){case"disabled":return;case"close-widget":i(!1);break;case"reset-chat":r.resetChat();break;case"reset-chat-and-close-widget":i(!1),r.resetChat();break;default:Rr(d,b.name)}};return o&&e.hideOnSmallScreen||!o&&e.hideOnLargeScreen?null:((m=e.confirmation)==null?void 0:m.type)==="modal"&&!u&&!l?x.jsxs(IC,{open:t,onOpenChange:n,children:[x.jsx(PC,{asChild:!0,children:x.jsx(Yt,{variant:"ghost",size:"fit",className:"rounded-full",disabled:h,children:x.jsx(Ac,{name:e.icon})})}),x.jsxs(A1,{children:[x.jsx(UC,{children:x.jsx(C1,{children:e.confirmation.title||"Close conversation"})}),x.jsx(zC,{children:x.jsx(FC,{children:e.confirmation.description||"Are you sure you want to close this conversation?"})}),x.jsxs(jC,{children:[x.jsx(Yt,{variant:"secondary",onClick:()=>n(!1),disabled:s.isResolvingSession,children:e.confirmation.cancelButtonText||"No"}),x.jsx(Yt,{variant:"destructive",onClick:g,disabled:s.isResolvingSession,children:e.confirmation.confirmButtonText||"Yes"})]})]})]}):x.jsx(Yt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:u||l?b:g,disabled:h,children:x.jsx(Ac,{name:e.icon})})}function hy({button:e}){switch(e.functionality){case"close-widget":return x.jsx(EW,{button:e});case"expand-shrink":return x.jsx(dy,{button:e});case"resolve-session":return x.jsx(tR,{button:e});default:return Rr(e,hy.name),null}}const TW={functionality:"close-widget",hideOnLargeScreen:!0,icon:"X"};function wW(){const{routerState:{screen:e}}=Ci(),{headerButtons:t}=qt(),n=e==="chat"?t==null?void 0:t.chatScreen:e==="sessions"?t==null?void 0:t.sessionsScreen:[];return!n||n.length===0?x.jsx(hy,{button:TW}):x.jsx(x.Fragment,{children:n.map(r=>x.jsx(hy,{button:r},`${r.functionality}-${r.icon}`))})}function nR(){const{routerState:{screen:e}}=Ci(),{isLoading:t}=Ld(),n=Rg(),r=vW(e),i=fy();return x.jsx("header",{...r,className:"py-2 px-4 shrink-0",children:x.jsxs("div",{dir:n,className:"flex items-center gap-2",children:[x.jsx(xW,{}),x.jsx("div",{className:de("flex-1 h-8 flex items-center",e==="sessions"&&"pl-2"),children:x.jsx(In,{mode:"wait",children:t?x.jsx(rt,{snapExit:!0,children:x.jsx(eR,{className:"h-5 w-1/2"})},"skeleton"):x.jsx(rt,{children:x.jsx("h2",{className:"font-semibold",children:i})},"organization-name")})}),x.jsx(wW,{})]})})}function rR({className:e}){return x.jsx(yF,{className:de("size-4 animate-spin",e)})}function _W(){const{messagesState:{isInitialFetchLoading:e}}=va(),{isSmallScreen:t}=Pi(),{activeMode:n,Component:r}=T_();return{isCanvasOpen:!e&&!t&&!!n&&!!r}}function SW(){const{activeMode:e,Component:t}=T_(),{sendMessage:n}=va(),{createStateCheckpoint:r}=Ai(),[i,a]=E.useState(!1),s=async o=>{try{a(!0),await n(o)}catch(l){console.error(l)}finally{a(!1)}};return!e||!t?null:x.jsx(t,{react:Un,mode:e,createStateCheckpoint:r,sendMessage:s,isSendingMessage:i})}var iR={exports:{}},AW="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",CW=AW,kW=CW;function aR(){}function sR(){}sR.resetWarningCache=aR;var OW=function(){function e(r,i,a,s,o,l){if(l!==kW){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:sR,resetWarningCache:aR};return n.PropTypes=n,n};iR.exports=OW();var RW=iR.exports;const it=vl(RW),NW=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function dl(e,t,n){const r=DW(e),{webkitRelativePath:i}=e,a=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&oR(r,"path",a),oR(r,"relativePath",a),r}function DW(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=NW.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function oR(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const MW=[".DS_Store","Thumbs.db"];function LW(e){return _i(this,void 0,void 0,function*(){return jh(e)&&IW(e.dataTransfer)?zW(e.dataTransfer,e.type):PW(e)?BW(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?UW(e):[]})}function IW(e){return jh(e)}function PW(e){return jh(e)&&jh(e.target)}function jh(e){return typeof e=="object"&&e!==null}function BW(e){return py(e.target.files).map(t=>dl(t))}function UW(e){return _i(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>dl(n))})}function zW(e,t){return _i(this,void 0,void 0,function*(){if(e.items){const n=py(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(jW));return lR(uR(r))}return lR(py(e.files).map(n=>dl(n)))})}function lR(e){return e.filter(t=>MW.indexOf(t.name)===-1)}function py(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function jW(e){if(typeof e.webkitGetAsEntry!="function")return cR(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?fR(t):cR(e,t)}function uR(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?uR(n):[n]],[])}function cR(e,t){return _i(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const s=yield a.getFile();return s.handle=a,dl(s)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return dl(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function FW(e){return _i(this,void 0,void 0,function*(){return e.isDirectory?fR(e):HW(e)})}function fR(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function a(){t.readEntries(s=>_i(this,void 0,void 0,function*(){if(s.length){const o=Promise.all(s.map(FW));i.push(o),a()}else try{const o=yield Promise.all(i);n(o)}catch(o){r(o)}}),s=>{r(s)})}a()})}function HW(e){return _i(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=dl(r,e.fullPath);t(i)},r=>{n(r)})})})}var my=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(s){var o=s.trim().toLowerCase();return o.charAt(0)==="."?r.toLowerCase().endsWith(o):o.endsWith("/*")?a===o.replace(/\/.*$/,""):i===o})}return!0};function dR(e){return YW(e)||qW(e)||gR(e)||VW()}function VW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
328
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YW(e){if(Array.isArray(e))return gy(e)}function hR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(n),!0).forEach(function(r){mR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cc(e,t){return XW(e)||$W(e,t)||gR(e,t)||GW()}function GW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
329
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gR(e,t){if(e){if(typeof e=="string")return gy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gy(e,t)}}function gy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $W(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,s,o;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw o}}return r}}function XW(e){if(Array.isArray(e))return e}var KW=typeof my=="function"?my:my.default,WW="file-invalid-type",QW="file-too-large",ZW="file-too-small",JW="too-many-files",eQ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:WW,message:"File type must be ".concat(r)}},bR=function(t){return{code:QW,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},yR=function(t){return{code:ZW,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},tQ={code:JW,message:"Too many files"};function vR(e,t){var n=e.type==="application/x-moz-file"||KW(e,t);return[n,n?null:eQ(t)]}function xR(e,t,n){if(As(e.size))if(As(t)&&As(n)){if(e.size>n)return[!1,bR(n)];if(e.size<t)return[!1,yR(t)]}else{if(As(t)&&e.size<t)return[!1,yR(t)];if(As(n)&&e.size>n)return[!1,bR(n)]}return[!0,null]}function As(e){return e!=null}function nQ(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,s=e.maxFiles,o=e.validator;return!a&&t.length>1||a&&s>=1&&t.length>s?!1:t.every(function(l){var u=vR(l,n),c=Cc(u,1),f=c[0],d=xR(l,r,i),h=Cc(d,1),g=h[0],b=o?o(l):null;return f&&g&&!b})}function Fh(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Hh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function ER(e){e.preventDefault()}function rQ(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function iQ(e){return e.indexOf("Edge/")!==-1}function aQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return rQ(e)||iQ(e)}function ii(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return t.some(function(o){return!Fh(r)&&o&&o.apply(void 0,[r].concat(a)),Fh(r)})}}function sQ(){return"showOpenFilePicker"in window}function oQ(e){if(As(e)){var t=Object.entries(e).filter(function(n){var r=Cc(n,2),i=r[0],a=r[1],s=!0;return TR(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(a)||!a.every(wR))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var i=Cc(r,2),a=i[0],s=i[1];return pR(pR({},n),{},mR({},a,s))},{});return[{description:"Files",accept:t}]}return e}function lQ(e){if(As(e))return Object.entries(e).reduce(function(t,n){var r=Cc(n,2),i=r[0],a=r[1];return[].concat(dR(t),[i],dR(a))},[]).filter(function(t){return TR(t)||wR(t)}).join(",")}function uQ(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function cQ(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function TR(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function wR(e){return/^.*\.[\w]+$/.test(e)}var fQ=["children"],dQ=["open"],hQ=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],pQ=["refKey","onChange","onClick"];function mQ(e){return yQ(e)||bQ(e)||_R(e)||gQ()}function gQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
330
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yQ(e){if(Array.isArray(e))return yy(e)}function by(e,t){return EQ(e)||xQ(e,t)||_R(e,t)||vQ()}function vQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
331
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _R(e,t){if(e){if(typeof e=="string")return yy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yy(e,t)}}function yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,s,o;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw o}}return r}}function EQ(e){if(Array.isArray(e))return e}function SR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SR(Object(n),!0).forEach(function(r){vy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vh(e,t){if(e==null)return{};var n=TQ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var xy=E.forwardRef(function(e,t){var n=e.children,r=Vh(e,fQ),i=CR(r),a=i.open,s=Vh(i,dQ);return E.useImperativeHandle(t,function(){return{open:a}},[a]),Un.createElement(E.Fragment,null,n(Et(Et({},s),{},{open:a})))});xy.displayName="Dropzone";var AR={disabled:!1,getFilesFromEvent:LW,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};xy.defaultProps=AR,xy.propTypes={children:it.func,accept:it.objectOf(it.arrayOf(it.string)),multiple:it.bool,preventDropOnDocument:it.bool,noClick:it.bool,noKeyboard:it.bool,noDrag:it.bool,noDragEventsBubbling:it.bool,minSize:it.number,maxSize:it.number,maxFiles:it.number,disabled:it.bool,getFilesFromEvent:it.func,onFileDialogCancel:it.func,onFileDialogOpen:it.func,useFsAccessApi:it.bool,autoFocus:it.bool,onDragEnter:it.func,onDragLeave:it.func,onDragOver:it.func,onDrop:it.func,onDropAccepted:it.func,onDropRejected:it.func,onError:it.func,validator:it.func};var Ey={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function CR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Et(Et({},AR),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,o=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,T=t.onFileDialogOpen,m=t.useFsAccessApi,y=t.autoFocus,v=t.preventDropOnDocument,w=t.noClick,_=t.noKeyboard,A=t.noDrag,D=t.noDragEventsBubbling,L=t.onError,U=t.validator,R=E.useMemo(function(){return lQ(n)},[n]),q=E.useMemo(function(){return oQ(n)},[n]),F=E.useMemo(function(){return typeof T=="function"?T:kR},[T]),ne=E.useMemo(function(){return typeof b=="function"?b:kR},[b]),K=E.useRef(null),W=E.useRef(null),H=E.useReducer(wQ,Ey),V=by(H,2),j=V[0],te=V[1],O=j.isFocused,he=j.isFileDialogActive,je=E.useRef(typeof window<"u"&&window.isSecureContext&&m&&sQ()),M=function(){!je.current&&he&&setTimeout(function(){if(W.current){var se=W.current.files;se.length||(te({type:"closeDialog"}),ne())}},300)};E.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[W,he,ne,je]);var Le=E.useRef([]),pe=function(se){K.current&&K.current.contains(se.target)||(se.preventDefault(),Le.current=[])};E.useEffect(function(){return v&&(document.addEventListener("dragover",ER,!1),document.addEventListener("drop",pe,!1)),function(){v&&(document.removeEventListener("dragover",ER),document.removeEventListener("drop",pe))}},[K,v]),E.useEffect(function(){return!r&&y&&K.current&&K.current.focus(),function(){}},[K,y,r]);var Pe=E.useCallback(function(re){L?L(re):console.error(re)},[L]),Gt=E.useCallback(function(re){re.preventDefault(),re.persist(),dt(re),Le.current=[].concat(mQ(Le.current),[re.target]),Hh(re)&&Promise.resolve(i(re)).then(function(se){if(!(Fh(re)&&!D)){var B=se.length,G=B>0&&nQ({files:se,accept:R,minSize:s,maxSize:a,multiple:o,maxFiles:l,validator:U}),oe=B>0&&!G;te({isDragAccept:G,isDragReject:oe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(re)}}).catch(function(se){return Pe(se)})},[i,u,Pe,D,R,s,a,o,l,U]),Qe=E.useCallback(function(re){re.preventDefault(),re.persist(),dt(re);var se=Hh(re);if(se&&re.dataTransfer)try{re.dataTransfer.dropEffect="copy"}catch{}return se&&f&&f(re),!1},[f,D]),Ut=E.useCallback(function(re){re.preventDefault(),re.persist(),dt(re);var se=Le.current.filter(function(G){return K.current&&K.current.contains(G)}),B=se.indexOf(re.target);B!==-1&&se.splice(B,1),Le.current=se,!(se.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Hh(re)&&c&&c(re))},[K,c,D]),lt=E.useCallback(function(re,se){var B=[],G=[];re.forEach(function(oe){var be=vR(oe,R),ve=by(be,2),tn=ve[0],Pn=ve[1],Sn=xR(oe,s,a),ir=by(Sn,2),Bn=ir[0],zt=ir[1],ar=U?U(oe):null;if(tn&&Bn&&!ar)B.push(oe);else{var An=[Pn,zt];ar&&(An=An.concat(ar)),G.push({file:oe,errors:An.filter(function(Ui){return Ui})})}}),(!o&&B.length>1||o&&l>=1&&B.length>l)&&(B.forEach(function(oe){G.push({file:oe,errors:[tQ]})}),B.splice(0)),te({acceptedFiles:B,fileRejections:G,isDragReject:G.length>0,type:"setFiles"}),d&&d(B,G,se),G.length>0&&g&&g(G,se),B.length>0&&h&&h(B,se)},[te,o,R,s,a,l,d,h,g,U]),Dt=E.useCallback(function(re){re.preventDefault(),re.persist(),dt(re),Le.current=[],Hh(re)&&Promise.resolve(i(re)).then(function(se){Fh(re)&&!D||lt(se,re)}).catch(function(se){return Pe(se)}),te({type:"reset"})},[i,lt,Pe,D]),$t=E.useCallback(function(){if(je.current){te({type:"openDialog"}),F();var re={multiple:o,types:q};window.showOpenFilePicker(re).then(function(se){return i(se)}).then(function(se){lt(se,null),te({type:"closeDialog"})}).catch(function(se){uQ(se)?(ne(se),te({type:"closeDialog"})):cQ(se)?(je.current=!1,W.current?(W.current.value=null,W.current.click()):Pe(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Pe(se)});return}W.current&&(te({type:"openDialog"}),F(),W.current.value=null,W.current.click())},[te,F,ne,m,lt,Pe,q,o]),ye=E.useCallback(function(re){!K.current||!K.current.isEqualNode(re.target)||(re.key===" "||re.key==="Enter"||re.keyCode===32||re.keyCode===13)&&(re.preventDefault(),$t())},[K,$t]),Ie=E.useCallback(function(){te({type:"focus"})},[]),$e=E.useCallback(function(){te({type:"blur"})},[]),Re=E.useCallback(function(){w||(aQ()?setTimeout($t,0):$t())},[w,$t]),et=function(se){return r?null:se},At=function(se){return _?null:et(se)},Be=function(se){return A?null:et(se)},dt=function(se){D&&se.stopPropagation()},_n=E.useMemo(function(){return function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},se=re.refKey,B=se===void 0?"ref":se,G=re.role,oe=re.onKeyDown,be=re.onFocus,ve=re.onBlur,tn=re.onClick,Pn=re.onDragEnter,Sn=re.onDragOver,ir=re.onDragLeave,Bn=re.onDrop,zt=Vh(re,hQ);return Et(Et(vy({onKeyDown:At(ii(oe,ye)),onFocus:At(ii(be,Ie)),onBlur:At(ii(ve,$e)),onClick:et(ii(tn,Re)),onDragEnter:Be(ii(Pn,Gt)),onDragOver:Be(ii(Sn,Qe)),onDragLeave:Be(ii(ir,Ut)),onDrop:Be(ii(Bn,Dt)),role:typeof G=="string"&&G!==""?G:"presentation"},B,K),!r&&!_?{tabIndex:0}:{}),zt)}},[K,ye,Ie,$e,Re,Gt,Qe,Ut,Dt,_,A,r]),Ba=E.useCallback(function(re){re.stopPropagation()},[]),Ua=E.useMemo(function(){return function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},se=re.refKey,B=se===void 0?"ref":se,G=re.onChange,oe=re.onClick,be=Vh(re,pQ),ve=vy({accept:R,multiple:o,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:et(ii(G,Dt)),onClick:et(ii(oe,Ba)),tabIndex:-1},B,W);return Et(Et({},ve),be)}},[W,n,o,Dt,r]);return Et(Et({},j),{},{isFocused:O&&!r,getRootProps:_n,getInputProps:Ua,rootRef:K,inputRef:W,open:et($t)})}function wQ(e,t){switch(t.type){case"focus":return Et(Et({},e),{},{isFocused:!0});case"blur":return Et(Et({},e),{},{isFocused:!1});case"openDialog":return Et(Et({},Ey),{},{isFileDialogActive:!0});case"closeDialog":return Et(Et({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Et(Et({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Et(Et({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Et({},Ey);default:return e}}function kR(){}const OR={en:{"write-a-message":"Write a message...","session-closed-lead":"Your issue has been resolved!","new-conversation":"New conversation","welcome-title":"Welcome to our support chat","welcome-description":"We're here to help! Start a conversation and we'll get back to you as soon as possible.","your-name":"Your name","your-email":"Your email address","start-chat":"Talk to support","starting-chat":"Connecting...","i-need-more-help":"I need more help","this-was-helpful":"This was helpful",optional:"Optional","no-conversations-yet":"No conversations yet","back-to-conversations":"Back to conversations","closed-conversations":"Closed conversations"},ar:{"write-a-message":"اكتب رسالة...","session-closed-lead":"تم حل مشكلتك!","new-conversation":"محادثة جديدة","welcome-title":"مرحبًا بك في دردشة الدعم الخاصة بنا","welcome-description":"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.","your-name":"اسمك","your-email":"عنوان بريدك الإلكتروني","start-chat":"تحدث إلى الدعم","starting-chat":"جاري الاتصال...","i-need-more-help":"أحتاج المزيد من المساعدة","this-was-helpful":"كان هذا مفيدًا",optional:"اختياري","no-conversations-yet":"لا يوجد محادثات","back-to-conversations":"العودة إلى المحادثات","closed-conversations":"المحادثات المغلقة"},nl:{"write-a-message":"Schrijf een bericht...","session-closed-lead":"Uw probleem is opgelost!","new-conversation":"Nieuw gesprek","welcome-title":"Welkom bij onze supportchat","welcome-description":"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.","your-name":"Uw naam","your-email":"Uw e-mailadres","start-chat":"Praat met ondersteuning","starting-chat":"Verbinding maken...","i-need-more-help":"Ik heb nog meer hulp nodig","this-was-helpful":"Mijn vraag is opgelost",optional:"Optioneel","no-conversations-yet":"Nog geen gesprekken","back-to-conversations":"Terug naar gesprekken","closed-conversations":"Afgesloten gesprekken"},fr:{"write-a-message":"Écrivez un message...","session-closed-lead":"Votre problème a été résolu !","new-conversation":"Nouvelle conversation","welcome-title":"Bienvenue dans notre chat de support","welcome-description":"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.","your-name":"Votre nom","your-email":"Votre adresse e-mail","start-chat":"Parler au support","starting-chat":"Connexion...","i-need-more-help":"Je besoin d'aide plus","this-was-helpful":"C'était utile",optional:"Optionnel","no-conversations-yet":"Aucune conversation pour le moment","back-to-conversations":"Retour aux conversations","closed-conversations":"Conversations fermées"},de:{"write-a-message":"Nachricht schreiben...","session-closed-lead":"Ihr Problem wurde gelöst!","new-conversation":"Neue Konversation","welcome-title":"Willkommen in unserem Support-Chat","welcome-description":"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.","your-name":"Ihr Name","your-email":"Ihre E-Mail-Adresse","start-chat":"Mit dem Support sprechen","starting-chat":"Verbindung wird hergestellt...","i-need-more-help":"Ich brauche weitere Hilfe","this-was-helpful":"Dies war hilfreich",optional:"Optional","no-conversations-yet":"noch keine Gespräche","back-to-conversations":"Zurück zur Konversationen","closed-conversations":"Geschlossene Konversationen"},pt:{"write-a-message":"Escreva uma mensagem...","session-closed-lead":"Seu problema foi resolvido!","new-conversation":"Nova conversa","welcome-title":"Bem-vindo ao nosso chat de suporte","welcome-description":"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.","your-name":"Seu nome","your-email":"Seu endereço de email","start-chat":"Falar com o suporte","starting-chat":"Conectando...","i-need-more-help":"preciso de mais ajuda","this-was-helpful":"Isso foi útil",optional:"Opcional","no-conversations-yet":"Nenhuma conversa ainda","back-to-conversations":"Voltar para conversas","closed-conversations":"Conversas fechadas"},es:{"write-a-message":"Escribe un mensaje...","session-closed-lead":"¡Tu problema fue resuelto!","new-conversation":"Nueva conversación","welcome-title":"Bienvenido a nuestro chat de soporte","welcome-description":"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.","your-name":"Tu nombre","your-email":"Tu correo electrónico","start-chat":"Hablar con soporte","starting-chat":"Conectando...","i-need-more-help":"Necesito más ayuda","this-was-helpful":"Esto fue útil",optional:"Opcional","no-conversations-yet":"Sin conversaciones aún","back-to-conversations":"Volver a conversaciones","closed-conversations":"Conversaciones cerradas"},tr:{"write-a-message":"Bir mesaj yazın...","session-closed-lead":"Sorununuz çözüldü!","new-conversation":"Yeni konuşma","welcome-title":"Destek sohbetimize hoş geldiniz","welcome-description":"Yardım etmek için buradayız! Bir konuşma başlatın, en kısa sürede size geri döneceğiz.","your-name":"Adınız","your-email":"E-posta adresiniz","start-chat":"Destekle konuş","starting-chat":"Bağlanıyor...","i-need-more-help":"Daha fazla yardıma ihtiyacım var","this-was-helpful":"Bu yardımcı oldu",optional:"İsteğe bağlı","no-conversations-yet":"Henüz konuşma yok","back-to-conversations":"Konuşmalara geri dön","closed-conversations":"Kapatılan konuşmalar"}},_Q=Object.keys(OR),SQ=e=>_Q.includes(e);function AQ(e,t){const n=OR[t];return n&&n[e]||""}function kc(){const{widgetCtx:{config:e}}=hn();return E.useMemo(()=>{const n=SQ(e.language)?e.language:"en";return{get:r=>AQ(r,n),lang:n}},[e.language])}function Ty({suggestion:e,className:t,...n}){const{sendMessage:r}=va(),i=()=>{const a=e.trim();a&&r({content:a})};return x.jsx(Yt,{...Ve("chat/suggested_reply_btn"),size:"sm",className:de("rounded-xl w-fit",t),...n,onClick:i,children:e})}function CQ(){const e=kc(),t=[e.get("i-need-more-help"),e.get("this-was-helpful")];return x.jsx("div",{...Ve("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:t.map(n=>x.jsx(Ty,{suggestion:n,className:"flex-1"},n))})}function kQ({file:{status:e,file:t,error:n},onCancel:r}){const[i,a]=E.useState(null);E.useEffect(()=>{if(!t.type.startsWith("image/"))return;const l=new FileReader;return l.onload=()=>a(l.result),l.onerror=()=>console.error("Error reading file"),l.readAsDataURL(t),()=>l.abort()},[t]);const s=()=>{switch(e){case"uploading":return x.jsx(bF,{className:"size-4 animate-spin"});case"error":return x.jsx(uF,{className:"size-4 text-destructive"});default:return null}},o=()=>{const l=t.type.split("/")[0];return l==="image"&&i?x.jsx("img",{src:typeof i=="string"?i:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?x.jsx(hF,{}):l==="video"?x.jsx(pF,{}):x.jsx(mF,{})};return x.jsx(_c,{side:"bottom",content:e==="error"?x.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:x.jsxs("div",{className:de(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[x.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),x.jsx("button",{type:"button",className:de("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:r,children:x.jsx(oh,{className:"size-4 text-primary-foreground"})}),x.jsx(o,{})]})})}function OQ(){var D;const{isSmallScreen:e}=Pi(),t=E.useRef(null),{sendMessage:n}=va(),{sessionState:r}=Ai(),i=kc(),a=Rg(),[s,o]=E.useState(""),{allFiles:l,emptyTheFiles:u,handleCancelUpload:c,appendFiles:f,isUploading:d,successFiles:h}=v8(),g=!!((D=r.session)!=null&&D.isHandedOff),{isAwaitingBotReply:b}=x_(),T=L=>{f(L)},m=!s.trim()&&h.length===0,y=async()=>{if(b||m)return;d&&console.info("please wait for the file(s) to upload");const L=s.trim();n({content:L,attachments:h.flatMap(U=>U.fileUrl?[{url:U.fileUrl,type:U.file.type,name:U.file.name,id:U.id,size:U.file.size}]:[])}),o(""),u()},{getRootProps:v,getInputProps:w,open:_}=CR({onDrop:T,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:g?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"]}}),A=L=>{const U=L.clipboardData;U&&U.files.length>0&&T(Array.from(U.files))};return x.jsxs("div",{...Ve("chat/input_box/root"),className:"p-2 relative space-y-1",...v(),children:[x.jsx("input",{...w()}),x.jsxs("div",{...Ve("chat/input_box/inner_root"),className:de("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[x.jsxs("div",{...Ve("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[l.length>0&&x.jsx("div",{...Ve("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:x.jsx(In,{mode:"popLayout",children:l.map(L=>x.jsx(rt,{snapExit:!0,children:x.jsx(kQ,{onCancel:()=>c(L.id),file:L})},L.id))})}),x.jsx("textarea",{...Ve("chat/input_box/textarea"),onPaste:A,ref:t,id:"chat-input",dir:a,value:s,rows:3,className:de("max-h-16 [field-sizing:content]","w-full resize-none px-2",l.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground","rtl:placeholder:text-right",e?"text-[16px]":"text-sm"),onChange:L=>o(L.target.value),onKeyDown:async L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),y())},placeholder:i.get("write-a-message")})]}),x.jsxs("div",{dir:a,className:"gap-2 flex justify-between rtl:text-right",children:[x.jsx(_c,{side:"top",align:"start",content:"attach files, (maximum size 5mb)",children:x.jsx(Yt,{onClick:_,size:"fit",variant:"ghost",className:de("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:x.jsx(In,{mode:"wait",children:g?x.jsx(rt,{children:x.jsx(wF,{className:"size-4"})},"paper-clip"):x.jsx(rt,{children:x.jsx(gF,{className:"size-4"})},"image-icon")})})}),x.jsx(_c,{content:"send message",side:"top",align:"end",children:x.jsx(Yt,{size:"fit",onClick:y,disabled:b||d||m,className:"rounded-full size-8 flex items-center justify-center p-0",children:x.jsx(In,{mode:"wait",children:b||d?x.jsx(rt,{snapExit:!0,children:x.jsx(vC,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):x.jsx(rt,{snapExit:!0,children:x.jsx(rF,{className:"size-4"})},"send")})})})]})]})]})}function RQ(){const{widgetCtx:e}=hn(),{router:t}=qt(),{canCreateNewSession:n}=Ai(),{toSessionsScreen:r}=Ci(),i=kc();return x.jsx("div",{className:"p-2",children:x.jsxs("div",{className:"p-2 bg-muted rounded-3xl space-y-2",children:[x.jsxs("div",{className:"pl-2 flex items-center gap-1",children:[x.jsx(yC,{className:"size-4 text-emerald-600"}),x.jsx("h2",{className:"text-sm font-medium",dir:"auto",children:i.get("session-closed-lead")})]}),x.jsx("div",{children:n||t!=null&&t.chatScreenOnly?x.jsx(Yt,{onClick:e.resetChat,className:"rounded-2xl w-full",children:i.get("new-conversation")}):x.jsx(Yt,{onClick:r,className:"rounded-2xl w-full",children:i.get("back-to-conversations")})})]})})}function NQ(){var s;const{initialQuestions:e,initialQuestionsPosition:t,thisWasHelpfulOrNot:n}=qt(),{sessionState:r}=Ai(),{messagesState:i}=va(),a=i.messages.length===0;return x.jsx("footer",{children:x.jsx("div",{children:x.jsx(In,{mode:"wait",children:r.session&&!((s=r.session)!=null&&s.isOpened)?x.jsx(rt,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:x.jsx(RQ,{})},"session-closed"):x.jsxs(rt,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:[i.lastAIResMightSolveUserIssue&&(n==null?void 0:n.enabled)!==!1&&x.jsx(CQ,{}),a&&e&&t!=="below-initial-messages"&&x.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:e==null?void 0:e.map((o,l)=>x.jsx(Ty,{suggestion:o},`${o}-${l}`))}),x.jsx(OQ,{})]},"chat-input")})})})}function DQ({isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n,...r}){const{componentStore:i}=hn();if(r.data.action){const s=i.getComponent(r.data.action.name);if(s)return x.jsx(s,{...r,id:r.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}const a=i.getComponent(r.component);return a?x.jsx(a,{...r,id:r.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n}):x.jsx(hh,{...r,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}function wy({messages:e,agent:t,suggestedReplies:n}){return x.jsxs("div",{...Ve("chat/agent_msg_group/root"),className:de("flex items-end gap-2"),children:[x.jsx(_c,{content:t==null?void 0:t.name,side:"right",align:"end",children:x.jsx(ay,{...Ve("chat/agent_msg_group/root/avatar"),agent:t,className:"hidden"})}),x.jsxs("div",{className:de("flex-1 flex flex-col gap-2"),children:[x.jsxs("div",{...Ve("chat/agent_msg_group/avatar_and_msgs/root"),className:de("flex items-end gap-2"),children:[x.jsx(_c,{content:t==null?void 0:t.name,side:"right",align:"end",children:x.jsx(ay,{...Ve("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:t})}),x.jsx("div",{...Ve("chat/agent_msg_group/avatar_and_msgs/msgs"),className:de("flex-1 flex flex-col gap-1"),children:e.map((r,i,a)=>x.jsx(DQ,{isFirstInGroup:i===0,isLastInGroup:i===a.length-1,isAloneInGroup:a.length===1,...r},r.id))})]}),n&&n.length>0&&x.jsx("div",{...Ve("chat/agent_msg_group/suggestions"),className:de("flex flex-col gap-1 pl-8"),children:n==null?void 0:n.map((r,i)=>x.jsx(Ty,{suggestion:r},`${r}-${i}`))})]})]})}function MQ({message:e,isFirstInGroup:t,isLastInGroup:n,isAloneInGroup:r}){var i;return x.jsxs("div",{...Ve("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&x.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(i=e.attachments)==null?void 0:i.map(a=>x.jsx(HC,{attachment:a},a.id))}),e.content.length>0&&x.jsx("div",{...Ve("chat/user_msg/msg"),"data-first":t,"data-last":n,"data-alone":r,className:de("transition-all","w-fit py-3 px-4 rounded-3xl text-sm","bg-primary text-primary-foreground","break-words [word-break:break-word]","whitespace-pre-wrap",t&&!r&&"rounded-br-md",n&&!r&&"rounded-tr-md",!t&&!n&&!r&&"rounded-r-md"),children:e.content})]})}function LQ({messages:e}){return x.jsx("div",{...Ve("chat/user_msg_group/root"),className:de("group","flex flex-col gap-1 justify-end items-end"),children:e.map((t,n,r)=>x.jsx(MQ,{message:t,isFirstInGroup:n===0,isLastInGroup:n===r.length-1,isAloneInGroup:r.length===1},t.id))})}function IQ(e){const t=[];let n=null;return e.forEach(r=>{var i,a,s,o;(!n||((i=n[0])==null?void 0:i.type)!==r.type)&&(n=[],t.push(n)),((a=n[0])==null?void 0:a.type)==="FROM_AGENT"&&r.type==="FROM_AGENT"&&((s=r.agent)==null?void 0:s.id)!==((o=n[0].agent)==null?void 0:o.id)&&(n=[],t.push(n)),n.push(r)}),t}function PQ(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_USER"}function BQ(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_BOT"}function UQ(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_AGENT"}function zQ(){const{messagesState:{messages:e}}=va(),{isAwaitingBotReply:t}=x_(),{componentStore:n}=hn(),r=qt(),{initialQuestions:i,initialQuestionsPosition:a}=r,s=E.useMemo(()=>IQ(e),[e]),o=r.persistentInitialMessages||[],l=(()=>{var h;return e.length?((h=r.advancedInitialMessages)==null?void 0:h.filter(g=>!!g.persistent))||[]:r.advancedInitialMessages||[]})(),u=(()=>{var h;return l.length?[]:e.length?[]:(h=r.initialMessages)!=null&&h.length?r.initialMessages:["Hello, how can I help you?"]})(),c=n.getComponent("loading"),f=E.useRef(null);function d(){setTimeout(()=>{const h=f.current;h&&(h.scrollTop=h.scrollHeight)},0)}return E.useEffect(()=>{d()},[e]),x.jsxs("div",{...Ve("chat/msgs/root"),ref:f,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[x.jsx("div",{...Ve("chat/persistent_initial_msgs/root"),children:o.map((h,g,b)=>x.jsx(hh,{component:"bot_message",data:{message:h},id:h,type:"FROM_BOT",timestamp:Date.now().toString(),dataComponentNames:{messageContainer:"chat/persistent_initial_msg/root",message:"chat/persistent_initial_msg/msg"},classNames:{messageContainer:de("w-full flex flex-col items-center text-center"),message:"w-full bg-transparent border-none shadow-none text-xs"},isFirstInGroup:g===0,isLastInGroup:g===b.length-1,isAloneInGroup:b.length===1},`${h}-${g}`))}),l.length>0&&x.jsx(wy,{messages:l.map(({message:h},g)=>({component:"bot_message",data:{message:h},id:`${g}-${h}`,type:"FROM_BOT",timestamp:Date.now().toString()})),suggestedReplies:e.length===0&&a==="below-initial-messages"?i:void 0,agent:r.bot?{...r.bot,isAi:!0,id:null}:void 0}),e.length===0&&u.length>0&&x.jsx(wy,{messages:u.map((h,g)=>({component:"bot_message",data:{message:h},id:`${g}-${h}`,type:"FROM_BOT",timestamp:Date.now().toString()})),suggestedReplies:a==="below-initial-messages"?i:void 0,agent:r.bot?{...r.bot,isAi:!0,id:null}:void 0}),s.map(h=>{var T,m,y;const g=(T=h==null?void 0:h[0])==null?void 0:T.type,b=(m=h[0])==null?void 0:m.id;if(!g||!b)return null;if(PQ(h))return x.jsx(LQ,{messages:h},b);if(BQ(h)||UQ(h)){const v=(y=h[0])==null?void 0:y.agent;return x.jsx(wy,{messages:h,agent:v},b)}return null}),t&&c&&x.jsx(c,{agent:r.bot})]})}function jQ(){const{messagesState:{isInitialFetchLoading:e}}=va(),{sessionState:{session:t}}=Ai(),{isCanvasOpen:n}=_W(),{theme:r}=Ss();cy({width:n?r.screens.chat.withCanvas.width:r.screens.chat.width,height:n?r.screens.chat.withCanvas.height:r.screens.chat.height});const i=E.useRef((t==null?void 0:t.id)||"chat").current;return x.jsx("div",{...Ve("chat/root"),className:de("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:x.jsxs("div",{className:"size-full justify-between flex flex-col",children:[x.jsx(nR,{}),x.jsx(In,{mode:"wait",children:e?x.jsx(rt,{className:"flex flex-col items-center justify-center w-full flex-1",children:x.jsx(rR,{})},"loading"):x.jsxs(rt,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[x.jsxs("div",{...Ve("chat/main/root"),className:de("flex flex-col h-full overflow-auto transition-all",n?"w-2/5":"w-full"),style:{transitionTimingFunction:r.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:r.screens.chat.withCanvas.transitionDuration},children:[x.jsx(zQ,{}),x.jsx(NQ,{})]}),x.jsx("div",{...Ve("chat/canvas/root"),className:de("h-full overflow-auto transition-all",n?"w-3/5":"w-0"),style:{transitionTimingFunction:r.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:r.screens.chat.withCanvas.transitionDuration},children:x.jsx(SW,{})})]},i)})]})})}function FQ({className:e}){return x.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:de("text-primary-foreground",e),children:x.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function RR({className:e}){const{token:t}=qt();return x.jsx("div",{className:de("flex items-center justify-center gap-2 p-2 pt-0",e),children:x.jsx(Ni,{children:x.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:de("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[x.jsx("span",{children:"Powered by"}),x.jsx("span",{children:" "}),x.jsxs("span",{className:"flex items-center gap-[1px]",children:[x.jsx("span",{children:x.jsx(FQ,{className:"size-3 inline-block"})}),x.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function HQ({children:e}){return x.jsx("p",{className:"pl-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:e})}function NR({session:e,className:t}){const{bot:n}=qt(),{toChatScreen:r}=Ci(),i=e.assignee.kind==="human"?e.assignee.name||"Support Agent":(n==null?void 0:n.name)||"AI Support Agent",a=e.assignee.kind==="human"?e.assignee.avatarUrl||"":(n==null?void 0:n.avatar)||"";return x.jsxs(Yt,{variant:"ghost",size:"lg",className:de("rounded-full p-2 pr-4 flex text-start justify-between w-full whitespace-normal",t),onClick:()=>r(e.id),children:[x.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[x.jsx(In,{mode:"wait",children:x.jsx(rt,{snapExit:!0,children:x.jsxs(ny,{className:"size-10",children:[x.jsx(ry,{src:a,alt:"Agent Icon"}),x.jsx(iy,{children:x.jsx(OF,{className:"size-4"})})]})})}),x.jsxs("div",{className:"flex-1",children:[x.jsx(In,{mode:"wait",children:x.jsx(rt,{snapExit:!0,children:i},i)}),x.jsx(In,{mode:"wait",children:e.lastMessage?x.jsx(rt,{snapExit:!0,children:x.jsx(R3,{remarkPlugins:[QA],rehypePlugins:[nA],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):x.jsx(rt,{className:"w-1/2",snapExit:!0,children:x.jsx(eR,{className:"h-4 w-full"})},"skeleton")})]})]}),x.jsx(lF,{className:"size-4 text-muted-foreground shrink-0"})]})}function VQ(){const e=kc(),{toChatScreen:t}=Ci(),{sessionsState:{data:n,isInitialFetchLoading:r},openSessions:i,closedSessions:a,canCreateNewSession:s}=Ai();return x.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:x.jsx(In,{mode:"wait",children:r?x.jsx(rt,{className:"flex-1 flex items-center justify-center",children:x.jsx(rR,{})},"loading"):x.jsx(rt,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?x.jsxs(x.Fragment,{children:[x.jsxs(In,{children:[i.length>0&&x.jsx(rt,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:i.map(o=>x.jsx(NR,{session:o},o.id))},"open-sessions"),a.length>0&&x.jsxs(rt,{className:"space-y-2",delay:.2,snapExit:!0,children:[x.jsx(HQ,{children:e.get("closed-conversations")}),a.map(o=>x.jsx(NR,{session:o,className:"opacity-50 hover:opacity-100"},o.id))]},"closed-sessions")]}),s&&x.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:E.createElement(Yt,{...Ve("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e.get("new-conversation"))})]}):x.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[x.jsx("div",{className:"flex-1 flex items-center justify-center",children:x.jsx("p",{className:"text-muted-foreground",children:e.get("no-conversations-yet")})}),E.createElement(Yt,{...Ve("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e.get("new-conversation"))]})},"sessions")})})}function qQ(){const{theme:e}=Ss();return cy({width:e.screens.sessions.width,height:e.screens.sessions.height}),x.jsx("div",{...Ve("sessions/root"),className:de("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:x.jsxs("div",{className:"size-full flex flex-col",children:[x.jsx(nR,{}),x.jsx(VQ,{}),x.jsx(RR,{})]})})}var DR={};const YQ=m4(mL);var qh={},MR;function GQ(){if(MR)return qh;MR=1,Object.defineProperty(qh,"__esModule",{value:!0});var e=E;function t(){var n=e.useRef(!1),r=e.useCallback(function(){return n.current},[]);return e.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),r}return qh.default=t,qh}Object.defineProperty(DR,"__esModule",{value:!0});var _y=YQ,Sy=E,$Q=_y.__importDefault(GQ());function XQ(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=Sy.useRef(0),i=$Q.default(),a=Sy.useState(n),s=a[0],o=a[1],l=Sy.useCallback(function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var f=++r.current;return s.loading||o(function(d){return _y.__assign(_y.__assign({},d),{loading:!0})}),e.apply(void 0,u).then(function(d){return i()&&f===r.current&&o({value:d,loading:!1}),d},function(d){return i()&&f===r.current&&o({error:d,loading:!1}),d})},t);return[s,l]}var KQ=DR.default=XQ,qe;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const s of i)a[s]=s;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),s={};for(const o of a)s[o]=i[o];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&a.push(s);return a},e.find=(i,a)=>{for(const s of i)if(a(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(qe||(qe={}));var LR;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(LR||(LR={}));const le=qe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Da=e=>{switch(typeof e){case"undefined":return le.undefined;case"string":return le.string;case"number":return Number.isNaN(e)?le.nan:le.number;case"boolean":return le.boolean;case"function":return le.function;case"bigint":return le.bigint;case"symbol":return le.symbol;case"object":return Array.isArray(e)?le.array:e===null?le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?le.promise:typeof Map<"u"&&e instanceof Map?le.map:typeof Set<"u"&&e instanceof Set?le.set:typeof Date<"u"&&e instanceof Date?le.date:le.object;default:return le.unknown}},ee=qe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Bi extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const s of a.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let o=r,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(s))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof Bi))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,qe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Bi.create=e=>new Bi(e);const Ay=(e,t)=>{let n;switch(e.code){case ee.invalid_type:e.received===le.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ee.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,qe.jsonStringifyReplacer)}`;break;case ee.unrecognized_keys:n=`Unrecognized key(s) in object: ${qe.joinValues(e.keys,", ")}`;break;case ee.invalid_union:n="Invalid input";break;case ee.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${qe.joinValues(e.options)}`;break;case ee.invalid_enum_value:n=`Invalid enum value. Expected ${qe.joinValues(e.options)}, received '${e.received}'`;break;case ee.invalid_arguments:n="Invalid function arguments";break;case ee.invalid_return_type:n="Invalid function return type";break;case ee.invalid_date:n="Invalid date";break;case ee.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:qe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ee.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ee.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ee.custom:n="Invalid input";break;case ee.invalid_intersection_types:n="Intersection results could not be merged";break;case ee.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ee.not_finite:n="Number must be finite";break;default:n=t.defaultError,qe.assertNever(e)}return{message:n}};let WQ=Ay;function QQ(){return WQ}const ZQ=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let o="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)o=u(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}};function ie(e,t){const n=QQ(),r=ZQ({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ay?void 0:Ay].filter(i=>!!i)});e.common.issues.push(r)}class rr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return xe;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,s=await i.value;r.push({key:a,value:s})}return rr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:s}=i;if(a.status==="aborted"||s.status==="aborted")return xe;a.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[a.value]=s.value)}return{status:t.value,value:r}}}const xe=Object.freeze({status:"aborted"}),Oc=e=>({status:"dirty",value:e}),Tr=e=>({status:"valid",value:e}),IR=e=>e.status==="aborted",PR=e=>e.status==="dirty",hl=e=>e.status==="valid",Yh=e=>typeof Promise<"u"&&e instanceof Promise;var ue;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ue||(ue={}));class Ma{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const BR=(e,t)=>{if(hl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Bi(e.common.issues);return this._error=n,this._error}}};function Oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,o)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??r??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??n??o.defaultError}},description:i}}class He{get description(){return this._def.description}_getType(t){return Da(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Da(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new rr,ctx:{common:t.parent.common,data:t.data,parsedType:Da(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Yh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Da(t)},i=this._parseSync({data:t,path:r.path,parent:r});return BR(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Da(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return hl(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(i=(r=a==null?void 0:a.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>hl(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Da(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(Yh(i)?i:Promise.resolve(i));return BR(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const s=t(i),o=()=>a.addIssue({code:ee.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new gl({schema:this,typeName:Ee.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Pa.create(this,this._def)}nullable(){return bl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ai.create(this)}promise(){return Kh.create(this,this._def)}or(t){return $h.create([this,t],this._def)}and(t){return Xh.create(this,t,this._def)}transform(t){return new gl({...Oe(this._def),schema:this,typeName:Ee.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Oy({...Oe(this._def),innerType:this,defaultValue:n,typeName:Ee.ZodDefault})}brand(){return new EZ({typeName:Ee.ZodBranded,type:this,...Oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ry({...Oe(this._def),innerType:this,catchValue:n,typeName:Ee.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ny.create(this,t)}readonly(){return Dy.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const JQ=/^c[^\s-]{8,}$/i,eZ=/^[0-9a-z]+$/,tZ=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nZ=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rZ=/^[a-z0-9_-]{21}$/i,iZ=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,aZ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sZ=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,oZ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Cy;const lZ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,uZ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,cZ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,fZ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,dZ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,hZ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,UR="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",pZ=new RegExp(`^${UR}$`);function zR(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function mZ(e){return new RegExp(`^${zR(e)}$`)}function gZ(e){let t=`${UR}T${zR(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function bZ(e,t){return!!((t==="v4"||!t)&&lZ.test(e)||(t==="v6"||!t)&&cZ.test(e))}function yZ(e,t){if(!iZ.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function vZ(e,t){return!!((t==="v4"||!t)&&uZ.test(e)||(t==="v6"||!t)&&fZ.test(e))}class La extends He{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==le.string){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_type,expected:le.string,received:a.parsedType}),xe}const r=new rr;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const s=t.data.length>a.value,o=t.data.length<a.value;(s||o)&&(i=this._getOrReturnCtx(t,i),s?ie(i,{code:ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&ie(i,{code:ee.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")sZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"email",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")Cy||(Cy=new RegExp(oZ,"u")),Cy.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"emoji",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")nZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"uuid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")rZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"nanoid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")JQ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"cuid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")eZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"cuid2",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")tZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"ulid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),ie(i,{validation:"url",code:ee.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"regex",code:ee.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?gZ(a).test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?pZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?mZ(a).test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?aZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"duration",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?bZ(t.data,a.version)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"ip",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?yZ(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"jwt",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?vZ(t.data,a.version)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"cidr",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?dZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"base64",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?hZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"base64url",code:ee.invalid_string,message:a.message}),r.dirty()):qe.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:ee.invalid_string,...ue.errToObj(r)})}_addCheck(t){return new La({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ue.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ue.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ue.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ue.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ue.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ue.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ue.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ue.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ue.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ue.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ue.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ue.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ue.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...ue.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ue.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ue.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ue.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ue.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ue.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ue.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ue.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ue.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ue.errToObj(n)})}nonempty(t){return this.min(1,ue.errToObj(t))}trim(){return new La({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new La({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new La({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}La.create=e=>new La({checks:[],typeName:Ee.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});function xZ(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}class Rc extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==le.number){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_type,expected:le.number,received:a.parsedType}),xe}let r;const i=new rr;for(const a of this._def.checks)a.kind==="int"?qe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?xZ(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.not_finite,message:a.message}),i.dirty()):qe.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,r,i){return new Rc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ue.toString(i)}]})}_addCheck(t){return new Rc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ue.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ue.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ue.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ue.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&qe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Rc.create=e=>new Rc({checks:[],typeName:Ee.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class Nc extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==le.bigint)return this._getInvalidInput(t);let r;const i=new rr;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):qe.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ie(n,{code:ee.invalid_type,expected:le.bigint,received:n.parsedType}),xe}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,r,i){return new Nc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ue.toString(i)}]})}_addCheck(t){return new Nc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Nc.create=e=>new Nc({checks:[],typeName:Ee.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});class jR extends He{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==le.boolean){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.boolean,received:r.parsedType}),xe}return Tr(t.data)}}jR.create=e=>new jR({typeName:Ee.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class Gh extends He{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==le.date){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_type,expected:le.date,received:a.parsedType}),xe}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_date}),xe}const r=new rr;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):qe.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Gh({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ue.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ue.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Gh.create=e=>new Gh({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ee.ZodDate,...Oe(e)});class FR extends He{_parse(t){if(this._getType(t)!==le.symbol){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.symbol,received:r.parsedType}),xe}return Tr(t.data)}}FR.create=e=>new FR({typeName:Ee.ZodSymbol,...Oe(e)});class HR extends He{_parse(t){if(this._getType(t)!==le.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.undefined,received:r.parsedType}),xe}return Tr(t.data)}}HR.create=e=>new HR({typeName:Ee.ZodUndefined,...Oe(e)});class VR extends He{_parse(t){if(this._getType(t)!==le.null){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.null,received:r.parsedType}),xe}return Tr(t.data)}}VR.create=e=>new VR({typeName:Ee.ZodNull,...Oe(e)});class qR extends He{constructor(){super(...arguments),this._any=!0}_parse(t){return Tr(t.data)}}qR.create=e=>new qR({typeName:Ee.ZodAny,...Oe(e)});class YR extends He{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Tr(t.data)}}YR.create=e=>new YR({typeName:Ee.ZodUnknown,...Oe(e)});class Ia extends He{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:ee.invalid_type,expected:le.never,received:n.parsedType}),xe}}Ia.create=e=>new Ia({typeName:Ee.ZodNever,...Oe(e)});class GR extends He{_parse(t){if(this._getType(t)!==le.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.void,received:r.parsedType}),xe}return Tr(t.data)}}GR.create=e=>new GR({typeName:Ee.ZodVoid,...Oe(e)});class ai extends He{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==le.array)return ie(n,{code:ee.invalid_type,expected:le.array,received:n.parsedType}),xe;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,o=n.data.length<i.exactLength.value;(s||o)&&(ie(n,{code:s?ee.too_big:ee.too_small,minimum:o?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(ie(n,{code:ee.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(ie(n,{code:ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>i.type._parseAsync(new Ma(n,s,n.path,o)))).then(s=>rr.mergeArray(r,s));const a=[...n.data].map((s,o)=>i.type._parseSync(new Ma(n,s,n.path,o)));return rr.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new ai({...this._def,minLength:{value:t,message:ue.toString(n)}})}max(t,n){return new ai({...this._def,maxLength:{value:t,message:ue.toString(n)}})}length(t,n){return new ai({...this._def,exactLength:{value:t,message:ue.toString(n)}})}nonempty(t){return this.min(1,t)}}ai.create=(e,t)=>new ai({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ee.ZodArray,...Oe(t)});function pl(e){if(e instanceof Bt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Pa.create(pl(r))}return new Bt({...e._def,shape:()=>t})}else return e instanceof ai?new ai({...e._def,type:pl(e.element)}):e instanceof Pa?Pa.create(pl(e.unwrap())):e instanceof bl?bl.create(pl(e.unwrap())):e instanceof Cs?Cs.create(e.items.map(t=>pl(t))):e}class Bt extends He{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=qe.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==le.object){const u=this._getOrReturnCtx(t);return ie(u,{code:ee.invalid_type,expected:le.object,received:u.parsedType}),xe}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ia&&this._def.unknownKeys==="strip"))for(const u in i.data)s.includes(u)||o.push(u);const l=[];for(const u of s){const c=a[u],f=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ma(i,f,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Ia){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(u==="strict")o.length>0&&(ie(i,{code:ee.unrecognized_keys,keys:o}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const f=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ma(i,f,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const f=await c.key,d=await c.value;u.push({key:f,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>rr.mergeObjectSync(r,u)):rr.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ue.errToObj,new Bt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,s;const i=((s=(a=this._def).errorMap)==null?void 0:s.call(a,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:ue.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Bt({...this._def,unknownKeys:"strip"})}passthrough(){return new Bt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Bt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Bt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ee.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Bt({...this._def,catchall:t})}pick(t){const n={};for(const r of qe.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Bt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of qe.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Bt({...this._def,shape:()=>n})}deepPartial(){return pl(this)}partial(t){const n={};for(const r of qe.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new Bt({...this._def,shape:()=>n})}required(t){const n={};for(const r of qe.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Pa;)a=a._def.innerType;n[r]=a}return new Bt({...this._def,shape:()=>n})}keyof(){return WR(qe.objectKeys(this.shape))}}Bt.create=(e,t)=>new Bt({shape:()=>e,unknownKeys:"strip",catchall:Ia.create(),typeName:Ee.ZodObject,...Oe(t)}),Bt.strictCreate=(e,t)=>new Bt({shape:()=>e,unknownKeys:"strict",catchall:Ia.create(),typeName:Ee.ZodObject,...Oe(t)}),Bt.lazycreate=(e,t)=>new Bt({shape:e,unknownKeys:"strip",catchall:Ia.create(),typeName:Ee.ZodObject,...Oe(t)});class $h extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(o=>new Bi(o.ctx.common.issues));return ie(n,{code:ee.invalid_union,unionErrors:s}),xe}if(n.common.async)return Promise.all(r.map(async a=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let a;const s=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!a&&(a={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const o=s.map(l=>new Bi(l));return ie(n,{code:ee.invalid_union,unionErrors:o}),xe}}get options(){return this._def.options}}$h.create=(e,t)=>new $h({options:e,typeName:Ee.ZodUnion,...Oe(t)});function ky(e,t){const n=Da(e),r=Da(t);if(e===t)return{valid:!0,data:e};if(n===le.object&&r===le.object){const i=qe.objectKeys(t),a=qe.objectKeys(e).filter(o=>i.indexOf(o)!==-1),s={...e,...t};for(const o of a){const l=ky(e[o],t[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===le.array&&r===le.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const s=e[a],o=t[a],l=ky(s,o);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===le.date&&r===le.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Xh extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,s)=>{if(IR(a)||IR(s))return xe;const o=ky(a.value,s.value);return o.valid?((PR(a)||PR(s))&&n.dirty(),{status:n.value,value:o.data}):(ie(r,{code:ee.invalid_intersection_types}),xe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,s])=>i(a,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Xh.create=(e,t,n)=>new Xh({left:e,right:t,typeName:Ee.ZodIntersection,...Oe(n)});class Cs extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.array)return ie(r,{code:ee.invalid_type,expected:le.array,received:r.parsedType}),xe;if(r.data.length<this._def.items.length)return ie(r,{code:ee.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&r.data.length>this._def.items.length&&(ie(r,{code:ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((s,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new Ma(r,s,r.path,o)):null}).filter(s=>!!s);return r.common.async?Promise.all(a).then(s=>rr.mergeArray(n,s)):rr.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Cs({...this._def,rest:t})}}Cs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Cs({items:e,typeName:Ee.ZodTuple,rest:null,...Oe(t)})};class $R extends He{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.map)return ie(r,{code:ee.invalid_type,expected:le.map,received:r.parsedType}),xe;const i=this._def.keyType,a=this._def.valueType,s=[...r.data.entries()].map(([o,l],u)=>({key:i._parse(new Ma(r,o,r.path,[u,"key"])),value:a._parse(new Ma(r,l,r.path,[u,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return xe;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const l of s){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return xe;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}$R.create=(e,t,n)=>new $R({valueType:t,keyType:e,typeName:Ee.ZodMap,...Oe(n)});class Dc extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.set)return ie(r,{code:ee.invalid_type,expected:le.set,received:r.parsedType}),xe;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(ie(r,{code:ee.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(ie(r,{code:ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function s(l){const u=new Set;for(const c of l){if(c.status==="aborted")return xe;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...r.data.values()].map((l,u)=>a._parse(new Ma(r,l,r.path,u)));return r.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(t,n){return new Dc({...this._def,minSize:{value:t,message:ue.toString(n)}})}max(t,n){return new Dc({...this._def,maxSize:{value:t,message:ue.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Dc.create=(e,t)=>new Dc({valueType:e,minSize:null,maxSize:null,typeName:Ee.ZodSet,...Oe(t)});class XR extends He{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}XR.create=(e,t)=>new XR({getter:e,typeName:Ee.ZodLazy,...Oe(t)});class KR extends He{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:ee.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:t.data}}get value(){return this._def.value}}KR.create=(e,t)=>new KR({value:e,typeName:Ee.ZodLiteral,...Oe(t)});function WR(e,t){return new ml({values:e,typeName:Ee.ZodEnum,...Oe(t)})}class ml extends He{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{expected:qe.joinValues(r),received:n.parsedType,code:ee.invalid_type}),xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{received:n.data,code:ee.invalid_enum_value,options:r}),xe}return Tr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return ml.create(t,{...this._def,...n})}exclude(t,n=this._def){return ml.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ml.create=WR;class QR extends He{_parse(t){const n=qe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==le.string&&r.parsedType!==le.number){const i=qe.objectValues(n);return ie(r,{expected:qe.joinValues(i),received:r.parsedType,code:ee.invalid_type}),xe}if(this._cache||(this._cache=new Set(qe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=qe.objectValues(n);return ie(r,{received:r.data,code:ee.invalid_enum_value,options:i}),xe}return Tr(t.data)}get enum(){return this._def.values}}QR.create=(e,t)=>new QR({values:e,typeName:Ee.ZodNativeEnum,...Oe(t)});class Kh extends He{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==le.promise&&n.common.async===!1)return ie(n,{code:ee.invalid_type,expected:le.promise,received:n.parsedType}),xe;const r=n.parsedType===le.promise?n.data:Promise.resolve(n.data);return Tr(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Kh.create=(e,t)=>new Kh({type:e,typeName:Ee.ZodPromise,...Oe(t)});class gl extends He{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:s=>{ie(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const s=i.transform(r.data,a);if(r.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return xe;const l=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return l.status==="aborted"?xe:l.status==="dirty"||n.value==="dirty"?Oc(l.value):l});{if(n.value==="aborted")return xe;const o=this._def.schema._parseSync({data:s,path:r.path,parent:r});return o.status==="aborted"?xe:o.status==="dirty"||n.value==="dirty"?Oc(o.value):o}}if(i.type==="refinement"){const s=o=>{const l=i.refinement(o,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?xe:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?xe:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!hl(s))return xe;const o=i.transform(s.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>hl(s)?Promise.resolve(i.transform(s.value,a)).then(o=>({status:n.value,value:o})):xe);qe.assertNever(i)}}gl.create=(e,t,n)=>new gl({schema:e,typeName:Ee.ZodEffects,effect:t,...Oe(n)}),gl.createWithPreprocess=(e,t,n)=>new gl({schema:t,effect:{type:"preprocess",transform:e},typeName:Ee.ZodEffects,...Oe(n)});class Pa extends He{_parse(t){return this._getType(t)===le.undefined?Tr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Pa.create=(e,t)=>new Pa({innerType:e,typeName:Ee.ZodOptional,...Oe(t)});class bl extends He{_parse(t){return this._getType(t)===le.null?Tr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bl.create=(e,t)=>new bl({innerType:e,typeName:Ee.ZodNullable,...Oe(t)});class Oy extends He{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===le.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Oy.create=(e,t)=>new Oy({innerType:e,typeName:Ee.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Oe(t)});class Ry extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Yh(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Bi(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bi(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ry.create=(e,t)=>new Ry({innerType:e,typeName:Ee.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Oe(t)});class ZR extends He{_parse(t){if(this._getType(t)!==le.nan){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.nan,received:r.parsedType}),xe}return{status:"valid",value:t.data}}}ZR.create=e=>new ZR({typeName:Ee.ZodNaN,...Oe(e)});class EZ extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ny extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?xe:a.status==="dirty"?(n.dirty(),Oc(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?xe:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Ny({in:t,out:n,typeName:Ee.ZodPipeline})}}class Dy extends He{_parse(t){const n=this._def.innerType._parse(t),r=i=>(hl(i)&&(i.value=Object.freeze(i.value)),i);return Yh(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Dy.create=(e,t)=>new Dy({innerType:e,typeName:Ee.ZodReadonly,...Oe(t)});var Ee;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ee||(Ee={}));const JR=La.create;Ia.create,ai.create;const TZ=Bt.create;$h.create,Xh.create,Cs.create,ml.create,Kh.create,Pa.create,bl.create;const Wh=E.forwardRef(({className:e,type:t,...n},r)=>{const{isSmallScreen:i}=Pi(),a=Rg();return x.jsx(Ni,{ref:r,children:x.jsx("input",{dir:a,type:t,className:de(i?"text-[16px]":"text-sm","flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rtl:placeholder:text-right","rounded-2xl px-4","border shadow-sm",e),...n})})});Wh.displayName="Input";function wZ(){const{contentIframeRef:e}=hn(),{inline:t}=qt(),n=E.useRef(null);return E.useEffect(()=>{const r=e==null?void 0:e.current;if(r&&n.current){const i=n.current;let a;const s=new ResizeObserver(()=>{a=requestAnimationFrame(()=>{const o=i.offsetHeight;r.style.setProperty("--opencx-widget-height",t?"100%":`${o.toFixed(1)}px`)})});return s.observe(i),()=>{cancelAnimationFrame(a),s.unobserve(i)}}},[e,t]),{observedElementRef:n}}const _Z=TZ({name:JR().min(2),email:JR().email()});function SZ(){var m,y,v,w,_,A,D,L,U;const{setIsOpen:e}=Po(),{createUnverifiedContact:t}=y8(),{isSmallScreen:n}=Pi(),r=qt(),{theme:i}=Ss(),a=kc(),{data:s}=Ld(),{observedElementRef:o}=wZ();cy({height:void 0,width:i.screens.welcome.width});const[l,u]=E.useState(((m=r.prefillUserData)==null?void 0:m.name)||""),[c,f]=E.useState(((y=r.prefillUserData)==null?void 0:y.email)||""),d=(r.extraDataCollectionFields||[]).filter(R=>R!=="name"&&R!=="email"&&!!R),[h,g]=E.useState({}),[b,T]=KQ(async R=>{R.preventDefault();const q=_Z.safeParse({name:l,email:c});q.success&&await t({email:q.data.email,non_verified_name:q.data.name},Object.values(h).filter(Boolean).length?h:void 0)},[l,c,h]);return x.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:i.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:x.jsxs("div",{ref:o,className:de("flex flex-col",n&&"h-full","bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"),children:[x.jsxs("div",{dir:"auto",className:de("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[n&&x.jsx(rt,{className:"absolute top-6 right-6",children:x.jsx(Yt,{size:"selfless",onClick:()=>e(!1),children:x.jsx(oh,{className:"size-4"})})}),x.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(v=r.assets)!=null&&v.organizationLogo?x.jsx("img",{src:(w=r.assets)==null?void 0:w.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):x.jsx("h2",{className:"font-bold text-sm",dir:"auto",children:(_=s==null?void 0:s.data)==null?void 0:_.organizationName})}),x.jsxs("div",{className:"space-y-2",children:[x.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",dir:"auto",children:((D=(A=r.textContent)==null?void 0:A.welcomeScreen)==null?void 0:D.title)||a.get("welcome-title")}),x.jsx("p",{className:"text-sm",dir:"auto",children:((U=(L=r.textContent)==null?void 0:L.welcomeScreen)==null?void 0:U.description)||a.get("welcome-description")})]})]}),x.jsxs("div",{className:de("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),dir:"auto",children:[x.jsxs("form",{onSubmit:T,className:"space-y-2",children:[x.jsx(Wh,{value:l,onChange:R=>u(R.target.value),required:!0,placeholder:a.get("your-name"),name:"name"}),x.jsx(Wh,{required:!0,value:c,onChange:R=>f(R.target.value),type:"email",placeholder:a.get("your-email"),name:"email"}),d.map(R=>x.jsx(Wh,{value:h[R],onChange:q=>g(F=>({...F,[R]:q.target.value})),placeholder:`${R} (${a.get("optional")})`},R)),x.jsxs(Yt,{disabled:b.loading,className:"w-full",size:"lg",children:[b.loading?a.get("starting-chat"):a.get("start-chat"),x.jsx(_F,{className:"size-4 rtl:-scale-100"})]})]}),x.jsx(RR,{})]})]})})}function e4(){Ld();const{routerState:{screen:e}}=Ci();return x.jsxs("div",{className:"relative bg-background size-full",children:[x.jsx(lh.Container,{}),x.jsx(In,{mode:"wait",children:(()=>{switch(e){case"welcome":return x.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:x.jsx(SZ,{})},e);case"sessions":return x.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:x.jsx(qQ,{})},e);case"chat":return x.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:x.jsx(jQ,{})},e);default:return Rr(e,e4.name),null}})()})]})}const AZ=`<!DOCTYPE html>
332
+ <html>
333
+ <head>
334
+ <style>
335
+ ${NO}
336
+ html, body {
337
+ height: 100%;
338
+ width: 100%;
339
+ margin: 0;
340
+ padding: 0;
341
+ font-size: 16px;
342
+ }
343
+ </style>
344
+ <meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content">
345
+ </head>
346
+ <body>
347
+ </body>
348
+ </html>`;function t4(){const{isOpen:e}=Po(),{version:t,contentIframeRef:n}=hn(),{cssOverrides:r,inline:i}=qt(),{theme:a,cssVars:s,computed:o}=Ss();return x.jsx(Tc.div,{animate:e?"visible":"hidden",initial:"hidden",variants:{hidden:{opacity:0,y:8,transitionEnd:{display:"none"},transition:{duration:.15}},visible:{opacity:1,y:0,display:"block",height:i?"100%":void 0}},children:x.jsxs(S1,{ref:n,initialContent:AZ,allowFullScreen:!0,title:"OpenCX Live Chat",style:{"--opencx-widget-width":o.minWidth,"--opencx-widget-height":o.minHeight,minWidth:o.minWidth,width:"var(--opencx-widget-width)",maxWidth:o.maxWidth,minHeight:o.minHeight,height:"var(--opencx-widget-height)",maxHeight:o.maxHeight,overflow:"hidden",outline:a.widgetContentContainer.outline,outlineColor:a.widgetContentContainer.outlineColor,borderRadius:a.widgetContentContainer.borderRadius,boxShadow:a.widgetContentContainer.boxShadow,transitionProperty:a.widgetContentContainer.transitionProperty,transitionTimingFunction:a.widgetContentContainer.transitionTimingFunction,transitionDuration:a.widgetContentContainer.transitionDuration,boxSizing:"border-box",borderWidth:"0px"},children:[r&&x.jsx("style",{children:r}),x.jsx(YK,{delayDuration:200,disableHoverableContent:!0,children:x.jsx("div",{style:{display:"contents"},children:x.jsx("div",{style:{...s},"data-version":t,className:de("antialiased font-sans size-full overflow-hidden isolate relative text-secondary-foreground"),children:x.jsx(e4,{})})})})]})})}function CZ(){const{theme:e}=Ss();return x.jsx(lI,{onInteractOutside:t=>t.preventDefault(),forceMount:!0,style:{zIndex:e.widgetContentContainer.zIndex,fontSize:"16px"},side:"top",align:"end",sideOffset:e.widgetContentContainer.offset.side,alignOffset:e.widgetContentContainer.offset.align,avoidCollisions:!1,asChild:!0,children:x.jsx(t4,{})})}function kZ({className:e,style:t}){return x.jsxs("svg",{width:"32",height:"30",viewBox:"0 0 32 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:de("text-primary-foreground",e),style:t,children:[x.jsx("path",{d:"M0 6.94263C0 3.62892 2.68629 0.942627 6 0.942627H26C29.3137 0.942627 32 3.62892 32 6.94263V17.9426C32 21.2563 29.3137 23.9426 26 23.9426H6C2.68629 23.9426 0 21.2563 0 17.9426V6.94263Z",fill:"currentColor"}),x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9945 23.8935L26.237 23.8934C26.1982 24.3557 26.1712 25.2778 26.1704 26.2318C26.1688 28.2839 26.1376 28.7041 25.974 28.868C25.583 29.2598 25.2686 29.0967 24.0616 27.8754C23.4162 27.2222 22.1141 25.9522 21.1682 25.0531L19.9945 23.8935Z",fill:"currentColor"})]})}const OZ=`<!DOCTYPE html>
349
+ <html>
350
+ <head>
351
+ <style>
352
+ ${NO}
353
+ html, body {
354
+ height: 100%;
355
+ width: 100%;
356
+ margin: 0;
357
+ padding: 0;
358
+ font-size: 16px;
359
+ }
360
+ </style>
361
+ </head>
362
+ <body>
363
+ </body>
364
+ </html>`;function RZ(){var a,s;const{isOpen:e}=Po(),{cssOverrides:t,assets:n}=qt(),{theme:r,cssVars:i}=Ss();return x.jsxs(S1,{initialContent:OZ,style:{height:`calc(${r.widgetTrigger.size.button}px + ${el.x*2}px)`,width:`calc(${r.widgetTrigger.size.button}px + ${el.y*2}px)`,fontSize:"16px",position:"fixed",zIndex:r.widgetTrigger.zIndex,right:r.widgetTrigger.offset.right,bottom:r.widgetTrigger.offset.bottom,boxSizing:"border-box",borderWidth:"0px"},children:[t&&x.jsx("style",{children:t}),x.jsx("div",{style:{...i,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:x.jsx(Vw,{className:de("font-sans flex items-center justify-center rounded-full"),style:{height:r.widgetTrigger.size.button,width:r.widgetTrigger.size.button},children:x.jsx(Ni,{children:x.jsx("div",{...Ve("trigger/btn"),className:de("relative size-full rounded-full","flex items-center justify-center","overflow-hidden","transition-all","bg-primary","text-primary-foreground"),children:x.jsx(In,{mode:"wait",children:e?x.jsx(rt,{snapExit:!0,fadeIn:"up",overrides:{initial:{rotate:45},animate:{rotate:0}},children:(a=n==null?void 0:n.widgetTrigger)!=null&&a.closeIcon?x.jsx("img",{src:n.widgetTrigger.closeIcon,alt:"Widget trigger close icon",style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon}}):x.jsx(sF,{style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon}})},"x-icon"):x.jsx(rt,{snapExit:!0,overrides:{initial:{rotate:45},animate:{rotate:0}},children:(s=n==null?void 0:n.widgetTrigger)!=null&&s.openIcon?x.jsx("img",{src:n.widgetTrigger.openIcon,alt:"Widget trigger open icon",style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon}}):x.jsx(kZ,{style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon},className:"mt-0.5 opacity-95"})},"message-icon")})})})})})]})}function NZ(){return x.jsx(oI,{style:{position:"fixed",right:0,bottom:0}})}function DZ(){const{isOpen:e,setIsOpen:t}=Po();return x.jsxs(sI,{open:e,onOpenChange:t,children:[x.jsx(NZ,{}),x.jsx(RZ,{}),x.jsx(CZ,{})]})}const MZ=[{key:"loading",component:TK},{key:"fallback",component:qq},{key:"bot_message",component:hh},{key:"agent_message",component:hh}],LZ={get:async e=>localStorage.getItem(e),set:async(e,t)=>{localStorage.setItem(e,t)},remove:async e=>{localStorage.removeItem(e)}};function IZ({options:e,components:t=[],loadingComponent:n}){return x.jsx(b8,{components:[...MZ,...t],options:e,storage:LZ,loadingComponent:n,children:x.jsx(x8,{children:e.inline?x.jsx(t4,{}):x.jsx(DZ,{})})})}const PZ="opencx-root";function BZ(e){UZ(PZ,x.jsx(IZ,{options:e}))}window.initOpenScript=BZ,window.openCXWidgetVersion=f5;function UZ(e,t){let n=document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,document.body.appendChild(n)),c5.createRoot(n).render(t)}})();
365
+ //# sourceMappingURL=script.js.map