@shelf/global-renderer 3.1.0 → 3.2.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.
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see renderWikiContent.js.LICENSE.txt */
2
- (()=>{var e,t,n={80:e=>{"use strict";e.exports=function(e){if("number"!=typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0;let n=Math.abs(e);if(t&&(n=-n),0===n)return"0 B";const r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.min(Math.floor(Math.log(n)/Math.log(1024)),r.length-1),i=Number(n/1024**o),s=r[o];return`${i>=10||i%1==0?Math.round(i):i.toFixed(1)} ${s}`}},424:(e,t,n)=>{var r=n(7604),o=n(4247),i=n(555),s=Math.max,l=Math.min;e.exports=function(e,t,n){var a,c,u,d,f,p,h=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=a,r=c;return a=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=u}function w(){var e=o();if(b(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return m?l(n,u-(e-h)):n}(e))}function x(e){return f=void 0,y&&a?v(e):(a=c=void 0,d)}function S(){var e=o(),n=b(e);if(a=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),g?v(e):d}(p);if(m)return clearTimeout(f),f=setTimeout(w,t),v(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?s(i(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==f&&clearTimeout(f),h=0,a=p=c=f=void 0},S.flush=function(){return void 0===f?d:x(o())},S}},474:(e,t,n)=>{var r=n(4358).Symbol;e.exports=r},516:()=>{Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec},555:(e,t,n)=>{var r=n(3352),o=n(7604),i=n(3051),s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,a=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||a.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},827:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},1515:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},2033:(e,t,n)=>{"use strict";var r=n(5666),o=n(7140),i=n(5219);function s(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 l(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function a(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function u(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function d(e){if(a(e)!==e)throw Error(s(188))}function f(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=f(e)))return t;e=e.sibling}return null}var p=Object.assign,h=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),k=Symbol.for("react.lazy");Symbol.for("react.scope");var T=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var N=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var A=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var P=Symbol.for("react.client.reference");function L(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===P?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case y:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case _:return"Suspense";case C:return"SuspenseList";case T:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case m:return"Portal";case x:return e.displayName||"Context";case w:return(e._context.displayName||"Context")+".Consumer";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:L(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return L(e(t))}catch(e){}}return null}var O=Array.isArray,M=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},I=[],$=-1;function j(e){return{current:e}}function z(e){0>$||(e.current=I[$],I[$]=null,$--)}function B(e,t){$++,I[$]=e.current,e.current=t}var U,H,K=j(null),W=j(null),V=j(null),q=j(null);function G(e,t){switch(B(V,t),B(W,e),B(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=vd(t=yd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(K),B(K,e)}function Y(){z(K),z(W),z(V)}function J(e){null!==e.memoizedState&&B(q,e);var t=K.current,n=vd(t,e.type);t!==n&&(B(W,e),B(K,n))}function X(e){W.current===e&&(z(K),z(W)),q.current===e&&(z(q),df._currentValue=D)}function Q(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||"",H=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+U+e+H}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),s=i[0],l=i[1];if(s&&l){var a=s.split("\n"),c=l.split("\n");for(o=r=0;r<a.length&&!a[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===a.length||o===c.length)for(r=a.length-1,o=c.length-1;1<=r&&0<=o&&a[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(a[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||a[r]!==c[o]){var u="\n"+a[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Q(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return e.child!==t&&null!==t?Q("Suspense Fallback"):Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return Q("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var re=Object.prototype.hasOwnProperty,oe=r.unstable_scheduleCallback,ie=r.unstable_cancelCallback,se=r.unstable_shouldYield,le=r.unstable_requestPaint,ae=r.unstable_now,ce=r.unstable_getCurrentPriorityLevel,ue=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,fe=r.unstable_NormalPriority,pe=r.unstable_LowPriority,he=r.unstable_IdlePriority,ge=r.log,me=r.unstable_setDisableYieldValue,ye=null,ve=null;function be(e){if("function"==typeof ge&&me(e),ve&&"function"==typeof ve.setStrictMode)try{ve.setStrictMode(ye,e)}catch(e){}}var we=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(xe(e)/Se|0)|0},xe=Math.log,Se=Math.LN2,_e=256,Ce=262144,Ee=4194304;function ke(e){var t=42&e;if(0!==t)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:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Te(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~i)?o=ke(r):0!==(s&=l)?o=ke(s):n||0!==(n=l&~e)&&(o=ke(n)):0!==(l=r&~i)?o=ke(l):0!==s?o=ke(s):n||0!==(n=r&~e)&&(o=ke(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ae(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;default:return-1}}function Re(){var e=Ee;return!(62914560&(Ee<<=1))&&(Ee=4194304),e}function Pe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Le(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Me(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Fe(e,t){var n=t&-t;return 0!==((n=42&n?1:De(n))&(e.suspendedLanes|t))?0:n}function De(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 Ie(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function $e(){var e=F.p;return 0!==e?e:void 0===(e=window.event)?32:Tf(e.type)}function je(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var ze=Math.random().toString(36).slice(2),Be="__reactFiber$"+ze,Ue="__reactProps$"+ze,He="__reactContainer$"+ze,Ke="__reactEvents$"+ze,We="__reactListeners$"+ze,Ve="__reactHandles$"+ze,qe="__reactResources$"+ze,Ge="__reactMarker$"+ze;function Ye(e){delete e[Be],delete e[Ue],delete e[Ke],delete e[We],delete e[Ve]}function Je(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[Be]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[Be])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Xe(e){if(e=e[Be]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(s(33))}function Ze(e){var t=e[qe];return t||(t=e[qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Ge]=!0}var tt=new Set,nt={};function rt(e,t){ot(e,t),ot(e+"Capture",t)}function ot(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var it=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]*$"),st={},lt={};function at(e,t,n){if(o=t,re.call(lt,o)||!re.call(st,o)&&(it.test(o)?lt[o]=!0:(st[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function ct(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ut(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=ft(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function gt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var mt=/[\n"\\]/g;function yt(e){return e.replace(mt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,r,o,i,s,l){e.name="",null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.type=s:e.removeAttribute("type"),null!=t?"number"===s?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==s&&"reset"!==s||e.removeAttribute("value"),null!=t?wt(e,s,dt(t)):null!=n?wt(e,s,dt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+dt(l):e.removeAttribute("name")}function bt(e,t,n,r,o,i,s,l){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void pt(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s&&(e.name=s),pt(e)}function wt(e,t,n){"number"===t&&gt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function xt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function _t(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(s(92));if(O(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),pt(e)}function Ct(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=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 kt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Tt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(s(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&kt(e,o,r)}else for(var i in t)t.hasOwnProperty(i)&&kt(e,i,t[i])}function Nt(e){if(-1===e.indexOf("-"))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 At=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"]]),Rt=/^[\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 Pt(e){return Rt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Lt(){}var Ot=null;function Mt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ft=null,Dt=null;function It(e){var t=Xe(e);if(t&&(e=t.stateNode)){var n=e[Ue]||null;e:switch(e=t.stateNode,t.type){case"input":if(vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[Ue]||null;if(!o)throw Error(s(90));vt(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ht(r)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&xt(e,!!n.multiple,t,!1)}}}var $t=!1;function jt(e,t,n){if($t)return e(t,n);$t=!0;try{return e(t)}finally{if($t=!1,(null!==Ft||null!==Dt)&&(Zc(),Ft&&(t=Ft,e=Dt,Dt=Ft=null,It(t),e)))for(t=0;t<e.length;t++)It(e[t])}}function zt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Ue]||null;if(null===r)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)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var Bt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ut=!1;if(Bt)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Ut=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(e){Ut=!1}var Kt=null,Wt=null,Vt=null;function qt(){if(Vt)return Vt;var e,t,n=Wt,r=n.length,o="value"in Kt?Kt.value:Kt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Vt=o.slice(e,1<t?1-t:void 0)}function Gt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Jt(){return!1}function Xt(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Yt:Jt,this.isPropagationStopped=Jt,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var Qt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Xt(tn),rn=p({},tn,{view:0,detail:0}),on=Xt(rn),sn=p({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Qt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Qt=0,en=e),Qt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),ln=Xt(sn),an=Xt(p({},sn,{dataTransfer:0})),cn=Xt(p({},rn,{relatedTarget:0})),un=Xt(p({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Xt(p({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),fn=Xt(p({},tn,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={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"},gn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=gn[e])&&!!t[e]}function yn(){return mn}var vn=Xt(p({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yn,charCode:function(e){return"keypress"===e.type?Gt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),bn=Xt(p({},sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),wn=Xt(p({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yn})),xn=Xt(p({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Xt(p({},sn,{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})),_n=Xt(p({},tn,{newState:0,oldState:0})),Cn=[9,13,27,32],En=Bt&&"CompositionEvent"in window,kn=null;Bt&&"documentMode"in document&&(kn=document.documentMode);var Tn=Bt&&"TextEvent"in window&&!kn,Nn=Bt&&(!En||kn&&8<kn&&11>=kn),An=String.fromCharCode(32),Rn=!1;function Pn(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var On=!1,Mn={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 Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mn[e.type]:"textarea"===t}function Dn(e,t,n,r){Ft?Dt?Dt.push(r):Dt=[r]:Ft=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var In=null,$n=null;function jn(e){Yu(e,0)}function zn(e){if(ht(Qe(e)))return e}function Bn(e,t){if("change"===e)return t}var Un=!1;if(Bt){var Hn;if(Bt){var Kn="oninput"in document;if(!Kn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Kn="function"==typeof Wn.oninput}Hn=Kn}else Hn=!1;Un=Hn&&(!document.documentMode||9<document.documentMode)}function Vn(){In&&(In.detachEvent("onpropertychange",qn),$n=In=null)}function qn(e){if("value"===e.propertyName&&zn($n)){var t=[];Dn(t,$n,e,Mt(e)),jt(jn,t)}}function Gn(e,t,n){"focusin"===e?(Vn(),$n=n,(In=t).attachEvent("onpropertychange",qn)):"focusout"===e&&Vn()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zn($n)}function Jn(e,t){if("click"===e)return zn(t)}function Xn(e,t){if("input"===e||"change"===e)return zn(t)}var Qn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Qn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)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 o=n[r];if(!re.call(t,o)||!Qn(e[o],t[o]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=gt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=gt((e=t.contentWindow).document)}return t}function or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ir=Bt&&"documentMode"in document&&11>=document.documentMode,sr=null,lr=null,ar=null,cr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;cr||null==sr||sr!==gt(r)||(r="selectionStart"in(r=sr)&&or(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ar&&Zn(ar,r)||(ar=r,0<(r=rd(lr,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sr)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},hr={};function gr(e){if(pr[e])return pr[e];if(!fr[e])return e;var t,n=fr[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return pr[e]=n[t];return e}Bt&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);var mr=gr("animationend"),yr=gr("animationiteration"),vr=gr("animationstart"),br=gr("transitionrun"),wr=gr("transitionstart"),xr=gr("transitioncancel"),Sr=gr("transitionend"),_r=new Map,Cr="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(" ");function Er(e,t){_r.set(e,t),rt(t,[e])}Cr.push("scrollEnd");var kr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Tr=[],Nr=0,Ar=0;function Rr(){for(var e=Nr,t=Ar=Nr=0;t<e;){var n=Tr[t];Tr[t++]=null;var r=Tr[t];Tr[t++]=null;var o=Tr[t];Tr[t++]=null;var i=Tr[t];if(Tr[t++]=null,null!==r&&null!==o){var s=r.pending;null===s?o.next=o:(o.next=s.next,s.next=o),r.pending=o}0!==i&&Mr(n,o,i)}}function Pr(e,t,n,r){Tr[Nr++]=e,Tr[Nr++]=t,Tr[Nr++]=n,Tr[Nr++]=r,Ar|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Lr(e,t,n,r){return Pr(e,t,n,r),Fr(e)}function Or(e,t){return Pr(e,null,null,t),Fr(e)}function Mr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-we(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function Fr(e){if(50<Kc)throw Kc=0,Wc=null,Error(s(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Ir(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 $r(e,t,n,r){return new Ir(e,t,n,r)}function jr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zr(e,t){var n=e.alternate;return null===n?((n=$r(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?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 Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ur(e,t,n,r,o,i){var l=0;if(r=e,"function"==typeof e)jr(e)&&(l=1);else if("string"==typeof e)l=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,K.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=$r(31,n,t,o)).elementType=T,e.lanes=i,e;case y:return Hr(n.children,o,i,t);case v:l=8,o|=24;break;case b:return(e=$r(12,n,t,2|o)).elementType=b,e.lanes=i,e;case _:return(e=$r(13,n,t,o)).elementType=_,e.lanes=i,e;case C:return(e=$r(19,n,t,o)).elementType=C,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:l=10;break e;case w:l=9;break e;case S:l=11;break e;case E:l=14;break e;case k:l=16,r=null;break e}l=29,n=Error(s(130,null===e?"null":typeof e,"")),r=null}return(t=$r(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Hr(e,t,n,r){return(e=$r(7,e,r,t)).lanes=n,e}function Kr(e,t,n){return(e=$r(6,e,null,t)).lanes=n,e}function Wr(e){var t=$r(18,null,null,0);return t.stateNode=e,t}function Vr(e,t,n){return(t=$r(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qr=new WeakMap;function Gr(e,t){if("object"==typeof e&&null!==e){var n=qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},qr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Yr=[],Jr=0,Xr=null,Qr=0,Zr=[],eo=0,to=null,no=1,ro="";function oo(e,t){Yr[Jr++]=Qr,Yr[Jr++]=Xr,Xr=e,Qr=t}function io(e,t,n){Zr[eo++]=no,Zr[eo++]=ro,Zr[eo++]=to,to=e;var r=no;e=ro;var o=32-we(r)-1;r&=~(1<<o),n+=1;var i=32-we(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,no=1<<32-we(t)+o|n<<o|r,ro=i+e}else no=1<<i|n<<o|r,ro=e}function so(e){null!==e.return&&(oo(e,1),io(e,1,0))}function lo(e){for(;e===Xr;)Xr=Yr[--Jr],Yr[Jr]=null,Qr=Yr[--Jr],Yr[Jr]=null;for(;e===to;)to=Zr[--eo],Zr[eo]=null,ro=Zr[--eo],Zr[eo]=null,no=Zr[--eo],Zr[eo]=null}function ao(e,t){Zr[eo++]=no,Zr[eo++]=ro,Zr[eo++]=to,no=t.id,ro=t.overflow,to=e}var co=null,uo=null,fo=!1,po=null,ho=!1,go=Error(s(519));function mo(e){throw So(Gr(Error(s(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),go}function yo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[Ue]=r,n){case"dialog":Ju("cancel",t),Ju("close",t);break;case"iframe":case"object":case"embed":Ju("load",t);break;case"video":case"audio":for(n=0;n<qu.length;n++)Ju(qu[n],t);break;case"source":Ju("error",t);break;case"img":case"image":case"link":Ju("error",t),Ju("load",t);break;case"details":Ju("toggle",t);break;case"input":Ju("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ju("invalid",t);break;case"textarea":Ju("invalid",t),_t(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||cd(t.textContent,n)?(null!=r.popover&&(Ju("beforetoggle",t),Ju("toggle",t)),null!=r.onScroll&&Ju("scroll",t),null!=r.onScrollEnd&&Ju("scrollend",t),null!=r.onClick&&(t.onclick=Lt),t=!0):t=!1,t||mo(e,!0)}function vo(e){for(co=e.return;co;)switch(co.tag){case 5:case 31:case 13:return void(ho=!1);case 27:case 3:return void(ho=!0);default:co=co.return}}function bo(e){if(e!==co)return!1;if(!fo)return vo(e),fo=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||bd(e.type,e.memoizedProps)),t=!t),t&&uo&&mo(e),vo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));uo=Fd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));uo=Fd(e)}else 27===n?(n=uo,kd(e.type)?(e=Md,Md=null,uo=e):uo=n):uo=co?Od(e.stateNode.nextSibling):null;return!0}function wo(){uo=co=null,fo=!1}function xo(){var e=po;return null!==e&&(null===Rc?Rc=e:Rc.push.apply(Rc,e),po=null),e}function So(e){null===po?po=[e]:po.push(e)}var _o=j(null),Co=null,Eo=null;function ko(e,t,n){B(_o,t._currentValue),t._currentValue=n}function To(e){e._currentValue=_o.current,z(_o)}function No(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var l=o.child;i=i.firstContext;e:for(;null!==i;){var a=i;i=o;for(var c=0;c<t.length;c++)if(a.context===t[c]){i.lanes|=n,null!==(a=i.alternate)&&(a.lanes|=n),No(i.return,n,e),r||(l=null);break e}i=a.next}}else if(18===o.tag){if(null===(l=o.return))throw Error(s(341));l.lanes|=n,null!==(i=l.alternate)&&(i.lanes|=n),No(l,n,e),l=null}else l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===e){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}}function Ro(e,t,n,r){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(524288&o.flags)i=!0;else if(262144&o.flags)break;if(10===o.tag){var l=o.alternate;if(null===l)throw Error(s(387));if(null!==(l=l.memoizedProps)){var a=o.type;Qn(o.pendingProps.value,l.value)||(null!==e?e.push(a):e=[a])}}else if(o===q.current){if(null===(l=o.alternate))throw Error(s(387));l.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(df):e=[df])}o=o.return}null!==e&&Ao(t,e,n,r),t.flags|=262144}function Po(e){for(e=e.firstContext;null!==e;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Lo(e){Co=e,Eo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Oo(e){return Fo(Co,e)}function Mo(e,t){return null===Co&&Lo(e),Fo(e,t)}function Fo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Eo){if(null===e)throw Error(s(308));Eo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Eo=Eo.next=t;return n}var Do="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Io=r.unstable_scheduleCallback,$o=r.unstable_NormalPriority,jo={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zo(){return{controller:new Do,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&Io($o,function(){e.controller.abort()})}var Uo=null,Ho=0,Ko=0,Wo=null;function Vo(){if(0===--Ho&&null!==Uo){null!==Wo&&(Wo.status="fulfilled");var e=Uo;Uo=null,Ko=0,Wo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var qo=M.S;M.S=function(e,t){Oc=ae(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Uo){var n=Uo=[];Ho=0,Ko=Uu(),Wo={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ho++,t.then(Vo,Vo)}(0,t),null!==qo&&qo(e,t)};var Go=j(null);function Yo(){var e=Go.current;return null!==e?e:hc.pooledCache}function Jo(e,t){B(Go,null===t?Go.current:t.pool)}function Xo(){var e=Yo();return null===e?null:{parent:jo._currentValue,pool:e}}var Qo=Error(s(460)),Zo=Error(s(474)),ei=Error(s(542)),ti={then:function(){}};function ni(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ri(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Lt,Lt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw li(e=t.reason),e;default:if("string"==typeof t.status)t.then(Lt,Lt);else{if(null!==(e=hc)&&100<e.shellSuspendCounter)throw Error(s(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw li(e=t.reason),e}throw ii=t,Qo}}function oi(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw ii=e,Qo;throw e}}var ii=null;function si(){if(null===ii)throw Error(s(459));var e=ii;return ii=null,e}function li(e){if(e===Qo||e===ei)throw Error(s(483))}var ai=null,ci=0;function ui(e){var t=ci;return ci+=1,null===ai&&(ai=[]),ri(ai,e,t)}function di(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function fi(e,t){if(t.$$typeof===h)throw Error(s(525));throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=zr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function a(e,t,n,r){return null===t||6!==t.tag?((t=Kr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===k&&oi(i)===t.type)?(di(t=o(t,n.props),n),t.return=e,t):(di(t=Ur(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Kr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case g:return di(n=Ur(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case m:return(t=Vr(t,e.mode,n)).return=e,t;case k:return f(e,t=oi(t),n)}if(O(t)||R(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,ui(t),n);if(t.$$typeof===x)return f(e,Mo(e,t),n);fi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:a(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case g:return n.key===o?c(e,t,n,r):null;case m:return n.key===o?u(e,t,n,r):null;case k:return p(e,t,n=oi(n),r)}if(O(n)||R(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,ui(n),r);if(n.$$typeof===x)return p(e,t,Mo(e,n),r);fi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return a(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case g:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case m:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return h(e,t,n,r=oi(r),o)}if(O(r)||R(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return h(e,t,n,ui(r),o);if(r.$$typeof===x)return h(e,t,n,Mo(t,r),o);fi(t,r)}return null}function v(a,c,u,d){if("object"==typeof u&&null!==u&&u.type===y&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case g:e:{for(var b=u.key;null!==c;){if(c.key===b){if((b=u.type)===y){if(7===c.tag){n(a,c.sibling),(d=o(c,u.props.children)).return=a,a=d;break e}}else if(c.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===k&&oi(b)===c.type){n(a,c.sibling),di(d=o(c,u.props),u),d.return=a,a=d;break e}n(a,c);break}t(a,c),c=c.sibling}u.type===y?((d=Hr(u.props.children,a.mode,d,u.key)).return=a,a=d):(di(d=Ur(u.type,u.key,u.props,null,a.mode,d),u),d.return=a,a=d)}return l(a);case m:e:{for(b=u.key;null!==c;){if(c.key===b){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(a,c.sibling),(d=o(c,u.children||[])).return=a,a=d;break e}n(a,c);break}t(a,c),c=c.sibling}(d=Vr(u,a.mode,d)).return=a,a=d}return l(a);case k:return v(a,c,u=oi(u),d)}if(O(u))return function(o,s,l,a){for(var c=null,u=null,d=s,g=s=0,m=null;null!==d&&g<l.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=p(o,d,l[g],a);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(o,d),s=i(y,s,g),null===u?c=y:u.sibling=y,u=y,d=m}if(g===l.length)return n(o,d),fo&&oo(o,g),c;if(null===d){for(;g<l.length;g++)null!==(d=f(o,l[g],a))&&(s=i(d,s,g),null===u?c=d:u.sibling=d,u=d);return fo&&oo(o,g),c}for(d=r(d);g<l.length;g++)null!==(m=h(d,o,g,l[g],a))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),s=i(m,s,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach(function(e){return t(o,e)}),fo&&oo(o,g),c}(a,c,u,d);if(R(u)){if("function"!=typeof(b=R(u)))throw Error(s(150));return function(o,l,a,c){if(null==a)throw Error(s(151));for(var u=null,d=null,g=l,m=l=0,y=null,v=a.next();null!==g&&!v.done;m++,v=a.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=p(o,g,v.value,c);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(o,g),l=i(b,l,m),null===d?u=b:d.sibling=b,d=b,g=y}if(v.done)return n(o,g),fo&&oo(o,m),u;if(null===g){for(;!v.done;m++,v=a.next())null!==(v=f(o,v.value,c))&&(l=i(v,l,m),null===d?u=v:d.sibling=v,d=v);return fo&&oo(o,m),u}for(g=r(g);!v.done;m++,v=a.next())null!==(v=h(g,o,m,v.value,c))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),l=i(v,l,m),null===d?u=v:d.sibling=v,d=v);return e&&g.forEach(function(e){return t(o,e)}),fo&&oo(o,m),u}(a,c,u=b.call(u),d)}if("function"==typeof u.then)return v(a,c,ui(u),d);if(u.$$typeof===x)return v(a,c,Mo(a,u),d);fi(a,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(a,c.sibling),(d=o(c,u)).return=a,a=d):(n(a,c),(d=Kr(u,a.mode,d)).return=a,a=d),l(a)):n(a,c)}return function(e,t,n,r){try{ci=0;var o=v(e,t,n,r);return ai=null,o}catch(t){if(t===Qo||t===ei)throw t;var i=$r(29,t,null,e.mode);return i.lanes=r,i.return=e,i}}}var hi=pi(!0),gi=pi(!1),mi=!1;function yi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vi(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 bi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&pc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Fr(e),Mr(e,null,n),t}return Pr(e,r,t,n),Fr(e)}function xi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Me(e,n)}}function Si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var _i=!1;function Ci(){if(_i&&null!==Wo)throw Wo}function Ei(e,t,n,r){_i=!1;var o=e.updateQueue;mi=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var a=l,c=a.next;a.next=null,null===s?i=c:s.next=c,s=a;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=a)}if(null!==i){var d=o.baseState;for(s=0,u=c=a=null,l=i;;){var f=-536870913&l.lane,h=f!==l.lane;if(h?(mc&f)===f:(r&f)===f){0!==f&&f===Ko&&(_i=!0),null!==u&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var g=e,m=l;f=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){d=g.call(y,d,f);break e}d=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(f="function"==typeof(g=m.payload)?g.call(y,d,f):g))break e;d=p({},d,f);break e;case 2:mi=!0}}null!==(f=l.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[f]:h.push(f))}else h={lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=h,a=d):u=u.next=h,s|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(h=l).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===u&&(a=d),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null===i&&(o.shared.lanes=0),Cc|=s,e.lanes=s,e.memoizedState=d}}function ki(e,t){if("function"!=typeof e)throw Error(s(191,e));e.call(t)}function Ti(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)ki(n[e],t)}var Ni=j(null),Ai=j(0);function Ri(e,t){B(Ai,e=Sc),B(Ni,t),Sc=e|t.baseLanes}function Pi(){B(Ai,Sc),B(Ni,Ni.current)}function Li(){Sc=Ai.current,z(Ni),z(Ai)}var Oi=j(null),Mi=null;function Fi(e){var t=e.alternate;B(zi,1&zi.current),B(Oi,e),null===Mi&&(null===t||null!==Ni.current||null!==t.memoizedState)&&(Mi=e)}function Di(e){B(zi,zi.current),B(Oi,e),null===Mi&&(Mi=e)}function Ii(e){22===e.tag?(B(zi,zi.current),B(Oi,e),null===Mi&&(Mi=e)):$i()}function $i(){B(zi,zi.current),B(Oi,Oi.current)}function ji(e){z(Oi),Mi===e&&(Mi=null),z(zi)}var zi=j(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Pd(n)||Ld(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ui=0,Hi=null,Ki=null,Wi=null,Vi=!1,qi=!1,Gi=!1,Yi=0,Ji=0,Xi=null,Qi=0;function Zi(){throw Error(s(321))}function es(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function ts(e,t,n,r,o,i){return Ui=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=null===e||null===e.memoizedState?ml:yl,Gi=!1,i=n(r,o),Gi=!1,qi&&(i=rs(t,n,r,o)),ns(e),i}function ns(e){M.H=gl;var t=null!==Ki&&null!==Ki.next;if(Ui=0,Wi=Ki=Hi=null,Vi=!1,Ji=0,Xi=null,t)throw Error(s(300));null===e||Ol||null!==(e=e.dependencies)&&Po(e)&&(Ol=!0)}function rs(e,t,n,r){Hi=e;var o=0;do{if(qi&&(Xi=null),Ji=0,qi=!1,25<=o)throw Error(s(301));if(o+=1,Wi=Ki=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}M.H=vl,i=t(n,r)}while(qi);return i}function os(){var e=M.H,t=e.useState()[0];return t="function"==typeof t.then?us(t):t,e=e.useState()[0],(null!==Ki?Ki.memoizedState:null)!==e&&(Hi.flags|=1024),t}function is(){var e=0!==Yi;return Yi=0,e}function ss(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ls(e){if(Vi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Vi=!1}Ui=0,Wi=Ki=Hi=null,qi=!1,Ji=Yi=0,Xi=null}function as(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wi?Hi.memoizedState=Wi=e:Wi=Wi.next=e,Wi}function cs(){if(null===Ki){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Ki.next;var t=null===Wi?Hi.memoizedState:Wi.next;if(null!==t)Wi=t,Ki=e;else{if(null===e){if(null===Hi.alternate)throw Error(s(467));throw Error(s(310))}e={memoizedState:(Ki=e).memoizedState,baseState:Ki.baseState,baseQueue:Ki.baseQueue,queue:Ki.queue,next:null},null===Wi?Hi.memoizedState=Wi=e:Wi=Wi.next=e}return Wi}function us(e){var t=Ji;return Ji+=1,null===Xi&&(Xi=[]),e=ri(Xi,e,t),t=Hi,null===(null===Wi?t.memoizedState:Wi.next)&&(t=t.alternate,M.H=null===t||null===t.memoizedState?ml:yl),e}function ds(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return us(e);if(e.$$typeof===x)return Oo(e)}throw Error(s(438,String(e)))}function fs(e){var t=null,n=Hi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Hi.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=N;return t.index++,n}function ps(e,t){return"function"==typeof t?t(e):t}function hs(e){return gs(cs(),Ki,e)}function gs(e,t,n){var r=e.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=n;var o=e.baseQueue,i=r.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}t.baseQueue=o=i,r.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var a=l=null,c=null,u=t=o.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(mc&f)===f:(Ui&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ko&&(d=!0);else{if((Ui&p)===p){u=u.next,p===Ko&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(a=c=f,l=i):c=c.next=f,Hi.lanes|=p,Cc|=p}f=u.action,Gi&&n(i,f),i=u.hasEagerState?u.eagerState:n(i,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(a=c=p,l=i):c=c.next=p,Hi.lanes|=f,Cc|=f;u=u.next}while(null!==u&&u!==t);if(null===c?l=i:c.next=a,!Qn(i,e.memoizedState)&&(Ol=!0,d&&null!==(n=Wo)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=c,r.lastRenderedState=i}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ms(e){var t=cs(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);Qn(i,t.memoizedState)||(Ol=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ys(e,t,n){var r=Hi,o=cs(),i=fo;if(i){if(void 0===n)throw Error(s(407));n=n()}else n=t();var l=!Qn((Ki||o).memoizedState,n);if(l&&(o.memoizedState=n,Ol=!0),o=o.queue,Us(ws.bind(null,r,o,e),[e]),o.getSnapshot!==t||l||null!==Wi&&1&Wi.memoizedState.tag){if(r.flags|=2048,Is(9,{destroy:void 0},bs.bind(null,r,o,n,t),null),null===hc)throw Error(s(349));i||127&Ui||vs(r,t,n)}return n}function vs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Hi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function bs(e,t,n,r){t.value=n,t.getSnapshot=r,xs(t)&&Ss(e)}function ws(e,t,n){return n(function(){xs(t)&&Ss(e)})}function xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch(e){return!0}}function Ss(e){var t=Or(e,2);null!==t&&Gc(t,0,2)}function _s(e){var t=as();if("function"==typeof e){var n=e;if(e=n(),Gi){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:e},t}function Cs(e,t,n,r){return e.baseState=n,gs(e,Ki,"function"==typeof r?r:ps)}function Es(e,t,n,r,o){if(fl(e))throw Error(s(485));if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==M.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,ks(t,i)):(i.next=n.next,t.pending=n.next=i)}}function ks(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=M.T,s={};M.T=s;try{var l=n(o,r),a=M.S;null!==a&&a(s,l),Ts(e,t,l)}catch(n){As(e,t,n)}finally{null!==i&&null!==s.types&&(i.types=s.types),M.T=i}}else try{Ts(e,t,i=n(o,r))}catch(n){As(e,t,n)}}function Ts(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ns(e,t,n)},function(n){return As(e,t,n)}):Ns(e,t,n)}function Ns(e,t,n){t.status="fulfilled",t.value=n,Rs(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,ks(e,n)))}function As(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Rs(t),t=t.next}while(t!==r)}e.action=null}function Rs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ps(e,t){return t}function Ls(e,t){if(fo){var n=hc.formState;if(null!==n){e:{var r=Hi;if(fo){if(uo){t:{for(var o=uo,i=ho;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Od(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){uo=Od(o.nextSibling),r="F!"===o.data;break e}}mo(r)}r=!1}r&&(t=n[0])}}return(n=as()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ps,lastRenderedState:t},n.queue=r,n=cl.bind(null,Hi,r),r.dispatch=n,r=_s(!1),i=dl.bind(null,Hi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=as()).queue=o,n=Es.bind(null,Hi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Os(e){return Ms(cs(),Ki,e)}function Ms(e,t,n){if(t=gs(e,t,Ps)[0],e=hs(ps)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=us(t)}catch(e){if(e===Qo)throw ei;throw e}else r=t;var o=(t=cs()).queue,i=o.dispatch;return n!==t.memoizedState&&(Hi.flags|=2048,Is(9,{destroy:void 0},Fs.bind(null,o,n),null)),[r,i,e]}function Fs(e,t){e.action=t}function Ds(e){var t=cs(),n=Ki;if(null!==n)return Ms(t,n,e);cs(),t=t.memoizedState;var r=(n=cs()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Is(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Hi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function $s(){return cs().memoizedState}function js(e,t,n,r){var o=as();Hi.flags|=e,o.memoizedState=Is(1|t,{destroy:void 0},n,void 0===r?null:r)}function zs(e,t,n,r){var o=cs();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Ki&&null!==r&&es(r,Ki.memoizedState.deps)?o.memoizedState=Is(t,i,n,r):(Hi.flags|=e,o.memoizedState=Is(1|t,i,n,r))}function Bs(e,t){js(8390656,8,e,t)}function Us(e,t){zs(2048,8,e,t)}function Hs(e){var t=cs().memoizedState;return function(e){Hi.flags|=4;var t=Hi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&pc)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Ks(e,t){return zs(4,2,e,t)}function Ws(e,t){return zs(4,4,e,t)}function Vs(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function qs(e,t,n){n=null!=n?n.concat([e]):null,zs(4,4,Vs.bind(null,t,e),n)}function Gs(){}function Ys(e,t){var n=cs();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&es(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Js(e,t){var n=cs();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&es(t,r[1]))return r[0];if(r=e(),Gi){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function Xs(e,t,n){return void 0===n||1073741824&Ui&&!(261930&mc)?e.memoizedState=t:(e.memoizedState=n,e=qc(),Hi.lanes|=e,Cc|=e,n)}function Qs(e,t,n,r){return Qn(n,t)?n:null!==Ni.current?(e=Xs(e,n,r),Qn(e,t)||(Ol=!0),e):42&Ui&&(!(1073741824&Ui)||261930&mc)?(e=qc(),Hi.lanes|=e,Cc|=e,t):(Ol=!0,e.memoizedState=n)}function Zs(e,t,n,r,o){var i=F.p;F.p=0!==i&&8>i?i:8;var s,l,a,c=M.T,u={};M.T=u,dl(e,!1,t,n);try{var d=o(),f=M.S;null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?ul(e,t,(s=r,l=[],a={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){a.status="fulfilled",a.value=s;for(var e=0;e<l.length;e++)(0,l[e])(s)},function(e){for(a.status="rejected",a.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),a),Vc()):ul(e,t,r,Vc())}catch(n){ul(e,t,{then:function(){},status:"rejected",reason:n},Vc())}finally{F.p=i,null!==c&&null!==u.types&&(c.types=u.types),M.T=c}}function el(){}function tl(e,t,n,r){if(5!==e.tag)throw Error(s(476));var o=nl(e).queue;Zs(e,o,t,D,null===n?el:function(){return rl(e),n(r)})}function nl(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function rl(e){var t=nl(e);null===t.next&&(t=e.alternate.memoizedState),ul(e,t.next.queue,{},Vc())}function ol(){return Oo(df)}function il(){return cs().memoizedState}function sl(){return cs().memoizedState}function ll(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Vc(),r=wi(t,e=bi(n),n);return null!==r&&(Gc(r,0,n),xi(r,t,n)),t={cache:zo()},void(e.payload=t)}t=t.return}}function al(e,t,n){var r=Vc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fl(e)?pl(t,n):null!==(n=Lr(e,t,n,r))&&(Gc(n,0,r),hl(n,t,r))}function cl(e,t,n){ul(e,t,n,Vc())}function ul(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fl(e))pl(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,Qn(l,s))return Pr(e,t,o,0),null===hc&&Rr(),!1}catch(e){}if(null!==(n=Lr(e,t,o,r)))return Gc(n,0,r),hl(n,t,r),!0}return!1}function dl(e,t,n,r){if(r={lane:2,revertLane:Uu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fl(e)){if(t)throw Error(s(479))}else null!==(t=Lr(e,n,r,2))&&Gc(t,0,2)}function fl(e){var t=e.alternate;return e===Hi||null!==t&&t===Hi}function pl(e,t){qi=Vi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hl(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Me(e,n)}}var gl={readContext:Oo,use:ds,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useLayoutEffect:Zi,useInsertionEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useDeferredValue:Zi,useTransition:Zi,useSyncExternalStore:Zi,useId:Zi,useHostTransitionStatus:Zi,useFormState:Zi,useActionState:Zi,useOptimistic:Zi,useMemoCache:Zi,useCacheRefresh:Zi};gl.useEffectEvent=Zi;var ml={readContext:Oo,use:ds,useCallback:function(e,t){return as().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Bs,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,js(4194308,4,Vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return js(4194308,4,e,t)},useInsertionEffect:function(e,t){js(4,2,e,t)},useMemo:function(e,t){var n=as();t=void 0===t?null:t;var r=e();if(Gi){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=as();if(void 0!==n){var o=n(t);if(Gi){be(!0);try{n(t)}finally{be(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=al.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},as().memoizedState=e},useState:function(e){var t=(e=_s(e)).queue,n=cl.bind(null,Hi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Xs(as(),e,t)},useTransition:function(){var e=_s(!1);return e=Zs.bind(null,Hi,e.queue,!0,!1),as().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Hi,o=as();if(fo){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===hc)throw Error(s(349));127&mc||vs(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Bs(ws.bind(null,r,i,e),[e]),r.flags|=2048,Is(9,{destroy:void 0},bs.bind(null,r,i,n,t),null),n},useId:function(){var e=as(),t=hc.identifierPrefix;if(fo){var n=ro;t="_"+t+"R_"+(n=(no&~(1<<32-we(no)-1)).toString(32)+n),0<(n=Yi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Qi++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ol,useFormState:Ls,useActionState:Ls,useOptimistic:function(e){var t=as();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dl.bind(null,Hi,!0,n),n.dispatch=t,[e,t]},useMemoCache:fs,useCacheRefresh:function(){return as().memoizedState=ll.bind(null,Hi)},useEffectEvent:function(e){var t=as(),n={impl:e};return t.memoizedState=n,function(){if(2&pc)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},yl={readContext:Oo,use:ds,useCallback:Ys,useContext:Oo,useEffect:Us,useImperativeHandle:qs,useInsertionEffect:Ks,useLayoutEffect:Ws,useMemo:Js,useReducer:hs,useRef:$s,useState:function(){return hs(ps)},useDebugValue:Gs,useDeferredValue:function(e,t){return Qs(cs(),Ki.memoizedState,e,t)},useTransition:function(){var e=hs(ps)[0],t=cs().memoizedState;return["boolean"==typeof e?e:us(e),t]},useSyncExternalStore:ys,useId:il,useHostTransitionStatus:ol,useFormState:Os,useActionState:Os,useOptimistic:function(e,t){return Cs(cs(),0,e,t)},useMemoCache:fs,useCacheRefresh:sl};yl.useEffectEvent=Hs;var vl={readContext:Oo,use:ds,useCallback:Ys,useContext:Oo,useEffect:Us,useImperativeHandle:qs,useInsertionEffect:Ks,useLayoutEffect:Ws,useMemo:Js,useReducer:ms,useRef:$s,useState:function(){return ms(ps)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=cs();return null===Ki?Xs(n,e,t):Qs(n,Ki.memoizedState,e,t)},useTransition:function(){var e=ms(ps)[0],t=cs().memoizedState;return["boolean"==typeof e?e:us(e),t]},useSyncExternalStore:ys,useId:il,useHostTransitionStatus:ol,useFormState:Ds,useActionState:Ds,useOptimistic:function(e,t){var n=cs();return null!==Ki?Cs(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fs,useCacheRefresh:sl};function bl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}vl.useEffectEvent=Hs;var wl={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vc(),o=bi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=wi(e,o,r))&&(Gc(t,0,r),xi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vc(),o=bi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=wi(e,o,r))&&(Gc(t,0,r),xi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vc(),r=bi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=wi(e,r,n))&&(Gc(t,0,n),xi(t,e,n))}};function xl(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&Zn(n,r)&&Zn(o,i))}function Sl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wl.enqueueReplaceState(t,t.state,null)}function _l(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=p({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function Cl(e){kr(e)}function El(e){console.error(e)}function kl(e){kr(e)}function Tl(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Nl(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Al(e,t,n){return(n=bi(n)).tag=3,n.payload={element:null},n.callback=function(){Tl(e,t)},n}function Rl(e){return(e=bi(e)).tag=3,e}function Pl(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Nl(t,n,r)}}var s=n.stateNode;null!==s&&"function"==typeof s.componentDidCatch&&(e.callback=function(){Nl(t,n,r),"function"!=typeof o&&(null===Dc?Dc=new Set([this]):Dc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ll=Error(s(461)),Ol=!1;function Ml(e,t,n,r){t.child=null===e?gi(t,null,n,r):hi(t,e.child,n,r)}function Fl(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var s={};for(var l in r)"ref"!==l&&(s[l]=r[l])}else s=r;return Lo(t),r=ts(e,t,n,s,i,o),l=is(),null===e||Ol?(fo&&l&&so(t),t.flags|=1,Ml(e,t,r,o),t.child):(ss(e,t,o),oa(e,t,o))}function Dl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||jr(i)||void 0!==i.defaultProps||null!==n.compare?((e=Ur(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Il(e,t,i,r,o))}if(i=e.child,!ia(e,o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(s,r)&&e.ref===t.ref)return oa(e,t,o)}return t.flags|=1,(e=zr(i,r)).ref=t.ref,e.return=t,t.child=e}function Il(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Zn(i,r)&&e.ref===t.ref){if(Ol=!1,t.pendingProps=r=i,!ia(e,o))return t.lanes=e.lanes,oa(e,t,o);131072&e.flags&&(Ol=!0)}}return Kl(e,t,n,r,o)}function $l(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return zl(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,zl(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Jo(0,null!==i?i.cachePool:null),null!==i?Ri(t,i):Pi(),Ii(t)}else null!==i?(Jo(0,i.cachePool),Ri(t,i),$i(),t.memoizedState=null):(null!==e&&Jo(0,null),Pi(),$i());return Ml(e,t,o,n),t.child}function jl(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zl(e,t,n,r,o){var i=Yo();return i=null===i?null:{parent:jo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Jo(0,null),Pi(),Ii(t),null!==e&&Ro(e,t,r,!0),t.childLanes=o,null}function Bl(e,t){return(t=Zl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Ul(e,t,n){return hi(t,e.child,null,n),(e=Bl(t,t.pendingProps)).flags|=2,ji(t),t.memoizedState=null,e}function Hl(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(s(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Kl(e,t,n,r,o){return Lo(t),n=ts(e,t,n,r,void 0,o),r=is(),null===e||Ol?(fo&&r&&so(t),t.flags|=1,Ml(e,t,n,o),t.child):(ss(e,t,o),oa(e,t,o))}function Wl(e,t,n,r,o,i){return Lo(t),t.updateQueue=null,n=rs(t,r,n,o),ns(e),r=is(),null===e||Ol?(fo&&r&&so(t),t.flags|=1,Ml(e,t,n,i),t.child):(ss(e,t,i),oa(e,t,i))}function Vl(e,t,n,r,o){if(Lo(t),null===t.stateNode){var i=Dr,s=n.contextType;"object"==typeof s&&null!==s&&(i=Oo(s)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=wl,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},yi(t),s=n.contextType,i.context="object"==typeof s&&null!==s?Oo(s):Dr,i.state=t.memoizedState,"function"==typeof(s=n.getDerivedStateFromProps)&&(bl(t,n,s,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(s=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),s!==i.state&&wl.enqueueReplaceState(i,i.state,null),Ei(t,r,i,o),Ci(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var l=t.memoizedProps,a=_l(n,l);i.props=a;var c=i.context,u=n.contextType;s=Dr,"object"==typeof u&&null!==u&&(s=Oo(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,l=t.pendingProps!==l,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l||c!==s)&&Sl(t,i,r,s),mi=!1;var f=t.memoizedState;i.state=f,Ei(t,r,i,o),Ci(),c=t.memoizedState,l||f!==c||mi?("function"==typeof d&&(bl(t,n,d,r),c=t.memoizedState),(a=mi||xl(t,n,a,r,f,c,s))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=s,r=a):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,vi(e,t),u=_l(n,s=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,a=Dr,"object"==typeof c&&null!==c&&(a=Oo(c)),(c="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==a)&&Sl(t,i,r,a),mi=!1,f=t.memoizedState,i.state=f,Ei(t,r,i,o),Ci();var p=t.memoizedState;s!==d||f!==p||mi||null!==e&&null!==e.dependencies&&Po(e.dependencies)?("function"==typeof l&&(bl(t,n,l,r),p=t.memoizedState),(u=mi||xl(t,n,u,r,f,p,a)||null!==e&&null!==e.dependencies&&Po(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,a),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,a)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=a,r=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Hl(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=hi(t,e.child,null,o),t.child=hi(t,null,n,o)):Ml(e,t,n,o),t.memoizedState=i.state,e=t.child):e=oa(e,t,o),e}function ql(e,t,n,r){return wo(),t.flags|=256,Ml(e,t,n,r),t.child}var Gl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yl(e){return{baseLanes:e,cachePool:Xo()}}function Jl(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Tc),e}function Xl(e,t,n){var r,o=t.pendingProps,i=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&zi.current)),r&&(i=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(fo){if(i?Fi(t):$i(),(e=uo)?null!==(e=null!==(e=Rd(e,ho))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==to?{id:no,overflow:ro}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,co=t,uo=null):e=null,null===e)throw mo(t);return Ld(e)?t.lanes=32:t.lanes=536870912,null}var a=o.children;return o=o.fallback,i?($i(),a=Zl({mode:"hidden",children:a},i=t.mode),o=Hr(o,i,n,null),a.return=t,o.return=t,a.sibling=o,t.child=a,(o=t.child).memoizedState=Yl(n),o.childLanes=Jl(e,r,n),t.memoizedState=Gl,jl(null,o)):(Fi(t),Ql(t,a))}var c=e.memoizedState;if(null!==c&&null!==(a=c.dehydrated)){if(l)256&t.flags?(Fi(t),t.flags&=-257,t=ea(e,t,n)):null!==t.memoizedState?($i(),t.child=e.child,t.flags|=128,t=null):($i(),a=o.fallback,i=t.mode,o=Zl({mode:"visible",children:o.children},i),(a=Hr(a,i,n,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,hi(t,e.child,null,n),(o=t.child).memoizedState=Yl(n),o.childLanes=Jl(e,r,n),t.memoizedState=Gl,t=jl(null,o));else if(Fi(t),Ld(a)){if(r=a.nextSibling&&a.nextSibling.dataset)var u=r.dgst;r=u,(o=Error(s(419))).stack="",o.digest=r,So({value:o,source:null,stack:null}),t=ea(e,t,n)}else if(Ol||Ro(e,t,n,!1),r=0!==(n&e.childLanes),Ol||r){if(null!==(r=hc)&&0!==(o=Fe(r,n))&&o!==c.retryLane)throw c.retryLane=o,Or(e,o),Gc(r,0,o),Ll;Pd(a)||su(),t=ea(e,t,n)}else Pd(a)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,uo=Od(a.nextSibling),co=t,fo=!0,po=null,ho=!1,null!==e&&ao(t,e),(t=Ql(t,o.children)).flags|=4096);return t}return i?($i(),a=o.fallback,i=t.mode,u=(c=e.child).sibling,(o=zr(c,{mode:"hidden",children:o.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?a=zr(u,a):(a=Hr(a,i,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,jl(null,o),o=t.child,null===(a=e.child.memoizedState)?a=Yl(n):(null!==(i=a.cachePool)?(c=jo._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=Xo(),a={baseLanes:a.baseLanes|n,cachePool:i}),o.memoizedState=a,o.childLanes=Jl(e,r,n),t.memoizedState=Gl,jl(e.child,o)):(Fi(t),e=(n=e.child).sibling,(n=zr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Ql(e,t){return(t=Zl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zl(e,t){return(e=$r(22,e,null,t)).lanes=0,e}function ea(e,t,n){return hi(t,e.child,null,n),(e=Ql(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ta(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),No(e.return,t,n)}function na(e,t,n,r,o,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o,s.treeForkCount=i)}function ra(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var s=zi.current,l=!!(2&s);if(l?(s=1&s|2,t.flags|=128):s&=1,B(zi,s),Ml(e,t,r,n),r=fo?Qr:0,!l&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ta(e,n,t);else if(19===e.tag)ta(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),na(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}na(t,!0,n,null,i,r);break;case"together":na(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function oa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Cc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ro(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=zr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ia(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Po(e))}function sa(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ol=!0;else{if(!(ia(e,n)||128&t.flags))return Ol=!1,function(e,t,n){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),ko(0,jo,e.memoizedState.cache),wo();break;case 27:case 5:J(t);break;case 4:G(t,t.stateNode.containerInfo);break;case 10:ko(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Di(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Fi(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Xl(e,t,n):(Fi(t),null!==(e=oa(e,t,n))?e.sibling:null);Fi(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ro(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return ra(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(zi,zi.current),r)break;return null;case 22:return t.lanes=0,$l(e,t,n,t.pendingProps);case 24:ko(0,jo,e.memoizedState.cache)}return oa(e,t,n)}(e,t,n);Ol=!!(131072&e.flags)}else Ol=!1,fo&&1048576&t.flags&&io(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=oi(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var o=e.$$typeof;if(o===S){t.tag=11,t=Fl(null,t,e,r,n);break e}if(o===E){t.tag=14,t=Dl(null,t,e,r,n);break e}}throw t=L(e)||e,Error(s(306,t,""))}jr(e)?(r=_l(e,r),t.tag=1,t=Vl(null,t,e,r,n)):(t.tag=0,t=Kl(null,t,e,r,n))}return t;case 0:return Kl(e,t,t.type,t.pendingProps,n);case 1:return Vl(e,t,r=t.type,o=_l(r,t.pendingProps),n);case 3:e:{if(G(t,t.stateNode.containerInfo),null===e)throw Error(s(387));r=t.pendingProps;var i=t.memoizedState;o=i.element,vi(e,t),Ei(t,r,null,n);var l=t.memoizedState;if(r=l.cache,ko(0,jo,r),r!==i.cache&&Ao(t,[jo],n,!0),Ci(),r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=ql(e,t,r,n);break e}if(r!==o){So(o=Gr(Error(s(424)),t)),t=ql(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,uo=Od(e.firstChild),co=t,fo=!0,po=null,ho=!0,n=gi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(wo(),r===o){t=oa(e,t,n);break e}Ml(e,t,r,n)}t=t.child}return t;case 26:return Hl(e,t),null===e?(n=Wd(t.type,null,t.pendingProps,null))?t.memoizedState=n:fo||(n=t.type,e=t.pendingProps,(r=md(V.current).createElement(n))[Be]=t,r[Ue]=e,fd(r,n,e),et(r),t.stateNode=r):t.memoizedState=Wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return J(t),null===e&&fo&&(r=t.stateNode=Id(t.type,t.pendingProps,V.current),co=t,ho=!0,o=uo,kd(t.type)?(Md=o,uo=Od(r.firstChild)):uo=o),Ml(e,t,t.pendingProps.children,n),Hl(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&fo&&((o=r=uo)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ge])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Od(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,ho))?(t.stateNode=r,co=t,uo=Od(r.firstChild),ho=!1,o=!0):o=!1),o||mo(t)),J(t),o=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,r=i.children,bd(o,i)?r=null:null!==l&&bd(o,l)&&(t.flags|=32),null!==t.memoizedState&&(o=ts(e,t,os,null,null,n),df._currentValue=o),Hl(e,t),Ml(e,t,r,n),t.child;case 6:return null===e&&fo&&((e=n=uo)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Od(e.nextSibling)))return null}return e}(n,t.pendingProps,ho))?(t.stateNode=n,co=t,uo=null,e=!0):e=!1),e||mo(t)),null;case 13:return Xl(e,t,n);case 4:return G(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=hi(t,null,r,n):Ml(e,t,r,n),t.child;case 11:return Fl(e,t,t.type,t.pendingProps,n);case 7:return Ml(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ml(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,ko(0,t.type,r.value),Ml(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Lo(t),r=r(o=Oo(o)),t.flags|=1,Ml(e,t,r,n),t.child;case 14:return Dl(e,t,t.type,t.pendingProps,n);case 15:return Il(e,t,t.type,t.pendingProps,n);case 19:return ra(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,o=!!(128&t.flags);if(t.flags&=-129,null===e){if(fo){if("hidden"===r.mode)return e=Bl(t,r),t.lanes=536870912,jl(null,e);if(Di(t),(e=uo)?null!==(e=null!==(e=Rd(e,ho))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==to?{id:no,overflow:ro}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,co=t,uo=null):e=null,null===e)throw mo(t);return t.lanes=536870912,null}return Bl(t,r)}var i=e.memoizedState;if(null!==i){var l=i.dehydrated;if(Di(t),o)if(256&t.flags)t.flags&=-257,t=Ul(e,t,n);else{if(null===t.memoizedState)throw Error(s(558));t.child=e.child,t.flags|=128,t=null}else if(Ol||Ro(e,t,n,!1),o=0!==(n&e.childLanes),Ol||o){if(null!==(r=hc)&&0!==(l=Fe(r,n))&&l!==i.retryLane)throw i.retryLane=l,Or(e,l),Gc(r,0,l),Ll;su(),t=Ul(e,t,n)}else e=i.treeContext,uo=Od(l.nextSibling),co=t,fo=!0,po=null,ho=!1,null!==e&&ao(t,e),(t=Bl(t,r)).flags|=4096;return t}return(e=zr(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return $l(e,t,n,t.pendingProps);case 24:return Lo(t),r=Oo(jo),null===e?(null===(o=Yo())&&(o=hc,i=zo(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:r,cache:o},yi(t),ko(0,jo,o)):(0!==(e.lanes&n)&&(vi(e,t),Ei(t,null,null,n),Ci()),o=e.memoizedState,i=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),ko(0,jo,r)):(r=i.cache,ko(0,jo,r),r!==o.cache&&Ao(t,[jo],n,!0))),Ml(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function la(e){e.flags|=4}function aa(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!ru())throw ii=ti,Zo;e.flags|=8192}}else e.flags&=-16777217}function ca(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!of(t)){if(!ru())throw ii=ti,Zo;e.flags|=8192}}function ua(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Re():536870912,e.lanes|=t,Nc|=t)}function da(e,t){if(!fo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fa(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pa(e,t,n){var r=t.pendingProps;switch(lo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return fa(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),To(jo),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(bo(t)?la(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,xo())),fa(t),null;case 26:var o=t.type,i=t.memoizedState;return null===e?(la(t),null!==i?(fa(t),ca(t,i)):(fa(t),aa(t,o,0,0,n))):i?i!==e.memoizedState?(la(t),fa(t),ca(t,i)):(fa(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&la(t),fa(t),aa(t,o,0,0,n)),null;case 27:if(X(t),n=V.current,o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&la(t);else{if(!r){if(null===t.stateNode)throw Error(s(166));return fa(t),null}e=K.current,bo(t)?yo(t):(e=Id(o,r,n),t.stateNode=e,la(t))}return fa(t),null;case 5:if(X(t),o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&la(t);else{if(!r){if(null===t.stateNode)throw Error(s(166));return fa(t),null}if(i=K.current,bo(t))yo(t);else{var l=md(V.current);switch(i){case 1:i=l.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:i=l.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":i=l.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":i=l.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":(i=l.createElement("div")).innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i="string"==typeof r.is?l.createElement(o,{is:r.is}):l.createElement(o)}}i[Be]=t,i[Ue]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)i.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=i;e:switch(fd(i,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&la(t)}}return fa(t),aa(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&la(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(e=V.current,bo(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=co))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||cd(e.nodeValue,n)))||mo(t,!0)}else(e=md(e).createTextNode(r))[Be]=t,t.stateNode=e}return fa(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=bo(t),null!==n){if(null===e){if(!r)throw Error(s(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(s(557));e[Be]=t}else wo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fa(t),e=!1}else n=xo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(ji(t),t):(ji(t),null);if(128&t.flags)throw Error(s(558))}return fa(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=bo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(s(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(s(317));o[Be]=t}else wo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fa(t),o=!1}else o=xo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(ji(t),t):(ji(t),null)}return ji(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),i=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ua(t,t.updateQueue),fa(t),null);case 4:return Y(),null===e&&Zu(t.stateNode.containerInfo),fa(t),null;case 10:return To(t.type),fa(t),null;case 19:if(z(zi),null===(r=t.memoizedState))return fa(t),null;if(o=!!(128&t.flags),null===(i=r.rendering))if(o)da(r,!1);else{if(0!==_c||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=Bi(e))){for(t.flags|=128,da(r,!1),e=i.updateQueue,t.updateQueue=e,ua(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return B(zi,1&zi.current|2),fo&&oo(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&ae()>Mc&&(t.flags|=128,o=!0,da(r,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=Bi(i))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ua(t,e),da(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!fo)return fa(t),null}else 2*ae()-r.renderingStartTime>Mc&&536870912!==n&&(t.flags|=128,o=!0,da(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=r.last)?e.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ae(),e.sibling=null,n=zi.current,B(zi,o?1&n|2:1&n),fo&&oo(t,r.treeForkCount),e):(fa(t),null);case 22:case 23:return ji(t),Li(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(fa(t),6&t.subtreeFlags&&(t.flags|=8192)):fa(t),null!==(n=t.updateQueue)&&ua(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&z(Go),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),To(jo),fa(t),null;case 25:case 30:return null}throw Error(s(156,t.tag))}function ha(e,t){switch(lo(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return To(jo),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(ji(t),null===t.alternate)throw Error(s(340));wo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(ji(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));wo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return z(zi),null;case 4:return Y(),null;case 10:return To(t.type),null;case 22:case 23:return ji(t),Li(),null!==e&&z(Go),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return To(jo),null;default:return null}}function ga(e,t){switch(lo(t),t.tag){case 3:To(jo),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&ji(t);break;case 13:ji(t);break;case 19:z(zi);break;case 10:To(t.type);break;case 22:case 23:ji(t),Li(),null!==e&&z(Go);break;case 24:To(jo)}}function ma(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,s=n.inst;r=i(),s.destroy=r}n=n.next}while(n!==o)}}catch(e){_u(t,t.return,e)}}function ya(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var s=r.inst,l=s.destroy;if(void 0!==l){s.destroy=void 0,o=t;var a=n,c=l;try{c()}catch(e){_u(o,a,e)}}}r=r.next}while(r!==i)}}catch(e){_u(t,t.return,e)}}function va(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ti(t,n)}catch(t){_u(e,e.return,t)}}}function ba(e,t,n){n.props=_l(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){_u(e,t,n)}}function wa(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){_u(e,t,n)}}function xa(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){_u(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){_u(e,t,n)}else n.current=null}function Sa(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(t){_u(e,e.return,t)}}function _a(e,t,n){try{var r=e.stateNode;!function(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 o=null,i=null,l=null,a=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:r.hasOwnProperty(h)||ud(e,t,h,null,r,f)}}for(var p in r){var h=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":o=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":l=h;break;case"defaultValue":a=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(s(137,t));break;default:h!==f&&ud(e,t,p,h,r,f)}}return void vt(e,l,a,c,u,d,i,o);case"select":for(i in h=l=a=p=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":h=c;default:r.hasOwnProperty(i)||ud(e,t,i,null,r,c)}for(o in r)if(i=r[o],c=n[o],r.hasOwnProperty(o)&&(null!=i||null!=c))switch(o){case"value":p=i;break;case"defaultValue":a=i;break;case"multiple":l=i;default:i!==c&&ud(e,t,o,i,r,c)}return t=a,n=l,r=h,void(null!=p?xt(e,!!n,p,!1):!!r!=!!n&&(null!=t?xt(e,!!n,t,!0):xt(e,!!n,n?[]:"",!1)));case"textarea":for(a in h=p=null,n)if(o=n[a],n.hasOwnProperty(a)&&null!=o&&!r.hasOwnProperty(a))switch(a){case"value":case"children":break;default:ud(e,t,a,null,r,o)}for(l in r)if(o=r[l],i=n[l],r.hasOwnProperty(l)&&(null!=o||null!=i))switch(l){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(s(91));break;default:o!==i&&ud(e,t,l,o,r,i)}return void St(e,p,h);case"option":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&("selected"===g?e.selected=!1:ud(e,t,g,null,r,p));for(c in r)p=r[c],h=n[c],!r.hasOwnProperty(c)||p===h||null==p&&null==h||("selected"===c?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:ud(e,t,c,p,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 m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m)&&ud(e,t,m,null,r,p);for(u in r)if(p=r[u],h=n[u],r.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(s(137,t));break;default:ud(e,t,u,p,r,h)}return;default:if(Nt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&dd(e,t,y,void 0,r,p);for(d in r)p=r[d],h=n[d],!r.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||dd(e,t,d,p,r,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&ud(e,t,v,null,r,p);for(f in r)p=r[f],h=n[f],!r.hasOwnProperty(f)||p===h||null==p&&null==h||ud(e,t,f,p,r,h)}(r,e.type,n,t),r[Ue]=t}catch(t){_u(e,e.return,t)}}function Ca(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&kd(e.type)||4===e.tag}function Ea(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ca(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&kd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ka(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Lt));else if(4!==r&&(27===r&&kd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(ka(e,t,n),e=e.sibling;null!==e;)ka(e,t,n),e=e.sibling}function Ta(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&kd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Ta(e,t,n),e=e.sibling;null!==e;)Ta(e,t,n),e=e.sibling}function Na(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);fd(t,r,n),t[Be]=e,t[Ue]=n}catch(t){_u(e,e.return,t)}}var Aa=!1,Ra=!1,Pa=!1,La="function"==typeof WeakSet?WeakSet:Set,Oa=null;function Ma(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ga(e,n),4&r&&ma(5,n);break;case 1:if(Ga(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){_u(n,n.return,e)}else{var o=_l(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){_u(n,n.return,e)}}64&r&&va(n),512&r&&wa(n,n.return);break;case 3:if(Ga(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Ti(e,t)}catch(e){_u(n,n.return,e)}}break;case 27:null===t&&4&r&&Na(n);case 26:case 5:Ga(e,n),null===t&&4&r&&Sa(n),512&r&&wa(n,n.return);break;case 12:Ga(e,n);break;case 31:Ga(e,n),4&r&&za(e,n);break;case 13:Ga(e,n),4&r&&Ba(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Tu.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Aa)){t=null!==t&&null!==t.memoizedState||Ra,o=Aa;var i=Ra;Aa=r,(Ra=t)&&!i?Ja(e,n,!!(8772&n.subtreeFlags)):Ga(e,n),Aa=o,Ra=i}break;case 30:break;default:Ga(e,n)}}function Fa(e){var t=e.alternate;null!==t&&(e.alternate=null,Fa(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ye(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 Da=null,Ia=!1;function $a(e,t,n){for(n=n.child;null!==n;)ja(e,t,n),n=n.sibling}function ja(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ye,n)}catch(e){}switch(n.tag){case 26:Ra||xa(n,t),$a(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ra||xa(n,t);var r=Da,o=Ia;kd(n.type)&&(Da=n.stateNode,Ia=!1),$a(e,t,n),$d(n.stateNode),Da=r,Ia=o;break;case 5:Ra||xa(n,t);case 6:if(r=Da,o=Ia,Da=null,$a(e,t,n),Ia=o,null!==(Da=r))if(Ia)try{(9===Da.nodeType?Da.body:"HTML"===Da.nodeName?Da.ownerDocument.body:Da).removeChild(n.stateNode)}catch(e){_u(n,t,e)}else try{Da.removeChild(n.stateNode)}catch(e){_u(n,t,e)}break;case 18:null!==Da&&(Ia?(Td(9===(e=Da).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Wf(e)):Td(Da,n.stateNode));break;case 4:r=Da,o=Ia,Da=n.stateNode.containerInfo,Ia=!0,$a(e,t,n),Da=r,Ia=o;break;case 0:case 11:case 14:case 15:ya(2,n,t),Ra||ya(4,n,t),$a(e,t,n);break;case 1:Ra||(xa(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ba(n,t,r)),$a(e,t,n);break;case 21:$a(e,t,n);break;case 22:Ra=(r=Ra)||null!==n.memoizedState,$a(e,t,n),Ra=r;break;default:$a(e,t,n)}}function za(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Wf(e)}catch(e){_u(t,t.return,e)}}}function Ba(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Wf(e)}catch(e){_u(t,t.return,e)}}function Ua(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new La),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new La),t;default:throw Error(s(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nu.bind(null,e,t);t.then(r,r)}})}function Ha(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],i=e,l=t,a=l;e:for(;null!==a;){switch(a.tag){case 27:if(kd(a.type)){Da=a.stateNode,Ia=!1;break e}break;case 5:Da=a.stateNode,Ia=!1;break e;case 3:case 4:Da=a.stateNode.containerInfo,Ia=!0;break e}a=a.return}if(null===Da)throw Error(s(160));ja(i,l,o),Da=null,Ia=!1,null!==(i=o.alternate)&&(i.return=null),o.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Wa(t,e),t=t.sibling}var Ka=null;function Wa(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ha(t,e),Va(e),4&r&&(ya(3,e,e.return),ma(3,e),ya(5,e,e.return));break;case 1:Ha(t,e),Va(e),512&r&&(Ra||null===n||xa(n,n.return)),64&r&&Aa&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var o=Ka;if(Ha(t,e),Va(e),512&r&&(Ra||null===n||xa(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(i=o.getElementsByTagName("title")[0])||i[Ge]||i[Be]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(r),o.head.insertBefore(i,o.querySelector("head > title"))),fd(i,r,n),i[Be]=e,et(i),r=i;break e;case"link":var l=nf("link","href",o).get(r+(n.href||""));if(l)for(var a=0;a<l.length;a++)if((i=l[a]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){l.splice(a,1);break t}fd(i=o.createElement(r),r,n),o.head.appendChild(i);break;case"meta":if(l=nf("meta","content",o).get(r+(n.content||"")))for(a=0;a<l.length;a++)if((i=l[a]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){l.splice(a,1);break t}fd(i=o.createElement(r),r,n),o.head.appendChild(i);break;default:throw Error(s(468,r))}i[Be]=e,et(i),r=i}e.stateNode=r}else rf(o,e.type,e.stateNode);else e.stateNode=Xd(o,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===r?rf(o,e.type,e.stateNode):Xd(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&_a(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ha(t,e),Va(e),512&r&&(Ra||null===n||xa(n,n.return)),null!==n&&4&r&&_a(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ha(t,e),Va(e),512&r&&(Ra||null===n||xa(n,n.return)),32&e.flags){o=e.stateNode;try{Ct(o,"")}catch(t){_u(e,e.return,t)}}4&r&&null!=e.stateNode&&_a(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(Pa=!0);break;case 6:if(Ha(t,e),Va(e),4&r){if(null===e.stateNode)throw Error(s(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){_u(e,e.return,t)}}break;case 3:if(tf=null,o=Ka,Ka=Bd(t.containerInfo),Ha(t,e),Ka=o,Va(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wf(t.containerInfo)}catch(t){_u(e,e.return,t)}Pa&&(Pa=!1,qa(e));break;case 4:r=Ka,Ka=Bd(e.stateNode.containerInfo),Ha(t,e),Va(e),Ka=r;break;case 12:default:Ha(t,e),Va(e);break;case 31:case 19:Ha(t,e),Va(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ua(e,r));break;case 13:Ha(t,e),Va(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Lc=ae()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ua(e,r));break;case 22:o=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Aa,d=Ra;if(Aa=u||o,Ra=d||c,Ha(t,e),Ra=d,Aa=u,Va(e),8192&r)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||c||Aa||Ra||Ya(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,o)"function"==typeof(l=i.style).setProperty?l.setProperty("display","none","important"):l.display="none";else{a=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;a.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){_u(c,c.return,e)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=o?"":c.memoizedProps}catch(e){_u(c,c.return,e)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;o?Nd(h,!0):Nd(c.stateNode,!1)}catch(e){_u(c,c.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Ua(e,n));case 30:case 21:}}function Va(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Ca(r)){n=r;break}r=r.return}if(null==n)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode;Ta(e,Ea(e),o);break;case 5:var i=n.stateNode;32&n.flags&&(Ct(i,""),n.flags&=-33),Ta(e,Ea(e),i);break;case 3:case 4:var l=n.stateNode.containerInfo;ka(e,Ea(e),l);break;default:throw Error(s(161))}}catch(t){_u(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function qa(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;qa(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ga(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ma(e,t.alternate,t),t=t.sibling}function Ya(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ya(4,t,t.return),Ya(t);break;case 1:xa(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ba(t,t.return,n),Ya(t);break;case 27:$d(t.stateNode);case 26:case 5:xa(t,t.return),Ya(t);break;case 22:null===t.memoizedState&&Ya(t);break;default:Ya(t)}e=e.sibling}}function Ja(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,s=i.flags;switch(i.tag){case 0:case 11:case 15:Ja(o,i,n),ma(4,i);break;case 1:if(Ja(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){_u(r,r.return,e)}if(null!==(o=(r=i).updateQueue)){var l=r.stateNode;try{var a=o.shared.hiddenCallbacks;if(null!==a)for(o.shared.hiddenCallbacks=null,o=0;o<a.length;o++)ki(a[o],l)}catch(e){_u(r,r.return,e)}}n&&64&s&&va(i),wa(i,i.return);break;case 27:Na(i);case 26:case 5:Ja(o,i,n),n&&null===r&&4&s&&Sa(i),wa(i,i.return);break;case 12:Ja(o,i,n);break;case 31:Ja(o,i,n),n&&4&s&&za(o,i);break;case 13:Ja(o,i,n),n&&4&s&&Ba(o,i);break;case 22:null===i.memoizedState&&Ja(o,i,n),wa(i,i.return);break;case 30:break;default:Ja(o,i,n)}t=t.sibling}}function Xa(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Bo(n))}function Qa(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function Za(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ec(e,t,n,r),t=t.sibling}function ec(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Za(e,t,n,r),2048&o&&ma(9,t);break;case 1:case 31:case 13:default:Za(e,t,n,r);break;case 3:Za(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){Za(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,s=i.id,l=i.onPostCommit;"function"==typeof l&&l(s,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){_u(t,t.return,e)}}else Za(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,null!==t.memoizedState?2&i._visibility?Za(e,t,n,r):nc(e,t):2&i._visibility?Za(e,t,n,r):(i._visibility|=2,tc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Xa(s,t);break;case 24:Za(e,t,n,r),2048&o&&Qa(t.alternate,t)}}function tc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,s=t,l=n,a=r,c=s.flags;switch(s.tag){case 0:case 11:case 15:tc(i,s,l,a,o),ma(8,s);break;case 23:break;case 22:var u=s.stateNode;null!==s.memoizedState?2&u._visibility?tc(i,s,l,a,o):nc(i,s):(u._visibility|=2,tc(i,s,l,a,o)),o&&2048&c&&Xa(s.alternate,s);break;case 24:tc(i,s,l,a,o),o&&2048&c&&Qa(s.alternate,s);break;default:tc(i,s,l,a,o)}t=t.sibling}}function nc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:nc(n,r),2048&o&&Xa(r.alternate,r);break;case 24:nc(n,r),2048&o&&Qa(r.alternate,r);break;default:nc(n,r)}t=t.sibling}}var rc=8192;function oc(e,t,n){if(e.subtreeFlags&rc)for(e=e.child;null!==e;)ic(e,t,n),e=e.sibling}function ic(e,t,n){switch(e.tag){case 26:oc(e,t,n),e.flags&rc&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Vd(r.href),i=t.querySelector(qd(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=lf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void et(i);i=t.ownerDocument||t,r=Gd(r),(o=jd.get(o))&&Zd(r,o),et(i=i.createElement("link"));var s=i;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),fd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=lf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Ka,e.memoizedState,e.memoizedProps);break;case 5:default:oc(e,t,n);break;case 3:case 4:var r=Ka;Ka=Bd(e.stateNode.containerInfo),oc(e,t,n),Ka=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=rc,rc=16777216,oc(e,t,n),rc=r):oc(e,t,n))}}function sc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function lc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Oa=r,uc(r,e)}sc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)ac(e),e=e.sibling}function ac(e){switch(e.tag){case 0:case 11:case 15:lc(e),2048&e.flags&&ya(9,e,e.return);break;case 3:case 12:default:lc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,cc(e)):lc(e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Oa=r,uc(r,e)}sc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:ya(8,t,t.return),cc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,cc(t));break;default:cc(t)}e=e.sibling}}function uc(e,t){for(;null!==Oa;){var n=Oa;switch(n.tag){case 0:case 11:case 15:ya(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Oa=r;else e:for(n=e;null!==Oa;){var o=(r=Oa).sibling,i=r.return;if(Fa(r),r===n){Oa=null;break e}if(null!==o){o.return=i,Oa=o;break e}Oa=i}}}var dc={getCacheForType:function(e){var t=Oo(jo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Oo(jo).controller.signal}},fc="function"==typeof WeakMap?WeakMap:Map,pc=0,hc=null,gc=null,mc=0,yc=0,vc=null,bc=!1,wc=!1,xc=!1,Sc=0,_c=0,Cc=0,Ec=0,kc=0,Tc=0,Nc=0,Ac=null,Rc=null,Pc=!1,Lc=0,Oc=0,Mc=1/0,Fc=null,Dc=null,Ic=0,$c=null,jc=null,zc=0,Bc=0,Uc=null,Hc=null,Kc=0,Wc=null;function Vc(){return 2&pc&&0!==mc?mc&-mc:null!==M.T?Uu():$e()}function qc(){if(0===Tc)if(536870912&mc&&!fo)Tc=536870912;else{var e=Ce;!(3932160&(Ce<<=1))&&(Ce=262144),Tc=e}return null!==(e=Oi.current)&&(e.flags|=32),Tc}function Gc(e,t,n){(e!==hc||2!==yc&&9!==yc)&&null===e.cancelPendingCommit||(tu(e,0),Qc(e,mc,Tc,!1)),Le(e,n),2&pc&&e===hc||(e===hc&&(!(2&pc)&&(Ec|=n),4===_c&&Qc(e,mc,Tc,!1)),Fu(e))}function Yc(e,t,n){if(6&pc)throw Error(s(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ne(e,t),o=r?function(e,t){var n=pc;pc|=2;var r=ou(),o=iu();hc!==e||mc!==t?(Fc=null,Mc=ae()+500,tu(e,t)):wc=Ne(e,t);e:for(;;)try{if(0!==yc&&null!==gc){t=gc;var i=vc;t:switch(yc){case 1:yc=0,vc=null,fu(e,t,i,1);break;case 2:case 9:if(ni(i)){yc=0,vc=null,du(t);break}t=function(){2!==yc&&9!==yc||hc!==e||(yc=7),Fu(e)},i.then(t,t);break e;case 3:yc=7;break e;case 4:yc=5;break e;case 7:ni(i)?(yc=0,vc=null,du(t)):(yc=0,vc=null,fu(e,t,i,7));break;case 5:var l=null;switch(gc.tag){case 26:l=gc.memoizedState;case 5:case 27:var a=gc;if(l?of(l):a.stateNode.complete){yc=0,vc=null;var c=a.sibling;if(null!==c)gc=c;else{var u=a.return;null!==u?(gc=u,pu(u)):gc=null}break t}}yc=0,vc=null,fu(e,t,i,5);break;case 6:yc=0,vc=null,fu(e,t,i,6);break;case 8:eu(),_c=6;break e;default:throw Error(s(462))}}cu();break}catch(t){nu(e,t)}return Eo=Co=null,M.H=r,M.A=o,pc=n,null!==gc?0:(hc=null,mc=0,Rr(),_c)}(e,t):lu(e,t,!0),i=r;;){if(0===o){wc&&!r&&Qc(e,t,0,!1);break}if(n=e.current.alternate,!i||Xc(n)){if(2===o){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=0!=(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){t=l;e:{var a=e;o=Ac;var c=a.current.memoizedState.isDehydrated;if(c&&(tu(a,l).flags|=256),2!==(l=lu(a,l,!1))){if(xc&&!c){a.errorRecoveryDisabledLanes|=i,Ec|=i,o=4;break e}i=Rc,Rc=o,null!==i&&(null===Rc?Rc=i:Rc.push.apply(Rc,i))}o=l}if(i=!1,2!==o)continue}}if(1===o){tu(e,0),Qc(e,t,0,!0);break}e:{switch(r=e,i=o){case 0:case 1:throw Error(s(345));case 4:if((4194048&t)!==t)break;case 6:Qc(r,t,Tc,!bc);break e;case 2:Rc=null;break;case 3:case 5:break;default:throw Error(s(329))}if((62914560&t)===t&&10<(o=Lc+300-ae())){if(Qc(r,t,Tc,!bc),0!==Te(r,0,!0))break e;zc=t,r.timeoutHandle=xd(Jc.bind(null,r,n,Rc,Fc,Pc,t,Tc,Ec,Nc,bc,i,"Throttled",-0,0),o)}else Jc(r,n,Rc,Fc,Pc,t,Tc,Ec,Nc,bc,i,null,-0,0)}break}o=lu(e,t,!1),i=!1}Fu(e)}function Jc(e,t,n,r,o,i,s,l,a,c,u,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){ic(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Lt});var h=(62914560&i)===i?Lc-ae():(4194048&i)===i?Oc-ae():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&cf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&cf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===sf&&(sf=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,s=o.initiatorType,l=o.duration;if(i&&l&&pd(s)){for(s=0,l=o.responseEnd,r+=1;r<n.length;r++){var a=n[r],c=a.startTime;if(c>l)break;var u=a.transferSize,d=a.initiatorType;u&&pd(d)&&(s+=u*((a=a.responseEnd)<l?1:(l-c)/(a-c)))}if(--r,t+=8*(i+s)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&cf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return zc=i,e.cancelPendingCommit=h(gu.bind(null,e,t,i,n,r,o,s,l,a,u,d,null,f,p)),void Qc(e,i,s,!c)}gu(e,t,i,n,r,o,s,l,a)}function Xc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Qn(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qc(e,t,n,r){t&=~kc,t&=~Ec,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-we(o),s=1<<i;r[i]=-1,o&=~s}0!==n&&Oe(e,n,t)}function Zc(){return!!(6&pc)||(Du(0,!1),!1)}function eu(){if(null!==gc){if(0===yc)var e=gc.return;else Eo=Co=null,ls(e=gc),ai=null,ci=0,e=gc;for(;null!==e;)ga(e.alternate,e),e=e.return;gc=null}}function tu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),zc=0,eu(),hc=e,gc=n=zr(e.current,null),mc=t,yc=0,vc=null,bc=!1,wc=Ne(e,t),xc=!1,Nc=Tc=kc=Ec=Cc=_c=0,Rc=Ac=null,Pc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-we(r),i=1<<o;t|=e[o],r&=~i}return Sc=t,Rr(),n}function nu(e,t){Hi=null,M.H=gl,t===Qo||t===ei?(t=si(),yc=3):t===Zo?(t=si(),yc=4):yc=t===Ll?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,vc=t,null===gc&&(_c=1,Tl(e,Gr(t,e.current)))}function ru(){var e=Oi.current;return null===e||((4194048&mc)===mc?null===Mi:!!((62914560&mc)===mc||536870912&mc)&&e===Mi)}function ou(){var e=M.H;return M.H=gl,null===e?gl:e}function iu(){var e=M.A;return M.A=dc,e}function su(){_c=4,bc||(4194048&mc)!==mc&&null!==Oi.current||(wc=!0),!(134217727&Cc)&&!(134217727&Ec)||null===hc||Qc(hc,mc,Tc,!1)}function lu(e,t,n){var r=pc;pc|=2;var o=ou(),i=iu();hc===e&&mc===t||(Fc=null,tu(e,t)),t=!1;var s=_c;e:for(;;)try{if(0!==yc&&null!==gc){var l=gc,a=vc;switch(yc){case 8:eu(),s=6;break e;case 3:case 2:case 9:case 6:null===Oi.current&&(t=!0);var c=yc;if(yc=0,vc=null,fu(e,l,a,c),n&&wc){s=0;break e}break;default:c=yc,yc=0,vc=null,fu(e,l,a,c)}}au(),s=_c;break}catch(t){nu(e,t)}return t&&e.shellSuspendCounter++,Eo=Co=null,pc=r,M.H=o,M.A=i,null===gc&&(hc=null,mc=0,Rr()),s}function au(){for(;null!==gc;)uu(gc)}function cu(){for(;null!==gc&&!se();)uu(gc)}function uu(e){var t=sa(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?pu(e):gc=t}function du(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wl(n,t,t.pendingProps,t.type,void 0,mc);break;case 11:t=Wl(n,t,t.pendingProps,t.type.render,t.ref,mc);break;case 5:ls(t);default:ga(n,t),t=sa(n,t=gc=Br(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?pu(e):gc=t}function fu(e,t,n,r){Eo=Co=null,ls(t),ai=null,ci=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Ro(t,n,o,!0),null!==(n=Oi.current)){switch(n.tag){case 31:case 13:return null===Mi?su():null===n.alternate&&0===_c&&(_c=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===ti?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Cu(e,r,o)),!1;case 22:return n.flags|=65536,r===ti?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Cu(e,r,o)),!1}throw Error(s(435,n.tag))}return Cu(e,r,o),su(),!1}if(fo)return null!==(t=Oi.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==go&&So(Gr(e=Error(s(422),{cause:r}),n))):(r!==go&&So(Gr(t=Error(s(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=Gr(r,n),Si(e,o=Al(e.stateNode,r,o)),4!==_c&&(_c=2)),!1;var i=Error(s(520),{cause:r});if(i=Gr(i,n),null===Ac?Ac=[i]:Ac.push(i),4!==_c&&(_c=2),null===t)return!0;r=Gr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,Si(n,e=Al(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Dc&&Dc.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,Pl(o=Rl(o),e,n,r),Si(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,mc))return _c=1,Tl(e,Gr(n,e.current)),void(gc=null)}catch(t){if(null!==o)throw gc=o,t;return _c=1,Tl(e,Gr(n,e.current)),void(gc=null)}32768&t.flags?(fo||1===r?e=!0:wc||536870912&mc?e=!1:(bc=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=Oi.current)&&13===r.tag&&(r.flags|=16384)),hu(t,e)):pu(t)}function pu(e){var t=e;do{if(32768&t.flags)return void hu(t,bc);e=t.return;var n=pa(t.alternate,t,Sc);if(null!==n)return void(gc=n);if(null!==(t=t.sibling))return void(gc=t);gc=t=e}while(null!==t);0===_c&&(_c=5)}function hu(e,t){do{var n=ha(e.alternate,e);if(null!==n)return n.flags&=32767,void(gc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(gc=e);gc=e=n}while(null!==e);_c=6,gc=null}function gu(e,t,n,r,o,i,l,a,c){e.cancelPendingCommit=null;do{wu()}while(0!==Ic);if(6&pc)throw Error(s(327));if(null!==t){if(t===e.current)throw Error(s(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,i){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 l=e.entanglements,a=e.expirationTimes,c=e.hiddenUpdates;for(n=s&~n;0<n;){var u=31-we(n),d=1<<u;l[u]=0,a[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Oe(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(s&~t))}(e,n,i|=Ar,l,a,c),e===hc&&(gc=hc=null,mc=0),jc=t,$c=e,zc=n,Bc=i,Uc=o,Hc=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,oe(fe,function(){return xu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=M.T,M.T=null,o=F.p,F.p=2,l=pc,pc|=4;try{!function(e,t){if(e=e.containerInfo,hd=wf,or(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,a=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(a=l+o),f!==i||0!==r&&3!==f.nodeType||(c=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(a=l),p===i&&++d===r&&(c=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===a||-1===c?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(gd={focusedElem:e,selectionRange:n},wf=!1,Oa=t;null!==Oa;)if(e=(t=Oa).child,1028&t.subtreeFlags&&null!==e)e.return=t,Oa=e;else for(;null!==Oa;){switch(i=(t=Oa).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(o=e[n]).ref.impl=o.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,o=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var g=_l(n.type,o);e=r.getSnapshotBeforeUpdate(g,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){_u(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Ad(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ad(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(s(163))}if(null!==(e=t.sibling)){e.return=t.return,Oa=e;break}Oa=t.return}}(e,t)}finally{pc=l,F.p=o,M.T=r}}Ic=1,mu(),yu(),vu()}}function mu(){if(1===Ic){Ic=0;var e=$c,t=jc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=M.T,M.T=null;var r=F.p;F.p=2;var o=pc;pc|=4;try{Wa(t,e);var i=gd,s=rr(e.containerInfo),l=i.focusedElem,a=i.selectionRange;if(s!==l&&l&&l.ownerDocument&&nr(l.ownerDocument.documentElement,l)){if(null!==a&&or(l)){var c=a.start,u=a.end;if(void 0===u&&(u=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=l.textContent.length,g=Math.min(a.start,h),m=void 0===a.end?g:Math.min(a.end,h);!p.extend&&g>m&&(s=m,m=g,g=s);var y=tr(l,g),v=tr(l,m);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}wf=!!hd,gd=hd=null}finally{pc=o,F.p=r,M.T=n}}e.current=t,Ic=2}}function yu(){if(2===Ic){Ic=0;var e=$c,t=jc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=M.T,M.T=null;var r=F.p;F.p=2;var o=pc;pc|=4;try{Ma(e,t.alternate,t)}finally{pc=o,F.p=r,M.T=n}}Ic=3}}function vu(){if(4===Ic||3===Ic){Ic=0,le();var e=$c,t=jc,n=zc,r=Hc;10256&t.subtreeFlags||10256&t.flags?Ic=5:(Ic=0,jc=$c=null,bu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Dc=null),Ie(n),t=t.stateNode,ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ye,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=M.T,o=F.p,F.p=2,M.T=null;try{for(var i=e.onRecoverableError,s=0;s<r.length;s++){var l=r[s];i(l.value,{componentStack:l.stack})}}finally{M.T=t,F.p=o}}3&zc&&wu(),Fu(e),o=e.pendingLanes,261930&n&&42&o?e===Wc?Kc++:(Kc=0,Wc=e):Kc=0,Du(0,!1)}}function bu(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t))}function wu(){return mu(),yu(),vu(),xu()}function xu(){if(5!==Ic)return!1;var e=$c,t=Bc;Bc=0;var n=Ie(zc),r=M.T,o=F.p;try{F.p=32>n?32:n,M.T=null,n=Uc,Uc=null;var i=$c,l=zc;if(Ic=0,jc=$c=null,zc=0,6&pc)throw Error(s(331));var a=pc;if(pc|=4,ac(i.current),ec(i,i.current,l,n),pc=a,Du(0,!1),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ye,i)}catch(e){}return!0}finally{F.p=o,M.T=r,bu(e,t)}}function Su(e,t,n){t=Gr(n,t),null!==(e=wi(e,t=Al(e.stateNode,t,2),2))&&(Le(e,2),Fu(e))}function _u(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Dc||!Dc.has(r))){e=Gr(n,e),null!==(r=wi(t,n=Rl(2),2))&&(Pl(n,r,t,e),Le(r,2),Fu(r));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(xc=!0,o.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,hc===e&&(mc&n)===n&&(4===_c||3===_c&&(62914560&mc)===mc&&300>ae()-Lc?!(2&pc)&&tu(e,0):kc|=n,Nc===mc&&(Nc=0)),Fu(e)}function ku(e,t){0===t&&(t=Re()),null!==(e=Or(e,t))&&(Le(e,t),Fu(e))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ku(e,n)}function Nu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(t),ku(e,n)}var Au=null,Ru=null,Pu=!1,Lu=!1,Ou=!1,Mu=0;function Fu(e){e!==Ru&&null===e.next&&(null===Ru?Au=Ru=e:Ru=Ru.next=e),Lu=!0,Pu||(Pu=!0,Cd(function(){6&pc?oe(ue,Iu):$u()}))}function Du(e,t){if(!Ou&&Lu){Ou=!0;do{for(var n=!1,r=Au;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var s=r.suspendedLanes,l=r.pingedLanes;i=(1<<31-we(42|e)+1)-1,i=201326741&(i&=o&~(s&~l))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Bu(r,i))}else i=mc,!(3&(i=Te(r,r===hc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Ou=!1}}function Iu(){$u()}function $u(){Lu=Pu=!1;var e,t=0;0!==Mu&&((e=window.event)&&"popstate"===e.type?e!==wd&&(wd=e,1):(wd=null,0))&&(t=Mu);for(var n=ae(),r=null,o=Au;null!==o;){var i=o.next,s=ju(o,n);0===s?(o.next=null,null===r?Au=i:r.next=i,null===i&&(Ru=r)):(r=o,(0!==t||3&s)&&(Lu=!0)),o=i}0!==Ic&&5!==Ic||Du(t,!1),0!==Mu&&(Mu=0)}function ju(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var s=31-we(i),l=1<<s,a=o[s];-1===a?0!==(l&n)&&0===(l&r)||(o[s]=Ae(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}if(n=mc,n=Te(e,e===(t=hc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===yc||9===yc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ie(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ne(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ie(r),Ie(n)){case 2:case 8:n=de;break;case 32:default:n=fe;break;case 268435456:n=he}return r=zu.bind(null,e),n=oe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ie(r),e.callbackPriority=2,e.callbackNode=null,2}function zu(e,t){if(0!==Ic&&5!==Ic)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(wu()&&e.callbackNode!==n)return null;var r=mc;return 0===(r=Te(e,e===hc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Yc(e,r,t),ju(e,ae()),null!=e.callbackNode&&e.callbackNode===n?zu.bind(null,e):null)}function Bu(e,t){if(wu())return null;Yc(e,t,!0)}function Uu(){if(0===Mu){var e=Ko;0===e&&(e=_e,!(261888&(_e<<=1))&&(_e=256)),Mu=e}return Mu}function Hu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Pt(""+e)}function Ku(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}for(var Wu=0;Wu<Cr.length;Wu++){var Vu=Cr[Wu];Er(Vu.toLowerCase(),"on"+(Vu[0].toUpperCase()+Vu.slice(1)))}Er(mr,"onAnimationEnd"),Er(yr,"onAnimationIteration"),Er(vr,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(br,"onTransitionRun"),Er(wr,"onTransitionStart"),Er(xr,"onTransitionCancel"),Er(Sr,"onTransitionEnd"),ot("onMouseEnter",["mouseout","mouseover"]),ot("onMouseLeave",["mouseout","mouseover"]),ot("onPointerEnter",["pointerout","pointerover"]),ot("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qu="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(" "),Gu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qu));function Yu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;i=l,o.currentTarget=c;try{i(o)}catch(e){kr(e)}o.currentTarget=null,i=a}else for(s=0;s<r.length;s++){if(a=(l=r[s]).instance,c=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;i=l,o.currentTarget=c;try{i(o)}catch(e){kr(e)}o.currentTarget=null,i=a}}}}function Ju(e,t){var n=t[Ke];void 0===n&&(n=t[Ke]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Xu(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Qu="_reactListening"+Math.random().toString(36).slice(2);function Zu(e){if(!e[Qu]){e[Qu]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Gu.has(t)||Xu(t,!1,e),Xu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Qu]||(t[Qu]=!0,Xu("selectionchange",!1,t))}}function ed(e,t,n,r){switch(Tf(t)){case 2:var o=xf;break;case 8:o=Sf;break;default:o=_f}n=o.bind(null,t,n,e),o=void 0,!Ut||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function td(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Je(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=i=s;continue e}l=l.parentNode}}r=r.return}jt(function(){var r=i,o=Mt(n),s=[];e:{var l=_r.get(e);if(void 0!==l){var c=nn,u=e;switch(e){case"keypress":if(0===Gt(n))break e;case"keydown":case"keyup":c=vn;break;case"focusin":u="focus",c=cn;break;case"focusout":u="blur",c=cn;break;case"beforeblur":case"afterblur":c=cn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=ln;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=an;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=wn;break;case mr:case yr:case vr:c=un;break;case Sr:c=xn;break;case"scroll":case"scrollend":c=on;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=bn;break;case"toggle":case"beforetoggle":c=_n}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=zt(g,p))&&d.push(nd(g,m,h)),f)break;g=g.return}0<d.length&&(l=new c(l,u,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Ot||!(u=n.relatedTarget||n.fromElement)||!Je(u)&&!u[He])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Je(u):null)&&(f=a(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=ln,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=bn,m="onPointerLeave",p="onPointerEnter",g="pointer"),f=null==c?l:Qe(c),h=null==u?l:Qe(u),(l=new d(m,g+"leave",c,n,o)).target=f,l.relatedTarget=h,m=null,Je(o)===r&&((d=new d(p,g+"enter",u,n,o)).target=h,d.relatedTarget=f,m=d),f=m,c&&u)e:{for(d=od,g=u,h=0,m=p=c;m;m=d(m))h++;m=0;for(var y=g;y;y=d(y))m++;for(;0<h-m;)p=d(p),h--;for(;0<m-h;)g=d(g),m--;for(;h--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==c&&id(s,l,c,d,!1),null!==u&&null!==f&&id(s,f,u,d,!0)}if("select"===(c=(l=r?Qe(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var v=Bn;else if(Fn(l))if(Un)v=Xn;else{v=Yn;var b=Gn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Nt(r.elementType)&&(v=Bn):v=Jn;switch(v&&(v=v(e,r))?Dn(s,v,n,o):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&wt(l,"number",l.value)),b=r?Qe(r):window,e){case"focusin":(Fn(b)||"true"===b.contentEditable)&&(sr=b,lr=r,ar=null);break;case"focusout":ar=lr=sr=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,ur(s,n,o);break;case"selectionchange":if(ir)break;case"keydown":case"keyup":ur(s,n,o)}var w;if(En)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else On?Pn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Nn&&"ko"!==n.locale&&(On||"onCompositionStart"!==x?"onCompositionEnd"===x&&On&&(w=qt()):(Wt="value"in(Kt=o)?Kt.value:Kt.textContent,On=!0)),0<(b=rd(r,x)).length&&(x=new fn(x,e,null,n,o),s.push({event:x,listeners:b}),(w||null!==(w=Ln(n)))&&(x.data=w))),(w=Tn?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(Rn=!0,An);case"textInput":return(e=t.data)===An&&Rn?null:e;default:return null}}(e,n):function(e,t){if(On)return"compositionend"===e||!En&&Pn(e,t)?(e=qt(),Vt=Wt=Kt=null,On=!1,e):null;switch(e){case"paste":default: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 Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(x=rd(r,"onBeforeInput")).length&&(b=new fn("onBeforeInput","beforeinput",null,n,o),s.push({event:b,listeners:x}),b.data=w),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Hu((o[Ue]||null).action),s=r.submitter;s&&null!==(t=(t=s[Ue]||null)?Hu(t.formAction):s.getAttribute("formAction"))&&(i=t,s=null);var l=new nn("action","action",null,r,o);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Mu){var e=s?Ku(o,s):new FormData(o);tl(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(l.preventDefault(),e=s?Ku(o,s):new FormData(o),tl(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(s,e,r,n,o)}Yu(s,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=zt(e,n))&&r.unshift(nd(e,o,i)),null!=(o=zt(e,t))&&r.push(nd(e,o,i))),3===e.tag)return r;e=e.return}return[]}function od(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function id(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var l=n,a=l.alternate,c=l.stateNode;if(l=l.tag,null!==a&&a===r)break;5!==l&&26!==l&&27!==l||null===c||(a=c,o?null!=(c=zt(n,i))&&s.unshift(nd(n,c,a)):o||null!=(c=zt(n,i))&&s.push(nd(n,c,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var sd=/\r\n?/g,ld=/\u0000|\uFFFD/g;function ad(e){return("string"==typeof e?e:""+e).replace(sd,"\n").replace(ld,"")}function cd(e,t){return t=ad(t),ad(e)===t}function ud(e,t,n,r,o,i){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||Ct(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&Ct(e,""+r);break;case"className":ct(e,"class",r);break;case"tabIndex":ct(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ct(e,n,r);break;case"style":Tt(e,r,i);break;case"data":if("object"!==t){ct(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){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}if("function"==typeof i&&("formAction"===n?("input"!==t&&ud(e,t,"name",o.name,o,null),ud(e,t,"formEncType",o.formEncType,o,null),ud(e,t,"formMethod",o.formMethod,o,null),ud(e,t,"formTarget",o.formTarget,o,null)):(ud(e,t,"encType",o.encType,o,null),ud(e,t,"method",o.method,o,null),ud(e,t,"target",o.target,o,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Lt);break;case"onScroll":null!=r&&Ju("scroll",e);break;case"onScrollEnd":null!=r&&Ju("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(s(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Pt(""+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":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?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&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Ju("beforetoggle",e),Ju("toggle",e),at(e,"popover",r);break;case"xlinkActuate":ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ut(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ut(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ut(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ut(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":at(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&at(e,n=At.get(n)||n,r)}}function dd(e,t,n,r,o,i){switch(n){case"style":Tt(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(s(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(s(60));e.innerHTML=n}}break;case"children":"string"==typeof r?Ct(e,r):("number"==typeof r||"bigint"==typeof r)&&Ct(e,""+r);break;case"onScroll":null!=r&&Ju("scroll",e);break;case"onScrollEnd":null!=r&&Ju("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Lt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Ue]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):at(e,n,r):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function fd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ju("error",e),Ju("load",e);var r,o=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var l=n[r];if(null!=l)switch(r){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ud(e,t,r,l,n,null)}}return i&&ud(e,t,"srcSet",n.srcSet,n,null),void(o&&ud(e,t,"src",n.src,n,null));case"input":Ju("invalid",e);var a=r=l=i=null,c=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":i=d;break;case"type":l=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":a=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(s(137,t));break;default:ud(e,t,o,d,n,null)}}return void bt(e,r,a,c,u,l,i,!1);case"select":for(i in Ju("invalid",e),o=l=r=null,n)if(n.hasOwnProperty(i)&&null!=(a=n[i]))switch(i){case"value":r=a;break;case"defaultValue":l=a;break;case"multiple":o=a;default:ud(e,t,i,a,n,null)}return t=r,n=l,e.multiple=!!o,void(null!=t?xt(e,!!o,t,!1):null!=n&&xt(e,!!o,n,!0));case"textarea":for(l in Ju("invalid",e),r=i=o=null,n)if(n.hasOwnProperty(l)&&null!=(a=n[l]))switch(l){case"value":o=a;break;case"defaultValue":i=a;break;case"children":r=a;break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(s(91));break;default:ud(e,t,l,a,n,null)}return void _t(e,o,i,r);case"option":for(c in n)n.hasOwnProperty(c)&&null!=(o=n[c])&&("selected"===c?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:ud(e,t,c,o,n,null));return;case"dialog":Ju("beforetoggle",e),Ju("toggle",e),Ju("cancel",e),Ju("close",e);break;case"iframe":case"object":Ju("load",e);break;case"video":case"audio":for(o=0;o<qu.length;o++)Ju(qu[o],e);break;case"image":Ju("error",e),Ju("load",e);break;case"details":Ju("toggle",e);break;case"embed":case"source":case"link":Ju("error",e),Ju("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)&&null!=(o=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ud(e,t,u,o,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(o=n[d])&&dd(e,t,d,o,n,void 0);return}}for(a in n)n.hasOwnProperty(a)&&null!=(o=n[a])&&ud(e,t,a,o,n,null)}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var hd=null,gd=null;function md(e){return 9===e.nodeType?e:e.ownerDocument}function yd(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 vd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function bd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wd=null,xd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,_d="function"==typeof Promise?Promise:void 0,Cd="function"==typeof queueMicrotask?queueMicrotask:void 0!==_d?function(e){return _d.resolve(null).then(e).catch(Ed)}:xd;function Ed(e){setTimeout(function(){throw e})}function kd(e){return"head"===e}function Td(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Wf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)$d(e.ownerDocument.documentElement);else if("head"===n){$d(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var s=i.nextSibling,l=i.nodeName;i[Ge]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=s}}else"body"===n&&$d(e.ownerDocument.body);n=o}while(n);Wf(t)}function Nd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Ad(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ad(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Rd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Od(e.nextSibling)))return null}return e}function Pd(e){return"$?"===e.data||"$~"===e.data}function Ld(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Od(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Md=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Od(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Id(e,t,n){switch(t=md(n),e){case"html":if(!(e=t.documentElement))throw Error(s(452));return e;case"head":if(!(e=t.head))throw Error(s(453));return e;case"body":if(!(e=t.body))throw Error(s(454));return e;default:throw Error(s(451))}}function $d(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ye(e)}var jd=new Map,zd=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Ud=F.d;F.d={f:function(){var e=Ud.f(),t=Zc();return e||t},r:function(e){var t=Xe(e);null!==t&&5===t.tag&&"form"===t.type?rl(t):Ud.r(e)},D:function(e){Ud.D(e),Kd("dns-prefetch",e,null)},C:function(e,t){Ud.C(e,t),Kd("preconnect",e,t)},L:function(e,t,n){Ud.L(e,t,n);var r=Hd;if(r&&e&&t){var o='link[rel="preload"][as="'+yt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+yt(n.imageSizes)+'"]')):o+='[href="'+yt(e)+'"]';var i=o;switch(t){case"style":i=Vd(e);break;case"script":i=Yd(e)}jd.has(i)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),jd.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(qd(i))||"script"===t&&r.querySelector(Jd(i))||(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Ud.m(e,t);var n=Hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+yt(r)+'"][href="'+yt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Yd(e)}if(!jd.has(i)&&(e=p({rel:"modulepreload",href:e},t),jd.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Jd(i)))return}fd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Ud.X(e,t);var n=Hd;if(n&&e){var r=Ze(n).hoistableScripts,o=Yd(e),i=r.get(o);i||((i=n.querySelector(Jd(o)))||(e=p({src:e,async:!0},t),(t=jd.get(o))&&ef(e,t),et(i=n.createElement("script")),fd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){Ud.S(e,t,n);var r=Hd;if(r&&e){var o=Ze(r).hoistableStyles,i=Vd(e);t=t||"default";var s=o.get(i);if(!s){var l={loading:0,preload:null};if(s=r.querySelector(qd(i)))l.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=jd.get(i))&&Zd(e,n);var a=s=r.createElement("link");et(a),fd(a,"link",e),a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),a.addEventListener("load",function(){l.loading|=1}),a.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Qd(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:l},o.set(i,s)}}},M:function(e,t){Ud.M(e,t);var n=Hd;if(n&&e){var r=Ze(n).hoistableScripts,o=Yd(e),i=r.get(o);i||((i=n.querySelector(Jd(o)))||(e=p({src:e,async:!0,type:"module"},t),(t=jd.get(o))&&ef(e,t),et(i=n.createElement("script")),fd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Hd="undefined"==typeof document?null:document;function Kd(e,t,n){var r=Hd;if(r&&"string"==typeof t&&t){var o=yt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),zd.has(o)||(zd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function Wd(e,t,n,r){var o,i,l,a,c=(c=V.current)?Bd(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Vd(n.href),(r=(n=Ze(c).hoistableStyles).get(t))||(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("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Vd(n.href);var u=Ze(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(qd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),jd.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},jd.set(e,n),u||(o=c,i=e,l=n,a=d.state,o.querySelector('link[rel="preload"][as="style"]['+i+"]")?a.loading=1:(i=o.createElement("link"),a.preload=i,i.addEventListener("load",function(){return a.loading|=1}),i.addEventListener("error",function(){return a.loading|=2}),fd(i,"link",l),et(i),o.head.appendChild(i))))),t&&null===r)throw Error(s(528,""));return d}if(t&&null!==r)throw Error(s(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Yd(n),(r=(n=Ze(c).hoistableScripts).get(t))||(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(s(444,e))}}function Vd(e){return'href="'+yt(e)+'"'}function qd(e){return'link[rel="stylesheet"]['+e+"]"}function Gd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Yd(e){return'[src="'+yt(e)+'"]'}function Jd(e){return"script[async]"+e}function Xd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var o=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),fd(r,"style",o),Qd(r,n.precedence,e),t.instance=r;case"stylesheet":o=Vd(n.href);var i=e.querySelector(qd(o));if(i)return t.state.loading|=4,t.instance=i,et(i),i;r=Gd(n),(o=jd.get(o))&&Zd(r,o),et(i=(e.ownerDocument||e).createElement("link"));var l=i;return l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),fd(i,"link",r),t.state.loading|=4,Qd(i,n.precedence,e),t.instance=i;case"script":return i=Yd(n.src),(o=e.querySelector(Jd(i)))?(t.instance=o,et(o),o):(r=n,(o=jd.get(i))&&ef(r=p({},n),o),et(o=(e=e.ownerDocument||e).createElement("script")),fd(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Qd(r,n.precedence,e));return t.instance}function Qd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,s=0;s<r.length;s++){var l=r[s];if(l.dataset.precedence===t)i=l;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ef(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tf=null;function nf(e,t,n){if(null===tf){var r=new Map,o=tf=new Map;o.set(n,r)}else(r=(o=tf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ge]||i[Be]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var s=i.getAttribute(t)||"";s=e+s;var l=r.get(s);l?l.push(i):r.set(s,[i])}}return r}function rf(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function of(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var sf=0;function lf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)cf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var af=null;function cf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,af=new Map,t.forEach(uf,e),af=null,lf.call(e))}function uf(e,t){if(!(4&t.state.loading)){var n=af.get(e);if(n)var r=n.get(null);else{n=new Map,af.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var s=o[i];"LINK"!==s.nodeName&&"not all"===s.getAttribute("media")||(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}s=(o=t.instance).getAttribute("data-precedence"),(i=n.get(s)||r)===r&&n.set(null,o),n.set(s,o),this.count++,r=lf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var df={$$typeof:x,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function ff(e,t,n,r,o,i,s,l,a){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=Pe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pe(0),this.hiddenUpdates=Pe(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function pf(e,t,n,r,o,i,s,l,a,c,u,d){return e=new ff(e,t,n,s,a,c,u,d,l),t=1,!0===i&&(t|=24),i=$r(3,null,null,t),e.current=i,i.stateNode=e,(t=zo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},yi(i),e}function hf(e){return e?e=Dr:Dr}function gf(e,t,n,r,o,i){o=hf(o),null===r.context?r.context=o:r.pendingContext=o,(r=bi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=wi(e,r,t))&&(Gc(n,0,t),xi(n,e,t))}function mf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function yf(e,t){mf(e,t),(e=e.alternate)&&mf(e,t)}function vf(e){if(13===e.tag||31===e.tag){var t=Or(e,67108864);null!==t&&Gc(t,0,67108864),yf(e,67108864)}}function bf(e){if(13===e.tag||31===e.tag){var t=Vc(),n=Or(e,t=De(t));null!==n&&Gc(n,0,t),yf(e,t)}}var wf=!0;function xf(e,t,n,r){var o=M.T;M.T=null;var i=F.p;try{F.p=2,_f(e,t,n,r)}finally{F.p=i,M.T=o}}function Sf(e,t,n,r){var o=M.T;M.T=null;var i=F.p;try{F.p=8,_f(e,t,n,r)}finally{F.p=i,M.T=o}}function _f(e,t,n,r){if(wf){var o=Cf(r);if(null===o)td(e,t,r,Ef,n),Df(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Af=If(Af,e,t,n,r,o),!0;case"dragenter":return Rf=If(Rf,e,t,n,r,o),!0;case"mouseover":return Pf=If(Pf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Lf.set(i,If(Lf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Of.set(i,If(Of.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Df(e,r),4&t&&-1<Ff.indexOf(e)){for(;null!==o;){var i=Xe(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var s=ke(i.pendingLanes);if(0!==s){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;s;){var a=1<<31-we(s);l.entanglements[1]|=a,s&=~a}Fu(i),!(6&pc)&&(Mc=ae()+500,Du(0,!1))}}break;case 31:case 13:null!==(l=Or(i,2))&&Gc(l,0,2),Zc(),yf(i,2)}if(null===(i=Cf(r))&&td(e,t,r,Ef,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else td(e,t,r,null,n)}}function Cf(e){return kf(e=Mt(e))}var Ef=null;function kf(e){if(Ef=null,null!==(e=Je(e))){var t=a(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(31===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ef=e,null}function Tf(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(ce()){case ue:return 2;case de:return 8;case fe:case pe:return 32;case he:return 268435456;default:return 32}default:return 32}}var Nf=!1,Af=null,Rf=null,Pf=null,Lf=new Map,Of=new Map,Mf=[],Ff="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 Df(e,t){switch(e){case"focusin":case"focusout":Af=null;break;case"dragenter":case"dragleave":Rf=null;break;case"mouseover":case"mouseout":Pf=null;break;case"pointerover":case"pointerout":Lf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Of.delete(t.pointerId)}}function If(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=Xe(t))&&vf(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function $f(e){var t=Je(e.target);if(null!==t){var n=a(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void je(e.priority,function(){bf(n)})}else if(31===t){if(null!==(t=u(n)))return e.blockedOn=t,void je(e.priority,function(){bf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cf(e.nativeEvent);if(null!==n)return null!==(t=Xe(n))&&vf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ot=r,n.target.dispatchEvent(r),Ot=null,t.shift()}return!0}function zf(e,t,n){jf(e)&&n.delete(t)}function Bf(){Nf=!1,null!==Af&&jf(Af)&&(Af=null),null!==Rf&&jf(Rf)&&(Rf=null),null!==Pf&&jf(Pf)&&(Pf=null),Lf.forEach(zf),Of.forEach(zf)}function Uf(e,t){e.blockedOn===t&&(e.blockedOn=null,Nf||(Nf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Bf)))}var Hf=null;function Kf(e){Hf!==e&&(Hf=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Hf===e&&(Hf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if("function"!=typeof r){if(null===kf(r||n))continue;break}var i=Xe(n);null!==i&&(e.splice(t,3),t-=3,tl(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Wf(e){function t(t){return Uf(t,e)}null!==Af&&Uf(Af,e),null!==Rf&&Uf(Rf,e),null!==Pf&&Uf(Pf,e),Lf.forEach(t),Of.forEach(t);for(var n=0;n<Mf.length;n++){var r=Mf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Mf.length&&null===(n=Mf[0]).blockedOn;)$f(n),null===n.blockedOn&&Mf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],s=o[Ue]||null;if("function"==typeof i)s||Kf(n);else if(s){var l=null;if(i&&i.hasAttribute("formAction")){if(o=i,s=i[Ue]||null)l=s.formAction;else if(null!==kf(o))continue}else l=s.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),Kf(n)}}}function Vf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function qf(e){this._internalRoot=e}function Gf(e){this._internalRoot=e}Gf.prototype.render=qf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));gf(t.current,Vc(),e,t,null,null)},Gf.prototype.unmount=qf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;gf(e.current,2,null,e,null,null),Zc(),t[He]=null}},Gf.prototype.unstable_scheduleHydration=function(e){if(e){var t=$e();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mf.length&&0!==t&&t<Mf[n].priority;n++);Mf.splice(n,0,e),0===n&&$f(e)}};var Yf=o.version;if("19.2.3"!==Yf)throw Error(s(527,Yf,"19.2.3"));F.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return d(o),e;if(i===r)return d(o),t;i=i.sibling}throw Error(s(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,c=o.child;c;){if(c===n){l=!0,n=o,r=i;break}if(c===r){l=!0,r=o,n=i;break}c=c.sibling}if(!l){for(c=i.child;c;){if(c===n){l=!0,n=i,r=o;break}if(c===r){l=!0,r=i,n=o;break}c=c.sibling}if(!l)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?f(e):null)?null:e.stateNode};var Jf={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.3"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xf.isDisabled&&Xf.supportsFiber)try{ye=Xf.inject(Jf),ve=Xf}catch(e){}}t.createRoot=function(e,t){if(!l(e))throw Error(s(299));var n=!1,r="",o=Cl,i=El,a=kl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=pf(e,1,!1,null,0,n,r,null,o,i,a,Vf),e[He]=t.current,Zu(e),new qf(t)},t.hydrateRoot=function(e,t,n){if(!l(e))throw Error(s(299));var r=!1,o="",i=Cl,a=El,c=kl,u=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onUncaughtError&&(i=n.onUncaughtError),void 0!==n.onCaughtError&&(a=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=pf(e,1,!0,t,0,r,o,u,i,a,c,Vf)).context=hf(null),n=t.current,(o=bi(r=De(r=Vc()))).callback=null,wi(n,o,r),n=r,t.current.lanes=n,Le(t,n),Fu(t),e[He]=t.current,Zu(e),new Gf(t)},t.version="19.2.3"},2041:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},2191:()=>{Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean},2330:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},2398:()=>{!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism)},2572:e=>{"use strict";function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var s in r={},e)this.match(s)&&(r[s]=e[s]);return r},e.exports=function(e,n,r){var o=new t(e,r||/[\/\.]/);return void 0!==n?o.match(n):o}},2825:()=>{!function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}(Prism)},2889:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=a||c||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return u.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,s,l,a,c=0,u=!1,d=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,i=o;return r=o=void 0,c=t,s=e.apply(i,n)}function b(e){var n=e-a;return void 0===a||n>=t||n<0||d&&e-c>=i}function w(){var e=h();if(b(e))return x(e);l=setTimeout(w,function(e){var n=t-(e-a);return d?p(n,i-(e-c)):n}(e))}function x(e){return l=void 0,y&&r?v(e):(r=o=void 0,s)}function S(){var e=h(),n=b(e);if(r=arguments,o=this,a=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(w,t),u?v(e):s}(a);if(d)return l=setTimeout(w,t),v(a)}return void 0===l&&(l=setTimeout(w,t)),s}return t=m(t)||0,g(n)&&(u=!!n.leading,i=(d="maxWait"in n)?f(m(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=a=o=l=void 0},S.flush=function(){return void 0===l?s:x(h())},S}},2912:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},2945:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),a=0;a<i.length;a++){var c=i[a];if(!l(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},3042:(e,t,n)=>{"use strict";var r=n(5664),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,s,l,a,c,u=!1;t||(t={}),n=t.debug||!1;try{if(s=r(),l=document.createRange(),a=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(c),l.selectNodeContents(c),a.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(l):a.removeAllRanges()),c&&document.body.removeChild(c),s()}return u}},3051:(e,t,n)=>{var r=n(5723),o=n(827);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},3352:(e,t,n)=>{var r=n(2041),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},3622:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},3918:(e,t,n)=>{var r=n(474),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[l]=n:delete e[l]),o}},3947:(e,t,n)=>{var r=n(424),o=n(7604);e.exports=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:i,maxWait:t,trailing:s})}},4247:(e,t,n)=>{var r=n(4358);e.exports=function(){return r.Date.now()}},4358:(e,t,n)=>{var r=n(9023),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},4668:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2033)},4697:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var l=2*(r+1)-1,a=e[l],c=l+1,u=e[c];if(0>i(a,n))c<o&&0>i(u,a)?(e[r]=u,e[c]=n,r=c):(e[r]=a,e[l]=n,r=l);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,a=l.now();t.unstable_now=function(){return l.now()-a}}var c=[],u=[],d=1,f=null,p=3,h=!1,g=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function S(e){if(m=!1,x(e),!g)if(null!==r(c))g=!0,C||(C=!0,_());else{var t=r(u);null!==t&&L(S,t.startTime-e)}}var _,C=!1,E=-1,k=5,T=-1;function N(){return!(!y&&t.unstable_now()-T<k)}function A(){if(y=!1,C){var e=t.unstable_now();T=e;var n=!0;try{e:{g=!1,m&&(m=!1,b(E),E=-1),h=!0;var i=p;try{t:{for(x(e),f=r(c);null!==f&&!(f.expirationTime>e&&N());){var s=f.callback;if("function"==typeof s){f.callback=null,p=f.priorityLevel;var l=s(f.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof l){f.callback=l,x(e),n=!0;break t}f===r(c)&&o(c),x(e)}else o(c);f=r(c)}if(null!==f)n=!0;else{var a=r(u);null!==a&&L(S,a.startTime-e),n=!1}}break e}finally{f=null,p=i,h=!1}n=void 0}}finally{n?_():C=!1}}}if("function"==typeof w)_=function(){w(A)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,P=R.port2;R.port1.onmessage=A,_=function(){P.postMessage(null)}}else _=function(){v(A,0)};function L(e,n){E=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>s?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(b(E),E=-1):m=!0,L(S,i-s))):(e.sortIndex=l,n(c,e),g||h||(g=!0,C||(C=!0,_()))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},4921:()=>{Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift})},5004:e=>{var t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,s=Object.prototype.toString;function l(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(e))return NaN;if(l(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=l(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var c=r.test(e);return c||o.test(e)?i(e.slice(2),c?2:8):n.test(e)?NaN:+e}},5164:(e,t,n)=>{var r=n(2572),o=/[\/\+\.]/;e.exports=function(e,t){function n(t){var n=r(t,e,o);return n&&n.length>=2}return t?n(t.split(";")[0]):n}},5219:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(9707)},5656:(e,t,n)=>{"use strict";e.exports=n(2330)},5664:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},5666:(e,t,n)=>{"use strict";e.exports=n(4697)},5723:(e,t,n)=>{var r=n(474),o=n(3918),i=n(9365),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):i(e)}},5904:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var s in r={},n[i]=r,t)t.hasOwnProperty(s)&&(r[s]=e(t[s],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,o){r[o]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],s={};for(var l in i)if(i.hasOwnProperty(l)){if(l==t)for(var a in n)n.hasOwnProperty(a)&&(s[a]=n[a]);n.hasOwnProperty(l)||(s[l]=i[l])}var c=r[e];return r[e]=s,o.languages.DFS(o.languages,function(t,n){n===c&&t!=e&&(this[t]=s)}),s},DFS:function e(t,n,r,i){i=i||{};var s=o.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var a=t[l],c=o.util.type(a);"Object"!==c||i[s(a)]?"Array"!==c||i[s(a)]||(i[s(a)]=!0,e(a,n,l,i)):(i[s(a)]=!0,e(a,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,s=0;i=r.elements[s++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),s=o.languages[i];o.util.setLanguage(t,i);var l=t.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&o.util.setLanguage(l,i);var a={element:t,language:i,grammar:s,code:t.textContent};function c(e){a.highlightedCode=e,o.hooks.run("before-insert",a),a.element.innerHTML=a.highlightedCode,o.hooks.run("after-highlight",a),o.hooks.run("complete",a),r&&r.call(a.element)}if(o.hooks.run("before-sanity-check",a),(l=a.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!a.code)return o.hooks.run("complete",a),void(r&&r.call(a.element));if(o.hooks.run("before-highlight",a),a.grammar)if(n&&e.Worker){var u=new Worker(o.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:a.language,code:a.code,immediateClose:!0}))}else c(o.highlight(a.code,a.grammar,a.language));else c(o.util.encode(a.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new a;return c(o,o.head,e),l(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function s(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function l(e,t,n,r,a,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var g=p[h],m=g.inside,y=!!g.lookbehind,v=!!g.greedy,b=g.alias;if(v&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,S=r.next,_=a;S!==t.tail&&!(d&&_>=d.reach);_+=S.value.length,S=S.next){var C=S.value;if(t.length>e.length)return;if(!(C instanceof i)){var E,k=1;if(v){if(!(E=s(x,_,e,y))||E.index>=e.length)break;var T=E.index,N=E.index+E[0].length,A=_;for(A+=S.value.length;T>=A;)A+=(S=S.next).value.length;if(_=A-=S.value.length,S.value instanceof i)continue;for(var R=S;R!==t.tail&&(A<N||"string"==typeof R.value);R=R.next)k++,A+=R.value.length;k--,C=e.slice(_,A),E.index-=_}else if(!(E=s(x,0,C,y)))continue;T=E.index;var P=E[0],L=C.slice(0,T),O=C.slice(T+P.length),M=_+C.length;d&&M>d.reach&&(d.reach=M);var F=S.prev;if(L&&(F=c(t,F,L),_+=L.length),u(t,F,k),S=c(t,F,new i(f,m?o.tokenize(P,m):P,b,P)),O&&c(t,S,O),k>1){var D={cause:f+","+h,reach:M};l(e,t,n,S.prev,_,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function a(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(i.classes,s):i.classes.push(s)),o.hooks.run("wrap",i);var l="";for(var a in i.attributes)l+=" "+a+'="'+(i.attributes[a]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+l+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,s=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),s&&e.close()},!1),o):o;var d=o.util.currentScript();function f(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};o["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},r.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",o="loaded",i="pre[data-src]:not(["+t+'="'+o+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),r.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(i)){s.code="",l.setAttribute(t,n);var a=l.appendChild(document.createElement("CODE"));a.textContent="Loading…";var c=l.getAttribute("data-src"),u=s.language;if("none"===u){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];u=e[d]||d}r.util.setLanguage(a,u),r.util.setLanguage(l,u);var f=r.plugins.autoloader;f&&f.loadLanguages(u),function(e,n,i){var s=new XMLHttpRequest;s.open("GET",e,!0),s.onreadystatechange=function(){4==s.readyState&&(s.status<400&&s.responseText?function(e){l.setAttribute(t,o);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(l.getAttribute("data-range"));if(n){var i=e.split(/\r\n?|\n/g),s=n[0],c=null==n[1]?i.length:n[1];s<0&&(s+=i.length),s=Math.max(0,Math.min(s-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(s,c).join("\n"),l.hasAttribute("data-start")||l.setAttribute("data-start",String(s+1))}a.textContent=e,r.highlightElement(a)}(s.responseText):s.status>=400?i("✖ Error "+s.status+" while fetching file: "+s.statusText):i("✖ Error: File does not exist or is empty"))},s.send(null)}(c,0,function(e){l.setAttribute(t,"failed"),a.textContent=e})}}),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(i),o=0;t=n[o++];)r.highlightElement(t)}};var s=!1;r.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},6069:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||g}function b(){}function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||g}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=w.prototype=new b;x.constructor=w,m(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function _(){}var C={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function k(e,t,r){var o=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==o?o:null,props:r}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function R(e,t,o,i,s){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var a,c,u=!1;if(null===e)u=!0;else switch(l){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0;break;case f:return R((u=e._init)(e._payload),t,o,i,s)}}if(u)return s=s(e),u=""===i?"."+A(e,0):i,S(s)?(o="",null!=u&&(o=u.replace(N,"$&/")+"/"),R(s,t,o,"",function(e){return e})):null!=s&&(T(s)&&(a=s,c=o+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(N,"$&/")+"/")+u,s=k(a.type,c,a.props)),t.push(s)),1;u=0;var d,p=""===i?".":i+":";if(S(e))for(var g=0;g<e.length;g++)u+=R(i=e[g],t,o,l=p+A(i,g),s);else if("function"==typeof(g=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(e=g.call(e),g=0;!(i=e.next()).done;)u+=R(i=i.value,t,o,l=p+A(i,g++),s);else if("object"===l){if("function"==typeof e.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(_,_):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,o,i,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",function(e){return t.call(n,e,o++)}),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},M={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=p,t.Children=M,t.Component=v,t.Fragment=o,t.Profiler=s,t.PureComponent=w,t.StrictMode=i,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];r.children=s}return k(e.type,o,r)},t.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:l,_context:e},e},t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),a=0;a<s;a++)l[a]=arguments[a+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return k(e,i,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),o=C.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(_,O)}catch(e){O(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},t.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},t.use=function(e){return C.H.use(e)},t.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},t.useCallback=function(e,t){return C.H.useCallback(e,t)},t.useContext=function(e){return C.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return C.H.useEffect(e,t)},t.useEffectEvent=function(e){return C.H.useEffectEvent(e)},t.useId=function(){return C.H.useId()},t.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return C.H.useMemo(e,t)},t.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},t.useRef=function(e){return C.H.useRef(e)},t.useState=function(e){return C.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return C.H.useTransition()},t.version="19.2.3"},6854:e=>{e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,s,l){var a=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),s=0,l=i.length;s<l;s++){var a=i[s];if("*"===a&&(n=n.concat(t[a])),2===o.length&&o[0]===a){n=n.concat(t[a]);break}}return n}(e);a.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,a,[n,r,o,i,s,l])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,function r(){n.apply(this,arguments),e.off(t,r)})},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e}},6931:()=>{!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)},7140:(e,t,n)=>{"use strict";e.exports=n(6069)},7604:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7832:()=>{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},7913:()=>{!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],s=o.content[3];if(i&&s&&"code-language"===i.type&&"code-block"===s.type&&"string"==typeof i.content){var l=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());s.alias?"string"==typeof s.alias?s.alias=[s.alias,a]:s.alias.push(a):s.alias=[a]}}else e(o.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(t.content.replace(s,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),a(n)):l[t]||e}),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var s=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)},8070:()=>{Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},8479:()=>{!function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism)},9023:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},9365:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9561:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},9656:()=>{Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},9707:(e,t,n)=>{"use strict";var r=n(7140);function o(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 i(){}var s={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal"),a=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:l,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=a.T,n=s.p;try{if(a.T=null,s.p=2,e)return e()}finally{a.T=t,s.p=n,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=c(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,i="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:i}):"script"===n&&s.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:i,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=c(n,t.crossOrigin);s.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=c(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return a.H.useFormState(e,t,n)},t.useFormStatus=function(){return a.H.useHostTransitionStatus()},t.version="19.2.3"}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,o.d(i,s),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{renderWikiContent:()=>oq});var e={};o.r(e),o.d(e,{Arrow:()=>Lb,Content:()=>Pb,Portal:()=>Rb,Provider:()=>Tb,Root:()=>Nb,Tooltip:()=>fb,TooltipArrow:()=>kb,TooltipContent:()=>wb,TooltipPortal:()=>vb,TooltipProvider:()=>ab,TooltipTrigger:()=>hb,Trigger:()=>Ab,createTooltipScope:()=>tb});var t={};o.r(t),o.d(t,{O:()=>e_,B:()=>t_});var n={};o.r(n),o.d(n,{CheckboxContainer:()=>HT,CheckboxRoot:()=>UT,Indicator:()=>BT,Label:()=>KT});var r={};o.r(r),o.d(r,{CheckboxItem:()=>zF,ContentWrapper:()=>UF,Item:()=>$F,Separator:()=>KF,SubContent:()=>HF,SubTrigger:()=>jF});var s={};o.r(s),o.d(s,{CheckboxIndicator:()=>qF,Content:()=>GF,TriggerMoreIcon:()=>VF});var l={};o.r(l),o.d(l,{O:()=>EW,B:()=>kW});var a=o(7140),c=o.t(a,2),u=o(4668),d=o(5656);const f=(0,a.createContext)(null);function p(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}}function h(){const e=(0,a.useContext)(f);return null==e&&function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}const g="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function m(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function y(){return function(e){const[t]=h(),n=(0,a.useMemo)(()=>e(t),[t,e]),[r,o]=(0,a.useState)(()=>n.initialValueFn()),i=(0,a.useRef)(r);return g(()=>{const{initialValueFn:e,subscribe:t}=n,r=e();return i.current!==r&&(i.current=r,o(r)),t(e=>{i.current=e,o(e)})},[n,e]),r}(m)}function v(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function b(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const w="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,x=w&&"documentMode"in document?document.documentMode:null,S=w&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),_=w&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),C=!(!w||!("InputEvent"in window)||x)&&"getTargetRanges"in new window.InputEvent("input"),E=w&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,k=w&&/Android/.test(navigator.userAgent),T=w&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!k,N=w&&/^(?=.*Chrome).*/i.test(navigator.userAgent),A=w&&k&&N,R=w&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&S&&!N,P=0,L=1,O=2,M=1,F=2,D=3,I=4,$=5,j=6,z=T||E||R?" ":"​",B="\n\n",U=_?" ":z,H="֑-߿יִ-﷽ﹰ-ﻼ",K="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",W=new RegExp("^[^"+K+"]*["+H+"]"),V=new RegExp("^[^"+H+"]*["+K+"]"),q={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},G={directionless:1,unmergeable:2},Y={center:2,end:6,justify:4,left:1,right:3,start:5},J={[F]:"center",[j]:"end",[I]:"justify",[M]:"left",[D]:"right",[$]:"start"},X={normal:0,segmented:2,token:1},Q={[P]:"normal",[O]:"segmented",[L]:"token"},Z="$config";function ee(e,t,n,r,o,i){let s=e.getFirstChild();for(;null!==s;){const e=s.__key;s.__parent===t&&(ko(s)&&ee(s,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),s=s.getNextSibling()}}let te=!1,ne=0;function re(e){ne=e.timeStamp}function oe(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==wi(e,n)}function ie(e,t,n){const r=us(ts(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;null!==s&&Oi(t,s,o,i,!1)}function se(e,t,n){if(_r(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return ai(t)&&n.isAttached()}function le(e,t,n,r){for(let o=e;o&&!Es(o);o=Yi(o)){const e=wi(o,t);if(void 0!==e){const t=vi(e,n);if(t)return Ao(t)||!fs(o)?void 0:[o,t]}else if(o===r)return[r,Ei(n)]}}function ae(e,t,n){te=!0;const r=performance.now()-ne>100;try{So(e,()=>{const o=zr()||function(e){return e.getEditorState().read(()=>{const e=zr();return null!==e?e.clone():null})}(e),i=new Map,s=e.getRootElement(),l=e._editorState,a=e._blockCursorElement;let c=!1,u="";for(let n=0;n<t.length;n++){const d=t[n],f=d.type,p=d.target,h=le(p,e,l,s);if(!h)continue;const[g,m]=h;if("characterData"===f)r&&pr(m)&&ai(p)&&se(o,p,m)&&ie(p,m,e);else if("childList"===f){c=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=bi(r),i=r.parentNode;if(null!=i&&r!==a&&null===o&&!oe(r,i,e)){if(_){const e=(fs(r)?r.innerText:null)||r.nodeValue;e&&(u+=e)}i.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let o=0;o<r;o++){const r=n[o];(oe(r,p,e)||a===r)&&(p.appendChild(r),t++)}r!==t&&i.set(g,m)}}}if(i.size>0)for(const[t,n]of i)n.reconcileObservedMutation(t,e);const d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){const n=d[t],r=n.addedNodes,o=n.target;for(let t=0;t<r.length;t++){const n=r[t],i=n.parentNode;null==i||"BR"!==n.nodeName||oe(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(c&&ki(o),_&&Vi(e)&&o.insertRawText(u))})}finally{te=!1}}function ce(e){const t=e._observer;null!==t&&ae(e,t.takeRecords(),t)}function ue(e){!function(e){0===ne&&ts(e).addEventListener("textInput",re,!0)}(e),e._observer=new MutationObserver((t,n)=>{ae(e,t,n)})}class de{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||we).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}}function fe(e,t){return new de(e,t)}function pe(e,t,n="latest"){const r=("latest"===n?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function he(e,t,n){let r;if(io(),"function"==typeof n){const o=e.getLatest(),i=pe(o,t);if(r=n(i),t.isEqual(i,r))return o}else r=n;const o=e.getWritable();return ye(o).updateFromKnown(t,r),o}function ge(e){const t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:e}=Ts(r);if(e&&e.stateConfigs)for(const r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}class me{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,o=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;const{sharedConfigMap:i}=this.sharedNodeState,s=void 0!==o?o:function(e,t,n){let r=n.size;if(t)for(const o in t){const t=e.get(o);t&&n.has(t)||r++}return r}(i,n,r);this.size=s}getValue(e){const t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return be(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new me(e,t,function(e,t,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=e.get(o);n?t.has(n)||t.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(t.sharedConfigMap,r,n),r,this.size)}resetOnCopyNode(){for(const e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){const n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);const{knownState:r,unknownState:o}=this;r.has(e)||o&&n in o||(o&&(delete o[n],this.unknownState=be(o)),this.size++),r.set(e,t)}updateFromUnknown(e,t){const n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function ye(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new me(t,ve(t));return t.__state=n,n}function ve(e){return e.__state?e.__state.sharedNodeState:Jo(vs(),e.getType()).sharedNodeState}function be(e){if(e)for(const t in e)return e}function we(e){return e}function xe(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const t=n?n.getValue(r):r.defaultValue;if(t!==o&&!r.isEqual(t,o))return!0}return!1}function Se(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r)for(const[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(o?o[t]:void 0)))return!0;return!1}function _e(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Ce(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,l=t.__style,a=e.__state,c=t.__state;return(null===n||n===i)&&(null===r||r===s)&&(null===o||o===l)&&(null===e.__state||a===c||function(e,t){if(e===t)return!0;const n=new Set;return!(e&&xe(n,e,t)||t&&xe(n,t,e)||e&&Se(n,e,t)||t&&Se(n,t,e))}(a,c))}function Ee(e,t){const n=e.mergeWithSibling(t),r=ao()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function ke(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&pr(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Ce(t,r)){r=Ee(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&pr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Ce(r,n)){r=Ee(r,n);break}break}n.remove()}}else r.remove()}function Te(e){return Ne(e.anchor),Ne(e.focus),e}function Ne(e){for(;"element"===e.type;){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),pr(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!ko(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Ae,Re,Pe,Le,Oe,Me,Fe,De,Ie,$e,je="",ze=null,Be=null,Ue=!1,He=!1;function Ke(e,t){const n=Fe.get(e);if(null!==t){const n=st(e);n.parentNode===t&&t.removeChild(n)}if(De.has(e)||Re._keyToDOMMap.delete(e),ko(n)){const e=tt(n,Fe);We(e,0,e.length-1,null)}void 0!==n&&Ui($e,Pe,Le,n,"destroyed")}function We(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&Ke(t,r)}}function Ve(e,t){e.setProperty("text-align",t)}const qe="40px";function Ge(e,t){const n=Ae.theme.indent;if("string"==typeof n){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}if(0===t)return void e.style.setProperty("padding-inline-start","");const r=getComputedStyle(Re._rootElement||e).getPropertyValue("--lexical-indent-base-value")||qe;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function Ye(e,t){const n=e.style;0===t?Ve(n,""):1===t?Ve(n,"left"):2===t?Ve(n,"center"):3===t?Ve(n,"right"):4===t?Ve(n,"justify"):5===t?Ve(n,"start"):6===t&&Ve(n,"end")}function Je(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(Po(e))return null;const n=e.getParentOrThrow();return Po(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function Xe(e,t){const n=De.get(e);void 0===n&&v(60);const r=n.createDOM(Ae,Re);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){e[`__lexicalKey_${t._key}`]=n})(t,n,e),r.set(e,t)}(e,r,Re),pr(n)?r.setAttribute("data-lexical-text","true"):Ao(n)&&r.setAttribute("data-lexical-decorator","true"),ko(n)){const e=n.__indent,t=n.__size;if(Je(r,n),0!==e&&Ge(r,e),0!==t){const e=t-1;Qe(tt(n,De),0,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&Ye(r,o),n.isInline()||et(null,n,r)}else{const t=n.getTextContent();if(Ao(n)){const t=n.decorate(Re,Ae);null!==t&&rt(e,t),r.contentEditable="false"}je+=t}return null!==t&&t.insertChild(r),Ui($e,Pe,Le,n,"created"),r}function Qe(e,t,n,r,o){const i=je;je="";let s=n;for(;s<=r;++s){Xe(e[s],o);const t=De.get(e[s]);null!==t&&pr(t)?null===ze&&(ze=t.getFormat(),Be=t.getStyle()):ko(t)&&s<r&&!t.isInline()&&(je+=B)}o.element.__lexicalTextContent=je,je=i+je}function Ze(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return Yn(e)?"line-break":Ao(e)&&e.isInline()?"decorator":null}return"empty"}return null}function et(e,t,n){const r=Ze(e,Fe),o=Ze(t,De);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function tt(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&v(101),n.push(r),r=e.__next}return n}function nt(e,t){const n=Fe.get(e);let r=De.get(e);void 0!==n&&void 0!==r||v(61);const o=Ue||Me.has(e)||Oe.has(e),i=Gi(Re,e);if(n===r&&!o){let e;if(ko(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return je+=e,i}if(n!==r&&o&&Ui($e,Pe,Le,r,"updated"),r.updateDOM(n,i,Ae)){const n=Xe(e,null);return null===t&&v(62),t.replaceChild(n,i),Ke(e,null),n}if(ko(n)){ko(r)||v(334,e);const t=r.__indent;(Ue||t!==n.__indent)&&Ge(i,t);const s=r.__format;if((Ue||s!==n.__format)&&Ye(i,s),o)(function(e,t,n){var r,o;ze=null,Be=null,function(e,t,n){const r=je,o=e.__size,i=t.__size;je="";const s=n.element;if(1===o&&1===i){const n=e.__first,o=t.__first;if(n===o)nt(n,s);else{const e=st(n),t=Xe(o,null);try{s.replaceChild(t,e)}catch(r){if("object"==typeof r&&null!=r){const i=`${r.toString()} Parent: ${s.tagName}, new child: {tag: ${t.tagName} key: ${o}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw r}Ke(n,null)}const i=De.get(o);pr(i)&&null===ze&&(ze=i.getFormat(),Be=i.getStyle())}else{const r=tt(e,Fe),l=tt(t,De);if(r.length!==o&&v(227),l.length!==i&&v(228),0===o)0!==i&&Qe(l,0,0,i-1,n);else if(0===i){if(0!==o){const e=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;We(r,0,o-1,e?null:s),e&&(s.textContent="")}}else!function(e,t,n,r,o,i){const s=r-1,l=o-1;let a,c,u=i.getFirstChild(),d=0,f=0;for(;d<=s&&f<=l;){const e=t[d],r=n[f];if(e===r)u=ot(nt(r,i.element)),d++,f++;else{if(void 0===c&&(c=it(n,f)),void 0===a)a=it(t,d);else if(!a.has(e)){d++;continue}if(!c.has(e)){u=ot(st(e)),Ke(e,i.element),d++,a.delete(e);continue}if(a.has(r)){const e=Gi(Re,r);e!==u&&i.withBefore(u).insertChild(e),u=ot(nt(r,i.element)),d++,f++}else Xe(r,i.withBefore(u)),f++}const o=De.get(r);null!==o&&pr(o)?null===ze&&(ze=o.getFormat(),Be=o.getStyle()):ko(o)&&f<=l&&!o.isInline()&&(je+=B)}const p=d>s,h=f>l;if(p&&!h){const e=n[l+1],t=void 0===e?null:Re.getElementByKey(e);Qe(n,0,f,l,i.withBefore(t))}else h&&!p&&We(t,d,s,i.element)}(0,r,l,o,i,n)}s.__lexicalTextContent=je,je=r+je}(e,t,t.getDOMSlot(n)),r=t,null==ze||ze===r.__textFormat||He||r.setTextFormat(ze),o=t,null==Be||Be===o.__textStyle||He||o.setTextStyle(Be)})(n,r,i),Po(r)||r.isInline()||et(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),je+=t}if((Ue||r.__dir!==n.__dir)&&(Je(i,r),Po(r)&&!Ue))for(const e of r.getChildren())ko(e)&&Je(Gi(Re,e.getKey()),e)}else{const t=r.getTextContent();if(Ao(r)){const t=r.decorate(Re,Ae);null!==t&&rt(e,t)}je+=t}if(!He&&Po(r)&&r.__cachedText!==je){const e=r.getWritable();e.__cachedText=je,r=e}return i}function rt(e,t){let n=Re._pendingDecorators;const r=Re._decorators;if(null===n){if(r[e]===t)return;n=Si(Re)}n[e]=t}function ot(e){let t=e.nextSibling;return null!==t&&t===Re._blockCursorElement&&(t=t.nextSibling),t}function it(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function st(e){const t=Ie.get(e);return void 0===t&&v(75,e),t}function lt(e){return{type:e}}const at=lt("SELECTION_CHANGE_COMMAND"),ct=lt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),ut=lt("CLICK_COMMAND"),dt=lt("BEFORE_INPUT_COMMAND"),ft=lt("INPUT_COMMAND"),pt=lt("COMPOSITION_START_COMMAND"),ht=lt("COMPOSITION_END_COMMAND"),gt=lt("DELETE_CHARACTER_COMMAND"),mt=lt("INSERT_LINE_BREAK_COMMAND"),yt=lt("INSERT_PARAGRAPH_COMMAND"),vt=lt("CONTROLLED_TEXT_INSERTION_COMMAND"),bt=lt("PASTE_COMMAND"),wt=lt("REMOVE_TEXT_COMMAND"),xt=lt("DELETE_WORD_COMMAND"),St=lt("DELETE_LINE_COMMAND"),_t=lt("FORMAT_TEXT_COMMAND"),Ct=lt("UNDO_COMMAND"),Et=lt("REDO_COMMAND"),kt=lt("KEYDOWN_COMMAND"),Tt=lt("KEY_ARROW_RIGHT_COMMAND"),Nt=lt("MOVE_TO_END"),At=lt("KEY_ARROW_LEFT_COMMAND"),Rt=lt("MOVE_TO_START"),Pt=lt("KEY_ARROW_UP_COMMAND"),Lt=lt("KEY_ARROW_DOWN_COMMAND"),Ot=lt("KEY_ENTER_COMMAND"),Mt=lt("KEY_SPACE_COMMAND"),Ft=lt("KEY_BACKSPACE_COMMAND"),Dt=lt("KEY_ESCAPE_COMMAND"),It=lt("KEY_DELETE_COMMAND"),$t=lt("KEY_TAB_COMMAND"),jt=lt("INSERT_TAB_COMMAND"),zt=lt("INDENT_CONTENT_COMMAND"),Bt=lt("OUTDENT_CONTENT_COMMAND"),Ut=lt("DROP_COMMAND"),Ht=lt("FORMAT_ELEMENT_COMMAND"),Kt=lt("DRAGSTART_COMMAND"),Wt=lt("DRAGOVER_COMMAND"),Vt=lt("DRAGEND_COMMAND"),qt=lt("COPY_COMMAND"),Gt=lt("CUT_COMMAND"),Yt=lt("SELECT_ALL_COMMAND"),Jt=(lt("CLEAR_EDITOR_COMMAND"),lt("CLEAR_HISTORY_COMMAND"),lt("CAN_REDO_COMMAND"),lt("CAN_UNDO_COMMAND"),lt("FOCUS_COMMAND")),Xt=lt("BLUR_COMMAND"),Qt=lt("KEY_MODIFIER_COMMAND"),Zt=Object.freeze({}),en=[["keydown",function(e,t){tn=e.timeStamp,nn=e.key,t.isComposing()||qi(t,kt,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;ps(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&So(t,()=>{Zo(n)||(cn=!0)})}],["compositionstart",function(e,t){qi(t,pt,e)}],["compositionend",function(e,t){_?dn=!0:E||!T&&!R?qi(t,ht,e):(fn=!0,pn=e.data)}],["input",function(e,t){e.stopPropagation(),So(t,()=>{t.dispatchCommand(ft,e)},{event:e}),on=null}],["click",function(e,t){So(t,()=>{const n=zr(),r=us(ts(t)),o=Br();if(r)if(_r(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!Po(i)&&1===Ci().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&i!==n.focus.getNode()){const e=As(i,e=>ko(e)&&!e.isInline());ko(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;(fs(n)||ai(n))&&ki(jr(o,r,t,e))}qi(t,ut,e)})}],["cut",Zt],["copy",Zt],["dragstart",Zt],["dragover",Zt],["dragend",Zt],["paste",Zt],["focus",Zt],["blur",Zt],["drop",Zt]];C&&en.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;"deleteCompositionText"===n||_&&Vi(t)||"insertCompositionText"!==n&&qi(t,dt,e)}(e,t)]);let tn=0,nn=null,rn=0,on=null;const sn=new WeakMap,ln=new WeakMap;let an=!1,cn=!1,un=!1,dn=!1,fn=!1,pn="",hn=null,gn=[0,"",0,"root",0];function mn(e,t,n,r,o){const i=e.anchor,s=e.focus,l=i.getNode(),a=ao(),c=us(ts(a)),u=null!==c?c.anchorNode:null,d=i.key,f=a.getElementByKey(d),p=n.length;return d!==s.key||!pr(l)||(!o&&(!C||rn<r+50)||l.isDirty()&&p<2||Ni(n))&&i.offset!==s.offset&&!l.isComposing()||li(l)||l.isDirty()&&p>1||(o||!C)&&null!==f&&!l.isComposing()&&u!==ui(f)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||!l.isComposing()&&(l.getFormat()!==e.format||l.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const n=e.anchor.offset,r=t.getParentOrThrow(),o=si(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(pr(t)||ko(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,l)}function yn(e,t){return ai(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function vn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;an&&(an=!1,yn(r,o)&&yn(i,s)&&!hn)||So(t,()=>{if(!n)return void ki(null);if(!ti(t,r,i))return;let l=zr();if(hn&&_r(l)&&l.isCollapsed()){const e=l.anchor,t=hn.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(l=hn.clone(),ki(l))}if(hn=null,_r(l)){const n=l.anchor,r=n.getNode();if(l.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(l.dirty=!0);const o=ts(t).event,i=o?o.timeStamp:performance.now(),[s,a,c,u,d]=gn,f=Ci(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===c&&n.key===u)bn(l,s,a);else if("text"===n.type)pr(r)||v(141),wn(l,r);else if("element"===n.type&&!p){ko(r)||v(259);const e=n.getNode();e.isEmpty()?function(e,t){bn(e,t.getTextFormat(),t.getTextStyle())}(l,e):bn(l,l.format,"")}}else{const e=n.key,t=l.focus.key,r=l.getNodes(),i=r.length,a=l.isBackward(),c=a?s:o,u=a?o:s,d=a?t:e,f=a?e:t;let p=2047,h=!1;for(let e=0;e<i;e++){const t=r[e],n=t.getTextContentSize();if(pr(t)&&0!==n&&!(0===e&&t.__key===d&&c===n||e===i-1&&t.__key===f&&0===u)&&(h=!0,p&=t.getFormat(),0===p))break}l.format=h?p:0}}qi(t,at,void 0)})}function bn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function wn(e,t){bn(e,t.getFormat(),t.getStyle())}function xn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function Sn(e){const t=e.inputType,n=xn(e),r=ao(),o=zr();if("deleteContentBackward"===t){if(null===o){const e=Br();if(!_r(e))return!0;ki(e.clone())}if(_r(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===nn&&i<tn+30&&r.isComposing()&&t){if(mi(null),tn=0,setTimeout(()=>{So(r,()=>{mi(null)})},30),_r(o)){const e=o.anchor.getNode();e.markDirty(),pr(e)||v(142),wn(o,e)}}else{mi(null),e.preventDefault();const n=o.anchor.getNode(),i=n.getTextContent(),s=n.canInsertTextAfter(),l=0===o.anchor.offset&&o.focus.offset===i.length;let a=A&&t&&!l&&s;if(a&&o.isCollapsed()&&(a=!Ao(Wi(o.anchor,!0))),!a){qi(r,gt,!0);const e=zr();A&&_r(e)&&e.isCollapsed()&&(hn=e,setTimeout(()=>hn=null))}}return!0}}var i;if(!_r(o))return!0;const s=e.data;null!==on&&Li(!1,r,on),o.dirty&&null===on||!o.isCollapsed()||Po(o.anchor.getNode())||null===n||o.applyDOMRange(n),on=null;const l=o.anchor,a=o.focus,c=l.getNode(),u=a.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===s)e.preventDefault(),qi(r,mt,!1);else if(s===B)e.preventDefault(),qi(r,yt,void 0);else if(null==s&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=s&&mn(o,n,s,e.timeStamp,!0)?(e.preventDefault(),qi(r,vt,s)):on=s;return rn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":qi(r,vt,e);break;case"insertFromComposition":mi(null),qi(r,vt,e);break;case"insertLineBreak":mi(null),qi(r,mt,!1);break;case"insertParagraph":mi(null),un&&!E?(un=!1,qi(r,mt,!1)):qi(r,yt,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":qi(r,bt,e);break;case"deleteByComposition":(function(e,t){return e!==t||ko(e)||ko(t)||!si(e)||!si(t)})(c,u)&&qi(r,wt,e);break;case"deleteByDrag":case"deleteByCut":qi(r,wt,e);break;case"deleteContent":qi(r,gt,!1);break;case"deleteWordBackward":qi(r,xt,!0);break;case"deleteWordForward":qi(r,xt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":qi(r,St,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":qi(r,St,!1);break;case"formatStrikeThrough":qi(r,_t,"strikethrough");break;case"formatBold":qi(r,_t,"bold");break;case"formatItalic":qi(r,_t,"italic");break;case"formatUnderline":qi(r,_t,"underline");break;case"historyUndo":qi(r,Ct,void 0);break;case"historyRedo":qi(r,Et,void 0)}return!0}function _n(e){if(fs(e.target)&&Zo(e.target))return!0;const t=ao(),n=zr(),r=e.data,o=xn(e);if(null!=r&&_r(n)&&mn(n,o,r,e.timeStamp,!1)){dn&&(kn(t,r),dn=!1);const o=n.anchor.getNode(),i=us(ts(t));if(null===i)return!0;const s=n.isBackward(),l=s?n.anchor.offset:n.focus.offset,a=s?n.focus.offset:n.anchor.offset;C&&!n.isCollapsed()&&pr(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,l)+r+o.getTextContent().slice(l+a)===Pi(i.anchorNode)||qi(t,vt,r);const c=r.length;_&&c>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=c),A&&t.isComposing()&&(tn=0,mi(null))}else Li(!1,t,null!==r?r:void 0),dn&&(kn(t,r||void 0),dn=!1);return io(),ce(ao()),!0}function Cn(e){const t=ao(),n=zr();if(_r(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();mi(r.key),Xi(Kn),(e.timeStamp<tn+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||pr(o)&&o.getStyle()!==n.style)&&qi(t,vt,U)}return!0}function En(e){return kn(ao(),e.data),Xi(Wn),!0}function kn(e,t){const n=e._compositionKey;if(mi(null),null!==n&&null!=t){if(""===t){const t=vi(n),r=ui(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&pr(t)){const n=us(ts(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),Oi(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=zr();if(_r(t)||Er(t)){if(_r(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void qi(e,Ot,null)}}}Li(!0,e,t)}function Tn(e){const t=ao();if(null==e.key)return!0;if(fn){if(ji(e))return So(t,()=>{kn(t,pn)}),fn=!1,pn="",!0;fn=!1,pn=""}if(function(e){return Di(e,"ArrowRight",{shiftKey:"any"})}(e))qi(t,Tt,e);else if(function(e){return Di(e,"ArrowRight",Ii)}(e))qi(t,Nt,e);else if(function(e){return Di(e,"ArrowLeft",{shiftKey:"any"})}(e))qi(t,At,e);else if(function(e){return Di(e,"ArrowLeft",Ii)}(e))qi(t,Rt,e);else if(function(e){return Di(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))qi(t,Pt,e);else if(function(e){return Di(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))qi(t,Lt,e);else if(function(e){return Di(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))un=!0,qi(t,Ot,e);else if(function(e){return" "===e.key}(e))qi(t,Mt,e);else if(function(e){return S&&Di(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),un=!0,qi(t,mt,!0);else if(function(e){return Di(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))un=!1,qi(t,Ot,e);else if(function(e){return Di(e,"Backspace",{shiftKey:"any"})||S&&Di(e,"h",{ctrlKey:!0})}(e))ji(e)?qi(t,Ft,e):(e.preventDefault(),qi(t,gt,!0));else if(function(e){return"Escape"===e.key}(e))qi(t,Dt,e);else if(function(e){return Di(e,"Delete",{})||S&&Di(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),qi(t,gt,!1)):qi(t,It,e);else if(function(e){return Di(e,"Backspace",$i)}(e))e.preventDefault(),qi(t,xt,!0);else if(function(e){return Di(e,"Delete",$i)}(e))e.preventDefault(),qi(t,xt,!1);else if(function(e){return S&&Di(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),qi(t,St,!0);else if(function(e){return S&&(Di(e,"Delete",{metaKey:!0})||Di(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),qi(t,St,!1);else if(function(e){return Di(e,"b",Ii)}(e))e.preventDefault(),qi(t,_t,"bold");else if(function(e){return Di(e,"u",Ii)}(e))e.preventDefault(),qi(t,_t,"underline");else if(function(e){return Di(e,"i",Ii)}(e))e.preventDefault(),qi(t,_t,"italic");else if(function(e){return Di(e,"Tab",{shiftKey:"any"})}(e))qi(t,$t,e);else if(function(e){return Di(e,"z",Ii)}(e))e.preventDefault(),qi(t,Ct,void 0);else if(function(e){return S?Di(e,"z",{metaKey:!0,shiftKey:!0}):Di(e,"y",{ctrlKey:!0})||Di(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),qi(t,Et,void 0);else{const n=t._editorState._selection;null===n||_r(n)?zi(e)&&(e.preventDefault(),qi(t,Yt,e)):function(e){return Di(e,"c",Ii)}(e)?(e.preventDefault(),qi(t,qt,e)):function(e){return Di(e,"x",Ii)}(e)?(e.preventDefault(),qi(t,Gt,e)):zi(e)&&(e.preventDefault(),qi(t,Yt,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(Qt,e),!0}function Nn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const An=new Map;function Rn(e){const t=function(e){const t=es(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=ri(t.anchorNode);if(null===n)return;cn&&(cn=!1,So(n,()=>{const r=Br(),o=t.anchorNode;(fs(o)||ai(o))&&ki(jr(r,t,n,e))}));const r=Ai(n),o=r[r.length-1],i=o._key,s=An.get(i),l=s||o;l!==n&&vn(t,l,!1),vn(t,n,!0),n!==o?An.set(i,n):s&&An.delete(i)}function Pn(e){e._lexicalHandled=!0}function Ln(e){return!0===e._lexicalHandled}function On(e,t,n){io();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=zr();if(!_r(t)||!ko(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();return Zi(o,e)&&n.set(e.__key,0,"element"),Zi(i,e)&&r.set(e.__key,0,"element"),t}(e);let s=!1;if(_r(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(Kr(t,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),n.key===r&&(Kr(n,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else Er(i)&&t&&e.isSelected()&&e.selectPrevious();if(_r(i)&&t&&!s){const t=e.getIndexWithinParent();hi(e),Ur(i,o,t,-1)}else hi(e);n||rs(o)||o.canBeEmpty()||!o.isEmpty()||On(o,t),t&&i&&Po(o)&&o.isEmpty()&&o.selectEnd()}const Mn=Symbol.for("ephemeral");function Fn(e){return e[Mn]||!1}class Dn{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Ts(this);return void 0===e&&v(64,this.name),e}static clone(e){v(65,this.name)}$config(){return{}}config(e,t){const n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}resetOnCopyNodeFrom(e){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),pi(this,e)}getType(){return this.__type}isInline(){v(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=vi(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||zr();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(pr(this))return n;if(_r(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Ao(this)&&this.isInline()&&e){const n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(null===e)return-1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return null===e?null:vi(e)}getParentOrThrow(){const e=this.getParent();return null===e&&v(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(rs(t))return ko(e)||e===this&&Ao(e)||v(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&v(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:vi(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return null===e?null:vi(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=ko(this)?this:this.getParent(),n=ko(e)?e:e.getParent(),r=t&&n?ll(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=ll(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===ol(t):("same"!==t.type&&"ancestor"!==t.type&&v(279),!1)))}isParentOf(e){const t=ll(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){const t=this.isBefore(e),n=[],r=new Set;let o=this;for(;null!==o;){const i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;const s=ko(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==s){o=s;continue}const l=t?o.getNextSibling():o.getPreviousSibling();if(null!==l){o=l;continue}const a=o.getParentOrThrow();if(r.has(a.__key)||n.push(a),a===e)break;let c=null,u=a;do{if(null===u&&v(68),c=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),null===u)break;null!==c||r.has(u.__key)||n.push(u)}while(null===c);o=c}return t||n.reverse(),n}isDirty(){const e=ao()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(Fn(this))return this;const e=vi(this.__key);return null===e&&v(113),e}getWritable(){if(Fn(this))return this;io();const e=lo(),t=ao(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,s=zr();if(null!==s&&s.setCachedNodes(null),i.has(r))return gi(o),o;const l=Ss(o);return i.add(r),gi(l),n.set(r,l),l}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){v(70)}updateDOM(e,t,n){v(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){v(18,this.name)}updateFromJSON(e){return function(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of ve(n).flatKeys)e in t&&(void 0!==o&&o!==r||(o={...r}),o[e]=t[e]);return(n.__state||o)&&ye(e).updateFromJSON(o),n}(this,e)}static transform(){return null}remove(e){On(this,!0,e)}replace(e,t){io();let n=zr();null!==n&&(n=n.clone()),ss(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,s=e.getWritable(),l=this.getParentOrThrow().getWritable(),a=l.__size;hi(s);const c=r.getPreviousSibling(),u=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(On(r,!1,!0),null===c?l.__first=i:c.getWritable().__next=i,s.__prev=d,null===u?l.__last=i:u.getWritable().__prev=i,s.__next=f,s.__parent=p,l.__size=a,t&&(ko(this)&&ko(s)||v(139),this.getChildren().forEach(e=>{s.append(e)})),_r(n)){ki(n);const e=n.anchor,t=n.focus;e.key===o&&xr(e,s),t.key===o&&xr(t,s)}return yi()===o&&mi(i),s}insertAfter(e,t=!0){io(),ss(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=zr();let s=!1,l=!1;if(null!==o){const t=e.getIndexWithinParent();if(hi(r),_r(i)){const e=o.__key,n=i.anchor,r=i.focus;s="element"===n.type&&n.key===e&&n.offset===t+1,l="element"===r.type&&r.key===e&&r.offset===t+1}}const a=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(null===a?c.__last=u:a.getWritable().__prev=u,c.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&_r(i)){const e=this.getIndexWithinParent();Ur(i,c,e+1);const t=c.__key;s&&i.anchor.set(t,e+2,"element"),l&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){io(),ss(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;hi(r);const i=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),l=n.__prev,a=this.getIndexWithinParent();null===i?s.__first=o:i.getWritable().__next=o,s.__size++,n.__prev=o,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const c=zr();return t&&_r(c)&&Ur(c,this.getParentOrThrow(),a),e}isParentRequired(){return!1}createParentElementNode(){return jo()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){io();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(ko(n))return n.select();if(!pr(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){io();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(ko(n))return n.select(0,0);if(!pr(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}const In="history-push",$n="history-merge",jn="paste",zn="collaboration",Bn="skip-scroll-into-view",Un="skip-dom-selection",Hn="skip-selection-focus",Kn="composition-start",Wn="composition-end";class Vn extends Dn{static getType(){return"linebreak"}static clone(e){return new Vn(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&ms(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&Jn(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&Jn(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&ms(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&Jn(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&Jn(r))return!0}return!1}(e)?null:{conversion:qn,priority:0}}}static importJSON(e){return Gn().updateFromJSON(e)}}function qn(e){return{node:Gn()}}function Gn(){return is(new Vn)}function Yn(e){return e instanceof Vn}function Jn(e){return ai(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function Xn(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function Qn(e,t){return 1&t?"strong":2&t?"em":"span"}function Zn(e,t,n,r,o){const i=r.classList;let s=Bi(o,"base");void 0!==s&&i.add(...s),s=Bi(o,"underlineStrikethrough");let l=!1;const a=8&t&&4&t;void 0!==s&&(8&n&&4&n?(l=!0,a||i.add(...s)):a&&i.remove(...s));for(const e in q){const r=q[e];if(s=Bi(o,e),void 0!==s)if(n&r){if(l&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...s);continue}(0===(t&r)||a&&"underline"===e||"strikethrough"===e)&&i.add(...s)}else t&r&&i.remove(...s)}}function er(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?z:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||_){const[t,n,o]=function(e,t){const n=e.length,r=t.length;let o=0,i=0;for(;o<n&&o<r&&e[o]===t[o];)o++;for(;i+o<n&&i+o<r&&e[n-i-1]===t[r-i-1];)i++;return[o,n-o-i,t.slice(o,r-i)]}(e,i);0!==n&&r.deleteData(t,n),r.insertData(t,o)}else r.nodeValue=i}}function tr(e,t,n,r,o,i){er(o,e,t);const s=i.theme.text;void 0!==s&&Zn(0,0,r,e,s)}function nr(e,t){const n=document.createElement(t);return n.appendChild(e),n}class rr extends Dn{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new rr(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return Q[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===yi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=q[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return di(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=Xn(0,n),o=Qn(0,n),i=null===r?o:r,s=document.createElement(i);let l=s;this.hasFormat("code")&&s.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(o),s.appendChild(l)),tr(l,this,0,n,this.__text,e);const a=this.__style;return""!==a&&(s.style.cssText=a),s}updateDOM(e,t,n){const r=this.__text,o=e.__format,i=this.__format,s=Xn(0,o),l=Xn(0,i),a=Qn(0,o),c=Qn(0,i);if((null===s?a:s)!==(null===l?c:l))return!0;if(s===l&&a!==c){const e=t.firstChild;null==e&&v(48);const o=document.createElement(c);return tr(o,this,0,i,r,n),t.replaceChild(o,e),!1}let u=t;null!==l&&null!==s&&(u=t.firstChild,null==u&&v(49)),er(r,u,this);const d=n.theme.text;void 0!==d&&o!==i&&Zn(0,o,i,u,d);const f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:ar,priority:0}),b:()=>({conversion:ir,priority:0}),code:()=>({conversion:dr,priority:0}),em:()=>({conversion:dr,priority:0}),i:()=>({conversion:dr,priority:0}),mark:()=>({conversion:dr,priority:0}),s:()=>({conversion:dr,priority:0}),span:()=>({conversion:or,priority:0}),strong:()=>({conversion:dr,priority:0}),sub:()=>({conversion:dr,priority:0}),sup:()=>({conversion:dr,priority:0}),u:()=>({conversion:dr,priority:0})}}static importJSON(e){return fr().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return fs(t)||v(132),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=nr(t,"b")),this.hasFormat("italic")&&(t=nr(t,"i")),this.hasFormat("strikethrough")&&(t=nr(t,"s")),this.hasFormat("underline")&&(t=nr(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format="string"==typeof e?q[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?G[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=di(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=X[e];if(this.__mode===t)return this;const n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){io();let n=e,r=t;const o=zr(),i=this.getTextContent(),s=this.__key;if("string"==typeof i){const e=i.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!_r(o))return Dr(s,n,s,r,"text","text");{const e=yi();e!==o.anchor.key&&e!==o.focus.key||mi(s),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){const o=this.getWritable(),i=o.__text,s=n.length;let l=e;l<0&&(l=s+l,l<0&&(l=0));const a=zr();if(r&&_r(a)){const t=e+s;a.setTextNodeRange(o,t,o,t)}const c=i.slice(0,l)+n+i.slice(l+t);return o.__text=c,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){io();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=yi(),i=n.length;e.sort((e,t)=>e-t),e.push(i);const s=[],l=e.length;for(let t=0,r=0;t<i&&r<=l;r++){const o=e[r];o>t&&(s.push(n.slice(t,o)),t=o)}const a=s.length;if(1===a)return[t];const c=s[0],u=t.getParent();let d;const f=t.getFormat(),p=t.getStyle(),h=t.__detail;let g=!1,m=null,y=null;const v=zr();if(_r(v)){const[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];"text"===e.type&&e.key===r&&(m=e),"text"===t.type&&t.key===r&&(y=t)}t.isSegmented()?(d=fr(c),d.__format=f,d.__style=p,d.__detail=h,d.__state=_e(t,d),g=!0):d=t.setTextContent(c);const b=[d];for(let e=1;e<a;e++){const n=fr(s[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=_e(t,n);const i=n.__key;o===r&&mi(i),b.push(n)}const w=m?m.offset:null,x=y?y.offset:null;let S=0;for(const e of b){if(!m&&!y)break;const t=S+e.getTextContentSize();if(null!==m&&null!==w&&w<=t&&w>=S&&(m.set(e.getKey(),w-S,"text"),w<t&&(m=null)),null!==y&&null!==x&&x<=t&&x>=S){y.set(e.getKey(),x-S,"text");break}S=t}if(null!==u){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&gi(t),null!==n&&gi(n)}(this);const e=u.getWritable(),t=this.getIndexWithinParent();g?(e.splice(t,0,b),this.remove()):e.splice(t,1,b),_r(v)&&Ur(v,u,t,a-1)}return b}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||v(50);const n=this.__key,r=e.__key,o=this.__text,i=o.length;yi()===r&&mi(n);const s=zr();if(_r(s)){const o=s.anchor,l=s.focus;null!==o&&o.key===r&&Wr(o,t,n,e,i),null!==l&&l.key===r&&Wr(l,t,n,e,i)}const l=e.__text,a=t?l+o:o+l;this.setTextContent(a);const c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function or(e){return{forChild:hr(e.style),node:null}}function ir(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:hr(t.style,n?void 0:"bold"),node:null}}const sr=new WeakMap;function lr(e){if(!fs(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function ar(e){const t=e;null===e.parentElement&&v(129);let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=sr.get(n))&&!lr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)sr.set(r[e],o);return o}(t)){const e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){const r=e[n];"\n"===r||"\r\n"===r?t.push(Gn()):"\t"===r?t.push(mr()):""!==r&&t.push(fr(r))}return{node:t}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===n)return{node:null};if(" "===n[0]){let e=t,r=!0;for(;null!==e&&null!==(e=cr(e,!1));){const t=e.textContent||"";if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let e=t,r=!0;for(;null!==e&&null!==(e=cr(e,!0));)if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:fr(n)}}function cr(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){const e=n.parentElement;if(null===e)return null;n=e}if(n=e,fs(n)){const e=n.style.display;if(""===e&&!gs(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(ai(n))return n;if("BR"===n.nodeName)return null}}const ur={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function dr(e){const t=ur[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:hr(e.style,t),node:null}}function fr(e=""){return is(new rr(e))}function pr(e){return e instanceof rr}function hr(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),s="italic"===e.fontStyle,l=r.includes("underline"),a=e.verticalAlign;return e=>pr(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),s&&!e.hasFormat("italic")&&e.toggleFormat("italic"),l&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==a||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==a||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}class gr extends rr{static getType(){return"tab"}static clone(e){return new gr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=Bi(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return mr().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&b(126),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||v(286),this}setDetail(e){return 2!==e&&v(127),this}setMode(e){return"normal"!==e&&v(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function mr(){return is(new gr)}function yr(e){return e instanceof gr}class vr{key;offset;type;_selection;constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:rl(ml(al(this,"next")),ml(al(e,"next")))<0}getNode(){const e=vi(this.key);return null===e&&v(20),e}set(e,t,n,r){const o=this._selection,i=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,oo()||(yi()===i&&mi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0)))}}function br(e,t,n){return new vr(e,t,n)}function wr(e,t){let n=t.__key,r=e.offset,o="element";if(pr(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!ko(t)){const e=t.getNextSibling();if(pr(e))n=e.__key,r=0,o="text";else{const e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function xr(e,t){if(ko(t)){const n=t.getLastDescendant();ko(n)||pr(n)?wr(e,n):wr(e,t)}else wr(e,t)}class Sr{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Er(e))return!1;const t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Sr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),n=t.length,r=t[n-1];let o;if(pr(r))o=r.select();else{const e=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(e,e)}o.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=this._nodes,n=[];for(const e of t){const t=vi(e);null!==t&&n.push(t)}return oo()||(this._cachedNodes=n),n}getTextContent(){const e=this.getNodes();let t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((zr()||Br())===this&&e[0]){const t=Ks(e[0],"next");ul(tl(t,t))}for(const t of e)t.remove()}}function _r(e){return e instanceof Cr}class Cr{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!_r(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=function(e){const t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);const o=new Set,i=new Set;for(const n of e)if(zs(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;ko(e)&&i.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),js(e.focus)&&ko(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=Gs(e.focus.origin,"previous");zs(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Js(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!ko(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=ml(e.anchor),r=ml(e.anchor.getFlipped()),o=e=>$s(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(bl(fl(this),"next"));return oo()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const e=this.getNodes();if(0===e.length)return"";const t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[s,l]=Tr(this);let a="",c=!0;for(let u=0;u<e.length;u++){const d=e[u];if(ko(d)&&!d.isInline())c||(a+="\n"),c=!d.isEmpty();else if(c=!1,pr(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=s<l?e.slice(s,l):e.slice(l,s)):e=i?e.slice(s):e.slice(l):d===n&&(e=i?e.slice(0,l):e.slice(0,s)),a+=e}else!Ao(d)&&!Yn(d)||d===n&&this.isCollapsed()||(a+=d.getTextContent())}return a}applyDOMRange(e){const t=ao(),n=t.getEditorState()._selection,r=Mr(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;const[o,i]=r;this.anchor.set(o.key,o.offset,o.type,!0),this.focus.set(i.key,i.offset,i.type,!0),Te(this)}clone(){const e=this.anchor,t=this.focus;return new Cr(br(e.key,e.offset,e.type),br(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=di(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=q[e];return 0!==(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){const r=t[e];"\n"===r||"\r\n"===r?n.push(Gn()):"\t"===r?n.push(mr()):n.push(fr(r))}this.insertNodes(n)}insertText(e){const t=this.anchor,n=this.focus,r=this.format,o=this.style;let i=t,s=n;!this.isCollapsed()&&n.isBefore(t)&&(i=n,s=t),"element"===i.type&&function(e,t,n,r){const o=e.getNode(),i=o.getChildAtIndex(e.offset),s=fr();if(s.setFormat(n),s.setStyle(r),zo(i))i.splice(0,0,[s]);else{const e=Po(o)?jo().append(s):s;null===i?o.append(e):i.insertBefore(e)}e.is(t)&&t.set(s.__key,0,"text"),e.set(s.__key,0,"text")}(i,s,r,o),"element"===s.type&&cl(s,ml(al(s,"next")));const l=i.offset;let a=s.offset;const c=this.getNodes(),u=c.length;let d=c[0];pr(d)||v(26);const f=d.getTextContent().length,p=d.getParentOrThrow();let h=c[u-1];if(1===u&&"element"===s.type&&(a=f,s.set(i.key,a,"text")),this.isCollapsed()&&l===f&&(li(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(pr(t)&&t.canInsertTextBefore()&&!li(t)||(t=fr(),t.setFormat(r),t.setStyle(o),p.canInsertTextAfter()?d.insertAfter(t):p.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===l&&(li(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(pr(t)&&!li(t)||(t=fr(),t.setFormat(r),p.canInsertTextBefore()?d.insertBefore(t):p.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&l!==f){const e=fr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||ko(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Or(this.anchor,this.focus),void this.insertText(e)}if(1===u){if(si(d)){const t=fr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(l!==a||t===r&&n===o){if(yr(d)){const t=fr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=fr(e);if(t.setFormat(r),t.setStyle(o),t.select(),0===l)d.insertBefore(t,!1);else{const[e]=d.splitText(l);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(r),d.setStyle(o)}const i=a-l;d=d.spliceText(l,i,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),...h.getParentKeys()]),n=ko(d)?d:d.getParentOrThrow();let r=ko(h)?h:h.getParentOrThrow(),o=h;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===s.type&&(0!==a||""===h.getTextContent())||"element"===s.type&&h.getIndexWithinParent()<a)if(pr(h)&&!si(h)&&a!==h.getTextContentSize()){if(h.isSegmented()){const e=fr(h.getTextContent());h.replace(e),h=e}Po(s.getNode())||"text"!==s.type||(h=h.spliceText(0,a,"")),t.add(h.__key)}else{const e=h.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?h.remove():e.remove()}else t.add(h.__key);const i=r.getChildren(),p=new Set(c),g=n.is(r),m=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||ko(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?g||m.insertAfter(t,!1):t.remove())}if(!g){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(si(d))if(l===f)d.select();else{const t=fr(e);t.select(),d.replace(t)}else d=d.spliceText(l,f-l,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<u;e++){const n=c[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=zr()===this;dl(this,function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=bl(e,r),s=hl(i.anchor,n),l=hl(i.focus.getFlipped(),n),a=new Set,c=[];for(const e of i.iterNodeCarets(n))if(zs(e))a.add(e.origin.getKey());else if(js(e)){const{origin:t}=e;ko(t)&&!a.has(t.getKey())||c.push(t)}for(const e of c)e.remove();for(const e of i.getTextSlices()){if(!e)continue;const{origin:t}=e.caret,n=t.getTextContentSize(),i=pl(Ks(t,r)),a=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===o||"token"===a&&0!==e.distance)i.remove();else if(0!==e.distance){o="removeEmptySlices";let t=e.removeTextSlice();const n=e.caret.origin;if("segmented"===a){const e=t.origin,n=fr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=Ws(n,r,t.offset)}n.is(s[0].origin)&&(s[0]=t),n.is(l[0].origin)&&(l[0]=t.getFlipped())}}let u,d;for(const e of s)if(gl(e)){u=ml(e);break}for(const e of l)if(gl(e)){d=ml(e);break}const f=function(e,t,n){if(!e||!t)return null;const r=e.getParentAtCaret(),o=t.getParentAtCaret();if(!r||!o)return null;const i=r.getParents().reverse();i.push(r);const s=o.getParents().reverse();s.push(o);const l=Math.min(i.length,s.length);let a;for(a=0;a<l&&i[a]===s[a];a++);const c=(e,t)=>{let n;for(let r=a;r<e.length;r++){const o=e[r];if(rs(o))return;!n&&t(o)&&(n=o)}return n},u=c(i,ys),d=u&&c(s,e=>n.has(e.getKey())&&ys(e));return u&&d?[u,d]:null}(u,d,a);if(f){const[e,t]=f;Gs(e,"previous").splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){const e=n;n=n.getParent(),e.remove(!0)}}const p=[u,d,...s,...l].find(gl);if(p)return el(vl(ml(p),e.direction));v(269,JSON.stringify(s.map(e=>e.origin.__key)))}(fl(this))),e&&zr()!==this&&ki(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void mi(null);const n=this.getNodes(),r=[];for(const e of n)pr(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(ko(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),mi(null),void o(t);const s=this.anchor,l=this.focus,a=this.isBackward(),c=a?l:s,u=a?s:l;let d=0,f=r[0],p="element"===c.type?0:c.offset;if("text"===c.type&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),null==f)return;const h=f.getFormatFlags(e,t);o(h);const g=i-1;let m=r[g];const y="text"===u.type?u.offset:m.getTextContentSize();if(f.is(m)){if(p===y)return;if(li(f)||0===p&&y===f.getTextContentSize())f.setFormat(h);else{const e=f.splitText(p,y),t=0===p?e[0]:e[1];t.setFormat(h),"text"===c.type&&c.set(t.__key,0,"text"),"text"===u.type&&u.set(t.__key,y-p,"text")}return void(this.format=h)}0===p||li(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const v=m.getFormatFlags(e,h);y>0&&(y===m.getTextContentSize()||li(m)||([m]=m.splitText(y)),m.setFormat(v));for(let t=d+1;t<g;t++){const n=r[t],o=n.getFormatFlags(e,v);n.setFormat(o)}"text"===c.type&&c.set(f.__key,p,"text"),"text"===u.type&&u.set(m.__key,y,"text"),this.format=h|v}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=zr();return _r(t)||v(134),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=As(t,ys),r=e[e.length-1];if(ko(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=Yr(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(ko(e)||Ao(e))&&!e.isInline())){ko(n)||v(211,t.constructor.name,t.getType());const o=Yr(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=jo();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=Yn(o);if(i||Ao(o)&&o.isInline()||ko(o)&&o.isInline()||pr(o)||o.isParentRequired()){if(null===n&&(n=o.createParentElementNode(),t.append(n),i))continue;null!==n&&n.append(o)}else t.append(o),n=null}return t}(e),i=o.getLastDescendant(),s=o.getChildren(),l=ko(n)&&n.isEmpty()?null:this.insertParagraph(),a=s[s.length-1];let c=s[0];var u;ko(u=c)&&ys(u)&&!u.isEmpty()&&ko(n)&&(!n.isEmpty()||n.canMergeWhenEmpty())&&(ko(n)||v(211,t.constructor.name,t.getType()),n.append(...c.getChildren()),c=s[1]),c&&(null===n&&v(212,t.constructor.name,t.getType()),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||v(140),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,c));const d=As(i,ys);l&&ko(d)&&(l.canMergeWhenEmpty()||ys(a))&&(d.append(...l.getChildren()),l.remove()),ko(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const f=ko(n)?n.getLastChild():null;Yn(f)&&d!==n&&f.remove()}insertParagraph(){if("root"===this.anchor.key){const e=jo();return Ci().splice(this.anchor.offset,0,[e]),e.select(),e}const e=Yr(this),t=As(this.anchor.getNode(),ys);ko(t)||v(213);const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...r),o.selectStart(),o):null}insertLineBreak(e){const t=Gn();if(this.insertNodes([t]),e){const e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){const e=[...this.getNodes()],t=e.length;let n=e[0],r=e[t-1];const[o,i]=Tr(this),s=this.isBackward(),[l,a]=s?[this.focus,this.anchor]:[this.anchor,this.focus],[c,u]=s?[i,o]:[o,i];if(0===t)return[];if(1===t){if(pr(n)&&!this.isCollapsed()){const e=n.splitText(c,u),t=0===c?e[0]:e[1];return t?(l.set(t.getKey(),0,"text"),a.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(pr(n)&&(c===n.getTextContentSize()?e.shift():0!==c&&([,n]=n.splitText(c),e[0]=n,l.set(n.getKey(),0,"text"))),pr(r)){const t=r.getTextContent().length;0===u?e.pop():u!==t&&([r]=r.splitText(u),e[e.length-1]=r,a.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,t,n){if(Xr(this,e,t,n))return;const r="move"===e,o=ao(),i=us(ts(o));if(!i)return;const s=o._blockCursorElement,l=o._rootElement,a=this.focus.getNode();if(null===l||null===s||!ko(a)||a.isInline()||a.canBeEmpty()||cs(s,o,l),this.dirty){let e=Gi(o,this.anchor.key),t=Gi(o,this.focus.key);"text"===this.anchor.type&&(e=ui(e)),"text"===this.focus.type&&(t=ui(t)),e&&t&&Vr(i,e,this.anchor.offset,t,this.focus.offset)}if(function(e,t,n,r){e.modify(t,n,r)}(i,e,t?"backward":"forward",n),i.rangeCount>0){const e=i.getRangeAt(0),n=this.anchor.getNode(),o=Po(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(rs(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!r){const n=this.getNodes(),r=[];let s=!1;for(let e=0;e<n.length;e++){const t=n[e];Zi(t,o)?r.push(t):s=!0}if(s&&r.length>0)if(t){const e=r[0];ko(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];ko(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}i.anchorNode===e.startContainer&&i.anchorOffset===e.startOffset||function(e){const t=e.focus,n=e.anchor,r=n.key,o=n.offset,i=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,o,i,!0)}(this)}}"lineboundary"===n&&Xr(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&ko(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){const e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(ko(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const t=this.anchor;let n=t.getNode();if(this.forwardDeletion(t,n,e))return;const r=Zs(al(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(const t of r.iterNodeCarets("shadowRoot"))if(zs(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(ko(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=ml(t);dl(this,tl(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(js(t)){if(ko(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(Ao(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&ko(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=$r();e.add(t.origin.getKey()),ki(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return dl(this,tl(!t.origin.isEmpty()&&n.isEmpty()?pl(Ks(n,t.direction)):r.anchor,t)),this.removeText()}}const o=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&Nr(this,t.getNode()))return}else{const r="text"===o.type?o.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){const t=o.offset,i=r.getTextContentSize();if(r.is(n)||e&&t!==i||!e&&0!==t)return void Rr(r,e,t)}else if(null!==n&&n.isSegmented()){const o=t.offset,i=n.getTextContentSize();if(n.is(r)||e&&0!==o||!e&&o!==i)return void Rr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode();if(o===r.getNode()&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,s=e<i,l=s?e:i,a=s?i:e,c=a-1;l!==c&&function(e){return!(Ni(e)||Ar(e))}(o.getTextContent().slice(l,a))&&(t?r.set(r.key,c,r.type):n.set(n.key,c,n.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const e=this.anchor.getNode();e.isEmpty()&&Po(e.getParent())&&null===e.getPreviousSibling()&&Nr(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.isCollapsed()?this.deleteCharacter(e):this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Er(e){return e instanceof Sr}function kr(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Tr(e){const t=e.getStartEndPoints();if(null===t)return[0,0];const[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[kr(n),kr(r)]}function Nr(e,t){for(let n=t;n;n=n.getParent()){if(ko(n)){if(n.collapseAtStart(e))return!0;if(rs(n))break}if(n.getPreviousSibling())break}return!1}const Ar=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Rr(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let e=0;e<i;e++){const r=e===i-1;if(l=s,s+=o[e].length,t&&s===n||s>n||r){o.splice(e,1),r&&(l=void 0);break}}const a=o.join("").trim();""===a?r.remove():(r.setTextContent(a),r.select(l,l))}function Pr(e,t,n,r){let o,i=t;if(fs(e)){let s=!1;const l=e.childNodes,a=l.length,c=r._blockCursorElement;i===a&&(s=!0,i=a-1);let u=l[i],d=!1;if(u===c)u=l[i+1],d=!0;else if(null!==c){const n=c.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,c)&&i--}if(o=Ti(u),pr(o))i=Vs(o,s?"next":"previous");else{let l=Ti(e);if(null===l)return null;if(ko(l)){const a=r.getElementByKey(l.getKey());null===a&&v(214);const c=l.getDOMSlot(a);[l,i]=c.resolveChildIndex(l,a,e,t),ko(l)||v(215),s&&i>=l.getChildrenSize()&&(i=Math.max(0,l.getChildrenSize()-1));let u=l.getChildAtIndex(i);if(ko(u)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){const e=s?u.getLastDescendant():u.getFirstDescendant();null===e?l=u:(u=e,l=ko(u)?u:u.getParentOrThrow()),i=0}pr(u)?(o=u,l=null,i=Vs(u,s?"next":"previous")):u!==l&&s&&!d&&(ko(l)||v(216),i=Math.min(l.getChildrenSize(),i+1))}else{const n=l.getIndexWithinParent();i=0===t&&Ao(l)&&Ti(e)===l?n:n+1,l=l.getParentOrThrow()}if(ko(l))return br(l.__key,i,"element")}}else o=Ti(e);return pr(o)?br(o.__key,Vs(o,i,"clamp"),"text"):null}function Lr(e,t,n){const r=e.offset,o=e.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(t){if((n||!t)&&null===r&&ko(i)&&i.isInline()){const t=i.getPreviousSibling();pr(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else ko(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):pr(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&ko(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&ko(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();pr(t)&&e.set(t.__key,0,"text")}}}function Or(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);Lr(e,n,r),Lr(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function Mr(e,t,n,r,o,i){if(null===e||null===n||!ti(o,e,n))return null;const s=Pr(e,t,_r(i)?i.anchor:null,o);if(null===s)return null;const l=Pr(n,r,_r(i)?i.focus:null,o);if(null===l)return null;if("element"===s.type&&"element"===l.type){const t=Ti(e),r=Ti(n);if(Ao(t)&&Ao(r))return null}return Or(s,l),[s,l]}function Fr(e){return ko(e)&&!e.isInline()}function Dr(e,t,n,r,o,i){const s=lo(),l=new Cr(br(e,t,o),br(n,r,i),0,"");return l.dirty=!0,s._selection=l,l}function Ir(){const e=br("root",0,"element"),t=br("root",0,"element");return new Cr(e,t,0,"")}function $r(){return new Sr(new Set)}function jr(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,s=i?i.type:void 0,l="selectionchange"===s,a=!te&&(l||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&i&&3===i.detail||"drop"===s||void 0===s);let c,u,d,f;if(_r(e)&&!a)return e.clone();if(null===t)return null;if(c=t.anchorNode,u=t.focusNode,d=t.anchorOffset,f=t.focusOffset,(l||void 0===s)&&_r(e)&&!ti(n,c,u))return e.clone();const p=Mr(c,d,u,f,n,e);if(null===p)return null;const[h,g]=p;let m=0,y="";if(_r(e)){const t=e.anchor;if(h.key===t.key)m=e.format,y=e.style;else{const e=h.getNode();pr(e)?(m=e.getFormat(),y=e.getStyle()):ko(e)&&(m=e.getTextFormat(),y=e.getTextStyle())}}return new Cr(h,g,m,y)}function zr(){return lo()._selection}function Br(){return ao()._editorState._selection}function Ur(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),l=i.getNode();if(!t.is(s)&&!t.is(l))return;const a=t.__key;if(e.isCollapsed()){const t=o.offset;if(n<=t&&r>0||n<t&&r<0){const n=Math.max(0,t+r);o.set(a,n,"element"),i.set(a,n,"element"),Hr(e)}}else{const s=e.isBackward(),l=s?i:o,c=l.getNode(),u=s?o:i,d=u.getNode();if(t.is(c)){const e=l.offset;(n<=e&&r>0||n<e&&r<0)&&l.set(a,Math.max(0,e+r),"element")}if(t.is(d)){const e=u.offset;(n<=e&&r>0||n<e&&r<0)&&u.set(a,Math.max(0,e+r),"element")}}Hr(e)}function Hr(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!ko(i))return;const e=i.getChildrenSize(),o=n>=e,s=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(pr(s)){let e=0;o&&(e=s.getTextContentSize()),t.set(s.__key,e,"text"),r.set(s.__key,e,"text")}return}if(ko(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(pr(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(ko(s)){const e=s.getChildrenSize(),t=o>=e,n=t?s.getChildAtIndex(e-1):s.getChildAtIndex(o);if(pr(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function Kr(e,t,n,r,o){let i=null,s=0,l=null;null!==r?(i=r.__key,pr(r)?(s=r.getTextContentSize(),l="text"):ko(r)&&(s=r.getChildrenSize(),l="element")):null!==o&&(i=o.__key,pr(o)?l="text":ko(o)&&(l="element")),null!==i&&null!==l?e.set(i,s,l):(s=t.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function Wr(e,t,n,r,o){"text"===e.type?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function Vr(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){}}function qr(e,t,n){const r=Gi(e,t.getKey());if(ko(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function Gr(e){let t=zr()||Br();null===t&&(t=Ci().selectEnd()),t.insertNodes(e)}function Yr(e){let t=e;e.isCollapsed()||t.removeText();const n=zr();_r(n)&&(t=n),_r(t)||v(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!ys(o);){const e=o;if([o,i]=Jr(o,i),e.is(o))break}return i}function Jr(e,t){const n=e.getParent();if(!n){const e=jo();return Ci().append(e),e.select(),[Ci(),0]}if(pr(e)){const r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];const o=0===t?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!ko(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Cr(br(e.__key,t,"element"),br(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Xr(e,t,n,r,o="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){const[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}const i=al(e.focus,n?"previous":"next"),s="lineboundary"===r,l="move"===t;let a=i,c="decorators-and-blocks"===o;if(!yl(a)){for(const e of a){c=!1;const{origin:t}=e;if(!Ao(t)||t.isIsolated()||(a=e,!s||!t.isInline()))break}if(c)for(const e of Zs(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(zs(e))e.origin.isInline()||(a=e);else{if(ko(e.origin))continue;Ao(e.origin)&&!e.origin.isInline()&&(a=e)}break}}if(a===i)return!1;if(l&&!s&&Ao(a.origin)&&a.origin.isKeyboardSelectable()){const e=$r();return e.add(a.origin.getKey()),ki(e),!0}return a=ml(a),l&&cl(e.anchor,a),cl(e.focus,a),c||!s}let Qr=null,Zr=null,eo=!1,to=!1,no=0;const ro={characterData:!0,childList:!0,subtree:!0};function oo(){return eo||null!==Qr&&Qr._readOnly}function io(){eo&&v(13)}function so(){no>99&&v(14)}function lo(){return null===Qr&&v(195,co()),Qr}function ao(){return null===Zr&&v(196,co()),Zr}function co(){let e=0;const t=new Set,n=Vo.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=oi(r);if(ni(o))e++;else if(o){let e=String(o.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function uo(e,t,n){const r=t.__type,o=Jo(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let e=0;e<s&&(i[e](t),t.isAttached());e++);}function fo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function po(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const e of r)n.add(e)}function ho(e){return go(e,ao()._nodes)}function go(e,t){const n=e.type,r=t.get(n);void 0===r&&v(17,n);const o=r.klass;e.type!==o.getType()&&v(18,o.name);const i=o.importJSON(e),s=e.children;if(ko(i)&&Array.isArray(s))for(let e=0;e<s.length;e++){const n=go(s[e],t);i.append(n)}return i}function mo(e,t,n){const r=Qr,o=eo,i=Zr;Qr=t,eo=!0,Zr=e;try{return n()}finally{Qr=r,eo=o,Zr=i}}function yo(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null===n)return;const i=e._editorState,s=i._selection,l=n._selection,a=0!==e._dirtyType,c=Qr,u=eo,d=Zr,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&a&&null!==p){Zr=e,Qr=n,eo=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=function(e,t,n,r,o,i){je="",Ue=2===r,Re=n,Ae=n._config,Pe=n._nodes,Le=Re._listeners.mutation,Oe=o,Me=i,Fe=e._nodeMap,De=t._nodeMap,He=t._readOnly,Ie=new Map(n._keyToDOMMap);const s=new Map;return $e=s,nt("root",null),Re=void 0,Pe=void 0,Oe=void 0,Me=void 0,Fe=void 0,De=void 0,Ae=void 0,Ie=void 0,$e=void 0,s}(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),to)throw t;return Bo(e,null,r,n),ue(e),e._dirtyType=2,to=!0,yo(e,i),void(to=!1)}finally{p.observe(r,ro),e._updating=f,Qr=c,eo=u,Zr=d}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,m=e._dirtyElements,y=e._normalizedNodes,v=e._updateTags,b=e._deferred;a&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){const n=e._decorators;let r=e._pendingDecorators||n;const o=t._nodeMap;let i;for(i in r)o.has(i)||(r===n&&(r=Si(e)),delete r[i])}(e,n);const w=o?null:us(ts(e));if(e._editable&&null!==w&&(a||null===l||l.dirty||!l.is(s))&&null!==r&&!v.has(Un)){Zr=e,Qr=n;try{if(null!==p&&p.disconnect(),a||null===l||l.dirty){const t=e._blockCursorElement;null!==t&&cs(t,e,r),function(e,t,n,r,o,i){const s=r.anchorNode,l=r.focusNode,a=r.anchorOffset,c=r.focusOffset,u=document.activeElement;if(o.has(zn)&&u!==i||null!==u&&ei(u))return;if(!_r(t))return void(null!==e&&ti(n,s,l)&&r.removeAllRanges());const d=t.anchor,f=t.focus,p=d.getNode(),h=f.getNode(),[g,m]=qr(n,p,d.offset),[y,v]=qr(n,h,f.offset),b=t.format,w=t.style,x=t.isCollapsed();let S=g,C=y,E=!1;var k,T,N,A,R;if("text"===d.type?(S=ui(g),E=p.getFormat()!==b||p.getStyle()!==w):_r(e)&&"text"===e.anchor.type&&(E=!0),"text"===f.type&&(C=ui(y)),null!==S&&null!==C&&(x&&(null===e||E||_r(e)&&(e.format!==b||e.style!==w))&&(k=b,T=w,N=m,A=d.key,R=performance.now(),gn=[k,T,N,A,R]),a!==m||c!==v||s!==S||l!==C||"Range"===r.type&&x||(null!==u&&i.contains(u)||o.has(Hn)||i.focus({preventScroll:!0}),"element"===d.type))){if(Vr(r,S,m,C,v),!_||!t.isCollapsed()||null===i||o.has(Hn)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(Bn)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=_r(t)&&"element"===t.anchor.type?S.childNodes[m]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=Ji(n),o=es(r);if(null===r||null===o)return;let{top:i,bottom:s}=t,l=0,a=0,c=n;for(;null!==c;){const t=c===r.body;if(t){l=0,a=ts(e).innerHeight;const t=o.getComputedStyle(r.documentElement),n=parseFloat(t.scrollPaddingTop),i=parseFloat(t.scrollPaddingBottom);isFinite(n)&&(l+=n),isFinite(i)&&(a-=i)}else{const e=c.getBoundingClientRect();l=e.top,a=e.bottom}let n=0;if(i<l?n=-(l-i):s>a&&(n=s-a),0!==n)if(t)o.scrollBy(0,n);else{const e=c.scrollTop;c.scrollTop+=n;const t=c.scrollTop-e;i-=t,s-=t}if(t)break;c=Yi(c)}}(n,t,i)}}an=!0}}(s,l,e,w,v,r)}!function(e,t,n){let r=e._blockCursorElement;if(_r(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),s=o.offset;let l=!1,a=null;if(s===i.getChildrenSize())as(i.getChildAtIndex(s-1))&&(l=!0);else{const t=i.getChildAtIndex(s);if(null!==t&&as(t)){const n=t.getPreviousSibling();(null===n||as(n))&&(l=!0,a=e.getElementByKey(t.__key))}}if(l){const n=e.getElementByKey(i.__key);return null===r&&(e._blockCursorElement=r=function(e){const t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;if(void 0!==r){if("string"==typeof r){const e=El(r);r=t.blockCursor=e}void 0!==r&&n.classList.add(...r)}return n}(e._config)),t.style.caretColor="transparent",void(null===a?n.appendChild(r):n.insertBefore(r,a))}}null!==r&&cs(r,e,t)}(e,r,l)}finally{null!==p&&p.observe(r,ro),Zr=d,Qr=c}}null!==h&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),s=i.length;for(let e=0;e<s;e++){const[s,l]=i[e];for(const e of l){const i=t.get(e);void 0!==i&&s(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(e,h,v,g,i),_r(l)||null===l||null!==s&&s.is(l)||e.dispatchCommand(at,void 0);const x=e._pendingDecorators;null!==x&&(e._decorators=x,e._pendingDecorators=null,vo("decorator",e,!0,x)),function(e,t,n){const r=_i(t),o=_i(n);r!==o&&vo("textcontent",e,!0,o)}(e,t||i,n),vo("update",e,!0,{dirtyElements:m,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:y,prevEditorState:t||i,tags:v}),function(e,t){if(e._deferred=[],0!==t.length){const n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,b),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;xo(e,t,r)}}}(e)}function vo(e,t,n,...r){const o=t._updating;t._updating=n;try{const n=t._listeners[e],o=Array.from(n);for(const[e,t]of o){t&&t();const o=e(...r);n.has(e)?n.set(e,o):o&&o()}}finally{t._updating=o}}function bo(e,t,n,r){const o=Ai(e);let i;for(let e=4;e>=0;e--)for(let s=0;s<o.length;s++){const l=o[s];if(s>0&&l._updating){i=l;break}const a=l._commands.get(t);if(void 0!==a){const t=a[e];if(void 0!==t){const e=Array.from(t),o=e.length;let i=!1;if(So(l,()=>{for(let t=0;t<o;t++)if(e[t](n,r))return void(i=!0)}),i)return i}}}return i&&i.update(()=>{bo(i,t,n,r)}),!1}function wo(e,t){const n=e._updates;let r=t||!1;for(;0!==n.length;){const t=n.shift();if(t){const[n,o]=t,i=e._pendingEditorState;let s;void 0!==o&&(s=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(null===i&&v(191),i._flushSync=!0),s&&e._deferred.push(s),po(e,o.tag)),null==i?xo(e,n,o):n()}}return r}function xo(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;void 0!==n&&(o=n.onUpdate,po(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const l=e._editorState;let a=e._pendingEditorState,c=!1;(null===a||a._readOnly)&&(a=e._pendingEditorState=Lo(a||l),c=!0),a._flushSync=s;const u=Qr,d=eo,f=Zr,p=e._updating;Qr=a,eo=!1,e._updating=!0,Zr=e;const h=e._headless||null===e.getRootElement();Go(null);try{c&&(h?null!==l._selection&&(a._selection=l._selection.clone()):a._selection=function(e,t){const n=e.getEditorState()._selection,r=us(ts(e));return _r(n)||null==n?jr(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=wo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(_r(r)){const e=r.anchor,t=r.focus;let o;if("text"===e.type&&(o=e.getNode(),o.selectionTransform(n,r)),"text"===t.type){const e=t.getNode();o!==e&&e.selectionTransform(n,r)}}}(a,e),0!==e._dirtyType&&(i?function(e,t){const n=t._dirtyLeaves,r=e._nodeMap;for(const e of n){const t=r.get(e);pr(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&ke(t)}}(a,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=yi(),s=new Map;let l=n,a=l.size,c=r,u=c.size;for(;a>0||u>0;){if(a>0){t._dirtyLeaves=new Set;for(const e of l){const r=o.get(e);pr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&ke(r),void 0!==r&&fo(r,i)&&uo(t,r,s),n.add(e)}if(l=t._dirtyLeaves,a=l.size,a>0){no++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,c.delete("root")&&c.set("root",!0);for(const e of c){const n=e[0],l=e[1];if(r.set(n,l),!l)continue;const a=o.get(n);void 0!==a&&fo(a,i)&&uo(t,a,s)}l=t._dirtyLeaves,a=l.size,c=t._dirtyElements,u=c.size,no++}t._dirtyLeaves=n,t._dirtyElements=r}(a,e),wo(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,s=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(ko(t)&&ee(t,e,o,i,s,r),o.has(e)||r.delete(e),s.push(e)))}for(const e of s)i.delete(e);for(const e of n){const t=i.get(e);void 0===t||t.isAttached()||(o.has(e)||n.delete(e),i.delete(e))}}(l,a,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(a._flushSync=!0);const o=a._selection;if(_r(o)){const e=a._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||v(19)}else Er(o)&&0===o._nodes.size&&(a._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=l,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void yo(e)}finally{Qr=u,eo=d,Zr=f,e._updating=p,no=0}const g=0!==e._dirtyType||e._deferred.length>0||function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(a,e);g?a._flushSync?(a._flushSync=!1,yo(e)):c&&Qo(()=>{yo(e)}):(a._flushSync=!1,c&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function So(e,t,n){Zr===e&&void 0===n?t():xo(e,t,n)}class _o{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new _o(this.element,e,this.after)}withAfter(e){return new _o(this.element,this.before,e)}withElement(e){return this.element===e?this:new _o(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&v(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&v(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&v(224),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{const t="decorator"===e&&(R||E||T);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,o=document.createElement("br");if(n.insertBefore(o,r),e){const e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,o),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=o}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){const t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}const o=Co(t,n);o.push(r);const i=Co(t,this.element);let s=e.getIndexWithinParent();for(let e=0;e<i.length;e++){const t=o[e],n=i[e];if(void 0===t||t<n)break;if(t>n){s+=1;break}}return[e.getParentOrThrow(),s]}}function Co(e,t){const n=[];let r=t;for(;r!==e&&null!==r;r=r.parentNode){let e=0;for(let t=r.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return r!==e&&v(225),n.reverse()}class Eo extends Dn{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return J[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const e=ao()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;null!==t;){if(pr(t)&&e.push(t),ko(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;ko(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;ko(e);){const t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),n=t.length;if(e>=n){const e=t[n-1];return ko(e)&&e.getLastDescendant()||e||null}const r=t[e];return ko(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:vi(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&v(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:vi(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&v(96,this.__key),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContent(),ko(o)&&r!==n-1&&!o.isInline()&&(e+=B)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContentSize(),ko(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){const t=Y[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=q[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return di(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){io();const n=zr();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(pr(e)||ko(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(pr(e)||ko(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const s=this.__key;return _r(n)?(n.anchor.set(s,r,"element"),n.focus.set(s,o,"element"),n.dirty=!0,n):Dr(s,r,s,o,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?Y[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){Fn(this)&&v(324,this.__key,this.__type);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||v(226,String(e),String(t),String(r));const i=o.__key,s=[],l=[],a=this.getChildAtIndex(e+t);let c=null,u=r-t+n.length;if(0!==e)if(e===r)c=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(c=t.getPreviousSibling())}if(t>0){let e=null===c?this.getFirstChild():c.getNextSibling();for(let n=0;n<t;n++){null===e&&v(100);const t=e.getNextSibling(),n=e.__key;hi(e.getWritable()),l.push(n),e=t}}let d=c;for(const e of n){null!==d&&e.is(d)&&(c=d=d.getPreviousSibling());const t=e.getWritable();t.__parent===i&&u--,hi(t);const n=e.__key;if(null===d)o.__first=n,t.__prev=null;else{const e=d.getWritable();e.__next=n,t.__prev=e.__key}e.__key===i&&v(76),t.__parent=i,s.push(n),d=e}if(e+t===r)null!==d&&(d.getWritable().__next=null,o.__last=d.__key);else if(null!==a){const e=a.getWritable();if(null!==d){const t=d.getWritable();e.__prev=d.__key,t.__next=a.__key}else e.__prev=null}if(o.__size=u,l.length){const e=zr();if(_r(e)){const t=new Set(l),n=new Set(s),{anchor:r,focus:o}=e;To(r,t,n)&&Kr(r,r.getNode(),this,c,a),To(o,t,n)&&Kr(o,o.getNode(),this,c,a),0!==u||this.canBeEmpty()||rs(this)||this.remove()}}return o}getDOMSlot(e){return new _o(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(fs(t)){const e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");const n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0===t&&""===n||rs(this)||this.getChildren().some(pr)||(0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const n=this.getDOMSlot(e);let r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){const o=t.getElementByKey(e.getKey());null!==o&&(null==r?(n.insertChild(o),r=o):r!==o&&n.replaceChild(o,r),r=r.nextSibling)}}}function ko(e){return e instanceof Eo}function To(e,t,n){let r=e.getNode();for(;r;){const e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class No extends Dn{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ao(e){return e instanceof No}class Ro extends Eo{__cachedText;static getType(){return"root"}static clone(){return new Ro}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){v(51)}getTextContent(){const e=this.__cachedText;return!oo()&&0!==ao()._dirtyType||null===e?super.getTextContent():e}remove(){v(52)}replace(e){v(53)}insertBefore(e){v(54)}insertAfter(e){v(55)}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)ko(e)||Ao(e)||v(282);return super.splice(e,t,n)}static importJSON(e){return Ci().updateFromJSON(e)}collapseAtStart(){return!0}}function Po(e){return e instanceof Ro}function Lo(e){return new Fo(new Map(e._nodeMap))}function Oo(){return new Fo(new Map([["root",new Ro]]))}function Mo(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&v(130,n.name),ko(e)){const r=t.children;Array.isArray(r)||v(59,n.name);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=Mo(o[e]);r.push(t)}}return t}class Fo{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return mo(t&&t.editor||null,this,e)}clone(e){const t=new Fo(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return mo(null,this,()=>({root:Mo(Ci())}))}}class Do extends Eo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class Io extends Eo{static getType(){return"paragraph"}static clone(e){return new Io(e.__key)}createDOM(e){const t=document.createElement("p"),n=Bi(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:$o,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fs(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return jo().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(pr);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=jo();n.setTextFormat(e.format),n.setTextStyle(e.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){const e=this.getChildren();if(0===e.length||pr(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function $o(e){const t=jo();if(e.style&&(t.setFormat(e.style.textAlign),_s(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in Y&&t.setFormat(n)}return{node:t}}function jo(){return is(new Io)}function zo(e){return e instanceof Io}function Bo(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Oo(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;null!==i&&(i.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}function Uo(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Ts(r),o=r.transform;if(!n.has(o)){n.add(o);const e=r.transform();e&&t.add(e)}if(e){const n=e.$transform;n&&t.add(n),r=e.extends}else{const e=Object.getPrototypeOf(r);r=e.prototype instanceof Dn&&e!==Dn?e:void 0}}return t}function Ho(e){const t=e||{},n=Zr,r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,s=Oo(),l=t.namespace||(null!==o?o._config.namespace:Ri()),a=t.editorState,c=[Ro,rr,Vn,gr,Io,Do,...t.nodes||[]],{onError:u,html:d}=t,f=void 0===t.editable||t.editable;let p;if(void 0===e&&null!==n)p=n._nodes;else{p=new Map;for(let e=0;e<c.length;e++){let t=c[e],n=null,r=null;if("function"!=typeof t){const e=t;t=e.replace,n=e.with,r=e.withKlass||null}Ts(t);const o=t.getType(),i=Uo(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:ge(c[e]),transforms:i})}}const h=new Vo(s,o,p,{disableEvents:i,namespace:l,theme:r},u||console.error,function(e,t){const n=new Map,r=new Set,o=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{const t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);const n=t.call(e.klass);null!==n&&o(n)}),t&&o(t),n}(p,d?d.import:void 0),f,e);return void 0!==a&&(h._pendingEditorState=a,h._dirtyType=2),function(e){e.registerCommand(dt,Sn,0),e.registerCommand(ft,_n,0),e.registerCommand(pt,Cn,0),e.registerCommand(ht,En,0),e.registerCommand(kt,Tn,0)}(h),h}function Ko(e,t){const n=e.get(t);e.delete(t),n&&n()}function Wo(e,t,n){return e.set(t,n),Ko.bind(null,e,t)}class Vo{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,n,r,o,i,s,l){this._createEditorArgs=l,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Ri(),this._onError=o,this._htmlConversions=i,this._editable=s,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){return Wo(this._listeners.update,e)}registerEditableListener(e){return Wo(this._listeners.editable,e)}registerDecoratorListener(e){return Wo(this._listeners.decorator,e)}registerTextContentListener(e){return Wo(this._listeners.textcontent,e)}registerRootListener(e){const t=this._listeners.root;return Nl(Wo(t,e,e(this._rootElement,null)||void 0),()=>function(e,t,n){const r=e.get(t);r&&r(),e.set(t,t(...n)||void 0)}(t,e,[null,this._rootElement]))}registerCommand(e,t,n){void 0===n&&v(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&v(36,String(e));const i=o[n];return i.add(t),()=>{i.delete(t),o.every(e=>0===e.size)&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;let i=o.get(t);void 0===i&&(i=new Set,o.set(t,i)),i.add(r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(t,r),()=>{i.delete(r),0===i.size&&o.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return void 0===t&&v(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=xs(n).get(t.getType());if(!r)return;const o=new Map;for(const e of r.keys())o.set(e,"created");o.size>0&&e(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){const n=this.registerNodeTransformToKlass(e,t),r=[n],o=n.replaceWithKlass;if(null!=o){const e=this.registerNodeTransformToKlass(o,t);r.push(e)}return function(e,t){const n=xs(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(const e of r)for(const t of e.keys()){const e=vi(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:$n}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return qi(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const n=Bi(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Bo(this,t,e,r),null!==t&&(this._config.disableEvents||function(e){const t=sn.get(e);if(void 0===t)return;const n=ln.get(t);if(void 0===n)return;const r=n-1;r>=0||v(164),sn.delete(e),ln.set(t,r),0===r&&t.removeEventListener("selectionchange",Rn);const o=oi(e);ni(o)?(function(e){if(null!==e._parentEditor){const t=Ai(e),n=t[t.length-1]._key;An.get(n)===e&&An.delete(n)}else An.delete(e._key)}(o),e.__lexicalEditor=null):o&&v(198);const i=Nn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){const t=es(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,ue(this),this._updateTags.add($n),yo(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;sn.set(e,n);const r=ln.get(n)??0;r<1&&n.addEventListener("selectionchange",Rn),ln.set(n,r+1),e.__lexicalEditor=t;const o=Nn(e);for(let n=0;n<en.length;n++){const[r,i]=en[n],s="function"==typeof i?e=>{Ln(e)||(Pn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Ln(e))return;Pn(e);const n=t.isEditable();switch(r){case"cut":return n&&qi(t,Gt,e);case"copy":return qi(t,qt,e);case"paste":return n&&qi(t,bt,e);case"dragstart":return n&&qi(t,Kt,e);case"dragover":return n&&qi(t,Wt,e);case"dragend":return n&&qi(t,Vt,e);case"focus":return n&&qi(t,Jt,e);case"blur":return n&&qi(t,Xt,e);case"drop":return n&&qi(t,Ut,e)}};e.addEventListener(r,s),o.push(()=>{e.removeEventListener(r,s)})}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add($n),yo(this);vo("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&v(38);let n=e;n._readOnly&&(n=Lo(e),n._selection=e._selection?e._selection.clone():null),ce(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),yo(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||yo(this)}parseEditorState(e,t){return function(e,t,n){const r=Oo(),o=Qr,i=eo,s=Zr,l=t._dirtyElements,a=t._dirtyLeaves,c=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,Qr=r,eo=!1,Zr=t,Go(null);try{const o=t._nodes;go(e.root,o),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=l,t._dirtyLeaves=a,t._cloneNotNeeded=c,t._dirtyType=u,Qr=o,eo=i,Zr=s}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return yo(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):xo(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),So(this,()=>{const r=zr(),o=Ci();null!==r?r.dirty||ki(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),Xi("focus"),Qi(()=>{n.removeAttribute("autocapitalize"),e&&e()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;null!==e&&e.blur();const t=us(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,vo("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}Vo.version="0.43.0+prod.esm";let qo=null;function Go(e){qo=e}let Yo=1;function Jo(e,t){const n=Xo(e,t);return void 0===n&&v(30,t),n}function Xo(e,t){return e._nodes.get(t)}const Qo="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function Zo(e){return Ao(xi(e))}function ei(e){const t=document.activeElement;if(!fs(t))return!1;const n=t.nodeName;return Ao(xi(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==oi(t))}function ti(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!ei(t)&&ri(t)===e}catch(e){return!1}}function ni(e){return e instanceof Vo}function ri(e){let t=e;for(;null!=t;){const e=oi(t);if(ni(e))return e;t=Yi(t)}return null}function oi(e){return e?e.__lexicalEditor:null}function ii(e){return W.test(e)?"rtl":V.test(e)?"ltr":null}function si(e){return yr(e)||e.isToken()}function li(e){return si(e)||e.isSegmented()}function ai(e){return ps(e)&&3===e.nodeType}function ci(e){return ps(e)&&9===e.nodeType}function ui(e){let t=e;for(;null!=t;){if(ai(t))return t;t=t.firstChild}return null}function di(e,t,n){const r=q[t];if(null!==n&&(e&r)===(n&r))return e;let o=e^r;return"subscript"===t?o&=~q.superscript:"superscript"===t?o&=~q.subscript:"lowercase"===t?(o&=~q.uppercase,o&=~q.capitalize):"uppercase"===t?(o&=~q.lowercase,o&=~q.capitalize):"capitalize"===t&&(o&=~q.lowercase,o&=~q.uppercase),o}function fi(e){return pr(e)||Yn(e)||Ao(e)}function pi(e,t){const n=function(){const e=qo;return qo=null,e}();if(null!=(t=t||n&&n.__key))return void(e.__key=t);io(),so();const r=ao(),o=lo(),i=""+Yo++;o._nodeMap.set(i,e),ko(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function hi(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=null!==i?i.__key:null,l=null!==o?o.__key:null,a=null!==o?o.getWritable():null,c=null!==i?i.getWritable():null;null===o&&(r.__first=s),null===i&&(r.__last=l),null!==a&&(a.__next=s),null!==c&&(c.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function gi(e){so(),Fn(e)&&v(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=lo(),o=ao(),i=r._nodeMap,s=o._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;const e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,i,s);const l=t.__key;o._dirtyType=1,ko(e)?s.set(l,!0):o._dirtyLeaves.add(l)}function mi(e){io();const t=ao(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=vi(n);null!==e&&e.getWritable()}if(null!==e){const t=vi(e);null!==t&&t.getWritable()}}}function yi(){return oo()?null:ao()._compositionKey}function vi(e,t){const n=(t||lo())._nodeMap.get(e);return void 0===n?null:n}function bi(e,t){const n=wi(e,ao());return void 0!==n?vi(n,t):null}function wi(e,t){return e[`__lexicalKey_${t._key}`]}function xi(e,t){let n=e;for(;null!=n;){const e=bi(n,t);if(null!==e)return e;n=Yi(n)}return null}function Si(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function _i(e){return e.read(()=>Ci().getTextContent())}function Ci(){return Ei(lo())}function Ei(e){return e._nodeMap.get("root")}function ki(e){io();const t=lo();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Ti(e){const t=ao(),n=function(e,t){let n=e;for(;null!=n;){const e=wi(n,t);if(void 0!==e)return e;n=Yi(n)}return null}(e,t);return null===n?e===t.getRootElement()?vi("root"):null:vi(n)}function Ni(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Ai(e){const t=[];for(let n=e;null!==n;n=n._parentEditor)t.push(n);return t}function Ri(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Pi(e){return ai(e)?e.nodeValue:null}function Li(e,t,n){const r=us(ts(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(null!==o){let t=Pi(o);const r=xi(o);if(null!==t&&pr(r)){if((t===z||t===U)&&n){const e=n.length;t=n,i=e,s=e}null!==t&&Oi(r,t,i,s,e)}}}function Oi(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let l=t;if((s||o)&&(t.endsWith(z)&&(l=t.slice(0,-z.length)),o)){const e=U;let t;for(;-1!==(t=l.indexOf(e));)l=l.slice(0,t)+l.slice(t+e.length),null!==n&&n>t&&(n=Math.max(t,n-e.length)),null!==r&&r>t&&(r=Math.max(t,r-e.length))}const a=i.getTextContent();if(o||l!==a){if(""===l){if(mi(null),T||E||R)i.remove();else{const e=ao();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=Br(),a=i.getTextContentSize(),c=yi(),u=i.getKey();if(i.isToken()||null!==c&&u===c&&!s||_r(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!s||o.focus.key===e.__key&&o.focus.offset===a&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const d=zr();if(!_r(d)||null===n||null===r)return void Mi(i,l,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=fr(i.getTextContent());i.replace(e),i=e}Mi(i,l,d)}}}function Mi(e,t,n){if(e.setTextContent(t),_r(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=Vs(e,o.offset,"clamp"))}}}function Fi(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function Di(e,t,n){if(!function(e,t){return Fi(e,t,"altKey")&&Fi(e,t,"ctrlKey")&&Fi(e,t,"shiftKey")&&Fi(e,t,"metaKey")}(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1)return!1;if(1===e.key.length&&e.key.charCodeAt(0)<=127)return!1;const r="Key"+t.toUpperCase();return e.code===r}const Ii={ctrlKey:!S,metaKey:S},$i={altKey:S,ctrlKey:!S};function ji(e){return"Backspace"===e.key}function zi(e){return Di(e,"a",Ii)}function Bi(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;const o=e[t];if("string"==typeof o){const e=El(o);return n[t]=e,e}return o}function Ui(e,t,n,r,o){if(0===n.size)return;const i=r.__type,s=r.__key,l=t.get(i);void 0===l&&v(33,i);const a=l.klass;let c=e.get(a);void 0===c&&(c=new Map,e.set(a,c));const u=c.get(s),d="destroyed"===u&&"created"===o;(void 0===u||d)&&c.set(s,d?"updated":o)}function Hi(e){const t=e.getType(),n=lo();if(n._readOnly){const e=xs(n).get(t);return e?Array.from(e.values()):[]}const r=n._nodeMap,o=[];for(const[,n]of r)n instanceof e&&n.__type===t&&n.isAttached()&&o.push(n);return o}function Ki(e,t,n){const r=e.getParent();let o=n,i=e;return null!==r&&(t&&0===n?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function Wi(e,t){const n=e.offset;if("element"===e.type)return Ki(e.getNode(),t,n);{const r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){const e=t?r.getPreviousSibling():r.getNextSibling();return null===e?Ki(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function Vi(e){const t=ts(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function qi(e,t,n){return bo(e,t,n,e)}function Gi(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&v(75,t),n}function Yi(e){const t=e.assignedSlot||e.parentElement;return hs(t)?t.host:t}function Ji(e){return ci(e)?e:fs(e)?e.ownerDocument:null}function Xi(e){io(),ao()._updateTags.add(e)}function Qi(e){io(),ao()._deferred.push(e)}function Zi(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function es(e){const t=Ji(e);return t?t.defaultView:null}function ts(e){const t=e._window;return null===t&&v(78),t}function ns(e){return ko(e)&&e.isInline()||Ao(e)&&e.isInline()}function rs(e){return Po(e)||ko(e)&&e.isShadowRoot()}function os(e,t=!1){const n=e.constructor.clone(e);return pi(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function is(e){const t=ao(),n=e.getType(),r=Xo(t,n);void 0===r&&v(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||v(201,i.name,i.getType(),r.name,r.getType(),e.constructor.name,n):t instanceof e.constructor&&r!==e.constructor||v(202,r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&v(203,e.constructor.name,n,r.name,r.getType()),t}return e}function ss(e,t){!Po(e.getParent())||ko(t)||Ao(t)||v(99)}function ls(e){const t=vi(e);return null===t&&v(63,e),t}function as(e){return(Ao(e)||ko(e)&&!e.canBeEmpty())&&!e.isInline()}function cs(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function us(e){return w?(e||window).getSelection():null}function ds(e){return fs(e)&&"A"===e.tagName}function fs(e){return ps(e)&&1===e.nodeType}function ps(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function hs(e){return ps(e)&&11===e.nodeType}function gs(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function ms(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function ys(e){if(Ao(e)&&!e.isInline())return!0;if(!ko(e)||rs(e))return!1;const t=e.getFirstChild(),n=null===t||Yn(t)||pr(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function vs(){return ao()}const bs=new WeakMap,ws=new Map;function xs(e){if(!e._readOnly&&e.isEmpty())return ws;e._readOnly||v(192);let t=bs.get(e);return t||(t=function(e){const t=new Map;for(const[n,r]of e._nodeMap){const e=r.__type;let o=t.get(e);o||(o=new Map,t.set(e,o)),o.set(n,r)}return t}(e),bs.set(e,t)),t}function Ss(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function _s(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Cs(e){e.__lexicalUnmanaged=!0}function Es(e){return!0===e.__lexicalUnmanaged}function ks(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==Dn[t]}function Ts(e){const t=Z in e.prototype?e.prototype[Z]():void 0,n=function(e){if(!(e===Dn||e.prototype instanceof Dn)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{Vo.version&&(n=JSON.parse(Vo.version))}catch(e){}v(290,e.name,t,n)}return e===No||e===Eo||e===Dn}(e),r=!n&&ks(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[e,n]of Object.entries(t))i=e,o=n;if(!n&&i&&(ks(e,"getType")||(e.getType=()=>i),ks(e,"clone")||(e.clone=t=>(Go(t),new e)),ks(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!ks(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}function Ns(e){const t=vs();return io(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e)).klass)}const As=(e,t)=>{let n=e;for(;null!=n&&!Po(n);){if(t(n))return n;n=n.getParent()}return null},Rs={next:"previous",previous:"next"};class Ps{origin;constructor(e){this.origin=e}[Symbol.iterator](){return nl({hasNext:js,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Ks(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Ks(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){const r=n===this.direction?t:Array.from(t).reverse();let o=this;const i=this.getParentAtCaret(),s=new Map;for(let t=o.getAdjacentCaret();null!==t&&s.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();s.set(e.getKey(),e)}for(const e of r){if(s.size>0){const t=o.getNodeAtCaret();if(t)if(s.delete(t.getKey()),s.delete(e.getKey()),t.is(e)||o.origin.is(e));else{const n=e.getParent();n&&n.is(i)&&e.remove(),t.replace(e)}else null===t&&v(263,Array.from(s).join(" "))}else o.insert(e);o=Ks(e,this.direction)}for(const e of s.values())e.remove();return this}}class Ls extends Ps{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Gs(e,this.direction)}getParentCaret(e="root"){return Ks(Fs(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Ms(this.direction);return Ks(this.getNodeAtCaret(),e)||Gs(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Ls&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const Os={root:Po,shadowRoot:rs};function Ms(e){return Rs[e]}function Fs(e,t="root"){return Os[t](e)?null:e}class Ds extends Ps{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Ks(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return ko(this.origin)?Gs(this.origin,this.direction):null}getParentCaret(e="root"){return Ks(Fs(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Ms(this.direction);return Ks(this.getNodeAtCaret(),e)||Gs(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof Ds&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof Ds||e instanceof Is)&&this.direction===e.direction&&this.origin.is(e.origin)}}class Is extends Ps{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Ws(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return Ks(Fs(this.getParentAtCaret(),e),this.direction)}getFlipped(){return Ws(this.origin,Ms(this.direction),this.offset)}isSamePointCaret(e){return e instanceof Is&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof Ds||e instanceof Is)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return Ks(this.origin,this.direction)}}function $s(e){return e instanceof Is}function js(e){return e instanceof Ds}function zs(e){return e instanceof Ls}const Bs={next:class extends Is{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Is{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Us={next:class extends Ds{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Ds{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Hs={next:class extends Ls{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ls{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Ks(e,t){return e?new Us[t](e):null}function Ws(e,t,n){return e?new Bs[t](e,Vs(e,n)):null}function Vs(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&b(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function qs(e,t){return new Qs(e,t)}function Gs(e,t){return ko(e)?new Hs[t](e):null}function Ys(e){return e&&e.getChildCaret()||e}function Js(e){return e&&Ys(e.getAdjacentCaret())}class Xs{type="node-caret-range";direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new Xs(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return $s(t)?function(e,t){const{direction:n,origin:r}=e;return qs(e,Vs(r,"focus"===t?Ms(n):n)-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){const{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[qs(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=$s(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=$s(n),o=t=>t.isSameNodeCaret(n)?null:Js(t)||t.getParentCaret(e);return nl({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:o(t),map:e=>e,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Qs{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),o=e.getTextContent();return Ws(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function Zs(e){return tl(e,Ks(Ci(),e.direction))}function el(e){return tl(e,e)}function tl(e,t){return e.direction!==t.direction&&v(265),new Xs(e,t,e.direction)}function nl(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const e={done:!1,value:o(i)};return i=r(i),e}}}function rl(e,t){const n=ll(e.origin,t.origin);switch(null===n&&v(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{const n="text"===e.type,r="text"===t.type;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return ol(n)}}function ol(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return null===i?1:-1}function il(e,t){return t.is(e)}function sl(e){return ko(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function ll(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=sl(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=sl(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(il(e,r)||v(276),{commonAncestor:r,type:"ancestor"}):null===o?(il(t,r)||v(277),{commonAncestor:r,type:"descendant"}):((ko(i)||il(e,i))&&(ko(o)||il(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||v(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function al(e,t){const{type:n,key:r,offset:o}=e,i=ls(e.key);return"text"===n?(pr(i)||v(266,i.getType(),r),Ws(i,t,o)):(ko(i)||v(267,i.getType(),r),function(e,t,n){let r=Gs(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return vl(r,n)}(i,e.offset,t))}function cl(e,t){const{origin:n,direction:r}=t,o="next"===r;$s(t)?e.set(n.getKey(),t.offset,"text"):js(t)?pr(n)?e.set(n.getKey(),Vs(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(zs(t)&&ko(n)||v(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function ul(e){const t=zr(),n=_r(t)?t:Ir();return dl(n,e),ki(n),n}function dl(e,t){cl(e.anchor,t.anchor),cl(e.focus,t.focus)}function fl(e){const{anchor:t,focus:n}=e,r=al(t,"next"),o=al(n,"next"),i=rl(r,o)<=0?"next":"previous";return tl(vl(r,i),vl(o,i))}function pl(e){const{direction:t,origin:n}=e,r=Ks(n,Ms(t)).getNodeAtCaret();return r?Ks(r,t):Gs(n.getParentOrThrow(),t)}function hl(e,t="root"){const n=[e];for(let r=zs(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(pl(r));return n}function gl(e){return!!e&&e.origin.isAttached()}function ml(e){const t=function(e){let t=e;for(;zs(t);){const e=Js(t);if(!zs(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(pr(t.origin))return $s(t)?t:Ws(t.origin,n,n);const r=t.getAdjacentCaret();return js(r)&&pr(r.origin)?Ws(r.origin,n,Ms(n)):t}function yl(e){return $s(e)&&e.offset!==Vs(e.origin,e.direction)}function vl(e,t){return e.direction===t?e:e.getFlipped()}function bl(e,t){return e.direction===t?e:tl(vl(e.focus,t),vl(e.anchor,t))}function wl(e,t="root"){let n=0,r=e,o=Js(r);for(;null===o;){if(n--,o=r.getParentCaret(t),!o)return null;r=o,o=Js(r)}return o&&[o,n]}function xl(e){const{origin:t,offset:n,direction:r}=e;if(n===Vs(t,r))return e.getSiblingCaret();if(n===Vs(t,Ms(r)))return pl(e.getSiblingCaret());const[o]=t.splitText(n);return pr(o)||v(281),vl(Ks(o,"next"),r)}function Sl(e,t){return!0}function _l(e,{$copyElementNode:t=os,$splitTextPointCaretNext:n=xl,rootMode:r="shadowRoot",$shouldSplit:o=Sl}={}){if($s(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(zs(e)&&(!n.canBeEmpty()||!o(n,"first")))return pl(i);const r=function(e){const t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&o(n,"last"))&&i.insert(t(n).splice(0,0,r))}return i}function Cl(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function El(...e){const t=[];for(const n of e)if(n&&"string"==typeof n)for(const[e]of n.matchAll(/\S+/g))t.push(e);return t}function kl(e,...t){const n=El(...t);n.length>0&&e.classList.add(...n)}function Tl(e,...t){const n=El(...t);n.length>0&&e.classList.remove(...n)}function Nl(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}const Al=new Map;function Rl(e){const t={};if(!e)return t;const n=e.split(";");for(const e of n)if(""!==e){const[n,r]=e.split(/:([^]+)/);n&&r&&(t[n.trim()]=r.trim())}return t}function Pl(e){let t=Al.get(e);return void 0===t&&(t=Rl(e),Al.set(e,t)),t}function Ll(e){const t=vs().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function Ol(e){return Ll(Po(e)?e:e.getParentOrThrow())}function Ml(e){const t=Ol(e);return null!==t&&"rtl"===t.direction}function Fl(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!li(t)&&null!==r){const[o,i]=r,s=e.isBackward(),l=o.getNode(),a=i.getNode(),c=t.is(l),u=t.is(a);if(c||u){const[r,o]=Tr(e),i=l.is(a),c=t.is(s?a:l),u=t.is(s?l:a);let d,f=0;i?(f=r>o?o:r,d=r>o?r:o):c?(f=s?o:r,d=void 0):u&&(f=0,d=s?r:o);const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=function(e){return(t=Ss(e))[Mn]=!0,t;var t}(t)),t.__text=p)}}return t}function Dl(e){const t=e.getStyle(),n=Rl(t);Al.set(t,n)}function Il(e){const t=$l(e);return null!==t&&"vertical-rl"===t.writingMode}function $l(e){const t=e.anchor.getNode();return ko(t)?Ll(t):Ol(t)}function jl(e,t){let n=Il(e)?!t:t;zl(e)&&(n=!n);const r=al(e.focus,n?"previous":"next");if(yl(r))return!1;for(const e of Zs(r)){if(zs(e))return!e.origin.isInline();if(!ko(e.origin)){if(Ao(e.origin))return!0;break}}return!1}function zl(e){const t=$l(e);return null!==t&&"rtl"===t.direction}function Bl(e,t,n){const r=zl(e);let o;o=Il(e)||r?!n:n,function(e,t,n){e.modify(t?"extend":"move",n,"character")}(e,t,o)}function Ul(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Hl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Kl=Hl&&"documentMode"in document?document.documentMode:null,Wl=(Hl&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Hl&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent));!(!Hl||!("InputEvent"in window)||Kl)&&new window.InputEvent("input"),Hl&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,Hl&&/Android/.test(navigator.userAgent),Hl&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Hl&&/^(?=.*Chrome).*/i.test(navigator.userAgent);function Vl(e,t){return Array.from(function(e,t){return function(e,t,n){const r=Ci(),o=t||r,i=ko(o)?Gs(o,e):Ks(o,e),s=function(e){let t=-1;for(let n=e;null!==n;n=n.getParent())t++;return t}(o),l=n?Js(Ys(Ks(n,e)))||ql(n,e):ql(o,e);let a=s;return nl({hasNext:e=>null!==e,initial:i,map:e=>({depth:a,node:e.origin}),step:e=>{if(e.isSameNodeCaret(l))return null;zs(e)&&a++;const t=wl(e);return!t||t[0].isSameNodeCaret(l)?null:(a+=t[1],t[0])}})}("next",e,t)}(e,t))}function ql(e,t){const n=wl(Ks(e,t));return n&&n[0]}function Gl(e){const t=wl(Ys(Ks(e,"previous")),"root");return t&&t[0].origin}function Yl(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function Jl(e){const t=zr()||Br();let n;if(_r(t))n=al(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=Ks(r,"next"))}n=n||Gs(Ci(),"previous").getFlipped().insert(jo())}const r=Xl(e,n),o=Js(r);return ul(el(zs(o)?ml(o):r)),e.getLatest()}function Xl(e,t,n){let r=vl(t,"next");for(let e=r;e;e=_l(e,n))r=e;return $s(r)&&Ul(283),r.insert(e.isInline()?jo().append(e):e),vl(Ks(e.getLatest(),"next"),t.direction)}function Ql(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function Zl(e){const t=zr();if(!_r(t))return!1;const n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){const o=r[t],i=o.getKey();if(n.has(i))continue;const s=As(o,e=>ko(e)&&!e.isInline());if(null===s)continue;const l=s.getKey();s.canIndent()&&!n.has(l)&&(n.add(l),e(s))}return n.size>0}function ea(e,t){Gs(e,"next").insert(t)}Hl&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);let ta=!(Wl||!Hl)&&void 0;function na(e,t=!1){let n=1;if(function(){if(void 0===ta){const e=document.createElement("div");e.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(e);const t=e.getBoundingClientRect();e.style.setProperty("zoom","2"),ta=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return ta}()||t)for(;e;)n*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return n}function ra(e,t){return oa(e,t,null)}function oa(e,t,n){let r=!1;for(const o of sa(e))t(o)?null!==n&&n(o):(r=!0,ko(o)&&oa(o,t,n||(e=>o.insertAfter(e))),o.remove());return r}function ia(e,t){const n=[],r=Array.from(e).reverse();for(let e=r.pop();void 0!==e;e=r.pop())if(t(e))n.push(e);else if(ko(e))for(const t of sa(e))r.push(t);return n}function sa(e){return function(e){return nl({hasNext:js,initial:e.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}(Gs(e,"previous"))}const la=Symbol.for("preact-signals");function aa(){if(pa>1)return void pa--;let e,t=!1;for(function(){let e=fa;for(fa=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==ua;){let n=ua;for(ua=void 0,ha++;void 0!==n;){const r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&ba(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(ha=0,pa--,t)throw e}let ca,ua;function da(e){const t=ca;ca=void 0;try{return e()}finally{ca=t}}let fa,pa=0,ha=0,ga=0;function ma(e){if(void 0===ca)return;let t=e.n;return void 0===t||t.t!==ca?(t={i:0,S:e,p:ca.s,n:void 0,t:ca,e:void 0,x:void 0,r:t},void 0!==ca.s&&(ca.s.n=t),ca.s=t,e.n=t,32&ca.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=ca.s,t.n=void 0,ca.s.n=t,ca.s=t),t):void 0}function ya(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function va(e,t){return new ya(e,t)}function ba(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function wa(e){for(let t=e.s;void 0!==t;t=t.n){const n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function xa(e){let t,n=e.s;for(;void 0!==n;){const e=n.p;-1===n.i?(n.S.U(n),void 0!==e&&(e.n=n.n),void 0!==n.n&&(n.n.p=e)):t=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=e}e.s=t}function Sa(e,t){ya.call(this,void 0),this.x=e,this.s=void 0,this.g=ga-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function _a(e){const t=e.m;if(e.m=void 0,"function"==typeof t){pa++;const n=ca;ca=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Ca(e),t}finally{ca=n,aa()}}}function Ca(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,_a(e)}function Ea(e){if(ca!==this)throw new Error("Out-of-order effect");xa(this),ca=e,this.f&=-2,8&this.f&&Ca(this),aa()}function ka(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function Ta(e,t){const n=new ka(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Na(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function Aa(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Ra(e,t){if(e&&t&&!Array.isArray(t)&&"object"==typeof e&&"object"==typeof t){const n=e,r=t;for(const e in r)n[e]=Ra(n[e],r[e]);return e}return t}function Pa(e){return 0===e.id}function La(e){return 2===e.id}ya.prototype.brand=la,ya.prototype.h=function(){return!0},ya.prototype.S=function(e){const t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:da(()=>{var e;null==(e=this.W)||e.call(this)}))},ya.prototype.U=function(e){if(void 0!==this.t){const t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&da(()=>{var e;null==(e=this.Z)||e.call(this)}))}},ya.prototype.subscribe=function(e){return Ta(()=>{const t=this.value,n=ca;ca=void 0;try{e(t)}finally{ca=n}},{name:"sub"})},ya.prototype.valueOf=function(){return this.value},ya.prototype.toString=function(){return this.value+""},ya.prototype.toJSON=function(){return this.value},ya.prototype.peek=function(){const e=ca;ca=void 0;try{return this.value}finally{ca=e}},Object.defineProperty(ya.prototype,"value",{get(){const e=ma(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(ha>100)throw new Error("Cycle detected");!function(e){0!==pa&&0===ha&&0!==e.l&&(e.l=0,fa={S:e,v:e.v,i:e.i,o:fa})}(this),this.v=e,this.i++,ga++,pa++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{aa()}}}}),Sa.prototype=new ya,Sa.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===ga)return!0;if(this.g=ga,this.f|=1,this.i>0&&!ba(this))return this.f&=-2,!0;const e=ca;try{wa(this),ca=this;const e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return ca=e,xa(this),this.f&=-2,!0},Sa.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}ya.prototype.S.call(this,e)},Sa.prototype.U=function(e){if(void 0!==this.t&&(ya.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Sa.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Sa.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=ma(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),ka.prototype.c=function(){const e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const e=this.x();"function"==typeof e&&(this.m=e)}finally{e()}},ka.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,_a(this),wa(this),pa++;const e=ca;return ca=this,Ea.bind(this,e)},ka.prototype.N=function(){2&this.f||(this.f|=2,this.u=ua,ua=this)},ka.prototype.d=function(){this.f|=8,1&this.f||Ca(this)},ka.prototype.dispose=function(){this.d()},fe("format",{parse:e=>"number"==typeof e?e:0});const Oa=new Set;class Ma{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):Cl;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;La(t)||Aa(306,String(t.id));const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=function(e,t,n){return Object.assign(e,{config:t,id:3,registerState:n})}(t,this.mergeConfigs(),n);let i;this.state=o,this.extension.init&&(i=this.extension.init(e,o.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:4,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;4!==t.id&&Aa(307,String(t.id),String(5)),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));const r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:5,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;5!==n.id&&Aa(308,String(n.id),String(5));const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:6})}(n),()=>{const e=this.state;7!==e.id&&Aa(309,String(n.id),String(7)),this.state=function(e){return Object.assign(e,{id:5})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return 6!==t.id&&Aa(310,String(t.id),String(6)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:7})}(t),n}getSignal(){return void 0===this._signal&&Aa(311),this._signal}getInitResult(){void 0===this.extension.init&&Aa(312,this.extension.name);const e=this.state;return function(e){return e.id>=4}(e)||Aa(313,String(e.id),String(4)),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(e){return e.id>=3}(e)||Aa(314,String(e.id),String(3)),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Aa(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Aa(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=7}(e)||Aa(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||Oa}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){const e=this.state;(function(e){return e.id>=5})(e)||Aa(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}const Fa={tag:$n};function Da(){const e=Ci();e.isEmpty()&&e.append(jo())}const Ia={config:{setOptions:Fa,updateOptions:Fa},init:({$initialEditorState:e=Da})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:r}=o;if(function(e){return e instanceof Fo}(r))e.setEditorState(r,n);else if("function"==typeof r)e.update(()=>{r(e)},t);else if(r&&("string"==typeof r||"object"==typeof r)){const t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Ro,rr,Vn,gr,Io]},$a=Symbol.for("@lexical/extension/LexicalBuilder");function ja(){}function za(e){throw e}function Ba(e){return Array.isArray(e)?e:[e]}const Ua="0.43.0+prod.esm";class Ha{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=Ua,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[Ba(Ia)];for(const n of e)t.push(Ba(n));return new Ha(t)}static maybeFromEditor(e){const t=e[$a];return t&&(t.PACKAGE_VERSION!==Ua&&Aa(292,t.PACKAGE_VERSION,Ua),t instanceof Ha||Aa(293)),t}static fromEditor(e){const t=Ha.maybeFromEditor(e);return void 0===t&&Aa(294),t}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(Ho({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[$a]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=ja;function t(){try{e()}finally{e=ja}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Nl(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){const t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&Aa(295,e.name),t}addEdge(e,t,n){const r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));const o=this.incomingEdges.get(t);o?o.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&Aa(296);const t=Ba(e),[n]=t;"string"!=typeof n.name&&Aa(297,typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&Aa(298,n.name),!r){r=new Ma(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&Aa(299,n.name,e);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&Aa(299,n.name,e),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=Ba(e);this.addEdge(n.name,t[0].name,t.slice(1)),this.addExtension(t)}for(const[e,t]of n.peerDependencies||[])this.addEdge(n.name,e,t?[t]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const e=[],t=(n,r)=>{let o=n.state;if(La(o))return;const i=n.extension.name;var s;Pa(o)||Aa(300,i,r||"[unknown]"),Pa(s=o)||Aa(304,String(s.id),String(0)),o=Object.assign(s,{id:1}),n.state=o;const l=this.outgoingConfigEdges.get(i);if(l)for(const e of l.keys()){const n=this.extensionNameMap.get(e);n&&t(n,i)}o=function(e){return function(e){return 1===e.id}(e)||Aa(305,String(e.id),String(1)),Object.assign(e,{id:2})}(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())Pa(e.state)&&t(e);for(const t of e)for(const[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){const t=this.extensionNameMap.get(e);if(t)for(const e of n)t.configs.add(e)}for(const[e,...t]of this.roots)if(t.length>0){const n=this.extensionNameMap.get(e.name);void 0===n&&Aa(301,e.name);for(const e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],o=n.signal;for(const n of t){const t=n.register(e,o);t&&r.push(t)}for(const n of t){const t=n.afterRegistration(e);t&&r.push(t)}return Nl(...r)}buildCreateEditorArgs(){const e={},t=new Set,n=new Map,r=new Map,o={},i={},s=this.sortedExtensionReps();for(const l of s){const{extension:s}=l;if(void 0!==s.onError&&(e.onError=s.onError),void 0!==s.disableEvents&&(e.disableEvents=s.disableEvents),void 0!==s.parentEditor&&(e.parentEditor=s.parentEditor),void 0!==s.editable&&(e.editable=s.editable),void 0!==s.namespace&&(e.namespace=s.namespace),void 0!==s.$initialEditorState&&(e.$initialEditorState=s.$initialEditorState),s.nodes)for(const e of Na(s)){if("function"!=typeof e){const t=n.get(e.replace);t&&Aa(302,s.name,e.replace.name,t.extension.name),n.set(e.replace,l)}t.add(e)}if(s.html){if(s.html.export)for(const[e,t]of s.html.export.entries())r.set(e,t);s.html.import&&Object.assign(o,s.html.import)}s.theme&&Ra(i,s.theme)}Object.keys(i).length>0&&(e.theme=i),t.size&&(e.nodes=[...t]);const l=Object.keys(o).length>0,a=r.size>0;(l||a)&&(e.html={},l&&(e.html.import=o),a&&(e.html.export=r));for(const t of s)t.init(e);return e.onError||(e.onError=za),e}}new Set;const Ka=lt("INSERT_HORIZONTAL_RULE_COMMAND");class Wa extends No{static getType(){return"horizontalrule"}static clone(e){return new Wa(e.__key)}static importJSON(e){return qa().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:Va,priority:0})}}exportDOM(){return{element:document.createElement("hr")}}createDOM(e){const t=document.createElement("hr");return kl(t,e.theme.hr),t}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}}function Va(){return{node:qa()}}function qa(){return Ns(Wa)}const Ga="@lexical/react/ReactProvider";var Ya=o(5219);function Ja(e){return()=>function(e){if(!function(e,t=!0){if(e)return!1;let n=Ci().getTextContent();return t&&(n=n.trim()),""===n}(e,!1))return!1;const t=Ci().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Ao(n))return!1;if(ko(n)){if(!zo(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!pr(t[e]))return!1}}return!0}(e)}function Xa(e,t){const n=ci(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!ec.has(t.nodeName)){const n=tc(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof Do&&t.insertAfter(Gn());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}function Qa(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===o.g.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=Ci().getChildren();for(let o=0;o<r.length;o++)Za(e,r[o],n,t);return n.innerHTML}function Za(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=ko(t)&&t.excludeFromCopy("html");let s=t;null!==r&&pr(t)&&(s=Fl(r,t,"clone"));const l=ko(s)?s.getChildren():[],a=Xo(e,s.getType());let c;c=a&&void 0!==a.exportDOM?a.exportDOM(e,s):s.exportDOM(e);const{element:u,after:d}=c;if(!u)return!1;const f=document.createDocumentFragment();for(let n=0;n<l.length;n++){const i=l[n],s=Za(e,i,f,r);!o&&ko(t)&&s&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((fs(u)||hs(u))&&u.append(f),n.append(u),d){const e=d.call(s,u);e&&(hs(u)?u.replaceChildren(e):u.replaceWith(e))}}else n.append(f);return o}const ec=new Set(["STYLE","SCRIPT"]);function tc(e,t,n,r,o=new Map,i){let s=[];if(ec.has(e.nodeName))return s;let l=null;const a=function(e,t){const{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase());let o=null;if(void 0!==r)for(const t of r){const n=t(e);null!==n&&(null===o||(o.priority||0)<=(n.priority||0))&&(o=n)}return null!==o?o.conversion:null}(e,t),c=a?a(e):null;let u=null;if(null!==c){u=c.after;const t=c.node;if(l=Array.isArray(t)?t[t.length-1]:t,null!==l){for(const[,e]of o)if(l=e(l,i),!l)break;l&&s.push(...Array.isArray(t)?t:[l])}null!=c.forChild&&o.set(e.nodeName,c.forChild)}const d=e.childNodes;let f=[];const p=(null==l||!rs(l))&&(null!=l&&Fr(l)||r);for(let e=0;e<d.length;e++)f.push(...tc(d[e],t,n,p,new Map(o),l));return null!=u&&(f=u(f)),ms(e)&&(f=function(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const s=t[e];if(Fr(s))r&&!s.getFormat()&&s.setFormat(r),o.push(s);else if(i.push(s),e===t.length-1||e<t.length-1&&Fr(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}(e,f,p?()=>{const e=new Do;return n.push(e),e}:jo)),null==l?f.length>0?s=s.concat(f):ms(e)&&function(e){return null!=e.nextSibling&&null!=e.previousSibling&&gs(e.nextSibling)&&gs(e.previousSibling)}(e)&&(s=s.concat(Gn())):ko(l)&&l.append(...f),s}function nc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function rc(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return oc(n,function(e){const t=[];for(let n=0;n<e.length;n++){const r=ho(e[n]);pr(r)&&Dl(r),t.push(r)}return t}(e.nodes),t)}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{return oc(n,Xa(n,(new DOMParser).parseFromString(function(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e):e}(o),"text/html")),t)}catch(e){console.error(e)}const s=i||e.getData("text/uri-list");if(null!=s)if(_r(t)){const e=s.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=zr();if(_r(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([mr()]):n.insertText(r)}}}else t.insertRawText(s)}function oc(e,t,n){e.dispatchCommand(ct,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(_r(e)&&e.isCollapsed()){let t=null;const n=al(e.anchor,"previous");if(n)if($s(n))t=n.origin;else{const e=tl(n,Gs(Ci(),"next").getFlipped());for(const n of e){if(pr(n.origin)){t=n.origin;break}if(ko(n.origin)&&!n.origin.isInline())break}}if(t&&pr(t)){const n=t.getFormat(),r=t.getStyle();e.format===n&&e.style===r||(e.format=n,e.style=r,e.dirty=!0)}}}(n))}function ic(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=ko(n)&&n.excludeFromCopy("html");let s=n;null!==t&&pr(s)&&(s=Fl(t,s,"clone"));const l=ko(s)?s.getChildren():[],a=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&nc(58,n.name),ko(e)){const e=t.children;Array.isArray(e)||nc(59,n.name)}return t}(s);pr(s)&&0===s.getTextContentSize()&&(o=!1);for(let r=0;r<l.length;r++){const i=l[r],s=ic(e,t,i,a.children);!o&&ko(n)&&s&&n.extractWithChild(i,t,"clone")&&(o=!0)}if(o&&!i)r.push(a);else if(Array.isArray(a.children))for(let e=0;e<a.children.length;e++){const t=a.children[e];r.push(t)}return o}let sc=null;async function lc(e,t,n){if(null!==sc)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(ac(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=us(o);if(null===r||null===s)return!1;const l=i.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(i.createTextNode("#")),r.append(l);const a=new Range;return a.setStart(l,0),a.setEnd(l,1),s.removeAllRanges(),s.addRange(a),new Promise((t,r)=>{const s=e.registerCommand(qt,r=>(Ql(r,ClipboardEvent)&&(s(),null!==sc&&(o.clearTimeout(sc),sc=null),t(ac(e,r,n))),!0),4);sc=o.setTimeout(()=>{s(),sc=null,t(!1)},50),i.execCommand("copy"),l.remove()})}function ac(e,t,n){if(void 0===n){const t=us(e._window),r=zr();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!ti(e,o,i))return!1;n=uc(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(dc(r,n),!0)}const cc=[["text/html",function(e,t=zr()){return null==t&&nc(166),_r(t)&&t.isCollapsed()||0===t.getNodes().length?"":Qa(e,t)}],["application/x-lexical-editor",function(e,t=zr()){return null==t&&nc(166),_r(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Ci().getChildren();for(let o=0;o<r.length;o++)ic(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function uc(e=zr()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=vs();for(const[r,o]of cc){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function dc(e,t){for(const[n]of cc)void 0===t[n]&&e.setData(n,"");for(const n in t){const r=t[n];void 0!==r&&e.setData(n,r)}}function fc(e,t){if(void 0!==document.caretRangeFromPoint){const n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){const n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}const pc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,hc=pc&&"documentMode"in document?document.documentMode:null,gc=pc&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),mc=!(!pc||!("InputEvent"in window)||hc)&&"getTargetRanges"in new window.InputEvent("input"),yc=pc&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,vc=pc&&/Android/.test(navigator.userAgent),bc=pc&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!vc,wc=pc&&/^(?=.*Chrome).*/i.test(navigator.userAgent),xc=pc&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&gc&&!wc,Sc=lt("DRAG_DROP_PASTE_FILE");class _c extends Eo{static getType(){return"quote"}static clone(e){return new _c(e.__key)}createDOM(e){const t=document.createElement("blockquote");return kl(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:Ac,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fs(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return Cc().updateFromJSON(e)}insertNewAfter(e,t){const n=jo(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=jo();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function Cc(){return is(new _c)}function Ec(e){return e instanceof _c}class kc extends Eo{__tag;static getType(){return"heading"}static clone(e){return new kc(e.__tag,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__tag=e.__tag}constructor(e="h1",t){super(t),this.__tag=e}getTag(){return this.getLatest().__tag}setTag(e){const t=this.getWritable();return t.__tag=e,t}createDOM(e){const t=this.__tag,n=document.createElement(t),r=e.theme.heading;return void 0!==r&&kl(n,r[t]),n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Nc,priority:0}),h2:e=>({conversion:Nc,priority:0}),h3:e=>({conversion:Nc,priority:0}),h4:e=>({conversion:Nc,priority:0}),h5:e=>({conversion:Nc,priority:0}),h6:e=>({conversion:Nc,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&Tc(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>Tc(e)?{conversion:e=>({node:Rc("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fs(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return Rc(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){const n=e?e.anchor.offset:0,r=this.getLastDescendant(),o=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?jo():Rc(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=jo();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?jo():Rc(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function Tc(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function Nc(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=Rc(t),null!==e.style&&(_s(e,n),n.setFormat(e.style.textAlign))),{node:n}}function Ac(e){const t=Cc();return null!==e.style&&(t.setFormat(e.style.textAlign),_s(e,t)),{node:t}}function Rc(e="h1"){return is(new kc(e))}function Pc(e){return e instanceof kc}function Lc(e){let t=null;if(Ql(e,DragEvent)?t=e.dataTransfer:Ql(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function Oc(e){return Ao(xi(e))}function Mc(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Fc(e){return Nl(e.registerCommand(ut,e=>{const t=zr();return!!Er(t)&&(t.clear(),!0)},0),e.registerCommand(gt,e=>{const t=zr();return _r(t)?(t.deleteCharacter(e),!0):!!Er(t)&&(t.deleteNodes(),!0)},0),e.registerCommand(xt,e=>{const t=zr();return!!_r(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(St,e=>{const t=zr();return!!_r(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(vt,t=>{const n=zr();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)rc(r,n,e);else if(_r(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(wt,()=>{const e=zr();return!!_r(e)&&(e.removeText(),!0)},0),e.registerCommand(_t,e=>{const t=zr();return!!_r(t)&&(t.formatText(e),!0)},0),e.registerCommand(Ht,e=>{const t=zr();if(!_r(t)&&!Er(t))return!1;const n=t.getNodes();for(const t of n){const n=As(t,e=>ko(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},0),e.registerCommand(mt,e=>{const t=zr();return!!_r(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand(yt,()=>{const e=zr();return!!_r(e)&&(e.insertParagraph(),!0)},0),e.registerCommand(jt,()=>{const e=mr(),t=zr();return _r(t)&&(e.setFormat(t.format),e.setStyle(t.style)),Gr([e]),!0},0),e.registerCommand(zt,()=>Zl(e=>{const t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand(Bt,()=>Zl(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand(Pt,e=>{const t=zr();if(Er(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(_r(t)){const n=Wi(t.focus,!0);if(!e.shiftKey&&Ao(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},0),e.registerCommand(Lt,e=>{const t=zr();if(Er(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(_r(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Ci().getChildrenSize()}(t))return e.preventDefault(),!0;const n=Wi(t.focus,!1);if(!e.shiftKey&&Ao(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},0),e.registerCommand(At,e=>{const t=zr();if(Er(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Ml(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!_r(t))return!1;if(jl(t,!0)){const n=e.shiftKey;return e.preventDefault(),Bl(t,n,!0),!0}return!1},0),e.registerCommand(Tt,e=>{const t=zr();if(Er(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Ml(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!_r(t))return!1;const n=e.shiftKey;return!!jl(t,!1)&&(e.preventDefault(),Bl(t,n,!1),!0)},0),e.registerCommand(Ft,t=>{if(Oc(t.target))return!1;const n=zr();if(_r(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(Po(n))return!1;const r=function(e){const t=As(e,e=>ko(e)&&!e.isInline());return ko(t)||Ul(4,e.__key),t}(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(Bt,void 0);if(yc&&"ko-KR"===navigator.language)return!1}else if(!Er(n))return!1;return t.preventDefault(),e.dispatchCommand(gt,!0)},0),e.registerCommand(It,t=>{if(Oc(t.target))return!1;const n=zr();return!(!_r(n)&&!Er(n))&&(t.preventDefault(),e.dispatchCommand(gt,!1))},0),e.registerCommand(Ot,t=>{const n=zr();if(!_r(n))return!1;if(Mc(n),null!==t){if((yc||bc||xc)&&mc)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(mt,!1)}return e.dispatchCommand(yt,void 0)},0),e.registerCommand(Dt,()=>!!_r(zr())&&(e.blur(),!0),0),e.registerCommand(Ut,t=>{const[,n]=Lc(t);if(n.length>0){const r=fc(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=xi(o);if(null!==i){const e=Ir();if(pr(i))e.anchor.set(i.getKey(),t,"text"),e.focus.set(i.getKey(),t,"text");else{const t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}ki(Te(e))}e.dispatchCommand(Sc,n)}return t.preventDefault(),!0}return!!_r(zr())},0),e.registerCommand(Kt,e=>{const[t]=Lc(e),n=zr();return!(t&&!_r(n))},0),e.registerCommand(Wt,e=>{const[t]=Lc(e),n=zr();if(t&&!_r(n))return!1;const r=fc(e.clientX,e.clientY);return null!==r&&Ao(xi(r.node))&&e.preventDefault(),!0},0),e.registerCommand(Yt,()=>(function(e){const t=Ci();if(_r(e)){const t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Te(e),e}ki(Te(t.select(0,t.getChildrenSize())))}(),!0),0),e.registerCommand(qt,t=>(lc(e,Ql(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(Gt,t=>(async function(e,t){await lc(t,Ql(e,ClipboardEvent)?e:null),t.update(()=>{const e=zr();_r(e)?e.removeText():Er(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),0),e.registerCommand(bt,t=>{const[,n,r]=Lc(t);return n.length>0&&!r?(e.dispatchCommand(Sc,n),!0):!(ps(t.target)&&ei(t.target)||null===zr()||(function(e,t){e.preventDefault(),t.update(()=>{const n=zr(),r=Ql(e,InputEvent)||Ql(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&rc(r,n,t)},{tag:jn})}(t,e),0))},0),e.registerCommand(Mt,e=>{const t=zr();return _r(t)&&Mc(t),!1},0),e.registerCommand($t,e=>{const t=zr();return _r(t)&&Mc(t),!1},0))}function Dc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ic="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function $c({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=(0,a.useState)(()=>e.getDecorators());return Ic(()=>e.registerDecoratorListener(e=>{(0,Ya.flushSync)(()=>{r(e)})}),[e]),(0,a.useEffect)(()=>{r(e.getDecorators())},[e]),(0,a.useMemo)(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const s=o[i],l=(0,d.jsx)(t,{onError:t=>e._onError(t),children:(0,d.jsx)(a.Suspense,{fallback:null,children:n[s]})}),c=e.getElementByKey(s);null!==c&&r.push((0,Ya.createPortal)(l,c,s))}return r},[t,n,e])}(e,t)}function jc({editor:e,ErrorBoundary:t}){return function(e){const t=Ha.maybeFromEditor(e);if(t&&t.hasExtensionByName(Ga)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&Dc(320,e);return!0}return!1}(e)?null:(0,d.jsx)($c,{editor:e,ErrorBoundary:t})}function zc(e){return e.getEditorState().read(Ja(e.isComposing()))}function Bc({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=h();return Ic(()=>Nl(Fc(o),function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const o=n.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,o,i,s,l]=t;e.update(()=>{const e=zr();if(_r(e)){const t=e.anchor;let a=t.getNode(),c=0,u=0;if(pr(a)&&r>=0&&o>=0&&(c=r,u=r+o,e.setTextNodeRange(a,c,a,u)),c===u&&""===i||(e.insertRawText(i),a=t.getNode()),pr(a)){c=s,u=s+l;const t=a.getTextContentSize();c=c>t?t:c,u=u>t?t:u,e.setTextNodeRange(a,c,a,u)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(o)),[o=r]),(0,d.jsxs)(d.Fragment,{children:[e,(0,d.jsx)(Uc,{content:t}),(0,d.jsx)(jc,{editor:r,ErrorBoundary:n})]});var o}function Uc({content:e}){const[t]=h(),n=function(e){const[t,n]=(0,a.useState)(()=>zc(e));return Ic(()=>{function t(){const t=zc(e);n(t)}return t(),Nl(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=y();return n?"function"==typeof e?e(r):e:null}const Hc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect,Kc=(0,a.forwardRef)(function({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:l,ariaLabel:c,ariaLabelledBy:u,ariaMultiline:f,ariaOwns:p,ariaRequired:h,autoCapitalize:g,className:m,id:y,role:v="textbox",spellCheck:b=!0,style:w,tabIndex:x,"data-testid":S,..._},C){const[E,k]=(0,a.useState)(e.isEditable()),T=(0,a.useCallback)(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),N=(0,a.useMemo)(()=>function(...e){return t=>{for(const n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(C,T),[T,C]);return Hc(()=>(k(e.isEditable()),e.registerEditableListener(e=>{k(e)})),[e]),(0,d.jsx)("div",{"aria-activedescendant":E?t:void 0,"aria-autocomplete":E?n:"none","aria-controls":E?r:void 0,"aria-describedby":o,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":E&&"combobox"===v?!!s:void 0,...null!=l?{"aria-invalid":l}:{},"aria-label":c,"aria-labelledby":u,"aria-multiline":f,"aria-owns":E?p:void 0,"aria-readonly":!E||void 0,"aria-required":h,autoCapitalize:g,className:m,contentEditable:E,"data-testid":S,id:y,ref:N,role:v,spellCheck:b,style:w,tabIndex:x,..._})});function Wc(e){return e.getEditorState().read(Ja(e.isComposing()))}const Vc=(0,a.forwardRef)(function(e,t){const{placeholder:n,...r}=e,[o]=h();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Kc,{editor:o,...r,ref:t}),null!=n&&(0,d.jsx)(qc,{editor:o,content:n})]})});function qc({content:e,editor:t}){const n=function(e){const[t,n]=(0,a.useState)(()=>Wc(e));return Hc(()=>{function t(){const t=Wc(e);n(t)}return t(),Nl(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=(0,a.useState)(t.isEditable());if((0,a.useLayoutEffect)(()=>(o(t.isEditable()),t.registerEditableListener(e=>{o(e)})),[t]),!n)return null;let i=null;return"function"==typeof e?i=e(r):null!==e&&(i=e),null===i?null:(0,d.jsx)("div",{"aria-hidden":!0,children:i})}const Gc=(0,a.createContext)(null),Yc={didCatch:!1,error:null};class Jc extends a.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Yc}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(Yc))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:"keys"}),this.setState(Yc))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let s=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=(0,a.createElement)(n,e);else{if(void 0===r)throw i;s=r}}return(0,a.createElement)(Gc.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}}function Xc({children:e,onError:t}){return(0,d.jsx)(Jc,{fallback:(0,d.jsx)("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const Qc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Zc=Qc?a.useLayoutEffect:a.useEffect,eu={tag:$n};function tu({initialConfig:e,children:t}){const n=(0,a.useMemo)(()=>{const{theme:t,namespace:n,nodes:r,onError:o,editorState:i,html:s}=e,l=p(null,t),a=Ho({editable:e.editable,html:s,namespace:n,nodes:r,onError:e=>o(e,a),theme:t});return function(e,t){if(null!==t)if(void 0===t)e.update(()=>{const t=Ci();if(t.isEmpty()){const n=jo();t.append(n);const r=Qc?document.activeElement:null;(null!==zr()||null!==r&&r===e.getRootElement())&&n.select()}},eu);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,eu);break}case"object":e.setEditorState(t,eu);break;case"function":e.update(()=>{Ci().isEmpty()&&t(e)},eu)}}(a,i),[a,l]},[]);return Zc(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),(0,d.jsx)(f.Provider,{value:n,children:t})}var nu=function(){return nu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nu.apply(this,arguments)};function ru(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var ou=o(2945),iu=o.n(ou),su="-ms-",lu="-moz-",au="-webkit-",cu="comm",uu="rule",du="decl",fu="@keyframes",pu=Math.abs,hu=String.fromCharCode,gu=Object.assign;function mu(e){return e.trim()}function yu(e,t){return(e=t.exec(e))?e[0]:e}function vu(e,t,n){return e.replace(t,n)}function bu(e,t,n){return e.indexOf(t,n)}function wu(e,t){return 0|e.charCodeAt(t)}function xu(e,t,n){return e.slice(t,n)}function Su(e){return e.length}function _u(e){return e.length}function Cu(e,t){return t.push(e),e}function Eu(e,t){return e.filter(function(e){return!yu(e,t)})}var ku=1,Tu=1,Nu=0,Au=0,Ru=0,Pu="";function Lu(e,t,n,r,o,i,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ku,column:Tu,length:s,return:"",siblings:l}}function Ou(e,t){return gu(Lu("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Mu(e){for(;e.root;)e=Ou(e.root,{children:[e]});Cu(e,e.siblings)}function Fu(){return Ru=Au>0?wu(Pu,--Au):0,Tu--,10===Ru&&(Tu=1,ku--),Ru}function Du(){return Ru=Au<Nu?wu(Pu,Au++):0,Tu++,10===Ru&&(Tu=1,ku++),Ru}function Iu(){return wu(Pu,Au)}function $u(){return Au}function ju(e,t){return xu(Pu,e,t)}function zu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bu(e){return mu(ju(Au-1,Ku(91===e?e+2:40===e?e+1:e)))}function Uu(e){for(;(Ru=Iu())&&Ru<33;)Du();return zu(e)>2||zu(Ru)>3?"":" "}function Hu(e,t){for(;--t&&Du()&&!(Ru<48||Ru>102||Ru>57&&Ru<65||Ru>70&&Ru<97););return ju(e,$u()+(t<6&&32==Iu()&&32==Du()))}function Ku(e){for(;Du();)switch(Ru){case e:return Au;case 34:case 39:34!==e&&39!==e&&Ku(Ru);break;case 40:41===e&&Ku(e);break;case 92:Du()}return Au}function Wu(e,t){for(;Du()&&e+Ru!==57&&(e+Ru!==84||47!==Iu()););return"/*"+ju(t,Au-1)+"*"+hu(47===e?e:Du())}function Vu(e){for(;!zu(Iu());)Du();return ju(e,Au)}function qu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Gu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case du:return e.return=e.return||e.value;case cu:return"";case fu:return e.return=e.value+"{"+qu(e.children,r)+"}";case uu:if(!Su(e.value=e.props.join(",")))return""}return Su(n=qu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Yu(e,t,n){switch(function(e,t){return 45^wu(e,0)?(((t<<2^wu(e,0))<<2^wu(e,1))<<2^wu(e,2))<<2^wu(e,3):0}(e,t)){case 5103:return au+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return au+e+e;case 4789:return lu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return au+e+lu+e+su+e+e;case 5936:switch(wu(e,t+11)){case 114:return au+e+su+vu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return au+e+su+vu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return au+e+su+vu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return au+e+su+e+e;case 6165:return au+e+su+"flex-"+e+e;case 5187:return au+e+vu(e,/(\w+).+(:[^]+)/,au+"box-$1$2"+su+"flex-$1$2")+e;case 5443:return au+e+su+"flex-item-"+vu(e,/flex-|-self/g,"")+(yu(e,/flex-|baseline/)?"":su+"grid-row-"+vu(e,/flex-|-self/g,""))+e;case 4675:return au+e+su+"flex-line-pack"+vu(e,/align-content|flex-|-self/g,"")+e;case 5548:return au+e+su+vu(e,"shrink","negative")+e;case 5292:return au+e+su+vu(e,"basis","preferred-size")+e;case 6060:return au+"box-"+vu(e,"-grow","")+au+e+su+vu(e,"grow","positive")+e;case 4554:return au+vu(e,/([^-])(transform)/g,"$1"+au+"$2")+e;case 6187:return vu(vu(vu(e,/(zoom-|grab)/,au+"$1"),/(image-set)/,au+"$1"),e,"")+e;case 5495:case 3959:return vu(e,/(image-set\([^]*)/,au+"$1$`$1");case 4968:return vu(vu(e,/(.+:)(flex-)?(.*)/,au+"box-pack:$3"+su+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+au+e+e;case 4200:if(!yu(e,/flex-|baseline/))return su+"grid-column-align"+xu(e,t)+e;break;case 2592:case 3360:return su+vu(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,yu(e.props,/grid-\w+-end/)})?~bu(e+(n=n[t].value),"span",0)?e:su+vu(e,"-start","")+e+su+"grid-row-span:"+(~bu(n,"span",0)?yu(n,/\d+/):+yu(n,/\d+/)-+yu(e,/\d+/))+";":su+vu(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return yu(e.props,/grid-\w+-start/)})?e:su+vu(vu(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return vu(e,/(.+)-inline(.+)/,au+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Su(e)-1-t>6)switch(wu(e,t+1)){case 109:if(45!==wu(e,t+4))break;case 102:return vu(e,/(.+:)(.+)-([^]+)/,"$1"+au+"$2-$3$1"+lu+(108==wu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~bu(e,"stretch",0)?Yu(vu(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return vu(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,s,l){return su+n+":"+r+l+(o?su+n+"-span:"+(i?s:+s-+r)+l:"")+e});case 4949:if(121===wu(e,t+6))return vu(e,":",":"+au)+e;break;case 6444:switch(wu(e,45===wu(e,14)?18:11)){case 120:return vu(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+au+(45===wu(e,14)?"inline-":"")+"box$3$1"+au+"$2$3$1"+su+"$2box$3")+e;case 100:return vu(e,":",":"+su)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return vu(e,"scroll-","scroll-snap-")+e}return e}function Ju(e){var t=_u(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function Xu(e){return function(t){t.root||(t=t.return)&&e(t)}}function Qu(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case du:return void(e.return=Yu(e.value,e.length,n));case fu:return qu([Ou(e,{value:vu(e.value,"@","@"+au)})],r);case uu:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(yu(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Mu(Ou(e,{props:[vu(t,/:(read-\w+)/,":-moz-$1")]})),Mu(Ou(e,{props:[t]})),gu(e,{props:Eu(n,r)});break;case"::placeholder":Mu(Ou(e,{props:[vu(t,/:(plac\w+)/,":"+au+"input-$1")]})),Mu(Ou(e,{props:[vu(t,/:(plac\w+)/,":-moz-$1")]})),Mu(Ou(e,{props:[vu(t,/:(plac\w+)/,su+"input-$1")]})),Mu(Ou(e,{props:[t]})),gu(e,{props:Eu(n,r)})}return""})}}function Zu(e){return function(e){return Pu="",e}(ed("",null,null,null,[""],e=function(e){return ku=Tu=1,Nu=Su(Pu=e),Au=0,[]}(e),0,[0],e))}function ed(e,t,n,r,o,i,s,l,a){for(var c=0,u=0,d=s,f=0,p=0,h=0,g=1,m=1,y=1,v=0,b="",w=o,x=i,S=r,_=b;m;)switch(h=v,v=Du()){case 40:if(108!=h&&58==wu(_,d-1)){-1!=bu(_+=vu(Bu(v),"&","&\f"),"&\f",pu(c?l[c-1]:0))&&(y=-1);break}case 34:case 39:case 91:_+=Bu(v);break;case 9:case 10:case 13:case 32:_+=Uu(h);break;case 92:_+=Hu($u()-1,7);continue;case 47:switch(Iu()){case 42:case 47:Cu(nd(Wu(Du(),$u()),t,n,a),a);break;default:_+="/"}break;case 123*g:l[c++]=Su(_)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==y&&(_=vu(_,/\f/g,"")),p>0&&Su(_)-d&&Cu(p>32?rd(_+";",r,n,d-1,a):rd(vu(_," ","")+";",r,n,d-2,a),a);break;case 59:_+=";";default:if(Cu(S=td(_,t,n,c,u,o,l,b,w=[],x=[],d,i),i),123===v)if(0===u)ed(_,t,S,S,w,i,d,l,x);else switch(99===f&&110===wu(_,3)?100:f){case 100:case 108:case 109:case 115:ed(e,S,S,r&&Cu(td(e,S,S,0,0,o,l,b,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:ed(_,S,S,S,[""],x,0,l,x)}}c=u=p=0,g=y=1,b=_="",d=s;break;case 58:d=1+Su(_),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Fu())continue;switch(_+=hu(v),v*g){case 38:y=u>0?1:(_+="\f",-1);break;case 44:l[c++]=(Su(_)-1)*y,y=1;break;case 64:45===Iu()&&(_+=Bu(Du())),f=Iu(),u=d=Su(b=_+=Vu($u())),v++;break;case 45:45===h&&2==Su(_)&&(g=0)}}return i}function td(e,t,n,r,o,i,s,l,a,c,u,d){for(var f=o-1,p=0===o?i:[""],h=_u(p),g=0,m=0,y=0;g<r;++g)for(var v=0,b=xu(e,f+1,f=pu(m=s[g])),w=e;v<h;++v)(w=mu(m>0?p[v]+" "+b:vu(b,/&\f/g,p[v])))&&(a[y++]=w);return Lu(e,t,n,0===o?uu:l,a,c,u,d)}function nd(e,t,n,r){return Lu(e,t,n,cu,hu(Ru),xu(e,2,-2),0,r)}function rd(e,t,n,r,o){return Lu(e,t,n,du,xu(e,0,r),xu(e,r+1,-1),r,o)}var od={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},id="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",sd="active",ld="data-styled-version",ad="6.1.19",cd="/*!sc*/\n",ud="undefined"!=typeof window&&"undefined"!=typeof document,dd=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),fd={},pd=(new Set,Object.freeze([])),hd=Object.freeze({});function gd(e,t,n){return void 0===n&&(n=hd),e.theme!==n.theme&&e.theme||t||n.theme}var md=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),yd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,vd=/(^-|-$)/g;function bd(e){return e.replace(yd,"-").replace(vd,"")}var wd=/(a)(d)/gi,xd=function(e){return String.fromCharCode(e+(e>25?39:97))};function Sd(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=xd(t%52)+n;return(xd(t%52)+n).replace(wd,"$1-$2")}var _d,Cd=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ed=function(e){return Cd(5381,e)};function kd(e){return Sd(Ed(e)>>>0)}function Td(e){return"string"==typeof e&&!0}var Nd="function"==typeof Symbol&&Symbol.for,Ad=Nd?Symbol.for("react.memo"):60115,Rd=Nd?Symbol.for("react.forward_ref"):60112,Pd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ld={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Od={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Md=((_d={})[Rd]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_d[Ad]=Od,_d);function Fd(e){return("type"in(t=e)&&t.type.$$typeof)===Ad?Od:"$$typeof"in e?Md[e.$$typeof]:Pd;var t}var Dd=Object.defineProperty,Id=Object.getOwnPropertyNames,$d=Object.getOwnPropertySymbols,jd=Object.getOwnPropertyDescriptor,zd=Object.getPrototypeOf,Bd=Object.prototype;function Ud(e,t,n){if("string"!=typeof t){if(Bd){var r=zd(t);r&&r!==Bd&&Ud(e,r,n)}var o=Id(t);$d&&(o=o.concat($d(t)));for(var i=Fd(e),s=Fd(t),l=0;l<o.length;++l){var a=o[l];if(!(a in Ld||n&&n[a]||s&&a in s||i&&a in i)){var c=jd(t,a);try{Dd(e,a,c)}catch(e){}}}}return e}function Hd(e){return"function"==typeof e}function Kd(e){return"object"==typeof e&&"styledComponentId"in e}function Wd(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Vd(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function qd(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Gd(e,t,n){if(void 0===n&&(n=!1),!n&&!qd(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Gd(e[r],t[r]);else if(qd(t))for(var r in t)e[r]=Gd(e[r],t[r]);return e}function Yd(e,t){Object.defineProperty(e,"toString",{value:t})}function Jd(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Xd=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Jd(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(cd);return t},e}(),Qd=new Map,Zd=new Map,ef=1,tf=function(e){if(Qd.has(e))return Qd.get(e);for(;Zd.has(ef);)ef++;var t=ef++;return Qd.set(e,t),Zd.set(t,e),t},nf=function(e,t){ef=t+1,Qd.set(e,t),Zd.set(t,e)},rf="style[".concat(id,"][").concat(ld,'="').concat(ad,'"]'),of=new RegExp("^".concat(id,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),sf=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},lf=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(cd),o=[],i=0,s=r.length;i<s;i++){var l=r[i].trim();if(l){var a=l.match(of);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(nf(u,c),sf(e,u,a[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(l)}}},af=function(e){for(var t=document.querySelectorAll(rf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(id)!==sd&&(lf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function cf(){return o.nc}var uf=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(id,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(id,sd),r.setAttribute(ld,ad);var s=cf();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},df=function(){function e(e){this.element=uf(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Jd(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),ff=function(){function e(e){this.element=uf(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),pf=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),hf=ud,gf={isServer:!ud,useCSSOMInjection:!dd},mf=function(){function e(e,t,n){void 0===e&&(e=hd),void 0===t&&(t={});var r=this;this.options=nu(nu({},gf),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ud&&hf&&(hf=!1,af(this)),Yd(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Zd.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var l="".concat(id,".g").concat(n,'[id="').concat(o,'"]'),a="";void 0!==i&&i.forEach(function(e){e.length>0&&(a+="".concat(e,","))}),r+="".concat(s).concat(l,'{content:"').concat(a,'"}').concat(cd)},i=0;i<n;i++)o(i);return r}(r)})}return e.registerId=function(e){return tf(e)},e.prototype.rehydrate=function(){!this.server&&ud&&af(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(nu(nu({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new pf(n):t?new df(n):new ff(n)}(this.options),new Xd(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(tf(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(tf(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(tf(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),yf=/&/g,vf=/^\s*\/\/.*$/gm;function bf(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=bf(e.children,t)),e})}function wf(e){var t,n,r,o=void 0===e?hd:e,i=o.options,s=void 0===i?hd:i,l=o.plugins,a=void 0===l?pd:l,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=a.slice();u.push(function(e){e.type===uu&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(yf,n).replace(r,c))}),s.prefix&&u.push(Qu),u.push(Gu);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var a=e.replace(vf,""),c=Zu(i||o?"".concat(i," ").concat(o," { ").concat(a," }"):a);s.namespace&&(c=bf(c,s.namespace));var d=[];return qu(c,Ju(u.concat(Xu(function(e){return d.push(e)})))),d};return d.hash=a.length?a.reduce(function(e,t){return t.name||Jd(15),Cd(e,t.name)},5381).toString():"",d}var xf=new mf,Sf=wf(),_f=a.createContext({shouldForwardProp:void 0,styleSheet:xf,stylis:Sf}),Cf=(_f.Consumer,a.createContext(void 0));function Ef(){return(0,a.useContext)(_f)}function kf(e){var t=(0,a.useState)(e.stylisPlugins),n=t[0],r=t[1],o=Ef().styleSheet,i=(0,a.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,o]),s=(0,a.useMemo)(function(){return wf({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,a.useEffect)(function(){iu()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var l=(0,a.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:s}},[e.shouldForwardProp,i,s]);return a.createElement(_f.Provider,{value:l},a.createElement(Cf.Provider,{value:s},e.children))}var Tf=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Sf);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Yd(this,function(){throw Jd(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Sf),this.name+e.hash},e}(),Nf=function(e){return e>="A"&&e<="Z"};function Af(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Nf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Rf=function(e){return null==e||!1===e||""===e},Pf=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Rf(i)&&(Array.isArray(i)&&i.isCss||Hd(i)?r.push("".concat(Af(o),":"),i,";"):qd(i)?r.push.apply(r,ru(ru(["".concat(o," {")],Pf(i),!1),["}"],!1)):r.push("".concat(Af(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in od||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Lf(e,t,n,r){return Rf(e)?[]:Kd(e)?[".".concat(e.styledComponentId)]:Hd(e)?!Hd(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Lf(e(t),t,n,r):e instanceof Tf?n?(e.inject(n,r),[e.getName(r)]):[e]:qd(e)?Pf(e):Array.isArray(e)?Array.prototype.concat.apply(pd,e.map(function(e){return Lf(e,t,n,r)})):[e.toString()];var o}function Of(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Hd(n)&&!Kd(n))return!1}return!0}var Mf=Ed(ad),Ff=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Of(e),this.componentId=t,this.baseHash=Cd(Mf,t),this.baseStyle=n,mf.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Wd(r,this.staticRulesId);else{var o=Vd(Lf(this.rules,e,t,n)),i=Sd(Cd(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var s=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,s)}r=Wd(r,i),this.staticRulesId=i}else{for(var l=Cd(this.baseHash,n.hash),a="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)a+=u;else if(u){var d=Vd(Lf(u,e,t,n));l=Cd(l,d+c),a+=d}}if(a){var f=Sd(l>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(a,".".concat(f),void 0,this.componentId)),r=Wd(r,f)}}return r},e}(),Df=a.createContext(void 0);Df.Consumer;var If={};function $f(e,t,n){var r=Kd(e),o=e,i=!Td(e),s=t.attrs,l=void 0===s?pd:s,c=t.componentId,u=void 0===c?function(e,t){var n="string"!=typeof e?"sc":bd(e);If[n]=(If[n]||0)+1;var r="".concat(n,"-").concat(kd(ad+n+If[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):c,d=t.displayName,f=void 0===d?function(e){return Td(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):d,p=t.displayName&&t.componentId?"".concat(bd(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;g=function(e,t){return m(e,t)&&y(e,t)}}else g=m}var v=new Ff(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,s=e.foldedComponentIds,l=e.styledComponentId,c=e.target,u=a.useContext(Df),d=Ef(),f=e.shouldForwardProp||d.shouldForwardProp,p=gd(t,u,i)||hd,h=function(e,t,n){for(var r,o=nu(nu({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var s=Hd(r=e[i])?r(o):r;for(var l in s)o[l]="className"===l?Wd(o[l],s[l]):"style"===l?nu(nu({},o[l]),s[l]):s[l]}return t.className&&(o.className=Wd(o.className,t.className)),o}(r,t,p),g=h.as||c,m={};for(var y in h)void 0===h[y]||"$"===y[0]||"as"===y||"theme"===y&&h.theme===p||("forwardedAs"===y?m.as=h.forwardedAs:f&&!f(y,g)||(m[y]=h[y]));var v=function(e,t){var n=Ef();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,h),b=Wd(s,l);return v&&(b+=" "+v),h.className&&(b+=" "+h.className),m[Td(g)&&!md.has(g)?"class":"className"]=b,n&&(m.ref=n),(0,a.createElement)(g,m)}(w,e,t)}b.displayName=f;var w=a.forwardRef(b);return w.attrs=h,w.componentStyle=v,w.displayName=f,w.shouldForwardProp=g,w.foldedComponentIds=r?Wd(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=p,w.target=r?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Gd(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Yd(w,function(){return".".concat(w.styledComponentId)}),i&&Ud(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function jf(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var zf=function(e){return Object.assign(e,{isCss:!0})};function Bf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Hd(e)||qd(e))return zf(Lf(jf(pd,ru([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Lf(r):zf(Lf(jf(r,t)))}function Uf(e,t,n){if(void 0===n&&(n=hd),!t)throw Jd(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Bf.apply(void 0,ru([r],o,!1)))};return r.attrs=function(r){return Uf(e,t,nu(nu({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Uf(e,t,nu(nu({},n),r))},r}var Hf=function(e){return Uf($f,e)},Kf=Hf;md.forEach(function(e){Kf[e]=Hf(e)});var Wf=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Of(e),mf.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Vd(Lf(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&mf.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Vf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Bf.apply(void 0,ru([e],t,!1)),o="sc-global-".concat(kd(JSON.stringify(r))),i=new Wf(r,o),s=function(e){var t=Ef(),n=a.useContext(Df),r=a.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&l(r,e,t.styleSheet,n,t.stylis),a.useLayoutEffect(function(){if(!t.styleSheet.server)return l(r,e,t.styleSheet,n,t.stylis),function(){return i.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function l(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,fd,n,o);else{var l=nu(nu({},t),{theme:gd(t,r,s.defaultProps)});i.renderStyles(e,l,n,o)}}return a.memo(s)}(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=cf(),r=Vd([n&&'nonce="'.concat(n,'"'),"".concat(id,'="true"'),"".concat(ld,'="').concat(ad,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Jd(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Jd(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[id]="",t[ld]=ad,t.dangerouslySetInnerHTML={__html:n},t),o=cf();return o&&(r.nonce=o),[a.createElement("style",nu({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new mf({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Jd(2);return a.createElement(kf,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Jd(3)}})(),"__sc-".concat(id,"__");const qf="#FFFFFF",Gf="#222222",Yf="#5C6BC0",Jf={name:"light",primary:"#FFFFFF",secondary:"#222222",white:"#FFFFFF",black:"#222222",blue:"#65B5F6",yellow:"#FFC107",orange:"#FF8F00",red:"#D84315",pink:"#CE93D8",grayNeutral:"#F6F6FB",grayLight:"#DDE0EB",grayRegular:"#9FA2B0",grayDark:"#717381",greenRegular:"#81C784",greenDark:"#388E3C",purpleRegular:"#5C6BC0",purpleDark:"#1A237E",blueDark:"#0065FF"},Xf={name:"dark",primary:"#2A2B2F",secondary:"#E3E3E7",white:"#E3E3E7",black:"#2A2B2F",blue:"#5AA5E6",yellow:"#E6B000",orange:"#E67F00",red:"#C23A15",pink:"#BA68C8",grayNeutral:"#1E1F22",grayLight:"#3A3C42",grayRegular:"#A1A4B2",grayDark:"#828590",greenRegular:"#71B574",greenDark:"#2E7D32",purpleRegular:"#8C9EFF",purpleDark:"#5C6BC0",blueDark:"#4A90FF"},Qf=e=>{const t=(0,a.createContext)(null);return[({children:e,value:n})=>(0,d.jsx)(t.Provider,{value:n,children:e}),()=>{const n=(0,a.useContext)(t);if(!n)throw new Error(`context-${e} can only be used inside a ${e}-provider`);return n}]},[Zf,ep]=Qf("UIKitTheme"),tp={theme:Jf,isDark:!1,themeMode:"light",toggleTheme:()=>{},setThemeMode:()=>{}},np=e=>{const t=e&&"object"==typeof e&&"theme"in e?e.theme??void 0:e??void 0;return"dark"===(null==t?void 0:t.name)?{...Xf,...t}:{...Jf,...t}},rp=function(e){return t=>{const n=np(t);return e?"function"==typeof e?e(n):n[e]:n}};rp.resolve=np,rp.isThemeDark=e=>"dark"===np(e).name,rp.boxShadowColor=e=>rp.isThemeDark(e)?"rgba(0, 0, 0, 0.24)":"rgba(0, 0, 0, 0.1)",rp.boxShadowHoverColor=e=>rp.isThemeDark(e)?"rgba(0, 0, 0, 0.4)":"rgba(0, 0, 0, 0.2)";const op=()=>{const e=(0,a.useContext)(Df),{theme:t}=(()=>{try{return ep()}catch{return tp}})();return e?np(e):t},ip=Bf`
2
+ (()=>{var e,t,n={80:e=>{"use strict";e.exports=function(e){if("number"!=typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0;let n=Math.abs(e);if(t&&(n=-n),0===n)return"0 B";const r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.min(Math.floor(Math.log(n)/Math.log(1024)),r.length-1),i=Number(n/1024**o),s=r[o];return`${i>=10||i%1==0?Math.round(i):i.toFixed(1)} ${s}`}},191:e=>{"use strict";function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var s in r={},e)this.match(s)&&(r[s]=e[s]);return r},e.exports=function(e,n,r){var o=new t(e,r||/[\/\.]/);return void 0!==n?o.match(n):o}},424:(e,t,n)=>{var r=n(7604),o=n(4247),i=n(555),s=Math.max,l=Math.min;e.exports=function(e,t,n){var a,c,u,d,f,p,h=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=a,r=c;return a=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=u}function w(){var e=o();if(b(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return m?l(n,u-(e-h)):n}(e))}function x(e){return f=void 0,y&&a?v(e):(a=c=void 0,d)}function S(){var e=o(),n=b(e);if(a=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),g?v(e):d}(p);if(m)return clearTimeout(f),f=setTimeout(w,t),v(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?s(i(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==f&&clearTimeout(f),h=0,a=p=c=f=void 0},S.flush=function(){return void 0===f?d:x(o())},S}},474:(e,t,n)=>{var r=n(4358).Symbol;e.exports=r},516:()=>{Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec},555:(e,t,n)=>{var r=n(971),o=n(7604),i=n(3051),s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,a=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||a.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},827:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},971:(e,t,n)=>{var r=n(2041),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},1515:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},2033:(e,t,n)=>{"use strict";var r=n(5666),o=n(7140),i=n(5219);function s(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 l(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function a(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function u(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function d(e){if(a(e)!==e)throw Error(s(188))}function f(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=f(e)))return t;e=e.sibling}return null}var p=Object.assign,h=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),k=Symbol.for("react.lazy");Symbol.for("react.scope");var T=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var N=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var A=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var P=Symbol.for("react.client.reference");function L(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===P?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case y:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case _:return"Suspense";case C:return"SuspenseList";case T:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case m:return"Portal";case x:return e.displayName||"Context";case w:return(e._context.displayName||"Context")+".Consumer";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:L(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return L(e(t))}catch(e){}}return null}var O=Array.isArray,M=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},I=[],$=-1;function j(e){return{current:e}}function z(e){0>$||(e.current=I[$],I[$]=null,$--)}function B(e,t){$++,I[$]=e.current,e.current=t}var U,H,K=j(null),W=j(null),V=j(null),q=j(null);function G(e,t){switch(B(V,t),B(W,e),B(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=vd(t=yd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(K),B(K,e)}function Y(){z(K),z(W),z(V)}function J(e){null!==e.memoizedState&&B(q,e);var t=K.current,n=vd(t,e.type);t!==n&&(B(W,e),B(K,n))}function X(e){W.current===e&&(z(K),z(W)),q.current===e&&(z(q),df._currentValue=D)}function Q(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||"",H=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+U+e+H}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),s=i[0],l=i[1];if(s&&l){var a=s.split("\n"),c=l.split("\n");for(o=r=0;r<a.length&&!a[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===a.length||o===c.length)for(r=a.length-1,o=c.length-1;1<=r&&0<=o&&a[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(a[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||a[r]!==c[o]){var u="\n"+a[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Q(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return e.child!==t&&null!==t?Q("Suspense Fallback"):Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return Q("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var re=Object.prototype.hasOwnProperty,oe=r.unstable_scheduleCallback,ie=r.unstable_cancelCallback,se=r.unstable_shouldYield,le=r.unstable_requestPaint,ae=r.unstable_now,ce=r.unstable_getCurrentPriorityLevel,ue=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,fe=r.unstable_NormalPriority,pe=r.unstable_LowPriority,he=r.unstable_IdlePriority,ge=r.log,me=r.unstable_setDisableYieldValue,ye=null,ve=null;function be(e){if("function"==typeof ge&&me(e),ve&&"function"==typeof ve.setStrictMode)try{ve.setStrictMode(ye,e)}catch(e){}}var we=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(xe(e)/Se|0)|0},xe=Math.log,Se=Math.LN2,_e=256,Ce=262144,Ee=4194304;function ke(e){var t=42&e;if(0!==t)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:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Te(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~i)?o=ke(r):0!==(s&=l)?o=ke(s):n||0!==(n=l&~e)&&(o=ke(n)):0!==(l=r&~i)?o=ke(l):0!==s?o=ke(s):n||0!==(n=r&~e)&&(o=ke(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ae(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;default:return-1}}function Re(){var e=Ee;return!(62914560&(Ee<<=1))&&(Ee=4194304),e}function Pe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Le(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Me(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Fe(e,t){var n=t&-t;return 0!==((n=42&n?1:De(n))&(e.suspendedLanes|t))?0:n}function De(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 Ie(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function $e(){var e=F.p;return 0!==e?e:void 0===(e=window.event)?32:Tf(e.type)}function je(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var ze=Math.random().toString(36).slice(2),Be="__reactFiber$"+ze,Ue="__reactProps$"+ze,He="__reactContainer$"+ze,Ke="__reactEvents$"+ze,We="__reactListeners$"+ze,Ve="__reactHandles$"+ze,qe="__reactResources$"+ze,Ge="__reactMarker$"+ze;function Ye(e){delete e[Be],delete e[Ue],delete e[Ke],delete e[We],delete e[Ve]}function Je(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[Be]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[Be])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Xe(e){if(e=e[Be]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(s(33))}function Ze(e){var t=e[qe];return t||(t=e[qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Ge]=!0}var tt=new Set,nt={};function rt(e,t){ot(e,t),ot(e+"Capture",t)}function ot(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var it=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]*$"),st={},lt={};function at(e,t,n){if(o=t,re.call(lt,o)||!re.call(st,o)&&(it.test(o)?lt[o]=!0:(st[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function ct(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ut(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=ft(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function gt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var mt=/[\n"\\]/g;function yt(e){return e.replace(mt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,r,o,i,s,l){e.name="",null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.type=s:e.removeAttribute("type"),null!=t?"number"===s?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==s&&"reset"!==s||e.removeAttribute("value"),null!=t?wt(e,s,dt(t)):null!=n?wt(e,s,dt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+dt(l):e.removeAttribute("name")}function bt(e,t,n,r,o,i,s,l){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void pt(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s&&(e.name=s),pt(e)}function wt(e,t,n){"number"===t&&gt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function xt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function _t(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(s(92));if(O(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),pt(e)}function Ct(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=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 kt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Tt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(s(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&kt(e,o,r)}else for(var i in t)t.hasOwnProperty(i)&&kt(e,i,t[i])}function Nt(e){if(-1===e.indexOf("-"))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 At=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"]]),Rt=/^[\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 Pt(e){return Rt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Lt(){}var Ot=null;function Mt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ft=null,Dt=null;function It(e){var t=Xe(e);if(t&&(e=t.stateNode)){var n=e[Ue]||null;e:switch(e=t.stateNode,t.type){case"input":if(vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[Ue]||null;if(!o)throw Error(s(90));vt(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ht(r)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&xt(e,!!n.multiple,t,!1)}}}var $t=!1;function jt(e,t,n){if($t)return e(t,n);$t=!0;try{return e(t)}finally{if($t=!1,(null!==Ft||null!==Dt)&&(Zc(),Ft&&(t=Ft,e=Dt,Dt=Ft=null,It(t),e)))for(t=0;t<e.length;t++)It(e[t])}}function zt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Ue]||null;if(null===r)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)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var Bt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ut=!1;if(Bt)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Ut=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(e){Ut=!1}var Kt=null,Wt=null,Vt=null;function qt(){if(Vt)return Vt;var e,t,n=Wt,r=n.length,o="value"in Kt?Kt.value:Kt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Vt=o.slice(e,1<t?1-t:void 0)}function Gt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Jt(){return!1}function Xt(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Yt:Jt,this.isPropagationStopped=Jt,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var Qt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Xt(tn),rn=p({},tn,{view:0,detail:0}),on=Xt(rn),sn=p({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Qt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Qt=0,en=e),Qt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),ln=Xt(sn),an=Xt(p({},sn,{dataTransfer:0})),cn=Xt(p({},rn,{relatedTarget:0})),un=Xt(p({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Xt(p({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),fn=Xt(p({},tn,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={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"},gn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=gn[e])&&!!t[e]}function yn(){return mn}var vn=Xt(p({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yn,charCode:function(e){return"keypress"===e.type?Gt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),bn=Xt(p({},sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),wn=Xt(p({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yn})),xn=Xt(p({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Xt(p({},sn,{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})),_n=Xt(p({},tn,{newState:0,oldState:0})),Cn=[9,13,27,32],En=Bt&&"CompositionEvent"in window,kn=null;Bt&&"documentMode"in document&&(kn=document.documentMode);var Tn=Bt&&"TextEvent"in window&&!kn,Nn=Bt&&(!En||kn&&8<kn&&11>=kn),An=String.fromCharCode(32),Rn=!1;function Pn(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var On=!1,Mn={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 Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mn[e.type]:"textarea"===t}function Dn(e,t,n,r){Ft?Dt?Dt.push(r):Dt=[r]:Ft=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var In=null,$n=null;function jn(e){Yu(e,0)}function zn(e){if(ht(Qe(e)))return e}function Bn(e,t){if("change"===e)return t}var Un=!1;if(Bt){var Hn;if(Bt){var Kn="oninput"in document;if(!Kn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Kn="function"==typeof Wn.oninput}Hn=Kn}else Hn=!1;Un=Hn&&(!document.documentMode||9<document.documentMode)}function Vn(){In&&(In.detachEvent("onpropertychange",qn),$n=In=null)}function qn(e){if("value"===e.propertyName&&zn($n)){var t=[];Dn(t,$n,e,Mt(e)),jt(jn,t)}}function Gn(e,t,n){"focusin"===e?(Vn(),$n=n,(In=t).attachEvent("onpropertychange",qn)):"focusout"===e&&Vn()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zn($n)}function Jn(e,t){if("click"===e)return zn(t)}function Xn(e,t){if("input"===e||"change"===e)return zn(t)}var Qn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Qn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)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 o=n[r];if(!re.call(t,o)||!Qn(e[o],t[o]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=gt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=gt((e=t.contentWindow).document)}return t}function or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ir=Bt&&"documentMode"in document&&11>=document.documentMode,sr=null,lr=null,ar=null,cr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;cr||null==sr||sr!==gt(r)||(r="selectionStart"in(r=sr)&&or(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ar&&Zn(ar,r)||(ar=r,0<(r=rd(lr,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sr)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},hr={};function gr(e){if(pr[e])return pr[e];if(!fr[e])return e;var t,n=fr[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return pr[e]=n[t];return e}Bt&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);var mr=gr("animationend"),yr=gr("animationiteration"),vr=gr("animationstart"),br=gr("transitionrun"),wr=gr("transitionstart"),xr=gr("transitioncancel"),Sr=gr("transitionend"),_r=new Map,Cr="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(" ");function Er(e,t){_r.set(e,t),rt(t,[e])}Cr.push("scrollEnd");var kr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Tr=[],Nr=0,Ar=0;function Rr(){for(var e=Nr,t=Ar=Nr=0;t<e;){var n=Tr[t];Tr[t++]=null;var r=Tr[t];Tr[t++]=null;var o=Tr[t];Tr[t++]=null;var i=Tr[t];if(Tr[t++]=null,null!==r&&null!==o){var s=r.pending;null===s?o.next=o:(o.next=s.next,s.next=o),r.pending=o}0!==i&&Mr(n,o,i)}}function Pr(e,t,n,r){Tr[Nr++]=e,Tr[Nr++]=t,Tr[Nr++]=n,Tr[Nr++]=r,Ar|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Lr(e,t,n,r){return Pr(e,t,n,r),Fr(e)}function Or(e,t){return Pr(e,null,null,t),Fr(e)}function Mr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-we(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function Fr(e){if(50<Kc)throw Kc=0,Wc=null,Error(s(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Ir(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 $r(e,t,n,r){return new Ir(e,t,n,r)}function jr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zr(e,t){var n=e.alternate;return null===n?((n=$r(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?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 Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ur(e,t,n,r,o,i){var l=0;if(r=e,"function"==typeof e)jr(e)&&(l=1);else if("string"==typeof e)l=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,K.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=$r(31,n,t,o)).elementType=T,e.lanes=i,e;case y:return Hr(n.children,o,i,t);case v:l=8,o|=24;break;case b:return(e=$r(12,n,t,2|o)).elementType=b,e.lanes=i,e;case _:return(e=$r(13,n,t,o)).elementType=_,e.lanes=i,e;case C:return(e=$r(19,n,t,o)).elementType=C,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:l=10;break e;case w:l=9;break e;case S:l=11;break e;case E:l=14;break e;case k:l=16,r=null;break e}l=29,n=Error(s(130,null===e?"null":typeof e,"")),r=null}return(t=$r(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Hr(e,t,n,r){return(e=$r(7,e,r,t)).lanes=n,e}function Kr(e,t,n){return(e=$r(6,e,null,t)).lanes=n,e}function Wr(e){var t=$r(18,null,null,0);return t.stateNode=e,t}function Vr(e,t,n){return(t=$r(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qr=new WeakMap;function Gr(e,t){if("object"==typeof e&&null!==e){var n=qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},qr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Yr=[],Jr=0,Xr=null,Qr=0,Zr=[],eo=0,to=null,no=1,ro="";function oo(e,t){Yr[Jr++]=Qr,Yr[Jr++]=Xr,Xr=e,Qr=t}function io(e,t,n){Zr[eo++]=no,Zr[eo++]=ro,Zr[eo++]=to,to=e;var r=no;e=ro;var o=32-we(r)-1;r&=~(1<<o),n+=1;var i=32-we(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,no=1<<32-we(t)+o|n<<o|r,ro=i+e}else no=1<<i|n<<o|r,ro=e}function so(e){null!==e.return&&(oo(e,1),io(e,1,0))}function lo(e){for(;e===Xr;)Xr=Yr[--Jr],Yr[Jr]=null,Qr=Yr[--Jr],Yr[Jr]=null;for(;e===to;)to=Zr[--eo],Zr[eo]=null,ro=Zr[--eo],Zr[eo]=null,no=Zr[--eo],Zr[eo]=null}function ao(e,t){Zr[eo++]=no,Zr[eo++]=ro,Zr[eo++]=to,no=t.id,ro=t.overflow,to=e}var co=null,uo=null,fo=!1,po=null,ho=!1,go=Error(s(519));function mo(e){throw So(Gr(Error(s(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),go}function yo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[Ue]=r,n){case"dialog":Ju("cancel",t),Ju("close",t);break;case"iframe":case"object":case"embed":Ju("load",t);break;case"video":case"audio":for(n=0;n<qu.length;n++)Ju(qu[n],t);break;case"source":Ju("error",t);break;case"img":case"image":case"link":Ju("error",t),Ju("load",t);break;case"details":Ju("toggle",t);break;case"input":Ju("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ju("invalid",t);break;case"textarea":Ju("invalid",t),_t(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||cd(t.textContent,n)?(null!=r.popover&&(Ju("beforetoggle",t),Ju("toggle",t)),null!=r.onScroll&&Ju("scroll",t),null!=r.onScrollEnd&&Ju("scrollend",t),null!=r.onClick&&(t.onclick=Lt),t=!0):t=!1,t||mo(e,!0)}function vo(e){for(co=e.return;co;)switch(co.tag){case 5:case 31:case 13:return void(ho=!1);case 27:case 3:return void(ho=!0);default:co=co.return}}function bo(e){if(e!==co)return!1;if(!fo)return vo(e),fo=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||bd(e.type,e.memoizedProps)),t=!t),t&&uo&&mo(e),vo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));uo=Fd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));uo=Fd(e)}else 27===n?(n=uo,kd(e.type)?(e=Md,Md=null,uo=e):uo=n):uo=co?Od(e.stateNode.nextSibling):null;return!0}function wo(){uo=co=null,fo=!1}function xo(){var e=po;return null!==e&&(null===Rc?Rc=e:Rc.push.apply(Rc,e),po=null),e}function So(e){null===po?po=[e]:po.push(e)}var _o=j(null),Co=null,Eo=null;function ko(e,t,n){B(_o,t._currentValue),t._currentValue=n}function To(e){e._currentValue=_o.current,z(_o)}function No(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var l=o.child;i=i.firstContext;e:for(;null!==i;){var a=i;i=o;for(var c=0;c<t.length;c++)if(a.context===t[c]){i.lanes|=n,null!==(a=i.alternate)&&(a.lanes|=n),No(i.return,n,e),r||(l=null);break e}i=a.next}}else if(18===o.tag){if(null===(l=o.return))throw Error(s(341));l.lanes|=n,null!==(i=l.alternate)&&(i.lanes|=n),No(l,n,e),l=null}else l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===e){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}}function Ro(e,t,n,r){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(524288&o.flags)i=!0;else if(262144&o.flags)break;if(10===o.tag){var l=o.alternate;if(null===l)throw Error(s(387));if(null!==(l=l.memoizedProps)){var a=o.type;Qn(o.pendingProps.value,l.value)||(null!==e?e.push(a):e=[a])}}else if(o===q.current){if(null===(l=o.alternate))throw Error(s(387));l.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(df):e=[df])}o=o.return}null!==e&&Ao(t,e,n,r),t.flags|=262144}function Po(e){for(e=e.firstContext;null!==e;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Lo(e){Co=e,Eo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Oo(e){return Fo(Co,e)}function Mo(e,t){return null===Co&&Lo(e),Fo(e,t)}function Fo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Eo){if(null===e)throw Error(s(308));Eo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Eo=Eo.next=t;return n}var Do="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Io=r.unstable_scheduleCallback,$o=r.unstable_NormalPriority,jo={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zo(){return{controller:new Do,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&Io($o,function(){e.controller.abort()})}var Uo=null,Ho=0,Ko=0,Wo=null;function Vo(){if(0===--Ho&&null!==Uo){null!==Wo&&(Wo.status="fulfilled");var e=Uo;Uo=null,Ko=0,Wo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var qo=M.S;M.S=function(e,t){Oc=ae(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Uo){var n=Uo=[];Ho=0,Ko=Uu(),Wo={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ho++,t.then(Vo,Vo)}(0,t),null!==qo&&qo(e,t)};var Go=j(null);function Yo(){var e=Go.current;return null!==e?e:hc.pooledCache}function Jo(e,t){B(Go,null===t?Go.current:t.pool)}function Xo(){var e=Yo();return null===e?null:{parent:jo._currentValue,pool:e}}var Qo=Error(s(460)),Zo=Error(s(474)),ei=Error(s(542)),ti={then:function(){}};function ni(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ri(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Lt,Lt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw li(e=t.reason),e;default:if("string"==typeof t.status)t.then(Lt,Lt);else{if(null!==(e=hc)&&100<e.shellSuspendCounter)throw Error(s(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw li(e=t.reason),e}throw ii=t,Qo}}function oi(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw ii=e,Qo;throw e}}var ii=null;function si(){if(null===ii)throw Error(s(459));var e=ii;return ii=null,e}function li(e){if(e===Qo||e===ei)throw Error(s(483))}var ai=null,ci=0;function ui(e){var t=ci;return ci+=1,null===ai&&(ai=[]),ri(ai,e,t)}function di(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function fi(e,t){if(t.$$typeof===h)throw Error(s(525));throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=zr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function a(e,t,n,r){return null===t||6!==t.tag?((t=Kr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===k&&oi(i)===t.type)?(di(t=o(t,n.props),n),t.return=e,t):(di(t=Ur(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Kr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case g:return di(n=Ur(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case m:return(t=Vr(t,e.mode,n)).return=e,t;case k:return f(e,t=oi(t),n)}if(O(t)||R(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,ui(t),n);if(t.$$typeof===x)return f(e,Mo(e,t),n);fi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:a(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case g:return n.key===o?c(e,t,n,r):null;case m:return n.key===o?u(e,t,n,r):null;case k:return p(e,t,n=oi(n),r)}if(O(n)||R(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,ui(n),r);if(n.$$typeof===x)return p(e,t,Mo(e,n),r);fi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return a(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case g:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case m:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return h(e,t,n,r=oi(r),o)}if(O(r)||R(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return h(e,t,n,ui(r),o);if(r.$$typeof===x)return h(e,t,n,Mo(t,r),o);fi(t,r)}return null}function v(a,c,u,d){if("object"==typeof u&&null!==u&&u.type===y&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case g:e:{for(var b=u.key;null!==c;){if(c.key===b){if((b=u.type)===y){if(7===c.tag){n(a,c.sibling),(d=o(c,u.props.children)).return=a,a=d;break e}}else if(c.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===k&&oi(b)===c.type){n(a,c.sibling),di(d=o(c,u.props),u),d.return=a,a=d;break e}n(a,c);break}t(a,c),c=c.sibling}u.type===y?((d=Hr(u.props.children,a.mode,d,u.key)).return=a,a=d):(di(d=Ur(u.type,u.key,u.props,null,a.mode,d),u),d.return=a,a=d)}return l(a);case m:e:{for(b=u.key;null!==c;){if(c.key===b){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(a,c.sibling),(d=o(c,u.children||[])).return=a,a=d;break e}n(a,c);break}t(a,c),c=c.sibling}(d=Vr(u,a.mode,d)).return=a,a=d}return l(a);case k:return v(a,c,u=oi(u),d)}if(O(u))return function(o,s,l,a){for(var c=null,u=null,d=s,g=s=0,m=null;null!==d&&g<l.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=p(o,d,l[g],a);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(o,d),s=i(y,s,g),null===u?c=y:u.sibling=y,u=y,d=m}if(g===l.length)return n(o,d),fo&&oo(o,g),c;if(null===d){for(;g<l.length;g++)null!==(d=f(o,l[g],a))&&(s=i(d,s,g),null===u?c=d:u.sibling=d,u=d);return fo&&oo(o,g),c}for(d=r(d);g<l.length;g++)null!==(m=h(d,o,g,l[g],a))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),s=i(m,s,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach(function(e){return t(o,e)}),fo&&oo(o,g),c}(a,c,u,d);if(R(u)){if("function"!=typeof(b=R(u)))throw Error(s(150));return function(o,l,a,c){if(null==a)throw Error(s(151));for(var u=null,d=null,g=l,m=l=0,y=null,v=a.next();null!==g&&!v.done;m++,v=a.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=p(o,g,v.value,c);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(o,g),l=i(b,l,m),null===d?u=b:d.sibling=b,d=b,g=y}if(v.done)return n(o,g),fo&&oo(o,m),u;if(null===g){for(;!v.done;m++,v=a.next())null!==(v=f(o,v.value,c))&&(l=i(v,l,m),null===d?u=v:d.sibling=v,d=v);return fo&&oo(o,m),u}for(g=r(g);!v.done;m++,v=a.next())null!==(v=h(g,o,m,v.value,c))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),l=i(v,l,m),null===d?u=v:d.sibling=v,d=v);return e&&g.forEach(function(e){return t(o,e)}),fo&&oo(o,m),u}(a,c,u=b.call(u),d)}if("function"==typeof u.then)return v(a,c,ui(u),d);if(u.$$typeof===x)return v(a,c,Mo(a,u),d);fi(a,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(a,c.sibling),(d=o(c,u)).return=a,a=d):(n(a,c),(d=Kr(u,a.mode,d)).return=a,a=d),l(a)):n(a,c)}return function(e,t,n,r){try{ci=0;var o=v(e,t,n,r);return ai=null,o}catch(t){if(t===Qo||t===ei)throw t;var i=$r(29,t,null,e.mode);return i.lanes=r,i.return=e,i}}}var hi=pi(!0),gi=pi(!1),mi=!1;function yi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vi(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 bi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&pc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Fr(e),Mr(e,null,n),t}return Pr(e,r,t,n),Fr(e)}function xi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Me(e,n)}}function Si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var _i=!1;function Ci(){if(_i&&null!==Wo)throw Wo}function Ei(e,t,n,r){_i=!1;var o=e.updateQueue;mi=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var a=l,c=a.next;a.next=null,null===s?i=c:s.next=c,s=a;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=a)}if(null!==i){var d=o.baseState;for(s=0,u=c=a=null,l=i;;){var f=-536870913&l.lane,h=f!==l.lane;if(h?(mc&f)===f:(r&f)===f){0!==f&&f===Ko&&(_i=!0),null!==u&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var g=e,m=l;f=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){d=g.call(y,d,f);break e}d=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(f="function"==typeof(g=m.payload)?g.call(y,d,f):g))break e;d=p({},d,f);break e;case 2:mi=!0}}null!==(f=l.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[f]:h.push(f))}else h={lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=h,a=d):u=u.next=h,s|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(h=l).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===u&&(a=d),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null===i&&(o.shared.lanes=0),Cc|=s,e.lanes=s,e.memoizedState=d}}function ki(e,t){if("function"!=typeof e)throw Error(s(191,e));e.call(t)}function Ti(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)ki(n[e],t)}var Ni=j(null),Ai=j(0);function Ri(e,t){B(Ai,e=Sc),B(Ni,t),Sc=e|t.baseLanes}function Pi(){B(Ai,Sc),B(Ni,Ni.current)}function Li(){Sc=Ai.current,z(Ni),z(Ai)}var Oi=j(null),Mi=null;function Fi(e){var t=e.alternate;B(zi,1&zi.current),B(Oi,e),null===Mi&&(null===t||null!==Ni.current||null!==t.memoizedState)&&(Mi=e)}function Di(e){B(zi,zi.current),B(Oi,e),null===Mi&&(Mi=e)}function Ii(e){22===e.tag?(B(zi,zi.current),B(Oi,e),null===Mi&&(Mi=e)):$i()}function $i(){B(zi,zi.current),B(Oi,Oi.current)}function ji(e){z(Oi),Mi===e&&(Mi=null),z(zi)}var zi=j(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Pd(n)||Ld(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ui=0,Hi=null,Ki=null,Wi=null,Vi=!1,qi=!1,Gi=!1,Yi=0,Ji=0,Xi=null,Qi=0;function Zi(){throw Error(s(321))}function es(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function ts(e,t,n,r,o,i){return Ui=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=null===e||null===e.memoizedState?ml:yl,Gi=!1,i=n(r,o),Gi=!1,qi&&(i=rs(t,n,r,o)),ns(e),i}function ns(e){M.H=gl;var t=null!==Ki&&null!==Ki.next;if(Ui=0,Wi=Ki=Hi=null,Vi=!1,Ji=0,Xi=null,t)throw Error(s(300));null===e||Ol||null!==(e=e.dependencies)&&Po(e)&&(Ol=!0)}function rs(e,t,n,r){Hi=e;var o=0;do{if(qi&&(Xi=null),Ji=0,qi=!1,25<=o)throw Error(s(301));if(o+=1,Wi=Ki=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}M.H=vl,i=t(n,r)}while(qi);return i}function os(){var e=M.H,t=e.useState()[0];return t="function"==typeof t.then?us(t):t,e=e.useState()[0],(null!==Ki?Ki.memoizedState:null)!==e&&(Hi.flags|=1024),t}function is(){var e=0!==Yi;return Yi=0,e}function ss(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ls(e){if(Vi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Vi=!1}Ui=0,Wi=Ki=Hi=null,qi=!1,Ji=Yi=0,Xi=null}function as(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wi?Hi.memoizedState=Wi=e:Wi=Wi.next=e,Wi}function cs(){if(null===Ki){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Ki.next;var t=null===Wi?Hi.memoizedState:Wi.next;if(null!==t)Wi=t,Ki=e;else{if(null===e){if(null===Hi.alternate)throw Error(s(467));throw Error(s(310))}e={memoizedState:(Ki=e).memoizedState,baseState:Ki.baseState,baseQueue:Ki.baseQueue,queue:Ki.queue,next:null},null===Wi?Hi.memoizedState=Wi=e:Wi=Wi.next=e}return Wi}function us(e){var t=Ji;return Ji+=1,null===Xi&&(Xi=[]),e=ri(Xi,e,t),t=Hi,null===(null===Wi?t.memoizedState:Wi.next)&&(t=t.alternate,M.H=null===t||null===t.memoizedState?ml:yl),e}function ds(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return us(e);if(e.$$typeof===x)return Oo(e)}throw Error(s(438,String(e)))}function fs(e){var t=null,n=Hi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Hi.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=N;return t.index++,n}function ps(e,t){return"function"==typeof t?t(e):t}function hs(e){return gs(cs(),Ki,e)}function gs(e,t,n){var r=e.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=n;var o=e.baseQueue,i=r.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}t.baseQueue=o=i,r.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var a=l=null,c=null,u=t=o.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(mc&f)===f:(Ui&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ko&&(d=!0);else{if((Ui&p)===p){u=u.next,p===Ko&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(a=c=f,l=i):c=c.next=f,Hi.lanes|=p,Cc|=p}f=u.action,Gi&&n(i,f),i=u.hasEagerState?u.eagerState:n(i,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(a=c=p,l=i):c=c.next=p,Hi.lanes|=f,Cc|=f;u=u.next}while(null!==u&&u!==t);if(null===c?l=i:c.next=a,!Qn(i,e.memoizedState)&&(Ol=!0,d&&null!==(n=Wo)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=c,r.lastRenderedState=i}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ms(e){var t=cs(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);Qn(i,t.memoizedState)||(Ol=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ys(e,t,n){var r=Hi,o=cs(),i=fo;if(i){if(void 0===n)throw Error(s(407));n=n()}else n=t();var l=!Qn((Ki||o).memoizedState,n);if(l&&(o.memoizedState=n,Ol=!0),o=o.queue,Us(ws.bind(null,r,o,e),[e]),o.getSnapshot!==t||l||null!==Wi&&1&Wi.memoizedState.tag){if(r.flags|=2048,Is(9,{destroy:void 0},bs.bind(null,r,o,n,t),null),null===hc)throw Error(s(349));i||127&Ui||vs(r,t,n)}return n}function vs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Hi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function bs(e,t,n,r){t.value=n,t.getSnapshot=r,xs(t)&&Ss(e)}function ws(e,t,n){return n(function(){xs(t)&&Ss(e)})}function xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch(e){return!0}}function Ss(e){var t=Or(e,2);null!==t&&Gc(t,0,2)}function _s(e){var t=as();if("function"==typeof e){var n=e;if(e=n(),Gi){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:e},t}function Cs(e,t,n,r){return e.baseState=n,gs(e,Ki,"function"==typeof r?r:ps)}function Es(e,t,n,r,o){if(fl(e))throw Error(s(485));if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==M.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,ks(t,i)):(i.next=n.next,t.pending=n.next=i)}}function ks(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=M.T,s={};M.T=s;try{var l=n(o,r),a=M.S;null!==a&&a(s,l),Ts(e,t,l)}catch(n){As(e,t,n)}finally{null!==i&&null!==s.types&&(i.types=s.types),M.T=i}}else try{Ts(e,t,i=n(o,r))}catch(n){As(e,t,n)}}function Ts(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ns(e,t,n)},function(n){return As(e,t,n)}):Ns(e,t,n)}function Ns(e,t,n){t.status="fulfilled",t.value=n,Rs(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,ks(e,n)))}function As(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Rs(t),t=t.next}while(t!==r)}e.action=null}function Rs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ps(e,t){return t}function Ls(e,t){if(fo){var n=hc.formState;if(null!==n){e:{var r=Hi;if(fo){if(uo){t:{for(var o=uo,i=ho;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Od(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){uo=Od(o.nextSibling),r="F!"===o.data;break e}}mo(r)}r=!1}r&&(t=n[0])}}return(n=as()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ps,lastRenderedState:t},n.queue=r,n=cl.bind(null,Hi,r),r.dispatch=n,r=_s(!1),i=dl.bind(null,Hi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=as()).queue=o,n=Es.bind(null,Hi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Os(e){return Ms(cs(),Ki,e)}function Ms(e,t,n){if(t=gs(e,t,Ps)[0],e=hs(ps)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=us(t)}catch(e){if(e===Qo)throw ei;throw e}else r=t;var o=(t=cs()).queue,i=o.dispatch;return n!==t.memoizedState&&(Hi.flags|=2048,Is(9,{destroy:void 0},Fs.bind(null,o,n),null)),[r,i,e]}function Fs(e,t){e.action=t}function Ds(e){var t=cs(),n=Ki;if(null!==n)return Ms(t,n,e);cs(),t=t.memoizedState;var r=(n=cs()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Is(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Hi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function $s(){return cs().memoizedState}function js(e,t,n,r){var o=as();Hi.flags|=e,o.memoizedState=Is(1|t,{destroy:void 0},n,void 0===r?null:r)}function zs(e,t,n,r){var o=cs();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Ki&&null!==r&&es(r,Ki.memoizedState.deps)?o.memoizedState=Is(t,i,n,r):(Hi.flags|=e,o.memoizedState=Is(1|t,i,n,r))}function Bs(e,t){js(8390656,8,e,t)}function Us(e,t){zs(2048,8,e,t)}function Hs(e){var t=cs().memoizedState;return function(e){Hi.flags|=4;var t=Hi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&pc)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Ks(e,t){return zs(4,2,e,t)}function Ws(e,t){return zs(4,4,e,t)}function Vs(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function qs(e,t,n){n=null!=n?n.concat([e]):null,zs(4,4,Vs.bind(null,t,e),n)}function Gs(){}function Ys(e,t){var n=cs();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&es(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Js(e,t){var n=cs();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&es(t,r[1]))return r[0];if(r=e(),Gi){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function Xs(e,t,n){return void 0===n||1073741824&Ui&&!(261930&mc)?e.memoizedState=t:(e.memoizedState=n,e=qc(),Hi.lanes|=e,Cc|=e,n)}function Qs(e,t,n,r){return Qn(n,t)?n:null!==Ni.current?(e=Xs(e,n,r),Qn(e,t)||(Ol=!0),e):42&Ui&&(!(1073741824&Ui)||261930&mc)?(e=qc(),Hi.lanes|=e,Cc|=e,t):(Ol=!0,e.memoizedState=n)}function Zs(e,t,n,r,o){var i=F.p;F.p=0!==i&&8>i?i:8;var s,l,a,c=M.T,u={};M.T=u,dl(e,!1,t,n);try{var d=o(),f=M.S;null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?ul(e,t,(s=r,l=[],a={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){a.status="fulfilled",a.value=s;for(var e=0;e<l.length;e++)(0,l[e])(s)},function(e){for(a.status="rejected",a.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),a),Vc()):ul(e,t,r,Vc())}catch(n){ul(e,t,{then:function(){},status:"rejected",reason:n},Vc())}finally{F.p=i,null!==c&&null!==u.types&&(c.types=u.types),M.T=c}}function el(){}function tl(e,t,n,r){if(5!==e.tag)throw Error(s(476));var o=nl(e).queue;Zs(e,o,t,D,null===n?el:function(){return rl(e),n(r)})}function nl(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function rl(e){var t=nl(e);null===t.next&&(t=e.alternate.memoizedState),ul(e,t.next.queue,{},Vc())}function ol(){return Oo(df)}function il(){return cs().memoizedState}function sl(){return cs().memoizedState}function ll(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Vc(),r=wi(t,e=bi(n),n);return null!==r&&(Gc(r,0,n),xi(r,t,n)),t={cache:zo()},void(e.payload=t)}t=t.return}}function al(e,t,n){var r=Vc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fl(e)?pl(t,n):null!==(n=Lr(e,t,n,r))&&(Gc(n,0,r),hl(n,t,r))}function cl(e,t,n){ul(e,t,n,Vc())}function ul(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fl(e))pl(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,Qn(l,s))return Pr(e,t,o,0),null===hc&&Rr(),!1}catch(e){}if(null!==(n=Lr(e,t,o,r)))return Gc(n,0,r),hl(n,t,r),!0}return!1}function dl(e,t,n,r){if(r={lane:2,revertLane:Uu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fl(e)){if(t)throw Error(s(479))}else null!==(t=Lr(e,n,r,2))&&Gc(t,0,2)}function fl(e){var t=e.alternate;return e===Hi||null!==t&&t===Hi}function pl(e,t){qi=Vi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hl(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Me(e,n)}}var gl={readContext:Oo,use:ds,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useLayoutEffect:Zi,useInsertionEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useDeferredValue:Zi,useTransition:Zi,useSyncExternalStore:Zi,useId:Zi,useHostTransitionStatus:Zi,useFormState:Zi,useActionState:Zi,useOptimistic:Zi,useMemoCache:Zi,useCacheRefresh:Zi};gl.useEffectEvent=Zi;var ml={readContext:Oo,use:ds,useCallback:function(e,t){return as().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Bs,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,js(4194308,4,Vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return js(4194308,4,e,t)},useInsertionEffect:function(e,t){js(4,2,e,t)},useMemo:function(e,t){var n=as();t=void 0===t?null:t;var r=e();if(Gi){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=as();if(void 0!==n){var o=n(t);if(Gi){be(!0);try{n(t)}finally{be(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=al.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},as().memoizedState=e},useState:function(e){var t=(e=_s(e)).queue,n=cl.bind(null,Hi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Xs(as(),e,t)},useTransition:function(){var e=_s(!1);return e=Zs.bind(null,Hi,e.queue,!0,!1),as().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Hi,o=as();if(fo){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===hc)throw Error(s(349));127&mc||vs(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Bs(ws.bind(null,r,i,e),[e]),r.flags|=2048,Is(9,{destroy:void 0},bs.bind(null,r,i,n,t),null),n},useId:function(){var e=as(),t=hc.identifierPrefix;if(fo){var n=ro;t="_"+t+"R_"+(n=(no&~(1<<32-we(no)-1)).toString(32)+n),0<(n=Yi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Qi++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ol,useFormState:Ls,useActionState:Ls,useOptimistic:function(e){var t=as();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dl.bind(null,Hi,!0,n),n.dispatch=t,[e,t]},useMemoCache:fs,useCacheRefresh:function(){return as().memoizedState=ll.bind(null,Hi)},useEffectEvent:function(e){var t=as(),n={impl:e};return t.memoizedState=n,function(){if(2&pc)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},yl={readContext:Oo,use:ds,useCallback:Ys,useContext:Oo,useEffect:Us,useImperativeHandle:qs,useInsertionEffect:Ks,useLayoutEffect:Ws,useMemo:Js,useReducer:hs,useRef:$s,useState:function(){return hs(ps)},useDebugValue:Gs,useDeferredValue:function(e,t){return Qs(cs(),Ki.memoizedState,e,t)},useTransition:function(){var e=hs(ps)[0],t=cs().memoizedState;return["boolean"==typeof e?e:us(e),t]},useSyncExternalStore:ys,useId:il,useHostTransitionStatus:ol,useFormState:Os,useActionState:Os,useOptimistic:function(e,t){return Cs(cs(),0,e,t)},useMemoCache:fs,useCacheRefresh:sl};yl.useEffectEvent=Hs;var vl={readContext:Oo,use:ds,useCallback:Ys,useContext:Oo,useEffect:Us,useImperativeHandle:qs,useInsertionEffect:Ks,useLayoutEffect:Ws,useMemo:Js,useReducer:ms,useRef:$s,useState:function(){return ms(ps)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=cs();return null===Ki?Xs(n,e,t):Qs(n,Ki.memoizedState,e,t)},useTransition:function(){var e=ms(ps)[0],t=cs().memoizedState;return["boolean"==typeof e?e:us(e),t]},useSyncExternalStore:ys,useId:il,useHostTransitionStatus:ol,useFormState:Ds,useActionState:Ds,useOptimistic:function(e,t){var n=cs();return null!==Ki?Cs(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fs,useCacheRefresh:sl};function bl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}vl.useEffectEvent=Hs;var wl={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vc(),o=bi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=wi(e,o,r))&&(Gc(t,0,r),xi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vc(),o=bi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=wi(e,o,r))&&(Gc(t,0,r),xi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vc(),r=bi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=wi(e,r,n))&&(Gc(t,0,n),xi(t,e,n))}};function xl(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&Zn(n,r)&&Zn(o,i))}function Sl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wl.enqueueReplaceState(t,t.state,null)}function _l(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=p({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function Cl(e){kr(e)}function El(e){console.error(e)}function kl(e){kr(e)}function Tl(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Nl(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Al(e,t,n){return(n=bi(n)).tag=3,n.payload={element:null},n.callback=function(){Tl(e,t)},n}function Rl(e){return(e=bi(e)).tag=3,e}function Pl(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Nl(t,n,r)}}var s=n.stateNode;null!==s&&"function"==typeof s.componentDidCatch&&(e.callback=function(){Nl(t,n,r),"function"!=typeof o&&(null===Dc?Dc=new Set([this]):Dc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ll=Error(s(461)),Ol=!1;function Ml(e,t,n,r){t.child=null===e?gi(t,null,n,r):hi(t,e.child,n,r)}function Fl(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var s={};for(var l in r)"ref"!==l&&(s[l]=r[l])}else s=r;return Lo(t),r=ts(e,t,n,s,i,o),l=is(),null===e||Ol?(fo&&l&&so(t),t.flags|=1,Ml(e,t,r,o),t.child):(ss(e,t,o),oa(e,t,o))}function Dl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||jr(i)||void 0!==i.defaultProps||null!==n.compare?((e=Ur(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Il(e,t,i,r,o))}if(i=e.child,!ia(e,o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(s,r)&&e.ref===t.ref)return oa(e,t,o)}return t.flags|=1,(e=zr(i,r)).ref=t.ref,e.return=t,t.child=e}function Il(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Zn(i,r)&&e.ref===t.ref){if(Ol=!1,t.pendingProps=r=i,!ia(e,o))return t.lanes=e.lanes,oa(e,t,o);131072&e.flags&&(Ol=!0)}}return Kl(e,t,n,r,o)}function $l(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return zl(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,zl(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Jo(0,null!==i?i.cachePool:null),null!==i?Ri(t,i):Pi(),Ii(t)}else null!==i?(Jo(0,i.cachePool),Ri(t,i),$i(),t.memoizedState=null):(null!==e&&Jo(0,null),Pi(),$i());return Ml(e,t,o,n),t.child}function jl(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zl(e,t,n,r,o){var i=Yo();return i=null===i?null:{parent:jo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Jo(0,null),Pi(),Ii(t),null!==e&&Ro(e,t,r,!0),t.childLanes=o,null}function Bl(e,t){return(t=Zl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Ul(e,t,n){return hi(t,e.child,null,n),(e=Bl(t,t.pendingProps)).flags|=2,ji(t),t.memoizedState=null,e}function Hl(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(s(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Kl(e,t,n,r,o){return Lo(t),n=ts(e,t,n,r,void 0,o),r=is(),null===e||Ol?(fo&&r&&so(t),t.flags|=1,Ml(e,t,n,o),t.child):(ss(e,t,o),oa(e,t,o))}function Wl(e,t,n,r,o,i){return Lo(t),t.updateQueue=null,n=rs(t,r,n,o),ns(e),r=is(),null===e||Ol?(fo&&r&&so(t),t.flags|=1,Ml(e,t,n,i),t.child):(ss(e,t,i),oa(e,t,i))}function Vl(e,t,n,r,o){if(Lo(t),null===t.stateNode){var i=Dr,s=n.contextType;"object"==typeof s&&null!==s&&(i=Oo(s)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=wl,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},yi(t),s=n.contextType,i.context="object"==typeof s&&null!==s?Oo(s):Dr,i.state=t.memoizedState,"function"==typeof(s=n.getDerivedStateFromProps)&&(bl(t,n,s,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(s=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),s!==i.state&&wl.enqueueReplaceState(i,i.state,null),Ei(t,r,i,o),Ci(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var l=t.memoizedProps,a=_l(n,l);i.props=a;var c=i.context,u=n.contextType;s=Dr,"object"==typeof u&&null!==u&&(s=Oo(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,l=t.pendingProps!==l,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l||c!==s)&&Sl(t,i,r,s),mi=!1;var f=t.memoizedState;i.state=f,Ei(t,r,i,o),Ci(),c=t.memoizedState,l||f!==c||mi?("function"==typeof d&&(bl(t,n,d,r),c=t.memoizedState),(a=mi||xl(t,n,a,r,f,c,s))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=s,r=a):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,vi(e,t),u=_l(n,s=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,a=Dr,"object"==typeof c&&null!==c&&(a=Oo(c)),(c="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==a)&&Sl(t,i,r,a),mi=!1,f=t.memoizedState,i.state=f,Ei(t,r,i,o),Ci();var p=t.memoizedState;s!==d||f!==p||mi||null!==e&&null!==e.dependencies&&Po(e.dependencies)?("function"==typeof l&&(bl(t,n,l,r),p=t.memoizedState),(u=mi||xl(t,n,u,r,f,p,a)||null!==e&&null!==e.dependencies&&Po(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,a),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,a)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=a,r=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Hl(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=hi(t,e.child,null,o),t.child=hi(t,null,n,o)):Ml(e,t,n,o),t.memoizedState=i.state,e=t.child):e=oa(e,t,o),e}function ql(e,t,n,r){return wo(),t.flags|=256,Ml(e,t,n,r),t.child}var Gl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yl(e){return{baseLanes:e,cachePool:Xo()}}function Jl(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Tc),e}function Xl(e,t,n){var r,o=t.pendingProps,i=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&zi.current)),r&&(i=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(fo){if(i?Fi(t):$i(),(e=uo)?null!==(e=null!==(e=Rd(e,ho))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==to?{id:no,overflow:ro}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,co=t,uo=null):e=null,null===e)throw mo(t);return Ld(e)?t.lanes=32:t.lanes=536870912,null}var a=o.children;return o=o.fallback,i?($i(),a=Zl({mode:"hidden",children:a},i=t.mode),o=Hr(o,i,n,null),a.return=t,o.return=t,a.sibling=o,t.child=a,(o=t.child).memoizedState=Yl(n),o.childLanes=Jl(e,r,n),t.memoizedState=Gl,jl(null,o)):(Fi(t),Ql(t,a))}var c=e.memoizedState;if(null!==c&&null!==(a=c.dehydrated)){if(l)256&t.flags?(Fi(t),t.flags&=-257,t=ea(e,t,n)):null!==t.memoizedState?($i(),t.child=e.child,t.flags|=128,t=null):($i(),a=o.fallback,i=t.mode,o=Zl({mode:"visible",children:o.children},i),(a=Hr(a,i,n,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,hi(t,e.child,null,n),(o=t.child).memoizedState=Yl(n),o.childLanes=Jl(e,r,n),t.memoizedState=Gl,t=jl(null,o));else if(Fi(t),Ld(a)){if(r=a.nextSibling&&a.nextSibling.dataset)var u=r.dgst;r=u,(o=Error(s(419))).stack="",o.digest=r,So({value:o,source:null,stack:null}),t=ea(e,t,n)}else if(Ol||Ro(e,t,n,!1),r=0!==(n&e.childLanes),Ol||r){if(null!==(r=hc)&&0!==(o=Fe(r,n))&&o!==c.retryLane)throw c.retryLane=o,Or(e,o),Gc(r,0,o),Ll;Pd(a)||su(),t=ea(e,t,n)}else Pd(a)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,uo=Od(a.nextSibling),co=t,fo=!0,po=null,ho=!1,null!==e&&ao(t,e),(t=Ql(t,o.children)).flags|=4096);return t}return i?($i(),a=o.fallback,i=t.mode,u=(c=e.child).sibling,(o=zr(c,{mode:"hidden",children:o.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?a=zr(u,a):(a=Hr(a,i,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,jl(null,o),o=t.child,null===(a=e.child.memoizedState)?a=Yl(n):(null!==(i=a.cachePool)?(c=jo._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=Xo(),a={baseLanes:a.baseLanes|n,cachePool:i}),o.memoizedState=a,o.childLanes=Jl(e,r,n),t.memoizedState=Gl,jl(e.child,o)):(Fi(t),e=(n=e.child).sibling,(n=zr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Ql(e,t){return(t=Zl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zl(e,t){return(e=$r(22,e,null,t)).lanes=0,e}function ea(e,t,n){return hi(t,e.child,null,n),(e=Ql(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ta(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),No(e.return,t,n)}function na(e,t,n,r,o,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o,s.treeForkCount=i)}function ra(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var s=zi.current,l=!!(2&s);if(l?(s=1&s|2,t.flags|=128):s&=1,B(zi,s),Ml(e,t,r,n),r=fo?Qr:0,!l&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ta(e,n,t);else if(19===e.tag)ta(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),na(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}na(t,!0,n,null,i,r);break;case"together":na(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function oa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Cc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ro(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=zr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ia(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Po(e))}function sa(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ol=!0;else{if(!(ia(e,n)||128&t.flags))return Ol=!1,function(e,t,n){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),ko(0,jo,e.memoizedState.cache),wo();break;case 27:case 5:J(t);break;case 4:G(t,t.stateNode.containerInfo);break;case 10:ko(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Di(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Fi(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Xl(e,t,n):(Fi(t),null!==(e=oa(e,t,n))?e.sibling:null);Fi(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ro(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return ra(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(zi,zi.current),r)break;return null;case 22:return t.lanes=0,$l(e,t,n,t.pendingProps);case 24:ko(0,jo,e.memoizedState.cache)}return oa(e,t,n)}(e,t,n);Ol=!!(131072&e.flags)}else Ol=!1,fo&&1048576&t.flags&&io(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=oi(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var o=e.$$typeof;if(o===S){t.tag=11,t=Fl(null,t,e,r,n);break e}if(o===E){t.tag=14,t=Dl(null,t,e,r,n);break e}}throw t=L(e)||e,Error(s(306,t,""))}jr(e)?(r=_l(e,r),t.tag=1,t=Vl(null,t,e,r,n)):(t.tag=0,t=Kl(null,t,e,r,n))}return t;case 0:return Kl(e,t,t.type,t.pendingProps,n);case 1:return Vl(e,t,r=t.type,o=_l(r,t.pendingProps),n);case 3:e:{if(G(t,t.stateNode.containerInfo),null===e)throw Error(s(387));r=t.pendingProps;var i=t.memoizedState;o=i.element,vi(e,t),Ei(t,r,null,n);var l=t.memoizedState;if(r=l.cache,ko(0,jo,r),r!==i.cache&&Ao(t,[jo],n,!0),Ci(),r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=ql(e,t,r,n);break e}if(r!==o){So(o=Gr(Error(s(424)),t)),t=ql(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,uo=Od(e.firstChild),co=t,fo=!0,po=null,ho=!0,n=gi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(wo(),r===o){t=oa(e,t,n);break e}Ml(e,t,r,n)}t=t.child}return t;case 26:return Hl(e,t),null===e?(n=Wd(t.type,null,t.pendingProps,null))?t.memoizedState=n:fo||(n=t.type,e=t.pendingProps,(r=md(V.current).createElement(n))[Be]=t,r[Ue]=e,fd(r,n,e),et(r),t.stateNode=r):t.memoizedState=Wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return J(t),null===e&&fo&&(r=t.stateNode=Id(t.type,t.pendingProps,V.current),co=t,ho=!0,o=uo,kd(t.type)?(Md=o,uo=Od(r.firstChild)):uo=o),Ml(e,t,t.pendingProps.children,n),Hl(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&fo&&((o=r=uo)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ge])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Od(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,ho))?(t.stateNode=r,co=t,uo=Od(r.firstChild),ho=!1,o=!0):o=!1),o||mo(t)),J(t),o=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,r=i.children,bd(o,i)?r=null:null!==l&&bd(o,l)&&(t.flags|=32),null!==t.memoizedState&&(o=ts(e,t,os,null,null,n),df._currentValue=o),Hl(e,t),Ml(e,t,r,n),t.child;case 6:return null===e&&fo&&((e=n=uo)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Od(e.nextSibling)))return null}return e}(n,t.pendingProps,ho))?(t.stateNode=n,co=t,uo=null,e=!0):e=!1),e||mo(t)),null;case 13:return Xl(e,t,n);case 4:return G(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=hi(t,null,r,n):Ml(e,t,r,n),t.child;case 11:return Fl(e,t,t.type,t.pendingProps,n);case 7:return Ml(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ml(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,ko(0,t.type,r.value),Ml(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Lo(t),r=r(o=Oo(o)),t.flags|=1,Ml(e,t,r,n),t.child;case 14:return Dl(e,t,t.type,t.pendingProps,n);case 15:return Il(e,t,t.type,t.pendingProps,n);case 19:return ra(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,o=!!(128&t.flags);if(t.flags&=-129,null===e){if(fo){if("hidden"===r.mode)return e=Bl(t,r),t.lanes=536870912,jl(null,e);if(Di(t),(e=uo)?null!==(e=null!==(e=Rd(e,ho))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==to?{id:no,overflow:ro}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,co=t,uo=null):e=null,null===e)throw mo(t);return t.lanes=536870912,null}return Bl(t,r)}var i=e.memoizedState;if(null!==i){var l=i.dehydrated;if(Di(t),o)if(256&t.flags)t.flags&=-257,t=Ul(e,t,n);else{if(null===t.memoizedState)throw Error(s(558));t.child=e.child,t.flags|=128,t=null}else if(Ol||Ro(e,t,n,!1),o=0!==(n&e.childLanes),Ol||o){if(null!==(r=hc)&&0!==(l=Fe(r,n))&&l!==i.retryLane)throw i.retryLane=l,Or(e,l),Gc(r,0,l),Ll;su(),t=Ul(e,t,n)}else e=i.treeContext,uo=Od(l.nextSibling),co=t,fo=!0,po=null,ho=!1,null!==e&&ao(t,e),(t=Bl(t,r)).flags|=4096;return t}return(e=zr(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return $l(e,t,n,t.pendingProps);case 24:return Lo(t),r=Oo(jo),null===e?(null===(o=Yo())&&(o=hc,i=zo(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:r,cache:o},yi(t),ko(0,jo,o)):(0!==(e.lanes&n)&&(vi(e,t),Ei(t,null,null,n),Ci()),o=e.memoizedState,i=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),ko(0,jo,r)):(r=i.cache,ko(0,jo,r),r!==o.cache&&Ao(t,[jo],n,!0))),Ml(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function la(e){e.flags|=4}function aa(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!ru())throw ii=ti,Zo;e.flags|=8192}}else e.flags&=-16777217}function ca(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!of(t)){if(!ru())throw ii=ti,Zo;e.flags|=8192}}function ua(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Re():536870912,e.lanes|=t,Nc|=t)}function da(e,t){if(!fo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fa(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pa(e,t,n){var r=t.pendingProps;switch(lo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return fa(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),To(jo),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(bo(t)?la(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,xo())),fa(t),null;case 26:var o=t.type,i=t.memoizedState;return null===e?(la(t),null!==i?(fa(t),ca(t,i)):(fa(t),aa(t,o,0,0,n))):i?i!==e.memoizedState?(la(t),fa(t),ca(t,i)):(fa(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&la(t),fa(t),aa(t,o,0,0,n)),null;case 27:if(X(t),n=V.current,o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&la(t);else{if(!r){if(null===t.stateNode)throw Error(s(166));return fa(t),null}e=K.current,bo(t)?yo(t):(e=Id(o,r,n),t.stateNode=e,la(t))}return fa(t),null;case 5:if(X(t),o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&la(t);else{if(!r){if(null===t.stateNode)throw Error(s(166));return fa(t),null}if(i=K.current,bo(t))yo(t);else{var l=md(V.current);switch(i){case 1:i=l.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:i=l.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":i=l.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":i=l.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":(i=l.createElement("div")).innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i="string"==typeof r.is?l.createElement(o,{is:r.is}):l.createElement(o)}}i[Be]=t,i[Ue]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)i.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=i;e:switch(fd(i,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&la(t)}}return fa(t),aa(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&la(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(e=V.current,bo(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=co))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||cd(e.nodeValue,n)))||mo(t,!0)}else(e=md(e).createTextNode(r))[Be]=t,t.stateNode=e}return fa(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=bo(t),null!==n){if(null===e){if(!r)throw Error(s(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(s(557));e[Be]=t}else wo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fa(t),e=!1}else n=xo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(ji(t),t):(ji(t),null);if(128&t.flags)throw Error(s(558))}return fa(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=bo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(s(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(s(317));o[Be]=t}else wo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fa(t),o=!1}else o=xo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(ji(t),t):(ji(t),null)}return ji(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),i=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ua(t,t.updateQueue),fa(t),null);case 4:return Y(),null===e&&Zu(t.stateNode.containerInfo),fa(t),null;case 10:return To(t.type),fa(t),null;case 19:if(z(zi),null===(r=t.memoizedState))return fa(t),null;if(o=!!(128&t.flags),null===(i=r.rendering))if(o)da(r,!1);else{if(0!==_c||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=Bi(e))){for(t.flags|=128,da(r,!1),e=i.updateQueue,t.updateQueue=e,ua(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return B(zi,1&zi.current|2),fo&&oo(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&ae()>Mc&&(t.flags|=128,o=!0,da(r,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=Bi(i))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ua(t,e),da(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!fo)return fa(t),null}else 2*ae()-r.renderingStartTime>Mc&&536870912!==n&&(t.flags|=128,o=!0,da(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=r.last)?e.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ae(),e.sibling=null,n=zi.current,B(zi,o?1&n|2:1&n),fo&&oo(t,r.treeForkCount),e):(fa(t),null);case 22:case 23:return ji(t),Li(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(fa(t),6&t.subtreeFlags&&(t.flags|=8192)):fa(t),null!==(n=t.updateQueue)&&ua(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&z(Go),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),To(jo),fa(t),null;case 25:case 30:return null}throw Error(s(156,t.tag))}function ha(e,t){switch(lo(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return To(jo),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(ji(t),null===t.alternate)throw Error(s(340));wo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(ji(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));wo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return z(zi),null;case 4:return Y(),null;case 10:return To(t.type),null;case 22:case 23:return ji(t),Li(),null!==e&&z(Go),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return To(jo),null;default:return null}}function ga(e,t){switch(lo(t),t.tag){case 3:To(jo),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&ji(t);break;case 13:ji(t);break;case 19:z(zi);break;case 10:To(t.type);break;case 22:case 23:ji(t),Li(),null!==e&&z(Go);break;case 24:To(jo)}}function ma(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,s=n.inst;r=i(),s.destroy=r}n=n.next}while(n!==o)}}catch(e){_u(t,t.return,e)}}function ya(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var s=r.inst,l=s.destroy;if(void 0!==l){s.destroy=void 0,o=t;var a=n,c=l;try{c()}catch(e){_u(o,a,e)}}}r=r.next}while(r!==i)}}catch(e){_u(t,t.return,e)}}function va(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ti(t,n)}catch(t){_u(e,e.return,t)}}}function ba(e,t,n){n.props=_l(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){_u(e,t,n)}}function wa(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){_u(e,t,n)}}function xa(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){_u(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){_u(e,t,n)}else n.current=null}function Sa(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(t){_u(e,e.return,t)}}function _a(e,t,n){try{var r=e.stateNode;!function(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 o=null,i=null,l=null,a=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:r.hasOwnProperty(h)||ud(e,t,h,null,r,f)}}for(var p in r){var h=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":o=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":l=h;break;case"defaultValue":a=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(s(137,t));break;default:h!==f&&ud(e,t,p,h,r,f)}}return void vt(e,l,a,c,u,d,i,o);case"select":for(i in h=l=a=p=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":h=c;default:r.hasOwnProperty(i)||ud(e,t,i,null,r,c)}for(o in r)if(i=r[o],c=n[o],r.hasOwnProperty(o)&&(null!=i||null!=c))switch(o){case"value":p=i;break;case"defaultValue":a=i;break;case"multiple":l=i;default:i!==c&&ud(e,t,o,i,r,c)}return t=a,n=l,r=h,void(null!=p?xt(e,!!n,p,!1):!!r!=!!n&&(null!=t?xt(e,!!n,t,!0):xt(e,!!n,n?[]:"",!1)));case"textarea":for(a in h=p=null,n)if(o=n[a],n.hasOwnProperty(a)&&null!=o&&!r.hasOwnProperty(a))switch(a){case"value":case"children":break;default:ud(e,t,a,null,r,o)}for(l in r)if(o=r[l],i=n[l],r.hasOwnProperty(l)&&(null!=o||null!=i))switch(l){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(s(91));break;default:o!==i&&ud(e,t,l,o,r,i)}return void St(e,p,h);case"option":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&("selected"===g?e.selected=!1:ud(e,t,g,null,r,p));for(c in r)p=r[c],h=n[c],!r.hasOwnProperty(c)||p===h||null==p&&null==h||("selected"===c?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:ud(e,t,c,p,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 m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m)&&ud(e,t,m,null,r,p);for(u in r)if(p=r[u],h=n[u],r.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(s(137,t));break;default:ud(e,t,u,p,r,h)}return;default:if(Nt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&dd(e,t,y,void 0,r,p);for(d in r)p=r[d],h=n[d],!r.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||dd(e,t,d,p,r,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&ud(e,t,v,null,r,p);for(f in r)p=r[f],h=n[f],!r.hasOwnProperty(f)||p===h||null==p&&null==h||ud(e,t,f,p,r,h)}(r,e.type,n,t),r[Ue]=t}catch(t){_u(e,e.return,t)}}function Ca(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&kd(e.type)||4===e.tag}function Ea(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ca(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&kd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ka(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Lt));else if(4!==r&&(27===r&&kd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(ka(e,t,n),e=e.sibling;null!==e;)ka(e,t,n),e=e.sibling}function Ta(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&kd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Ta(e,t,n),e=e.sibling;null!==e;)Ta(e,t,n),e=e.sibling}function Na(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);fd(t,r,n),t[Be]=e,t[Ue]=n}catch(t){_u(e,e.return,t)}}var Aa=!1,Ra=!1,Pa=!1,La="function"==typeof WeakSet?WeakSet:Set,Oa=null;function Ma(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ga(e,n),4&r&&ma(5,n);break;case 1:if(Ga(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){_u(n,n.return,e)}else{var o=_l(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){_u(n,n.return,e)}}64&r&&va(n),512&r&&wa(n,n.return);break;case 3:if(Ga(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Ti(e,t)}catch(e){_u(n,n.return,e)}}break;case 27:null===t&&4&r&&Na(n);case 26:case 5:Ga(e,n),null===t&&4&r&&Sa(n),512&r&&wa(n,n.return);break;case 12:Ga(e,n);break;case 31:Ga(e,n),4&r&&za(e,n);break;case 13:Ga(e,n),4&r&&Ba(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Tu.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Aa)){t=null!==t&&null!==t.memoizedState||Ra,o=Aa;var i=Ra;Aa=r,(Ra=t)&&!i?Ja(e,n,!!(8772&n.subtreeFlags)):Ga(e,n),Aa=o,Ra=i}break;case 30:break;default:Ga(e,n)}}function Fa(e){var t=e.alternate;null!==t&&(e.alternate=null,Fa(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ye(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 Da=null,Ia=!1;function $a(e,t,n){for(n=n.child;null!==n;)ja(e,t,n),n=n.sibling}function ja(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ye,n)}catch(e){}switch(n.tag){case 26:Ra||xa(n,t),$a(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ra||xa(n,t);var r=Da,o=Ia;kd(n.type)&&(Da=n.stateNode,Ia=!1),$a(e,t,n),$d(n.stateNode),Da=r,Ia=o;break;case 5:Ra||xa(n,t);case 6:if(r=Da,o=Ia,Da=null,$a(e,t,n),Ia=o,null!==(Da=r))if(Ia)try{(9===Da.nodeType?Da.body:"HTML"===Da.nodeName?Da.ownerDocument.body:Da).removeChild(n.stateNode)}catch(e){_u(n,t,e)}else try{Da.removeChild(n.stateNode)}catch(e){_u(n,t,e)}break;case 18:null!==Da&&(Ia?(Td(9===(e=Da).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Wf(e)):Td(Da,n.stateNode));break;case 4:r=Da,o=Ia,Da=n.stateNode.containerInfo,Ia=!0,$a(e,t,n),Da=r,Ia=o;break;case 0:case 11:case 14:case 15:ya(2,n,t),Ra||ya(4,n,t),$a(e,t,n);break;case 1:Ra||(xa(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ba(n,t,r)),$a(e,t,n);break;case 21:$a(e,t,n);break;case 22:Ra=(r=Ra)||null!==n.memoizedState,$a(e,t,n),Ra=r;break;default:$a(e,t,n)}}function za(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Wf(e)}catch(e){_u(t,t.return,e)}}}function Ba(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Wf(e)}catch(e){_u(t,t.return,e)}}function Ua(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new La),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new La),t;default:throw Error(s(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nu.bind(null,e,t);t.then(r,r)}})}function Ha(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],i=e,l=t,a=l;e:for(;null!==a;){switch(a.tag){case 27:if(kd(a.type)){Da=a.stateNode,Ia=!1;break e}break;case 5:Da=a.stateNode,Ia=!1;break e;case 3:case 4:Da=a.stateNode.containerInfo,Ia=!0;break e}a=a.return}if(null===Da)throw Error(s(160));ja(i,l,o),Da=null,Ia=!1,null!==(i=o.alternate)&&(i.return=null),o.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Wa(t,e),t=t.sibling}var Ka=null;function Wa(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ha(t,e),Va(e),4&r&&(ya(3,e,e.return),ma(3,e),ya(5,e,e.return));break;case 1:Ha(t,e),Va(e),512&r&&(Ra||null===n||xa(n,n.return)),64&r&&Aa&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var o=Ka;if(Ha(t,e),Va(e),512&r&&(Ra||null===n||xa(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(i=o.getElementsByTagName("title")[0])||i[Ge]||i[Be]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(r),o.head.insertBefore(i,o.querySelector("head > title"))),fd(i,r,n),i[Be]=e,et(i),r=i;break e;case"link":var l=nf("link","href",o).get(r+(n.href||""));if(l)for(var a=0;a<l.length;a++)if((i=l[a]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){l.splice(a,1);break t}fd(i=o.createElement(r),r,n),o.head.appendChild(i);break;case"meta":if(l=nf("meta","content",o).get(r+(n.content||"")))for(a=0;a<l.length;a++)if((i=l[a]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){l.splice(a,1);break t}fd(i=o.createElement(r),r,n),o.head.appendChild(i);break;default:throw Error(s(468,r))}i[Be]=e,et(i),r=i}e.stateNode=r}else rf(o,e.type,e.stateNode);else e.stateNode=Xd(o,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===r?rf(o,e.type,e.stateNode):Xd(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&_a(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ha(t,e),Va(e),512&r&&(Ra||null===n||xa(n,n.return)),null!==n&&4&r&&_a(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ha(t,e),Va(e),512&r&&(Ra||null===n||xa(n,n.return)),32&e.flags){o=e.stateNode;try{Ct(o,"")}catch(t){_u(e,e.return,t)}}4&r&&null!=e.stateNode&&_a(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(Pa=!0);break;case 6:if(Ha(t,e),Va(e),4&r){if(null===e.stateNode)throw Error(s(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){_u(e,e.return,t)}}break;case 3:if(tf=null,o=Ka,Ka=Bd(t.containerInfo),Ha(t,e),Ka=o,Va(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wf(t.containerInfo)}catch(t){_u(e,e.return,t)}Pa&&(Pa=!1,qa(e));break;case 4:r=Ka,Ka=Bd(e.stateNode.containerInfo),Ha(t,e),Va(e),Ka=r;break;case 12:default:Ha(t,e),Va(e);break;case 31:case 19:Ha(t,e),Va(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ua(e,r));break;case 13:Ha(t,e),Va(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Lc=ae()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ua(e,r));break;case 22:o=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Aa,d=Ra;if(Aa=u||o,Ra=d||c,Ha(t,e),Ra=d,Aa=u,Va(e),8192&r)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||c||Aa||Ra||Ya(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,o)"function"==typeof(l=i.style).setProperty?l.setProperty("display","none","important"):l.display="none";else{a=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;a.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){_u(c,c.return,e)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=o?"":c.memoizedProps}catch(e){_u(c,c.return,e)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;o?Nd(h,!0):Nd(c.stateNode,!1)}catch(e){_u(c,c.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Ua(e,n));case 30:case 21:}}function Va(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Ca(r)){n=r;break}r=r.return}if(null==n)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode;Ta(e,Ea(e),o);break;case 5:var i=n.stateNode;32&n.flags&&(Ct(i,""),n.flags&=-33),Ta(e,Ea(e),i);break;case 3:case 4:var l=n.stateNode.containerInfo;ka(e,Ea(e),l);break;default:throw Error(s(161))}}catch(t){_u(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function qa(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;qa(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ga(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ma(e,t.alternate,t),t=t.sibling}function Ya(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ya(4,t,t.return),Ya(t);break;case 1:xa(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ba(t,t.return,n),Ya(t);break;case 27:$d(t.stateNode);case 26:case 5:xa(t,t.return),Ya(t);break;case 22:null===t.memoizedState&&Ya(t);break;default:Ya(t)}e=e.sibling}}function Ja(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,s=i.flags;switch(i.tag){case 0:case 11:case 15:Ja(o,i,n),ma(4,i);break;case 1:if(Ja(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){_u(r,r.return,e)}if(null!==(o=(r=i).updateQueue)){var l=r.stateNode;try{var a=o.shared.hiddenCallbacks;if(null!==a)for(o.shared.hiddenCallbacks=null,o=0;o<a.length;o++)ki(a[o],l)}catch(e){_u(r,r.return,e)}}n&&64&s&&va(i),wa(i,i.return);break;case 27:Na(i);case 26:case 5:Ja(o,i,n),n&&null===r&&4&s&&Sa(i),wa(i,i.return);break;case 12:Ja(o,i,n);break;case 31:Ja(o,i,n),n&&4&s&&za(o,i);break;case 13:Ja(o,i,n),n&&4&s&&Ba(o,i);break;case 22:null===i.memoizedState&&Ja(o,i,n),wa(i,i.return);break;case 30:break;default:Ja(o,i,n)}t=t.sibling}}function Xa(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Bo(n))}function Qa(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function Za(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ec(e,t,n,r),t=t.sibling}function ec(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Za(e,t,n,r),2048&o&&ma(9,t);break;case 1:case 31:case 13:default:Za(e,t,n,r);break;case 3:Za(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){Za(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,s=i.id,l=i.onPostCommit;"function"==typeof l&&l(s,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){_u(t,t.return,e)}}else Za(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,null!==t.memoizedState?2&i._visibility?Za(e,t,n,r):nc(e,t):2&i._visibility?Za(e,t,n,r):(i._visibility|=2,tc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Xa(s,t);break;case 24:Za(e,t,n,r),2048&o&&Qa(t.alternate,t)}}function tc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,s=t,l=n,a=r,c=s.flags;switch(s.tag){case 0:case 11:case 15:tc(i,s,l,a,o),ma(8,s);break;case 23:break;case 22:var u=s.stateNode;null!==s.memoizedState?2&u._visibility?tc(i,s,l,a,o):nc(i,s):(u._visibility|=2,tc(i,s,l,a,o)),o&&2048&c&&Xa(s.alternate,s);break;case 24:tc(i,s,l,a,o),o&&2048&c&&Qa(s.alternate,s);break;default:tc(i,s,l,a,o)}t=t.sibling}}function nc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:nc(n,r),2048&o&&Xa(r.alternate,r);break;case 24:nc(n,r),2048&o&&Qa(r.alternate,r);break;default:nc(n,r)}t=t.sibling}}var rc=8192;function oc(e,t,n){if(e.subtreeFlags&rc)for(e=e.child;null!==e;)ic(e,t,n),e=e.sibling}function ic(e,t,n){switch(e.tag){case 26:oc(e,t,n),e.flags&rc&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Vd(r.href),i=t.querySelector(qd(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=lf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void et(i);i=t.ownerDocument||t,r=Gd(r),(o=jd.get(o))&&Zd(r,o),et(i=i.createElement("link"));var s=i;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),fd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=lf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Ka,e.memoizedState,e.memoizedProps);break;case 5:default:oc(e,t,n);break;case 3:case 4:var r=Ka;Ka=Bd(e.stateNode.containerInfo),oc(e,t,n),Ka=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=rc,rc=16777216,oc(e,t,n),rc=r):oc(e,t,n))}}function sc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function lc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Oa=r,uc(r,e)}sc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)ac(e),e=e.sibling}function ac(e){switch(e.tag){case 0:case 11:case 15:lc(e),2048&e.flags&&ya(9,e,e.return);break;case 3:case 12:default:lc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,cc(e)):lc(e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Oa=r,uc(r,e)}sc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:ya(8,t,t.return),cc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,cc(t));break;default:cc(t)}e=e.sibling}}function uc(e,t){for(;null!==Oa;){var n=Oa;switch(n.tag){case 0:case 11:case 15:ya(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Oa=r;else e:for(n=e;null!==Oa;){var o=(r=Oa).sibling,i=r.return;if(Fa(r),r===n){Oa=null;break e}if(null!==o){o.return=i,Oa=o;break e}Oa=i}}}var dc={getCacheForType:function(e){var t=Oo(jo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Oo(jo).controller.signal}},fc="function"==typeof WeakMap?WeakMap:Map,pc=0,hc=null,gc=null,mc=0,yc=0,vc=null,bc=!1,wc=!1,xc=!1,Sc=0,_c=0,Cc=0,Ec=0,kc=0,Tc=0,Nc=0,Ac=null,Rc=null,Pc=!1,Lc=0,Oc=0,Mc=1/0,Fc=null,Dc=null,Ic=0,$c=null,jc=null,zc=0,Bc=0,Uc=null,Hc=null,Kc=0,Wc=null;function Vc(){return 2&pc&&0!==mc?mc&-mc:null!==M.T?Uu():$e()}function qc(){if(0===Tc)if(536870912&mc&&!fo)Tc=536870912;else{var e=Ce;!(3932160&(Ce<<=1))&&(Ce=262144),Tc=e}return null!==(e=Oi.current)&&(e.flags|=32),Tc}function Gc(e,t,n){(e!==hc||2!==yc&&9!==yc)&&null===e.cancelPendingCommit||(tu(e,0),Qc(e,mc,Tc,!1)),Le(e,n),2&pc&&e===hc||(e===hc&&(!(2&pc)&&(Ec|=n),4===_c&&Qc(e,mc,Tc,!1)),Fu(e))}function Yc(e,t,n){if(6&pc)throw Error(s(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ne(e,t),o=r?function(e,t){var n=pc;pc|=2;var r=ou(),o=iu();hc!==e||mc!==t?(Fc=null,Mc=ae()+500,tu(e,t)):wc=Ne(e,t);e:for(;;)try{if(0!==yc&&null!==gc){t=gc;var i=vc;t:switch(yc){case 1:yc=0,vc=null,fu(e,t,i,1);break;case 2:case 9:if(ni(i)){yc=0,vc=null,du(t);break}t=function(){2!==yc&&9!==yc||hc!==e||(yc=7),Fu(e)},i.then(t,t);break e;case 3:yc=7;break e;case 4:yc=5;break e;case 7:ni(i)?(yc=0,vc=null,du(t)):(yc=0,vc=null,fu(e,t,i,7));break;case 5:var l=null;switch(gc.tag){case 26:l=gc.memoizedState;case 5:case 27:var a=gc;if(l?of(l):a.stateNode.complete){yc=0,vc=null;var c=a.sibling;if(null!==c)gc=c;else{var u=a.return;null!==u?(gc=u,pu(u)):gc=null}break t}}yc=0,vc=null,fu(e,t,i,5);break;case 6:yc=0,vc=null,fu(e,t,i,6);break;case 8:eu(),_c=6;break e;default:throw Error(s(462))}}cu();break}catch(t){nu(e,t)}return Eo=Co=null,M.H=r,M.A=o,pc=n,null!==gc?0:(hc=null,mc=0,Rr(),_c)}(e,t):lu(e,t,!0),i=r;;){if(0===o){wc&&!r&&Qc(e,t,0,!1);break}if(n=e.current.alternate,!i||Xc(n)){if(2===o){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=0!=(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){t=l;e:{var a=e;o=Ac;var c=a.current.memoizedState.isDehydrated;if(c&&(tu(a,l).flags|=256),2!==(l=lu(a,l,!1))){if(xc&&!c){a.errorRecoveryDisabledLanes|=i,Ec|=i,o=4;break e}i=Rc,Rc=o,null!==i&&(null===Rc?Rc=i:Rc.push.apply(Rc,i))}o=l}if(i=!1,2!==o)continue}}if(1===o){tu(e,0),Qc(e,t,0,!0);break}e:{switch(r=e,i=o){case 0:case 1:throw Error(s(345));case 4:if((4194048&t)!==t)break;case 6:Qc(r,t,Tc,!bc);break e;case 2:Rc=null;break;case 3:case 5:break;default:throw Error(s(329))}if((62914560&t)===t&&10<(o=Lc+300-ae())){if(Qc(r,t,Tc,!bc),0!==Te(r,0,!0))break e;zc=t,r.timeoutHandle=xd(Jc.bind(null,r,n,Rc,Fc,Pc,t,Tc,Ec,Nc,bc,i,"Throttled",-0,0),o)}else Jc(r,n,Rc,Fc,Pc,t,Tc,Ec,Nc,bc,i,null,-0,0)}break}o=lu(e,t,!1),i=!1}Fu(e)}function Jc(e,t,n,r,o,i,s,l,a,c,u,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){ic(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Lt});var h=(62914560&i)===i?Lc-ae():(4194048&i)===i?Oc-ae():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&cf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&cf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===sf&&(sf=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,s=o.initiatorType,l=o.duration;if(i&&l&&pd(s)){for(s=0,l=o.responseEnd,r+=1;r<n.length;r++){var a=n[r],c=a.startTime;if(c>l)break;var u=a.transferSize,d=a.initiatorType;u&&pd(d)&&(s+=u*((a=a.responseEnd)<l?1:(l-c)/(a-c)))}if(--r,t+=8*(i+s)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&cf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return zc=i,e.cancelPendingCommit=h(gu.bind(null,e,t,i,n,r,o,s,l,a,u,d,null,f,p)),void Qc(e,i,s,!c)}gu(e,t,i,n,r,o,s,l,a)}function Xc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Qn(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qc(e,t,n,r){t&=~kc,t&=~Ec,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-we(o),s=1<<i;r[i]=-1,o&=~s}0!==n&&Oe(e,n,t)}function Zc(){return!!(6&pc)||(Du(0,!1),!1)}function eu(){if(null!==gc){if(0===yc)var e=gc.return;else Eo=Co=null,ls(e=gc),ai=null,ci=0,e=gc;for(;null!==e;)ga(e.alternate,e),e=e.return;gc=null}}function tu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),zc=0,eu(),hc=e,gc=n=zr(e.current,null),mc=t,yc=0,vc=null,bc=!1,wc=Ne(e,t),xc=!1,Nc=Tc=kc=Ec=Cc=_c=0,Rc=Ac=null,Pc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-we(r),i=1<<o;t|=e[o],r&=~i}return Sc=t,Rr(),n}function nu(e,t){Hi=null,M.H=gl,t===Qo||t===ei?(t=si(),yc=3):t===Zo?(t=si(),yc=4):yc=t===Ll?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,vc=t,null===gc&&(_c=1,Tl(e,Gr(t,e.current)))}function ru(){var e=Oi.current;return null===e||((4194048&mc)===mc?null===Mi:!!((62914560&mc)===mc||536870912&mc)&&e===Mi)}function ou(){var e=M.H;return M.H=gl,null===e?gl:e}function iu(){var e=M.A;return M.A=dc,e}function su(){_c=4,bc||(4194048&mc)!==mc&&null!==Oi.current||(wc=!0),!(134217727&Cc)&&!(134217727&Ec)||null===hc||Qc(hc,mc,Tc,!1)}function lu(e,t,n){var r=pc;pc|=2;var o=ou(),i=iu();hc===e&&mc===t||(Fc=null,tu(e,t)),t=!1;var s=_c;e:for(;;)try{if(0!==yc&&null!==gc){var l=gc,a=vc;switch(yc){case 8:eu(),s=6;break e;case 3:case 2:case 9:case 6:null===Oi.current&&(t=!0);var c=yc;if(yc=0,vc=null,fu(e,l,a,c),n&&wc){s=0;break e}break;default:c=yc,yc=0,vc=null,fu(e,l,a,c)}}au(),s=_c;break}catch(t){nu(e,t)}return t&&e.shellSuspendCounter++,Eo=Co=null,pc=r,M.H=o,M.A=i,null===gc&&(hc=null,mc=0,Rr()),s}function au(){for(;null!==gc;)uu(gc)}function cu(){for(;null!==gc&&!se();)uu(gc)}function uu(e){var t=sa(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?pu(e):gc=t}function du(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wl(n,t,t.pendingProps,t.type,void 0,mc);break;case 11:t=Wl(n,t,t.pendingProps,t.type.render,t.ref,mc);break;case 5:ls(t);default:ga(n,t),t=sa(n,t=gc=Br(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?pu(e):gc=t}function fu(e,t,n,r){Eo=Co=null,ls(t),ai=null,ci=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Ro(t,n,o,!0),null!==(n=Oi.current)){switch(n.tag){case 31:case 13:return null===Mi?su():null===n.alternate&&0===_c&&(_c=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===ti?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Cu(e,r,o)),!1;case 22:return n.flags|=65536,r===ti?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Cu(e,r,o)),!1}throw Error(s(435,n.tag))}return Cu(e,r,o),su(),!1}if(fo)return null!==(t=Oi.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==go&&So(Gr(e=Error(s(422),{cause:r}),n))):(r!==go&&So(Gr(t=Error(s(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=Gr(r,n),Si(e,o=Al(e.stateNode,r,o)),4!==_c&&(_c=2)),!1;var i=Error(s(520),{cause:r});if(i=Gr(i,n),null===Ac?Ac=[i]:Ac.push(i),4!==_c&&(_c=2),null===t)return!0;r=Gr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,Si(n,e=Al(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Dc&&Dc.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,Pl(o=Rl(o),e,n,r),Si(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,mc))return _c=1,Tl(e,Gr(n,e.current)),void(gc=null)}catch(t){if(null!==o)throw gc=o,t;return _c=1,Tl(e,Gr(n,e.current)),void(gc=null)}32768&t.flags?(fo||1===r?e=!0:wc||536870912&mc?e=!1:(bc=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=Oi.current)&&13===r.tag&&(r.flags|=16384)),hu(t,e)):pu(t)}function pu(e){var t=e;do{if(32768&t.flags)return void hu(t,bc);e=t.return;var n=pa(t.alternate,t,Sc);if(null!==n)return void(gc=n);if(null!==(t=t.sibling))return void(gc=t);gc=t=e}while(null!==t);0===_c&&(_c=5)}function hu(e,t){do{var n=ha(e.alternate,e);if(null!==n)return n.flags&=32767,void(gc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(gc=e);gc=e=n}while(null!==e);_c=6,gc=null}function gu(e,t,n,r,o,i,l,a,c){e.cancelPendingCommit=null;do{wu()}while(0!==Ic);if(6&pc)throw Error(s(327));if(null!==t){if(t===e.current)throw Error(s(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,i){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 l=e.entanglements,a=e.expirationTimes,c=e.hiddenUpdates;for(n=s&~n;0<n;){var u=31-we(n),d=1<<u;l[u]=0,a[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Oe(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(s&~t))}(e,n,i|=Ar,l,a,c),e===hc&&(gc=hc=null,mc=0),jc=t,$c=e,zc=n,Bc=i,Uc=o,Hc=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,oe(fe,function(){return xu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=M.T,M.T=null,o=F.p,F.p=2,l=pc,pc|=4;try{!function(e,t){if(e=e.containerInfo,hd=wf,or(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,a=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(a=l+o),f!==i||0!==r&&3!==f.nodeType||(c=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(a=l),p===i&&++d===r&&(c=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===a||-1===c?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(gd={focusedElem:e,selectionRange:n},wf=!1,Oa=t;null!==Oa;)if(e=(t=Oa).child,1028&t.subtreeFlags&&null!==e)e.return=t,Oa=e;else for(;null!==Oa;){switch(i=(t=Oa).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(o=e[n]).ref.impl=o.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,o=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var g=_l(n.type,o);e=r.getSnapshotBeforeUpdate(g,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){_u(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Ad(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ad(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(s(163))}if(null!==(e=t.sibling)){e.return=t.return,Oa=e;break}Oa=t.return}}(e,t)}finally{pc=l,F.p=o,M.T=r}}Ic=1,mu(),yu(),vu()}}function mu(){if(1===Ic){Ic=0;var e=$c,t=jc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=M.T,M.T=null;var r=F.p;F.p=2;var o=pc;pc|=4;try{Wa(t,e);var i=gd,s=rr(e.containerInfo),l=i.focusedElem,a=i.selectionRange;if(s!==l&&l&&l.ownerDocument&&nr(l.ownerDocument.documentElement,l)){if(null!==a&&or(l)){var c=a.start,u=a.end;if(void 0===u&&(u=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=l.textContent.length,g=Math.min(a.start,h),m=void 0===a.end?g:Math.min(a.end,h);!p.extend&&g>m&&(s=m,m=g,g=s);var y=tr(l,g),v=tr(l,m);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var w=d[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}wf=!!hd,gd=hd=null}finally{pc=o,F.p=r,M.T=n}}e.current=t,Ic=2}}function yu(){if(2===Ic){Ic=0;var e=$c,t=jc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=M.T,M.T=null;var r=F.p;F.p=2;var o=pc;pc|=4;try{Ma(e,t.alternate,t)}finally{pc=o,F.p=r,M.T=n}}Ic=3}}function vu(){if(4===Ic||3===Ic){Ic=0,le();var e=$c,t=jc,n=zc,r=Hc;10256&t.subtreeFlags||10256&t.flags?Ic=5:(Ic=0,jc=$c=null,bu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Dc=null),Ie(n),t=t.stateNode,ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ye,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=M.T,o=F.p,F.p=2,M.T=null;try{for(var i=e.onRecoverableError,s=0;s<r.length;s++){var l=r[s];i(l.value,{componentStack:l.stack})}}finally{M.T=t,F.p=o}}3&zc&&wu(),Fu(e),o=e.pendingLanes,261930&n&&42&o?e===Wc?Kc++:(Kc=0,Wc=e):Kc=0,Du(0,!1)}}function bu(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t))}function wu(){return mu(),yu(),vu(),xu()}function xu(){if(5!==Ic)return!1;var e=$c,t=Bc;Bc=0;var n=Ie(zc),r=M.T,o=F.p;try{F.p=32>n?32:n,M.T=null,n=Uc,Uc=null;var i=$c,l=zc;if(Ic=0,jc=$c=null,zc=0,6&pc)throw Error(s(331));var a=pc;if(pc|=4,ac(i.current),ec(i,i.current,l,n),pc=a,Du(0,!1),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ye,i)}catch(e){}return!0}finally{F.p=o,M.T=r,bu(e,t)}}function Su(e,t,n){t=Gr(n,t),null!==(e=wi(e,t=Al(e.stateNode,t,2),2))&&(Le(e,2),Fu(e))}function _u(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Dc||!Dc.has(r))){e=Gr(n,e),null!==(r=wi(t,n=Rl(2),2))&&(Pl(n,r,t,e),Le(r,2),Fu(r));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(xc=!0,o.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,hc===e&&(mc&n)===n&&(4===_c||3===_c&&(62914560&mc)===mc&&300>ae()-Lc?!(2&pc)&&tu(e,0):kc|=n,Nc===mc&&(Nc=0)),Fu(e)}function ku(e,t){0===t&&(t=Re()),null!==(e=Or(e,t))&&(Le(e,t),Fu(e))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ku(e,n)}function Nu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(t),ku(e,n)}var Au=null,Ru=null,Pu=!1,Lu=!1,Ou=!1,Mu=0;function Fu(e){e!==Ru&&null===e.next&&(null===Ru?Au=Ru=e:Ru=Ru.next=e),Lu=!0,Pu||(Pu=!0,Cd(function(){6&pc?oe(ue,Iu):$u()}))}function Du(e,t){if(!Ou&&Lu){Ou=!0;do{for(var n=!1,r=Au;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var s=r.suspendedLanes,l=r.pingedLanes;i=(1<<31-we(42|e)+1)-1,i=201326741&(i&=o&~(s&~l))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Bu(r,i))}else i=mc,!(3&(i=Te(r,r===hc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Ou=!1}}function Iu(){$u()}function $u(){Lu=Pu=!1;var e,t=0;0!==Mu&&((e=window.event)&&"popstate"===e.type?e!==wd&&(wd=e,1):(wd=null,0))&&(t=Mu);for(var n=ae(),r=null,o=Au;null!==o;){var i=o.next,s=ju(o,n);0===s?(o.next=null,null===r?Au=i:r.next=i,null===i&&(Ru=r)):(r=o,(0!==t||3&s)&&(Lu=!0)),o=i}0!==Ic&&5!==Ic||Du(t,!1),0!==Mu&&(Mu=0)}function ju(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var s=31-we(i),l=1<<s,a=o[s];-1===a?0!==(l&n)&&0===(l&r)||(o[s]=Ae(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}if(n=mc,n=Te(e,e===(t=hc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===yc||9===yc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ie(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ne(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ie(r),Ie(n)){case 2:case 8:n=de;break;case 32:default:n=fe;break;case 268435456:n=he}return r=zu.bind(null,e),n=oe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ie(r),e.callbackPriority=2,e.callbackNode=null,2}function zu(e,t){if(0!==Ic&&5!==Ic)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(wu()&&e.callbackNode!==n)return null;var r=mc;return 0===(r=Te(e,e===hc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Yc(e,r,t),ju(e,ae()),null!=e.callbackNode&&e.callbackNode===n?zu.bind(null,e):null)}function Bu(e,t){if(wu())return null;Yc(e,t,!0)}function Uu(){if(0===Mu){var e=Ko;0===e&&(e=_e,!(261888&(_e<<=1))&&(_e=256)),Mu=e}return Mu}function Hu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Pt(""+e)}function Ku(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}for(var Wu=0;Wu<Cr.length;Wu++){var Vu=Cr[Wu];Er(Vu.toLowerCase(),"on"+(Vu[0].toUpperCase()+Vu.slice(1)))}Er(mr,"onAnimationEnd"),Er(yr,"onAnimationIteration"),Er(vr,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(br,"onTransitionRun"),Er(wr,"onTransitionStart"),Er(xr,"onTransitionCancel"),Er(Sr,"onTransitionEnd"),ot("onMouseEnter",["mouseout","mouseover"]),ot("onMouseLeave",["mouseout","mouseover"]),ot("onPointerEnter",["pointerout","pointerover"]),ot("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qu="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(" "),Gu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qu));function Yu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;i=l,o.currentTarget=c;try{i(o)}catch(e){kr(e)}o.currentTarget=null,i=a}else for(s=0;s<r.length;s++){if(a=(l=r[s]).instance,c=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;i=l,o.currentTarget=c;try{i(o)}catch(e){kr(e)}o.currentTarget=null,i=a}}}}function Ju(e,t){var n=t[Ke];void 0===n&&(n=t[Ke]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Xu(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Qu="_reactListening"+Math.random().toString(36).slice(2);function Zu(e){if(!e[Qu]){e[Qu]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Gu.has(t)||Xu(t,!1,e),Xu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Qu]||(t[Qu]=!0,Xu("selectionchange",!1,t))}}function ed(e,t,n,r){switch(Tf(t)){case 2:var o=xf;break;case 8:o=Sf;break;default:o=_f}n=o.bind(null,t,n,e),o=void 0,!Ut||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function td(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Je(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=i=s;continue e}l=l.parentNode}}r=r.return}jt(function(){var r=i,o=Mt(n),s=[];e:{var l=_r.get(e);if(void 0!==l){var c=nn,u=e;switch(e){case"keypress":if(0===Gt(n))break e;case"keydown":case"keyup":c=vn;break;case"focusin":u="focus",c=cn;break;case"focusout":u="blur",c=cn;break;case"beforeblur":case"afterblur":c=cn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=ln;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=an;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=wn;break;case mr:case yr:case vr:c=un;break;case Sr:c=xn;break;case"scroll":case"scrollend":c=on;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=bn;break;case"toggle":case"beforetoggle":c=_n}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=zt(g,p))&&d.push(nd(g,m,h)),f)break;g=g.return}0<d.length&&(l=new c(l,u,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Ot||!(u=n.relatedTarget||n.fromElement)||!Je(u)&&!u[He])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Je(u):null)&&(f=a(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=ln,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=bn,m="onPointerLeave",p="onPointerEnter",g="pointer"),f=null==c?l:Qe(c),h=null==u?l:Qe(u),(l=new d(m,g+"leave",c,n,o)).target=f,l.relatedTarget=h,m=null,Je(o)===r&&((d=new d(p,g+"enter",u,n,o)).target=h,d.relatedTarget=f,m=d),f=m,c&&u)e:{for(d=od,g=u,h=0,m=p=c;m;m=d(m))h++;m=0;for(var y=g;y;y=d(y))m++;for(;0<h-m;)p=d(p),h--;for(;0<m-h;)g=d(g),m--;for(;h--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==c&&id(s,l,c,d,!1),null!==u&&null!==f&&id(s,f,u,d,!0)}if("select"===(c=(l=r?Qe(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var v=Bn;else if(Fn(l))if(Un)v=Xn;else{v=Yn;var b=Gn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Nt(r.elementType)&&(v=Bn):v=Jn;switch(v&&(v=v(e,r))?Dn(s,v,n,o):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&wt(l,"number",l.value)),b=r?Qe(r):window,e){case"focusin":(Fn(b)||"true"===b.contentEditable)&&(sr=b,lr=r,ar=null);break;case"focusout":ar=lr=sr=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,ur(s,n,o);break;case"selectionchange":if(ir)break;case"keydown":case"keyup":ur(s,n,o)}var w;if(En)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else On?Pn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Nn&&"ko"!==n.locale&&(On||"onCompositionStart"!==x?"onCompositionEnd"===x&&On&&(w=qt()):(Wt="value"in(Kt=o)?Kt.value:Kt.textContent,On=!0)),0<(b=rd(r,x)).length&&(x=new fn(x,e,null,n,o),s.push({event:x,listeners:b}),(w||null!==(w=Ln(n)))&&(x.data=w))),(w=Tn?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(Rn=!0,An);case"textInput":return(e=t.data)===An&&Rn?null:e;default:return null}}(e,n):function(e,t){if(On)return"compositionend"===e||!En&&Pn(e,t)?(e=qt(),Vt=Wt=Kt=null,On=!1,e):null;switch(e){case"paste":default: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 Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(x=rd(r,"onBeforeInput")).length&&(b=new fn("onBeforeInput","beforeinput",null,n,o),s.push({event:b,listeners:x}),b.data=w),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Hu((o[Ue]||null).action),s=r.submitter;s&&null!==(t=(t=s[Ue]||null)?Hu(t.formAction):s.getAttribute("formAction"))&&(i=t,s=null);var l=new nn("action","action",null,r,o);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Mu){var e=s?Ku(o,s):new FormData(o);tl(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(l.preventDefault(),e=s?Ku(o,s):new FormData(o),tl(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(s,e,r,n,o)}Yu(s,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=zt(e,n))&&r.unshift(nd(e,o,i)),null!=(o=zt(e,t))&&r.push(nd(e,o,i))),3===e.tag)return r;e=e.return}return[]}function od(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function id(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var l=n,a=l.alternate,c=l.stateNode;if(l=l.tag,null!==a&&a===r)break;5!==l&&26!==l&&27!==l||null===c||(a=c,o?null!=(c=zt(n,i))&&s.unshift(nd(n,c,a)):o||null!=(c=zt(n,i))&&s.push(nd(n,c,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var sd=/\r\n?/g,ld=/\u0000|\uFFFD/g;function ad(e){return("string"==typeof e?e:""+e).replace(sd,"\n").replace(ld,"")}function cd(e,t){return t=ad(t),ad(e)===t}function ud(e,t,n,r,o,i){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||Ct(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&Ct(e,""+r);break;case"className":ct(e,"class",r);break;case"tabIndex":ct(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ct(e,n,r);break;case"style":Tt(e,r,i);break;case"data":if("object"!==t){ct(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){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}if("function"==typeof i&&("formAction"===n?("input"!==t&&ud(e,t,"name",o.name,o,null),ud(e,t,"formEncType",o.formEncType,o,null),ud(e,t,"formMethod",o.formMethod,o,null),ud(e,t,"formTarget",o.formTarget,o,null)):(ud(e,t,"encType",o.encType,o,null),ud(e,t,"method",o.method,o,null),ud(e,t,"target",o.target,o,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Lt);break;case"onScroll":null!=r&&Ju("scroll",e);break;case"onScrollEnd":null!=r&&Ju("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(s(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Pt(""+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":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?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&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Ju("beforetoggle",e),Ju("toggle",e),at(e,"popover",r);break;case"xlinkActuate":ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ut(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ut(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ut(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ut(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":at(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&at(e,n=At.get(n)||n,r)}}function dd(e,t,n,r,o,i){switch(n){case"style":Tt(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(s(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(s(60));e.innerHTML=n}}break;case"children":"string"==typeof r?Ct(e,r):("number"==typeof r||"bigint"==typeof r)&&Ct(e,""+r);break;case"onScroll":null!=r&&Ju("scroll",e);break;case"onScrollEnd":null!=r&&Ju("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Lt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Ue]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):at(e,n,r):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function fd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ju("error",e),Ju("load",e);var r,o=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var l=n[r];if(null!=l)switch(r){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ud(e,t,r,l,n,null)}}return i&&ud(e,t,"srcSet",n.srcSet,n,null),void(o&&ud(e,t,"src",n.src,n,null));case"input":Ju("invalid",e);var a=r=l=i=null,c=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":i=d;break;case"type":l=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":a=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(s(137,t));break;default:ud(e,t,o,d,n,null)}}return void bt(e,r,a,c,u,l,i,!1);case"select":for(i in Ju("invalid",e),o=l=r=null,n)if(n.hasOwnProperty(i)&&null!=(a=n[i]))switch(i){case"value":r=a;break;case"defaultValue":l=a;break;case"multiple":o=a;default:ud(e,t,i,a,n,null)}return t=r,n=l,e.multiple=!!o,void(null!=t?xt(e,!!o,t,!1):null!=n&&xt(e,!!o,n,!0));case"textarea":for(l in Ju("invalid",e),r=i=o=null,n)if(n.hasOwnProperty(l)&&null!=(a=n[l]))switch(l){case"value":o=a;break;case"defaultValue":i=a;break;case"children":r=a;break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(s(91));break;default:ud(e,t,l,a,n,null)}return void _t(e,o,i,r);case"option":for(c in n)n.hasOwnProperty(c)&&null!=(o=n[c])&&("selected"===c?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:ud(e,t,c,o,n,null));return;case"dialog":Ju("beforetoggle",e),Ju("toggle",e),Ju("cancel",e),Ju("close",e);break;case"iframe":case"object":Ju("load",e);break;case"video":case"audio":for(o=0;o<qu.length;o++)Ju(qu[o],e);break;case"image":Ju("error",e),Ju("load",e);break;case"details":Ju("toggle",e);break;case"embed":case"source":case"link":Ju("error",e),Ju("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)&&null!=(o=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ud(e,t,u,o,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(o=n[d])&&dd(e,t,d,o,n,void 0);return}}for(a in n)n.hasOwnProperty(a)&&null!=(o=n[a])&&ud(e,t,a,o,n,null)}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var hd=null,gd=null;function md(e){return 9===e.nodeType?e:e.ownerDocument}function yd(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 vd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function bd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wd=null,xd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,_d="function"==typeof Promise?Promise:void 0,Cd="function"==typeof queueMicrotask?queueMicrotask:void 0!==_d?function(e){return _d.resolve(null).then(e).catch(Ed)}:xd;function Ed(e){setTimeout(function(){throw e})}function kd(e){return"head"===e}function Td(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Wf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)$d(e.ownerDocument.documentElement);else if("head"===n){$d(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var s=i.nextSibling,l=i.nodeName;i[Ge]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=s}}else"body"===n&&$d(e.ownerDocument.body);n=o}while(n);Wf(t)}function Nd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Ad(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ad(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Rd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Od(e.nextSibling)))return null}return e}function Pd(e){return"$?"===e.data||"$~"===e.data}function Ld(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Od(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Md=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Od(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Id(e,t,n){switch(t=md(n),e){case"html":if(!(e=t.documentElement))throw Error(s(452));return e;case"head":if(!(e=t.head))throw Error(s(453));return e;case"body":if(!(e=t.body))throw Error(s(454));return e;default:throw Error(s(451))}}function $d(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ye(e)}var jd=new Map,zd=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Ud=F.d;F.d={f:function(){var e=Ud.f(),t=Zc();return e||t},r:function(e){var t=Xe(e);null!==t&&5===t.tag&&"form"===t.type?rl(t):Ud.r(e)},D:function(e){Ud.D(e),Kd("dns-prefetch",e,null)},C:function(e,t){Ud.C(e,t),Kd("preconnect",e,t)},L:function(e,t,n){Ud.L(e,t,n);var r=Hd;if(r&&e&&t){var o='link[rel="preload"][as="'+yt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+yt(n.imageSizes)+'"]')):o+='[href="'+yt(e)+'"]';var i=o;switch(t){case"style":i=Vd(e);break;case"script":i=Yd(e)}jd.has(i)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),jd.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(qd(i))||"script"===t&&r.querySelector(Jd(i))||(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Ud.m(e,t);var n=Hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+yt(r)+'"][href="'+yt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Yd(e)}if(!jd.has(i)&&(e=p({rel:"modulepreload",href:e},t),jd.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Jd(i)))return}fd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Ud.X(e,t);var n=Hd;if(n&&e){var r=Ze(n).hoistableScripts,o=Yd(e),i=r.get(o);i||((i=n.querySelector(Jd(o)))||(e=p({src:e,async:!0},t),(t=jd.get(o))&&ef(e,t),et(i=n.createElement("script")),fd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){Ud.S(e,t,n);var r=Hd;if(r&&e){var o=Ze(r).hoistableStyles,i=Vd(e);t=t||"default";var s=o.get(i);if(!s){var l={loading:0,preload:null};if(s=r.querySelector(qd(i)))l.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=jd.get(i))&&Zd(e,n);var a=s=r.createElement("link");et(a),fd(a,"link",e),a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),a.addEventListener("load",function(){l.loading|=1}),a.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Qd(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:l},o.set(i,s)}}},M:function(e,t){Ud.M(e,t);var n=Hd;if(n&&e){var r=Ze(n).hoistableScripts,o=Yd(e),i=r.get(o);i||((i=n.querySelector(Jd(o)))||(e=p({src:e,async:!0,type:"module"},t),(t=jd.get(o))&&ef(e,t),et(i=n.createElement("script")),fd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Hd="undefined"==typeof document?null:document;function Kd(e,t,n){var r=Hd;if(r&&"string"==typeof t&&t){var o=yt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),zd.has(o)||(zd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function Wd(e,t,n,r){var o,i,l,a,c=(c=V.current)?Bd(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Vd(n.href),(r=(n=Ze(c).hoistableStyles).get(t))||(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("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Vd(n.href);var u=Ze(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(qd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),jd.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},jd.set(e,n),u||(o=c,i=e,l=n,a=d.state,o.querySelector('link[rel="preload"][as="style"]['+i+"]")?a.loading=1:(i=o.createElement("link"),a.preload=i,i.addEventListener("load",function(){return a.loading|=1}),i.addEventListener("error",function(){return a.loading|=2}),fd(i,"link",l),et(i),o.head.appendChild(i))))),t&&null===r)throw Error(s(528,""));return d}if(t&&null!==r)throw Error(s(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Yd(n),(r=(n=Ze(c).hoistableScripts).get(t))||(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(s(444,e))}}function Vd(e){return'href="'+yt(e)+'"'}function qd(e){return'link[rel="stylesheet"]['+e+"]"}function Gd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Yd(e){return'[src="'+yt(e)+'"]'}function Jd(e){return"script[async]"+e}function Xd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var o=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),fd(r,"style",o),Qd(r,n.precedence,e),t.instance=r;case"stylesheet":o=Vd(n.href);var i=e.querySelector(qd(o));if(i)return t.state.loading|=4,t.instance=i,et(i),i;r=Gd(n),(o=jd.get(o))&&Zd(r,o),et(i=(e.ownerDocument||e).createElement("link"));var l=i;return l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),fd(i,"link",r),t.state.loading|=4,Qd(i,n.precedence,e),t.instance=i;case"script":return i=Yd(n.src),(o=e.querySelector(Jd(i)))?(t.instance=o,et(o),o):(r=n,(o=jd.get(i))&&ef(r=p({},n),o),et(o=(e=e.ownerDocument||e).createElement("script")),fd(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Qd(r,n.precedence,e));return t.instance}function Qd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,s=0;s<r.length;s++){var l=r[s];if(l.dataset.precedence===t)i=l;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ef(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tf=null;function nf(e,t,n){if(null===tf){var r=new Map,o=tf=new Map;o.set(n,r)}else(r=(o=tf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ge]||i[Be]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var s=i.getAttribute(t)||"";s=e+s;var l=r.get(s);l?l.push(i):r.set(s,[i])}}return r}function rf(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function of(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var sf=0;function lf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)cf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var af=null;function cf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,af=new Map,t.forEach(uf,e),af=null,lf.call(e))}function uf(e,t){if(!(4&t.state.loading)){var n=af.get(e);if(n)var r=n.get(null);else{n=new Map,af.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var s=o[i];"LINK"!==s.nodeName&&"not all"===s.getAttribute("media")||(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}s=(o=t.instance).getAttribute("data-precedence"),(i=n.get(s)||r)===r&&n.set(null,o),n.set(s,o),this.count++,r=lf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var df={$$typeof:x,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function ff(e,t,n,r,o,i,s,l,a){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=Pe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pe(0),this.hiddenUpdates=Pe(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function pf(e,t,n,r,o,i,s,l,a,c,u,d){return e=new ff(e,t,n,s,a,c,u,d,l),t=1,!0===i&&(t|=24),i=$r(3,null,null,t),e.current=i,i.stateNode=e,(t=zo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},yi(i),e}function hf(e){return e?e=Dr:Dr}function gf(e,t,n,r,o,i){o=hf(o),null===r.context?r.context=o:r.pendingContext=o,(r=bi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=wi(e,r,t))&&(Gc(n,0,t),xi(n,e,t))}function mf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function yf(e,t){mf(e,t),(e=e.alternate)&&mf(e,t)}function vf(e){if(13===e.tag||31===e.tag){var t=Or(e,67108864);null!==t&&Gc(t,0,67108864),yf(e,67108864)}}function bf(e){if(13===e.tag||31===e.tag){var t=Vc(),n=Or(e,t=De(t));null!==n&&Gc(n,0,t),yf(e,t)}}var wf=!0;function xf(e,t,n,r){var o=M.T;M.T=null;var i=F.p;try{F.p=2,_f(e,t,n,r)}finally{F.p=i,M.T=o}}function Sf(e,t,n,r){var o=M.T;M.T=null;var i=F.p;try{F.p=8,_f(e,t,n,r)}finally{F.p=i,M.T=o}}function _f(e,t,n,r){if(wf){var o=Cf(r);if(null===o)td(e,t,r,Ef,n),Df(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Af=If(Af,e,t,n,r,o),!0;case"dragenter":return Rf=If(Rf,e,t,n,r,o),!0;case"mouseover":return Pf=If(Pf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Lf.set(i,If(Lf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Of.set(i,If(Of.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Df(e,r),4&t&&-1<Ff.indexOf(e)){for(;null!==o;){var i=Xe(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var s=ke(i.pendingLanes);if(0!==s){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;s;){var a=1<<31-we(s);l.entanglements[1]|=a,s&=~a}Fu(i),!(6&pc)&&(Mc=ae()+500,Du(0,!1))}}break;case 31:case 13:null!==(l=Or(i,2))&&Gc(l,0,2),Zc(),yf(i,2)}if(null===(i=Cf(r))&&td(e,t,r,Ef,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else td(e,t,r,null,n)}}function Cf(e){return kf(e=Mt(e))}var Ef=null;function kf(e){if(Ef=null,null!==(e=Je(e))){var t=a(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(31===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ef=e,null}function Tf(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(ce()){case ue:return 2;case de:return 8;case fe:case pe:return 32;case he:return 268435456;default:return 32}default:return 32}}var Nf=!1,Af=null,Rf=null,Pf=null,Lf=new Map,Of=new Map,Mf=[],Ff="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 Df(e,t){switch(e){case"focusin":case"focusout":Af=null;break;case"dragenter":case"dragleave":Rf=null;break;case"mouseover":case"mouseout":Pf=null;break;case"pointerover":case"pointerout":Lf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Of.delete(t.pointerId)}}function If(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=Xe(t))&&vf(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function $f(e){var t=Je(e.target);if(null!==t){var n=a(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void je(e.priority,function(){bf(n)})}else if(31===t){if(null!==(t=u(n)))return e.blockedOn=t,void je(e.priority,function(){bf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cf(e.nativeEvent);if(null!==n)return null!==(t=Xe(n))&&vf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ot=r,n.target.dispatchEvent(r),Ot=null,t.shift()}return!0}function zf(e,t,n){jf(e)&&n.delete(t)}function Bf(){Nf=!1,null!==Af&&jf(Af)&&(Af=null),null!==Rf&&jf(Rf)&&(Rf=null),null!==Pf&&jf(Pf)&&(Pf=null),Lf.forEach(zf),Of.forEach(zf)}function Uf(e,t){e.blockedOn===t&&(e.blockedOn=null,Nf||(Nf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Bf)))}var Hf=null;function Kf(e){Hf!==e&&(Hf=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Hf===e&&(Hf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if("function"!=typeof r){if(null===kf(r||n))continue;break}var i=Xe(n);null!==i&&(e.splice(t,3),t-=3,tl(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Wf(e){function t(t){return Uf(t,e)}null!==Af&&Uf(Af,e),null!==Rf&&Uf(Rf,e),null!==Pf&&Uf(Pf,e),Lf.forEach(t),Of.forEach(t);for(var n=0;n<Mf.length;n++){var r=Mf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Mf.length&&null===(n=Mf[0]).blockedOn;)$f(n),null===n.blockedOn&&Mf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],s=o[Ue]||null;if("function"==typeof i)s||Kf(n);else if(s){var l=null;if(i&&i.hasAttribute("formAction")){if(o=i,s=i[Ue]||null)l=s.formAction;else if(null!==kf(o))continue}else l=s.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),Kf(n)}}}function Vf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function qf(e){this._internalRoot=e}function Gf(e){this._internalRoot=e}Gf.prototype.render=qf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));gf(t.current,Vc(),e,t,null,null)},Gf.prototype.unmount=qf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;gf(e.current,2,null,e,null,null),Zc(),t[He]=null}},Gf.prototype.unstable_scheduleHydration=function(e){if(e){var t=$e();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mf.length&&0!==t&&t<Mf[n].priority;n++);Mf.splice(n,0,e),0===n&&$f(e)}};var Yf=o.version;if("19.2.3"!==Yf)throw Error(s(527,Yf,"19.2.3"));F.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return d(o),e;if(i===r)return d(o),t;i=i.sibling}throw Error(s(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,c=o.child;c;){if(c===n){l=!0,n=o,r=i;break}if(c===r){l=!0,r=o,n=i;break}c=c.sibling}if(!l){for(c=i.child;c;){if(c===n){l=!0,n=i,r=o;break}if(c===r){l=!0,r=i,n=o;break}c=c.sibling}if(!l)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?f(e):null)?null:e.stateNode};var Jf={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.3"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xf.isDisabled&&Xf.supportsFiber)try{ye=Xf.inject(Jf),ve=Xf}catch(e){}}t.createRoot=function(e,t){if(!l(e))throw Error(s(299));var n=!1,r="",o=Cl,i=El,a=kl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=pf(e,1,!1,null,0,n,r,null,o,i,a,Vf),e[He]=t.current,Zu(e),new qf(t)},t.hydrateRoot=function(e,t,n){if(!l(e))throw Error(s(299));var r=!1,o="",i=Cl,a=El,c=kl,u=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onUncaughtError&&(i=n.onUncaughtError),void 0!==n.onCaughtError&&(a=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=pf(e,1,!0,t,0,r,o,u,i,a,c,Vf)).context=hf(null),n=t.current,(o=bi(r=De(r=Vc()))).callback=null,wi(n,o,r),n=r,t.current.lanes=n,Le(t,n),Fu(t),e[He]=t.current,Zu(e),new Gf(t)},t.version="19.2.3"},2041:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},2191:()=>{Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean},2330:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},2398:()=>{!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism)},2825:()=>{!function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}(Prism)},2889:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=a||c||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return u.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,s,l,a,c=0,u=!1,d=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,i=o;return r=o=void 0,c=t,s=e.apply(i,n)}function b(e){var n=e-a;return void 0===a||n>=t||n<0||d&&e-c>=i}function w(){var e=h();if(b(e))return x(e);l=setTimeout(w,function(e){var n=t-(e-a);return d?p(n,i-(e-c)):n}(e))}function x(e){return l=void 0,y&&r?v(e):(r=o=void 0,s)}function S(){var e=h(),n=b(e);if(r=arguments,o=this,a=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(w,t),u?v(e):s}(a);if(d)return l=setTimeout(w,t),v(a)}return void 0===l&&(l=setTimeout(w,t)),s}return t=m(t)||0,g(n)&&(u=!!n.leading,i=(d="maxWait"in n)?f(m(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=a=o=l=void 0},S.flush=function(){return void 0===l?s:x(h())},S}},2912:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},2945:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),a=0;a<i.length;a++){var c=i[a];if(!l(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},3042:(e,t,n)=>{"use strict";var r=n(5664),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,s,l,a,c,u=!1;t||(t={}),n=t.debug||!1;try{if(s=r(),l=document.createRange(),a=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(c),l.selectNodeContents(c),a.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(l):a.removeAllRanges()),c&&document.body.removeChild(c),s()}return u}},3051:(e,t,n)=>{var r=n(5723),o=n(827);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},3622:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},3918:(e,t,n)=>{var r=n(474),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[l]=n:delete e[l]),o}},3947:(e,t,n)=>{var r=n(424),o=n(7604);e.exports=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:i,maxWait:t,trailing:s})}},4247:(e,t,n)=>{var r=n(4358);e.exports=function(){return r.Date.now()}},4358:(e,t,n)=>{var r=n(9023),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},4668:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2033)},4697:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var l=2*(r+1)-1,a=e[l],c=l+1,u=e[c];if(0>i(a,n))c<o&&0>i(u,a)?(e[r]=u,e[c]=n,r=c):(e[r]=a,e[l]=n,r=l);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,a=l.now();t.unstable_now=function(){return l.now()-a}}var c=[],u=[],d=1,f=null,p=3,h=!1,g=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function S(e){if(m=!1,x(e),!g)if(null!==r(c))g=!0,C||(C=!0,_());else{var t=r(u);null!==t&&L(S,t.startTime-e)}}var _,C=!1,E=-1,k=5,T=-1;function N(){return!(!y&&t.unstable_now()-T<k)}function A(){if(y=!1,C){var e=t.unstable_now();T=e;var n=!0;try{e:{g=!1,m&&(m=!1,b(E),E=-1),h=!0;var i=p;try{t:{for(x(e),f=r(c);null!==f&&!(f.expirationTime>e&&N());){var s=f.callback;if("function"==typeof s){f.callback=null,p=f.priorityLevel;var l=s(f.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof l){f.callback=l,x(e),n=!0;break t}f===r(c)&&o(c),x(e)}else o(c);f=r(c)}if(null!==f)n=!0;else{var a=r(u);null!==a&&L(S,a.startTime-e),n=!1}}break e}finally{f=null,p=i,h=!1}n=void 0}}finally{n?_():C=!1}}}if("function"==typeof w)_=function(){w(A)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,P=R.port2;R.port1.onmessage=A,_=function(){P.postMessage(null)}}else _=function(){v(A,0)};function L(e,n){E=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>s?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(b(E),E=-1):m=!0,L(S,i-s))):(e.sortIndex=l,n(c,e),g||h||(g=!0,C||(C=!0,_()))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},4921:()=>{Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift})},5004:e=>{var t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,s=Object.prototype.toString;function l(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(e))return NaN;if(l(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=l(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var c=r.test(e);return c||o.test(e)?i(e.slice(2),c?2:8):n.test(e)?NaN:+e}},5164:(e,t,n)=>{var r=n(191),o=/[\/\+\.]/;e.exports=function(e,t){function n(t){var n=r(t,e,o);return n&&n.length>=2}return t?n(t.split(";")[0]):n}},5219:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(9707)},5656:(e,t,n)=>{"use strict";e.exports=n(2330)},5664:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},5666:(e,t,n)=>{"use strict";e.exports=n(4697)},5723:(e,t,n)=>{var r=n(474),o=n(3918),i=n(9365),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):i(e)}},5904:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var s in r={},n[i]=r,t)t.hasOwnProperty(s)&&(r[s]=e(t[s],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,o){r[o]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],s={};for(var l in i)if(i.hasOwnProperty(l)){if(l==t)for(var a in n)n.hasOwnProperty(a)&&(s[a]=n[a]);n.hasOwnProperty(l)||(s[l]=i[l])}var c=r[e];return r[e]=s,o.languages.DFS(o.languages,function(t,n){n===c&&t!=e&&(this[t]=s)}),s},DFS:function e(t,n,r,i){i=i||{};var s=o.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var a=t[l],c=o.util.type(a);"Object"!==c||i[s(a)]?"Array"!==c||i[s(a)]||(i[s(a)]=!0,e(a,n,l,i)):(i[s(a)]=!0,e(a,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,s=0;i=r.elements[s++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),s=o.languages[i];o.util.setLanguage(t,i);var l=t.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&o.util.setLanguage(l,i);var a={element:t,language:i,grammar:s,code:t.textContent};function c(e){a.highlightedCode=e,o.hooks.run("before-insert",a),a.element.innerHTML=a.highlightedCode,o.hooks.run("after-highlight",a),o.hooks.run("complete",a),r&&r.call(a.element)}if(o.hooks.run("before-sanity-check",a),(l=a.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!a.code)return o.hooks.run("complete",a),void(r&&r.call(a.element));if(o.hooks.run("before-highlight",a),a.grammar)if(n&&e.Worker){var u=new Worker(o.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:a.language,code:a.code,immediateClose:!0}))}else c(o.highlight(a.code,a.grammar,a.language));else c(o.util.encode(a.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new a;return c(o,o.head,e),l(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function s(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function l(e,t,n,r,a,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var g=p[h],m=g.inside,y=!!g.lookbehind,v=!!g.greedy,b=g.alias;if(v&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,S=r.next,_=a;S!==t.tail&&!(d&&_>=d.reach);_+=S.value.length,S=S.next){var C=S.value;if(t.length>e.length)return;if(!(C instanceof i)){var E,k=1;if(v){if(!(E=s(x,_,e,y))||E.index>=e.length)break;var T=E.index,N=E.index+E[0].length,A=_;for(A+=S.value.length;T>=A;)A+=(S=S.next).value.length;if(_=A-=S.value.length,S.value instanceof i)continue;for(var R=S;R!==t.tail&&(A<N||"string"==typeof R.value);R=R.next)k++,A+=R.value.length;k--,C=e.slice(_,A),E.index-=_}else if(!(E=s(x,0,C,y)))continue;T=E.index;var P=E[0],L=C.slice(0,T),O=C.slice(T+P.length),M=_+C.length;d&&M>d.reach&&(d.reach=M);var F=S.prev;if(L&&(F=c(t,F,L),_+=L.length),u(t,F,k),S=c(t,F,new i(f,m?o.tokenize(P,m):P,b,P)),O&&c(t,S,O),k>1){var D={cause:f+","+h,reach:M};l(e,t,n,S.prev,_,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function a(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(i.classes,s):i.classes.push(s)),o.hooks.run("wrap",i);var l="";for(var a in i.attributes)l+=" "+a+'="'+(i.attributes[a]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+l+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,s=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),s&&e.close()},!1),o):o;var d=o.util.currentScript();function f(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};o["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},r.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",o="loaded",i="pre[data-src]:not(["+t+'="'+o+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),r.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(i)){s.code="",l.setAttribute(t,n);var a=l.appendChild(document.createElement("CODE"));a.textContent="Loading…";var c=l.getAttribute("data-src"),u=s.language;if("none"===u){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];u=e[d]||d}r.util.setLanguage(a,u),r.util.setLanguage(l,u);var f=r.plugins.autoloader;f&&f.loadLanguages(u),function(e,n,i){var s=new XMLHttpRequest;s.open("GET",e,!0),s.onreadystatechange=function(){4==s.readyState&&(s.status<400&&s.responseText?function(e){l.setAttribute(t,o);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(l.getAttribute("data-range"));if(n){var i=e.split(/\r\n?|\n/g),s=n[0],c=null==n[1]?i.length:n[1];s<0&&(s+=i.length),s=Math.max(0,Math.min(s-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(s,c).join("\n"),l.hasAttribute("data-start")||l.setAttribute("data-start",String(s+1))}a.textContent=e,r.highlightElement(a)}(s.responseText):s.status>=400?i("✖ Error "+s.status+" while fetching file: "+s.statusText):i("✖ Error: File does not exist or is empty"))},s.send(null)}(c,0,function(e){l.setAttribute(t,"failed"),a.textContent=e})}}),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(i),o=0;t=n[o++];)r.highlightElement(t)}};var s=!1;r.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},6069:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||g}function b(){}function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||g}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=w.prototype=new b;x.constructor=w,m(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function _(){}var C={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function k(e,t,r){var o=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==o?o:null,props:r}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function R(e,t,o,i,s){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var a,c,u=!1;if(null===e)u=!0;else switch(l){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0;break;case f:return R((u=e._init)(e._payload),t,o,i,s)}}if(u)return s=s(e),u=""===i?"."+A(e,0):i,S(s)?(o="",null!=u&&(o=u.replace(N,"$&/")+"/"),R(s,t,o,"",function(e){return e})):null!=s&&(T(s)&&(a=s,c=o+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(N,"$&/")+"/")+u,s=k(a.type,c,a.props)),t.push(s)),1;u=0;var d,p=""===i?".":i+":";if(S(e))for(var g=0;g<e.length;g++)u+=R(i=e[g],t,o,l=p+A(i,g),s);else if("function"==typeof(g=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(e=g.call(e),g=0;!(i=e.next()).done;)u+=R(i=i.value,t,o,l=p+A(i,g++),s);else if("object"===l){if("function"==typeof e.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(_,_):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,o,i,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",function(e){return t.call(n,e,o++)}),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},M={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=p,t.Children=M,t.Component=v,t.Fragment=o,t.Profiler=s,t.PureComponent=w,t.StrictMode=i,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];r.children=s}return k(e.type,o,r)},t.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:l,_context:e},e},t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),a=0;a<s;a++)l[a]=arguments[a+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return k(e,i,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),o=C.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(_,O)}catch(e){O(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},t.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},t.use=function(e){return C.H.use(e)},t.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},t.useCallback=function(e,t){return C.H.useCallback(e,t)},t.useContext=function(e){return C.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return C.H.useEffect(e,t)},t.useEffectEvent=function(e){return C.H.useEffectEvent(e)},t.useId=function(){return C.H.useId()},t.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return C.H.useMemo(e,t)},t.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},t.useRef=function(e){return C.H.useRef(e)},t.useState=function(e){return C.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return C.H.useTransition()},t.version="19.2.3"},6854:e=>{e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,s,l){var a=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),s=0,l=i.length;s<l;s++){var a=i[s];if("*"===a&&(n=n.concat(t[a])),2===o.length&&o[0]===a){n=n.concat(t[a]);break}}return n}(e);a.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,a,[n,r,o,i,s,l])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,function r(){n.apply(this,arguments),e.off(t,r)})},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e}},6931:()=>{!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)},7140:(e,t,n)=>{"use strict";e.exports=n(6069)},7604:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7832:()=>{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},7913:()=>{!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],s=o.content[3];if(i&&s&&"code-language"===i.type&&"code-block"===s.type&&"string"==typeof i.content){var l=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());s.alias?"string"==typeof s.alias?s.alias=[s.alias,a]:s.alias.push(a):s.alias=[a]}}else e(o.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(t.content.replace(s,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),a(n)):l[t]||e}),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var s=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)},8070:()=>{Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},8479:()=>{!function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism)},9023:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},9365:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9561:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},9656:()=>{Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},9707:(e,t,n)=>{"use strict";var r=n(7140);function o(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 i(){}var s={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal"),a=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:l,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=a.T,n=s.p;try{if(a.T=null,s.p=2,e)return e()}finally{a.T=t,s.p=n,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=c(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,i="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:i}):"script"===n&&s.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:i,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=c(n,t.crossOrigin);s.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=c(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return a.H.useFormState(e,t,n)},t.useFormStatus=function(){return a.H.useHostTransitionStatus()},t.version="19.2.3"}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,o.d(i,s),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{renderWikiContent:()=>oq});var e={};o.r(e),o.d(e,{Arrow:()=>Lb,Content:()=>Pb,Portal:()=>Rb,Provider:()=>Tb,Root:()=>Nb,Tooltip:()=>fb,TooltipArrow:()=>kb,TooltipContent:()=>wb,TooltipPortal:()=>vb,TooltipProvider:()=>ab,TooltipTrigger:()=>hb,Trigger:()=>Ab,createTooltipScope:()=>tb});var t={};o.r(t),o.d(t,{O:()=>e_,B:()=>t_});var n={};o.r(n),o.d(n,{CheckboxContainer:()=>HT,CheckboxRoot:()=>UT,Indicator:()=>BT,Label:()=>KT});var r={};o.r(r),o.d(r,{CheckboxItem:()=>zF,ContentWrapper:()=>UF,Item:()=>$F,Separator:()=>KF,SubContent:()=>HF,SubTrigger:()=>jF});var s={};o.r(s),o.d(s,{CheckboxIndicator:()=>qF,Content:()=>GF,TriggerMoreIcon:()=>VF});var l={};o.r(l),o.d(l,{O:()=>EW,B:()=>kW});var a=o(7140),c=o.t(a,2),u=o(4668),d=o(5656);const f=(0,a.createContext)(null);function p(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}}function h(){const e=(0,a.useContext)(f);return null==e&&function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}const g="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function m(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function y(){return function(e){const[t]=h(),n=(0,a.useMemo)(()=>e(t),[t,e]),[r,o]=(0,a.useState)(()=>n.initialValueFn()),i=(0,a.useRef)(r);return g(()=>{const{initialValueFn:e,subscribe:t}=n,r=e();return i.current!==r&&(i.current=r,o(r)),t(e=>{i.current=e,o(e)})},[n,e]),r}(m)}function v(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function b(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const w="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,x=w&&"documentMode"in document?document.documentMode:null,S=w&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),_=w&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),C=!(!w||!("InputEvent"in window)||x)&&"getTargetRanges"in new window.InputEvent("input"),E=w&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,k=w&&/Android/.test(navigator.userAgent),T=w&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!k,N=w&&/^(?=.*Chrome).*/i.test(navigator.userAgent),A=w&&k&&N,R=w&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&S&&!N,P=0,L=1,O=2,M=1,F=2,D=3,I=4,$=5,j=6,z=T||E||R?" ":"​",B="\n\n",U=_?" ":z,H="֑-߿יִ-﷽ﹰ-ﻼ",K="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",W=new RegExp("^[^"+K+"]*["+H+"]"),V=new RegExp("^[^"+H+"]*["+K+"]"),q={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},G={directionless:1,unmergeable:2},Y={center:2,end:6,justify:4,left:1,right:3,start:5},J={[F]:"center",[j]:"end",[I]:"justify",[M]:"left",[D]:"right",[$]:"start"},X={normal:0,segmented:2,token:1},Q={[P]:"normal",[O]:"segmented",[L]:"token"},Z="$config";function ee(e,t,n,r,o,i){let s=e.getFirstChild();for(;null!==s;){const e=s.__key;s.__parent===t&&(ko(s)&&ee(s,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),s=s.getNextSibling()}}let te=!1,ne=0;function re(e){ne=e.timeStamp}function oe(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==wi(e,n)}function ie(e,t,n){const r=us(ts(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const s=e.nodeValue;null!==s&&Oi(t,s,o,i,!1)}function se(e,t,n){if(_r(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return ai(t)&&n.isAttached()}function le(e,t,n,r){for(let o=e;o&&!Es(o);o=Yi(o)){const e=wi(o,t);if(void 0!==e){const t=vi(e,n);if(t)return Ao(t)||!fs(o)?void 0:[o,t]}else if(o===r)return[r,Ei(n)]}}function ae(e,t,n){te=!0;const r=performance.now()-ne>100;try{So(e,()=>{const o=zr()||function(e){return e.getEditorState().read(()=>{const e=zr();return null!==e?e.clone():null})}(e),i=new Map,s=e.getRootElement(),l=e._editorState,a=e._blockCursorElement;let c=!1,u="";for(let n=0;n<t.length;n++){const d=t[n],f=d.type,p=d.target,h=le(p,e,l,s);if(!h)continue;const[g,m]=h;if("characterData"===f)r&&pr(m)&&ai(p)&&se(o,p,m)&&ie(p,m,e);else if("childList"===f){c=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=bi(r),i=r.parentNode;if(null!=i&&r!==a&&null===o&&!oe(r,i,e)){if(_){const e=(fs(r)?r.innerText:null)||r.nodeValue;e&&(u+=e)}i.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let o=0;o<r;o++){const r=n[o];(oe(r,p,e)||a===r)&&(p.appendChild(r),t++)}r!==t&&i.set(g,m)}}}if(i.size>0)for(const[t,n]of i)n.reconcileObservedMutation(t,e);const d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){const n=d[t],r=n.addedNodes,o=n.target;for(let t=0;t<r.length;t++){const n=r[t],i=n.parentNode;null==i||"BR"!==n.nodeName||oe(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(c&&ki(o),_&&Vi(e)&&o.insertRawText(u))})}finally{te=!1}}function ce(e){const t=e._observer;null!==t&&ae(e,t.takeRecords(),t)}function ue(e){!function(e){0===ne&&ts(e).addEventListener("textInput",re,!0)}(e),e._observer=new MutationObserver((t,n)=>{ae(e,t,n)})}class de{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||we).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}}function fe(e,t){return new de(e,t)}function pe(e,t,n="latest"){const r=("latest"===n?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function he(e,t,n){let r;if(io(),"function"==typeof n){const o=e.getLatest(),i=pe(o,t);if(r=n(i),t.isEqual(i,r))return o}else r=n;const o=e.getWritable();return ye(o).updateFromKnown(t,r),o}function ge(e){const t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:e}=Ts(r);if(e&&e.stateConfigs)for(const r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}class me{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,o=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;const{sharedConfigMap:i}=this.sharedNodeState,s=void 0!==o?o:function(e,t,n){let r=n.size;if(t)for(const o in t){const t=e.get(o);t&&n.has(t)||r++}return r}(i,n,r);this.size=s}getValue(e){const t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return be(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new me(e,t,function(e,t,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=e.get(o);n?t.has(n)||t.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(t.sharedConfigMap,r,n),r,this.size)}resetOnCopyNode(){for(const e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){const n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);const{knownState:r,unknownState:o}=this;r.has(e)||o&&n in o||(o&&(delete o[n],this.unknownState=be(o)),this.size++),r.set(e,t)}updateFromUnknown(e,t){const n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function ye(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new me(t,ve(t));return t.__state=n,n}function ve(e){return e.__state?e.__state.sharedNodeState:Jo(vs(),e.getType()).sharedNodeState}function be(e){if(e)for(const t in e)return e}function we(e){return e}function xe(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const t=n?n.getValue(r):r.defaultValue;if(t!==o&&!r.isEqual(t,o))return!0}return!1}function Se(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r)for(const[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(o?o[t]:void 0)))return!0;return!1}function _e(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Ce(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,l=t.__style,a=e.__state,c=t.__state;return(null===n||n===i)&&(null===r||r===s)&&(null===o||o===l)&&(null===e.__state||a===c||function(e,t){if(e===t)return!0;const n=new Set;return!(e&&xe(n,e,t)||t&&xe(n,t,e)||e&&Se(n,e,t)||t&&Se(n,t,e))}(a,c))}function Ee(e,t){const n=e.mergeWithSibling(t),r=ao()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function ke(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&pr(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Ce(t,r)){r=Ee(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&pr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Ce(r,n)){r=Ee(r,n);break}break}n.remove()}}else r.remove()}function Te(e){return Ne(e.anchor),Ne(e.focus),e}function Ne(e){for(;"element"===e.type;){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),pr(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!ko(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Ae,Re,Pe,Le,Oe,Me,Fe,De,Ie,$e,je="",ze=null,Be=null,Ue=!1,He=!1;function Ke(e,t){const n=Fe.get(e);if(null!==t){const n=st(e);n.parentNode===t&&t.removeChild(n)}if(De.has(e)||Re._keyToDOMMap.delete(e),ko(n)){const e=tt(n,Fe);We(e,0,e.length-1,null)}void 0!==n&&Ui($e,Pe,Le,n,"destroyed")}function We(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&Ke(t,r)}}function Ve(e,t){e.setProperty("text-align",t)}const qe="40px";function Ge(e,t){const n=Ae.theme.indent;if("string"==typeof n){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}if(0===t)return void e.style.setProperty("padding-inline-start","");const r=getComputedStyle(Re._rootElement||e).getPropertyValue("--lexical-indent-base-value")||qe;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function Ye(e,t){const n=e.style;0===t?Ve(n,""):1===t?Ve(n,"left"):2===t?Ve(n,"center"):3===t?Ve(n,"right"):4===t?Ve(n,"justify"):5===t?Ve(n,"start"):6===t&&Ve(n,"end")}function Je(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(Po(e))return null;const n=e.getParentOrThrow();return Po(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function Xe(e,t){const n=De.get(e);void 0===n&&v(60);const r=n.createDOM(Ae,Re);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){e[`__lexicalKey_${t._key}`]=n})(t,n,e),r.set(e,t)}(e,r,Re),pr(n)?r.setAttribute("data-lexical-text","true"):Ao(n)&&r.setAttribute("data-lexical-decorator","true"),ko(n)){const e=n.__indent,t=n.__size;if(Je(r,n),0!==e&&Ge(r,e),0!==t){const e=t-1;Qe(tt(n,De),0,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&Ye(r,o),n.isInline()||et(null,n,r)}else{const t=n.getTextContent();if(Ao(n)){const t=n.decorate(Re,Ae);null!==t&&rt(e,t),r.contentEditable="false"}je+=t}return null!==t&&t.insertChild(r),Ui($e,Pe,Le,n,"created"),r}function Qe(e,t,n,r,o){const i=je;je="";let s=n;for(;s<=r;++s){Xe(e[s],o);const t=De.get(e[s]);null!==t&&pr(t)?null===ze&&(ze=t.getFormat(),Be=t.getStyle()):ko(t)&&s<r&&!t.isInline()&&(je+=B)}o.element.__lexicalTextContent=je,je=i+je}function Ze(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return Yn(e)?"line-break":Ao(e)&&e.isInline()?"decorator":null}return"empty"}return null}function et(e,t,n){const r=Ze(e,Fe),o=Ze(t,De);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function tt(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&v(101),n.push(r),r=e.__next}return n}function nt(e,t){const n=Fe.get(e);let r=De.get(e);void 0!==n&&void 0!==r||v(61);const o=Ue||Me.has(e)||Oe.has(e),i=Gi(Re,e);if(n===r&&!o){let e;if(ko(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return je+=e,i}if(n!==r&&o&&Ui($e,Pe,Le,r,"updated"),r.updateDOM(n,i,Ae)){const n=Xe(e,null);return null===t&&v(62),t.replaceChild(n,i),Ke(e,null),n}if(ko(n)){ko(r)||v(334,e);const t=r.__indent;(Ue||t!==n.__indent)&&Ge(i,t);const s=r.__format;if((Ue||s!==n.__format)&&Ye(i,s),o)(function(e,t,n){var r,o;ze=null,Be=null,function(e,t,n){const r=je,o=e.__size,i=t.__size;je="";const s=n.element;if(1===o&&1===i){const n=e.__first,o=t.__first;if(n===o)nt(n,s);else{const e=st(n),t=Xe(o,null);try{s.replaceChild(t,e)}catch(r){if("object"==typeof r&&null!=r){const i=`${r.toString()} Parent: ${s.tagName}, new child: {tag: ${t.tagName} key: ${o}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw r}Ke(n,null)}const i=De.get(o);pr(i)&&null===ze&&(ze=i.getFormat(),Be=i.getStyle())}else{const r=tt(e,Fe),l=tt(t,De);if(r.length!==o&&v(227),l.length!==i&&v(228),0===o)0!==i&&Qe(l,0,0,i-1,n);else if(0===i){if(0!==o){const e=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;We(r,0,o-1,e?null:s),e&&(s.textContent="")}}else!function(e,t,n,r,o,i){const s=r-1,l=o-1;let a,c,u=i.getFirstChild(),d=0,f=0;for(;d<=s&&f<=l;){const e=t[d],r=n[f];if(e===r)u=ot(nt(r,i.element)),d++,f++;else{if(void 0===c&&(c=it(n,f)),void 0===a)a=it(t,d);else if(!a.has(e)){d++;continue}if(!c.has(e)){u=ot(st(e)),Ke(e,i.element),d++,a.delete(e);continue}if(a.has(r)){const e=Gi(Re,r);e!==u&&i.withBefore(u).insertChild(e),u=ot(nt(r,i.element)),d++,f++}else Xe(r,i.withBefore(u)),f++}const o=De.get(r);null!==o&&pr(o)?null===ze&&(ze=o.getFormat(),Be=o.getStyle()):ko(o)&&f<=l&&!o.isInline()&&(je+=B)}const p=d>s,h=f>l;if(p&&!h){const e=n[l+1],t=void 0===e?null:Re.getElementByKey(e);Qe(n,0,f,l,i.withBefore(t))}else h&&!p&&We(t,d,s,i.element)}(0,r,l,o,i,n)}s.__lexicalTextContent=je,je=r+je}(e,t,t.getDOMSlot(n)),r=t,null==ze||ze===r.__textFormat||He||r.setTextFormat(ze),o=t,null==Be||Be===o.__textStyle||He||o.setTextStyle(Be)})(n,r,i),Po(r)||r.isInline()||et(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),je+=t}if((Ue||r.__dir!==n.__dir)&&(Je(i,r),Po(r)&&!Ue))for(const e of r.getChildren())ko(e)&&Je(Gi(Re,e.getKey()),e)}else{const t=r.getTextContent();if(Ao(r)){const t=r.decorate(Re,Ae);null!==t&&rt(e,t)}je+=t}if(!He&&Po(r)&&r.__cachedText!==je){const e=r.getWritable();e.__cachedText=je,r=e}return i}function rt(e,t){let n=Re._pendingDecorators;const r=Re._decorators;if(null===n){if(r[e]===t)return;n=Si(Re)}n[e]=t}function ot(e){let t=e.nextSibling;return null!==t&&t===Re._blockCursorElement&&(t=t.nextSibling),t}function it(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function st(e){const t=Ie.get(e);return void 0===t&&v(75,e),t}function lt(e){return{type:e}}const at=lt("SELECTION_CHANGE_COMMAND"),ct=lt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),ut=lt("CLICK_COMMAND"),dt=lt("BEFORE_INPUT_COMMAND"),ft=lt("INPUT_COMMAND"),pt=lt("COMPOSITION_START_COMMAND"),ht=lt("COMPOSITION_END_COMMAND"),gt=lt("DELETE_CHARACTER_COMMAND"),mt=lt("INSERT_LINE_BREAK_COMMAND"),yt=lt("INSERT_PARAGRAPH_COMMAND"),vt=lt("CONTROLLED_TEXT_INSERTION_COMMAND"),bt=lt("PASTE_COMMAND"),wt=lt("REMOVE_TEXT_COMMAND"),xt=lt("DELETE_WORD_COMMAND"),St=lt("DELETE_LINE_COMMAND"),_t=lt("FORMAT_TEXT_COMMAND"),Ct=lt("UNDO_COMMAND"),Et=lt("REDO_COMMAND"),kt=lt("KEYDOWN_COMMAND"),Tt=lt("KEY_ARROW_RIGHT_COMMAND"),Nt=lt("MOVE_TO_END"),At=lt("KEY_ARROW_LEFT_COMMAND"),Rt=lt("MOVE_TO_START"),Pt=lt("KEY_ARROW_UP_COMMAND"),Lt=lt("KEY_ARROW_DOWN_COMMAND"),Ot=lt("KEY_ENTER_COMMAND"),Mt=lt("KEY_SPACE_COMMAND"),Ft=lt("KEY_BACKSPACE_COMMAND"),Dt=lt("KEY_ESCAPE_COMMAND"),It=lt("KEY_DELETE_COMMAND"),$t=lt("KEY_TAB_COMMAND"),jt=lt("INSERT_TAB_COMMAND"),zt=lt("INDENT_CONTENT_COMMAND"),Bt=lt("OUTDENT_CONTENT_COMMAND"),Ut=lt("DROP_COMMAND"),Ht=lt("FORMAT_ELEMENT_COMMAND"),Kt=lt("DRAGSTART_COMMAND"),Wt=lt("DRAGOVER_COMMAND"),Vt=lt("DRAGEND_COMMAND"),qt=lt("COPY_COMMAND"),Gt=lt("CUT_COMMAND"),Yt=lt("SELECT_ALL_COMMAND"),Jt=(lt("CLEAR_EDITOR_COMMAND"),lt("CLEAR_HISTORY_COMMAND"),lt("CAN_REDO_COMMAND"),lt("CAN_UNDO_COMMAND"),lt("FOCUS_COMMAND")),Xt=lt("BLUR_COMMAND"),Qt=lt("KEY_MODIFIER_COMMAND"),Zt=Object.freeze({}),en=[["keydown",function(e,t){tn=e.timeStamp,nn=e.key,t.isComposing()||qi(t,kt,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;ps(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&So(t,()=>{Zo(n)||(cn=!0)})}],["compositionstart",function(e,t){qi(t,pt,e)}],["compositionend",function(e,t){_?dn=!0:E||!T&&!R?qi(t,ht,e):(fn=!0,pn=e.data)}],["input",function(e,t){e.stopPropagation(),So(t,()=>{t.dispatchCommand(ft,e)},{event:e}),on=null}],["click",function(e,t){So(t,()=>{const n=zr(),r=us(ts(t)),o=Br();if(r)if(_r(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!Po(i)&&1===Ci().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&i!==n.focus.getNode()){const e=As(i,e=>ko(e)&&!e.isInline());ko(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;(fs(n)||ai(n))&&ki(jr(o,r,t,e))}qi(t,ut,e)})}],["cut",Zt],["copy",Zt],["dragstart",Zt],["dragover",Zt],["dragend",Zt],["paste",Zt],["focus",Zt],["blur",Zt],["drop",Zt]];C&&en.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;"deleteCompositionText"===n||_&&Vi(t)||"insertCompositionText"!==n&&qi(t,dt,e)}(e,t)]);let tn=0,nn=null,rn=0,on=null;const sn=new WeakMap,ln=new WeakMap;let an=!1,cn=!1,un=!1,dn=!1,fn=!1,pn="",hn=null,gn=[0,"",0,"root",0];function mn(e,t,n,r,o){const i=e.anchor,s=e.focus,l=i.getNode(),a=ao(),c=us(ts(a)),u=null!==c?c.anchorNode:null,d=i.key,f=a.getElementByKey(d),p=n.length;return d!==s.key||!pr(l)||(!o&&(!C||rn<r+50)||l.isDirty()&&p<2||Ni(n))&&i.offset!==s.offset&&!l.isComposing()||li(l)||l.isDirty()&&p>1||(o||!C)&&null!==f&&!l.isComposing()&&u!==ui(f)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||!l.isComposing()&&(l.getFormat()!==e.format||l.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const n=e.anchor.offset,r=t.getParentOrThrow(),o=si(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(pr(t)||ko(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,l)}function yn(e,t){return ai(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function vn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;an&&(an=!1,yn(r,o)&&yn(i,s)&&!hn)||So(t,()=>{if(!n)return void ki(null);if(!ti(t,r,i))return;let l=zr();if(hn&&_r(l)&&l.isCollapsed()){const e=l.anchor,t=hn.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(l=hn.clone(),ki(l))}if(hn=null,_r(l)){const n=l.anchor,r=n.getNode();if(l.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(l.dirty=!0);const o=ts(t).event,i=o?o.timeStamp:performance.now(),[s,a,c,u,d]=gn,f=Ci(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===c&&n.key===u)bn(l,s,a);else if("text"===n.type)pr(r)||v(141),wn(l,r);else if("element"===n.type&&!p){ko(r)||v(259);const e=n.getNode();e.isEmpty()?function(e,t){bn(e,t.getTextFormat(),t.getTextStyle())}(l,e):bn(l,l.format,"")}}else{const e=n.key,t=l.focus.key,r=l.getNodes(),i=r.length,a=l.isBackward(),c=a?s:o,u=a?o:s,d=a?t:e,f=a?e:t;let p=2047,h=!1;for(let e=0;e<i;e++){const t=r[e],n=t.getTextContentSize();if(pr(t)&&0!==n&&!(0===e&&t.__key===d&&c===n||e===i-1&&t.__key===f&&0===u)&&(h=!0,p&=t.getFormat(),0===p))break}l.format=h?p:0}}qi(t,at,void 0)})}function bn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function wn(e,t){bn(e,t.getFormat(),t.getStyle())}function xn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function Sn(e){const t=e.inputType,n=xn(e),r=ao(),o=zr();if("deleteContentBackward"===t){if(null===o){const e=Br();if(!_r(e))return!0;ki(e.clone())}if(_r(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===nn&&i<tn+30&&r.isComposing()&&t){if(mi(null),tn=0,setTimeout(()=>{So(r,()=>{mi(null)})},30),_r(o)){const e=o.anchor.getNode();e.markDirty(),pr(e)||v(142),wn(o,e)}}else{mi(null),e.preventDefault();const n=o.anchor.getNode(),i=n.getTextContent(),s=n.canInsertTextAfter(),l=0===o.anchor.offset&&o.focus.offset===i.length;let a=A&&t&&!l&&s;if(a&&o.isCollapsed()&&(a=!Ao(Wi(o.anchor,!0))),!a){qi(r,gt,!0);const e=zr();A&&_r(e)&&e.isCollapsed()&&(hn=e,setTimeout(()=>hn=null))}}return!0}}var i;if(!_r(o))return!0;const s=e.data;null!==on&&Li(!1,r,on),o.dirty&&null===on||!o.isCollapsed()||Po(o.anchor.getNode())||null===n||o.applyDOMRange(n),on=null;const l=o.anchor,a=o.focus,c=l.getNode(),u=a.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===s)e.preventDefault(),qi(r,mt,!1);else if(s===B)e.preventDefault(),qi(r,yt,void 0);else if(null==s&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=s&&mn(o,n,s,e.timeStamp,!0)?(e.preventDefault(),qi(r,vt,s)):on=s;return rn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":qi(r,vt,e);break;case"insertFromComposition":mi(null),qi(r,vt,e);break;case"insertLineBreak":mi(null),qi(r,mt,!1);break;case"insertParagraph":mi(null),un&&!E?(un=!1,qi(r,mt,!1)):qi(r,yt,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":qi(r,bt,e);break;case"deleteByComposition":(function(e,t){return e!==t||ko(e)||ko(t)||!si(e)||!si(t)})(c,u)&&qi(r,wt,e);break;case"deleteByDrag":case"deleteByCut":qi(r,wt,e);break;case"deleteContent":qi(r,gt,!1);break;case"deleteWordBackward":qi(r,xt,!0);break;case"deleteWordForward":qi(r,xt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":qi(r,St,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":qi(r,St,!1);break;case"formatStrikeThrough":qi(r,_t,"strikethrough");break;case"formatBold":qi(r,_t,"bold");break;case"formatItalic":qi(r,_t,"italic");break;case"formatUnderline":qi(r,_t,"underline");break;case"historyUndo":qi(r,Ct,void 0);break;case"historyRedo":qi(r,Et,void 0)}return!0}function _n(e){if(fs(e.target)&&Zo(e.target))return!0;const t=ao(),n=zr(),r=e.data,o=xn(e);if(null!=r&&_r(n)&&mn(n,o,r,e.timeStamp,!1)){dn&&(kn(t,r),dn=!1);const o=n.anchor.getNode(),i=us(ts(t));if(null===i)return!0;const s=n.isBackward(),l=s?n.anchor.offset:n.focus.offset,a=s?n.focus.offset:n.anchor.offset;C&&!n.isCollapsed()&&pr(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,l)+r+o.getTextContent().slice(l+a)===Pi(i.anchorNode)||qi(t,vt,r);const c=r.length;_&&c>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=c),A&&t.isComposing()&&(tn=0,mi(null))}else Li(!1,t,null!==r?r:void 0),dn&&(kn(t,r||void 0),dn=!1);return io(),ce(ao()),!0}function Cn(e){const t=ao(),n=zr();if(_r(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();mi(r.key),Xi(Kn),(e.timeStamp<tn+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||pr(o)&&o.getStyle()!==n.style)&&qi(t,vt,U)}return!0}function En(e){return kn(ao(),e.data),Xi(Wn),!0}function kn(e,t){const n=e._compositionKey;if(mi(null),null!==n&&null!=t){if(""===t){const t=vi(n),r=ui(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&pr(t)){const n=us(ts(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),Oi(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=zr();if(_r(t)||Er(t)){if(_r(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void qi(e,Ot,null)}}}Li(!0,e,t)}function Tn(e){const t=ao();if(null==e.key)return!0;if(fn){if(ji(e))return So(t,()=>{kn(t,pn)}),fn=!1,pn="",!0;fn=!1,pn=""}if(function(e){return Di(e,"ArrowRight",{shiftKey:"any"})}(e))qi(t,Tt,e);else if(function(e){return Di(e,"ArrowRight",Ii)}(e))qi(t,Nt,e);else if(function(e){return Di(e,"ArrowLeft",{shiftKey:"any"})}(e))qi(t,At,e);else if(function(e){return Di(e,"ArrowLeft",Ii)}(e))qi(t,Rt,e);else if(function(e){return Di(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))qi(t,Pt,e);else if(function(e){return Di(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))qi(t,Lt,e);else if(function(e){return Di(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))un=!0,qi(t,Ot,e);else if(function(e){return" "===e.key}(e))qi(t,Mt,e);else if(function(e){return S&&Di(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),un=!0,qi(t,mt,!0);else if(function(e){return Di(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))un=!1,qi(t,Ot,e);else if(function(e){return Di(e,"Backspace",{shiftKey:"any"})||S&&Di(e,"h",{ctrlKey:!0})}(e))ji(e)?qi(t,Ft,e):(e.preventDefault(),qi(t,gt,!0));else if(function(e){return"Escape"===e.key}(e))qi(t,Dt,e);else if(function(e){return Di(e,"Delete",{})||S&&Di(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),qi(t,gt,!1)):qi(t,It,e);else if(function(e){return Di(e,"Backspace",$i)}(e))e.preventDefault(),qi(t,xt,!0);else if(function(e){return Di(e,"Delete",$i)}(e))e.preventDefault(),qi(t,xt,!1);else if(function(e){return S&&Di(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),qi(t,St,!0);else if(function(e){return S&&(Di(e,"Delete",{metaKey:!0})||Di(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),qi(t,St,!1);else if(function(e){return Di(e,"b",Ii)}(e))e.preventDefault(),qi(t,_t,"bold");else if(function(e){return Di(e,"u",Ii)}(e))e.preventDefault(),qi(t,_t,"underline");else if(function(e){return Di(e,"i",Ii)}(e))e.preventDefault(),qi(t,_t,"italic");else if(function(e){return Di(e,"Tab",{shiftKey:"any"})}(e))qi(t,$t,e);else if(function(e){return Di(e,"z",Ii)}(e))e.preventDefault(),qi(t,Ct,void 0);else if(function(e){return S?Di(e,"z",{metaKey:!0,shiftKey:!0}):Di(e,"y",{ctrlKey:!0})||Di(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),qi(t,Et,void 0);else{const n=t._editorState._selection;null===n||_r(n)?zi(e)&&(e.preventDefault(),qi(t,Yt,e)):function(e){return Di(e,"c",Ii)}(e)?(e.preventDefault(),qi(t,qt,e)):function(e){return Di(e,"x",Ii)}(e)?(e.preventDefault(),qi(t,Gt,e)):zi(e)&&(e.preventDefault(),qi(t,Yt,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(Qt,e),!0}function Nn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const An=new Map;function Rn(e){const t=function(e){const t=es(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=ri(t.anchorNode);if(null===n)return;cn&&(cn=!1,So(n,()=>{const r=Br(),o=t.anchorNode;(fs(o)||ai(o))&&ki(jr(r,t,n,e))}));const r=Ai(n),o=r[r.length-1],i=o._key,s=An.get(i),l=s||o;l!==n&&vn(t,l,!1),vn(t,n,!0),n!==o?An.set(i,n):s&&An.delete(i)}function Pn(e){e._lexicalHandled=!0}function Ln(e){return!0===e._lexicalHandled}function On(e,t,n){io();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=zr();if(!_r(t)||!ko(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();return Zi(o,e)&&n.set(e.__key,0,"element"),Zi(i,e)&&r.set(e.__key,0,"element"),t}(e);let s=!1;if(_r(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(Kr(t,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),n.key===r&&(Kr(n,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else Er(i)&&t&&e.isSelected()&&e.selectPrevious();if(_r(i)&&t&&!s){const t=e.getIndexWithinParent();hi(e),Ur(i,o,t,-1)}else hi(e);n||rs(o)||o.canBeEmpty()||!o.isEmpty()||On(o,t),t&&i&&Po(o)&&o.isEmpty()&&o.selectEnd()}const Mn=Symbol.for("ephemeral");function Fn(e){return e[Mn]||!1}class Dn{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Ts(this);return void 0===e&&v(64,this.name),e}static clone(e){v(65,this.name)}$config(){return{}}config(e,t){const n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}resetOnCopyNodeFrom(e){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),pi(this,e)}getType(){return this.__type}isInline(){v(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=vi(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||zr();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(pr(this))return n;if(_r(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Ao(this)&&this.isInline()&&e){const n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(null===e)return-1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return null===e?null:vi(e)}getParentOrThrow(){const e=this.getParent();return null===e&&v(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(rs(t))return ko(e)||e===this&&Ao(e)||v(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&v(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:vi(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return null===e?null:vi(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=ko(this)?this:this.getParent(),n=ko(e)?e:e.getParent(),r=t&&n?ll(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=ll(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===ol(t):("same"!==t.type&&"ancestor"!==t.type&&v(279),!1)))}isParentOf(e){const t=ll(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){const t=this.isBefore(e),n=[],r=new Set;let o=this;for(;null!==o;){const i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;const s=ko(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==s){o=s;continue}const l=t?o.getNextSibling():o.getPreviousSibling();if(null!==l){o=l;continue}const a=o.getParentOrThrow();if(r.has(a.__key)||n.push(a),a===e)break;let c=null,u=a;do{if(null===u&&v(68),c=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),null===u)break;null!==c||r.has(u.__key)||n.push(u)}while(null===c);o=c}return t||n.reverse(),n}isDirty(){const e=ao()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(Fn(this))return this;const e=vi(this.__key);return null===e&&v(113),e}getWritable(){if(Fn(this))return this;io();const e=lo(),t=ao(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,s=zr();if(null!==s&&s.setCachedNodes(null),i.has(r))return gi(o),o;const l=Ss(o);return i.add(r),gi(l),n.set(r,l),l}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){v(70)}updateDOM(e,t,n){v(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){v(18,this.name)}updateFromJSON(e){return function(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of ve(n).flatKeys)e in t&&(void 0!==o&&o!==r||(o={...r}),o[e]=t[e]);return(n.__state||o)&&ye(e).updateFromJSON(o),n}(this,e)}static transform(){return null}remove(e){On(this,!0,e)}replace(e,t){io();let n=zr();null!==n&&(n=n.clone()),ss(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,s=e.getWritable(),l=this.getParentOrThrow().getWritable(),a=l.__size;hi(s);const c=r.getPreviousSibling(),u=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(On(r,!1,!0),null===c?l.__first=i:c.getWritable().__next=i,s.__prev=d,null===u?l.__last=i:u.getWritable().__prev=i,s.__next=f,s.__parent=p,l.__size=a,t&&(ko(this)&&ko(s)||v(139),this.getChildren().forEach(e=>{s.append(e)})),_r(n)){ki(n);const e=n.anchor,t=n.focus;e.key===o&&xr(e,s),t.key===o&&xr(t,s)}return yi()===o&&mi(i),s}insertAfter(e,t=!0){io(),ss(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=zr();let s=!1,l=!1;if(null!==o){const t=e.getIndexWithinParent();if(hi(r),_r(i)){const e=o.__key,n=i.anchor,r=i.focus;s="element"===n.type&&n.key===e&&n.offset===t+1,l="element"===r.type&&r.key===e&&r.offset===t+1}}const a=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(null===a?c.__last=u:a.getWritable().__prev=u,c.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&_r(i)){const e=this.getIndexWithinParent();Ur(i,c,e+1);const t=c.__key;s&&i.anchor.set(t,e+2,"element"),l&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){io(),ss(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;hi(r);const i=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),l=n.__prev,a=this.getIndexWithinParent();null===i?s.__first=o:i.getWritable().__next=o,s.__size++,n.__prev=o,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const c=zr();return t&&_r(c)&&Ur(c,this.getParentOrThrow(),a),e}isParentRequired(){return!1}createParentElementNode(){return jo()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){io();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(ko(n))return n.select();if(!pr(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){io();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(ko(n))return n.select(0,0);if(!pr(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}const In="history-push",$n="history-merge",jn="paste",zn="collaboration",Bn="skip-scroll-into-view",Un="skip-dom-selection",Hn="skip-selection-focus",Kn="composition-start",Wn="composition-end";class Vn extends Dn{static getType(){return"linebreak"}static clone(e){return new Vn(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&ms(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&Jn(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&Jn(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&ms(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&Jn(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&Jn(r))return!0}return!1}(e)?null:{conversion:qn,priority:0}}}static importJSON(e){return Gn().updateFromJSON(e)}}function qn(e){return{node:Gn()}}function Gn(){return is(new Vn)}function Yn(e){return e instanceof Vn}function Jn(e){return ai(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function Xn(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function Qn(e,t){return 1&t?"strong":2&t?"em":"span"}function Zn(e,t,n,r,o){const i=r.classList;let s=Bi(o,"base");void 0!==s&&i.add(...s),s=Bi(o,"underlineStrikethrough");let l=!1;const a=8&t&&4&t;void 0!==s&&(8&n&&4&n?(l=!0,a||i.add(...s)):a&&i.remove(...s));for(const e in q){const r=q[e];if(s=Bi(o,e),void 0!==s)if(n&r){if(l&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...s);continue}(0===(t&r)||a&&"underline"===e||"strikethrough"===e)&&i.add(...s)}else t&r&&i.remove(...s)}}function er(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?z:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||_){const[t,n,o]=function(e,t){const n=e.length,r=t.length;let o=0,i=0;for(;o<n&&o<r&&e[o]===t[o];)o++;for(;i+o<n&&i+o<r&&e[n-i-1]===t[r-i-1];)i++;return[o,n-o-i,t.slice(o,r-i)]}(e,i);0!==n&&r.deleteData(t,n),r.insertData(t,o)}else r.nodeValue=i}}function tr(e,t,n,r,o,i){er(o,e,t);const s=i.theme.text;void 0!==s&&Zn(0,0,r,e,s)}function nr(e,t){const n=document.createElement(t);return n.appendChild(e),n}class rr extends Dn{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new rr(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return Q[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===yi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=q[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return di(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=Xn(0,n),o=Qn(0,n),i=null===r?o:r,s=document.createElement(i);let l=s;this.hasFormat("code")&&s.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(o),s.appendChild(l)),tr(l,this,0,n,this.__text,e);const a=this.__style;return""!==a&&(s.style.cssText=a),s}updateDOM(e,t,n){const r=this.__text,o=e.__format,i=this.__format,s=Xn(0,o),l=Xn(0,i),a=Qn(0,o),c=Qn(0,i);if((null===s?a:s)!==(null===l?c:l))return!0;if(s===l&&a!==c){const e=t.firstChild;null==e&&v(48);const o=document.createElement(c);return tr(o,this,0,i,r,n),t.replaceChild(o,e),!1}let u=t;null!==l&&null!==s&&(u=t.firstChild,null==u&&v(49)),er(r,u,this);const d=n.theme.text;void 0!==d&&o!==i&&Zn(0,o,i,u,d);const f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:ar,priority:0}),b:()=>({conversion:ir,priority:0}),code:()=>({conversion:dr,priority:0}),em:()=>({conversion:dr,priority:0}),i:()=>({conversion:dr,priority:0}),mark:()=>({conversion:dr,priority:0}),s:()=>({conversion:dr,priority:0}),span:()=>({conversion:or,priority:0}),strong:()=>({conversion:dr,priority:0}),sub:()=>({conversion:dr,priority:0}),sup:()=>({conversion:dr,priority:0}),u:()=>({conversion:dr,priority:0})}}static importJSON(e){return fr().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return fs(t)||v(132),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=nr(t,"b")),this.hasFormat("italic")&&(t=nr(t,"i")),this.hasFormat("strikethrough")&&(t=nr(t,"s")),this.hasFormat("underline")&&(t=nr(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format="string"==typeof e?q[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?G[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=di(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=X[e];if(this.__mode===t)return this;const n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){io();let n=e,r=t;const o=zr(),i=this.getTextContent(),s=this.__key;if("string"==typeof i){const e=i.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!_r(o))return Dr(s,n,s,r,"text","text");{const e=yi();e!==o.anchor.key&&e!==o.focus.key||mi(s),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){const o=this.getWritable(),i=o.__text,s=n.length;let l=e;l<0&&(l=s+l,l<0&&(l=0));const a=zr();if(r&&_r(a)){const t=e+s;a.setTextNodeRange(o,t,o,t)}const c=i.slice(0,l)+n+i.slice(l+t);return o.__text=c,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){io();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=yi(),i=n.length;e.sort((e,t)=>e-t),e.push(i);const s=[],l=e.length;for(let t=0,r=0;t<i&&r<=l;r++){const o=e[r];o>t&&(s.push(n.slice(t,o)),t=o)}const a=s.length;if(1===a)return[t];const c=s[0],u=t.getParent();let d;const f=t.getFormat(),p=t.getStyle(),h=t.__detail;let g=!1,m=null,y=null;const v=zr();if(_r(v)){const[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];"text"===e.type&&e.key===r&&(m=e),"text"===t.type&&t.key===r&&(y=t)}t.isSegmented()?(d=fr(c),d.__format=f,d.__style=p,d.__detail=h,d.__state=_e(t,d),g=!0):d=t.setTextContent(c);const b=[d];for(let e=1;e<a;e++){const n=fr(s[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=_e(t,n);const i=n.__key;o===r&&mi(i),b.push(n)}const w=m?m.offset:null,x=y?y.offset:null;let S=0;for(const e of b){if(!m&&!y)break;const t=S+e.getTextContentSize();if(null!==m&&null!==w&&w<=t&&w>=S&&(m.set(e.getKey(),w-S,"text"),w<t&&(m=null)),null!==y&&null!==x&&x<=t&&x>=S){y.set(e.getKey(),x-S,"text");break}S=t}if(null!==u){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&gi(t),null!==n&&gi(n)}(this);const e=u.getWritable(),t=this.getIndexWithinParent();g?(e.splice(t,0,b),this.remove()):e.splice(t,1,b),_r(v)&&Ur(v,u,t,a-1)}return b}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||v(50);const n=this.__key,r=e.__key,o=this.__text,i=o.length;yi()===r&&mi(n);const s=zr();if(_r(s)){const o=s.anchor,l=s.focus;null!==o&&o.key===r&&Wr(o,t,n,e,i),null!==l&&l.key===r&&Wr(l,t,n,e,i)}const l=e.__text,a=t?l+o:o+l;this.setTextContent(a);const c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function or(e){return{forChild:hr(e.style),node:null}}function ir(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:hr(t.style,n?void 0:"bold"),node:null}}const sr=new WeakMap;function lr(e){if(!fs(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function ar(e){const t=e;null===e.parentElement&&v(129);let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=sr.get(n))&&!lr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)sr.set(r[e],o);return o}(t)){const e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){const r=e[n];"\n"===r||"\r\n"===r?t.push(Gn()):"\t"===r?t.push(mr()):""!==r&&t.push(fr(r))}return{node:t}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===n)return{node:null};if(" "===n[0]){let e=t,r=!0;for(;null!==e&&null!==(e=cr(e,!1));){const t=e.textContent||"";if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let e=t,r=!0;for(;null!==e&&null!==(e=cr(e,!0));)if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:fr(n)}}function cr(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){const e=n.parentElement;if(null===e)return null;n=e}if(n=e,fs(n)){const e=n.style.display;if(""===e&&!gs(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(ai(n))return n;if("BR"===n.nodeName)return null}}const ur={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function dr(e){const t=ur[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:hr(e.style,t),node:null}}function fr(e=""){return is(new rr(e))}function pr(e){return e instanceof rr}function hr(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),s="italic"===e.fontStyle,l=r.includes("underline"),a=e.verticalAlign;return e=>pr(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),s&&!e.hasFormat("italic")&&e.toggleFormat("italic"),l&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==a||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==a||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}class gr extends rr{static getType(){return"tab"}static clone(e){return new gr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=Bi(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return mr().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&b(126),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||v(286),this}setDetail(e){return 2!==e&&v(127),this}setMode(e){return"normal"!==e&&v(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function mr(){return is(new gr)}function yr(e){return e instanceof gr}class vr{key;offset;type;_selection;constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:rl(ml(al(this,"next")),ml(al(e,"next")))<0}getNode(){const e=vi(this.key);return null===e&&v(20),e}set(e,t,n,r){const o=this._selection,i=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,oo()||(yi()===i&&mi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0)))}}function br(e,t,n){return new vr(e,t,n)}function wr(e,t){let n=t.__key,r=e.offset,o="element";if(pr(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!ko(t)){const e=t.getNextSibling();if(pr(e))n=e.__key,r=0,o="text";else{const e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function xr(e,t){if(ko(t)){const n=t.getLastDescendant();ko(n)||pr(n)?wr(e,n):wr(e,t)}else wr(e,t)}class Sr{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Er(e))return!1;const t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Sr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),n=t.length,r=t[n-1];let o;if(pr(r))o=r.select();else{const e=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(e,e)}o.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=this._nodes,n=[];for(const e of t){const t=vi(e);null!==t&&n.push(t)}return oo()||(this._cachedNodes=n),n}getTextContent(){const e=this.getNodes();let t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((zr()||Br())===this&&e[0]){const t=Ks(e[0],"next");ul(tl(t,t))}for(const t of e)t.remove()}}function _r(e){return e instanceof Cr}class Cr{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!_r(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=function(e){const t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);const o=new Set,i=new Set;for(const n of e)if(zs(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;ko(e)&&i.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),js(e.focus)&&ko(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=Gs(e.focus.origin,"previous");zs(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Js(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!ko(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=ml(e.anchor),r=ml(e.anchor.getFlipped()),o=e=>$s(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(bl(fl(this),"next"));return oo()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const e=this.getNodes();if(0===e.length)return"";const t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[s,l]=Tr(this);let a="",c=!0;for(let u=0;u<e.length;u++){const d=e[u];if(ko(d)&&!d.isInline())c||(a+="\n"),c=!d.isEmpty();else if(c=!1,pr(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=s<l?e.slice(s,l):e.slice(l,s)):e=i?e.slice(s):e.slice(l):d===n&&(e=i?e.slice(0,l):e.slice(0,s)),a+=e}else!Ao(d)&&!Yn(d)||d===n&&this.isCollapsed()||(a+=d.getTextContent())}return a}applyDOMRange(e){const t=ao(),n=t.getEditorState()._selection,r=Mr(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;const[o,i]=r;this.anchor.set(o.key,o.offset,o.type,!0),this.focus.set(i.key,i.offset,i.type,!0),Te(this)}clone(){const e=this.anchor,t=this.focus;return new Cr(br(e.key,e.offset,e.type),br(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=di(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=q[e];return 0!==(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){const r=t[e];"\n"===r||"\r\n"===r?n.push(Gn()):"\t"===r?n.push(mr()):n.push(fr(r))}this.insertNodes(n)}insertText(e){const t=this.anchor,n=this.focus,r=this.format,o=this.style;let i=t,s=n;!this.isCollapsed()&&n.isBefore(t)&&(i=n,s=t),"element"===i.type&&function(e,t,n,r){const o=e.getNode(),i=o.getChildAtIndex(e.offset),s=fr();if(s.setFormat(n),s.setStyle(r),zo(i))i.splice(0,0,[s]);else{const e=Po(o)?jo().append(s):s;null===i?o.append(e):i.insertBefore(e)}e.is(t)&&t.set(s.__key,0,"text"),e.set(s.__key,0,"text")}(i,s,r,o),"element"===s.type&&cl(s,ml(al(s,"next")));const l=i.offset;let a=s.offset;const c=this.getNodes(),u=c.length;let d=c[0];pr(d)||v(26);const f=d.getTextContent().length,p=d.getParentOrThrow();let h=c[u-1];if(1===u&&"element"===s.type&&(a=f,s.set(i.key,a,"text")),this.isCollapsed()&&l===f&&(li(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(pr(t)&&t.canInsertTextBefore()&&!li(t)||(t=fr(),t.setFormat(r),t.setStyle(o),p.canInsertTextAfter()?d.insertAfter(t):p.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===l&&(li(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(pr(t)&&!li(t)||(t=fr(),t.setFormat(r),p.canInsertTextBefore()?d.insertBefore(t):p.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&l!==f){const e=fr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||ko(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Or(this.anchor,this.focus),void this.insertText(e)}if(1===u){if(si(d)){const t=fr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(l!==a||t===r&&n===o){if(yr(d)){const t=fr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=fr(e);if(t.setFormat(r),t.setStyle(o),t.select(),0===l)d.insertBefore(t,!1);else{const[e]=d.splitText(l);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(r),d.setStyle(o)}const i=a-l;d=d.spliceText(l,i,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),...h.getParentKeys()]),n=ko(d)?d:d.getParentOrThrow();let r=ko(h)?h:h.getParentOrThrow(),o=h;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===s.type&&(0!==a||""===h.getTextContent())||"element"===s.type&&h.getIndexWithinParent()<a)if(pr(h)&&!si(h)&&a!==h.getTextContentSize()){if(h.isSegmented()){const e=fr(h.getTextContent());h.replace(e),h=e}Po(s.getNode())||"text"!==s.type||(h=h.spliceText(0,a,"")),t.add(h.__key)}else{const e=h.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?h.remove():e.remove()}else t.add(h.__key);const i=r.getChildren(),p=new Set(c),g=n.is(r),m=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||ko(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?g||m.insertAfter(t,!1):t.remove())}if(!g){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(si(d))if(l===f)d.select();else{const t=fr(e);t.select(),d.replace(t)}else d=d.spliceText(l,f-l,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<u;e++){const n=c[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=zr()===this;dl(this,function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=bl(e,r),s=hl(i.anchor,n),l=hl(i.focus.getFlipped(),n),a=new Set,c=[];for(const e of i.iterNodeCarets(n))if(zs(e))a.add(e.origin.getKey());else if(js(e)){const{origin:t}=e;ko(t)&&!a.has(t.getKey())||c.push(t)}for(const e of c)e.remove();for(const e of i.getTextSlices()){if(!e)continue;const{origin:t}=e.caret,n=t.getTextContentSize(),i=pl(Ks(t,r)),a=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===o||"token"===a&&0!==e.distance)i.remove();else if(0!==e.distance){o="removeEmptySlices";let t=e.removeTextSlice();const n=e.caret.origin;if("segmented"===a){const e=t.origin,n=fr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=Ws(n,r,t.offset)}n.is(s[0].origin)&&(s[0]=t),n.is(l[0].origin)&&(l[0]=t.getFlipped())}}let u,d;for(const e of s)if(gl(e)){u=ml(e);break}for(const e of l)if(gl(e)){d=ml(e);break}const f=function(e,t,n){if(!e||!t)return null;const r=e.getParentAtCaret(),o=t.getParentAtCaret();if(!r||!o)return null;const i=r.getParents().reverse();i.push(r);const s=o.getParents().reverse();s.push(o);const l=Math.min(i.length,s.length);let a;for(a=0;a<l&&i[a]===s[a];a++);const c=(e,t)=>{let n;for(let r=a;r<e.length;r++){const o=e[r];if(rs(o))return;!n&&t(o)&&(n=o)}return n},u=c(i,ys),d=u&&c(s,e=>n.has(e.getKey())&&ys(e));return u&&d?[u,d]:null}(u,d,a);if(f){const[e,t]=f;Gs(e,"previous").splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){const e=n;n=n.getParent(),e.remove(!0)}}const p=[u,d,...s,...l].find(gl);if(p)return el(vl(ml(p),e.direction));v(269,JSON.stringify(s.map(e=>e.origin.__key)))}(fl(this))),e&&zr()!==this&&ki(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void mi(null);const n=this.getNodes(),r=[];for(const e of n)pr(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(ko(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),mi(null),void o(t);const s=this.anchor,l=this.focus,a=this.isBackward(),c=a?l:s,u=a?s:l;let d=0,f=r[0],p="element"===c.type?0:c.offset;if("text"===c.type&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),null==f)return;const h=f.getFormatFlags(e,t);o(h);const g=i-1;let m=r[g];const y="text"===u.type?u.offset:m.getTextContentSize();if(f.is(m)){if(p===y)return;if(li(f)||0===p&&y===f.getTextContentSize())f.setFormat(h);else{const e=f.splitText(p,y),t=0===p?e[0]:e[1];t.setFormat(h),"text"===c.type&&c.set(t.__key,0,"text"),"text"===u.type&&u.set(t.__key,y-p,"text")}return void(this.format=h)}0===p||li(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const v=m.getFormatFlags(e,h);y>0&&(y===m.getTextContentSize()||li(m)||([m]=m.splitText(y)),m.setFormat(v));for(let t=d+1;t<g;t++){const n=r[t],o=n.getFormatFlags(e,v);n.setFormat(o)}"text"===c.type&&c.set(f.__key,p,"text"),"text"===u.type&&u.set(m.__key,y,"text"),this.format=h|v}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=zr();return _r(t)||v(134),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=As(t,ys),r=e[e.length-1];if(ko(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=Yr(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(ko(e)||Ao(e))&&!e.isInline())){ko(n)||v(211,t.constructor.name,t.getType());const o=Yr(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=jo();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=Yn(o);if(i||Ao(o)&&o.isInline()||ko(o)&&o.isInline()||pr(o)||o.isParentRequired()){if(null===n&&(n=o.createParentElementNode(),t.append(n),i))continue;null!==n&&n.append(o)}else t.append(o),n=null}return t}(e),i=o.getLastDescendant(),s=o.getChildren(),l=ko(n)&&n.isEmpty()?null:this.insertParagraph(),a=s[s.length-1];let c=s[0];var u;ko(u=c)&&ys(u)&&!u.isEmpty()&&ko(n)&&(!n.isEmpty()||n.canMergeWhenEmpty())&&(ko(n)||v(211,t.constructor.name,t.getType()),n.append(...c.getChildren()),c=s[1]),c&&(null===n&&v(212,t.constructor.name,t.getType()),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||v(140),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,c));const d=As(i,ys);l&&ko(d)&&(l.canMergeWhenEmpty()||ys(a))&&(d.append(...l.getChildren()),l.remove()),ko(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const f=ko(n)?n.getLastChild():null;Yn(f)&&d!==n&&f.remove()}insertParagraph(){if("root"===this.anchor.key){const e=jo();return Ci().splice(this.anchor.offset,0,[e]),e.select(),e}const e=Yr(this),t=As(this.anchor.getNode(),ys);ko(t)||v(213);const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...r),o.selectStart(),o):null}insertLineBreak(e){const t=Gn();if(this.insertNodes([t]),e){const e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){const e=[...this.getNodes()],t=e.length;let n=e[0],r=e[t-1];const[o,i]=Tr(this),s=this.isBackward(),[l,a]=s?[this.focus,this.anchor]:[this.anchor,this.focus],[c,u]=s?[i,o]:[o,i];if(0===t)return[];if(1===t){if(pr(n)&&!this.isCollapsed()){const e=n.splitText(c,u),t=0===c?e[0]:e[1];return t?(l.set(t.getKey(),0,"text"),a.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(pr(n)&&(c===n.getTextContentSize()?e.shift():0!==c&&([,n]=n.splitText(c),e[0]=n,l.set(n.getKey(),0,"text"))),pr(r)){const t=r.getTextContent().length;0===u?e.pop():u!==t&&([r]=r.splitText(u),e[e.length-1]=r,a.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,t,n){if(Xr(this,e,t,n))return;const r="move"===e,o=ao(),i=us(ts(o));if(!i)return;const s=o._blockCursorElement,l=o._rootElement,a=this.focus.getNode();if(null===l||null===s||!ko(a)||a.isInline()||a.canBeEmpty()||cs(s,o,l),this.dirty){let e=Gi(o,this.anchor.key),t=Gi(o,this.focus.key);"text"===this.anchor.type&&(e=ui(e)),"text"===this.focus.type&&(t=ui(t)),e&&t&&Vr(i,e,this.anchor.offset,t,this.focus.offset)}if(function(e,t,n,r){e.modify(t,n,r)}(i,e,t?"backward":"forward",n),i.rangeCount>0){const e=i.getRangeAt(0),n=this.anchor.getNode(),o=Po(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(rs(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!r){const n=this.getNodes(),r=[];let s=!1;for(let e=0;e<n.length;e++){const t=n[e];Zi(t,o)?r.push(t):s=!0}if(s&&r.length>0)if(t){const e=r[0];ko(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];ko(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}i.anchorNode===e.startContainer&&i.anchorOffset===e.startOffset||function(e){const t=e.focus,n=e.anchor,r=n.key,o=n.offset,i=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,o,i,!0)}(this)}}"lineboundary"===n&&Xr(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&ko(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){const e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(ko(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const t=this.anchor;let n=t.getNode();if(this.forwardDeletion(t,n,e))return;const r=Zs(al(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(const t of r.iterNodeCarets("shadowRoot"))if(zs(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(ko(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=ml(t);dl(this,tl(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(js(t)){if(ko(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(Ao(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&ko(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=$r();e.add(t.origin.getKey()),ki(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return dl(this,tl(!t.origin.isEmpty()&&n.isEmpty()?pl(Ks(n,t.direction)):r.anchor,t)),this.removeText()}}const o=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&Nr(this,t.getNode()))return}else{const r="text"===o.type?o.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){const t=o.offset,i=r.getTextContentSize();if(r.is(n)||e&&t!==i||!e&&0!==t)return void Rr(r,e,t)}else if(null!==n&&n.isSegmented()){const o=t.offset,i=n.getTextContentSize();if(n.is(r)||e&&0!==o||!e&&o!==i)return void Rr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode();if(o===r.getNode()&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,s=e<i,l=s?e:i,a=s?i:e,c=a-1;l!==c&&function(e){return!(Ni(e)||Ar(e))}(o.getTextContent().slice(l,a))&&(t?r.set(r.key,c,r.type):n.set(n.key,c,n.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const e=this.anchor.getNode();e.isEmpty()&&Po(e.getParent())&&null===e.getPreviousSibling()&&Nr(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.isCollapsed()?this.deleteCharacter(e):this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Er(e){return e instanceof Sr}function kr(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Tr(e){const t=e.getStartEndPoints();if(null===t)return[0,0];const[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[kr(n),kr(r)]}function Nr(e,t){for(let n=t;n;n=n.getParent()){if(ko(n)){if(n.collapseAtStart(e))return!0;if(rs(n))break}if(n.getPreviousSibling())break}return!1}const Ar=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Rr(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let e=0;e<i;e++){const r=e===i-1;if(l=s,s+=o[e].length,t&&s===n||s>n||r){o.splice(e,1),r&&(l=void 0);break}}const a=o.join("").trim();""===a?r.remove():(r.setTextContent(a),r.select(l,l))}function Pr(e,t,n,r){let o,i=t;if(fs(e)){let s=!1;const l=e.childNodes,a=l.length,c=r._blockCursorElement;i===a&&(s=!0,i=a-1);let u=l[i],d=!1;if(u===c)u=l[i+1],d=!0;else if(null!==c){const n=c.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,c)&&i--}if(o=Ti(u),pr(o))i=Vs(o,s?"next":"previous");else{let l=Ti(e);if(null===l)return null;if(ko(l)){const a=r.getElementByKey(l.getKey());null===a&&v(214);const c=l.getDOMSlot(a);[l,i]=c.resolveChildIndex(l,a,e,t),ko(l)||v(215),s&&i>=l.getChildrenSize()&&(i=Math.max(0,l.getChildrenSize()-1));let u=l.getChildAtIndex(i);if(ko(u)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){const e=s?u.getLastDescendant():u.getFirstDescendant();null===e?l=u:(u=e,l=ko(u)?u:u.getParentOrThrow()),i=0}pr(u)?(o=u,l=null,i=Vs(u,s?"next":"previous")):u!==l&&s&&!d&&(ko(l)||v(216),i=Math.min(l.getChildrenSize(),i+1))}else{const n=l.getIndexWithinParent();i=0===t&&Ao(l)&&Ti(e)===l?n:n+1,l=l.getParentOrThrow()}if(ko(l))return br(l.__key,i,"element")}}else o=Ti(e);return pr(o)?br(o.__key,Vs(o,i,"clamp"),"text"):null}function Lr(e,t,n){const r=e.offset,o=e.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(t){if((n||!t)&&null===r&&ko(i)&&i.isInline()){const t=i.getPreviousSibling();pr(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else ko(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):pr(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&ko(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&ko(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();pr(t)&&e.set(t.__key,0,"text")}}}function Or(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);Lr(e,n,r),Lr(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function Mr(e,t,n,r,o,i){if(null===e||null===n||!ti(o,e,n))return null;const s=Pr(e,t,_r(i)?i.anchor:null,o);if(null===s)return null;const l=Pr(n,r,_r(i)?i.focus:null,o);if(null===l)return null;if("element"===s.type&&"element"===l.type){const t=Ti(e),r=Ti(n);if(Ao(t)&&Ao(r))return null}return Or(s,l),[s,l]}function Fr(e){return ko(e)&&!e.isInline()}function Dr(e,t,n,r,o,i){const s=lo(),l=new Cr(br(e,t,o),br(n,r,i),0,"");return l.dirty=!0,s._selection=l,l}function Ir(){const e=br("root",0,"element"),t=br("root",0,"element");return new Cr(e,t,0,"")}function $r(){return new Sr(new Set)}function jr(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,s=i?i.type:void 0,l="selectionchange"===s,a=!te&&(l||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&i&&3===i.detail||"drop"===s||void 0===s);let c,u,d,f;if(_r(e)&&!a)return e.clone();if(null===t)return null;if(c=t.anchorNode,u=t.focusNode,d=t.anchorOffset,f=t.focusOffset,(l||void 0===s)&&_r(e)&&!ti(n,c,u))return e.clone();const p=Mr(c,d,u,f,n,e);if(null===p)return null;const[h,g]=p;let m=0,y="";if(_r(e)){const t=e.anchor;if(h.key===t.key)m=e.format,y=e.style;else{const e=h.getNode();pr(e)?(m=e.getFormat(),y=e.getStyle()):ko(e)&&(m=e.getTextFormat(),y=e.getTextStyle())}}return new Cr(h,g,m,y)}function zr(){return lo()._selection}function Br(){return ao()._editorState._selection}function Ur(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),l=i.getNode();if(!t.is(s)&&!t.is(l))return;const a=t.__key;if(e.isCollapsed()){const t=o.offset;if(n<=t&&r>0||n<t&&r<0){const n=Math.max(0,t+r);o.set(a,n,"element"),i.set(a,n,"element"),Hr(e)}}else{const s=e.isBackward(),l=s?i:o,c=l.getNode(),u=s?o:i,d=u.getNode();if(t.is(c)){const e=l.offset;(n<=e&&r>0||n<e&&r<0)&&l.set(a,Math.max(0,e+r),"element")}if(t.is(d)){const e=u.offset;(n<=e&&r>0||n<e&&r<0)&&u.set(a,Math.max(0,e+r),"element")}}Hr(e)}function Hr(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!ko(i))return;const e=i.getChildrenSize(),o=n>=e,s=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(pr(s)){let e=0;o&&(e=s.getTextContentSize()),t.set(s.__key,e,"text"),r.set(s.__key,e,"text")}return}if(ko(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(pr(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(ko(s)){const e=s.getChildrenSize(),t=o>=e,n=t?s.getChildAtIndex(e-1):s.getChildAtIndex(o);if(pr(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function Kr(e,t,n,r,o){let i=null,s=0,l=null;null!==r?(i=r.__key,pr(r)?(s=r.getTextContentSize(),l="text"):ko(r)&&(s=r.getChildrenSize(),l="element")):null!==o&&(i=o.__key,pr(o)?l="text":ko(o)&&(l="element")),null!==i&&null!==l?e.set(i,s,l):(s=t.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function Wr(e,t,n,r,o){"text"===e.type?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function Vr(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){}}function qr(e,t,n){const r=Gi(e,t.getKey());if(ko(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function Gr(e){let t=zr()||Br();null===t&&(t=Ci().selectEnd()),t.insertNodes(e)}function Yr(e){let t=e;e.isCollapsed()||t.removeText();const n=zr();_r(n)&&(t=n),_r(t)||v(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!ys(o);){const e=o;if([o,i]=Jr(o,i),e.is(o))break}return i}function Jr(e,t){const n=e.getParent();if(!n){const e=jo();return Ci().append(e),e.select(),[Ci(),0]}if(pr(e)){const r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];const o=0===t?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!ko(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Cr(br(e.__key,t,"element"),br(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Xr(e,t,n,r,o="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){const[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}const i=al(e.focus,n?"previous":"next"),s="lineboundary"===r,l="move"===t;let a=i,c="decorators-and-blocks"===o;if(!yl(a)){for(const e of a){c=!1;const{origin:t}=e;if(!Ao(t)||t.isIsolated()||(a=e,!s||!t.isInline()))break}if(c)for(const e of Zs(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(zs(e))e.origin.isInline()||(a=e);else{if(ko(e.origin))continue;Ao(e.origin)&&!e.origin.isInline()&&(a=e)}break}}if(a===i)return!1;if(l&&!s&&Ao(a.origin)&&a.origin.isKeyboardSelectable()){const e=$r();return e.add(a.origin.getKey()),ki(e),!0}return a=ml(a),l&&cl(e.anchor,a),cl(e.focus,a),c||!s}let Qr=null,Zr=null,eo=!1,to=!1,no=0;const ro={characterData:!0,childList:!0,subtree:!0};function oo(){return eo||null!==Qr&&Qr._readOnly}function io(){eo&&v(13)}function so(){no>99&&v(14)}function lo(){return null===Qr&&v(195,co()),Qr}function ao(){return null===Zr&&v(196,co()),Zr}function co(){let e=0;const t=new Set,n=Vo.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=oi(r);if(ni(o))e++;else if(o){let e=String(o.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function uo(e,t,n){const r=t.__type,o=Jo(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let e=0;e<s&&(i[e](t),t.isAttached());e++);}function fo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function po(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const e of r)n.add(e)}function ho(e){return go(e,ao()._nodes)}function go(e,t){const n=e.type,r=t.get(n);void 0===r&&v(17,n);const o=r.klass;e.type!==o.getType()&&v(18,o.name);const i=o.importJSON(e),s=e.children;if(ko(i)&&Array.isArray(s))for(let e=0;e<s.length;e++){const n=go(s[e],t);i.append(n)}return i}function mo(e,t,n){const r=Qr,o=eo,i=Zr;Qr=t,eo=!0,Zr=e;try{return n()}finally{Qr=r,eo=o,Zr=i}}function yo(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null===n)return;const i=e._editorState,s=i._selection,l=n._selection,a=0!==e._dirtyType,c=Qr,u=eo,d=Zr,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&a&&null!==p){Zr=e,Qr=n,eo=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=function(e,t,n,r,o,i){je="",Ue=2===r,Re=n,Ae=n._config,Pe=n._nodes,Le=Re._listeners.mutation,Oe=o,Me=i,Fe=e._nodeMap,De=t._nodeMap,He=t._readOnly,Ie=new Map(n._keyToDOMMap);const s=new Map;return $e=s,nt("root",null),Re=void 0,Pe=void 0,Oe=void 0,Me=void 0,Fe=void 0,De=void 0,Ae=void 0,Ie=void 0,$e=void 0,s}(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),to)throw t;return Bo(e,null,r,n),ue(e),e._dirtyType=2,to=!0,yo(e,i),void(to=!1)}finally{p.observe(r,ro),e._updating=f,Qr=c,eo=u,Zr=d}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,m=e._dirtyElements,y=e._normalizedNodes,v=e._updateTags,b=e._deferred;a&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){const n=e._decorators;let r=e._pendingDecorators||n;const o=t._nodeMap;let i;for(i in r)o.has(i)||(r===n&&(r=Si(e)),delete r[i])}(e,n);const w=o?null:us(ts(e));if(e._editable&&null!==w&&(a||null===l||l.dirty||!l.is(s))&&null!==r&&!v.has(Un)){Zr=e,Qr=n;try{if(null!==p&&p.disconnect(),a||null===l||l.dirty){const t=e._blockCursorElement;null!==t&&cs(t,e,r),function(e,t,n,r,o,i){const s=r.anchorNode,l=r.focusNode,a=r.anchorOffset,c=r.focusOffset,u=document.activeElement;if(o.has(zn)&&u!==i||null!==u&&ei(u))return;if(!_r(t))return void(null!==e&&ti(n,s,l)&&r.removeAllRanges());const d=t.anchor,f=t.focus,p=d.getNode(),h=f.getNode(),[g,m]=qr(n,p,d.offset),[y,v]=qr(n,h,f.offset),b=t.format,w=t.style,x=t.isCollapsed();let S=g,C=y,E=!1;var k,T,N,A,R;if("text"===d.type?(S=ui(g),E=p.getFormat()!==b||p.getStyle()!==w):_r(e)&&"text"===e.anchor.type&&(E=!0),"text"===f.type&&(C=ui(y)),null!==S&&null!==C&&(x&&(null===e||E||_r(e)&&(e.format!==b||e.style!==w))&&(k=b,T=w,N=m,A=d.key,R=performance.now(),gn=[k,T,N,A,R]),a!==m||c!==v||s!==S||l!==C||"Range"===r.type&&x||(null!==u&&i.contains(u)||o.has(Hn)||i.focus({preventScroll:!0}),"element"===d.type))){if(Vr(r,S,m,C,v),!_||!t.isCollapsed()||null===i||o.has(Hn)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(Bn)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=_r(t)&&"element"===t.anchor.type?S.childNodes[m]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=Ji(n),o=es(r);if(null===r||null===o)return;let{top:i,bottom:s}=t,l=0,a=0,c=n;for(;null!==c;){const t=c===r.body;if(t){l=0,a=ts(e).innerHeight;const t=o.getComputedStyle(r.documentElement),n=parseFloat(t.scrollPaddingTop),i=parseFloat(t.scrollPaddingBottom);isFinite(n)&&(l+=n),isFinite(i)&&(a-=i)}else{const e=c.getBoundingClientRect();l=e.top,a=e.bottom}let n=0;if(i<l?n=-(l-i):s>a&&(n=s-a),0!==n)if(t)o.scrollBy(0,n);else{const e=c.scrollTop;c.scrollTop+=n;const t=c.scrollTop-e;i-=t,s-=t}if(t)break;c=Yi(c)}}(n,t,i)}}an=!0}}(s,l,e,w,v,r)}!function(e,t,n){let r=e._blockCursorElement;if(_r(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),s=o.offset;let l=!1,a=null;if(s===i.getChildrenSize())as(i.getChildAtIndex(s-1))&&(l=!0);else{const t=i.getChildAtIndex(s);if(null!==t&&as(t)){const n=t.getPreviousSibling();(null===n||as(n))&&(l=!0,a=e.getElementByKey(t.__key))}}if(l){const n=e.getElementByKey(i.__key);return null===r&&(e._blockCursorElement=r=function(e){const t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;if(void 0!==r){if("string"==typeof r){const e=El(r);r=t.blockCursor=e}void 0!==r&&n.classList.add(...r)}return n}(e._config)),t.style.caretColor="transparent",void(null===a?n.appendChild(r):n.insertBefore(r,a))}}null!==r&&cs(r,e,t)}(e,r,l)}finally{null!==p&&p.observe(r,ro),Zr=d,Qr=c}}null!==h&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),s=i.length;for(let e=0;e<s;e++){const[s,l]=i[e];for(const e of l){const i=t.get(e);void 0!==i&&s(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(e,h,v,g,i),_r(l)||null===l||null!==s&&s.is(l)||e.dispatchCommand(at,void 0);const x=e._pendingDecorators;null!==x&&(e._decorators=x,e._pendingDecorators=null,vo("decorator",e,!0,x)),function(e,t,n){const r=_i(t),o=_i(n);r!==o&&vo("textcontent",e,!0,o)}(e,t||i,n),vo("update",e,!0,{dirtyElements:m,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:y,prevEditorState:t||i,tags:v}),function(e,t){if(e._deferred=[],0!==t.length){const n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,b),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;xo(e,t,r)}}}(e)}function vo(e,t,n,...r){const o=t._updating;t._updating=n;try{const n=t._listeners[e],o=Array.from(n);for(const[e,t]of o){t&&t();const o=e(...r);n.has(e)?n.set(e,o):o&&o()}}finally{t._updating=o}}function bo(e,t,n,r){const o=Ai(e);let i;for(let e=4;e>=0;e--)for(let s=0;s<o.length;s++){const l=o[s];if(s>0&&l._updating){i=l;break}const a=l._commands.get(t);if(void 0!==a){const t=a[e];if(void 0!==t){const e=Array.from(t),o=e.length;let i=!1;if(So(l,()=>{for(let t=0;t<o;t++)if(e[t](n,r))return void(i=!0)}),i)return i}}}return i&&i.update(()=>{bo(i,t,n,r)}),!1}function wo(e,t){const n=e._updates;let r=t||!1;for(;0!==n.length;){const t=n.shift();if(t){const[n,o]=t,i=e._pendingEditorState;let s;void 0!==o&&(s=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(null===i&&v(191),i._flushSync=!0),s&&e._deferred.push(s),po(e,o.tag)),null==i?xo(e,n,o):n()}}return r}function xo(e,t,n){const r=e._updateTags;let o,i=!1,s=!1;void 0!==n&&(o=n.onUpdate,po(e,n.tag),i=n.skipTransforms||!1,s=n.discrete||!1),o&&e._deferred.push(o);const l=e._editorState;let a=e._pendingEditorState,c=!1;(null===a||a._readOnly)&&(a=e._pendingEditorState=Lo(a||l),c=!0),a._flushSync=s;const u=Qr,d=eo,f=Zr,p=e._updating;Qr=a,eo=!1,e._updating=!0,Zr=e;const h=e._headless||null===e.getRootElement();Go(null);try{c&&(h?null!==l._selection&&(a._selection=l._selection.clone()):a._selection=function(e,t){const n=e.getEditorState()._selection,r=us(ts(e));return _r(n)||null==n?jr(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=wo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(_r(r)){const e=r.anchor,t=r.focus;let o;if("text"===e.type&&(o=e.getNode(),o.selectionTransform(n,r)),"text"===t.type){const e=t.getNode();o!==e&&e.selectionTransform(n,r)}}}(a,e),0!==e._dirtyType&&(i?function(e,t){const n=t._dirtyLeaves,r=e._nodeMap;for(const e of n){const t=r.get(e);pr(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&ke(t)}}(a,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=yi(),s=new Map;let l=n,a=l.size,c=r,u=c.size;for(;a>0||u>0;){if(a>0){t._dirtyLeaves=new Set;for(const e of l){const r=o.get(e);pr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&ke(r),void 0!==r&&fo(r,i)&&uo(t,r,s),n.add(e)}if(l=t._dirtyLeaves,a=l.size,a>0){no++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,c.delete("root")&&c.set("root",!0);for(const e of c){const n=e[0],l=e[1];if(r.set(n,l),!l)continue;const a=o.get(n);void 0!==a&&fo(a,i)&&uo(t,a,s)}l=t._dirtyLeaves,a=l.size,c=t._dirtyElements,u=c.size,no++}t._dirtyLeaves=n,t._dirtyElements=r}(a,e),wo(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,s=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(ko(t)&&ee(t,e,o,i,s,r),o.has(e)||r.delete(e),s.push(e)))}for(const e of s)i.delete(e);for(const e of n){const t=i.get(e);void 0===t||t.isAttached()||(o.has(e)||n.delete(e),i.delete(e))}}(l,a,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(a._flushSync=!0);const o=a._selection;if(_r(o)){const e=a._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||v(19)}else Er(o)&&0===o._nodes.size&&(a._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=l,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void yo(e)}finally{Qr=u,eo=d,Zr=f,e._updating=p,no=0}const g=0!==e._dirtyType||e._deferred.length>0||function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(a,e);g?a._flushSync?(a._flushSync=!1,yo(e)):c&&Qo(()=>{yo(e)}):(a._flushSync=!1,c&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function So(e,t,n){Zr===e&&void 0===n?t():xo(e,t,n)}class _o{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new _o(this.element,e,this.after)}withAfter(e){return new _o(this.element,this.before,e)}withElement(e){return this.element===e?this:new _o(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&v(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&v(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&v(224),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{const t="decorator"===e&&(R||E||T);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,o=document.createElement("br");if(n.insertBefore(o,r),e){const e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,o),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=o}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){const t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}const o=Co(t,n);o.push(r);const i=Co(t,this.element);let s=e.getIndexWithinParent();for(let e=0;e<i.length;e++){const t=o[e],n=i[e];if(void 0===t||t<n)break;if(t>n){s+=1;break}}return[e.getParentOrThrow(),s]}}function Co(e,t){const n=[];let r=t;for(;r!==e&&null!==r;r=r.parentNode){let e=0;for(let t=r.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return r!==e&&v(225),n.reverse()}class Eo extends Dn{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return J[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const e=ao()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;null!==t;){if(pr(t)&&e.push(t),ko(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;ko(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;ko(e);){const t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),n=t.length;if(e>=n){const e=t[n-1];return ko(e)&&e.getLastDescendant()||e||null}const r=t[e];return ko(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:vi(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&v(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:vi(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&v(96,this.__key),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContent(),ko(o)&&r!==n-1&&!o.isInline()&&(e+=B)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContentSize(),ko(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){const t=Y[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=q[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return di(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){io();const n=zr();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(pr(e)||ko(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(pr(e)||ko(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const s=this.__key;return _r(n)?(n.anchor.set(s,r,"element"),n.focus.set(s,o,"element"),n.dirty=!0,n):Dr(s,r,s,o,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?Y[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){Fn(this)&&v(324,this.__key,this.__type);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||v(226,String(e),String(t),String(r));const i=o.__key,s=[],l=[],a=this.getChildAtIndex(e+t);let c=null,u=r-t+n.length;if(0!==e)if(e===r)c=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(c=t.getPreviousSibling())}if(t>0){let e=null===c?this.getFirstChild():c.getNextSibling();for(let n=0;n<t;n++){null===e&&v(100);const t=e.getNextSibling(),n=e.__key;hi(e.getWritable()),l.push(n),e=t}}let d=c;for(const e of n){null!==d&&e.is(d)&&(c=d=d.getPreviousSibling());const t=e.getWritable();t.__parent===i&&u--,hi(t);const n=e.__key;if(null===d)o.__first=n,t.__prev=null;else{const e=d.getWritable();e.__next=n,t.__prev=e.__key}e.__key===i&&v(76),t.__parent=i,s.push(n),d=e}if(e+t===r)null!==d&&(d.getWritable().__next=null,o.__last=d.__key);else if(null!==a){const e=a.getWritable();if(null!==d){const t=d.getWritable();e.__prev=d.__key,t.__next=a.__key}else e.__prev=null}if(o.__size=u,l.length){const e=zr();if(_r(e)){const t=new Set(l),n=new Set(s),{anchor:r,focus:o}=e;To(r,t,n)&&Kr(r,r.getNode(),this,c,a),To(o,t,n)&&Kr(o,o.getNode(),this,c,a),0!==u||this.canBeEmpty()||rs(this)||this.remove()}}return o}getDOMSlot(e){return new _o(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(fs(t)){const e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");const n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0===t&&""===n||rs(this)||this.getChildren().some(pr)||(0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const n=this.getDOMSlot(e);let r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){const o=t.getElementByKey(e.getKey());null!==o&&(null==r?(n.insertChild(o),r=o):r!==o&&n.replaceChild(o,r),r=r.nextSibling)}}}function ko(e){return e instanceof Eo}function To(e,t,n){let r=e.getNode();for(;r;){const e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class No extends Dn{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ao(e){return e instanceof No}class Ro extends Eo{__cachedText;static getType(){return"root"}static clone(){return new Ro}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){v(51)}getTextContent(){const e=this.__cachedText;return!oo()&&0!==ao()._dirtyType||null===e?super.getTextContent():e}remove(){v(52)}replace(e){v(53)}insertBefore(e){v(54)}insertAfter(e){v(55)}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)ko(e)||Ao(e)||v(282);return super.splice(e,t,n)}static importJSON(e){return Ci().updateFromJSON(e)}collapseAtStart(){return!0}}function Po(e){return e instanceof Ro}function Lo(e){return new Fo(new Map(e._nodeMap))}function Oo(){return new Fo(new Map([["root",new Ro]]))}function Mo(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&v(130,n.name),ko(e)){const r=t.children;Array.isArray(r)||v(59,n.name);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=Mo(o[e]);r.push(t)}}return t}class Fo{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return mo(t&&t.editor||null,this,e)}clone(e){const t=new Fo(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return mo(null,this,()=>({root:Mo(Ci())}))}}class Do extends Eo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class Io extends Eo{static getType(){return"paragraph"}static clone(e){return new Io(e.__key)}createDOM(e){const t=document.createElement("p"),n=Bi(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:$o,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fs(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return jo().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(pr);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=jo();n.setTextFormat(e.format),n.setTextStyle(e.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){const e=this.getChildren();if(0===e.length||pr(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function $o(e){const t=jo();if(e.style&&(t.setFormat(e.style.textAlign),_s(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in Y&&t.setFormat(n)}return{node:t}}function jo(){return is(new Io)}function zo(e){return e instanceof Io}function Bo(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Oo(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;null!==i&&(i.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}function Uo(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Ts(r),o=r.transform;if(!n.has(o)){n.add(o);const e=r.transform();e&&t.add(e)}if(e){const n=e.$transform;n&&t.add(n),r=e.extends}else{const e=Object.getPrototypeOf(r);r=e.prototype instanceof Dn&&e!==Dn?e:void 0}}return t}function Ho(e){const t=e||{},n=Zr,r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,s=Oo(),l=t.namespace||(null!==o?o._config.namespace:Ri()),a=t.editorState,c=[Ro,rr,Vn,gr,Io,Do,...t.nodes||[]],{onError:u,html:d}=t,f=void 0===t.editable||t.editable;let p;if(void 0===e&&null!==n)p=n._nodes;else{p=new Map;for(let e=0;e<c.length;e++){let t=c[e],n=null,r=null;if("function"!=typeof t){const e=t;t=e.replace,n=e.with,r=e.withKlass||null}Ts(t);const o=t.getType(),i=Uo(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:ge(c[e]),transforms:i})}}const h=new Vo(s,o,p,{disableEvents:i,namespace:l,theme:r},u||console.error,function(e,t){const n=new Map,r=new Set,o=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{const t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);const n=t.call(e.klass);null!==n&&o(n)}),t&&o(t),n}(p,d?d.import:void 0),f,e);return void 0!==a&&(h._pendingEditorState=a,h._dirtyType=2),function(e){e.registerCommand(dt,Sn,0),e.registerCommand(ft,_n,0),e.registerCommand(pt,Cn,0),e.registerCommand(ht,En,0),e.registerCommand(kt,Tn,0)}(h),h}function Ko(e,t){const n=e.get(t);e.delete(t),n&&n()}function Wo(e,t,n){return e.set(t,n),Ko.bind(null,e,t)}class Vo{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,n,r,o,i,s,l){this._createEditorArgs=l,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Ri(),this._onError=o,this._htmlConversions=i,this._editable=s,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){return Wo(this._listeners.update,e)}registerEditableListener(e){return Wo(this._listeners.editable,e)}registerDecoratorListener(e){return Wo(this._listeners.decorator,e)}registerTextContentListener(e){return Wo(this._listeners.textcontent,e)}registerRootListener(e){const t=this._listeners.root;return Nl(Wo(t,e,e(this._rootElement,null)||void 0),()=>function(e,t,n){const r=e.get(t);r&&r(),e.set(t,t(...n)||void 0)}(t,e,[null,this._rootElement]))}registerCommand(e,t,n){void 0===n&&v(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&v(36,String(e));const i=o[n];return i.add(t),()=>{i.delete(t),o.every(e=>0===e.size)&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;let i=o.get(t);void 0===i&&(i=new Set,o.set(t,i)),i.add(r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(t,r),()=>{i.delete(r),0===i.size&&o.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return void 0===t&&v(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=xs(n).get(t.getType());if(!r)return;const o=new Map;for(const e of r.keys())o.set(e,"created");o.size>0&&e(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){const n=this.registerNodeTransformToKlass(e,t),r=[n],o=n.replaceWithKlass;if(null!=o){const e=this.registerNodeTransformToKlass(o,t);r.push(e)}return function(e,t){const n=xs(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(const e of r)for(const t of e.keys()){const e=vi(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:$n}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return qi(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const n=Bi(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Bo(this,t,e,r),null!==t&&(this._config.disableEvents||function(e){const t=sn.get(e);if(void 0===t)return;const n=ln.get(t);if(void 0===n)return;const r=n-1;r>=0||v(164),sn.delete(e),ln.set(t,r),0===r&&t.removeEventListener("selectionchange",Rn);const o=oi(e);ni(o)?(function(e){if(null!==e._parentEditor){const t=Ai(e),n=t[t.length-1]._key;An.get(n)===e&&An.delete(n)}else An.delete(e._key)}(o),e.__lexicalEditor=null):o&&v(198);const i=Nn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){const t=es(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,ue(this),this._updateTags.add($n),yo(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;sn.set(e,n);const r=ln.get(n)??0;r<1&&n.addEventListener("selectionchange",Rn),ln.set(n,r+1),e.__lexicalEditor=t;const o=Nn(e);for(let n=0;n<en.length;n++){const[r,i]=en[n],s="function"==typeof i?e=>{Ln(e)||(Pn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Ln(e))return;Pn(e);const n=t.isEditable();switch(r){case"cut":return n&&qi(t,Gt,e);case"copy":return qi(t,qt,e);case"paste":return n&&qi(t,bt,e);case"dragstart":return n&&qi(t,Kt,e);case"dragover":return n&&qi(t,Wt,e);case"dragend":return n&&qi(t,Vt,e);case"focus":return n&&qi(t,Jt,e);case"blur":return n&&qi(t,Xt,e);case"drop":return n&&qi(t,Ut,e)}};e.addEventListener(r,s),o.push(()=>{e.removeEventListener(r,s)})}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add($n),yo(this);vo("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&v(38);let n=e;n._readOnly&&(n=Lo(e),n._selection=e._selection?e._selection.clone():null),ce(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),yo(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||yo(this)}parseEditorState(e,t){return function(e,t,n){const r=Oo(),o=Qr,i=eo,s=Zr,l=t._dirtyElements,a=t._dirtyLeaves,c=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,Qr=r,eo=!1,Zr=t,Go(null);try{const o=t._nodes;go(e.root,o),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=l,t._dirtyLeaves=a,t._cloneNotNeeded=c,t._dirtyType=u,Qr=o,eo=i,Zr=s}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return yo(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):xo(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),So(this,()=>{const r=zr(),o=Ci();null!==r?r.dirty||ki(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),Xi("focus"),Qi(()=>{n.removeAttribute("autocapitalize"),e&&e()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;null!==e&&e.blur();const t=us(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,vo("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}Vo.version="0.43.0+prod.esm";let qo=null;function Go(e){qo=e}let Yo=1;function Jo(e,t){const n=Xo(e,t);return void 0===n&&v(30,t),n}function Xo(e,t){return e._nodes.get(t)}const Qo="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function Zo(e){return Ao(xi(e))}function ei(e){const t=document.activeElement;if(!fs(t))return!1;const n=t.nodeName;return Ao(xi(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==oi(t))}function ti(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!ei(t)&&ri(t)===e}catch(e){return!1}}function ni(e){return e instanceof Vo}function ri(e){let t=e;for(;null!=t;){const e=oi(t);if(ni(e))return e;t=Yi(t)}return null}function oi(e){return e?e.__lexicalEditor:null}function ii(e){return W.test(e)?"rtl":V.test(e)?"ltr":null}function si(e){return yr(e)||e.isToken()}function li(e){return si(e)||e.isSegmented()}function ai(e){return ps(e)&&3===e.nodeType}function ci(e){return ps(e)&&9===e.nodeType}function ui(e){let t=e;for(;null!=t;){if(ai(t))return t;t=t.firstChild}return null}function di(e,t,n){const r=q[t];if(null!==n&&(e&r)===(n&r))return e;let o=e^r;return"subscript"===t?o&=~q.superscript:"superscript"===t?o&=~q.subscript:"lowercase"===t?(o&=~q.uppercase,o&=~q.capitalize):"uppercase"===t?(o&=~q.lowercase,o&=~q.capitalize):"capitalize"===t&&(o&=~q.lowercase,o&=~q.uppercase),o}function fi(e){return pr(e)||Yn(e)||Ao(e)}function pi(e,t){const n=function(){const e=qo;return qo=null,e}();if(null!=(t=t||n&&n.__key))return void(e.__key=t);io(),so();const r=ao(),o=lo(),i=""+Yo++;o._nodeMap.set(i,e),ko(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function hi(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),s=null!==i?i.__key:null,l=null!==o?o.__key:null,a=null!==o?o.getWritable():null,c=null!==i?i.getWritable():null;null===o&&(r.__first=s),null===i&&(r.__last=l),null!==a&&(a.__next=s),null!==c&&(c.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function gi(e){so(),Fn(e)&&v(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=lo(),o=ao(),i=r._nodeMap,s=o._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;const e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,i,s);const l=t.__key;o._dirtyType=1,ko(e)?s.set(l,!0):o._dirtyLeaves.add(l)}function mi(e){io();const t=ao(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=vi(n);null!==e&&e.getWritable()}if(null!==e){const t=vi(e);null!==t&&t.getWritable()}}}function yi(){return oo()?null:ao()._compositionKey}function vi(e,t){const n=(t||lo())._nodeMap.get(e);return void 0===n?null:n}function bi(e,t){const n=wi(e,ao());return void 0!==n?vi(n,t):null}function wi(e,t){return e[`__lexicalKey_${t._key}`]}function xi(e,t){let n=e;for(;null!=n;){const e=bi(n,t);if(null!==e)return e;n=Yi(n)}return null}function Si(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function _i(e){return e.read(()=>Ci().getTextContent())}function Ci(){return Ei(lo())}function Ei(e){return e._nodeMap.get("root")}function ki(e){io();const t=lo();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Ti(e){const t=ao(),n=function(e,t){let n=e;for(;null!=n;){const e=wi(n,t);if(void 0!==e)return e;n=Yi(n)}return null}(e,t);return null===n?e===t.getRootElement()?vi("root"):null:vi(n)}function Ni(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Ai(e){const t=[];for(let n=e;null!==n;n=n._parentEditor)t.push(n);return t}function Ri(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Pi(e){return ai(e)?e.nodeValue:null}function Li(e,t,n){const r=us(ts(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(null!==o){let t=Pi(o);const r=xi(o);if(null!==t&&pr(r)){if((t===z||t===U)&&n){const e=n.length;t=n,i=e,s=e}null!==t&&Oi(r,t,i,s,e)}}}function Oi(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let l=t;if((s||o)&&(t.endsWith(z)&&(l=t.slice(0,-z.length)),o)){const e=U;let t;for(;-1!==(t=l.indexOf(e));)l=l.slice(0,t)+l.slice(t+e.length),null!==n&&n>t&&(n=Math.max(t,n-e.length)),null!==r&&r>t&&(r=Math.max(t,r-e.length))}const a=i.getTextContent();if(o||l!==a){if(""===l){if(mi(null),T||E||R)i.remove();else{const e=ao();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=Br(),a=i.getTextContentSize(),c=yi(),u=i.getKey();if(i.isToken()||null!==c&&u===c&&!s||_r(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!s||o.focus.key===e.__key&&o.focus.offset===a&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const d=zr();if(!_r(d)||null===n||null===r)return void Mi(i,l,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=fr(i.getTextContent());i.replace(e),i=e}Mi(i,l,d)}}}function Mi(e,t,n){if(e.setTextContent(t),_r(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=Vs(e,o.offset,"clamp"))}}}function Fi(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function Di(e,t,n){if(!function(e,t){return Fi(e,t,"altKey")&&Fi(e,t,"ctrlKey")&&Fi(e,t,"shiftKey")&&Fi(e,t,"metaKey")}(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1)return!1;if(1===e.key.length&&e.key.charCodeAt(0)<=127)return!1;const r="Key"+t.toUpperCase();return e.code===r}const Ii={ctrlKey:!S,metaKey:S},$i={altKey:S,ctrlKey:!S};function ji(e){return"Backspace"===e.key}function zi(e){return Di(e,"a",Ii)}function Bi(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;const o=e[t];if("string"==typeof o){const e=El(o);return n[t]=e,e}return o}function Ui(e,t,n,r,o){if(0===n.size)return;const i=r.__type,s=r.__key,l=t.get(i);void 0===l&&v(33,i);const a=l.klass;let c=e.get(a);void 0===c&&(c=new Map,e.set(a,c));const u=c.get(s),d="destroyed"===u&&"created"===o;(void 0===u||d)&&c.set(s,d?"updated":o)}function Hi(e){const t=e.getType(),n=lo();if(n._readOnly){const e=xs(n).get(t);return e?Array.from(e.values()):[]}const r=n._nodeMap,o=[];for(const[,n]of r)n instanceof e&&n.__type===t&&n.isAttached()&&o.push(n);return o}function Ki(e,t,n){const r=e.getParent();let o=n,i=e;return null!==r&&(t&&0===n?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function Wi(e,t){const n=e.offset;if("element"===e.type)return Ki(e.getNode(),t,n);{const r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){const e=t?r.getPreviousSibling():r.getNextSibling();return null===e?Ki(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function Vi(e){const t=ts(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function qi(e,t,n){return bo(e,t,n,e)}function Gi(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&v(75,t),n}function Yi(e){const t=e.assignedSlot||e.parentElement;return hs(t)?t.host:t}function Ji(e){return ci(e)?e:fs(e)?e.ownerDocument:null}function Xi(e){io(),ao()._updateTags.add(e)}function Qi(e){io(),ao()._deferred.push(e)}function Zi(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function es(e){const t=Ji(e);return t?t.defaultView:null}function ts(e){const t=e._window;return null===t&&v(78),t}function ns(e){return ko(e)&&e.isInline()||Ao(e)&&e.isInline()}function rs(e){return Po(e)||ko(e)&&e.isShadowRoot()}function os(e,t=!1){const n=e.constructor.clone(e);return pi(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function is(e){const t=ao(),n=e.getType(),r=Xo(t,n);void 0===r&&v(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||v(201,i.name,i.getType(),r.name,r.getType(),e.constructor.name,n):t instanceof e.constructor&&r!==e.constructor||v(202,r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&v(203,e.constructor.name,n,r.name,r.getType()),t}return e}function ss(e,t){!Po(e.getParent())||ko(t)||Ao(t)||v(99)}function ls(e){const t=vi(e);return null===t&&v(63,e),t}function as(e){return(Ao(e)||ko(e)&&!e.canBeEmpty())&&!e.isInline()}function cs(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function us(e){return w?(e||window).getSelection():null}function ds(e){return fs(e)&&"A"===e.tagName}function fs(e){return ps(e)&&1===e.nodeType}function ps(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function hs(e){return ps(e)&&11===e.nodeType}function gs(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function ms(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function ys(e){if(Ao(e)&&!e.isInline())return!0;if(!ko(e)||rs(e))return!1;const t=e.getFirstChild(),n=null===t||Yn(t)||pr(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function vs(){return ao()}const bs=new WeakMap,ws=new Map;function xs(e){if(!e._readOnly&&e.isEmpty())return ws;e._readOnly||v(192);let t=bs.get(e);return t||(t=function(e){const t=new Map;for(const[n,r]of e._nodeMap){const e=r.__type;let o=t.get(e);o||(o=new Map,t.set(e,o)),o.set(n,r)}return t}(e),bs.set(e,t)),t}function Ss(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function _s(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Cs(e){e.__lexicalUnmanaged=!0}function Es(e){return!0===e.__lexicalUnmanaged}function ks(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==Dn[t]}function Ts(e){const t=Z in e.prototype?e.prototype[Z]():void 0,n=function(e){if(!(e===Dn||e.prototype instanceof Dn)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{Vo.version&&(n=JSON.parse(Vo.version))}catch(e){}v(290,e.name,t,n)}return e===No||e===Eo||e===Dn}(e),r=!n&&ks(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[e,n]of Object.entries(t))i=e,o=n;if(!n&&i&&(ks(e,"getType")||(e.getType=()=>i),ks(e,"clone")||(e.clone=t=>(Go(t),new e)),ks(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!ks(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}function Ns(e){const t=vs();return io(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e)).klass)}const As=(e,t)=>{let n=e;for(;null!=n&&!Po(n);){if(t(n))return n;n=n.getParent()}return null},Rs={next:"previous",previous:"next"};class Ps{origin;constructor(e){this.origin=e}[Symbol.iterator](){return nl({hasNext:js,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Ks(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Ks(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){const r=n===this.direction?t:Array.from(t).reverse();let o=this;const i=this.getParentAtCaret(),s=new Map;for(let t=o.getAdjacentCaret();null!==t&&s.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();s.set(e.getKey(),e)}for(const e of r){if(s.size>0){const t=o.getNodeAtCaret();if(t)if(s.delete(t.getKey()),s.delete(e.getKey()),t.is(e)||o.origin.is(e));else{const n=e.getParent();n&&n.is(i)&&e.remove(),t.replace(e)}else null===t&&v(263,Array.from(s).join(" "))}else o.insert(e);o=Ks(e,this.direction)}for(const e of s.values())e.remove();return this}}class Ls extends Ps{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Gs(e,this.direction)}getParentCaret(e="root"){return Ks(Fs(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Ms(this.direction);return Ks(this.getNodeAtCaret(),e)||Gs(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Ls&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const Os={root:Po,shadowRoot:rs};function Ms(e){return Rs[e]}function Fs(e,t="root"){return Os[t](e)?null:e}class Ds extends Ps{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Ks(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return ko(this.origin)?Gs(this.origin,this.direction):null}getParentCaret(e="root"){return Ks(Fs(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Ms(this.direction);return Ks(this.getNodeAtCaret(),e)||Gs(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof Ds&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof Ds||e instanceof Is)&&this.direction===e.direction&&this.origin.is(e.origin)}}class Is extends Ps{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Ws(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return Ks(Fs(this.getParentAtCaret(),e),this.direction)}getFlipped(){return Ws(this.origin,Ms(this.direction),this.offset)}isSamePointCaret(e){return e instanceof Is&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof Ds||e instanceof Is)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return Ks(this.origin,this.direction)}}function $s(e){return e instanceof Is}function js(e){return e instanceof Ds}function zs(e){return e instanceof Ls}const Bs={next:class extends Is{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Is{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Us={next:class extends Ds{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Ds{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Hs={next:class extends Ls{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ls{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Ks(e,t){return e?new Us[t](e):null}function Ws(e,t,n){return e?new Bs[t](e,Vs(e,n)):null}function Vs(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&b(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function qs(e,t){return new Qs(e,t)}function Gs(e,t){return ko(e)?new Hs[t](e):null}function Ys(e){return e&&e.getChildCaret()||e}function Js(e){return e&&Ys(e.getAdjacentCaret())}class Xs{type="node-caret-range";direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new Xs(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return $s(t)?function(e,t){const{direction:n,origin:r}=e;return qs(e,Vs(r,"focus"===t?Ms(n):n)-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){const{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[qs(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=$s(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=$s(n),o=t=>t.isSameNodeCaret(n)?null:Js(t)||t.getParentCaret(e);return nl({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:o(t),map:e=>e,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Qs{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),o=e.getTextContent();return Ws(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function Zs(e){return tl(e,Ks(Ci(),e.direction))}function el(e){return tl(e,e)}function tl(e,t){return e.direction!==t.direction&&v(265),new Xs(e,t,e.direction)}function nl(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const e={done:!1,value:o(i)};return i=r(i),e}}}function rl(e,t){const n=ll(e.origin,t.origin);switch(null===n&&v(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{const n="text"===e.type,r="text"===t.type;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return ol(n)}}function ol(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,s=n;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return null===i?1:-1}function il(e,t){return t.is(e)}function sl(e){return ko(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function ll(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=sl(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=sl(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(il(e,r)||v(276),{commonAncestor:r,type:"ancestor"}):null===o?(il(t,r)||v(277),{commonAncestor:r,type:"descendant"}):((ko(i)||il(e,i))&&(ko(o)||il(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||v(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function al(e,t){const{type:n,key:r,offset:o}=e,i=ls(e.key);return"text"===n?(pr(i)||v(266,i.getType(),r),Ws(i,t,o)):(ko(i)||v(267,i.getType(),r),function(e,t,n){let r=Gs(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return vl(r,n)}(i,e.offset,t))}function cl(e,t){const{origin:n,direction:r}=t,o="next"===r;$s(t)?e.set(n.getKey(),t.offset,"text"):js(t)?pr(n)?e.set(n.getKey(),Vs(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(zs(t)&&ko(n)||v(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function ul(e){const t=zr(),n=_r(t)?t:Ir();return dl(n,e),ki(n),n}function dl(e,t){cl(e.anchor,t.anchor),cl(e.focus,t.focus)}function fl(e){const{anchor:t,focus:n}=e,r=al(t,"next"),o=al(n,"next"),i=rl(r,o)<=0?"next":"previous";return tl(vl(r,i),vl(o,i))}function pl(e){const{direction:t,origin:n}=e,r=Ks(n,Ms(t)).getNodeAtCaret();return r?Ks(r,t):Gs(n.getParentOrThrow(),t)}function hl(e,t="root"){const n=[e];for(let r=zs(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(pl(r));return n}function gl(e){return!!e&&e.origin.isAttached()}function ml(e){const t=function(e){let t=e;for(;zs(t);){const e=Js(t);if(!zs(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(pr(t.origin))return $s(t)?t:Ws(t.origin,n,n);const r=t.getAdjacentCaret();return js(r)&&pr(r.origin)?Ws(r.origin,n,Ms(n)):t}function yl(e){return $s(e)&&e.offset!==Vs(e.origin,e.direction)}function vl(e,t){return e.direction===t?e:e.getFlipped()}function bl(e,t){return e.direction===t?e:tl(vl(e.focus,t),vl(e.anchor,t))}function wl(e,t="root"){let n=0,r=e,o=Js(r);for(;null===o;){if(n--,o=r.getParentCaret(t),!o)return null;r=o,o=Js(r)}return o&&[o,n]}function xl(e){const{origin:t,offset:n,direction:r}=e;if(n===Vs(t,r))return e.getSiblingCaret();if(n===Vs(t,Ms(r)))return pl(e.getSiblingCaret());const[o]=t.splitText(n);return pr(o)||v(281),vl(Ks(o,"next"),r)}function Sl(e,t){return!0}function _l(e,{$copyElementNode:t=os,$splitTextPointCaretNext:n=xl,rootMode:r="shadowRoot",$shouldSplit:o=Sl}={}){if($s(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(zs(e)&&(!n.canBeEmpty()||!o(n,"first")))return pl(i);const r=function(e){const t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&o(n,"last"))&&i.insert(t(n).splice(0,0,r))}return i}function Cl(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function El(...e){const t=[];for(const n of e)if(n&&"string"==typeof n)for(const[e]of n.matchAll(/\S+/g))t.push(e);return t}function kl(e,...t){const n=El(...t);n.length>0&&e.classList.add(...n)}function Tl(e,...t){const n=El(...t);n.length>0&&e.classList.remove(...n)}function Nl(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}const Al=new Map;function Rl(e){const t={};if(!e)return t;const n=e.split(";");for(const e of n)if(""!==e){const[n,r]=e.split(/:([^]+)/);n&&r&&(t[n.trim()]=r.trim())}return t}function Pl(e){let t=Al.get(e);return void 0===t&&(t=Rl(e),Al.set(e,t)),t}function Ll(e){const t=vs().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function Ol(e){return Ll(Po(e)?e:e.getParentOrThrow())}function Ml(e){const t=Ol(e);return null!==t&&"rtl"===t.direction}function Fl(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!li(t)&&null!==r){const[o,i]=r,s=e.isBackward(),l=o.getNode(),a=i.getNode(),c=t.is(l),u=t.is(a);if(c||u){const[r,o]=Tr(e),i=l.is(a),c=t.is(s?a:l),u=t.is(s?l:a);let d,f=0;i?(f=r>o?o:r,d=r>o?r:o):c?(f=s?o:r,d=void 0):u&&(f=0,d=s?r:o);const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=function(e){return(t=Ss(e))[Mn]=!0,t;var t}(t)),t.__text=p)}}return t}function Dl(e){const t=e.getStyle(),n=Rl(t);Al.set(t,n)}function Il(e){const t=$l(e);return null!==t&&"vertical-rl"===t.writingMode}function $l(e){const t=e.anchor.getNode();return ko(t)?Ll(t):Ol(t)}function jl(e,t){let n=Il(e)?!t:t;zl(e)&&(n=!n);const r=al(e.focus,n?"previous":"next");if(yl(r))return!1;for(const e of Zs(r)){if(zs(e))return!e.origin.isInline();if(!ko(e.origin)){if(Ao(e.origin))return!0;break}}return!1}function zl(e){const t=$l(e);return null!==t&&"rtl"===t.direction}function Bl(e,t,n){const r=zl(e);let o;o=Il(e)||r?!n:n,function(e,t,n){e.modify(t?"extend":"move",n,"character")}(e,t,o)}function Ul(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Hl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Kl=Hl&&"documentMode"in document?document.documentMode:null,Wl=(Hl&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Hl&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent));!(!Hl||!("InputEvent"in window)||Kl)&&new window.InputEvent("input"),Hl&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,Hl&&/Android/.test(navigator.userAgent),Hl&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Hl&&/^(?=.*Chrome).*/i.test(navigator.userAgent);function Vl(e,t){return Array.from(function(e,t){return function(e,t,n){const r=Ci(),o=t||r,i=ko(o)?Gs(o,e):Ks(o,e),s=function(e){let t=-1;for(let n=e;null!==n;n=n.getParent())t++;return t}(o),l=n?Js(Ys(Ks(n,e)))||ql(n,e):ql(o,e);let a=s;return nl({hasNext:e=>null!==e,initial:i,map:e=>({depth:a,node:e.origin}),step:e=>{if(e.isSameNodeCaret(l))return null;zs(e)&&a++;const t=wl(e);return!t||t[0].isSameNodeCaret(l)?null:(a+=t[1],t[0])}})}("next",e,t)}(e,t))}function ql(e,t){const n=wl(Ks(e,t));return n&&n[0]}function Gl(e){const t=wl(Ys(Ks(e,"previous")),"root");return t&&t[0].origin}function Yl(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function Jl(e){const t=zr()||Br();let n;if(_r(t))n=al(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=Ks(r,"next"))}n=n||Gs(Ci(),"previous").getFlipped().insert(jo())}const r=Xl(e,n),o=Js(r);return ul(el(zs(o)?ml(o):r)),e.getLatest()}function Xl(e,t,n){let r=vl(t,"next");for(let e=r;e;e=_l(e,n))r=e;return $s(r)&&Ul(283),r.insert(e.isInline()?jo().append(e):e),vl(Ks(e.getLatest(),"next"),t.direction)}function Ql(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function Zl(e){const t=zr();if(!_r(t))return!1;const n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){const o=r[t],i=o.getKey();if(n.has(i))continue;const s=As(o,e=>ko(e)&&!e.isInline());if(null===s)continue;const l=s.getKey();s.canIndent()&&!n.has(l)&&(n.add(l),e(s))}return n.size>0}function ea(e,t){Gs(e,"next").insert(t)}Hl&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);let ta=!(Wl||!Hl)&&void 0;function na(e,t=!1){let n=1;if(function(){if(void 0===ta){const e=document.createElement("div");e.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(e);const t=e.getBoundingClientRect();e.style.setProperty("zoom","2"),ta=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return ta}()||t)for(;e;)n*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return n}function ra(e,t){return oa(e,t,null)}function oa(e,t,n){let r=!1;for(const o of sa(e))t(o)?null!==n&&n(o):(r=!0,ko(o)&&oa(o,t,n||(e=>o.insertAfter(e))),o.remove());return r}function ia(e,t){const n=[],r=Array.from(e).reverse();for(let e=r.pop();void 0!==e;e=r.pop())if(t(e))n.push(e);else if(ko(e))for(const t of sa(e))r.push(t);return n}function sa(e){return function(e){return nl({hasNext:js,initial:e.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}(Gs(e,"previous"))}const la=Symbol.for("preact-signals");function aa(){if(pa>1)return void pa--;let e,t=!1;for(function(){let e=fa;for(fa=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==ua;){let n=ua;for(ua=void 0,ha++;void 0!==n;){const r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&ba(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(ha=0,pa--,t)throw e}let ca,ua;function da(e){const t=ca;ca=void 0;try{return e()}finally{ca=t}}let fa,pa=0,ha=0,ga=0;function ma(e){if(void 0===ca)return;let t=e.n;return void 0===t||t.t!==ca?(t={i:0,S:e,p:ca.s,n:void 0,t:ca,e:void 0,x:void 0,r:t},void 0!==ca.s&&(ca.s.n=t),ca.s=t,e.n=t,32&ca.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=ca.s,t.n=void 0,ca.s.n=t,ca.s=t),t):void 0}function ya(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function va(e,t){return new ya(e,t)}function ba(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function wa(e){for(let t=e.s;void 0!==t;t=t.n){const n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function xa(e){let t,n=e.s;for(;void 0!==n;){const e=n.p;-1===n.i?(n.S.U(n),void 0!==e&&(e.n=n.n),void 0!==n.n&&(n.n.p=e)):t=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=e}e.s=t}function Sa(e,t){ya.call(this,void 0),this.x=e,this.s=void 0,this.g=ga-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function _a(e){const t=e.m;if(e.m=void 0,"function"==typeof t){pa++;const n=ca;ca=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Ca(e),t}finally{ca=n,aa()}}}function Ca(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,_a(e)}function Ea(e){if(ca!==this)throw new Error("Out-of-order effect");xa(this),ca=e,this.f&=-2,8&this.f&&Ca(this),aa()}function ka(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function Ta(e,t){const n=new ka(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Na(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function Aa(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Ra(e,t){if(e&&t&&!Array.isArray(t)&&"object"==typeof e&&"object"==typeof t){const n=e,r=t;for(const e in r)n[e]=Ra(n[e],r[e]);return e}return t}function Pa(e){return 0===e.id}function La(e){return 2===e.id}ya.prototype.brand=la,ya.prototype.h=function(){return!0},ya.prototype.S=function(e){const t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:da(()=>{var e;null==(e=this.W)||e.call(this)}))},ya.prototype.U=function(e){if(void 0!==this.t){const t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&da(()=>{var e;null==(e=this.Z)||e.call(this)}))}},ya.prototype.subscribe=function(e){return Ta(()=>{const t=this.value,n=ca;ca=void 0;try{e(t)}finally{ca=n}},{name:"sub"})},ya.prototype.valueOf=function(){return this.value},ya.prototype.toString=function(){return this.value+""},ya.prototype.toJSON=function(){return this.value},ya.prototype.peek=function(){const e=ca;ca=void 0;try{return this.value}finally{ca=e}},Object.defineProperty(ya.prototype,"value",{get(){const e=ma(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(ha>100)throw new Error("Cycle detected");!function(e){0!==pa&&0===ha&&0!==e.l&&(e.l=0,fa={S:e,v:e.v,i:e.i,o:fa})}(this),this.v=e,this.i++,ga++,pa++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{aa()}}}}),Sa.prototype=new ya,Sa.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===ga)return!0;if(this.g=ga,this.f|=1,this.i>0&&!ba(this))return this.f&=-2,!0;const e=ca;try{wa(this),ca=this;const e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return ca=e,xa(this),this.f&=-2,!0},Sa.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}ya.prototype.S.call(this,e)},Sa.prototype.U=function(e){if(void 0!==this.t&&(ya.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Sa.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Sa.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=ma(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),ka.prototype.c=function(){const e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const e=this.x();"function"==typeof e&&(this.m=e)}finally{e()}},ka.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,_a(this),wa(this),pa++;const e=ca;return ca=this,Ea.bind(this,e)},ka.prototype.N=function(){2&this.f||(this.f|=2,this.u=ua,ua=this)},ka.prototype.d=function(){this.f|=8,1&this.f||Ca(this)},ka.prototype.dispose=function(){this.d()},fe("format",{parse:e=>"number"==typeof e?e:0});const Oa=new Set;class Ma{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):Cl;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;La(t)||Aa(306,String(t.id));const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=function(e,t,n){return Object.assign(e,{config:t,id:3,registerState:n})}(t,this.mergeConfigs(),n);let i;this.state=o,this.extension.init&&(i=this.extension.init(e,o.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:4,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;4!==t.id&&Aa(307,String(t.id),String(5)),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));const r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:5,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;5!==n.id&&Aa(308,String(n.id),String(5));const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:6})}(n),()=>{const e=this.state;7!==e.id&&Aa(309,String(n.id),String(7)),this.state=function(e){return Object.assign(e,{id:5})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return 6!==t.id&&Aa(310,String(t.id),String(6)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:7})}(t),n}getSignal(){return void 0===this._signal&&Aa(311),this._signal}getInitResult(){void 0===this.extension.init&&Aa(312,this.extension.name);const e=this.state;return function(e){return e.id>=4}(e)||Aa(313,String(e.id),String(4)),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(e){return e.id>=3}(e)||Aa(314,String(e.id),String(3)),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Aa(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Aa(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=7}(e)||Aa(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||Oa}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){const e=this.state;(function(e){return e.id>=5})(e)||Aa(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}const Fa={tag:$n};function Da(){const e=Ci();e.isEmpty()&&e.append(jo())}const Ia={config:{setOptions:Fa,updateOptions:Fa},init:({$initialEditorState:e=Da})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:r}=o;if(function(e){return e instanceof Fo}(r))e.setEditorState(r,n);else if("function"==typeof r)e.update(()=>{r(e)},t);else if(r&&("string"==typeof r||"object"==typeof r)){const t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Ro,rr,Vn,gr,Io]},$a=Symbol.for("@lexical/extension/LexicalBuilder");function ja(){}function za(e){throw e}function Ba(e){return Array.isArray(e)?e:[e]}const Ua="0.43.0+prod.esm";class Ha{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=Ua,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[Ba(Ia)];for(const n of e)t.push(Ba(n));return new Ha(t)}static maybeFromEditor(e){const t=e[$a];return t&&(t.PACKAGE_VERSION!==Ua&&Aa(292,t.PACKAGE_VERSION,Ua),t instanceof Ha||Aa(293)),t}static fromEditor(e){const t=Ha.maybeFromEditor(e);return void 0===t&&Aa(294),t}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(Ho({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[$a]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=ja;function t(){try{e()}finally{e=ja}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Nl(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){const t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&Aa(295,e.name),t}addEdge(e,t,n){const r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));const o=this.incomingEdges.get(t);o?o.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&Aa(296);const t=Ba(e),[n]=t;"string"!=typeof n.name&&Aa(297,typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&Aa(298,n.name),!r){r=new Ma(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&Aa(299,n.name,e);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&Aa(299,n.name,e),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=Ba(e);this.addEdge(n.name,t[0].name,t.slice(1)),this.addExtension(t)}for(const[e,t]of n.peerDependencies||[])this.addEdge(n.name,e,t?[t]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const e=[],t=(n,r)=>{let o=n.state;if(La(o))return;const i=n.extension.name;var s;Pa(o)||Aa(300,i,r||"[unknown]"),Pa(s=o)||Aa(304,String(s.id),String(0)),o=Object.assign(s,{id:1}),n.state=o;const l=this.outgoingConfigEdges.get(i);if(l)for(const e of l.keys()){const n=this.extensionNameMap.get(e);n&&t(n,i)}o=function(e){return function(e){return 1===e.id}(e)||Aa(305,String(e.id),String(1)),Object.assign(e,{id:2})}(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())Pa(e.state)&&t(e);for(const t of e)for(const[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){const t=this.extensionNameMap.get(e);if(t)for(const e of n)t.configs.add(e)}for(const[e,...t]of this.roots)if(t.length>0){const n=this.extensionNameMap.get(e.name);void 0===n&&Aa(301,e.name);for(const e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],o=n.signal;for(const n of t){const t=n.register(e,o);t&&r.push(t)}for(const n of t){const t=n.afterRegistration(e);t&&r.push(t)}return Nl(...r)}buildCreateEditorArgs(){const e={},t=new Set,n=new Map,r=new Map,o={},i={},s=this.sortedExtensionReps();for(const l of s){const{extension:s}=l;if(void 0!==s.onError&&(e.onError=s.onError),void 0!==s.disableEvents&&(e.disableEvents=s.disableEvents),void 0!==s.parentEditor&&(e.parentEditor=s.parentEditor),void 0!==s.editable&&(e.editable=s.editable),void 0!==s.namespace&&(e.namespace=s.namespace),void 0!==s.$initialEditorState&&(e.$initialEditorState=s.$initialEditorState),s.nodes)for(const e of Na(s)){if("function"!=typeof e){const t=n.get(e.replace);t&&Aa(302,s.name,e.replace.name,t.extension.name),n.set(e.replace,l)}t.add(e)}if(s.html){if(s.html.export)for(const[e,t]of s.html.export.entries())r.set(e,t);s.html.import&&Object.assign(o,s.html.import)}s.theme&&Ra(i,s.theme)}Object.keys(i).length>0&&(e.theme=i),t.size&&(e.nodes=[...t]);const l=Object.keys(o).length>0,a=r.size>0;(l||a)&&(e.html={},l&&(e.html.import=o),a&&(e.html.export=r));for(const t of s)t.init(e);return e.onError||(e.onError=za),e}}new Set;const Ka=lt("INSERT_HORIZONTAL_RULE_COMMAND");class Wa extends No{static getType(){return"horizontalrule"}static clone(e){return new Wa(e.__key)}static importJSON(e){return qa().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:Va,priority:0})}}exportDOM(){return{element:document.createElement("hr")}}createDOM(e){const t=document.createElement("hr");return kl(t,e.theme.hr),t}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}}function Va(){return{node:qa()}}function qa(){return Ns(Wa)}const Ga="@lexical/react/ReactProvider";var Ya=o(5219);function Ja(e){return()=>function(e){if(!function(e,t=!0){if(e)return!1;let n=Ci().getTextContent();return t&&(n=n.trim()),""===n}(e,!1))return!1;const t=Ci().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Ao(n))return!1;if(ko(n)){if(!zo(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!pr(t[e]))return!1}}return!0}(e)}function Xa(e,t){const n=ci(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!ec.has(t.nodeName)){const n=tc(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof Do&&t.insertAfter(Gn());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}function Qa(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===o.g.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=Ci().getChildren();for(let o=0;o<r.length;o++)Za(e,r[o],n,t);return n.innerHTML}function Za(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=ko(t)&&t.excludeFromCopy("html");let s=t;null!==r&&pr(t)&&(s=Fl(r,t,"clone"));const l=ko(s)?s.getChildren():[],a=Xo(e,s.getType());let c;c=a&&void 0!==a.exportDOM?a.exportDOM(e,s):s.exportDOM(e);const{element:u,after:d}=c;if(!u)return!1;const f=document.createDocumentFragment();for(let n=0;n<l.length;n++){const i=l[n],s=Za(e,i,f,r);!o&&ko(t)&&s&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((fs(u)||hs(u))&&u.append(f),n.append(u),d){const e=d.call(s,u);e&&(hs(u)?u.replaceChildren(e):u.replaceWith(e))}}else n.append(f);return o}const ec=new Set(["STYLE","SCRIPT"]);function tc(e,t,n,r,o=new Map,i){let s=[];if(ec.has(e.nodeName))return s;let l=null;const a=function(e,t){const{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase());let o=null;if(void 0!==r)for(const t of r){const n=t(e);null!==n&&(null===o||(o.priority||0)<=(n.priority||0))&&(o=n)}return null!==o?o.conversion:null}(e,t),c=a?a(e):null;let u=null;if(null!==c){u=c.after;const t=c.node;if(l=Array.isArray(t)?t[t.length-1]:t,null!==l){for(const[,e]of o)if(l=e(l,i),!l)break;l&&s.push(...Array.isArray(t)?t:[l])}null!=c.forChild&&o.set(e.nodeName,c.forChild)}const d=e.childNodes;let f=[];const p=(null==l||!rs(l))&&(null!=l&&Fr(l)||r);for(let e=0;e<d.length;e++)f.push(...tc(d[e],t,n,p,new Map(o),l));return null!=u&&(f=u(f)),ms(e)&&(f=function(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const s=t[e];if(Fr(s))r&&!s.getFormat()&&s.setFormat(r),o.push(s);else if(i.push(s),e===t.length-1||e<t.length-1&&Fr(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}(e,f,p?()=>{const e=new Do;return n.push(e),e}:jo)),null==l?f.length>0?s=s.concat(f):ms(e)&&function(e){return null!=e.nextSibling&&null!=e.previousSibling&&gs(e.nextSibling)&&gs(e.previousSibling)}(e)&&(s=s.concat(Gn())):ko(l)&&l.append(...f),s}function nc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function rc(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return oc(n,function(e){const t=[];for(let n=0;n<e.length;n++){const r=ho(e[n]);pr(r)&&Dl(r),t.push(r)}return t}(e.nodes),t)}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{return oc(n,Xa(n,(new DOMParser).parseFromString(function(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e):e}(o),"text/html")),t)}catch(e){console.error(e)}const s=i||e.getData("text/uri-list");if(null!=s)if(_r(t)){const e=s.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=zr();if(_r(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([mr()]):n.insertText(r)}}}else t.insertRawText(s)}function oc(e,t,n){e.dispatchCommand(ct,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(_r(e)&&e.isCollapsed()){let t=null;const n=al(e.anchor,"previous");if(n)if($s(n))t=n.origin;else{const e=tl(n,Gs(Ci(),"next").getFlipped());for(const n of e){if(pr(n.origin)){t=n.origin;break}if(ko(n.origin)&&!n.origin.isInline())break}}if(t&&pr(t)){const n=t.getFormat(),r=t.getStyle();e.format===n&&e.style===r||(e.format=n,e.style=r,e.dirty=!0)}}}(n))}function ic(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=ko(n)&&n.excludeFromCopy("html");let s=n;null!==t&&pr(s)&&(s=Fl(t,s,"clone"));const l=ko(s)?s.getChildren():[],a=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&nc(58,n.name),ko(e)){const e=t.children;Array.isArray(e)||nc(59,n.name)}return t}(s);pr(s)&&0===s.getTextContentSize()&&(o=!1);for(let r=0;r<l.length;r++){const i=l[r],s=ic(e,t,i,a.children);!o&&ko(n)&&s&&n.extractWithChild(i,t,"clone")&&(o=!0)}if(o&&!i)r.push(a);else if(Array.isArray(a.children))for(let e=0;e<a.children.length;e++){const t=a.children[e];r.push(t)}return o}let sc=null;async function lc(e,t,n){if(null!==sc)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(ac(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,s=us(o);if(null===r||null===s)return!1;const l=i.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(i.createTextNode("#")),r.append(l);const a=new Range;return a.setStart(l,0),a.setEnd(l,1),s.removeAllRanges(),s.addRange(a),new Promise((t,r)=>{const s=e.registerCommand(qt,r=>(Ql(r,ClipboardEvent)&&(s(),null!==sc&&(o.clearTimeout(sc),sc=null),t(ac(e,r,n))),!0),4);sc=o.setTimeout(()=>{s(),sc=null,t(!1)},50),i.execCommand("copy"),l.remove()})}function ac(e,t,n){if(void 0===n){const t=us(e._window),r=zr();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!ti(e,o,i))return!1;n=uc(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(dc(r,n),!0)}const cc=[["text/html",function(e,t=zr()){return null==t&&nc(166),_r(t)&&t.isCollapsed()||0===t.getNodes().length?"":Qa(e,t)}],["application/x-lexical-editor",function(e,t=zr()){return null==t&&nc(166),_r(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Ci().getChildren();for(let o=0;o<r.length;o++)ic(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function uc(e=zr()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=vs();for(const[r,o]of cc){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function dc(e,t){for(const[n]of cc)void 0===t[n]&&e.setData(n,"");for(const n in t){const r=t[n];void 0!==r&&e.setData(n,r)}}function fc(e,t){if(void 0!==document.caretRangeFromPoint){const n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){const n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}const pc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,hc=pc&&"documentMode"in document?document.documentMode:null,gc=pc&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),mc=!(!pc||!("InputEvent"in window)||hc)&&"getTargetRanges"in new window.InputEvent("input"),yc=pc&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,vc=pc&&/Android/.test(navigator.userAgent),bc=pc&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!vc,wc=pc&&/^(?=.*Chrome).*/i.test(navigator.userAgent),xc=pc&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&gc&&!wc,Sc=lt("DRAG_DROP_PASTE_FILE");class _c extends Eo{static getType(){return"quote"}static clone(e){return new _c(e.__key)}createDOM(e){const t=document.createElement("blockquote");return kl(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:Ac,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fs(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return Cc().updateFromJSON(e)}insertNewAfter(e,t){const n=jo(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=jo();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function Cc(){return is(new _c)}function Ec(e){return e instanceof _c}class kc extends Eo{__tag;static getType(){return"heading"}static clone(e){return new kc(e.__tag,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__tag=e.__tag}constructor(e="h1",t){super(t),this.__tag=e}getTag(){return this.getLatest().__tag}setTag(e){const t=this.getWritable();return t.__tag=e,t}createDOM(e){const t=this.__tag,n=document.createElement(t),r=e.theme.heading;return void 0!==r&&kl(n,r[t]),n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Nc,priority:0}),h2:e=>({conversion:Nc,priority:0}),h3:e=>({conversion:Nc,priority:0}),h4:e=>({conversion:Nc,priority:0}),h5:e=>({conversion:Nc,priority:0}),h6:e=>({conversion:Nc,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&Tc(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>Tc(e)?{conversion:e=>({node:Rc("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fs(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return Rc(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){const n=e?e.anchor.offset:0,r=this.getLastDescendant(),o=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?jo():Rc(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=jo();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?jo():Rc(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function Tc(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function Nc(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=Rc(t),null!==e.style&&(_s(e,n),n.setFormat(e.style.textAlign))),{node:n}}function Ac(e){const t=Cc();return null!==e.style&&(t.setFormat(e.style.textAlign),_s(e,t)),{node:t}}function Rc(e="h1"){return is(new kc(e))}function Pc(e){return e instanceof kc}function Lc(e){let t=null;if(Ql(e,DragEvent)?t=e.dataTransfer:Ql(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function Oc(e){return Ao(xi(e))}function Mc(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Fc(e){return Nl(e.registerCommand(ut,e=>{const t=zr();return!!Er(t)&&(t.clear(),!0)},0),e.registerCommand(gt,e=>{const t=zr();return _r(t)?(t.deleteCharacter(e),!0):!!Er(t)&&(t.deleteNodes(),!0)},0),e.registerCommand(xt,e=>{const t=zr();return!!_r(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(St,e=>{const t=zr();return!!_r(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(vt,t=>{const n=zr();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)rc(r,n,e);else if(_r(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(wt,()=>{const e=zr();return!!_r(e)&&(e.removeText(),!0)},0),e.registerCommand(_t,e=>{const t=zr();return!!_r(t)&&(t.formatText(e),!0)},0),e.registerCommand(Ht,e=>{const t=zr();if(!_r(t)&&!Er(t))return!1;const n=t.getNodes();for(const t of n){const n=As(t,e=>ko(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},0),e.registerCommand(mt,e=>{const t=zr();return!!_r(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand(yt,()=>{const e=zr();return!!_r(e)&&(e.insertParagraph(),!0)},0),e.registerCommand(jt,()=>{const e=mr(),t=zr();return _r(t)&&(e.setFormat(t.format),e.setStyle(t.style)),Gr([e]),!0},0),e.registerCommand(zt,()=>Zl(e=>{const t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand(Bt,()=>Zl(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand(Pt,e=>{const t=zr();if(Er(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(_r(t)){const n=Wi(t.focus,!0);if(!e.shiftKey&&Ao(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},0),e.registerCommand(Lt,e=>{const t=zr();if(Er(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(_r(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Ci().getChildrenSize()}(t))return e.preventDefault(),!0;const n=Wi(t.focus,!1);if(!e.shiftKey&&Ao(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},0),e.registerCommand(At,e=>{const t=zr();if(Er(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Ml(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!_r(t))return!1;if(jl(t,!0)){const n=e.shiftKey;return e.preventDefault(),Bl(t,n,!0),!0}return!1},0),e.registerCommand(Tt,e=>{const t=zr();if(Er(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Ml(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!_r(t))return!1;const n=e.shiftKey;return!!jl(t,!1)&&(e.preventDefault(),Bl(t,n,!1),!0)},0),e.registerCommand(Ft,t=>{if(Oc(t.target))return!1;const n=zr();if(_r(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(Po(n))return!1;const r=function(e){const t=As(e,e=>ko(e)&&!e.isInline());return ko(t)||Ul(4,e.__key),t}(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(Bt,void 0);if(yc&&"ko-KR"===navigator.language)return!1}else if(!Er(n))return!1;return t.preventDefault(),e.dispatchCommand(gt,!0)},0),e.registerCommand(It,t=>{if(Oc(t.target))return!1;const n=zr();return!(!_r(n)&&!Er(n))&&(t.preventDefault(),e.dispatchCommand(gt,!1))},0),e.registerCommand(Ot,t=>{const n=zr();if(!_r(n))return!1;if(Mc(n),null!==t){if((yc||bc||xc)&&mc)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(mt,!1)}return e.dispatchCommand(yt,void 0)},0),e.registerCommand(Dt,()=>!!_r(zr())&&(e.blur(),!0),0),e.registerCommand(Ut,t=>{const[,n]=Lc(t);if(n.length>0){const r=fc(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=xi(o);if(null!==i){const e=Ir();if(pr(i))e.anchor.set(i.getKey(),t,"text"),e.focus.set(i.getKey(),t,"text");else{const t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}ki(Te(e))}e.dispatchCommand(Sc,n)}return t.preventDefault(),!0}return!!_r(zr())},0),e.registerCommand(Kt,e=>{const[t]=Lc(e),n=zr();return!(t&&!_r(n))},0),e.registerCommand(Wt,e=>{const[t]=Lc(e),n=zr();if(t&&!_r(n))return!1;const r=fc(e.clientX,e.clientY);return null!==r&&Ao(xi(r.node))&&e.preventDefault(),!0},0),e.registerCommand(Yt,()=>(function(e){const t=Ci();if(_r(e)){const t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Te(e),e}ki(Te(t.select(0,t.getChildrenSize())))}(),!0),0),e.registerCommand(qt,t=>(lc(e,Ql(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(Gt,t=>(async function(e,t){await lc(t,Ql(e,ClipboardEvent)?e:null),t.update(()=>{const e=zr();_r(e)?e.removeText():Er(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),0),e.registerCommand(bt,t=>{const[,n,r]=Lc(t);return n.length>0&&!r?(e.dispatchCommand(Sc,n),!0):!(ps(t.target)&&ei(t.target)||null===zr()||(function(e,t){e.preventDefault(),t.update(()=>{const n=zr(),r=Ql(e,InputEvent)||Ql(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&rc(r,n,t)},{tag:jn})}(t,e),0))},0),e.registerCommand(Mt,e=>{const t=zr();return _r(t)&&Mc(t),!1},0),e.registerCommand($t,e=>{const t=zr();return _r(t)&&Mc(t),!1},0))}function Dc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ic="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function $c({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=(0,a.useState)(()=>e.getDecorators());return Ic(()=>e.registerDecoratorListener(e=>{(0,Ya.flushSync)(()=>{r(e)})}),[e]),(0,a.useEffect)(()=>{r(e.getDecorators())},[e]),(0,a.useMemo)(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const s=o[i],l=(0,d.jsx)(t,{onError:t=>e._onError(t),children:(0,d.jsx)(a.Suspense,{fallback:null,children:n[s]})}),c=e.getElementByKey(s);null!==c&&r.push((0,Ya.createPortal)(l,c,s))}return r},[t,n,e])}(e,t)}function jc({editor:e,ErrorBoundary:t}){return function(e){const t=Ha.maybeFromEditor(e);if(t&&t.hasExtensionByName(Ga)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&Dc(320,e);return!0}return!1}(e)?null:(0,d.jsx)($c,{editor:e,ErrorBoundary:t})}function zc(e){return e.getEditorState().read(Ja(e.isComposing()))}function Bc({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=h();return Ic(()=>Nl(Fc(o),function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const o=n.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,o,i,s,l]=t;e.update(()=>{const e=zr();if(_r(e)){const t=e.anchor;let a=t.getNode(),c=0,u=0;if(pr(a)&&r>=0&&o>=0&&(c=r,u=r+o,e.setTextNodeRange(a,c,a,u)),c===u&&""===i||(e.insertRawText(i),a=t.getNode()),pr(a)){c=s,u=s+l;const t=a.getTextContentSize();c=c>t?t:c,u=u>t?t:u,e.setTextNodeRange(a,c,a,u)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(o)),[o=r]),(0,d.jsxs)(d.Fragment,{children:[e,(0,d.jsx)(Uc,{content:t}),(0,d.jsx)(jc,{editor:r,ErrorBoundary:n})]});var o}function Uc({content:e}){const[t]=h(),n=function(e){const[t,n]=(0,a.useState)(()=>zc(e));return Ic(()=>{function t(){const t=zc(e);n(t)}return t(),Nl(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=y();return n?"function"==typeof e?e(r):e:null}const Hc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect,Kc=(0,a.forwardRef)(function({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:l,ariaLabel:c,ariaLabelledBy:u,ariaMultiline:f,ariaOwns:p,ariaRequired:h,autoCapitalize:g,className:m,id:y,role:v="textbox",spellCheck:b=!0,style:w,tabIndex:x,"data-testid":S,..._},C){const[E,k]=(0,a.useState)(e.isEditable()),T=(0,a.useCallback)(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),N=(0,a.useMemo)(()=>function(...e){return t=>{for(const n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(C,T),[T,C]);return Hc(()=>(k(e.isEditable()),e.registerEditableListener(e=>{k(e)})),[e]),(0,d.jsx)("div",{"aria-activedescendant":E?t:void 0,"aria-autocomplete":E?n:"none","aria-controls":E?r:void 0,"aria-describedby":o,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":E&&"combobox"===v?!!s:void 0,...null!=l?{"aria-invalid":l}:{},"aria-label":c,"aria-labelledby":u,"aria-multiline":f,"aria-owns":E?p:void 0,"aria-readonly":!E||void 0,"aria-required":h,autoCapitalize:g,className:m,contentEditable:E,"data-testid":S,id:y,ref:N,role:v,spellCheck:b,style:w,tabIndex:x,..._})});function Wc(e){return e.getEditorState().read(Ja(e.isComposing()))}const Vc=(0,a.forwardRef)(function(e,t){const{placeholder:n,...r}=e,[o]=h();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Kc,{editor:o,...r,ref:t}),null!=n&&(0,d.jsx)(qc,{editor:o,content:n})]})});function qc({content:e,editor:t}){const n=function(e){const[t,n]=(0,a.useState)(()=>Wc(e));return Hc(()=>{function t(){const t=Wc(e);n(t)}return t(),Nl(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=(0,a.useState)(t.isEditable());if((0,a.useLayoutEffect)(()=>(o(t.isEditable()),t.registerEditableListener(e=>{o(e)})),[t]),!n)return null;let i=null;return"function"==typeof e?i=e(r):null!==e&&(i=e),null===i?null:(0,d.jsx)("div",{"aria-hidden":!0,children:i})}const Gc=(0,a.createContext)(null),Yc={didCatch:!1,error:null};class Jc extends a.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Yc}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(Yc))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:"keys"}),this.setState(Yc))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let s=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=(0,a.createElement)(n,e);else{if(void 0===r)throw i;s=r}}return(0,a.createElement)(Gc.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}}function Xc({children:e,onError:t}){return(0,d.jsx)(Jc,{fallback:(0,d.jsx)("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const Qc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Zc=Qc?a.useLayoutEffect:a.useEffect,eu={tag:$n};function tu({initialConfig:e,children:t}){const n=(0,a.useMemo)(()=>{const{theme:t,namespace:n,nodes:r,onError:o,editorState:i,html:s}=e,l=p(null,t),a=Ho({editable:e.editable,html:s,namespace:n,nodes:r,onError:e=>o(e,a),theme:t});return function(e,t){if(null!==t)if(void 0===t)e.update(()=>{const t=Ci();if(t.isEmpty()){const n=jo();t.append(n);const r=Qc?document.activeElement:null;(null!==zr()||null!==r&&r===e.getRootElement())&&n.select()}},eu);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,eu);break}case"object":e.setEditorState(t,eu);break;case"function":e.update(()=>{Ci().isEmpty()&&t(e)},eu)}}(a,i),[a,l]},[]);return Zc(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),(0,d.jsx)(f.Provider,{value:n,children:t})}var nu=function(){return nu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nu.apply(this,arguments)};function ru(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var ou=o(2945),iu=o.n(ou),su="-ms-",lu="-moz-",au="-webkit-",cu="comm",uu="rule",du="decl",fu="@keyframes",pu=Math.abs,hu=String.fromCharCode,gu=Object.assign;function mu(e){return e.trim()}function yu(e,t){return(e=t.exec(e))?e[0]:e}function vu(e,t,n){return e.replace(t,n)}function bu(e,t,n){return e.indexOf(t,n)}function wu(e,t){return 0|e.charCodeAt(t)}function xu(e,t,n){return e.slice(t,n)}function Su(e){return e.length}function _u(e){return e.length}function Cu(e,t){return t.push(e),e}function Eu(e,t){return e.filter(function(e){return!yu(e,t)})}var ku=1,Tu=1,Nu=0,Au=0,Ru=0,Pu="";function Lu(e,t,n,r,o,i,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ku,column:Tu,length:s,return:"",siblings:l}}function Ou(e,t){return gu(Lu("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Mu(e){for(;e.root;)e=Ou(e.root,{children:[e]});Cu(e,e.siblings)}function Fu(){return Ru=Au>0?wu(Pu,--Au):0,Tu--,10===Ru&&(Tu=1,ku--),Ru}function Du(){return Ru=Au<Nu?wu(Pu,Au++):0,Tu++,10===Ru&&(Tu=1,ku++),Ru}function Iu(){return wu(Pu,Au)}function $u(){return Au}function ju(e,t){return xu(Pu,e,t)}function zu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bu(e){return mu(ju(Au-1,Ku(91===e?e+2:40===e?e+1:e)))}function Uu(e){for(;(Ru=Iu())&&Ru<33;)Du();return zu(e)>2||zu(Ru)>3?"":" "}function Hu(e,t){for(;--t&&Du()&&!(Ru<48||Ru>102||Ru>57&&Ru<65||Ru>70&&Ru<97););return ju(e,$u()+(t<6&&32==Iu()&&32==Du()))}function Ku(e){for(;Du();)switch(Ru){case e:return Au;case 34:case 39:34!==e&&39!==e&&Ku(Ru);break;case 40:41===e&&Ku(e);break;case 92:Du()}return Au}function Wu(e,t){for(;Du()&&e+Ru!==57&&(e+Ru!==84||47!==Iu()););return"/*"+ju(t,Au-1)+"*"+hu(47===e?e:Du())}function Vu(e){for(;!zu(Iu());)Du();return ju(e,Au)}function qu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Gu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case du:return e.return=e.return||e.value;case cu:return"";case fu:return e.return=e.value+"{"+qu(e.children,r)+"}";case uu:if(!Su(e.value=e.props.join(",")))return""}return Su(n=qu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Yu(e,t,n){switch(function(e,t){return 45^wu(e,0)?(((t<<2^wu(e,0))<<2^wu(e,1))<<2^wu(e,2))<<2^wu(e,3):0}(e,t)){case 5103:return au+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return au+e+e;case 4789:return lu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return au+e+lu+e+su+e+e;case 5936:switch(wu(e,t+11)){case 114:return au+e+su+vu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return au+e+su+vu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return au+e+su+vu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return au+e+su+e+e;case 6165:return au+e+su+"flex-"+e+e;case 5187:return au+e+vu(e,/(\w+).+(:[^]+)/,au+"box-$1$2"+su+"flex-$1$2")+e;case 5443:return au+e+su+"flex-item-"+vu(e,/flex-|-self/g,"")+(yu(e,/flex-|baseline/)?"":su+"grid-row-"+vu(e,/flex-|-self/g,""))+e;case 4675:return au+e+su+"flex-line-pack"+vu(e,/align-content|flex-|-self/g,"")+e;case 5548:return au+e+su+vu(e,"shrink","negative")+e;case 5292:return au+e+su+vu(e,"basis","preferred-size")+e;case 6060:return au+"box-"+vu(e,"-grow","")+au+e+su+vu(e,"grow","positive")+e;case 4554:return au+vu(e,/([^-])(transform)/g,"$1"+au+"$2")+e;case 6187:return vu(vu(vu(e,/(zoom-|grab)/,au+"$1"),/(image-set)/,au+"$1"),e,"")+e;case 5495:case 3959:return vu(e,/(image-set\([^]*)/,au+"$1$`$1");case 4968:return vu(vu(e,/(.+:)(flex-)?(.*)/,au+"box-pack:$3"+su+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+au+e+e;case 4200:if(!yu(e,/flex-|baseline/))return su+"grid-column-align"+xu(e,t)+e;break;case 2592:case 3360:return su+vu(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,yu(e.props,/grid-\w+-end/)})?~bu(e+(n=n[t].value),"span",0)?e:su+vu(e,"-start","")+e+su+"grid-row-span:"+(~bu(n,"span",0)?yu(n,/\d+/):+yu(n,/\d+/)-+yu(e,/\d+/))+";":su+vu(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return yu(e.props,/grid-\w+-start/)})?e:su+vu(vu(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return vu(e,/(.+)-inline(.+)/,au+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Su(e)-1-t>6)switch(wu(e,t+1)){case 109:if(45!==wu(e,t+4))break;case 102:return vu(e,/(.+:)(.+)-([^]+)/,"$1"+au+"$2-$3$1"+lu+(108==wu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~bu(e,"stretch",0)?Yu(vu(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return vu(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,s,l){return su+n+":"+r+l+(o?su+n+"-span:"+(i?s:+s-+r)+l:"")+e});case 4949:if(121===wu(e,t+6))return vu(e,":",":"+au)+e;break;case 6444:switch(wu(e,45===wu(e,14)?18:11)){case 120:return vu(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+au+(45===wu(e,14)?"inline-":"")+"box$3$1"+au+"$2$3$1"+su+"$2box$3")+e;case 100:return vu(e,":",":"+su)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return vu(e,"scroll-","scroll-snap-")+e}return e}function Ju(e){var t=_u(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function Xu(e){return function(t){t.root||(t=t.return)&&e(t)}}function Qu(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case du:return void(e.return=Yu(e.value,e.length,n));case fu:return qu([Ou(e,{value:vu(e.value,"@","@"+au)})],r);case uu:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(yu(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Mu(Ou(e,{props:[vu(t,/:(read-\w+)/,":-moz-$1")]})),Mu(Ou(e,{props:[t]})),gu(e,{props:Eu(n,r)});break;case"::placeholder":Mu(Ou(e,{props:[vu(t,/:(plac\w+)/,":"+au+"input-$1")]})),Mu(Ou(e,{props:[vu(t,/:(plac\w+)/,":-moz-$1")]})),Mu(Ou(e,{props:[vu(t,/:(plac\w+)/,su+"input-$1")]})),Mu(Ou(e,{props:[t]})),gu(e,{props:Eu(n,r)})}return""})}}function Zu(e){return function(e){return Pu="",e}(ed("",null,null,null,[""],e=function(e){return ku=Tu=1,Nu=Su(Pu=e),Au=0,[]}(e),0,[0],e))}function ed(e,t,n,r,o,i,s,l,a){for(var c=0,u=0,d=s,f=0,p=0,h=0,g=1,m=1,y=1,v=0,b="",w=o,x=i,S=r,_=b;m;)switch(h=v,v=Du()){case 40:if(108!=h&&58==wu(_,d-1)){-1!=bu(_+=vu(Bu(v),"&","&\f"),"&\f",pu(c?l[c-1]:0))&&(y=-1);break}case 34:case 39:case 91:_+=Bu(v);break;case 9:case 10:case 13:case 32:_+=Uu(h);break;case 92:_+=Hu($u()-1,7);continue;case 47:switch(Iu()){case 42:case 47:Cu(nd(Wu(Du(),$u()),t,n,a),a);break;default:_+="/"}break;case 123*g:l[c++]=Su(_)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==y&&(_=vu(_,/\f/g,"")),p>0&&Su(_)-d&&Cu(p>32?rd(_+";",r,n,d-1,a):rd(vu(_," ","")+";",r,n,d-2,a),a);break;case 59:_+=";";default:if(Cu(S=td(_,t,n,c,u,o,l,b,w=[],x=[],d,i),i),123===v)if(0===u)ed(_,t,S,S,w,i,d,l,x);else switch(99===f&&110===wu(_,3)?100:f){case 100:case 108:case 109:case 115:ed(e,S,S,r&&Cu(td(e,S,S,0,0,o,l,b,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:ed(_,S,S,S,[""],x,0,l,x)}}c=u=p=0,g=y=1,b=_="",d=s;break;case 58:d=1+Su(_),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Fu())continue;switch(_+=hu(v),v*g){case 38:y=u>0?1:(_+="\f",-1);break;case 44:l[c++]=(Su(_)-1)*y,y=1;break;case 64:45===Iu()&&(_+=Bu(Du())),f=Iu(),u=d=Su(b=_+=Vu($u())),v++;break;case 45:45===h&&2==Su(_)&&(g=0)}}return i}function td(e,t,n,r,o,i,s,l,a,c,u,d){for(var f=o-1,p=0===o?i:[""],h=_u(p),g=0,m=0,y=0;g<r;++g)for(var v=0,b=xu(e,f+1,f=pu(m=s[g])),w=e;v<h;++v)(w=mu(m>0?p[v]+" "+b:vu(b,/&\f/g,p[v])))&&(a[y++]=w);return Lu(e,t,n,0===o?uu:l,a,c,u,d)}function nd(e,t,n,r){return Lu(e,t,n,cu,hu(Ru),xu(e,2,-2),0,r)}function rd(e,t,n,r,o){return Lu(e,t,n,du,xu(e,0,r),xu(e,r+1,-1),r,o)}var od={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},id="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",sd="active",ld="data-styled-version",ad="6.1.19",cd="/*!sc*/\n",ud="undefined"!=typeof window&&"undefined"!=typeof document,dd=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),fd={},pd=(new Set,Object.freeze([])),hd=Object.freeze({});function gd(e,t,n){return void 0===n&&(n=hd),e.theme!==n.theme&&e.theme||t||n.theme}var md=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),yd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,vd=/(^-|-$)/g;function bd(e){return e.replace(yd,"-").replace(vd,"")}var wd=/(a)(d)/gi,xd=function(e){return String.fromCharCode(e+(e>25?39:97))};function Sd(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=xd(t%52)+n;return(xd(t%52)+n).replace(wd,"$1-$2")}var _d,Cd=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ed=function(e){return Cd(5381,e)};function kd(e){return Sd(Ed(e)>>>0)}function Td(e){return"string"==typeof e&&!0}var Nd="function"==typeof Symbol&&Symbol.for,Ad=Nd?Symbol.for("react.memo"):60115,Rd=Nd?Symbol.for("react.forward_ref"):60112,Pd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ld={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Od={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Md=((_d={})[Rd]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_d[Ad]=Od,_d);function Fd(e){return("type"in(t=e)&&t.type.$$typeof)===Ad?Od:"$$typeof"in e?Md[e.$$typeof]:Pd;var t}var Dd=Object.defineProperty,Id=Object.getOwnPropertyNames,$d=Object.getOwnPropertySymbols,jd=Object.getOwnPropertyDescriptor,zd=Object.getPrototypeOf,Bd=Object.prototype;function Ud(e,t,n){if("string"!=typeof t){if(Bd){var r=zd(t);r&&r!==Bd&&Ud(e,r,n)}var o=Id(t);$d&&(o=o.concat($d(t)));for(var i=Fd(e),s=Fd(t),l=0;l<o.length;++l){var a=o[l];if(!(a in Ld||n&&n[a]||s&&a in s||i&&a in i)){var c=jd(t,a);try{Dd(e,a,c)}catch(e){}}}}return e}function Hd(e){return"function"==typeof e}function Kd(e){return"object"==typeof e&&"styledComponentId"in e}function Wd(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Vd(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function qd(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Gd(e,t,n){if(void 0===n&&(n=!1),!n&&!qd(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Gd(e[r],t[r]);else if(qd(t))for(var r in t)e[r]=Gd(e[r],t[r]);return e}function Yd(e,t){Object.defineProperty(e,"toString",{value:t})}function Jd(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Xd=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Jd(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(cd);return t},e}(),Qd=new Map,Zd=new Map,ef=1,tf=function(e){if(Qd.has(e))return Qd.get(e);for(;Zd.has(ef);)ef++;var t=ef++;return Qd.set(e,t),Zd.set(t,e),t},nf=function(e,t){ef=t+1,Qd.set(e,t),Zd.set(t,e)},rf="style[".concat(id,"][").concat(ld,'="').concat(ad,'"]'),of=new RegExp("^".concat(id,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),sf=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},lf=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(cd),o=[],i=0,s=r.length;i<s;i++){var l=r[i].trim();if(l){var a=l.match(of);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(nf(u,c),sf(e,u,a[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(l)}}},af=function(e){for(var t=document.querySelectorAll(rf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(id)!==sd&&(lf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function cf(){return o.nc}var uf=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(id,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(id,sd),r.setAttribute(ld,ad);var s=cf();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},df=function(){function e(e){this.element=uf(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Jd(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),ff=function(){function e(e){this.element=uf(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),pf=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),hf=ud,gf={isServer:!ud,useCSSOMInjection:!dd},mf=function(){function e(e,t,n){void 0===e&&(e=hd),void 0===t&&(t={});var r=this;this.options=nu(nu({},gf),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ud&&hf&&(hf=!1,af(this)),Yd(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Zd.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var l="".concat(id,".g").concat(n,'[id="').concat(o,'"]'),a="";void 0!==i&&i.forEach(function(e){e.length>0&&(a+="".concat(e,","))}),r+="".concat(s).concat(l,'{content:"').concat(a,'"}').concat(cd)},i=0;i<n;i++)o(i);return r}(r)})}return e.registerId=function(e){return tf(e)},e.prototype.rehydrate=function(){!this.server&&ud&&af(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(nu(nu({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new pf(n):t?new df(n):new ff(n)}(this.options),new Xd(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(tf(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(tf(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(tf(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),yf=/&/g,vf=/^\s*\/\/.*$/gm;function bf(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=bf(e.children,t)),e})}function wf(e){var t,n,r,o=void 0===e?hd:e,i=o.options,s=void 0===i?hd:i,l=o.plugins,a=void 0===l?pd:l,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=a.slice();u.push(function(e){e.type===uu&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(yf,n).replace(r,c))}),s.prefix&&u.push(Qu),u.push(Gu);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var a=e.replace(vf,""),c=Zu(i||o?"".concat(i," ").concat(o," { ").concat(a," }"):a);s.namespace&&(c=bf(c,s.namespace));var d=[];return qu(c,Ju(u.concat(Xu(function(e){return d.push(e)})))),d};return d.hash=a.length?a.reduce(function(e,t){return t.name||Jd(15),Cd(e,t.name)},5381).toString():"",d}var xf=new mf,Sf=wf(),_f=a.createContext({shouldForwardProp:void 0,styleSheet:xf,stylis:Sf}),Cf=(_f.Consumer,a.createContext(void 0));function Ef(){return(0,a.useContext)(_f)}function kf(e){var t=(0,a.useState)(e.stylisPlugins),n=t[0],r=t[1],o=Ef().styleSheet,i=(0,a.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,o]),s=(0,a.useMemo)(function(){return wf({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,a.useEffect)(function(){iu()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var l=(0,a.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:s}},[e.shouldForwardProp,i,s]);return a.createElement(_f.Provider,{value:l},a.createElement(Cf.Provider,{value:s},e.children))}var Tf=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Sf);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Yd(this,function(){throw Jd(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Sf),this.name+e.hash},e}(),Nf=function(e){return e>="A"&&e<="Z"};function Af(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Nf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Rf=function(e){return null==e||!1===e||""===e},Pf=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Rf(i)&&(Array.isArray(i)&&i.isCss||Hd(i)?r.push("".concat(Af(o),":"),i,";"):qd(i)?r.push.apply(r,ru(ru(["".concat(o," {")],Pf(i),!1),["}"],!1)):r.push("".concat(Af(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in od||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Lf(e,t,n,r){return Rf(e)?[]:Kd(e)?[".".concat(e.styledComponentId)]:Hd(e)?!Hd(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Lf(e(t),t,n,r):e instanceof Tf?n?(e.inject(n,r),[e.getName(r)]):[e]:qd(e)?Pf(e):Array.isArray(e)?Array.prototype.concat.apply(pd,e.map(function(e){return Lf(e,t,n,r)})):[e.toString()];var o}function Of(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Hd(n)&&!Kd(n))return!1}return!0}var Mf=Ed(ad),Ff=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Of(e),this.componentId=t,this.baseHash=Cd(Mf,t),this.baseStyle=n,mf.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Wd(r,this.staticRulesId);else{var o=Vd(Lf(this.rules,e,t,n)),i=Sd(Cd(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var s=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,s)}r=Wd(r,i),this.staticRulesId=i}else{for(var l=Cd(this.baseHash,n.hash),a="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)a+=u;else if(u){var d=Vd(Lf(u,e,t,n));l=Cd(l,d+c),a+=d}}if(a){var f=Sd(l>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(a,".".concat(f),void 0,this.componentId)),r=Wd(r,f)}}return r},e}(),Df=a.createContext(void 0);Df.Consumer;var If={};function $f(e,t,n){var r=Kd(e),o=e,i=!Td(e),s=t.attrs,l=void 0===s?pd:s,c=t.componentId,u=void 0===c?function(e,t){var n="string"!=typeof e?"sc":bd(e);If[n]=(If[n]||0)+1;var r="".concat(n,"-").concat(kd(ad+n+If[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):c,d=t.displayName,f=void 0===d?function(e){return Td(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):d,p=t.displayName&&t.componentId?"".concat(bd(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;g=function(e,t){return m(e,t)&&y(e,t)}}else g=m}var v=new Ff(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,s=e.foldedComponentIds,l=e.styledComponentId,c=e.target,u=a.useContext(Df),d=Ef(),f=e.shouldForwardProp||d.shouldForwardProp,p=gd(t,u,i)||hd,h=function(e,t,n){for(var r,o=nu(nu({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var s=Hd(r=e[i])?r(o):r;for(var l in s)o[l]="className"===l?Wd(o[l],s[l]):"style"===l?nu(nu({},o[l]),s[l]):s[l]}return t.className&&(o.className=Wd(o.className,t.className)),o}(r,t,p),g=h.as||c,m={};for(var y in h)void 0===h[y]||"$"===y[0]||"as"===y||"theme"===y&&h.theme===p||("forwardedAs"===y?m.as=h.forwardedAs:f&&!f(y,g)||(m[y]=h[y]));var v=function(e,t){var n=Ef();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,h),b=Wd(s,l);return v&&(b+=" "+v),h.className&&(b+=" "+h.className),m[Td(g)&&!md.has(g)?"class":"className"]=b,n&&(m.ref=n),(0,a.createElement)(g,m)}(w,e,t)}b.displayName=f;var w=a.forwardRef(b);return w.attrs=h,w.componentStyle=v,w.displayName=f,w.shouldForwardProp=g,w.foldedComponentIds=r?Wd(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=p,w.target=r?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Gd(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Yd(w,function(){return".".concat(w.styledComponentId)}),i&&Ud(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function jf(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var zf=function(e){return Object.assign(e,{isCss:!0})};function Bf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Hd(e)||qd(e))return zf(Lf(jf(pd,ru([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Lf(r):zf(Lf(jf(r,t)))}function Uf(e,t,n){if(void 0===n&&(n=hd),!t)throw Jd(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Bf.apply(void 0,ru([r],o,!1)))};return r.attrs=function(r){return Uf(e,t,nu(nu({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Uf(e,t,nu(nu({},n),r))},r}var Hf=function(e){return Uf($f,e)},Kf=Hf;md.forEach(function(e){Kf[e]=Hf(e)});var Wf=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Of(e),mf.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Vd(Lf(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&mf.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Vf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Bf.apply(void 0,ru([e],t,!1)),o="sc-global-".concat(kd(JSON.stringify(r))),i=new Wf(r,o),s=function(e){var t=Ef(),n=a.useContext(Df),r=a.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&l(r,e,t.styleSheet,n,t.stylis),a.useLayoutEffect(function(){if(!t.styleSheet.server)return l(r,e,t.styleSheet,n,t.stylis),function(){return i.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function l(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,fd,n,o);else{var l=nu(nu({},t),{theme:gd(t,r,s.defaultProps)});i.renderStyles(e,l,n,o)}}return a.memo(s)}(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=cf(),r=Vd([n&&'nonce="'.concat(n,'"'),"".concat(id,'="true"'),"".concat(ld,'="').concat(ad,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Jd(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Jd(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[id]="",t[ld]=ad,t.dangerouslySetInnerHTML={__html:n},t),o=cf();return o&&(r.nonce=o),[a.createElement("style",nu({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new mf({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Jd(2);return a.createElement(kf,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Jd(3)}})(),"__sc-".concat(id,"__");const qf="#FFFFFF",Gf="#222222",Yf="#5C6BC0",Jf={name:"light",primary:"#FFFFFF",secondary:"#222222",white:"#FFFFFF",black:"#222222",blue:"#65B5F6",yellow:"#FFC107",orange:"#FF8F00",red:"#D84315",pink:"#CE93D8",grayNeutral:"#F6F6FB",grayLight:"#DDE0EB",grayRegular:"#9FA2B0",grayDark:"#717381",greenRegular:"#81C784",greenDark:"#388E3C",purpleRegular:"#5C6BC0",purpleDark:"#1A237E",blueDark:"#0065FF"},Xf={name:"dark",primary:"#2A2B2F",secondary:"#E3E3E7",white:"#E3E3E7",black:"#2A2B2F",blue:"#5AA5E6",yellow:"#E6B000",orange:"#E67F00",red:"#C23A15",pink:"#BA68C8",grayNeutral:"#1E1F22",grayLight:"#3A3C42",grayRegular:"#A1A4B2",grayDark:"#828590",greenRegular:"#71B574",greenDark:"#2E7D32",purpleRegular:"#8C9EFF",purpleDark:"#5C6BC0",blueDark:"#4A90FF"},Qf=e=>{const t=(0,a.createContext)(null);return[({children:e,value:n})=>(0,d.jsx)(t.Provider,{value:n,children:e}),()=>{const n=(0,a.useContext)(t);if(!n)throw new Error(`context-${e} can only be used inside a ${e}-provider`);return n}]},[Zf,ep]=Qf("UIKitTheme"),tp={theme:Jf,isDark:!1,themeMode:"light",toggleTheme:()=>{},setThemeMode:()=>{}},np=e=>{const t=e&&"object"==typeof e&&"theme"in e?e.theme??void 0:e??void 0;return"dark"===(null==t?void 0:t.name)?{...Xf,...t}:{...Jf,...t}},rp=function(e){return t=>{const n=np(t);return e?"function"==typeof e?e(n):n[e]:n}};rp.resolve=np,rp.isThemeDark=e=>"dark"===np(e).name,rp.boxShadowColor=e=>rp.isThemeDark(e)?"rgba(0, 0, 0, 0.24)":"rgba(0, 0, 0, 0.1)",rp.boxShadowHoverColor=e=>rp.isThemeDark(e)?"rgba(0, 0, 0, 0.4)":"rgba(0, 0, 0, 0.2)";const op=()=>{const e=(0,a.useContext)(Df),{theme:t}=(()=>{try{return ep()}catch{return tp}})();return e?np(e):t},ip=Bf`
3
3
  ${Bf`
4
4
  .ShelfEditor_text-bold {
5
5
  font-weight: 700;