@azlib/scheduler 1.0.5 → 1.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.
Files changed (48) hide show
  1. package/Dockerfile +14 -0
  2. package/README.md +53 -0
  3. package/compose.yaml +28 -0
  4. package/dist/cli-config-6u8AzSdw.mjs +542 -0
  5. package/dist/cli-config-6u8AzSdw.mjs.map +1 -0
  6. package/dist/cli-config-CFBl-YOh.cjs +628 -0
  7. package/dist/dashboard/cli.cjs +30 -0
  8. package/dist/dashboard/cli.d.cts +6 -0
  9. package/dist/dashboard/cli.d.cts.map +1 -0
  10. package/dist/dashboard/cli.d.mts +6 -0
  11. package/dist/dashboard/cli.d.mts.map +1 -0
  12. package/dist/dashboard/cli.mjs +31 -0
  13. package/dist/dashboard/cli.mjs.map +1 -0
  14. package/dist/dashboard/public/assets/index-CbmpG6_w.css +2 -0
  15. package/dist/dashboard/public/assets/index-DczjtqRn.js +12 -0
  16. package/dist/dashboard/public/index.html +13 -0
  17. package/dist/dashboard-types-BHjRLcxJ.d.cts +127 -0
  18. package/dist/dashboard-types-BHjRLcxJ.d.cts.map +1 -0
  19. package/dist/dashboard-types-BHjRLcxJ.d.mts +127 -0
  20. package/dist/dashboard-types-BHjRLcxJ.d.mts.map +1 -0
  21. package/dist/dashboard.cjs +15 -0
  22. package/dist/dashboard.d.cts +31 -0
  23. package/dist/dashboard.d.cts.map +1 -0
  24. package/dist/dashboard.d.mts +31 -0
  25. package/dist/dashboard.d.mts.map +1 -0
  26. package/dist/dashboard.mjs +4 -0
  27. package/dist/http-server-Cme4XKyH.d.mts +34 -0
  28. package/dist/http-server-Cme4XKyH.d.mts.map +1 -0
  29. package/dist/http-server-u1BnbkAK.d.cts +34 -0
  30. package/dist/http-server-u1BnbkAK.d.cts.map +1 -0
  31. package/dist/index.cjs +49 -442
  32. package/dist/index.d.cts +3 -158
  33. package/dist/index.d.cts.map +1 -1
  34. package/dist/index.d.mts +3 -158
  35. package/dist/index.d.mts.map +1 -1
  36. package/dist/index.mjs +44 -439
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/queue-dashboard-service-BFXcnfUr.cjs +55 -0
  39. package/dist/queue-dashboard-service-C0QapgOg.mjs +52 -0
  40. package/dist/queue-dashboard-service-C0QapgOg.mjs.map +1 -0
  41. package/dist/store-dashboard-C44d7sdh.d.cts +59 -0
  42. package/dist/store-dashboard-C44d7sdh.d.cts.map +1 -0
  43. package/dist/store-dashboard-Cyf_JILa.mjs +515 -0
  44. package/dist/store-dashboard-Cyf_JILa.mjs.map +1 -0
  45. package/dist/store-dashboard-D-yIxXxL.d.mts +59 -0
  46. package/dist/store-dashboard-D-yIxXxL.d.mts.map +1 -0
  47. package/dist/store-dashboard-Sg4BBWiJ.cjs +554 -0
  48. package/package.json +54 -6
@@ -0,0 +1,12 @@
1
+ var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return ee(e.type,t,e.props)}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function oe(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=oe(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=oe(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return oe(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function se(e,t,n){if(e==null)return e;var r=[],i=0;return oe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var O=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},k={map:se,forEach:function(e,t,n){se(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return se(e,function(){t++}),t},toArray:function(e){return se(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=k,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return ee(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return ee(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:D}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,O)}catch(e){O(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),n=e(((e,n)=>{n.exports=t()})),r=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,E());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function te(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?E():S=!1}}}var E;if(typeof y==`function`)E=function(){y(te)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=te,E=function(){re.postMessage(null)}}else E=function(){_(te,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.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`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,E()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(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 a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),o=e(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=i(),r=n(),a=o();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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){o=!0,n=i,r=a;break}if(c===r){o=!0,r=i,n=a;break}c=c.sibling}if(!o){for(c=a.child;c;){if(c===n){o=!0,n=a,r=i;break}if(c===r){o=!0,r=a,n=i;break}c=c.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),re=Symbol.for(`react.memo_cache_sentinel`),ie=Symbol.iterator;function ae(e){return typeof e!=`object`||!e?null:(e=ie&&e[ie]||e[`@@iterator`],typeof e==`function`?e:null)}var oe=Symbol.for(`react.client.reference`);function se(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case ee:return`SuspenseList`;case ne:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return t=e.displayName||null,t===null?se(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var D=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},A=[],le=-1;function j(e){return{current:e}}function M(e){0>le||(e.current=A[le],A[le]=null,le--)}function N(e,t){le++,A[le]=e.current,e.current=t}var ue=j(null),de=j(null),P=j(null),fe=j(null);function pe(e,t){switch(N(P,t),N(de,e),N(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}M(ue),N(ue,e)}function me(){M(ue),M(de),M(P)}function he(e){e.memoizedState!==null&&N(fe,e);var t=ue.current,n=Hd(t,e.type);t!==n&&(N(de,e),N(ue,n))}function F(e){de.current===e&&(M(ue),M(de)),fe.current===e&&(M(fe),Qf._currentValue=ce)}var ge,_e;function ve(e){if(ge===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ge=t&&t[1]||``,_e=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+ge+e+_e}var ye=!1;function be(e,t){if(!e||ye)return``;ye=!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()}}),typeof Reflect==`object`&&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())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4
+ `),l=s.split(`
5
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ye=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ve(n):``}function I(e,t){switch(e.tag){case 26:case 27:case 5:return ve(e.type);case 16:return ve(`Lazy`);case 13:return e.child!==t&&t!==null?ve(`Suspense Fallback`):ve(`Suspense`);case 19:return ve(`SuspenseList`);case 0:case 15:return be(e.type,!1);case 11:return be(e.type.render,!1);case 1:return be(e.type,!0);case 31:return ve(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do t+=I(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var Se=Object.prototype.hasOwnProperty,Ce=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,Te=t.unstable_shouldYield,Ee=t.unstable_requestPaint,De=t.unstable_now,Oe=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,je=t.unstable_NormalPriority,Me=t.unstable_LowPriority,Ne=t.unstable_IdlePriority,Pe=t.log,Fe=t.unstable_setDisableYieldValue,Ie=null,Le=null;function Re(e){if(typeof Pe==`function`&&Fe(e),Le&&typeof Le.setStrictMode==`function`)try{Le.setStrictMode(Ie,e)}catch{}}var L=Math.clz32?Math.clz32:Ve,ze=Math.log,Be=Math.LN2;function Ve(e){return e>>>=0,e===0?32:31-(ze(e)/Be|0)|0}var He=256,Ue=262144,We=4194304;function Ge(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ke(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ye(){var e=We;return We<<=1,!(We&62914560)&&(We=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(e,t,n,r,i,a){var o=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 s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-L(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&$e(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function $e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-L(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function et(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-L(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function tt(e,t){var n=t&-t;return n=n&42?1:nt(n),(n&(e.suspendedLanes|t))===0?n:0}function nt(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 rt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function it(){var e=k.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function at(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var ot=Math.random().toString(36).slice(2),st=`__reactFiber$`+ot,ct=`__reactProps$`+ot,R=`__reactContainer$`+ot,lt=`__reactEvents$`+ot,ut=`__reactListeners$`+ot,dt=`__reactHandles$`+ot,ft=`__reactResources$`+ot,pt=`__reactMarker$`+ot;function mt(e){delete e[st],delete e[ct],delete e[lt],delete e[ut],delete e[dt]}function ht(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[R]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[st])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function gt(e){if(e=e[st]||e[R]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _t(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function vt(e){var t=e[ft];return t||=e[ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function yt(e){e[pt]=!0}var bt=new Set,xt={};function z(e,t){St(e,t),St(e+`Capture`,t)}function St(e,t){for(xt[e]=t,e=0;e<t.length;e++)bt.add(t[e])}var Ct=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]*$`),wt={},Tt={};function Et(e){return Se.call(Tt,e)?!0:Se.call(wt,e)?!1:Ct.test(e)?Tt[e]=!0:(wt[e]=!0,!1)}function Dt(e,t,n){if(Et(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ot(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function kt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function At(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Mt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.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]}}}}function Nt(e){if(!e._valueTracker){var t=jt(e)?`checked`:`value`;e._valueTracker=Mt(e,t,``+e[t])}}function Pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=jt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function B(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ft=/[\n"\\]/g;function It(e){return e.replace(Ft,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Lt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+At(t)):e.value!==``+At(t)&&(e.value=``+At(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):zt(e,o,At(n)):zt(e,o,At(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+At(s):e.removeAttribute(`name`)}function Rt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Nt(e);return}n=n==null?``:``+At(n),t=t==null?n:``+At(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Nt(e)}function zt(e,t,n){t===`number`&&B(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Bt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+At(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vt(e,t,n){if(t!=null&&(t=``+At(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+At(n)}function Ht(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(s(92));if(D(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}n??=``,t=n}n=At(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Nt(e)}function Ut(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wt=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 Gt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Wt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Kt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(s(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Gt(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&Gt(e,a,t[a])}function qt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Jt=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`]]),Yt=/^[\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 Xt(e){return Yt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Zt(){}var Qt=null;function $t(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var V=null,H=null;function en(e){var t=gt(e);if(t&&(e=t.stateNode)){var n=e[ct]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Lt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+It(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[ct]||null;if(!i)throw Error(s(90));Lt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Pt(r)}break a;case`textarea`:Vt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Bt(e,!!n.multiple,t,!1)}}}var tn=!1;function nn(e,t,n){if(tn)return e(t,n);tn=!0;try{return e(t)}finally{if(tn=!1,(V!==null||H!==null)&&(bu(),V&&(t=V,e=H,H=V=null,en(t),e)))for(t=0;t<e.length;t++)en(e[t])}}function rn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ct]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(s(231,t,typeof n));return n}var an=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),on=!1;if(an)try{var sn={};Object.defineProperty(sn,"passive",{get:function(){on=!0}}),window.addEventListener(`test`,sn,sn),window.removeEventListener(`test`,sn,sn)}catch{on=!1}var cn=null,ln=null,un=null;function dn(){if(un)return un;var e,t=ln,n=t.length,r,i=`value`in cn?cn.value:cn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return un=i.slice(e,1<r?1-r:void 0)}function fn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pn(){return!0}function mn(){return!1}function hn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?pn:mn,this.isPropagationStopped=mn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=pn)},persist:function(){},isPersistent:pn}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_n=hn(gn),vn=h({},gn,{view:0,detail:0}),yn=hn(vn),bn,xn,Sn,Cn=h({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Sn&&(Sn&&e.type===`mousemove`?(bn=e.screenX-Sn.screenX,xn=e.screenY-Sn.screenY):xn=bn=0,Sn=e),bn)},movementY:function(e){return`movementY`in e?e.movementY:xn}}),wn=hn(Cn),Tn=hn(h({},Cn,{dataTransfer:0})),En=hn(h({},vn,{relatedTarget:0})),Dn=hn(h({},gn,{animationName:0,elapsedTime:0,pseudoElement:0})),On=hn(h({},gn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),kn=hn(h({},gn,{data:0})),An={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},jn={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`},Mn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mn[e])?!!t[e]:!1}function Pn(){return Nn}var Fn=hn(h({},vn,{key:function(e){if(e.key){var t=An[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=fn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return e.type===`keypress`?fn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?fn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),In=hn(h({},Cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=hn(h({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Rn=hn(h({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0})),zn=hn(h({},Cn,{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})),Bn=hn(h({},gn,{newState:0,oldState:0})),Vn=[9,13,27,32],Hn=an&&`CompositionEvent`in window,Un=null;an&&`documentMode`in document&&(Un=document.documentMode);var Wn=an&&`TextEvent`in window&&!Un,Gn=an&&(!Hn||Un&&8<Un&&11>=Un),Kn=` `,qn=!1;function Jn(e,t){switch(e){case`keyup`:return Vn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Yn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Xn=!1;function Zn(e,t){switch(e){case`compositionend`:return Yn(t);case`keypress`:return t.which===32?(qn=!0,Kn):null;case`textInput`:return e=t.data,e===Kn&&qn?null:e;default:return null}}function Qn(e,t){if(Xn)return e===`compositionend`||!Hn&&Jn(e,t)?(e=dn(),un=ln=cn=null,Xn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Gn&&t.locale!==`ko`?null:t.data;default:return null}}var $n={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 er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!$n[e.type]:t===`textarea`}function tr(e,t,n,r){V?H?H.push(r):H=[r]:V=r,t=Ed(t,`onChange`),0<t.length&&(n=new _n(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var nr=null,rr=null;function ir(e){yd(e,0)}function ar(e){if(Pt(_t(e)))return e}function or(e,t){if(e===`change`)return t}var sr=!1;if(an){var cr;if(an){var U=`oninput`in document;if(!U){var lr=document.createElement(`div`);lr.setAttribute(`oninput`,`return;`),U=typeof lr.oninput==`function`}cr=U}else cr=!1;sr=cr&&(!document.documentMode||9<document.documentMode)}function ur(){nr&&(nr.detachEvent(`onpropertychange`,dr),rr=nr=null)}function dr(e){if(e.propertyName===`value`&&ar(rr)){var t=[];tr(t,rr,e,$t(e)),nn(ir,t)}}function fr(e,t,n){e===`focusin`?(ur(),nr=t,rr=n,nr.attachEvent(`onpropertychange`,dr)):e===`focusout`&&ur()}function pr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ar(rr)}function mr(e,t){if(e===`click`)return ar(t)}function hr(e,t){if(e===`input`||e===`change`)return ar(t)}function gr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var _r=typeof Object.is==`function`?Object.is:gr;function vr(e,t){if(_r(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!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 i=n[r];if(!Se.call(t,i)||!_r(e[i],t[i]))return!1}return!0}function yr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function br(e,t){var n=yr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=yr(n)}}function xr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=B(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=B(e.document)}return t}function Cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var wr=an&&`documentMode`in document&&11>=document.documentMode,Tr=null,Er=null,Dr=null,Or=!1;function kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Or||Tr==null||Tr!==B(r)||(r=Tr,`selectionStart`in r&&Cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Dr&&vr(Dr,r)||(Dr=r,r=Ed(Er,`onSelect`),0<r.length&&(t=new _n(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Tr)))}function Ar(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var jr={animationend:Ar(`Animation`,`AnimationEnd`),animationiteration:Ar(`Animation`,`AnimationIteration`),animationstart:Ar(`Animation`,`AnimationStart`),transitionrun:Ar(`Transition`,`TransitionRun`),transitionstart:Ar(`Transition`,`TransitionStart`),transitioncancel:Ar(`Transition`,`TransitionCancel`),transitionend:Ar(`Transition`,`TransitionEnd`)},Mr={},Nr={};an&&(Nr=document.createElement(`div`).style,`AnimationEvent`in window||(delete jr.animationend.animation,delete jr.animationiteration.animation,delete jr.animationstart.animation),`TransitionEvent`in window||delete jr.transitionend.transition);function Pr(e){if(Mr[e])return Mr[e];if(!jr[e])return e;var t=jr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Nr)return Mr[e]=t[n];return e}var Fr=Pr(`animationend`),Ir=Pr(`animationiteration`),Lr=Pr(`animationstart`),Rr=Pr(`transitionrun`),zr=Pr(`transitionstart`),Br=Pr(`transitioncancel`),Vr=Pr(`transitionend`),Hr=new Map,Ur=`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(` `);Ur.push(`scrollEnd`);function Wr(e,t){Hr.set(e,t),z(t,[e])}var Gr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Kr=[],qr=0,Jr=0;function Yr(){for(var e=qr,t=Jr=qr=0;t<e;){var n=Kr[t];Kr[t++]=null;var r=Kr[t];Kr[t++]=null;var i=Kr[t];Kr[t++]=null;var a=Kr[t];if(Kr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&$r(n,i,a)}}function Xr(e,t,n,r){Kr[qr++]=e,Kr[qr++]=t,Kr[qr++]=n,Kr[qr++]=r,Jr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Zr(e,t,n,r){return Xr(e,t,n,r),ei(e)}function Qr(e,t){return Xr(e,null,null,t),ei(e)}function $r(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-L(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ei(e){if(50<du)throw du=0,fu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ti={};function ni(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 ri(e,t,n,r){return new ni(e,t,n,r)}function ii(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ai(e,t){var n=e.alternate;return n===null?(n=ri(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function oi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function si(e,t,n,r,i,a){var o=0;if(r=e,typeof e==`function`)ii(e)&&(o=1);else if(typeof e==`string`)o=Uf(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ne:return e=ri(31,n,t,i),e.elementType=ne,e.lanes=a,e;case y:return ci(n.children,i,a,t);case b:o=8,i|=24;break;case x:return e=ri(12,n,t,i|2),e.elementType=x,e.lanes=a,e;case T:return e=ri(13,n,t,i),e.elementType=T,e.lanes=a,e;case ee:return e=ri(19,n,t,i),e.elementType=ee,e.lanes=a,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:o=10;break a;case S:o=9;break a;case w:o=11;break a;case te:o=14;break a;case E:o=16,r=null;break a}o=29,n=Error(s(130,e===null?`null`:typeof e,``)),r=null}return t=ri(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function ci(e,t,n,r){return e=ri(7,e,r,t),e.lanes=n,e}function li(e,t,n){return e=ri(6,e,null,t),e.lanes=n,e}function ui(e){var t=ri(18,null,null,0);return t.stateNode=e,t}function di(e,t,n){return t=ri(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var fi=new WeakMap;function pi(e,t){if(typeof e==`object`&&e){var n=fi.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},fi.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}var mi=[],hi=0,gi=null,_i=0,vi=[],yi=0,bi=null,xi=1,Si=``;function Ci(e,t){mi[hi++]=_i,mi[hi++]=gi,gi=e,_i=t}function wi(e,t,n){vi[yi++]=xi,vi[yi++]=Si,vi[yi++]=bi,bi=e;var r=xi;e=Si;var i=32-L(r)-1;r&=~(1<<i),n+=1;var a=32-L(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,xi=1<<32-L(t)+i|n<<i|r,Si=a+e}else xi=1<<a|n<<i|r,Si=e}function Ti(e){e.return!==null&&(Ci(e,1),wi(e,1,0))}function Ei(e){for(;e===gi;)gi=mi[--hi],mi[hi]=null,_i=mi[--hi],mi[hi]=null;for(;e===bi;)bi=vi[--yi],vi[yi]=null,Si=vi[--yi],vi[yi]=null,xi=vi[--yi],vi[yi]=null}function Di(e,t){vi[yi++]=xi,vi[yi++]=Si,vi[yi++]=bi,xi=t.id,Si=t.overflow,bi=e}var Oi=null,ki=null,W=!1,Ai=null,ji=!1,Mi=Error(s(519));function Ni(e){throw zi(pi(Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Mi}function Pi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[st]=e,t[ct]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)Q(_d[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),Rt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),Ht(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||Ni(e,!0)}function Fi(e){for(Oi=e.return;Oi;)switch(Oi.tag){case 5:case 31:case 13:ji=!1;return;case 27:case 3:ji=!0;return;default:Oi=Oi.return}}function Ii(e){if(e!==Oi)return!1;if(!W)return Fi(e),W=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&ki&&Ni(e),Fi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));ki=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));ki=uf(e)}else t===27?(t=ki,Zd(e.type)?(e=lf,lf=null,ki=e):ki=t):ki=Oi?cf(e.stateNode.nextSibling):null;return!0}function Li(){ki=Oi=null,W=!1}function Ri(){var e=Ai;return e!==null&&(Zl===null?Zl=e:Zl.push.apply(Zl,e),Ai=null),e}function zi(e){Ai===null?Ai=[e]:Ai.push(e)}var Bi=j(null),Vi=null,Hi=null;function Ui(e,t,n){N(Bi,t._currentValue),t._currentValue=n}function Wi(e){e._currentValue=Bi.current,M(Bi)}function Gi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ki(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Gi(a.return,n,e),r||(o=null);break a}a=c.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Gi(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function qi(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var c=i.type;_r(i.pendingProps.value,o.value)||(e===null?e=[c]:e.push(c))}}else if(i===fe.current){if(o=i.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}i=i.return}e!==null&&Ki(t,e,n,r),t.flags|=262144}function Ji(e){for(e=e.firstContext;e!==null;){if(!_r(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yi(e){Vi=e,Hi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Xi(e){return Qi(Vi,e)}function Zi(e,t){return Vi===null&&Yi(e),Qi(e,t)}function Qi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Hi===null){if(e===null)throw Error(s(308));Hi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Hi=Hi.next=t;return n}var $i=typeof AbortController<`u`?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()})}},ea=t.unstable_scheduleCallback,ta=t.unstable_NormalPriority,na={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ra(){return{controller:new $i,data:new Map,refCount:0}}function ia(e){e.refCount--,e.refCount===0&&ea(ta,function(){e.controller.abort()})}var aa=null,oa=0,sa=0,ca=null;function la(e,t){if(aa===null){var n=aa=[];oa=0,sa=dd(),ca={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return oa++,t.then(ua,ua),t}function ua(){if(--oa===0&&aa!==null){ca!==null&&(ca.status=`fulfilled`);var e=aa;aa=null,sa=0,ca=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function da(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var fa=O.S;O.S=function(e,t){eu=De(),typeof t==`object`&&t&&typeof t.then==`function`&&la(e,t),fa!==null&&fa(e,t)};var pa=j(null);function ma(){var e=pa.current;return e===null?Rl.pooledCache:e}function ha(e,t){t===null?N(pa,pa.current):N(pa,t.pool)}function ga(){var e=ma();return e===null?null:{parent:na._currentValue,pool:e}}var _a=Error(s(460)),va=Error(s(474)),ya=Error(s(542)),ba={then:function(){}};function xa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Sa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Zt,Zt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ea(e),e;default:if(typeof t.status==`string`)t.then(Zt,Zt);else{if(e=Rl,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ea(e),e}throw wa=t,_a}}function Ca(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(wa=e,_a):e}}var wa=null;function Ta(){if(wa===null)throw Error(s(459));var e=wa;return wa=null,e}function Ea(e){if(e===_a||e===ya)throw Error(s(483))}var Da=null,Oa=0;function ka(e){var t=Oa;return Oa+=1,Da===null&&(Da=[]),Sa(Da,e,t)}function Aa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ja(e,t){throw t.$$typeof===g?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ma(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=ai(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=li(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===E&&Ca(a)===t.type)?(t=i(t,n.props),Aa(t,n),t.return=e,t):(t=si(n.type,n.key,n.props,null,e.mode,r),Aa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=di(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=ci(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=li(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=si(t.type,t.key,t.props,null,e.mode,n),Aa(n,t),n.return=e,n;case v:return t=di(t,e.mode,n),t.return=e,t;case E:return t=Ca(t),f(e,t,n)}if(D(t)||ae(t))return t=ci(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ka(t),n);if(t.$$typeof===C)return f(e,Zi(e,t),n);ja(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case E:return n=Ca(n),p(e,t,n,r)}if(D(n)||ae(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ka(n),r);if(n.$$typeof===C)return p(e,t,Zi(e,n),r);ja(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=Ca(r),m(e,t,n,r,i)}if(D(r)||ae(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ka(r),i);if(r.$$typeof===C)return m(e,t,n,Zi(t,r),i);ja(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),W&&Ci(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return W&&Ci(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),W&&Ci(i,h),l}function g(i,o,c,l){if(c==null)throw Error(s(151));for(var u=null,d=null,h=o,g=o=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),W&&Ci(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return W&&Ci(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),W&&Ci(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===y&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case _:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Ca(l)===r.type){n(e,r.sibling),c=i(r,a.props),Aa(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===y?(c=ci(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=si(a.type,a.key,a.props,null,e.mode,c),Aa(c,a),c.return=e,e=c)}return o(e);case v:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=di(a,e.mode,c),c.return=e,e=c}return o(e);case E:return a=Ca(a),b(e,r,a,c)}if(D(a))return h(e,r,a,c);if(ae(a)){if(l=ae(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,ka(a),c);if(a.$$typeof===C)return b(e,r,Zi(e,a),c);ja(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=li(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{Oa=0;var i=b(e,t,n,r);return Da=null,i}catch(t){if(t===_a||t===ya)throw t;var a=ri(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Na=Ma(!0),Pa=Ma(!1),Fa=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function La(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 Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ei(e),$r(e,null,n),t}return Xr(e,r,t,n),ei(e)}function Ba(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function Va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ha=!1;function Ua(){if(Ha){var e=ca;if(e!==null)throw e}}function Wa(e,t,n,r){Ha=!1;var i=e.updateQueue;Fa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Y&f)===f:(r&f)===f){f!==0&&f===sa&&(Ha=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Fa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function Ga(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function Ka(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ga(n[e],t)}var qa=j(null),Ja=j(0);function Ya(e,t){e=Ul,N(Ja,e),N(qa,t),Ul=e|t.baseLanes}function Xa(){N(Ja,Ul),N(qa,qa.current)}function Za(){Ul=Ja.current,M(qa),M(Ja)}var Qa=j(null),$a=null;function eo(e){var t=e.alternate;N(ao,ao.current&1),N(Qa,e),$a===null&&(t===null||qa.current!==null||t.memoizedState!==null)&&($a=e)}function to(e){N(ao,ao.current),N(Qa,e),$a===null&&($a=e)}function no(e){e.tag===22?(N(ao,ao.current),N(Qa,e),$a===null&&($a=e)):ro(e)}function ro(){N(ao,ao.current),N(Qa,Qa.current)}function io(e){M(Qa),$a===e&&($a=null),M(ao)}var ao=j(0);function oo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var so=0,G=null,K=null,co=null,lo=!1,uo=!1,fo=!1,po=0,mo=0,ho=null,go=0;function _o(){throw Error(s(321))}function vo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_r(e[n],t[n]))return!1;return!0}function yo(e,t,n,r,i,a){return so=a,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Is:Ls,fo=!1,a=n(r,i),fo=!1,uo&&(a=xo(t,n,r,i)),bo(e),a}function bo(e){O.H=Fs;var t=K!==null&&K.next!==null;if(so=0,co=K=G=null,lo=!1,mo=0,ho=null,t)throw Error(s(300));e===null||ec||(e=e.dependencies,e!==null&&Ji(e)&&(ec=!0))}function xo(e,t,n,r){G=e;var i=0;do{if(uo&&(ho=null),mo=0,uo=!1,25<=i)throw Error(s(301));if(i+=1,co=K=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}O.H=Rs,a=t(n,r)}while(uo);return a}function So(){var e=O.H,t=e.useState()[0];return t=typeof t.then==`function`?ko(t):t,e=e.useState()[0],(K===null?null:K.memoizedState)!==e&&(G.flags|=1024),t}function Co(){var e=po!==0;return po=0,e}function wo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function To(e){if(lo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lo=!1}so=0,co=K=G=null,uo=!1,mo=po=0,ho=null}function Eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return co===null?G.memoizedState=co=e:co=co.next=e,co}function Do(){if(K===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=K.next;var t=co===null?G.memoizedState:co.next;if(t!==null)co=t,K=e;else{if(e===null)throw G.alternate===null?Error(s(467)):Error(s(310));K=e,e={memoizedState:K.memoizedState,baseState:K.baseState,baseQueue:K.baseQueue,queue:K.queue,next:null},co===null?G.memoizedState=co=e:co=co.next=e}return co}function Oo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ko(e){var t=mo;return mo+=1,ho===null&&(ho=[]),e=Sa(ho,e,t),t=G,(co===null?t.memoizedState:co.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Is:Ls),e}function Ao(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ko(e);if(e.$$typeof===C)return Xi(e)}throw Error(s(438,String(e)))}function jo(e){var t=null,n=G.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=G.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Oo(),G.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=re;return t.index++,n}function Mo(e,t){return typeof t==`function`?t(e):t}function No(e){return Po(Do(),K,e)}function Po(e,t,n){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=o=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(so&f)===f:(Y&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===sa&&(d=!0);else if((so&p)===p){u=u.next,p===sa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,o=a):l=l.next=f,G.lanes|=p,Gl|=p;f=u.action,fo&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,o=a):l=l.next=p,G.lanes|=f,Gl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?o=a:l.next=c,!_r(a,e.memoizedState)&&(ec=!0,d&&(n=ca,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Fo(e){var t=Do(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);_r(a,t.memoizedState)||(ec=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Io(e,t,n){var r=G,i=Do(),a=W;if(a){if(n===void 0)throw Error(s(407));n=n()}else n=t();var o=!_r((K||i).memoizedState,n);if(o&&(i.memoizedState=n,ec=!0),i=i.queue,ss(zo.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||co!==null&&co.memoizedState.tag&1){if(r.flags|=2048,ns(9,{destroy:void 0},Ro.bind(null,r,i,n,t),null),Rl===null)throw Error(s(349));a||so&127||Lo(r,t,n)}return n}function Lo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t=Oo(),G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ro(e,t,n,r){t.value=n,t.getSnapshot=r,Bo(t)&&Vo(e)}function zo(e,t,n){return n(function(){Bo(t)&&Vo(e)})}function Bo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_r(e,n)}catch{return!0}}function Vo(e){var t=Qr(e,2);t!==null&&hu(t,e,2)}function Ho(e){var t=Eo();if(typeof e==`function`){var n=e;if(e=n(),fo){Re(!0);try{n()}finally{Re(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},t}function Uo(e,t,n,r){return e.baseState=n,Po(e,K,typeof r==`function`?r:Mo)}function Wo(e,t,n,r,i){if(Ms(e))throw Error(s(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};O.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Go(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Go(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=O.T,o={};O.T=o;try{var s=n(i,r),c=O.S;c!==null&&c(o,s),Ko(e,t,s)}catch(n){Jo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),O.T=a}}else try{a=n(i,r),Ko(e,t,a)}catch(n){Jo(e,t,n)}}function Ko(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){qo(e,t,n)},function(n){return Jo(e,t,n)}):qo(e,t,n)}function qo(e,t,n){t.status=`fulfilled`,t.value=n,Yo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Go(e,n)))}function Jo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Yo(t),t=t.next;while(t!==r)}e.action=null}function Yo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xo(e,t){return t}function Zo(e,t){if(W){var n=Rl.formState;if(n!==null){a:{var r=G;if(W){if(ki){b:{for(var i=ki,a=ji;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ki=cf(i.nextSibling),r=i.data===`F!`;break a}}Ni(r)}r=!1}r&&(t=n[0])}}return n=Eo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:t},n.queue=r,n=ks.bind(null,G,r),r.dispatch=n,r=Ho(!1),a=js.bind(null,G,!1,r.queue),r=Eo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Wo.bind(null,G,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Qo(e){return $o(Do(),K,e)}function $o(e,t,n){if(t=Po(e,t,Xo)[0],e=No(Mo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ko(t)}catch(e){throw e===_a?ya:e}else r=t;t=Do();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(G.flags|=2048,ns(9,{destroy:void 0},es.bind(null,i,n),null)),[r,a,e]}function es(e,t){e.action=t}function ts(e){var t=Do(),n=K;if(n!==null)return $o(t,n,e);Do(),t=t.memoizedState,n=Do();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=G.updateQueue,t===null&&(t=Oo(),G.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function rs(){return Do().memoizedState}function is(e,t,n,r){var i=Eo();G.flags|=e,i.memoizedState=ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function as(e,t,n,r){var i=Do();r=r===void 0?null:r;var a=i.memoizedState.inst;K!==null&&r!==null&&vo(r,K.memoizedState.deps)?i.memoizedState=ns(t,a,n,r):(G.flags|=e,i.memoizedState=ns(1|t,a,n,r))}function os(e,t){is(8390656,8,e,t)}function ss(e,t){as(2048,8,e,t)}function cs(e){G.flags|=4;var t=G.updateQueue;if(t===null)t=Oo(),G.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ls(e){var t=Do().memoizedState;return cs({ref:t,nextImpl:e}),function(){if(q&2)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function us(e,t){return as(4,2,e,t)}function ds(e,t){return as(4,4,e,t)}function fs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ps(e,t,n){n=n==null?null:n.concat([e]),as(4,4,fs.bind(null,t,e),n)}function ms(){}function hs(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&vo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gs(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&vo(t,r[1]))return r[0];if(r=e(),fo){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r}function _s(e,t,n){return n===void 0||so&1073741824&&!(Y&261930)?e.memoizedState=t:(e.memoizedState=n,e=mu(),G.lanes|=e,Gl|=e,n)}function vs(e,t,n,r){return _r(n,t)?n:qa.current===null?!(so&42)||so&1073741824&&!(Y&261930)?(ec=!0,e.memoizedState=n):(e=mu(),G.lanes|=e,Gl|=e,t):(e=_s(e,n,r),_r(e,t)||(ec=!0),e)}function ys(e,t,n,r,i){var a=k.p;k.p=a!==0&&8>a?a:8;var o=O.T,s={};O.T=s,js(e,!1,t,n);try{var c=i(),l=O.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?As(e,t,da(c,r),pu(e)):As(e,t,r,pu(e))}catch(n){As(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{k.p=a,o!==null&&s.types!==null&&(o.types=s.types),O.T=o}}function bs(){}function xs(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=Ss(e).queue;ys(e,i,t,ce,n===null?bs:function(){return Cs(e),n(r)})}function Ss(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cs(e){var t=Ss(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},pu())}function ws(){return Xi(Qf)}function Ts(){return Do().memoizedState}function Es(){return Do().memoizedState}function Ds(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ra(n);var r=za(t,e,n);r!==null&&(hu(r,t,n),Ba(r,t,n)),t={cache:ra()},e.payload=t;return}t=t.return}}function Os(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ms(e)?Ns(t,n):(n=Zr(e,t,n,r),n!==null&&(hu(n,e,r),Ps(n,t,r)))}function ks(e,t,n){As(e,t,n,pu())}function As(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))Ns(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,_r(s,o))return Xr(e,t,i,0),Rl===null&&Yr(),!1}catch{}if(n=Zr(e,t,i,r),n!==null)return hu(n,e,r),Ps(n,t,r),!0}return!1}function js(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(t)throw Error(s(479))}else t=Zr(e,n,r,2),t!==null&&hu(t,e,2)}function Ms(e){var t=e.alternate;return e===G||t!==null&&t===G}function Ns(e,t){uo=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ps(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var Fs={readContext:Xi,use:Ao,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useLayoutEffect:_o,useInsertionEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useSyncExternalStore:_o,useId:_o,useHostTransitionStatus:_o,useFormState:_o,useActionState:_o,useOptimistic:_o,useMemoCache:_o,useCacheRefresh:_o};Fs.useEffectEvent=_o;var Is={readContext:Xi,use:Ao,useCallback:function(e,t){return Eo().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:os,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),is(4194308,4,fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return is(4194308,4,e,t)},useInsertionEffect:function(e,t){is(4,2,e,t)},useMemo:function(e,t){var n=Eo();t=t===void 0?null:t;var r=e();if(fo){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Eo();if(n!==void 0){var i=n(t);if(fo){Re(!0);try{n(t)}finally{Re(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Os.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Eo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ho(e);var t=e.queue,n=ks.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ms,useDeferredValue:function(e,t){return _s(Eo(),e,t)},useTransition:function(){var e=Ho(!1);return e=ys.bind(null,G,e.queue,!0,!1),Eo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,i=Eo();if(W){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Rl===null)throw Error(s(349));Y&127||Lo(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,os(zo.bind(null,r,a,e),[e]),r.flags|=2048,ns(9,{destroy:void 0},Ro.bind(null,r,a,n,t),null),n},useId:function(){var e=Eo(),t=Rl.identifierPrefix;if(W){var n=Si,r=xi;n=(r&~(1<<32-L(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=po++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ws,useFormState:Zo,useActionState:Zo,useOptimistic:function(e){var t=Eo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=js.bind(null,G,!0,n),n.dispatch=t,[e,t]},useMemoCache:jo,useCacheRefresh:function(){return Eo().memoizedState=Ds.bind(null,G)},useEffectEvent:function(e){var t=Eo(),n={impl:e};return t.memoizedState=n,function(){if(q&2)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Ls={readContext:Xi,use:Ao,useCallback:hs,useContext:Xi,useEffect:ss,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:No,useRef:rs,useState:function(){return No(Mo)},useDebugValue:ms,useDeferredValue:function(e,t){return vs(Do(),K.memoizedState,e,t)},useTransition:function(){var e=No(Mo)[0],t=Do().memoizedState;return[typeof e==`boolean`?e:ko(e),t]},useSyncExternalStore:Io,useId:Ts,useHostTransitionStatus:ws,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){return Uo(Do(),K,e,t)},useMemoCache:jo,useCacheRefresh:Es};Ls.useEffectEvent=ls;var Rs={readContext:Xi,use:Ao,useCallback:hs,useContext:Xi,useEffect:ss,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Fo,useRef:rs,useState:function(){return Fo(Mo)},useDebugValue:ms,useDeferredValue:function(e,t){var n=Do();return K===null?_s(n,e,t):vs(n,K.memoizedState,e,t)},useTransition:function(){var e=Fo(Mo)[0],t=Do().memoizedState;return[typeof e==`boolean`?e:ko(e),t]},useSyncExternalStore:Io,useId:Ts,useHostTransitionStatus:ws,useFormState:ts,useActionState:ts,useOptimistic:function(e,t){var n=Do();return K===null?(n.baseState=e,[e,n.queue.dispatch]):Uo(n,K,e,t)},useMemoCache:jo,useCacheRefresh:Es};Rs.useEffectEvent=ls;function zs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ra(r);i.payload=t,n!=null&&(i.callback=n),t=za(e,i,r),t!==null&&(hu(t,e,r),Ba(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ra(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=za(e,i,r),t!==null&&(hu(t,e,r),Ba(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=Ra(n);r.tag=2,t!=null&&(r.callback=t),t=za(e,r,n),t!==null&&(hu(t,e,n),Ba(t,e,n))}};function Vs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!vr(n,r)||!vr(i,a):!0}function Hs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bs.enqueueReplaceState(t,t.state,null)}function Us(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ws(e){Gr(e)}function Gs(e){console.error(e)}function Ks(e){Gr(e)}function qs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Js(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ys(e,t,n){return n=Ra(n),n.tag=3,n.payload={element:null},n.callback=function(){qs(e,t)},n}function Xs(e){return e=Ra(e),e.tag=3,e}function Zs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Js(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Js(t,n,r),typeof i!=`function`&&(ru===null?ru=new Set([this]):ru.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Qs(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&qi(t,n,i,!0),n=Qa.current,n!==null){switch(n.tag){case 31:case 13:return $a===null?Du():n.alternate===null&&Wl===0&&(Wl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===ba?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,i)),!1;case 22:return n.flags|=65536,r===ba?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gu(e,r,i)),!1}throw Error(s(435,n.tag))}return Gu(e,r,i),Du(),!1}if(W)return t=Qa.current,t===null?(r!==Mi&&(t=Error(s(423),{cause:r}),zi(pi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=pi(r,n),i=Ys(e.stateNode,r,i),Va(e,i),Wl!==4&&(Wl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Mi&&(e=Error(s(422),{cause:r}),zi(pi(e,n)))),!1;var a=Error(s(520),{cause:r});if(a=pi(a,n),Xl===null?Xl=[a]:Xl.push(a),Wl!==4&&(Wl=2),t===null)return!0;r=pi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Ys(n.stateNode,r,e),Va(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(ru===null||!ru.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Xs(i),Zs(i,e,n,r),Va(n,i),!1}n=n.return}while(n!==null);return!1}var $s=Error(s(461)),ec=!1;function tc(e,t,n,r){t.child=e===null?Pa(t,null,n,r):Na(t,e.child,n,r)}function nc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Yi(t),r=yo(e,t,n,o,a,i),s=Co(),e!==null&&!ec?(wo(e,t,i),Ec(e,t,i)):(W&&s&&Ti(t),t.flags|=1,tc(e,t,r,i),t.child)}function rc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ii(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ic(e,t,a,r,i)):(e=si(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Dc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?vr:n,n(o,r)&&e.ref===t.ref)return Ec(e,t,i)}return t.flags|=1,e=ai(a,r),e.ref=t.ref,e.return=t,t.child=e}function ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(vr(a,r)&&e.ref===t.ref)if(ec=!1,t.pendingProps=r=a,Dc(e,i))e.flags&131072&&(ec=!0);else return t.lanes=e.lanes,Ec(e,t,i)}return fc(e,t,n,r,i)}function ac(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return sc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ha(t,a===null?null:a.cachePool),a===null?Xa():Ya(t,a),no(t);else return r=t.lanes=536870912,sc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ha(t,null),Xa(),ro(t)):(ha(t,a.cachePool),Ya(t,a),ro(t),t.memoizedState=null);return tc(e,t,i,n),t.child}function oc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sc(e,t,n,r,i){var a=ma();return a=a===null?null:{parent:na._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ha(t,null),Xa(),no(t),e!==null&&qi(e,t,r,!0),t.childLanes=i,null}function cc(e,t){return t=xc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lc(e,t,n){return Na(t,e.child,null,n),e=cc(t,t.pendingProps),e.flags|=2,io(t),t.memoizedState=null,e}function uc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(W){if(r.mode===`hidden`)return e=cc(t,r),t.lanes=536870912,oc(null,e);if(to(t),(e=ki)?(e=rf(e,ji),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bi===null?null:{id:xi,overflow:Si},retryLane:536870912,hydrationErrors:null},n=ui(e),n.return=t,t.child=n,Oi=t,ki=null)):e=null,e===null)throw Ni(t);return t.lanes=536870912,null}return cc(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(to(t),i)if(t.flags&256)t.flags&=-257,t=lc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ec||qi(e,t,n,!1),i=(n&e.childLanes)!==0,ec||i){if(r=Rl,r!==null&&(o=tt(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Qr(e,o),hu(r,e,o),$s;Du(),t=lc(e,t,n)}else e=a.treeContext,ki=cf(o.nextSibling),Oi=t,W=!0,Ai=null,ji=!1,e!==null&&Di(t,e),t=cc(t,r),t.flags|=4096;return t}return e=ai(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function dc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function fc(e,t,n,r,i){return Yi(t),n=yo(e,t,n,r,void 0,i),r=Co(),e!==null&&!ec?(wo(e,t,i),Ec(e,t,i)):(W&&r&&Ti(t),t.flags|=1,tc(e,t,n,i),t.child)}function pc(e,t,n,r,i,a){return Yi(t),t.updateQueue=null,n=xo(t,r,n,i),bo(e),r=Co(),e!==null&&!ec?(wo(e,t,a),Ec(e,t,a)):(W&&r&&Ti(t),t.flags|=1,tc(e,t,n,a),t.child)}function mc(e,t,n,r,i){if(Yi(t),t.stateNode===null){var a=ti,o=n.contextType;typeof o==`object`&&o&&(a=Xi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Bs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ia(t),o=n.contextType,a.context=typeof o==`object`&&o?Xi(o):ti,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(zs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Bs.enqueueReplaceState(a,a.state,null),Wa(t,r,a,i),Ua(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Us(n,s);a.props=c;var l=a.context,u=n.contextType;o=ti,typeof u==`object`&&u&&(o=Xi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Hs(t,a,r,o),Fa=!1;var f=t.memoizedState;a.state=f,Wa(t,r,a,i),Ua(),l=t.memoizedState,s||f!==l||Fa?(typeof d==`function`&&(zs(t,n,d,r),l=t.memoizedState),(c=Fa||Vs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,La(e,t),o=t.memoizedProps,u=Us(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ti,typeof l==`object`&&l&&(c=Xi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Hs(t,a,r,c),Fa=!1,f=t.memoizedState,a.state=f,Wa(t,r,a,i),Ua();var p=t.memoizedState;o!==d||f!==p||Fa||e!==null&&e.dependencies!==null&&Ji(e.dependencies)?(typeof s==`function`&&(zs(t,n,s,r),p=t.memoizedState),(u=Fa||Vs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ji(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,dc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Na(t,e.child,null,i),t.child=Na(t,null,n,i)):tc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ec(e,t,i),e}function hc(e,t,n,r){return Li(),t.flags|=256,tc(e,t,n,r),t.child}var gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _c(e){return{baseLanes:e,cachePool:ga()}}function vc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Jl),e}function yc(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!=0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(ao.current&2)!=0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!=0,t.flags&=-33,e===null){if(W){if(i?eo(t):ro(t),(e=ki)?(e=rf(e,ji),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bi===null?null:{id:xi,overflow:Si},retryLane:536870912,hydrationErrors:null},n=ui(e),n.return=t,t.child=n,Oi=t,ki=null)):e=null,e===null)throw Ni(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(ro(t),i=t.mode,c=xc({mode:`hidden`,children:c},i),r=ci(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=_c(n),r.childLanes=vc(e,o,n),t.memoizedState=gc,oc(null,r)):(eo(t),bc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(eo(t),t.flags&=-257,t=Sc(e,t,n)):t.memoizedState===null?(ro(t),c=r.fallback,i=t.mode,r=xc({mode:`visible`,children:r.children},i),c=ci(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Na(t,e.child,null,n),r=t.child,r.memoizedState=_c(n),r.childLanes=vc(e,o,n),t.memoizedState=gc,t=oc(null,r)):(ro(t),t.child=e.child,t.flags|=128,t=null);else if(eo(t),of(c)){if(o=c.nextSibling&&c.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(s(419)),r.stack=``,r.digest=o,zi({value:r,source:null,stack:null}),t=Sc(e,t,n)}else if(ec||qi(e,t,n,!1),o=(n&e.childLanes)!==0,ec||o){if(o=Rl,o!==null&&(r=tt(o,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Qr(e,r),hu(o,e,r),$s;af(c)||Du(),t=Sc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ki=cf(c.nextSibling),Oi=t,W=!0,Ai=null,ji=!1,e!==null&&Di(t,e),t=bc(t,r.children),t.flags|=4096);return t}return i?(ro(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=ai(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ci(c,i,n,null),c.flags|=2):c=ai(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,oc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=_c(n):(i=c.cachePool,i===null?i=ga():(l=na._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=vc(e,o,n),t.memoizedState=gc,oc(e.child,r)):(eo(t),n=e.child,e=n.sibling,n=ai(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function bc(e,t){return t=xc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function xc(e,t){return e=ri(22,e,null,t),e.lanes=0,e}function Sc(e,t,n){return Na(t,e.child,null,n),e=bc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gi(e.return,t,n)}function wc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Tc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ao.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,N(ao,o),tc(e,t,r,n),r=W?_i:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cc(e,n,t);else if(e.tag===19)Cc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&oo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),wc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&oo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}wc(t,!0,n,null,a,r);break;case`together`:wc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ec(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=ai(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ai(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ji(e))):!0}function Oc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Ui(t,na,e.memoizedState.cache),Li();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,to(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(eo(t),e=Ec(e,t,n),e===null?null:e.sibling):yc(e,t,n):(eo(t),t.flags|=128,null);eo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Tc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),N(ao,ao.current),r)break;return null;case 22:return t.lanes=0,ac(e,t,n,t.pendingProps);case 24:Ui(t,na,e.memoizedState.cache)}return Ec(e,t,n)}function kc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ec=!0;else{if(!Dc(e,n)&&!(t.flags&128))return ec=!1,Oc(e,t,n);ec=!!(e.flags&131072)}else ec=!1,W&&t.flags&1048576&&wi(t,_i,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ca(t.elementType),t.type=e,typeof e==`function`)ii(e)?(r=Us(e,r),t.tag=1,t=mc(null,t,e,r,n)):(t.tag=0,t=fc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===w){t.tag=11,t=nc(null,t,e,r,n);break a}else if(i===te){t.tag=14,t=rc(null,t,e,r,n);break a}}throw t=se(e)||e,Error(s(306,t,``))}}return t;case 0:return fc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Us(r,t.pendingProps),mc(e,t,r,i,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,La(e,t),Wa(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Ui(t,na,r),r!==a.cache&&Ki(t,[na],n,!0),Ua(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=hc(e,t,r,n);break a}else if(r!==i){i=pi(Error(s(424)),t),zi(i),t=hc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ki=cf(e.firstChild),Oi=t,W=!0,Ai=null,ji=!0,n=Pa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Li(),r===i){t=Ec(e,t,n);break a}tc(e,t,r,n)}t=t.child}return t;case 26:return dc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:W||(n=t.type,e=t.pendingProps,r=Bd(P.current).createElement(n),r[st]=t,r[ct]=e,Pd(r,n,e),yt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&W&&(r=t.stateNode=ff(t.type,t.pendingProps,P.current),Oi=t,ji=!0,i=ki,Zd(t.type)?(lf=i,ki=cf(r.firstChild)):ki=i),tc(e,t,t.pendingProps.children,n),dc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&W&&((i=r=ki)&&(r=tf(r,t.type,t.pendingProps,ji),r===null?i=!1:(t.stateNode=r,Oi=t,ki=cf(r.firstChild),ji=!1,i=!0)),i||Ni(t)),he(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Ud(i,a)?r=null:o!==null&&Ud(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=yo(e,t,So,null,null,n),Qf._currentValue=i),dc(e,t),tc(e,t,r,n),t.child;case 6:return e===null&&W&&((e=n=ki)&&(n=nf(n,t.pendingProps,ji),n===null?e=!1:(t.stateNode=n,Oi=t,ki=null,e=!0)),e||Ni(t)),null;case 13:return yc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Na(t,null,r,n):tc(e,t,r,n),t.child;case 11:return nc(e,t,t.type,t.pendingProps,n);case 7:return tc(e,t,t.pendingProps,n),t.child;case 8:return tc(e,t,t.pendingProps.children,n),t.child;case 12:return tc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ui(t,t.type,r.value),tc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Yi(t),i=Xi(i),r=r(i),t.flags|=1,tc(e,t,r,n),t.child;case 14:return rc(e,t,t.type,t.pendingProps,n);case 15:return ic(e,t,t.type,t.pendingProps,n);case 19:return Tc(e,t,n);case 31:return uc(e,t,n);case 22:return ac(e,t,n,t.pendingProps);case 24:return Yi(t),r=Xi(na),e===null?(i=ma(),i===null&&(i=Rl,a=ra(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Ia(t),Ui(t,na,i)):((e.lanes&n)!==0&&(La(e,t),Wa(t,null,null,n),Ua()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Ui(t,na,r),r!==i.cache&&Ki(t,[na],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ui(t,na,r))),tc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Ac(e){e.flags|=4}function jc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(wu())e.flags|=8192;else throw wa=ba,va}else e.flags&=-16777217}function Mc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(wu())e.flags|=8192;else throw wa=ba,va}function Nc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ye(),e.lanes|=t,Yl|=t)}function Pc(e,t){if(!W)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ic(e,t,n){var r=t.pendingProps;switch(Ei(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fc(t),null;case 1:return Fc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Wi(na),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ii(t)?Ac(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ri())),Fc(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Ac(t),a===null?(Fc(t),jc(t,i,null,r,n)):(Fc(t),Mc(t,a))):a?a===e.memoizedState?(Fc(t),t.flags&=-16777217):(Ac(t),Fc(t),Mc(t,a)):(e=e.memoizedProps,e!==r&&Ac(t),Fc(t),jc(t,i,e,r,n)),null;case 27:if(F(t),n=P.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ac(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Fc(t),null}e=ue.current,Ii(t)?Pi(t,e):(e=ff(i,r,n),t.stateNode=e,Ac(t))}return Fc(t),null;case 5:if(F(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ac(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Fc(t),null}if(a=ue.current,Ii(t))Pi(t,a);else{var o=Bd(P.current);switch(a){case 1:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=o.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[st]=t,a[ct]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Pd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ac(t)}}return Fc(t),jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ac(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=P.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Oi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ni(t,!0)}else e=Bd(e).createTextNode(r),e[st]=t,t.stateNode=e}return Fc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[st]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fc(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(io(t),t):(io(t),null);if(t.flags&128)throw Error(s(558))}return Fc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[st]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fc(t),i=!1}else i=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(io(t),t):(io(t),null)}return io(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Nc(t,t.updateQueue),Fc(t),null);case 4:return me(),e===null&&Sd(t.stateNode.containerInfo),Fc(t),null;case 10:return Wi(t.type),Fc(t),null;case 19:if(M(ao),r=t.memoizedState,r===null)return Fc(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Pc(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=oo(e),a!==null){for(t.flags|=128,Pc(r,!1),e=a.updateQueue,t.updateQueue=e,Nc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)oi(n,e),n=n.sibling;return N(ao,ao.current&1|2),W&&Ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&De()>tu&&(t.flags|=128,i=!0,Pc(r,!1),t.lanes=4194304)}else{if(!i)if(e=oo(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Nc(t,e),Pc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!W)return Fc(t),null}else 2*De()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,i=!0,Pc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Fc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=De(),e.sibling=null,n=ao.current,N(ao,i?n&1|2:n&1),W&&Ci(t,r.treeForkCount),e);case 22:case 23:return io(t),Za(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Fc(t),t.subtreeFlags&6&&(t.flags|=8192)):Fc(t),n=t.updateQueue,n!==null&&Nc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&M(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(na),Fc(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Lc(e,t){switch(Ei(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(na),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return F(t),null;case 31:if(t.memoizedState!==null){if(io(t),t.alternate===null)throw Error(s(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(ao),null;case 4:return me(),null;case 10:return Wi(t.type),null;case 22:case 23:return io(t),Za(),e!==null&&M(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(na),null;case 25:return null;default:return null}}function Rc(e,t){switch(Ei(t),t.tag){case 3:Wi(na),me();break;case 26:case 27:case 5:F(t);break;case 4:me();break;case 31:t.memoizedState!==null&&io(t);break;case 13:io(t);break;case 19:M(ao);break;case 10:Wi(t.type);break;case 22:case 23:io(t),Za(),e!==null&&M(pa);break;case 24:Wi(na)}}function zc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Bc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Vc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ka(t,n)}catch(t){Z(e,e.return,t)}}}function Hc(e,t,n){n.props=Us(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Uc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Wc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Gc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Kc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[ct]=t}catch(t){Z(e,e.return,t)}}function qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[st]=e,t[ct]=n}catch(t){Z(e,e.return,t)}}var Qc=!1,$c=!1,el=!1,tl=typeof WeakSet==`function`?WeakSet:Set,nl=null;function rl(e,t){if(e=e.containerInfo,Rd=sp,e=Sr(e),Cr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=o),p===a&&++d===r&&(l=o),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,nl=t;nl!==null;)if(t=nl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,nl=e;else for(;nl!==null;){switch(t=nl,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var h=Us(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Z(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,nl=e;break}nl=t.return}}function il(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),r&4&&zc(5,n);break;case 1:if(yl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=Us(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}r&64&&Vc(n),r&512&&Uc(n,n.return);break;case 3:if(yl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ka(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&Zc(n);case 26:case 5:yl(e,n),t===null&&r&4&&Gc(n),r&512&&Uc(n,n.return);break;case 12:yl(e,n);break;case 31:yl(e,n),r&4&&ul(e,n);break;case 13:yl(e,n),r&4&&dl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||Qc,!r){t=t!==null&&t.memoizedState!==null||$c,i=Qc;var a=$c;Qc=r,($c=t)&&!a?xl(e,n,(n.subtreeFlags&8772)!=0):yl(e,n),Qc=i,$c=a}break;case 30:break;default:yl(e,n)}}function al(e){var t=e.alternate;t!==null&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mt(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 ol=null,sl=!1;function cl(e,t,n){for(n=n.child;n!==null;)ll(e,t,n),n=n.sibling}function ll(e,t,n){if(Le&&typeof Le.onCommitFiberUnmount==`function`)try{Le.onCommitFiberUnmount(Ie,n)}catch{}switch(n.tag){case 26:$c||Wc(n,t),cl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:$c||Wc(n,t);var r=ol,i=sl;Zd(n.type)&&(ol=n.stateNode,sl=!1),cl(e,t,n),pf(n.stateNode),ol=r,sl=i;break;case 5:$c||Wc(n,t);case 6:if(r=ol,i=sl,ol=null,cl(e,t,n),ol=r,sl=i,ol!==null)if(sl)try{(ol.nodeType===9?ol.body:ol.nodeName===`HTML`?ol.ownerDocument.body:ol).removeChild(n.stateNode)}catch(e){Z(n,t,e)}else try{ol.removeChild(n.stateNode)}catch(e){Z(n,t,e)}break;case 18:ol!==null&&(sl?(e=ol,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(ol,n.stateNode));break;case 4:r=ol,i=sl,ol=n.stateNode.containerInfo,sl=!0,cl(e,t,n),ol=r,sl=i;break;case 0:case 11:case 14:case 15:Bc(2,n,t),$c||Bc(4,n,t),cl(e,t,n);break;case 1:$c||(Wc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Hc(n,t,r)),cl(e,t,n);break;case 21:cl(e,t,n);break;case 22:$c=(r=$c)||n.memoizedState!==null,cl(e,t,n),$c=r;break;default:cl(e,t,n)}}function ul(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Z(t,t.return,e)}}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Z(t,t.return,e)}}function fl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tl),t;default:throw Error(s(435,e.tag))}}function pl(e,t){var n=fl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function ml(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,o=t,c=o;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){ol=c.stateNode,sl=!1;break a}break;case 5:ol=c.stateNode,sl=!1;break a;case 3:case 4:ol=c.stateNode.containerInfo,sl=!0;break a}c=c.return}if(ol===null)throw Error(s(160));ll(a,o,i),ol=null,sl=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gl(t,e),t=t.sibling}var hl=null;function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ml(t,e),_l(e),r&4&&(Bc(3,e,e.return),zc(3,e),Bc(5,e,e.return));break;case 1:ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),r&64&&Qc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=hl;if(ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),r&4){var a=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:a=i.getElementsByTagName(`title`)[0],(!a||a[pt]||a[st]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),Pd(a,r,n),a[st]=e,yt(a),r=a;break a;case`link`:var o=Vf(`link`,`href`,i).get(r+(n.href||``));if(o){for(var c=0;c<o.length;c++)if(a=o[c],a.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&a.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&a.getAttribute(`title`)===(n.title==null?null:n.title)&&a.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(c,1);break b}}a=i.createElement(r),Pd(a,r,n),i.head.appendChild(a);break;case`meta`:if(o=Vf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<o.length;c++)if(a=o[c],a.getAttribute(`content`)===(n.content==null?null:``+n.content)&&a.getAttribute(`name`)===(n.name==null?null:n.name)&&a.getAttribute(`property`)===(n.property==null?null:n.property)&&a.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(c,1);break b}}a=i.createElement(r),Pd(a,r,n),i.head.appendChild(a);break;default:throw Error(s(468,r))}a[st]=e,yt(a),r=a}e.stateNode=r}else Hf(i,e.type,e.stateNode);else e.stateNode=If(i,r,e.memoizedProps);else a===r?r===null&&e.stateNode!==null&&Kc(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Hf(i,e.type,e.stateNode):If(i,r,e.memoizedProps))}break;case 27:ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),n!==null&&r&4&&Kc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),e.flags&32){i=e.stateNode;try{Ut(i,``)}catch(t){Z(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Kc(e,i,n===null?i:n.memoizedProps)),r&1024&&(el=!0);break;case 6:if(ml(t,e),_l(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Z(e,e.return,t)}}break;case 3:if(Bf=null,i=hl,hl=gf(t.containerInfo),ml(t,e),hl=i,_l(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Z(e,e.return,t)}el&&(el=!1,vl(e));break;case 4:r=hl,hl=gf(e.stateNode.containerInfo),ml(t,e),_l(e),hl=r;break;case 12:ml(t,e),_l(e);break;case 31:ml(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 13:ml(t,e),_l(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($l=De()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Qc,d=$c;if(Qc=u||i,$c=d||l,ml(t,e),$c=d,Qc=u,_l(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||Qc||$c||bl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Z(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Z(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?$d(m,!0):$d(l.stateNode,!1)}catch(e){Z(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,pl(e,n))));break;case 19:ml(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 30:break;case 21:break;default:ml(t,e),_l(e)}}function _l(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(qc(r)){n=r;break}r=r.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var i=n.stateNode;Xc(e,Jc(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(Ut(a,``),n.flags&=-33),Xc(e,Jc(e),a);break;case 3:case 4:var o=n.stateNode.containerInfo;Yc(e,Jc(e),o);break;default:throw Error(s(161))}}catch(t){Z(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)il(e,t.alternate,t),t=t.sibling}function bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Bc(4,t,t.return),bl(t);break;case 1:Wc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Hc(t,t.return,n),bl(t);break;case 27:pf(t.stateNode);case 26:case 5:Wc(t,t.return),bl(t);break;case 22:t.memoizedState===null&&bl(t);break;case 30:bl(t);break;default:bl(t)}e=e.sibling}}function xl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:xl(i,a,n),zc(4,a);break;case 1:if(xl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Z(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ga(c[i],s)}catch(e){Z(r,r.return,e)}}n&&o&64&&Vc(a),Uc(a,a.return);break;case 27:Zc(a);case 26:case 5:xl(i,a,n),n&&r===null&&o&4&&Gc(a),Uc(a,a.return);break;case 12:xl(i,a,n);break;case 31:xl(i,a,n),n&&o&4&&ul(i,a);break;case 13:xl(i,a,n),n&&o&4&&dl(i,a);break;case 22:a.memoizedState===null&&xl(i,a,n),Uc(a,a.return);break;case 30:break;default:xl(i,a,n)}t=t.sibling}}function Sl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ia(n))}function Cl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ia(e))}function wl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tl(e,t,n,r),t=t.sibling}function Tl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:wl(e,t,n,r),i&2048&&zc(9,t);break;case 1:wl(e,t,n,r);break;case 3:wl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ia(e)));break;case 12:if(i&2048){wl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Z(t,t.return,e)}}else wl(e,t,n,r);break;case 31:wl(e,t,n,r);break;case 13:wl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?wl(e,t,n,r):(a._visibility|=2,El(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?wl(e,t,n,r):Dl(e,t),i&2048&&Sl(o,t);break;case 24:wl(e,t,n,r),i&2048&&Cl(t.alternate,t);break;default:wl(e,t,n,r)}}function El(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:El(a,o,s,c,i),zc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,El(a,o,s,c,i)):u._visibility&2?El(a,o,s,c,i):Dl(a,o),i&&l&2048&&Sl(o.alternate,o);break;case 24:El(a,o,s,c,i),i&&l&2048&&Cl(o.alternate,o);break;default:El(a,o,s,c,i)}t=t.sibling}}function Dl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Dl(n,r),i&2048&&Sl(r.alternate,r);break;case 24:Dl(n,r),i&2048&&Cl(r.alternate,r);break;default:Dl(n,r)}t=t.sibling}}var Ol=8192;function kl(e,t,n){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)Al(e,t,n),e=e.sibling}function Al(e,t,n){switch(e.tag){case 26:kl(e,t,n),e.flags&Ol&&e.memoizedState!==null&&Gf(n,hl,e.memoizedState,e.memoizedProps);break;case 5:kl(e,t,n);break;case 3:case 4:var r=hl;hl=gf(e.stateNode.containerInfo),kl(e,t,n),hl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ol,Ol=16777216,kl(e,t,n),Ol=r):kl(e,t,n));break;default:kl(e,t,n)}}function jl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ml(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Fl(r,e)}jl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nl(e),e=e.sibling}function Nl(e){switch(e.tag){case 0:case 11:case 15:Ml(e),e.flags&2048&&Bc(9,e,e.return);break;case 3:Ml(e);break;case 12:Ml(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pl(e)):Ml(e);break;default:Ml(e)}}function Pl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Fl(r,e)}jl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Bc(8,t,t.return),Pl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Pl(t));break;default:Pl(t)}e=e.sibling}}function Fl(e,t){for(;nl!==null;){var n=nl;switch(n.tag){case 0:case 11:case 15:Bc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ia(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,nl=r;else a:for(n=e;nl!==null;){r=nl;var i=r.sibling,a=r.return;if(al(r),r===n){nl=null;break a}if(i!==null){i.return=a,nl=i;break a}nl=a}}}var Il={getCacheForType:function(e){var t=Xi(na),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Xi(na).controller.signal}},Ll=typeof WeakMap==`function`?WeakMap:Map,q=0,Rl=null,J=null,Y=0,X=0,zl=null,Bl=!1,Vl=!1,Hl=!1,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=null,Zl=null,Ql=!1,$l=0,eu=0,tu=1/0,nu=null,ru=null,iu=0,au=null,ou=null,su=0,cu=0,lu=null,uu=null,du=0,fu=null;function pu(){return q&2&&Y!==0?Y&-Y:O.T===null?it():dd()}function mu(){if(Jl===0)if(!(Y&536870912)||W){var e=Ue;Ue<<=1,!(Ue&3932160)&&(Ue=262144),Jl=e}else Jl=536870912;return e=Qa.current,e!==null&&(e.flags|=32),Jl}function hu(e,t,n){(e===Rl&&(X===2||X===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,Y,Jl,!1)),Ze(e,n),(!(q&2)||e!==Rl)&&(e===Rl&&(!(q&2)&&(Kl|=n),Wl===4&&yu(e,Y,Jl,!1)),rd(e))}function gu(e,t,n){if(q&6)throw Error(s(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||qe(e,t),i=r?Au(e,t):Ou(e,t,!0),a=r;do{if(i===0){Vl&&!r&&yu(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!vu(n)){i=Ou(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o===0?o&536870912?536870912:0:o;if(o!==0){t=o;a:{var c=e;i=Xl;var l=c.current.memoizedState.isDehydrated;if(l&&(Su(c,o).flags|=256),o=Ou(c,o,!1),o!==2){if(Hl&&!l){c.errorRecoveryDisabledLanes|=a,Kl|=a,i=4;break a}a=Zl,Zl=i,a!==null&&(Zl===null?Zl=a:Zl.push.apply(Zl,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){Su(e,0),yu(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:yu(r,t,Jl,!Bl);break a;case 2:Zl=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=$l+300-De(),10<i)){if(yu(r,t,Jl,!Bl),Ke(r,0,!0)!==0)break a;su=t,r.timeoutHandle=Kd(_u.bind(null,r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,a,`Throttled`,-0,0),i);break a}_u(r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,a,null,-0,0)}}break}while(1);rd(e)}function _u(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},Al(t,a,d);var m=(a&62914560)===a?$l-De():(a&4194048)===a?eu-De():0;if(m=qf(d,m),m!==null){su=a,e.cancelPendingCommit=m(Lu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Lu(e,t,a,n,r,i,o,s,c)}function vu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!_r(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yu(e,t,n,r){t&=~ql,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-L(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&$e(e,n,t)}function bu(){return q&6?!0:(id(0,!1),!1)}function xu(){if(J!==null){if(X===0)var e=J.return;else e=J,Hi=Vi=null,To(e),Da=null,Oa=0,e=J;for(;e!==null;)Rc(e.alternate,e),e=e.return;J=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),su=0,xu(),Rl=e,J=n=ai(e.current,null),Y=t,X=0,zl=null,Bl=!1,Vl=qe(e,t),Hl=!1,Yl=Jl=ql=Kl=Gl=Wl=0,Zl=Xl=null,Ql=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-L(r),a=1<<i;t|=e[i],r&=~a}return Ul=t,Yr(),n}function Cu(e,t){G=null,O.H=Fs,t===_a||t===ya?(t=Ta(),X=3):t===va?(t=Ta(),X=4):X=t===$s?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,zl=t,J===null&&(Wl=1,qs(e,pi(t,e.current)))}function wu(){var e=Qa.current;return e===null?!0:(Y&4194048)===Y?$a===null:(Y&62914560)===Y||Y&536870912?e===$a:!1}function Tu(){var e=O.H;return O.H=Fs,e===null?Fs:e}function Eu(){var e=O.A;return O.A=Il,e}function Du(){Wl=4,Bl||(Y&4194048)!==Y&&Qa.current!==null||(Vl=!0),!(Gl&134217727)&&!(Kl&134217727)||Rl===null||yu(Rl,Y,Jl,!1)}function Ou(e,t,n){var r=q;q|=2;var i=Tu(),a=Eu();(Rl!==e||Y!==t)&&(nu=null,Su(e,t)),t=!1;var o=Wl;a:do try{if(X!==0&&J!==null){var s=J,c=zl;switch(X){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:Qa.current===null&&(t=!0);var l=X;if(X=0,zl=null,Pu(e,s,c,l),n&&Vl){o=0;break a}break;default:l=X,X=0,zl=null,Pu(e,s,c,l)}}ku(),o=Wl;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,Hi=Vi=null,q=r,O.H=i,O.A=a,J===null&&(Rl=null,Y=0,Yr()),o}function ku(){for(;J!==null;)Mu(J)}function Au(e,t){var n=q;q|=2;var r=Tu(),i=Eu();Rl!==e||Y!==t?(nu=null,tu=De()+500,Su(e,t)):Vl=qe(e,t);a:do try{if(X!==0&&J!==null){t=J;var a=zl;b:switch(X){case 1:X=0,zl=null,Pu(e,t,a,1);break;case 2:case 9:if(xa(a)){X=0,zl=null,Nu(t);break}t=function(){X!==2&&X!==9||Rl!==e||(X=7),rd(e)},a.then(t,t);break a;case 3:X=7;break a;case 4:X=5;break a;case 7:xa(a)?(X=0,zl=null,Nu(t)):(X=0,zl=null,Pu(e,t,a,7));break;case 5:var o=null;switch(J.tag){case 26:o=J.memoizedState;case 5:case 27:var c=J;if(o?Wf(o):c.stateNode.complete){X=0,zl=null;var l=c.sibling;if(l!==null)J=l;else{var u=c.return;u===null?J=null:(J=u,Fu(u))}break b}}X=0,zl=null,Pu(e,t,a,5);break;case 6:X=0,zl=null,Pu(e,t,a,6);break;case 8:xu(),Wl=6;break a;default:throw Error(s(462))}}ju();break}catch(t){Cu(e,t)}while(1);return Hi=Vi=null,O.H=r,O.A=i,q=n,J===null?(Rl=null,Y=0,Yr(),Wl):0}function ju(){for(;J!==null&&!Te();)Mu(J)}function Mu(e){var t=kc(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function Nu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=pc(n,t,t.pendingProps,t.type,void 0,Y);break;case 11:t=pc(n,t,t.pendingProps,t.type.render,t.ref,Y);break;case 5:To(t);default:Rc(n,t),t=J=oi(t,Ul),t=kc(n,t,Ul)}e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function Pu(e,t,n,r){Hi=Vi=null,To(t),Da=null,Oa=0;var i=t.return;try{if(Qs(e,i,t,n,Y)){Wl=1,qs(e,pi(n,e.current)),J=null;return}}catch(t){if(i!==null)throw J=i,t;Wl=1,qs(e,pi(n,e.current)),J=null;return}t.flags&32768?(W||r===1?e=!0:Vl||Y&536870912?e=!1:(Bl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Qa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Iu(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Iu(t,Bl);return}e=t.return;var n=Ic(t.alternate,t,Ul);if(n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);Wl===0&&(Wl=5)}function Iu(e,t){do{var n=Lc(e.alternate,e);if(n!==null){n.flags&=32767,J=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){J=e;return}J=e=n}while(e!==null);Wl=6,J=null}function Lu(e,t,n,r,i,a,o,c,l){e.cancelPendingCommit=null;do Hu();while(iu!==0);if(q&6)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(a=t.lanes|t.childLanes,a|=Jr,Qe(e,n,a,o,c,l),e===Rl&&(J=Rl=null,Y=0),ou=t,au=e,su=n,cu=a,lu=i,uu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(je,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=O.T,O.T=null,i=k.p,k.p=2,o=q,q|=4;try{rl(e,t,n)}finally{q=o,k.p=i,O.T=r}}iu=1,Ru(),zu(),Bu()}}function Ru(){if(iu===1){iu=0;var e=au,t=ou,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=q;q|=4;try{gl(t,e);var a=zd,o=Sr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&xr(s.ownerDocument.documentElement,s)){if(c!==null&&Cr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=br(s,h),v=br(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{q=i,k.p=r,O.T=n}}e.current=t,iu=2}}function zu(){if(iu===2){iu=0;var e=au,t=ou,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=q;q|=4;try{il(e,t.alternate,t)}finally{q=i,k.p=r,O.T=n}}iu=3}}function Bu(){if(iu===4||iu===3){iu=0,Ee();var e=au,t=ou,n=su,r=uu;t.subtreeFlags&10256||t.flags&10256?iu=5:(iu=0,ou=au=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ru=null),rt(n),t=t.stateNode,Le&&typeof Le.onCommitFiberRoot==`function`)try{Le.onCommitFiberRoot(Ie,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=O.T,i=k.p,k.p=2,O.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{O.T=t,k.p=i}}su&3&&Hu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===fu?du++:(du=0,fu=e):du=0,id(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ia(t)))}function Hu(){return Ru(),zu(),Bu(),Uu()}function Uu(){if(iu!==5)return!1;var e=au,t=cu;cu=0;var n=rt(su),r=O.T,i=k.p;try{k.p=32>n?32:n,O.T=null,n=lu,lu=null;var a=au,o=su;if(iu=0,ou=au=null,su=0,q&6)throw Error(s(331));var c=q;if(q|=4,Nl(a.current),Tl(a,a.current,o,n),q=c,id(0,!1),Le&&typeof Le.onPostCommitFiberRoot==`function`)try{Le.onPostCommitFiberRoot(Ie,a)}catch{}return!0}finally{k.p=i,O.T=r,Vu(e,t)}}function Wu(e,t,n){t=pi(n,t),t=Ys(e.stateNode,t,2),e=za(e,t,2),e!==null&&(Ze(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=pi(n,e),n=Xs(2),r=za(t,n,2),r!==null&&(Zs(n,r,t,e),Ze(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ll;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Hl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Rl===e&&(Y&n)===n&&(Wl===4||Wl===3&&(Y&62914560)===Y&&300>De()-$l?!(q&2)&&Su(e,0):ql|=n,Yl===Y&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=Ye()),e=Qr(e,t),e!==null&&(Ze(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Ce(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-L(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Y,a=Ke(r,r===Rl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=De(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-L(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Je(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Rl,n=Y,n=Ke(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(X===2||X===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&we(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||qe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&we(r),rt(n)){case 2:case 8:n=Ae;break;case 32:n=je;break;case 268435456:n=Ne;break;default:n=je}return r=cd.bind(null,e),n=Ce(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&we(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(iu!==0&&iu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=Y;return r=Ke(e,e===Rl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),sd(e,De()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Hu())return null;gu(e,t,!0)}function ud(){Yd(function(){q&6?Ce(ke,ad):od()})}function dd(){if(nd===0){var e=sa;e===0&&(e=He,He<<=1,!(He&261888)&&(He=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Xt(``+e)}function pd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[ct]||null).action),o=r.submitter;o&&(t=(t=o[ct]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new _n(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);xs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),xs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<Ur.length;hd++){var gd=Ur[hd];Wr(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}Wr(Fr,`onAnimationEnd`),Wr(Ir,`onAnimationIteration`),Wr(Lr,`onAnimationStart`),Wr(`dblclick`,`onDoubleClick`),Wr(`focusin`,`onFocus`),Wr(`focusout`,`onBlur`),Wr(Rr,`onTransitionRun`),Wr(zr,`onTransitionStart`),Wr(Br,`onTransitionCancel`),Wr(Vr,`onTransitionEnd`),St(`onMouseEnter`,[`mouseout`,`mouseover`]),St(`onMouseLeave`,[`mouseout`,`mouseover`]),St(`onPointerEnter`,[`pointerout`,`pointerover`]),St(`onPointerLeave`,[`pointerout`,`pointerover`]),z(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),z(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),z(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),z(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),z(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),z(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`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(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Gr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Gr(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[lt];n===void 0&&(n=t[lt]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,bt.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!on||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=ht(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}nn(function(){var r=a,i=$t(n),o=[];a:{var s=Hr.get(e);if(s!==void 0){var c=_n,u=e;switch(e){case`keypress`:if(fn(n)===0)break a;case`keydown`:case`keyup`:c=Fn;break;case`focusin`:u=`focus`,c=En;break;case`focusout`:u=`blur`,c=En;break;case`beforeblur`:case`afterblur`:c=En;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Tn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Ln;break;case Fr:case Ir:case Lr:c=Dn;break;case Vr:c=Rn;break;case`scroll`:case`scrollend`:c=yn;break;case`wheel`:c=zn;break;case`copy`:case`cut`:case`paste`:c=On;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=In;break;case`toggle`:case`beforetoggle`:c=Bn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=rn(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Qt&&(u=n.relatedTarget||n.fromElement)&&(ht(u)||u[R]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(u=n.relatedTarget||n.toElement,c=r,u=u?ht(u):null,u!==null&&(f=l(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(c=null,u=r),c!==u)){if(d=wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=In,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?s:_t(c),h=u==null?s:_t(u),s=new d(g,m+`leave`,c,n,i),s.target=f,s.relatedTarget=h,g=null,ht(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,c&&u)b:{for(d=Dd,p=c,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;c!==null&&Od(o,s,c,d,!1),u!==null&&f!==null&&Od(o,f,u,d,!0)}}a:{if(s=r?_t(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var v=or;else if(er(s))if(sr)v=hr;else{v=pr;var y=fr}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&qt(r.elementType)&&(v=or):v=mr;if(v&&=v(e,r)){tr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&zt(s,`number`,s.value)}switch(y=r?_t(r):window,e){case`focusin`:(er(y)||y.contentEditable===`true`)&&(Tr=y,Er=r,Dr=null);break;case`focusout`:Dr=Er=Tr=null;break;case`mousedown`:Or=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Or=!1,kr(o,n,i);break;case`selectionchange`:if(wr)break;case`keydown`:case`keyup`:kr(o,n,i)}var b;if(Hn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Xn?Jn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Gn&&n.locale!==`ko`&&(Xn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Xn&&(b=dn()):(cn=i,ln=`value`in cn?cn.value:cn.textContent,Xn=!0)),y=Ed(r,x),0<y.length&&(x=new kn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Yn(n),b!==null&&(x.data=b)))),(b=Wn?Zn(e,n):Qn(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new kn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),md(o,e,r,n,i)}yd(o,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=rn(e,n),i!=null&&r.unshift(Td(e,i,a)),i=rn(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=rn(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=rn(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`
9
+ `).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ut(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ut(e,``+r);break;case`className`:Ot(e,`class`,r);break;case`tabIndex`:Ot(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ot(e,n,r);break;case`style`:Kt(e,r,a);break;case`data`:if(t!==`object`){Ot(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Xt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,i.name,i,null),$(e,t,`formEncType`,i.formEncType,i,null),$(e,t,`formMethod`,i.formMethod,i,null),$(e,t,`formTarget`,i.formTarget,i,null)):($(e,t,`encType`,i.encType,i,null),$(e,t,`method`,i.method,i,null),$(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Xt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Zt);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Xt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Dt(e,`popover`,r);break;case`xlinkActuate`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Dt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Jt.get(n)||n,Dt(e,n,r))}}function Nd(e,t,n,r,i,a){switch(n){case`style`:Kt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ut(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ut(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Zt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!xt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[ct]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Dt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:$(e,t,a,o,n,null)}}i&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=a=o=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:o=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(s(137,t));break;default:$(e,t,r,d,n,null)}}Rt(e,a,c,l,u,o,i,!1);return;case`select`:for(i in Q(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:o=c;break;case`multiple`:r=c;default:$(e,t,i,c,n,null)}t=a,n=o,e.multiple=!!r,t==null?n!=null&&Bt(e,!!r,n,!0):Bt(e,!!r,t,!1);return;case`textarea`:for(o in Q(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(c=n[o],c!=null))switch(o){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(s(91));break;default:$(e,t,o,c,n,null)}Ht(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Q(_d[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:$(e,t,u,r,n,null)}return;default:if(qt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:a=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:o=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(s(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}Lt(e,o,c,l,u,d,a,i);return;case`select`:for(a in m=o=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||$(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:p=a;break;case`defaultValue`:c=a;break;case`multiple`:o=a;default:a!==l&&$(e,t,i,a,r,l)}t=c,n=o,r=m,p==null?!!r!=!!n&&(t==null?Bt(e,!!n,n?[]:``,!1):Bt(e,!!n,t,!0)):Bt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(s(91));break;default:i!==a&&$(e,t,o,i,r,a)}Vt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(s(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(qt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(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 Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[pt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),mt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[pt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(s(452));return e;case`head`:if(e=t.head,!e)throw Error(s(453));return e;case`body`:if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=k.d;k.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=bu();return e||t}function yf(e){var t=gt(e);t!==null&&t.tag===5&&t.type===`form`?Cs(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=It(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+It(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+It(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+It(n.imageSizes)+`"]`)):i+=`[href="`+It(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+It(r)+`"][href="`+It(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=vt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);yt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=vt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),yt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=vt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),yt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=P.current)?gf(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=vt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var a=vt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(jf(e)))&&!a._p&&(o.instance=a,o.state.loading=5),mf.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},mf.set(e,n),a||Nf(i,e,n,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=vt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Af(e){return`href="`+It(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),yt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+It(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+It(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var a=e.querySelector(jf(i));if(a)return t.state.loading|=4,t.instance=a,yt(a),a;r=Mf(n),(i=mf.get(i))&&Rf(r,i),a=(e.ownerDocument||e).createElement(`link`),yt(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),t.state.loading|=4,Lf(a,n.precedence,e),t.instance=a;case`script`:return a=Pf(n.src),(i=e.querySelector(Ff(a)))?(t.instance=i,yt(i),i):(r=n,(i=mf.get(a))&&(r=h({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),yt(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[pt]||a[st]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){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=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ri(3,null,null,t),e.current=a,a.stateNode=e,t=ra(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ia(a),e}function tp(e){return e?(e=ti,e):ti}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ra(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=za(e,r,t),n!==null&&(hu(n,e,t),Ba(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=Qr(e,67108864);t!==null&&hu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=pu();t=nt(t);var n=Qr(e,t);n!==null&&hu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,up(e,t,n,r)}finally{k.p=a,O.T=i}}function lp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,up(e,t,n,r)}finally{k.p=a,O.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)wd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=gt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ge(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-L(o);s.entanglements[1]|=c,o&=~c}rd(a),!(q&6)&&(tu=De()+500,id(0,!1))}}break;case 31:case 13:s=Qr(a,2),s!==null&&hu(s,a,2),bu(),ip(a,2)}if(a=dp(r),a===null&&wd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function dp(e){return e=$t(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=ht(e),e!==null){var t=l(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(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(Oe()){case ke:return 2;case Ae:return 8;case je:case Me:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=gt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=ht(e.target);if(t!==null){var n=l(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,at(e.priority,function(){op(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,at(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Qt=r,n.target.dispatchEvent(r),Qt=null}else return t=gt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=gt(n);a!==null&&(e.splice(t,3),t-=3,xs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ct]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ct]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=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),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current;np(n,pu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),bu(),t[R]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=it();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=r.version;if(Lp!==`19.2.8`)throw Error(s(527,Lp,`19.2.8`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(s(188)):(e=Object.keys(e).join(`,`),Error(s(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Ie=zp.inject(Rp),Le=zp}catch{}}e.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,r=``,i=Ws,a=Gs,o=Ks;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,i,a,o,Pp),e[R]=t.current,Sd(e),new Fp(t)}})),c=e(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()})),l=n(),u=c();function d(e,t,n){if(t>n)throw RangeError(`min must be less than or equal to max`);return Math.min(n,Math.max(t,e))}var f=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),p=e(((e,t)=>{t.exports=f()}))();function m(e){let[t,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(typeof window.matchMedia!=`function`)return;let t=window.matchMedia(e),r=()=>{n(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e]),t}function h(e){let t=e.replace(/^#/,``).trim();if(t.length===3)return{r:Number.parseInt(t[0]+t[0],16),g:Number.parseInt(t[1]+t[1],16),b:Number.parseInt(t[2]+t[2],16)};if(t.length===6||t.length===8)return{r:Number.parseInt(t.slice(0,2),16),g:Number.parseInt(t.slice(2,4),16),b:Number.parseInt(t.slice(4,6),16)};let n=e.match(/^rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i);return n?{r:Number.parseInt(n[1],10),g:Number.parseInt(n[2],10),b:Number.parseInt(n[3],10)}:{r:0,g:0,b:0}}function g({r:e,g:t,b:n}){let r=e=>d(Math.round(e),0,255).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`}function _(e){let t=h(e),n=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},r=n(t.r),i=n(t.g),a=n(t.b);return .2126*r+.7152*i+.0722*a}function v(e,t){let n=_(e),r=_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function y(e,t=`#f7f7f4`,n=`#1d2538`){let r=v(t,e);return v(n,e)>=r?n:t}function b(e,t){let n=h(e),r=e=>d(Math.round(e+(255-e)*t),0,255);return g({r:r(n.r),g:r(n.g),b:r(n.b)})}function x(e,t){let n=h(e),r=e=>d(Math.round(e*(1-t)),0,255);return g({r:r(n.r),g:r(n.g),b:r(n.b)})}var S={step:5,unit:`px`,values:{xs:0,sm:600,md:900,lg:1200,xl:1536}};function C(e){let t={...S.values,...e?.values},n=e?.unit??`px`,r=e?.step??5,i=[`xs`,`sm`,`md`,`lg`,`xl`];function a(e){return`@media (min-width:${typeof e==`number`?e:t[e]}${n})`}function o(e){let o;if(typeof e==`number`)o=e;else{let n=i.indexOf(e)+1;if(n===i.length)return a(`xs`);o=t[i[n]]-r/100}return`@media (max-width:${o}${n})`}function s(e,a){let o=typeof e==`number`?e:t[e],s;if(typeof a==`number`)s=a;else{let e=i.indexOf(a)+1;s=e<i.length?t[i[e]]-r/100:t.xl}return`@media (min-width:${o}${n}) and (max-width:${s}${n})`}function c(e){return i.indexOf(e)+1<i.length?s(e,e):a(e)}return{between:s,down:o,only:c,unit:n,up:a,values:t}}function w(e=4){if(typeof e==`function`)return e;let t=e,n=(...e)=>e.length===0?`${t}px`:e.map(e=>`${e*t}px`).join(` `);return n.factor=t,n}function T(e,t){if(!e)return t;if(typeof e==`string`)return{contrastText:y(e),dark:x(e,.2),light:b(e,.2),main:e};let n=e.main??t.main;return{contrastText:e.contrastText??y(n),dark:e.dark??x(n,.2),light:e.light??b(n,.2),main:n}}function ee(e){let t=e?.mode??`dark`,n=t===`dark`,r=n?{contrastText:`#1d2538`,dark:`#d97706`,light:`#fde68a`,main:`#ffd9a0`}:{contrastText:`#ffffff`,dark:`#7c2d12`,light:`#f59e0b`,main:`#a85c0a`},i=n?{contrastText:`#1d2538`,dark:`#ea580c`,light:`#fdba74`,main:`#ff7b54`}:{contrastText:`#ffffff`,dark:`#9a3412`,light:`#fb923c`,main:`#c2410c`},a=n?{contrastText:`#1d2538`,dark:`#d97706`,light:`#fef08a`,main:`#ffd9a0`}:{contrastText:`#ffffff`,dark:`#78350f`,light:`#fbbf24`,main:`#a85c0a`},o=n?{contrastText:`#064e3b`,dark:`#059669`,light:`#d1fae5`,main:`#b9fbc0`}:{contrastText:`#ffffff`,dark:`#14532d`,light:`#4ade80`,main:`#1f7a42`},s=n?{contrastText:`#78350f`,dark:`#d97706`,light:`#fef3c7`,main:`#ffe1a8`}:{contrastText:`#ffffff`,dark:`#713f12`,light:`#facc15`,main:`#9c5600`},c=n?{contrastText:`#7f1d1d`,dark:`#dc2626`,light:`#fee2e2`,main:`#ffd0d0`}:{contrastText:`#ffffff`,dark:`#7f1d1d`,light:`#f87171`,main:`#b91c1c`},l=n?{contrastText:`#1e3a8a`,dark:`#2563eb`,light:`#dbeafe`,main:`#93c5fd`}:{contrastText:`#ffffff`,dark:`#1e3a8a`,light:`#60a5fa`,main:`#2563eb`},u=n?{dim:`rgba(247, 247, 244, 0.58)`,faint:`rgba(247, 247, 244, 0.46)`,ghost:`rgba(247, 247, 244, 0.34)`,muted:`rgba(247, 247, 244, 0.82)`,placeholder:`rgba(247, 247, 244, 0.42)`,primary:`#f7f7f4`,subtle:`rgba(247, 247, 244, 0.68)`}:{dim:`rgba(33, 48, 74, 0.58)`,faint:`rgba(33, 48, 74, 0.46)`,ghost:`rgba(33, 48, 74, 0.32)`,muted:`rgba(33, 48, 74, 0.82)`,placeholder:`rgba(33, 48, 74, 0.4)`,primary:`#21304a`,subtle:`rgba(33, 48, 74, 0.68)`},d=n?{default:`#0b1220`,popover:`rgba(10, 16, 28, 0.98)`,surface:`rgba(255, 255, 255, 0.08)`,surfaceCard:`rgba(255, 255, 255, 0.05)`,surfaceDark:`rgba(11, 18, 32, 0.18)`,surfaceHover:`rgba(255, 255, 255, 0.14)`}:{default:`#f8fafc`,popover:`rgba(255, 255, 255, 0.98)`,surface:`rgba(255, 255, 255, 0.82)`,surfaceCard:`rgba(255, 255, 255, 0.7)`,surfaceDark:`rgba(255, 255, 255, 0.48)`,surfaceHover:`rgba(255, 255, 255, 0.94)`},f=n?{default:`rgba(255, 255, 255, 0.14)`,faint:`rgba(255, 255, 255, 0.10)`,icon:`rgba(255, 255, 255, 0.16)`,subtle:`rgba(255, 255, 255, 0.08)`}:{default:`rgba(28, 47, 78, 0.16)`,faint:`rgba(28, 47, 78, 0.12)`,icon:`rgba(28, 47, 78, 0.18)`,subtle:`rgba(28, 47, 78, 0.1)`};return{...e,accent:T(e?.accent,a),background:{...d,...e?.background},border:{...f,...e?.border},error:T(e?.error,c),info:T(e?.info,l),mode:t,primary:T(e?.primary,r),secondary:T(e?.secondary,i),success:T(e?.success,o),text:{...u,...e?.text},warning:T(e?.warning,s)}}var te={body1:{fontSize:`14px`,lineHeight:`20px`},body2:{fontSize:`12px`,lineHeight:`18px`},button:{fontSize:`12px`,fontWeight:700,letterSpacing:`0.08em`,lineHeight:`16px`,textTransform:`uppercase`},caption:{fontSize:`11px`,lineHeight:`16px`},h1:{fontSize:`32px`,fontWeight:700,lineHeight:`40px`},h2:{fontSize:`28px`,fontWeight:700,lineHeight:`36px`},h3:{fontSize:`24px`,fontWeight:700,lineHeight:`32px`},h4:{fontSize:`20px`,fontWeight:700,lineHeight:`28px`},h5:{fontSize:`18px`,fontWeight:700,lineHeight:`28px`},h6:{fontSize:`16px`,fontWeight:700,lineHeight:`24px`},overline:{fontSize:`11px`,fontWeight:800,letterSpacing:`0.12em`,lineHeight:`16px`,textTransform:`uppercase`},subtitle1:{fontSize:`14px`,fontWeight:700,lineHeight:`20px`},subtitle2:{fontSize:`13px`,fontWeight:600,lineHeight:`18px`}};function E(e){let t=e?.fontFamily??`"Roboto", "Segoe UI", sans-serif`,n={fontFamily:t,fontSize:e?.fontSize??14};for(let[r,i]of Object.entries(te))n[r]={...i,fontFamily:t,...e?.[r]};return n}var ne={borderRadius:6,radius2xl:`6px`,radius3xl:`8px`,radiusLg:`2px`,radiusMd:`4px`,radiusSm:`2px`,radiusXl:`4px`},re={dropdown:1e3,modal:1300,popover:1200,toast:1400,tooltip:1100};function ie(e){let t=ee(e?.palette),n=E(e?.typography),r=w(e?.spacing),i=C(e?.breakpoints),a={...ne,...e?.shape},o={...re,...e?.zIndex};return{breakpoints:i,components:e?.components??{},palette:t,shape:a,spacing:r,typography:n,zIndex:o}}var ae=ie(),oe=(0,l.createContext)(ae);function se(e){let{palette:t,typography:n}=e;return{"--az-color-addon-accent":t.accent.main,"--az-color-addon-accent-active":t.accent.light,"--az-color-addon-accent-bg":t.accent.light,"--az-color-addon-accent-border":t.accent.dark,"--az-color-addon-border":t.border.default,"--az-color-addon-border-faint":t.border.faint,"--az-color-addon-border-icon":t.border.icon,"--az-color-addon-border-subtle":t.border.subtle,"--az-color-addon-btn-text":t.primary.contrastText,"--az-color-addon-dim":t.text.dim,"--az-color-addon-error":t.error.main,"--az-color-addon-faint":t.text.faint,"--az-color-addon-ghost":t.text.ghost,"--az-color-addon-muted":t.text.muted,"--az-color-addon-placeholder":t.text.placeholder,"--az-color-addon-popover":t.background.popover,"--az-color-addon-subtle":t.text.subtle,"--az-color-addon-success":t.success.main,"--az-color-addon-surface":t.background.surface,"--az-color-addon-surface-card":t.background.surfaceCard,"--az-color-addon-surface-dark":t.background.surfaceDark,"--az-color-addon-surface-hover":t.background.surfaceHover,"--az-color-addon-text":t.text.primary,"--az-color-addon-warning":t.warning.main,"--az-font-addon":n.fontFamily}}function D({children:e,theme:t=ae}){let n=(0,l.useMemo)(()=>se(t),[t]);return(0,p.jsx)(oe.Provider,{value:t,children:(0,p.jsx)(`div`,{className:`az-theme-provider`,"data-theme":t.palette.mode,style:n,children:e})})}function O(){return(0,l.useContext)(oe)}function k({name:e,props:t}){let n=O(),r=n.components?.[e]??n.components?.[`Az${e}`];if(!r||!r.defaultProps)return t;let i={...r.defaultProps};for(let[e,n]of Object.entries(t))n!==void 0&&(i[e]=n);return i}function ce(e,t){return e?typeof e==`function`?e(t):e:{}}function A(e,t){for(let[n,r]of Object.entries(e))if(t[n]!==r)return!1;return!0}function le(e,t){if(!e||e.length===0)return{};let n=[],r;for(let i of e)A(i.props,t)&&(i.className&&n.push(i.className),i.style&&(r={...r,...i.style}));return{className:n.length>0?n.join(` `):void 0,style:r}}function j(e,t){if(!e)return{};let n=typeof e==`function`?e(t):e;return n?typeof n==`string`?{className:n}:{style:n}:{}}function M(e,t){if(e!==void 0)return typeof e==`number`?t.spacing(e):e}function N(e,t){if(!e)return;let n=t.palette;if(e.includes(`.`)){let[t,r]=e.split(`.`);if(n[t]&&n[t][r])return n[t][r]}return n[e]?.main?n[e].main:e}function ue(e,t){if(!e)return;if(Array.isArray(e)){let n={};for(let r of e)if(r){let e=ue(r,t);e&&(n={...n,...e})}return Object.keys(n).length>0?n:void 0}let n=typeof e==`function`?e(t):e,r={};for(let[e,i]of Object.entries(n))if(i!==void 0)switch(e){case`p`:r.padding=M(i,t);break;case`pt`:r.paddingTop=M(i,t);break;case`pr`:r.paddingRight=M(i,t);break;case`pb`:r.paddingBottom=M(i,t);break;case`pl`:r.paddingLeft=M(i,t);break;case`px`:{let e=M(i,t);r.paddingLeft=e,r.paddingRight=e;break}case`py`:{let e=M(i,t);r.paddingTop=e,r.paddingBottom=e;break}case`m`:r.margin=M(i,t);break;case`mt`:r.marginTop=M(i,t);break;case`mr`:r.marginRight=M(i,t);break;case`mb`:r.marginBottom=M(i,t);break;case`ml`:r.marginLeft=M(i,t);break;case`mx`:{let e=M(i,t);r.marginLeft=e,r.marginRight=e;break}case`my`:{let e=M(i,t);r.marginTop=e,r.marginBottom=e;break}case`bgcolor`:case`backgroundColor`:r.backgroundColor=N(i,t);break;case`color`:r.color=N(i,t);break;default:r[e]=i}return r}var de=o();function P(e){this.content=e}P.prototype={constructor:P,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new P(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new P(n)},addToStart:function(e,t){return new P([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new P(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new P(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=P.from(e),e.size?new P(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=P.from(e),e.size?new P(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=P.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},P.from=function(e){if(e instanceof P)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new P(t)};function fe(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&he(e.charCodeAt(r-1))&&me(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=fe(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function pe(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&he(e.charCodeAt(i-1))&&me(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=pe(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function me(e){return e>=56320&&e<57344}function he(e){return e>=55296&&e<56320}var F=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return fe(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return pe(this,e,t,n)}findIndex(e){if(e==0)return _e(0,e);if(e==this.size)return _e(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?_e(t+1,i):_e(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};F.empty=new F([],0);var ge={index:0,offset:0};function _e(e,t){return ge.index=e,ge.offset=t,ge}function ve(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!ve(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!ve(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var ye=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ve(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};ye.none=[];var be=class extends Error{},I=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Se(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(xe(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(F.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};I.empty=new I(F.empty,0,0);function xe(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(xe(a.content,t-i-1,n-i-1)))}function Se(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=Se(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function Ce(e,t,n){if(n.openStart>e.depth)throw new be(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new be(`Inconsistent open depths`);return we(e,t,n,0)}function we(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=we(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return ke(a,je(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return ke(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=Me(n,e);return ke(a,Ae(e,i,o,t,r))}}function Te(e,t){if(!t.type.compatibleContent(e.type))throw new be(`Cannot join `+t.type.name+` onto `+e.type.name)}function Ee(e,t,n){let r=e.node(n);return Te(r,t.node(n)),r}function De(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Oe(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(De(e.nodeAfter,r),a++));for(let e=a;e<o;e++)De(i.child(e),r);t&&t.depth==n&&t.textOffset&&De(t.nodeBefore,r)}function ke(e,t){if(!e.type.validContent(t))throw new be(`Invalid content for node `+e.type.name);return e.copy(t)}function Ae(e,t,n,r,i){let a=e.depth>i&&Ee(e,t,i+1),o=r.depth>i&&Ee(n,r,i+1),s=[];return Oe(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Te(a,o),De(ke(a,Ae(e,t,n,r,i+1)),s)):(a&&De(ke(a,je(e,t,i+1)),s),Oe(t,n,i,s),o&&De(ke(o,je(n,r,i+1)),s)),Oe(r,null,i,s),new F(s)}function je(e,t,n){let r=[];return Oe(null,e,n,r),e.depth>n&&De(ke(Ee(e,t,n+1),je(e,t,n+1)),r),Oe(t,null,n,r),new F(r)}function Me(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(F.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Ne=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return ye.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Le(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=Ie.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else Ie.set(t,r=new Pe);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Fe,i}},Pe=class{constructor(){this.elts=[],this.i=0}},Fe=12,Ie=new WeakMap,Le=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},Re=Object.create(null),L=class e{constructor(e,t,n,r=ye.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||F.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&ve(this.attrs,t||e.defaultAttrs||Re)&&ye.sameSet(this.marks,n||ye.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return I.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new I(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Ce(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Ne.resolveCached(this,e)}resolveNoCache(e){return Ne.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Be(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=F.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=ye.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!ye.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=F.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};L.prototype.text=void 0;var ze=class e extends L{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Be(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Be(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Ve=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new He(t,n);if(r.next==null)return e.empty;let i=Ue(r);r.next&&r.err(`Unexpected trailing text`);let a=$e(Xe(i));return et(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return F.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
10
+ `)}};Ve.empty=new Ve(!0);var He=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function Ue(e){let t=[];do t.push(We(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function We(e){let t=[];do t.push(Ge(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ge(e){let t=Ye(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=qe(e,t);else break;return t}function Ke(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function qe(e,t){let n=Ke(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Ke(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function Je(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Ye(e){if(e.eat(`(`)){let t=Ue(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=Je(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function Xe(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function Ze(e,t){return t-e}function Qe(e,t){let n=[];return r(t),n.sort(Ze);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function $e(e){let t=Object.create(null);return n(Qe(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);Qe(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ve(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(Ze);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function et(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function tt(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function nt(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function rt(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function it(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new st(e,r,t[r]);return n}var at=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=it(e,n.attrs),this.defaultAttrs=tt(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ve.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:nt(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new L(this,this.computeAttrs(e),F.from(t),ye.setFrom(n))}createChecked(e=null,t,n){return t=F.from(t),this.checkContent(t),new L(this,this.computeAttrs(e),t,ye.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=F.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(F.empty,!0);return i?new L(this,e,t.append(i),ye.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){rt(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:ye.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function ot(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var st=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?ot(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},ct=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=it(e,r.attrs),this.excluded=null;let i=tt(this.attrs);this.instance=i?new ye(this,i):null}create(e=null){return!e&&this.instance?this.instance:new ye(this,nt(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){rt(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},R=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=P.from(e.nodes),t.marks=P.from(e.marks||{}),this.nodes=at.compile(this.spec.nodes,this),this.marks=ct.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Ve.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?lt(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:lt(this,n.split(` `))}this.nodeFromJSON=e=>L.fromJSON(this,e),this.markFromJSON=e=>ye.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof at))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new ze(n,n.defaultAttrs,e,ye.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function lt(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}var ut=65535,dt=2**16;function ft(e,t){return e+t*dt}function pt(e){return e&ut}function mt(e){return(e-(e&ut))/dt}var ht=1,gt=2,_t=4,vt=8,yt=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&vt)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&_t)>0}},bt=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=pt(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+mt(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:ft(o/3,e-s),f=e==s?gt:e==u?ht:_t;return(t<0?e!=s:e!=u)&&(f|=vt),new yt(a,f,d)}r+=l-c}return n?e+r:new yt(e+r,0,null)}touches(e,t){let n=0,r=pt(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};bt.empty=new bt([]);var xt=Object.create(null),z=class{getMap(){return bt.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=xt[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in xt)throw RangeError(`Duplicate use of step JSON ID `+e);return xt[e]=t,t.prototype.jsonID=e,t}},St=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof be)return e.fail(t.message);throw t}}};function Ct(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(Ct(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return F.fromArray(r)}var wt=class e extends z{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new I(Ct(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return St.fromReplace(e,this.from,this.to,i)}invert(){return new Tt(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};z.jsonID(`addMark`,wt);var Tt=class e extends z{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new I(Ct(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return St.fromReplace(e,this.from,this.to,n)}invert(){return new wt(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};z.jsonID(`removeMark`,Tt);var Et=class e extends z{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return St.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return St.fromReplace(e,this.pos,this.pos+1,new I(F.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new Dt(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};z.jsonID(`addNodeMark`,Et);var Dt=class e extends z{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return St.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return St.fromReplace(e,this.pos,this.pos+1,new I(F.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Et(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};z.jsonID(`removeNodeMark`,Dt);var Ot=class e extends z{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&At(e,this.from,this.to)?St.fail(`Structure replace would overwrite content`):St.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new bt([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?I.empty:new I(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?I.empty:new I(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,I.fromJSON(t,n.slice),!!n.structure)}};Ot.MAP_BIAS=1,z.jsonID(`replace`,Ot);var kt=class e extends z{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(At(e,this.from,this.gapFrom)||At(e,this.gapTo,this.to)))return St.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return St.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?St.fromReplace(e,this.from,this.to,n):St.fail(`Content does not fit in gap`)}getMap(){return new bt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,I.fromJSON(t,n.slice),n.insert,!!n.structure)}};z.jsonID(`replaceAround`,kt);function At(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}var jt=class e extends z{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return St.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return St.fromReplace(e,this.pos,this.pos+1,new I(F.from(r),0,+!t.isLeaf))}getMap(){return bt.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};z.jsonID(`attr`,jt);var Mt=class e extends z{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return St.ok(n)}getMap(){return bt.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};z.jsonID(`docAttr`,Mt);var Nt=class extends Error{};Nt=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Nt.prototype=Object.create(Error.prototype),Nt.prototype.constructor=Nt,Nt.prototype.name=`TransformError`;var Pt=Object.create(null),B=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Ft(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=I.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?I.empty:t),o==0&&Gt(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),Gt(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new Rt(e):Wt(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?Wt(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):Wt(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Ht(e.node(0))}static atStart(e){return Wt(e,e,0,0,1)||new Ht(e)}static atEnd(e){return Wt(e,e,e.content.size,e.childCount,-1)||new Ht(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=Pt[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Pt)throw RangeError(`Duplicate use of selection JSON ID `+e);return Pt[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Rt.between(this.$anchor,this.$head).getBookmark()}};B.prototype.visible=!0;var Ft=class{constructor(e,t){this.$from=e,this.$to=t}},It=!1;function Lt(e){!It&&!e.parent.inlineContent&&(It=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var Rt=class e extends B{constructor(e,t=e){Lt(e),Lt(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return B.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=I.empty){if(super.replace(e,t),t==I.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new zt(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=B.findFrom(n,r,!0)||B.findFrom(n,-r,!0);if(e)n=e.$head;else return B.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(B.findFrom(t,-r,!0)||B.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};B.jsonID(`text`,Rt);var zt=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return Rt.between(e.resolve(this.anchor),e.resolve(this.head))}},Bt=class e extends B{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?B.near(a):new e(a)}content(){return new I(F.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new Vt(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};Bt.prototype.visible=!1,B.jsonID(`node`,Bt);var Vt=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new zt(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Bt.isSelectable(n)?new Bt(t):B.near(t)}},Ht=class e extends B{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=I.empty){if(t==I.empty){e.delete(0,e.doc.content.size);let t=B.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return Ut}};B.jsonID(`all`,Ht);var Ut={map(){return this},resolve(e){return new Ht(e)}};function Wt(e,t,n,r,i,a=!1){if(t.inlineContent)return Rt.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(!r.isAtom){let t=Wt(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&Bt.isSelectable(r))return Bt.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function Gt(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Ot||i instanceof kt))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(B.near(e.doc.resolve(o),n))}function Kt(e,t){return!t||!e?e:e.bind(t)}var qt=class{constructor(e,t,n){this.name=e,this.init=Kt(t.init,n),this.apply=Kt(t.apply,n)}};new qt(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new qt(`selection`,{init(e,t){return e.selection||B.atStart(t.doc)},apply(e){return e.selection}}),new qt(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new qt(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}});var Jt=Object.create(null);function Yt(e){return e in Jt?e+`$`+ ++Jt[e]:(Jt[e]=0,e+`$`)}for(var Xt=class{constructor(e=`key`){this.key=Yt(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},Zt={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},Qt={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},$t=typeof navigator<`u`&&/Mac/.test(navigator.platform),V=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),H=0;H<10;H++)Zt[48+H]=Zt[96+H]=String(H);for(var H=1;H<=24;H++)Zt[H+111]=`F`+H;for(var H=65;H<=90;H++)Zt[H]=String.fromCharCode(H+32),Qt[H]=String.fromCharCode(H);for(var en in Zt)Qt.hasOwnProperty(en)||(Qt[en]=Zt[en]);function tn(e){var t=!($t&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||V&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?Qt:Zt)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var nn=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),rn=typeof navigator<`u`&&/Win/.test(navigator.platform);function an(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))nn?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function on(e){let t=Object.create(null);for(let n in e)t[an(n)]=e[n];return t}function sn(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function cn(e){let t=on(e);return function(e,n){let r=tn(n),i,a=t[sn(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[sn(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(rn&&n.ctrlKey&&n.altKey)&&(i=Zt[n.keyCode])&&i!=r){let r=t[sn(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var ln,un;if(typeof WeakMap<`u`){let e=new WeakMap;ln=t=>e.get(t),un=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;ln=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},un=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var dn=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,a=r+1,o=i+1;for(let e=1;a<this.width&&this.map[t+e]==n;e++)a++;for(let e=1;o<this.height&&this.map[t+this.width*e]==n;e++)o++;return{left:r,top:i,right:a,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:a,bottom:o}=this.findCell(e);return t==`horiz`?(n<0?r==0:i==this.width)?null:this.map[a*this.width+(n<0?r-1:i)]:(n<0?a==0:o==this.height)?null:this.map[r+this.width*(n<0?a-1:o)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:a}=this.findCell(e),{left:o,right:s,top:c,bottom:l}=this.findCell(t);return{left:Math.min(n,o),top:Math.min(i,c),right:Math.max(r,s),bottom:Math.max(a,l)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let a=r*this.width+i,o=this.map[a];n[o]||(n[o]=!0,!(i==e.left&&i&&this.map[a-1]==o||r==e.top&&r&&this.map[a-this.width]==o)&&t.push(o))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let a=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?a-1:this.map[n]}i=a}}static get(e){return ln(e)||un(e,fn(e))}};function fn(e){if(e.type.spec.tableRole!=`table`)throw RangeError(`Not a table node: `+e.type.name);let t=pn(e),n=e.childCount,r=[],i=0,a=null,o=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let s=0,c=0;s<n;s++){let l=e.child(s);c++;for(let e=0;;e++){for(;i<r.length&&r[i]!=0;)i++;if(e==l.childCount)break;let u=l.child(e),{colspan:d,rowspan:f,colwidth:p}=u.attrs;for(let e=0;e<f;e++){if(e+s>=n){(a||=[]).push({type:`overlong_rowspan`,pos:c,n:f-e});break}let l=i+e*t;for(let e=0;e<d;e++){r[l+e]==0?r[l+e]=c:(a||=[]).push({type:`collision`,row:s,pos:c,n:d-e});let n=p&&p[e];if(n){let r=(l+e)%t*2,i=o[r];i==null||i!=n&&o[r+1]==1?(o[r]=n,o[r+1]=1):i==n&&o[r+1]++}}}i+=d,c+=u.nodeSize}let u=(s+1)*t,d=0;for(;i<u;)r[i++]==0&&d++;d&&(a||=[]).push({type:`missing`,row:s,n:d}),c++}(t===0||n===0)&&(a||=[]).push({type:`zero_sized`});let s=new dn(t,n,r,a),c=!1;for(let e=0;!c&&e<o.length;e+=2)o[e]!=null&&o[e+1]<n&&(c=!0);return c&&mn(s,o,e),s}function pn(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),a=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(a+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);a+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}t==-1?t=a:t!=a&&(t=Math.max(t,a))}return t}function mn(e,t,n){e.problems||=[];let r={};for(let i=0;i<e.map.length;i++){let a=e.map[i];if(r[a])continue;r[a]=!0;let o=n.nodeAt(a);if(!o)throw RangeError(`No cell with offset ${a} found`);let s=null,c=o.attrs;for(let n=0;n<c.colspan;n++){let r=t[(i+n)%e.width*2];r!=null&&(!c.colwidth||c.colwidth[n]!=r)&&((s||=hn(c))[n]=r)}s&&e.problems.unshift({type:`colwidth mismatch`,pos:a,colwidth:s})}}function hn(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function gn(e,t){if(typeof e==`string`)return{};let n=e.getAttribute(`data-colwidth`),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(`,`).map(e=>Number(e)):null,i=Number(e.getAttribute(`colspan`)||1),a={colspan:i,rowspan:Number(e.getAttribute(`rowspan`)||1),colwidth:r&&r.length==i?r:null};for(let n in t){let r=t[n].getFromDOM,i=r&&r(e);i!=null&&(a[n]=i)}return a}function _n(e,t){let n={};e.attrs.colspan!=1&&(n.colspan=e.attrs.colspan),e.attrs.rowspan!=1&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n[`data-colwidth`]=e.attrs.colwidth.join(`,`));for(let r in t){let i=t[r].setDOMAttr;i&&i(e.attrs[r],n)}return n}function vn(e){if(e!==null){if(!Array.isArray(e))throw TypeError(`colwidth must be null or an array`);for(let t of e)if(typeof t!=`number`)throw TypeError(`colwidth must be null or an array of numbers`)}}function yn(e){let t=e.cellAttributes||{},n={colspan:{default:1,validate:`number`},rowspan:{default:1,validate:`number`},colwidth:{default:null,validate:vn}};for(let e in t)n[e]={default:t[e].default,validate:t[e].validate};return{table:{content:`table_row+`,tableRole:`table`,isolating:!0,group:e.tableGroup,parseDOM:[{tag:`table`}],toDOM(){return[`table`,[`tbody`,0]]}},table_row:{content:`(table_cell | table_header)*`,tableRole:`row`,parseDOM:[{tag:`tr`}],toDOM(){return[`tr`,0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:`cell`,isolating:!0,parseDOM:[{tag:`td`,getAttrs:e=>gn(e,t)}],toDOM(e){return[`td`,_n(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:`header_cell`,isolating:!0,parseDOM:[{tag:`th`,getAttrs:e=>gn(e,t)}],toDOM(e){return[`th`,_n(e,t),0]}}}}function bn(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}new Xt(`selectingCells`);function xn(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole==`row`)return e.node(0).resolve(e.before(t+1));return null}function Sn(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if(t.node(e).type.spec.tableRole==`row`)return!0;return!1}function Cn(e){let t=e.selection;if(`$anchorCell`in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if(`node`in t&&t.node&&t.node.type.spec.tableRole==`cell`)return t.$anchor;let n=xn(t.$head)||wn(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function wn(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n-t.nodeSize)}}function Tn(e){return e.parent.type.spec.tableRole==`row`&&!!e.nodeAfter}function En(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function Dn(e,t,n){let r=e.node(-1),i=dn.get(r),a=e.start(-1),o=i.nextCell(e.pos-a,t,n);return o==null?null:e.node(0).resolve(a+o)}function On(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}var kn=class e extends B{constructor(e,t=e){let n=e.node(-1),r=dn.get(n),i=e.start(-1),a=r.rectBetween(e.pos-i,t.pos-i),o=e.node(0),s=r.cellsInRect(a).filter(e=>e!=t.pos-i);s.unshift(t.pos-i);let c=s.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=i+e+1;return new Ft(o.resolve(r),o.resolve(r+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(Tn(r)&&Tn(i)&&En(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return Rt.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=dn.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},a=[];for(let n=r.top;n<r.bottom;n++){let o=[];for(let a=n*t.width+r.left,s=r.left;s<r.right;s++,a++){let n=t.map[a];if(i[n])continue;i[n]=!0;let s=t.findCell(n),c=e.nodeAt(n);if(!c)throw RangeError(`No cell with offset ${n} found`);let l=r.left-s.left,u=s.right-r.right;if(l>0||u>0){let e=c.attrs;if(l>0&&(e=On(e,0,l)),u>0&&(e=On(e,e.colspan-u,u)),s.left<r.left){if(c=c.type.createAndFill(e),!c)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else c=c.type.create(e,c.content)}if(s.top<r.top||s.bottom>r.bottom){let e={...c.attrs,rowspan:Math.min(s.bottom,r.bottom)-Math.max(s.top,r.top)};c=s.top<r.top?c.type.createAndFill(e):c.type.create(e,c.content)}o.push(c)}a.push(e.child(n).copy(F.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:a;return new I(F.from(o),1,1)}replace(e,t=I.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n);e.replace(s.map(a.pos),s.map(o.pos),i?I.empty:t)}let i=B.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new I(F.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=dn.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=dn.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.top<=s.top?(o.top>0&&(t=c.resolve(a+i.map[o.left])),s.bottom<i.height&&(n=c.resolve(a+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=c.resolve(a+i.map[s.left])),o.bottom<i.height&&(t=c.resolve(a+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=dn.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;let a=r+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,o)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=dn.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.left<=s.left?(o.left>0&&(t=c.resolve(a+i.map[o.top*i.width])),s.right<i.width&&(n=c.resolve(a+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=c.resolve(a+i.map[s.top*i.width])),o.right<i.width&&(t=c.resolve(a+i.map[i.width*(o.top+1)-1]))),new e(t,n)}toJSON(){return{type:`cell`,anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new An(this.$anchorCell.pos,this.$headCell.pos)}};kn.prototype.visible=!1,B.jsonID(`cell`,kn);var An=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return t.parent.type.spec.tableRole==`row`&&n.parent.type.spec.tableRole==`row`&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&En(t,n)?new kn(t,n):B.near(n,1)}};new Xt(`fix-tables`);function jn(e){let t=e.selection,n=Cn(e),r=n.node(-1),i=n.start(-1),a=dn.get(r);return{...t instanceof kn?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function Mn(e){return function(t,n){if(!Sn(t))return!1;if(n){let r=bn(t.schema),i=jn(t),a=t.tr,o=i.map.cellsInRect(e==`column`?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e==`row`?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)s[e].type==r.header_cell&&a.setNodeMarkup(i.tableStart+o[e],r.cell,s[e].attrs);if(a.steps.length===0)for(let e=0;e<o.length;e++)a.setNodeMarkup(i.tableStart+o[e],r.header_cell,s[e].attrs);n(a)}return!0}}function Nn(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:e==`row`?t.map.width:1,bottom:e==`column`?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function Pn(e,t){return t||={useDeprecatedLogic:!1},t.useDeprecatedLogic?Mn(e):function(t,n){if(!Sn(t))return!1;if(n){let r=bn(t.schema),i=jn(t),a=t.tr,o=Nn(`row`,i,r),s=Nn(`column`,i,r),c=(e===`column`?o:e===`row`&&s)?1:0,l=e==`column`?{left:0,top:c,right:1,bottom:i.map.height}:e==`row`?{left:c,top:0,right:i.map.width,bottom:1}:i,u=e==`column`?s?r.cell:r.header_cell:e==`row`?o?r.cell:r.header_cell:r.cell;i.map.cellsInRect(l).forEach(e=>{let t=e+i.tableStart,n=a.doc.nodeAt(t);n&&a.setNodeMarkup(t,u,n.attrs)}),n(a)}return!0}}Pn(`row`,{useDeprecatedLogic:!0}),Pn(`column`,{useDeprecatedLogic:!0}),Pn(`cell`,{useDeprecatedLogic:!0});function Fn(e,t){let n=e.selection;if(!(n instanceof kn))return!1;if(t){let r=e.tr,i=bn(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new I(i,0,0))}),r.docChanged&&t(r)}return!0}cn({ArrowLeft:Ln(`horiz`,-1),ArrowRight:Ln(`horiz`,1),ArrowUp:Ln(`vert`,-1),ArrowDown:Ln(`vert`,1),"Shift-ArrowLeft":Rn(`horiz`,-1),"Shift-ArrowRight":Rn(`horiz`,1),"Shift-ArrowUp":Rn(`vert`,-1),"Shift-ArrowDown":Rn(`vert`,1),Backspace:Fn,"Mod-Backspace":Fn,Delete:Fn,"Mod-Delete":Fn});function In(e,t,n){return n.eq(e.selection)?!1:(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Ln(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection;if(a instanceof kn)return In(n,r,B.near(a.$headCell,t));if(e!=`horiz`&&!a.empty)return!1;let o=zn(i,e,t);if(o==null)return!1;if(e==`horiz`)return In(n,r,B.near(n.doc.resolve(a.head+t),t));{let i=n.doc.resolve(o),a=Dn(i,e,t),s;return s=a?B.near(a,1):t<0?B.near(n.doc.resolve(i.before(-1)),-1):B.near(n.doc.resolve(i.after(-1)),1),In(n,r,s)}}}function Rn(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection,o;if(a instanceof kn)o=a;else{let r=zn(i,e,t);if(r==null)return!1;o=new kn(n.doc.resolve(r))}let s=Dn(o.$headCell,e,t);return s?In(n,r,new kn(o.$anchorCell,s)):!1}}function zn(e,t,n){if(!(e.state.selection instanceof Rt))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let a=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole==`cell`||a.type.spec.tableRole==`header_cell`){let a=r.before(i),o=t==`vert`?n>0?`down`:`up`:n>0?`right`:`left`;return e.endOfTextblock(o)?a:null}}return null}new Xt(`tableColumnResizing`);var Bn=e(((e,t)=>{function n(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r(e){if(Array.isArray(e))return e}function i(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function a(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(e,t){return r(e)||i(e,t)||s(e,t)||a()}function s(e,t){if(e){if(typeof e==`string`)return n(e,t);var r={}.toString.call(e).slice(8,-1);return r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`?Array.from(e):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}var c=Object.entries,l=Object.setPrototypeOf,u=Object.isFrozen,d=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,p=Object.freeze,m=Object.seal,h=Object.create,g=typeof Reflect<`u`&&Reflect,_=g.apply,v=g.construct;p||=function(e){return e},m||=function(e){return e},_||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},v||=function(e){return new e(...[...arguments].slice(1))};var y=A(Array.prototype.forEach),b=A(Array.prototype.lastIndexOf),x=A(Array.prototype.pop),S=A(Array.prototype.push),C=A(Array.prototype.splice),w=Array.isArray,T=A(String.prototype.toLowerCase),ee=A(String.prototype.toString),te=A(String.prototype.match),E=A(String.prototype.replace),ne=A(String.prototype.indexOf),re=A(String.prototype.trim),ie=A(Number.prototype.toString),ae=A(Boolean.prototype.toString),oe=typeof BigInt>`u`?null:A(BigInt.prototype.toString),se=typeof Symbol>`u`?null:A(Symbol.prototype.toString),D=A(Object.prototype.hasOwnProperty),O=A(Object.prototype.toString),k=A(RegExp.prototype.test),ce=le(TypeError);function A(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return _(e,t,n)}}function le(e){return function(){return v(e,[...arguments])}}function j(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:T;if(l&&l(e,null),!w(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(u(t)||(t[r]=e),i=e)}e[i]=!0}return e}function M(e){for(let t=0;t<e.length;t++)D(e,t)||(e[t]=null);return e}function N(e){let t=h(null);for(let r of c(e)){var n=o(r,2);let i=n[0],a=n[1];D(e,i)&&(w(a)?t[i]=M(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=N(a):t[i]=a)}return t}function ue(e){switch(typeof e){case`string`:return e;case`number`:return ie(e);case`boolean`:return ae(e);case`bigint`:return oe?oe(e):`0`;case`symbol`:return se?se(e):`Symbol()`;case`undefined`:return O(e);case`function`:case`object`:{if(e===null)return O(e);let t=e,n=de(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:O(e)}return O(e)}default:return O(e)}}function de(e,t){for(;e!==null;){let n=f(e,t);if(n){if(n.get)return A(n.get);if(typeof n.value==`function`)return A(n.value)}e=d(e)}function n(){return null}return n}function P(e){try{return k(e,``),!0}catch{return!1}}var fe=p(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),pe=p(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),me=p([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),he=p([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),F=p(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),ge=p([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),_e=p([`#text`]),ve=p(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),ye=p(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),be=p(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),I=p([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),xe=m(/{{[\w\W]*|^[\w\W]*}}/g),Se=m(/<%[\w\W]*|^[\w\W]*%>/g),Ce=m(/\${[\w\W]*/g),we=m(/^data-[\-\w.\u00B7-\uFFFF]+$/),Te=m(/^aria-[\-\w]+$/),Ee=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),De=m(/^(?:\w+script|data):/i),Oe=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ke=m(/^html$/i),Ae=m(/^[a-z][.\w]*(-[.\w]+)+$/i),je=m(/<[/\w!]/g),Me=m(/<[/\w]/g),Ne=m(/<\/no(script|embed|frames)/i),Pe=m(/\/>/i),Fe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ie=function(){return typeof window>`u`?null:window},Le=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Re=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},L=function(e,t,n,r){return D(e,t)&&w(e[t])?j(r.base?N(r.base):{},e[t],r.transform):n};function ze(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ie(),t=e=>ze(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==Fe.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,g=de(f,`cloneNode`),_=de(f,`remove`),v=de(f,`nextSibling`),ie=de(f,`childNodes`),ae=de(f,`parentNode`),oe=de(f,`shadowRoot`),se=de(f,`attributes`),O=o&&o.prototype?de(o.prototype,`nodeType`):null,A=o&&o.prototype?de(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let le,M=``,Be,Ve=!1,He=0,Ue=function(){if(He>0)throw ce(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},We=function(e){Ue(),He++;try{return le.createHTML(e)}finally{He--}},Ge=function(e){Ue(),He++;try{return le.createScriptURL(e)}finally{He--}},Ke=function(){return Ve||=(Be=Le(d,i),!0),Be},qe=n,Je=qe.implementation,Ye=qe.createNodeIterator,Xe=qe.createDocumentFragment,Ze=qe.getElementsByTagName,Qe=r.importNode,$e=Re();t.isSupported=typeof c==`function`&&typeof ae==`function`&&Je&&Je.createHTMLDocument!==void 0;let et=xe,tt=Se,nt=Ce,rt=we,it=Te,at=De,ot=Oe,st=Ae,ct=Ee,R=null,lt=j({},[...fe,...pe,...me,...F,..._e]),ut=null,dt=j({},[...ve,...ye,...be,...I]),ft=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pt=null,mt=null,ht=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),gt=!0,_t=!0,vt=!1,yt=!0,bt=!1,xt=!0,z=!1,St=!1,Ct=null,wt=null,Tt=!1,Et=!1,Dt=!1,Ot=!1,kt=!0,At=!1,jt=`user-content-`,Mt=!0,Nt=!1,Pt={},B=null,Ft=j({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),It=null,Lt=j({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Rt=null,zt=j({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Bt=`http://www.w3.org/1998/Math/MathML`,Vt=`http://www.w3.org/2000/svg`,Ht=`http://www.w3.org/1999/xhtml`,Ut=Ht,Wt=!1,Gt=null,Kt=j({},[Bt,Vt,Ht],ee),qt=p([`mi`,`mo`,`mn`,`ms`,`mtext`]),Jt=j({},qt),Yt=p([`annotation-xml`]),Xt=j({},Yt),Zt=j({},[`title`,`style`,`font`,`a`,`script`]),Qt=null,$t=[`application/xhtml+xml`,`text/html`],V=null,H=null,en=n.createElement(`form`),tn=function(e){return e instanceof RegExp||e instanceof Function},nn=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(H&&H===e)return;(!e||typeof e!=`object`)&&(e={}),e=N(e),Qt=$t.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,V=Qt===`application/xhtml+xml`?ee:T,R=L(e,`ALLOWED_TAGS`,lt,{transform:V}),ut=L(e,`ALLOWED_ATTR`,dt,{transform:V}),Gt=L(e,`ALLOWED_NAMESPACES`,Kt,{transform:ee}),Rt=L(e,`ADD_URI_SAFE_ATTR`,zt,{transform:V,base:zt}),It=L(e,`ADD_DATA_URI_TAGS`,Lt,{transform:V,base:Lt}),B=L(e,`FORBID_CONTENTS`,Ft,{transform:V}),pt=L(e,`FORBID_TAGS`,N({}),{transform:V}),mt=L(e,`FORBID_ATTR`,N({}),{transform:V}),Pt=D(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?N(e.USE_PROFILES):e.USE_PROFILES:!1,gt=e.ALLOW_ARIA_ATTR!==!1,_t=e.ALLOW_DATA_ATTR!==!1,vt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,yt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,bt=e.SAFE_FOR_TEMPLATES||!1,xt=e.SAFE_FOR_XML!==!1,z=e.WHOLE_DOCUMENT||!1,Et=e.RETURN_DOM||!1,Dt=e.RETURN_DOM_FRAGMENT||!1,Ot=e.RETURN_TRUSTED_TYPE||!1,Tt=e.FORCE_BODY||!1,kt=e.SANITIZE_DOM!==!1,At=e.SANITIZE_NAMED_PROPS||!1,Mt=e.KEEP_CONTENT!==!1,Nt=e.IN_PLACE||!1,ct=P(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ee,Ut=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ht,Jt=D(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?N(e.MATHML_TEXT_INTEGRATION_POINTS):j({},qt),Xt=D(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?N(e.HTML_INTEGRATION_POINTS):j({},Yt);let t=D(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?N(e.CUSTOM_ELEMENT_HANDLING):h(null);if(ft=h(null),D(t,`tagNameCheck`)&&tn(t.tagNameCheck)&&(ft.tagNameCheck=t.tagNameCheck),D(t,`attributeNameCheck`)&&tn(t.attributeNameCheck)&&(ft.attributeNameCheck=t.attributeNameCheck),D(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ft.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),m(ft),bt&&(_t=!1),Dt&&(Et=!0),Pt&&(R=j({},_e),ut=h(null),Pt.html===!0&&(j(R,fe),j(ut,ve)),Pt.svg===!0&&(j(R,pe),j(ut,ye),j(ut,I)),Pt.svgFilters===!0&&(j(R,me),j(ut,ye),j(ut,I)),Pt.mathMl===!0&&(j(R,F),j(ut,be),j(ut,I))),ht.tagCheck=null,ht.attributeCheck=null,D(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?ht.tagCheck=e.ADD_TAGS:w(e.ADD_TAGS)&&(R===lt&&(R=N(R)),j(R,e.ADD_TAGS,V))),D(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?ht.attributeCheck=e.ADD_ATTR:w(e.ADD_ATTR)&&(ut===dt&&(ut=N(ut)),j(ut,e.ADD_ATTR,V))),D(e,`ADD_URI_SAFE_ATTR`)&&w(e.ADD_URI_SAFE_ATTR)&&j(Rt,e.ADD_URI_SAFE_ATTR,V),D(e,`FORBID_CONTENTS`)&&w(e.FORBID_CONTENTS)&&(B===Ft&&(B=N(B)),j(B,e.FORBID_CONTENTS,V)),D(e,`ADD_FORBID_CONTENTS`)&&w(e.ADD_FORBID_CONTENTS)&&(B===Ft&&(B=N(B)),j(B,e.ADD_FORBID_CONTENTS,V)),Mt&&(R[`#text`]=!0),z&&j(R,[`html`,`head`,`body`]),R.table&&(j(R,[`tbody`]),delete pt.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw ce(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw ce(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=le;le=e.TRUSTED_TYPES_POLICY;try{M=We(``)}catch(e){throw le=t,e}}else e.TRUSTED_TYPES_POLICY===null?(le=void 0,M=``):(le===void 0&&(le=Ke()),le&&typeof M==`string`&&(M=We(``)));p&&p(e),H=e},rn=j({},[...pe,...me,...he]),an=j({},[...F,...ge]),on=function(e,t,n){return t.namespaceURI===Ht?e===`svg`:t.namespaceURI===Bt?e===`svg`&&(n===`annotation-xml`||Jt[n]):!!rn[e]},sn=function(e,t,n){return t.namespaceURI===Ht?e===`math`:t.namespaceURI===Vt?e===`math`&&Xt[n]:!!an[e]},cn=function(e,t,n){return t.namespaceURI===Vt&&!Xt[n]||t.namespaceURI===Bt&&!Jt[n]?!1:!an[e]&&(Zt[e]||!rn[e])},ln=function(e){let t=ae(e);(!t||!t.tagName)&&(t={namespaceURI:Ut,tagName:`template`});let n=T(e.tagName),r=T(t.tagName);return Gt[e.namespaceURI]?e.namespaceURI===Vt?on(n,t,r):e.namespaceURI===Bt?sn(n,t,r):e.namespaceURI===Ht?cn(n,t,r):!!(Qt===`application/xhtml+xml`&&Gt[e.namespaceURI]):!1},un=function(e){S(t.removed,{element:e});try{ae(e).removeChild(e)}catch{if(_(e),!ae(e))throw ce(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},dn=function(e){mn(e);let t=ie(e);if(t){let e=[];y(t,t=>{S(e,t)}),y(e,e=>{try{_(e)}catch{}})}let n=se(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},fn=function(e,n){try{S(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{S(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Et||Dt)try{un(n)}catch{}else try{n.setAttribute(e,``)}catch{}},pn=function(e){let t=se(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||ut[V(i)]))try{e.removeAttribute(i)}catch{}}},mn=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(O?O(e):e.nodeType)===Fe.element&&pn(e);let n=ie(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},hn=function(e){if(!xt)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=O?O(e):e.nodeType;if(n===Fe.processingInstruction||n===Fe.comment&&k(Me,e.data)){try{_(e)}catch{}continue}if(n===Fe.element){let t=e,n=V(A?A(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=ie(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},gn=function(e){let t=null,r=null;if(Tt)e=`<remove></remove>`+e;else{let t=te(e,/^[\r\n\t ]+/);r=t&&t[0]}Qt===`application/xhtml+xml`&&Ut===Ht&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=le?We(e):e;if(Ut===Ht)try{t=new u().parseFromString(i,Qt)}catch{}if(!t||!t.documentElement){t=Je.createDocument(Ut,`template`,null);try{t.documentElement.innerHTML=Wt?M:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ut===Ht?Ze.call(t,z?`html`:`body`)[0]:z?t.documentElement:a},_n=function(e){return Ye.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},vn=function(e){return e=E(e,et,` `),e=E(e,tt,` `),e=E(e,nt,` `),e},yn=function(e){e.normalize();let t=Ye.call(e.ownerDocument||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=vn(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&y(r,e=>{xn(e.content)&&yn(e.content)})},bn=function(e){let t=A?A(e):null;return typeof t!=`string`||V(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==se(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==O(e)||e.childNodes!==ie(e)},xn=function(e){if(!O||typeof e!=`object`||!e)return!1;try{return O(e)===Fe.documentFragment}catch{return!1}},Sn=function(e){if(!O||typeof e!=`object`||!e)return!1;try{return typeof O(e)==`number`}catch{return!1}};function Cn(e,n,r){e.length!==0&&y(e,e=>{e.call(t,n,r,H)})}let wn=function(e,t){return!!(xt&&e.hasChildNodes()&&!Sn(e.firstElementChild)&&k(je,e.textContent)&&k(je,e.innerHTML)||xt&&e.namespaceURI===Ht&&t===`style`&&Sn(e.firstElementChild)||e.nodeType===Fe.processingInstruction||xt&&e.nodeType===Fe.comment&&k(Me,e.data))},Tn=function(e,t){if(!pt[t]&&kn(t)&&(ft.tagNameCheck instanceof RegExp&&k(ft.tagNameCheck,t)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(t)))return!1;if(Mt&&!B[t]){let t=ae(e),n=ie(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Nt?n[i]:g(n[i],!0);t.insertBefore(r,v(e))}}}return un(e),!0},En=function(e,n){if(Cn($e.beforeSanitizeElements,e,null),e!==n&&ae(e)===null)return!0;if(bn(e))return un(e),!0;let r=V(A?A(e):e.nodeName);if(Cn($e.uponSanitizeElement,e,{tagName:r,allowedTags:R}),e!==n&&ae(e)===null)return!0;if(wn(e,r))return un(e),!0;if(pt[r]||!(ht.tagCheck instanceof Function&&ht.tagCheck(r))&&!R[r]){let t=Tn(e,r);return t===!1&&Cn($e.afterSanitizeElements,e,null),t}if((O?O(e):e.nodeType)===Fe.element&&!ln(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&k(Ne,e.innerHTML))return un(e),!0;if(bt&&e.nodeType===Fe.text){let n=vn(e.textContent);e.textContent!==n&&(S(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Cn($e.afterSanitizeElements,e,null),!1},Dn=function(e,t,r){if(mt[t]||xt&&t===`patchsrc`||xt&&t===`for`&&e!==`label`&&e!==`output`||kt&&(t===`id`||t===`name`)&&(r in n||r in en))return!1;let i=ut[t]||ht.attributeCheck instanceof Function&&ht.attributeCheck(t,e);if(!(_t&&k(rt,t))&&!(gt&&k(it,t))){if(!i){if(!(kn(e)&&(ft.tagNameCheck instanceof RegExp&&k(ft.tagNameCheck,e)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(e))&&(ft.attributeNameCheck instanceof RegExp&&k(ft.attributeNameCheck,t)||ft.attributeNameCheck instanceof Function&&ft.attributeNameCheck(t,e))||t===`is`&&ft.allowCustomizedBuiltInElements&&(ft.tagNameCheck instanceof RegExp&&k(ft.tagNameCheck,r)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(r))))return!1}else if(!Rt[t]&&!k(ct,E(r,ot,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ne(r,`data:`)===0&&It[e])&&!(vt&&!k(at,E(r,ot,``)))&&r)return!1}return!0},On=j({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),kn=function(e){return!On[T(e)]&&k(st,e)},An=function(e,t,n,r){if(le&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return We(r);case`TrustedScriptURL`:return Ge(r)}return r},jn=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),bn(e)?un(e):x(t.removed)}catch{fn(n,e)}},Mn=function(e){Cn($e.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||bn(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ut,forceKeepAttr:void 0},r=t.length,i=V(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=V(o),u=c,d=o===`value`?u:re(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,Cn($e.uponSanitizeAttribute,e,n),d=n.attrValue,At&&(l===`id`||l===`name`)&&ne(d,jt)!==0&&(fn(o,e),d=jt+d),xt&&k(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){fn(o,e);continue}if(l===`attributename`&&te(d,`href`)){fn(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){fn(o,e);continue}if(!yt&&k(Pe,d)){fn(o,e);continue}if(bt&&(d=vn(d)),!Dn(i,l,d)){fn(o,e);continue}d=An(i,l,s,d),d!==u&&jn(e,o,s,d)}}Cn($e.afterSanitizeAttributes,e,null)},Nn=function(e){let t=null,n=_n(e);for(Cn($e.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Cn($e.uponSanitizeShadowNode,t,null),En(t,e),Mn(t),xn(t.content)&&Nn(t.content),(O?O(t):t.nodeType)===Fe.element){let e=oe(t);xn(e)&&(Pn(e),Nn(e))}Cn($e.afterSanitizeShadowDOM,e,null)},Pn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Nn(e.shadow);continue}let n=e.node,r=(O?O(n):n.nodeType)===Fe.element,i=ie(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=A?A(n):null;if(typeof e==`string`&&V(e)===`template`){let e=n.content;xn(e)&&t.push({node:e,shadow:null})}}if(r){let e=oe(n);xn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Wt=!e,Wt&&(e=`<!-->`),typeof e!=`string`&&!Sn(e)&&(e=ue(e),typeof e!=`string`))throw ce(`dirty is not a string, aborting`);if(!t.isSupported)return e;St?(R=Ct,ut=wt):nn(n),($e.uponSanitizeElement.length>0||$e.uponSanitizeAttribute.length>0)&&(R=N(R)),$e.uponSanitizeAttribute.length>0&&(ut=N(ut)),t.removed=[];let c=Nt&&typeof e!=`string`&&Sn(e);if(c){hn(e);let t=A?A(e):e.nodeName;if(typeof t==`string`){let n=V(t);if(!R[n]||pt[n])throw dn(e),ce(`root node is forbidden and cannot be sanitized in-place`)}if(bn(e))throw dn(e),ce(`root node is clobbered and cannot be sanitized in-place`);try{Pn(e)}catch(t){throw dn(e),t}}else if(Sn(e))i=gn(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Fe.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Pn(a);else{if(!Et&&!bt&&!z&&e.indexOf(`<`)===-1)return le&&Ot?We(e):e;if(i=gn(e),!i)return Et?null:Ot?M:``}i&&Tt&&un(i.firstChild);let l=c?e:i,u=_n(l);try{for(;o=u.nextNode();)En(o,l),Mn(o),xn(o.content)&&Nn(o.content)}catch(n){throw c&&(dn(e),y(t.removed,e=>{e.element&&mn(e.element)})),n}if(c)return y(t.removed,e=>{e.element&&mn(e.element)}),bt&&yn(e),e;if(Et){if(bt&&yn(i),Dt)for(s=Xe.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ut.shadowroot||ut.shadowrootmode)&&(s=Qe.call(r,s,!0)),s}let d=z?i.outerHTML:i.innerHTML;return z&&R[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&k(ke,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
12
+ `+d),bt&&(d=vn(d)),le&&Ot?We(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};nn(e),St=!0,Ct=R,wt=ut},t.clearConfig=function(){H=null,St=!1,Ct=null,wt=null,le=Be,M=``},t.isValidAttribute=function(e,t,n){H||nn({});let r=V(e),i=V(t);return Dn(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&D($e,e)&&S($e[e],t)},t.removeHook=function(e,t){if(D($e,e)){if(t!==void 0){let n=b($e[e],t);return n===-1?void 0:C($e[e],n,1)[0]}return x($e[e])}},t.removeHooks=function(e){D($e,e)&&($e[e]=[])},t.removeAllHooks=function(){$e=Re()},t}t.exports=ze()}));e(((e,t)=>{t.exports=self.DOMPurify||(self.DOMPurify=Bn().default||Bn())}))();var Vn=new Set([`font-family`,`font-size`,`text-align`,`margin-left`,`background-color`]),Hn=(e,t)=>{let n=t.trim().toLowerCase();if(e===`font-family`)return n===`serif`||n===`monospace`?n:null;if(e===`font-size`)return[`12px`,`16px`,`20px`,`28px`].includes(n)?n:null;if(e===`text-align`)return[`left`,`center`,`right`,`justify`].includes(n)?n:null;if(e===`margin-left`){let e=/^([0-9]{1,3})px$/.exec(n);if(!e)return null;let t=Number.parseInt(e[1],10);return t>=0&&t%24==0?`${t}px`:null}return e===`background-color`?n:null},Un=e=>{if(!e)return null;let t=e.split(`;`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{let t=e.indexOf(`:`);if(t<0)return null;let n=e.slice(0,t).trim().toLowerCase(),r=e.slice(t+1).trim();if(!Vn.has(n))return null;let i=Hn(n,r);return i?`${n}:${i}`:null}).filter(e=>!!e);return t.length===0?null:t.join(`;`)};new R({nodes:{doc:{content:`block+`},paragraph:{content:`inline*`,group:`block`,attrs:{style:{default:null},dir:{default:null}},parseDOM:[{tag:`p`,getAttrs:e=>e instanceof HTMLElement?{style:Un(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:null}],toDOM:e=>{let t={};return e.attrs.style&&(t.style=e.attrs.style),e.attrs.dir&&(t.dir=e.attrs.dir),[`p`,t,0]}},heading:{attrs:{level:{default:1},style:{default:null},dir:{default:null}},content:`inline*`,group:`block`,defining:!0,parseDOM:[{tag:`h1`,getAttrs:e=>e instanceof HTMLElement?{level:1,style:Un(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:1}},{tag:`h2`,getAttrs:e=>e instanceof HTMLElement?{level:2,style:Un(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:2}},{tag:`h3`,getAttrs:e=>e instanceof HTMLElement?{level:3,style:Un(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:3}},{tag:`h4`,getAttrs:e=>e instanceof HTMLElement?{level:4,style:Un(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:4}},{tag:`h5`,getAttrs:e=>e instanceof HTMLElement?{level:5,style:Un(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:5}},{tag:`h6`,getAttrs:e=>e instanceof HTMLElement?{level:6,style:Un(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:6}}],toDOM:e=>{let t={};return e.attrs.style&&(t.style=e.attrs.style),e.attrs.dir&&(t.dir=e.attrs.dir),[`h${d(Number(e.attrs.level)||1,1,6)}`,t,0]}},blockquote:{content:`block+`,group:`block`,attrs:{style:{default:null},dir:{default:null}},parseDOM:[{tag:`blockquote`,getAttrs:e=>e instanceof HTMLElement?{style:Un(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:null}],toDOM:e=>{let t={};return e.attrs.style&&(t.style=e.attrs.style),e.attrs.dir&&(t.dir=e.attrs.dir),[`blockquote`,t,0]}},code_block:{content:`text*`,group:`block`,code:!0,defining:!0,marks:``,attrs:{language:{default:null},style:{default:null},dir:{default:null}},parseDOM:[{tag:`pre`,preserveWhitespace:`full`,getAttrs:e=>{if(!(e instanceof HTMLElement))return null;let t=e.querySelector(`code`),n=null;if(t){let e=/language-([a-z0-9_-]+)/i.exec(t.className);e&&(n=e[1])}return{language:n||e.getAttribute(`data-language`)||null,style:Un(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}}}],toDOM:e=>{let t={};e.attrs.style&&(t.style=e.attrs.style),e.attrs.dir&&(t.dir=e.attrs.dir),e.attrs.language&&(t[`data-language`]=e.attrs.language);let n={};return e.attrs.language&&(n.class=`language-${e.attrs.language}`),[`pre`,t,[`code`,n,0]]}},task_list:{content:`task_item+`,group:`block`,parseDOM:[{tag:`ul[data-type='task_list']`},{tag:`ul.task-list`},{tag:`ul.az-task-list`}],toDOM:()=>[`ul`,{"data-type":`task_list`,class:`az-task-list`},0]},task_item:{content:`paragraph block*`,defining:!0,attrs:{checked:{default:!1},style:{default:null}},parseDOM:[{tag:`li[data-type='task_item']`,getAttrs:e=>e instanceof HTMLElement?{checked:e.getAttribute(`data-checked`)===`true`,style:Un(e.getAttribute(`style`)||``)}:null},{tag:`li.task-item`,getAttrs:e=>e instanceof HTMLElement?{checked:e.classList.contains(`checked`)||e.getAttribute(`data-checked`)===`true`,style:Un(e.getAttribute(`style`)||``)}:null},{tag:`li.az-task-item`,getAttrs:e=>e instanceof HTMLElement?{checked:e.classList.contains(`az-task-item-checked`)||e.getAttribute(`data-checked`)===`true`,style:Un(e.getAttribute(`style`)||``)}:null}],toDOM:e=>{let t={"data-type":`task_item`,"data-checked":e.attrs.checked?`true`:`false`,class:e.attrs.checked?`az-task-item az-task-item-checked`:`az-task-item`};return e.attrs.style&&(t.style=e.attrs.style),[`li`,t,0]}},bullet_list:{content:`list_item+`,group:`block`,parseDOM:[{tag:`ul`,getAttrs:e=>e instanceof HTMLElement&&(e.getAttribute(`data-type`)===`task_list`||e.classList.contains(`task-list`)||e.classList.contains(`az-task-list`))?!1:null}],toDOM:()=>[`ul`,0]},ordered_list:{attrs:{order:{default:1}},content:`list_item+`,group:`block`,parseDOM:[{tag:`ol`,getAttrs:e=>e instanceof HTMLOListElement?{order:e.start||1}:{order:1}}],toDOM:e=>[`ol`,{start:e.attrs.order||1},0]},list_item:{content:`paragraph block*`,defining:!0,attrs:{style:{default:null}},parseDOM:[{tag:`li`,getAttrs:e=>e instanceof HTMLElement?e.getAttribute(`data-type`)===`task_item`||e.classList.contains(`task-item`)||e.classList.contains(`az-task-item`)?!1:{style:Un(e.getAttribute(`style`)||``)}:null}],toDOM:e=>{let t={};return e.attrs.style&&(t.style=e.attrs.style),[`li`,t,0]}},horizontal_rule:{group:`block`,parseDOM:[{tag:`hr`}],toDOM:()=>[`hr`,{class:`az-horizontal-rule`}]},callout:{content:`block+`,group:`block`,defining:!0,attrs:{type:{default:`info`},style:{default:null}},parseDOM:[{tag:`div[data-callout]`,getAttrs:e=>e instanceof HTMLElement?{type:e.getAttribute(`data-callout`)||`info`,style:Un(e.getAttribute(`style`)||``)}:null},{tag:`div.az-callout`,getAttrs:e=>e instanceof HTMLElement?{type:e.getAttribute(`data-type`)||`info`,style:Un(e.getAttribute(`style`)||``)}:null}],toDOM:e=>{let t={"data-callout":e.attrs.type||`info`,class:`az-callout az-callout-${e.attrs.type||`info`}`};return e.attrs.style&&(t.style=e.attrs.style),[`div`,t,0]}},...yn({tableGroup:`block`,cellContent:`block+`,cellAttributes:{background:{default:null,getFromDOM(e){return e.style.backgroundColor||null},setDOMAttr(e,t){e&&(t.style=(t.style||``)+`background-color: ${e};`)}}}}),image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null},width:{default:null},align:{default:null}},group:`inline`,draggable:!0,parseDOM:[{tag:`img[src]`,getAttrs:e=>e instanceof HTMLElement?{src:e.getAttribute(`src`),alt:e.getAttribute(`alt`),title:e.getAttribute(`title`),width:e.getAttribute(`width`)||null,align:e.getAttribute(`data-align`)||null}:null}],toDOM:e=>{let t={src:e.attrs.src};return e.attrs.alt&&(t.alt=e.attrs.alt),e.attrs.title&&(t.title=e.attrs.title),e.attrs.width&&(t.width=e.attrs.width),e.attrs.align&&(t[`data-align`]=e.attrs.align),[`img`,t]}},video:{inline:!0,attrs:{src:{},controls:{default:`true`}},group:`inline`,parseDOM:[{tag:`video[src]`,getAttrs:e=>e instanceof HTMLElement?{src:e.getAttribute(`src`),controls:e.getAttribute(`controls`)||`true`}:null}],toDOM:e=>[`video`,{src:e.attrs.src,controls:e.attrs.controls}]},text:{group:`inline`},hard_break:{inline:!0,group:`inline`,selectable:!1,parseDOM:[{tag:`br`}],toDOM:()=>[`br`]}},marks:{strong:{parseDOM:[{tag:`strong`},{tag:`b`,getAttrs:()=>null}],toDOM:()=>[`strong`,0]},em:{parseDOM:[{tag:`em`},{tag:`i`,getAttrs:()=>null}],toDOM:()=>[`em`,0]},underline:{parseDOM:[{tag:`u`}],toDOM:()=>[`u`,0]},strike:{parseDOM:[{tag:`s`},{tag:`del`},{tag:`strike`}],toDOM:()=>[`s`,0]},code:{parseDOM:[{tag:`code`}],toDOM:()=>[`code`,0]},style:{attrs:{style:{default:null}},parseDOM:[{tag:`span[style]`,getAttrs:e=>{if(!(e instanceof HTMLElement))return null;let t=Un(e.getAttribute(`style`)||``);return t?{style:t}:!1}}],toDOM:e=>[`span`,{style:e.attrs.style},0]},link:{attrs:{href:{default:null},title:{default:null},target:{default:`_blank`},style:{default:null}},inclusive:!1,parseDOM:[{tag:`a`,getAttrs:e=>{if(!(e instanceof HTMLElement))return!1;let t=e.getAttribute(`href`),n=e.getAttribute(`style`);return!t&&!n?!1:{href:t||null,title:e.getAttribute(`title`)||null,target:e.getAttribute(`target`)||`_blank`,style:Un(n||``)}}}],toDOM:e=>{let t={};return e.attrs.href&&(t.href=e.attrs.href),e.attrs.title&&(t.title=e.attrs.title),e.attrs.target&&e.attrs.href&&(t.target=e.attrs.target),e.attrs.style&&(t.style=e.attrs.style),[`a`,t,0]}},formula:{parseDOM:[{tag:`span[data-formula]`}],toDOM:()=>[`span`,{"data-formula":`true`},0]}}}),typeof Range<`u`&&(Range.prototype.getClientRects||(Range.prototype.getClientRects=()=>[]),Range.prototype.getBoundingClientRect||(Range.prototype.getBoundingClientRect=()=>({top:0,bottom:0,left:0,right:0,width:0,height:0,x:0,y:0,toJSON:()=>({})}))),typeof Element<`u`&&(Element.prototype.getClientRects||(Element.prototype.getClientRects=()=>[]),Element.prototype.getBoundingClientRect||(Element.prototype.getBoundingClientRect=()=>({top:0,bottom:0,left:0,right:0,width:0,height:0,x:0,y:0,toJSON:()=>({})}))),typeof document<`u`&&(document.elementFromPoint||(document.elementFromPoint=()=>null)),(0,l.createContext)(null);var Wn={en:{"common.cancel":`Cancel`,"common.close":`Close`,"autocomplete.noMatchesFound":`No matches found.`,"autocomplete.openOptions":`Open {label}`,"autocomplete.closeOptions":`Close {label}`,"autocomplete.clearSelection":`Clear {label}`,"autocomplete.removeSelection":`Remove {label}`,"hierarchySelect.noOptions":`No options available.`,"hierarchySelect.placeholder":`Select one or more options`,"hierarchySelect.openOptions":`Open {label}`,"hierarchySelect.closeOptions":`Close {label}`,"hierarchySelect.removeSelection":`Remove {label}`,"tagSelect.noOptions":`No options available.`,"tagSelect.placeholder":`Type and press Enter to add tags`,"tagSelect.openOptions":`Open {label}`,"tagSelect.closeOptions":`Close {label}`,"tagSelect.clearSelection":`Clear {label}`,"tagSelect.removeSelection":`Remove {label}`,"tagSelect.createSelection":`Add "{label}"`,"fileDrop.dropTitle":`Drop files here`,"fileDrop.dropHint":`Drag and drop files, or choose from your device.`,"fileDrop.browseFiles":`Browse files`,"fileDrop.fileCount":`{count} file{plural} selected`,"fileDrop.remove":`Remove`,"fileDrop.removeFile":`Remove {name}`,"modal.collapse":`Collapse`,"modal.expand":`Expand`,"dataTable.deleteRecord":`Delete record?`,"dataTable.deleteConfirm":`This will permanently remove the record for`,"dataTable.deleting":`Deleting...`,"dataTable.yesDelete":`Yes, delete`,"dataTable.record":`record`,"dataTable.records":`records`,"dataTable.noMatch":`No records match your search.`,"dataTable.noRecords":`No records yet.`,"dataTable.saveChanges":`Save changes`,"dataTable.cancelEdit":`Cancel edit`,"dataTable.editRow":`Edit row`,"dataTable.perPage":`/ page`,"dataTable.previousPage":`Previous page`,"dataTable.nextPage":`Next page`,"dataTable.rowsPerPage":`Rows per page`,"dataTable.rowHasMissing":`row has missing fields`,"dataTable.rowsHaveMissing":`rows have missing fields`,"dataTable.selectAll":`Select all`,"dataTable.selectRow":`Select {label}`,"dataTable.selected":`{count} selected`,"dataTable.deleteSelected":`Delete selected`,"dataTable.deselectAll":`Deselect all`,"dataTable.bulkDeleteTitle":`Delete {count} records?`,"dataTable.bulkDeleteConfirm":`This will permanently remove {count} selected records. This action cannot be undone.`,"dataTable.filter":`Filter`,"dataTable.filterByColumn":`Filter by column`,"dataTable.clearFilters":`Clear filters`,"dataTable.addFilter":`Add filter`,"dataTable.removeFilter":`Remove filter`,"dataTable.removeAllFilters":`Remove all filters`,"dataTable.filterOperator":`Operator`,"dataTable.selectOption":`Select...`,"dataTable.opContains":`contains`,"dataTable.opNotContains":`does not contain`,"dataTable.opEquals":`equals`,"dataTable.opStartsWith":`starts with`,"dataTable.opEndsWith":`ends with`,"dataTable.opEqual":`=`,"dataTable.opGreaterThan":`>`,"dataTable.opLessThan":`<`,"dataTable.opGreaterThanOrEqual":`>=`,"dataTable.opLessThanOrEqual":`<=`,"dataTable.opBetween":`between`,"dataTable.opIs":`is`,"dataTable.opBefore":`before`,"dataTable.opAfter":`after`,"dataTable.opIsOneOf":`is one of`,"dataTable.opAnd":`and`,"dataTable.sort":`Sort`,"dataTable.sortByColumn":`Sort by column`,"dataTable.clearSort":`Clear sort`,"dataTable.sortedByLabel":`Sorted:`,"dataTable.group":`Group`,"dataTable.groupByColumn":`Group by column`,"dataTable.groupedByLabel":`Grouped:`,"dataTable.clearGrouping":`Clear grouping`,"dataTable.columns":`Columns`,"dataTable.export":`Export`,"dataTable.exportAs":`Export as`,"dataTable.toggleColumns":`Toggle columns`,"dataTable.resetColumns":`Reset columns`,"dataTable.filterColumn":`Filter {column}...`,"dataTable.groupByField":`Group by {column}`,"dataTable.reorderColumn":`Reorder {column}`,"dataTable.mergeCells":`Merge cells`,"dataTable.unmergeCells":`Unmerge cells`,"dataTable.alignCells":`Align cells`,"dataTable.alignLeft":`Align left`,"dataTable.alignCenter":`Align center`,"dataTable.alignRight":`Align right`,"dataTable.formatCells":`Format cells`,"dataTable.bold":`Bold`,"dataTable.italic":`Italic`,"dataTable.underline":`Underline`,"dataTable.clearCellData":`Clear cell data`,"dataTable.clearCellFormatting":`Clear cell formatting`,"dataTable.clearCellSelection":`Clear cell selection`,"dataTable.copiedCells":`Copied {count} cell{plural}`,"dataTable.undo":`Undo`,"dataTable.redo":`Redo`,"dataTable.changesSaved":`Changes saved`,"dataTable.undoApplied":`Undid the latest change`,"dataTable.redoApplied":`Redid the latest change`,"dataTable.dragToFill":`Drag to fill selection`,"dataTable.resetLayout":`Reset layout`,"dataTable.resetAll":`Reset`,"dataTable.switchToInfinite":`Switch to infinite scroll`,"dataTable.switchToPaginated":`Switch to pagination`,"dataTable.loadingMore":`Loading more...`,"treeView.expand":`Expand item`,"treeView.collapse":`Collapse item`,"treeView.expandItem":`Expand {label}`,"treeView.collapseItem":`Collapse {label}`,"datePicker.placeholder":`Select a date`,"datePicker.calendarLabel":`Date picker calendar`,"datePicker.previousMonth":`Previous month`,"datePicker.nextMonth":`Next month`,"datePicker.monthSelect":`Select month`,"datePicker.yearSelect":`Select year`,"dateRangePicker.startPlaceholder":`Start date`,"dateRangePicker.endPlaceholder":`End date`,"dateRangePicker.calendarLabel":`Date range picker calendar`,"dateRangePicker.selectStart":`Select a start date`,"dateRangePicker.selectEnd":`Select an end date`,"errorBoundary.title":`Something went wrong`,"errorBoundary.description":`An unexpected error occurred in this section. You can try again or return to the main panel.`,"errorBoundary.retry":`Try Again`},vi:{"common.cancel":`Hủy`,"common.close":`Đóng`,"autocomplete.noMatchesFound":`Không tìm thấy kết quả phù hợp.`,"autocomplete.openOptions":`Mở {label}`,"autocomplete.closeOptions":`Đóng {label}`,"autocomplete.clearSelection":`Xóa {label}`,"autocomplete.removeSelection":`Bỏ {label}`,"hierarchySelect.noOptions":`Không có lựa chọn nào.`,"hierarchySelect.placeholder":`Chọn một hoặc nhiều mục`,"hierarchySelect.openOptions":`Mở {label}`,"hierarchySelect.closeOptions":`Đóng {label}`,"hierarchySelect.removeSelection":`Bỏ {label}`,"tagSelect.noOptions":`Không có lựa chọn nào.`,"tagSelect.placeholder":`Nhập và nhấn Enter để thêm thẻ`,"tagSelect.openOptions":`Mở {label}`,"tagSelect.closeOptions":`Đóng {label}`,"tagSelect.clearSelection":`Xóa {label}`,"tagSelect.removeSelection":`Bỏ {label}`,"tagSelect.createSelection":`Thêm "{label}"`,"fileDrop.dropTitle":`Thả tệp vào đây`,"fileDrop.dropHint":`Kéo thả tệp hoặc chọn từ thiết bị của bạn.`,"fileDrop.browseFiles":`Chọn tệp`,"fileDrop.fileCount":`Đã chọn {count} tệp`,"fileDrop.remove":`Xóa`,"fileDrop.removeFile":`Xóa {name}`,"modal.collapse":`Thu gọn`,"modal.expand":`Mở rộng`,"dataTable.deleteRecord":`Xóa bản ghi?`,"dataTable.deleteConfirm":`Thao tác này sẽ xóa vĩnh viễn bản ghi của`,"dataTable.deleting":`Đang xóa...`,"dataTable.yesDelete":`Có, xóa`,"dataTable.record":`bản ghi`,"dataTable.records":`bản ghi`,"dataTable.noMatch":`Không có bản ghi nào khớp với tìm kiếm.`,"dataTable.noRecords":`Chưa có bản ghi nào.`,"dataTable.saveChanges":`Lưu thay đổi`,"dataTable.cancelEdit":`Hủy chỉnh sửa`,"dataTable.editRow":`Chỉnh sửa hàng`,"dataTable.perPage":`/ trang`,"dataTable.previousPage":`Trang trước`,"dataTable.nextPage":`Trang sau`,"dataTable.rowsPerPage":`Số hàng mỗi trang`,"dataTable.rowHasMissing":`hàng thiếu trường dữ liệu`,"dataTable.rowsHaveMissing":`hàng thiếu trường dữ liệu`,"dataTable.selectAll":`Chọn tất cả`,"dataTable.selectRow":`Chọn {label}`,"dataTable.selected":`{count} đã chọn`,"dataTable.deleteSelected":`Xóa đã chọn`,"dataTable.deselectAll":`Bỏ chọn tất cả`,"dataTable.bulkDeleteTitle":`Xóa {count} bản ghi?`,"dataTable.bulkDeleteConfirm":`Thao tác này sẽ xóa vĩnh viễn {count} bản ghi đã chọn. Không thể hoàn tác.`,"dataTable.filter":`Lọc`,"dataTable.filterByColumn":`Lọc theo cột`,"dataTable.clearFilters":`Xóa bộ lọc`,"dataTable.addFilter":`Thêm bộ lọc`,"dataTable.removeFilter":`Xóa bộ lọc`,"dataTable.removeAllFilters":`Xóa tất cả bộ lọc`,"dataTable.filterOperator":`Toán tử`,"dataTable.selectOption":`Chọn...`,"dataTable.opContains":`chứa`,"dataTable.opNotContains":`không chứa`,"dataTable.opEquals":`bằng`,"dataTable.opStartsWith":`bắt đầu bằng`,"dataTable.opEndsWith":`kết thúc bằng`,"dataTable.opEqual":`=`,"dataTable.opGreaterThan":`>`,"dataTable.opLessThan":`<`,"dataTable.opGreaterThanOrEqual":`>=`,"dataTable.opLessThanOrEqual":`<=`,"dataTable.opBetween":`trong khoảng`,"dataTable.opIs":`là`,"dataTable.opBefore":`trước`,"dataTable.opAfter":`sau`,"dataTable.opIsOneOf":`là một trong`,"dataTable.opAnd":`và`,"dataTable.sort":`Sắp xếp`,"dataTable.sortByColumn":`Sắp xếp theo cột`,"dataTable.clearSort":`Xóa sắp xếp`,"dataTable.sortedByLabel":`Sắp xếp:`,"dataTable.group":`Nhóm`,"dataTable.groupByColumn":`Nhóm theo cột`,"dataTable.groupedByLabel":`Nhóm:`,"dataTable.clearGrouping":`Xóa nhóm`,"dataTable.columns":`Cột`,"dataTable.export":`Xuất`,"dataTable.exportAs":`Xuất dưới dạng`,"dataTable.toggleColumns":`Bật/tắt cột`,"dataTable.resetColumns":`Đặt lại cột`,"dataTable.filterColumn":`Lọc {column}...`,"dataTable.groupByField":`Nhóm theo {column}`,"dataTable.reorderColumn":`Sắp xếp lại {column}`,"dataTable.mergeCells":`Gộp ô`,"dataTable.unmergeCells":`Tách ô`,"dataTable.alignCells":`Căn chỉnh ô`,"dataTable.alignLeft":`Căn trái`,"dataTable.alignCenter":`Căn giữa`,"dataTable.alignRight":`Căn phải`,"dataTable.formatCells":`Định dạng ô`,"dataTable.bold":`In đậm`,"dataTable.italic":`In nghiêng`,"dataTable.underline":`Gạch chân`,"dataTable.clearCellData":`Xóa dữ liệu ô`,"dataTable.clearCellFormatting":`Xóa định dạng ô`,"dataTable.clearCellSelection":`Bỏ chọn ô`,"dataTable.copiedCells":`Đã sao chép {count} ô`,"dataTable.undo":`Hoàn tác`,"dataTable.redo":`Làm lại`,"dataTable.changesSaved":`Đã lưu thay đổi`,"dataTable.undoApplied":`Đã hoàn tác thay đổi gần nhất`,"dataTable.redoApplied":`Đã làm lại thay đổi gần nhất`,"dataTable.dragToFill":`Kéo để điền vùng chọn`,"dataTable.resetLayout":`Đặt lại bố cục`,"dataTable.resetAll":`Đặt lại`,"dataTable.switchToInfinite":`Chuyển sang cuộn vô hạn`,"dataTable.switchToPaginated":`Chuyển sang phân trang`,"dataTable.loadingMore":`Đang tải thêm...`,"treeView.expand":`Mở rộng mục`,"treeView.collapse":`Thu gọn mục`,"treeView.expandItem":`Mở rộng {label}`,"treeView.collapseItem":`Thu gọn {label}`,"datePicker.placeholder":`Chọn ngày`,"datePicker.calendarLabel":`Lịch chọn ngày`,"datePicker.previousMonth":`Tháng trước`,"datePicker.nextMonth":`Tháng sau`,"datePicker.monthSelect":`Chọn tháng`,"datePicker.yearSelect":`Chọn năm`,"dateRangePicker.startPlaceholder":`Ngày bắt đầu`,"dateRangePicker.endPlaceholder":`Ngày kết thúc`,"dateRangePicker.calendarLabel":`Lịch chọn khoảng ngày`,"dateRangePicker.selectStart":`Chọn ngày bắt đầu`,"dateRangePicker.selectEnd":`Chọn ngày kết thúc`,"errorBoundary.title":`Đã xảy ra lỗi`,"errorBoundary.description":`Đã xảy ra lỗi không mong muốn trong phần này. Bạn có thể thử lại hoặc quay lại bảng điều khiển chính.`,"errorBoundary.retry":`Thử lại`}},Gn=`automate-form-wizard-document-overlay-root`;function Kn(e){return e===`vi`?`vi`:`en`}function qn(e,t){if(!t)return e;let n=e;for(let[e,r]of Object.entries(t))n=n.replaceAll(`{${e}}`,String(r));return n}function Jn(e){return(t,n)=>qn(Wn[e][t]??t,n)}function Yn(){if(typeof document>`u`||!document.body)return null;let e=document.getElementById(Gn);if(e instanceof HTMLElement)return e;let t=document.createElement(`div`);return t.id=Gn,document.body.appendChild(t),t}var Xn=(0,l.createContext)({locale:`en`,resolveOverlayRoot:Yn,t:Jn(`en`)});function Zn({children:e,locale:t=`en`,resolveOverlayRoot:n=Yn,theme:r,translate:i}){let a=Kn(t),o=(0,p.jsx)(Xn.Provider,{value:{locale:a,resolveOverlayRoot:n,t:i??Jn(a)},children:e});return r?(0,p.jsx)(D,{theme:r,children:o}):o}function Qn(){let{locale:e,t}=(0,l.useContext)(Xn);return{locale:e,t}}function $n(){return(0,l.useContext)(Xn).resolveOverlayRoot()}var er=`az:duration-200 az:ease`;function tr(e,t,n=200){return e==null?n:typeof e==`number`?e:e[t]??e.enter??e.exit??n}function nr(e,t={}){return e===!1?{enabled:!1,type:t.type??`fade`}:e===!0||e==null?{enabled:!0,type:t.type??`fade`,direction:t.direction,timeout:t.timeout,mountOnEnter:t.mountOnEnter,unmountOnExit:t.unmountOnExit,disablePrefersReducedMotion:t.disablePrefersReducedMotion}:e.enabled===!1?{enabled:!1,type:e.type??t.type??`fade`}:{enabled:!0,type:e.type??t.type??`fade`,direction:e.direction??t.direction,timeout:e.timeout??t.timeout,mountOnEnter:e.mountOnEnter??t.mountOnEnter,unmountOnExit:e.unmountOnExit??t.unmountOnExit,disablePrefersReducedMotion:e.disablePrefersReducedMotion??t.disablePrefersReducedMotion}}function rr(e,t){return nr(e,t).enabled}function ir(e,t){if(t)switch(e){case`up`:return`az:translate-y-2`;case`down`:return`-az:translate-y-2`;case`left`:return`az:translate-x-2`;case`right`:return`-az:translate-x-2`}return`az:translate-x-0 az:translate-y-0`}function ar(e,t,n=`up`,r=!1){let i=t===`exited`||t===`exiting`||t===`entering`&&!r;switch(e){case`fade`:return[`az:transition-opacity`,er,i?`az:opacity-0`:`az:opacity-100`].join(` `);case`grow`:return[`az:transition-[opacity,transform]`,er,`az:origin-center`,i?`az:scale-95 az:opacity-0`:`az:scale-100 az:opacity-100`].join(` `);case`zoom`:return[`az:transition-transform`,er,`az:origin-center`,i?`az:scale-0`:`az:scale-100`].join(` `);case`slide`:return[`az:transition-[opacity,transform]`,er,i?`az:opacity-0`:`az:opacity-100`,ir(n,i)].join(` `);case`collapse`:return[`az:overflow-hidden az:transition-[height,opacity]`,er].join(` `);default:return``}}function or(e,t){return e===`top`?`down`:e===`bottom`?`up`:t===`left`?`right`:t===`right`?`left`:`up`}function sr(){return m(`(prefers-reduced-motion: reduce)`)}function cr({appear:e=!1,disablePrefersReducedMotion:t=!1,in:n,mountOnEnter:r=!1,onEnter:i,onEntering:a,onEntered:o,onExit:s,onExiting:c,onExited:u,timeout:d,unmountOnExit:f=!1}){let p=sr()&&!t,[m,h]=(0,l.useState)(()=>!(r&&!n)),[g,_]=(0,l.useState)(()=>r&&!n?`exited`:n?e?`entering`:`entered`:`exited`),v=(0,l.useRef)(null),y=(0,l.useRef)(null),b=(0,l.useRef)(!e),x=(0,l.useRef)(g),S=(0,l.useRef)(n),C=(0,l.useRef)({onEnter:i,onEntering:a,onEntered:o,onExit:s,onExiting:c,onExited:u});x.current=g,S.current=n,C.current={onEnter:i,onEntering:a,onEntered:o,onExit:s,onExiting:c,onExited:u};let w=(0,l.useCallback)(()=>{y.current!=null&&(window.clearTimeout(y.current),y.current=null)},[]),T=(0,l.useCallback)(e=>{v.current=e},[]),ee=(0,l.useCallback)((e,t)=>{if(w(),p||e<=0){t();return}let n=v.current,r=()=>{y.current=null,t()};if(n){let e=t=>{t.target===n&&(n.removeEventListener(`transitionend`,e),r())};n.addEventListener(`transitionend`,e)}y.current=window.setTimeout(r,e+16)},[w,p]),te=(0,l.useCallback)(()=>{!m&&r&&h(!0),C.current.onEnter?.(),_(`entering`),C.current.onEntering?.();let t=tr(d,e&&!b.current?`appear`:`enter`);ee(t,()=>{S.current&&(_(`entered`),C.current.onEntered?.(),b.current=!0)})},[e,r,m,d,ee]),E=(0,l.useCallback)(()=>{C.current.onExit?.(),_(`exiting`),C.current.onExiting?.();let e=tr(d,`exit`);ee(e,()=>{_(`exited`),C.current.onExited?.(),f&&h(!1)})},[d,f,ee]);return(0,l.useEffect)(()=>{if(n){if(x.current===`entered`||x.current===`entering`){m||h(!0);return}te();return}!m||x.current===`exited`||x.current===`exiting`||E()},[n,m,te,E]),(0,l.useEffect)(()=>()=>w(),[w]),{mounted:m,phase:g,registerNode:T}}function U(...e){return e.filter(Boolean).join(` `)}function lr(e){if(e!==void 0)return typeof e==`number`?`${e}px`:e}function ur(e){if(e!==void 0)return typeof e==`number`?`${e*4}px`:e}function dr({appear:e=!1,as:t=`div`,children:n,className:r,disablePrefersReducedMotion:i=!1,in:a=!1,mountOnEnter:o=!1,onEnter:s,onEntering:c,onEntered:u,onExit:d,onExiting:f,onExited:p,phaseClassName:m,style:h,styleForPhase:g,timeout:_,unmountOnExit:v=!1,...y}){let{mounted:b,phase:x,registerNode:S}=cr({appear:e,disablePrefersReducedMotion:i,in:a,mountOnEnter:o,onEnter:s,onEntering:c,onEntered:u,onExit:d,onExiting:f,onExited:p,timeout:_,unmountOnExit:v}),C=(0,l.useRef)(null),[w,T]=(0,l.useState)(x===`entered`);if((0,l.useEffect)(()=>{S(C.current)},[b,x,S]),(0,l.useEffect)(()=>{if(x===`entering`){T(!1);let e=window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>T(!0))});return()=>window.cancelAnimationFrame(e)}if(x===`entered`){T(!0);return}T(!1)},[x]),!b)return null;let ee=g?g(x,w,h):h;return(0,l.createElement)(t,{...y,className:U(m?.(x,w),r),"data-transition-active":w?`true`:`false`,"data-transition-phase":x,ref:C,style:ee},n)}function fr(e){return(0,p.jsx)(dr,{...e,phaseClassName:(e,t)=>ar(`fade`,e,`up`,t)})}function pr(e){return(0,p.jsx)(dr,{...e,phaseClassName:(e,t)=>ar(`grow`,e,`up`,t)})}function mr({direction:e=`up`,...t}){return(0,p.jsx)(dr,{...t,phaseClassName:(t,n)=>ar(`slide`,t,e,n)})}var hr={"danger-icon":`az:size-5.5 az:inline-flex az:items-center az:justify-center az:border az:border-[rgba(255,100,100,0.3)] az:rounded-full az:bg-[rgba(255,100,100,0.08)] az:text-[rgba(255,140,140,0.8)] az:[font:inherit] az:text-xs az:leading-none az:cursor-pointer az:hover:bg-[rgba(255,80,80,0.22)] az:hover:text-[#ffaaaa]`,ghost:`az:px-2.5 az:py-1.25 az:rounded-xl az:border az:border-addon-accent-border az:bg-transparent az:text-addon-accent az:[font:inherit] az:text-xs az:font-medium az:cursor-pointer az:whitespace-nowrap az:hover:bg-addon-accent-active`,icon:`az:size-5.5 az:inline-flex az:items-center az:justify-center az:border az:border-addon-border-icon az:rounded-full az:bg-addon-surface az:text-addon-subtle az:[font:inherit] az:text-[13px] az:leading-none az:cursor-pointer az:hover:bg-addon-surface-hover az:hover:text-addon-text`,primary:`az:appearance-none az:border-0 az:rounded-2xl az:py-2 az:px-4 az:[font:inherit] az:text-xs az:font-bold az:cursor-pointer az:transition-[transform,opacity,background] az:duration-160 az:ease az:hover:-translate-y-px az:hover:brightness-110 az:disabled:opacity-[0.48] az:disabled:cursor-not-allowed az:disabled:translate-y-0 az:bg-[linear-gradient(135deg,#ffb347_0%,#ff7b54_100%)] az:text-addon-btn-text`,secondary:`az:appearance-none az:border-0 az:rounded-2xl az:py-2 az:px-3 az:[font:inherit] az:text-xs az:font-bold az:cursor-pointer az:transition-[transform,opacity,background] az:duration-160 az:ease az:hover:-translate-y-px az:hover:bg-addon-surface-hover az:disabled:opacity-[0.48] az:disabled:cursor-not-allowed az:disabled:translate-y-0 az:bg-addon-surface az:text-addon-text`},gr={lg:`az:py-2.5 az:px-5 az:text-sm`,md:``,sm:`az:py-1 az:px-2.5 az:text-[11px]`},_r=(0,l.forwardRef)(function(e,t){let n=k({name:`Button`,props:e}),r=O(),{children:i,className:a,color:o,disabled:s=!1,endIcon:c,loading:l=!1,size:u=`md`,slotProps:d,slots:f,startIcon:m,style:h,sx:g,type:_=`button`,variant:v=`primary`,...y}=n,b={...n,disabled:!!(s||l),loading:l,size:u,variant:v},x=r.components?.Button??r.components?.AzButton,S=le(x?.variants,b),C=j(x?.styleOverrides?.root,{ownerState:b,theme:r}),w=ue(g,r),T=hr[v]??``,ee=gr[u]??``,te=ce(d?.root,b),E=ce(d?.startIcon,b),ne=ce(d?.endIcon,b),re=ce(d?.loadingIndicator,b),ie=U(T,ee,S.className,C.className,!!(m||c||l)&&`az:inline-flex az:items-center az:justify-center az:gap-1.5`,te.className,a),ae={...S.style,...C.style,...w,...h,...te.style},oe=f?.root??`button`,se=f?.startIcon??`span`,D=f?.endIcon??`span`,A=f?.loadingIndicator??`span`;return(0,p.jsxs)(oe,{className:ie,disabled:s||l,ref:t,style:ae,type:_,...y,...te,children:[l?(0,p.jsx)(A,{className:U(`az:animate-spin az:inline-block`,re.className),...re,children:`◌`}):m&&(0,p.jsx)(se,{className:U(`az:inline-flex az:items-center`,E.className),...E,children:m}),i,!l&&c&&(0,p.jsx)(D,{className:U(`az:inline-flex az:items-center`,ne.className),...ne,children:c})]})});function vr(e,t){let n=l.Children.toArray(e);return n.flatMap((e,r)=>r===n.length-1?[e]:[e,(0,l.isValidElement)(t)?(0,l.cloneElement)(t,{key:`stack-divider-${r}`}):(0,p.jsx)(l.Fragment,{children:t},`stack-divider-${r}`)])}function yr({alignItems:e,children:t,component:n,direction:r=`column`,divider:i,justifyContent:a,spacing:o=0,style:s,wrap:c,...l}){let u=n??`div`,d=i?vr(t,i):t;return(0,p.jsx)(u,{style:{alignItems:e,display:`flex`,flexDirection:r,gap:ur(o),justifyContent:a,minWidth:r.startsWith(`row`)?0:void 0,...s,flexWrap:c},...l,children:d})}var br={body1:`p`,body2:`p`,button:`span`,caption:`span`,h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,inherit:`span`,overline:`span`,subtitle1:`p`,subtitle2:`p`},xr={body1:`az:m-0 az:text-sm az:leading-5 az:font-normal az:text-addon-text`,body2:`az:m-0 az:text-xs az:leading-[18px] az:font-normal az:text-addon-muted`,button:`az:m-0 az:text-xs az:leading-4 az:font-bold az:tracking-[0.08em] az:uppercase az:text-addon-text`,caption:`az:m-0 az:text-[11px] az:leading-4 az:font-normal az:text-addon-dim`,h1:`az:m-0 az:text-[32px] az:leading-10 az:font-bold az:text-addon-text`,h2:`az:m-0 az:text-[28px] az:leading-9 az:font-bold az:text-addon-text`,h3:`az:m-0 az:text-2xl az:leading-8 az:font-bold az:text-addon-text`,h4:`az:m-0 az:text-xl az:leading-7 az:font-bold az:text-addon-text`,h5:`az:m-0 az:text-lg az:leading-7 az:font-bold az:text-addon-text`,h6:`az:m-0 az:text-base az:leading-6 az:font-bold az:text-addon-text`,inherit:`az:m-0 az:[font:inherit] az:text-inherit`,overline:`az:m-0 az:text-[11px] az:leading-4 az:font-extrabold az:tracking-[0.12em] az:uppercase az:text-addon-faint`,subtitle1:`az:m-0 az:text-sm az:leading-5 az:font-bold az:text-addon-text`,subtitle2:`az:m-0 az:text-[13px] az:leading-[18px] az:font-semibold az:text-addon-muted`},Sr={accent:`az:text-addon-accent`,default:`az:text-addon-text`,dim:`az:text-addon-dim`,error:`az:text-addon-error`,faint:`az:text-addon-faint`,muted:`az:text-addon-muted`,subtle:`az:text-addon-subtle`,success:`az:text-addon-success`,warning:`az:text-addon-warning`};function Cr(e){let t=k({name:`Typography`,props:e}),n=O(),{align:r=`inherit`,className:i,color:a=`default`,component:o,gutterBottom:s=!1,noWrap:c=!1,style:l,sx:u,variant:d=`body1`,...f}=t,m={align:r,color:a,gutterBottom:s,noWrap:c,variant:d,...t},h=n.components?.Typography??n.components?.AzTypography,g=le(h?.variants,m),_=j(h?.styleOverrides?.root,{ownerState:m,theme:n}),v=ue(u,n),y=o??br[d],b=Sr[a],x=b?void 0:a;return(0,p.jsx)(y,{className:U(xr[d],b,g.className,_.className,s&&`az:mb-4`,c&&`az:block az:min-w-0 az:overflow-hidden az:text-ellipsis az:whitespace-nowrap`,i),style:{color:x,textAlign:r===`inherit`?void 0:r,...g.style,..._.style,...v,...l},...f})}var wr={small:`az:box-border az:min-h-[32px] az:py-1 az:text-xs az:leading-none`,medium:`az:box-border az:min-h-[40px] az:py-1.5 az:text-sm az:leading-none`,large:`az:box-border az:min-h-[50px] az:py-2 az:text-base az:leading-none`},Tr={small:{full:`az:rounded-lg`,start:`az:rounded-l-lg`,end:`az:rounded-r-lg`},medium:{full:`az:rounded-xl`,start:`az:rounded-l-xl`,end:`az:rounded-r-xl`},large:{full:`az:rounded-2xl`,start:`az:rounded-l-2xl`,end:`az:rounded-r-2xl`}},Er=`az:box-border az:inline-flex az:shrink-0 az:items-stretch az:self-stretch az:min-h-0 az:border az:bg-addon-surface az:overflow-hidden az:[&_button]:box-border az:[&_button]:inline-flex az:[&_button]:h-full az:[&_button]:min-h-0 az:[&_button]:items-center az:[&_button]:justify-center az:[&_button]:rounded-none az:[&_button]:hover:translate-y-0`,Dr={accent:`az:border-addon-accent-border`,default:`az:border-addon-border`};function Or(e){return e!=null&&e!==!1}function kr(e,t){return Or(e)||Or(t)}function Ar(e,t){let n=Tr[e];return!t.hasStartAddon&&!t.hasEndAddon?n.full:t.hasStartAddon&&t.hasEndAddon?`az:rounded-none`:t.hasStartAddon?n.end:n.start}function jr({border:e=`accent`,children:t,className:n,endAddon:r,fullWidth:i=!0,size:a=`medium`,startAddon:o}){let s=Or(o),c=Or(r);if(!s&&!c)return t;let l=Dr[e],u=Tr[a];return(0,p.jsxs)(`div`,{className:U(`az:min-w-0 az:items-stretch`,i?`az:flex az:w-full`:`az:inline-flex az:w-fit az:max-w-full`,n),role:`group`,children:[s?(0,p.jsx)(`div`,{className:U(Er,l,u.start,`az:rounded-r-none az:border-r-0`),children:o}):null,(0,p.jsx)(`div`,{className:U(`az:flex az:min-w-0 az:items-stretch az:[&>*]:box-border az:[&>*]:h-full`,i&&`az:flex-1`,s&&`az:[&>*]:border-l-0`,c&&`az:[&>*]:border-r-0`),children:t}),c?(0,p.jsx)(`div`,{className:U(Er,l,u.end,`az:rounded-l-none az:border-l-0`),children:r}):null]})}var Mr=`az:inline-flex az:size-7 az:shrink-0 az:items-center az:justify-center az:rounded-full az:border-0 az:bg-transparent az:p-0 az:[font:inherit] az:leading-none az:cursor-pointer az:transition-colors az:duration-160`;`${Mr}`,`${Mr}`;function Nr(e){let{className:t,component:n,style:r,sx:i,...a}=k({name:`Box`,props:e}),o=ue(i,O());return(0,p.jsx)(n??`div`,{className:U(`az-box`,t),style:{...o,...r},...a})}var Pr={accent:`az:inline-flex az:items-center az:px-2.5 az:py-1 az:rounded-full az:border az:border-addon-accent-border az:bg-addon-accent-bg az:text-[10px] az:font-extrabold az:tracking-[0.14em] az:uppercase az:text-addon-accent`,default:`az:inline-flex az:items-center az:px-2.5 az:py-1 az:rounded-full az:border az:border-addon-border az:bg-addon-surface az:text-[10px] az:font-extrabold az:tracking-[0.14em] az:uppercase az:text-addon-muted`,success:`az:inline-flex az:items-center az:px-2.5 az:py-1 az:rounded-full az:border az:border-[rgba(185,251,192,0.35)] az:bg-[rgba(185,251,192,0.12)] az:text-[10px] az:font-extrabold az:tracking-[0.14em] az:uppercase az:text-addon-success`,warning:`az:inline-flex az:items-center az:px-2.5 az:py-1 az:rounded-full az:border az:border-[rgba(255,225,168,0.35)] az:bg-[rgba(255,225,168,0.12)] az:text-[10px] az:font-extrabold az:tracking-[0.14em] az:uppercase az:text-[#ffe1a8]`,danger:`az:inline-flex az:items-center az:px-2.5 az:py-1 az:rounded-full az:border az:border-[rgba(255,208,208,0.35)] az:bg-[rgba(255,208,208,0.12)] az:text-[10px] az:font-extrabold az:tracking-[0.14em] az:uppercase az:text-[#ffd0d0]`};function Fr({variant:e=`default`,className:t,...n}){let r=Pr[e];return(0,p.jsx)(`span`,{className:t?`${r} ${t}`:r,...n})}var Ir=[10,25,50];Ir[0],Ir[0];var Lr=`addon-themed-select az:border az:border-addon-accent-border az:bg-addon-surface az:text-addon-text az:[font:inherit] az:appearance-none az:focus:outline-none az:focus:border-[rgba(255,179,71,0.7)] az:focus:shadow-[0_0_0_1px_rgba(255,179,71,0.35)]`,Rr={small:`az:pl-2.5 az:pr-8`,medium:`az:pl-3 az:pr-9`,large:`az:pl-3.5 az:pr-10`},zr=`az:w-full`,Br=`az:w-auto az:min-w-fit az:max-w-full az:[field-sizing:content]`;function Vr({children:e,className:t,endAddon:n,fullWidth:r=!0,size:i=`medium`,sizeToContent:a=!1,startAddon:o,...s}){let c=Or(o),l=Or(n),u=(0,p.jsx)(`select`,{className:U(Lr,wr[i],Rr[i],Ar(i,{hasStartAddon:c,hasEndAddon:l}),a?Br:r?zr:``,t),...s,children:e});return kr(o,n)?(0,p.jsx)(jr,{endAddon:n,fullWidth:!a&&r,size:i,startAddon:o,children:u}):u}var Hr={"address-card":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4`,y:`6`,width:`16`,height:`12`,rx:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M8 10.5h4.5M8 13.5h6.5M15.5 10a1.75 1.75 0 1 1 0 3.5 1.75 1.75 0 0 1 0-3.5Zm-2.5 5c.6-1.2 1.5-1.8 2.5-1.8s1.9.6 2.5 1.8`,strokeWidth:e})]}),"arrow-left":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M19 12H5`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`m11 6-6 6 6 6`,strokeWidth:e})]}),"arrow-up-right":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 16 16 8`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9 8h7v7`,strokeWidth:e})]}),banknote:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4`,y:`7`,width:`16`,height:`10`,rx:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M7 10c.8 0 1.5-.7 1.5-1.5M17 10c-.8 0-1.5-.7-1.5-1.5M7 14c.8 0 1.5.7 1.5 1.5M17 14c-.8 0-1.5.7-1.5 1.5M12 9.5c1.2 0 2 1 2 2.5s-.8 2.5-2 2.5-2-1-2-2.5.8-2.5 2-2.5Z`,strokeWidth:e})]}),briefcase:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M5.5 8.5h13a1.5 1.5 0 0 1 1.5 1.5v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7a1.5 1.5 0 0 1 1.5-1.5Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9 8.5V7a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v1.5M4 12.5c2 .9 4.7 1.4 8 1.4s6-.5 8-1.4`,strokeWidth:e})]}),calendar:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4`,y:`6`,width:`16`,height:`14`,rx:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M8 4v4M16 4v4M4 10h16M8 14h3M8 17h8`,strokeWidth:e})]}),"chart-column":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M5 19.5h14`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M7.5 18v-5.5M12 18V8.5M16.5 18v-8`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`6`,y:`12.5`,width:`3`,height:`5.5`,rx:`.8`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`10.5`,y:`8.5`,width:`3`,height:`9.5`,rx:`.8`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`15`,y:`10`,width:`3`,height:`8`,rx:`.8`,strokeWidth:e})]}),check:e=>(0,p.jsx)(`path`,{d:`m5 12 4.2 4.2L19 7.6`,strokeWidth:e}),"chevron-down":e=>(0,p.jsx)(`path`,{d:`m6.5 9.5 5.5 5 5.5-5`,strokeWidth:e}),"chevron-left":e=>(0,p.jsx)(`path`,{d:`m14.5 6.5-5 5.5 5 5.5`,strokeWidth:e}),"chevron-right":e=>(0,p.jsx)(`path`,{d:`m9.5 6.5 5 5.5-5 5.5`,strokeWidth:e}),"chevron-up":e=>(0,p.jsx)(`path`,{d:`m6.5 14.5 5.5-5 5.5 5`,strokeWidth:e}),"circle-alert":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8.5`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M12 8.5v4.5M12 16.5h.01`,strokeWidth:e})]}),"clipboard-list":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M9 6.5h6M10 4.5h4a1.5 1.5 0 0 1 1.5 1.5v.5h1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h1V6a1.5 1.5 0 0 1 1.5-1.5Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`m9 11 1.5 1.5L12 11M9 15 10.5 16.5 12 15M13.5 12h3M13.5 16h3`,strokeWidth:e})]}),components:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4`,y:`4`,width:`5`,height:`5`,rx:`1`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`13`,y:`4`,width:`7`,height:`5`,rx:`1`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`4`,y:`13`,width:`7`,height:`7`,rx:`1`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`15`,y:`13`,width:`5`,height:`7`,rx:`1`,strokeWidth:e})]}),copy:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`9`,y:`7`,width:`9`,height:`11`,rx:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M7 15H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v1`,strokeWidth:e})]}),"credit-card":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4`,y:`6.5`,width:`16`,height:`11`,rx:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M4 10h16M7.5 14h3.5M14 14h2.5`,strokeWidth:e})]}),"file-archive":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 11h6M9 14h6M11 14v4M13 14v4`,strokeWidth:e})]}),"file-image":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 17l2.5-2.8 2.2 2.3 1.6-1.7 1.7 2.2M10 10.5h.01`,strokeWidth:e})]}),"file-pdf":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 17v-5h2a1.5 1.5 0 1 1 0 3h-2M13.5 17v-5h1.8a1.7 1.7 0 0 1 0 3.4h-1.8M17 17v-5h2`,strokeWidth:e})]}),"file-scan":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 12h6M10 9.5H8M16 9.5h-2M10 14.5H8M16 14.5h-2`,strokeWidth:e})]}),"file-spreadsheet":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 11h7M9 14h7M9 17h7M12 11v6M15 11v6`,strokeWidth:e})]}),"file-text":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 11h6M9 14h6M9 17h4`,strokeWidth:e})]}),folder:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M4 8.5a2 2 0 0 1 2-2h4l1.8 1.8H18a2 2 0 0 1 2 2v6.2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M4.5 10h15`,strokeWidth:e})]}),grid:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4.5`,y:`4.5`,width:`6`,height:`6`,rx:`1.2`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`13.5`,y:`4.5`,width:`6`,height:`6`,rx:`1.2`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`4.5`,y:`13.5`,width:`6`,height:`6`,rx:`1.2`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`13.5`,y:`13.5`,width:`6`,height:`6`,rx:`1.2`,strokeWidth:e})]}),handshake:e=>(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(`path`,{d:`M4.5 12 8 8.5h3l1.5 1.5h1L16 7.5h3.5M4.5 12l3.3 3.3a1.3 1.3 0 0 0 1.8 0l1.2-1.2M16 7.5l3.5 3.5-4.4 4.4a1.4 1.4 0 0 1-2 0L10.5 13M9.8 14.4l1.1 1.1a1.3 1.3 0 0 0 1.9 0l.8-.8`,strokeWidth:e})}),"heart-pulse":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M12 19s-6.8-4.5-8.3-8.1C2.5 8 4.3 5.5 7 5.5c1.8 0 3 .9 5 3.1 2-2.2 3.2-3.1 5-3.1 2.7 0 4.5 2.5 3.3 5.4C18.8 14.5 12 19 12 19Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M7.2 12h2l1.1-2.2 2.2 5 1.2-2.3h3`,strokeWidth:e})]}),loader:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M12 4a8 8 0 1 0 8 8`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M17.5 4.5H20v2.5`,strokeWidth:e})]}),logout:e=>(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(`path`,{d:`M10 4.5H7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h3M14 8l4 4-4 4M18 12H9`,strokeWidth:e})}),"map-route":e=>(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(`path`,{d:`M5.5 18.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm13-9a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM7.3 15.2c1.5-3 3.4-4.6 6.1-5.2M13.7 10c1.1.1 2.1.7 3 1.8M10.5 6.5c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2Zm-2 0v8`,strokeWidth:e})}),"message-square":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M6 6.5h12a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H11l-4.5 3v-3H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M8.5 10.5h7M8.5 13.5h5`,strokeWidth:e})]}),package:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`m12 4 7 3.5v9L12 20l-7-3.5v-9Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`m12 4-7 3.5 7 3.5 7-3.5M12 11v9`,strokeWidth:e})]}),"package-check":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`m12 4 7 3.5v9L12 20l-7-3.5v-9Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`m12 4-7 3.5 7 3.5 7-3.5M12 11v9M9.2 14.3l1.5 1.5 3-3`,strokeWidth:e})]}),pill:e=>(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(`path`,{d:`M9 6a4 4 0 0 1 5.7 0l1.3 1.3a4 4 0 0 1 0 5.7L13 16a4 4 0 1 1-5.7-5.7L9 6Zm1.2 6.8 5.6-5.6`,strokeWidth:e})}),receipt:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M7 4.5h10v15l-2.2-1.6-2 1.6-2-1.6-2 1.6-2.3-1.6Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9.5 9.5h5M9.5 12.5h5M9.5 15.5h3.5`,strokeWidth:e})]}),settings:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`12`,cy:`12`,r:`2.75`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M12 5.2v1.6M12 17.2v1.6M18.1 8.3l-1.2.9M7.1 14.8l-1.2.9M18.8 12h-1.6M6.8 12H5.2M16.9 14.8l1.2.9M7.1 9.2 5.9 8.3`,strokeWidth:e})]}),share:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`18`,cy:`6`,r:`2.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`6`,cy:`12`,r:`2.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`18`,cy:`18`,r:`2.5`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`m8.2 10.8 7.6-3.6M8.2 13.2l7.6 3.6`,strokeWidth:e})]}),"shield-cross":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M12 4.5 18 7v4.5c0 3.5-2.3 6.5-6 8-3.7-1.5-6-4.5-6-8V7Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M12 9v6M9 12h6`,strokeWidth:e})]}),"shopping-bag":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M7.5 8h9l1 10.2a1.8 1.8 0 0 1-1.8 2H8.3a1.8 1.8 0 0 1-1.8-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9 9V7.6A3 3 0 0 1 12 4.5a3 3 0 0 1 3 3.1V9`,strokeWidth:e})]}),"shopping-cart":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M4 6h2l1.5 7.5h8.5l2-5.5H7.2`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`10`,cy:`18`,r:`1.4`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`16`,cy:`18`,r:`1.4`,strokeWidth:e})]}),stethoscope:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 5.5v5a4 4 0 0 0 8 0v-5M8 8H6.5M17.5 8H16M12 14.5v2.5a2.5 2.5 0 1 0 5 0v-1.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`17`,cy:`15.5`,r:`1.5`,strokeWidth:e})]}),tags:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M4.5 12.5V6.8A1.8 1.8 0 0 1 6.3 5h5.7l7.5 7.5-5.7 5.7Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9 8.5h.01`,strokeWidth:e})]}),target:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`12`,cy:`12`,r:`7.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.2`,strokeWidth:e})]}),truck:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M4 8.5h9v6H4ZM13 10h3l2 2v2.5h-5Z`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`8`,cy:`17`,r:`1.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`16.5`,cy:`17`,r:`1.5`,strokeWidth:e})]}),"user-check":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`10`,cy:`9`,r:`3`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M4.5 18a5.7 5.7 0 0 1 11 0M15.5 10.5l1.7 1.7 3.1-3.1`,strokeWidth:e})]}),users:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`9`,cy:`9.5`,r:`2.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`16`,cy:`10.5`,r:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M4.5 18a4.8 4.8 0 0 1 9 0M14 18c.3-1.5 1.6-2.7 3.2-2.9`,strokeWidth:e})]}),wallet:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M5.5 8.5h12a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-12a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2ZM6 8V6.8A1.8 1.8 0 0 1 7.8 5h7.2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M16 13h3M16.2 13h.01`,strokeWidth:e})]}),warehouse:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`m4.5 10.5 7.5-5 7.5 5V19h-15Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9 19v-5h6v5M7.5 10.5h9`,strokeWidth:e})]}),x:e=>(0,p.jsx)(`path`,{d:`m8 8 8 8M16 8l-8 8`,strokeWidth:e}),zap:e=>(0,p.jsx)(`path`,{d:`M13 3 5.5 13.5H12l-1 7.5L18.5 10.5H12L13 3Z`,strokeWidth:e})};(0,l.forwardRef)(function({className:e,name:t,role:n,size:r=16,strokeWidth:i=1.8,style:a,...o},s){let c=Hr[t],l=!!(o[`aria-label`]||o[`aria-labelledby`]||n===`img`),u=lr(r),d={height:u,width:u,...a};return(0,p.jsx)(`svg`,{...o,"aria-hidden":!l||void 0,className:U(`az:inline-block az:shrink-0`,e),fill:`none`,focusable:`false`,ref:s,role:l?n??`img`:void 0,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,style:d,viewBox:`0 0 24 24`,children:c(i)})});var Ur=`az:w-full az:border az:border-addon-accent-border az:bg-addon-surface az:text-addon-text az:[font:inherit] az:placeholder:text-addon-placeholder az:focus:outline-none az:focus:border-[rgba(255,179,71,0.7)] az:focus:shadow-[0_0_0_1px_rgba(255,179,71,0.35)]`,Wr={small:`az:px-2.5`,medium:`az:px-3`,large:`az:px-3.5`};function Gr({className:e,endAddon:t,size:n=`medium`,startAddon:r,...i}){let a=Or(r),o=Or(t),s=(0,p.jsx)(`input`,{className:U(Ur,wr[n],Wr[n],Ar(n,{hasStartAddon:a,hasEndAddon:o}),e),...i});return kr(r,t)?(0,p.jsx)(jr,{endAddon:t,size:n,startAddon:r,children:s}):s}function Kr({className:e,component:t,disablePadding:n=!1,...r}){return(0,p.jsx)(t??`ul`,{className:U(`az:m-0 az:list-none az:min-w-0`,n?`az:p-0`:`az:px-0 az:py-2`,e),role:`list`,...r})}function qr({alignItems:e=`center`,children:t,className:n,component:r,disableGutters:i=!1,disablePadding:a=!1,secondaryAction:o,selected:s=!1,...c}){return(0,p.jsxs)(r??`li`,{className:U(`az:flex az:min-w-0 az:list-none az:gap-3`,e===`flex-start`?`az:items-start`:`az:items-center`,a?`az:p-0`:i?`az:py-2`:`az:px-4 az:py-2`,s&&`az:rounded-2xl az:bg-addon-accent-active`,o!=null&&`az:justify-between`,n),...c,children:[(0,p.jsx)(`div`,{className:`az:flex az:min-w-0 az:flex-1 az:gap-3`,children:t}),o?(0,p.jsx)(`div`,{className:`az:shrink-0`,children:o}):null]})}function Jr({className:e,inset:t=!1,primary:n,primaryTypographyProps:r,secondary:i,secondaryTypographyProps:a}){return(0,p.jsxs)(`div`,{className:U(`az:min-w-0 az:flex-1`,t&&`az:pl-10`,e),children:[n===void 0?null:(0,p.jsx)(Cr,{noWrap:!0,variant:`body1`,...r,children:n}),i===void 0?null:(0,p.jsx)(Cr,{className:`az:mt-1`,variant:`caption`,...a,children:i})]})}function Yr(e){let t=k({name:`Modal`,props:e}),n=O(),{children:r,defaultExpanded:i,footer:a,fullHeight:o,onClose:s,slotProps:c,slots:u,sx:d,title:f,transition:m}=t,h=$n(),[g,_]=(0,l.useState)(i??!1),[v,y]=(0,l.useState)(!0),{t:b}=Qn(),x=rr(m,{type:`grow`}),S=(0,l.useCallback)(()=>{if(!x){s();return}y(!1)},[s,x]);(0,l.useEffect)(()=>{let e=e=>{e.key===`Escape`&&S()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[S]),(0,l.useEffect)(()=>{let e=document.documentElement,t=document.body,n=e.style.overflow,r=t.style.overflow,i=e.style.overscrollBehavior,a=t.style.overscrollBehavior;return e.style.overflow=`hidden`,t.style.overflow=`hidden`,e.style.overscrollBehavior=`none`,t.style.overscrollBehavior=`none`,()=>{e.style.overflow=n,t.style.overflow=r,e.style.overscrollBehavior=i,t.style.overscrollBehavior=a}},[]);let C={fullHeight:o,isExpanded:g,...t},w=n.components?.Modal??n.components?.AzModal,T=le(w?.variants,C),ee=j(w?.styleOverrides?.root,{ownerState:C,theme:n}),te=ue(d,n),E=ce(c?.surface,C),ne=ce(c?.backdrop,C),re=ce(c?.header,C),ie=ce(c?.content,C),ae=ce(c?.footer,C),oe=ce(c?.closeButton,C),se=u?.surface??`div`,D=u?.header??`div`,A=u?.content??`div`,M=u?.footer??`div`,N=u?.closeButton??`button`,P=(0,p.jsxs)(se,{"aria-label":f,"aria-modal":`true`,className:U(`addon-modal-surface az:flex az:flex-col az:overflow-hidden az:rounded-3xl az:border az:font-addon az:text-addon-text az:transition-[width,max-height,height,border-radius] az:duration-200 az:ease`,g?`az:w-[calc(100vw-32px)] az:max-h-[calc(100vh-32px)] az:rounded-xl`:`az:w-[min(1200px,calc(100vw-48px))] az:max-h-[calc(100vh-48px)]`,o&&`az:h-[calc(100vh-32px)]`,T.className,ee.className,E.className),onClick:e=>e.stopPropagation(),role:`dialog`,style:{...T.style,...ee.style,...te,...E.style},...E,children:[(0,p.jsxs)(D,{className:U(`az:flex az:items-center az:justify-between az:gap-3 az:px-5 az:pt-4 az:pb-3 az:border-b az:border-addon-border-subtle az:shrink-0`,re.className),...re,children:[(0,p.jsx)(`h2`,{className:`az:m-0 az:text-[15px] az:font-bold az:text-addon-text`,children:f}),(0,p.jsxs)(`div`,{className:`az:flex az:items-center az:gap-1.5`,children:[(0,p.jsx)(`button`,{"aria-label":b(g?`modal.collapse`:`modal.expand`),className:`az:size-7 az:inline-flex az:items-center az:justify-center az:border az:border-addon-border-icon az:rounded-full az:bg-addon-surface az:text-addon-muted az:[font:inherit] az:text-sm az:leading-none az:cursor-pointer az:hover:bg-addon-surface-hover az:hover:text-addon-text`,onClick:()=>_(e=>!e),title:b(g?`modal.collapse`:`modal.expand`),type:`button`,children:g?`⊡`:`⊞`}),(0,p.jsx)(N,{"aria-label":`${b(`common.close`)} ${f}`,className:U(`az:size-7 az:inline-flex az:items-center az:justify-center az:border az:border-addon-border-icon az:rounded-full az:bg-addon-surface az:text-addon-muted az:[font:inherit] az:text-lg az:leading-none az:cursor-pointer az:hover:bg-addon-surface-hover az:hover:text-addon-text`,oe.className),onClick:S,title:`${b(`common.close`)} ${f}`,type:`button`,...oe,children:`×`})]})]}),(0,p.jsx)(A,{className:U(`az:flex-1 az:min-h-0 az:flex az:flex-col az:overflow-y-auto az:overscroll-contain`,o&&`az:h-full`,ie.className),...ie,children:r}),a&&(0,p.jsx)(M,{className:U(`addon-modal-footer az:flex az:items-center az:justify-end az:gap-2.5 az:px-5 az:py-3 az:border-t az:border-addon-border-subtle az:shrink-0`,ae.className),...ae,children:a})]}),fe=u?.backdrop??`div`,pe=(0,p.jsx)(fr,{appear:!0,in:v,onExited:x?s:void 0,children:(0,p.jsx)(fe,{className:U(`addon-modal-backdrop az:fixed az:inset-0 az:flex az:flex-col az:items-center az:justify-center az:p-6 az:z-2147483647`,ne.className),role:`presentation`,...ne,children:x?(0,p.jsx)(pr,{appear:!0,in:v,children:P}):P})});if(x)return h?(0,de.createPortal)(pe,h):pe;let me=(0,p.jsx)(fe,{className:U(`addon-modal-backdrop az:fixed az:inset-0 az:flex az:flex-col az:items-center az:justify-center az:p-6 az:z-2147483647`,ne.className),role:`presentation`,...ne,children:P});return h?(0,de.createPortal)(me,h):me}function Xr(){return(0,p.jsxs)(Nr,{"aria-hidden":`true`,className:`az:relative az:size-20 az:rounded-3xl az:border az:border-addon-border-subtle az:bg-addon-surface-card`,children:[(0,p.jsx)(Nr,{className:`az:absolute az:inset-3 az:rounded-2xl az:border az:border-dashed az:border-addon-border-subtle`}),(0,p.jsx)(Nr,{className:`az:absolute az:left-1/2 az:top-1/2 az:h-7 az:w-7 az:-translate-x-1/2 az:-translate-y-1/2 az:rounded-full az:border az:border-addon-border az:bg-addon-surface`})]})}function Zr(e,t,n){return e==null?null:typeof e==`string`||typeof e==`number`?(0,p.jsx)(Cr,{className:t,variant:n,children:e}):e}function Qr({className:e,children:t,description:n,image:r,imageStyle:i,title:a,...o}){let s=typeof r==`string`?(0,p.jsx)(`img`,{alt:``,"aria-hidden":`true`,className:`az:max-h-28 az:max-w-full az:object-contain`,src:r,style:i}):r??(0,p.jsx)(Xr,{});return(0,p.jsxs)(`div`,{className:U(`az:flex az:min-h-0 az:flex-col az:items-center az:justify-center az:gap-4 az:px-6 az:py-8 az:text-center`,e),...o,children:[(0,p.jsx)(`div`,{style:typeof r==`string`?void 0:i,children:s}),(0,p.jsxs)(yr,{className:`az:max-w-80`,spacing:1.5,children:[Zr(a,`az:text-[15px] az:text-addon-text`,`h6`),Zr(n,`az:text-[12px] az:text-addon-dim`,`body2`)]}),t]})}function $r({alignItems:e,columnGap:t,component:n,direction:r=`row`,gap:i,inline:a=!1,justifyContent:o,rowGap:s,style:c,wrap:l,...u}){return(0,p.jsx)(n??`div`,{style:{alignItems:e,columnGap:ur(t),display:a?`inline-flex`:`flex`,flexDirection:r,gap:ur(i),justifyContent:o,minWidth:r.startsWith(`row`)?0:void 0,rowGap:ur(s),flexWrap:l,...c},...u})}function ei({children:e,className:t,error:n,label:r}){return(0,p.jsxs)(`label`,{className:t?`az:grid az:gap-2 az:text-xs az:font-semibold az:text-addon-muted az:uppercase az:tracking-[0.08em] ${t}`:`az:grid az:gap-2 az:text-xs az:font-semibold az:text-addon-muted az:uppercase az:tracking-[0.08em]`,children:[r,e,n&&(0,p.jsx)(`p`,{className:`az:m-0 az:text-[11px] az:font-medium az:normal-case az:tracking-normal az:text-addon-error az:leading-snug`,children:n})]})}var ti={default:{indicator:`az:bg-addon-muted`,label:``},success:{indicator:`az:bg-[rgba(185,251,192,0.7)]`,label:`success`},info:{indicator:`az:bg-addon-accent-border`,label:`info`},warning:{indicator:`az:bg-[rgba(255,225,168,0.7)]`,label:`warning`},error:{indicator:`az:bg-[rgba(255,208,208,0.7)]`,label:`error`}},ni={default:`az:border-addon-border-icon az:bg-addon-surface az:text-addon-muted`,success:`az:border-[rgba(185,251,192,0.35)] az:bg-[rgba(185,251,192,0.18)] az:text-addon-success`,info:`az:border-addon-accent-border az:bg-addon-accent-active az:text-addon-accent`,warning:`az:border-[rgba(255,225,168,0.35)] az:bg-[rgba(255,225,168,0.18)] az:text-addon-warning`,error:`az:border-[rgba(255,208,208,0.35)] az:bg-[rgba(255,208,208,0.18)] az:text-addon-error`},ri={default:`•`,success:`+`,info:`i`,warning:`!`,error:`×`},ii={default:`az:bg-addon-surface`,success:`az:bg-[rgba(185,251,192,0.18)]`,info:`az:bg-[rgba(255,179,71,0.18)]`,warning:`az:bg-[rgba(255,225,168,0.18)]`,error:`az:bg-[rgba(255,208,208,0.18)]`};function ai({id:e,message:t,title:n,timestamp:r,type:i=`default`,variant:a=`outlined`,duration:o=5e3,onClose:s}){let{t:c}=Qn(),u=a===`filled`,{indicator:d}=ti[i],f=ni[i],m=ri[i];return(0,l.useEffect)(()=>{if(o==null||!s)return;let t=window.setTimeout(()=>{s(e)},o);return()=>window.clearTimeout(t)},[o,e,s]),(0,p.jsxs)(`div`,{"aria-atomic":`true`,"aria-live":`assertive`,className:U(`az:relative az:pointer-events-auto az:w-[min(360px,calc(100vw-32px))] az:overflow-hidden az:rounded-2xl az:border az:border-addon-border az:bg-addon-popover az:shadow-[0_16px_32px_rgba(0,0,0,0.32)]`),role:`alert`,children:[u?(0,p.jsx)(`div`,{"aria-hidden":`true`,className:U(`az:pointer-events-none az:absolute az:inset-0`,ii[i])}):null,u?null:(0,p.jsx)(`div`,{className:U(`az:h-1 az:w-full`,d)}),(0,p.jsxs)($r,{alignItems:`center`,className:`az:gap-2.5 az:px-4 az:pt-3`,justifyContent:`space-between`,children:[(0,p.jsxs)($r,{alignItems:`center`,className:`az:min-w-0 az:gap-2.5`,children:[(0,p.jsx)(`span`,{"aria-hidden":`true`,className:U(`az:flex az:h-6 az:w-6 az:shrink-0 az:items-center az:justify-center az:rounded-full az:border az:text-xs az:font-bold`,f),children:m}),n==null?null:(0,p.jsx)(Cr,{className:`az:truncate az:font-semibold az:text-addon-text`,variant:`body2`,children:n}),r?(0,p.jsx)(Cr,{className:`az:shrink-0 az:text-addon-dim`,variant:`caption`,children:r}):null]}),s?(0,p.jsx)(_r,{"aria-label":c(`common.close`),className:`az:ml-1 az:shrink-0`,variant:`ghost`,onClick:()=>s(e),children:`×`}):null]}),t==null?null:(0,p.jsx)(`div`,{className:`az:px-4 az:pb-3 az:pt-1.5`,children:(0,p.jsx)(Cr,{className:`az:text-addon-muted`,variant:`body2`,children:t})})]})}function oi(e){let t=e?.horizontal??`right`;return U((e?.vertical??`top`)===`top`?`az:top-4`:`az:bottom-4`,t===`left`&&`az:left-4`,t===`center`&&`az:left-1/2 az:-translate-x-1/2`,t===`right`&&`az:right-4`)}function si({anchorOrigin:e,toasts:t,onClose:n,transition:r}){let i=$n(),a=or(e?.vertical,e?.horizontal),o=rr(r,{type:`slide`,direction:a}),[s,c]=(0,l.useState)(t);(0,l.useEffect)(()=>{c(e=>{let n=new Map(t.map(e=>[e.id,e])),r=[...t];for(let t of e)n.has(t.id)||r.push(t);return r})},[t]);let u=(0,l.useMemo)(()=>new Set(t.map(e=>e.id)),[t]),d=e=>{c(t=>t.filter(t=>t.id!==e))};if(s.length===0)return null;let f=(0,p.jsx)(`div`,{"aria-label":`Notifications`,"aria-live":`polite`,className:U(`az:pointer-events-none az:fixed az:z-2147483647 az:flex az:flex-col az:gap-2`,oi(e)),role:`region`,children:(0,p.jsx)(yr,{spacing:2,children:s.map(e=>{let t=(0,p.jsx)(ai,{...e,onClose:n},e.id);return o?(0,p.jsx)(mr,{appear:!0,direction:a,in:u.has(e.id),mountOnEnter:!0,onExited:()=>d(e.id),unmountOnExit:!0,children:t},e.id):u.has(e.id)?t:null})})});return i?(0,de.createPortal)(f,i):f}function ci(e,t){switch(t.type){case`PUSH`:return{...e,toasts:[...e.toasts,t.payload],nextId:e.nextId+1};case`DISMISS`:return{...e,toasts:e.toasts.filter(e=>e.id!==t.id)};case`DISMISS_ALL`:return{...e,toasts:[]};default:return e}}var li={toasts:[],nextId:1},ui=(0,l.createContext)(null);function di(){let[e,t]=(0,l.useReducer)(ci,li),n=(0,l.useCallback)(e=>{let n=String(Date.now());return t({type:`PUSH`,payload:{id:n,...e}}),n},[]),r=(0,l.useCallback)(e=>{t({type:`DISMISS`,id:e})},[]),i=(0,l.useCallback)(()=>{t({type:`DISMISS_ALL`})},[]);return{toasts:e.toasts,push:n,dismiss:r,dismissAll:i}}function fi(){let e=(0,l.useContext)(ui),t=di();return e??t}function pi({anchorOrigin:e,children:t,transition:n}){let r=di(),i=(0,l.useMemo)(()=>({dismiss:r.dismiss,dismissAll:r.dismissAll,push:r.push,toasts:r.toasts}),[r.dismiss,r.dismissAll,r.push,r.toasts]);return(0,p.jsxs)(ui.Provider,{value:i,children:[t,(0,p.jsx)(si,{anchorOrigin:e,onClose:r.dismiss,toasts:r.toasts,transition:n})]})}var mi=`az:inline-flex az:max-w-full az:items-center az:gap-3 az:align-middle az:text-sm az:text-addon-muted`,hi=`az:relative az:inline-flex az:shrink-0 az:items-center`,gi=`az:inline-flex az:h-full az:w-full az:items-center az:rounded-full az:border az:p-0.5 az:transition-[background,border-color,box-shadow] az:duration-160 az:ease`,_i=`az:block az:rounded-full az:shadow-[0_2px_8px_rgba(0,0,0,0.24)] az:transition-[transform,background] az:duration-160 az:ease`,vi=`az:absolute az:inset-0 az:m-0 az:h-full az:w-full az:cursor-pointer az:opacity-0 disabled:az:cursor-not-allowed`,yi=`az:min-w-0`,bi=`az:shadow-[0_0_0_1px_var(--az-color-addon-accent),0_0_0_4px_var(--az-color-addon-accent-bg)]`,xi={start:`az:-ml-2`,end:`az:-mr-2`},Si={medium:{control:`az:h-6 az:w-11`,thumb:`az:size-5`,translate:`az:translate-x-5`},small:{control:`az:h-5 az:w-9`,thumb:`az:size-4`,translate:`az:translate-x-4`}};function Ci(e,t){if(typeof e==`function`){e(t);return}e&&(e.current=t)}(0,l.forwardRef)(function({checked:e,className:t,defaultChecked:n=!1,disabled:r=!1,edge:i=!1,inputProps:a,inputRef:o,label:s,labelPlacement:c=`end`,onBlur:u,onChange:d,onFocus:f,size:m=`medium`,...h},g){let _=e!==void 0,[v,y]=(0,l.useState)(!!n),[b,x]=(0,l.useState)(!1),S=_?!!e:v;function C(e){x(!1),u?.(e)}function w(e){_||y(e.target.checked),d?.(e,e.target.checked)}function T(e){x(e.currentTarget.matches(`:focus-visible`)),f?.(e)}function ee(e){Ci(g,e),Ci(o,e)}let te=[mi,c===`start`?`az:flex-row-reverse`:``,r?`az:cursor-not-allowed az:opacity-[0.48]`:`az:cursor-pointer`,i?xi[i]:``,t].filter(Boolean).join(` `),E=[hi,Si[m].control].join(` `),ne=[gi,S?`az:border-addon-accent-border az:bg-addon-accent-bg`:`az:border-addon-border az:bg-addon-surface-dark`,b?bi:``].filter(Boolean).join(` `),re=[_i,Si[m].thumb,S?`${Si[m].translate} az:bg-[var(--az-color-addon-accent)]`:`az:translate-x-0 az:bg-[var(--az-color-addon-text)]`].join(` `);return(0,p.jsxs)(`label`,{className:te,children:[(0,p.jsxs)(`span`,{className:E,children:[(0,p.jsx)(`input`,{...a,...h,checked:S,className:vi,disabled:r,onBlur:C,onChange:w,onFocus:T,ref:ee,role:`switch`,type:`checkbox`}),(0,p.jsx)(`span`,{"aria-hidden":`true`,className:ne,children:(0,p.jsx)(`span`,{className:re})})]}),s?(0,p.jsx)(`span`,{className:yi,children:s}):null]})});var wi=`Tabs.Tab`,Ti=`az:relative az:inline-flex az:min-w-0 az:items-center az:gap-2 az:border az:[font:inherit] az:text-sm az:font-semibold az:transition-[background,border-color,color,box-shadow] az:duration-160 az:ease az:focus-visible:outline-none az:focus-visible:shadow-[0_0_0_1px_var(--az-color-addon-accent),0_0_0_4px_var(--az-color-addon-accent-bg)]`;function Ei(e,t){return`${e}-${W(t)}-tab`}function Di(e,t){return`${e}-${W(t)}-panel`}function Oi({active:e,disabled:t,indicatorWeight:n,orientation:r,selectionStyle:i,scrollable:a,stretch:o,variant:s}){let c=r===`vertical`;return U(Ti,t?`az:cursor-not-allowed az:opacity-[0.48]`:`az:cursor-pointer`,c||o&&!a?`az:w-full`:``,!c&&o&&!a?`az:flex-1`:``,s===`line`?U(c?n===2?`az:-ml-px az:justify-start az:rounded-none az:border-y-0 az:border-r-0 az:border-l-2 az:bg-transparent az:px-3 az:py-2.5 az:text-left`:`az:-ml-px az:justify-start az:rounded-none az:border-y-0 az:border-r-0 az:border-l az:bg-transparent az:px-3 az:py-2.5 az:text-left`:n===2?`az:-mb-px az:justify-center az:rounded-none az:border-x-0 az:border-t-0 az:border-b-2 az:bg-transparent az:px-1 az:py-3 az:whitespace-nowrap`:`az:-mb-px az:justify-center az:rounded-none az:border-x-0 az:border-t-0 az:border-b az:bg-transparent az:px-1 az:py-3 az:whitespace-nowrap`,e?`az:border-addon-accent-border az:text-addon-accent`:`az:border-transparent az:text-addon-muted az:hover:border-addon-border az:hover:text-addon-text`):s===`button`?U(`az:relative az:-mb-px az:justify-center az:rounded-t-2xl az:border-b-0 az:px-3.5 az:py-2.5 az:whitespace-nowrap`,e?i===`fill`?`az:z-10 az:border-addon-border az:bg-addon-accent-bg az:text-addon-text`:`az:z-10 az:border-addon-border az:bg-addon-surface-hover az:text-addon-text`:`az:border-transparent az:bg-transparent az:text-addon-muted az:hover:bg-addon-surface-hover az:hover:text-addon-text`):U(c?`az:justify-start az:rounded-2xl az:px-3.5 az:py-3 az:text-left`:`az:justify-center az:rounded-2xl az:px-3.5 az:py-2.5 az:whitespace-nowrap`,e?i===`fill`?`az:border-addon-accent-border az:bg-addon-accent-bg az:text-addon-text`:`az:border-addon-accent-border az:bg-transparent az:text-addon-text`:`az:border-addon-border-subtle az:bg-addon-surface-dark az:text-addon-muted az:hover:bg-addon-surface-hover az:hover:text-addon-text`))}function ki(e,t,n){let r=e.closest(`[role="tablist"]`);if(!r)return null;let i=Array.from(r.querySelectorAll(`[role="tab"]`)).filter(e=>!e.disabled),a=i.indexOf(e);return a===-1||i.length===0?null:n===`Home`?i[0]??null:n===`End`?i.at(-1)??null:t===`horizontal`?n!==`ArrowRight`&&n!==`ArrowLeft`?null:i[((n===`ArrowRight`?a+1:a-1)+i.length)%i.length]??null:n!==`ArrowDown`&&n!==`ArrowUp`?null:i[((n===`ArrowDown`?a+1:a-1)+i.length)%i.length]??null}function W(e){return String(e).trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`tab`}var Ai=(0,l.createContext)(null),ji=(0,l.forwardRef)(function({className:e,disabled:t=!1,onClick:n,onKeyDown:r,type:i=`button`,value:a,...o},s){let c=Mi(`Tab`),l=c.value===a;function u(e){n?.(e),!(e.defaultPrevented||t||l)&&c.onSelect(a)}function d(e){if(r?.(e),e.defaultPrevented)return;let t=ki(e.currentTarget,c.orientation,e.key);t&&(e.preventDefault(),t.focus(),t.click())}return(0,p.jsx)(`button`,{...o,"aria-controls":Di(c.baseId,a),"aria-selected":l,className:U(Oi({active:l,disabled:t,indicatorWeight:c.indicatorWeight,orientation:c.orientation,selectionStyle:c.selectionStyle,scrollable:c.scrollable,stretch:c.stretch,variant:c.variant}),e),"data-selected":l,disabled:t,id:Ei(c.baseId,a),onClick:u,onKeyDown:d,ref:s,role:`tab`,tabIndex:l?0:-1,type:i})});ji.displayName=wi;function Mi(e){let t=(0,l.useContext)(Ai);if(!t)throw Error(`${e} must be used inside <Tabs>.`);return t}var Ni=`az:inline-flex az:size-7 az:shrink-0 az:items-center az:justify-center az:rounded-full az:border-0 az:bg-transparent az:p-0 az:[font:inherit] az:leading-none az:cursor-pointer az:transition-colors az:duration-160 az:ease disabled:az:cursor-not-allowed disabled:az:opacity-60`;`${Ni}`,`${Ni}`;var Pi=(0,l.createContext)(null),Fi={small:`az:min-h-8 az:px-2.5 az:text-xs`,medium:`az:min-h-9 az:px-3 az:text-sm`,large:`az:min-h-10 az:px-4 az:text-sm`};(0,l.forwardRef)(function({className:e,disabled:t=!1,onChange:n,onClick:r,selected:i=!1,size:a,type:o=`button`,value:s,...c},u){let d=(0,l.useContext)(Pi),f=d!==null,m=t||d?.disabled||!1,h=d?d.isSelected(s):i,g=a??d?.size??`medium`;function _(e){r?.(e),!e.defaultPrevented&&(d?.onItemSelect?.(e,s),n?.(e,!h))}let v=[`az:relative az:inline-flex az:min-w-0 az:items-center az:justify-center az:gap-1.5 az:whitespace-nowrap az:[font:inherit] az:font-semibold az:transition-[background,color,box-shadow,opacity] az:duration-160 az:ease az:focus-visible:outline-none az:focus-visible:shadow-[0_0_0_1px_var(--az-color-addon-accent),0_0_0_4px_var(--az-color-addon-accent-bg)]`,Fi[g],f?`az:rounded-none az:border-0`:`az:rounded-xl az:border`,h?f?`az:bg-addon-accent-bg az:text-addon-text`:`az:border-addon-border az:bg-addon-accent-bg az:text-addon-text`:f?`az:bg-transparent az:text-addon-muted az:hover:bg-addon-surface-hover az:hover:text-addon-text`:`az:border-addon-border az:bg-addon-surface-dark az:text-addon-muted az:hover:border-addon-border-subtle az:hover:bg-addon-surface-hover az:hover:text-addon-text`,m?`az:cursor-not-allowed az:opacity-[0.48]`:`az:cursor-pointer`,d?.fullWidth?d.orientation===`vertical`?`az:w-full`:`az:flex-1`:``,e].filter(Boolean).join(` `);return(0,p.jsx)(`button`,{...c,"aria-pressed":h,className:v,disabled:m,onClick:_,ref:u,type:o,value:s})});var Ii=`az:w-full az:border az:border-addon-accent-border az:bg-addon-surface az:text-addon-text az:[font:inherit] az:placeholder:text-addon-placeholder az:focus:outline-none az:focus:border-[rgba(255,179,71,0.7)] az:focus:shadow-[0_0_0_1px_rgba(255,179,71,0.35)] az:resize-y`,Li={small:`az:py-1.5 az:px-2.5 az:text-xs az:rounded-lg az:min-h-12`,medium:`az:py-2 az:px-3 az:text-sm az:rounded-xl az:min-h-14`,large:`az:py-3 az:px-3.5 az:text-base az:rounded-2xl az:min-h-16`};function Ri({className:e,size:t=`medium`,...n}){let r=Li[t];return(0,p.jsx)(`textarea`,{className:e?`${Ii} ${r} ${e}`:`${Ii} ${r}`,...n})}function zi(e){let t=(e.split(`?`)[0]||`/`).replace(/\/index\.html$/i,`/`).replace(/\/[^/]+\.[a-z0-9]+$/i,`/`).replace(/\/+$/,``);return t===``?`/api`:`${t}/api`}async function Bi(e){if(e.status===204)return;let t=await e.json().catch(()=>({}));if(!e.ok){let n=typeof t==`object`&&t&&`error`in t&&typeof t.error==`string`?t.error:`Request failed (${e.status})`;throw Error(n)}return t}function Vi(e){return`${zi(typeof window>`u`?`/`:window.location.pathname).replace(/\/+$/,``)}${e.startsWith(`/`)?e:`/${e}`}`}function Hi(e){let t=()=>{let t={Accept:`application/json`,"Content-Type":`application/json`};return e&&(t.Authorization=`Bearer ${e}`),t};return{async getHealth(){return Bi(await fetch(Vi(`/health`),{headers:t()}))},async listItems(){return(await Bi(await fetch(Vi(`/jobs`),{headers:t()}))).items},async listHandlers(){return(await Bi(await fetch(Vi(`/handlers`),{headers:t()}))).handlers},async createJob(e){await Bi(await fetch(Vi(`/jobs`),{method:`POST`,headers:t(),body:JSON.stringify({name:e.name,handlerKey:e.handlerKey,expression:e.expression,timezone:e.timezone,config:e.config,enabled:e.enabled})}))},async pauseJob(e){await Bi(await fetch(Vi(`/jobs/${encodeURIComponent(e)}/pause`),{method:`POST`,headers:t()}))},async resumeJob(e){await Bi(await fetch(Vi(`/jobs/${encodeURIComponent(e)}/resume`),{method:`POST`,headers:t()}))},async runJob(e){await Bi(await fetch(Vi(`/jobs/${encodeURIComponent(e)}/run`),{method:`POST`,headers:t()}))},async deleteJob(e){await Bi(await fetch(Vi(`/jobs/${encodeURIComponent(e)}`),{method:`DELETE`,headers:t()}))},async listExecutions(e){return(await Bi(await fetch(Vi(`/jobs/${encodeURIComponent(e)}/executions`),{headers:t()}))).executions},async retryExecution(e){await Bi(await fetch(Vi(`/executions/${encodeURIComponent(e)}/retry`),{method:`POST`,headers:t()}))}}}var Ui={name:``,handlerKey:``,expression:`* * * * *`,timezone:`UTC`,config:`{}`,enabled:!0};function Wi(e){try{return JSON.stringify(e,null,2)}catch{return`{}`}}function Gi({api:e}){let t=fi(),[n,r]=(0,l.useState)(null),[i,a]=(0,l.useState)([]),[o,s]=(0,l.useState)([]),[c,u]=(0,l.useState)(Ui),[d,f]=(0,l.useState)(null),[m,h]=(0,l.useState)(null),[g,_]=(0,l.useState)([]),[v,y]=(0,l.useState)(null),b=async()=>{try{let[t,n,i]=await Promise.all([e.getHealth(),e.listItems(),e.listHandlers()]);r(t),a(n),s(i),f(null),u(e=>e.handlerKey||i.length===0?e:{...e,handlerKey:i[0]??``})}catch(e){let t=e instanceof Error?e.message:`Could not load jobs.`;f(t)}};(0,l.useEffect)(()=>{b()},[e]);let x=async(e,n)=>{try{await e(),t.push({type:`success`,message:n}),await b()}catch(e){t.push({type:`error`,message:e instanceof Error?e.message:`Request failed.`})}},S=async n=>{h(n);try{_(await e.listExecutions(n))}catch(e){t.push({type:`error`,message:e instanceof Error?e.message:`Could not load executions.`}),_([])}},C=i.find(e=>e.jobId===m);return(0,p.jsxs)(yr,{spacing:24,children:[(0,p.jsx)(Cr,{component:`h1`,variant:`h4`,children:`Scheduler dashboard`}),n?(0,p.jsxs)(yr,{alignItems:`center`,"data-testid":`jobs-health`,direction:`row`,spacing:8,wrap:`wrap`,children:[(0,p.jsxs)(Fr,{variant:`accent`,children:[n.totalJobs,` jobs`]}),(0,p.jsxs)(Fr,{variant:`success`,children:[n.enabledJobs,` enabled`]}),(0,p.jsxs)(Fr,{variant:`warning`,children:[n.pausedJobs,` paused`]}),(0,p.jsxs)(Fr,{variant:`danger`,children:[n.failedExecutions,` failed runs`]})]}):null,d?(0,p.jsx)(Cr,{color:`error`,role:`alert`,children:d}):null,(0,p.jsxs)(`section`,{children:[(0,p.jsx)(Cr,{component:`h2`,variant:`h6`,children:`Create schedule`}),(0,p.jsx)(`form`,{onSubmit:t=>{t.preventDefault(),x(async()=>{if(!c.name.trim()||!c.handlerKey.trim())throw Error(`Name and handler are required.`);await e.createJob(c),u({...Ui,handlerKey:c.handlerKey})},`Job created.`)},children:(0,p.jsxs)(yr,{spacing:12,children:[(0,p.jsx)(ei,{label:`Name`,children:(0,p.jsx)(Gr,{name:`name`,onChange:e=>u(t=>({...t,name:e.target.value})),value:c.name})}),(0,p.jsx)(ei,{label:`Handler`,children:o.length>0?(0,p.jsx)(Vr,{name:`handlerKey`,onChange:e=>u(t=>({...t,handlerKey:e.target.value})),value:c.handlerKey,children:o.map(e=>(0,p.jsx)(`option`,{value:e,children:e},e))}):(0,p.jsx)(Gr,{name:`handlerKey`,onChange:e=>u(t=>({...t,handlerKey:e.target.value})),value:c.handlerKey})}),(0,p.jsxs)(yr,{direction:`row`,spacing:12,children:[(0,p.jsx)(ei,{label:`Cron expression`,children:(0,p.jsx)(Gr,{name:`expression`,onChange:e=>u(t=>({...t,expression:e.target.value})),value:c.expression})}),(0,p.jsx)(ei,{label:`Timezone`,children:(0,p.jsx)(Gr,{name:`timezone`,onChange:e=>u(t=>({...t,timezone:e.target.value})),value:c.timezone})})]}),(0,p.jsx)(ei,{label:`Config (JSON)`,children:(0,p.jsx)(Ri,{name:`config`,onChange:e=>u(t=>({...t,config:e.target.value})),rows:4,value:c.config})}),(0,p.jsx)(_r,{type:`submit`,children:`Create job`})]})})]}),(0,p.jsxs)(`section`,{children:[(0,p.jsx)(Cr,{component:`h2`,variant:`h6`,children:`Scheduled jobs`}),i.length===0?(0,p.jsx)(Qr,{description:`No scheduled jobs yet.`,title:`No jobs`}):(0,p.jsx)(Kr,{children:i.map(t=>(0,p.jsx)(qr,{secondaryAction:(0,p.jsxs)(yr,{direction:`row`,spacing:8,children:[(0,p.jsx)(_r,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>void S(t.jobId),children:`Runs`}),(0,p.jsx)(_r,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>void x(()=>e.runJob(t.jobId),`Run queued.`),children:`Run now`}),t.enabled?(0,p.jsx)(_r,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>void x(()=>e.pauseJob(t.jobId),`Paused.`),children:`Pause`}):(0,p.jsx)(_r,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>void x(()=>e.resumeJob(t.jobId),`Resumed.`),children:`Resume`}),(0,p.jsx)(_r,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>y(t.jobId),children:`Delete`})]}),children:(0,p.jsx)(Jr,{primary:t.name,secondary:`${t.enabled?`enabled`:`paused`} · ${t.handlerKey} · ${t.schedule.expression} · ${t.schedule.timezone}${t.nextRunAt?` · next ${t.nextRunAt}`:``}`})},t.jobId))})]}),C?(0,p.jsxs)(`section`,{children:[(0,p.jsx)(Cr,{component:`h2`,variant:`h6`,children:`Recent executions`}),(0,p.jsx)(Cr,{color:`muted`,variant:`body2`,children:C.name}),g.length===0?(0,p.jsx)(Qr,{description:`No executions recorded yet.`,title:`No runs`}):(0,p.jsx)(Kr,{children:g.map(t=>(0,p.jsx)(qr,{secondaryAction:t.status===`failed`||t.status===`dead-letter`?(0,p.jsx)(_r,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>void x(async()=>{await e.retryExecution(t.executionId),await S(t.jobId)},`Retry queued.`),children:`Retry`}):null,children:(0,p.jsx)(Jr,{primary:`${t.status} · ${t.triggeredAt}`,secondary:t.lastError?t.lastError:Wi(C.config)})},t.executionId))})]}):null,v?(0,p.jsx)(Yr,{footer:(0,p.jsxs)(yr,{direction:`row`,justifyContent:`end`,spacing:8,children:[(0,p.jsx)(_r,{type:`button`,variant:`secondary`,onClick:()=>y(null),children:`Cancel`}),(0,p.jsx)(_r,{type:`button`,onClick:()=>{let t=v;y(null),x(()=>e.deleteJob(t),`Deleted.`)},children:`Delete`})]}),title:`Delete job`,onClose:()=>y(null),children:(0,p.jsx)(Cr,{children:`Delete this scheduled job? This cannot be undone.`})}):null]})}var Ki=`azlibSchedulerDashboardToken`;function qi(){let e=new URLSearchParams(window.location.search).get(`token`);return e?.trim()?e.trim():window.sessionStorage.getItem(Ki)??``}function Ji(){let[e,t]=(0,l.useState)(qi),[n,r]=(0,l.useState)(e),[i,a]=(0,l.useState)(!1),o=(0,l.useMemo)(()=>Hi(e||void 0),[e]);return(0,p.jsx)(Zn,{children:(0,p.jsx)(pi,{children:(0,p.jsx)(`main`,{style:{margin:`0 auto`,maxWidth:960,padding:24},children:i?(0,p.jsxs)(yr,{spacing:12,children:[(0,p.jsx)(Cr,{component:`h1`,variant:`h4`,children:`Scheduler dashboard`}),(0,p.jsx)(Cr,{color:`muted`,children:`This dashboard requires a bearer token.`}),(0,p.jsx)(`form`,{onSubmit:e=>{e.preventDefault();let r=n.trim();window.sessionStorage.setItem(Ki,r),t(r),a(!1)},children:(0,p.jsxs)(yr,{spacing:12,children:[(0,p.jsx)(ei,{label:`Dashboard token`,children:(0,p.jsx)(Gr,{name:`token`,onChange:e=>r(e.target.value),type:`password`,value:n})}),(0,p.jsx)(_r,{type:`submit`,children:`Continue`})]})})]}):(0,p.jsx)(Gi,{api:{...o,getHealth:async()=>{try{return await o.getHealth()}catch(e){throw e instanceof Error&&e.message===`Unauthorized`&&a(!0),e}}}})})})})}var Yi=document.getElementById(`root`);if(!Yi)throw Error(`Missing #root element`);(0,u.createRoot)(Yi).render((0,p.jsx)(l.StrictMode,{children:(0,p.jsx)(Ji,{})}));