wysimark-lite 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -159
- package/dist/metafile-esm.json +1 -1
- package/dist/wysimark.d.ts +2 -13
- package/dist/wysimark.js +151 -164
- package/dist/wysimark.mjs +371 -4482
- package/dist/wysimark.mjs.map +1 -1
- package/package.json +1 -1
package/dist/wysimark.js
CHANGED
|
@@ -1,94 +1,93 @@
|
|
|
1
|
-
var vW=Object.create;var oy=Object.defineProperty;var yW=Object.getOwnPropertyDescriptor;var xW=Object.getOwnPropertyNames;var bW=Object.getPrototypeOf,EW=Object.prototype.hasOwnProperty;var be=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ay=(e,t)=>{for(var n in t)oy(e,n,{get:t[n],enumerable:!0})},DW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xW(t))!EW.call(e,i)&&i!==n&&oy(e,i,{get:()=>t[i],enumerable:!(r=yW(t,i))||r.enumerable});return e};var q=(e,t,n)=>(n=e!=null?vW(bW(e)):{},DW(t||!e||!e.__esModule?oy(n,"default",{value:e,enumerable:!0}):n,e));var g2=be(nt=>{"use strict";var ly=Symbol.for("react.transitional.element"),wW=Symbol.for("react.portal"),CW=Symbol.for("react.fragment"),SW=Symbol.for("react.strict_mode"),kW=Symbol.for("react.profiler"),AW=Symbol.for("react.consumer"),TW=Symbol.for("react.context"),BW=Symbol.for("react.forward_ref"),OW=Symbol.for("react.suspense"),MW=Symbol.for("react.memo"),c2=Symbol.for("react.lazy"),o2=Symbol.iterator;function RW(e){return e===null||typeof e!="object"?null:(e=o2&&e[o2]||e["@@iterator"],typeof e=="function"?e:null)}var f2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p2=Object.assign,m2={};function os(e,t,n){this.props=e,this.context=t,this.refs=m2,this.updater=n||f2}os.prototype.isReactComponent={};os.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")};os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function h2(){}h2.prototype=os.prototype;function sy(e,t,n){this.props=e,this.context=t,this.refs=m2,this.updater=n||f2}var cy=sy.prototype=new h2;cy.constructor=sy;p2(cy,os.prototype);cy.isPureReactComponent=!0;var a2=Array.isArray,Gt={H:null,A:null,T:null,S:null},d2=Object.prototype.hasOwnProperty;function fy(e,t,n,r,i,o){return n=o.ref,{$$typeof:ly,type:e,key:t,ref:n!==void 0?n:null,props:o}}function FW(e,t){return fy(e.type,t,void 0,void 0,void 0,e.props)}function py(e){return typeof e=="object"&&e!==null&&e.$$typeof===ly}function _W(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var u2=/\/+/g;function uy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_W(""+e.key):t.toString(36)}function l2(){}function IW(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(l2,l2):(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 is(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ly:case wW:a=!0;break;case c2:return a=e._init,is(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+uy(e,0):r,a2(i)?(n="",a!=null&&(n=a.replace(u2,"$&/")+"/"),is(i,t,n,"",function(f){return f})):i!=null&&(py(i)&&(i=FW(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(u2,"$&/")+"/")+a)),t.push(i)),1;a=0;var l=r===""?".":r+":";if(a2(e))for(var c=0;c<e.length;c++)r=e[c],o=l+uy(r,c),a+=is(r,t,n,o,i);else if(c=RW(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,o=l+uy(r,c++),a+=is(r,t,n,o,i);else if(o==="object"){if(typeof e.then=="function")return is(IW(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function Rh(e,t,n){if(e==null)return e;var r=[],i=0;return is(e,r,"","",function(o){return t.call(n,o,i++)}),r}function LW(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var s2=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function PW(){}nt.Children={map:Rh,forEach:function(e,t,n){Rh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Rh(e,function(){t++}),t},toArray:function(e){return Rh(e,function(t){return t})||[]},only:function(e){if(!py(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};nt.Component=os;nt.Fragment=CW;nt.Profiler=kW;nt.PureComponent=sy;nt.StrictMode=SW;nt.Suspense=OW;nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Gt;nt.act=function(){throw Error("act(...) is not supported in production builds of React.")};nt.cache=function(e){return function(){return e.apply(null,arguments)}};nt.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=p2({},e.props),i=e.key,o=void 0;if(t!=null)for(a in t.ref!==void 0&&(o=void 0),t.key!==void 0&&(i=""+t.key),t)!d2.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 l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}return fy(e.type,i,void 0,void 0,o,r)};nt.createContext=function(e){return e={$$typeof:TW,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:AW,_context:e},e};nt.createElement=function(e,t,n){var r,i={},o=null;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)d2.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return fy(e,o,void 0,void 0,null,i)};nt.createRef=function(){return{current:null}};nt.forwardRef=function(e){return{$$typeof:BW,render:e}};nt.isValidElement=py;nt.lazy=function(e){return{$$typeof:c2,_payload:{_status:-1,_result:e},_init:LW}};nt.memo=function(e,t){return{$$typeof:MW,type:e,compare:t===void 0?null:t}};nt.startTransition=function(e){var t=Gt.T,n={};Gt.T=n;try{var r=e(),i=Gt.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(PW,s2)}catch(o){s2(o)}finally{Gt.T=t}};nt.unstable_useCacheRefresh=function(){return Gt.H.useCacheRefresh()};nt.use=function(e){return Gt.H.use(e)};nt.useActionState=function(e,t,n){return Gt.H.useActionState(e,t,n)};nt.useCallback=function(e,t){return Gt.H.useCallback(e,t)};nt.useContext=function(e){return Gt.H.useContext(e)};nt.useDebugValue=function(){};nt.useDeferredValue=function(e,t){return Gt.H.useDeferredValue(e,t)};nt.useEffect=function(e,t){return Gt.H.useEffect(e,t)};nt.useId=function(){return Gt.H.useId()};nt.useImperativeHandle=function(e,t,n){return Gt.H.useImperativeHandle(e,t,n)};nt.useInsertionEffect=function(e,t){return Gt.H.useInsertionEffect(e,t)};nt.useLayoutEffect=function(e,t){return Gt.H.useLayoutEffect(e,t)};nt.useMemo=function(e,t){return Gt.H.useMemo(e,t)};nt.useOptimistic=function(e,t){return Gt.H.useOptimistic(e,t)};nt.useReducer=function(e,t,n){return Gt.H.useReducer(e,t,n)};nt.useRef=function(e){return Gt.H.useRef(e)};nt.useState=function(e){return Gt.H.useState(e)};nt.useSyncExternalStore=function(e,t,n){return Gt.H.useSyncExternalStore(e,t,n)};nt.useTransition=function(){return Gt.H.useTransition()};nt.version="19.0.0"});var Ue=be((Wse,v2)=>{"use strict";v2.exports=g2()});var A2=be(Tt=>{"use strict";function gy(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<Fh(i,t))e[r]=t,e[n]=i,n=r;else break e}}function Vi(e){return e.length===0?null:e[0]}function Ih(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var a=2*(r+1)-1,l=e[a],c=a+1,f=e[c];if(0>Fh(l,n))c<i&&0>Fh(f,l)?(e[r]=f,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else if(c<i&&0>Fh(f,n))e[r]=f,e[c]=n,r=c;else break e}}return t}function Fh(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Tt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(y2=performance,Tt.unstable_now=function(){return y2.now()}):(my=Date,x2=my.now(),Tt.unstable_now=function(){return my.now()-x2});var y2,my,x2,uo=[],Ba=[],zW=1,yi=null,Gn=3,Lh=!1,Uu=!1,Df=!1,D2=typeof setTimeout=="function"?setTimeout:null,w2=typeof clearTimeout=="function"?clearTimeout:null,b2=typeof setImmediate<"u"?setImmediate:null;function _h(e){for(var t=Vi(Ba);t!==null;){if(t.callback===null)Ih(Ba);else if(t.startTime<=e)Ih(Ba),t.sortIndex=t.expirationTime,gy(uo,t);else break;t=Vi(Ba)}}function vy(e){if(Df=!1,_h(e),!Uu)if(Vi(uo)!==null)Uu=!0,yy();else{var t=Vi(Ba);t!==null&&xy(vy,t.startTime-e)}}var Ph=!1,wf=-1,C2=5,S2=-1;function k2(){return!(Tt.unstable_now()-S2<C2)}function hy(){if(Ph){var e=Tt.unstable_now();S2=e;var t=!0;try{e:{Uu=!1,Df&&(Df=!1,w2(wf),wf=-1),Lh=!0;var n=Gn;try{t:{for(_h(e),yi=Vi(uo);yi!==null&&!(yi.expirationTime>e&&k2());){var r=yi.callback;if(typeof r=="function"){yi.callback=null,Gn=yi.priorityLevel;var i=r(yi.expirationTime<=e);if(e=Tt.unstable_now(),typeof i=="function"){yi.callback=i,_h(e),t=!0;break t}yi===Vi(uo)&&Ih(uo),_h(e)}else Ih(uo);yi=Vi(uo)}if(yi!==null)t=!0;else{var o=Vi(Ba);o!==null&&xy(vy,o.startTime-e),t=!1}}break e}finally{yi=null,Gn=n,Lh=!1}t=void 0}}finally{t?Ef():Ph=!1}}}var Ef;typeof b2=="function"?Ef=function(){b2(hy)}:typeof MessageChannel<"u"?(dy=new MessageChannel,E2=dy.port2,dy.port1.onmessage=hy,Ef=function(){E2.postMessage(null)}):Ef=function(){D2(hy,0)};var dy,E2;function yy(){Ph||(Ph=!0,Ef())}function xy(e,t){wf=D2(function(){e(Tt.unstable_now())},t)}Tt.unstable_IdlePriority=5;Tt.unstable_ImmediatePriority=1;Tt.unstable_LowPriority=4;Tt.unstable_NormalPriority=3;Tt.unstable_Profiling=null;Tt.unstable_UserBlockingPriority=2;Tt.unstable_cancelCallback=function(e){e.callback=null};Tt.unstable_continueExecution=function(){Uu||Lh||(Uu=!0,yy())};Tt.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"):C2=0<e?Math.floor(1e3/e):5};Tt.unstable_getCurrentPriorityLevel=function(){return Gn};Tt.unstable_getFirstCallbackNode=function(){return Vi(uo)};Tt.unstable_next=function(e){switch(Gn){case 1:case 2:case 3:var t=3;break;default:t=Gn}var n=Gn;Gn=t;try{return e()}finally{Gn=n}};Tt.unstable_pauseExecution=function(){};Tt.unstable_requestPaint=function(){};Tt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Gn;Gn=e;try{return t()}finally{Gn=n}};Tt.unstable_scheduleCallback=function(e,t,n){var r=Tt.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:zW++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,gy(Ba,e),Vi(uo)===null&&e===Vi(Ba)&&(Df?(w2(wf),wf=-1):Df=!0,xy(vy,n-r))):(e.sortIndex=i,gy(uo,e),Uu||Lh||(Uu=!0,yy())),e};Tt.unstable_shouldYield=k2;Tt.unstable_wrapCallback=function(e){var t=Gn;return function(){var n=Gn;Gn=t;try{return e.apply(this,arguments)}finally{Gn=n}}}});var B2=be((Yse,T2)=>{"use strict";T2.exports=A2()});var M2=be(ar=>{"use strict";var NW=Ue();function O2(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 Oa(){}var or={d:{f:Oa,r:function(){throw Error(O2(522))},D:Oa,C:Oa,L:Oa,m:Oa,X:Oa,S:Oa,M:Oa},p:0,findDOMNode:null},UW=Symbol.for("react.portal");function HW(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:UW,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Cf=NW.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function zh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ar.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=or;ar.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(O2(299));return HW(e,t,null,n)};ar.flushSync=function(e){var t=Cf.T,n=or.p;try{if(Cf.T=null,or.p=2,e)return e()}finally{Cf.T=t,or.p=n,or.d.f()}};ar.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,or.d.C(e,t))};ar.prefetchDNS=function(e){typeof e=="string"&&or.d.D(e)};ar.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=zh(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?or.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n==="script"&&or.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ar.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=zh(t.as,t.crossOrigin);or.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&or.d.M(e)};ar.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=zh(n,t.crossOrigin);or.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})}};ar.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=zh(t.as,t.crossOrigin);or.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 or.d.m(e)};ar.requestFormReset=function(e){or.d.r(e)};ar.unstable_batchedUpdates=function(e,t){return e(t)};ar.useFormState=function(e,t,n){return Cf.H.useFormState(e,t,n)};ar.useFormStatus=function(){return Cf.H.useHostTransitionStatus()};ar.version="19.0.0"});var Nh=be((Qse,F2)=>{"use strict";function R2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R2)}catch(e){console.error(e)}}R2(),F2.exports=M2()});var TO=be(ig=>{"use strict";var bn=B2(),ZT=Ue(),qW=Nh();function se(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 JT(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var jW=Symbol.for("react.element"),Uh=Symbol.for("react.transitional.element"),Ff=Symbol.for("react.portal"),ps=Symbol.for("react.fragment"),eB=Symbol.for("react.strict_mode"),Qy=Symbol.for("react.profiler"),VW=Symbol.for("react.provider"),tB=Symbol.for("react.consumer"),$o=Symbol.for("react.context"),Vx=Symbol.for("react.forward_ref"),Zy=Symbol.for("react.suspense"),Jy=Symbol.for("react.suspense_list"),$x=Symbol.for("react.memo"),Fa=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var nB=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var $W=Symbol.for("react.memo_cache_sentinel"),_2=Symbol.iterator;function Sf(e){return e===null||typeof e!="object"?null:(e=_2&&e[_2]||e["@@iterator"],typeof e=="function"?e:null)}var GW=Symbol.for("react.client.reference");function ex(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===GW?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ps:return"Fragment";case Ff:return"Portal";case Qy:return"Profiler";case eB:return"StrictMode";case Zy:return"Suspense";case Jy:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $o:return(e.displayName||"Context")+".Provider";case tB:return(e._context.displayName||"Context")+".Consumer";case Vx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $x:return t=e.displayName||null,t!==null?t:ex(e.type)||"Memo";case Fa:t=e._payload,e=e._init;try{return ex(e(t))}catch{}}return null}var Je=ZT.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pt=Object.assign,by,I2;function _f(e){if(by===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);by=t&&t[1]||"",I2=-1<n.stack.indexOf(`
|
|
1
|
+
var pj=Object.create;var _v=Object.defineProperty;var dj=Object.getOwnPropertyDescriptor;var hj=Object.getOwnPropertyNames;var gj=Object.getPrototypeOf,vj=Object.prototype.hasOwnProperty;var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yj=(e,t)=>{for(var n in t)_v(e,n,{get:t[n],enumerable:!0})},Ej=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of hj(t))!vj.call(e,i)&&i!==n&&_v(e,i,{get:()=>t[i],enumerable:!(r=dj(t,i))||r.enumerable});return e};var N=(e,t,n)=>(n=e!=null?pj(gj(e)):{},Ej(t||!e||!e.__esModule?_v(n,"default",{value:e,enumerable:!0}):n,e));var KA=ge($e=>{"use strict";var Lv=Symbol.for("react.transitional.element"),bj=Symbol.for("react.portal"),xj=Symbol.for("react.fragment"),Dj=Symbol.for("react.strict_mode"),Cj=Symbol.for("react.profiler"),wj=Symbol.for("react.consumer"),Aj=Symbol.for("react.context"),Sj=Symbol.for("react.forward_ref"),Tj=Symbol.for("react.suspense"),kj=Symbol.for("react.memo"),qA=Symbol.for("react.lazy"),PA=Symbol.iterator;function Bj(e){return e===null||typeof e!="object"?null:(e=PA&&e[PA]||e["@@iterator"],typeof e=="function"?e:null)}var jA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VA=Object.assign,$A={};function Tl(e,t,n){this.props=e,this.context=t,this.refs=$A,this.updater=n||jA}Tl.prototype.isReactComponent={};Tl.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")};Tl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function GA(){}GA.prototype=Tl.prototype;function Pv(e,t,n){this.props=e,this.context=t,this.refs=$A,this.updater=n||jA}var Iv=Pv.prototype=new GA;Iv.constructor=Pv;VA(Iv,Tl.prototype);Iv.isPureReactComponent=!0;var IA=Array.isArray,zt={H:null,A:null,T:null,S:null},WA=Object.prototype.hasOwnProperty;function Nv(e,t,n,r,i,a){return n=a.ref,{$$typeof:Lv,type:e,key:t,ref:n!==void 0?n:null,props:a}}function Oj(e,t){return Nv(e.type,t,void 0,void 0,void 0,e.props)}function Uv(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lv}function Mj(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var NA=/\/+/g;function zv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Mj(""+e.key):t.toString(36)}function UA(){}function Rj(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(UA,UA):(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 Sl(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(a){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case Lv:case bj:u=!0;break;case qA:return u=e._init,Sl(u(e._payload),t,n,r,i)}}if(u)return i=i(e),u=r===""?"."+zv(e,0):r,IA(i)?(n="",u!=null&&(n=u.replace(NA,"$&/")+"/"),Sl(i,t,n,"",function(f){return f})):i!=null&&(Uv(i)&&(i=Oj(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(NA,"$&/")+"/")+u)),t.push(i)),1;u=0;var s=r===""?".":r+":";if(IA(e))for(var c=0;c<e.length;c++)r=e[c],a=s+zv(r,c),u+=Sl(r,t,n,a,i);else if(c=Bj(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,a=s+zv(r,c++),u+=Sl(r,t,n,a,i);else if(a==="object"){if(typeof e.then=="function")return Sl(Rj(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function Lp(e,t,n){if(e==null)return e;var r=[],i=0;return Sl(e,r,"","",function(a){return t.call(n,a,i++)}),r}function Fj(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var HA=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function _j(){}$e.Children={map:Lp,forEach:function(e,t,n){Lp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lp(e,function(){t++}),t},toArray:function(e){return Lp(e,function(t){return t})||[]},only:function(e){if(!Uv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$e.Component=Tl;$e.Fragment=xj;$e.Profiler=Cj;$e.PureComponent=Pv;$e.StrictMode=Dj;$e.Suspense=Tj;$e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=zt;$e.act=function(){throw Error("act(...) is not supported in production builds of React.")};$e.cache=function(e){return function(){return e.apply(null,arguments)}};$e.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=VA({},e.props),i=e.key,a=void 0;if(t!=null)for(u in t.ref!==void 0&&(a=void 0),t.key!==void 0&&(i=""+t.key),t)!WA.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(r[u]=t[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return Nv(e.type,i,void 0,void 0,a,r)};$e.createContext=function(e){return e={$$typeof:Aj,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:wj,_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)WA.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return Nv(e,a,void 0,void 0,null,i)};$e.createRef=function(){return{current:null}};$e.forwardRef=function(e){return{$$typeof:Sj,render:e}};$e.isValidElement=Uv;$e.lazy=function(e){return{$$typeof:qA,_payload:{_status:-1,_result:e},_init:Fj}};$e.memo=function(e,t){return{$$typeof:kj,type:e,compare:t===void 0?null:t}};$e.startTransition=function(e){var t=zt.T,n={};zt.T=n;try{var r=e(),i=zt.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(_j,HA)}catch(a){HA(a)}finally{zt.T=t}};$e.unstable_useCacheRefresh=function(){return zt.H.useCacheRefresh()};$e.use=function(e){return zt.H.use(e)};$e.useActionState=function(e,t,n){return zt.H.useActionState(e,t,n)};$e.useCallback=function(e,t){return zt.H.useCallback(e,t)};$e.useContext=function(e){return zt.H.useContext(e)};$e.useDebugValue=function(){};$e.useDeferredValue=function(e,t){return zt.H.useDeferredValue(e,t)};$e.useEffect=function(e,t){return zt.H.useEffect(e,t)};$e.useId=function(){return zt.H.useId()};$e.useImperativeHandle=function(e,t,n){return zt.H.useImperativeHandle(e,t,n)};$e.useInsertionEffect=function(e,t){return zt.H.useInsertionEffect(e,t)};$e.useLayoutEffect=function(e,t){return zt.H.useLayoutEffect(e,t)};$e.useMemo=function(e,t){return zt.H.useMemo(e,t)};$e.useOptimistic=function(e,t){return zt.H.useOptimistic(e,t)};$e.useReducer=function(e,t,n){return zt.H.useReducer(e,t,n)};$e.useRef=function(e){return zt.H.useRef(e)};$e.useState=function(e){return zt.H.useState(e)};$e.useSyncExternalStore=function(e,t,n){return zt.H.useSyncExternalStore(e,t,n)};$e.useTransition=function(){return zt.H.useTransition()};$e.version="19.0.0"});var Oe=ge((Xne,YA)=>{"use strict";YA.exports=KA()});var a2=ge(bt=>{"use strict";function Vv(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<Pp(i,t))e[r]=t,e[n]=i,n=r;else break e}}function xi(e){return e.length===0?null:e[0]}function Np(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var u=2*(r+1)-1,s=e[u],c=u+1,f=e[c];if(0>Pp(s,n))c<i&&0>Pp(f,s)?(e[r]=f,e[c]=n,r=c):(e[r]=s,e[u]=n,r=u);else if(c<i&&0>Pp(f,n))e[r]=f,e[c]=n,r=c;else break e}}return t}function Pp(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}bt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(QA=performance,bt.unstable_now=function(){return QA.now()}):(Hv=Date,XA=Hv.now(),bt.unstable_now=function(){return Hv.now()-XA});var QA,Hv,XA,Hi=[],oo=[],zj=1,Qr=null,On=3,Up=!1,du=!1,Pc=!1,e2=typeof setTimeout=="function"?setTimeout:null,t2=typeof clearTimeout=="function"?clearTimeout:null,ZA=typeof setImmediate<"u"?setImmediate:null;function Ip(e){for(var t=xi(oo);t!==null;){if(t.callback===null)Np(oo);else if(t.startTime<=e)Np(oo),t.sortIndex=t.expirationTime,Vv(Hi,t);else break;t=xi(oo)}}function $v(e){if(Pc=!1,Ip(e),!du)if(xi(Hi)!==null)du=!0,Gv();else{var t=xi(oo);t!==null&&Wv($v,t.startTime-e)}}var Hp=!1,Ic=-1,n2=5,r2=-1;function i2(){return!(bt.unstable_now()-r2<n2)}function qv(){if(Hp){var e=bt.unstable_now();r2=e;var t=!0;try{e:{du=!1,Pc&&(Pc=!1,t2(Ic),Ic=-1),Up=!0;var n=On;try{t:{for(Ip(e),Qr=xi(Hi);Qr!==null&&!(Qr.expirationTime>e&&i2());){var r=Qr.callback;if(typeof r=="function"){Qr.callback=null,On=Qr.priorityLevel;var i=r(Qr.expirationTime<=e);if(e=bt.unstable_now(),typeof i=="function"){Qr.callback=i,Ip(e),t=!0;break t}Qr===xi(Hi)&&Np(Hi),Ip(e)}else Np(Hi);Qr=xi(Hi)}if(Qr!==null)t=!0;else{var a=xi(oo);a!==null&&Wv($v,a.startTime-e),t=!1}}break e}finally{Qr=null,On=n,Up=!1}t=void 0}}finally{t?Lc():Hp=!1}}}var Lc;typeof ZA=="function"?Lc=function(){ZA(qv)}:typeof MessageChannel<"u"?(jv=new MessageChannel,JA=jv.port2,jv.port1.onmessage=qv,Lc=function(){JA.postMessage(null)}):Lc=function(){e2(qv,0)};var jv,JA;function Gv(){Hp||(Hp=!0,Lc())}function Wv(e,t){Ic=e2(function(){e(bt.unstable_now())},t)}bt.unstable_IdlePriority=5;bt.unstable_ImmediatePriority=1;bt.unstable_LowPriority=4;bt.unstable_NormalPriority=3;bt.unstable_Profiling=null;bt.unstable_UserBlockingPriority=2;bt.unstable_cancelCallback=function(e){e.callback=null};bt.unstable_continueExecution=function(){du||Up||(du=!0,Gv())};bt.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"):n2=0<e?Math.floor(1e3/e):5};bt.unstable_getCurrentPriorityLevel=function(){return On};bt.unstable_getFirstCallbackNode=function(){return xi(Hi)};bt.unstable_next=function(e){switch(On){case 1:case 2:case 3:var t=3;break;default:t=On}var n=On;On=t;try{return e()}finally{On=n}};bt.unstable_pauseExecution=function(){};bt.unstable_requestPaint=function(){};bt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=On;On=e;try{return t()}finally{On=n}};bt.unstable_scheduleCallback=function(e,t,n){var r=bt.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:zj++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,Vv(oo,e),xi(Hi)===null&&e===xi(oo)&&(Pc?(t2(Ic),Ic=-1):Pc=!0,Wv($v,n-r))):(e.sortIndex=i,Vv(Hi,e),du||Up||(du=!0,Gv())),e};bt.unstable_shouldYield=i2;bt.unstable_wrapCallback=function(e){var t=On;return function(){var n=On;On=t;try{return e.apply(this,arguments)}finally{On=n}}}});var u2=ge((Jne,o2)=>{"use strict";o2.exports=a2()});var s2=ge(jn=>{"use strict";var Lj=Oe();function l2(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 uo(){}var qn={d:{f:uo,r:function(){throw Error(l2(522))},D:uo,C:uo,L:uo,m:uo,X:uo,S:uo,M:uo},p:0,findDOMNode:null},Pj=Symbol.for("react.portal");function Ij(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pj,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Nc=Lj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function qp(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}jn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=qn;jn.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(l2(299));return Ij(e,t,null,n)};jn.flushSync=function(e){var t=Nc.T,n=qn.p;try{if(Nc.T=null,qn.p=2,e)return e()}finally{Nc.T=t,qn.p=n,qn.d.f()}};jn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,qn.d.C(e,t))};jn.prefetchDNS=function(e){typeof e=="string"&&qn.d.D(e)};jn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=qp(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?qn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:a}):n==="script"&&qn.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};jn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=qp(t.as,t.crossOrigin);qn.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&qn.d.M(e)};jn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=qp(n,t.crossOrigin);qn.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})}};jn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=qp(t.as,t.crossOrigin);qn.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 qn.d.m(e)};jn.requestFormReset=function(e){qn.d.r(e)};jn.unstable_batchedUpdates=function(e,t){return e(t)};jn.useFormState=function(e,t,n){return Nc.H.useFormState(e,t,n)};jn.useFormStatus=function(){return Nc.H.useHostTransitionStatus()};jn.version="19.0.0"});var jp=ge((tre,f2)=>{"use strict";function c2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c2)}catch(e){console.error(e)}}c2(),f2.exports=s2()});var oB=ge(lh=>{"use strict";var an=u2(),OS=Oe(),Nj=jp();function ie(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 MS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var Uj=Symbol.for("react.element"),Vp=Symbol.for("react.transitional.element"),Kc=Symbol.for("react.portal"),_l=Symbol.for("react.fragment"),RS=Symbol.for("react.strict_mode"),A1=Symbol.for("react.profiler"),Hj=Symbol.for("react.provider"),FS=Symbol.for("react.consumer"),Aa=Symbol.for("react.context"),yy=Symbol.for("react.forward_ref"),S1=Symbol.for("react.suspense"),T1=Symbol.for("react.suspense_list"),Ey=Symbol.for("react.memo"),co=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var _S=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var qj=Symbol.for("react.memo_cache_sentinel"),m2=Symbol.iterator;function Uc(e){return e===null||typeof e!="object"?null:(e=m2&&e[m2]||e["@@iterator"],typeof e=="function"?e:null)}var jj=Symbol.for("react.client.reference");function k1(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===jj?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _l:return"Fragment";case Kc:return"Portal";case A1:return"Profiler";case RS:return"StrictMode";case S1:return"Suspense";case T1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Aa:return(e.displayName||"Context")+".Provider";case FS:return(e._context.displayName||"Context")+".Consumer";case yy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ey:return t=e.displayName||null,t!==null?t:k1(e.type)||"Memo";case co:t=e._payload,e=e._init;try{return k1(e(t))}catch{}}return null}var Ue=OS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kt=Object.assign,Kv,p2;function Yc(e){if(Kv===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Kv=t&&t[1]||"",p2=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
4
|
-
`),f=
|
|
3
|
+
`+Kv+e+p2}var Yv=!1;function Qv(e,t){if(!e||Yv)return"";Yv=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(d){var g=d}Reflect.construct(e,[],h)}else{try{h.call()}catch(d){g=d}e.call(h.prototype)}}else{try{throw Error()}catch(d){g=d}(h=e())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(d){if(d&&g&&typeof d.stack=="string")return[d.stack,g.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(),u=a[0],s=a[1];if(u&&s){var c=u.split(`
|
|
4
|
+
`),f=s.split(`
|
|
5
5
|
`);for(i=r=0;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;for(;i<f.length&&!f[i].includes("DetermineComponentFrameRoot");)i++;if(r===c.length||i===f.length)for(r=c.length-1,i=f.length-1;1<=r&&0<=i&&c[r]!==f[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==f[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==f[i]){var p=`
|
|
6
|
-
`+c[r].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=r&&0<=i);break}}}finally{
|
|
6
|
+
`+c[r].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=r&&0<=i);break}}}finally{Yv=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Yc(n):""}function Vj(e){switch(e.tag){case 26:case 27:case 5:return Yc(e.type);case 16:return Yc("Lazy");case 13:return Yc("Suspense");case 19:return Yc("SuspenseList");case 0:case 15:return e=Qv(e.type,!1),e;case 11:return e=Qv(e.type.render,!1),e;case 1:return e=Qv(e.type,!0),e;default:return""}}function d2(e){try{var t="";do t+=Vj(e),e=e.return;while(e);return t}catch(n){return`
|
|
7
7
|
Error generating stack: `+n.message+`
|
|
8
|
-
`+n.stack}}function Us(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 rB(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 P2(e){if(Us(e)!==e)throw Error(se(188))}function KW(e){var t=e.alternate;if(!t){if(t=Us(e),t===null)throw Error(se(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return P2(i),e;if(o===r)return P2(i),t;o=o.sibling}throw Error(se(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(se(189))}}if(n.alternate!==r)throw Error(se(190))}if(n.tag!==3)throw Error(se(188));return n.stateNode.current===n?e:t}function iB(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=iB(e),t!==null)return t;e=e.sibling}return null}var If=Array.isArray,Lt=qW.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Wu={pending:!1,data:null,method:null,action:null},tx=[],ms=-1;function ho(e){return{current:e}}function Tn(e){0>ms||(e.current=tx[ms],tx[ms]=null,ms--)}function Ut(e,t){ms++,tx[ms]=e.current,e.current=t}var co=ho(null),Jf=ho(null),Ha=ho(null),gd=ho(null);function vd(e,t){switch(Ut(Ha,t),Ut(Jf,e),Ut(co,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?NT(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=NT(e),t=gO(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Tn(co),Ut(co,t)}function Ms(){Tn(co),Tn(Jf),Tn(Ha)}function nx(e){e.memoizedState!==null&&Ut(gd,e);var t=co.current,n=gO(t,e.type);t!==n&&(Ut(Jf,e),Ut(co,n))}function yd(e){Jf.current===e&&(Tn(co),Tn(Jf)),gd.current===e&&(Tn(gd),cp._currentValue=Wu)}var rx=Object.prototype.hasOwnProperty,Gx=bn.unstable_scheduleCallback,wy=bn.unstable_cancelCallback,YW=bn.unstable_shouldYield,XW=bn.unstable_requestPaint,fo=bn.unstable_now,QW=bn.unstable_getCurrentPriorityLevel,oB=bn.unstable_ImmediatePriority,aB=bn.unstable_UserBlockingPriority,xd=bn.unstable_NormalPriority,ZW=bn.unstable_LowPriority,uB=bn.unstable_IdlePriority,JW=bn.log,eK=bn.unstable_setDisableYieldValue,hp=null,Wr=null;function tK(e){if(Wr&&typeof Wr.onCommitFiberRoot=="function")try{Wr.onCommitFiberRoot(hp,e,void 0,(e.current.flags&128)===128)}catch{}}function Na(e){if(typeof JW=="function"&&eK(e),Wr&&typeof Wr.setStrictMode=="function")try{Wr.setStrictMode(hp,e)}catch{}}var Kr=Math.clz32?Math.clz32:iK,nK=Math.log,rK=Math.LN2;function iK(e){return e>>>=0,e===0?32:31-(nK(e)/rK|0)|0}var Hh=128,qh=4194304;function qu(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:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;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 Vd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=e.warmLanes;e=e.finishedLanes!==0;var l=n&134217727;return l!==0?(n=l&~i,n!==0?r=qu(n):(o&=l,o!==0?r=qu(o):e||(a=l&~a,a!==0&&(r=qu(a))))):(l=n&~i,l!==0?r=qu(l):o!==0?r=qu(o):e||(a=n&~a,a!==0&&(r=qu(a)))),r===0?0:t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===32&&(a&4194176)!==0)?t:r}function dp(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function oK(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 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 lB(){var e=Hh;return Hh<<=1,!(Hh&4194176)&&(Hh=128),e}function sB(){var e=qh;return qh<<=1,!(qh&62914560)&&(qh=4194304),e}function Cy(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gp(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function aK(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,c=e.expirationTimes,f=e.hiddenUpdates;for(n=a&~n;0<n;){var p=31-Kr(n),d=1<<p;l[p]=0,c[p]=-1;var g=f[p];if(g!==null)for(f[p]=null,p=0;p<g.length;p++){var m=g[p];m!==null&&(m.lane&=-536870913)}n&=~d}r!==0&&cB(e,r,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(a&~t))}function cB(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Kr(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&4194218}function fB(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Kr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function pB(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mB(){var e=Lt.p;return e!==0?e:(e=window.event,e===void 0?32:kO(e.type))}function uK(e,t){var n=Lt.p;try{return Lt.p=e,t()}finally{Lt.p=n}}var Ja=Math.random().toString(36).slice(2),Wn="__reactFiber$"+Ja,Ar="__reactProps$"+Ja,Hs="__reactContainer$"+Ja,ix="__reactEvents$"+Ja,lK="__reactListeners$"+Ja,sK="__reactHandles$"+Ja,z2="__reactResources$"+Ja,ep="__reactMarker$"+Ja;function Wx(e){delete e[Wn],delete e[Ar],delete e[ix],delete e[lK],delete e[sK]}function $u(e){var t=e[Wn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hs]||n[Wn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=HT(e);e!==null;){if(n=e[Wn])return n;e=HT(e)}return t}e=n,n=e.parentNode}return null}function qs(e){if(e=e[Wn]||e[Hs]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Lf(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(se(33))}function ws(e){var t=e[z2];return t||(t=e[z2]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function kn(e){e[ep]=!0}var hB=new Set,dB={};function il(e,t){Rs(e,t),Rs(e+"Capture",t)}function Rs(e,t){for(dB[e]=t,e=0;e<t.length;e++)hB.add(t[e])}var Qo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cK=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]*$"),N2={},U2={};function fK(e){return rx.call(U2,e)?!0:rx.call(N2,e)?!1:cK.test(e)?U2[e]=!0:(N2[e]=!0,!1)}function id(e,t,n){if(fK(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 jh(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 zo(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 Di(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gB(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pK(e){var t=gB(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bd(e){e._valueTracker||(e._valueTracker=pK(e))}function vB(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gB(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ed(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var mK=/[\n"\\]/g;function Si(e){return e.replace(mK,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ox(e,t,n,r,i,o,a,l){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Di(t)):e.value!==""+Di(t)&&(e.value=""+Di(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?ax(e,a,Di(t)):n!=null?ax(e,a,Di(n)):r!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+Di(l):e.removeAttribute("name")}function yB(e,t,n,r,i,o,a,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null))return;n=n!=null?""+Di(n):"",t=t!=null?""+Di(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a)}function ax(e,t,n){t==="number"&&Ed(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Cs(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=""+Di(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 xB(e,t,n){if(t!=null&&(t=""+Di(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Di(n):""}function bB(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(se(92));if(If(r)){if(1<r.length)throw Error(se(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Di(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r)}function Fs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hK=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 H2(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||hK.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function EB(e,t,n){if(t!=null&&typeof t!="object")throw Error(se(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&&H2(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&H2(e,o,t[o])}function Kx(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 dK=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"]]),gK=/^[\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 od(e){return gK.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var ux=null;function Yx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hs=null,Ss=null;function q2(e){var t=qs(e);if(t&&(e=t.stateNode)){var n=e[Ar]||null;e:switch(e=t.stateNode,t.type){case"input":if(ox(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="'+Si(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Ar]||null;if(!i)throw Error(se(90));ox(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&&vB(r)}break e;case"textarea":xB(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Cs(e,!!n.multiple,t,!1)}}}var Sy=!1;function DB(e,t,n){if(Sy)return e(t,n);Sy=!0;try{var r=e(t);return r}finally{if(Sy=!1,(hs!==null||Ss!==null)&&(eg(),hs&&(t=hs,e=Ss,Ss=hs=null,q2(t),e)))for(t=0;t<e.length;t++)q2(e[t])}}function tp(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Ar]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(se(231,t,typeof n));return n}var lx=!1;if(Qo)try{as={},Object.defineProperty(as,"passive",{get:function(){lx=!0}}),window.addEventListener("test",as,as),window.removeEventListener("test",as,as)}catch{lx=!1}var as,Ua=null,Xx=null,ad=null;function wB(){if(ad)return ad;var e,t=Xx,n=t.length,r,i="value"in Ua?Ua.value:Ua.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return ad=i.slice(e,1<r?1-r:void 0)}function ud(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 Vh(){return!0}function j2(){return!1}function Tr(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Vh:j2,this.isPropagationStopped=j2,this}return Pt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vh)},persist:function(){},isPersistent:Vh}),t}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$d=Tr(ol),vp=Pt({},ol,{view:0,detail:0}),vK=Tr(vp),ky,Ay,kf,Gd=Pt({},vp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qx,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!==kf&&(kf&&e.type==="mousemove"?(ky=e.screenX-kf.screenX,Ay=e.screenY-kf.screenY):Ay=ky=0,kf=e),ky)},movementY:function(e){return"movementY"in e?e.movementY:Ay}}),V2=Tr(Gd),yK=Pt({},Gd,{dataTransfer:0}),xK=Tr(yK),bK=Pt({},vp,{relatedTarget:0}),Ty=Tr(bK),EK=Pt({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),DK=Tr(EK),wK=Pt({},ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CK=Tr(wK),SK=Pt({},ol,{data:0}),$2=Tr(SK),kK={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AK={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"},TK={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function BK(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=TK[e])?!!t[e]:!1}function Qx(){return BK}var OK=Pt({},vp,{key:function(e){if(e.key){var t=kK[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ud(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?AK[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qx,charCode:function(e){return e.type==="keypress"?ud(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ud(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),MK=Tr(OK),RK=Pt({},Gd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),G2=Tr(RK),FK=Pt({},vp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qx}),_K=Tr(FK),IK=Pt({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),LK=Tr(IK),PK=Pt({},Gd,{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}),zK=Tr(PK),NK=Pt({},ol,{newState:0,oldState:0}),UK=Tr(NK),HK=[9,13,27,32],Zx=Qo&&"CompositionEvent"in window,zf=null;Qo&&"documentMode"in document&&(zf=document.documentMode);var qK=Qo&&"TextEvent"in window&&!zf,CB=Qo&&(!Zx||zf&&8<zf&&11>=zf),W2=String.fromCharCode(32),K2=!1;function SB(e,t){switch(e){case"keyup":return HK.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kB(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ds=!1;function jK(e,t){switch(e){case"compositionend":return kB(t);case"keypress":return t.which!==32?null:(K2=!0,W2);case"textInput":return e=t.data,e===W2&&K2?null:e;default:return null}}function VK(e,t){if(ds)return e==="compositionend"||!Zx&&SB(e,t)?(e=wB(),ad=Xx=Ua=null,ds=!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 CB&&t.locale!=="ko"?null:t.data;default:return null}}var $K={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 Y2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$K[e.type]:t==="textarea"}function AB(e,t,n,r){hs?Ss?Ss.push(r):Ss=[r]:hs=r,t=Pd(t,"onChange"),0<t.length&&(n=new $d("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nf=null,np=null;function GK(e){mO(e,0)}function Wd(e){var t=Lf(e);if(vB(t))return e}function X2(e,t){if(e==="change")return t}var TB=!1;Qo&&(Qo?(Gh="oninput"in document,Gh||(By=document.createElement("div"),By.setAttribute("oninput","return;"),Gh=typeof By.oninput=="function"),$h=Gh):$h=!1,TB=$h&&(!document.documentMode||9<document.documentMode));var $h,Gh,By;function Q2(){Nf&&(Nf.detachEvent("onpropertychange",BB),np=Nf=null)}function BB(e){if(e.propertyName==="value"&&Wd(np)){var t=[];AB(t,np,e,Yx(e)),DB(GK,t)}}function WK(e,t,n){e==="focusin"?(Q2(),Nf=t,np=n,Nf.attachEvent("onpropertychange",BB)):e==="focusout"&&Q2()}function KK(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wd(np)}function YK(e,t){if(e==="click")return Wd(t)}function XK(e,t){if(e==="input"||e==="change")return Wd(t)}function QK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xr=typeof Object.is=="function"?Object.is:QK;function rp(e,t){if(Xr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!rx.call(t,i)||!Xr(e[i],t[i]))return!1}return!0}function Z2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function J2(e,t){var n=Z2(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Z2(n)}}function OB(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?OB(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function MB(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ed(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=Ed(e.document)}return t}function Jx(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")}function ZK(e,t){var n=MB(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&OB(t.ownerDocument.documentElement,t)){if(r!==null&&Jx(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var i=t.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!n.extend&&o>r&&(i=r,r=o,o=i),i=J2(t,o);var a=J2(t,r);i&&a&&(n.rangeCount!==1||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==a.node||n.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),n.removeAllRanges(),o>r?(n.addRange(e),n.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)n=e[t],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var JK=Qo&&"documentMode"in document&&11>=document.documentMode,gs=null,sx=null,Uf=null,cx=!1;function eT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cx||gs==null||gs!==Ed(r)||(r=gs,"selectionStart"in r&&Jx(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}),Uf&&rp(Uf,r)||(Uf=r,r=Pd(sx,"onSelect"),0<r.length&&(t=new $d("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gs)))}function Hu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vs={animationend:Hu("Animation","AnimationEnd"),animationiteration:Hu("Animation","AnimationIteration"),animationstart:Hu("Animation","AnimationStart"),transitionrun:Hu("Transition","TransitionRun"),transitionstart:Hu("Transition","TransitionStart"),transitioncancel:Hu("Transition","TransitionCancel"),transitionend:Hu("Transition","TransitionEnd")},Oy={},RB={};Qo&&(RB=document.createElement("div").style,"AnimationEvent"in window||(delete vs.animationend.animation,delete vs.animationiteration.animation,delete vs.animationstart.animation),"TransitionEvent"in window||delete vs.transitionend.transition);function al(e){if(Oy[e])return Oy[e];if(!vs[e])return e;var t=vs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in RB)return Oy[e]=t[n];return e}var FB=al("animationend"),_B=al("animationiteration"),IB=al("animationstart"),eY=al("transitionrun"),tY=al("transitionstart"),nY=al("transitioncancel"),LB=al("transitionend"),PB=new Map,tT="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 scrollEnd toggle touchMove waiting wheel".split(" ");function Ki(e,t){PB.set(e,t),il(t,[e])}var Ei=[],ys=0,eb=0;function Kd(){for(var e=ys,t=eb=ys=0;t<e;){var n=Ei[t];Ei[t++]=null;var r=Ei[t];Ei[t++]=null;var i=Ei[t];Ei[t++]=null;var o=Ei[t];if(Ei[t++]=null,r!==null&&i!==null){var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}o!==0&&zB(n,i,o)}}function Yd(e,t,n,r){Ei[ys++]=e,Ei[ys++]=t,Ei[ys++]=n,Ei[ys++]=r,eb|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function tb(e,t,n,r){return Yd(e,t,n,r),Dd(e)}function Ya(e,t){return Yd(e,null,null,t),Dd(e)}function zB(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;i&&t!==null&&e.tag===3&&(o=e.stateNode,i=31-Kr(n),o=o.hiddenUpdates,e=o[i],e===null?o[i]=[t]:e.push(t),t.lane=n|536870912)}function Dd(e){if(50<Zf)throw Zf=0,Rx=null,Error(se(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var xs={},nT=new WeakMap;function ki(e,t){if(typeof e=="object"&&e!==null){var n=nT.get(e);return n!==void 0?n:(t={value:e,source:t,stack:L2(t)},nT.set(e,t),t)}return{value:e,source:t,stack:L2(t)}}var bs=[],Es=0,wd=null,Cd=0,wi=[],Ci=0,Ku=null,Go=1,Wo="";function ju(e,t){bs[Es++]=Cd,bs[Es++]=wd,wd=e,Cd=t}function NB(e,t,n){wi[Ci++]=Go,wi[Ci++]=Wo,wi[Ci++]=Ku,Ku=e;var r=Go;e=Wo;var i=32-Kr(r)-1;r&=~(1<<i),n+=1;var o=32-Kr(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Go=1<<32-Kr(t)+i|n<<i|r,Wo=o+e}else Go=1<<o|n<<i|r,Wo=e}function nb(e){e.return!==null&&(ju(e,1),NB(e,1,0))}function rb(e){for(;e===wd;)wd=bs[--Es],bs[Es]=null,Cd=bs[--Es],bs[Es]=null;for(;e===Ku;)Ku=wi[--Ci],wi[Ci]=null,Wo=wi[--Ci],wi[Ci]=null,Go=wi[--Ci],wi[Ci]=null}var ur=null,zn=null,yt=!1,Gi=null,lo=!1,fx=Error(se(519));function Ju(e){var t=Error(se(418,""));throw ip(ki(t,e)),fx}function rT(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Wn]=e,t[Ar]=r,n){case"dialog":mt("cancel",t),mt("close",t);break;case"iframe":case"object":case"embed":mt("load",t);break;case"video":case"audio":for(n=0;n<up.length;n++)mt(up[n],t);break;case"source":mt("error",t);break;case"img":case"image":case"link":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"input":mt("invalid",t),yB(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),bd(t);break;case"select":mt("invalid",t);break;case"textarea":mt("invalid",t),bB(t,r.value,r.defaultValue,r.children),bd(t)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||dO(t.textContent,n)?(r.popover!=null&&(mt("beforetoggle",t),mt("toggle",t)),r.onScroll!=null&&mt("scroll",t),r.onScrollEnd!=null&&mt("scrollend",t),r.onClick!=null&&(t.onclick=ng),t=!0):t=!1,t||Ju(e)}function iT(e){for(ur=e.return;ur;)switch(ur.tag){case 3:case 27:lo=!0;return;case 5:case 13:lo=!1;return;default:ur=ur.return}}function Af(e){if(e!==ur)return!1;if(!yt)return iT(e),yt=!0,!1;var t=!1,n;if((n=e.tag!==3&&e.tag!==27)&&((n=e.tag===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Nx(e.type,e.memoizedProps)),n=!n),n&&(t=!0),t&&zn&&Ju(e),iT(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(se(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){zn=Wi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}zn=null}}else zn=ur?Wi(e.stateNode.nextSibling):null;return!0}function yp(){zn=ur=null,yt=!1}function ip(e){Gi===null?Gi=[e]:Gi.push(e)}var Hf=Error(se(460)),UB=Error(se(474)),px={then:function(){}};function oT(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wh(){}function HB(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Wh,Wh),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Hf?Error(se(483)):e;default:if(typeof t.status=="string")t.then(Wh,Wh);else{if(e=Ft,e!==null&&100<e.shellSuspendCounter)throw Error(se(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Hf?Error(se(483)):e}throw qf=t,Hf}}var qf=null;function aT(){if(qf===null)throw Error(se(459));var e=qf;return qf=null,e}var ks=null,op=0;function Kh(e){var t=op;return op+=1,ks===null&&(ks=[]),HB(ks,e,t)}function Tf(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yh(e,t){throw t.$$typeof===jW?Error(se(525)):(e=Object.prototype.toString.call(t),Error(se(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function uT(e){var t=e._init;return t(e._payload)}function qB(e){function t(y,w){if(e){var C=y.deletions;C===null?(y.deletions=[w],y.flags|=16):C.push(w)}}function n(y,w){if(!e)return null;for(;w!==null;)t(y,w),w=w.sibling;return null}function r(y){for(var w=new Map;y!==null;)y.key!==null?w.set(y.key,y):w.set(y.index,y),y=y.sibling;return w}function i(y,w){return y=Va(y,w),y.index=0,y.sibling=null,y}function o(y,w,C){return y.index=C,e?(C=y.alternate,C!==null?(C=C.index,C<w?(y.flags|=33554434,w):C):(y.flags|=33554434,w)):(y.flags|=1048576,w)}function a(y){return e&&y.alternate===null&&(y.flags|=33554434),y}function l(y,w,C,M){return w===null||w.tag!==6?(w=qy(C,y.mode,M),w.return=y,w):(w=i(w,C),w.return=y,w)}function c(y,w,C,M){var R=C.type;return R===ps?p(y,w,C.props.children,M,C.key):w!==null&&(w.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Fa&&uT(R)===w.type)?(w=i(w,C.props),Tf(w,C),w.return=y,w):(w=pd(C.type,C.key,C.props,null,y.mode,M),Tf(w,C),w.return=y,w)}function f(y,w,C,M){return w===null||w.tag!==4||w.stateNode.containerInfo!==C.containerInfo||w.stateNode.implementation!==C.implementation?(w=jy(C,y.mode,M),w.return=y,w):(w=i(w,C.children||[]),w.return=y,w)}function p(y,w,C,M,R){return w===null||w.tag!==7?(w=Xu(C,y.mode,M,R),w.return=y,w):(w=i(w,C),w.return=y,w)}function d(y,w,C){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=qy(""+w,y.mode,C),w.return=y,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Uh:return C=pd(w.type,w.key,w.props,null,y.mode,C),Tf(C,w),C.return=y,C;case Ff:return w=jy(w,y.mode,C),w.return=y,w;case Fa:var M=w._init;return w=M(w._payload),d(y,w,C)}if(If(w)||Sf(w))return w=Xu(w,y.mode,C,null),w.return=y,w;if(typeof w.then=="function")return d(y,Kh(w),C);if(w.$$typeof===$o)return d(y,Xh(y,w),C);Yh(y,w)}return null}function g(y,w,C,M){var R=w!==null?w.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return R!==null?null:l(y,w,""+C,M);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Uh:return C.key===R?c(y,w,C,M):null;case Ff:return C.key===R?f(y,w,C,M):null;case Fa:return R=C._init,C=R(C._payload),g(y,w,C,M)}if(If(C)||Sf(C))return R!==null?null:p(y,w,C,M,null);if(typeof C.then=="function")return g(y,w,Kh(C),M);if(C.$$typeof===$o)return g(y,w,Xh(y,C),M);Yh(y,C)}return null}function m(y,w,C,M,R){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return y=y.get(C)||null,l(w,y,""+M,R);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Uh:return y=y.get(M.key===null?C:M.key)||null,c(w,y,M,R);case Ff:return y=y.get(M.key===null?C:M.key)||null,f(w,y,M,R);case Fa:var A=M._init;return M=A(M._payload),m(y,w,C,M,R)}if(If(M)||Sf(M))return y=y.get(C)||null,p(w,y,M,R,null);if(typeof M.then=="function")return m(y,w,C,Kh(M),R);if(M.$$typeof===$o)return m(y,w,C,Xh(w,M),R);Yh(w,M)}return null}function x(y,w,C,M){for(var R=null,A=null,P=w,V=w=0,J=null;P!==null&&V<C.length;V++){P.index>V?(J=P,P=null):J=P.sibling;var _=g(y,P,C[V],M);if(_===null){P===null&&(P=J);break}e&&P&&_.alternate===null&&t(y,P),w=o(_,w,V),A===null?R=_:A.sibling=_,A=_,P=J}if(V===C.length)return n(y,P),yt&&ju(y,V),R;if(P===null){for(;V<C.length;V++)P=d(y,C[V],M),P!==null&&(w=o(P,w,V),A===null?R=P:A.sibling=P,A=P);return yt&&ju(y,V),R}for(P=r(P);V<C.length;V++)J=m(P,y,V,C[V],M),J!==null&&(e&&J.alternate!==null&&P.delete(J.key===null?V:J.key),w=o(J,w,V),A===null?R=J:A.sibling=J,A=J);return e&&P.forEach(function(de){return t(y,de)}),yt&&ju(y,V),R}function S(y,w,C,M){if(C==null)throw Error(se(151));for(var R=null,A=null,P=w,V=w=0,J=null,_=C.next();P!==null&&!_.done;V++,_=C.next()){P.index>V?(J=P,P=null):J=P.sibling;var de=g(y,P,_.value,M);if(de===null){P===null&&(P=J);break}e&&P&&de.alternate===null&&t(y,P),w=o(de,w,V),A===null?R=de:A.sibling=de,A=de,P=J}if(_.done)return n(y,P),yt&&ju(y,V),R;if(P===null){for(;!_.done;V++,_=C.next())_=d(y,_.value,M),_!==null&&(w=o(_,w,V),A===null?R=_:A.sibling=_,A=_);return yt&&ju(y,V),R}for(P=r(P);!_.done;V++,_=C.next())_=m(P,y,V,_.value,M),_!==null&&(e&&_.alternate!==null&&P.delete(_.key===null?V:_.key),w=o(_,w,V),A===null?R=_:A.sibling=_,A=_);return e&&P.forEach(function(Z){return t(y,Z)}),yt&&ju(y,V),R}function T(y,w,C,M){if(typeof C=="object"&&C!==null&&C.type===ps&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Uh:e:{for(var R=C.key;w!==null;){if(w.key===R){if(R=C.type,R===ps){if(w.tag===7){n(y,w.sibling),M=i(w,C.props.children),M.return=y,y=M;break e}}else if(w.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Fa&&uT(R)===w.type){n(y,w.sibling),M=i(w,C.props),Tf(M,C),M.return=y,y=M;break e}n(y,w);break}else t(y,w);w=w.sibling}C.type===ps?(M=Xu(C.props.children,y.mode,M,C.key),M.return=y,y=M):(M=pd(C.type,C.key,C.props,null,y.mode,M),Tf(M,C),M.return=y,y=M)}return a(y);case Ff:e:{for(R=C.key;w!==null;){if(w.key===R)if(w.tag===4&&w.stateNode.containerInfo===C.containerInfo&&w.stateNode.implementation===C.implementation){n(y,w.sibling),M=i(w,C.children||[]),M.return=y,y=M;break e}else{n(y,w);break}else t(y,w);w=w.sibling}M=jy(C,y.mode,M),M.return=y,y=M}return a(y);case Fa:return R=C._init,C=R(C._payload),T(y,w,C,M)}if(If(C))return x(y,w,C,M);if(Sf(C)){if(R=Sf(C),typeof R!="function")throw Error(se(150));return C=R.call(C),S(y,w,C,M)}if(typeof C.then=="function")return T(y,w,Kh(C),M);if(C.$$typeof===$o)return T(y,w,Xh(y,C),M);Yh(y,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,w!==null&&w.tag===6?(n(y,w.sibling),M=i(w,C),M.return=y,y=M):(n(y,w),M=qy(C,y.mode,M),M.return=y,y=M),a(y)):n(y,w)}return function(y,w,C,M){try{op=0;var R=T(y,w,C,M);return ks=null,R}catch(P){if(P===Hf)throw P;var A=Ai(29,P,null,y.mode);return A.lanes=M,A.return=y,A}finally{}}}var el=qB(!0),jB=qB(!1),_s=ho(null),Sd=ho(0);function lT(e,t){e=ea,Ut(Sd,e),Ut(_s,t),ea=e|t.baseLanes}function mx(){Ut(Sd,ea),Ut(_s,_s.current)}function ib(){ea=Sd.current,Tn(_s),Tn(Sd)}var Bi=ho(null),po=null;function Ia(e){var t=e.alternate;Ut(xn,xn.current&1),Ut(Bi,e),po===null&&(t===null||_s.current!==null||t.memoizedState!==null)&&(po=e)}function VB(e){if(e.tag===22){if(Ut(xn,xn.current),Ut(Bi,e),po===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(po=e)}}else La(e)}function La(){Ut(xn,xn.current),Ut(Bi,Bi.current)}function Ko(e){Tn(Bi),po===e&&(po=null),Tn(xn)}var xn=ho(0);function kd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rY=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},iY=bn.unstable_scheduleCallback,oY=bn.unstable_NormalPriority,yn={$$typeof:$o,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ob(){return{controller:new rY,data:new Map,refCount:0}}function xp(e){e.refCount--,e.refCount===0&&iY(oY,function(){e.controller.abort()})}var jf=null,hx=0,Is=0,As=null;function aY(e,t){if(jf===null){var n=jf=[];hx=0,Is=Tb(),As={status:"pending",value:void 0,then:function(r){n.push(r)}}}return hx++,t.then(sT,sT),t}function sT(){if(--hx===0&&jf!==null){As!==null&&(As.status="fulfilled");var e=jf;jf=null,Is=0,As=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function uY(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var cT=Je.S;Je.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&aY(e,t),cT!==null&&cT(e,t)};var Yu=ho(null);function ab(){var e=Yu.current;return e!==null?e:Ft.pooledCache}function ld(e,t){t===null?Ut(Yu,Yu.current):Ut(Yu,t.pool)}function $B(){var e=ab();return e===null?null:{parent:yn._currentValue,pool:e}}var Xa=0,ot=null,kt=null,cn=null,Ad=!1,Ts=!1,tl=!1,Td=0,ap=0,Bs=null,lY=0;function nn(){throw Error(se(321))}function ub(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xr(e[n],t[n]))return!1;return!0}function lb(e,t,n,r,i,o){return Xa=o,ot=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Je.H=e===null||e.memoizedState===null?ul:eu,tl=!1,o=n(r,i),tl=!1,Ts&&(o=WB(t,n,r,i)),GB(e),o}function GB(e){Je.H=mo;var t=kt!==null&&kt.next!==null;if(Xa=0,cn=kt=ot=null,Ad=!1,ap=0,Bs=null,t)throw Error(se(300));e===null||An||(e=e.dependencies,e!==null&&Md(e)&&(An=!0))}function WB(e,t,n,r){ot=e;var i=0;do{if(Ts&&(Bs=null),ap=0,Ts=!1,25<=i)throw Error(se(301));if(i+=1,cn=kt=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}Je.H=ll,o=t(n,r)}while(Ts);return o}function sY(){var e=Je.H,t=e.useState()[0];return t=typeof t.then=="function"?bp(t):t,e=e.useState()[0],(kt!==null?kt.memoizedState:null)!==e&&(ot.flags|=1024),t}function sb(){var e=Td!==0;return Td=0,e}function cb(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function fb(e){if(Ad){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ad=!1}Xa=0,cn=kt=ot=null,Ts=!1,ap=Td=0,Bs=null}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return cn===null?ot.memoizedState=cn=e:cn=cn.next=e,cn}function fn(){if(kt===null){var e=ot.alternate;e=e!==null?e.memoizedState:null}else e=kt.next;var t=cn===null?ot.memoizedState:cn.next;if(t!==null)cn=t,kt=e;else{if(e===null)throw ot.alternate===null?Error(se(467)):Error(se(310));kt=e,e={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},cn===null?ot.memoizedState=cn=e:cn=cn.next=e}return cn}var Xd;Xd=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function bp(e){var t=ap;return ap+=1,Bs===null&&(Bs=[]),e=HB(Bs,e,t),t=ot,(cn===null?t.memoizedState:cn.next)===null&&(t=t.alternate,Je.H=t===null||t.memoizedState===null?ul:eu),e}function Qd(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bp(e);if(e.$$typeof===$o)return Kn(e)}throw Error(se(438,String(e)))}function pb(e){var t=null,n=ot.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ot.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Xd(),ot.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]=$W;return t.index++,n}function Zo(e,t){return typeof t=="function"?t(e):t}function sd(e){var t=fn();return mb(t,kt,e)}function mb(e,t,n){var r=e.queue;if(r===null)throw Error(se(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var l=a=null,c=null,f=t,p=!1;do{var d=f.lane&-536870913;if(d!==f.lane?(ht&d)===d:(Xa&d)===d){var g=f.revertLane;if(g===0)c!==null&&(c=c.next={lane:0,revertLane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),d===Is&&(p=!0);else if((Xa&g)===g){f=f.next,g===Is&&(p=!0);continue}else d={lane:0,revertLane:f.revertLane,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},c===null?(l=c=d,a=o):c=c.next=d,ot.lanes|=g,Za|=g;d=f.action,tl&&n(o,d),o=f.hasEagerState?f.eagerState:n(o,d)}else g={lane:d,revertLane:f.revertLane,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},c===null?(l=c=g,a=o):c=c.next=g,ot.lanes|=d,Za|=d;f=f.next}while(f!==null&&f!==t);if(c===null?a=o:c.next=l,!Xr(o,e.memoizedState)&&(An=!0,p&&(n=As,n!==null)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=c,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function My(e){var t=fn(),n=t.queue;if(n===null)throw Error(se(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Xr(o,t.memoizedState)||(An=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function KB(e,t,n){var r=ot,i=fn(),o=yt;if(o){if(n===void 0)throw Error(se(407));n=n()}else n=t();var a=!Xr((kt||i).memoizedState,n);if(a&&(i.memoizedState=n,An=!0),i=i.queue,hb(QB.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||cn!==null&&cn.memoizedState.tag&1){if(r.flags|=2048,Ls(9,XB.bind(null,r,i,n,t),{destroy:void 0},null),Ft===null)throw Error(se(349));o||Xa&60||YB(r,t,n)}return n}function YB(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ot.updateQueue,t===null?(t=Xd(),ot.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function XB(e,t,n,r){t.value=n,t.getSnapshot=r,ZB(t)&&JB(e)}function QB(e,t,n){return n(function(){ZB(t)&&JB(e)})}function ZB(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xr(e,n)}catch{return!0}}function JB(e){var t=Ya(e,2);t!==null&&lr(t,e,2)}function dx(e){var t=kr();if(typeof e=="function"){var n=e;if(e=n(),tl){Na(!0);try{n()}finally{Na(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:e},t}function e3(e,t,n,r){return e.baseState=n,mb(e,kt,typeof r=="function"?r:Zo)}function cY(e,t,n,r,i){if(Jd(e))throw Error(se(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};Je.T!==null?n(!0):o.isTransition=!1,r(o),n=t.pending,n===null?(o.next=t.pending=o,t3(t,o)):(o.next=n.next,t.pending=n.next=o)}}function t3(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=Je.T,a={};Je.T=a;try{var l=n(i,r),c=Je.S;c!==null&&c(a,l),fT(e,t,l)}catch(f){gx(e,t,f)}finally{Je.T=o}}else try{o=n(i,r),fT(e,t,o)}catch(f){gx(e,t,f)}}function fT(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){pT(e,t,r)},function(r){return gx(e,t,r)}):pT(e,t,n)}function pT(e,t,n){t.status="fulfilled",t.value=n,n3(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,t3(e,n)))}function gx(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,n3(t),t=t.next;while(t!==r)}e.action=null}function n3(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function r3(e,t){return t}function i3(e,t){if(yt){var n=Ft.formState;if(n!==null){e:{var r=ot;if(yt){if(zn){t:{for(var i=zn,o=lo;i.nodeType!==8;){if(!o){i=null;break t}if(i=Wi(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){zn=Wi(i.nextSibling),r=i.data==="F!";break e}}Ju(r)}r=!1}r&&(t=n[0])}}return n=kr(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r3,lastRenderedState:t},n.queue=r,n=E3.bind(null,ot,r),r.dispatch=n,r=dx(!1),o=yb.bind(null,ot,!1,r.queue),r=kr(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=cY.bind(null,ot,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function o3(e){var t=fn();return a3(t,kt,e)}function a3(e,t,n){t=mb(e,t,r3)[0],e=sd(Zo)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?bp(t):t;var r=fn(),i=r.queue,o=i.dispatch;return n!==r.memoizedState&&(ot.flags|=2048,Ls(9,fY.bind(null,i,n),{destroy:void 0},null)),[t,o,e]}function fY(e,t){e.action=t}function u3(e){var t=fn(),n=kt;if(n!==null)return a3(t,n,e);fn(),t=t.memoizedState,n=fn();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ls(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},t=ot.updateQueue,t===null&&(t=Xd(),ot.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 l3(){return fn().memoizedState}function cd(e,t,n,r){var i=kr();ot.flags|=e,i.memoizedState=Ls(1|t,n,{destroy:void 0},r===void 0?null:r)}function Zd(e,t,n,r){var i=fn();r=r===void 0?null:r;var o=i.memoizedState.inst;kt!==null&&r!==null&&ub(r,kt.memoizedState.deps)?i.memoizedState=Ls(t,n,o,r):(ot.flags|=e,i.memoizedState=Ls(1|t,n,o,r))}function mT(e,t){cd(8390656,8,e,t)}function hb(e,t){Zd(2048,8,e,t)}function s3(e,t){return Zd(4,2,e,t)}function c3(e,t){return Zd(4,4,e,t)}function f3(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 p3(e,t,n){n=n!=null?n.concat([e]):null,Zd(4,4,f3.bind(null,t,e),n)}function db(){}function m3(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ub(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function h3(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ub(t,r[1]))return r[0];if(r=e(),tl){Na(!0);try{e()}finally{Na(!1)}}return n.memoizedState=[r,t],r}function gb(e,t,n){return n===void 0||Xa&1073741824?e.memoizedState=t:(e.memoizedState=n,e=nO(),ot.lanes|=e,Za|=e,n)}function d3(e,t,n,r){return Xr(n,t)?n:_s.current!==null?(e=gb(e,n,r),Xr(e,t)||(An=!0),e):Xa&42?(e=nO(),ot.lanes|=e,Za|=e,t):(An=!0,e.memoizedState=n)}function g3(e,t,n,r,i){var o=Lt.p;Lt.p=o!==0&&8>o?o:8;var a=Je.T,l={};Je.T=l,yb(e,!1,t,n);try{var c=i(),f=Je.S;if(f!==null&&f(l,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var p=uY(c,r);Vf(e,t,p,Yr(e))}else Vf(e,t,r,Yr(e))}catch(d){Vf(e,t,{then:function(){},status:"rejected",reason:d},Yr())}finally{Lt.p=o,Je.T=a}}function pY(){}function vx(e,t,n,r){if(e.tag!==5)throw Error(se(476));var i=v3(e).queue;g3(e,i,t,Wu,n===null?pY:function(){return y3(e),n(r)})}function v3(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Wu,baseState:Wu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:Wu},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function y3(e){var t=v3(e).next.queue;Vf(e,t,{},Yr())}function vb(){return Kn(cp)}function x3(){return fn().memoizedState}function b3(){return fn().memoizedState}function mY(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Yr();e=qa(n);var r=ja(t,e,n);r!==null&&(lr(r,t,n),Gf(r,t,n)),t={cache:ob()},e.payload=t;return}t=t.return}}function hY(e,t,n){var r=Yr();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Jd(e)?D3(t,n):(n=tb(e,t,n,r),n!==null&&(lr(n,e,r),w3(n,t,r)))}function E3(e,t,n){var r=Yr();Vf(e,t,n,r)}function Vf(e,t,n,r){var i={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jd(e))D3(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Xr(l,a))return Yd(e,t,i,0),Ft===null&&Kd(),!1}catch{}finally{}if(n=tb(e,t,i,r),n!==null)return lr(n,e,r),w3(n,t,r),!0}return!1}function yb(e,t,n,r){if(r={lane:2,revertLane:Tb(),action:r,hasEagerState:!1,eagerState:null,next:null},Jd(e)){if(t)throw Error(se(479))}else t=tb(e,n,r,2),t!==null&&lr(t,e,2)}function Jd(e){var t=e.alternate;return e===ot||t!==null&&t===ot}function D3(e,t){Ts=Ad=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function w3(e,t,n){if(n&4194176){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fB(e,n)}}var mo={readContext:Kn,use:Qd,useCallback:nn,useContext:nn,useEffect:nn,useImperativeHandle:nn,useLayoutEffect:nn,useInsertionEffect:nn,useMemo:nn,useReducer:nn,useRef:nn,useState:nn,useDebugValue:nn,useDeferredValue:nn,useTransition:nn,useSyncExternalStore:nn,useId:nn};mo.useCacheRefresh=nn;mo.useMemoCache=nn;mo.useHostTransitionStatus=nn;mo.useFormState=nn;mo.useActionState=nn;mo.useOptimistic=nn;var ul={readContext:Kn,use:Qd,useCallback:function(e,t){return kr().memoizedState=[e,t===void 0?null:t],e},useContext:Kn,useEffect:mT,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,cd(4194308,4,f3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cd(4194308,4,e,t)},useInsertionEffect:function(e,t){cd(4,2,e,t)},useMemo:function(e,t){var n=kr();t=t===void 0?null:t;var r=e();if(tl){Na(!0);try{e()}finally{Na(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=kr();if(n!==void 0){var i=n(t);if(tl){Na(!0);try{n(t)}finally{Na(!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=hY.bind(null,ot,e),[r.memoizedState,e]},useRef:function(e){var t=kr();return e={current:e},t.memoizedState=e},useState:function(e){e=dx(e);var t=e.queue,n=E3.bind(null,ot,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:db,useDeferredValue:function(e,t){var n=kr();return gb(n,e,t)},useTransition:function(){var e=dx(!1);return e=g3.bind(null,ot,e.queue,!0,!1),kr().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ot,i=kr();if(yt){if(n===void 0)throw Error(se(407));n=n()}else{if(n=t(),Ft===null)throw Error(se(349));ht&60||YB(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,mT(QB.bind(null,r,o,e),[e]),r.flags|=2048,Ls(9,XB.bind(null,r,o,n,t),{destroy:void 0},null),n},useId:function(){var e=kr(),t=Ft.identifierPrefix;if(yt){var n=Wo,r=Go;n=(r&~(1<<32-Kr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Td++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=lY++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return kr().memoizedState=mY.bind(null,ot)}};ul.useMemoCache=pb;ul.useHostTransitionStatus=vb;ul.useFormState=i3;ul.useActionState=i3;ul.useOptimistic=function(e){var t=kr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=yb.bind(null,ot,!0,n),n.dispatch=t,[e,t]};var eu={readContext:Kn,use:Qd,useCallback:m3,useContext:Kn,useEffect:hb,useImperativeHandle:p3,useInsertionEffect:s3,useLayoutEffect:c3,useMemo:h3,useReducer:sd,useRef:l3,useState:function(){return sd(Zo)},useDebugValue:db,useDeferredValue:function(e,t){var n=fn();return d3(n,kt.memoizedState,e,t)},useTransition:function(){var e=sd(Zo)[0],t=fn().memoizedState;return[typeof e=="boolean"?e:bp(e),t]},useSyncExternalStore:KB,useId:x3};eu.useCacheRefresh=b3;eu.useMemoCache=pb;eu.useHostTransitionStatus=vb;eu.useFormState=o3;eu.useActionState=o3;eu.useOptimistic=function(e,t){var n=fn();return e3(n,kt,e,t)};var ll={readContext:Kn,use:Qd,useCallback:m3,useContext:Kn,useEffect:hb,useImperativeHandle:p3,useInsertionEffect:s3,useLayoutEffect:c3,useMemo:h3,useReducer:My,useRef:l3,useState:function(){return My(Zo)},useDebugValue:db,useDeferredValue:function(e,t){var n=fn();return kt===null?gb(n,e,t):d3(n,kt.memoizedState,e,t)},useTransition:function(){var e=My(Zo)[0],t=fn().memoizedState;return[typeof e=="boolean"?e:bp(e),t]},useSyncExternalStore:KB,useId:x3};ll.useCacheRefresh=b3;ll.useMemoCache=pb;ll.useHostTransitionStatus=vb;ll.useFormState=u3;ll.useActionState=u3;ll.useOptimistic=function(e,t){var n=fn();return kt!==null?e3(n,kt,e,t):(n.baseState=e,[e,n.queue.dispatch])};function Ry(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Pt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yx={isMounted:function(e){return(e=e._reactInternals)?Us(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Yr(),i=qa(r);i.payload=t,n!=null&&(i.callback=n),t=ja(e,i,r),t!==null&&(lr(t,e,r),Gf(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Yr(),i=qa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ja(e,i,r),t!==null&&(lr(t,e,r),Gf(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yr(),r=qa(n);r.tag=2,t!=null&&(r.callback=t),t=ja(e,r,n),t!==null&&(lr(t,e,n),Gf(t,e,n))}};function hT(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!rp(n,r)||!rp(i,o):!0}function dT(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&&yx.enqueueReplaceState(t,t.state,null)}function nl(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=Pt({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}var Bd=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function C3(e){Bd(e)}function S3(e){console.error(e)}function k3(e){Bd(e)}function Od(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function gT(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function xx(e,t,n){return n=qa(n),n.tag=3,n.payload={element:null},n.callback=function(){Od(e,t)},n}function A3(e){return e=qa(e),e.tag=3,e}function T3(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){gT(t,n,r)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){gT(t,n,r),typeof i!="function"&&($a===null?$a=new Set([this]):$a.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function dY(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Ep(t,n,i,!0),n=Bi.current,n!==null){switch(n.tag){case 13:return po===null?_x():n.alternate===null&&Zt===0&&(Zt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===px?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),$y(e,r,i)),!1;case 22:return n.flags|=65536,r===px?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)),$y(e,r,i)),!1}throw Error(se(435,n.tag))}return $y(e,r,i),_x(),!1}if(yt)return t=Bi.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==fx&&(e=Error(se(422),{cause:r}),ip(ki(e,n)))):(r!==fx&&(t=Error(se(423),{cause:r}),ip(ki(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=ki(r,n),i=xx(e.stateNode,r,i),zy(e,i),Zt!==4&&(Zt=2)),!1;var o=Error(se(520),{cause:r});if(o=ki(o,n),Xf===null?Xf=[o]:Xf.push(o),Zt!==4&&(Zt=2),t===null)return!0;r=ki(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=xx(n.stateNode,r,e),zy(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&($a===null||!$a.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=A3(i),T3(i,e,n,r),zy(n,i),!1}n=n.return}while(n!==null);return!1}var B3=Error(se(461)),An=!1;function Pn(e,t,n,r){t.child=e===null?jB(t,null,n,r):el(t,e.child,n,r)}function vT(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var l in r)l!=="ref"&&(a[l]=r[l])}else a=r;return rl(t),r=lb(e,t,n,a,o,i),l=sb(),e!==null&&!An?(cb(e,t,i),Jo(e,t,i)):(yt&&l&&nb(t),t.flags|=1,Pn(e,t,r,i),t.child)}function yT(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!wb(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,O3(e,t,o,r,i)):(e=pd(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!xb(e,i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:rp,n(a,r)&&e.ref===t.ref)return Jo(e,t,i)}return t.flags|=1,e=Va(o,r),e.ref=t.ref,e.return=t,t.child=e}function O3(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(rp(o,r)&&e.ref===t.ref)if(An=!1,t.pendingProps=r=o,xb(e,i))e.flags&131072&&(An=!0);else return t.lanes=e.lanes,Jo(e,t,i)}return bx(e,t,n,r,i)}function M3(e,t,n){var r=t.pendingProps,i=r.children,o=(t.stateNode._pendingVisibility&2)!==0,a=e!==null?e.memoizedState:null;if($f(e,t),r.mode==="hidden"||o){if(t.flags&128){if(r=a!==null?a.baseLanes|n:n,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return xT(e,t,r,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ld(t,a!==null?a.cachePool:null),a!==null?lT(t,a):mx(),VB(t);else return t.lanes=t.childLanes=536870912,xT(e,t,a!==null?a.baseLanes|n:n,n)}else a!==null?(ld(t,a.cachePool),lT(t,a),La(t),t.memoizedState=null):(e!==null&&ld(t,null),mx(),La(t));return Pn(e,t,i,n),t.child}function xT(e,t,n,r){var i=ab();return i=i===null?null:{parent:yn._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&ld(t,null),mx(),VB(t),e!==null&&Ep(e,t,r,!0),null}function $f(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof n!="function"&&typeof n!="object")throw Error(se(284));(e===null||e.ref!==n)&&(t.flags|=2097664)}}function bx(e,t,n,r,i){return rl(t),n=lb(e,t,n,r,void 0,i),r=sb(),e!==null&&!An?(cb(e,t,i),Jo(e,t,i)):(yt&&r&&nb(t),t.flags|=1,Pn(e,t,n,i),t.child)}function bT(e,t,n,r,i,o){return rl(t),t.updateQueue=null,n=WB(t,r,n,i),GB(e),r=sb(),e!==null&&!An?(cb(e,t,o),Jo(e,t,o)):(yt&&r&&nb(t),t.flags|=1,Pn(e,t,n,o),t.child)}function ET(e,t,n,r,i){if(rl(t),t.stateNode===null){var o=xs,a=n.contextType;typeof a=="object"&&a!==null&&(o=Kn(a)),o=new n(r,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=yx,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=r,o.state=t.memoizedState,o.refs={},bb(t),a=n.contextType,o.context=typeof a=="object"&&a!==null?Kn(a):xs,o.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(Ry(t,n,a,r),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&yx.enqueueReplaceState(o,o.state,null),Kf(t,r,o,i),Wf(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,c=nl(n,l);o.props=c;var f=o.context,p=n.contextType;a=xs,typeof p=="object"&&p!==null&&(a=Kn(p));var d=n.getDerivedStateFromProps;p=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||f!==a)&&dT(t,o,r,a),_a=!1;var g=t.memoizedState;o.state=g,Kf(t,r,o,i),Wf(),f=t.memoizedState,l||g!==f||_a?(typeof d=="function"&&(Ry(t,n,d,r),f=t.memoizedState),(c=_a||hT(t,n,c,r,g,f,a))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=a,r=c):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,kx(e,t),a=t.memoizedProps,p=nl(n,a),o.props=p,d=t.pendingProps,g=o.context,f=n.contextType,c=xs,typeof f=="object"&&f!==null&&(c=Kn(f)),l=n.getDerivedStateFromProps,(f=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||g!==c)&&dT(t,o,r,c),_a=!1,g=t.memoizedState,o.state=g,Kf(t,r,o,i),Wf();var m=t.memoizedState;a!==d||g!==m||_a||e!==null&&e.dependencies!==null&&Md(e.dependencies)?(typeof l=="function"&&(Ry(t,n,l,r),m=t.memoizedState),(p=_a||hT(t,n,p,r,g,m,c)||e!==null&&e.dependencies!==null&&Md(e.dependencies))?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=p):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,$f(e,t),r=(t.flags&128)!==0,o||r?(o=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&r?(t.child=el(t,e.child,null,i),t.child=el(t,null,n,i)):Pn(e,t,n,i),t.memoizedState=o.state,e=t.child):e=Jo(e,t,i),e}function DT(e,t,n,r){return yp(),t.flags|=256,Pn(e,t,n,r),t.child}var Fy={dehydrated:null,treeContext:null,retryLane:0};function _y(e){return{baseLanes:e,cachePool:$B()}}function Iy(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ti),e}function R3(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(xn.current&2)!==0),a&&(i=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(yt){if(i?Ia(t):La(t),yt){var l=zn,c;if(c=l){e:{for(c=l,l=lo;c.nodeType!==8;){if(!l){l=null;break e}if(c=Wi(c.nextSibling),c===null){l=null;break e}}l=c}l!==null?(t.memoizedState={dehydrated:l,treeContext:Ku!==null?{id:Go,overflow:Wo}:null,retryLane:536870912},c=Ai(18,null,null,0),c.stateNode=l,c.return=t,t.child=c,ur=t,zn=null,c=!0):c=!1}c||Ju(t)}if(l=t.memoizedState,l!==null&&(l=l.dehydrated,l!==null))return l.data==="$!"?t.lanes=16:t.lanes=536870912,null;Ko(t)}return l=r.children,r=r.fallback,i?(La(t),i=t.mode,l=Dx({mode:"hidden",children:l},i),r=Xu(r,i,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,i=t.child,i.memoizedState=_y(n),i.childLanes=Iy(e,a,n),t.memoizedState=Fy,r):(Ia(t),Ex(t,l))}if(c=e.memoizedState,c!==null&&(l=c.dehydrated,l!==null)){if(o)t.flags&256?(Ia(t),t.flags&=-257,t=Ly(e,t,n)):t.memoizedState!==null?(La(t),t.child=e.child,t.flags|=128,t=null):(La(t),i=r.fallback,l=t.mode,r=Dx({mode:"visible",children:r.children},l),i=Xu(i,l,n,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,el(t,e.child,null,n),r=t.child,r.memoizedState=_y(n),r.childLanes=Iy(e,a,n),t.memoizedState=Fy,t=i);else if(Ia(t),l.data==="$!"){if(a=l.nextSibling&&l.nextSibling.dataset,a)var f=a.dgst;a=f,r=Error(se(419)),r.stack="",r.digest=a,ip({value:r,source:null,stack:null}),t=Ly(e,t,n)}else if(An||Ep(e,t,n,!1),a=(n&e.childLanes)!==0,An||a){if(a=Ft,a!==null){if(r=n&-n,r&42)r=1;else switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=64;break;case 268435456:r=134217728;break;default:r=0}if(r=r&(a.suspendedLanes|n)?0:r,r!==0&&r!==c.retryLane)throw c.retryLane=r,Ya(e,r),lr(a,e,r),B3}l.data==="$?"||_x(),t=Ly(e,t,n)}else l.data==="$?"?(t.flags|=128,t.child=e.child,t=OY.bind(null,e),l._reactRetry=t,t=null):(e=c.treeContext,zn=Wi(l.nextSibling),ur=t,yt=!0,Gi=null,lo=!1,e!==null&&(wi[Ci++]=Go,wi[Ci++]=Wo,wi[Ci++]=Ku,Go=e.id,Wo=e.overflow,Ku=t),t=Ex(t,r.children),t.flags|=4096);return t}return i?(La(t),i=r.fallback,l=t.mode,c=e.child,f=c.sibling,r=Va(c,{mode:"hidden",children:r.children}),r.subtreeFlags=c.subtreeFlags&31457280,f!==null?i=Va(f,i):(i=Xu(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l===null?l=_y(n):(c=l.cachePool,c!==null?(f=yn._currentValue,c=c.parent!==f?{parent:f,pool:f}:c):c=$B(),l={baseLanes:l.baseLanes|n,cachePool:c}),i.memoizedState=l,i.childLanes=Iy(e,a,n),t.memoizedState=Fy,r):(Ia(t),n=e.child,e=n.sibling,n=Va(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Ex(e,t){return t=Dx({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Dx(e,t){return eO(e,t,0,null)}function Ly(e,t,n){return el(t,e.child,null,n),e=Ex(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wT(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Cx(e.return,t,n)}function Py(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function F3(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pn(e,t,r.children,n),r=xn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wT(e,n,t);else if(e.tag===19)wT(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(Ut(xn,r),i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&kd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Py(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&kd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Py(t,!0,n,null,o);break;case"together":Py(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Za|=t.lanes,!(n&t.childLanes))if(e!==null){if(Ep(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(se(153));if(t.child!==null){for(e=t.child,n=Va(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Va(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xb(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Md(e)))}function gY(e,t,n){switch(t.tag){case 3:vd(t,t.stateNode.containerInfo),Pa(t,yn,e.memoizedState.cache),yp();break;case 27:case 5:nx(t);break;case 4:vd(t,t.stateNode.containerInfo);break;case 10:Pa(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ia(t),t.flags|=128,null):n&t.child.childLanes?R3(e,t,n):(Ia(t),e=Jo(e,t,n),e!==null?e.sibling:null);Ia(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Ep(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return F3(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ut(xn,xn.current),r)break;return null;case 22:case 23:return t.lanes=0,M3(e,t,n);case 24:Pa(t,yn,e.memoizedState.cache)}return Jo(e,t,n)}function _3(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)An=!0;else{if(!xb(e,n)&&!(t.flags&128))return An=!1,gY(e,t,n);An=!!(e.flags&131072)}else An=!1,yt&&t.flags&1048576&&NB(t,Cd,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,i=r._init;if(r=i(r._payload),t.type=r,typeof r=="function")wb(r)?(e=nl(r,e),t.tag=1,t=ET(null,t,r,e,n)):(t.tag=0,t=bx(null,t,r,e,n));else{if(r!=null){if(i=r.$$typeof,i===Vx){t.tag=11,t=vT(null,t,r,e,n);break e}else if(i===$x){t.tag=14,t=yT(null,t,r,e,n);break e}}throw t=ex(r)||r,Error(se(306,t,""))}}return t;case 0:return bx(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=nl(r,t.pendingProps),ET(e,t,r,i,n);case 3:e:{if(vd(t,t.stateNode.containerInfo),e===null)throw Error(se(387));var o=t.pendingProps;i=t.memoizedState,r=i.element,kx(e,t),Kf(t,o,null,n);var a=t.memoizedState;if(o=a.cache,Pa(t,yn,o),o!==i.cache&&Sx(t,[yn],n,!0),Wf(),o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=DT(e,t,o,n);break e}else if(o!==r){r=ki(Error(se(424)),t),ip(r),t=DT(e,t,o,n);break e}else for(zn=Wi(t.stateNode.containerInfo.firstChild),ur=t,yt=!0,Gi=null,lo=!0,n=jB(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yp(),o===r){t=Jo(e,t,n);break e}Pn(e,t,o,n)}t=t.child}return t;case 26:return $f(e,t),e===null?(n=jT(t.type,null,t.pendingProps,null))?t.memoizedState=n:yt||(n=t.type,e=t.pendingProps,r=zd(Ha.current).createElement(n),r[Wn]=t,r[Ar]=e,Nn(r,n,e),kn(r),t.stateNode=r):t.memoizedState=jT(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nx(t),e===null&&yt&&(r=t.stateNode=yO(t.type,t.pendingProps,Ha.current),ur=t,lo=!0,zn=Wi(r.firstChild)),r=t.pendingProps.children,e!==null||yt?Pn(e,t,r,n):t.child=el(t,null,r,n),$f(e,t),t.child;case 5:return e===null&&yt&&((i=r=zn)&&(r=VY(r,t.type,t.pendingProps,lo),r!==null?(t.stateNode=r,ur=t,zn=Wi(r.firstChild),lo=!1,i=!0):i=!1),i||Ju(t)),nx(t),i=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,r=o.children,Nx(i,o)?r=null:a!==null&&Nx(i,a)&&(t.flags|=32),t.memoizedState!==null&&(i=lb(e,t,sY,null,null,n),cp._currentValue=i),$f(e,t),Pn(e,t,r,n),t.child;case 6:return e===null&&yt&&((e=n=zn)&&(n=$Y(n,t.pendingProps,lo),n!==null?(t.stateNode=n,ur=t,zn=null,e=!0):e=!1),e||Ju(t)),null;case 13:return R3(e,t,n);case 4:return vd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=el(t,null,r,n):Pn(e,t,r,n),t.child;case 11:return vT(e,t,t.type,t.pendingProps,n);case 7:return Pn(e,t,t.pendingProps,n),t.child;case 8:return Pn(e,t,t.pendingProps.children,n),t.child;case 12:return Pn(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Pa(t,t.type,r.value),Pn(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,rl(t),i=Kn(i),r=r(i),t.flags|=1,Pn(e,t,r,n),t.child;case 14:return yT(e,t,t.type,t.pendingProps,n);case 15:return O3(e,t,t.type,t.pendingProps,n);case 19:return F3(e,t,n);case 22:return M3(e,t,n);case 24:return rl(t),r=Kn(yn),e===null?(i=ab(),i===null&&(i=Ft,o=ob(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},bb(t),Pa(t,yn,i)):(e.lanes&n&&(kx(e,t),Kf(t,null,null,n),Wf()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Pa(t,yn,r)):(r=o.cache,Pa(t,yn,r),r!==i.cache&&Sx(t,[yn],n,!0))),Pn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(se(156,t.tag))}var wx=ho(null),sl=null,Yo=null;function Pa(e,t,n){Ut(wx,t._currentValue),t._currentValue=n}function Xo(e){e._currentValue=wx.current,Tn(wx)}function Cx(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sx(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var a=i.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Cx(o.return,n,e),r||(a=null);break e}o=l.next}}else if(i.tag===18){if(a=i.return,a===null)throw Error(se(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),Cx(a,n,e),a=null}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}}function Ep(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var a=i.alternate;if(a===null)throw Error(se(387));if(a=a.memoizedProps,a!==null){var l=i.type;Xr(i.pendingProps.value,a.value)||(e!==null?e.push(l):e=[l])}}else if(i===gd.current){if(a=i.alternate,a===null)throw Error(se(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(cp):e=[cp])}i=i.return}e!==null&&Sx(t,e,n,r),t.flags|=262144}function Md(e){for(e=e.firstContext;e!==null;){if(!Xr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function rl(e){sl=e,Yo=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Kn(e){return I3(sl,e)}function Xh(e,t){return sl===null&&rl(e),I3(e,t)}function I3(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Yo===null){if(e===null)throw Error(se(308));Yo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yo=Yo.next=t;return n}var _a=!1;function bb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kx(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 qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ja(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Kt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Dd(e),zB(e,null,n),t}return Yd(e,r,t,n),Dd(e)}function Gf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194176)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fB(e,n)}}function zy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 Ax=!1;function Wf(){if(Ax){var e=As;if(e!==null)throw e}}function Kf(e,t,n,r){Ax=!1;var i=e.updateQueue;_a=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,f=c.next;c.next=null,a===null?o=f:a.next=f,a=c;var p=e.alternate;p!==null&&(p=p.updateQueue,l=p.lastBaseUpdate,l!==a&&(l===null?p.firstBaseUpdate=f:l.next=f,p.lastBaseUpdate=c))}if(o!==null){var d=i.baseState;a=0,p=f=c=null,l=o;do{var g=l.lane&-536870913,m=g!==l.lane;if(m?(ht&g)===g:(r&g)===g){g!==0&&g===Is&&(Ax=!0),p!==null&&(p=p.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var x=e,S=l;g=t;var T=n;switch(S.tag){case 1:if(x=S.payload,typeof x=="function"){d=x.call(T,d,g);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=S.payload,g=typeof x=="function"?x.call(T,d,g):x,g==null)break e;d=Pt({},d,g);break e;case 2:_a=!0}}g=l.callback,g!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[g]:m.push(g))}else m={lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},p===null?(f=p=m,c=d):p=p.next=m,a|=g;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);p===null&&(c=d),i.baseState=c,i.firstBaseUpdate=f,i.lastBaseUpdate=p,o===null&&(i.shared.lanes=0),Za|=a,e.lanes=a,e.memoizedState=d}}function L3(e,t){if(typeof e!="function")throw Error(se(191,e));e.call(t)}function P3(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)L3(n[e],t)}function Dp(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(l){Bt(t,t.return,l)}}function Qa(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,l=a.destroy;if(l!==void 0){a.destroy=void 0,i=t;var c=n;try{l()}catch(f){Bt(i,c,f)}}}r=r.next}while(r!==o)}}catch(f){Bt(t,t.return,f)}}function z3(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{P3(t,n)}catch(r){Bt(e,e.return,r)}}}function N3(e,t,n){n.props=nl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Bt(e,t,r)}}function Gu(e,t){try{var n=e.ref;if(n!==null){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var i=r;break;default:i=r}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(o){Bt(e,t,o)}}function Gr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){Bt(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Bt(e,t,i)}else n.current=null}function U3(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){Bt(e,e.return,i)}}function CT(e,t,n){try{var r=e.stateNode;NY(r,e.type,n,t),r[Ar]=t}catch(i){Bt(e,e.return,i)}}function H3(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function Ny(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||H3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Tx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ng));else if(r!==4&&r!==27&&(e=e.child,e!==null))for(Tx(e,t,n),e=e.sibling;e!==null;)Tx(e,t,n),e=e.sibling}function Rd(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&&(e=e.child,e!==null))for(Rd(e,t,n),e=e.sibling;e!==null;)Rd(e,t,n),e=e.sibling}var qo=!1,Qt=!1,Uy=!1,ST=typeof WeakSet=="function"?WeakSet:Set,Sn=null,kT=!1;function vY(e,t){if(e=e.containerInfo,Px=qd,e=MB(e),Jx(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,f=0,p=0,d=e,g=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(l=a+i),d!==o||r!==0&&d.nodeType!==3||(c=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)g=d,d=m;for(;;){if(d===e)break t;if(g===n&&++f===i&&(l=a),g===o&&++p===r&&(c=a),(m=d.nextSibling)!==null)break;d=g,g=d.parentNode}d=m}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(zx={focusedElem:e,selectionRange:n},qd=!1,Sn=t;Sn!==null;)if(t=Sn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Sn=e;else for(;Sn!==null;){switch(t=Sn,o=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var x=nl(n.type,i,n.elementType===n.type);e=r.getSnapshotBeforeUpdate(x,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(S){Bt(n,n.return,S)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ux(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ux(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(se(163))}if(e=t.sibling,e!==null){e.return=t.return,Sn=e;break}Sn=t.return}return x=kT,kT=!1,x}function q3(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Uo(e,n),r&4&&Dp(5,n);break;case 1:if(Uo(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){Bt(n,n.return,l)}else{var i=nl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){Bt(n,n.return,l)}}r&64&&z3(n),r&512&&Gu(n,n.return);break;case 3:if(Uo(e,n),r&64&&(r=n.updateQueue,r!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{P3(r,e)}catch(l){Bt(n,n.return,l)}}break;case 26:Uo(e,n),r&512&&Gu(n,n.return);break;case 27:case 5:Uo(e,n),t===null&&r&4&&U3(n),r&512&&Gu(n,n.return);break;case 12:Uo(e,n);break;case 13:Uo(e,n),r&4&&$3(e,n);break;case 22:if(i=n.memoizedState!==null||qo,!i){t=t!==null&&t.memoizedState!==null||Qt;var o=qo,a=Qt;qo=i,(Qt=t)&&!a?Ra(e,n,(n.subtreeFlags&8772)!==0):Uo(e,n),qo=o,Qt=a}r&512&&(n.memoizedProps.mode==="manual"?Gu(n,n.return):Gr(n,n.return));break;default:Uo(e,n)}}function j3(e){var t=e.alternate;t!==null&&(e.alternate=null,j3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Wx(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 sn=null,Vr=!1;function No(e,t,n){for(n=n.child;n!==null;)V3(e,t,n),n=n.sibling}function V3(e,t,n){if(Wr&&typeof Wr.onCommitFiberUnmount=="function")try{Wr.onCommitFiberUnmount(hp,n)}catch{}switch(n.tag){case 26:Qt||Gr(n,t),No(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qt||Gr(n,t);var r=sn,i=Vr;for(sn=n.stateNode,No(e,t,n),n=n.stateNode,t=n.attributes;t.length;)n.removeAttributeNode(t[0]);Wx(n),sn=r,Vr=i;break;case 5:Qt||Gr(n,t);case 6:i=sn;var o=Vr;if(sn=null,No(e,t,n),sn=i,Vr=o,sn!==null)if(Vr)try{e=sn,r=n.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)}catch(a){Bt(n,t,a)}else try{sn.removeChild(n.stateNode)}catch(a){Bt(n,t,a)}break;case 18:sn!==null&&(Vr?(t=sn,n=n.stateNode,t.nodeType===8?Xy(t.parentNode,n):t.nodeType===1&&Xy(t,n),mp(t)):Xy(sn,n.stateNode));break;case 4:r=sn,i=Vr,sn=n.stateNode.containerInfo,Vr=!0,No(e,t,n),sn=r,Vr=i;break;case 0:case 11:case 14:case 15:Qt||Qa(2,n,t),Qt||Qa(4,n,t),No(e,t,n);break;case 1:Qt||(Gr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&N3(n,t,r)),No(e,t,n);break;case 21:No(e,t,n);break;case 22:Qt||Gr(n,t),Qt=(r=Qt)||n.memoizedState!==null,No(e,t,n),Qt=r;break;default:No(e,t,n)}}function $3(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{mp(e)}catch(n){Bt(t,t.return,n)}}function yY(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ST),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ST),t;default:throw Error(se(435,e.tag))}}function Hy(e,t){var n=yY(e);t.forEach(function(r){var i=MY.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}function xi(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 27:case 5:sn=l.stateNode,Vr=!1;break e;case 3:sn=l.stateNode.containerInfo,Vr=!0;break e;case 4:sn=l.stateNode.containerInfo,Vr=!0;break e}l=l.return}if(sn===null)throw Error(se(160));V3(o,a,i),sn=null,Vr=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)G3(t,e),t=t.sibling}var $i=null;function G3(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xi(t,e),bi(e),r&4&&(Qa(3,e,e.return),Dp(3,e),Qa(5,e,e.return));break;case 1:xi(t,e),bi(e),r&512&&(Qt||n===null||Gr(n,n.return)),r&64&&qo&&(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=$i;if(xi(t,e),bi(e),r&512&&(Qt||n===null||Gr(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":o=i.getElementsByTagName("title")[0],(!o||o[ep]||o[Wn]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),Nn(o,r,n),o[Wn]=e,kn(o),r=o;break e;case"link":var a=$T("link","href",i).get(r+(n.href||""));if(a){for(var l=0;l<a.length;l++)if(o=a[l],o.getAttribute("href")===(n.href==null?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(l,1);break t}}o=i.createElement(r),Nn(o,r,n),i.head.appendChild(o);break;case"meta":if(a=$T("meta","content",i).get(r+(n.content||""))){for(l=0;l<a.length;l++)if(o=a[l],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(l,1);break t}}o=i.createElement(r),Nn(o,r,n),i.head.appendChild(o);break;default:throw Error(se(468,r))}o[Wn]=e,kn(o),r=o}e.stateNode=r}else GT(i,e.type,e.stateNode);else e.stateNode=VT(i,r,e.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?GT(i,e.type,e.stateNode):VT(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&CT(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(r&4&&e.alternate===null){i=e.stateNode,o=e.memoizedProps;try{for(var c=i.firstChild;c;){var f=c.nextSibling,p=c.nodeName;c[ep]||p==="HEAD"||p==="BODY"||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=f}for(var d=e.type,g=i.attributes;g.length;)i.removeAttributeNode(g[0]);Nn(i,d,o),i[Wn]=e,i[Ar]=o}catch(x){Bt(e,e.return,x)}}case 5:if(xi(t,e),bi(e),r&512&&(Qt||n===null||Gr(n,n.return)),e.flags&32){i=e.stateNode;try{Fs(i,"")}catch(x){Bt(e,e.return,x)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,CT(e,i,n!==null?n.memoizedProps:i)),r&1024&&(Uy=!0);break;case 6:if(xi(t,e),bi(e),r&4){if(e.stateNode===null)throw Error(se(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(x){Bt(e,e.return,x)}}break;case 3:if(hd=null,i=$i,$i=Nd(t.containerInfo),xi(t,e),$i=i,bi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{mp(t.containerInfo)}catch(x){Bt(e,e.return,x)}Uy&&(Uy=!1,W3(e));break;case 4:r=$i,$i=Nd(e.stateNode.containerInfo),xi(t,e),bi(e),$i=r;break;case 12:xi(t,e),bi(e);break;case 13:xi(t,e),bi(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(kb=fo()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Hy(e,r)));break;case 22:if(r&512&&(Qt||n===null||Gr(n,n.return)),c=e.memoizedState!==null,f=n!==null&&n.memoizedState!==null,p=qo,d=Qt,qo=p||c,Qt=d||f,xi(t,e),Qt=d,qo=p,bi(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,r&8192&&(t._visibility=c?t._visibility&-2:t._visibility|1,c&&(t=qo||Qt,n===null||f||t||ss(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(n=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(n===null){f=n=t;try{if(i=f.stateNode,c)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{a=f.stateNode,l=f.memoizedProps.style;var m=l!=null&&l.hasOwnProperty("display")?l.display:null;a.style.display=m==null||typeof m=="boolean"?"":(""+m).trim()}}catch(x){Bt(f,f.return,x)}}}else if(t.tag===6){if(n===null){f=t;try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(x){Bt(f,f.return,x)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Hy(e,n))));break;case 19:xi(t,e),bi(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Hy(e,r)));break;case 21:break;default:xi(t,e),bi(e)}}function bi(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var n=e.return;n!==null;){if(H3(n)){var r=n;break e}n=n.return}throw Error(se(160))}switch(r.tag){case 27:var i=r.stateNode,o=Ny(e);Rd(e,o,i);break;case 5:var a=r.stateNode;r.flags&32&&(Fs(a,""),r.flags&=-33);var l=Ny(e);Rd(e,l,a);break;case 3:case 4:var c=r.stateNode.containerInfo,f=Ny(e);Tx(e,f,c);break;default:throw Error(se(161))}}}catch(p){Bt(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function W3(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;W3(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Uo(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)q3(e,t.alternate,t),t=t.sibling}function ss(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qa(4,t,t.return),ss(t);break;case 1:Gr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&N3(t,t.return,n),ss(t);break;case 26:case 27:case 5:Gr(t,t.return),ss(t);break;case 22:Gr(t,t.return),t.memoizedState===null&&ss(t);break;default:ss(t)}e=e.sibling}}function Ra(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Ra(i,o,n),Dp(4,o);break;case 1:if(Ra(i,o,n),r=o,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(f){Bt(r,r.return,f)}if(r=o,i=r.updateQueue,i!==null){var l=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)L3(c[i],l)}catch(f){Bt(r,r.return,f)}}n&&a&64&&z3(o),Gu(o,o.return);break;case 26:case 27:case 5:Ra(i,o,n),n&&r===null&&a&4&&U3(o),Gu(o,o.return);break;case 12:Ra(i,o,n);break;case 13:Ra(i,o,n),n&&a&4&&$3(i,o);break;case 22:o.memoizedState===null&&Ra(i,o,n),Gu(o,o.return);break;default:Ra(i,o,n)}t=t.sibling}}function Eb(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&&xp(n))}function Db(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xp(e))}function Ma(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)K3(e,t,n,r),t=t.sibling}function K3(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ma(e,t,n,r),i&2048&&Dp(9,t);break;case 3:Ma(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&&xp(e)));break;case 12:if(i&2048){Ma(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,l=o.onPostCommit;typeof l=="function"&&l(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){Bt(t,t.return,c)}}else Ma(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,t.memoizedState!==null?o._visibility&4?Ma(e,t,n,r):Yf(e,t):o._visibility&4?Ma(e,t,n,r):(o._visibility|=4,cs(e,t,n,r,(t.subtreeFlags&10256)!==0)),i&2048&&Eb(t.alternate,t);break;case 24:Ma(e,t,n,r),i&2048&&Db(t.alternate,t);break;default:Ma(e,t,n,r)}}function cs(e,t,n,r,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var o=e,a=t,l=n,c=r,f=a.flags;switch(a.tag){case 0:case 11:case 15:cs(o,a,l,c,i),Dp(8,a);break;case 23:break;case 22:var p=a.stateNode;a.memoizedState!==null?p._visibility&4?cs(o,a,l,c,i):Yf(o,a):(p._visibility|=4,cs(o,a,l,c,i)),i&&f&2048&&Eb(a.alternate,a);break;case 24:cs(o,a,l,c,i),i&&f&2048&&Db(a.alternate,a);break;default:cs(o,a,l,c,i)}t=t.sibling}}function Yf(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:Yf(n,r),i&2048&&Eb(r.alternate,r);break;case 24:Yf(n,r),i&2048&&Db(r.alternate,r);break;default:Yf(n,r)}t=t.sibling}}var Pf=8192;function us(e){if(e.subtreeFlags&Pf)for(e=e.child;e!==null;)Y3(e),e=e.sibling}function Y3(e){switch(e.tag){case 26:us(e),e.flags&Pf&&e.memoizedState!==null&&iX($i,e.memoizedState,e.memoizedProps);break;case 5:us(e);break;case 3:case 4:var t=$i;$i=Nd(e.stateNode.containerInfo),us(e),$i=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Pf,Pf=16777216,us(e),Pf=t):us(e));break;default:us(e)}}function X3(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 Bf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Sn=r,Z3(r,e)}X3(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Q3(e),e=e.sibling}function Q3(e){switch(e.tag){case 0:case 11:case 15:Bf(e),e.flags&2048&&Qa(9,e,e.return);break;case 3:Bf(e);break;case 12:Bf(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,fd(e)):Bf(e);break;default:Bf(e)}}function fd(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Sn=r,Z3(r,e)}X3(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qa(8,t,t.return),fd(t);break;case 22:n=t.stateNode,n._visibility&4&&(n._visibility&=-5,fd(t));break;default:fd(t)}e=e.sibling}}function Z3(e,t){for(;Sn!==null;){var n=Sn;switch(n.tag){case 0:case 11:case 15:Qa(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:xp(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Sn=r;else e:for(n=e;Sn!==null;){r=Sn;var i=r.sibling,o=r.return;if(j3(r),r===n){Sn=null;break e}if(i!==null){i.return=o,Sn=i;break e}Sn=o}}}function xY(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 Ai(e,t,n,r){return new xY(e,t,n,r)}function wb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Va(e,t){var n=e.alternate;return n===null?(n=Ai(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&31457280,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 J3(e,t){e.flags&=31457282;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 pd(e,t,n,r,i,o){var a=0;if(r=e,typeof e=="function")wb(e)&&(a=1);else if(typeof e=="string")a=nX(e,n,co.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ps:return Xu(n.children,i,o,t);case eB:a=8,i|=24;break;case Qy:return e=Ai(12,n,t,i|2),e.elementType=Qy,e.lanes=o,e;case Zy:return e=Ai(13,n,t,i),e.elementType=Zy,e.lanes=o,e;case Jy:return e=Ai(19,n,t,i),e.elementType=Jy,e.lanes=o,e;case nB:return eO(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case VW:case $o:a=10;break e;case tB:a=9;break e;case Vx:a=11;break e;case $x:a=14;break e;case Fa:a=16,r=null;break e}a=29,n=Error(se(130,e===null?"null":typeof e,"")),r=null}return t=Ai(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Xu(e,t,n,r){return e=Ai(7,e,r,t),e.lanes=n,e}function eO(e,t,n,r){e=Ai(22,e,r,t),e.elementType=nB,e.lanes=n;var i={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var o=i._current;if(o===null)throw Error(se(456));if(!(i._pendingVisibility&2)){var a=Ya(o,2);a!==null&&(i._pendingVisibility|=2,lr(a,o,2))}},attach:function(){var o=i._current;if(o===null)throw Error(se(456));if(i._pendingVisibility&2){var a=Ya(o,2);a!==null&&(i._pendingVisibility&=-3,lr(a,o,2))}}};return e.stateNode=i,e}function qy(e,t,n){return e=Ai(6,e,null,t),e.lanes=n,e}function jy(e,t,n){return t=Ai(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ho(e){e.flags|=4}function AT(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!EO(t)){if(t=Bi.current,t!==null&&((ht&4194176)===ht?po!==null:(ht&62914560)!==ht&&!(ht&536870912)||t!==po))throw qf=px,UB;e.flags|=8192}}function Qh(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sB():536870912,e.lanes|=t,Ps|=t)}function Of(e,t){if(!yt)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 Wt(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&31457280,r|=i.flags&31457280,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 bY(e,t,n){var r=t.pendingProps;switch(rb(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(t),null;case 1:return Wt(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Xo(yn),Ms(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Af(t)?Ho(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gi!==null&&(Fx(Gi),Gi=null))),Wt(t),null;case 26:return n=t.memoizedState,e===null?(Ho(t),n!==null?(Wt(t),AT(t,n)):(Wt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Ho(t),Wt(t),AT(t,n)):(Wt(t),t.flags&=-16777217):(e.memoizedProps!==r&&Ho(t),Wt(t),t.flags&=-16777217),null;case 27:yd(t),n=Ha.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ho(t);else{if(!r){if(t.stateNode===null)throw Error(se(166));return Wt(t),null}e=co.current,Af(t)?rT(t,e):(e=yO(i,r,n),t.stateNode=e,Ho(t))}return Wt(t),null;case 5:if(yd(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ho(t);else{if(!r){if(t.stateNode===null)throw Error(se(166));return Wt(t),null}if(e=co.current,Af(t))rT(t,e);else{switch(i=zd(Ha.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?i.createElement(n,{is:r.is}):i.createElement(n)}}e[Wn]=t,e[Ar]=r;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(Nn(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Ho(t)}}return Wt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ho(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(se(166));if(e=Ha.current,Af(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=ur,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Wn]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||dO(e.nodeValue,n)),e||Ju(t)}else e=zd(e).createTextNode(r),e[Wn]=t,t.stateNode=e}return Wt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Af(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(se(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(se(317));i[Wn]=t}else yp(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Wt(t),i=!1}else Gi!==null&&(Fx(Gi),Gi=null),i=!0;if(!i)return t.flags&256?(Ko(t),t):(Ko(t),null)}if(Ko(t),t.flags&128)return t.lanes=n,t;if(n=r!==null,e=e!==null&&e.memoizedState!==null,n){r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool);var o=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Qh(t,t.updateQueue),Wt(t),null;case 4:return Ms(),e===null&&Bb(t.stateNode.containerInfo),Wt(t),null;case 10:return Xo(t.type),Wt(t),null;case 19:if(Tn(xn),i=t.memoizedState,i===null)return Wt(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Of(i,!1);else{if(Zt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=kd(e),o!==null){for(t.flags|=128,Of(i,!1),e=o.updateQueue,t.updateQueue=e,Qh(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)J3(n,e),n=n.sibling;return Ut(xn,xn.current&1|2),t.child}e=e.sibling}i.tail!==null&&fo()>Fd&&(t.flags|=128,r=!0,Of(i,!1),t.lanes=4194304)}else{if(!r)if(e=kd(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Qh(t,e),Of(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!yt)return Wt(t),null}else 2*fo()-i.renderingStartTime>Fd&&n!==536870912&&(t.flags|=128,r=!0,Of(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=fo(),t.sibling=null,e=xn.current,Ut(xn,r?e&1|2:e&1),t):(Wt(t),null);case 22:case 23:return Ko(t),ib(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Wt(t),t.subtreeFlags&6&&(t.flags|=8192)):Wt(t),n=t.updateQueue,n!==null&&Qh(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&&Tn(Yu),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xo(yn),Wt(t),null;case 25:return null}throw Error(se(156,t.tag))}function EY(e,t){switch(rb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xo(yn),Ms(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yd(t),null;case 13:if(Ko(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(se(340));yp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tn(xn),null;case 4:return Ms(),null;case 10:return Xo(t.type),null;case 22:case 23:return Ko(t),ib(),e!==null&&Tn(Yu),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xo(yn),null;case 25:return null;default:return null}}function tO(e,t){switch(rb(t),t.tag){case 3:Xo(yn),Ms();break;case 26:case 27:case 5:yd(t);break;case 4:Ms();break;case 13:Ko(t);break;case 19:Tn(xn);break;case 10:Xo(t.type);break;case 22:case 23:Ko(t),ib(),e!==null&&Tn(Yu);break;case 24:Xo(yn)}}var DY={getCacheForType:function(e){var t=Kn(yn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},wY=typeof WeakMap=="function"?WeakMap:Map,Kt=0,Ft=null,st=null,ht=0,Rt=0,$r=null,jo=!1,js=!1,Cb=!1,ea=0,Zt=0,Za=0,Qu=0,Sb=0,Ti=0,Ps=0,Xf=null,so=null,Bx=!1,kb=0,Fd=1/0,_d=null,$a=null,Zh=!1,Vu=null,Qf=0,Ox=0,Mx=null,Zf=0,Rx=null;function Yr(){if(Kt&2&&ht!==0)return ht&-ht;if(Je.T!==null){var e=Is;return e!==0?e:Tb()}return mB()}function nO(){Ti===0&&(Ti=!(ht&536870912)||yt?lB():536870912);var e=Bi.current;return e!==null&&(e.flags|=32),Ti}function lr(e,t,n){(e===Ft&&Rt===2||e.cancelPendingCommit!==null)&&(zs(e,0),Vo(e,ht,Ti,!1)),gp(e,n),(!(Kt&2)||e!==Ft)&&(e===Ft&&(!(Kt&2)&&(Qu|=n),Zt===4&&Vo(e,ht,Ti,!1)),go(e))}function rO(e,t,n){if(Kt&6)throw Error(se(327));var r=!n&&(t&60)===0&&(t&e.expiredLanes)===0||dp(e,t),i=r?kY(e,t):Vy(e,t,!0),o=r;do{if(i===0){js&&!r&&Vo(e,t,0,!1);break}else if(i===6)Vo(e,t,0,!jo);else{if(n=e.current.alternate,o&&!CY(n)){i=Vy(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var l=e;i=Xf;var c=l.current.memoizedState.isDehydrated;if(c&&(zs(l,a).flags|=256),a=Vy(l,a,!1),a!==2){if(Cb&&!c){l.errorRecoveryDisabledLanes|=o,Qu|=o,i=4;break e}o=so,so=i,o!==null&&Fx(o)}i=a}if(o=!1,i!==2)continue}}if(i===1){zs(e,0),Vo(e,t,0,!0);break}e:{switch(r=e,i){case 0:case 1:throw Error(se(345));case 4:if((t&4194176)===t){Vo(r,t,Ti,!jo);break e}break;case 2:so=null;break;case 3:case 5:break;default:throw Error(se(329))}if(r.finishedWork=n,r.finishedLanes=t,(t&62914560)===t&&(o=kb+300-fo(),10<o)){if(Vo(r,t,Ti,!jo),Vd(r,0)!==0)break e;r.timeoutHandle=vO(TT.bind(null,r,n,so,_d,Bx,t,Ti,Qu,Ps,jo,2,-0,0),o);break e}TT(r,n,so,_d,Bx,t,Ti,Qu,Ps,jo,0,-0,0)}}break}while(1);go(e)}function Fx(e){so===null?so=e:so.push.apply(so,e)}function TT(e,t,n,r,i,o,a,l,c,f,p,d,g){var m=t.subtreeFlags;if((m&8192||(m&16785408)===16785408)&&(sp={stylesheets:null,count:0,unsuspend:rX},Y3(t),t=oX(),t!==null)){e.cancelPendingCommit=t(OT.bind(null,e,n,r,i,a,l,c,1,d,g)),Vo(e,o,a,!f);return}OT(e,n,r,i,a,l,c,p,d,g)}function CY(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],o=i.getSnapshot;i=i.value;try{if(!Xr(o(),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 Vo(e,t,n,r){t&=~Sb,t&=~Qu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-Kr(i),a=1<<o;r[o]=-1,i&=~a}n!==0&&cB(e,n,t)}function eg(){return Kt&6?!0:(wp(0,!1),!1)}function Ab(){if(st!==null){if(Rt===0)var e=st.return;else e=st,Yo=sl=null,fb(e),ks=null,op=0,e=st;for(;e!==null;)tO(e.alternate,e),e=e.return;st=null}}function zs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,HY(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ab(),Ft=e,st=n=Va(e.current,null),ht=t,Rt=0,$r=null,jo=!1,js=dp(e,t),Cb=!1,Ps=Ti=Sb=Qu=Za=Zt=0,so=Xf=null,Bx=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Kr(r),o=1<<i;t|=e[i],r&=~o}return ea=t,Kd(),n}function iO(e,t){ot=null,Je.H=mo,t===Hf?(t=aT(),Rt=3):t===UB?(t=aT(),Rt=4):Rt=t===B3?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,$r=t,st===null&&(Zt=1,Od(e,ki(t,e.current)))}function oO(){var e=Je.H;return Je.H=mo,e===null?mo:e}function aO(){var e=Je.A;return Je.A=DY,e}function _x(){Zt=4,jo||(ht&4194176)!==ht&&Bi.current!==null||(js=!0),!(Za&134217727)&&!(Qu&134217727)||Ft===null||Vo(Ft,ht,Ti,!1)}function Vy(e,t,n){var r=Kt;Kt|=2;var i=oO(),o=aO();(Ft!==e||ht!==t)&&(_d=null,zs(e,t)),t=!1;var a=Zt;e:do try{if(Rt!==0&&st!==null){var l=st,c=$r;switch(Rt){case 8:Ab(),a=6;break e;case 3:case 2:case 6:Bi.current===null&&(t=!0);var f=Rt;if(Rt=0,$r=null,Ds(e,l,c,f),n&&js){a=0;break e}break;default:f=Rt,Rt=0,$r=null,Ds(e,l,c,f)}}SY(),a=Zt;break}catch(p){iO(e,p)}while(1);return t&&e.shellSuspendCounter++,Yo=sl=null,Kt=r,Je.H=i,Je.A=o,st===null&&(Ft=null,ht=0,Kd()),a}function SY(){for(;st!==null;)uO(st)}function kY(e,t){var n=Kt;Kt|=2;var r=oO(),i=aO();Ft!==e||ht!==t?(_d=null,Fd=fo()+500,zs(e,t)):js=dp(e,t);e:do try{if(Rt!==0&&st!==null){t=st;var o=$r;t:switch(Rt){case 1:Rt=0,$r=null,Ds(e,t,o,1);break;case 2:if(oT(o)){Rt=0,$r=null,BT(t);break}t=function(){Rt===2&&Ft===e&&(Rt=7),go(e)},o.then(t,t);break e;case 3:Rt=7;break e;case 4:Rt=5;break e;case 7:oT(o)?(Rt=0,$r=null,BT(t)):(Rt=0,$r=null,Ds(e,t,o,7));break;case 5:var a=null;switch(st.tag){case 26:a=st.memoizedState;case 5:case 27:var l=st;if(!a||EO(a)){Rt=0,$r=null;var c=l.sibling;if(c!==null)st=c;else{var f=l.return;f!==null?(st=f,tg(f)):st=null}break t}}Rt=0,$r=null,Ds(e,t,o,5);break;case 6:Rt=0,$r=null,Ds(e,t,o,6);break;case 8:Ab(),Zt=6;break e;default:throw Error(se(462))}}AY();break}catch(p){iO(e,p)}while(1);return Yo=sl=null,Je.H=r,Je.A=i,Kt=n,st!==null?0:(Ft=null,ht=0,Kd(),Zt)}function AY(){for(;st!==null&&!YW();)uO(st)}function uO(e){var t=_3(e.alternate,e,ea);e.memoizedProps=e.pendingProps,t===null?tg(e):st=t}function BT(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=bT(n,t,t.pendingProps,t.type,void 0,ht);break;case 11:t=bT(n,t,t.pendingProps,t.type.render,t.ref,ht);break;case 5:fb(t);default:tO(n,t),t=st=J3(t,ea),t=_3(n,t,ea)}e.memoizedProps=e.pendingProps,t===null?tg(e):st=t}function Ds(e,t,n,r){Yo=sl=null,fb(t),ks=null,op=0;var i=t.return;try{if(dY(e,i,t,n,ht)){Zt=1,Od(e,ki(n,e.current)),st=null;return}}catch(o){if(i!==null)throw st=i,o;Zt=1,Od(e,ki(n,e.current)),st=null;return}t.flags&32768?(yt||r===1?e=!0:js||ht&536870912?e=!1:(jo=e=!0,(r===2||r===3||r===6)&&(r=Bi.current,r!==null&&r.tag===13&&(r.flags|=16384))),lO(t,e)):tg(t)}function tg(e){var t=e;do{if(t.flags&32768){lO(t,jo);return}e=t.return;var n=bY(t.alternate,t,ea);if(n!==null){st=n;return}if(t=t.sibling,t!==null){st=t;return}st=t=e}while(t!==null);Zt===0&&(Zt=5)}function lO(e,t){do{var n=EY(e.alternate,e);if(n!==null){n.flags&=32767,st=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){st=e;return}st=e=n}while(e!==null);Zt=6,st=null}function OT(e,t,n,r,i,o,a,l,c,f){var p=Je.T,d=Lt.p;try{Lt.p=2,Je.T=null,TY(e,t,n,r,d,i,o,a,l,c,f)}finally{Je.T=p,Lt.p=d}}function TY(e,t,n,r,i,o,a,l){do Os();while(Vu!==null);if(Kt&6)throw Error(se(327));var c=e.finishedWork;if(r=e.finishedLanes,c===null)return null;if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(se(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var f=c.lanes|c.childLanes;if(f|=eb,aK(e,r,f,o,a,l),e===Ft&&(st=Ft=null,ht=0),!(c.subtreeFlags&10256)&&!(c.flags&10256)||Zh||(Zh=!0,Ox=f,Mx=n,RY(xd,function(){return Os(!0),null})),n=(c.flags&15990)!==0,c.subtreeFlags&15990||n?(n=Je.T,Je.T=null,o=Lt.p,Lt.p=2,a=Kt,Kt|=4,vY(e,c),G3(c,e),ZK(zx,e.containerInfo),qd=!!Px,zx=Px=null,e.current=c,q3(e,c.alternate,c),XW(),Kt=a,Lt.p=o,Je.T=n):e.current=c,Zh?(Zh=!1,Vu=e,Qf=r):sO(e,f),f=e.pendingLanes,f===0&&($a=null),tK(c.stateNode,i),go(e),t!==null)for(i=e.onRecoverableError,c=0;c<t.length;c++)f=t[c],i(f.value,{componentStack:f.stack});return Qf&3&&Os(),f=e.pendingLanes,r&4194218&&f&42?e===Rx?Zf++:(Zf=0,Rx=e):Zf=0,wp(0,!1),null}function sO(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xp(t)))}function Os(){if(Vu!==null){var e=Vu,t=Ox;Ox=0;var n=pB(Qf),r=Je.T,i=Lt.p;try{if(Lt.p=32>n?32:n,Je.T=null,Vu===null)var o=!1;else{n=Mx,Mx=null;var a=Vu,l=Qf;if(Vu=null,Qf=0,Kt&6)throw Error(se(331));var c=Kt;if(Kt|=4,Q3(a.current),K3(a,a.current,l,n),Kt=c,wp(0,!1),Wr&&typeof Wr.onPostCommitFiberRoot=="function")try{Wr.onPostCommitFiberRoot(hp,a)}catch{}o=!0}return o}finally{Lt.p=i,Je.T=r,sO(e,t)}}return!1}function MT(e,t,n){t=ki(n,t),t=xx(e.stateNode,t,2),e=ja(e,t,2),e!==null&&(gp(e,2),go(e))}function Bt(e,t,n){if(e.tag===3)MT(e,e,n);else for(;t!==null;){if(t.tag===3){MT(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($a===null||!$a.has(r))){e=ki(n,e),n=A3(2),r=ja(t,n,2),r!==null&&(T3(n,r,t,e),gp(r,2),go(r));break}}t=t.return}}function $y(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wY;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)||(Cb=!0,i.add(n),e=BY.bind(null,e,t,n),t.then(e,e))}function BY(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ft===e&&(ht&n)===n&&(Zt===4||Zt===3&&(ht&62914560)===ht&&300>fo()-kb?!(Kt&2)&&zs(e,0):Sb|=n,Ps===ht&&(Ps=0)),go(e)}function cO(e,t){t===0&&(t=sB()),e=Ya(e,t),e!==null&&(gp(e,t),go(e))}function OY(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cO(e,n)}function MY(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(se(314))}r!==null&&r.delete(t),cO(e,n)}function RY(e,t){return Gx(e,t)}var Id=null,fs=null,Ix=!1,Ld=!1,Gy=!1,Zu=0;function go(e){e!==fs&&e.next===null&&(fs===null?Id=fs=e:fs=fs.next=e),Ld=!0,Ix||(Ix=!0,_Y(FY))}function wp(e,t){if(!Gy&&Ld){Gy=!0;do for(var n=!1,r=Id;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var a=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-Kr(42|e)+1)-1,o&=i&~(a&~l),o=o&201326677?o&201326677|1:o?o|2:0}o!==0&&(n=!0,RT(r,o))}else o=ht,o=Vd(r,r===Ft?o:0),!(o&3)||dp(r,o)||(n=!0,RT(r,o));r=r.next}while(n);Gy=!1}}function FY(){Ld=Ix=!1;var e=0;Zu!==0&&(UY()&&(e=Zu),Zu=0);for(var t=fo(),n=null,r=Id;r!==null;){var i=r.next,o=fO(r,t);o===0?(r.next=null,n===null?Id=i:n.next=i,i===null&&(fs=n)):(n=r,(e!==0||o&3)&&(Ld=!0)),r=i}wp(e,!1)}function fO(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var a=31-Kr(o),l=1<<a,c=i[a];c===-1?(!(l&n)||l&r)&&(i[a]=oK(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}if(t=Ft,n=ht,n=Vd(e,e===t?n:0),r=e.callbackNode,n===0||e===t&&Rt===2||e.cancelPendingCommit!==null)return r!==null&&r!==null&&wy(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||dp(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&wy(r),pB(n)){case 2:case 8:n=aB;break;case 32:n=xd;break;case 268435456:n=uB;break;default:n=xd}return r=pO.bind(null,e),n=Gx(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&wy(r),e.callbackPriority=2,e.callbackNode=null,2}function pO(e,t){var n=e.callbackNode;if(Os()&&e.callbackNode!==n)return null;var r=ht;return r=Vd(e,e===Ft?r:0),r===0?null:(rO(e,r,t),fO(e,fo()),e.callbackNode!=null&&e.callbackNode===n?pO.bind(null,e):null)}function RT(e,t){if(Os())return null;rO(e,t,!0)}function _Y(e){qY(function(){Kt&6?Gx(oB,e):e()})}function Tb(){return Zu===0&&(Zu=lB()),Zu}function FT(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:od(""+e)}function _T(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 IY(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var o=FT((i[Ar]||null).action),a=r.submitter;a&&(t=(t=a[Ar]||null)?FT(t.formAction):a.getAttribute("formAction"),t!==null&&(o=t,a=null));var l=new $d("action","action",null,r,i);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Zu!==0){var c=a?_T(i,a):new FormData(i);vx(n,{pending:!0,data:c,method:i.method,action:o},null,c)}}else typeof o=="function"&&(l.preventDefault(),c=a?_T(i,a):new FormData(i),vx(n,{pending:!0,data:c,method:i.method,action:o},o,c))},currentTarget:i}]})}}for(Jh=0;Jh<tT.length;Jh++)ed=tT[Jh],IT=ed.toLowerCase(),LT=ed[0].toUpperCase()+ed.slice(1),Ki(IT,"on"+LT);var ed,IT,LT,Jh;Ki(FB,"onAnimationEnd");Ki(_B,"onAnimationIteration");Ki(IB,"onAnimationStart");Ki("dblclick","onDoubleClick");Ki("focusin","onFocus");Ki("focusout","onBlur");Ki(eY,"onTransitionRun");Ki(tY,"onTransitionStart");Ki(nY,"onTransitionCancel");Ki(LB,"onTransitionEnd");Rs("onMouseEnter",["mouseout","mouseover"]);Rs("onMouseLeave",["mouseout","mouseover"]);Rs("onPointerEnter",["pointerout","pointerover"]);Rs("onPointerLeave",["pointerout","pointerover"]);il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));il("onBeforeInput",["compositionend","keypress","textInput","paste"]);il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var up="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(" "),LY=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(up));function mO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,f=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=f;try{o(i)}catch(p){Bd(p)}i.currentTarget=null,o=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,f=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=f;try{o(i)}catch(p){Bd(p)}i.currentTarget=null,o=c}}}}function mt(e,t){var n=t[ix];n===void 0&&(n=t[ix]=new Set);var r=e+"__bubble";n.has(r)||(hO(t,e,2,!1),n.add(r))}function Wy(e,t,n){var r=0;t&&(r|=4),hO(n,e,r,t)}var td="_reactListening"+Math.random().toString(36).slice(2);function Bb(e){if(!e[td]){e[td]=!0,hB.forEach(function(n){n!=="selectionchange"&&(LY.has(n)||Wy(n,!1,e),Wy(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[td]||(t[td]=!0,Wy("selectionchange",!1,t))}}function hO(e,t,n,r){switch(kO(t)){case 2:var i=lX;break;case 8:i=sX;break;default:i=Fb}n=i.bind(null,t,n,e),i=void 0,!lx||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ky(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;l!==null;){if(a=$u(l),a===null)return;if(c=a.tag,c===5||c===6||c===26||c===27){r=o=a;continue e}l=l.parentNode}}r=r.return}DB(function(){var f=o,p=Yx(n),d=[];e:{var g=PB.get(e);if(g!==void 0){var m=$d,x=e;switch(e){case"keypress":if(ud(n)===0)break e;case"keydown":case"keyup":m=MK;break;case"focusin":x="focus",m=Ty;break;case"focusout":x="blur",m=Ty;break;case"beforeblur":case"afterblur":m=Ty;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=V2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=xK;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=_K;break;case FB:case _B:case IB:m=DK;break;case LB:m=LK;break;case"scroll":case"scrollend":m=vK;break;case"wheel":m=zK;break;case"copy":case"cut":case"paste":m=CK;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=G2;break;case"toggle":case"beforetoggle":m=UK}var S=(t&4)!==0,T=!S&&(e==="scroll"||e==="scrollend"),y=S?g!==null?g+"Capture":null:g;S=[];for(var w=f,C;w!==null;){var M=w;if(C=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||C===null||y===null||(M=tp(w,y),M!=null&&S.push(lp(w,M,C))),T)break;w=w.return}0<S.length&&(g=new m(g,x,null,n,p),d.push({event:g,listeners:S}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",g&&n!==ux&&(x=n.relatedTarget||n.fromElement)&&($u(x)||x[Hs]))break e;if((m||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,m?(x=n.relatedTarget||n.toElement,m=f,x=x?$u(x):null,x!==null&&(T=Us(x),S=x.tag,x!==T||S!==5&&S!==27&&S!==6)&&(x=null)):(m=null,x=f),m!==x)){if(S=V2,M="onMouseLeave",y="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(S=G2,M="onPointerLeave",y="onPointerEnter",w="pointer"),T=m==null?g:Lf(m),C=x==null?g:Lf(x),g=new S(M,w+"leave",m,n,p),g.target=T,g.relatedTarget=C,M=null,$u(p)===f&&(S=new S(y,w+"enter",x,n,p),S.target=C,S.relatedTarget=T,M=S),T=M,m&&x)t:{for(S=m,y=x,w=0,C=S;C;C=ls(C))w++;for(C=0,M=y;M;M=ls(M))C++;for(;0<w-C;)S=ls(S),w--;for(;0<C-w;)y=ls(y),C--;for(;w--;){if(S===y||y!==null&&S===y.alternate)break t;S=ls(S),y=ls(y)}S=null}else S=null;m!==null&&PT(d,g,m,S,!1),x!==null&&T!==null&&PT(d,T,x,S,!0)}}e:{if(g=f?Lf(f):window,m=g.nodeName&&g.nodeName.toLowerCase(),m==="select"||m==="input"&&g.type==="file")var R=X2;else if(Y2(g))if(TB)R=XK;else{R=KK;var A=WK}else m=g.nodeName,!m||m.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?f&&Kx(f.elementType)&&(R=X2):R=YK;if(R&&(R=R(e,f))){AB(d,R,n,p);break e}A&&A(e,g,f),e==="focusout"&&f&&g.type==="number"&&f.memoizedProps.value!=null&&ax(g,"number",g.value)}switch(A=f?Lf(f):window,e){case"focusin":(Y2(A)||A.contentEditable==="true")&&(gs=A,sx=f,Uf=null);break;case"focusout":Uf=sx=gs=null;break;case"mousedown":cx=!0;break;case"contextmenu":case"mouseup":case"dragend":cx=!1,eT(d,n,p);break;case"selectionchange":if(JK)break;case"keydown":case"keyup":eT(d,n,p)}var P;if(Zx)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else ds?SB(e,n)&&(V="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(V="onCompositionStart");V&&(CB&&n.locale!=="ko"&&(ds||V!=="onCompositionStart"?V==="onCompositionEnd"&&ds&&(P=wB()):(Ua=p,Xx="value"in Ua?Ua.value:Ua.textContent,ds=!0)),A=Pd(f,V),0<A.length&&(V=new $2(V,e,null,n,p),d.push({event:V,listeners:A}),P?V.data=P:(P=kB(n),P!==null&&(V.data=P)))),(P=qK?jK(e,n):VK(e,n))&&(V=Pd(f,"onBeforeInput"),0<V.length&&(A=new $2("onBeforeInput","beforeinput",null,n,p),d.push({event:A,listeners:V}),A.data=P)),IY(d,e,f,n,p)}mO(d,t)})}function lp(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pd(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=tp(e,n),i!=null&&r.unshift(lp(e,i,o)),i=tp(e,t),i!=null&&r.push(lp(e,i,o))),e=e.return}return r}function ls(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function PT(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,f=l.stateNode;if(l=l.tag,c!==null&&c===r)break;l!==5&&l!==26&&l!==27||f===null||(c=f,i?(f=tp(n,o),f!=null&&a.unshift(lp(n,f,c))):i||(f=tp(n,o),f!=null&&a.push(lp(n,f,c)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var PY=/\r\n?/g,zY=/\u0000|\uFFFD/g;function zT(e){return(typeof e=="string"?e:""+e).replace(PY,`
|
|
9
|
-
`).replace(zY,"")}function dO(e,t){return t=zT(t),zT(e)===t}function ng(){}function St(e,t,n,r,i,o){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Fs(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Fs(e,""+r);break;case"className":jh(e,"class",r);break;case"tabIndex":jh(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":jh(e,n,r);break;case"style":EB(e,r,o);break;case"data":if(t!=="object"){jh(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=od(""+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 o=="function"&&(n==="formAction"?(t!=="input"&&St(e,t,"name",i.name,i,null),St(e,t,"formEncType",i.formEncType,i,null),St(e,t,"formMethod",i.formMethod,i,null),St(e,t,"formTarget",i.formTarget,i,null)):(St(e,t,"encType",i.encType,i,null),St(e,t,"method",i.method,i,null),St(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=od(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=ng);break;case"onScroll":r!=null&&mt("scroll",e);break;case"onScrollEnd":r!=null&&mt("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(se(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(se(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=od(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":mt("beforetoggle",e),mt("toggle",e),id(e,"popover",r);break;case"xlinkActuate":zo(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":zo(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":zo(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":zo(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":zo(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":zo(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":zo(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":zo(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":zo(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":id(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=dK.get(n)||n,id(e,n,r))}}function Lx(e,t,n,r,i,o){switch(n){case"style":EB(e,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(se(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(se(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Fs(e,r):(typeof r=="number"||typeof r=="bigint")&&Fs(e,""+r);break;case"onScroll":r!=null&&mt("scroll",e);break;case"onScrollEnd":r!=null&&mt("scrollend",e);break;case"onClick":r!=null&&(e.onclick=ng);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dB.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[Ar]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof r=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):id(e,n,r)}}}function Nn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",e),mt("load",e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(se(137,t));default:St(e,t,o,a,n,null)}}i&&St(e,t,"srcSet",n.srcSet,n,null),r&&St(e,t,"src",n.src,n,null);return;case"input":mt("invalid",e);var l=o=a=i=null,c=null,f=null;for(r in n)if(n.hasOwnProperty(r)){var p=n[r];if(p!=null)switch(r){case"name":i=p;break;case"type":a=p;break;case"checked":c=p;break;case"defaultChecked":f=p;break;case"value":o=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(se(137,t));break;default:St(e,t,r,p,n,null)}}yB(e,o,l,c,f,a,i,!1),bd(e);return;case"select":mt("invalid",e),r=a=o=null;for(i in n)if(n.hasOwnProperty(i)&&(l=n[i],l!=null))switch(i){case"value":o=l;break;case"defaultValue":a=l;break;case"multiple":r=l;default:St(e,t,i,l,n,null)}t=o,n=a,e.multiple=!!r,t!=null?Cs(e,!!r,t,!1):n!=null&&Cs(e,!!r,n,!0);return;case"textarea":mt("invalid",e),o=i=r=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":r=l;break;case"defaultValue":i=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(se(91));break;default:St(e,t,a,l,n,null)}bB(e,r,i,o),bd(e);return;case"option":for(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:St(e,t,c,r,n,null)}return;case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":mt("load",e);break;case"video":case"audio":for(r=0;r<up.length;r++)mt(up[r],e);break;case"image":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"embed":case"source":case"link":mt("error",e),mt("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(f in n)if(n.hasOwnProperty(f)&&(r=n[f],r!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(se(137,t));default:St(e,t,f,r,n,null)}return;default:if(Kx(t)){for(p in n)n.hasOwnProperty(p)&&(r=n[p],r!==void 0&&Lx(e,t,p,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&St(e,t,l,r,n,null))}function NY(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,o=null,a=null,l=null,c=null,f=null,p=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&d!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":c=d;default:r.hasOwnProperty(m)||St(e,t,m,null,r,d)}}for(var g in r){var m=r[g];if(d=n[g],r.hasOwnProperty(g)&&(m!=null||d!=null))switch(g){case"type":o=m;break;case"name":i=m;break;case"checked":f=m;break;case"defaultChecked":p=m;break;case"value":a=m;break;case"defaultValue":l=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(se(137,t));break;default:m!==d&&St(e,t,g,m,r,d)}}ox(e,a,l,c,f,p,o,i);return;case"select":m=a=l=g=null;for(o in n)if(c=n[o],n.hasOwnProperty(o)&&c!=null)switch(o){case"value":break;case"multiple":m=c;default:r.hasOwnProperty(o)||St(e,t,o,null,r,c)}for(i in r)if(o=r[i],c=n[i],r.hasOwnProperty(i)&&(o!=null||c!=null))switch(i){case"value":g=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:o!==c&&St(e,t,i,o,r,c)}t=l,n=a,r=m,g!=null?Cs(e,!!n,g,!1):!!r!=!!n&&(t!=null?Cs(e,!!n,t,!0):Cs(e,!!n,n?[]:"",!1));return;case"textarea":m=g=null;for(l in n)if(i=n[l],n.hasOwnProperty(l)&&i!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:St(e,t,l,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(i!=null||o!=null))switch(a){case"value":g=i;break;case"defaultValue":m=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(se(91));break;default:i!==o&&St(e,t,a,i,r,o)}xB(e,g,m);return;case"option":for(var x in n)if(g=n[x],n.hasOwnProperty(x)&&g!=null&&!r.hasOwnProperty(x))switch(x){case"selected":e.selected=!1;break;default:St(e,t,x,null,r,g)}for(c in r)if(g=r[c],m=n[c],r.hasOwnProperty(c)&&g!==m&&(g!=null||m!=null))switch(c){case"selected":e.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:St(e,t,c,g,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 S in n)g=n[S],n.hasOwnProperty(S)&&g!=null&&!r.hasOwnProperty(S)&&St(e,t,S,null,r,g);for(f in r)if(g=r[f],m=n[f],r.hasOwnProperty(f)&&g!==m&&(g!=null||m!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(se(137,t));break;default:St(e,t,f,g,r,m)}return;default:if(Kx(t)){for(var T in n)g=n[T],n.hasOwnProperty(T)&&g!==void 0&&!r.hasOwnProperty(T)&&Lx(e,t,T,void 0,r,g);for(p in r)g=r[p],m=n[p],!r.hasOwnProperty(p)||g===m||g===void 0&&m===void 0||Lx(e,t,p,g,r,m);return}}for(var y in n)g=n[y],n.hasOwnProperty(y)&&g!=null&&!r.hasOwnProperty(y)&&St(e,t,y,null,r,g);for(d in r)g=r[d],m=n[d],!r.hasOwnProperty(d)||g===m||g==null&&m==null||St(e,t,d,g,r,m)}var Px=null,zx=null;function zd(e){return e.nodeType===9?e:e.ownerDocument}function NT(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 gO(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 Nx(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 Yy=null;function UY(){var e=window.event;return e&&e.type==="popstate"?e===Yy?!1:(Yy=e,!0):(Yy=null,!1)}var vO=typeof setTimeout=="function"?setTimeout:void 0,HY=typeof clearTimeout=="function"?clearTimeout:void 0,UT=typeof Promise=="function"?Promise:void 0,qY=typeof queueMicrotask=="function"?queueMicrotask:typeof UT<"u"?function(e){return UT.resolve(null).then(e).catch(jY)}:vO;function jY(e){setTimeout(function(){throw e})}function Xy(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==="/$"){if(r===0){e.removeChild(i),mp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);mp(t)}function Ux(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":Ux(n),Wx(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function VY(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[ep])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null?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(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Wi(e.nextSibling),e===null)break}return null}function $Y(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Wi(e.nextSibling),e===null))return null;return e}function Wi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function HT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function yO(e,t,n){switch(t=zd(n),e){case"html":if(e=t.documentElement,!e)throw Error(se(452));return e;case"head":if(e=t.head,!e)throw Error(se(453));return e;case"body":if(e=t.body,!e)throw Error(se(454));return e;default:throw Error(se(451))}}var Oi=new Map,qT=new Set;function Nd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var ta=Lt.d;Lt.d={f:GY,r:WY,D:KY,C:YY,L:XY,m:QY,X:JY,S:ZY,M:eX};function GY(){var e=ta.f(),t=eg();return e||t}function WY(e){var t=qs(e);t!==null&&t.tag===5&&t.type==="form"?y3(t):ta.r(e)}var Vs=typeof document>"u"?null:document;function xO(e,t,n){var r=Vs;if(r&&typeof t=="string"&&t){var i=Si(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),qT.has(i)||(qT.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),Nn(t,"link",e),kn(t),r.head.appendChild(t)))}}function KY(e){ta.D(e),xO("dns-prefetch",e,null)}function YY(e,t){ta.C(e,t),xO("preconnect",e,t)}function XY(e,t,n){ta.L(e,t,n);var r=Vs;if(r&&e&&t){var i='link[rel="preload"][as="'+Si(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Si(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Si(n.imageSizes)+'"]')):i+='[href="'+Si(e)+'"]';var o=i;switch(t){case"style":o=Ns(e);break;case"script":o=$s(e)}Oi.has(o)||(e=Pt({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Oi.set(o,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(Cp(o))||t==="script"&&r.querySelector(Sp(o))||(t=r.createElement("link"),Nn(t,"link",e),kn(t),r.head.appendChild(t)))}}function QY(e,t){ta.m(e,t);var n=Vs;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Si(r)+'"][href="'+Si(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=$s(e)}if(!Oi.has(o)&&(e=Pt({rel:"modulepreload",href:e},t),Oi.set(o,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Sp(o)))return}r=n.createElement("link"),Nn(r,"link",e),kn(r),n.head.appendChild(r)}}}function ZY(e,t,n){ta.S(e,t,n);var r=Vs;if(r&&e){var i=ws(r).hoistableStyles,o=Ns(e);t=t||"default";var a=i.get(o);if(!a){var l={loading:0,preload:null};if(a=r.querySelector(Cp(o)))l.loading=5;else{e=Pt({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Oi.get(o))&&Ob(e,n);var c=a=r.createElement("link");kn(c),Nn(c,"link",e),c._p=new Promise(function(f,p){c.onload=f,c.onerror=p}),c.addEventListener("load",function(){l.loading|=1}),c.addEventListener("error",function(){l.loading|=2}),l.loading|=4,md(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:l},i.set(o,a)}}}function JY(e,t){ta.X(e,t);var n=Vs;if(n&&e){var r=ws(n).hoistableScripts,i=$s(e),o=r.get(i);o||(o=n.querySelector(Sp(i)),o||(e=Pt({src:e,async:!0},t),(t=Oi.get(i))&&Mb(e,t),o=n.createElement("script"),kn(o),Nn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function eX(e,t){ta.M(e,t);var n=Vs;if(n&&e){var r=ws(n).hoistableScripts,i=$s(e),o=r.get(i);o||(o=n.querySelector(Sp(i)),o||(e=Pt({src:e,async:!0,type:"module"},t),(t=Oi.get(i))&&Mb(e,t),o=n.createElement("script"),kn(o),Nn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function jT(e,t,n,r){var i=(i=Ha.current)?Nd(i):null;if(!i)throw Error(se(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ns(n.href),n=ws(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=Ns(n.href);var o=ws(i).hoistableStyles,a=o.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,a),(o=i.querySelector(Cp(e)))&&!o._p&&(a.instance=o,a.state.loading=5),Oi.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},Oi.set(e,n),o||tX(i,e,n,a.state))),t&&r===null)throw Error(se(528,""));return a}if(t&&r!==null)throw Error(se(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=$s(n),n=ws(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(se(444,e))}}function Ns(e){return'href="'+Si(e)+'"'}function Cp(e){return'link[rel="stylesheet"]['+e+"]"}function bO(e){return Pt({},e,{"data-precedence":e.precedence,precedence:null})}function tX(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}),Nn(t,"link",n),kn(t),e.head.appendChild(t))}function $s(e){return'[src="'+Si(e)+'"]'}function Sp(e){return"script[async]"+e}function VT(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Si(n.href)+'"]');if(r)return t.instance=r,kn(r),r;var i=Pt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),kn(r),Nn(r,"style",i),md(r,n.precedence,e),t.instance=r;case"stylesheet":i=Ns(n.href);var o=e.querySelector(Cp(i));if(o)return t.state.loading|=4,t.instance=o,kn(o),o;r=bO(n),(i=Oi.get(i))&&Ob(r,i),o=(e.ownerDocument||e).createElement("link"),kn(o);var a=o;return a._p=new Promise(function(l,c){a.onload=l,a.onerror=c}),Nn(o,"link",r),t.state.loading|=4,md(o,n.precedence,e),t.instance=o;case"script":return o=$s(n.src),(i=e.querySelector(Sp(o)))?(t.instance=i,kn(i),i):(r=n,(i=Oi.get(o))&&(r=Pt({},n),Mb(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),kn(i),Nn(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(se(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,md(r,n.precedence,e));return t.instance}function md(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var l=r[a];if(l.dataset.precedence===t)o=l;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ob(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var hd=null;function $T(e,t,n){if(hd===null){var r=new Map,i=hd=new Map;i.set(n,r)}else i=hd,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 o=n[i];if(!(o[ep]||o[Wn]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(t)||"";a=e+a;var l=r.get(a);l?l.push(o):r.set(a,[o])}}return r}function GT(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function nX(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 EO(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var sp=null;function rX(){}function iX(e,t,n){if(sp===null)throw Error(se(475));var r=sp;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var i=Ns(n.href),o=e.querySelector(Cp(i));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=Ud.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=o,kn(o);return}o=e.ownerDocument||e,n=bO(n),(i=Oi.get(i))&&Ob(n,i),o=o.createElement("link"),kn(o);var a=o;a._p=new Promise(function(l,c){a.onload=l,a.onerror=c}),Nn(o,"link",n),t.instance=o}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=Ud.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function oX(){if(sp===null)throw Error(se(475));var e=sp;return e.stylesheets&&e.count===0&&Hx(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Hx(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Ud(){if(this.count--,this.count===0){if(this.stylesheets)Hx(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hd=null;function Hx(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hd=new Map,t.forEach(aX,e),Hd=null,Ud.call(e))}function aX(e,t){if(!(t.state.loading&4)){var n=Hd.get(e);if(n)var r=n.get(null);else{n=new Map,Hd.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}i=t.instance,a=i.getAttribute("data-precedence"),o=n.get(a)||r,o===r&&n.set(null,i),n.set(a,i),this.count++,r=Ud.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var cp={$$typeof:$o,Provider:null,Consumer:null,_currentValue:Wu,_currentValue2:Wu,_threadCount:0};function uX(e,t,n,r,i,o,a,l){this.tag=1,this.containerInfo=e,this.finishedWork=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=Cy(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cy(0),this.hiddenUpdates=Cy(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function DO(e,t,n,r,i,o,a,l,c,f,p,d){return e=new uX(e,t,n,a,l,c,f,d),t=1,o===!0&&(t|=24),o=Ai(3,null,null,t),e.current=o,o.stateNode=e,t=ob(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},bb(o),e}function wO(e){return e?(e=xs,e):xs}function CO(e,t,n,r,i,o){i=wO(i),r.context===null?r.context=i:r.pendingContext=i,r=qa(t),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=ja(e,r,t),n!==null&&(lr(n,e,t),Gf(n,e,t))}function WT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Rb(e,t){WT(e,t),(e=e.alternate)&&WT(e,t)}function SO(e){if(e.tag===13){var t=Ya(e,67108864);t!==null&&lr(t,e,67108864),Rb(e,67108864)}}var qd=!0;function lX(e,t,n,r){var i=Je.T;Je.T=null;var o=Lt.p;try{Lt.p=2,Fb(e,t,n,r)}finally{Lt.p=o,Je.T=i}}function sX(e,t,n,r){var i=Je.T;Je.T=null;var o=Lt.p;try{Lt.p=8,Fb(e,t,n,r)}finally{Lt.p=o,Je.T=i}}function Fb(e,t,n,r){if(qd){var i=qx(r);if(i===null)Ky(e,t,r,jd,n),KT(e,r);else if(fX(i,e,t,n,r))r.stopPropagation();else if(KT(e,r),t&4&&-1<cX.indexOf(e)){for(;i!==null;){var o=qs(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=qu(o.pendingLanes);if(a!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var c=1<<31-Kr(a);l.entanglements[1]|=c,a&=~c}go(o),!(Kt&6)&&(Fd=fo()+500,wp(0,!1))}}break;case 13:l=Ya(o,2),l!==null&&lr(l,o,2),eg(),Rb(o,2)}if(o=qx(r),o===null&&Ky(e,t,r,jd,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Ky(e,t,r,null,n)}}function qx(e){return e=Yx(e),_b(e)}var jd=null;function _b(e){if(jd=null,e=$u(e),e!==null){var t=Us(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=rB(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 jd=e,null}function kO(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(QW()){case oB:return 2;case aB:return 8;case xd:case ZW:return 32;case uB:return 268435456;default:return 32}default:return 32}}var jx=!1,Ga=null,Wa=null,Ka=null,fp=new Map,pp=new Map,za=[],cX="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 KT(e,t){switch(e){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Wa=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":fp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pp.delete(t.pointerId)}}function Mf(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=qs(t),t!==null&&SO(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function fX(e,t,n,r,i){switch(t){case"focusin":return Ga=Mf(Ga,e,t,n,r,i),!0;case"dragenter":return Wa=Mf(Wa,e,t,n,r,i),!0;case"mouseover":return Ka=Mf(Ka,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return fp.set(o,Mf(fp.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,pp.set(o,Mf(pp.get(o)||null,e,t,n,r,i)),!0}return!1}function AO(e){var t=$u(e.target);if(t!==null){var n=Us(t);if(n!==null){if(t=n.tag,t===13){if(t=rB(n),t!==null){e.blockedOn=t,uK(e.priority,function(){if(n.tag===13){var r=Yr(),i=Ya(n,r);i!==null&&lr(i,n,r),Rb(n,r)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qx(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ux=r,n.target.dispatchEvent(r),ux=null}else return t=qs(n),t!==null&&SO(t),e.blockedOn=n,!1;t.shift()}return!0}function YT(e,t,n){dd(e)&&n.delete(t)}function pX(){jx=!1,Ga!==null&&dd(Ga)&&(Ga=null),Wa!==null&&dd(Wa)&&(Wa=null),Ka!==null&&dd(Ka)&&(Ka=null),fp.forEach(YT),pp.forEach(YT)}function nd(e,t){e.blockedOn===t&&(e.blockedOn=null,jx||(jx=!0,bn.unstable_scheduleCallback(bn.unstable_NormalPriority,pX)))}var rd=null;function XT(e){rd!==e&&(rd=e,bn.unstable_scheduleCallback(bn.unstable_NormalPriority,function(){rd===e&&(rd=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(_b(r||n)===null)continue;break}var o=qs(n);o!==null&&(e.splice(t,3),t-=3,vx(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function mp(e){function t(c){return nd(c,e)}Ga!==null&&nd(Ga,e),Wa!==null&&nd(Wa,e),Ka!==null&&nd(Ka,e),fp.forEach(t),pp.forEach(t);for(var n=0;n<za.length;n++){var r=za[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<za.length&&(n=za[0],n.blockedOn===null);)AO(n),n.blockedOn===null&&za.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[Ar]||null;if(typeof o=="function")a||XT(n);else if(a){var l=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[Ar]||null)l=a.formAction;else if(_b(i)!==null)continue}else l=a.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),XT(n)}}}function Ib(e){this._internalRoot=e}rg.prototype.render=Ib.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(se(409));var n=t.current,r=Yr();CO(n,r,e,t,null,null)};rg.prototype.unmount=Ib.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&Os(),CO(e.current,2,null,e,null,null),eg(),t[Hs]=null}};function rg(e){this._internalRoot=e}rg.prototype.unstable_scheduleHydration=function(e){if(e){var t=mB();e={blockedOn:null,target:e,priority:t};for(var n=0;n<za.length&&t!==0&&t<za[n].priority;n++);za.splice(n,0,e),n===0&&AO(e)}};var QT=ZT.version;if(QT!=="19.0.0")throw Error(se(527,QT,"19.0.0"));Lt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(se(188)):(e=Object.keys(e).join(","),Error(se(268,e)));return e=KW(t),e=e!==null?iB(e):null,e=e===null?null:e.stateNode,e};var mX={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:Je,findFiberByHostInstance:$u,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Rf=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Rf.isDisabled&&Rf.supportsFiber))try{hp=Rf.inject(mX),Wr=Rf}catch{}var Rf;ig.createRoot=function(e,t){if(!JT(e))throw Error(se(299));var n=!1,r="",i=C3,o=S3,a=k3,l=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(l=t.unstable_transitionCallbacks)),t=DO(e,1,!1,null,null,n,r,i,o,a,l,null),e[Hs]=t.current,Bb(e.nodeType===8?e.parentNode:e),new Ib(t)};ig.hydrateRoot=function(e,t,n){if(!JT(e))throw Error(se(299));var r=!1,i="",o=C3,a=S3,l=k3,c=null,f=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(c=n.unstable_transitionCallbacks),n.formState!==void 0&&(f=n.formState)),t=DO(e,1,!0,t,n??null,r,i,o,a,l,c,f),t.context=wO(null),n=t.current,r=Yr(),i=qa(r),i.callback=null,ja(n,i,r),t.current.lanes=r,gp(t,r),go(t),e[Hs]=t.current,Bb(e),new rg(t)};ig.version="19.0.0"});var MO=be((Jse,OO)=>{"use strict";function BO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(BO)}catch(e){console.error(e)}}BO(),OO.exports=TO()});var og=be((Gs,kp)=>{(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",o="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",l=500,c="__lodash_placeholder__",f=1,p=2,d=4,g=1,m=2,x=1,S=2,T=4,y=8,w=16,C=32,M=64,R=128,A=256,P=512,V=30,J="...",_=800,de=16,Z=1,H=2,K=3,G=1/0,me=9007199254740991,U=17976931348623157e292,te=0/0,Q=4294967295,E=Q-1,ve=Q>>>1,Se=[["ary",R],["bind",x],["bindKey",S],["curry",y],["curryRight",w],["flip",P],["partial",C],["partialRight",M],["rearg",A]],D="[object Arguments]",Ee="[object Array]",ze="[object AsyncFunction]",Pe="[object Boolean]",_e="[object Date]",Te="[object DOMException]",Ze="[object Error]",He="[object Function]",je="[object GeneratorFunction]",Ne="[object Map]",rt="[object Number]",br="[object Null]",Ot="[object Object]",er="[object Promise]",Lr="[object Proxy]",Rn="[object RegExp]",ln="[object Set]",tr="[object String]",Pr="[object Symbol]",li="[object Undefined]",si="[object WeakMap]",ya="[object WeakSet]",Fn="[object ArrayBuffer]",ee="[object DataView]",z="[object Float32Array]",X="[object Float64Array]",pe="[object Int8Array]",ke="[object Int16Array]",Re="[object Int32Array]",_t="[object Uint8Array]",zt="[object Uint8ClampedArray]",jt="[object Uint16Array]",_n="[object Uint32Array]",Vt=/\b__p \+= '';/g,vt=/\b(__p \+=) '' \+/g,In=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Er=/&(?:amp|lt|gt|quot|#39);/g,jm=/[&<>"']/g,H8=RegExp(Er.source),q8=RegExp(jm.source),j8=/<%-([\s\S]+?)%>/g,V8=/<%([\s\S]+?)%>/g,RS=/<%=([\s\S]+?)%>/g,$8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G8=/^\w*$/,W8=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W1=/[\\^$.*+?()[\]{}|]/g,K8=RegExp(W1.source),K1=/^\s+/,Y8=/\s/,X8=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q8=/\{\n\/\* \[wrapped with (.+)\] \*/,Z8=/,? & /,J8=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eU=/[()=,{}\[\]\/\s]/,tU=/\\(\\)?/g,nU=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,FS=/\w*$/,rU=/^[-+]0x[0-9a-f]+$/i,iU=/^0b[01]+$/i,oU=/^\[object .+?Constructor\]$/,aU=/^0o[0-7]+$/i,uU=/^(?:0|[1-9]\d*)$/,lU=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vm=/($^)/,sU=/['\n\r\u2028\u2029\\]/g,$m="\\ud800-\\udfff",cU="\\u0300-\\u036f",fU="\\ufe20-\\ufe2f",pU="\\u20d0-\\u20ff",_S=cU+fU+pU,IS="\\u2700-\\u27bf",LS="a-z\\xdf-\\xf6\\xf8-\\xff",mU="\\xac\\xb1\\xd7\\xf7",hU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dU="\\u2000-\\u206f",gU=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",PS="A-Z\\xc0-\\xd6\\xd8-\\xde",zS="\\ufe0e\\ufe0f",NS=mU+hU+dU+gU,Y1="['\u2019]",vU="["+$m+"]",US="["+NS+"]",Gm="["+_S+"]",HS="\\d+",yU="["+IS+"]",qS="["+LS+"]",jS="[^"+$m+NS+HS+IS+LS+PS+"]",X1="\\ud83c[\\udffb-\\udfff]",xU="(?:"+Gm+"|"+X1+")",VS="[^"+$m+"]",Q1="(?:\\ud83c[\\udde6-\\uddff]){2}",Z1="[\\ud800-\\udbff][\\udc00-\\udfff]",$l="["+PS+"]",$S="\\u200d",GS="(?:"+qS+"|"+jS+")",bU="(?:"+$l+"|"+jS+")",WS="(?:"+Y1+"(?:d|ll|m|re|s|t|ve))?",KS="(?:"+Y1+"(?:D|LL|M|RE|S|T|VE))?",YS=xU+"?",XS="["+zS+"]?",EU="(?:"+$S+"(?:"+[VS,Q1,Z1].join("|")+")"+XS+YS+")*",DU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",QS=XS+YS+EU,CU="(?:"+[yU,Q1,Z1].join("|")+")"+QS,SU="(?:"+[VS+Gm+"?",Gm,Q1,Z1,vU].join("|")+")",kU=RegExp(Y1,"g"),AU=RegExp(Gm,"g"),J1=RegExp(X1+"(?="+X1+")|"+SU+QS,"g"),TU=RegExp([$l+"?"+qS+"+"+WS+"(?="+[US,$l,"$"].join("|")+")",bU+"+"+KS+"(?="+[US,$l+GS,"$"].join("|")+")",$l+"?"+GS+"+"+WS,$l+"+"+KS,wU,DU,HS,CU].join("|"),"g"),BU=RegExp("["+$S+$m+_S+zS+"]"),OU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,MU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],RU=-1,It={};It[z]=It[X]=It[pe]=It[ke]=It[Re]=It[_t]=It[zt]=It[jt]=It[_n]=!0,It[D]=It[Ee]=It[Fn]=It[Pe]=It[ee]=It[_e]=It[Ze]=It[He]=It[Ne]=It[rt]=It[Ot]=It[Rn]=It[ln]=It[tr]=It[si]=!1;var Mt={};Mt[D]=Mt[Ee]=Mt[Fn]=Mt[ee]=Mt[Pe]=Mt[_e]=Mt[z]=Mt[X]=Mt[pe]=Mt[ke]=Mt[Re]=Mt[Ne]=Mt[rt]=Mt[Ot]=Mt[Rn]=Mt[ln]=Mt[tr]=Mt[Pr]=Mt[_t]=Mt[zt]=Mt[jt]=Mt[_n]=!0,Mt[Ze]=Mt[He]=Mt[si]=!1;var FU={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},_U={"&":"&","<":"<",">":">",'"':""","'":"'"},IU={"&":"&","<":"<",">":">",""":'"',"'":"'"},LU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},PU=parseFloat,zU=parseInt,ZS=typeof global=="object"&&global&&global.Object===Object&&global,NU=typeof self=="object"&&self&&self.Object===Object&&self,wn=ZS||NU||Function("return this")(),ev=typeof Gs=="object"&&Gs&&!Gs.nodeType&&Gs,Mu=ev&&typeof kp=="object"&&kp&&!kp.nodeType&&kp,JS=Mu&&Mu.exports===ev,tv=JS&&ZS.process,ci=function(){try{var j=Mu&&Mu.require&&Mu.require("util").types;return j||tv&&tv.binding&&tv.binding("util")}catch{}}(),ek=ci&&ci.isArrayBuffer,tk=ci&&ci.isDate,nk=ci&&ci.isMap,rk=ci&&ci.isRegExp,ik=ci&&ci.isSet,ok=ci&&ci.isTypedArray;function zr(j,ie,Y){switch(Y.length){case 0:return j.call(ie);case 1:return j.call(ie,Y[0]);case 2:return j.call(ie,Y[0],Y[1]);case 3:return j.call(ie,Y[0],Y[1],Y[2])}return j.apply(ie,Y)}function UU(j,ie,Y,De){for(var $e=-1,bt=j==null?0:j.length;++$e<bt;){var gn=j[$e];ie(De,gn,Y(gn),j)}return De}function fi(j,ie){for(var Y=-1,De=j==null?0:j.length;++Y<De&&ie(j[Y],Y,j)!==!1;);return j}function HU(j,ie){for(var Y=j==null?0:j.length;Y--&&ie(j[Y],Y,j)!==!1;);return j}function ak(j,ie){for(var Y=-1,De=j==null?0:j.length;++Y<De;)if(!ie(j[Y],Y,j))return!1;return!0}function xa(j,ie){for(var Y=-1,De=j==null?0:j.length,$e=0,bt=[];++Y<De;){var gn=j[Y];ie(gn,Y,j)&&(bt[$e++]=gn)}return bt}function Wm(j,ie){var Y=j==null?0:j.length;return!!Y&&Gl(j,ie,0)>-1}function nv(j,ie,Y){for(var De=-1,$e=j==null?0:j.length;++De<$e;)if(Y(ie,j[De]))return!0;return!1}function Nt(j,ie){for(var Y=-1,De=j==null?0:j.length,$e=Array(De);++Y<De;)$e[Y]=ie(j[Y],Y,j);return $e}function ba(j,ie){for(var Y=-1,De=ie.length,$e=j.length;++Y<De;)j[$e+Y]=ie[Y];return j}function rv(j,ie,Y,De){var $e=-1,bt=j==null?0:j.length;for(De&&bt&&(Y=j[++$e]);++$e<bt;)Y=ie(Y,j[$e],$e,j);return Y}function qU(j,ie,Y,De){var $e=j==null?0:j.length;for(De&&$e&&(Y=j[--$e]);$e--;)Y=ie(Y,j[$e],$e,j);return Y}function iv(j,ie){for(var Y=-1,De=j==null?0:j.length;++Y<De;)if(ie(j[Y],Y,j))return!0;return!1}var jU=ov("length");function VU(j){return j.split("")}function $U(j){return j.match(J8)||[]}function uk(j,ie,Y){var De;return Y(j,function($e,bt,gn){if(ie($e,bt,gn))return De=bt,!1}),De}function Km(j,ie,Y,De){for(var $e=j.length,bt=Y+(De?1:-1);De?bt--:++bt<$e;)if(ie(j[bt],bt,j))return bt;return-1}function Gl(j,ie,Y){return ie===ie?rH(j,ie,Y):Km(j,lk,Y)}function GU(j,ie,Y,De){for(var $e=Y-1,bt=j.length;++$e<bt;)if(De(j[$e],ie))return $e;return-1}function lk(j){return j!==j}function sk(j,ie){var Y=j==null?0:j.length;return Y?uv(j,ie)/Y:te}function ov(j){return function(ie){return ie==null?e:ie[j]}}function av(j){return function(ie){return j==null?e:j[ie]}}function ck(j,ie,Y,De,$e){return $e(j,function(bt,gn,At){Y=De?(De=!1,bt):ie(Y,bt,gn,At)}),Y}function WU(j,ie){var Y=j.length;for(j.sort(ie);Y--;)j[Y]=j[Y].value;return j}function uv(j,ie){for(var Y,De=-1,$e=j.length;++De<$e;){var bt=ie(j[De]);bt!==e&&(Y=Y===e?bt:Y+bt)}return Y}function lv(j,ie){for(var Y=-1,De=Array(j);++Y<j;)De[Y]=ie(Y);return De}function KU(j,ie){return Nt(ie,function(Y){return[Y,j[Y]]})}function fk(j){return j&&j.slice(0,dk(j)+1).replace(K1,"")}function Nr(j){return function(ie){return j(ie)}}function sv(j,ie){return Nt(ie,function(Y){return j[Y]})}function af(j,ie){return j.has(ie)}function pk(j,ie){for(var Y=-1,De=j.length;++Y<De&&Gl(ie,j[Y],0)>-1;);return Y}function mk(j,ie){for(var Y=j.length;Y--&&Gl(ie,j[Y],0)>-1;);return Y}function YU(j,ie){for(var Y=j.length,De=0;Y--;)j[Y]===ie&&++De;return De}var XU=av(FU),QU=av(_U);function ZU(j){return"\\"+LU[j]}function JU(j,ie){return j==null?e:j[ie]}function Wl(j){return BU.test(j)}function eH(j){return OU.test(j)}function tH(j){for(var ie,Y=[];!(ie=j.next()).done;)Y.push(ie.value);return Y}function cv(j){var ie=-1,Y=Array(j.size);return j.forEach(function(De,$e){Y[++ie]=[$e,De]}),Y}function hk(j,ie){return function(Y){return j(ie(Y))}}function Ea(j,ie){for(var Y=-1,De=j.length,$e=0,bt=[];++Y<De;){var gn=j[Y];(gn===ie||gn===c)&&(j[Y]=c,bt[$e++]=Y)}return bt}function Ym(j){var ie=-1,Y=Array(j.size);return j.forEach(function(De){Y[++ie]=De}),Y}function nH(j){var ie=-1,Y=Array(j.size);return j.forEach(function(De){Y[++ie]=[De,De]}),Y}function rH(j,ie,Y){for(var De=Y-1,$e=j.length;++De<$e;)if(j[De]===ie)return De;return-1}function iH(j,ie,Y){for(var De=Y+1;De--;)if(j[De]===ie)return De;return De}function Kl(j){return Wl(j)?aH(j):jU(j)}function Ui(j){return Wl(j)?uH(j):VU(j)}function dk(j){for(var ie=j.length;ie--&&Y8.test(j.charAt(ie)););return ie}var oH=av(IU);function aH(j){for(var ie=J1.lastIndex=0;J1.test(j);)++ie;return ie}function uH(j){return j.match(J1)||[]}function lH(j){return j.match(TU)||[]}var sH=function j(ie){ie=ie==null?wn:Da.defaults(wn.Object(),ie,Da.pick(wn,MU));var Y=ie.Array,De=ie.Date,$e=ie.Error,bt=ie.Function,gn=ie.Math,At=ie.Object,fv=ie.RegExp,cH=ie.String,pi=ie.TypeError,Xm=Y.prototype,fH=bt.prototype,Yl=At.prototype,Qm=ie["__core-js_shared__"],Zm=fH.toString,Dt=Yl.hasOwnProperty,pH=0,gk=function(){var u=/[^.]+$/.exec(Qm&&Qm.keys&&Qm.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Jm=Yl.toString,mH=Zm.call(At),hH=wn._,dH=fv("^"+Zm.call(Dt).replace(W1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eh=JS?ie.Buffer:e,wa=ie.Symbol,th=ie.Uint8Array,vk=eh?eh.allocUnsafe:e,nh=hk(At.getPrototypeOf,At),yk=At.create,xk=Yl.propertyIsEnumerable,rh=Xm.splice,bk=wa?wa.isConcatSpreadable:e,uf=wa?wa.iterator:e,Ru=wa?wa.toStringTag:e,ih=function(){try{var u=Pu(At,"defineProperty");return u({},"",{}),u}catch{}}(),gH=ie.clearTimeout!==wn.clearTimeout&&ie.clearTimeout,vH=De&&De.now!==wn.Date.now&&De.now,yH=ie.setTimeout!==wn.setTimeout&&ie.setTimeout,oh=gn.ceil,ah=gn.floor,pv=At.getOwnPropertySymbols,xH=eh?eh.isBuffer:e,Ek=ie.isFinite,bH=Xm.join,EH=hk(At.keys,At),vn=gn.max,Vn=gn.min,DH=De.now,wH=ie.parseInt,Dk=gn.random,CH=Xm.reverse,mv=Pu(ie,"DataView"),lf=Pu(ie,"Map"),hv=Pu(ie,"Promise"),Xl=Pu(ie,"Set"),sf=Pu(ie,"WeakMap"),cf=Pu(At,"create"),uh=sf&&new sf,Ql={},SH=zu(mv),kH=zu(lf),AH=zu(hv),TH=zu(Xl),BH=zu(sf),lh=wa?wa.prototype:e,ff=lh?lh.valueOf:e,wk=lh?lh.toString:e;function B(u){if(Xt(u)&&!Ye(u)&&!(u instanceof ct)){if(u instanceof mi)return u;if(Dt.call(u,"__wrapped__"))return CA(u)}return new mi(u)}var Zl=function(){function u(){}return function(s){if(!$t(s))return{};if(yk)return yk(s);u.prototype=s;var h=new u;return u.prototype=e,h}}();function sh(){}function mi(u,s){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=e}B.templateSettings={escape:j8,evaluate:V8,interpolate:RS,variable:"",imports:{_:B}},B.prototype=sh.prototype,B.prototype.constructor=B,mi.prototype=Zl(sh.prototype),mi.prototype.constructor=mi;function ct(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function OH(){var u=new ct(this.__wrapped__);return u.__actions__=Dr(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Dr(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Dr(this.__views__),u}function MH(){if(this.__filtered__){var u=new ct(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function RH(){var u=this.__wrapped__.value(),s=this.__dir__,h=Ye(u),v=s<0,k=h?u.length:0,O=Vq(0,k,this.__views__),F=O.start,N=O.end,$=N-F,ue=v?N:F-1,le=this.__iteratees__,ce=le.length,xe=0,Be=Vn($,this.__takeCount__);if(!h||!v&&k==$&&Be==$)return Wk(u,this.__actions__);var Ie=[];e:for(;$--&&xe<Be;){ue+=s;for(var tt=-1,Le=u[ue];++tt<ce;){var lt=le[tt],pt=lt.iteratee,qr=lt.type,ir=pt(Le);if(qr==H)Le=ir;else if(!ir){if(qr==Z)continue e;break e}}Ie[xe++]=Le}return Ie}ct.prototype=Zl(sh.prototype),ct.prototype.constructor=ct;function Fu(u){var s=-1,h=u==null?0:u.length;for(this.clear();++s<h;){var v=u[s];this.set(v[0],v[1])}}function FH(){this.__data__=cf?cf(null):{},this.size=0}function _H(u){var s=this.has(u)&&delete this.__data__[u];return this.size-=s?1:0,s}function IH(u){var s=this.__data__;if(cf){var h=s[u];return h===a?e:h}return Dt.call(s,u)?s[u]:e}function LH(u){var s=this.__data__;return cf?s[u]!==e:Dt.call(s,u)}function PH(u,s){var h=this.__data__;return this.size+=this.has(u)?0:1,h[u]=cf&&s===e?a:s,this}Fu.prototype.clear=FH,Fu.prototype.delete=_H,Fu.prototype.get=IH,Fu.prototype.has=LH,Fu.prototype.set=PH;function Bo(u){var s=-1,h=u==null?0:u.length;for(this.clear();++s<h;){var v=u[s];this.set(v[0],v[1])}}function zH(){this.__data__=[],this.size=0}function NH(u){var s=this.__data__,h=ch(s,u);if(h<0)return!1;var v=s.length-1;return h==v?s.pop():rh.call(s,h,1),--this.size,!0}function UH(u){var s=this.__data__,h=ch(s,u);return h<0?e:s[h][1]}function HH(u){return ch(this.__data__,u)>-1}function qH(u,s){var h=this.__data__,v=ch(h,u);return v<0?(++this.size,h.push([u,s])):h[v][1]=s,this}Bo.prototype.clear=zH,Bo.prototype.delete=NH,Bo.prototype.get=UH,Bo.prototype.has=HH,Bo.prototype.set=qH;function Oo(u){var s=-1,h=u==null?0:u.length;for(this.clear();++s<h;){var v=u[s];this.set(v[0],v[1])}}function jH(){this.size=0,this.__data__={hash:new Fu,map:new(lf||Bo),string:new Fu}}function VH(u){var s=Dh(this,u).delete(u);return this.size-=s?1:0,s}function $H(u){return Dh(this,u).get(u)}function GH(u){return Dh(this,u).has(u)}function WH(u,s){var h=Dh(this,u),v=h.size;return h.set(u,s),this.size+=h.size==v?0:1,this}Oo.prototype.clear=jH,Oo.prototype.delete=VH,Oo.prototype.get=$H,Oo.prototype.has=GH,Oo.prototype.set=WH;function _u(u){var s=-1,h=u==null?0:u.length;for(this.__data__=new Oo;++s<h;)this.add(u[s])}function KH(u){return this.__data__.set(u,a),this}function YH(u){return this.__data__.has(u)}_u.prototype.add=_u.prototype.push=KH,_u.prototype.has=YH;function Hi(u){var s=this.__data__=new Bo(u);this.size=s.size}function XH(){this.__data__=new Bo,this.size=0}function QH(u){var s=this.__data__,h=s.delete(u);return this.size=s.size,h}function ZH(u){return this.__data__.get(u)}function JH(u){return this.__data__.has(u)}function eq(u,s){var h=this.__data__;if(h instanceof Bo){var v=h.__data__;if(!lf||v.length<n-1)return v.push([u,s]),this.size=++h.size,this;h=this.__data__=new Oo(v)}return h.set(u,s),this.size=h.size,this}Hi.prototype.clear=XH,Hi.prototype.delete=QH,Hi.prototype.get=ZH,Hi.prototype.has=JH,Hi.prototype.set=eq;function Ck(u,s){var h=Ye(u),v=!h&&Nu(u),k=!h&&!v&&Ta(u),O=!h&&!v&&!k&&ns(u),F=h||v||k||O,N=F?lv(u.length,cH):[],$=N.length;for(var ue in u)(s||Dt.call(u,ue))&&!(F&&(ue=="length"||k&&(ue=="offset"||ue=="parent")||O&&(ue=="buffer"||ue=="byteLength"||ue=="byteOffset")||_o(ue,$)))&&N.push(ue);return N}function Sk(u){var s=u.length;return s?u[Sv(0,s-1)]:e}function tq(u,s){return wh(Dr(u),Iu(s,0,u.length))}function nq(u){return wh(Dr(u))}function dv(u,s,h){(h!==e&&!qi(u[s],h)||h===e&&!(s in u))&&Mo(u,s,h)}function pf(u,s,h){var v=u[s];(!(Dt.call(u,s)&&qi(v,h))||h===e&&!(s in u))&&Mo(u,s,h)}function ch(u,s){for(var h=u.length;h--;)if(qi(u[h][0],s))return h;return-1}function rq(u,s,h,v){return Ca(u,function(k,O,F){s(v,k,h(k),F)}),v}function kk(u,s){return u&&oo(s,Cn(s),u)}function iq(u,s){return u&&oo(s,Cr(s),u)}function Mo(u,s,h){s=="__proto__"&&ih?ih(u,s,{configurable:!0,enumerable:!0,value:h,writable:!0}):u[s]=h}function gv(u,s){for(var h=-1,v=s.length,k=Y(v),O=u==null;++h<v;)k[h]=O?e:Xv(u,s[h]);return k}function Iu(u,s,h){return u===u&&(h!==e&&(u=u<=h?u:h),s!==e&&(u=u>=s?u:s)),u}function hi(u,s,h,v,k,O){var F,N=s&f,$=s&p,ue=s&d;if(h&&(F=k?h(u,v,k,O):h(u)),F!==e)return F;if(!$t(u))return u;var le=Ye(u);if(le){if(F=Gq(u),!N)return Dr(u,F)}else{var ce=$n(u),xe=ce==He||ce==je;if(Ta(u))return Xk(u,N);if(ce==Ot||ce==D||xe&&!k){if(F=$||xe?{}:dA(u),!N)return $?Iq(u,iq(F,u)):_q(u,kk(F,u))}else{if(!Mt[ce])return k?u:{};F=Wq(u,ce,N)}}O||(O=new Hi);var Be=O.get(u);if(Be)return Be;O.set(u,F),VA(u)?u.forEach(function(Le){F.add(hi(Le,s,h,Le,u,O))}):qA(u)&&u.forEach(function(Le,lt){F.set(lt,hi(Le,s,h,lt,u,O))});var Ie=ue?$?Lv:Iv:$?Cr:Cn,tt=le?e:Ie(u);return fi(tt||u,function(Le,lt){tt&&(lt=Le,Le=u[lt]),pf(F,lt,hi(Le,s,h,lt,u,O))}),F}function oq(u){var s=Cn(u);return function(h){return Ak(h,u,s)}}function Ak(u,s,h){var v=h.length;if(u==null)return!v;for(u=At(u);v--;){var k=h[v],O=s[k],F=u[k];if(F===e&&!(k in u)||!O(F))return!1}return!0}function Tk(u,s,h){if(typeof u!="function")throw new pi(i);return xf(function(){u.apply(e,h)},s)}function mf(u,s,h,v){var k=-1,O=Wm,F=!0,N=u.length,$=[],ue=s.length;if(!N)return $;h&&(s=Nt(s,Nr(h))),v?(O=nv,F=!1):s.length>=n&&(O=af,F=!1,s=new _u(s));e:for(;++k<N;){var le=u[k],ce=h==null?le:h(le);if(le=v||le!==0?le:0,F&&ce===ce){for(var xe=ue;xe--;)if(s[xe]===ce)continue e;$.push(le)}else O(s,ce,v)||$.push(le)}return $}var Ca=tA(io),Bk=tA(yv,!0);function aq(u,s){var h=!0;return Ca(u,function(v,k,O){return h=!!s(v,k,O),h}),h}function fh(u,s,h){for(var v=-1,k=u.length;++v<k;){var O=u[v],F=s(O);if(F!=null&&(N===e?F===F&&!Hr(F):h(F,N)))var N=F,$=O}return $}function uq(u,s,h,v){var k=u.length;for(h=et(h),h<0&&(h=-h>k?0:k+h),v=v===e||v>k?k:et(v),v<0&&(v+=k),v=h>v?0:GA(v);h<v;)u[h++]=s;return u}function Ok(u,s){var h=[];return Ca(u,function(v,k,O){s(v,k,O)&&h.push(v)}),h}function Ln(u,s,h,v,k){var O=-1,F=u.length;for(h||(h=Yq),k||(k=[]);++O<F;){var N=u[O];s>0&&h(N)?s>1?Ln(N,s-1,h,v,k):ba(k,N):v||(k[k.length]=N)}return k}var vv=nA(),Mk=nA(!0);function io(u,s){return u&&vv(u,s,Cn)}function yv(u,s){return u&&Mk(u,s,Cn)}function ph(u,s){return xa(s,function(h){return Io(u[h])})}function Lu(u,s){s=ka(s,u);for(var h=0,v=s.length;u!=null&&h<v;)u=u[ao(s[h++])];return h&&h==v?u:e}function Rk(u,s,h){var v=s(u);return Ye(u)?v:ba(v,h(u))}function nr(u){return u==null?u===e?li:br:Ru&&Ru in At(u)?jq(u):nj(u)}function xv(u,s){return u>s}function lq(u,s){return u!=null&&Dt.call(u,s)}function sq(u,s){return u!=null&&s in At(u)}function cq(u,s,h){return u>=Vn(s,h)&&u<vn(s,h)}function bv(u,s,h){for(var v=h?nv:Wm,k=u[0].length,O=u.length,F=O,N=Y(O),$=1/0,ue=[];F--;){var le=u[F];F&&s&&(le=Nt(le,Nr(s))),$=Vn(le.length,$),N[F]=!h&&(s||k>=120&&le.length>=120)?new _u(F&&le):e}le=u[0];var ce=-1,xe=N[0];e:for(;++ce<k&&ue.length<$;){var Be=le[ce],Ie=s?s(Be):Be;if(Be=h||Be!==0?Be:0,!(xe?af(xe,Ie):v(ue,Ie,h))){for(F=O;--F;){var tt=N[F];if(!(tt?af(tt,Ie):v(u[F],Ie,h)))continue e}xe&&xe.push(Ie),ue.push(Be)}}return ue}function fq(u,s,h,v){return io(u,function(k,O,F){s(v,h(k),O,F)}),v}function hf(u,s,h){s=ka(s,u),u=xA(u,s);var v=u==null?u:u[ao(gi(s))];return v==null?e:zr(v,u,h)}function Fk(u){return Xt(u)&&nr(u)==D}function pq(u){return Xt(u)&&nr(u)==Fn}function mq(u){return Xt(u)&&nr(u)==_e}function df(u,s,h,v,k){return u===s?!0:u==null||s==null||!Xt(u)&&!Xt(s)?u!==u&&s!==s:hq(u,s,h,v,df,k)}function hq(u,s,h,v,k,O){var F=Ye(u),N=Ye(s),$=F?Ee:$n(u),ue=N?Ee:$n(s);$=$==D?Ot:$,ue=ue==D?Ot:ue;var le=$==Ot,ce=ue==Ot,xe=$==ue;if(xe&&Ta(u)){if(!Ta(s))return!1;F=!0,le=!1}if(xe&&!le)return O||(O=new Hi),F||ns(u)?pA(u,s,h,v,k,O):Hq(u,s,$,h,v,k,O);if(!(h&g)){var Be=le&&Dt.call(u,"__wrapped__"),Ie=ce&&Dt.call(s,"__wrapped__");if(Be||Ie){var tt=Be?u.value():u,Le=Ie?s.value():s;return O||(O=new Hi),k(tt,Le,h,v,O)}}return xe?(O||(O=new Hi),qq(u,s,h,v,k,O)):!1}function dq(u){return Xt(u)&&$n(u)==Ne}function Ev(u,s,h,v){var k=h.length,O=k,F=!v;if(u==null)return!O;for(u=At(u);k--;){var N=h[k];if(F&&N[2]?N[1]!==u[N[0]]:!(N[0]in u))return!1}for(;++k<O;){N=h[k];var $=N[0],ue=u[$],le=N[1];if(F&&N[2]){if(ue===e&&!($ in u))return!1}else{var ce=new Hi;if(v)var xe=v(ue,le,$,u,s,ce);if(!(xe===e?df(le,ue,g|m,v,ce):xe))return!1}}return!0}function _k(u){if(!$t(u)||Qq(u))return!1;var s=Io(u)?dH:oU;return s.test(zu(u))}function gq(u){return Xt(u)&&nr(u)==Rn}function vq(u){return Xt(u)&&$n(u)==ln}function yq(u){return Xt(u)&&Bh(u.length)&&!!It[nr(u)]}function Ik(u){return typeof u=="function"?u:u==null?Sr:typeof u=="object"?Ye(u)?zk(u[0],u[1]):Pk(u):r2(u)}function Dv(u){if(!yf(u))return EH(u);var s=[];for(var h in At(u))Dt.call(u,h)&&h!="constructor"&&s.push(h);return s}function xq(u){if(!$t(u))return tj(u);var s=yf(u),h=[];for(var v in u)v=="constructor"&&(s||!Dt.call(u,v))||h.push(v);return h}function wv(u,s){return u<s}function Lk(u,s){var h=-1,v=wr(u)?Y(u.length):[];return Ca(u,function(k,O,F){v[++h]=s(k,O,F)}),v}function Pk(u){var s=zv(u);return s.length==1&&s[0][2]?vA(s[0][0],s[0][1]):function(h){return h===u||Ev(h,u,s)}}function zk(u,s){return Uv(u)&&gA(s)?vA(ao(u),s):function(h){var v=Xv(h,u);return v===e&&v===s?Qv(h,u):df(s,v,g|m)}}function mh(u,s,h,v,k){u!==s&&vv(s,function(O,F){if(k||(k=new Hi),$t(O))bq(u,s,F,h,mh,v,k);else{var N=v?v(qv(u,F),O,F+"",u,s,k):e;N===e&&(N=O),dv(u,F,N)}},Cr)}function bq(u,s,h,v,k,O,F){var N=qv(u,h),$=qv(s,h),ue=F.get($);if(ue){dv(u,h,ue);return}var le=O?O(N,$,h+"",u,s,F):e,ce=le===e;if(ce){var xe=Ye($),Be=!xe&&Ta($),Ie=!xe&&!Be&&ns($);le=$,xe||Be||Ie?Ye(N)?le=N:en(N)?le=Dr(N):Be?(ce=!1,le=Xk($,!0)):Ie?(ce=!1,le=Qk($,!0)):le=[]:bf($)||Nu($)?(le=N,Nu(N)?le=WA(N):(!$t(N)||Io(N))&&(le=dA($))):ce=!1}ce&&(F.set($,le),k(le,$,v,O,F),F.delete($)),dv(u,h,le)}function Nk(u,s){var h=u.length;if(h)return s+=s<0?h:0,_o(s,h)?u[s]:e}function Uk(u,s,h){s.length?s=Nt(s,function(O){return Ye(O)?function(F){return Lu(F,O.length===1?O[0]:O)}:O}):s=[Sr];var v=-1;s=Nt(s,Nr(Fe()));var k=Lk(u,function(O,F,N){var $=Nt(s,function(ue){return ue(O)});return{criteria:$,index:++v,value:O}});return WU(k,function(O,F){return Fq(O,F,h)})}function Eq(u,s){return Hk(u,s,function(h,v){return Qv(u,v)})}function Hk(u,s,h){for(var v=-1,k=s.length,O={};++v<k;){var F=s[v],N=Lu(u,F);h(N,F)&&gf(O,ka(F,u),N)}return O}function Dq(u){return function(s){return Lu(s,u)}}function Cv(u,s,h,v){var k=v?GU:Gl,O=-1,F=s.length,N=u;for(u===s&&(s=Dr(s)),h&&(N=Nt(u,Nr(h)));++O<F;)for(var $=0,ue=s[O],le=h?h(ue):ue;($=k(N,le,$,v))>-1;)N!==u&&rh.call(N,$,1),rh.call(u,$,1);return u}function qk(u,s){for(var h=u?s.length:0,v=h-1;h--;){var k=s[h];if(h==v||k!==O){var O=k;_o(k)?rh.call(u,k,1):Tv(u,k)}}return u}function Sv(u,s){return u+ah(Dk()*(s-u+1))}function wq(u,s,h,v){for(var k=-1,O=vn(oh((s-u)/(h||1)),0),F=Y(O);O--;)F[v?O:++k]=u,u+=h;return F}function kv(u,s){var h="";if(!u||s<1||s>me)return h;do s%2&&(h+=u),s=ah(s/2),s&&(u+=u);while(s);return h}function it(u,s){return jv(yA(u,s,Sr),u+"")}function Cq(u){return Sk(rs(u))}function Sq(u,s){var h=rs(u);return wh(h,Iu(s,0,h.length))}function gf(u,s,h,v){if(!$t(u))return u;s=ka(s,u);for(var k=-1,O=s.length,F=O-1,N=u;N!=null&&++k<O;){var $=ao(s[k]),ue=h;if($==="__proto__"||$==="constructor"||$==="prototype")return u;if(k!=F){var le=N[$];ue=v?v(le,$,N):e,ue===e&&(ue=$t(le)?le:_o(s[k+1])?[]:{})}pf(N,$,ue),N=N[$]}return u}var jk=uh?function(u,s){return uh.set(u,s),u}:Sr,kq=ih?function(u,s){return ih(u,"toString",{configurable:!0,enumerable:!1,value:Jv(s),writable:!0})}:Sr;function Aq(u){return wh(rs(u))}function di(u,s,h){var v=-1,k=u.length;s<0&&(s=-s>k?0:k+s),h=h>k?k:h,h<0&&(h+=k),k=s>h?0:h-s>>>0,s>>>=0;for(var O=Y(k);++v<k;)O[v]=u[v+s];return O}function Tq(u,s){var h;return Ca(u,function(v,k,O){return h=s(v,k,O),!h}),!!h}function hh(u,s,h){var v=0,k=u==null?v:u.length;if(typeof s=="number"&&s===s&&k<=ve){for(;v<k;){var O=v+k>>>1,F=u[O];F!==null&&!Hr(F)&&(h?F<=s:F<s)?v=O+1:k=O}return k}return Av(u,s,Sr,h)}function Av(u,s,h,v){var k=0,O=u==null?0:u.length;if(O===0)return 0;s=h(s);for(var F=s!==s,N=s===null,$=Hr(s),ue=s===e;k<O;){var le=ah((k+O)/2),ce=h(u[le]),xe=ce!==e,Be=ce===null,Ie=ce===ce,tt=Hr(ce);if(F)var Le=v||Ie;else ue?Le=Ie&&(v||xe):N?Le=Ie&&xe&&(v||!Be):$?Le=Ie&&xe&&!Be&&(v||!tt):Be||tt?Le=!1:Le=v?ce<=s:ce<s;Le?k=le+1:O=le}return Vn(O,E)}function Vk(u,s){for(var h=-1,v=u.length,k=0,O=[];++h<v;){var F=u[h],N=s?s(F):F;if(!h||!qi(N,$)){var $=N;O[k++]=F===0?0:F}}return O}function $k(u){return typeof u=="number"?u:Hr(u)?te:+u}function Ur(u){if(typeof u=="string")return u;if(Ye(u))return Nt(u,Ur)+"";if(Hr(u))return wk?wk.call(u):"";var s=u+"";return s=="0"&&1/u==-G?"-0":s}function Sa(u,s,h){var v=-1,k=Wm,O=u.length,F=!0,N=[],$=N;if(h)F=!1,k=nv;else if(O>=n){var ue=s?null:Nq(u);if(ue)return Ym(ue);F=!1,k=af,$=new _u}else $=s?[]:N;e:for(;++v<O;){var le=u[v],ce=s?s(le):le;if(le=h||le!==0?le:0,F&&ce===ce){for(var xe=$.length;xe--;)if($[xe]===ce)continue e;s&&$.push(ce),N.push(le)}else k($,ce,h)||($!==N&&$.push(ce),N.push(le))}return N}function Tv(u,s){return s=ka(s,u),u=xA(u,s),u==null||delete u[ao(gi(s))]}function Gk(u,s,h,v){return gf(u,s,h(Lu(u,s)),v)}function dh(u,s,h,v){for(var k=u.length,O=v?k:-1;(v?O--:++O<k)&&s(u[O],O,u););return h?di(u,v?0:O,v?O+1:k):di(u,v?O+1:0,v?k:O)}function Wk(u,s){var h=u;return h instanceof ct&&(h=h.value()),rv(s,function(v,k){return k.func.apply(k.thisArg,ba([v],k.args))},h)}function Bv(u,s,h){var v=u.length;if(v<2)return v?Sa(u[0]):[];for(var k=-1,O=Y(v);++k<v;)for(var F=u[k],N=-1;++N<v;)N!=k&&(O[k]=mf(O[k]||F,u[N],s,h));return Sa(Ln(O,1),s,h)}function Kk(u,s,h){for(var v=-1,k=u.length,O=s.length,F={};++v<k;){var N=v<O?s[v]:e;h(F,u[v],N)}return F}function Ov(u){return en(u)?u:[]}function Mv(u){return typeof u=="function"?u:Sr}function ka(u,s){return Ye(u)?u:Uv(u,s)?[u]:wA(Et(u))}var Bq=it;function Aa(u,s,h){var v=u.length;return h=h===e?v:h,!s&&h>=v?u:di(u,s,h)}var Yk=gH||function(u){return wn.clearTimeout(u)};function Xk(u,s){if(s)return u.slice();var h=u.length,v=vk?vk(h):new u.constructor(h);return u.copy(v),v}function Rv(u){var s=new u.constructor(u.byteLength);return new th(s).set(new th(u)),s}function Oq(u,s){var h=s?Rv(u.buffer):u.buffer;return new u.constructor(h,u.byteOffset,u.byteLength)}function Mq(u){var s=new u.constructor(u.source,FS.exec(u));return s.lastIndex=u.lastIndex,s}function Rq(u){return ff?At(ff.call(u)):{}}function Qk(u,s){var h=s?Rv(u.buffer):u.buffer;return new u.constructor(h,u.byteOffset,u.length)}function Zk(u,s){if(u!==s){var h=u!==e,v=u===null,k=u===u,O=Hr(u),F=s!==e,N=s===null,$=s===s,ue=Hr(s);if(!N&&!ue&&!O&&u>s||O&&F&&$&&!N&&!ue||v&&F&&$||!h&&$||!k)return 1;if(!v&&!O&&!ue&&u<s||ue&&h&&k&&!v&&!O||N&&h&&k||!F&&k||!$)return-1}return 0}function Fq(u,s,h){for(var v=-1,k=u.criteria,O=s.criteria,F=k.length,N=h.length;++v<F;){var $=Zk(k[v],O[v]);if($){if(v>=N)return $;var ue=h[v];return $*(ue=="desc"?-1:1)}}return u.index-s.index}function Jk(u,s,h,v){for(var k=-1,O=u.length,F=h.length,N=-1,$=s.length,ue=vn(O-F,0),le=Y($+ue),ce=!v;++N<$;)le[N]=s[N];for(;++k<F;)(ce||k<O)&&(le[h[k]]=u[k]);for(;ue--;)le[N++]=u[k++];return le}function eA(u,s,h,v){for(var k=-1,O=u.length,F=-1,N=h.length,$=-1,ue=s.length,le=vn(O-N,0),ce=Y(le+ue),xe=!v;++k<le;)ce[k]=u[k];for(var Be=k;++$<ue;)ce[Be+$]=s[$];for(;++F<N;)(xe||k<O)&&(ce[Be+h[F]]=u[k++]);return ce}function Dr(u,s){var h=-1,v=u.length;for(s||(s=Y(v));++h<v;)s[h]=u[h];return s}function oo(u,s,h,v){var k=!h;h||(h={});for(var O=-1,F=s.length;++O<F;){var N=s[O],$=v?v(h[N],u[N],N,h,u):e;$===e&&($=u[N]),k?Mo(h,N,$):pf(h,N,$)}return h}function _q(u,s){return oo(u,Nv(u),s)}function Iq(u,s){return oo(u,mA(u),s)}function gh(u,s){return function(h,v){var k=Ye(h)?UU:rq,O=s?s():{};return k(h,u,Fe(v,2),O)}}function Jl(u){return it(function(s,h){var v=-1,k=h.length,O=k>1?h[k-1]:e,F=k>2?h[2]:e;for(O=u.length>3&&typeof O=="function"?(k--,O):e,F&&rr(h[0],h[1],F)&&(O=k<3?e:O,k=1),s=At(s);++v<k;){var N=h[v];N&&u(s,N,v,O)}return s})}function tA(u,s){return function(h,v){if(h==null)return h;if(!wr(h))return u(h,v);for(var k=h.length,O=s?k:-1,F=At(h);(s?O--:++O<k)&&v(F[O],O,F)!==!1;);return h}}function nA(u){return function(s,h,v){for(var k=-1,O=At(s),F=v(s),N=F.length;N--;){var $=F[u?N:++k];if(h(O[$],$,O)===!1)break}return s}}function Lq(u,s,h){var v=s&x,k=vf(u);function O(){var F=this&&this!==wn&&this instanceof O?k:u;return F.apply(v?h:this,arguments)}return O}function rA(u){return function(s){s=Et(s);var h=Wl(s)?Ui(s):e,v=h?h[0]:s.charAt(0),k=h?Aa(h,1).join(""):s.slice(1);return v[u]()+k}}function es(u){return function(s){return rv(t2(e2(s).replace(kU,"")),u,"")}}function vf(u){return function(){var s=arguments;switch(s.length){case 0:return new u;case 1:return new u(s[0]);case 2:return new u(s[0],s[1]);case 3:return new u(s[0],s[1],s[2]);case 4:return new u(s[0],s[1],s[2],s[3]);case 5:return new u(s[0],s[1],s[2],s[3],s[4]);case 6:return new u(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new u(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var h=Zl(u.prototype),v=u.apply(h,s);return $t(v)?v:h}}function Pq(u,s,h){var v=vf(u);function k(){for(var O=arguments.length,F=Y(O),N=O,$=ts(k);N--;)F[N]=arguments[N];var ue=O<3&&F[0]!==$&&F[O-1]!==$?[]:Ea(F,$);if(O-=ue.length,O<h)return lA(u,s,vh,k.placeholder,e,F,ue,e,e,h-O);var le=this&&this!==wn&&this instanceof k?v:u;return zr(le,this,F)}return k}function iA(u){return function(s,h,v){var k=At(s);if(!wr(s)){var O=Fe(h,3);s=Cn(s),h=function(N){return O(k[N],N,k)}}var F=u(s,h,v);return F>-1?k[O?s[F]:F]:e}}function oA(u){return Fo(function(s){var h=s.length,v=h,k=mi.prototype.thru;for(u&&s.reverse();v--;){var O=s[v];if(typeof O!="function")throw new pi(i);if(k&&!F&&Eh(O)=="wrapper")var F=new mi([],!0)}for(v=F?v:h;++v<h;){O=s[v];var N=Eh(O),$=N=="wrapper"?Pv(O):e;$&&Hv($[0])&&$[1]==(R|y|C|A)&&!$[4].length&&$[9]==1?F=F[Eh($[0])].apply(F,$[3]):F=O.length==1&&Hv(O)?F[N]():F.thru(O)}return function(){var ue=arguments,le=ue[0];if(F&&ue.length==1&&Ye(le))return F.plant(le).value();for(var ce=0,xe=h?s[ce].apply(this,ue):le;++ce<h;)xe=s[ce].call(this,xe);return xe}})}function vh(u,s,h,v,k,O,F,N,$,ue){var le=s&R,ce=s&x,xe=s&S,Be=s&(y|w),Ie=s&P,tt=xe?e:vf(u);function Le(){for(var lt=arguments.length,pt=Y(lt),qr=lt;qr--;)pt[qr]=arguments[qr];if(Be)var ir=ts(Le),jr=YU(pt,ir);if(v&&(pt=Jk(pt,v,k,Be)),O&&(pt=eA(pt,O,F,Be)),lt-=jr,Be&<<ue){var tn=Ea(pt,ir);return lA(u,s,vh,Le.placeholder,h,pt,tn,N,$,ue-lt)}var ji=ce?h:this,Po=xe?ji[u]:u;return lt=pt.length,N?pt=rj(pt,N):Ie&<>1&&pt.reverse(),le&&$<lt&&(pt.length=$),this&&this!==wn&&this instanceof Le&&(Po=tt||vf(Po)),Po.apply(ji,pt)}return Le}function aA(u,s){return function(h,v){return fq(h,u,s(v),{})}}function yh(u,s){return function(h,v){var k;if(h===e&&v===e)return s;if(h!==e&&(k=h),v!==e){if(k===e)return v;typeof h=="string"||typeof v=="string"?(h=Ur(h),v=Ur(v)):(h=$k(h),v=$k(v)),k=u(h,v)}return k}}function Fv(u){return Fo(function(s){return s=Nt(s,Nr(Fe())),it(function(h){var v=this;return u(s,function(k){return zr(k,v,h)})})})}function xh(u,s){s=s===e?" ":Ur(s);var h=s.length;if(h<2)return h?kv(s,u):s;var v=kv(s,oh(u/Kl(s)));return Wl(s)?Aa(Ui(v),0,u).join(""):v.slice(0,u)}function zq(u,s,h,v){var k=s&x,O=vf(u);function F(){for(var N=-1,$=arguments.length,ue=-1,le=v.length,ce=Y(le+$),xe=this&&this!==wn&&this instanceof F?O:u;++ue<le;)ce[ue]=v[ue];for(;$--;)ce[ue++]=arguments[++N];return zr(xe,k?h:this,ce)}return F}function uA(u){return function(s,h,v){return v&&typeof v!="number"&&rr(s,h,v)&&(h=v=e),s=Lo(s),h===e?(h=s,s=0):h=Lo(h),v=v===e?s<h?1:-1:Lo(v),wq(s,h,v,u)}}function bh(u){return function(s,h){return typeof s=="string"&&typeof h=="string"||(s=vi(s),h=vi(h)),u(s,h)}}function lA(u,s,h,v,k,O,F,N,$,ue){var le=s&y,ce=le?F:e,xe=le?e:F,Be=le?O:e,Ie=le?e:O;s|=le?C:M,s&=~(le?M:C),s&T||(s&=~(x|S));var tt=[u,s,k,Be,ce,Ie,xe,N,$,ue],Le=h.apply(e,tt);return Hv(u)&&bA(Le,tt),Le.placeholder=v,EA(Le,u,s)}function _v(u){var s=gn[u];return function(h,v){if(h=vi(h),v=v==null?0:Vn(et(v),292),v&&Ek(h)){var k=(Et(h)+"e").split("e"),O=s(k[0]+"e"+(+k[1]+v));return k=(Et(O)+"e").split("e"),+(k[0]+"e"+(+k[1]-v))}return s(h)}}var Nq=Xl&&1/Ym(new Xl([,-0]))[1]==G?function(u){return new Xl(u)}:ny;function sA(u){return function(s){var h=$n(s);return h==Ne?cv(s):h==ln?nH(s):KU(s,u(s))}}function Ro(u,s,h,v,k,O,F,N){var $=s&S;if(!$&&typeof u!="function")throw new pi(i);var ue=v?v.length:0;if(ue||(s&=~(C|M),v=k=e),F=F===e?F:vn(et(F),0),N=N===e?N:et(N),ue-=k?k.length:0,s&M){var le=v,ce=k;v=k=e}var xe=$?e:Pv(u),Be=[u,s,h,v,k,le,ce,O,F,N];if(xe&&ej(Be,xe),u=Be[0],s=Be[1],h=Be[2],v=Be[3],k=Be[4],N=Be[9]=Be[9]===e?$?0:u.length:vn(Be[9]-ue,0),!N&&s&(y|w)&&(s&=~(y|w)),!s||s==x)var Ie=Lq(u,s,h);else s==y||s==w?Ie=Pq(u,s,N):(s==C||s==(x|C))&&!k.length?Ie=zq(u,s,h,v):Ie=vh.apply(e,Be);var tt=xe?jk:bA;return EA(tt(Ie,Be),u,s)}function cA(u,s,h,v){return u===e||qi(u,Yl[h])&&!Dt.call(v,h)?s:u}function fA(u,s,h,v,k,O){return $t(u)&&$t(s)&&(O.set(s,u),mh(u,s,e,fA,O),O.delete(s)),u}function Uq(u){return bf(u)?e:u}function pA(u,s,h,v,k,O){var F=h&g,N=u.length,$=s.length;if(N!=$&&!(F&&$>N))return!1;var ue=O.get(u),le=O.get(s);if(ue&&le)return ue==s&&le==u;var ce=-1,xe=!0,Be=h&m?new _u:e;for(O.set(u,s),O.set(s,u);++ce<N;){var Ie=u[ce],tt=s[ce];if(v)var Le=F?v(tt,Ie,ce,s,u,O):v(Ie,tt,ce,u,s,O);if(Le!==e){if(Le)continue;xe=!1;break}if(Be){if(!iv(s,function(lt,pt){if(!af(Be,pt)&&(Ie===lt||k(Ie,lt,h,v,O)))return Be.push(pt)})){xe=!1;break}}else if(!(Ie===tt||k(Ie,tt,h,v,O))){xe=!1;break}}return O.delete(u),O.delete(s),xe}function Hq(u,s,h,v,k,O,F){switch(h){case ee:if(u.byteLength!=s.byteLength||u.byteOffset!=s.byteOffset)return!1;u=u.buffer,s=s.buffer;case Fn:return!(u.byteLength!=s.byteLength||!O(new th(u),new th(s)));case Pe:case _e:case rt:return qi(+u,+s);case Ze:return u.name==s.name&&u.message==s.message;case Rn:case tr:return u==s+"";case Ne:var N=cv;case ln:var $=v&g;if(N||(N=Ym),u.size!=s.size&&!$)return!1;var ue=F.get(u);if(ue)return ue==s;v|=m,F.set(u,s);var le=pA(N(u),N(s),v,k,O,F);return F.delete(u),le;case Pr:if(ff)return ff.call(u)==ff.call(s)}return!1}function qq(u,s,h,v,k,O){var F=h&g,N=Iv(u),$=N.length,ue=Iv(s),le=ue.length;if($!=le&&!F)return!1;for(var ce=$;ce--;){var xe=N[ce];if(!(F?xe in s:Dt.call(s,xe)))return!1}var Be=O.get(u),Ie=O.get(s);if(Be&&Ie)return Be==s&&Ie==u;var tt=!0;O.set(u,s),O.set(s,u);for(var Le=F;++ce<$;){xe=N[ce];var lt=u[xe],pt=s[xe];if(v)var qr=F?v(pt,lt,xe,s,u,O):v(lt,pt,xe,u,s,O);if(!(qr===e?lt===pt||k(lt,pt,h,v,O):qr)){tt=!1;break}Le||(Le=xe=="constructor")}if(tt&&!Le){var ir=u.constructor,jr=s.constructor;ir!=jr&&"constructor"in u&&"constructor"in s&&!(typeof ir=="function"&&ir instanceof ir&&typeof jr=="function"&&jr instanceof jr)&&(tt=!1)}return O.delete(u),O.delete(s),tt}function Fo(u){return jv(yA(u,e,AA),u+"")}function Iv(u){return Rk(u,Cn,Nv)}function Lv(u){return Rk(u,Cr,mA)}var Pv=uh?function(u){return uh.get(u)}:ny;function Eh(u){for(var s=u.name+"",h=Ql[s],v=Dt.call(Ql,s)?h.length:0;v--;){var k=h[v],O=k.func;if(O==null||O==u)return k.name}return s}function ts(u){var s=Dt.call(B,"placeholder")?B:u;return s.placeholder}function Fe(){var u=B.iteratee||ey;return u=u===ey?Ik:u,arguments.length?u(arguments[0],arguments[1]):u}function Dh(u,s){var h=u.__data__;return Xq(s)?h[typeof s=="string"?"string":"hash"]:h.map}function zv(u){for(var s=Cn(u),h=s.length;h--;){var v=s[h],k=u[v];s[h]=[v,k,gA(k)]}return s}function Pu(u,s){var h=JU(u,s);return _k(h)?h:e}function jq(u){var s=Dt.call(u,Ru),h=u[Ru];try{u[Ru]=e;var v=!0}catch{}var k=Jm.call(u);return v&&(s?u[Ru]=h:delete u[Ru]),k}var Nv=pv?function(u){return u==null?[]:(u=At(u),xa(pv(u),function(s){return xk.call(u,s)}))}:ry,mA=pv?function(u){for(var s=[];u;)ba(s,Nv(u)),u=nh(u);return s}:ry,$n=nr;(mv&&$n(new mv(new ArrayBuffer(1)))!=ee||lf&&$n(new lf)!=Ne||hv&&$n(hv.resolve())!=er||Xl&&$n(new Xl)!=ln||sf&&$n(new sf)!=si)&&($n=function(u){var s=nr(u),h=s==Ot?u.constructor:e,v=h?zu(h):"";if(v)switch(v){case SH:return ee;case kH:return Ne;case AH:return er;case TH:return ln;case BH:return si}return s});function Vq(u,s,h){for(var v=-1,k=h.length;++v<k;){var O=h[v],F=O.size;switch(O.type){case"drop":u+=F;break;case"dropRight":s-=F;break;case"take":s=Vn(s,u+F);break;case"takeRight":u=vn(u,s-F);break}}return{start:u,end:s}}function $q(u){var s=u.match(Q8);return s?s[1].split(Z8):[]}function hA(u,s,h){s=ka(s,u);for(var v=-1,k=s.length,O=!1;++v<k;){var F=ao(s[v]);if(!(O=u!=null&&h(u,F)))break;u=u[F]}return O||++v!=k?O:(k=u==null?0:u.length,!!k&&Bh(k)&&_o(F,k)&&(Ye(u)||Nu(u)))}function Gq(u){var s=u.length,h=new u.constructor(s);return s&&typeof u[0]=="string"&&Dt.call(u,"index")&&(h.index=u.index,h.input=u.input),h}function dA(u){return typeof u.constructor=="function"&&!yf(u)?Zl(nh(u)):{}}function Wq(u,s,h){var v=u.constructor;switch(s){case Fn:return Rv(u);case Pe:case _e:return new v(+u);case ee:return Oq(u,h);case z:case X:case pe:case ke:case Re:case _t:case zt:case jt:case _n:return Qk(u,h);case Ne:return new v;case rt:case tr:return new v(u);case Rn:return Mq(u);case ln:return new v;case Pr:return Rq(u)}}function Kq(u,s){var h=s.length;if(!h)return u;var v=h-1;return s[v]=(h>1?"& ":"")+s[v],s=s.join(h>2?", ":" "),u.replace(X8,`{
|
|
10
|
-
/* [wrapped with `+
|
|
11
|
-
`)}function Yq(u){return Ye(u)||Nu(u)||!!(bk&&u&&u[bk])}function _o(u,s){var h=typeof u;return s=s??me,!!s&&(h=="number"||h!="symbol"&&uU.test(u))&&u>-1&&u%1==0&&u<s}function rr(u,s,h){if(!$t(h))return!1;var v=typeof s;return(v=="number"?wr(h)&&_o(s,h.length):v=="string"&&s in h)?qi(h[s],u):!1}function Uv(u,s){if(Ye(u))return!1;var h=typeof u;return h=="number"||h=="symbol"||h=="boolean"||u==null||Hr(u)?!0:G8.test(u)||!$8.test(u)||s!=null&&u in At(s)}function Xq(u){var s=typeof u;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?u!=="__proto__":u===null}function Hv(u){var s=Eh(u),h=B[s];if(typeof h!="function"||!(s in ct.prototype))return!1;if(u===h)return!0;var v=Pv(h);return!!v&&u===v[0]}function Qq(u){return!!gk&&gk in u}var Zq=Qm?Io:iy;function yf(u){var s=u&&u.constructor,h=typeof s=="function"&&s.prototype||Yl;return u===h}function gA(u){return u===u&&!$t(u)}function vA(u,s){return function(h){return h==null?!1:h[u]===s&&(s!==e||u in At(h))}}function Jq(u){var s=Ah(u,function(v){return h.size===l&&h.clear(),v}),h=s.cache;return s}function ej(u,s){var h=u[1],v=s[1],k=h|v,O=k<(x|S|R),F=v==R&&h==y||v==R&&h==A&&u[7].length<=s[8]||v==(R|A)&&s[7].length<=s[8]&&h==y;if(!(O||F))return u;v&x&&(u[2]=s[2],k|=h&x?0:T);var N=s[3];if(N){var $=u[3];u[3]=$?Jk($,N,s[4]):N,u[4]=$?Ea(u[3],c):s[4]}return N=s[5],N&&($=u[5],u[5]=$?eA($,N,s[6]):N,u[6]=$?Ea(u[5],c):s[6]),N=s[7],N&&(u[7]=N),v&R&&(u[8]=u[8]==null?s[8]:Vn(u[8],s[8])),u[9]==null&&(u[9]=s[9]),u[0]=s[0],u[1]=k,u}function tj(u){var s=[];if(u!=null)for(var h in At(u))s.push(h);return s}function nj(u){return Jm.call(u)}function yA(u,s,h){return s=vn(s===e?u.length-1:s,0),function(){for(var v=arguments,k=-1,O=vn(v.length-s,0),F=Y(O);++k<O;)F[k]=v[s+k];k=-1;for(var N=Y(s+1);++k<s;)N[k]=v[k];return N[s]=h(F),zr(u,this,N)}}function xA(u,s){return s.length<2?u:Lu(u,di(s,0,-1))}function rj(u,s){for(var h=u.length,v=Vn(s.length,h),k=Dr(u);v--;){var O=s[v];u[v]=_o(O,h)?k[O]:e}return u}function qv(u,s){if(!(s==="constructor"&&typeof u[s]=="function")&&s!="__proto__")return u[s]}var bA=DA(jk),xf=yH||function(u,s){return wn.setTimeout(u,s)},jv=DA(kq);function EA(u,s,h){var v=s+"";return jv(u,Kq(v,ij($q(v),h)))}function DA(u){var s=0,h=0;return function(){var v=DH(),k=de-(v-h);if(h=v,k>0){if(++s>=_)return arguments[0]}else s=0;return u.apply(e,arguments)}}function wh(u,s){var h=-1,v=u.length,k=v-1;for(s=s===e?v:s;++h<s;){var O=Sv(h,k),F=u[O];u[O]=u[h],u[h]=F}return u.length=s,u}var wA=Jq(function(u){var s=[];return u.charCodeAt(0)===46&&s.push(""),u.replace(W8,function(h,v,k,O){s.push(k?O.replace(tU,"$1"):v||h)}),s});function ao(u){if(typeof u=="string"||Hr(u))return u;var s=u+"";return s=="0"&&1/u==-G?"-0":s}function zu(u){if(u!=null){try{return Zm.call(u)}catch{}try{return u+""}catch{}}return""}function ij(u,s){return fi(Se,function(h){var v="_."+h[0];s&h[1]&&!Wm(u,v)&&u.push(v)}),u.sort()}function CA(u){if(u instanceof ct)return u.clone();var s=new mi(u.__wrapped__,u.__chain__);return s.__actions__=Dr(u.__actions__),s.__index__=u.__index__,s.__values__=u.__values__,s}function oj(u,s,h){(h?rr(u,s,h):s===e)?s=1:s=vn(et(s),0);var v=u==null?0:u.length;if(!v||s<1)return[];for(var k=0,O=0,F=Y(oh(v/s));k<v;)F[O++]=di(u,k,k+=s);return F}function aj(u){for(var s=-1,h=u==null?0:u.length,v=0,k=[];++s<h;){var O=u[s];O&&(k[v++]=O)}return k}function uj(){var u=arguments.length;if(!u)return[];for(var s=Y(u-1),h=arguments[0],v=u;v--;)s[v-1]=arguments[v];return ba(Ye(h)?Dr(h):[h],Ln(s,1))}var lj=it(function(u,s){return en(u)?mf(u,Ln(s,1,en,!0)):[]}),sj=it(function(u,s){var h=gi(s);return en(h)&&(h=e),en(u)?mf(u,Ln(s,1,en,!0),Fe(h,2)):[]}),cj=it(function(u,s){var h=gi(s);return en(h)&&(h=e),en(u)?mf(u,Ln(s,1,en,!0),e,h):[]});function fj(u,s,h){var v=u==null?0:u.length;return v?(s=h||s===e?1:et(s),di(u,s<0?0:s,v)):[]}function pj(u,s,h){var v=u==null?0:u.length;return v?(s=h||s===e?1:et(s),s=v-s,di(u,0,s<0?0:s)):[]}function mj(u,s){return u&&u.length?dh(u,Fe(s,3),!0,!0):[]}function hj(u,s){return u&&u.length?dh(u,Fe(s,3),!0):[]}function dj(u,s,h,v){var k=u==null?0:u.length;return k?(h&&typeof h!="number"&&rr(u,s,h)&&(h=0,v=k),uq(u,s,h,v)):[]}function SA(u,s,h){var v=u==null?0:u.length;if(!v)return-1;var k=h==null?0:et(h);return k<0&&(k=vn(v+k,0)),Km(u,Fe(s,3),k)}function kA(u,s,h){var v=u==null?0:u.length;if(!v)return-1;var k=v-1;return h!==e&&(k=et(h),k=h<0?vn(v+k,0):Vn(k,v-1)),Km(u,Fe(s,3),k,!0)}function AA(u){var s=u==null?0:u.length;return s?Ln(u,1):[]}function gj(u){var s=u==null?0:u.length;return s?Ln(u,G):[]}function vj(u,s){var h=u==null?0:u.length;return h?(s=s===e?1:et(s),Ln(u,s)):[]}function yj(u){for(var s=-1,h=u==null?0:u.length,v={};++s<h;){var k=u[s];v[k[0]]=k[1]}return v}function TA(u){return u&&u.length?u[0]:e}function xj(u,s,h){var v=u==null?0:u.length;if(!v)return-1;var k=h==null?0:et(h);return k<0&&(k=vn(v+k,0)),Gl(u,s,k)}function bj(u){var s=u==null?0:u.length;return s?di(u,0,-1):[]}var Ej=it(function(u){var s=Nt(u,Ov);return s.length&&s[0]===u[0]?bv(s):[]}),Dj=it(function(u){var s=gi(u),h=Nt(u,Ov);return s===gi(h)?s=e:h.pop(),h.length&&h[0]===u[0]?bv(h,Fe(s,2)):[]}),wj=it(function(u){var s=gi(u),h=Nt(u,Ov);return s=typeof s=="function"?s:e,s&&h.pop(),h.length&&h[0]===u[0]?bv(h,e,s):[]});function Cj(u,s){return u==null?"":bH.call(u,s)}function gi(u){var s=u==null?0:u.length;return s?u[s-1]:e}function Sj(u,s,h){var v=u==null?0:u.length;if(!v)return-1;var k=v;return h!==e&&(k=et(h),k=k<0?vn(v+k,0):Vn(k,v-1)),s===s?iH(u,s,k):Km(u,lk,k,!0)}function kj(u,s){return u&&u.length?Nk(u,et(s)):e}var Aj=it(BA);function BA(u,s){return u&&u.length&&s&&s.length?Cv(u,s):u}function Tj(u,s,h){return u&&u.length&&s&&s.length?Cv(u,s,Fe(h,2)):u}function Bj(u,s,h){return u&&u.length&&s&&s.length?Cv(u,s,e,h):u}var Oj=Fo(function(u,s){var h=u==null?0:u.length,v=gv(u,s);return qk(u,Nt(s,function(k){return _o(k,h)?+k:k}).sort(Zk)),v});function Mj(u,s){var h=[];if(!(u&&u.length))return h;var v=-1,k=[],O=u.length;for(s=Fe(s,3);++v<O;){var F=u[v];s(F,v,u)&&(h.push(F),k.push(v))}return qk(u,k),h}function Vv(u){return u==null?u:CH.call(u)}function Rj(u,s,h){var v=u==null?0:u.length;return v?(h&&typeof h!="number"&&rr(u,s,h)?(s=0,h=v):(s=s==null?0:et(s),h=h===e?v:et(h)),di(u,s,h)):[]}function Fj(u,s){return hh(u,s)}function _j(u,s,h){return Av(u,s,Fe(h,2))}function Ij(u,s){var h=u==null?0:u.length;if(h){var v=hh(u,s);if(v<h&&qi(u[v],s))return v}return-1}function Lj(u,s){return hh(u,s,!0)}function Pj(u,s,h){return Av(u,s,Fe(h,2),!0)}function zj(u,s){var h=u==null?0:u.length;if(h){var v=hh(u,s,!0)-1;if(qi(u[v],s))return v}return-1}function Nj(u){return u&&u.length?Vk(u):[]}function Uj(u,s){return u&&u.length?Vk(u,Fe(s,2)):[]}function Hj(u){var s=u==null?0:u.length;return s?di(u,1,s):[]}function qj(u,s,h){return u&&u.length?(s=h||s===e?1:et(s),di(u,0,s<0?0:s)):[]}function jj(u,s,h){var v=u==null?0:u.length;return v?(s=h||s===e?1:et(s),s=v-s,di(u,s<0?0:s,v)):[]}function Vj(u,s){return u&&u.length?dh(u,Fe(s,3),!1,!0):[]}function $j(u,s){return u&&u.length?dh(u,Fe(s,3)):[]}var Gj=it(function(u){return Sa(Ln(u,1,en,!0))}),Wj=it(function(u){var s=gi(u);return en(s)&&(s=e),Sa(Ln(u,1,en,!0),Fe(s,2))}),Kj=it(function(u){var s=gi(u);return s=typeof s=="function"?s:e,Sa(Ln(u,1,en,!0),e,s)});function Yj(u){return u&&u.length?Sa(u):[]}function Xj(u,s){return u&&u.length?Sa(u,Fe(s,2)):[]}function Qj(u,s){return s=typeof s=="function"?s:e,u&&u.length?Sa(u,e,s):[]}function $v(u){if(!(u&&u.length))return[];var s=0;return u=xa(u,function(h){if(en(h))return s=vn(h.length,s),!0}),lv(s,function(h){return Nt(u,ov(h))})}function OA(u,s){if(!(u&&u.length))return[];var h=$v(u);return s==null?h:Nt(h,function(v){return zr(s,e,v)})}var Zj=it(function(u,s){return en(u)?mf(u,s):[]}),Jj=it(function(u){return Bv(xa(u,en))}),eV=it(function(u){var s=gi(u);return en(s)&&(s=e),Bv(xa(u,en),Fe(s,2))}),tV=it(function(u){var s=gi(u);return s=typeof s=="function"?s:e,Bv(xa(u,en),e,s)}),nV=it($v);function rV(u,s){return Kk(u||[],s||[],pf)}function iV(u,s){return Kk(u||[],s||[],gf)}var oV=it(function(u){var s=u.length,h=s>1?u[s-1]:e;return h=typeof h=="function"?(u.pop(),h):e,OA(u,h)});function MA(u){var s=B(u);return s.__chain__=!0,s}function aV(u,s){return s(u),u}function Ch(u,s){return s(u)}var uV=Fo(function(u){var s=u.length,h=s?u[0]:0,v=this.__wrapped__,k=function(O){return gv(O,u)};return s>1||this.__actions__.length||!(v instanceof ct)||!_o(h)?this.thru(k):(v=v.slice(h,+h+(s?1:0)),v.__actions__.push({func:Ch,args:[k],thisArg:e}),new mi(v,this.__chain__).thru(function(O){return s&&!O.length&&O.push(e),O}))});function lV(){return MA(this)}function sV(){return new mi(this.value(),this.__chain__)}function cV(){this.__values__===e&&(this.__values__=$A(this.value()));var u=this.__index__>=this.__values__.length,s=u?e:this.__values__[this.__index__++];return{done:u,value:s}}function fV(){return this}function pV(u){for(var s,h=this;h instanceof sh;){var v=CA(h);v.__index__=0,v.__values__=e,s?k.__wrapped__=v:s=v;var k=v;h=h.__wrapped__}return k.__wrapped__=u,s}function mV(){var u=this.__wrapped__;if(u instanceof ct){var s=u;return this.__actions__.length&&(s=new ct(this)),s=s.reverse(),s.__actions__.push({func:Ch,args:[Vv],thisArg:e}),new mi(s,this.__chain__)}return this.thru(Vv)}function hV(){return Wk(this.__wrapped__,this.__actions__)}var dV=gh(function(u,s,h){Dt.call(u,h)?++u[h]:Mo(u,h,1)});function gV(u,s,h){var v=Ye(u)?ak:aq;return h&&rr(u,s,h)&&(s=e),v(u,Fe(s,3))}function vV(u,s){var h=Ye(u)?xa:Ok;return h(u,Fe(s,3))}var yV=iA(SA),xV=iA(kA);function bV(u,s){return Ln(Sh(u,s),1)}function EV(u,s){return Ln(Sh(u,s),G)}function DV(u,s,h){return h=h===e?1:et(h),Ln(Sh(u,s),h)}function RA(u,s){var h=Ye(u)?fi:Ca;return h(u,Fe(s,3))}function FA(u,s){var h=Ye(u)?HU:Bk;return h(u,Fe(s,3))}var wV=gh(function(u,s,h){Dt.call(u,h)?u[h].push(s):Mo(u,h,[s])});function CV(u,s,h,v){u=wr(u)?u:rs(u),h=h&&!v?et(h):0;var k=u.length;return h<0&&(h=vn(k+h,0)),Oh(u)?h<=k&&u.indexOf(s,h)>-1:!!k&&Gl(u,s,h)>-1}var SV=it(function(u,s,h){var v=-1,k=typeof s=="function",O=wr(u)?Y(u.length):[];return Ca(u,function(F){O[++v]=k?zr(s,F,h):hf(F,s,h)}),O}),kV=gh(function(u,s,h){Mo(u,h,s)});function Sh(u,s){var h=Ye(u)?Nt:Lk;return h(u,Fe(s,3))}function AV(u,s,h,v){return u==null?[]:(Ye(s)||(s=s==null?[]:[s]),h=v?e:h,Ye(h)||(h=h==null?[]:[h]),Uk(u,s,h))}var TV=gh(function(u,s,h){u[h?0:1].push(s)},function(){return[[],[]]});function BV(u,s,h){var v=Ye(u)?rv:ck,k=arguments.length<3;return v(u,Fe(s,4),h,k,Ca)}function OV(u,s,h){var v=Ye(u)?qU:ck,k=arguments.length<3;return v(u,Fe(s,4),h,k,Bk)}function MV(u,s){var h=Ye(u)?xa:Ok;return h(u,Th(Fe(s,3)))}function RV(u){var s=Ye(u)?Sk:Cq;return s(u)}function FV(u,s,h){(h?rr(u,s,h):s===e)?s=1:s=et(s);var v=Ye(u)?tq:Sq;return v(u,s)}function _V(u){var s=Ye(u)?nq:Aq;return s(u)}function IV(u){if(u==null)return 0;if(wr(u))return Oh(u)?Kl(u):u.length;var s=$n(u);return s==Ne||s==ln?u.size:Dv(u).length}function LV(u,s,h){var v=Ye(u)?iv:Tq;return h&&rr(u,s,h)&&(s=e),v(u,Fe(s,3))}var PV=it(function(u,s){if(u==null)return[];var h=s.length;return h>1&&rr(u,s[0],s[1])?s=[]:h>2&&rr(s[0],s[1],s[2])&&(s=[s[0]]),Uk(u,Ln(s,1),[])}),kh=vH||function(){return wn.Date.now()};function zV(u,s){if(typeof s!="function")throw new pi(i);return u=et(u),function(){if(--u<1)return s.apply(this,arguments)}}function _A(u,s,h){return s=h?e:s,s=u&&s==null?u.length:s,Ro(u,R,e,e,e,e,s)}function IA(u,s){var h;if(typeof s!="function")throw new pi(i);return u=et(u),function(){return--u>0&&(h=s.apply(this,arguments)),u<=1&&(s=e),h}}var Gv=it(function(u,s,h){var v=x;if(h.length){var k=Ea(h,ts(Gv));v|=C}return Ro(u,v,s,h,k)}),LA=it(function(u,s,h){var v=x|S;if(h.length){var k=Ea(h,ts(LA));v|=C}return Ro(s,v,u,h,k)});function PA(u,s,h){s=h?e:s;var v=Ro(u,y,e,e,e,e,e,s);return v.placeholder=PA.placeholder,v}function zA(u,s,h){s=h?e:s;var v=Ro(u,w,e,e,e,e,e,s);return v.placeholder=zA.placeholder,v}function NA(u,s,h){var v,k,O,F,N,$,ue=0,le=!1,ce=!1,xe=!0;if(typeof u!="function")throw new pi(i);s=vi(s)||0,$t(h)&&(le=!!h.leading,ce="maxWait"in h,O=ce?vn(vi(h.maxWait)||0,s):O,xe="trailing"in h?!!h.trailing:xe);function Be(tn){var ji=v,Po=k;return v=k=e,ue=tn,F=u.apply(Po,ji),F}function Ie(tn){return ue=tn,N=xf(lt,s),le?Be(tn):F}function tt(tn){var ji=tn-$,Po=tn-ue,i2=s-ji;return ce?Vn(i2,O-Po):i2}function Le(tn){var ji=tn-$,Po=tn-ue;return $===e||ji>=s||ji<0||ce&&Po>=O}function lt(){var tn=kh();if(Le(tn))return pt(tn);N=xf(lt,tt(tn))}function pt(tn){return N=e,xe&&v?Be(tn):(v=k=e,F)}function qr(){N!==e&&Yk(N),ue=0,v=$=k=N=e}function ir(){return N===e?F:pt(kh())}function jr(){var tn=kh(),ji=Le(tn);if(v=arguments,k=this,$=tn,ji){if(N===e)return Ie($);if(ce)return Yk(N),N=xf(lt,s),Be($)}return N===e&&(N=xf(lt,s)),F}return jr.cancel=qr,jr.flush=ir,jr}var NV=it(function(u,s){return Tk(u,1,s)}),UV=it(function(u,s,h){return Tk(u,vi(s)||0,h)});function HV(u){return Ro(u,P)}function Ah(u,s){if(typeof u!="function"||s!=null&&typeof s!="function")throw new pi(i);var h=function(){var v=arguments,k=s?s.apply(this,v):v[0],O=h.cache;if(O.has(k))return O.get(k);var F=u.apply(this,v);return h.cache=O.set(k,F)||O,F};return h.cache=new(Ah.Cache||Oo),h}Ah.Cache=Oo;function Th(u){if(typeof u!="function")throw new pi(i);return function(){var s=arguments;switch(s.length){case 0:return!u.call(this);case 1:return!u.call(this,s[0]);case 2:return!u.call(this,s[0],s[1]);case 3:return!u.call(this,s[0],s[1],s[2])}return!u.apply(this,s)}}function qV(u){return IA(2,u)}var jV=Bq(function(u,s){s=s.length==1&&Ye(s[0])?Nt(s[0],Nr(Fe())):Nt(Ln(s,1),Nr(Fe()));var h=s.length;return it(function(v){for(var k=-1,O=Vn(v.length,h);++k<O;)v[k]=s[k].call(this,v[k]);return zr(u,this,v)})}),Wv=it(function(u,s){var h=Ea(s,ts(Wv));return Ro(u,C,e,s,h)}),UA=it(function(u,s){var h=Ea(s,ts(UA));return Ro(u,M,e,s,h)}),VV=Fo(function(u,s){return Ro(u,A,e,e,e,s)});function $V(u,s){if(typeof u!="function")throw new pi(i);return s=s===e?s:et(s),it(u,s)}function GV(u,s){if(typeof u!="function")throw new pi(i);return s=s==null?0:vn(et(s),0),it(function(h){var v=h[s],k=Aa(h,0,s);return v&&ba(k,v),zr(u,this,k)})}function WV(u,s,h){var v=!0,k=!0;if(typeof u!="function")throw new pi(i);return $t(h)&&(v="leading"in h?!!h.leading:v,k="trailing"in h?!!h.trailing:k),NA(u,s,{leading:v,maxWait:s,trailing:k})}function KV(u){return _A(u,1)}function YV(u,s){return Wv(Mv(s),u)}function XV(){if(!arguments.length)return[];var u=arguments[0];return Ye(u)?u:[u]}function QV(u){return hi(u,d)}function ZV(u,s){return s=typeof s=="function"?s:e,hi(u,d,s)}function JV(u){return hi(u,f|d)}function e$(u,s){return s=typeof s=="function"?s:e,hi(u,f|d,s)}function t$(u,s){return s==null||Ak(u,s,Cn(s))}function qi(u,s){return u===s||u!==u&&s!==s}var n$=bh(xv),r$=bh(function(u,s){return u>=s}),Nu=Fk(function(){return arguments}())?Fk:function(u){return Xt(u)&&Dt.call(u,"callee")&&!xk.call(u,"callee")},Ye=Y.isArray,i$=ek?Nr(ek):pq;function wr(u){return u!=null&&Bh(u.length)&&!Io(u)}function en(u){return Xt(u)&&wr(u)}function o$(u){return u===!0||u===!1||Xt(u)&&nr(u)==Pe}var Ta=xH||iy,a$=tk?Nr(tk):mq;function u$(u){return Xt(u)&&u.nodeType===1&&!bf(u)}function l$(u){if(u==null)return!0;if(wr(u)&&(Ye(u)||typeof u=="string"||typeof u.splice=="function"||Ta(u)||ns(u)||Nu(u)))return!u.length;var s=$n(u);if(s==Ne||s==ln)return!u.size;if(yf(u))return!Dv(u).length;for(var h in u)if(Dt.call(u,h))return!1;return!0}function s$(u,s){return df(u,s)}function c$(u,s,h){h=typeof h=="function"?h:e;var v=h?h(u,s):e;return v===e?df(u,s,e,h):!!v}function Kv(u){if(!Xt(u))return!1;var s=nr(u);return s==Ze||s==Te||typeof u.message=="string"&&typeof u.name=="string"&&!bf(u)}function f$(u){return typeof u=="number"&&Ek(u)}function Io(u){if(!$t(u))return!1;var s=nr(u);return s==He||s==je||s==ze||s==Lr}function HA(u){return typeof u=="number"&&u==et(u)}function Bh(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=me}function $t(u){var s=typeof u;return u!=null&&(s=="object"||s=="function")}function Xt(u){return u!=null&&typeof u=="object"}var qA=nk?Nr(nk):dq;function p$(u,s){return u===s||Ev(u,s,zv(s))}function m$(u,s,h){return h=typeof h=="function"?h:e,Ev(u,s,zv(s),h)}function h$(u){return jA(u)&&u!=+u}function d$(u){if(Zq(u))throw new $e(r);return _k(u)}function g$(u){return u===null}function v$(u){return u==null}function jA(u){return typeof u=="number"||Xt(u)&&nr(u)==rt}function bf(u){if(!Xt(u)||nr(u)!=Ot)return!1;var s=nh(u);if(s===null)return!0;var h=Dt.call(s,"constructor")&&s.constructor;return typeof h=="function"&&h instanceof h&&Zm.call(h)==mH}var Yv=rk?Nr(rk):gq;function y$(u){return HA(u)&&u>=-me&&u<=me}var VA=ik?Nr(ik):vq;function Oh(u){return typeof u=="string"||!Ye(u)&&Xt(u)&&nr(u)==tr}function Hr(u){return typeof u=="symbol"||Xt(u)&&nr(u)==Pr}var ns=ok?Nr(ok):yq;function x$(u){return u===e}function b$(u){return Xt(u)&&$n(u)==si}function E$(u){return Xt(u)&&nr(u)==ya}var D$=bh(wv),w$=bh(function(u,s){return u<=s});function $A(u){if(!u)return[];if(wr(u))return Oh(u)?Ui(u):Dr(u);if(uf&&u[uf])return tH(u[uf]());var s=$n(u),h=s==Ne?cv:s==ln?Ym:rs;return h(u)}function Lo(u){if(!u)return u===0?u:0;if(u=vi(u),u===G||u===-G){var s=u<0?-1:1;return s*U}return u===u?u:0}function et(u){var s=Lo(u),h=s%1;return s===s?h?s-h:s:0}function GA(u){return u?Iu(et(u),0,Q):0}function vi(u){if(typeof u=="number")return u;if(Hr(u))return te;if($t(u)){var s=typeof u.valueOf=="function"?u.valueOf():u;u=$t(s)?s+"":s}if(typeof u!="string")return u===0?u:+u;u=fk(u);var h=iU.test(u);return h||aU.test(u)?zU(u.slice(2),h?2:8):rU.test(u)?te:+u}function WA(u){return oo(u,Cr(u))}function C$(u){return u?Iu(et(u),-me,me):u===0?u:0}function Et(u){return u==null?"":Ur(u)}var S$=Jl(function(u,s){if(yf(s)||wr(s)){oo(s,Cn(s),u);return}for(var h in s)Dt.call(s,h)&&pf(u,h,s[h])}),KA=Jl(function(u,s){oo(s,Cr(s),u)}),Mh=Jl(function(u,s,h,v){oo(s,Cr(s),u,v)}),k$=Jl(function(u,s,h,v){oo(s,Cn(s),u,v)}),A$=Fo(gv);function T$(u,s){var h=Zl(u);return s==null?h:kk(h,s)}var B$=it(function(u,s){u=At(u);var h=-1,v=s.length,k=v>2?s[2]:e;for(k&&rr(s[0],s[1],k)&&(v=1);++h<v;)for(var O=s[h],F=Cr(O),N=-1,$=F.length;++N<$;){var ue=F[N],le=u[ue];(le===e||qi(le,Yl[ue])&&!Dt.call(u,ue))&&(u[ue]=O[ue])}return u}),O$=it(function(u){return u.push(e,fA),zr(YA,e,u)});function M$(u,s){return uk(u,Fe(s,3),io)}function R$(u,s){return uk(u,Fe(s,3),yv)}function F$(u,s){return u==null?u:vv(u,Fe(s,3),Cr)}function _$(u,s){return u==null?u:Mk(u,Fe(s,3),Cr)}function I$(u,s){return u&&io(u,Fe(s,3))}function L$(u,s){return u&&yv(u,Fe(s,3))}function P$(u){return u==null?[]:ph(u,Cn(u))}function z$(u){return u==null?[]:ph(u,Cr(u))}function Xv(u,s,h){var v=u==null?e:Lu(u,s);return v===e?h:v}function N$(u,s){return u!=null&&hA(u,s,lq)}function Qv(u,s){return u!=null&&hA(u,s,sq)}var U$=aA(function(u,s,h){s!=null&&typeof s.toString!="function"&&(s=Jm.call(s)),u[s]=h},Jv(Sr)),H$=aA(function(u,s,h){s!=null&&typeof s.toString!="function"&&(s=Jm.call(s)),Dt.call(u,s)?u[s].push(h):u[s]=[h]},Fe),q$=it(hf);function Cn(u){return wr(u)?Ck(u):Dv(u)}function Cr(u){return wr(u)?Ck(u,!0):xq(u)}function j$(u,s){var h={};return s=Fe(s,3),io(u,function(v,k,O){Mo(h,s(v,k,O),v)}),h}function V$(u,s){var h={};return s=Fe(s,3),io(u,function(v,k,O){Mo(h,k,s(v,k,O))}),h}var $$=Jl(function(u,s,h){mh(u,s,h)}),YA=Jl(function(u,s,h,v){mh(u,s,h,v)}),G$=Fo(function(u,s){var h={};if(u==null)return h;var v=!1;s=Nt(s,function(O){return O=ka(O,u),v||(v=O.length>1),O}),oo(u,Lv(u),h),v&&(h=hi(h,f|p|d,Uq));for(var k=s.length;k--;)Tv(h,s[k]);return h});function W$(u,s){return XA(u,Th(Fe(s)))}var K$=Fo(function(u,s){return u==null?{}:Eq(u,s)});function XA(u,s){if(u==null)return{};var h=Nt(Lv(u),function(v){return[v]});return s=Fe(s),Hk(u,h,function(v,k){return s(v,k[0])})}function Y$(u,s,h){s=ka(s,u);var v=-1,k=s.length;for(k||(k=1,u=e);++v<k;){var O=u==null?e:u[ao(s[v])];O===e&&(v=k,O=h),u=Io(O)?O.call(u):O}return u}function X$(u,s,h){return u==null?u:gf(u,s,h)}function Q$(u,s,h,v){return v=typeof v=="function"?v:e,u==null?u:gf(u,s,h,v)}var QA=sA(Cn),ZA=sA(Cr);function Z$(u,s,h){var v=Ye(u),k=v||Ta(u)||ns(u);if(s=Fe(s,4),h==null){var O=u&&u.constructor;k?h=v?new O:[]:$t(u)?h=Io(O)?Zl(nh(u)):{}:h={}}return(k?fi:io)(u,function(F,N,$){return s(h,F,N,$)}),h}function J$(u,s){return u==null?!0:Tv(u,s)}function eG(u,s,h){return u==null?u:Gk(u,s,Mv(h))}function tG(u,s,h,v){return v=typeof v=="function"?v:e,u==null?u:Gk(u,s,Mv(h),v)}function rs(u){return u==null?[]:sv(u,Cn(u))}function nG(u){return u==null?[]:sv(u,Cr(u))}function rG(u,s,h){return h===e&&(h=s,s=e),h!==e&&(h=vi(h),h=h===h?h:0),s!==e&&(s=vi(s),s=s===s?s:0),Iu(vi(u),s,h)}function iG(u,s,h){return s=Lo(s),h===e?(h=s,s=0):h=Lo(h),u=vi(u),cq(u,s,h)}function oG(u,s,h){if(h&&typeof h!="boolean"&&rr(u,s,h)&&(s=h=e),h===e&&(typeof s=="boolean"?(h=s,s=e):typeof u=="boolean"&&(h=u,u=e)),u===e&&s===e?(u=0,s=1):(u=Lo(u),s===e?(s=u,u=0):s=Lo(s)),u>s){var v=u;u=s,s=v}if(h||u%1||s%1){var k=Dk();return Vn(u+k*(s-u+PU("1e-"+((k+"").length-1))),s)}return Sv(u,s)}var aG=es(function(u,s,h){return s=s.toLowerCase(),u+(h?JA(s):s)});function JA(u){return Zv(Et(u).toLowerCase())}function e2(u){return u=Et(u),u&&u.replace(lU,XU).replace(AU,"")}function uG(u,s,h){u=Et(u),s=Ur(s);var v=u.length;h=h===e?v:Iu(et(h),0,v);var k=h;return h-=s.length,h>=0&&u.slice(h,k)==s}function lG(u){return u=Et(u),u&&q8.test(u)?u.replace(jm,QU):u}function sG(u){return u=Et(u),u&&K8.test(u)?u.replace(W1,"\\$&"):u}var cG=es(function(u,s,h){return u+(h?"-":"")+s.toLowerCase()}),fG=es(function(u,s,h){return u+(h?" ":"")+s.toLowerCase()}),pG=rA("toLowerCase");function mG(u,s,h){u=Et(u),s=et(s);var v=s?Kl(u):0;if(!s||v>=s)return u;var k=(s-v)/2;return xh(ah(k),h)+u+xh(oh(k),h)}function hG(u,s,h){u=Et(u),s=et(s);var v=s?Kl(u):0;return s&&v<s?u+xh(s-v,h):u}function dG(u,s,h){u=Et(u),s=et(s);var v=s?Kl(u):0;return s&&v<s?xh(s-v,h)+u:u}function gG(u,s,h){return h||s==null?s=0:s&&(s=+s),wH(Et(u).replace(K1,""),s||0)}function vG(u,s,h){return(h?rr(u,s,h):s===e)?s=1:s=et(s),kv(Et(u),s)}function yG(){var u=arguments,s=Et(u[0]);return u.length<3?s:s.replace(u[1],u[2])}var xG=es(function(u,s,h){return u+(h?"_":"")+s.toLowerCase()});function bG(u,s,h){return h&&typeof h!="number"&&rr(u,s,h)&&(s=h=e),h=h===e?Q:h>>>0,h?(u=Et(u),u&&(typeof s=="string"||s!=null&&!Yv(s))&&(s=Ur(s),!s&&Wl(u))?Aa(Ui(u),0,h):u.split(s,h)):[]}var EG=es(function(u,s,h){return u+(h?" ":"")+Zv(s)});function DG(u,s,h){return u=Et(u),h=h==null?0:Iu(et(h),0,u.length),s=Ur(s),u.slice(h,h+s.length)==s}function wG(u,s,h){var v=B.templateSettings;h&&rr(u,s,h)&&(s=e),u=Et(u),s=Mh({},s,v,cA);var k=Mh({},s.imports,v.imports,cA),O=Cn(k),F=sv(k,O),N,$,ue=0,le=s.interpolate||Vm,ce="__p += '",xe=fv((s.escape||Vm).source+"|"+le.source+"|"+(le===RS?nU:Vm).source+"|"+(s.evaluate||Vm).source+"|$","g"),Be="//# sourceURL="+(Dt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++RU+"]")+`
|
|
12
|
-
`;
|
|
13
|
-
__e(`+
|
|
14
|
-
'`),
|
|
15
|
-
`+
|
|
16
|
-
__p += '`),
|
|
17
|
-
((__t = (`+
|
|
18
|
-
'`),
|
|
19
|
-
`;var
|
|
20
|
-
`+
|
|
8
|
+
`+n.stack}}function ls(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 zS(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 h2(e){if(ls(e)!==e)throw Error(ie(188))}function $j(e){var t=e.alternate;if(!t){if(t=ls(e),t===null)throw Error(ie(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return h2(i),e;if(a===r)return h2(i),t;a=a.sibling}throw Error(ie(188))}if(n.return!==r.return)n=i,r=a;else{for(var u=!1,s=i.child;s;){if(s===n){u=!0,n=i,r=a;break}if(s===r){u=!0,r=i,n=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===n){u=!0,n=a,r=i;break}if(s===r){u=!0,r=a,n=i;break}s=s.sibling}if(!u)throw Error(ie(189))}}if(n.alternate!==r)throw Error(ie(190))}if(n.tag!==3)throw Error(ie(188));return n.stateNode.current===n?e:t}function LS(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=LS(e),t!==null)return t;e=e.sibling}return null}var Qc=Array.isArray,Tt=Nj.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xu={pending:!1,data:null,method:null,action:null},B1=[],zl=-1;function Ki(e){return{current:e}}function pn(e){0>zl||(e.current=B1[zl],B1[zl]=null,zl--)}function Ot(e,t){zl++,B1[zl]=e.current,e.current=t}var Vi=Ki(null),hf=Ki(null),Eo=Ki(null),bd=Ki(null);function xd(e,t){switch(Ot(Eo,t),Ot(hf,e),Ot(Vi,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?vS(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=vS(e),t=Kk(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}pn(Vi),Ot(Vi,t)}function Jl(){pn(Vi),pn(hf),pn(Eo)}function O1(e){e.memoizedState!==null&&Ot(bd,e);var t=Vi.current,n=Kk(t,e.type);t!==n&&(Ot(hf,e),Ot(Vi,n))}function Dd(e){hf.current===e&&(pn(Vi),pn(hf)),bd.current===e&&(pn(bd),Sf._currentValue=xu)}var M1=Object.prototype.hasOwnProperty,by=an.unstable_scheduleCallback,Xv=an.unstable_cancelCallback,Gj=an.unstable_shouldYield,Wj=an.unstable_requestPaint,$i=an.unstable_now,Kj=an.unstable_getCurrentPriorityLevel,PS=an.unstable_ImmediatePriority,IS=an.unstable_UserBlockingPriority,Cd=an.unstable_NormalPriority,Yj=an.unstable_LowPriority,NS=an.unstable_IdlePriority,Qj=an.log,Xj=an.unstable_setDisableYieldValue,Of=null,Ar=null;function Zj(e){if(Ar&&typeof Ar.onCommitFiberRoot=="function")try{Ar.onCommitFiberRoot(Of,e,void 0,(e.current.flags&128)===128)}catch{}}function vo(e){if(typeof Qj=="function"&&Xj(e),Ar&&typeof Ar.setStrictMode=="function")try{Ar.setStrictMode(Of,e)}catch{}}var Sr=Math.clz32?Math.clz32:tV,Jj=Math.log,eV=Math.LN2;function tV(e){return e>>>=0,e===0?32:31-(Jj(e)/eV|0)|0}var $p=128,Gp=4194304;function gu(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:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;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 Kd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,u=e.warmLanes;e=e.finishedLanes!==0;var s=n&134217727;return s!==0?(n=s&~i,n!==0?r=gu(n):(a&=s,a!==0?r=gu(a):e||(u=s&~u,u!==0&&(r=gu(u))))):(s=n&~i,s!==0?r=gu(s):a!==0?r=gu(a):e||(u=n&~u,u!==0&&(r=gu(u)))),r===0?0:t!==0&&t!==r&&!(t&i)&&(i=r&-r,u=t&-t,i>=u||i===32&&(u&4194176)!==0)?t:r}function Mf(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nV(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 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 US(){var e=$p;return $p<<=1,!($p&4194176)&&($p=128),e}function HS(){var e=Gp;return Gp<<=1,!(Gp&62914560)&&(Gp=4194304),e}function Zv(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rf(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rV(e,t,n,r,i,a){var u=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,f=e.hiddenUpdates;for(n=u&~n;0<n;){var p=31-Sr(n),h=1<<p;s[p]=0,c[p]=-1;var g=f[p];if(g!==null)for(f[p]=null,p=0;p<g.length;p++){var d=g[p];d!==null&&(d.lane&=-536870913)}n&=~h}r!==0&&qS(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(u&~t))}function qS(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Sr(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&4194218}function jS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Sr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function VS(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function $S(){var e=Tt.p;return e!==0?e:(e=window.event,e===void 0?32:iB(e.type))}function iV(e,t){var n=Tt.p;try{return Tt.p=e,t()}finally{Tt.p=n}}var Mo=Math.random().toString(36).slice(2),Mn="__reactFiber$"+Mo,lr="__reactProps$"+Mo,ss="__reactContainer$"+Mo,R1="__reactEvents$"+Mo,aV="__reactListeners$"+Mo,oV="__reactHandles$"+Mo,g2="__reactResources$"+Mo,gf="__reactMarker$"+Mo;function xy(e){delete e[Mn],delete e[lr],delete e[R1],delete e[aV],delete e[oV]}function Eu(e){var t=e[Mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ss]||n[Mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ES(e);e!==null;){if(n=e[Mn])return n;e=ES(e)}return t}e=n,n=e.parentNode}return null}function cs(e){if(e=e[Mn]||e[ss]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Xc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(ie(33))}function $l(e){var t=e[g2];return t||(t=e[g2]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function fn(e){e[gf]=!0}var GS=new Set,WS={};function Ru(e,t){es(e,t),es(e+"Capture",t)}function es(e,t){for(WS[e]=t,e=0;e<t.length;e++)GS.add(t[e])}var Ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uV=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]*$"),v2={},y2={};function lV(e){return M1.call(y2,e)?!0:M1.call(v2,e)?!1:uV.test(e)?y2[e]=!0:(v2[e]=!0,!1)}function ld(e,t,n){if(lV(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 Wp(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 ya(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 ei(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function KS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sV(e){var t=KS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(u){r=""+u,a.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wd(e){e._valueTracker||(e._valueTracker=sV(e))}function YS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=KS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ad(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var cV=/[\n"\\]/g;function ri(e){return e.replace(cV,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function F1(e,t,n,r,i,a,u,s){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ei(t)):e.value!==""+ei(t)&&(e.value=""+ei(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?_1(e,u,ei(t)):n!=null?_1(e,u,ei(n)):r!=null&&e.removeAttribute("value"),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=""+ei(s):e.removeAttribute("name")}function QS(e,t,n,r,i,a,u,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))return;n=n!=null?""+ei(n):"",t=t!=null?""+ei(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u)}function _1(e,t,n){t==="number"&&Ad(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Gl(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=""+ei(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 XS(e,t,n){if(t!=null&&(t=""+ei(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ei(n):""}function ZS(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(ie(92));if(Qc(r)){if(1<r.length)throw Error(ie(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=ei(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r)}function ts(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fV=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 E2(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||fV.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function JS(e,t,n){if(t!=null&&typeof t!="object")throw Error(ie(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&&E2(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&E2(e,a,t[a])}function Dy(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 mV=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"]]),pV=/^[\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 sd(e){return pV.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var z1=null;function Cy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ll=null,Wl=null;function b2(e){var t=cs(e);if(t&&(e=t.stateNode)){var n=e[lr]||null;e:switch(e=t.stateNode,t.type){case"input":if(F1(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="'+ri(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[lr]||null;if(!i)throw Error(ie(90));F1(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&&YS(r)}break e;case"textarea":XS(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Gl(e,!!n.multiple,t,!1)}}}var Jv=!1;function eT(e,t,n){if(Jv)return e(t,n);Jv=!0;try{var r=e(t);return r}finally{if(Jv=!1,(Ll!==null||Wl!==null)&&(ih(),Ll&&(t=Ll,e=Wl,Wl=Ll=null,b2(t),e)))for(t=0;t<e.length;t++)b2(e[t])}}function vf(e,t){var n=e.stateNode;if(n===null)return null;var r=n[lr]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ie(231,t,typeof n));return n}var L1=!1;if(Ma)try{kl={},Object.defineProperty(kl,"passive",{get:function(){L1=!0}}),window.addEventListener("test",kl,kl),window.removeEventListener("test",kl,kl)}catch{L1=!1}var kl,yo=null,wy=null,cd=null;function tT(){if(cd)return cd;var e,t=wy,n=t.length,r,i="value"in yo?yo.value:yo.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===i[a-r];r++);return cd=i.slice(e,1<r?1-r:void 0)}function fd(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 Kp(){return!0}function x2(){return!1}function sr(e){function t(n,r,i,a,u){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=u,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Kp:x2,this.isPropagationStopped=x2,this}return kt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Kp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Kp)},persist:function(){},isPersistent:Kp}),t}var Fu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yd=sr(Fu),Ff=kt({},Fu,{view:0,detail:0}),dV=sr(Ff),e1,t1,Hc,Qd=kt({},Ff,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ay,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!==Hc&&(Hc&&e.type==="mousemove"?(e1=e.screenX-Hc.screenX,t1=e.screenY-Hc.screenY):t1=e1=0,Hc=e),e1)},movementY:function(e){return"movementY"in e?e.movementY:t1}}),D2=sr(Qd),hV=kt({},Qd,{dataTransfer:0}),gV=sr(hV),vV=kt({},Ff,{relatedTarget:0}),n1=sr(vV),yV=kt({},Fu,{animationName:0,elapsedTime:0,pseudoElement:0}),EV=sr(yV),bV=kt({},Fu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xV=sr(bV),DV=kt({},Fu,{data:0}),C2=sr(DV),CV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wV={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"},AV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=AV[e])?!!t[e]:!1}function Ay(){return SV}var TV=kt({},Ff,{key:function(e){if(e.key){var t=CV[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wV[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ay,charCode:function(e){return e.type==="keypress"?fd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kV=sr(TV),BV=kt({},Qd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),w2=sr(BV),OV=kt({},Ff,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ay}),MV=sr(OV),RV=kt({},Fu,{propertyName:0,elapsedTime:0,pseudoElement:0}),FV=sr(RV),_V=kt({},Qd,{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}),zV=sr(_V),LV=kt({},Fu,{newState:0,oldState:0}),PV=sr(LV),IV=[9,13,27,32],Sy=Ma&&"CompositionEvent"in window,Jc=null;Ma&&"documentMode"in document&&(Jc=document.documentMode);var NV=Ma&&"TextEvent"in window&&!Jc,nT=Ma&&(!Sy||Jc&&8<Jc&&11>=Jc),A2=String.fromCharCode(32),S2=!1;function rT(e,t){switch(e){case"keyup":return IV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pl=!1;function UV(e,t){switch(e){case"compositionend":return iT(t);case"keypress":return t.which!==32?null:(S2=!0,A2);case"textInput":return e=t.data,e===A2&&S2?null:e;default:return null}}function HV(e,t){if(Pl)return e==="compositionend"||!Sy&&rT(e,t)?(e=tT(),cd=wy=yo=null,Pl=!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 nT&&t.locale!=="ko"?null:t.data;default:return null}}var qV={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 T2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qV[e.type]:t==="textarea"}function aT(e,t,n,r){Ll?Wl?Wl.push(r):Wl=[r]:Ll=r,t=Hd(t,"onChange"),0<t.length&&(n=new Yd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ef=null,yf=null;function jV(e){$k(e,0)}function Xd(e){var t=Xc(e);if(YS(t))return e}function k2(e,t){if(e==="change")return t}var oT=!1;Ma&&(Ma?(Qp="oninput"in document,Qp||(r1=document.createElement("div"),r1.setAttribute("oninput","return;"),Qp=typeof r1.oninput=="function"),Yp=Qp):Yp=!1,oT=Yp&&(!document.documentMode||9<document.documentMode));var Yp,Qp,r1;function B2(){ef&&(ef.detachEvent("onpropertychange",uT),yf=ef=null)}function uT(e){if(e.propertyName==="value"&&Xd(yf)){var t=[];aT(t,yf,e,Cy(e)),eT(jV,t)}}function VV(e,t,n){e==="focusin"?(B2(),ef=t,yf=n,ef.attachEvent("onpropertychange",uT)):e==="focusout"&&B2()}function $V(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xd(yf)}function GV(e,t){if(e==="click")return Xd(t)}function WV(e,t){if(e==="input"||e==="change")return Xd(t)}function KV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kr=typeof Object.is=="function"?Object.is:KV;function Ef(e,t){if(kr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!M1.call(t,i)||!kr(e[i],t[i]))return!1}return!0}function O2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function M2(e,t){var n=O2(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=O2(n)}}function lT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sT(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ad(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=Ad(e.document)}return t}function Ty(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")}function YV(e,t){var n=sT(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&lT(t.ownerDocument.documentElement,t)){if(r!==null&&Ty(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var i=t.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!n.extend&&a>r&&(i=r,r=a,a=i),i=M2(t,a);var u=M2(t,r);i&&u&&(n.rangeCount!==1||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==u.node||n.focusOffset!==u.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),n.removeAllRanges(),a>r?(n.addRange(e),n.extend(u.node,u.offset)):(e.setEnd(u.node,u.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)n=e[t],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var QV=Ma&&"documentMode"in document&&11>=document.documentMode,Il=null,P1=null,tf=null,I1=!1;function R2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;I1||Il==null||Il!==Ad(r)||(r=Il,"selectionStart"in r&&Ty(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}),tf&&Ef(tf,r)||(tf=r,r=Hd(P1,"onSelect"),0<r.length&&(t=new Yd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Il)))}function hu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nl={animationend:hu("Animation","AnimationEnd"),animationiteration:hu("Animation","AnimationIteration"),animationstart:hu("Animation","AnimationStart"),transitionrun:hu("Transition","TransitionRun"),transitionstart:hu("Transition","TransitionStart"),transitioncancel:hu("Transition","TransitionCancel"),transitionend:hu("Transition","TransitionEnd")},i1={},cT={};Ma&&(cT=document.createElement("div").style,"AnimationEvent"in window||(delete Nl.animationend.animation,delete Nl.animationiteration.animation,delete Nl.animationstart.animation),"TransitionEvent"in window||delete Nl.transitionend.transition);function _u(e){if(i1[e])return i1[e];if(!Nl[e])return e;var t=Nl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in cT)return i1[e]=t[n];return e}var fT=_u("animationend"),mT=_u("animationiteration"),pT=_u("animationstart"),XV=_u("transitionrun"),ZV=_u("transitionstart"),JV=_u("transitioncancel"),dT=_u("transitionend"),hT=new Map,F2="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 scrollEnd toggle touchMove waiting wheel".split(" ");function Ai(e,t){hT.set(e,t),Ru(t,[e])}var Jr=[],Ul=0,ky=0;function Zd(){for(var e=Ul,t=ky=Ul=0;t<e;){var n=Jr[t];Jr[t++]=null;var r=Jr[t];Jr[t++]=null;var i=Jr[t];Jr[t++]=null;var a=Jr[t];if(Jr[t++]=null,r!==null&&i!==null){var u=r.pending;u===null?i.next=i:(i.next=u.next,u.next=i),r.pending=i}a!==0&&gT(n,i,a)}}function Jd(e,t,n,r){Jr[Ul++]=e,Jr[Ul++]=t,Jr[Ul++]=n,Jr[Ul++]=r,ky|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function By(e,t,n,r){return Jd(e,t,n,r),Sd(e)}function To(e,t){return Jd(e,null,null,t),Sd(e)}function gT(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;i&&t!==null&&e.tag===3&&(a=e.stateNode,i=31-Sr(n),a=a.hiddenUpdates,e=a[i],e===null?a[i]=[t]:e.push(t),t.lane=n|536870912)}function Sd(e){if(50<df)throw df=0,oy=null,Error(ie(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Hl={},_2=new WeakMap;function ii(e,t){if(typeof e=="object"&&e!==null){var n=_2.get(e);return n!==void 0?n:(t={value:e,source:t,stack:d2(t)},_2.set(e,t),t)}return{value:e,source:t,stack:d2(t)}}var ql=[],jl=0,Td=null,kd=0,ti=[],ni=0,Du=null,Sa=1,Ta="";function vu(e,t){ql[jl++]=kd,ql[jl++]=Td,Td=e,kd=t}function vT(e,t,n){ti[ni++]=Sa,ti[ni++]=Ta,ti[ni++]=Du,Du=e;var r=Sa;e=Ta;var i=32-Sr(r)-1;r&=~(1<<i),n+=1;var a=32-Sr(t)+i;if(30<a){var u=i-i%5;a=(r&(1<<u)-1).toString(32),r>>=u,i-=u,Sa=1<<32-Sr(t)+i|n<<i|r,Ta=a+e}else Sa=1<<a|n<<i|r,Ta=e}function Oy(e){e.return!==null&&(vu(e,1),vT(e,1,0))}function My(e){for(;e===Td;)Td=ql[--jl],ql[jl]=null,kd=ql[--jl],ql[jl]=null;for(;e===Du;)Du=ti[--ni],ti[ni]=null,Ta=ti[--ni],ti[ni]=null,Sa=ti[--ni],ti[ni]=null}var Vn=null,Cn=null,ft=!1,Ci=null,qi=!1,N1=Error(ie(519));function Tu(e){var t=Error(ie(418,""));throw bf(ii(t,e)),N1}function z2(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Mn]=e,t[lr]=r,n){case"dialog":ut("cancel",t),ut("close",t);break;case"iframe":case"object":case"embed":ut("load",t);break;case"video":case"audio":for(n=0;n<Cf.length;n++)ut(Cf[n],t);break;case"source":ut("error",t);break;case"img":case"image":case"link":ut("error",t),ut("load",t);break;case"details":ut("toggle",t);break;case"input":ut("invalid",t),QS(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),wd(t);break;case"select":ut("invalid",t);break;case"textarea":ut("invalid",t),ZS(t,r.value,r.defaultValue,r.children),wd(t)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||Wk(t.textContent,n)?(r.popover!=null&&(ut("beforetoggle",t),ut("toggle",t)),r.onScroll!=null&&ut("scroll",t),r.onScrollEnd!=null&&ut("scrollend",t),r.onClick!=null&&(t.onclick=oh),t=!0):t=!1,t||Tu(e)}function L2(e){for(Vn=e.return;Vn;)switch(Vn.tag){case 3:case 27:qi=!0;return;case 5:case 13:qi=!1;return;default:Vn=Vn.return}}function qc(e){if(e!==Vn)return!1;if(!ft)return L2(e),ft=!0,!1;var t=!1,n;if((n=e.tag!==3&&e.tag!==27)&&((n=e.tag===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||py(e.type,e.memoizedProps)),n=!n),n&&(t=!0),t&&Cn&&Tu(e),L2(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ie(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Cn=wi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Cn=null}}else Cn=Vn?wi(e.stateNode.nextSibling):null;return!0}function _f(){Cn=Vn=null,ft=!1}function bf(e){Ci===null?Ci=[e]:Ci.push(e)}var nf=Error(ie(460)),yT=Error(ie(474)),U1={then:function(){}};function P2(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xp(){}function ET(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xp,Xp),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===nf?Error(ie(483)):e;default:if(typeof t.status=="string")t.then(Xp,Xp);else{if(e=wt,e!==null&&100<e.shellSuspendCounter)throw Error(ie(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===nf?Error(ie(483)):e}throw rf=t,nf}}var rf=null;function I2(){if(rf===null)throw Error(ie(459));var e=rf;return rf=null,e}var Kl=null,xf=0;function Zp(e){var t=xf;return xf+=1,Kl===null&&(Kl=[]),ET(Kl,e,t)}function jc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Jp(e,t){throw t.$$typeof===Uj?Error(ie(525)):(e=Object.prototype.toString.call(t),Error(ie(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function N2(e){var t=e._init;return t(e._payload)}function bT(e){function t(E,D){if(e){var C=E.deletions;C===null?(E.deletions=[D],E.flags|=16):C.push(D)}}function n(E,D){if(!e)return null;for(;D!==null;)t(E,D),D=D.sibling;return null}function r(E){for(var D=new Map;E!==null;)E.key!==null?D.set(E.key,E):D.set(E.index,E),E=E.sibling;return D}function i(E,D){return E=Do(E,D),E.index=0,E.sibling=null,E}function a(E,D,C){return E.index=C,e?(C=E.alternate,C!==null?(C=C.index,C<D?(E.flags|=33554434,D):C):(E.flags|=33554434,D)):(E.flags|=1048576,D)}function u(E){return e&&E.alternate===null&&(E.flags|=33554434),E}function s(E,D,C,M){return D===null||D.tag!==6?(D=g1(C,E.mode,M),D.return=E,D):(D=i(D,C),D.return=E,D)}function c(E,D,C,M){var L=C.type;return L===_l?p(E,D,C.props.children,M,C.key):D!==null&&(D.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===co&&N2(L)===D.type)?(D=i(D,C.props),jc(D,C),D.return=E,D):(D=gd(C.type,C.key,C.props,null,E.mode,M),jc(D,C),D.return=E,D)}function f(E,D,C,M){return D===null||D.tag!==4||D.stateNode.containerInfo!==C.containerInfo||D.stateNode.implementation!==C.implementation?(D=v1(C,E.mode,M),D.return=E,D):(D=i(D,C.children||[]),D.return=E,D)}function p(E,D,C,M,L){return D===null||D.tag!==7?(D=wu(C,E.mode,M,L),D.return=E,D):(D=i(D,C),D.return=E,D)}function h(E,D,C){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=g1(""+D,E.mode,C),D.return=E,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Vp:return C=gd(D.type,D.key,D.props,null,E.mode,C),jc(C,D),C.return=E,C;case Kc:return D=v1(D,E.mode,C),D.return=E,D;case co:var M=D._init;return D=M(D._payload),h(E,D,C)}if(Qc(D)||Uc(D))return D=wu(D,E.mode,C,null),D.return=E,D;if(typeof D.then=="function")return h(E,Zp(D),C);if(D.$$typeof===Aa)return h(E,ed(E,D),C);Jp(E,D)}return null}function g(E,D,C,M){var L=D!==null?D.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return L!==null?null:s(E,D,""+C,M);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Vp:return C.key===L?c(E,D,C,M):null;case Kc:return C.key===L?f(E,D,C,M):null;case co:return L=C._init,C=L(C._payload),g(E,D,C,M)}if(Qc(C)||Uc(C))return L!==null?null:p(E,D,C,M,null);if(typeof C.then=="function")return g(E,D,Zp(C),M);if(C.$$typeof===Aa)return g(E,D,ed(E,C),M);Jp(E,C)}return null}function d(E,D,C,M,L){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return E=E.get(C)||null,s(D,E,""+M,L);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Vp:return E=E.get(M.key===null?C:M.key)||null,c(D,E,M,L);case Kc:return E=E.get(M.key===null?C:M.key)||null,f(D,E,M,L);case co:var B=M._init;return M=B(M._payload),d(E,D,C,M,L)}if(Qc(M)||Uc(M))return E=E.get(C)||null,p(D,E,M,L,null);if(typeof M.then=="function")return d(E,D,C,Zp(M),L);if(M.$$typeof===Aa)return d(E,D,C,ed(D,M),L);Jp(D,M)}return null}function b(E,D,C,M){for(var L=null,B=null,H=D,j=D=0,ue=null;H!==null&&j<C.length;j++){H.index>j?(ue=H,H=null):ue=H.sibling;var P=g(E,H,C[j],M);if(P===null){H===null&&(H=ue);break}e&&H&&P.alternate===null&&t(E,H),D=a(P,D,j),B===null?L=P:B.sibling=P,B=P,H=ue}if(j===C.length)return n(E,H),ft&&vu(E,j),L;if(H===null){for(;j<C.length;j++)H=h(E,C[j],M),H!==null&&(D=a(H,D,j),B===null?L=H:B.sibling=H,B=H);return ft&&vu(E,j),L}for(H=r(H);j<C.length;j++)ue=d(H,E,j,C[j],M),ue!==null&&(e&&ue.alternate!==null&&H.delete(ue.key===null?j:ue.key),D=a(ue,D,j),B===null?L=ue:B.sibling=ue,B=ue);return e&&H.forEach(function(pe){return t(E,pe)}),ft&&vu(E,j),L}function A(E,D,C,M){if(C==null)throw Error(ie(151));for(var L=null,B=null,H=D,j=D=0,ue=null,P=C.next();H!==null&&!P.done;j++,P=C.next()){H.index>j?(ue=H,H=null):ue=H.sibling;var pe=g(E,H,P.value,M);if(pe===null){H===null&&(H=ue);break}e&&H&&pe.alternate===null&&t(E,H),D=a(pe,D,j),B===null?L=pe:B.sibling=pe,B=pe,H=ue}if(P.done)return n(E,H),ft&&vu(E,j),L;if(H===null){for(;!P.done;j++,P=C.next())P=h(E,P.value,M),P!==null&&(D=a(P,D,j),B===null?L=P:B.sibling=P,B=P);return ft&&vu(E,j),L}for(H=r(H);!P.done;j++,P=C.next())P=d(H,E,j,P.value,M),P!==null&&(e&&P.alternate!==null&&H.delete(P.key===null?j:P.key),D=a(P,D,j),B===null?L=P:B.sibling=P,B=P);return e&&H.forEach(function(ae){return t(E,ae)}),ft&&vu(E,j),L}function O(E,D,C,M){if(typeof C=="object"&&C!==null&&C.type===_l&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Vp:e:{for(var L=C.key;D!==null;){if(D.key===L){if(L=C.type,L===_l){if(D.tag===7){n(E,D.sibling),M=i(D,C.props.children),M.return=E,E=M;break e}}else if(D.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===co&&N2(L)===D.type){n(E,D.sibling),M=i(D,C.props),jc(M,C),M.return=E,E=M;break e}n(E,D);break}else t(E,D);D=D.sibling}C.type===_l?(M=wu(C.props.children,E.mode,M,C.key),M.return=E,E=M):(M=gd(C.type,C.key,C.props,null,E.mode,M),jc(M,C),M.return=E,E=M)}return u(E);case Kc:e:{for(L=C.key;D!==null;){if(D.key===L)if(D.tag===4&&D.stateNode.containerInfo===C.containerInfo&&D.stateNode.implementation===C.implementation){n(E,D.sibling),M=i(D,C.children||[]),M.return=E,E=M;break e}else{n(E,D);break}else t(E,D);D=D.sibling}M=v1(C,E.mode,M),M.return=E,E=M}return u(E);case co:return L=C._init,C=L(C._payload),O(E,D,C,M)}if(Qc(C))return b(E,D,C,M);if(Uc(C)){if(L=Uc(C),typeof L!="function")throw Error(ie(150));return C=L.call(C),A(E,D,C,M)}if(typeof C.then=="function")return O(E,D,Zp(C),M);if(C.$$typeof===Aa)return O(E,D,ed(E,C),M);Jp(E,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,D!==null&&D.tag===6?(n(E,D.sibling),M=i(D,C),M.return=E,E=M):(n(E,D),M=g1(C,E.mode,M),M.return=E,E=M),u(E)):n(E,D)}return function(E,D,C,M){try{xf=0;var L=O(E,D,C,M);return Kl=null,L}catch(H){if(H===nf)throw H;var B=ai(29,H,null,E.mode);return B.lanes=M,B.return=E,B}finally{}}}var ku=bT(!0),xT=bT(!1),ns=Ki(null),Bd=Ki(0);function U2(e,t){e=_a,Ot(Bd,e),Ot(ns,t),_a=e|t.baseLanes}function H1(){Ot(Bd,_a),Ot(ns,ns.current)}function Ry(){_a=Bd.current,pn(ns),pn(Bd)}var ui=Ki(null),Gi=null;function mo(e){var t=e.alternate;Ot(rn,rn.current&1),Ot(ui,e),Gi===null&&(t===null||ns.current!==null||t.memoizedState!==null)&&(Gi=e)}function DT(e){if(e.tag===22){if(Ot(rn,rn.current),Ot(ui,e),Gi===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Gi=e)}}else po(e)}function po(){Ot(rn,rn.current),Ot(ui,ui.current)}function ka(e){pn(ui),Gi===e&&(Gi=null),pn(rn)}var rn=Ki(0);function Od(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var e$=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},t$=an.unstable_scheduleCallback,n$=an.unstable_NormalPriority,nn={$$typeof:Aa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fy(){return{controller:new e$,data:new Map,refCount:0}}function zf(e){e.refCount--,e.refCount===0&&t$(n$,function(){e.controller.abort()})}var af=null,q1=0,rs=0,Yl=null;function r$(e,t){if(af===null){var n=af=[];q1=0,rs=nE(),Yl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return q1++,t.then(H2,H2),t}function H2(){if(--q1===0&&af!==null){Yl!==null&&(Yl.status="fulfilled");var e=af;af=null,rs=0,Yl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function i$(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var q2=Ue.S;Ue.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&r$(e,t),q2!==null&&q2(e,t)};var Cu=Ki(null);function _y(){var e=Cu.current;return e!==null?e:wt.pooledCache}function md(e,t){t===null?Ot(Cu,Cu.current):Ot(Cu,t.pool)}function CT(){var e=_y();return e===null?null:{parent:nn._currentValue,pool:e}}var ko=0,Ke=null,yt=null,Kt=null,Md=!1,Ql=!1,Bu=!1,Rd=0,Df=0,Xl=null,a$=0;function Vt(){throw Error(ie(321))}function zy(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kr(e[n],t[n]))return!1;return!0}function Ly(e,t,n,r,i,a){return ko=a,Ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ue.H=e===null||e.memoizedState===null?zu:Ro,Bu=!1,a=n(r,i),Bu=!1,Ql&&(a=AT(t,n,r,i)),wT(e),a}function wT(e){Ue.H=Wi;var t=yt!==null&&yt.next!==null;if(ko=0,Kt=yt=Ke=null,Md=!1,Df=0,Xl=null,t)throw Error(ie(300));e===null||mn||(e=e.dependencies,e!==null&&zd(e)&&(mn=!0))}function AT(e,t,n,r){Ke=e;var i=0;do{if(Ql&&(Xl=null),Df=0,Ql=!1,25<=i)throw Error(ie(301));if(i+=1,Kt=yt=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Ue.H=Lu,a=t(n,r)}while(Ql);return a}function o$(){var e=Ue.H,t=e.useState()[0];return t=typeof t.then=="function"?Lf(t):t,e=e.useState()[0],(yt!==null?yt.memoizedState:null)!==e&&(Ke.flags|=1024),t}function Py(){var e=Rd!==0;return Rd=0,e}function Iy(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ny(e){if(Md){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Md=!1}ko=0,Kt=yt=Ke=null,Ql=!1,Df=Rd=0,Xl=null}function ur(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?Ke.memoizedState=Kt=e:Kt=Kt.next=e,Kt}function Yt(){if(yt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=Kt===null?Ke.memoizedState:Kt.next;if(t!==null)Kt=t,yt=e;else{if(e===null)throw Ke.alternate===null?Error(ie(467)):Error(ie(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Kt===null?Ke.memoizedState=Kt=e:Kt=Kt.next=e}return Kt}var eh;eh=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Lf(e){var t=Df;return Df+=1,Xl===null&&(Xl=[]),e=ET(Xl,e,t),t=Ke,(Kt===null?t.memoizedState:Kt.next)===null&&(t=t.alternate,Ue.H=t===null||t.memoizedState===null?zu:Ro),e}function th(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Lf(e);if(e.$$typeof===Aa)return Rn(e)}throw Error(ie(438,String(e)))}function Uy(e){var t=null,n=Ke.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ke.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=eh(),Ke.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]=qj;return t.index++,n}function Ra(e,t){return typeof t=="function"?t(e):t}function pd(e){var t=Yt();return Hy(t,yt,e)}function Hy(e,t,n){var r=e.queue;if(r===null)throw Error(ie(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var u=i.next;i.next=a.next,a.next=u}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=u=null,c=null,f=t,p=!1;do{var h=f.lane&-536870913;if(h!==f.lane?(lt&h)===h:(ko&h)===h){var g=f.revertLane;if(g===0)c!==null&&(c=c.next={lane:0,revertLane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),h===rs&&(p=!0);else if((ko&g)===g){f=f.next,g===rs&&(p=!0);continue}else h={lane:0,revertLane:f.revertLane,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},c===null?(s=c=h,u=a):c=c.next=h,Ke.lanes|=g,Oo|=g;h=f.action,Bu&&n(a,h),a=f.hasEagerState?f.eagerState:n(a,h)}else g={lane:h,revertLane:f.revertLane,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},c===null?(s=c=g,u=a):c=c.next=g,Ke.lanes|=h,Oo|=h;f=f.next}while(f!==null&&f!==t);if(c===null?u=a:c.next=s,!kr(a,e.memoizedState)&&(mn=!0,p&&(n=Yl,n!==null)))throw n;e.memoizedState=a,e.baseState=u,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function a1(e){var t=Yt(),n=t.queue;if(n===null)throw Error(ie(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var u=i=i.next;do a=e(a,u.action),u=u.next;while(u!==i);kr(a,t.memoizedState)||(mn=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ST(e,t,n){var r=Ke,i=Yt(),a=ft;if(a){if(n===void 0)throw Error(ie(407));n=n()}else n=t();var u=!kr((yt||i).memoizedState,n);if(u&&(i.memoizedState=n,mn=!0),i=i.queue,qy(BT.bind(null,r,i,e),[e]),i.getSnapshot!==t||u||Kt!==null&&Kt.memoizedState.tag&1){if(r.flags|=2048,is(9,kT.bind(null,r,i,n,t),{destroy:void 0},null),wt===null)throw Error(ie(349));a||ko&60||TT(r,t,n)}return n}function TT(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ke.updateQueue,t===null?(t=eh(),Ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kT(e,t,n,r){t.value=n,t.getSnapshot=r,OT(t)&&MT(e)}function BT(e,t,n){return n(function(){OT(t)&&MT(e)})}function OT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kr(e,n)}catch{return!0}}function MT(e){var t=To(e,2);t!==null&&$n(t,e,2)}function j1(e){var t=ur();if(typeof e=="function"){var n=e;if(e=n(),Bu){vo(!0);try{n()}finally{vo(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:e},t}function RT(e,t,n,r){return e.baseState=n,Hy(e,yt,typeof r=="function"?r:Ra)}function u$(e,t,n,r,i){if(rh(e))throw Error(ie(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(u){a.listeners.push(u)}};Ue.T!==null?n(!0):a.isTransition=!1,r(a),n=t.pending,n===null?(a.next=t.pending=a,FT(t,a)):(a.next=n.next,t.pending=n.next=a)}}function FT(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=Ue.T,u={};Ue.T=u;try{var s=n(i,r),c=Ue.S;c!==null&&c(u,s),j2(e,t,s)}catch(f){V1(e,t,f)}finally{Ue.T=a}}else try{a=n(i,r),j2(e,t,a)}catch(f){V1(e,t,f)}}function j2(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){V2(e,t,r)},function(r){return V1(e,t,r)}):V2(e,t,n)}function V2(e,t,n){t.status="fulfilled",t.value=n,_T(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,FT(e,n)))}function V1(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,_T(t),t=t.next;while(t!==r)}e.action=null}function _T(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zT(e,t){return t}function LT(e,t){if(ft){var n=wt.formState;if(n!==null){e:{var r=Ke;if(ft){if(Cn){t:{for(var i=Cn,a=qi;i.nodeType!==8;){if(!a){i=null;break t}if(i=wi(i.nextSibling),i===null){i=null;break t}}a=i.data,i=a==="F!"||a==="F"?i:null}if(i){Cn=wi(i.nextSibling),r=i.data==="F!";break e}}Tu(r)}r=!1}r&&(t=n[0])}}return n=ur(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zT,lastRenderedState:t},n.queue=r,n=JT.bind(null,Ke,r),r.dispatch=n,r=j1(!1),a=Gy.bind(null,Ke,!1,r.queue),r=ur(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=u$.bind(null,Ke,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function PT(e){var t=Yt();return IT(t,yt,e)}function IT(e,t,n){t=Hy(e,t,zT)[0],e=pd(Ra)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?Lf(t):t;var r=Yt(),i=r.queue,a=i.dispatch;return n!==r.memoizedState&&(Ke.flags|=2048,is(9,l$.bind(null,i,n),{destroy:void 0},null)),[t,a,e]}function l$(e,t){e.action=t}function NT(e){var t=Yt(),n=yt;if(n!==null)return IT(t,n,e);Yt(),t=t.memoizedState,n=Yt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function is(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},t=Ke.updateQueue,t===null&&(t=eh(),Ke.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 UT(){return Yt().memoizedState}function dd(e,t,n,r){var i=ur();Ke.flags|=e,i.memoizedState=is(1|t,n,{destroy:void 0},r===void 0?null:r)}function nh(e,t,n,r){var i=Yt();r=r===void 0?null:r;var a=i.memoizedState.inst;yt!==null&&r!==null&&zy(r,yt.memoizedState.deps)?i.memoizedState=is(t,n,a,r):(Ke.flags|=e,i.memoizedState=is(1|t,n,a,r))}function $2(e,t){dd(8390656,8,e,t)}function qy(e,t){nh(2048,8,e,t)}function HT(e,t){return nh(4,2,e,t)}function qT(e,t){return nh(4,4,e,t)}function jT(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 VT(e,t,n){n=n!=null?n.concat([e]):null,nh(4,4,jT.bind(null,t,e),n)}function jy(){}function $T(e,t){var n=Yt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&zy(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function GT(e,t){var n=Yt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&zy(t,r[1]))return r[0];if(r=e(),Bu){vo(!0);try{e()}finally{vo(!1)}}return n.memoizedState=[r,t],r}function Vy(e,t,n){return n===void 0||ko&1073741824?e.memoizedState=t:(e.memoizedState=n,e=_k(),Ke.lanes|=e,Oo|=e,n)}function WT(e,t,n,r){return kr(n,t)?n:ns.current!==null?(e=Vy(e,n,r),kr(e,t)||(mn=!0),e):ko&42?(e=_k(),Ke.lanes|=e,Oo|=e,t):(mn=!0,e.memoizedState=n)}function KT(e,t,n,r,i){var a=Tt.p;Tt.p=a!==0&&8>a?a:8;var u=Ue.T,s={};Ue.T=s,Gy(e,!1,t,n);try{var c=i(),f=Ue.S;if(f!==null&&f(s,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var p=i$(c,r);of(e,t,p,Tr(e))}else of(e,t,r,Tr(e))}catch(h){of(e,t,{then:function(){},status:"rejected",reason:h},Tr())}finally{Tt.p=a,Ue.T=u}}function s$(){}function $1(e,t,n,r){if(e.tag!==5)throw Error(ie(476));var i=YT(e).queue;KT(e,i,t,xu,n===null?s$:function(){return QT(e),n(r)})}function YT(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:xu,baseState:xu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:xu},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function QT(e){var t=YT(e).next.queue;of(e,t,{},Tr())}function $y(){return Rn(Sf)}function XT(){return Yt().memoizedState}function ZT(){return Yt().memoizedState}function c$(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Tr();e=bo(n);var r=xo(t,e,n);r!==null&&($n(r,t,n),lf(r,t,n)),t={cache:Fy()},e.payload=t;return}t=t.return}}function f$(e,t,n){var r=Tr();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},rh(e)?ek(t,n):(n=By(e,t,n,r),n!==null&&($n(n,e,r),tk(n,t,r)))}function JT(e,t,n){var r=Tr();of(e,t,n,r)}function of(e,t,n,r){var i={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(rh(e))ek(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var u=t.lastRenderedState,s=a(u,n);if(i.hasEagerState=!0,i.eagerState=s,kr(s,u))return Jd(e,t,i,0),wt===null&&Zd(),!1}catch{}finally{}if(n=By(e,t,i,r),n!==null)return $n(n,e,r),tk(n,t,r),!0}return!1}function Gy(e,t,n,r){if(r={lane:2,revertLane:nE(),action:r,hasEagerState:!1,eagerState:null,next:null},rh(e)){if(t)throw Error(ie(479))}else t=By(e,n,r,2),t!==null&&$n(t,e,2)}function rh(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function ek(e,t){Ql=Md=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tk(e,t,n){if(n&4194176){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jS(e,n)}}var Wi={readContext:Rn,use:th,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt};Wi.useCacheRefresh=Vt;Wi.useMemoCache=Vt;Wi.useHostTransitionStatus=Vt;Wi.useFormState=Vt;Wi.useActionState=Vt;Wi.useOptimistic=Vt;var zu={readContext:Rn,use:th,useCallback:function(e,t){return ur().memoizedState=[e,t===void 0?null:t],e},useContext:Rn,useEffect:$2,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,dd(4194308,4,jT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dd(4194308,4,e,t)},useInsertionEffect:function(e,t){dd(4,2,e,t)},useMemo:function(e,t){var n=ur();t=t===void 0?null:t;var r=e();if(Bu){vo(!0);try{e()}finally{vo(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ur();if(n!==void 0){var i=n(t);if(Bu){vo(!0);try{n(t)}finally{vo(!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=f$.bind(null,Ke,e),[r.memoizedState,e]},useRef:function(e){var t=ur();return e={current:e},t.memoizedState=e},useState:function(e){e=j1(e);var t=e.queue,n=JT.bind(null,Ke,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:jy,useDeferredValue:function(e,t){var n=ur();return Vy(n,e,t)},useTransition:function(){var e=j1(!1);return e=KT.bind(null,Ke,e.queue,!0,!1),ur().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ke,i=ur();if(ft){if(n===void 0)throw Error(ie(407));n=n()}else{if(n=t(),wt===null)throw Error(ie(349));lt&60||TT(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,$2(BT.bind(null,r,a,e),[e]),r.flags|=2048,is(9,kT.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=ur(),t=wt.identifierPrefix;if(ft){var n=Ta,r=Sa;n=(r&~(1<<32-Sr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Rd++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=a$++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return ur().memoizedState=c$.bind(null,Ke)}};zu.useMemoCache=Uy;zu.useHostTransitionStatus=$y;zu.useFormState=LT;zu.useActionState=LT;zu.useOptimistic=function(e){var t=ur();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Gy.bind(null,Ke,!0,n),n.dispatch=t,[e,t]};var Ro={readContext:Rn,use:th,useCallback:$T,useContext:Rn,useEffect:qy,useImperativeHandle:VT,useInsertionEffect:HT,useLayoutEffect:qT,useMemo:GT,useReducer:pd,useRef:UT,useState:function(){return pd(Ra)},useDebugValue:jy,useDeferredValue:function(e,t){var n=Yt();return WT(n,yt.memoizedState,e,t)},useTransition:function(){var e=pd(Ra)[0],t=Yt().memoizedState;return[typeof e=="boolean"?e:Lf(e),t]},useSyncExternalStore:ST,useId:XT};Ro.useCacheRefresh=ZT;Ro.useMemoCache=Uy;Ro.useHostTransitionStatus=$y;Ro.useFormState=PT;Ro.useActionState=PT;Ro.useOptimistic=function(e,t){var n=Yt();return RT(n,yt,e,t)};var Lu={readContext:Rn,use:th,useCallback:$T,useContext:Rn,useEffect:qy,useImperativeHandle:VT,useInsertionEffect:HT,useLayoutEffect:qT,useMemo:GT,useReducer:a1,useRef:UT,useState:function(){return a1(Ra)},useDebugValue:jy,useDeferredValue:function(e,t){var n=Yt();return yt===null?Vy(n,e,t):WT(n,yt.memoizedState,e,t)},useTransition:function(){var e=a1(Ra)[0],t=Yt().memoizedState;return[typeof e=="boolean"?e:Lf(e),t]},useSyncExternalStore:ST,useId:XT};Lu.useCacheRefresh=ZT;Lu.useMemoCache=Uy;Lu.useHostTransitionStatus=$y;Lu.useFormState=NT;Lu.useActionState=NT;Lu.useOptimistic=function(e,t){var n=Yt();return yt!==null?RT(n,yt,e,t):(n.baseState=e,[e,n.queue.dispatch])};function o1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:kt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var G1={isMounted:function(e){return(e=e._reactInternals)?ls(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Tr(),i=bo(r);i.payload=t,n!=null&&(i.callback=n),t=xo(e,i,r),t!==null&&($n(t,e,r),lf(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Tr(),i=bo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=xo(e,i,r),t!==null&&($n(t,e,r),lf(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tr(),r=bo(n);r.tag=2,t!=null&&(r.callback=t),t=xo(e,r,n),t!==null&&($n(t,e,n),lf(t,e,n))}};function G2(e,t,n,r,i,a,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,u):t.prototype&&t.prototype.isPureReactComponent?!Ef(n,r)||!Ef(i,a):!0}function W2(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&&G1.enqueueReplaceState(t,t.state,null)}function Ou(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=kt({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}var Fd=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function nk(e){Fd(e)}function rk(e){console.error(e)}function ik(e){Fd(e)}function _d(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function K2(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function W1(e,t,n){return n=bo(n),n.tag=3,n.payload={element:null},n.callback=function(){_d(e,t)},n}function ak(e){return e=bo(e),e.tag=3,e}function ok(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(){K2(t,n,r)}}var u=n.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){K2(t,n,r),typeof i!="function"&&(Co===null?Co=new Set([this]):Co.add(this));var s=r.stack;this.componentDidCatch(r.value,{componentStack:s!==null?s:""})})}function m$(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Pf(t,n,i,!0),n=ui.current,n!==null){switch(n.tag){case 13:return Gi===null?ly():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===U1?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),E1(e,r,i)),!1;case 22:return n.flags|=65536,r===U1?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)),E1(e,r,i)),!1}throw Error(ie(435,n.tag))}return E1(e,r,i),ly(),!1}if(ft)return t=ui.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==N1&&(e=Error(ie(422),{cause:r}),bf(ii(e,n)))):(r!==N1&&(t=Error(ie(423),{cause:r}),bf(ii(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=ii(r,n),i=W1(e.stateNode,r,i),m1(e,i),Ht!==4&&(Ht=2)),!1;var a=Error(ie(520),{cause:r});if(a=ii(a,n),mf===null?mf=[a]:mf.push(a),Ht!==4&&(Ht=2),t===null)return!0;r=ii(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=W1(n.stateNode,r,e),m1(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(Co===null||!Co.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ak(i),ok(i,e,n,r),m1(n,i),!1}n=n.return}while(n!==null);return!1}var uk=Error(ie(461)),mn=!1;function Dn(e,t,n,r){t.child=e===null?xT(t,null,n,r):ku(t,e.child,n,r)}function Y2(e,t,n,r,i){n=n.render;var a=t.ref;if("ref"in r){var u={};for(var s in r)s!=="ref"&&(u[s]=r[s])}else u=r;return Mu(t),r=Ly(e,t,n,u,a,i),s=Py(),e!==null&&!mn?(Iy(e,t,i),Fa(e,t,i)):(ft&&s&&Oy(t),t.flags|=1,Dn(e,t,r,i),t.child)}function Q2(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!Xy(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,lk(e,t,a,r,i)):(e=gd(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Wy(e,i)){var u=a.memoizedProps;if(n=n.compare,n=n!==null?n:Ef,n(u,r)&&e.ref===t.ref)return Fa(e,t,i)}return t.flags|=1,e=Do(a,r),e.ref=t.ref,e.return=t,t.child=e}function lk(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ef(a,r)&&e.ref===t.ref)if(mn=!1,t.pendingProps=r=a,Wy(e,i))e.flags&131072&&(mn=!0);else return t.lanes=e.lanes,Fa(e,t,i)}return K1(e,t,n,r,i)}function sk(e,t,n){var r=t.pendingProps,i=r.children,a=(t.stateNode._pendingVisibility&2)!==0,u=e!==null?e.memoizedState:null;if(uf(e,t),r.mode==="hidden"||a){if(t.flags&128){if(r=u!==null?u.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;t.childLanes=a&~r}else t.childLanes=0,t.child=null;return X2(e,t,r,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&md(t,u!==null?u.cachePool:null),u!==null?U2(t,u):H1(),DT(t);else return t.lanes=t.childLanes=536870912,X2(e,t,u!==null?u.baseLanes|n:n,n)}else u!==null?(md(t,u.cachePool),U2(t,u),po(t),t.memoizedState=null):(e!==null&&md(t,null),H1(),po(t));return Dn(e,t,i,n),t.child}function X2(e,t,n,r){var i=_y();return i=i===null?null:{parent:nn._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&md(t,null),H1(),DT(t),e!==null&&Pf(e,t,r,!0),null}function uf(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof n!="function"&&typeof n!="object")throw Error(ie(284));(e===null||e.ref!==n)&&(t.flags|=2097664)}}function K1(e,t,n,r,i){return Mu(t),n=Ly(e,t,n,r,void 0,i),r=Py(),e!==null&&!mn?(Iy(e,t,i),Fa(e,t,i)):(ft&&r&&Oy(t),t.flags|=1,Dn(e,t,n,i),t.child)}function Z2(e,t,n,r,i,a){return Mu(t),t.updateQueue=null,n=AT(t,r,n,i),wT(e),r=Py(),e!==null&&!mn?(Iy(e,t,a),Fa(e,t,a)):(ft&&r&&Oy(t),t.flags|=1,Dn(e,t,n,a),t.child)}function J2(e,t,n,r,i){if(Mu(t),t.stateNode===null){var a=Hl,u=n.contextType;typeof u=="object"&&u!==null&&(a=Rn(u)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=G1,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ky(t),u=n.contextType,a.context=typeof u=="object"&&u!==null?Rn(u):Hl,a.state=t.memoizedState,u=n.getDerivedStateFromProps,typeof u=="function"&&(o1(t,n,u,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(u=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),u!==a.state&&G1.enqueueReplaceState(a,a.state,null),cf(t,r,a,i),sf(),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=Ou(n,s);a.props=c;var f=a.context,p=n.contextType;u=Hl,typeof p=="object"&&p!==null&&(u=Rn(p));var h=n.getDerivedStateFromProps;p=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s||f!==u)&&W2(t,a,r,u),fo=!1;var g=t.memoizedState;a.state=g,cf(t,r,a,i),sf(),f=t.memoizedState,s||g!==f||fo?(typeof h=="function"&&(o1(t,n,h,r),f=t.memoizedState),(c=fo||G2(t,n,c,r,g,f,u))?(p||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=f),a.props=r,a.state=f,a.context=u,r=c):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ey(e,t),u=t.memoizedProps,p=Ou(n,u),a.props=p,h=t.pendingProps,g=a.context,f=n.contextType,c=Hl,typeof f=="object"&&f!==null&&(c=Rn(f)),s=n.getDerivedStateFromProps,(f=typeof s=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==h||g!==c)&&W2(t,a,r,c),fo=!1,g=t.memoizedState,a.state=g,cf(t,r,a,i),sf();var d=t.memoizedState;u!==h||g!==d||fo||e!==null&&e.dependencies!==null&&zd(e.dependencies)?(typeof s=="function"&&(o1(t,n,s,r),d=t.memoizedState),(p=fo||G2(t,n,p,r,g,d,c)||e!==null&&e.dependencies!==null&&zd(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,d,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,d,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=c,r=p):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,uf(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=ku(t,e.child,null,i),t.child=ku(t,null,n,i)):Dn(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Fa(e,t,i),e}function eS(e,t,n,r){return _f(),t.flags|=256,Dn(e,t,n,r),t.child}var u1={dehydrated:null,treeContext:null,retryLane:0};function l1(e){return{baseLanes:e,cachePool:CT()}}function s1(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=oi),e}function ck(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!==0,u;if((u=a)||(u=e!==null&&e.memoizedState===null?!1:(rn.current&2)!==0),u&&(i=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(ft){if(i?mo(t):po(t),ft){var s=Cn,c;if(c=s){e:{for(c=s,s=qi;c.nodeType!==8;){if(!s){s=null;break e}if(c=wi(c.nextSibling),c===null){s=null;break e}}s=c}s!==null?(t.memoizedState={dehydrated:s,treeContext:Du!==null?{id:Sa,overflow:Ta}:null,retryLane:536870912},c=ai(18,null,null,0),c.stateNode=s,c.return=t,t.child=c,Vn=t,Cn=null,c=!0):c=!1}c||Tu(t)}if(s=t.memoizedState,s!==null&&(s=s.dehydrated,s!==null))return s.data==="$!"?t.lanes=16:t.lanes=536870912,null;ka(t)}return s=r.children,r=r.fallback,i?(po(t),i=t.mode,s=Q1({mode:"hidden",children:s},i),r=wu(r,i,n,null),s.return=t,r.return=t,s.sibling=r,t.child=s,i=t.child,i.memoizedState=l1(n),i.childLanes=s1(e,u,n),t.memoizedState=u1,r):(mo(t),Y1(t,s))}if(c=e.memoizedState,c!==null&&(s=c.dehydrated,s!==null)){if(a)t.flags&256?(mo(t),t.flags&=-257,t=c1(e,t,n)):t.memoizedState!==null?(po(t),t.child=e.child,t.flags|=128,t=null):(po(t),i=r.fallback,s=t.mode,r=Q1({mode:"visible",children:r.children},s),i=wu(i,s,n,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,ku(t,e.child,null,n),r=t.child,r.memoizedState=l1(n),r.childLanes=s1(e,u,n),t.memoizedState=u1,t=i);else if(mo(t),s.data==="$!"){if(u=s.nextSibling&&s.nextSibling.dataset,u)var f=u.dgst;u=f,r=Error(ie(419)),r.stack="",r.digest=u,bf({value:r,source:null,stack:null}),t=c1(e,t,n)}else if(mn||Pf(e,t,n,!1),u=(n&e.childLanes)!==0,mn||u){if(u=wt,u!==null){if(r=n&-n,r&42)r=1;else switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=64;break;case 268435456:r=134217728;break;default:r=0}if(r=r&(u.suspendedLanes|n)?0:r,r!==0&&r!==c.retryLane)throw c.retryLane=r,To(e,r),$n(u,e,r),uk}s.data==="$?"||ly(),t=c1(e,t,n)}else s.data==="$?"?(t.flags|=128,t.child=e.child,t=T$.bind(null,e),s._reactRetry=t,t=null):(e=c.treeContext,Cn=wi(s.nextSibling),Vn=t,ft=!0,Ci=null,qi=!1,e!==null&&(ti[ni++]=Sa,ti[ni++]=Ta,ti[ni++]=Du,Sa=e.id,Ta=e.overflow,Du=t),t=Y1(t,r.children),t.flags|=4096);return t}return i?(po(t),i=r.fallback,s=t.mode,c=e.child,f=c.sibling,r=Do(c,{mode:"hidden",children:r.children}),r.subtreeFlags=c.subtreeFlags&31457280,f!==null?i=Do(f,i):(i=wu(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s===null?s=l1(n):(c=s.cachePool,c!==null?(f=nn._currentValue,c=c.parent!==f?{parent:f,pool:f}:c):c=CT(),s={baseLanes:s.baseLanes|n,cachePool:c}),i.memoizedState=s,i.childLanes=s1(e,u,n),t.memoizedState=u1,r):(mo(t),n=e.child,e=n.sibling,n=Do(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=n,t.memoizedState=null,n)}function Y1(e,t){return t=Q1({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Q1(e,t){return Rk(e,t,0,null)}function c1(e,t,n){return ku(t,e.child,null,n),e=Y1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Z1(e.return,t,n)}function f1(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function fk(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Dn(e,t,r.children,n),r=rn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tS(e,n,t);else if(e.tag===19)tS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(Ot(rn,r),i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Od(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),f1(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Od(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}f1(t,!0,n,null,a);break;case"together":f1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Oo|=t.lanes,!(n&t.childLanes))if(e!==null){if(Pf(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(ie(153));if(t.child!==null){for(e=t.child,n=Do(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Do(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Wy(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&zd(e)))}function p$(e,t,n){switch(t.tag){case 3:xd(t,t.stateNode.containerInfo),ho(t,nn,e.memoizedState.cache),_f();break;case 27:case 5:O1(t);break;case 4:xd(t,t.stateNode.containerInfo);break;case 10:ho(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(mo(t),t.flags|=128,null):n&t.child.childLanes?ck(e,t,n):(mo(t),e=Fa(e,t,n),e!==null?e.sibling:null);mo(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Pf(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return fk(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ot(rn,rn.current),r)break;return null;case 22:case 23:return t.lanes=0,sk(e,t,n);case 24:ho(t,nn,e.memoizedState.cache)}return Fa(e,t,n)}function mk(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)mn=!0;else{if(!Wy(e,n)&&!(t.flags&128))return mn=!1,p$(e,t,n);mn=!!(e.flags&131072)}else mn=!1,ft&&t.flags&1048576&&vT(t,kd,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,i=r._init;if(r=i(r._payload),t.type=r,typeof r=="function")Xy(r)?(e=Ou(r,e),t.tag=1,t=J2(null,t,r,e,n)):(t.tag=0,t=K1(null,t,r,e,n));else{if(r!=null){if(i=r.$$typeof,i===yy){t.tag=11,t=Y2(null,t,r,e,n);break e}else if(i===Ey){t.tag=14,t=Q2(null,t,r,e,n);break e}}throw t=k1(r)||r,Error(ie(306,t,""))}}return t;case 0:return K1(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ou(r,t.pendingProps),J2(e,t,r,i,n);case 3:e:{if(xd(t,t.stateNode.containerInfo),e===null)throw Error(ie(387));var a=t.pendingProps;i=t.memoizedState,r=i.element,ey(e,t),cf(t,a,null,n);var u=t.memoizedState;if(a=u.cache,ho(t,nn,a),a!==i.cache&&J1(t,[nn],n,!0),sf(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=eS(e,t,a,n);break e}else if(a!==r){r=ii(Error(ie(424)),t),bf(r),t=eS(e,t,a,n);break e}else for(Cn=wi(t.stateNode.containerInfo.firstChild),Vn=t,ft=!0,Ci=null,qi=!0,n=xT(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_f(),a===r){t=Fa(e,t,n);break e}Dn(e,t,a,n)}t=t.child}return t;case 26:return uf(e,t),e===null?(n=xS(t.type,null,t.pendingProps,null))?t.memoizedState=n:ft||(n=t.type,e=t.pendingProps,r=qd(Eo.current).createElement(n),r[Mn]=t,r[lr]=e,wn(r,n,e),fn(r),t.stateNode=r):t.memoizedState=xS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return O1(t),e===null&&ft&&(r=t.stateNode=Qk(t.type,t.pendingProps,Eo.current),Vn=t,qi=!0,Cn=wi(r.firstChild)),r=t.pendingProps.children,e!==null||ft?Dn(e,t,r,n):t.child=ku(t,null,r,n),uf(e,t),t.child;case 5:return e===null&&ft&&((i=r=Cn)&&(r=H$(r,t.type,t.pendingProps,qi),r!==null?(t.stateNode=r,Vn=t,Cn=wi(r.firstChild),qi=!1,i=!0):i=!1),i||Tu(t)),O1(t),i=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,r=a.children,py(i,a)?r=null:u!==null&&py(i,u)&&(t.flags|=32),t.memoizedState!==null&&(i=Ly(e,t,o$,null,null,n),Sf._currentValue=i),uf(e,t),Dn(e,t,r,n),t.child;case 6:return e===null&&ft&&((e=n=Cn)&&(n=q$(n,t.pendingProps,qi),n!==null?(t.stateNode=n,Vn=t,Cn=null,e=!0):e=!1),e||Tu(t)),null;case 13:return ck(e,t,n);case 4:return xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ku(t,null,r,n):Dn(e,t,r,n),t.child;case 11:return Y2(e,t,t.type,t.pendingProps,n);case 7:return Dn(e,t,t.pendingProps,n),t.child;case 8:return Dn(e,t,t.pendingProps.children,n),t.child;case 12:return Dn(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,ho(t,t.type,r.value),Dn(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Mu(t),i=Rn(i),r=r(i),t.flags|=1,Dn(e,t,r,n),t.child;case 14:return Q2(e,t,t.type,t.pendingProps,n);case 15:return lk(e,t,t.type,t.pendingProps,n);case 19:return fk(e,t,n);case 22:return sk(e,t,n);case 24:return Mu(t),r=Rn(nn),e===null?(i=_y(),i===null&&(i=wt,a=Fy(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Ky(t),ho(t,nn,i)):(e.lanes&n&&(ey(e,t),cf(t,null,null,n),sf()),i=e.memoizedState,a=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),ho(t,nn,r)):(r=a.cache,ho(t,nn,r),r!==i.cache&&J1(t,[nn],n,!0))),Dn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(ie(156,t.tag))}var X1=Ki(null),Pu=null,Ba=null;function ho(e,t,n){Ot(X1,t._currentValue),t._currentValue=n}function Oa(e){e._currentValue=X1.current,pn(X1)}function Z1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function J1(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var u=i.child;a=a.firstContext;e:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Z1(a.return,n,e),r||(u=null);break e}a=s.next}}else if(i.tag===18){if(u=i.return,u===null)throw Error(ie(341));u.lanes|=n,a=u.alternate,a!==null&&(a.lanes|=n),Z1(u,n,e),u=null}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===e){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}}function Pf(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 u=i.alternate;if(u===null)throw Error(ie(387));if(u=u.memoizedProps,u!==null){var s=i.type;kr(i.pendingProps.value,u.value)||(e!==null?e.push(s):e=[s])}}else if(i===bd.current){if(u=i.alternate,u===null)throw Error(ie(387));u.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Sf):e=[Sf])}i=i.return}e!==null&&J1(t,e,n,r),t.flags|=262144}function zd(e){for(e=e.firstContext;e!==null;){if(!kr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Mu(e){Pu=e,Ba=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Rn(e){return pk(Pu,e)}function ed(e,t){return Pu===null&&Mu(e),pk(e,t)}function pk(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ba===null){if(e===null)throw Error(ie(308));Ba=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ba=Ba.next=t;return n}var fo=!1;function Ky(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ey(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 bo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Sd(e),gT(e,null,n),t}return Jd(e,r,t,n),Sd(e)}function lf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194176)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jS(e,n)}}function m1(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 u={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=u:a=a.next=u,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 ty=!1;function sf(){if(ty){var e=Yl;if(e!==null)throw e}}function cf(e,t,n,r){ty=!1;var i=e.updateQueue;fo=!1;var a=i.firstBaseUpdate,u=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,f=c.next;c.next=null,u===null?a=f:u.next=f,u=c;var p=e.alternate;p!==null&&(p=p.updateQueue,s=p.lastBaseUpdate,s!==u&&(s===null?p.firstBaseUpdate=f:s.next=f,p.lastBaseUpdate=c))}if(a!==null){var h=i.baseState;u=0,p=f=c=null,s=a;do{var g=s.lane&-536870913,d=g!==s.lane;if(d?(lt&g)===g:(r&g)===g){g!==0&&g===rs&&(ty=!0),p!==null&&(p=p.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var b=e,A=s;g=t;var O=n;switch(A.tag){case 1:if(b=A.payload,typeof b=="function"){h=b.call(O,h,g);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=A.payload,g=typeof b=="function"?b.call(O,h,g):b,g==null)break e;h=kt({},h,g);break e;case 2:fo=!0}}g=s.callback,g!==null&&(e.flags|=64,d&&(e.flags|=8192),d=i.callbacks,d===null?i.callbacks=[g]:d.push(g))}else d={lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},p===null?(f=p=d,c=h):p=p.next=d,u|=g;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(1);p===null&&(c=h),i.baseState=c,i.firstBaseUpdate=f,i.lastBaseUpdate=p,a===null&&(i.shared.lanes=0),Oo|=u,e.lanes=u,e.memoizedState=h}}function dk(e,t){if(typeof e!="function")throw Error(ie(191,e));e.call(t)}function hk(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)dk(n[e],t)}function If(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,u=n.inst;r=a(),u.destroy=r}n=n.next}while(n!==i)}}catch(s){xt(t,t.return,s)}}function Bo(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var u=r.inst,s=u.destroy;if(s!==void 0){u.destroy=void 0,i=t;var c=n;try{s()}catch(f){xt(i,c,f)}}}r=r.next}while(r!==a)}}catch(f){xt(t,t.return,f)}}function gk(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{hk(t,n)}catch(r){xt(e,e.return,r)}}}function vk(e,t,n){n.props=Ou(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){xt(e,t,r)}}function bu(e,t){try{var n=e.ref;if(n!==null){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var i=r;break;default:i=r}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(a){xt(e,t,a)}}function wr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){xt(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){xt(e,t,i)}else n.current=null}function yk(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){xt(e,e.return,i)}}function nS(e,t,n){try{var r=e.stateNode;L$(r,e.type,n,t),r[lr]=t}catch(i){xt(e,e.return,i)}}function Ek(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function p1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ek(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ny(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=oh));else if(r!==4&&r!==27&&(e=e.child,e!==null))for(ny(e,t,n),e=e.sibling;e!==null;)ny(e,t,n),e=e.sibling}function Ld(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&&(e=e.child,e!==null))for(Ld(e,t,n),e=e.sibling;e!==null;)Ld(e,t,n),e=e.sibling}var Da=!1,Ut=!1,d1=!1,rS=typeof WeakSet=="function"?WeakSet:Set,cn=null,iS=!1;function d$(e,t){if(e=e.containerInfo,fy=Gd,e=sT(e),Ty(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var u=0,s=-1,c=-1,f=0,p=0,h=e,g=null;t:for(;;){for(var d;h!==n||i!==0&&h.nodeType!==3||(s=u+i),h!==a||r!==0&&h.nodeType!==3||(c=u+r),h.nodeType===3&&(u+=h.nodeValue.length),(d=h.firstChild)!==null;)g=h,h=d;for(;;){if(h===e)break t;if(g===n&&++f===i&&(s=u),g===a&&++p===r&&(c=u),(d=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=d}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(my={focusedElem:e,selectionRange:n},Gd=!1,cn=t;cn!==null;)if(t=cn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,cn=e;else for(;cn!==null;){switch(t=cn,a=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var b=Ou(n.type,i,n.elementType===n.type);e=r.getSnapshotBeforeUpdate(b,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(A){xt(n,n.return,A)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)dy(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":dy(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(ie(163))}if(e=t.sibling,e!==null){e.return=t.return,cn=e;break}cn=t.return}return b=iS,iS=!1,b}function bk(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ba(e,n),r&4&&If(5,n);break;case 1:if(ba(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){xt(n,n.return,s)}else{var i=Ou(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){xt(n,n.return,s)}}r&64&&gk(n),r&512&&bu(n,n.return);break;case 3:if(ba(e,n),r&64&&(r=n.updateQueue,r!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{hk(r,e)}catch(s){xt(n,n.return,s)}}break;case 26:ba(e,n),r&512&&bu(n,n.return);break;case 27:case 5:ba(e,n),t===null&&r&4&&yk(n),r&512&&bu(n,n.return);break;case 12:ba(e,n);break;case 13:ba(e,n),r&4&&Ck(e,n);break;case 22:if(i=n.memoizedState!==null||Da,!i){t=t!==null&&t.memoizedState!==null||Ut;var a=Da,u=Ut;Da=i,(Ut=t)&&!u?so(e,n,(n.subtreeFlags&8772)!==0):ba(e,n),Da=a,Ut=u}r&512&&(n.memoizedProps.mode==="manual"?bu(n,n.return):wr(n,n.return));break;default:ba(e,n)}}function xk(e){var t=e.alternate;t!==null&&(e.alternate=null,xk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xy(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 Wt=null,Dr=!1;function Ea(e,t,n){for(n=n.child;n!==null;)Dk(e,t,n),n=n.sibling}function Dk(e,t,n){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(Of,n)}catch{}switch(n.tag){case 26:Ut||wr(n,t),Ea(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ut||wr(n,t);var r=Wt,i=Dr;for(Wt=n.stateNode,Ea(e,t,n),n=n.stateNode,t=n.attributes;t.length;)n.removeAttributeNode(t[0]);xy(n),Wt=r,Dr=i;break;case 5:Ut||wr(n,t);case 6:i=Wt;var a=Dr;if(Wt=null,Ea(e,t,n),Wt=i,Dr=a,Wt!==null)if(Dr)try{e=Wt,r=n.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)}catch(u){xt(n,t,u)}else try{Wt.removeChild(n.stateNode)}catch(u){xt(n,t,u)}break;case 18:Wt!==null&&(Dr?(t=Wt,n=n.stateNode,t.nodeType===8?w1(t.parentNode,n):t.nodeType===1&&w1(t,n),Bf(t)):w1(Wt,n.stateNode));break;case 4:r=Wt,i=Dr,Wt=n.stateNode.containerInfo,Dr=!0,Ea(e,t,n),Wt=r,Dr=i;break;case 0:case 11:case 14:case 15:Ut||Bo(2,n,t),Ut||Bo(4,n,t),Ea(e,t,n);break;case 1:Ut||(wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&vk(n,t,r)),Ea(e,t,n);break;case 21:Ea(e,t,n);break;case 22:Ut||wr(n,t),Ut=(r=Ut)||n.memoizedState!==null,Ea(e,t,n),Ut=r;break;default:Ea(e,t,n)}}function Ck(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bf(e)}catch(n){xt(t,t.return,n)}}function h$(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rS),t;default:throw Error(ie(435,e.tag))}}function h1(e,t){var n=h$(e);t.forEach(function(r){var i=k$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}function Xr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,u=t,s=u;e:for(;s!==null;){switch(s.tag){case 27:case 5:Wt=s.stateNode,Dr=!1;break e;case 3:Wt=s.stateNode.containerInfo,Dr=!0;break e;case 4:Wt=s.stateNode.containerInfo,Dr=!0;break e}s=s.return}if(Wt===null)throw Error(ie(160));Dk(a,u,i),Wt=null,Dr=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)wk(t,e),t=t.sibling}var Di=null;function wk(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xr(t,e),Zr(e),r&4&&(Bo(3,e,e.return),If(3,e),Bo(5,e,e.return));break;case 1:Xr(t,e),Zr(e),r&512&&(Ut||n===null||wr(n,n.return)),r&64&&Da&&(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=Di;if(Xr(t,e),Zr(e),r&512&&(Ut||n===null||wr(n,n.return)),r&4){var a=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":a=i.getElementsByTagName("title")[0],(!a||a[gf]||a[Mn]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector("head > title"))),wn(a,r,n),a[Mn]=e,fn(a),r=a;break e;case"link":var u=CS("link","href",i).get(r+(n.href||""));if(u){for(var s=0;s<u.length;s++)if(a=u[s],a.getAttribute("href")===(n.href==null?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)){u.splice(s,1);break t}}a=i.createElement(r),wn(a,r,n),i.head.appendChild(a);break;case"meta":if(u=CS("meta","content",i).get(r+(n.content||""))){for(s=0;s<u.length;s++)if(a=u[s],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)){u.splice(s,1);break t}}a=i.createElement(r),wn(a,r,n),i.head.appendChild(a);break;default:throw Error(ie(468,r))}a[Mn]=e,fn(a),r=a}e.stateNode=r}else wS(i,e.type,e.stateNode);else e.stateNode=DS(i,r,e.memoizedProps);else a!==r?(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?wS(i,e.type,e.stateNode):DS(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&nS(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(r&4&&e.alternate===null){i=e.stateNode,a=e.memoizedProps;try{for(var c=i.firstChild;c;){var f=c.nextSibling,p=c.nodeName;c[gf]||p==="HEAD"||p==="BODY"||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=f}for(var h=e.type,g=i.attributes;g.length;)i.removeAttributeNode(g[0]);wn(i,h,a),i[Mn]=e,i[lr]=a}catch(b){xt(e,e.return,b)}}case 5:if(Xr(t,e),Zr(e),r&512&&(Ut||n===null||wr(n,n.return)),e.flags&32){i=e.stateNode;try{ts(i,"")}catch(b){xt(e,e.return,b)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,nS(e,i,n!==null?n.memoizedProps:i)),r&1024&&(d1=!0);break;case 6:if(Xr(t,e),Zr(e),r&4){if(e.stateNode===null)throw Error(ie(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(b){xt(e,e.return,b)}}break;case 3:if(yd=null,i=Di,Di=jd(t.containerInfo),Xr(t,e),Di=i,Zr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bf(t.containerInfo)}catch(b){xt(e,e.return,b)}d1&&(d1=!1,Ak(e));break;case 4:r=Di,Di=jd(e.stateNode.containerInfo),Xr(t,e),Zr(e),Di=r;break;case 12:Xr(t,e),Zr(e);break;case 13:Xr(t,e),Zr(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eE=$i()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,h1(e,r)));break;case 22:if(r&512&&(Ut||n===null||wr(n,n.return)),c=e.memoizedState!==null,f=n!==null&&n.memoizedState!==null,p=Da,h=Ut,Da=p||c,Ut=h||f,Xr(t,e),Ut=h,Da=p,Zr(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,r&8192&&(t._visibility=c?t._visibility&-2:t._visibility|1,c&&(t=Da||Ut,n===null||f||t||Ml(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(n=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(n===null){f=n=t;try{if(i=f.stateNode,c)a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{u=f.stateNode,s=f.memoizedProps.style;var d=s!=null&&s.hasOwnProperty("display")?s.display:null;u.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(b){xt(f,f.return,b)}}}else if(t.tag===6){if(n===null){f=t;try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(b){xt(f,f.return,b)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,h1(e,n))));break;case 19:Xr(t,e),Zr(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,h1(e,r)));break;case 21:break;default:Xr(t,e),Zr(e)}}function Zr(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var n=e.return;n!==null;){if(Ek(n)){var r=n;break e}n=n.return}throw Error(ie(160))}switch(r.tag){case 27:var i=r.stateNode,a=p1(e);Ld(e,a,i);break;case 5:var u=r.stateNode;r.flags&32&&(ts(u,""),r.flags&=-33);var s=p1(e);Ld(e,s,u);break;case 3:case 4:var c=r.stateNode.containerInfo,f=p1(e);ny(e,f,c);break;default:throw Error(ie(161))}}}catch(p){xt(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ak(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ak(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ba(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bk(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Bo(4,t,t.return),Ml(t);break;case 1:wr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&vk(t,t.return,n),Ml(t);break;case 26:case 27:case 5:wr(t,t.return),Ml(t);break;case 22:wr(t,t.return),t.memoizedState===null&&Ml(t);break;default:Ml(t)}e=e.sibling}}function so(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,u=a.flags;switch(a.tag){case 0:case 11:case 15:so(i,a,n),If(4,a);break;case 1:if(so(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(f){xt(r,r.return,f)}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++)dk(c[i],s)}catch(f){xt(r,r.return,f)}}n&&u&64&&gk(a),bu(a,a.return);break;case 26:case 27:case 5:so(i,a,n),n&&r===null&&u&4&&yk(a),bu(a,a.return);break;case 12:so(i,a,n);break;case 13:so(i,a,n),n&&u&4&&Ck(i,a);break;case 22:a.memoizedState===null&&so(i,a,n),bu(a,a.return);break;default:so(i,a,n)}t=t.sibling}}function Yy(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&&zf(n))}function Qy(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zf(e))}function lo(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sk(e,t,n,r),t=t.sibling}function Sk(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:lo(e,t,n,r),i&2048&&If(9,t);break;case 3:lo(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&&zf(e)));break;case 12:if(i&2048){lo(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,u=a.id,s=a.onPostCommit;typeof s=="function"&&s(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){xt(t,t.return,c)}}else lo(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,t.memoizedState!==null?a._visibility&4?lo(e,t,n,r):ff(e,t):a._visibility&4?lo(e,t,n,r):(a._visibility|=4,Rl(e,t,n,r,(t.subtreeFlags&10256)!==0)),i&2048&&Yy(t.alternate,t);break;case 24:lo(e,t,n,r),i&2048&&Qy(t.alternate,t);break;default:lo(e,t,n,r)}}function Rl(e,t,n,r,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var a=e,u=t,s=n,c=r,f=u.flags;switch(u.tag){case 0:case 11:case 15:Rl(a,u,s,c,i),If(8,u);break;case 23:break;case 22:var p=u.stateNode;u.memoizedState!==null?p._visibility&4?Rl(a,u,s,c,i):ff(a,u):(p._visibility|=4,Rl(a,u,s,c,i)),i&&f&2048&&Yy(u.alternate,u);break;case 24:Rl(a,u,s,c,i),i&&f&2048&&Qy(u.alternate,u);break;default:Rl(a,u,s,c,i)}t=t.sibling}}function ff(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:ff(n,r),i&2048&&Yy(r.alternate,r);break;case 24:ff(n,r),i&2048&&Qy(r.alternate,r);break;default:ff(n,r)}t=t.sibling}}var Zc=8192;function Bl(e){if(e.subtreeFlags&Zc)for(e=e.child;e!==null;)Tk(e),e=e.sibling}function Tk(e){switch(e.tag){case 26:Bl(e),e.flags&Zc&&e.memoizedState!==null&&tG(Di,e.memoizedState,e.memoizedProps);break;case 5:Bl(e);break;case 3:case 4:var t=Di;Di=jd(e.stateNode.containerInfo),Bl(e),Di=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Zc,Zc=16777216,Bl(e),Zc=t):Bl(e));break;default:Bl(e)}}function kk(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 Vc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cn=r,Ok(r,e)}kk(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bk(e),e=e.sibling}function Bk(e){switch(e.tag){case 0:case 11:case 15:Vc(e),e.flags&2048&&Bo(9,e,e.return);break;case 3:Vc(e);break;case 12:Vc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,hd(e)):Vc(e);break;default:Vc(e)}}function hd(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cn=r,Ok(r,e)}kk(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Bo(8,t,t.return),hd(t);break;case 22:n=t.stateNode,n._visibility&4&&(n._visibility&=-5,hd(t));break;default:hd(t)}e=e.sibling}}function Ok(e,t){for(;cn!==null;){var n=cn;switch(n.tag){case 0:case 11:case 15:Bo(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:zf(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,cn=r;else e:for(n=e;cn!==null;){r=cn;var i=r.sibling,a=r.return;if(xk(r),r===n){cn=null;break e}if(i!==null){i.return=a,cn=i;break e}cn=a}}}function g$(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 ai(e,t,n,r){return new g$(e,t,n,r)}function Xy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Do(e,t){var n=e.alternate;return n===null?(n=ai(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&31457280,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 Mk(e,t){e.flags&=31457282;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 gd(e,t,n,r,i,a){var u=0;if(r=e,typeof e=="function")Xy(e)&&(u=1);else if(typeof e=="string")u=J$(e,n,Vi.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case _l:return wu(n.children,i,a,t);case RS:u=8,i|=24;break;case A1:return e=ai(12,n,t,i|2),e.elementType=A1,e.lanes=a,e;case S1:return e=ai(13,n,t,i),e.elementType=S1,e.lanes=a,e;case T1:return e=ai(19,n,t,i),e.elementType=T1,e.lanes=a,e;case _S:return Rk(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hj:case Aa:u=10;break e;case FS:u=9;break e;case yy:u=11;break e;case Ey:u=14;break e;case co:u=16,r=null;break e}u=29,n=Error(ie(130,e===null?"null":typeof e,"")),r=null}return t=ai(u,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function wu(e,t,n,r){return e=ai(7,e,r,t),e.lanes=n,e}function Rk(e,t,n,r){e=ai(22,e,r,t),e.elementType=_S,e.lanes=n;var i={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var a=i._current;if(a===null)throw Error(ie(456));if(!(i._pendingVisibility&2)){var u=To(a,2);u!==null&&(i._pendingVisibility|=2,$n(u,a,2))}},attach:function(){var a=i._current;if(a===null)throw Error(ie(456));if(i._pendingVisibility&2){var u=To(a,2);u!==null&&(i._pendingVisibility&=-3,$n(u,a,2))}}};return e.stateNode=i,e}function g1(e,t,n){return e=ai(6,e,null,t),e.lanes=n,e}function v1(e,t,n){return t=ai(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xa(e){e.flags|=4}function aS(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Jk(t)){if(t=ui.current,t!==null&&((lt&4194176)===lt?Gi!==null:(lt&62914560)!==lt&&!(lt&536870912)||t!==Gi))throw rf=U1,yT;e.flags|=8192}}function td(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?HS():536870912,e.lanes|=t,as|=t)}function $c(e,t){if(!ft)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 Lt(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&31457280,r|=i.flags&31457280,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 v$(e,t,n){var r=t.pendingProps;switch(My(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(t),null;case 1:return Lt(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Oa(nn),Jl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(qc(t)?xa(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ci!==null&&(uy(Ci),Ci=null))),Lt(t),null;case 26:return n=t.memoizedState,e===null?(xa(t),n!==null?(Lt(t),aS(t,n)):(Lt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(xa(t),Lt(t),aS(t,n)):(Lt(t),t.flags&=-16777217):(e.memoizedProps!==r&&xa(t),Lt(t),t.flags&=-16777217),null;case 27:Dd(t),n=Eo.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==r&&xa(t);else{if(!r){if(t.stateNode===null)throw Error(ie(166));return Lt(t),null}e=Vi.current,qc(t)?z2(t,e):(e=Qk(i,r,n),t.stateNode=e,xa(t))}return Lt(t),null;case 5:if(Dd(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&xa(t);else{if(!r){if(t.stateNode===null)throw Error(ie(166));return Lt(t),null}if(e=Vi.current,qc(t))z2(t,e);else{switch(i=qd(Eo.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?i.createElement(n,{is:r.is}):i.createElement(n)}}e[Mn]=t,e[lr]=r;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(wn(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&xa(t)}}return Lt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&xa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ie(166));if(e=Eo.current,qc(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Vn,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Mn]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||Wk(e.nodeValue,n)),e||Tu(t)}else e=qd(e).createTextNode(r),e[Mn]=t,t.stateNode=e}return Lt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=qc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(ie(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ie(317));i[Mn]=t}else _f(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lt(t),i=!1}else Ci!==null&&(uy(Ci),Ci=null),i=!0;if(!i)return t.flags&256?(ka(t),t):(ka(t),null)}if(ka(t),t.flags&128)return t.lanes=n,t;if(n=r!==null,e=e!==null&&e.memoizedState!==null,n){r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool);var a=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),td(t,t.updateQueue),Lt(t),null;case 4:return Jl(),e===null&&rE(t.stateNode.containerInfo),Lt(t),null;case 10:return Oa(t.type),Lt(t),null;case 19:if(pn(rn),i=t.memoizedState,i===null)return Lt(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)$c(i,!1);else{if(Ht!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Od(e),a!==null){for(t.flags|=128,$c(i,!1),e=a.updateQueue,t.updateQueue=e,td(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Mk(n,e),n=n.sibling;return Ot(rn,rn.current&1|2),t.child}e=e.sibling}i.tail!==null&&$i()>Pd&&(t.flags|=128,r=!0,$c(i,!1),t.lanes=4194304)}else{if(!r)if(e=Od(a),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,td(t,e),$c(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ft)return Lt(t),null}else 2*$i()-i.renderingStartTime>Pd&&n!==536870912&&(t.flags|=128,r=!0,$c(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$i(),t.sibling=null,e=rn.current,Ot(rn,r?e&1|2:e&1),t):(Lt(t),null);case 22:case 23:return ka(t),Ry(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Lt(t),t.subtreeFlags&6&&(t.flags|=8192)):Lt(t),n=t.updateQueue,n!==null&&td(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&&pn(Cu),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Oa(nn),Lt(t),null;case 25:return null}throw Error(ie(156,t.tag))}function y$(e,t){switch(My(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oa(nn),Jl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Dd(t),null;case 13:if(ka(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ie(340));_f()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pn(rn),null;case 4:return Jl(),null;case 10:return Oa(t.type),null;case 22:case 23:return ka(t),Ry(),e!==null&&pn(Cu),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Oa(nn),null;case 25:return null;default:return null}}function Fk(e,t){switch(My(t),t.tag){case 3:Oa(nn),Jl();break;case 26:case 27:case 5:Dd(t);break;case 4:Jl();break;case 13:ka(t);break;case 19:pn(rn);break;case 10:Oa(t.type);break;case 22:case 23:ka(t),Ry(),e!==null&&pn(Cu);break;case 24:Oa(nn)}}var E$={getCacheForType:function(e){var t=Rn(nn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},b$=typeof WeakMap=="function"?WeakMap:Map,Pt=0,wt=null,et=null,lt=0,Ct=0,Cr=null,Ca=!1,fs=!1,Zy=!1,_a=0,Ht=0,Oo=0,Au=0,Jy=0,oi=0,as=0,mf=null,ji=null,ry=!1,eE=0,Pd=1/0,Id=null,Co=null,nd=!1,yu=null,pf=0,iy=0,ay=null,df=0,oy=null;function Tr(){if(Pt&2&<!==0)return lt&-lt;if(Ue.T!==null){var e=rs;return e!==0?e:nE()}return $S()}function _k(){oi===0&&(oi=!(lt&536870912)||ft?US():536870912);var e=ui.current;return e!==null&&(e.flags|=32),oi}function $n(e,t,n){(e===wt&&Ct===2||e.cancelPendingCommit!==null)&&(os(e,0),wa(e,lt,oi,!1)),Rf(e,n),(!(Pt&2)||e!==wt)&&(e===wt&&(!(Pt&2)&&(Au|=n),Ht===4&&wa(e,lt,oi,!1)),Yi(e))}function zk(e,t,n){if(Pt&6)throw Error(ie(327));var r=!n&&(t&60)===0&&(t&e.expiredLanes)===0||Mf(e,t),i=r?C$(e,t):y1(e,t,!0),a=r;do{if(i===0){fs&&!r&&wa(e,t,0,!1);break}else if(i===6)wa(e,t,0,!Ca);else{if(n=e.current.alternate,a&&!x$(n)){i=y1(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var s=e;i=mf;var c=s.current.memoizedState.isDehydrated;if(c&&(os(s,u).flags|=256),u=y1(s,u,!1),u!==2){if(Zy&&!c){s.errorRecoveryDisabledLanes|=a,Au|=a,i=4;break e}a=ji,ji=i,a!==null&&uy(a)}i=u}if(a=!1,i!==2)continue}}if(i===1){os(e,0),wa(e,t,0,!0);break}e:{switch(r=e,i){case 0:case 1:throw Error(ie(345));case 4:if((t&4194176)===t){wa(r,t,oi,!Ca);break e}break;case 2:ji=null;break;case 3:case 5:break;default:throw Error(ie(329))}if(r.finishedWork=n,r.finishedLanes=t,(t&62914560)===t&&(a=eE+300-$i(),10<a)){if(wa(r,t,oi,!Ca),Kd(r,0)!==0)break e;r.timeoutHandle=Yk(oS.bind(null,r,n,ji,Id,ry,t,oi,Au,as,Ca,2,-0,0),a);break e}oS(r,n,ji,Id,ry,t,oi,Au,as,Ca,0,-0,0)}}break}while(1);Yi(e)}function uy(e){ji===null?ji=e:ji.push.apply(ji,e)}function oS(e,t,n,r,i,a,u,s,c,f,p,h,g){var d=t.subtreeFlags;if((d&8192||(d&16785408)===16785408)&&(Af={stylesheets:null,count:0,unsuspend:eG},Tk(t),t=nG(),t!==null)){e.cancelPendingCommit=t(lS.bind(null,e,n,r,i,u,s,c,1,h,g)),wa(e,a,u,!f);return}lS(e,n,r,i,u,s,c,p,h,g)}function x$(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(!kr(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 wa(e,t,n,r){t&=~Jy,t&=~Au,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Sr(i),u=1<<a;r[a]=-1,i&=~u}n!==0&&qS(e,n,t)}function ih(){return Pt&6?!0:(Nf(0,!1),!1)}function tE(){if(et!==null){if(Ct===0)var e=et.return;else e=et,Ba=Pu=null,Ny(e),Kl=null,xf=0,e=et;for(;e!==null;)Fk(e.alternate,e),e=e.return;et=null}}function os(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,I$(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),tE(),wt=e,et=n=Do(e.current,null),lt=t,Ct=0,Cr=null,Ca=!1,fs=Mf(e,t),Zy=!1,as=oi=Jy=Au=Oo=Ht=0,ji=mf=null,ry=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Sr(r),a=1<<i;t|=e[i],r&=~a}return _a=t,Zd(),n}function Lk(e,t){Ke=null,Ue.H=Wi,t===nf?(t=I2(),Ct=3):t===yT?(t=I2(),Ct=4):Ct=t===uk?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Cr=t,et===null&&(Ht=1,_d(e,ii(t,e.current)))}function Pk(){var e=Ue.H;return Ue.H=Wi,e===null?Wi:e}function Ik(){var e=Ue.A;return Ue.A=E$,e}function ly(){Ht=4,Ca||(lt&4194176)!==lt&&ui.current!==null||(fs=!0),!(Oo&134217727)&&!(Au&134217727)||wt===null||wa(wt,lt,oi,!1)}function y1(e,t,n){var r=Pt;Pt|=2;var i=Pk(),a=Ik();(wt!==e||lt!==t)&&(Id=null,os(e,t)),t=!1;var u=Ht;e:do try{if(Ct!==0&&et!==null){var s=et,c=Cr;switch(Ct){case 8:tE(),u=6;break e;case 3:case 2:case 6:ui.current===null&&(t=!0);var f=Ct;if(Ct=0,Cr=null,Vl(e,s,c,f),n&&fs){u=0;break e}break;default:f=Ct,Ct=0,Cr=null,Vl(e,s,c,f)}}D$(),u=Ht;break}catch(p){Lk(e,p)}while(1);return t&&e.shellSuspendCounter++,Ba=Pu=null,Pt=r,Ue.H=i,Ue.A=a,et===null&&(wt=null,lt=0,Zd()),u}function D$(){for(;et!==null;)Nk(et)}function C$(e,t){var n=Pt;Pt|=2;var r=Pk(),i=Ik();wt!==e||lt!==t?(Id=null,Pd=$i()+500,os(e,t)):fs=Mf(e,t);e:do try{if(Ct!==0&&et!==null){t=et;var a=Cr;t:switch(Ct){case 1:Ct=0,Cr=null,Vl(e,t,a,1);break;case 2:if(P2(a)){Ct=0,Cr=null,uS(t);break}t=function(){Ct===2&&wt===e&&(Ct=7),Yi(e)},a.then(t,t);break e;case 3:Ct=7;break e;case 4:Ct=5;break e;case 7:P2(a)?(Ct=0,Cr=null,uS(t)):(Ct=0,Cr=null,Vl(e,t,a,7));break;case 5:var u=null;switch(et.tag){case 26:u=et.memoizedState;case 5:case 27:var s=et;if(!u||Jk(u)){Ct=0,Cr=null;var c=s.sibling;if(c!==null)et=c;else{var f=s.return;f!==null?(et=f,ah(f)):et=null}break t}}Ct=0,Cr=null,Vl(e,t,a,5);break;case 6:Ct=0,Cr=null,Vl(e,t,a,6);break;case 8:tE(),Ht=6;break e;default:throw Error(ie(462))}}w$();break}catch(p){Lk(e,p)}while(1);return Ba=Pu=null,Ue.H=r,Ue.A=i,Pt=n,et!==null?0:(wt=null,lt=0,Zd(),Ht)}function w$(){for(;et!==null&&!Gj();)Nk(et)}function Nk(e){var t=mk(e.alternate,e,_a);e.memoizedProps=e.pendingProps,t===null?ah(e):et=t}function uS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Z2(n,t,t.pendingProps,t.type,void 0,lt);break;case 11:t=Z2(n,t,t.pendingProps,t.type.render,t.ref,lt);break;case 5:Ny(t);default:Fk(n,t),t=et=Mk(t,_a),t=mk(n,t,_a)}e.memoizedProps=e.pendingProps,t===null?ah(e):et=t}function Vl(e,t,n,r){Ba=Pu=null,Ny(t),Kl=null,xf=0;var i=t.return;try{if(m$(e,i,t,n,lt)){Ht=1,_d(e,ii(n,e.current)),et=null;return}}catch(a){if(i!==null)throw et=i,a;Ht=1,_d(e,ii(n,e.current)),et=null;return}t.flags&32768?(ft||r===1?e=!0:fs||lt&536870912?e=!1:(Ca=e=!0,(r===2||r===3||r===6)&&(r=ui.current,r!==null&&r.tag===13&&(r.flags|=16384))),Uk(t,e)):ah(t)}function ah(e){var t=e;do{if(t.flags&32768){Uk(t,Ca);return}e=t.return;var n=v$(t.alternate,t,_a);if(n!==null){et=n;return}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);Ht===0&&(Ht=5)}function Uk(e,t){do{var n=y$(e.alternate,e);if(n!==null){n.flags&=32767,et=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){et=e;return}et=e=n}while(e!==null);Ht=6,et=null}function lS(e,t,n,r,i,a,u,s,c,f){var p=Ue.T,h=Tt.p;try{Tt.p=2,Ue.T=null,A$(e,t,n,r,h,i,a,u,s,c,f)}finally{Ue.T=p,Tt.p=h}}function A$(e,t,n,r,i,a,u,s){do Zl();while(yu!==null);if(Pt&6)throw Error(ie(327));var c=e.finishedWork;if(r=e.finishedLanes,c===null)return null;if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(ie(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var f=c.lanes|c.childLanes;if(f|=ky,rV(e,r,f,a,u,s),e===wt&&(et=wt=null,lt=0),!(c.subtreeFlags&10256)&&!(c.flags&10256)||nd||(nd=!0,iy=f,ay=n,B$(Cd,function(){return Zl(!0),null})),n=(c.flags&15990)!==0,c.subtreeFlags&15990||n?(n=Ue.T,Ue.T=null,a=Tt.p,Tt.p=2,u=Pt,Pt|=4,d$(e,c),wk(c,e),YV(my,e.containerInfo),Gd=!!fy,my=fy=null,e.current=c,bk(e,c.alternate,c),Wj(),Pt=u,Tt.p=a,Ue.T=n):e.current=c,nd?(nd=!1,yu=e,pf=r):Hk(e,f),f=e.pendingLanes,f===0&&(Co=null),Zj(c.stateNode,i),Yi(e),t!==null)for(i=e.onRecoverableError,c=0;c<t.length;c++)f=t[c],i(f.value,{componentStack:f.stack});return pf&3&&Zl(),f=e.pendingLanes,r&4194218&&f&42?e===oy?df++:(df=0,oy=e):df=0,Nf(0,!1),null}function Hk(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zf(t)))}function Zl(){if(yu!==null){var e=yu,t=iy;iy=0;var n=VS(pf),r=Ue.T,i=Tt.p;try{if(Tt.p=32>n?32:n,Ue.T=null,yu===null)var a=!1;else{n=ay,ay=null;var u=yu,s=pf;if(yu=null,pf=0,Pt&6)throw Error(ie(331));var c=Pt;if(Pt|=4,Bk(u.current),Sk(u,u.current,s,n),Pt=c,Nf(0,!1),Ar&&typeof Ar.onPostCommitFiberRoot=="function")try{Ar.onPostCommitFiberRoot(Of,u)}catch{}a=!0}return a}finally{Tt.p=i,Ue.T=r,Hk(e,t)}}return!1}function sS(e,t,n){t=ii(n,t),t=W1(e.stateNode,t,2),e=xo(e,t,2),e!==null&&(Rf(e,2),Yi(e))}function xt(e,t,n){if(e.tag===3)sS(e,e,n);else for(;t!==null;){if(t.tag===3){sS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Co===null||!Co.has(r))){e=ii(n,e),n=ak(2),r=xo(t,n,2),r!==null&&(ok(n,r,t,e),Rf(r,2),Yi(r));break}}t=t.return}}function E1(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new b$;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)||(Zy=!0,i.add(n),e=S$.bind(null,e,t,n),t.then(e,e))}function S$(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,wt===e&&(lt&n)===n&&(Ht===4||Ht===3&&(lt&62914560)===lt&&300>$i()-eE?!(Pt&2)&&os(e,0):Jy|=n,as===lt&&(as=0)),Yi(e)}function qk(e,t){t===0&&(t=HS()),e=To(e,t),e!==null&&(Rf(e,t),Yi(e))}function T$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qk(e,n)}function k$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(ie(314))}r!==null&&r.delete(t),qk(e,n)}function B$(e,t){return by(e,t)}var Nd=null,Fl=null,sy=!1,Ud=!1,b1=!1,Su=0;function Yi(e){e!==Fl&&e.next===null&&(Fl===null?Nd=Fl=e:Fl=Fl.next=e),Ud=!0,sy||(sy=!0,M$(O$))}function Nf(e,t){if(!b1&&Ud){b1=!0;do for(var n=!1,r=Nd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var u=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Sr(42|e)+1)-1,a&=i&~(u&~s),a=a&201326677?a&201326677|1:a?a|2:0}a!==0&&(n=!0,cS(r,a))}else a=lt,a=Kd(r,r===wt?a:0),!(a&3)||Mf(r,a)||(n=!0,cS(r,a));r=r.next}while(n);b1=!1}}function O$(){Ud=sy=!1;var e=0;Su!==0&&(P$()&&(e=Su),Su=0);for(var t=$i(),n=null,r=Nd;r!==null;){var i=r.next,a=jk(r,t);a===0?(r.next=null,n===null?Nd=i:n.next=i,i===null&&(Fl=n)):(n=r,(e!==0||a&3)&&(Ud=!0)),r=i}Nf(e,!1)}function jk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var u=31-Sr(a),s=1<<u,c=i[u];c===-1?(!(s&n)||s&r)&&(i[u]=nV(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=wt,n=lt,n=Kd(e,e===t?n:0),r=e.callbackNode,n===0||e===t&&Ct===2||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Xv(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Mf(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Xv(r),VS(n)){case 2:case 8:n=IS;break;case 32:n=Cd;break;case 268435456:n=NS;break;default:n=Cd}return r=Vk.bind(null,e),n=by(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Xv(r),e.callbackPriority=2,e.callbackNode=null,2}function Vk(e,t){var n=e.callbackNode;if(Zl()&&e.callbackNode!==n)return null;var r=lt;return r=Kd(e,e===wt?r:0),r===0?null:(zk(e,r,t),jk(e,$i()),e.callbackNode!=null&&e.callbackNode===n?Vk.bind(null,e):null)}function cS(e,t){if(Zl())return null;zk(e,t,!0)}function M$(e){N$(function(){Pt&6?by(PS,e):e()})}function nE(){return Su===0&&(Su=US()),Su}function fS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:sd(""+e)}function mS(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 R$(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var a=fS((i[lr]||null).action),u=r.submitter;u&&(t=(t=u[lr]||null)?fS(t.formAction):u.getAttribute("formAction"),t!==null&&(a=t,u=null));var s=new Yd("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Su!==0){var c=u?mS(i,u):new FormData(i);$1(n,{pending:!0,data:c,method:i.method,action:a},null,c)}}else typeof a=="function"&&(s.preventDefault(),c=u?mS(i,u):new FormData(i),$1(n,{pending:!0,data:c,method:i.method,action:a},a,c))},currentTarget:i}]})}}for(rd=0;rd<F2.length;rd++)id=F2[rd],pS=id.toLowerCase(),dS=id[0].toUpperCase()+id.slice(1),Ai(pS,"on"+dS);var id,pS,dS,rd;Ai(fT,"onAnimationEnd");Ai(mT,"onAnimationIteration");Ai(pT,"onAnimationStart");Ai("dblclick","onDoubleClick");Ai("focusin","onFocus");Ai("focusout","onBlur");Ai(XV,"onTransitionRun");Ai(ZV,"onTransitionStart");Ai(JV,"onTransitionCancel");Ai(dT,"onTransitionEnd");es("onMouseEnter",["mouseout","mouseover"]);es("onMouseLeave",["mouseout","mouseover"]);es("onPointerEnter",["pointerout","pointerover"]);es("onPointerLeave",["pointerout","pointerover"]);Ru("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ru("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ru("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ru("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ru("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ru("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cf="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(" "),F$=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cf));function $k(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var u=r.length-1;0<=u;u--){var s=r[u],c=s.instance,f=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=f;try{a(i)}catch(p){Fd(p)}i.currentTarget=null,a=c}else for(u=0;u<r.length;u++){if(s=r[u],c=s.instance,f=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=f;try{a(i)}catch(p){Fd(p)}i.currentTarget=null,a=c}}}}function ut(e,t){var n=t[R1];n===void 0&&(n=t[R1]=new Set);var r=e+"__bubble";n.has(r)||(Gk(t,e,2,!1),n.add(r))}function x1(e,t,n){var r=0;t&&(r|=4),Gk(n,e,r,t)}var ad="_reactListening"+Math.random().toString(36).slice(2);function rE(e){if(!e[ad]){e[ad]=!0,GS.forEach(function(n){n!=="selectionchange"&&(F$.has(n)||x1(n,!1,e),x1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ad]||(t[ad]=!0,x1("selectionchange",!1,t))}}function Gk(e,t,n,r){switch(iB(t)){case 2:var i=aG;break;case 8:i=oG;break;default:i=uE}n=i.bind(null,t,n,e),i=void 0,!L1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function D1(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(u===4)for(u=r.return;u!==null;){var c=u.tag;if((c===3||c===4)&&(c=u.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;u=u.return}for(;s!==null;){if(u=Eu(s),u===null)return;if(c=u.tag,c===5||c===6||c===26||c===27){r=a=u;continue e}s=s.parentNode}}r=r.return}eT(function(){var f=a,p=Cy(n),h=[];e:{var g=hT.get(e);if(g!==void 0){var d=Yd,b=e;switch(e){case"keypress":if(fd(n)===0)break e;case"keydown":case"keyup":d=kV;break;case"focusin":b="focus",d=n1;break;case"focusout":b="blur",d=n1;break;case"beforeblur":case"afterblur":d=n1;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=D2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=gV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=MV;break;case fT:case mT:case pT:d=EV;break;case dT:d=FV;break;case"scroll":case"scrollend":d=dV;break;case"wheel":d=zV;break;case"copy":case"cut":case"paste":d=xV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=w2;break;case"toggle":case"beforetoggle":d=PV}var A=(t&4)!==0,O=!A&&(e==="scroll"||e==="scrollend"),E=A?g!==null?g+"Capture":null:g;A=[];for(var D=f,C;D!==null;){var M=D;if(C=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||C===null||E===null||(M=vf(D,E),M!=null&&A.push(wf(D,M,C))),O)break;D=D.return}0<A.length&&(g=new d(g,b,null,n,p),h.push({event:g,listeners:A}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",g&&n!==z1&&(b=n.relatedTarget||n.fromElement)&&(Eu(b)||b[ss]))break e;if((d||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,d?(b=n.relatedTarget||n.toElement,d=f,b=b?Eu(b):null,b!==null&&(O=ls(b),A=b.tag,b!==O||A!==5&&A!==27&&A!==6)&&(b=null)):(d=null,b=f),d!==b)){if(A=D2,M="onMouseLeave",E="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(A=w2,M="onPointerLeave",E="onPointerEnter",D="pointer"),O=d==null?g:Xc(d),C=b==null?g:Xc(b),g=new A(M,D+"leave",d,n,p),g.target=O,g.relatedTarget=C,M=null,Eu(p)===f&&(A=new A(E,D+"enter",b,n,p),A.target=C,A.relatedTarget=O,M=A),O=M,d&&b)t:{for(A=d,E=b,D=0,C=A;C;C=Ol(C))D++;for(C=0,M=E;M;M=Ol(M))C++;for(;0<D-C;)A=Ol(A),D--;for(;0<C-D;)E=Ol(E),C--;for(;D--;){if(A===E||E!==null&&A===E.alternate)break t;A=Ol(A),E=Ol(E)}A=null}else A=null;d!==null&&hS(h,g,d,A,!1),b!==null&&O!==null&&hS(h,O,b,A,!0)}}e:{if(g=f?Xc(f):window,d=g.nodeName&&g.nodeName.toLowerCase(),d==="select"||d==="input"&&g.type==="file")var L=k2;else if(T2(g))if(oT)L=WV;else{L=$V;var B=VV}else d=g.nodeName,!d||d.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?f&&Dy(f.elementType)&&(L=k2):L=GV;if(L&&(L=L(e,f))){aT(h,L,n,p);break e}B&&B(e,g,f),e==="focusout"&&f&&g.type==="number"&&f.memoizedProps.value!=null&&_1(g,"number",g.value)}switch(B=f?Xc(f):window,e){case"focusin":(T2(B)||B.contentEditable==="true")&&(Il=B,P1=f,tf=null);break;case"focusout":tf=P1=Il=null;break;case"mousedown":I1=!0;break;case"contextmenu":case"mouseup":case"dragend":I1=!1,R2(h,n,p);break;case"selectionchange":if(QV)break;case"keydown":case"keyup":R2(h,n,p)}var H;if(Sy)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Pl?rT(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(nT&&n.locale!=="ko"&&(Pl||j!=="onCompositionStart"?j==="onCompositionEnd"&&Pl&&(H=tT()):(yo=p,wy="value"in yo?yo.value:yo.textContent,Pl=!0)),B=Hd(f,j),0<B.length&&(j=new C2(j,e,null,n,p),h.push({event:j,listeners:B}),H?j.data=H:(H=iT(n),H!==null&&(j.data=H)))),(H=NV?UV(e,n):HV(e,n))&&(j=Hd(f,"onBeforeInput"),0<j.length&&(B=new C2("onBeforeInput","beforeinput",null,n,p),h.push({event:B,listeners:j}),B.data=H)),R$(h,e,f,n,p)}$k(h,t)})}function wf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hd(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=vf(e,n),i!=null&&r.unshift(wf(e,i,a)),i=vf(e,t),i!=null&&r.push(wf(e,i,a))),e=e.return}return r}function Ol(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hS(e,t,n,r,i){for(var a=t._reactName,u=[];n!==null&&n!==r;){var s=n,c=s.alternate,f=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||f===null||(c=f,i?(f=vf(n,a),f!=null&&u.unshift(wf(n,f,c))):i||(f=vf(n,a),f!=null&&u.push(wf(n,f,c)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var _$=/\r\n?/g,z$=/\u0000|\uFFFD/g;function gS(e){return(typeof e=="string"?e:""+e).replace(_$,`
|
|
9
|
+
`).replace(z$,"")}function Wk(e,t){return t=gS(t),gS(e)===t}function oh(){}function vt(e,t,n,r,i,a){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||ts(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&ts(e,""+r);break;case"className":Wp(e,"class",r);break;case"tabIndex":Wp(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Wp(e,n,r);break;case"style":JS(e,r,a);break;case"data":if(t!=="object"){Wp(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=sd(""+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"&&vt(e,t,"name",i.name,i,null),vt(e,t,"formEncType",i.formEncType,i,null),vt(e,t,"formMethod",i.formMethod,i,null),vt(e,t,"formTarget",i.formTarget,i,null)):(vt(e,t,"encType",i.encType,i,null),vt(e,t,"method",i.method,i,null),vt(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=sd(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=oh);break;case"onScroll":r!=null&&ut("scroll",e);break;case"onScrollEnd":r!=null&&ut("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(ie(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(ie(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=sd(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":ut("beforetoggle",e),ut("toggle",e),ld(e,"popover",r);break;case"xlinkActuate":ya(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ya(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ya(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ya(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ya(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ya(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ya(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ya(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ya(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":ld(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=mV.get(n)||n,ld(e,n,r))}}function cy(e,t,n,r,i,a){switch(n){case"style":JS(e,r,a);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(ie(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(ie(60));e.innerHTML=n}}break;case"children":typeof r=="string"?ts(e,r):(typeof r=="number"||typeof r=="bigint")&&ts(e,""+r);break;case"onScroll":r!=null&&ut("scroll",e);break;case"onScrollEnd":r!=null&&ut("scrollend",e);break;case"onClick":r!=null&&(e.onclick=oh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!WS.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),a=e[lr]||null,a=a!=null?a[n]:null,typeof a=="function"&&e.removeEventListener(t,a,i),typeof r=="function")){typeof a!="function"&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):ld(e,n,r)}}}function wn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ut("error",e),ut("load",e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var u=n[a];if(u!=null)switch(a){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(ie(137,t));default:vt(e,t,a,u,n,null)}}i&&vt(e,t,"srcSet",n.srcSet,n,null),r&&vt(e,t,"src",n.src,n,null);return;case"input":ut("invalid",e);var s=a=u=i=null,c=null,f=null;for(r in n)if(n.hasOwnProperty(r)){var p=n[r];if(p!=null)switch(r){case"name":i=p;break;case"type":u=p;break;case"checked":c=p;break;case"defaultChecked":f=p;break;case"value":a=p;break;case"defaultValue":s=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(ie(137,t));break;default:vt(e,t,r,p,n,null)}}QS(e,a,s,c,f,u,i,!1),wd(e);return;case"select":ut("invalid",e),r=u=a=null;for(i in n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case"value":a=s;break;case"defaultValue":u=s;break;case"multiple":r=s;default:vt(e,t,i,s,n,null)}t=a,n=u,e.multiple=!!r,t!=null?Gl(e,!!r,t,!1):n!=null&&Gl(e,!!r,n,!0);return;case"textarea":ut("invalid",e),a=i=r=null;for(u in n)if(n.hasOwnProperty(u)&&(s=n[u],s!=null))switch(u){case"value":r=s;break;case"defaultValue":i=s;break;case"children":a=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(ie(91));break;default:vt(e,t,u,s,n,null)}ZS(e,r,i,a),wd(e);return;case"option":for(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:vt(e,t,c,r,n,null)}return;case"dialog":ut("cancel",e),ut("close",e);break;case"iframe":case"object":ut("load",e);break;case"video":case"audio":for(r=0;r<Cf.length;r++)ut(Cf[r],e);break;case"image":ut("error",e),ut("load",e);break;case"details":ut("toggle",e);break;case"embed":case"source":case"link":ut("error",e),ut("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(f in n)if(n.hasOwnProperty(f)&&(r=n[f],r!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(ie(137,t));default:vt(e,t,f,r,n,null)}return;default:if(Dy(t)){for(p in n)n.hasOwnProperty(p)&&(r=n[p],r!==void 0&&cy(e,t,p,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&vt(e,t,s,r,n,null))}function L$(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,u=null,s=null,c=null,f=null,p=null;for(d in n){var h=n[d];if(n.hasOwnProperty(d)&&h!=null)switch(d){case"checked":break;case"value":break;case"defaultValue":c=h;default:r.hasOwnProperty(d)||vt(e,t,d,null,r,h)}}for(var g in r){var d=r[g];if(h=n[g],r.hasOwnProperty(g)&&(d!=null||h!=null))switch(g){case"type":a=d;break;case"name":i=d;break;case"checked":f=d;break;case"defaultChecked":p=d;break;case"value":u=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(ie(137,t));break;default:d!==h&&vt(e,t,g,d,r,h)}}F1(e,u,s,c,f,p,a,i);return;case"select":d=u=s=g=null;for(a in n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case"value":break;case"multiple":d=c;default:r.hasOwnProperty(a)||vt(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case"value":g=a;break;case"defaultValue":s=a;break;case"multiple":u=a;default:a!==c&&vt(e,t,i,a,r,c)}t=s,n=u,r=d,g!=null?Gl(e,!!n,g,!1):!!r!=!!n&&(t!=null?Gl(e,!!n,t,!0):Gl(e,!!n,n?[]:"",!1));return;case"textarea":d=g=null;for(s in n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:vt(e,t,s,null,r,i)}for(u in r)if(i=r[u],a=n[u],r.hasOwnProperty(u)&&(i!=null||a!=null))switch(u){case"value":g=i;break;case"defaultValue":d=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(ie(91));break;default:i!==a&&vt(e,t,u,i,r,a)}XS(e,g,d);return;case"option":for(var b in n)if(g=n[b],n.hasOwnProperty(b)&&g!=null&&!r.hasOwnProperty(b))switch(b){case"selected":e.selected=!1;break;default:vt(e,t,b,null,r,g)}for(c in r)if(g=r[c],d=n[c],r.hasOwnProperty(c)&&g!==d&&(g!=null||d!=null))switch(c){case"selected":e.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:vt(e,t,c,g,r,d)}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 A in n)g=n[A],n.hasOwnProperty(A)&&g!=null&&!r.hasOwnProperty(A)&&vt(e,t,A,null,r,g);for(f in r)if(g=r[f],d=n[f],r.hasOwnProperty(f)&&g!==d&&(g!=null||d!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(ie(137,t));break;default:vt(e,t,f,g,r,d)}return;default:if(Dy(t)){for(var O in n)g=n[O],n.hasOwnProperty(O)&&g!==void 0&&!r.hasOwnProperty(O)&&cy(e,t,O,void 0,r,g);for(p in r)g=r[p],d=n[p],!r.hasOwnProperty(p)||g===d||g===void 0&&d===void 0||cy(e,t,p,g,r,d);return}}for(var E in n)g=n[E],n.hasOwnProperty(E)&&g!=null&&!r.hasOwnProperty(E)&&vt(e,t,E,null,r,g);for(h in r)g=r[h],d=n[h],!r.hasOwnProperty(h)||g===d||g==null&&d==null||vt(e,t,h,g,r,d)}var fy=null,my=null;function qd(e){return e.nodeType===9?e:e.ownerDocument}function vS(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 Kk(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 py(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 C1=null;function P$(){var e=window.event;return e&&e.type==="popstate"?e===C1?!1:(C1=e,!0):(C1=null,!1)}var Yk=typeof setTimeout=="function"?setTimeout:void 0,I$=typeof clearTimeout=="function"?clearTimeout:void 0,yS=typeof Promise=="function"?Promise:void 0,N$=typeof queueMicrotask=="function"?queueMicrotask:typeof yS<"u"?function(e){return yS.resolve(null).then(e).catch(U$)}:Yk;function U$(e){setTimeout(function(){throw e})}function w1(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==="/$"){if(r===0){e.removeChild(i),Bf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Bf(t)}function dy(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":dy(n),xy(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function H$(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[gf])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(i.href==null?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=wi(e.nextSibling),e===null)break}return null}function q$(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=wi(e.nextSibling),e===null))return null;return e}function wi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function ES(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function Qk(e,t,n){switch(t=qd(n),e){case"html":if(e=t.documentElement,!e)throw Error(ie(452));return e;case"head":if(e=t.head,!e)throw Error(ie(453));return e;case"body":if(e=t.body,!e)throw Error(ie(454));return e;default:throw Error(ie(451))}}var li=new Map,bS=new Set;function jd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var za=Tt.d;Tt.d={f:j$,r:V$,D:$$,C:G$,L:W$,m:K$,X:Q$,S:Y$,M:X$};function j$(){var e=za.f(),t=ih();return e||t}function V$(e){var t=cs(e);t!==null&&t.tag===5&&t.type==="form"?QT(t):za.r(e)}var ms=typeof document>"u"?null:document;function Xk(e,t,n){var r=ms;if(r&&typeof t=="string"&&t){var i=ri(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),bS.has(i)||(bS.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),wn(t,"link",e),fn(t),r.head.appendChild(t)))}}function $$(e){za.D(e),Xk("dns-prefetch",e,null)}function G$(e,t){za.C(e,t),Xk("preconnect",e,t)}function W$(e,t,n){za.L(e,t,n);var r=ms;if(r&&e&&t){var i='link[rel="preload"][as="'+ri(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+ri(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+ri(n.imageSizes)+'"]')):i+='[href="'+ri(e)+'"]';var a=i;switch(t){case"style":a=us(e);break;case"script":a=ps(e)}li.has(a)||(e=kt({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),li.set(a,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(Uf(a))||t==="script"&&r.querySelector(Hf(a))||(t=r.createElement("link"),wn(t,"link",e),fn(t),r.head.appendChild(t)))}}function K$(e,t){za.m(e,t);var n=ms;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+ri(r)+'"][href="'+ri(e)+'"]',a=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=ps(e)}if(!li.has(a)&&(e=kt({rel:"modulepreload",href:e},t),li.set(a,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Hf(a)))return}r=n.createElement("link"),wn(r,"link",e),fn(r),n.head.appendChild(r)}}}function Y$(e,t,n){za.S(e,t,n);var r=ms;if(r&&e){var i=$l(r).hoistableStyles,a=us(e);t=t||"default";var u=i.get(a);if(!u){var s={loading:0,preload:null};if(u=r.querySelector(Uf(a)))s.loading=5;else{e=kt({rel:"stylesheet",href:e,"data-precedence":t},n),(n=li.get(a))&&iE(e,n);var c=u=r.createElement("link");fn(c),wn(c,"link",e),c._p=new Promise(function(f,p){c.onload=f,c.onerror=p}),c.addEventListener("load",function(){s.loading|=1}),c.addEventListener("error",function(){s.loading|=2}),s.loading|=4,vd(u,t,r)}u={type:"stylesheet",instance:u,count:1,state:s},i.set(a,u)}}}function Q$(e,t){za.X(e,t);var n=ms;if(n&&e){var r=$l(n).hoistableScripts,i=ps(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=kt({src:e,async:!0},t),(t=li.get(i))&&aE(e,t),a=n.createElement("script"),fn(a),wn(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function X$(e,t){za.M(e,t);var n=ms;if(n&&e){var r=$l(n).hoistableScripts,i=ps(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=kt({src:e,async:!0,type:"module"},t),(t=li.get(i))&&aE(e,t),a=n.createElement("script"),fn(a),wn(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function xS(e,t,n,r){var i=(i=Eo.current)?jd(i):null;if(!i)throw Error(ie(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=us(n.href),n=$l(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=us(n.href);var a=$l(i).hoistableStyles,u=a.get(e);if(u||(i=i.ownerDocument||i,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,u),(a=i.querySelector(Uf(e)))&&!a._p&&(u.instance=a,u.state.loading=5),li.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},li.set(e,n),a||Z$(i,e,n,u.state))),t&&r===null)throw Error(ie(528,""));return u}if(t&&r!==null)throw Error(ie(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ps(n),n=$l(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(ie(444,e))}}function us(e){return'href="'+ri(e)+'"'}function Uf(e){return'link[rel="stylesheet"]['+e+"]"}function Zk(e){return kt({},e,{"data-precedence":e.precedence,precedence:null})}function Z$(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}),wn(t,"link",n),fn(t),e.head.appendChild(t))}function ps(e){return'[src="'+ri(e)+'"]'}function Hf(e){return"script[async]"+e}function DS(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ri(n.href)+'"]');if(r)return t.instance=r,fn(r),r;var i=kt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),fn(r),wn(r,"style",i),vd(r,n.precedence,e),t.instance=r;case"stylesheet":i=us(n.href);var a=e.querySelector(Uf(i));if(a)return t.state.loading|=4,t.instance=a,fn(a),a;r=Zk(n),(i=li.get(i))&&iE(r,i),a=(e.ownerDocument||e).createElement("link"),fn(a);var u=a;return u._p=new Promise(function(s,c){u.onload=s,u.onerror=c}),wn(a,"link",r),t.state.loading|=4,vd(a,n.precedence,e),t.instance=a;case"script":return a=ps(n.src),(i=e.querySelector(Hf(a)))?(t.instance=i,fn(i),i):(r=n,(i=li.get(a))&&(r=kt({},n),aE(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),fn(i),wn(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(ie(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,vd(r,n.precedence,e));return t.instance}function vd(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,u=0;u<r.length;u++){var s=r[u];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 iE(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function aE(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var yd=null;function CS(e,t,n){if(yd===null){var r=new Map,i=yd=new Map;i.set(n,r)}else i=yd,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[gf]||a[Mn]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var u=a.getAttribute(t)||"";u=e+u;var s=r.get(u);s?s.push(a):r.set(u,[a])}}return r}function wS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function J$(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 Jk(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Af=null;function eG(){}function tG(e,t,n){if(Af===null)throw Error(ie(475));var r=Af;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var i=us(n.href),a=e.querySelector(Uf(i));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=Vd.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,fn(a);return}a=e.ownerDocument||e,n=Zk(n),(i=li.get(i))&&iE(n,i),a=a.createElement("link"),fn(a);var u=a;u._p=new Promise(function(s,c){u.onload=s,u.onerror=c}),wn(a,"link",n),t.instance=a}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=Vd.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function nG(){if(Af===null)throw Error(ie(475));var e=Af;return e.stylesheets&&e.count===0&&hy(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&hy(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Vd(){if(this.count--,this.count===0){if(this.stylesheets)hy(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $d=null;function hy(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$d=new Map,t.forEach(rG,e),$d=null,Vd.call(e))}function rG(e,t){if(!(t.state.loading&4)){var n=$d.get(e);if(n)var r=n.get(null);else{n=new Map,$d.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var u=i[a];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(n.set(u.dataset.precedence,u),r=u)}r&&n.set(null,r)}i=t.instance,u=i.getAttribute("data-precedence"),a=n.get(u)||r,a===r&&n.set(null,i),n.set(u,i),this.count++,r=Vd.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 Sf={$$typeof:Aa,Provider:null,Consumer:null,_currentValue:xu,_currentValue2:xu,_threadCount:0};function iG(e,t,n,r,i,a,u,s){this.tag=1,this.containerInfo=e,this.finishedWork=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=Zv(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zv(0),this.hiddenUpdates=Zv(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function eB(e,t,n,r,i,a,u,s,c,f,p,h){return e=new iG(e,t,n,u,s,c,f,h),t=1,a===!0&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=Fy(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ky(a),e}function tB(e){return e?(e=Hl,e):Hl}function nB(e,t,n,r,i,a){i=tB(i),r.context===null?r.context=i:r.pendingContext=i,r=bo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=xo(e,r,t),n!==null&&($n(n,e,t),lf(n,e,t))}function AS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function oE(e,t){AS(e,t),(e=e.alternate)&&AS(e,t)}function rB(e){if(e.tag===13){var t=To(e,67108864);t!==null&&$n(t,e,67108864),oE(e,67108864)}}var Gd=!0;function aG(e,t,n,r){var i=Ue.T;Ue.T=null;var a=Tt.p;try{Tt.p=2,uE(e,t,n,r)}finally{Tt.p=a,Ue.T=i}}function oG(e,t,n,r){var i=Ue.T;Ue.T=null;var a=Tt.p;try{Tt.p=8,uE(e,t,n,r)}finally{Tt.p=a,Ue.T=i}}function uE(e,t,n,r){if(Gd){var i=gy(r);if(i===null)D1(e,t,r,Wd,n),SS(e,r);else if(lG(i,e,t,n,r))r.stopPropagation();else if(SS(e,r),t&4&&-1<uG.indexOf(e)){for(;i!==null;){var a=cs(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var u=gu(a.pendingLanes);if(u!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;u;){var c=1<<31-Sr(u);s.entanglements[1]|=c,u&=~c}Yi(a),!(Pt&6)&&(Pd=$i()+500,Nf(0,!1))}}break;case 13:s=To(a,2),s!==null&&$n(s,a,2),ih(),oE(a,2)}if(a=gy(r),a===null&&D1(e,t,r,Wd,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else D1(e,t,r,null,n)}}function gy(e){return e=Cy(e),lE(e)}var Wd=null;function lE(e){if(Wd=null,e=Eu(e),e!==null){var t=ls(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=zS(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 Wd=e,null}function iB(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(Kj()){case PS:return 2;case IS:return 8;case Cd:case Yj:return 32;case NS:return 268435456;default:return 32}default:return 32}}var vy=!1,wo=null,Ao=null,So=null,Tf=new Map,kf=new Map,go=[],uG="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 SS(e,t){switch(e){case"focusin":case"focusout":wo=null;break;case"dragenter":case"dragleave":Ao=null;break;case"mouseover":case"mouseout":So=null;break;case"pointerover":case"pointerout":Tf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kf.delete(t.pointerId)}}function Gc(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=cs(t),t!==null&&rB(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function lG(e,t,n,r,i){switch(t){case"focusin":return wo=Gc(wo,e,t,n,r,i),!0;case"dragenter":return Ao=Gc(Ao,e,t,n,r,i),!0;case"mouseover":return So=Gc(So,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Tf.set(a,Gc(Tf.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,kf.set(a,Gc(kf.get(a)||null,e,t,n,r,i)),!0}return!1}function aB(e){var t=Eu(e.target);if(t!==null){var n=ls(t);if(n!==null){if(t=n.tag,t===13){if(t=zS(n),t!==null){e.blockedOn=t,iV(e.priority,function(){if(n.tag===13){var r=Tr(),i=To(n,r);i!==null&&$n(i,n,r),oE(n,r)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ed(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gy(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);z1=r,n.target.dispatchEvent(r),z1=null}else return t=cs(n),t!==null&&rB(t),e.blockedOn=n,!1;t.shift()}return!0}function TS(e,t,n){Ed(e)&&n.delete(t)}function sG(){vy=!1,wo!==null&&Ed(wo)&&(wo=null),Ao!==null&&Ed(Ao)&&(Ao=null),So!==null&&Ed(So)&&(So=null),Tf.forEach(TS),kf.forEach(TS)}function od(e,t){e.blockedOn===t&&(e.blockedOn=null,vy||(vy=!0,an.unstable_scheduleCallback(an.unstable_NormalPriority,sG)))}var ud=null;function kS(e){ud!==e&&(ud=e,an.unstable_scheduleCallback(an.unstable_NormalPriority,function(){ud===e&&(ud=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(lE(r||n)===null)continue;break}var a=cs(n);a!==null&&(e.splice(t,3),t-=3,$1(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Bf(e){function t(c){return od(c,e)}wo!==null&&od(wo,e),Ao!==null&&od(Ao,e),So!==null&&od(So,e),Tf.forEach(t),kf.forEach(t);for(var n=0;n<go.length;n++){var r=go[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<go.length&&(n=go[0],n.blockedOn===null);)aB(n),n.blockedOn===null&&go.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],u=i[lr]||null;if(typeof a=="function")u||kS(n);else if(u){var s=null;if(a&&a.hasAttribute("formAction")){if(i=a,u=a[lr]||null)s=u.formAction;else if(lE(i)!==null)continue}else s=u.action;typeof s=="function"?n[r+1]=s:(n.splice(r,3),r-=3),kS(n)}}}function sE(e){this._internalRoot=e}uh.prototype.render=sE.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ie(409));var n=t.current,r=Tr();nB(n,r,e,t,null,null)};uh.prototype.unmount=sE.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&Zl(),nB(e.current,2,null,e,null,null),ih(),t[ss]=null}};function uh(e){this._internalRoot=e}uh.prototype.unstable_scheduleHydration=function(e){if(e){var t=$S();e={blockedOn:null,target:e,priority:t};for(var n=0;n<go.length&&t!==0&&t<go[n].priority;n++);go.splice(n,0,e),n===0&&aB(e)}};var BS=OS.version;if(BS!=="19.0.0")throw Error(ie(527,BS,"19.0.0"));Tt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ie(188)):(e=Object.keys(e).join(","),Error(ie(268,e)));return e=$j(t),e=e!==null?LS(e):null,e=e===null?null:e.stateNode,e};var cG={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:Ue,findFiberByHostInstance:Eu,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Wc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Wc.isDisabled&&Wc.supportsFiber))try{Of=Wc.inject(cG),Ar=Wc}catch{}var Wc;lh.createRoot=function(e,t){if(!MS(e))throw Error(ie(299));var n=!1,r="",i=nk,a=rk,u=ik,s=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(s=t.unstable_transitionCallbacks)),t=eB(e,1,!1,null,null,n,r,i,a,u,s,null),e[ss]=t.current,rE(e.nodeType===8?e.parentNode:e),new sE(t)};lh.hydrateRoot=function(e,t,n){if(!MS(e))throw Error(ie(299));var r=!1,i="",a=nk,u=rk,s=ik,c=null,f=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(c=n.unstable_transitionCallbacks),n.formState!==void 0&&(f=n.formState)),t=eB(e,1,!0,t,n??null,r,i,a,u,s,c,f),t.context=tB(null),n=t.current,r=Tr(),i=bo(r),i.callback=null,xo(n,i,r),t.current.lanes=r,Rf(t,r),Yi(t),e[ss]=t.current,rE(e),new uh(t)};lh.version="19.0.0"});var sB=ge((rre,lB)=>{"use strict";function uB(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uB)}catch(e){console.error(e)}}uB(),lB.exports=oB()});var sh=ge((ds,qf)=>{(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",s=500,c="__lodash_placeholder__",f=1,p=2,h=4,g=1,d=2,b=1,A=2,O=4,E=8,D=16,C=32,M=64,L=128,B=256,H=512,j=30,ue="...",P=800,pe=16,ae=1,G=2,oe=3,Y=1/0,ve=9007199254740991,U=17976931348623157e292,ee=0/0,Q=4294967295,T=Q-1,he=Q>>>1,Ae=[["ary",L],["bind",b],["bindKey",A],["curry",E],["curryRight",D],["flip",H],["partial",C],["partialRight",M],["rearg",B]],k="[object Arguments]",Ce="[object Array]",je="[object AsyncFunction]",Re="[object Boolean]",Fe="[object Date]",Ne="[object DOMException]",tt="[object Error]",Xe="[object Function]",Ze="[object GeneratorFunction]",He="[object Map]",it="[object Number]",Nr="[object Null]",Ft="[object Object]",Ur="[object Promise]",zi="[object Proxy]",Ln="[object RegExp]",yn="[object Set]",Hr="[object String]",hi="[object Symbol]",Li="[object Undefined]",Pi="[object WeakMap]",ml="[object WeakSet]",Pn="[object ArrayBuffer]",In="[object DataView]",K="[object Float32Array]",se="[object Float64Array]",we="[object Int8Array]",at="[object Int16Array]",Ge="[object Int32Array]",En="[object Uint8Array]",tr="[object Uint8ClampedArray]",bn="[object Uint16Array]",gi="[object Uint32Array]",la=/\b__p \+= '';/g,At=/\b(__p \+=) '' \+/g,iu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nr=/&(?:amp|lt|gt|quot|#39);/g,Wm=/[&<>"']/g,Pz=RegExp(nr.source),Iz=RegExp(Wm.source),Nz=/<%-([\s\S]+?)%>/g,Uz=/<%([\s\S]+?)%>/g,cC=/<%=([\s\S]+?)%>/g,Hz=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qz=/^\w*$/,jz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D0=/[\\^$.*+?()[\]{}|]/g,Vz=RegExp(D0.source),C0=/^\s+/,$z=/\s/,Gz=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wz=/\{\n\/\* \[wrapped with (.+)\] \*/,Kz=/,? & /,Yz=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qz=/[()=,{}\[\]\/\s]/,Xz=/\\(\\)?/g,Zz=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fC=/\w*$/,Jz=/^[-+]0x[0-9a-f]+$/i,eL=/^0b[01]+$/i,tL=/^\[object .+?Constructor\]$/,nL=/^0o[0-7]+$/i,rL=/^(?:0|[1-9]\d*)$/,iL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Km=/($^)/,aL=/['\n\r\u2028\u2029\\]/g,Ym="\\ud800-\\udfff",oL="\\u0300-\\u036f",uL="\\ufe20-\\ufe2f",lL="\\u20d0-\\u20ff",mC=oL+uL+lL,pC="\\u2700-\\u27bf",dC="a-z\\xdf-\\xf6\\xf8-\\xff",sL="\\xac\\xb1\\xd7\\xf7",cL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fL="\\u2000-\\u206f",mL=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hC="A-Z\\xc0-\\xd6\\xd8-\\xde",gC="\\ufe0e\\ufe0f",vC=sL+cL+fL+mL,w0="['\u2019]",pL="["+Ym+"]",yC="["+vC+"]",Qm="["+mC+"]",EC="\\d+",dL="["+pC+"]",bC="["+dC+"]",xC="[^"+Ym+vC+EC+pC+dC+hC+"]",A0="\\ud83c[\\udffb-\\udfff]",hL="(?:"+Qm+"|"+A0+")",DC="[^"+Ym+"]",S0="(?:\\ud83c[\\udde6-\\uddff]){2}",T0="[\\ud800-\\udbff][\\udc00-\\udfff]",pl="["+hC+"]",CC="\\u200d",wC="(?:"+bC+"|"+xC+")",gL="(?:"+pl+"|"+xC+")",AC="(?:"+w0+"(?:d|ll|m|re|s|t|ve))?",SC="(?:"+w0+"(?:D|LL|M|RE|S|T|VE))?",TC=hL+"?",kC="["+gC+"]?",vL="(?:"+CC+"(?:"+[DC,S0,T0].join("|")+")"+kC+TC+")*",yL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",EL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",BC=kC+TC+vL,bL="(?:"+[dL,S0,T0].join("|")+")"+BC,xL="(?:"+[DC+Qm+"?",Qm,S0,T0,pL].join("|")+")",DL=RegExp(w0,"g"),CL=RegExp(Qm,"g"),k0=RegExp(A0+"(?="+A0+")|"+xL+BC,"g"),wL=RegExp([pl+"?"+bC+"+"+AC+"(?="+[yC,pl,"$"].join("|")+")",gL+"+"+SC+"(?="+[yC,pl+wC,"$"].join("|")+")",pl+"?"+wC+"+"+AC,pl+"+"+SC,EL,yL,EC,bL].join("|"),"g"),AL=RegExp("["+CC+Ym+mC+gC+"]"),SL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,TL=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kL=-1,St={};St[K]=St[se]=St[we]=St[at]=St[Ge]=St[En]=St[tr]=St[bn]=St[gi]=!0,St[k]=St[Ce]=St[Pn]=St[Re]=St[In]=St[Fe]=St[tt]=St[Xe]=St[He]=St[it]=St[Ft]=St[Ln]=St[yn]=St[Hr]=St[Pi]=!1;var Dt={};Dt[k]=Dt[Ce]=Dt[Pn]=Dt[In]=Dt[Re]=Dt[Fe]=Dt[K]=Dt[se]=Dt[we]=Dt[at]=Dt[Ge]=Dt[He]=Dt[it]=Dt[Ft]=Dt[Ln]=Dt[yn]=Dt[Hr]=Dt[hi]=Dt[En]=Dt[tr]=Dt[bn]=Dt[gi]=!0,Dt[tt]=Dt[Xe]=Dt[Pi]=!1;var BL={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},OL={"&":"&","<":"<",">":">",'"':""","'":"'"},ML={"&":"&","<":"<",">":">",""":'"',"'":"'"},RL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},FL=parseFloat,_L=parseInt,OC=typeof global=="object"&&global&&global.Object===Object&&global,zL=typeof self=="object"&&self&&self.Object===Object&&self,ln=OC||zL||Function("return this")(),B0=typeof ds=="object"&&ds&&!ds.nodeType&&ds,au=B0&&typeof qf=="object"&&qf&&!qf.nodeType&&qf,MC=au&&au.exports===B0,O0=MC&&OC.process,qr=function(){try{var I=au&&au.require&&au.require("util").types;return I||O0&&O0.binding&&O0.binding("util")}catch{}}(),RC=qr&&qr.isArrayBuffer,FC=qr&&qr.isDate,_C=qr&&qr.isMap,zC=qr&&qr.isRegExp,LC=qr&&qr.isSet,PC=qr&&qr.isTypedArray;function gr(I,X,$){switch($.length){case 0:return I.call(X);case 1:return I.call(X,$[0]);case 2:return I.call(X,$[0],$[1]);case 3:return I.call(X,$[0],$[1],$[2])}return I.apply(X,$)}function LL(I,X,$,ye){for(var ze=-1,pt=I==null?0:I.length;++ze<pt;){var en=I[ze];X(ye,en,$(en),I)}return ye}function jr(I,X){for(var $=-1,ye=I==null?0:I.length;++$<ye&&X(I[$],$,I)!==!1;);return I}function PL(I,X){for(var $=I==null?0:I.length;$--&&X(I[$],$,I)!==!1;);return I}function IC(I,X){for(var $=-1,ye=I==null?0:I.length;++$<ye;)if(!X(I[$],$,I))return!1;return!0}function Qa(I,X){for(var $=-1,ye=I==null?0:I.length,ze=0,pt=[];++$<ye;){var en=I[$];X(en,$,I)&&(pt[ze++]=en)}return pt}function Xm(I,X){var $=I==null?0:I.length;return!!$&&dl(I,X,0)>-1}function M0(I,X,$){for(var ye=-1,ze=I==null?0:I.length;++ye<ze;)if($(X,I[ye]))return!0;return!1}function Bt(I,X){for(var $=-1,ye=I==null?0:I.length,ze=Array(ye);++$<ye;)ze[$]=X(I[$],$,I);return ze}function Xa(I,X){for(var $=-1,ye=X.length,ze=I.length;++$<ye;)I[ze+$]=X[$];return I}function R0(I,X,$,ye){var ze=-1,pt=I==null?0:I.length;for(ye&&pt&&($=I[++ze]);++ze<pt;)$=X($,I[ze],ze,I);return $}function IL(I,X,$,ye){var ze=I==null?0:I.length;for(ye&&ze&&($=I[--ze]);ze--;)$=X($,I[ze],ze,I);return $}function F0(I,X){for(var $=-1,ye=I==null?0:I.length;++$<ye;)if(X(I[$],$,I))return!0;return!1}var NL=_0("length");function UL(I){return I.split("")}function HL(I){return I.match(Yz)||[]}function NC(I,X,$){var ye;return $(I,function(ze,pt,en){if(X(ze,pt,en))return ye=pt,!1}),ye}function Zm(I,X,$,ye){for(var ze=I.length,pt=$+(ye?1:-1);ye?pt--:++pt<ze;)if(X(I[pt],pt,I))return pt;return-1}function dl(I,X,$){return X===X?JL(I,X,$):Zm(I,UC,$)}function qL(I,X,$,ye){for(var ze=$-1,pt=I.length;++ze<pt;)if(ye(I[ze],X))return ze;return-1}function UC(I){return I!==I}function HC(I,X){var $=I==null?0:I.length;return $?L0(I,X)/$:ee}function _0(I){return function(X){return X==null?e:X[I]}}function z0(I){return function(X){return I==null?e:I[X]}}function qC(I,X,$,ye,ze){return ze(I,function(pt,en,Et){$=ye?(ye=!1,pt):X($,pt,en,Et)}),$}function jL(I,X){var $=I.length;for(I.sort(X);$--;)I[$]=I[$].value;return I}function L0(I,X){for(var $,ye=-1,ze=I.length;++ye<ze;){var pt=X(I[ye]);pt!==e&&($=$===e?pt:$+pt)}return $}function P0(I,X){for(var $=-1,ye=Array(I);++$<I;)ye[$]=X($);return ye}function VL(I,X){return Bt(X,function($){return[$,I[$]]})}function jC(I){return I&&I.slice(0,WC(I)+1).replace(C0,"")}function vr(I){return function(X){return I(X)}}function I0(I,X){return Bt(X,function($){return I[$]})}function xc(I,X){return I.has(X)}function VC(I,X){for(var $=-1,ye=I.length;++$<ye&&dl(X,I[$],0)>-1;);return $}function $C(I,X){for(var $=I.length;$--&&dl(X,I[$],0)>-1;);return $}function $L(I,X){for(var $=I.length,ye=0;$--;)I[$]===X&&++ye;return ye}var GL=z0(BL),WL=z0(OL);function KL(I){return"\\"+RL[I]}function YL(I,X){return I==null?e:I[X]}function hl(I){return AL.test(I)}function QL(I){return SL.test(I)}function XL(I){for(var X,$=[];!(X=I.next()).done;)$.push(X.value);return $}function N0(I){var X=-1,$=Array(I.size);return I.forEach(function(ye,ze){$[++X]=[ze,ye]}),$}function GC(I,X){return function($){return I(X($))}}function Za(I,X){for(var $=-1,ye=I.length,ze=0,pt=[];++$<ye;){var en=I[$];(en===X||en===c)&&(I[$]=c,pt[ze++]=$)}return pt}function Jm(I){var X=-1,$=Array(I.size);return I.forEach(function(ye){$[++X]=ye}),$}function ZL(I){var X=-1,$=Array(I.size);return I.forEach(function(ye){$[++X]=[ye,ye]}),$}function JL(I,X,$){for(var ye=$-1,ze=I.length;++ye<ze;)if(I[ye]===X)return ye;return-1}function eP(I,X,$){for(var ye=$+1;ye--;)if(I[ye]===X)return ye;return ye}function gl(I){return hl(I)?nP(I):NL(I)}function vi(I){return hl(I)?rP(I):UL(I)}function WC(I){for(var X=I.length;X--&&$z.test(I.charAt(X)););return X}var tP=z0(ML);function nP(I){for(var X=k0.lastIndex=0;k0.test(I);)++X;return X}function rP(I){return I.match(k0)||[]}function iP(I){return I.match(wL)||[]}var aP=function I(X){X=X==null?ln:Ja.defaults(ln.Object(),X,Ja.pick(ln,TL));var $=X.Array,ye=X.Date,ze=X.Error,pt=X.Function,en=X.Math,Et=X.Object,U0=X.RegExp,oP=X.String,Vr=X.TypeError,ep=$.prototype,uP=pt.prototype,vl=Et.prototype,tp=X["__core-js_shared__"],np=uP.toString,ht=vl.hasOwnProperty,lP=0,KC=function(){var o=/[^.]+$/.exec(tp&&tp.keys&&tp.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),rp=vl.toString,sP=np.call(Et),cP=ln._,fP=U0("^"+np.call(ht).replace(D0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ip=MC?X.Buffer:e,eo=X.Symbol,ap=X.Uint8Array,YC=ip?ip.allocUnsafe:e,op=GC(Et.getPrototypeOf,Et),QC=Et.create,XC=vl.propertyIsEnumerable,up=ep.splice,ZC=eo?eo.isConcatSpreadable:e,Dc=eo?eo.iterator:e,ou=eo?eo.toStringTag:e,lp=function(){try{var o=fu(Et,"defineProperty");return o({},"",{}),o}catch{}}(),mP=X.clearTimeout!==ln.clearTimeout&&X.clearTimeout,pP=ye&&ye.now!==ln.Date.now&&ye.now,dP=X.setTimeout!==ln.setTimeout&&X.setTimeout,sp=en.ceil,cp=en.floor,H0=Et.getOwnPropertySymbols,hP=ip?ip.isBuffer:e,JC=X.isFinite,gP=ep.join,vP=GC(Et.keys,Et),tn=en.max,kn=en.min,yP=ye.now,EP=X.parseInt,ew=en.random,bP=ep.reverse,q0=fu(X,"DataView"),Cc=fu(X,"Map"),j0=fu(X,"Promise"),yl=fu(X,"Set"),wc=fu(X,"WeakMap"),Ac=fu(Et,"create"),fp=wc&&new wc,El={},xP=mu(q0),DP=mu(Cc),CP=mu(j0),wP=mu(yl),AP=mu(wc),mp=eo?eo.prototype:e,Sc=mp?mp.valueOf:e,tw=mp?mp.toString:e;function w(o){if(Nt(o)&&!Pe(o)&&!(o instanceof nt)){if(o instanceof $r)return o;if(ht.call(o,"__wrapped__"))return nA(o)}return new $r(o)}var bl=function(){function o(){}return function(l){if(!_t(l))return{};if(QC)return QC(l);o.prototype=l;var m=new o;return o.prototype=e,m}}();function pp(){}function $r(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=e}w.templateSettings={escape:Nz,evaluate:Uz,interpolate:cC,variable:"",imports:{_:w}},w.prototype=pp.prototype,w.prototype.constructor=w,$r.prototype=bl(pp.prototype),$r.prototype.constructor=$r;function nt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function SP(){var o=new nt(this.__wrapped__);return o.__actions__=rr(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=rr(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=rr(this.__views__),o}function TP(){if(this.__filtered__){var o=new nt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function kP(){var o=this.__wrapped__.value(),l=this.__dir__,m=Pe(o),v=l<0,x=m?o.length:0,S=UI(0,x,this.__views__),R=S.start,z=S.end,q=z-R,ne=v?z:R-1,re=this.__iteratees__,le=re.length,de=0,xe=kn(q,this.__takeCount__);if(!m||!v&&x==q&&xe==q)return Aw(o,this.__actions__);var ke=[];e:for(;q--&&de<xe;){ne+=l;for(var Ve=-1,Be=o[ne];++Ve<le;){var Je=re[Ve],ot=Je.iteratee,br=Je.type,Hn=ot(Be);if(br==G)Be=Hn;else if(!Hn){if(br==ae)continue e;break e}}ke[de++]=Be}return ke}nt.prototype=bl(pp.prototype),nt.prototype.constructor=nt;function uu(o){var l=-1,m=o==null?0:o.length;for(this.clear();++l<m;){var v=o[l];this.set(v[0],v[1])}}function BP(){this.__data__=Ac?Ac(null):{},this.size=0}function OP(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function MP(o){var l=this.__data__;if(Ac){var m=l[o];return m===u?e:m}return ht.call(l,o)?l[o]:e}function RP(o){var l=this.__data__;return Ac?l[o]!==e:ht.call(l,o)}function FP(o,l){var m=this.__data__;return this.size+=this.has(o)?0:1,m[o]=Ac&&l===e?u:l,this}uu.prototype.clear=BP,uu.prototype.delete=OP,uu.prototype.get=MP,uu.prototype.has=RP,uu.prototype.set=FP;function sa(o){var l=-1,m=o==null?0:o.length;for(this.clear();++l<m;){var v=o[l];this.set(v[0],v[1])}}function _P(){this.__data__=[],this.size=0}function zP(o){var l=this.__data__,m=dp(l,o);if(m<0)return!1;var v=l.length-1;return m==v?l.pop():up.call(l,m,1),--this.size,!0}function LP(o){var l=this.__data__,m=dp(l,o);return m<0?e:l[m][1]}function PP(o){return dp(this.__data__,o)>-1}function IP(o,l){var m=this.__data__,v=dp(m,o);return v<0?(++this.size,m.push([o,l])):m[v][1]=l,this}sa.prototype.clear=_P,sa.prototype.delete=zP,sa.prototype.get=LP,sa.prototype.has=PP,sa.prototype.set=IP;function ca(o){var l=-1,m=o==null?0:o.length;for(this.clear();++l<m;){var v=o[l];this.set(v[0],v[1])}}function NP(){this.size=0,this.__data__={hash:new uu,map:new(Cc||sa),string:new uu}}function UP(o){var l=Sp(this,o).delete(o);return this.size-=l?1:0,l}function HP(o){return Sp(this,o).get(o)}function qP(o){return Sp(this,o).has(o)}function jP(o,l){var m=Sp(this,o),v=m.size;return m.set(o,l),this.size+=m.size==v?0:1,this}ca.prototype.clear=NP,ca.prototype.delete=UP,ca.prototype.get=HP,ca.prototype.has=qP,ca.prototype.set=jP;function lu(o){var l=-1,m=o==null?0:o.length;for(this.__data__=new ca;++l<m;)this.add(o[l])}function VP(o){return this.__data__.set(o,u),this}function $P(o){return this.__data__.has(o)}lu.prototype.add=lu.prototype.push=VP,lu.prototype.has=$P;function yi(o){var l=this.__data__=new sa(o);this.size=l.size}function GP(){this.__data__=new sa,this.size=0}function WP(o){var l=this.__data__,m=l.delete(o);return this.size=l.size,m}function KP(o){return this.__data__.get(o)}function YP(o){return this.__data__.has(o)}function QP(o,l){var m=this.__data__;if(m instanceof sa){var v=m.__data__;if(!Cc||v.length<n-1)return v.push([o,l]),this.size=++m.size,this;m=this.__data__=new ca(v)}return m.set(o,l),this.size=m.size,this}yi.prototype.clear=GP,yi.prototype.delete=WP,yi.prototype.get=KP,yi.prototype.has=YP,yi.prototype.set=QP;function nw(o,l){var m=Pe(o),v=!m&&pu(o),x=!m&&!v&&ao(o),S=!m&&!v&&!x&&wl(o),R=m||v||x||S,z=R?P0(o.length,oP):[],q=z.length;for(var ne in o)(l||ht.call(o,ne))&&!(R&&(ne=="length"||x&&(ne=="offset"||ne=="parent")||S&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||da(ne,q)))&&z.push(ne);return z}function rw(o){var l=o.length;return l?o[ev(0,l-1)]:e}function XP(o,l){return Tp(rr(o),su(l,0,o.length))}function ZP(o){return Tp(rr(o))}function V0(o,l,m){(m!==e&&!Ei(o[l],m)||m===e&&!(l in o))&&fa(o,l,m)}function Tc(o,l,m){var v=o[l];(!(ht.call(o,l)&&Ei(v,m))||m===e&&!(l in o))&&fa(o,l,m)}function dp(o,l){for(var m=o.length;m--;)if(Ei(o[m][0],l))return m;return-1}function JP(o,l,m,v){return to(o,function(x,S,R){l(v,x,m(x),R)}),v}function iw(o,l){return o&&Ni(l,sn(l),o)}function eI(o,l){return o&&Ni(l,ar(l),o)}function fa(o,l,m){l=="__proto__"&&lp?lp(o,l,{configurable:!0,enumerable:!0,value:m,writable:!0}):o[l]=m}function $0(o,l){for(var m=-1,v=l.length,x=$(v),S=o==null;++m<v;)x[m]=S?e:Av(o,l[m]);return x}function su(o,l,m){return o===o&&(m!==e&&(o=o<=m?o:m),l!==e&&(o=o>=l?o:l)),o}function Gr(o,l,m,v,x,S){var R,z=l&f,q=l&p,ne=l&h;if(m&&(R=x?m(o,v,x,S):m(o)),R!==e)return R;if(!_t(o))return o;var re=Pe(o);if(re){if(R=qI(o),!z)return rr(o,R)}else{var le=Bn(o),de=le==Xe||le==Ze;if(ao(o))return kw(o,z);if(le==Ft||le==k||de&&!x){if(R=q||de?{}:Ww(o),!z)return q?MI(o,eI(R,o)):OI(o,iw(R,o))}else{if(!Dt[le])return x?o:{};R=jI(o,le,z)}}S||(S=new yi);var xe=S.get(o);if(xe)return xe;S.set(o,R),DA(o)?o.forEach(function(Be){R.add(Gr(Be,l,m,Be,o,S))}):bA(o)&&o.forEach(function(Be,Je){R.set(Je,Gr(Be,l,m,Je,o,S))});var ke=ne?q?fv:cv:q?ar:sn,Ve=re?e:ke(o);return jr(Ve||o,function(Be,Je){Ve&&(Je=Be,Be=o[Je]),Tc(R,Je,Gr(Be,l,m,Je,o,S))}),R}function tI(o){var l=sn(o);return function(m){return aw(m,o,l)}}function aw(o,l,m){var v=m.length;if(o==null)return!v;for(o=Et(o);v--;){var x=m[v],S=l[x],R=o[x];if(R===e&&!(x in o)||!S(R))return!1}return!0}function ow(o,l,m){if(typeof o!="function")throw new Vr(i);return _c(function(){o.apply(e,m)},l)}function kc(o,l,m,v){var x=-1,S=Xm,R=!0,z=o.length,q=[],ne=l.length;if(!z)return q;m&&(l=Bt(l,vr(m))),v?(S=M0,R=!1):l.length>=n&&(S=xc,R=!1,l=new lu(l));e:for(;++x<z;){var re=o[x],le=m==null?re:m(re);if(re=v||re!==0?re:0,R&&le===le){for(var de=ne;de--;)if(l[de]===le)continue e;q.push(re)}else S(l,le,v)||q.push(re)}return q}var to=Fw(Ii),uw=Fw(W0,!0);function nI(o,l){var m=!0;return to(o,function(v,x,S){return m=!!l(v,x,S),m}),m}function hp(o,l,m){for(var v=-1,x=o.length;++v<x;){var S=o[v],R=l(S);if(R!=null&&(z===e?R===R&&!Er(R):m(R,z)))var z=R,q=S}return q}function rI(o,l,m,v){var x=o.length;for(m=qe(m),m<0&&(m=-m>x?0:x+m),v=v===e||v>x?x:qe(v),v<0&&(v+=x),v=m>v?0:wA(v);m<v;)o[m++]=l;return o}function lw(o,l){var m=[];return to(o,function(v,x,S){l(v,x,S)&&m.push(v)}),m}function xn(o,l,m,v,x){var S=-1,R=o.length;for(m||(m=$I),x||(x=[]);++S<R;){var z=o[S];l>0&&m(z)?l>1?xn(z,l-1,m,v,x):Xa(x,z):v||(x[x.length]=z)}return x}var G0=_w(),sw=_w(!0);function Ii(o,l){return o&&G0(o,l,sn)}function W0(o,l){return o&&sw(o,l,sn)}function gp(o,l){return Qa(l,function(m){return ha(o[m])})}function cu(o,l){l=ro(l,o);for(var m=0,v=l.length;o!=null&&m<v;)o=o[Ui(l[m++])];return m&&m==v?o:e}function cw(o,l,m){var v=l(o);return Pe(o)?v:Xa(v,m(o))}function Nn(o){return o==null?o===e?Li:Nr:ou&&ou in Et(o)?NI(o):ZI(o)}function K0(o,l){return o>l}function iI(o,l){return o!=null&&ht.call(o,l)}function aI(o,l){return o!=null&&l in Et(o)}function oI(o,l,m){return o>=kn(l,m)&&o<tn(l,m)}function Y0(o,l,m){for(var v=m?M0:Xm,x=o[0].length,S=o.length,R=S,z=$(S),q=1/0,ne=[];R--;){var re=o[R];R&&l&&(re=Bt(re,vr(l))),q=kn(re.length,q),z[R]=!m&&(l||x>=120&&re.length>=120)?new lu(R&&re):e}re=o[0];var le=-1,de=z[0];e:for(;++le<x&&ne.length<q;){var xe=re[le],ke=l?l(xe):xe;if(xe=m||xe!==0?xe:0,!(de?xc(de,ke):v(ne,ke,m))){for(R=S;--R;){var Ve=z[R];if(!(Ve?xc(Ve,ke):v(o[R],ke,m)))continue e}de&&de.push(ke),ne.push(xe)}}return ne}function uI(o,l,m,v){return Ii(o,function(x,S,R){l(v,m(x),S,R)}),v}function Bc(o,l,m){l=ro(l,o),o=Xw(o,l);var v=o==null?o:o[Ui(Kr(l))];return v==null?e:gr(v,o,m)}function fw(o){return Nt(o)&&Nn(o)==k}function lI(o){return Nt(o)&&Nn(o)==Pn}function sI(o){return Nt(o)&&Nn(o)==Fe}function Oc(o,l,m,v,x){return o===l?!0:o==null||l==null||!Nt(o)&&!Nt(l)?o!==o&&l!==l:cI(o,l,m,v,Oc,x)}function cI(o,l,m,v,x,S){var R=Pe(o),z=Pe(l),q=R?Ce:Bn(o),ne=z?Ce:Bn(l);q=q==k?Ft:q,ne=ne==k?Ft:ne;var re=q==Ft,le=ne==Ft,de=q==ne;if(de&&ao(o)){if(!ao(l))return!1;R=!0,re=!1}if(de&&!re)return S||(S=new yi),R||wl(o)?Vw(o,l,m,v,x,S):PI(o,l,q,m,v,x,S);if(!(m&g)){var xe=re&&ht.call(o,"__wrapped__"),ke=le&&ht.call(l,"__wrapped__");if(xe||ke){var Ve=xe?o.value():o,Be=ke?l.value():l;return S||(S=new yi),x(Ve,Be,m,v,S)}}return de?(S||(S=new yi),II(o,l,m,v,x,S)):!1}function fI(o){return Nt(o)&&Bn(o)==He}function Q0(o,l,m,v){var x=m.length,S=x,R=!v;if(o==null)return!S;for(o=Et(o);x--;){var z=m[x];if(R&&z[2]?z[1]!==o[z[0]]:!(z[0]in o))return!1}for(;++x<S;){z=m[x];var q=z[0],ne=o[q],re=z[1];if(R&&z[2]){if(ne===e&&!(q in o))return!1}else{var le=new yi;if(v)var de=v(ne,re,q,o,l,le);if(!(de===e?Oc(re,ne,g|d,v,le):de))return!1}}return!0}function mw(o){if(!_t(o)||WI(o))return!1;var l=ha(o)?fP:tL;return l.test(mu(o))}function mI(o){return Nt(o)&&Nn(o)==Ln}function pI(o){return Nt(o)&&Bn(o)==yn}function dI(o){return Nt(o)&&Fp(o.length)&&!!St[Nn(o)]}function pw(o){return typeof o=="function"?o:o==null?or:typeof o=="object"?Pe(o)?gw(o[0],o[1]):hw(o):zA(o)}function X0(o){if(!Fc(o))return vP(o);var l=[];for(var m in Et(o))ht.call(o,m)&&m!="constructor"&&l.push(m);return l}function hI(o){if(!_t(o))return XI(o);var l=Fc(o),m=[];for(var v in o)v=="constructor"&&(l||!ht.call(o,v))||m.push(v);return m}function Z0(o,l){return o<l}function dw(o,l){var m=-1,v=ir(o)?$(o.length):[];return to(o,function(x,S,R){v[++m]=l(x,S,R)}),v}function hw(o){var l=pv(o);return l.length==1&&l[0][2]?Yw(l[0][0],l[0][1]):function(m){return m===o||Q0(m,o,l)}}function gw(o,l){return hv(o)&&Kw(l)?Yw(Ui(o),l):function(m){var v=Av(m,o);return v===e&&v===l?Sv(m,o):Oc(l,v,g|d)}}function vp(o,l,m,v,x){o!==l&&G0(l,function(S,R){if(x||(x=new yi),_t(S))gI(o,l,R,m,vp,v,x);else{var z=v?v(vv(o,R),S,R+"",o,l,x):e;z===e&&(z=S),V0(o,R,z)}},ar)}function gI(o,l,m,v,x,S,R){var z=vv(o,m),q=vv(l,m),ne=R.get(q);if(ne){V0(o,m,ne);return}var re=S?S(z,q,m+"",o,l,R):e,le=re===e;if(le){var de=Pe(q),xe=!de&&ao(q),ke=!de&&!xe&&wl(q);re=q,de||xe||ke?Pe(z)?re=z:qt(z)?re=rr(z):xe?(le=!1,re=kw(q,!0)):ke?(le=!1,re=Bw(q,!0)):re=[]:zc(q)||pu(q)?(re=z,pu(z)?re=AA(z):(!_t(z)||ha(z))&&(re=Ww(q))):le=!1}le&&(R.set(q,re),x(re,q,v,S,R),R.delete(q)),V0(o,m,re)}function vw(o,l){var m=o.length;if(m)return l+=l<0?m:0,da(l,m)?o[l]:e}function yw(o,l,m){l.length?l=Bt(l,function(S){return Pe(S)?function(R){return cu(R,S.length===1?S[0]:S)}:S}):l=[or];var v=-1;l=Bt(l,vr(Te()));var x=dw(o,function(S,R,z){var q=Bt(l,function(ne){return ne(S)});return{criteria:q,index:++v,value:S}});return jL(x,function(S,R){return BI(S,R,m)})}function vI(o,l){return Ew(o,l,function(m,v){return Sv(o,v)})}function Ew(o,l,m){for(var v=-1,x=l.length,S={};++v<x;){var R=l[v],z=cu(o,R);m(z,R)&&Mc(S,ro(R,o),z)}return S}function yI(o){return function(l){return cu(l,o)}}function J0(o,l,m,v){var x=v?qL:dl,S=-1,R=l.length,z=o;for(o===l&&(l=rr(l)),m&&(z=Bt(o,vr(m)));++S<R;)for(var q=0,ne=l[S],re=m?m(ne):ne;(q=x(z,re,q,v))>-1;)z!==o&&up.call(z,q,1),up.call(o,q,1);return o}function bw(o,l){for(var m=o?l.length:0,v=m-1;m--;){var x=l[m];if(m==v||x!==S){var S=x;da(x)?up.call(o,x,1):rv(o,x)}}return o}function ev(o,l){return o+cp(ew()*(l-o+1))}function EI(o,l,m,v){for(var x=-1,S=tn(sp((l-o)/(m||1)),0),R=$(S);S--;)R[v?S:++x]=o,o+=m;return R}function tv(o,l){var m="";if(!o||l<1||l>ve)return m;do l%2&&(m+=o),l=cp(l/2),l&&(o+=o);while(l);return m}function We(o,l){return yv(Qw(o,l,or),o+"")}function bI(o){return rw(Al(o))}function xI(o,l){var m=Al(o);return Tp(m,su(l,0,m.length))}function Mc(o,l,m,v){if(!_t(o))return o;l=ro(l,o);for(var x=-1,S=l.length,R=S-1,z=o;z!=null&&++x<S;){var q=Ui(l[x]),ne=m;if(q==="__proto__"||q==="constructor"||q==="prototype")return o;if(x!=R){var re=z[q];ne=v?v(re,q,z):e,ne===e&&(ne=_t(re)?re:da(l[x+1])?[]:{})}Tc(z,q,ne),z=z[q]}return o}var xw=fp?function(o,l){return fp.set(o,l),o}:or,DI=lp?function(o,l){return lp(o,"toString",{configurable:!0,enumerable:!1,value:kv(l),writable:!0})}:or;function CI(o){return Tp(Al(o))}function Wr(o,l,m){var v=-1,x=o.length;l<0&&(l=-l>x?0:x+l),m=m>x?x:m,m<0&&(m+=x),x=l>m?0:m-l>>>0,l>>>=0;for(var S=$(x);++v<x;)S[v]=o[v+l];return S}function wI(o,l){var m;return to(o,function(v,x,S){return m=l(v,x,S),!m}),!!m}function yp(o,l,m){var v=0,x=o==null?v:o.length;if(typeof l=="number"&&l===l&&x<=he){for(;v<x;){var S=v+x>>>1,R=o[S];R!==null&&!Er(R)&&(m?R<=l:R<l)?v=S+1:x=S}return x}return nv(o,l,or,m)}function nv(o,l,m,v){var x=0,S=o==null?0:o.length;if(S===0)return 0;l=m(l);for(var R=l!==l,z=l===null,q=Er(l),ne=l===e;x<S;){var re=cp((x+S)/2),le=m(o[re]),de=le!==e,xe=le===null,ke=le===le,Ve=Er(le);if(R)var Be=v||ke;else ne?Be=ke&&(v||de):z?Be=ke&&de&&(v||!xe):q?Be=ke&&de&&!xe&&(v||!Ve):xe||Ve?Be=!1:Be=v?le<=l:le<l;Be?x=re+1:S=re}return kn(S,T)}function Dw(o,l){for(var m=-1,v=o.length,x=0,S=[];++m<v;){var R=o[m],z=l?l(R):R;if(!m||!Ei(z,q)){var q=z;S[x++]=R===0?0:R}}return S}function Cw(o){return typeof o=="number"?o:Er(o)?ee:+o}function yr(o){if(typeof o=="string")return o;if(Pe(o))return Bt(o,yr)+"";if(Er(o))return tw?tw.call(o):"";var l=o+"";return l=="0"&&1/o==-Y?"-0":l}function no(o,l,m){var v=-1,x=Xm,S=o.length,R=!0,z=[],q=z;if(m)R=!1,x=M0;else if(S>=n){var ne=l?null:zI(o);if(ne)return Jm(ne);R=!1,x=xc,q=new lu}else q=l?[]:z;e:for(;++v<S;){var re=o[v],le=l?l(re):re;if(re=m||re!==0?re:0,R&&le===le){for(var de=q.length;de--;)if(q[de]===le)continue e;l&&q.push(le),z.push(re)}else x(q,le,m)||(q!==z&&q.push(le),z.push(re))}return z}function rv(o,l){return l=ro(l,o),o=Xw(o,l),o==null||delete o[Ui(Kr(l))]}function ww(o,l,m,v){return Mc(o,l,m(cu(o,l)),v)}function Ep(o,l,m,v){for(var x=o.length,S=v?x:-1;(v?S--:++S<x)&&l(o[S],S,o););return m?Wr(o,v?0:S,v?S+1:x):Wr(o,v?S+1:0,v?x:S)}function Aw(o,l){var m=o;return m instanceof nt&&(m=m.value()),R0(l,function(v,x){return x.func.apply(x.thisArg,Xa([v],x.args))},m)}function iv(o,l,m){var v=o.length;if(v<2)return v?no(o[0]):[];for(var x=-1,S=$(v);++x<v;)for(var R=o[x],z=-1;++z<v;)z!=x&&(S[x]=kc(S[x]||R,o[z],l,m));return no(xn(S,1),l,m)}function Sw(o,l,m){for(var v=-1,x=o.length,S=l.length,R={};++v<x;){var z=v<S?l[v]:e;m(R,o[v],z)}return R}function av(o){return qt(o)?o:[]}function ov(o){return typeof o=="function"?o:or}function ro(o,l){return Pe(o)?o:hv(o,l)?[o]:tA(dt(o))}var AI=We;function io(o,l,m){var v=o.length;return m=m===e?v:m,!l&&m>=v?o:Wr(o,l,m)}var Tw=mP||function(o){return ln.clearTimeout(o)};function kw(o,l){if(l)return o.slice();var m=o.length,v=YC?YC(m):new o.constructor(m);return o.copy(v),v}function uv(o){var l=new o.constructor(o.byteLength);return new ap(l).set(new ap(o)),l}function SI(o,l){var m=l?uv(o.buffer):o.buffer;return new o.constructor(m,o.byteOffset,o.byteLength)}function TI(o){var l=new o.constructor(o.source,fC.exec(o));return l.lastIndex=o.lastIndex,l}function kI(o){return Sc?Et(Sc.call(o)):{}}function Bw(o,l){var m=l?uv(o.buffer):o.buffer;return new o.constructor(m,o.byteOffset,o.length)}function Ow(o,l){if(o!==l){var m=o!==e,v=o===null,x=o===o,S=Er(o),R=l!==e,z=l===null,q=l===l,ne=Er(l);if(!z&&!ne&&!S&&o>l||S&&R&&q&&!z&&!ne||v&&R&&q||!m&&q||!x)return 1;if(!v&&!S&&!ne&&o<l||ne&&m&&x&&!v&&!S||z&&m&&x||!R&&x||!q)return-1}return 0}function BI(o,l,m){for(var v=-1,x=o.criteria,S=l.criteria,R=x.length,z=m.length;++v<R;){var q=Ow(x[v],S[v]);if(q){if(v>=z)return q;var ne=m[v];return q*(ne=="desc"?-1:1)}}return o.index-l.index}function Mw(o,l,m,v){for(var x=-1,S=o.length,R=m.length,z=-1,q=l.length,ne=tn(S-R,0),re=$(q+ne),le=!v;++z<q;)re[z]=l[z];for(;++x<R;)(le||x<S)&&(re[m[x]]=o[x]);for(;ne--;)re[z++]=o[x++];return re}function Rw(o,l,m,v){for(var x=-1,S=o.length,R=-1,z=m.length,q=-1,ne=l.length,re=tn(S-z,0),le=$(re+ne),de=!v;++x<re;)le[x]=o[x];for(var xe=x;++q<ne;)le[xe+q]=l[q];for(;++R<z;)(de||x<S)&&(le[xe+m[R]]=o[x++]);return le}function rr(o,l){var m=-1,v=o.length;for(l||(l=$(v));++m<v;)l[m]=o[m];return l}function Ni(o,l,m,v){var x=!m;m||(m={});for(var S=-1,R=l.length;++S<R;){var z=l[S],q=v?v(m[z],o[z],z,m,o):e;q===e&&(q=o[z]),x?fa(m,z,q):Tc(m,z,q)}return m}function OI(o,l){return Ni(o,dv(o),l)}function MI(o,l){return Ni(o,$w(o),l)}function bp(o,l){return function(m,v){var x=Pe(m)?LL:JP,S=l?l():{};return x(m,o,Te(v,2),S)}}function xl(o){return We(function(l,m){var v=-1,x=m.length,S=x>1?m[x-1]:e,R=x>2?m[2]:e;for(S=o.length>3&&typeof S=="function"?(x--,S):e,R&&Un(m[0],m[1],R)&&(S=x<3?e:S,x=1),l=Et(l);++v<x;){var z=m[v];z&&o(l,z,v,S)}return l})}function Fw(o,l){return function(m,v){if(m==null)return m;if(!ir(m))return o(m,v);for(var x=m.length,S=l?x:-1,R=Et(m);(l?S--:++S<x)&&v(R[S],S,R)!==!1;);return m}}function _w(o){return function(l,m,v){for(var x=-1,S=Et(l),R=v(l),z=R.length;z--;){var q=R[o?z:++x];if(m(S[q],q,S)===!1)break}return l}}function RI(o,l,m){var v=l&b,x=Rc(o);function S(){var R=this&&this!==ln&&this instanceof S?x:o;return R.apply(v?m:this,arguments)}return S}function zw(o){return function(l){l=dt(l);var m=hl(l)?vi(l):e,v=m?m[0]:l.charAt(0),x=m?io(m,1).join(""):l.slice(1);return v[o]()+x}}function Dl(o){return function(l){return R0(FA(RA(l).replace(DL,"")),o,"")}}function Rc(o){return function(){var l=arguments;switch(l.length){case 0:return new o;case 1:return new o(l[0]);case 2:return new o(l[0],l[1]);case 3:return new o(l[0],l[1],l[2]);case 4:return new o(l[0],l[1],l[2],l[3]);case 5:return new o(l[0],l[1],l[2],l[3],l[4]);case 6:return new o(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new o(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var m=bl(o.prototype),v=o.apply(m,l);return _t(v)?v:m}}function FI(o,l,m){var v=Rc(o);function x(){for(var S=arguments.length,R=$(S),z=S,q=Cl(x);z--;)R[z]=arguments[z];var ne=S<3&&R[0]!==q&&R[S-1]!==q?[]:Za(R,q);if(S-=ne.length,S<m)return Uw(o,l,xp,x.placeholder,e,R,ne,e,e,m-S);var re=this&&this!==ln&&this instanceof x?v:o;return gr(re,this,R)}return x}function Lw(o){return function(l,m,v){var x=Et(l);if(!ir(l)){var S=Te(m,3);l=sn(l),m=function(z){return S(x[z],z,x)}}var R=o(l,m,v);return R>-1?x[S?l[R]:R]:e}}function Pw(o){return pa(function(l){var m=l.length,v=m,x=$r.prototype.thru;for(o&&l.reverse();v--;){var S=l[v];if(typeof S!="function")throw new Vr(i);if(x&&!R&&Ap(S)=="wrapper")var R=new $r([],!0)}for(v=R?v:m;++v<m;){S=l[v];var z=Ap(S),q=z=="wrapper"?mv(S):e;q&&gv(q[0])&&q[1]==(L|E|C|B)&&!q[4].length&&q[9]==1?R=R[Ap(q[0])].apply(R,q[3]):R=S.length==1&&gv(S)?R[z]():R.thru(S)}return function(){var ne=arguments,re=ne[0];if(R&&ne.length==1&&Pe(re))return R.plant(re).value();for(var le=0,de=m?l[le].apply(this,ne):re;++le<m;)de=l[le].call(this,de);return de}})}function xp(o,l,m,v,x,S,R,z,q,ne){var re=l&L,le=l&b,de=l&A,xe=l&(E|D),ke=l&H,Ve=de?e:Rc(o);function Be(){for(var Je=arguments.length,ot=$(Je),br=Je;br--;)ot[br]=arguments[br];if(xe)var Hn=Cl(Be),xr=$L(ot,Hn);if(v&&(ot=Mw(ot,v,x,xe)),S&&(ot=Rw(ot,S,R,xe)),Je-=xr,xe&&Je<ne){var jt=Za(ot,Hn);return Uw(o,l,xp,Be.placeholder,m,ot,jt,z,q,ne-Je)}var bi=le?m:this,va=de?bi[o]:o;return Je=ot.length,z?ot=JI(ot,z):ke&&Je>1&&ot.reverse(),re&&q<Je&&(ot.length=q),this&&this!==ln&&this instanceof Be&&(va=Ve||Rc(va)),va.apply(bi,ot)}return Be}function Iw(o,l){return function(m,v){return uI(m,o,l(v),{})}}function Dp(o,l){return function(m,v){var x;if(m===e&&v===e)return l;if(m!==e&&(x=m),v!==e){if(x===e)return v;typeof m=="string"||typeof v=="string"?(m=yr(m),v=yr(v)):(m=Cw(m),v=Cw(v)),x=o(m,v)}return x}}function lv(o){return pa(function(l){return l=Bt(l,vr(Te())),We(function(m){var v=this;return o(l,function(x){return gr(x,v,m)})})})}function Cp(o,l){l=l===e?" ":yr(l);var m=l.length;if(m<2)return m?tv(l,o):l;var v=tv(l,sp(o/gl(l)));return hl(l)?io(vi(v),0,o).join(""):v.slice(0,o)}function _I(o,l,m,v){var x=l&b,S=Rc(o);function R(){for(var z=-1,q=arguments.length,ne=-1,re=v.length,le=$(re+q),de=this&&this!==ln&&this instanceof R?S:o;++ne<re;)le[ne]=v[ne];for(;q--;)le[ne++]=arguments[++z];return gr(de,x?m:this,le)}return R}function Nw(o){return function(l,m,v){return v&&typeof v!="number"&&Un(l,m,v)&&(m=v=e),l=ga(l),m===e?(m=l,l=0):m=ga(m),v=v===e?l<m?1:-1:ga(v),EI(l,m,v,o)}}function wp(o){return function(l,m){return typeof l=="string"&&typeof m=="string"||(l=Yr(l),m=Yr(m)),o(l,m)}}function Uw(o,l,m,v,x,S,R,z,q,ne){var re=l&E,le=re?R:e,de=re?e:R,xe=re?S:e,ke=re?e:S;l|=re?C:M,l&=~(re?M:C),l&O||(l&=~(b|A));var Ve=[o,l,x,xe,le,ke,de,z,q,ne],Be=m.apply(e,Ve);return gv(o)&&Zw(Be,Ve),Be.placeholder=v,Jw(Be,o,l)}function sv(o){var l=en[o];return function(m,v){if(m=Yr(m),v=v==null?0:kn(qe(v),292),v&&JC(m)){var x=(dt(m)+"e").split("e"),S=l(x[0]+"e"+(+x[1]+v));return x=(dt(S)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return l(m)}}var zI=yl&&1/Jm(new yl([,-0]))[1]==Y?function(o){return new yl(o)}:Mv;function Hw(o){return function(l){var m=Bn(l);return m==He?N0(l):m==yn?ZL(l):VL(l,o(l))}}function ma(o,l,m,v,x,S,R,z){var q=l&A;if(!q&&typeof o!="function")throw new Vr(i);var ne=v?v.length:0;if(ne||(l&=~(C|M),v=x=e),R=R===e?R:tn(qe(R),0),z=z===e?z:qe(z),ne-=x?x.length:0,l&M){var re=v,le=x;v=x=e}var de=q?e:mv(o),xe=[o,l,m,v,x,re,le,S,R,z];if(de&&QI(xe,de),o=xe[0],l=xe[1],m=xe[2],v=xe[3],x=xe[4],z=xe[9]=xe[9]===e?q?0:o.length:tn(xe[9]-ne,0),!z&&l&(E|D)&&(l&=~(E|D)),!l||l==b)var ke=RI(o,l,m);else l==E||l==D?ke=FI(o,l,z):(l==C||l==(b|C))&&!x.length?ke=_I(o,l,m,v):ke=xp.apply(e,xe);var Ve=de?xw:Zw;return Jw(Ve(ke,xe),o,l)}function qw(o,l,m,v){return o===e||Ei(o,vl[m])&&!ht.call(v,m)?l:o}function jw(o,l,m,v,x,S){return _t(o)&&_t(l)&&(S.set(l,o),vp(o,l,e,jw,S),S.delete(l)),o}function LI(o){return zc(o)?e:o}function Vw(o,l,m,v,x,S){var R=m&g,z=o.length,q=l.length;if(z!=q&&!(R&&q>z))return!1;var ne=S.get(o),re=S.get(l);if(ne&&re)return ne==l&&re==o;var le=-1,de=!0,xe=m&d?new lu:e;for(S.set(o,l),S.set(l,o);++le<z;){var ke=o[le],Ve=l[le];if(v)var Be=R?v(Ve,ke,le,l,o,S):v(ke,Ve,le,o,l,S);if(Be!==e){if(Be)continue;de=!1;break}if(xe){if(!F0(l,function(Je,ot){if(!xc(xe,ot)&&(ke===Je||x(ke,Je,m,v,S)))return xe.push(ot)})){de=!1;break}}else if(!(ke===Ve||x(ke,Ve,m,v,S))){de=!1;break}}return S.delete(o),S.delete(l),de}function PI(o,l,m,v,x,S,R){switch(m){case In:if(o.byteLength!=l.byteLength||o.byteOffset!=l.byteOffset)return!1;o=o.buffer,l=l.buffer;case Pn:return!(o.byteLength!=l.byteLength||!S(new ap(o),new ap(l)));case Re:case Fe:case it:return Ei(+o,+l);case tt:return o.name==l.name&&o.message==l.message;case Ln:case Hr:return o==l+"";case He:var z=N0;case yn:var q=v&g;if(z||(z=Jm),o.size!=l.size&&!q)return!1;var ne=R.get(o);if(ne)return ne==l;v|=d,R.set(o,l);var re=Vw(z(o),z(l),v,x,S,R);return R.delete(o),re;case hi:if(Sc)return Sc.call(o)==Sc.call(l)}return!1}function II(o,l,m,v,x,S){var R=m&g,z=cv(o),q=z.length,ne=cv(l),re=ne.length;if(q!=re&&!R)return!1;for(var le=q;le--;){var de=z[le];if(!(R?de in l:ht.call(l,de)))return!1}var xe=S.get(o),ke=S.get(l);if(xe&&ke)return xe==l&&ke==o;var Ve=!0;S.set(o,l),S.set(l,o);for(var Be=R;++le<q;){de=z[le];var Je=o[de],ot=l[de];if(v)var br=R?v(ot,Je,de,l,o,S):v(Je,ot,de,o,l,S);if(!(br===e?Je===ot||x(Je,ot,m,v,S):br)){Ve=!1;break}Be||(Be=de=="constructor")}if(Ve&&!Be){var Hn=o.constructor,xr=l.constructor;Hn!=xr&&"constructor"in o&&"constructor"in l&&!(typeof Hn=="function"&&Hn instanceof Hn&&typeof xr=="function"&&xr instanceof xr)&&(Ve=!1)}return S.delete(o),S.delete(l),Ve}function pa(o){return yv(Qw(o,e,aA),o+"")}function cv(o){return cw(o,sn,dv)}function fv(o){return cw(o,ar,$w)}var mv=fp?function(o){return fp.get(o)}:Mv;function Ap(o){for(var l=o.name+"",m=El[l],v=ht.call(El,l)?m.length:0;v--;){var x=m[v],S=x.func;if(S==null||S==o)return x.name}return l}function Cl(o){var l=ht.call(w,"placeholder")?w:o;return l.placeholder}function Te(){var o=w.iteratee||Bv;return o=o===Bv?pw:o,arguments.length?o(arguments[0],arguments[1]):o}function Sp(o,l){var m=o.__data__;return GI(l)?m[typeof l=="string"?"string":"hash"]:m.map}function pv(o){for(var l=sn(o),m=l.length;m--;){var v=l[m],x=o[v];l[m]=[v,x,Kw(x)]}return l}function fu(o,l){var m=YL(o,l);return mw(m)?m:e}function NI(o){var l=ht.call(o,ou),m=o[ou];try{o[ou]=e;var v=!0}catch{}var x=rp.call(o);return v&&(l?o[ou]=m:delete o[ou]),x}var dv=H0?function(o){return o==null?[]:(o=Et(o),Qa(H0(o),function(l){return XC.call(o,l)}))}:Rv,$w=H0?function(o){for(var l=[];o;)Xa(l,dv(o)),o=op(o);return l}:Rv,Bn=Nn;(q0&&Bn(new q0(new ArrayBuffer(1)))!=In||Cc&&Bn(new Cc)!=He||j0&&Bn(j0.resolve())!=Ur||yl&&Bn(new yl)!=yn||wc&&Bn(new wc)!=Pi)&&(Bn=function(o){var l=Nn(o),m=l==Ft?o.constructor:e,v=m?mu(m):"";if(v)switch(v){case xP:return In;case DP:return He;case CP:return Ur;case wP:return yn;case AP:return Pi}return l});function UI(o,l,m){for(var v=-1,x=m.length;++v<x;){var S=m[v],R=S.size;switch(S.type){case"drop":o+=R;break;case"dropRight":l-=R;break;case"take":l=kn(l,o+R);break;case"takeRight":o=tn(o,l-R);break}}return{start:o,end:l}}function HI(o){var l=o.match(Wz);return l?l[1].split(Kz):[]}function Gw(o,l,m){l=ro(l,o);for(var v=-1,x=l.length,S=!1;++v<x;){var R=Ui(l[v]);if(!(S=o!=null&&m(o,R)))break;o=o[R]}return S||++v!=x?S:(x=o==null?0:o.length,!!x&&Fp(x)&&da(R,x)&&(Pe(o)||pu(o)))}function qI(o){var l=o.length,m=new o.constructor(l);return l&&typeof o[0]=="string"&&ht.call(o,"index")&&(m.index=o.index,m.input=o.input),m}function Ww(o){return typeof o.constructor=="function"&&!Fc(o)?bl(op(o)):{}}function jI(o,l,m){var v=o.constructor;switch(l){case Pn:return uv(o);case Re:case Fe:return new v(+o);case In:return SI(o,m);case K:case se:case we:case at:case Ge:case En:case tr:case bn:case gi:return Bw(o,m);case He:return new v;case it:case Hr:return new v(o);case Ln:return TI(o);case yn:return new v;case hi:return kI(o)}}function VI(o,l){var m=l.length;if(!m)return o;var v=m-1;return l[v]=(m>1?"& ":"")+l[v],l=l.join(m>2?", ":" "),o.replace(Gz,`{
|
|
10
|
+
/* [wrapped with `+l+`] */
|
|
11
|
+
`)}function $I(o){return Pe(o)||pu(o)||!!(ZC&&o&&o[ZC])}function da(o,l){var m=typeof o;return l=l??ve,!!l&&(m=="number"||m!="symbol"&&rL.test(o))&&o>-1&&o%1==0&&o<l}function Un(o,l,m){if(!_t(m))return!1;var v=typeof l;return(v=="number"?ir(m)&&da(l,m.length):v=="string"&&l in m)?Ei(m[l],o):!1}function hv(o,l){if(Pe(o))return!1;var m=typeof o;return m=="number"||m=="symbol"||m=="boolean"||o==null||Er(o)?!0:qz.test(o)||!Hz.test(o)||l!=null&&o in Et(l)}function GI(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function gv(o){var l=Ap(o),m=w[l];if(typeof m!="function"||!(l in nt.prototype))return!1;if(o===m)return!0;var v=mv(m);return!!v&&o===v[0]}function WI(o){return!!KC&&KC in o}var KI=tp?ha:Fv;function Fc(o){var l=o&&o.constructor,m=typeof l=="function"&&l.prototype||vl;return o===m}function Kw(o){return o===o&&!_t(o)}function Yw(o,l){return function(m){return m==null?!1:m[o]===l&&(l!==e||o in Et(m))}}function YI(o){var l=Mp(o,function(v){return m.size===s&&m.clear(),v}),m=l.cache;return l}function QI(o,l){var m=o[1],v=l[1],x=m|v,S=x<(b|A|L),R=v==L&&m==E||v==L&&m==B&&o[7].length<=l[8]||v==(L|B)&&l[7].length<=l[8]&&m==E;if(!(S||R))return o;v&b&&(o[2]=l[2],x|=m&b?0:O);var z=l[3];if(z){var q=o[3];o[3]=q?Mw(q,z,l[4]):z,o[4]=q?Za(o[3],c):l[4]}return z=l[5],z&&(q=o[5],o[5]=q?Rw(q,z,l[6]):z,o[6]=q?Za(o[5],c):l[6]),z=l[7],z&&(o[7]=z),v&L&&(o[8]=o[8]==null?l[8]:kn(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=x,o}function XI(o){var l=[];if(o!=null)for(var m in Et(o))l.push(m);return l}function ZI(o){return rp.call(o)}function Qw(o,l,m){return l=tn(l===e?o.length-1:l,0),function(){for(var v=arguments,x=-1,S=tn(v.length-l,0),R=$(S);++x<S;)R[x]=v[l+x];x=-1;for(var z=$(l+1);++x<l;)z[x]=v[x];return z[l]=m(R),gr(o,this,z)}}function Xw(o,l){return l.length<2?o:cu(o,Wr(l,0,-1))}function JI(o,l){for(var m=o.length,v=kn(l.length,m),x=rr(o);v--;){var S=l[v];o[v]=da(S,m)?x[S]:e}return o}function vv(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var Zw=eA(xw),_c=dP||function(o,l){return ln.setTimeout(o,l)},yv=eA(DI);function Jw(o,l,m){var v=l+"";return yv(o,VI(v,eN(HI(v),m)))}function eA(o){var l=0,m=0;return function(){var v=yP(),x=pe-(v-m);if(m=v,x>0){if(++l>=P)return arguments[0]}else l=0;return o.apply(e,arguments)}}function Tp(o,l){var m=-1,v=o.length,x=v-1;for(l=l===e?v:l;++m<l;){var S=ev(m,x),R=o[S];o[S]=o[m],o[m]=R}return o.length=l,o}var tA=YI(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(jz,function(m,v,x,S){l.push(x?S.replace(Xz,"$1"):v||m)}),l});function Ui(o){if(typeof o=="string"||Er(o))return o;var l=o+"";return l=="0"&&1/o==-Y?"-0":l}function mu(o){if(o!=null){try{return np.call(o)}catch{}try{return o+""}catch{}}return""}function eN(o,l){return jr(Ae,function(m){var v="_."+m[0];l&m[1]&&!Xm(o,v)&&o.push(v)}),o.sort()}function nA(o){if(o instanceof nt)return o.clone();var l=new $r(o.__wrapped__,o.__chain__);return l.__actions__=rr(o.__actions__),l.__index__=o.__index__,l.__values__=o.__values__,l}function tN(o,l,m){(m?Un(o,l,m):l===e)?l=1:l=tn(qe(l),0);var v=o==null?0:o.length;if(!v||l<1)return[];for(var x=0,S=0,R=$(sp(v/l));x<v;)R[S++]=Wr(o,x,x+=l);return R}function nN(o){for(var l=-1,m=o==null?0:o.length,v=0,x=[];++l<m;){var S=o[l];S&&(x[v++]=S)}return x}function rN(){var o=arguments.length;if(!o)return[];for(var l=$(o-1),m=arguments[0],v=o;v--;)l[v-1]=arguments[v];return Xa(Pe(m)?rr(m):[m],xn(l,1))}var iN=We(function(o,l){return qt(o)?kc(o,xn(l,1,qt,!0)):[]}),aN=We(function(o,l){var m=Kr(l);return qt(m)&&(m=e),qt(o)?kc(o,xn(l,1,qt,!0),Te(m,2)):[]}),oN=We(function(o,l){var m=Kr(l);return qt(m)&&(m=e),qt(o)?kc(o,xn(l,1,qt,!0),e,m):[]});function uN(o,l,m){var v=o==null?0:o.length;return v?(l=m||l===e?1:qe(l),Wr(o,l<0?0:l,v)):[]}function lN(o,l,m){var v=o==null?0:o.length;return v?(l=m||l===e?1:qe(l),l=v-l,Wr(o,0,l<0?0:l)):[]}function sN(o,l){return o&&o.length?Ep(o,Te(l,3),!0,!0):[]}function cN(o,l){return o&&o.length?Ep(o,Te(l,3),!0):[]}function fN(o,l,m,v){var x=o==null?0:o.length;return x?(m&&typeof m!="number"&&Un(o,l,m)&&(m=0,v=x),rI(o,l,m,v)):[]}function rA(o,l,m){var v=o==null?0:o.length;if(!v)return-1;var x=m==null?0:qe(m);return x<0&&(x=tn(v+x,0)),Zm(o,Te(l,3),x)}function iA(o,l,m){var v=o==null?0:o.length;if(!v)return-1;var x=v-1;return m!==e&&(x=qe(m),x=m<0?tn(v+x,0):kn(x,v-1)),Zm(o,Te(l,3),x,!0)}function aA(o){var l=o==null?0:o.length;return l?xn(o,1):[]}function mN(o){var l=o==null?0:o.length;return l?xn(o,Y):[]}function pN(o,l){var m=o==null?0:o.length;return m?(l=l===e?1:qe(l),xn(o,l)):[]}function dN(o){for(var l=-1,m=o==null?0:o.length,v={};++l<m;){var x=o[l];v[x[0]]=x[1]}return v}function oA(o){return o&&o.length?o[0]:e}function hN(o,l,m){var v=o==null?0:o.length;if(!v)return-1;var x=m==null?0:qe(m);return x<0&&(x=tn(v+x,0)),dl(o,l,x)}function gN(o){var l=o==null?0:o.length;return l?Wr(o,0,-1):[]}var vN=We(function(o){var l=Bt(o,av);return l.length&&l[0]===o[0]?Y0(l):[]}),yN=We(function(o){var l=Kr(o),m=Bt(o,av);return l===Kr(m)?l=e:m.pop(),m.length&&m[0]===o[0]?Y0(m,Te(l,2)):[]}),EN=We(function(o){var l=Kr(o),m=Bt(o,av);return l=typeof l=="function"?l:e,l&&m.pop(),m.length&&m[0]===o[0]?Y0(m,e,l):[]});function bN(o,l){return o==null?"":gP.call(o,l)}function Kr(o){var l=o==null?0:o.length;return l?o[l-1]:e}function xN(o,l,m){var v=o==null?0:o.length;if(!v)return-1;var x=v;return m!==e&&(x=qe(m),x=x<0?tn(v+x,0):kn(x,v-1)),l===l?eP(o,l,x):Zm(o,UC,x,!0)}function DN(o,l){return o&&o.length?vw(o,qe(l)):e}var CN=We(uA);function uA(o,l){return o&&o.length&&l&&l.length?J0(o,l):o}function wN(o,l,m){return o&&o.length&&l&&l.length?J0(o,l,Te(m,2)):o}function AN(o,l,m){return o&&o.length&&l&&l.length?J0(o,l,e,m):o}var SN=pa(function(o,l){var m=o==null?0:o.length,v=$0(o,l);return bw(o,Bt(l,function(x){return da(x,m)?+x:x}).sort(Ow)),v});function TN(o,l){var m=[];if(!(o&&o.length))return m;var v=-1,x=[],S=o.length;for(l=Te(l,3);++v<S;){var R=o[v];l(R,v,o)&&(m.push(R),x.push(v))}return bw(o,x),m}function Ev(o){return o==null?o:bP.call(o)}function kN(o,l,m){var v=o==null?0:o.length;return v?(m&&typeof m!="number"&&Un(o,l,m)?(l=0,m=v):(l=l==null?0:qe(l),m=m===e?v:qe(m)),Wr(o,l,m)):[]}function BN(o,l){return yp(o,l)}function ON(o,l,m){return nv(o,l,Te(m,2))}function MN(o,l){var m=o==null?0:o.length;if(m){var v=yp(o,l);if(v<m&&Ei(o[v],l))return v}return-1}function RN(o,l){return yp(o,l,!0)}function FN(o,l,m){return nv(o,l,Te(m,2),!0)}function _N(o,l){var m=o==null?0:o.length;if(m){var v=yp(o,l,!0)-1;if(Ei(o[v],l))return v}return-1}function zN(o){return o&&o.length?Dw(o):[]}function LN(o,l){return o&&o.length?Dw(o,Te(l,2)):[]}function PN(o){var l=o==null?0:o.length;return l?Wr(o,1,l):[]}function IN(o,l,m){return o&&o.length?(l=m||l===e?1:qe(l),Wr(o,0,l<0?0:l)):[]}function NN(o,l,m){var v=o==null?0:o.length;return v?(l=m||l===e?1:qe(l),l=v-l,Wr(o,l<0?0:l,v)):[]}function UN(o,l){return o&&o.length?Ep(o,Te(l,3),!1,!0):[]}function HN(o,l){return o&&o.length?Ep(o,Te(l,3)):[]}var qN=We(function(o){return no(xn(o,1,qt,!0))}),jN=We(function(o){var l=Kr(o);return qt(l)&&(l=e),no(xn(o,1,qt,!0),Te(l,2))}),VN=We(function(o){var l=Kr(o);return l=typeof l=="function"?l:e,no(xn(o,1,qt,!0),e,l)});function $N(o){return o&&o.length?no(o):[]}function GN(o,l){return o&&o.length?no(o,Te(l,2)):[]}function WN(o,l){return l=typeof l=="function"?l:e,o&&o.length?no(o,e,l):[]}function bv(o){if(!(o&&o.length))return[];var l=0;return o=Qa(o,function(m){if(qt(m))return l=tn(m.length,l),!0}),P0(l,function(m){return Bt(o,_0(m))})}function lA(o,l){if(!(o&&o.length))return[];var m=bv(o);return l==null?m:Bt(m,function(v){return gr(l,e,v)})}var KN=We(function(o,l){return qt(o)?kc(o,l):[]}),YN=We(function(o){return iv(Qa(o,qt))}),QN=We(function(o){var l=Kr(o);return qt(l)&&(l=e),iv(Qa(o,qt),Te(l,2))}),XN=We(function(o){var l=Kr(o);return l=typeof l=="function"?l:e,iv(Qa(o,qt),e,l)}),ZN=We(bv);function JN(o,l){return Sw(o||[],l||[],Tc)}function eU(o,l){return Sw(o||[],l||[],Mc)}var tU=We(function(o){var l=o.length,m=l>1?o[l-1]:e;return m=typeof m=="function"?(o.pop(),m):e,lA(o,m)});function sA(o){var l=w(o);return l.__chain__=!0,l}function nU(o,l){return l(o),o}function kp(o,l){return l(o)}var rU=pa(function(o){var l=o.length,m=l?o[0]:0,v=this.__wrapped__,x=function(S){return $0(S,o)};return l>1||this.__actions__.length||!(v instanceof nt)||!da(m)?this.thru(x):(v=v.slice(m,+m+(l?1:0)),v.__actions__.push({func:kp,args:[x],thisArg:e}),new $r(v,this.__chain__).thru(function(S){return l&&!S.length&&S.push(e),S}))});function iU(){return sA(this)}function aU(){return new $r(this.value(),this.__chain__)}function oU(){this.__values__===e&&(this.__values__=CA(this.value()));var o=this.__index__>=this.__values__.length,l=o?e:this.__values__[this.__index__++];return{done:o,value:l}}function uU(){return this}function lU(o){for(var l,m=this;m instanceof pp;){var v=nA(m);v.__index__=0,v.__values__=e,l?x.__wrapped__=v:l=v;var x=v;m=m.__wrapped__}return x.__wrapped__=o,l}function sU(){var o=this.__wrapped__;if(o instanceof nt){var l=o;return this.__actions__.length&&(l=new nt(this)),l=l.reverse(),l.__actions__.push({func:kp,args:[Ev],thisArg:e}),new $r(l,this.__chain__)}return this.thru(Ev)}function cU(){return Aw(this.__wrapped__,this.__actions__)}var fU=bp(function(o,l,m){ht.call(o,m)?++o[m]:fa(o,m,1)});function mU(o,l,m){var v=Pe(o)?IC:nI;return m&&Un(o,l,m)&&(l=e),v(o,Te(l,3))}function pU(o,l){var m=Pe(o)?Qa:lw;return m(o,Te(l,3))}var dU=Lw(rA),hU=Lw(iA);function gU(o,l){return xn(Bp(o,l),1)}function vU(o,l){return xn(Bp(o,l),Y)}function yU(o,l,m){return m=m===e?1:qe(m),xn(Bp(o,l),m)}function cA(o,l){var m=Pe(o)?jr:to;return m(o,Te(l,3))}function fA(o,l){var m=Pe(o)?PL:uw;return m(o,Te(l,3))}var EU=bp(function(o,l,m){ht.call(o,m)?o[m].push(l):fa(o,m,[l])});function bU(o,l,m,v){o=ir(o)?o:Al(o),m=m&&!v?qe(m):0;var x=o.length;return m<0&&(m=tn(x+m,0)),_p(o)?m<=x&&o.indexOf(l,m)>-1:!!x&&dl(o,l,m)>-1}var xU=We(function(o,l,m){var v=-1,x=typeof l=="function",S=ir(o)?$(o.length):[];return to(o,function(R){S[++v]=x?gr(l,R,m):Bc(R,l,m)}),S}),DU=bp(function(o,l,m){fa(o,m,l)});function Bp(o,l){var m=Pe(o)?Bt:dw;return m(o,Te(l,3))}function CU(o,l,m,v){return o==null?[]:(Pe(l)||(l=l==null?[]:[l]),m=v?e:m,Pe(m)||(m=m==null?[]:[m]),yw(o,l,m))}var wU=bp(function(o,l,m){o[m?0:1].push(l)},function(){return[[],[]]});function AU(o,l,m){var v=Pe(o)?R0:qC,x=arguments.length<3;return v(o,Te(l,4),m,x,to)}function SU(o,l,m){var v=Pe(o)?IL:qC,x=arguments.length<3;return v(o,Te(l,4),m,x,uw)}function TU(o,l){var m=Pe(o)?Qa:lw;return m(o,Rp(Te(l,3)))}function kU(o){var l=Pe(o)?rw:bI;return l(o)}function BU(o,l,m){(m?Un(o,l,m):l===e)?l=1:l=qe(l);var v=Pe(o)?XP:xI;return v(o,l)}function OU(o){var l=Pe(o)?ZP:CI;return l(o)}function MU(o){if(o==null)return 0;if(ir(o))return _p(o)?gl(o):o.length;var l=Bn(o);return l==He||l==yn?o.size:X0(o).length}function RU(o,l,m){var v=Pe(o)?F0:wI;return m&&Un(o,l,m)&&(l=e),v(o,Te(l,3))}var FU=We(function(o,l){if(o==null)return[];var m=l.length;return m>1&&Un(o,l[0],l[1])?l=[]:m>2&&Un(l[0],l[1],l[2])&&(l=[l[0]]),yw(o,xn(l,1),[])}),Op=pP||function(){return ln.Date.now()};function _U(o,l){if(typeof l!="function")throw new Vr(i);return o=qe(o),function(){if(--o<1)return l.apply(this,arguments)}}function mA(o,l,m){return l=m?e:l,l=o&&l==null?o.length:l,ma(o,L,e,e,e,e,l)}function pA(o,l){var m;if(typeof l!="function")throw new Vr(i);return o=qe(o),function(){return--o>0&&(m=l.apply(this,arguments)),o<=1&&(l=e),m}}var xv=We(function(o,l,m){var v=b;if(m.length){var x=Za(m,Cl(xv));v|=C}return ma(o,v,l,m,x)}),dA=We(function(o,l,m){var v=b|A;if(m.length){var x=Za(m,Cl(dA));v|=C}return ma(l,v,o,m,x)});function hA(o,l,m){l=m?e:l;var v=ma(o,E,e,e,e,e,e,l);return v.placeholder=hA.placeholder,v}function gA(o,l,m){l=m?e:l;var v=ma(o,D,e,e,e,e,e,l);return v.placeholder=gA.placeholder,v}function vA(o,l,m){var v,x,S,R,z,q,ne=0,re=!1,le=!1,de=!0;if(typeof o!="function")throw new Vr(i);l=Yr(l)||0,_t(m)&&(re=!!m.leading,le="maxWait"in m,S=le?tn(Yr(m.maxWait)||0,l):S,de="trailing"in m?!!m.trailing:de);function xe(jt){var bi=v,va=x;return v=x=e,ne=jt,R=o.apply(va,bi),R}function ke(jt){return ne=jt,z=_c(Je,l),re?xe(jt):R}function Ve(jt){var bi=jt-q,va=jt-ne,LA=l-bi;return le?kn(LA,S-va):LA}function Be(jt){var bi=jt-q,va=jt-ne;return q===e||bi>=l||bi<0||le&&va>=S}function Je(){var jt=Op();if(Be(jt))return ot(jt);z=_c(Je,Ve(jt))}function ot(jt){return z=e,de&&v?xe(jt):(v=x=e,R)}function br(){z!==e&&Tw(z),ne=0,v=q=x=z=e}function Hn(){return z===e?R:ot(Op())}function xr(){var jt=Op(),bi=Be(jt);if(v=arguments,x=this,q=jt,bi){if(z===e)return ke(q);if(le)return Tw(z),z=_c(Je,l),xe(q)}return z===e&&(z=_c(Je,l)),R}return xr.cancel=br,xr.flush=Hn,xr}var zU=We(function(o,l){return ow(o,1,l)}),LU=We(function(o,l,m){return ow(o,Yr(l)||0,m)});function PU(o){return ma(o,H)}function Mp(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new Vr(i);var m=function(){var v=arguments,x=l?l.apply(this,v):v[0],S=m.cache;if(S.has(x))return S.get(x);var R=o.apply(this,v);return m.cache=S.set(x,R)||S,R};return m.cache=new(Mp.Cache||ca),m}Mp.Cache=ca;function Rp(o){if(typeof o!="function")throw new Vr(i);return function(){var l=arguments;switch(l.length){case 0:return!o.call(this);case 1:return!o.call(this,l[0]);case 2:return!o.call(this,l[0],l[1]);case 3:return!o.call(this,l[0],l[1],l[2])}return!o.apply(this,l)}}function IU(o){return pA(2,o)}var NU=AI(function(o,l){l=l.length==1&&Pe(l[0])?Bt(l[0],vr(Te())):Bt(xn(l,1),vr(Te()));var m=l.length;return We(function(v){for(var x=-1,S=kn(v.length,m);++x<S;)v[x]=l[x].call(this,v[x]);return gr(o,this,v)})}),Dv=We(function(o,l){var m=Za(l,Cl(Dv));return ma(o,C,e,l,m)}),yA=We(function(o,l){var m=Za(l,Cl(yA));return ma(o,M,e,l,m)}),UU=pa(function(o,l){return ma(o,B,e,e,e,l)});function HU(o,l){if(typeof o!="function")throw new Vr(i);return l=l===e?l:qe(l),We(o,l)}function qU(o,l){if(typeof o!="function")throw new Vr(i);return l=l==null?0:tn(qe(l),0),We(function(m){var v=m[l],x=io(m,0,l);return v&&Xa(x,v),gr(o,this,x)})}function jU(o,l,m){var v=!0,x=!0;if(typeof o!="function")throw new Vr(i);return _t(m)&&(v="leading"in m?!!m.leading:v,x="trailing"in m?!!m.trailing:x),vA(o,l,{leading:v,maxWait:l,trailing:x})}function VU(o){return mA(o,1)}function $U(o,l){return Dv(ov(l),o)}function GU(){if(!arguments.length)return[];var o=arguments[0];return Pe(o)?o:[o]}function WU(o){return Gr(o,h)}function KU(o,l){return l=typeof l=="function"?l:e,Gr(o,h,l)}function YU(o){return Gr(o,f|h)}function QU(o,l){return l=typeof l=="function"?l:e,Gr(o,f|h,l)}function XU(o,l){return l==null||aw(o,l,sn(l))}function Ei(o,l){return o===l||o!==o&&l!==l}var ZU=wp(K0),JU=wp(function(o,l){return o>=l}),pu=fw(function(){return arguments}())?fw:function(o){return Nt(o)&&ht.call(o,"callee")&&!XC.call(o,"callee")},Pe=$.isArray,eH=RC?vr(RC):lI;function ir(o){return o!=null&&Fp(o.length)&&!ha(o)}function qt(o){return Nt(o)&&ir(o)}function tH(o){return o===!0||o===!1||Nt(o)&&Nn(o)==Re}var ao=hP||Fv,nH=FC?vr(FC):sI;function rH(o){return Nt(o)&&o.nodeType===1&&!zc(o)}function iH(o){if(o==null)return!0;if(ir(o)&&(Pe(o)||typeof o=="string"||typeof o.splice=="function"||ao(o)||wl(o)||pu(o)))return!o.length;var l=Bn(o);if(l==He||l==yn)return!o.size;if(Fc(o))return!X0(o).length;for(var m in o)if(ht.call(o,m))return!1;return!0}function aH(o,l){return Oc(o,l)}function oH(o,l,m){m=typeof m=="function"?m:e;var v=m?m(o,l):e;return v===e?Oc(o,l,e,m):!!v}function Cv(o){if(!Nt(o))return!1;var l=Nn(o);return l==tt||l==Ne||typeof o.message=="string"&&typeof o.name=="string"&&!zc(o)}function uH(o){return typeof o=="number"&&JC(o)}function ha(o){if(!_t(o))return!1;var l=Nn(o);return l==Xe||l==Ze||l==je||l==zi}function EA(o){return typeof o=="number"&&o==qe(o)}function Fp(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=ve}function _t(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function Nt(o){return o!=null&&typeof o=="object"}var bA=_C?vr(_C):fI;function lH(o,l){return o===l||Q0(o,l,pv(l))}function sH(o,l,m){return m=typeof m=="function"?m:e,Q0(o,l,pv(l),m)}function cH(o){return xA(o)&&o!=+o}function fH(o){if(KI(o))throw new ze(r);return mw(o)}function mH(o){return o===null}function pH(o){return o==null}function xA(o){return typeof o=="number"||Nt(o)&&Nn(o)==it}function zc(o){if(!Nt(o)||Nn(o)!=Ft)return!1;var l=op(o);if(l===null)return!0;var m=ht.call(l,"constructor")&&l.constructor;return typeof m=="function"&&m instanceof m&&np.call(m)==sP}var wv=zC?vr(zC):mI;function dH(o){return EA(o)&&o>=-ve&&o<=ve}var DA=LC?vr(LC):pI;function _p(o){return typeof o=="string"||!Pe(o)&&Nt(o)&&Nn(o)==Hr}function Er(o){return typeof o=="symbol"||Nt(o)&&Nn(o)==hi}var wl=PC?vr(PC):dI;function hH(o){return o===e}function gH(o){return Nt(o)&&Bn(o)==Pi}function vH(o){return Nt(o)&&Nn(o)==ml}var yH=wp(Z0),EH=wp(function(o,l){return o<=l});function CA(o){if(!o)return[];if(ir(o))return _p(o)?vi(o):rr(o);if(Dc&&o[Dc])return XL(o[Dc]());var l=Bn(o),m=l==He?N0:l==yn?Jm:Al;return m(o)}function ga(o){if(!o)return o===0?o:0;if(o=Yr(o),o===Y||o===-Y){var l=o<0?-1:1;return l*U}return o===o?o:0}function qe(o){var l=ga(o),m=l%1;return l===l?m?l-m:l:0}function wA(o){return o?su(qe(o),0,Q):0}function Yr(o){if(typeof o=="number")return o;if(Er(o))return ee;if(_t(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=_t(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=jC(o);var m=eL.test(o);return m||nL.test(o)?_L(o.slice(2),m?2:8):Jz.test(o)?ee:+o}function AA(o){return Ni(o,ar(o))}function bH(o){return o?su(qe(o),-ve,ve):o===0?o:0}function dt(o){return o==null?"":yr(o)}var xH=xl(function(o,l){if(Fc(l)||ir(l)){Ni(l,sn(l),o);return}for(var m in l)ht.call(l,m)&&Tc(o,m,l[m])}),SA=xl(function(o,l){Ni(l,ar(l),o)}),zp=xl(function(o,l,m,v){Ni(l,ar(l),o,v)}),DH=xl(function(o,l,m,v){Ni(l,sn(l),o,v)}),CH=pa($0);function wH(o,l){var m=bl(o);return l==null?m:iw(m,l)}var AH=We(function(o,l){o=Et(o);var m=-1,v=l.length,x=v>2?l[2]:e;for(x&&Un(l[0],l[1],x)&&(v=1);++m<v;)for(var S=l[m],R=ar(S),z=-1,q=R.length;++z<q;){var ne=R[z],re=o[ne];(re===e||Ei(re,vl[ne])&&!ht.call(o,ne))&&(o[ne]=S[ne])}return o}),SH=We(function(o){return o.push(e,jw),gr(TA,e,o)});function TH(o,l){return NC(o,Te(l,3),Ii)}function kH(o,l){return NC(o,Te(l,3),W0)}function BH(o,l){return o==null?o:G0(o,Te(l,3),ar)}function OH(o,l){return o==null?o:sw(o,Te(l,3),ar)}function MH(o,l){return o&&Ii(o,Te(l,3))}function RH(o,l){return o&&W0(o,Te(l,3))}function FH(o){return o==null?[]:gp(o,sn(o))}function _H(o){return o==null?[]:gp(o,ar(o))}function Av(o,l,m){var v=o==null?e:cu(o,l);return v===e?m:v}function zH(o,l){return o!=null&&Gw(o,l,iI)}function Sv(o,l){return o!=null&&Gw(o,l,aI)}var LH=Iw(function(o,l,m){l!=null&&typeof l.toString!="function"&&(l=rp.call(l)),o[l]=m},kv(or)),PH=Iw(function(o,l,m){l!=null&&typeof l.toString!="function"&&(l=rp.call(l)),ht.call(o,l)?o[l].push(m):o[l]=[m]},Te),IH=We(Bc);function sn(o){return ir(o)?nw(o):X0(o)}function ar(o){return ir(o)?nw(o,!0):hI(o)}function NH(o,l){var m={};return l=Te(l,3),Ii(o,function(v,x,S){fa(m,l(v,x,S),v)}),m}function UH(o,l){var m={};return l=Te(l,3),Ii(o,function(v,x,S){fa(m,x,l(v,x,S))}),m}var HH=xl(function(o,l,m){vp(o,l,m)}),TA=xl(function(o,l,m,v){vp(o,l,m,v)}),qH=pa(function(o,l){var m={};if(o==null)return m;var v=!1;l=Bt(l,function(S){return S=ro(S,o),v||(v=S.length>1),S}),Ni(o,fv(o),m),v&&(m=Gr(m,f|p|h,LI));for(var x=l.length;x--;)rv(m,l[x]);return m});function jH(o,l){return kA(o,Rp(Te(l)))}var VH=pa(function(o,l){return o==null?{}:vI(o,l)});function kA(o,l){if(o==null)return{};var m=Bt(fv(o),function(v){return[v]});return l=Te(l),Ew(o,m,function(v,x){return l(v,x[0])})}function $H(o,l,m){l=ro(l,o);var v=-1,x=l.length;for(x||(x=1,o=e);++v<x;){var S=o==null?e:o[Ui(l[v])];S===e&&(v=x,S=m),o=ha(S)?S.call(o):S}return o}function GH(o,l,m){return o==null?o:Mc(o,l,m)}function WH(o,l,m,v){return v=typeof v=="function"?v:e,o==null?o:Mc(o,l,m,v)}var BA=Hw(sn),OA=Hw(ar);function KH(o,l,m){var v=Pe(o),x=v||ao(o)||wl(o);if(l=Te(l,4),m==null){var S=o&&o.constructor;x?m=v?new S:[]:_t(o)?m=ha(S)?bl(op(o)):{}:m={}}return(x?jr:Ii)(o,function(R,z,q){return l(m,R,z,q)}),m}function YH(o,l){return o==null?!0:rv(o,l)}function QH(o,l,m){return o==null?o:ww(o,l,ov(m))}function XH(o,l,m,v){return v=typeof v=="function"?v:e,o==null?o:ww(o,l,ov(m),v)}function Al(o){return o==null?[]:I0(o,sn(o))}function ZH(o){return o==null?[]:I0(o,ar(o))}function JH(o,l,m){return m===e&&(m=l,l=e),m!==e&&(m=Yr(m),m=m===m?m:0),l!==e&&(l=Yr(l),l=l===l?l:0),su(Yr(o),l,m)}function eq(o,l,m){return l=ga(l),m===e?(m=l,l=0):m=ga(m),o=Yr(o),oI(o,l,m)}function tq(o,l,m){if(m&&typeof m!="boolean"&&Un(o,l,m)&&(l=m=e),m===e&&(typeof l=="boolean"?(m=l,l=e):typeof o=="boolean"&&(m=o,o=e)),o===e&&l===e?(o=0,l=1):(o=ga(o),l===e?(l=o,o=0):l=ga(l)),o>l){var v=o;o=l,l=v}if(m||o%1||l%1){var x=ew();return kn(o+x*(l-o+FL("1e-"+((x+"").length-1))),l)}return ev(o,l)}var nq=Dl(function(o,l,m){return l=l.toLowerCase(),o+(m?MA(l):l)});function MA(o){return Tv(dt(o).toLowerCase())}function RA(o){return o=dt(o),o&&o.replace(iL,GL).replace(CL,"")}function rq(o,l,m){o=dt(o),l=yr(l);var v=o.length;m=m===e?v:su(qe(m),0,v);var x=m;return m-=l.length,m>=0&&o.slice(m,x)==l}function iq(o){return o=dt(o),o&&Iz.test(o)?o.replace(Wm,WL):o}function aq(o){return o=dt(o),o&&Vz.test(o)?o.replace(D0,"\\$&"):o}var oq=Dl(function(o,l,m){return o+(m?"-":"")+l.toLowerCase()}),uq=Dl(function(o,l,m){return o+(m?" ":"")+l.toLowerCase()}),lq=zw("toLowerCase");function sq(o,l,m){o=dt(o),l=qe(l);var v=l?gl(o):0;if(!l||v>=l)return o;var x=(l-v)/2;return Cp(cp(x),m)+o+Cp(sp(x),m)}function cq(o,l,m){o=dt(o),l=qe(l);var v=l?gl(o):0;return l&&v<l?o+Cp(l-v,m):o}function fq(o,l,m){o=dt(o),l=qe(l);var v=l?gl(o):0;return l&&v<l?Cp(l-v,m)+o:o}function mq(o,l,m){return m||l==null?l=0:l&&(l=+l),EP(dt(o).replace(C0,""),l||0)}function pq(o,l,m){return(m?Un(o,l,m):l===e)?l=1:l=qe(l),tv(dt(o),l)}function dq(){var o=arguments,l=dt(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var hq=Dl(function(o,l,m){return o+(m?"_":"")+l.toLowerCase()});function gq(o,l,m){return m&&typeof m!="number"&&Un(o,l,m)&&(l=m=e),m=m===e?Q:m>>>0,m?(o=dt(o),o&&(typeof l=="string"||l!=null&&!wv(l))&&(l=yr(l),!l&&hl(o))?io(vi(o),0,m):o.split(l,m)):[]}var vq=Dl(function(o,l,m){return o+(m?" ":"")+Tv(l)});function yq(o,l,m){return o=dt(o),m=m==null?0:su(qe(m),0,o.length),l=yr(l),o.slice(m,m+l.length)==l}function Eq(o,l,m){var v=w.templateSettings;m&&Un(o,l,m)&&(l=e),o=dt(o),l=zp({},l,v,qw);var x=zp({},l.imports,v.imports,qw),S=sn(x),R=I0(x,S),z,q,ne=0,re=l.interpolate||Km,le="__p += '",de=U0((l.escape||Km).source+"|"+re.source+"|"+(re===cC?Zz:Km).source+"|"+(l.evaluate||Km).source+"|$","g"),xe="//# sourceURL="+(ht.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kL+"]")+`
|
|
12
|
+
`;o.replace(de,function(Be,Je,ot,br,Hn,xr){return ot||(ot=br),le+=o.slice(ne,xr).replace(aL,KL),Je&&(z=!0,le+=`' +
|
|
13
|
+
__e(`+Je+`) +
|
|
14
|
+
'`),Hn&&(q=!0,le+=`';
|
|
15
|
+
`+Hn+`;
|
|
16
|
+
__p += '`),ot&&(le+=`' +
|
|
17
|
+
((__t = (`+ot+`)) == null ? '' : __t) +
|
|
18
|
+
'`),ne=xr+Be.length,Be}),le+=`';
|
|
19
|
+
`;var ke=ht.call(l,"variable")&&l.variable;if(!ke)le=`with (obj) {
|
|
20
|
+
`+le+`
|
|
21
21
|
}
|
|
22
|
-
`;else if(
|
|
23
|
-
`+(
|
|
24
|
-
`)+"var __t, __p = ''"+(
|
|
22
|
+
`;else if(Qz.test(ke))throw new ze(a);le=(q?le.replace(la,""):le).replace(At,"$1").replace(iu,"$1;"),le="function("+(ke||"obj")+`) {
|
|
23
|
+
`+(ke?"":`obj || (obj = {});
|
|
24
|
+
`)+"var __t, __p = ''"+(z?", __e = _.escape":"")+(q?`, __j = Array.prototype.join;
|
|
25
25
|
function print() { __p += __j.call(arguments, '') }
|
|
26
26
|
`:`;
|
|
27
|
-
`)+
|
|
28
|
-
}`;var tt=n2(function(){return bt(O,Be+"return "+ce).apply(e,F)});if(tt.source=ce,Kv(tt))throw tt;return tt}function CG(u){return Et(u).toLowerCase()}function SG(u){return Et(u).toUpperCase()}function kG(u,s,h){if(u=Et(u),u&&(h||s===e))return fk(u);if(!u||!(s=Ur(s)))return u;var v=Ui(u),k=Ui(s),O=pk(v,k),F=mk(v,k)+1;return Aa(v,O,F).join("")}function AG(u,s,h){if(u=Et(u),u&&(h||s===e))return u.slice(0,dk(u)+1);if(!u||!(s=Ur(s)))return u;var v=Ui(u),k=mk(v,Ui(s))+1;return Aa(v,0,k).join("")}function TG(u,s,h){if(u=Et(u),u&&(h||s===e))return u.replace(K1,"");if(!u||!(s=Ur(s)))return u;var v=Ui(u),k=pk(v,Ui(s));return Aa(v,k).join("")}function BG(u,s){var h=V,v=J;if($t(s)){var k="separator"in s?s.separator:k;h="length"in s?et(s.length):h,v="omission"in s?Ur(s.omission):v}u=Et(u);var O=u.length;if(Wl(u)){var F=Ui(u);O=F.length}if(h>=O)return u;var N=h-Kl(v);if(N<1)return v;var $=F?Aa(F,0,N).join(""):u.slice(0,N);if(k===e)return $+v;if(F&&(N+=$.length-N),Yv(k)){if(u.slice(N).search(k)){var ue,le=$;for(k.global||(k=fv(k.source,Et(FS.exec(k))+"g")),k.lastIndex=0;ue=k.exec(le);)var ce=ue.index;$=$.slice(0,ce===e?N:ce)}}else if(u.indexOf(Ur(k),N)!=N){var xe=$.lastIndexOf(k);xe>-1&&($=$.slice(0,xe))}return $+v}function OG(u){return u=Et(u),u&&H8.test(u)?u.replace(Er,oH):u}var MG=es(function(u,s,h){return u+(h?" ":"")+s.toUpperCase()}),Zv=rA("toUpperCase");function t2(u,s,h){return u=Et(u),s=h?e:s,s===e?eH(u)?lH(u):$U(u):u.match(s)||[]}var n2=it(function(u,s){try{return zr(u,e,s)}catch(h){return Kv(h)?h:new $e(h)}}),RG=Fo(function(u,s){return fi(s,function(h){h=ao(h),Mo(u,h,Gv(u[h],u))}),u});function FG(u){var s=u==null?0:u.length,h=Fe();return u=s?Nt(u,function(v){if(typeof v[1]!="function")throw new pi(i);return[h(v[0]),v[1]]}):[],it(function(v){for(var k=-1;++k<s;){var O=u[k];if(zr(O[0],this,v))return zr(O[1],this,v)}})}function _G(u){return oq(hi(u,f))}function Jv(u){return function(){return u}}function IG(u,s){return u==null||u!==u?s:u}var LG=oA(),PG=oA(!0);function Sr(u){return u}function ey(u){return Ik(typeof u=="function"?u:hi(u,f))}function zG(u){return Pk(hi(u,f))}function NG(u,s){return zk(u,hi(s,f))}var UG=it(function(u,s){return function(h){return hf(h,u,s)}}),HG=it(function(u,s){return function(h){return hf(u,h,s)}});function ty(u,s,h){var v=Cn(s),k=ph(s,v);h==null&&!($t(s)&&(k.length||!v.length))&&(h=s,s=u,u=this,k=ph(s,Cn(s)));var O=!($t(h)&&"chain"in h)||!!h.chain,F=Io(u);return fi(k,function(N){var $=s[N];u[N]=$,F&&(u.prototype[N]=function(){var ue=this.__chain__;if(O||ue){var le=u(this.__wrapped__),ce=le.__actions__=Dr(this.__actions__);return ce.push({func:$,args:arguments,thisArg:u}),le.__chain__=ue,le}return $.apply(u,ba([this.value()],arguments))})}),u}function qG(){return wn._===this&&(wn._=hH),this}function ny(){}function jG(u){return u=et(u),it(function(s){return Nk(s,u)})}var VG=Fv(Nt),$G=Fv(ak),GG=Fv(iv);function r2(u){return Uv(u)?ov(ao(u)):Dq(u)}function WG(u){return function(s){return u==null?e:Lu(u,s)}}var KG=uA(),YG=uA(!0);function ry(){return[]}function iy(){return!1}function XG(){return{}}function QG(){return""}function ZG(){return!0}function JG(u,s){if(u=et(u),u<1||u>me)return[];var h=Q,v=Vn(u,Q);s=Fe(s),u-=Q;for(var k=lv(v,s);++h<u;)s(h);return k}function eW(u){return Ye(u)?Nt(u,ao):Hr(u)?[u]:Dr(wA(Et(u)))}function tW(u){var s=++pH;return Et(u)+s}var nW=yh(function(u,s){return u+s},0),rW=_v("ceil"),iW=yh(function(u,s){return u/s},1),oW=_v("floor");function aW(u){return u&&u.length?fh(u,Sr,xv):e}function uW(u,s){return u&&u.length?fh(u,Fe(s,2),xv):e}function lW(u){return sk(u,Sr)}function sW(u,s){return sk(u,Fe(s,2))}function cW(u){return u&&u.length?fh(u,Sr,wv):e}function fW(u,s){return u&&u.length?fh(u,Fe(s,2),wv):e}var pW=yh(function(u,s){return u*s},1),mW=_v("round"),hW=yh(function(u,s){return u-s},0);function dW(u){return u&&u.length?uv(u,Sr):0}function gW(u,s){return u&&u.length?uv(u,Fe(s,2)):0}return B.after=zV,B.ary=_A,B.assign=S$,B.assignIn=KA,B.assignInWith=Mh,B.assignWith=k$,B.at=A$,B.before=IA,B.bind=Gv,B.bindAll=RG,B.bindKey=LA,B.castArray=XV,B.chain=MA,B.chunk=oj,B.compact=aj,B.concat=uj,B.cond=FG,B.conforms=_G,B.constant=Jv,B.countBy=dV,B.create=T$,B.curry=PA,B.curryRight=zA,B.debounce=NA,B.defaults=B$,B.defaultsDeep=O$,B.defer=NV,B.delay=UV,B.difference=lj,B.differenceBy=sj,B.differenceWith=cj,B.drop=fj,B.dropRight=pj,B.dropRightWhile=mj,B.dropWhile=hj,B.fill=dj,B.filter=vV,B.flatMap=bV,B.flatMapDeep=EV,B.flatMapDepth=DV,B.flatten=AA,B.flattenDeep=gj,B.flattenDepth=vj,B.flip=HV,B.flow=LG,B.flowRight=PG,B.fromPairs=yj,B.functions=P$,B.functionsIn=z$,B.groupBy=wV,B.initial=bj,B.intersection=Ej,B.intersectionBy=Dj,B.intersectionWith=wj,B.invert=U$,B.invertBy=H$,B.invokeMap=SV,B.iteratee=ey,B.keyBy=kV,B.keys=Cn,B.keysIn=Cr,B.map=Sh,B.mapKeys=j$,B.mapValues=V$,B.matches=zG,B.matchesProperty=NG,B.memoize=Ah,B.merge=$$,B.mergeWith=YA,B.method=UG,B.methodOf=HG,B.mixin=ty,B.negate=Th,B.nthArg=jG,B.omit=G$,B.omitBy=W$,B.once=qV,B.orderBy=AV,B.over=VG,B.overArgs=jV,B.overEvery=$G,B.overSome=GG,B.partial=Wv,B.partialRight=UA,B.partition=TV,B.pick=K$,B.pickBy=XA,B.property=r2,B.propertyOf=WG,B.pull=Aj,B.pullAll=BA,B.pullAllBy=Tj,B.pullAllWith=Bj,B.pullAt=Oj,B.range=KG,B.rangeRight=YG,B.rearg=VV,B.reject=MV,B.remove=Mj,B.rest=$V,B.reverse=Vv,B.sampleSize=FV,B.set=X$,B.setWith=Q$,B.shuffle=_V,B.slice=Rj,B.sortBy=PV,B.sortedUniq=Nj,B.sortedUniqBy=Uj,B.split=bG,B.spread=GV,B.tail=Hj,B.take=qj,B.takeRight=jj,B.takeRightWhile=Vj,B.takeWhile=$j,B.tap=aV,B.throttle=WV,B.thru=Ch,B.toArray=$A,B.toPairs=QA,B.toPairsIn=ZA,B.toPath=eW,B.toPlainObject=WA,B.transform=Z$,B.unary=KV,B.union=Gj,B.unionBy=Wj,B.unionWith=Kj,B.uniq=Yj,B.uniqBy=Xj,B.uniqWith=Qj,B.unset=J$,B.unzip=$v,B.unzipWith=OA,B.update=eG,B.updateWith=tG,B.values=rs,B.valuesIn=nG,B.without=Zj,B.words=t2,B.wrap=YV,B.xor=Jj,B.xorBy=eV,B.xorWith=tV,B.zip=nV,B.zipObject=rV,B.zipObjectDeep=iV,B.zipWith=oV,B.entries=QA,B.entriesIn=ZA,B.extend=KA,B.extendWith=Mh,ty(B,B),B.add=nW,B.attempt=n2,B.camelCase=aG,B.capitalize=JA,B.ceil=rW,B.clamp=rG,B.clone=QV,B.cloneDeep=JV,B.cloneDeepWith=e$,B.cloneWith=ZV,B.conformsTo=t$,B.deburr=e2,B.defaultTo=IG,B.divide=iW,B.endsWith=uG,B.eq=qi,B.escape=lG,B.escapeRegExp=sG,B.every=gV,B.find=yV,B.findIndex=SA,B.findKey=M$,B.findLast=xV,B.findLastIndex=kA,B.findLastKey=R$,B.floor=oW,B.forEach=RA,B.forEachRight=FA,B.forIn=F$,B.forInRight=_$,B.forOwn=I$,B.forOwnRight=L$,B.get=Xv,B.gt=n$,B.gte=r$,B.has=N$,B.hasIn=Qv,B.head=TA,B.identity=Sr,B.includes=CV,B.indexOf=xj,B.inRange=iG,B.invoke=q$,B.isArguments=Nu,B.isArray=Ye,B.isArrayBuffer=i$,B.isArrayLike=wr,B.isArrayLikeObject=en,B.isBoolean=o$,B.isBuffer=Ta,B.isDate=a$,B.isElement=u$,B.isEmpty=l$,B.isEqual=s$,B.isEqualWith=c$,B.isError=Kv,B.isFinite=f$,B.isFunction=Io,B.isInteger=HA,B.isLength=Bh,B.isMap=qA,B.isMatch=p$,B.isMatchWith=m$,B.isNaN=h$,B.isNative=d$,B.isNil=v$,B.isNull=g$,B.isNumber=jA,B.isObject=$t,B.isObjectLike=Xt,B.isPlainObject=bf,B.isRegExp=Yv,B.isSafeInteger=y$,B.isSet=VA,B.isString=Oh,B.isSymbol=Hr,B.isTypedArray=ns,B.isUndefined=x$,B.isWeakMap=b$,B.isWeakSet=E$,B.join=Cj,B.kebabCase=cG,B.last=gi,B.lastIndexOf=Sj,B.lowerCase=fG,B.lowerFirst=pG,B.lt=D$,B.lte=w$,B.max=aW,B.maxBy=uW,B.mean=lW,B.meanBy=sW,B.min=cW,B.minBy=fW,B.stubArray=ry,B.stubFalse=iy,B.stubObject=XG,B.stubString=QG,B.stubTrue=ZG,B.multiply=pW,B.nth=kj,B.noConflict=qG,B.noop=ny,B.now=kh,B.pad=mG,B.padEnd=hG,B.padStart=dG,B.parseInt=gG,B.random=oG,B.reduce=BV,B.reduceRight=OV,B.repeat=vG,B.replace=yG,B.result=Y$,B.round=mW,B.runInContext=j,B.sample=RV,B.size=IV,B.snakeCase=xG,B.some=LV,B.sortedIndex=Fj,B.sortedIndexBy=_j,B.sortedIndexOf=Ij,B.sortedLastIndex=Lj,B.sortedLastIndexBy=Pj,B.sortedLastIndexOf=zj,B.startCase=EG,B.startsWith=DG,B.subtract=hW,B.sum=dW,B.sumBy=gW,B.template=wG,B.times=JG,B.toFinite=Lo,B.toInteger=et,B.toLength=GA,B.toLower=CG,B.toNumber=vi,B.toSafeInteger=C$,B.toString=Et,B.toUpper=SG,B.trim=kG,B.trimEnd=AG,B.trimStart=TG,B.truncate=BG,B.unescape=OG,B.uniqueId=tW,B.upperCase=MG,B.upperFirst=Zv,B.each=RA,B.eachRight=FA,B.first=TA,ty(B,function(){var u={};return io(B,function(s,h){Dt.call(B.prototype,h)||(u[h]=s)}),u}(),{chain:!1}),B.VERSION=t,fi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){B[u].placeholder=B}),fi(["drop","take"],function(u,s){ct.prototype[u]=function(h){h=h===e?1:vn(et(h),0);var v=this.__filtered__&&!s?new ct(this):this.clone();return v.__filtered__?v.__takeCount__=Vn(h,v.__takeCount__):v.__views__.push({size:Vn(h,Q),type:u+(v.__dir__<0?"Right":"")}),v},ct.prototype[u+"Right"]=function(h){return this.reverse()[u](h).reverse()}}),fi(["filter","map","takeWhile"],function(u,s){var h=s+1,v=h==Z||h==K;ct.prototype[u]=function(k){var O=this.clone();return O.__iteratees__.push({iteratee:Fe(k,3),type:h}),O.__filtered__=O.__filtered__||v,O}}),fi(["head","last"],function(u,s){var h="take"+(s?"Right":"");ct.prototype[u]=function(){return this[h](1).value()[0]}}),fi(["initial","tail"],function(u,s){var h="drop"+(s?"":"Right");ct.prototype[u]=function(){return this.__filtered__?new ct(this):this[h](1)}}),ct.prototype.compact=function(){return this.filter(Sr)},ct.prototype.find=function(u){return this.filter(u).head()},ct.prototype.findLast=function(u){return this.reverse().find(u)},ct.prototype.invokeMap=it(function(u,s){return typeof u=="function"?new ct(this):this.map(function(h){return hf(h,u,s)})}),ct.prototype.reject=function(u){return this.filter(Th(Fe(u)))},ct.prototype.slice=function(u,s){u=et(u);var h=this;return h.__filtered__&&(u>0||s<0)?new ct(h):(u<0?h=h.takeRight(-u):u&&(h=h.drop(u)),s!==e&&(s=et(s),h=s<0?h.dropRight(-s):h.take(s-u)),h)},ct.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},ct.prototype.toArray=function(){return this.take(Q)},io(ct.prototype,function(u,s){var h=/^(?:filter|find|map|reject)|While$/.test(s),v=/^(?:head|last)$/.test(s),k=B[v?"take"+(s=="last"?"Right":""):s],O=v||/^find/.test(s);k&&(B.prototype[s]=function(){var F=this.__wrapped__,N=v?[1]:arguments,$=F instanceof ct,ue=N[0],le=$||Ye(F),ce=function(lt){var pt=k.apply(B,ba([lt],N));return v&&xe?pt[0]:pt};le&&h&&typeof ue=="function"&&ue.length!=1&&($=le=!1);var xe=this.__chain__,Be=!!this.__actions__.length,Ie=O&&!xe,tt=$&&!Be;if(!O&&le){F=tt?F:new ct(this);var Le=u.apply(F,N);return Le.__actions__.push({func:Ch,args:[ce],thisArg:e}),new mi(Le,xe)}return Ie&&tt?u.apply(this,N):(Le=this.thru(ce),Ie?v?Le.value()[0]:Le.value():Le)})}),fi(["pop","push","shift","sort","splice","unshift"],function(u){var s=Xm[u],h=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",v=/^(?:pop|shift)$/.test(u);B.prototype[u]=function(){var k=arguments;if(v&&!this.__chain__){var O=this.value();return s.apply(Ye(O)?O:[],k)}return this[h](function(F){return s.apply(Ye(F)?F:[],k)})}}),io(ct.prototype,function(u,s){var h=B[s];if(h){var v=h.name+"";Dt.call(Ql,v)||(Ql[v]=[]),Ql[v].push({name:s,func:h})}}),Ql[vh(e,S).name]=[{name:"wrapper",func:e}],ct.prototype.clone=OH,ct.prototype.reverse=MH,ct.prototype.value=RH,B.prototype.at=uV,B.prototype.chain=lV,B.prototype.commit=sV,B.prototype.next=cV,B.prototype.plant=pV,B.prototype.reverse=mV,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=hV,B.prototype.first=B.prototype.head,uf&&(B.prototype[uf]=fV),B},Da=sH();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(wn._=Da,define(function(){return Da})):Mu?((Mu.exports=Da)._=Da,ev._=Da):wn._=Da}).call(Gs)});var v5=be((lce,g5)=>{"use strict";g5.exports=yQ;var h5="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",d5="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",gQ=new RegExp("^[^"+d5+"]*["+h5+"]"),vQ=new RegExp("^[^"+h5+"]*["+d5+"]");function yQ(e){return e=String(e||""),gQ.test(e)?"rtl":vQ.test(e)?"ltr":"neutral"}});var hg=be((sce,y5)=>{function xQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}y5.exports=xQ});var b5=be((cce,x5)=>{var bQ=typeof global=="object"&&global&&global.Object===Object&&global;x5.exports=bQ});var nE=be((fce,E5)=>{var EQ=b5(),DQ=typeof self=="object"&&self&&self.Object===Object&&self,wQ=EQ||DQ||Function("return this")();E5.exports=wQ});var w5=be((pce,D5)=>{var CQ=nE(),SQ=function(){return CQ.Date.now()};D5.exports=SQ});var S5=be((mce,C5)=>{var kQ=/\s/;function AQ(e){for(var t=e.length;t--&&kQ.test(e.charAt(t)););return t}C5.exports=AQ});var A5=be((hce,k5)=>{var TQ=S5(),BQ=/^\s+/;function OQ(e){return e&&e.slice(0,TQ(e)+1).replace(BQ,"")}k5.exports=OQ});var rE=be((dce,T5)=>{var MQ=nE(),RQ=MQ.Symbol;T5.exports=RQ});var R5=be((gce,M5)=>{var B5=rE(),O5=Object.prototype,FQ=O5.hasOwnProperty,_Q=O5.toString,Rp=B5?B5.toStringTag:void 0;function IQ(e){var t=FQ.call(e,Rp),n=e[Rp];try{e[Rp]=void 0;var r=!0}catch{}var i=_Q.call(e);return r&&(t?e[Rp]=n:delete e[Rp]),i}M5.exports=IQ});var _5=be((vce,F5)=>{var LQ=Object.prototype,PQ=LQ.toString;function zQ(e){return PQ.call(e)}F5.exports=zQ});var z5=be((yce,P5)=>{var I5=rE(),NQ=R5(),UQ=_5(),HQ="[object Null]",qQ="[object Undefined]",L5=I5?I5.toStringTag:void 0;function jQ(e){return e==null?e===void 0?qQ:HQ:L5&&L5 in Object(e)?NQ(e):UQ(e)}P5.exports=jQ});var U5=be((xce,N5)=>{function VQ(e){return e!=null&&typeof e=="object"}N5.exports=VQ});var q5=be((bce,H5)=>{var $Q=z5(),GQ=U5(),WQ="[object Symbol]";function KQ(e){return typeof e=="symbol"||GQ(e)&&$Q(e)==WQ}H5.exports=KQ});var G5=be((Ece,$5)=>{var YQ=A5(),j5=hg(),XQ=q5(),V5=0/0,QQ=/^[-+]0x[0-9a-f]+$/i,ZQ=/^0b[01]+$/i,JQ=/^0o[0-7]+$/i,eZ=parseInt;function tZ(e){if(typeof e=="number")return e;if(XQ(e))return V5;if(j5(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=j5(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=YQ(e);var n=ZQ.test(e);return n||JQ.test(e)?eZ(e.slice(2),n?2:8):QQ.test(e)?V5:+e}$5.exports=tZ});var oE=be((Dce,K5)=>{var nZ=hg(),iE=w5(),W5=G5(),rZ="Expected a function",iZ=Math.max,oZ=Math.min;function aZ(e,t,n){var r,i,o,a,l,c,f=0,p=!1,d=!1,g=!0;if(typeof e!="function")throw new TypeError(rZ);t=W5(t)||0,nZ(n)&&(p=!!n.leading,d="maxWait"in n,o=d?iZ(W5(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g);function m(A){var P=r,V=i;return r=i=void 0,f=A,a=e.apply(V,P),a}function x(A){return f=A,l=setTimeout(y,t),p?m(A):a}function S(A){var P=A-c,V=A-f,J=t-P;return d?oZ(J,o-V):J}function T(A){var P=A-c,V=A-f;return c===void 0||P>=t||P<0||d&&V>=o}function y(){var A=iE();if(T(A))return w(A);l=setTimeout(y,S(A))}function w(A){return l=void 0,g&&r?m(A):(r=i=void 0,a)}function C(){l!==void 0&&clearTimeout(l),f=0,r=c=i=l=void 0}function M(){return l===void 0?a:w(iE())}function R(){var A=iE(),P=T(A);if(r=arguments,i=this,c=A,P){if(l===void 0)return x(c);if(d)return clearTimeout(l),l=setTimeout(y,t),m(c)}return l===void 0&&(l=setTimeout(y,t)),a}return R.cancel=C,R.flush=M,R}K5.exports=aZ});var X5=be((wce,Y5)=>{var uZ=oE(),lZ=hg(),sZ="Expected a function";function cZ(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(sZ);return lZ(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),uZ(e,t,{leading:r,maxWait:t,trailing:i})}Y5.exports=cZ});var oM=be(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var hZ=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),lE={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},dZ={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:hZ?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},tM={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(Fp=1;Fp<20;Fp++)tM["f"+Fp]=111+Fp;var Fp;function gg(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return nM(a,t)}),i=function(l){return r.some(function(c){return rM(c,l)})},o=n==null?i:i(n);return o}function gZ(e,t){return gg(e,t)}function vZ(e,t){return gg(e,{byKey:!0},t)}function nM(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),o=i.length;for(var a in lE)r[lE[a]]=!1;var l=!0,c=!1,f=void 0;try{for(var p=i[Symbol.iterator](),d;!(l=(d=p.next()).done);l=!0){var g=d.value,m=g.endsWith("?")&&g.length>1;m&&(g=g.slice(0,-1));var x=sE(g),S=lE[x];(o===1||!S)&&(n?r.key=x:r.which=iM(g)),S&&(r[S]=m?null:!0)}}catch(T){c=!0,f=T}finally{try{!l&&p.return&&p.return()}finally{if(c)throw f}}return r}function rM(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&(n==="key"&&t.key!=null?i=t.key.toLowerCase():n==="which"?i=r===91&&t.which===93?91:t.which:i=t[n],!(i==null&&r===!1)&&i!==r))return!1}return!0}function iM(e){e=sE(e);var t=tM[e]||e.toUpperCase().charCodeAt(0);return t}function sE(e){return e=e.toLowerCase(),e=dZ[e]||e,e}xo.default=gg;xo.isHotkey=gg;xo.isCodeHotkey=gZ;xo.isKeyHotkey=vZ;xo.parseHotkey=nM;xo.compareHotkey=rM;xo.toKeyCode=iM;xo.toKeyName=sE});var NR=be((lve,zR)=>{"use strict";var Xg=Object.prototype.hasOwnProperty,PR=Object.prototype.toString,MR=Object.defineProperty,RR=Object.getOwnPropertyDescriptor,FR=function(t){return typeof Array.isArray=="function"?Array.isArray(t):PR.call(t)==="[object Array]"},_R=function(t){if(!t||PR.call(t)!=="[object Object]")return!1;var n=Xg.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Xg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Xg.call(t,i)},IR=function(t,n){MR&&n.name==="__proto__"?MR(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},LR=function(t,n){if(n==="__proto__")if(Xg.call(t,n)){if(RR)return RR(t,n).value}else return;return t[n]};zR.exports=function e(){var t,n,r,i,o,a,l=arguments[0],c=1,f=arguments.length,p=!1;for(typeof l=="boolean"&&(p=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<f;++c)if(t=arguments[c],t!=null)for(n in t)r=LR(l,n),i=LR(t,n),l!==i&&(p&&i&&(_R(i)||(o=FR(i)))?(o?(o=!1,a=r&&FR(r)?r:[]):a=r&&_R(r)?r:{},IR(l,{name:n,newValue:e(p,a,i)})):typeof i<"u"&&IR(l,{name:n,newValue:i}));return l}});var GF=be(a0=>{"use strict";var Mre=Symbol.for("react.transitional.element"),Rre=Symbol.for("react.fragment");function $F(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:Mre,type:e,key:r,ref:t!==void 0?t:null,props:n}}a0.Fragment=Rre;a0.jsx=$F;a0.jsxs=$F});var re=be((pEe,WF)=>{"use strict";WF.exports=GF()});var A_=be(wt=>{"use strict";var Bn=typeof Symbol=="function"&&Symbol.for,uw=Bn?Symbol.for("react.element"):60103,lw=Bn?Symbol.for("react.portal"):60106,v0=Bn?Symbol.for("react.fragment"):60107,y0=Bn?Symbol.for("react.strict_mode"):60108,x0=Bn?Symbol.for("react.profiler"):60114,b0=Bn?Symbol.for("react.provider"):60109,E0=Bn?Symbol.for("react.context"):60110,sw=Bn?Symbol.for("react.async_mode"):60111,D0=Bn?Symbol.for("react.concurrent_mode"):60111,w0=Bn?Symbol.for("react.forward_ref"):60112,C0=Bn?Symbol.for("react.suspense"):60113,Vre=Bn?Symbol.for("react.suspense_list"):60120,S0=Bn?Symbol.for("react.memo"):60115,k0=Bn?Symbol.for("react.lazy"):60116,$re=Bn?Symbol.for("react.block"):60121,Gre=Bn?Symbol.for("react.fundamental"):60117,Wre=Bn?Symbol.for("react.responder"):60118,Kre=Bn?Symbol.for("react.scope"):60119;function ni(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case uw:switch(e=e.type,e){case sw:case D0:case v0:case x0:case y0:case C0:return e;default:switch(e=e&&e.$$typeof,e){case E0:case w0:case k0:case S0:case b0:return e;default:return t}}case lw:return t}}}function k_(e){return ni(e)===D0}wt.AsyncMode=sw;wt.ConcurrentMode=D0;wt.ContextConsumer=E0;wt.ContextProvider=b0;wt.Element=uw;wt.ForwardRef=w0;wt.Fragment=v0;wt.Lazy=k0;wt.Memo=S0;wt.Portal=lw;wt.Profiler=x0;wt.StrictMode=y0;wt.Suspense=C0;wt.isAsyncMode=function(e){return k_(e)||ni(e)===sw};wt.isConcurrentMode=k_;wt.isContextConsumer=function(e){return ni(e)===E0};wt.isContextProvider=function(e){return ni(e)===b0};wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===uw};wt.isForwardRef=function(e){return ni(e)===w0};wt.isFragment=function(e){return ni(e)===v0};wt.isLazy=function(e){return ni(e)===k0};wt.isMemo=function(e){return ni(e)===S0};wt.isPortal=function(e){return ni(e)===lw};wt.isProfiler=function(e){return ni(e)===x0};wt.isStrictMode=function(e){return ni(e)===y0};wt.isSuspense=function(e){return ni(e)===C0};wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===v0||e===D0||e===x0||e===y0||e===C0||e===Vre||typeof e=="object"&&e!==null&&(e.$$typeof===k0||e.$$typeof===S0||e.$$typeof===b0||e.$$typeof===E0||e.$$typeof===w0||e.$$typeof===Gre||e.$$typeof===Wre||e.$$typeof===Kre||e.$$typeof===$re)};wt.typeOf=ni});var B_=be((GEe,T_)=>{"use strict";T_.exports=A_()});var L_=be((WEe,I_)=>{"use strict";var cw=B_(),Yre={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xre={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Qre={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},F_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fw={};fw[cw.ForwardRef]=Qre;fw[cw.Memo]=F_;function O_(e){return cw.isMemo(e)?F_:fw[e.$$typeof]||Yre}var Zre=Object.defineProperty,Jre=Object.getOwnPropertyNames,M_=Object.getOwnPropertySymbols,eie=Object.getOwnPropertyDescriptor,tie=Object.getPrototypeOf,R_=Object.prototype;function __(e,t,n){if(typeof t!="string"){if(R_){var r=tie(t);r&&r!==R_&&__(e,r,n)}var i=Jre(t);M_&&(i=i.concat(M_(t)));for(var o=O_(e),a=O_(t),l=0;l<i.length;++l){var c=i[l];if(!Xre[c]&&!(n&&n[c])&&!(a&&a[c])&&!(o&&o[c])){var f=eie(t,c);try{Zre(e,c,f)}catch{}}}}return e}I_.exports=__});var _0=be(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});var xie=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),dw={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},l6={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:xie?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},gw={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(hm=1;hm<20;hm++)gw["f"+hm]=111+hm;var hm;function F0(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return s6(a,t)}),i=function(l){return r.some(function(c){return c6(c,l)})},o=n==null?i:i(n);return o}function bie(e,t){return F0(e,t)}function Eie(e,t){return F0(e,{byKey:!0},t)}function s6(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),o=i.length;for(var a in dw)r[dw[a]]=!1;var l=!0,c=!1,f=void 0;try{for(var p=i[Symbol.iterator](),d;!(l=(d=p.next()).done);l=!0){var g=d.value,m=g.endsWith("?")&&g.length>1;m&&(g=g.slice(0,-1));var x=vw(g),S=dw[x];if(g.length>1&&!S&&!l6[g]&&!gw[x])throw new TypeError('Unknown modifier: "'+g+'"');(o===1||!S)&&(n?r.key=x:r.which=f6(g)),S&&(r[S]=m?null:!0)}}catch(T){c=!0,f=T}finally{try{!l&&p.return&&p.return()}finally{if(c)throw f}}return r}function c6(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&(n==="key"&&t.key!=null?i=t.key.toLowerCase():n==="which"?i=r===91&&t.which===93?91:t.which:i=t[n],!(i==null&&r===!1)&&i!==r))return!1}return!0}function f6(e){e=vw(e);var t=gw[e]||e.toUpperCase().charCodeAt(0);return t}function vw(e){return e=e.toLowerCase(),e=l6[e]||e,e}wo.default=F0;wo.isHotkey=F0;wo.isCodeHotkey=bie;wo.isKeyHotkey=Eie;wo.parseHotkey=s6;wo.compareHotkey=c6;wo.toKeyCode=f6;wo.toKeyName=vw});var AI=be(kI=>{"use strict";var Rc=Ue();function Nie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uie=typeof Object.is=="function"?Object.is:Nie,Hie=Rc.useState,qie=Rc.useEffect,jie=Rc.useLayoutEffect,Vie=Rc.useDebugValue;function $ie(e,t){var n=t(),r=Hie({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return jie(function(){i.value=n,i.getSnapshot=t,Mw(i)&&o({inst:i})},[e,n,t]),qie(function(){return Mw(i)&&o({inst:i}),e(function(){Mw(i)&&o({inst:i})})},[e]),Vie(n),n}function Mw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Uie(e,n)}catch{return!0}}function Gie(e,t){return t()}var Wie=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Gie:$ie;kI.useSyncExternalStore=Rc.useSyncExternalStore!==void 0?Rc.useSyncExternalStore:Wie});var BI=be((V2e,TI)=>{"use strict";TI.exports=AI()});var MI=be(OI=>{"use strict";var q0=Ue(),Kie=BI();function Yie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xie=typeof Object.is=="function"?Object.is:Yie,Qie=Kie.useSyncExternalStore,Zie=q0.useRef,Jie=q0.useEffect,eoe=q0.useMemo,toe=q0.useDebugValue;OI.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Zie(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=eoe(function(){function c(m){if(!f){if(f=!0,p=m,m=r(m),i!==void 0&&a.hasValue){var x=a.value;if(i(x,m))return d=x}return d=m}if(x=d,Xie(p,m))return x;var S=r(m);return i!==void 0&&i(x,S)?(p=m,x):(p=m,d=S)}var f=!1,p,d,g=n===void 0?null:n;return[function(){return c(t())},g===null?void 0:function(){return c(g())}]},[t,n,r,i]);var l=Qie(e,o[0],o[1]);return Jie(function(){a.hasValue=!0,a.value=l},[l]),toe(l),l}});var FI=be((G2e,RI)=>{"use strict";RI.exports=MI()});var nC=be((m6e,S9)=>{"use strict";S9.exports=function(t,n){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(n,i)}}});var On=be((h6e,T9)=>{"use strict";var Ioe=nC(),iC=Object.prototype.toString,oC=function(e){return function(t){var n=iC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function Pl(e){return e=e.toLowerCase(),function(n){return oC(n)===e}}function aC(e){return Array.isArray(e)}function s1(e){return typeof e>"u"}function Loe(e){return e!==null&&!s1(e)&&e.constructor!==null&&!s1(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var k9=Pl("ArrayBuffer");function Poe(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&k9(e.buffer),t}function zoe(e){return typeof e=="string"}function Noe(e){return typeof e=="number"}function A9(e){return e!==null&&typeof e=="object"}function l1(e){if(oC(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var Uoe=Pl("Date"),Hoe=Pl("File"),qoe=Pl("Blob"),joe=Pl("FileList");function uC(e){return iC.call(e)==="[object Function]"}function Voe(e){return A9(e)&&uC(e.pipe)}function $oe(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||iC.call(e)===t||uC(e.toString)&&e.toString()===t)}var Goe=Pl("URLSearchParams");function Woe(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Koe(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function lC(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),aC(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function rC(){var e={};function t(i,o){l1(e[o])&&l1(i)?e[o]=rC(e[o],i):l1(i)?e[o]=rC({},i):aC(i)?e[o]=i.slice():e[o]=i}for(var n=0,r=arguments.length;n<r;n++)lC(arguments[n],t);return e}function Yoe(e,t,n){return lC(t,function(i,o){n&&typeof i=="function"?e[o]=Ioe(i,n):e[o]=i}),e}function Xoe(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Qoe(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function Zoe(e,t,n){var r,i,o,a={};t=t||{};do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],a[o]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function Joe(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function eae(e){if(!e)return null;var t=e.length;if(s1(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var tae=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));T9.exports={isArray:aC,isArrayBuffer:k9,isBuffer:Loe,isFormData:$oe,isArrayBufferView:Poe,isString:zoe,isNumber:Noe,isObject:A9,isPlainObject:l1,isUndefined:s1,isDate:Uoe,isFile:Hoe,isBlob:qoe,isFunction:uC,isStream:Voe,isURLSearchParams:Goe,isStandardBrowserEnv:Koe,forEach:lC,merge:rC,extend:Yoe,trim:Woe,stripBOM:Xoe,inherits:Qoe,toFlatObject:Zoe,kindOf:oC,kindOfTest:Pl,endsWith:Joe,toArray:eae,isTypedArray:tae,isFileList:joe}});var sC=be((d6e,O9)=>{"use strict";var Wc=On();function B9(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}O9.exports=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(Wc.isURLSearchParams(n))i=n.toString();else{var o=[];Wc.forEach(n,function(c,f){c===null||typeof c>"u"||(Wc.isArray(c)?f=f+"[]":c=[c],Wc.forEach(c,function(d){Wc.isDate(d)?d=d.toISOString():Wc.isObject(d)&&(d=JSON.stringify(d)),o.push(B9(f)+"="+B9(d))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var R9=be((g6e,M9)=>{"use strict";var nae=On();function c1(){this.handlers=[]}c1.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};c1.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};c1.prototype.forEach=function(t){nae.forEach(this.handlers,function(r){r!==null&&t(r)})};M9.exports=c1});var _9=be((v6e,F9)=>{"use strict";var rae=On();F9.exports=function(t,n){rae.forEach(t,function(i,o){o!==n&&o.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[o])})}});var zl=be((y6e,z9)=>{"use strict";var I9=On();function Kc(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}I9.inherits(Kc,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var L9=Kc.prototype,P9={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){P9[e]={value:e}});Object.defineProperties(Kc,P9);Object.defineProperty(L9,"isAxiosError",{value:!0});Kc.from=function(e,t,n,r,i,o){var a=Object.create(L9);return I9.toFlatObject(e,a,function(c){return c!==Error.prototype}),Kc.call(a,e.message,t,n,r,i),a.name=e.name,o&&Object.assign(a,o),a};z9.exports=Kc});var cC=be((x6e,N9)=>{"use strict";N9.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});var fC=be((b6e,U9)=>{"use strict";var ro=On();function iae(e,t){t=t||new FormData;var n=[];function r(o){return o===null?"":ro.isDate(o)?o.toISOString():ro.isArrayBuffer(o)||ro.isTypedArray(o)?typeof Blob=="function"?new Blob([o]):Buffer.from(o):o}function i(o,a){if(ro.isPlainObject(o)||ro.isArray(o)){if(n.indexOf(o)!==-1)throw Error("Circular reference detected in "+a);n.push(o),ro.forEach(o,function(c,f){if(!ro.isUndefined(c)){var p=a?a+"."+f:f,d;if(c&&!a&&typeof c=="object"){if(ro.endsWith(f,"{}"))c=JSON.stringify(c);else if(ro.endsWith(f,"[]")&&(d=ro.toArray(c))){d.forEach(function(g){!ro.isUndefined(g)&&t.append(p,r(g))});return}}i(c,p)}}),n.pop()}else t.append(a,r(o))}return i(e),t}U9.exports=iae});var q9=be((E6e,H9)=>{"use strict";var pC=zl();H9.exports=function(t,n,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):n(new pC("Request failed with status code "+r.status,[pC.ERR_BAD_REQUEST,pC.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}});var V9=be((D6e,j9)=>{"use strict";var f1=On();j9.exports=f1.isStandardBrowserEnv()?function(){return{write:function(n,r,i,o,a,l){var c=[];c.push(n+"="+encodeURIComponent(r)),f1.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),f1.isString(o)&&c.push("path="+o),f1.isString(a)&&c.push("domain="+a),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){var r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var G9=be((w6e,$9)=>{"use strict";$9.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}});var K9=be((C6e,W9)=>{"use strict";W9.exports=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}});var mC=be((S6e,Y9)=>{"use strict";var oae=G9(),aae=K9();Y9.exports=function(t,n){return t&&!oae(n)?aae(t,n):n}});var Q9=be((k6e,X9)=>{"use strict";var hC=On(),uae=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];X9.exports=function(t){var n={},r,i,o;return t&&hC.forEach(t.split(`
|
|
29
|
-
`),function(l){if(o=l.indexOf(":"),r=hC.trim(l.substr(0,o)).toLowerCase(),i=hC.trim(l.substr(o+1)),r){if(n[r]&&uae.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([i]):n[r]=n[r]?n[r]+", "+i:i}}),n}});var eN=be((A6e,J9)=>{"use strict";var Z9=On();J9.exports=Z9.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(o){var a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){var l=Z9.isString(a)?i(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}()});var Bm=be((T6e,nN)=>{"use strict";var dC=zl(),lae=On();function tN(e){dC.call(this,e??"canceled",dC.ERR_CANCELED),this.name="CanceledError"}lae.inherits(tN,dC,{__CANCEL__:!0});nN.exports=tN});var iN=be((B6e,rN)=>{"use strict";rN.exports=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}});var gC=be((O6e,oN)=>{"use strict";var Om=On(),sae=q9(),cae=V9(),fae=sC(),pae=mC(),mae=Q9(),hae=eN(),dae=cC(),ha=zl(),gae=Bm(),vae=iN();oN.exports=function(t){return new Promise(function(r,i){var o=t.data,a=t.headers,l=t.responseType,c;function f(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}Om.isFormData(o)&&Om.isStandardBrowserEnv()&&delete a["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(d+":"+g)}var m=pae(t.baseURL,t.url);p.open(t.method.toUpperCase(),fae(m,t.params,t.paramsSerializer),!0),p.timeout=t.timeout;function x(){if(p){var y="getAllResponseHeaders"in p?mae(p.getAllResponseHeaders()):null,w=!l||l==="text"||l==="json"?p.responseText:p.response,C={data:w,status:p.status,statusText:p.statusText,headers:y,config:t,request:p};sae(function(R){r(R),f()},function(R){i(R),f()},C),p=null}}if("onloadend"in p?p.onloadend=x:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(x)},p.onabort=function(){p&&(i(new ha("Request aborted",ha.ECONNABORTED,t,p)),p=null)},p.onerror=function(){i(new ha("Network Error",ha.ERR_NETWORK,t,p,p)),p=null},p.ontimeout=function(){var w=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",C=t.transitional||dae;t.timeoutErrorMessage&&(w=t.timeoutErrorMessage),i(new ha(w,C.clarifyTimeoutError?ha.ETIMEDOUT:ha.ECONNABORTED,t,p)),p=null},Om.isStandardBrowserEnv()){var S=(t.withCredentials||hae(m))&&t.xsrfCookieName?cae.read(t.xsrfCookieName):void 0;S&&(a[t.xsrfHeaderName]=S)}"setRequestHeader"in p&&Om.forEach(a,function(w,C){typeof o>"u"&&C.toLowerCase()==="content-type"?delete a[C]:p.setRequestHeader(C,w)}),Om.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),l&&l!=="json"&&(p.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&p.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(c=function(y){p&&(i(!y||y&&y.type?new gae:y),p.abort(),p=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c))),o||(o=null);var T=vae(m);if(T&&["http","https","file"].indexOf(T)===-1){i(new ha("Unsupported protocol "+T+":",ha.ERR_BAD_REQUEST,t));return}p.send(o)})}});var uN=be((M6e,aN)=>{aN.exports=null});var m1=be((R6e,fN)=>{"use strict";var Mn=On(),lN=_9(),sN=zl(),yae=cC(),xae=fC(),bae={"Content-Type":"application/x-www-form-urlencoded"};function cN(e,t){!Mn.isUndefined(e)&&Mn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Eae(){var e;return typeof XMLHttpRequest<"u"?e=gC():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=gC()),e}function Dae(e,t,n){if(Mn.isString(e))try{return(t||JSON.parse)(e),Mn.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var p1={transitional:yae,adapter:Eae(),transformRequest:[function(t,n){if(lN(n,"Accept"),lN(n,"Content-Type"),Mn.isFormData(t)||Mn.isArrayBuffer(t)||Mn.isBuffer(t)||Mn.isStream(t)||Mn.isFile(t)||Mn.isBlob(t))return t;if(Mn.isArrayBufferView(t))return t.buffer;if(Mn.isURLSearchParams(t))return cN(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=Mn.isObject(t),i=n&&n["Content-Type"],o;if((o=Mn.isFileList(t))||r&&i==="multipart/form-data"){var a=this.env&&this.env.FormData;return xae(o?{"files[]":t}:t,a&&new a)}else if(r||i==="application/json")return cN(n,"application/json"),Dae(t);return t}],transformResponse:[function(t){var n=this.transitional||p1.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,o=!r&&this.responseType==="json";if(o||i&&Mn.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?sN.from(a,sN.ERR_BAD_RESPONSE,this,null,this.response):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:uN()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Mn.forEach(["delete","get","head"],function(t){p1.headers[t]={}});Mn.forEach(["post","put","patch"],function(t){p1.headers[t]=Mn.merge(bae)});fN.exports=p1});var mN=be((F6e,pN)=>{"use strict";var wae=On(),Cae=m1();pN.exports=function(t,n,r){var i=this||Cae;return wae.forEach(r,function(a){t=a.call(i,t,n)}),t}});var vC=be((_6e,hN)=>{"use strict";hN.exports=function(t){return!!(t&&t.__CANCEL__)}});var vN=be((I6e,gN)=>{"use strict";var dN=On(),yC=mN(),Sae=vC(),kae=m1(),Aae=Bm();function xC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Aae}gN.exports=function(t){xC(t),t.headers=t.headers||{},t.data=yC.call(t,t.data,t.headers,t.transformRequest),t.headers=dN.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),dN.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||kae.adapter;return n(t).then(function(i){return xC(t),i.data=yC.call(t,i.data,i.headers,t.transformResponse),i},function(i){return Sae(i)||(xC(t),i&&i.response&&(i.response.data=yC.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var bC=be((L6e,yN)=>{"use strict";var ai=On();yN.exports=function(t,n){n=n||{};var r={};function i(p,d){return ai.isPlainObject(p)&&ai.isPlainObject(d)?ai.merge(p,d):ai.isPlainObject(d)?ai.merge({},d):ai.isArray(d)?d.slice():d}function o(p){if(ai.isUndefined(n[p])){if(!ai.isUndefined(t[p]))return i(void 0,t[p])}else return i(t[p],n[p])}function a(p){if(!ai.isUndefined(n[p]))return i(void 0,n[p])}function l(p){if(ai.isUndefined(n[p])){if(!ai.isUndefined(t[p]))return i(void 0,t[p])}else return i(void 0,n[p])}function c(p){if(p in n)return i(t[p],n[p]);if(p in t)return i(void 0,t[p])}var f={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c};return ai.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var g=f[d]||o,m=g(d);ai.isUndefined(m)&&g!==c||(r[d]=m)}),r}});var EC=be((P6e,xN)=>{xN.exports={version:"0.27.2"}});var DN=be((z6e,EN)=>{"use strict";var Tae=EC().version,Su=zl(),DC={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){DC[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var bN={};DC.transitional=function(t,n,r){function i(o,a){return"[Axios v"+Tae+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return function(o,a,l){if(t===!1)throw new Su(i(a," has been removed"+(n?" in "+n:"")),Su.ERR_DEPRECATED);return n&&!bN[a]&&(bN[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,l):!0}};function Bae(e,t,n){if(typeof e!="object")throw new Su("options must be an object",Su.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var l=e[o],c=l===void 0||a(l,o,e);if(c!==!0)throw new Su("option "+o+" must be "+c,Su.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Su("Unknown option "+o,Su.ERR_BAD_OPTION)}}EN.exports={assertOptions:Bae,validators:DC}});var TN=be((N6e,AN)=>{"use strict";var SN=On(),Oae=sC(),wN=R9(),CN=vN(),h1=bC(),Mae=mC(),kN=DN(),Yc=kN.validators;function Xc(e){this.defaults=e,this.interceptors={request:new wN,response:new wN}}Xc.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=h1(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&kN.assertOptions(r,{silentJSONParsing:Yc.transitional(Yc.boolean),forcedJSONParsing:Yc.transitional(Yc.boolean),clarifyTimeoutError:Yc.transitional(Yc.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(o=o&&m.synchronous,i.unshift(m.fulfilled,m.rejected))});var a=[];this.interceptors.response.forEach(function(m){a.push(m.fulfilled,m.rejected)});var l;if(!o){var c=[CN,void 0];for(Array.prototype.unshift.apply(c,i),c=c.concat(a),l=Promise.resolve(n);c.length;)l=l.then(c.shift(),c.shift());return l}for(var f=n;i.length;){var p=i.shift(),d=i.shift();try{f=p(f)}catch(g){d(g);break}}try{l=CN(f)}catch(g){return Promise.reject(g)}for(;a.length;)l=l.then(a.shift(),a.shift());return l};Xc.prototype.getUri=function(t){t=h1(this.defaults,t);var n=Mae(t.baseURL,t.url);return Oae(n,t.params,t.paramsSerializer)};SN.forEach(["delete","get","head","options"],function(t){Xc.prototype[t]=function(n,r){return this.request(h1(r||{},{method:t,url:n,data:(r||{}).data}))}});SN.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,l){return this.request(h1(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Xc.prototype[t]=n(),Xc.prototype[t+"Form"]=n(!0)});AN.exports=Xc});var ON=be((U6e,BN)=>{"use strict";var Rae=Bm();function Qc(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var n=this;this.promise.then(function(r){if(n._listeners){var i,o=n._listeners.length;for(i=0;i<o;i++)n._listeners[i](r);n._listeners=null}}),this.promise.then=function(r){var i,o=new Promise(function(a){n.subscribe(a),i=a}).then(r);return o.cancel=function(){n.unsubscribe(i)},o},e(function(i){n.reason||(n.reason=new Rae(i),t(n.reason))})}Qc.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Qc.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};Qc.prototype.unsubscribe=function(t){if(this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}};Qc.source=function(){var t,n=new Qc(function(i){t=i});return{token:n,cancel:t}};BN.exports=Qc});var RN=be((H6e,MN)=>{"use strict";MN.exports=function(t){return function(r){return t.apply(null,r)}}});var _N=be((q6e,FN)=>{"use strict";var Fae=On();FN.exports=function(t){return Fae.isObject(t)&&t.isAxiosError===!0}});var PN=be((j6e,wC)=>{"use strict";var IN=On(),_ae=nC(),d1=TN(),Iae=bC(),Lae=m1();function LN(e){var t=new d1(e),n=_ae(d1.prototype.request,t);return IN.extend(n,d1.prototype,t),IN.extend(n,t),n.create=function(i){return LN(Iae(e,i))},n}var _r=LN(Lae);_r.Axios=d1;_r.CanceledError=Bm();_r.CancelToken=ON();_r.isCancel=vC();_r.VERSION=EC().version;_r.toFormData=fC();_r.AxiosError=zl();_r.Cancel=_r.CanceledError;_r.all=function(t){return Promise.all(t)};_r.spread=RN();_r.isAxiosError=_N();wC.exports=_r;wC.exports.default=_r});var CC=be((V6e,zN)=>{zN.exports=PN()});var v7=be((CPe,g7)=>{var p7=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,uue=/\n/g,lue=/^\s*/,sue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,cue=/^:\s*/,fue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,pue=/^[;\s]*/,mue=/^\s+|\s+$/g,hue=`
|
|
30
|
-
`,m7="/",h7="*",Hl="",due="comment",gue="declaration";g7.exports=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(S){var T=S.match(uue);T&&(n+=T.length);var y=S.lastIndexOf(hue);r=~y?S.length-y:r+S.length}function o(){var S={line:n,column:r};return function(T){return T.position=new a(S),p(),T}}function a(S){this.start=S,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;var l=[];function c(S){var T=new Error(t.source+":"+n+":"+r+": "+S);if(T.reason=S,T.filename=t.source,T.line=n,T.column=r,T.source=e,t.silent)l.push(T);else throw T}function f(S){var T=S.exec(e);if(T){var y=T[0];return i(y),e=e.slice(y.length),T}}function p(){f(lue)}function d(S){var T;for(S=S||[];T=g();)T!==!1&&S.push(T);return S}function g(){var S=o();if(!(m7!=e.charAt(0)||h7!=e.charAt(1))){for(var T=2;Hl!=e.charAt(T)&&(h7!=e.charAt(T)||m7!=e.charAt(T+1));)++T;if(T+=2,Hl===e.charAt(T-1))return c("End of comment missing");var y=e.slice(2,T-2);return r+=2,i(y),e=e.slice(T),r+=2,S({type:due,comment:y})}}function m(){var S=o(),T=f(sue);if(T){if(g(),!f(cue))return c("property missing ':'");var y=f(fue),w=S({type:gue,property:d7(T[0].replace(p7,Hl)),value:y?d7(y[0].replace(p7,Hl)):Hl});return f(pue),w}}function x(){var S=[];d(S);for(var T;T=m();)T!==!1&&(S.push(T),d(S));return S}return p(),x()};function d7(e){return e?e.replace(mue,Hl):Hl}});var y7=be(Fm=>{"use strict";var vue=Fm&&Fm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fm,"__esModule",{value:!0});Fm.default=xue;var yue=vue(v7());function xue(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,yue.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,l=o.value;i?t(a,l,o):l&&(n=n||{},n[a]=l)}}),n}});var To=q(Ue()),MS=q(MO());var n7=q(og()),da=q(Ue());function RO(e){return Object.prototype.toString.call(e)==="[object Object]"}function Un(e){var t,n;return RO(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(RO(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Yi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!1)var i,o;throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function tu(e){return!!e&&!!e[Qr]}function fl(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===EX}(e)||Array.isArray(e)||!!e[UO]||!!(!((t=e.constructor)===null||t===void 0)&&t[UO])||$b(e)||Gb(e))}function Tp(e,t,n){n===void 0&&(n=!1),Ws(e)===0?(n?Object.keys:Qb)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Ws(e){var t=e[Qr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:$b(e)?2:Gb(e)?3:0}function Ub(e,t){return Ws(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function hX(e,t){return Ws(e)===2?e.get(t):e[t]}function HO(e,t,n){var r=Ws(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function dX(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function $b(e){return xX&&e instanceof Map}function Gb(e){return bX&&e instanceof Set}function cl(e){return e.o||e.t}function Wb(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=DX(e);delete t[Qr];for(var n=Qb(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Kb(e,t){return t===void 0&&(t=!1),Yb(e)||tu(e)||!fl(e)||(Ws(e)>1&&(e.set=e.add=e.clear=e.delete=gX),Object.freeze(e),t&&Tp(e,function(n,r){return Kb(r,!0)},!0)),e}function gX(){Yi(2)}function Yb(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function vo(e){var t=wX[e];return t||Yi(18,e),t}function FO(){return Bp}function Lb(e,t){t&&(vo("Patches"),e.u=[],e.s=[],e.v=t)}function ag(e){Hb(e),e.p.forEach(vX),e.p=null}function Hb(e){e===Bp&&(Bp=e.l)}function _O(e){return Bp={p:[],l:Bp,h:e,m:!0,_:0}}function vX(e){var t=e[Qr];t.i===0||t.i===1?t.j():t.g=!0}function Pb(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||vo("ES5").S(t,e,r),r?(n[Qr].P&&(ag(t),Yi(4)),fl(e)&&(e=ug(t,e),t.l||lg(t,e)),t.u&&vo("Patches").M(n[Qr].t,e,t.u,t.s)):e=ug(t,n,[]),ag(t),t.u&&t.v(t.u,t.s),e!==qO?e:void 0}function ug(e,t,n){if(Yb(t))return t;var r=t[Qr];if(!r)return Tp(t,function(l,c){return IO(e,r,t,l,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return lg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Wb(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),Tp(o,function(l,c){return IO(e,r,i,l,c,n,a)}),lg(e,i,!1),n&&e.u&&vo("Patches").N(r,n,e.u,e.s)}return r.o}function IO(e,t,n,r,i,o,a){if(tu(i)){var l=ug(e,i,o&&t&&t.i!==3&&!Ub(t.R,r)?o.concat(r):void 0);if(HO(n,r,l),!tu(l))return;e.m=!1}else a&&n.add(i);if(fl(i)&&!Yb(i)){if(!e.h.D&&e._<1)return;ug(e,i),t&&t.A.l||lg(e,i)}}function lg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Kb(t,n)}function zb(e,t){var n=e[Qr];return(n?cl(n):e)[t]}function LO(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function qb(e){e.P||(e.P=!0,e.l&&qb(e.l))}function Nb(e){e.o||(e.o=Wb(e.t))}function jb(e,t,n){var r=$b(t)?vo("MapSet").F(t,n):Gb(t)?vo("MapSet").T(t,n):e.O?function(i,o){var a=Array.isArray(i),l={i:a?1:0,A:o?o.A:FO(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},c=l,f=Vb;a&&(c=[l],f=Ap);var p=Proxy.revocable(c,f),d=p.revoke,g=p.proxy;return l.k=g,l.j=d,g}(t,n):vo("ES5").J(t,n);return(n?n.A:FO()).p.push(r),r}function yX(e){return tu(e)||Yi(22,e),function t(n){if(!fl(n))return n;var r,i=n[Qr],o=Ws(n);if(i){if(!i.P&&(i.i<4||!vo("ES5").K(i)))return i.t;i.I=!0,r=PO(n,o),i.I=!1}else r=PO(n,o);return Tp(r,function(a,l){i&&hX(i.t,a)===l||HO(r,a,t(l))}),o===3?new Set(r):r}(e)}function PO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Wb(e)}var zO,Bp,Xb=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",xX=typeof Map<"u",bX=typeof Set<"u",NO=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",qO=Xb?Symbol.for("immer-nothing"):((zO={})["immer-nothing"]=!0,zO),UO=Xb?Symbol.for("immer-draftable"):"__$immer_draftable",Qr=Xb?Symbol.for("immer-state"):"__$immer_state";var EX=""+Object.prototype.constructor,Qb=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,DX=Object.getOwnPropertyDescriptors||function(e){var t={};return Qb(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},wX={},Vb={get:function(e,t){if(t===Qr)return e;var n=cl(e);if(!Ub(n,t))return function(i,o,a){var l,c=LO(o,a);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!fl(r)?r:r===zb(e.t,t)?(Nb(e),e.o[t]=jb(e.A.h,r,e)):r},has:function(e,t){return t in cl(e)},ownKeys:function(e){return Reflect.ownKeys(cl(e))},set:function(e,t,n){var r=LO(cl(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=zb(cl(e),t),o=i?.[Qr];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(dX(n,i)&&(n!==void 0||Ub(e.t,t)))return!0;Nb(e),qb(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return zb(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Nb(e),qb(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=cl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Yi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Yi(12)}},Ap={};Tp(Vb,function(e,t){Ap[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ap.deleteProperty=function(e,t){return Ap.set.call(this,e,t,void 0)},Ap.set=function(e,t,n){return Vb.set.call(this,e[0],t,n,e[0])};var CX=function(){function e(n){var r=this;this.O=NO,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var l=o;o=i;var c=r;return function(S){var T=this;S===void 0&&(S=l);for(var y=arguments.length,w=Array(y>1?y-1:0),C=1;C<y;C++)w[C-1]=arguments[C];return c.produce(S,function(M){var R;return(R=o).call.apply(R,[T,M].concat(w))})}}var f;if(typeof o!="function"&&Yi(6),a!==void 0&&typeof a!="function"&&Yi(7),fl(i)){var p=_O(r),d=jb(r,i,void 0),g=!0;try{f=o(d),g=!1}finally{g?ag(p):Hb(p)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return Lb(p,a),Pb(S,p)},function(S){throw ag(p),S}):(Lb(p,a),Pb(f,p))}if(!i||typeof i!="object"){if((f=o(i))===void 0&&(f=i),f===qO&&(f=void 0),r.D&&Kb(f,!0),a){var m=[],x=[];vo("Patches").M(i,f,m,x),a(m,x)}return f}Yi(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(f){for(var p=arguments.length,d=Array(p>1?p-1:0),g=1;g<p;g++)d[g-1]=arguments[g];return r.produceWithPatches(f,function(m){return i.apply(void 0,[m].concat(d))})};var a,l,c=r.produce(i,o,function(f,p){a=f,l=p});return typeof Promise<"u"&&c instanceof Promise?c.then(function(f){return[f,a,l]}):[c,a,l]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){fl(n)||Yi(8),tu(n)&&(n=yX(n));var r=_O(this),i=jb(this,n,void 0);return i[Qr].C=!0,Hb(r),i},t.finishDraft=function(n,r){var i=n&&n[Qr],o=i.A;return Lb(o,r),Pb(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!NO&&Yi(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=vo("Patches").$;return tu(n)?a(n,r):this.produce(n,function(l){return a(l,r)})},e}(),Zr=new CX,sg=Zr.produce,tce=Zr.produceWithPatches.bind(Zr),nce=Zr.setAutoFreeze.bind(Zr),rce=Zr.setUseProxies.bind(Zr),ice=Zr.applyPatches.bind(Zr),Zb=Zr.createDraft.bind(Zr),Jb=Zr.finishDraft.bind(Zr);function yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pg=new WeakMap,mg=new WeakMap,Op=new WeakMap,jO=new WeakMap,VO=new WeakMap,$O=new WeakMap,GO=new WeakMap;function WO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var f5=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of b.pathRefs(e))eQ.transform(n,t);for(var r of b.pointRefs(e))tQ.transform(r,t);for(var i of b.rangeRefs(e))iQ.transform(i,t);var o=pg.get(e)||[],a=mg.get(e)||new Set,l,c,f=x=>{if(x){var S=x.join(",");c.has(S)||(c.add(S),l.push(x))}};if(I.operationCanTransformPath(t)){l=[],c=new Set;for(var p of o){var d=I.transform(p,t);f(d)}}else l=o,c=a;var g=e.getDirtyPaths(t);for(var m of g)f(m);pg.set(e,l),mg.set(e,c),L.transform(e,t),e.operations.push(t),b.normalize(e),t.type==="set_selection"&&(e.marks=null),Op.get(e)||(Op.set(e,!0),Promise.resolve().then(()=>{Op.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r,markableVoid:i}=e;if(r){var o=(g,m)=>{if(!ge.isText(g))return!1;var[x,S]=b.parent(e,m);return!e.isVoid(x)||e.markableVoid(x)},a=W.isExpanded(r),l=!1;if(!a){var[c,f]=b.node(e,r);if(c&&o(c,f)){var[p]=b.parent(e,f);l=p&&e.markableVoid(p)}}if(a||l)L.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var d=cg(cg({},b.marks(e)||{}),{},{[t]:n});e.marks=d,Op.get(e)||e.onChange()}}},deleteBackward:t=>{var{selection:n}=e;n&&W.isCollapsed(n)&&L.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&W.isCollapsed(n)&&L.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&W.isExpanded(n)&&L.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?he.fragment(e,t):[]},insertBreak:()=>{L.splitNodes(e,{always:!0})},insertSoftBreak:()=>{L.splitNodes(e,{always:!0})},insertFragment:t=>{L.insertFragment(e,t)},insertNode:t=>{L.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=cg({text:t},r);L.insertNodes(e,i)}else L.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!ge.isText(n)){if(ye.isElement(n)&&n.children.length===0){var i={text:""};L.insertNodes(e,i,{at:r.concat(0),voids:!0});return}for(var o=b.isEditor(n)?!1:ye.isElement(n)&&(e.isInline(n)||n.children.length===0||ge.isText(n.children[0])||e.isInline(n.children[0])),a=0,l=0;l<n.children.length;l++,a++){var c=he.get(e,r);if(!ge.isText(c)){var f=n.children[l],p=c.children[a-1],d=l===n.children.length-1,g=ge.isText(f)||ye.isElement(f)&&e.isInline(f);if(g!==o)L.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(ye.isElement(f)){if(e.isInline(f)){if(p==null||!ge.isText(p)){var m={text:""};L.insertNodes(e,m,{at:r.concat(a),voids:!0}),a++}else if(d){var x={text:""};L.insertNodes(e,x,{at:r.concat(a+1),voids:!0}),a++}}}else p!=null&&ge.isText(p)&&(ge.equals(f,p,{loose:!0})?(L.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):p.text===""?(L.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):f.text===""&&(L.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}},removeMark:t=>{var{selection:n}=e;if(n){var r=(p,d)=>{if(!ge.isText(p))return!1;var[g,m]=b.parent(e,d);return!e.isVoid(g)||e.markableVoid(g)},i=W.isExpanded(n),o=!1;if(!i){var[a,l]=b.node(e,n);if(a&&r(a,l)){var[c]=b.parent(e,l);o=c&&e.markableVoid(c)}}if(i||o)L.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var f=cg({},b.marks(e)||{});delete f[t],e.marks=f,Op.get(e)||e.onChange()}}},getDirtyPaths:t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return I.levels(n)}case"insert_node":{var{node:r,path:i}=t,o=I.levels(i),a=ge.isText(r)?[]:Array.from(he.nodes(r),_=>{var[,de]=_;return i.concat(de)});return[...o,...a]}case"merge_node":{var{path:l}=t,c=I.ancestors(l),f=I.previous(l);return[...c,f]}case"move_node":{var{path:p,newPath:d}=t;if(I.equals(p,d))return[];var g=[],m=[];for(var x of I.ancestors(p)){var S=I.transform(x,t);g.push(S)}for(var T of I.ancestors(d)){var y=I.transform(T,t);m.push(y)}var w=m[m.length-1],C=d[d.length-1],M=w.concat(C);return[...g,...m,M]}case"remove_node":{var{path:R}=t,A=I.ancestors(R);return[...A]}case"split_node":{var{path:P}=t,V=I.levels(P),J=I.next(P);return[...V,J]}default:return[]}}};return e};function SX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ia(e,t){if(e==null)return{};var n=SX(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var eE=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,i=n?MX(t):t,o=Ve.None,a=Ve.None,l=0,c=null,f=null;for(var p of i){var d=p.codePointAt(0);if(!d)break;var g=jX(p,d);if([o,a]=r?[a,g]:[g,o],Xs(o,Ve.ZWJ)&&Xs(a,Ve.ExtPict)&&(r?c=KO(t.substring(0,l)):c=KO(t.substring(0,t.length-l)),!c)||Xs(o,Ve.RI)&&Xs(a,Ve.RI)&&(f!==null?f=!f:r?f=!0:f=KX(t.substring(0,t.length-l)),!f)||o!==Ve.None&&a!==Ve.None&&$X(o,a))break;l+=p.length}return l||1},kX=/\s/,AX=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,TX=/['\u2018\u2019]/,BX=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,i=!1;t.length>0;){var o=eE(t,n),[a,l]=tE(t,o,n);if(OX(a,l,n))i=!0,r+=o;else if(!i)r+=o;else break;t=l}return r},tE=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},OX=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(kX.test(t))return!1;if(TX.test(t)){var i=eE(n,r),[o,a]=tE(n,i,r);if(e(o,a,r))return!0}return!AX.test(t)},MX=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var i=t.charAt(n-r);if(FX(i.charCodeAt(0))){var o=t.charAt(n-r-1);if(RX(o.charCodeAt(0))){yield o+i,r++;continue}}yield i}},RX=e=>e>=55296&&e<=56319,FX=e=>e>=56320&&e<=57343,Ve;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(Ve||(Ve={}));var _X=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,IX=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,LX=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,PX=/^[\u1100-\u115F\uA960-\uA97C]$/,zX=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,NX=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,UX=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,HX=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,qX=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,jX=(e,t)=>{var n=Ve.Any;return e.search(_X)!==-1&&(n|=Ve.Extend),t===8205&&(n|=Ve.ZWJ),t>=127462&&t<=127487&&(n|=Ve.RI),e.search(IX)!==-1&&(n|=Ve.Prepend),e.search(LX)!==-1&&(n|=Ve.SpacingMark),e.search(PX)!==-1&&(n|=Ve.L),e.search(zX)!==-1&&(n|=Ve.V),e.search(NX)!==-1&&(n|=Ve.T),e.search(UX)!==-1&&(n|=Ve.LV),e.search(HX)!==-1&&(n|=Ve.LVT),e.search(qX)!==-1&&(n|=Ve.ExtPict),n};function Xs(e,t){return(e&t)!==0}var VX=[[Ve.L,Ve.L|Ve.V|Ve.LV|Ve.LVT],[Ve.LV|Ve.V,Ve.V|Ve.T],[Ve.LVT|Ve.T,Ve.T],[Ve.Any,Ve.Extend|Ve.ZWJ],[Ve.Any,Ve.SpacingMark],[Ve.Prepend,Ve.Any],[Ve.ZWJ,Ve.ExtPict],[Ve.RI,Ve.RI]];function $X(e,t){return VX.findIndex(n=>Xs(e,n[0])&&Xs(t,n[1]))===-1}var GX=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,KO=e=>e.search(GX)!==-1,WX=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,KX=e=>{var t=e.match(WX);if(t===null)return!1;var n=t[0].length/2;return n%2===1},YO=e=>Un(e)&&he.isNodeList(e.children)&&!b.isEditor(e),ye={isAncestor(e){return Un(e)&&he.isNodeList(e.children)},isElement:YO,isElementList(e){return Array.isArray(e)&&e.every(t=>ye.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return YO(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},YX=["text"],XX=["text"];function XO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XO(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var QO=new WeakMap,b={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:o}=t;if(i){var a=b.path(e,i),l=r==="lowest";for(var[c,f]of b.levels(e,{at:a,voids:n,match:o,reverse:l})){if(ge.isText(c))return;if(W.isRange(i)){if(I.isAncestor(f,i.anchor.path)&&I.isAncestor(f,i.focus.path))return[c,f]}else if(!I.equals(a,f))return[c,f]}}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=b.point(e,t,{edge:"end"}),i=b.end(e,[]),o={anchor:r,focus:i},{distance:a=1}=n,l=0,c;for(var f of b.positions(e,Ks(Ks({},n),{},{at:o}))){if(l>a)break;l!==0&&(c=f),l++}return c},before(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=b.start(e,[]),i=b.point(e,t,{edge:"start"}),o={anchor:r,focus:i},{distance:a=1}=n,l=0,c;for(var f of b.positions(e,Ks(Ks({},n),{},{at:o,reverse:!0}))){if(l>a)break;l!==0&&(c=f),l++}return c},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges(e,t){return[b.start(e,t),b.end(e,t)]},end(e,t){return b.point(e,t,{edge:"end"})},first(e,t){var n=b.path(e,t,{edge:"start"});return b.node(e,n)},fragment(e,t){var n=b.range(e,t),r=he.fragment(e,n);return r},hasBlocks(e,t){return t.children.some(n=>b.isBlock(e,n))},hasInlines(e,t){return t.children.some(n=>ge.isText(n)||b.isInline(e,n))},hasTexts(e,t){return t.children.every(n=>ge.isText(n))},insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock(e,t){return ye.isElement(t)&&!e.isInline(t)},isEditor(e){var t=QO.get(e);if(t!==void 0)return t;if(!Un(e))return!1;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||Un(e.marks))&&(e.selection===null||W.isRange(e.selection))&&he.isNodeList(e.children)&&ra.isOperationList(e.operations);return QO.set(e,n),n},isEnd(e,t,n){var r=b.end(e,n);return qe.equals(t,r)},isEdge(e,t,n){return b.isStart(e,t,n)||b.isEnd(e,t,n)},isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&ge.isText(r)&&r.text===""&&!e.isVoid(t)},isInline(e,t){return ye.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=jO.get(e);return t===void 0?!0:t},isStart(e,t,n){if(t.offset!==0)return!1;var r=b.start(e,n);return qe.equals(t,r)},isVoid(e,t){return ye.isElement(t)&&e.isVoid(t)},last(e,t){var n=b.path(e,t,{edge:"end"});return b.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=b.path(e,t,n),i=he.leaf(e,r);return[i,r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(o==null&&(o=()=>!0),!!n){var a=[],l=b.path(e,n);for(var[c,f]of he.levels(e,l))if(o(c,f)&&(a.push([c,f]),!i&&b.isVoid(e,c)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(W.isExpanded(n)){var[r]=b.nodes(e,{match:ge.isText});if(r){var[i]=r,o=ia(i,YX);return o}else return{}}var{anchor:a}=n,{path:l}=a,[c]=b.leaf(e,l);if(a.offset===0){var f=b.previous(e,{at:l,match:ge.isText}),p=b.above(e,{match:S=>b.isBlock(e,S)});if(f&&p){var[d,g]=f,[,m]=p;I.isAncestor(m,g)&&(c=d)}}var x=ia(c,XX);return x},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=b.after(e,o,{voids:r});if(a){var[,l]=b.last(e,[]),c=[a.path,l];if(I.isPath(o)&&o.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(I.isPath(o)){var[f]=b.parent(e,o);i=d=>f.children.includes(d)}else i=()=>!0;var[p]=b.nodes(e,{at:c,match:i,mode:n,voids:r});return p}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=b.path(e,t,n),i=he.get(e,r);return[i,r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1}=t,{match:l}=t;if(l||(l=()=>!0),!!n){var c,f;if(QX.isSpan(n))c=n[0],f=n[1];else{var p=b.path(e,n,{edge:"start"}),d=b.path(e,n,{edge:"end"});c=o?d:p,f=o?p:d}var g=he.nodes(e,{reverse:o,from:c,to:f,pass:C=>{var[M]=C;return a?!1:b.isVoid(e,M)}}),m=[],x;for(var[S,T]of g){var y=x&&I.compare(T,x[1])===0;if(!(r==="highest"&&y)){if(!l(S,T)){if(i&&!y&&ge.isText(S))return;continue}if(r==="lowest"&&y){x=[S,T];continue}var w=r==="lowest"?x:[S,T];w&&(i?m.push(w):yield w),x=[S,T]}}r==="lowest"&&x&&(i?m.push(x):yield x),i&&(yield*m)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=c=>pg.get(c)||[],i=c=>mg.get(c)||new Set,o=c=>{var f=r(c).pop(),p=f.join(",");return i(c).delete(p),f};if(b.isNormalizing(e)){if(n){var a=Array.from(he.nodes(e),c=>{var[,f]=c;return f}),l=new Set(a.map(c=>c.join(",")));pg.set(e,a),mg.set(e,l)}r(e).length!==0&&b.withoutNormalizing(e,()=>{for(var c of r(e))if(he.has(e,c)){var f=b.node(e,c),[p,d]=f;ye.isElement(p)&&p.children.length===0&&e.normalizeNode(f)}for(var g=r(e).length*42,m=0;r(e).length!==0;){if(m>g)throw new Error(`
|
|
27
|
+
`)+le+`return __p
|
|
28
|
+
}`;var Ve=_A(function(){return pt(S,xe+"return "+le).apply(e,R)});if(Ve.source=le,Cv(Ve))throw Ve;return Ve}function bq(o){return dt(o).toLowerCase()}function xq(o){return dt(o).toUpperCase()}function Dq(o,l,m){if(o=dt(o),o&&(m||l===e))return jC(o);if(!o||!(l=yr(l)))return o;var v=vi(o),x=vi(l),S=VC(v,x),R=$C(v,x)+1;return io(v,S,R).join("")}function Cq(o,l,m){if(o=dt(o),o&&(m||l===e))return o.slice(0,WC(o)+1);if(!o||!(l=yr(l)))return o;var v=vi(o),x=$C(v,vi(l))+1;return io(v,0,x).join("")}function wq(o,l,m){if(o=dt(o),o&&(m||l===e))return o.replace(C0,"");if(!o||!(l=yr(l)))return o;var v=vi(o),x=VC(v,vi(l));return io(v,x).join("")}function Aq(o,l){var m=j,v=ue;if(_t(l)){var x="separator"in l?l.separator:x;m="length"in l?qe(l.length):m,v="omission"in l?yr(l.omission):v}o=dt(o);var S=o.length;if(hl(o)){var R=vi(o);S=R.length}if(m>=S)return o;var z=m-gl(v);if(z<1)return v;var q=R?io(R,0,z).join(""):o.slice(0,z);if(x===e)return q+v;if(R&&(z+=q.length-z),wv(x)){if(o.slice(z).search(x)){var ne,re=q;for(x.global||(x=U0(x.source,dt(fC.exec(x))+"g")),x.lastIndex=0;ne=x.exec(re);)var le=ne.index;q=q.slice(0,le===e?z:le)}}else if(o.indexOf(yr(x),z)!=z){var de=q.lastIndexOf(x);de>-1&&(q=q.slice(0,de))}return q+v}function Sq(o){return o=dt(o),o&&Pz.test(o)?o.replace(nr,tP):o}var Tq=Dl(function(o,l,m){return o+(m?" ":"")+l.toUpperCase()}),Tv=zw("toUpperCase");function FA(o,l,m){return o=dt(o),l=m?e:l,l===e?QL(o)?iP(o):HL(o):o.match(l)||[]}var _A=We(function(o,l){try{return gr(o,e,l)}catch(m){return Cv(m)?m:new ze(m)}}),kq=pa(function(o,l){return jr(l,function(m){m=Ui(m),fa(o,m,xv(o[m],o))}),o});function Bq(o){var l=o==null?0:o.length,m=Te();return o=l?Bt(o,function(v){if(typeof v[1]!="function")throw new Vr(i);return[m(v[0]),v[1]]}):[],We(function(v){for(var x=-1;++x<l;){var S=o[x];if(gr(S[0],this,v))return gr(S[1],this,v)}})}function Oq(o){return tI(Gr(o,f))}function kv(o){return function(){return o}}function Mq(o,l){return o==null||o!==o?l:o}var Rq=Pw(),Fq=Pw(!0);function or(o){return o}function Bv(o){return pw(typeof o=="function"?o:Gr(o,f))}function _q(o){return hw(Gr(o,f))}function zq(o,l){return gw(o,Gr(l,f))}var Lq=We(function(o,l){return function(m){return Bc(m,o,l)}}),Pq=We(function(o,l){return function(m){return Bc(o,m,l)}});function Ov(o,l,m){var v=sn(l),x=gp(l,v);m==null&&!(_t(l)&&(x.length||!v.length))&&(m=l,l=o,o=this,x=gp(l,sn(l)));var S=!(_t(m)&&"chain"in m)||!!m.chain,R=ha(o);return jr(x,function(z){var q=l[z];o[z]=q,R&&(o.prototype[z]=function(){var ne=this.__chain__;if(S||ne){var re=o(this.__wrapped__),le=re.__actions__=rr(this.__actions__);return le.push({func:q,args:arguments,thisArg:o}),re.__chain__=ne,re}return q.apply(o,Xa([this.value()],arguments))})}),o}function Iq(){return ln._===this&&(ln._=cP),this}function Mv(){}function Nq(o){return o=qe(o),We(function(l){return vw(l,o)})}var Uq=lv(Bt),Hq=lv(IC),qq=lv(F0);function zA(o){return hv(o)?_0(Ui(o)):yI(o)}function jq(o){return function(l){return o==null?e:cu(o,l)}}var Vq=Nw(),$q=Nw(!0);function Rv(){return[]}function Fv(){return!1}function Gq(){return{}}function Wq(){return""}function Kq(){return!0}function Yq(o,l){if(o=qe(o),o<1||o>ve)return[];var m=Q,v=kn(o,Q);l=Te(l),o-=Q;for(var x=P0(v,l);++m<o;)l(m);return x}function Qq(o){return Pe(o)?Bt(o,Ui):Er(o)?[o]:rr(tA(dt(o)))}function Xq(o){var l=++lP;return dt(o)+l}var Zq=Dp(function(o,l){return o+l},0),Jq=sv("ceil"),ej=Dp(function(o,l){return o/l},1),tj=sv("floor");function nj(o){return o&&o.length?hp(o,or,K0):e}function rj(o,l){return o&&o.length?hp(o,Te(l,2),K0):e}function ij(o){return HC(o,or)}function aj(o,l){return HC(o,Te(l,2))}function oj(o){return o&&o.length?hp(o,or,Z0):e}function uj(o,l){return o&&o.length?hp(o,Te(l,2),Z0):e}var lj=Dp(function(o,l){return o*l},1),sj=sv("round"),cj=Dp(function(o,l){return o-l},0);function fj(o){return o&&o.length?L0(o,or):0}function mj(o,l){return o&&o.length?L0(o,Te(l,2)):0}return w.after=_U,w.ary=mA,w.assign=xH,w.assignIn=SA,w.assignInWith=zp,w.assignWith=DH,w.at=CH,w.before=pA,w.bind=xv,w.bindAll=kq,w.bindKey=dA,w.castArray=GU,w.chain=sA,w.chunk=tN,w.compact=nN,w.concat=rN,w.cond=Bq,w.conforms=Oq,w.constant=kv,w.countBy=fU,w.create=wH,w.curry=hA,w.curryRight=gA,w.debounce=vA,w.defaults=AH,w.defaultsDeep=SH,w.defer=zU,w.delay=LU,w.difference=iN,w.differenceBy=aN,w.differenceWith=oN,w.drop=uN,w.dropRight=lN,w.dropRightWhile=sN,w.dropWhile=cN,w.fill=fN,w.filter=pU,w.flatMap=gU,w.flatMapDeep=vU,w.flatMapDepth=yU,w.flatten=aA,w.flattenDeep=mN,w.flattenDepth=pN,w.flip=PU,w.flow=Rq,w.flowRight=Fq,w.fromPairs=dN,w.functions=FH,w.functionsIn=_H,w.groupBy=EU,w.initial=gN,w.intersection=vN,w.intersectionBy=yN,w.intersectionWith=EN,w.invert=LH,w.invertBy=PH,w.invokeMap=xU,w.iteratee=Bv,w.keyBy=DU,w.keys=sn,w.keysIn=ar,w.map=Bp,w.mapKeys=NH,w.mapValues=UH,w.matches=_q,w.matchesProperty=zq,w.memoize=Mp,w.merge=HH,w.mergeWith=TA,w.method=Lq,w.methodOf=Pq,w.mixin=Ov,w.negate=Rp,w.nthArg=Nq,w.omit=qH,w.omitBy=jH,w.once=IU,w.orderBy=CU,w.over=Uq,w.overArgs=NU,w.overEvery=Hq,w.overSome=qq,w.partial=Dv,w.partialRight=yA,w.partition=wU,w.pick=VH,w.pickBy=kA,w.property=zA,w.propertyOf=jq,w.pull=CN,w.pullAll=uA,w.pullAllBy=wN,w.pullAllWith=AN,w.pullAt=SN,w.range=Vq,w.rangeRight=$q,w.rearg=UU,w.reject=TU,w.remove=TN,w.rest=HU,w.reverse=Ev,w.sampleSize=BU,w.set=GH,w.setWith=WH,w.shuffle=OU,w.slice=kN,w.sortBy=FU,w.sortedUniq=zN,w.sortedUniqBy=LN,w.split=gq,w.spread=qU,w.tail=PN,w.take=IN,w.takeRight=NN,w.takeRightWhile=UN,w.takeWhile=HN,w.tap=nU,w.throttle=jU,w.thru=kp,w.toArray=CA,w.toPairs=BA,w.toPairsIn=OA,w.toPath=Qq,w.toPlainObject=AA,w.transform=KH,w.unary=VU,w.union=qN,w.unionBy=jN,w.unionWith=VN,w.uniq=$N,w.uniqBy=GN,w.uniqWith=WN,w.unset=YH,w.unzip=bv,w.unzipWith=lA,w.update=QH,w.updateWith=XH,w.values=Al,w.valuesIn=ZH,w.without=KN,w.words=FA,w.wrap=$U,w.xor=YN,w.xorBy=QN,w.xorWith=XN,w.zip=ZN,w.zipObject=JN,w.zipObjectDeep=eU,w.zipWith=tU,w.entries=BA,w.entriesIn=OA,w.extend=SA,w.extendWith=zp,Ov(w,w),w.add=Zq,w.attempt=_A,w.camelCase=nq,w.capitalize=MA,w.ceil=Jq,w.clamp=JH,w.clone=WU,w.cloneDeep=YU,w.cloneDeepWith=QU,w.cloneWith=KU,w.conformsTo=XU,w.deburr=RA,w.defaultTo=Mq,w.divide=ej,w.endsWith=rq,w.eq=Ei,w.escape=iq,w.escapeRegExp=aq,w.every=mU,w.find=dU,w.findIndex=rA,w.findKey=TH,w.findLast=hU,w.findLastIndex=iA,w.findLastKey=kH,w.floor=tj,w.forEach=cA,w.forEachRight=fA,w.forIn=BH,w.forInRight=OH,w.forOwn=MH,w.forOwnRight=RH,w.get=Av,w.gt=ZU,w.gte=JU,w.has=zH,w.hasIn=Sv,w.head=oA,w.identity=or,w.includes=bU,w.indexOf=hN,w.inRange=eq,w.invoke=IH,w.isArguments=pu,w.isArray=Pe,w.isArrayBuffer=eH,w.isArrayLike=ir,w.isArrayLikeObject=qt,w.isBoolean=tH,w.isBuffer=ao,w.isDate=nH,w.isElement=rH,w.isEmpty=iH,w.isEqual=aH,w.isEqualWith=oH,w.isError=Cv,w.isFinite=uH,w.isFunction=ha,w.isInteger=EA,w.isLength=Fp,w.isMap=bA,w.isMatch=lH,w.isMatchWith=sH,w.isNaN=cH,w.isNative=fH,w.isNil=pH,w.isNull=mH,w.isNumber=xA,w.isObject=_t,w.isObjectLike=Nt,w.isPlainObject=zc,w.isRegExp=wv,w.isSafeInteger=dH,w.isSet=DA,w.isString=_p,w.isSymbol=Er,w.isTypedArray=wl,w.isUndefined=hH,w.isWeakMap=gH,w.isWeakSet=vH,w.join=bN,w.kebabCase=oq,w.last=Kr,w.lastIndexOf=xN,w.lowerCase=uq,w.lowerFirst=lq,w.lt=yH,w.lte=EH,w.max=nj,w.maxBy=rj,w.mean=ij,w.meanBy=aj,w.min=oj,w.minBy=uj,w.stubArray=Rv,w.stubFalse=Fv,w.stubObject=Gq,w.stubString=Wq,w.stubTrue=Kq,w.multiply=lj,w.nth=DN,w.noConflict=Iq,w.noop=Mv,w.now=Op,w.pad=sq,w.padEnd=cq,w.padStart=fq,w.parseInt=mq,w.random=tq,w.reduce=AU,w.reduceRight=SU,w.repeat=pq,w.replace=dq,w.result=$H,w.round=sj,w.runInContext=I,w.sample=kU,w.size=MU,w.snakeCase=hq,w.some=RU,w.sortedIndex=BN,w.sortedIndexBy=ON,w.sortedIndexOf=MN,w.sortedLastIndex=RN,w.sortedLastIndexBy=FN,w.sortedLastIndexOf=_N,w.startCase=vq,w.startsWith=yq,w.subtract=cj,w.sum=fj,w.sumBy=mj,w.template=Eq,w.times=Yq,w.toFinite=ga,w.toInteger=qe,w.toLength=wA,w.toLower=bq,w.toNumber=Yr,w.toSafeInteger=bH,w.toString=dt,w.toUpper=xq,w.trim=Dq,w.trimEnd=Cq,w.trimStart=wq,w.truncate=Aq,w.unescape=Sq,w.uniqueId=Xq,w.upperCase=Tq,w.upperFirst=Tv,w.each=cA,w.eachRight=fA,w.first=oA,Ov(w,function(){var o={};return Ii(w,function(l,m){ht.call(w.prototype,m)||(o[m]=l)}),o}(),{chain:!1}),w.VERSION=t,jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){w[o].placeholder=w}),jr(["drop","take"],function(o,l){nt.prototype[o]=function(m){m=m===e?1:tn(qe(m),0);var v=this.__filtered__&&!l?new nt(this):this.clone();return v.__filtered__?v.__takeCount__=kn(m,v.__takeCount__):v.__views__.push({size:kn(m,Q),type:o+(v.__dir__<0?"Right":"")}),v},nt.prototype[o+"Right"]=function(m){return this.reverse()[o](m).reverse()}}),jr(["filter","map","takeWhile"],function(o,l){var m=l+1,v=m==ae||m==oe;nt.prototype[o]=function(x){var S=this.clone();return S.__iteratees__.push({iteratee:Te(x,3),type:m}),S.__filtered__=S.__filtered__||v,S}}),jr(["head","last"],function(o,l){var m="take"+(l?"Right":"");nt.prototype[o]=function(){return this[m](1).value()[0]}}),jr(["initial","tail"],function(o,l){var m="drop"+(l?"":"Right");nt.prototype[o]=function(){return this.__filtered__?new nt(this):this[m](1)}}),nt.prototype.compact=function(){return this.filter(or)},nt.prototype.find=function(o){return this.filter(o).head()},nt.prototype.findLast=function(o){return this.reverse().find(o)},nt.prototype.invokeMap=We(function(o,l){return typeof o=="function"?new nt(this):this.map(function(m){return Bc(m,o,l)})}),nt.prototype.reject=function(o){return this.filter(Rp(Te(o)))},nt.prototype.slice=function(o,l){o=qe(o);var m=this;return m.__filtered__&&(o>0||l<0)?new nt(m):(o<0?m=m.takeRight(-o):o&&(m=m.drop(o)),l!==e&&(l=qe(l),m=l<0?m.dropRight(-l):m.take(l-o)),m)},nt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},nt.prototype.toArray=function(){return this.take(Q)},Ii(nt.prototype,function(o,l){var m=/^(?:filter|find|map|reject)|While$/.test(l),v=/^(?:head|last)$/.test(l),x=w[v?"take"+(l=="last"?"Right":""):l],S=v||/^find/.test(l);x&&(w.prototype[l]=function(){var R=this.__wrapped__,z=v?[1]:arguments,q=R instanceof nt,ne=z[0],re=q||Pe(R),le=function(Je){var ot=x.apply(w,Xa([Je],z));return v&&de?ot[0]:ot};re&&m&&typeof ne=="function"&&ne.length!=1&&(q=re=!1);var de=this.__chain__,xe=!!this.__actions__.length,ke=S&&!de,Ve=q&&!xe;if(!S&&re){R=Ve?R:new nt(this);var Be=o.apply(R,z);return Be.__actions__.push({func:kp,args:[le],thisArg:e}),new $r(Be,de)}return ke&&Ve?o.apply(this,z):(Be=this.thru(le),ke?v?Be.value()[0]:Be.value():Be)})}),jr(["pop","push","shift","sort","splice","unshift"],function(o){var l=ep[o],m=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",v=/^(?:pop|shift)$/.test(o);w.prototype[o]=function(){var x=arguments;if(v&&!this.__chain__){var S=this.value();return l.apply(Pe(S)?S:[],x)}return this[m](function(R){return l.apply(Pe(R)?R:[],x)})}}),Ii(nt.prototype,function(o,l){var m=w[l];if(m){var v=m.name+"";ht.call(El,v)||(El[v]=[]),El[v].push({name:l,func:m})}}),El[xp(e,A).name]=[{name:"wrapper",func:e}],nt.prototype.clone=SP,nt.prototype.reverse=TP,nt.prototype.value=kP,w.prototype.at=rU,w.prototype.chain=iU,w.prototype.commit=aU,w.prototype.next=oU,w.prototype.plant=lU,w.prototype.reverse=sU,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=cU,w.prototype.first=w.prototype.head,Dc&&(w.prototype[Dc]=uU),w},Ja=aP();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ln._=Ja,define(function(){return Ja})):au?((au.exports=Ja)._=Ja,B0._=Ja):ln._=Ja}).call(ds)});var YB=ge((mre,KB)=>{"use strict";KB.exports=hW;var GB="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",WB="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",pW=new RegExp("^[^"+WB+"]*["+GB+"]"),dW=new RegExp("^[^"+GB+"]*["+WB+"]");function hW(e){return e=String(e||""),pW.test(e)?"rtl":dW.test(e)?"ltr":"neutral"}});var yh=ge((pre,QB)=>{function gW(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}QB.exports=gW});var ZB=ge((dre,XB)=>{var vW=typeof global=="object"&&global&&global.Object===Object&&global;XB.exports=vW});var OE=ge((hre,JB)=>{var yW=ZB(),EW=typeof self=="object"&&self&&self.Object===Object&&self,bW=yW||EW||Function("return this")();JB.exports=bW});var t3=ge((gre,e3)=>{var xW=OE(),DW=function(){return xW.Date.now()};e3.exports=DW});var r3=ge((vre,n3)=>{var CW=/\s/;function wW(e){for(var t=e.length;t--&&CW.test(e.charAt(t)););return t}n3.exports=wW});var a3=ge((yre,i3)=>{var AW=r3(),SW=/^\s+/;function TW(e){return e&&e.slice(0,AW(e)+1).replace(SW,"")}i3.exports=TW});var ME=ge((Ere,o3)=>{var kW=OE(),BW=kW.Symbol;o3.exports=BW});var c3=ge((bre,s3)=>{var u3=ME(),l3=Object.prototype,OW=l3.hasOwnProperty,MW=l3.toString,Kf=u3?u3.toStringTag:void 0;function RW(e){var t=OW.call(e,Kf),n=e[Kf];try{e[Kf]=void 0;var r=!0}catch{}var i=MW.call(e);return r&&(t?e[Kf]=n:delete e[Kf]),i}s3.exports=RW});var m3=ge((xre,f3)=>{var FW=Object.prototype,_W=FW.toString;function zW(e){return _W.call(e)}f3.exports=zW});var g3=ge((Dre,h3)=>{var p3=ME(),LW=c3(),PW=m3(),IW="[object Null]",NW="[object Undefined]",d3=p3?p3.toStringTag:void 0;function UW(e){return e==null?e===void 0?NW:IW:d3&&d3 in Object(e)?LW(e):PW(e)}h3.exports=UW});var y3=ge((Cre,v3)=>{function HW(e){return e!=null&&typeof e=="object"}v3.exports=HW});var b3=ge((wre,E3)=>{var qW=g3(),jW=y3(),VW="[object Symbol]";function $W(e){return typeof e=="symbol"||jW(e)&&qW(e)==VW}E3.exports=$W});var w3=ge((Are,C3)=>{var GW=a3(),x3=yh(),WW=b3(),D3=0/0,KW=/^[-+]0x[0-9a-f]+$/i,YW=/^0b[01]+$/i,QW=/^0o[0-7]+$/i,XW=parseInt;function ZW(e){if(typeof e=="number")return e;if(WW(e))return D3;if(x3(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=x3(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=GW(e);var n=YW.test(e);return n||QW.test(e)?XW(e.slice(2),n?2:8):KW.test(e)?D3:+e}C3.exports=ZW});var FE=ge((Sre,S3)=>{var JW=yh(),RE=t3(),A3=w3(),eK="Expected a function",tK=Math.max,nK=Math.min;function rK(e,t,n){var r,i,a,u,s,c,f=0,p=!1,h=!1,g=!0;if(typeof e!="function")throw new TypeError(eK);t=A3(t)||0,JW(n)&&(p=!!n.leading,h="maxWait"in n,a=h?tK(A3(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function d(B){var H=r,j=i;return r=i=void 0,f=B,u=e.apply(j,H),u}function b(B){return f=B,s=setTimeout(E,t),p?d(B):u}function A(B){var H=B-c,j=B-f,ue=t-H;return h?nK(ue,a-j):ue}function O(B){var H=B-c,j=B-f;return c===void 0||H>=t||H<0||h&&j>=a}function E(){var B=RE();if(O(B))return D(B);s=setTimeout(E,A(B))}function D(B){return s=void 0,g&&r?d(B):(r=i=void 0,u)}function C(){s!==void 0&&clearTimeout(s),f=0,r=c=i=s=void 0}function M(){return s===void 0?u:D(RE())}function L(){var B=RE(),H=O(B);if(r=arguments,i=this,c=B,H){if(s===void 0)return b(c);if(h)return clearTimeout(s),s=setTimeout(E,t),d(c)}return s===void 0&&(s=setTimeout(E,t)),u}return L.cancel=C,L.flush=M,L}S3.exports=rK});var k3=ge((Tre,T3)=>{var iK=FE(),aK=yh(),oK="Expected a function";function uK(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(oK);return aK(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),iK(e,t,{leading:r,maxWait:t,trailing:i})}T3.exports=uK});var P3=ge(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var fK=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),LE={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},mK={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:fK?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},F3={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(Yf=1;Yf<20;Yf++)F3["f"+Yf]=111+Yf;var Yf;function bh(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(u){return _3(u,t)}),i=function(s){return r.some(function(c){return z3(c,s)})},a=n==null?i:i(n);return a}function pK(e,t){return bh(e,t)}function dK(e,t){return bh(e,{byKey:!0},t)}function _3(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),a=i.length;for(var u in LE)r[LE[u]]=!1;var s=!0,c=!1,f=void 0;try{for(var p=i[Symbol.iterator](),h;!(s=(h=p.next()).done);s=!0){var g=h.value,d=g.endsWith("?")&&g.length>1;d&&(g=g.slice(0,-1));var b=PE(g),A=LE[b];(a===1||!A)&&(n?r.key=b:r.which=L3(g)),A&&(r[A]=d?null:!0)}}catch(O){c=!0,f=O}finally{try{!s&&p.return&&p.return()}finally{if(c)throw f}}return r}function z3(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&(n==="key"&&t.key!=null?i=t.key.toLowerCase():n==="which"?i=r===91&&t.which===93?91:t.which:i=t[n],!(i==null&&r===!1)&&i!==r))return!1}return!0}function L3(e){e=PE(e);var t=F3[e]||e.toUpperCase().charCodeAt(0);return t}function PE(e){return e=e.toLowerCase(),e=mK[e]||e,e}Zi.default=bh;Zi.isHotkey=bh;Zi.isCodeHotkey=pK;Zi.isKeyHotkey=dK;Zi.parseHotkey=_3;Zi.compareHotkey=z3;Zi.toKeyCode=L3;Zi.toKeyName=PE});var v4=ge((mme,g4)=>{"use strict";var tg=Object.prototype.hasOwnProperty,h4=Object.prototype.toString,s4=Object.defineProperty,c4=Object.getOwnPropertyDescriptor,f4=function(t){return typeof Array.isArray=="function"?Array.isArray(t):h4.call(t)==="[object Array]"},m4=function(t){if(!t||h4.call(t)!=="[object Object]")return!1;var n=tg.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&tg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||tg.call(t,i)},p4=function(t,n){s4&&n.name==="__proto__"?s4(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},d4=function(t,n){if(n==="__proto__")if(tg.call(t,n)){if(c4)return c4(t,n).value}else return;return t[n]};g4.exports=function e(){var t,n,r,i,a,u,s=arguments[0],c=1,f=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},c=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});c<f;++c)if(t=arguments[c],t!=null)for(n in t)r=d4(s,n),i=d4(t,n),s!==i&&(p&&i&&(m4(i)||(a=f4(i)))?(a?(a=!1,u=r&&f4(r)?r:[]):u=r&&m4(r)?r:{},p4(s,{name:n,newValue:e(p,u,i)})):typeof i<"u"&&p4(s,{name:n,newValue:i}));return s}});var wM=ge(fg=>{"use strict";var kJ=Symbol.for("react.transitional.element"),BJ=Symbol.for("react.fragment");function CM(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:kJ,type:e,key:r,ref:t!==void 0?t:null,props:n}}fg.Fragment=BJ;fg.jsx=CM;fg.jsxs=CM});var Z=ge((gge,AM)=>{"use strict";AM.exports=wM()});var aR=ge(gt=>{"use strict";var hn=typeof Symbol=="function"&&Symbol.for,Lx=hn?Symbol.for("react.element"):60103,Px=hn?Symbol.for("react.portal"):60106,Dg=hn?Symbol.for("react.fragment"):60107,Cg=hn?Symbol.for("react.strict_mode"):60108,wg=hn?Symbol.for("react.profiler"):60114,Ag=hn?Symbol.for("react.provider"):60109,Sg=hn?Symbol.for("react.context"):60110,Ix=hn?Symbol.for("react.async_mode"):60111,Tg=hn?Symbol.for("react.concurrent_mode"):60111,kg=hn?Symbol.for("react.forward_ref"):60112,Bg=hn?Symbol.for("react.suspense"):60113,HJ=hn?Symbol.for("react.suspense_list"):60120,Og=hn?Symbol.for("react.memo"):60115,Mg=hn?Symbol.for("react.lazy"):60116,qJ=hn?Symbol.for("react.block"):60121,jJ=hn?Symbol.for("react.fundamental"):60117,VJ=hn?Symbol.for("react.responder"):60118,$J=hn?Symbol.for("react.scope"):60119;function _r(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Lx:switch(e=e.type,e){case Ix:case Tg:case Dg:case wg:case Cg:case Bg:return e;default:switch(e=e&&e.$$typeof,e){case Sg:case kg:case Mg:case Og:case Ag:return e;default:return t}}case Px:return t}}}function iR(e){return _r(e)===Tg}gt.AsyncMode=Ix;gt.ConcurrentMode=Tg;gt.ContextConsumer=Sg;gt.ContextProvider=Ag;gt.Element=Lx;gt.ForwardRef=kg;gt.Fragment=Dg;gt.Lazy=Mg;gt.Memo=Og;gt.Portal=Px;gt.Profiler=wg;gt.StrictMode=Cg;gt.Suspense=Bg;gt.isAsyncMode=function(e){return iR(e)||_r(e)===Ix};gt.isConcurrentMode=iR;gt.isContextConsumer=function(e){return _r(e)===Sg};gt.isContextProvider=function(e){return _r(e)===Ag};gt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lx};gt.isForwardRef=function(e){return _r(e)===kg};gt.isFragment=function(e){return _r(e)===Dg};gt.isLazy=function(e){return _r(e)===Mg};gt.isMemo=function(e){return _r(e)===Og};gt.isPortal=function(e){return _r(e)===Px};gt.isProfiler=function(e){return _r(e)===wg};gt.isStrictMode=function(e){return _r(e)===Cg};gt.isSuspense=function(e){return _r(e)===Bg};gt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Dg||e===Tg||e===wg||e===Cg||e===Bg||e===HJ||typeof e=="object"&&e!==null&&(e.$$typeof===Mg||e.$$typeof===Og||e.$$typeof===Ag||e.$$typeof===Sg||e.$$typeof===kg||e.$$typeof===jJ||e.$$typeof===VJ||e.$$typeof===$J||e.$$typeof===qJ)};gt.typeOf=_r});var uR=ge((Qge,oR)=>{"use strict";oR.exports=aR()});var dR=ge((Xge,pR)=>{"use strict";var Nx=uR(),GJ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},WJ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},KJ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ux={};Ux[Nx.ForwardRef]=KJ;Ux[Nx.Memo]=fR;function lR(e){return Nx.isMemo(e)?fR:Ux[e.$$typeof]||GJ}var YJ=Object.defineProperty,QJ=Object.getOwnPropertyNames,sR=Object.getOwnPropertySymbols,XJ=Object.getOwnPropertyDescriptor,ZJ=Object.getPrototypeOf,cR=Object.prototype;function mR(e,t,n){if(typeof t!="string"){if(cR){var r=ZJ(t);r&&r!==cR&&mR(e,r,n)}var i=QJ(t);sR&&(i=i.concat(sR(t)));for(var a=lR(e),u=lR(t),s=0;s<i.length;++s){var c=i[s];if(!WJ[c]&&!(n&&n[c])&&!(u&&u[c])&&!(a&&a[c])){var f=XJ(t,c);try{YJ(e,c,f)}catch{}}}}return e}pR.exports=mR});var Ng=ge(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});var gee=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Vx={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},UR={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:gee?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},$x={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(Om=1;Om<20;Om++)$x["f"+Om]=111+Om;var Om;function Ig(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(u){return HR(u,t)}),i=function(s){return r.some(function(c){return qR(c,s)})},a=n==null?i:i(n);return a}function vee(e,t){return Ig(e,t)}function yee(e,t){return Ig(e,{byKey:!0},t)}function HR(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),a=i.length;for(var u in Vx)r[Vx[u]]=!1;var s=!0,c=!1,f=void 0;try{for(var p=i[Symbol.iterator](),h;!(s=(h=p.next()).done);s=!0){var g=h.value,d=g.endsWith("?")&&g.length>1;d&&(g=g.slice(0,-1));var b=Gx(g),A=Vx[b];if(g.length>1&&!A&&!UR[g]&&!$x[b])throw new TypeError('Unknown modifier: "'+g+'"');(a===1||!A)&&(n?r.key=b:r.which=jR(g)),A&&(r[A]=d?null:!0)}}catch(O){c=!0,f=O}finally{try{!s&&p.return&&p.return()}finally{if(c)throw f}}return r}function qR(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&(n==="key"&&t.key!=null?i=t.key.toLowerCase():n==="which"?i=r===91&&t.which===93?91:t.which:i=t[n],!(i==null&&r===!1)&&i!==r))return!1}return!0}function jR(e){e=Gx(e);var t=$x[e]||e.toUpperCase().charCodeAt(0);return t}function Gx(e){return e=e.toLowerCase(),e=UR[e]||e,e}na.default=Ig;na.isHotkey=Ig;na.isCodeHotkey=vee;na.isKeyHotkey=yee;na.parseHotkey=HR;na.compareHotkey=qR;na.toKeyCode=jR;na.toKeyName=Gx});var a_=ge(i_=>{"use strict";var ec=Oe();function Lee(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pee=typeof Object.is=="function"?Object.is:Lee,Iee=ec.useState,Nee=ec.useEffect,Uee=ec.useLayoutEffect,Hee=ec.useDebugValue;function qee(e,t){var n=t(),r=Iee({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return Uee(function(){i.value=n,i.getSnapshot=t,oD(i)&&a({inst:i})},[e,n,t]),Nee(function(){return oD(i)&&a({inst:i}),e(function(){oD(i)&&a({inst:i})})},[e]),Hee(n),n}function oD(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pee(e,n)}catch{return!0}}function jee(e,t){return t()}var Vee=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?jee:qee;i_.useSyncExternalStore=ec.useSyncExternalStore!==void 0?ec.useSyncExternalStore:Vee});var u_=ge((Kxe,o_)=>{"use strict";o_.exports=a_()});var s_=ge(l_=>{"use strict";var Wg=Oe(),$ee=u_();function Gee(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wee=typeof Object.is=="function"?Object.is:Gee,Kee=$ee.useSyncExternalStore,Yee=Wg.useRef,Qee=Wg.useEffect,Xee=Wg.useMemo,Zee=Wg.useDebugValue;l_.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=Yee(null);if(a.current===null){var u={hasValue:!1,value:null};a.current=u}else u=a.current;a=Xee(function(){function c(d){if(!f){if(f=!0,p=d,d=r(d),i!==void 0&&u.hasValue){var b=u.value;if(i(b,d))return h=b}return h=d}if(b=h,Wee(p,d))return b;var A=r(d);return i!==void 0&&i(b,A)?(p=d,b):(p=d,h=A)}var f=!1,p,h,g=n===void 0?null:n;return[function(){return c(t())},g===null?void 0:function(){return c(g())}]},[t,n,r,i]);var s=Kee(e,a[0],a[1]);return Qee(function(){u.hasValue=!0,u.value=s},[s]),Zee(s),s}});var f_=ge((Qxe,c_)=>{"use strict";c_.exports=s_()});var MD=ge((vOe,r9)=>{"use strict";r9.exports=function(t,n){return function(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];return t.apply(n,i)}}});var gn=ge((yOe,o9)=>{"use strict";var Rte=MD(),FD=Object.prototype.toString,_D=function(e){return function(t){var n=FD.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function cl(e){return e=e.toLowerCase(),function(n){return _D(n)===e}}function zD(e){return Array.isArray(e)}function d0(e){return typeof e>"u"}function Fte(e){return e!==null&&!d0(e)&&e.constructor!==null&&!d0(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var i9=cl("ArrayBuffer");function _te(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&i9(e.buffer),t}function zte(e){return typeof e=="string"}function Lte(e){return typeof e=="number"}function a9(e){return e!==null&&typeof e=="object"}function p0(e){if(_D(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var Pte=cl("Date"),Ite=cl("File"),Nte=cl("Blob"),Ute=cl("FileList");function LD(e){return FD.call(e)==="[object Function]"}function Hte(e){return a9(e)&&LD(e.pipe)}function qte(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||FD.call(e)===t||LD(e.toString)&&e.toString()===t)}var jte=cl("URLSearchParams");function Vte(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function $te(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function PD(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),zD(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function RD(){var e={};function t(i,a){p0(e[a])&&p0(i)?e[a]=RD(e[a],i):p0(i)?e[a]=RD({},i):zD(i)?e[a]=i.slice():e[a]=i}for(var n=0,r=arguments.length;n<r;n++)PD(arguments[n],t);return e}function Gte(e,t,n){return PD(t,function(i,a){n&&typeof i=="function"?e[a]=Rte(i,n):e[a]=i}),e}function Wte(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Kte(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function Yte(e,t,n){var r,i,a,u={};t=t||{};do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],u[a]||(t[a]=e[a],u[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function Qte(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function Xte(e){if(!e)return null;var t=e.length;if(d0(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var Zte=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));o9.exports={isArray:zD,isArrayBuffer:i9,isBuffer:Fte,isFormData:qte,isArrayBufferView:_te,isString:zte,isNumber:Lte,isObject:a9,isPlainObject:p0,isUndefined:d0,isDate:Pte,isFile:Ite,isBlob:Nte,isFunction:LD,isStream:Hte,isURLSearchParams:jte,isStandardBrowserEnv:$te,forEach:PD,merge:RD,extend:Gte,trim:Vte,stripBOM:Wte,inherits:Kte,toFlatObject:Yte,kindOf:_D,kindOfTest:cl,endsWith:Qte,toArray:Xte,isTypedArray:Zte,isFileList:Ute}});var ID=ge((EOe,l9)=>{"use strict";var hc=gn();function u9(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}l9.exports=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(hc.isURLSearchParams(n))i=n.toString();else{var a=[];hc.forEach(n,function(c,f){c===null||typeof c>"u"||(hc.isArray(c)?f=f+"[]":c=[c],hc.forEach(c,function(h){hc.isDate(h)?h=h.toISOString():hc.isObject(h)&&(h=JSON.stringify(h)),a.push(u9(f)+"="+u9(h))}))}),i=a.join("&")}if(i){var u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var c9=ge((bOe,s9)=>{"use strict";var Jte=gn();function h0(){this.handlers=[]}h0.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};h0.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};h0.prototype.forEach=function(t){Jte.forEach(this.handlers,function(r){r!==null&&t(r)})};s9.exports=h0});var m9=ge((xOe,f9)=>{"use strict";var ene=gn();f9.exports=function(t,n){ene.forEach(t,function(i,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[a])})}});var fl=ge((DOe,g9)=>{"use strict";var p9=gn();function gc(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}p9.inherits(gc,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var d9=gc.prototype,h9={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){h9[e]={value:e}});Object.defineProperties(gc,h9);Object.defineProperty(d9,"isAxiosError",{value:!0});gc.from=function(e,t,n,r,i,a){var u=Object.create(d9);return p9.toFlatObject(e,u,function(c){return c!==Error.prototype}),gc.call(u,e.message,t,n,r,i),u.name=e.name,a&&Object.assign(u,a),u};g9.exports=gc});var ND=ge((COe,v9)=>{"use strict";v9.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});var UD=ge((wOe,y9)=>{"use strict";var _i=gn();function tne(e,t){t=t||new FormData;var n=[];function r(a){return a===null?"":_i.isDate(a)?a.toISOString():_i.isArrayBuffer(a)||_i.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function i(a,u){if(_i.isPlainObject(a)||_i.isArray(a)){if(n.indexOf(a)!==-1)throw Error("Circular reference detected in "+u);n.push(a),_i.forEach(a,function(c,f){if(!_i.isUndefined(c)){var p=u?u+"."+f:f,h;if(c&&!u&&typeof c=="object"){if(_i.endsWith(f,"{}"))c=JSON.stringify(c);else if(_i.endsWith(f,"[]")&&(h=_i.toArray(c))){h.forEach(function(g){!_i.isUndefined(g)&&t.append(p,r(g))});return}}i(c,p)}}),n.pop()}else t.append(u,r(a))}return i(e),t}y9.exports=tne});var b9=ge((AOe,E9)=>{"use strict";var HD=fl();E9.exports=function(t,n,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):n(new HD("Request failed with status code "+r.status,[HD.ERR_BAD_REQUEST,HD.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}});var D9=ge((SOe,x9)=>{"use strict";var g0=gn();x9.exports=g0.isStandardBrowserEnv()?function(){return{write:function(n,r,i,a,u,s){var c=[];c.push(n+"="+encodeURIComponent(r)),g0.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),g0.isString(a)&&c.push("path="+a),g0.isString(u)&&c.push("domain="+u),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){var r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var w9=ge((TOe,C9)=>{"use strict";C9.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}});var S9=ge((kOe,A9)=>{"use strict";A9.exports=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}});var qD=ge((BOe,T9)=>{"use strict";var nne=w9(),rne=S9();T9.exports=function(t,n){return t&&!nne(n)?rne(t,n):n}});var B9=ge((OOe,k9)=>{"use strict";var jD=gn(),ine=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];k9.exports=function(t){var n={},r,i,a;return t&&jD.forEach(t.split(`
|
|
29
|
+
`),function(s){if(a=s.indexOf(":"),r=jD.trim(s.substr(0,a)).toLowerCase(),i=jD.trim(s.substr(a+1)),r){if(n[r]&&ine.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([i]):n[r]=n[r]?n[r]+", "+i:i}}),n}});var R9=ge((MOe,M9)=>{"use strict";var O9=gn();M9.exports=O9.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(a){var u=a;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(u){var s=O9.isString(u)?i(u):u;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}()});var $m=ge((ROe,_9)=>{"use strict";var VD=fl(),ane=gn();function F9(e){VD.call(this,e??"canceled",VD.ERR_CANCELED),this.name="CanceledError"}ane.inherits(F9,VD,{__CANCEL__:!0});_9.exports=F9});var L9=ge((FOe,z9)=>{"use strict";z9.exports=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}});var $D=ge((_Oe,P9)=>{"use strict";var Gm=gn(),one=b9(),une=D9(),lne=ID(),sne=qD(),cne=B9(),fne=R9(),mne=ND(),Ka=fl(),pne=$m(),dne=L9();P9.exports=function(t){return new Promise(function(r,i){var a=t.data,u=t.headers,s=t.responseType,c;function f(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}Gm.isFormData(a)&&Gm.isStandardBrowserEnv()&&delete u["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";u.Authorization="Basic "+btoa(h+":"+g)}var d=sne(t.baseURL,t.url);p.open(t.method.toUpperCase(),lne(d,t.params,t.paramsSerializer),!0),p.timeout=t.timeout;function b(){if(p){var E="getAllResponseHeaders"in p?cne(p.getAllResponseHeaders()):null,D=!s||s==="text"||s==="json"?p.responseText:p.response,C={data:D,status:p.status,statusText:p.statusText,headers:E,config:t,request:p};one(function(L){r(L),f()},function(L){i(L),f()},C),p=null}}if("onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(b)},p.onabort=function(){p&&(i(new Ka("Request aborted",Ka.ECONNABORTED,t,p)),p=null)},p.onerror=function(){i(new Ka("Network Error",Ka.ERR_NETWORK,t,p,p)),p=null},p.ontimeout=function(){var D=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",C=t.transitional||mne;t.timeoutErrorMessage&&(D=t.timeoutErrorMessage),i(new Ka(D,C.clarifyTimeoutError?Ka.ETIMEDOUT:Ka.ECONNABORTED,t,p)),p=null},Gm.isStandardBrowserEnv()){var A=(t.withCredentials||fne(d))&&t.xsrfCookieName?une.read(t.xsrfCookieName):void 0;A&&(u[t.xsrfHeaderName]=A)}"setRequestHeader"in p&&Gm.forEach(u,function(D,C){typeof a>"u"&&C.toLowerCase()==="content-type"?delete u[C]:p.setRequestHeader(C,D)}),Gm.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),s&&s!=="json"&&(p.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&p.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(c=function(E){p&&(i(!E||E&&E.type?new pne:E),p.abort(),p=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c))),a||(a=null);var O=dne(d);if(O&&["http","https","file"].indexOf(O)===-1){i(new Ka("Unsupported protocol "+O+":",Ka.ERR_BAD_REQUEST,t));return}p.send(a)})}});var N9=ge((zOe,I9)=>{I9.exports=null});var y0=ge((LOe,j9)=>{"use strict";var vn=gn(),U9=m9(),H9=fl(),hne=ND(),gne=UD(),vne={"Content-Type":"application/x-www-form-urlencoded"};function q9(e,t){!vn.isUndefined(e)&&vn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function yne(){var e;return typeof XMLHttpRequest<"u"?e=$D():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=$D()),e}function Ene(e,t,n){if(vn.isString(e))try{return(t||JSON.parse)(e),vn.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var v0={transitional:hne,adapter:yne(),transformRequest:[function(t,n){if(U9(n,"Accept"),U9(n,"Content-Type"),vn.isFormData(t)||vn.isArrayBuffer(t)||vn.isBuffer(t)||vn.isStream(t)||vn.isFile(t)||vn.isBlob(t))return t;if(vn.isArrayBufferView(t))return t.buffer;if(vn.isURLSearchParams(t))return q9(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=vn.isObject(t),i=n&&n["Content-Type"],a;if((a=vn.isFileList(t))||r&&i==="multipart/form-data"){var u=this.env&&this.env.FormData;return gne(a?{"files[]":t}:t,u&&new u)}else if(r||i==="application/json")return q9(n,"application/json"),Ene(t);return t}],transformResponse:[function(t){var n=this.transitional||v0.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||i&&vn.isString(t)&&t.length)try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?H9.from(u,H9.ERR_BAD_RESPONSE,this,null,this.response):u}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N9()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};vn.forEach(["delete","get","head"],function(t){v0.headers[t]={}});vn.forEach(["post","put","patch"],function(t){v0.headers[t]=vn.merge(vne)});j9.exports=v0});var $9=ge((POe,V9)=>{"use strict";var bne=gn(),xne=y0();V9.exports=function(t,n,r){var i=this||xne;return bne.forEach(r,function(u){t=u.call(i,t,n)}),t}});var GD=ge((IOe,G9)=>{"use strict";G9.exports=function(t){return!!(t&&t.__CANCEL__)}});var Y9=ge((NOe,K9)=>{"use strict";var W9=gn(),WD=$9(),Dne=GD(),Cne=y0(),wne=$m();function KD(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wne}K9.exports=function(t){KD(t),t.headers=t.headers||{},t.data=WD.call(t,t.data,t.headers,t.transformRequest),t.headers=W9.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),W9.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||Cne.adapter;return n(t).then(function(i){return KD(t),i.data=WD.call(t,i.data,i.headers,t.transformResponse),i},function(i){return Dne(i)||(KD(t),i&&i.response&&(i.response.data=WD.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var YD=ge((UOe,Q9)=>{"use strict";var Ir=gn();Q9.exports=function(t,n){n=n||{};var r={};function i(p,h){return Ir.isPlainObject(p)&&Ir.isPlainObject(h)?Ir.merge(p,h):Ir.isPlainObject(h)?Ir.merge({},h):Ir.isArray(h)?h.slice():h}function a(p){if(Ir.isUndefined(n[p])){if(!Ir.isUndefined(t[p]))return i(void 0,t[p])}else return i(t[p],n[p])}function u(p){if(!Ir.isUndefined(n[p]))return i(void 0,n[p])}function s(p){if(Ir.isUndefined(n[p])){if(!Ir.isUndefined(t[p]))return i(void 0,t[p])}else return i(void 0,n[p])}function c(p){if(p in n)return i(t[p],n[p]);if(p in t)return i(void 0,t[p])}var f={url:u,method:u,data:u,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return Ir.forEach(Object.keys(t).concat(Object.keys(n)),function(h){var g=f[h]||a,d=g(h);Ir.isUndefined(d)&&g!==c||(r[h]=d)}),r}});var QD=ge((HOe,X9)=>{X9.exports={version:"0.27.2"}});var ez=ge((qOe,J9)=>{"use strict";var Ane=QD().version,ru=fl(),XD={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){XD[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Z9={};XD.transitional=function(t,n,r){function i(a,u){return"[Axios v"+Ane+"] Transitional option '"+a+"'"+u+(r?". "+r:"")}return function(a,u,s){if(t===!1)throw new ru(i(u," has been removed"+(n?" in "+n:"")),ru.ERR_DEPRECATED);return n&&!Z9[u]&&(Z9[u]=!0,console.warn(i(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,s):!0}};function Sne(e,t,n){if(typeof e!="object")throw new ru("options must be an object",ru.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],u=t[a];if(u){var s=e[a],c=s===void 0||u(s,a,e);if(c!==!0)throw new ru("option "+a+" must be "+c,ru.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ru("Unknown option "+a,ru.ERR_BAD_OPTION)}}J9.exports={assertOptions:Sne,validators:XD}});var oz=ge((jOe,az)=>{"use strict";var rz=gn(),Tne=ID(),tz=c9(),nz=Y9(),E0=YD(),kne=qD(),iz=ez(),vc=iz.validators;function yc(e){this.defaults=e,this.interceptors={request:new tz,response:new tz}}yc.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=E0(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&iz.assertOptions(r,{silentJSONParsing:vc.transitional(vc.boolean),forcedJSONParsing:vc.transitional(vc.boolean),clarifyTimeoutError:vc.transitional(vc.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(a=a&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});var s;if(!a){var c=[nz,void 0];for(Array.prototype.unshift.apply(c,i),c=c.concat(u),s=Promise.resolve(n);c.length;)s=s.then(c.shift(),c.shift());return s}for(var f=n;i.length;){var p=i.shift(),h=i.shift();try{f=p(f)}catch(g){h(g);break}}try{s=nz(f)}catch(g){return Promise.reject(g)}for(;u.length;)s=s.then(u.shift(),u.shift());return s};yc.prototype.getUri=function(t){t=E0(this.defaults,t);var n=kne(t.baseURL,t.url);return Tne(n,t.params,t.paramsSerializer)};rz.forEach(["delete","get","head","options"],function(t){yc.prototype[t]=function(n,r){return this.request(E0(r||{},{method:t,url:n,data:(r||{}).data}))}});rz.forEach(["post","put","patch"],function(t){function n(r){return function(a,u,s){return this.request(E0(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}yc.prototype[t]=n(),yc.prototype[t+"Form"]=n(!0)});az.exports=yc});var lz=ge((VOe,uz)=>{"use strict";var Bne=$m();function Ec(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var n=this;this.promise.then(function(r){if(n._listeners){var i,a=n._listeners.length;for(i=0;i<a;i++)n._listeners[i](r);n._listeners=null}}),this.promise.then=function(r){var i,a=new Promise(function(u){n.subscribe(u),i=u}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i){n.reason||(n.reason=new Bne(i),t(n.reason))})}Ec.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Ec.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};Ec.prototype.unsubscribe=function(t){if(this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}};Ec.source=function(){var t,n=new Ec(function(i){t=i});return{token:n,cancel:t}};uz.exports=Ec});var cz=ge(($Oe,sz)=>{"use strict";sz.exports=function(t){return function(r){return t.apply(null,r)}}});var mz=ge((GOe,fz)=>{"use strict";var One=gn();fz.exports=function(t){return One.isObject(t)&&t.isAxiosError===!0}});var hz=ge((WOe,ZD)=>{"use strict";var pz=gn(),Mne=MD(),b0=oz(),Rne=YD(),Fne=y0();function dz(e){var t=new b0(e),n=Mne(b0.prototype.request,t);return pz.extend(n,b0.prototype,t),pz.extend(n,t),n.create=function(i){return dz(Rne(e,i))},n}var hr=dz(Fne);hr.Axios=b0;hr.CanceledError=$m();hr.CancelToken=lz();hr.isCancel=GD();hr.VERSION=QD().version;hr.toFormData=UD();hr.AxiosError=fl();hr.Cancel=hr.CanceledError;hr.all=function(t){return Promise.all(t)};hr.spread=cz();hr.isAxiosError=mz();ZD.exports=hr;ZD.exports.default=hr});var JD=ge((KOe,gz)=>{gz.exports=hz()});var ua=N(Oe()),Lz=N(sB());var _z=N(sh()),Ya=N(Oe());function cB(e){return Object.prototype.toString.call(e)==="[object Object]"}function An(e){var t,n;return cB(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(cB(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Si(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!1)var i,a;throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(u){return"'"+u+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fo(e){return!!e&&!!e[Br]}function Nu(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===yG}(e)||Array.isArray(e)||!!e[yB]||!!(!((t=e.constructor)===null||t===void 0)&&t[yB])||EE(e)||bE(e))}function Vf(e,t,n){n===void 0&&(n=!1),hs(e)===0?(n?Object.keys:AE)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function hs(e){var t=e[Br];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:EE(e)?2:bE(e)?3:0}function dE(e,t){return hs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function fG(e,t){return hs(e)===2?e.get(t):e[t]}function EB(e,t,n){var r=hs(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function mG(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function EE(e){return gG&&e instanceof Map}function bE(e){return vG&&e instanceof Set}function Iu(e){return e.o||e.t}function xE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=EG(e);delete t[Br];for(var n=AE(t),r=0;r<n.length;r++){var i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function DE(e,t){return t===void 0&&(t=!1),CE(e)||Fo(e)||!Nu(e)||(hs(e)>1&&(e.set=e.add=e.clear=e.delete=pG),Object.freeze(e),t&&Vf(e,function(n,r){return DE(r,!0)},!0)),e}function pG(){Si(2)}function CE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Qi(e){var t=bG[e];return t||Si(18,e),t}function fB(){return $f}function cE(e,t){t&&(Qi("Patches"),e.u=[],e.s=[],e.v=t)}function ch(e){hE(e),e.p.forEach(dG),e.p=null}function hE(e){e===$f&&($f=e.l)}function mB(e){return $f={p:[],l:$f,h:e,m:!0,_:0}}function dG(e){var t=e[Br];t.i===0||t.i===1?t.j():t.g=!0}function fE(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Qi("ES5").S(t,e,r),r?(n[Br].P&&(ch(t),Si(4)),Nu(e)&&(e=fh(t,e),t.l||mh(t,e)),t.u&&Qi("Patches").M(n[Br].t,e,t.u,t.s)):e=fh(t,n,[]),ch(t),t.u&&t.v(t.u,t.s),e!==bB?e:void 0}function fh(e,t,n){if(CE(t))return t;var r=t[Br];if(!r)return Vf(t,function(s,c){return pB(e,r,t,s,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return mh(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=xE(r.k):r.o,a=i,u=!1;r.i===3&&(a=new Set(i),i.clear(),u=!0),Vf(a,function(s,c){return pB(e,r,i,s,c,n,u)}),mh(e,i,!1),n&&e.u&&Qi("Patches").N(r,n,e.u,e.s)}return r.o}function pB(e,t,n,r,i,a,u){if(Fo(i)){var s=fh(e,i,a&&t&&t.i!==3&&!dE(t.R,r)?a.concat(r):void 0);if(EB(n,r,s),!Fo(s))return;e.m=!1}else u&&n.add(i);if(Nu(i)&&!CE(i)){if(!e.h.D&&e._<1)return;fh(e,i),t&&t.A.l||mh(e,i)}}function mh(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&DE(t,n)}function mE(e,t){var n=e[Br];return(n?Iu(n):e)[t]}function dB(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function gE(e){e.P||(e.P=!0,e.l&&gE(e.l))}function pE(e){e.o||(e.o=xE(e.t))}function vE(e,t,n){var r=EE(t)?Qi("MapSet").F(t,n):bE(t)?Qi("MapSet").T(t,n):e.O?function(i,a){var u=Array.isArray(i),s={i:u?1:0,A:a?a.A:fB(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},c=s,f=yE;u&&(c=[s],f=jf);var p=Proxy.revocable(c,f),h=p.revoke,g=p.proxy;return s.k=g,s.j=h,g}(t,n):Qi("ES5").J(t,n);return(n?n.A:fB()).p.push(r),r}function hG(e){return Fo(e)||Si(22,e),function t(n){if(!Nu(n))return n;var r,i=n[Br],a=hs(n);if(i){if(!i.P&&(i.i<4||!Qi("ES5").K(i)))return i.t;i.I=!0,r=hB(n,a),i.I=!1}else r=hB(n,a);return Vf(r,function(u,s){i&&fG(i.t,u)===s||EB(r,u,t(s))}),a===3?new Set(r):r}(e)}function hB(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return xE(e)}var gB,$f,wE=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gG=typeof Map<"u",vG=typeof Set<"u",vB=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",bB=wE?Symbol.for("immer-nothing"):((gB={})["immer-nothing"]=!0,gB),yB=wE?Symbol.for("immer-draftable"):"__$immer_draftable",Br=wE?Symbol.for("immer-state"):"__$immer_state";var yG=""+Object.prototype.constructor,AE=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,EG=Object.getOwnPropertyDescriptors||function(e){var t={};return AE(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},bG={},yE={get:function(e,t){if(t===Br)return e;var n=Iu(e);if(!dE(n,t))return function(i,a,u){var s,c=dB(a,u);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Nu(r)?r:r===mE(e.t,t)?(pE(e),e.o[t]=vE(e.A.h,r,e)):r},has:function(e,t){return t in Iu(e)},ownKeys:function(e){return Reflect.ownKeys(Iu(e))},set:function(e,t,n){var r=dB(Iu(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=mE(Iu(e),t),a=i?.[Br];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(mG(n,i)&&(n!==void 0||dE(e.t,t)))return!0;pE(e),gE(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return mE(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,pE(e),gE(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Iu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Si(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Si(12)}},jf={};Vf(yE,function(e,t){jf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),jf.deleteProperty=function(e,t){return jf.set.call(this,e,t,void 0)},jf.set=function(e,t,n){return yE.set.call(this,e[0],t,n,e[0])};var xG=function(){function e(n){var r=this;this.O=vB,this.D=!0,this.produce=function(i,a,u){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var c=r;return function(A){var O=this;A===void 0&&(A=s);for(var E=arguments.length,D=Array(E>1?E-1:0),C=1;C<E;C++)D[C-1]=arguments[C];return c.produce(A,function(M){var L;return(L=a).call.apply(L,[O,M].concat(D))})}}var f;if(typeof a!="function"&&Si(6),u!==void 0&&typeof u!="function"&&Si(7),Nu(i)){var p=mB(r),h=vE(r,i,void 0),g=!0;try{f=a(h),g=!1}finally{g?ch(p):hE(p)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(A){return cE(p,u),fE(A,p)},function(A){throw ch(p),A}):(cE(p,u),fE(f,p))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===bB&&(f=void 0),r.D&&DE(f,!0),u){var d=[],b=[];Qi("Patches").M(i,f,d,b),u(d,b)}return f}Si(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var p=arguments.length,h=Array(p>1?p-1:0),g=1;g<p;g++)h[g-1]=arguments[g];return r.produceWithPatches(f,function(d){return i.apply(void 0,[d].concat(h))})};var u,s,c=r.produce(i,a,function(f,p){u=f,s=p});return typeof Promise<"u"&&c instanceof Promise?c.then(function(f){return[f,u,s]}):[c,u,s]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Nu(n)||Si(8),Fo(n)&&(n=hG(n));var r=mB(this),i=vE(this,n,void 0);return i[Br].C=!0,hE(r),i},t.finishDraft=function(n,r){var i=n&&n[Br],a=i.A;return cE(a,r),fE(void 0,a)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!vB&&Si(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var u=Qi("Patches").$;return Fo(n)?u(n,r):this.produce(n,function(s){return u(s,r)})},e}(),Or=new xG,ph=Or.produce,are=Or.produceWithPatches.bind(Or),ore=Or.setAutoFreeze.bind(Or),ure=Or.setUseProxies.bind(Or),lre=Or.applyPatches.bind(Or),SE=Or.createDraft.bind(Or),TE=Or.finishDraft.bind(Or);function Xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gh=new WeakMap,vh=new WeakMap,Gf=new WeakMap,xB=new WeakMap,DB=new WeakMap,CB=new WeakMap,wB=new WeakMap;function AB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AB(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var jB=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of y.pathRefs(e))XG.transform(n,t);for(var r of y.pointRefs(e))ZG.transform(r,t);for(var i of y.rangeRefs(e))tW.transform(i,t);var a=gh.get(e)||[],u=vh.get(e)||new Set,s,c,f=b=>{if(b){var A=b.join(",");c.has(A)||(c.add(A),s.push(b))}};if(F.operationCanTransformPath(t)){s=[],c=new Set;for(var p of a){var h=F.transform(p,t);f(h)}}else s=a,c=u;var g=e.getDirtyPaths(t);for(var d of g)f(d);gh.set(e,s),vh.set(e,c),_.transform(e,t),e.operations.push(t),y.normalize(e),t.type==="set_selection"&&(e.marks=null),Gf.get(e)||(Gf.set(e,!0),Promise.resolve().then(()=>{Gf.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r,markableVoid:i}=e;if(r){var a=(g,d)=>{if(!fe.isText(g))return!1;var[b,A]=y.parent(e,d);return!e.isVoid(b)||e.markableVoid(b)},u=V.isExpanded(r),s=!1;if(!u){var[c,f]=y.node(e,r);if(c&&a(c,f)){var[p]=y.parent(e,f);s=p&&e.markableVoid(p)}}if(u||s)_.setNodes(e,{[t]:n},{match:a,split:!0,voids:!0});else{var h=dh(dh({},y.marks(e)||{}),{},{[t]:n});e.marks=h,Gf.get(e)||e.onChange()}}},deleteBackward:t=>{var{selection:n}=e;n&&V.isCollapsed(n)&&_.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&V.isCollapsed(n)&&_.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&V.isExpanded(n)&&_.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?ce.fragment(e,t):[]},insertBreak:()=>{_.splitNodes(e,{always:!0})},insertSoftBreak:()=>{_.splitNodes(e,{always:!0})},insertFragment:t=>{_.insertFragment(e,t)},insertNode:t=>{_.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=dh({text:t},r);_.insertNodes(e,i)}else _.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!fe.isText(n)){if(me.isElement(n)&&n.children.length===0){var i={text:""};_.insertNodes(e,i,{at:r.concat(0),voids:!0});return}for(var a=y.isEditor(n)?!1:me.isElement(n)&&(e.isInline(n)||n.children.length===0||fe.isText(n.children[0])||e.isInline(n.children[0])),u=0,s=0;s<n.children.length;s++,u++){var c=ce.get(e,r);if(!fe.isText(c)){var f=n.children[s],p=c.children[u-1],h=s===n.children.length-1,g=fe.isText(f)||me.isElement(f)&&e.isInline(f);if(g!==a)_.removeNodes(e,{at:r.concat(u),voids:!0}),u--;else if(me.isElement(f)){if(e.isInline(f)){if(p==null||!fe.isText(p)){var d={text:""};_.insertNodes(e,d,{at:r.concat(u),voids:!0}),u++}else if(h){var b={text:""};_.insertNodes(e,b,{at:r.concat(u+1),voids:!0}),u++}}}else p!=null&&fe.isText(p)&&(fe.equals(f,p,{loose:!0})?(_.mergeNodes(e,{at:r.concat(u),voids:!0}),u--):p.text===""?(_.removeNodes(e,{at:r.concat(u-1),voids:!0}),u--):f.text===""&&(_.removeNodes(e,{at:r.concat(u),voids:!0}),u--))}}}},removeMark:t=>{var{selection:n}=e;if(n){var r=(p,h)=>{if(!fe.isText(p))return!1;var[g,d]=y.parent(e,h);return!e.isVoid(g)||e.markableVoid(g)},i=V.isExpanded(n),a=!1;if(!i){var[u,s]=y.node(e,n);if(u&&r(u,s)){var[c]=y.parent(e,s);a=c&&e.markableVoid(c)}}if(i||a)_.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var f=dh({},y.marks(e)||{});delete f[t],e.marks=f,Gf.get(e)||e.onChange()}}},getDirtyPaths:t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return F.levels(n)}case"insert_node":{var{node:r,path:i}=t,a=F.levels(i),u=fe.isText(r)?[]:Array.from(ce.nodes(r),P=>{var[,pe]=P;return i.concat(pe)});return[...a,...u]}case"merge_node":{var{path:s}=t,c=F.ancestors(s),f=F.previous(s);return[...c,f]}case"move_node":{var{path:p,newPath:h}=t;if(F.equals(p,h))return[];var g=[],d=[];for(var b of F.ancestors(p)){var A=F.transform(b,t);g.push(A)}for(var O of F.ancestors(h)){var E=F.transform(O,t);d.push(E)}var D=d[d.length-1],C=h[h.length-1],M=D.concat(C);return[...g,...d,M]}case"remove_node":{var{path:L}=t,B=F.ancestors(L);return[...B]}case"split_node":{var{path:H}=t,j=F.levels(H),ue=F.next(H);return[...j,ue]}default:return[]}}};return e};function DG(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ia(e,t){if(e==null)return{};var n=DG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var kE=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,i=n?kG(t):t,a=_e.None,u=_e.None,s=0,c=null,f=null;for(var p of i){var h=p.codePointAt(0);if(!h)break;var g=UG(p,h);if([a,u]=r?[u,g]:[g,a],ys(a,_e.ZWJ)&&ys(u,_e.ExtPict)&&(r?c=SB(t.substring(0,s)):c=SB(t.substring(0,t.length-s)),!c)||ys(a,_e.RI)&&ys(u,_e.RI)&&(f!==null?f=!f:r?f=!0:f=$G(t.substring(0,t.length-s)),!f)||a!==_e.None&&u!==_e.None&&qG(a,u))break;s+=p.length}return s||1},CG=/\s/,wG=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,AG=/['\u2018\u2019]/,SG=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,i=!1;t.length>0;){var a=kE(t,n),[u,s]=BE(t,a,n);if(TG(u,s,n))i=!0,r+=a;else if(!i)r+=a;else break;t=s}return r},BE=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},TG=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(CG.test(t))return!1;if(AG.test(t)){var i=kE(n,r),[a,u]=BE(n,i,r);if(e(a,u,r))return!0}return!wG.test(t)},kG=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var i=t.charAt(n-r);if(OG(i.charCodeAt(0))){var a=t.charAt(n-r-1);if(BG(a.charCodeAt(0))){yield a+i,r++;continue}}yield i}},BG=e=>e>=55296&&e<=56319,OG=e=>e>=56320&&e<=57343,_e;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(_e||(_e={}));var MG=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,RG=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,FG=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,_G=/^[\u1100-\u115F\uA960-\uA97C]$/,zG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,LG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,PG=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,IG=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,NG=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,UG=(e,t)=>{var n=_e.Any;return e.search(MG)!==-1&&(n|=_e.Extend),t===8205&&(n|=_e.ZWJ),t>=127462&&t<=127487&&(n|=_e.RI),e.search(RG)!==-1&&(n|=_e.Prepend),e.search(FG)!==-1&&(n|=_e.SpacingMark),e.search(_G)!==-1&&(n|=_e.L),e.search(zG)!==-1&&(n|=_e.V),e.search(LG)!==-1&&(n|=_e.T),e.search(PG)!==-1&&(n|=_e.LV),e.search(IG)!==-1&&(n|=_e.LVT),e.search(NG)!==-1&&(n|=_e.ExtPict),n};function ys(e,t){return(e&t)!==0}var HG=[[_e.L,_e.L|_e.V|_e.LV|_e.LVT],[_e.LV|_e.V,_e.V|_e.T],[_e.LVT|_e.T,_e.T],[_e.Any,_e.Extend|_e.ZWJ],[_e.Any,_e.SpacingMark],[_e.Prepend,_e.Any],[_e.ZWJ,_e.ExtPict],[_e.RI,_e.RI]];function qG(e,t){return HG.findIndex(n=>ys(e,n[0])&&ys(t,n[1]))===-1}var jG=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,SB=e=>e.search(jG)!==-1,VG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,$G=e=>{var t=e.match(VG);if(t===null)return!1;var n=t[0].length/2;return n%2===1},TB=e=>An(e)&&ce.isNodeList(e.children)&&!y.isEditor(e),me={isAncestor(e){return An(e)&&ce.isNodeList(e.children)},isElement:TB,isElementList(e){return Array.isArray(e)&&e.every(t=>me.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return TB(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},GG=["text"],WG=["text"];function kB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kB(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var BB=new WeakMap,y={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:a}=t;if(i){var u=y.path(e,i),s=r==="lowest";for(var[c,f]of y.levels(e,{at:u,voids:n,match:a,reverse:s})){if(fe.isText(c))return;if(V.isRange(i)){if(F.isAncestor(f,i.anchor.path)&&F.isAncestor(f,i.focus.path))return[c,f]}else if(!F.equals(u,f))return[c,f]}}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=y.point(e,t,{edge:"end"}),i=y.end(e,[]),a={anchor:r,focus:i},{distance:u=1}=n,s=0,c;for(var f of y.positions(e,gs(gs({},n),{},{at:a}))){if(s>u)break;s!==0&&(c=f),s++}return c},before(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=y.start(e,[]),i=y.point(e,t,{edge:"start"}),a={anchor:r,focus:i},{distance:u=1}=n,s=0,c;for(var f of y.positions(e,gs(gs({},n),{},{at:a,reverse:!0}))){if(s>u)break;s!==0&&(c=f),s++}return c},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges(e,t){return[y.start(e,t),y.end(e,t)]},end(e,t){return y.point(e,t,{edge:"end"})},first(e,t){var n=y.path(e,t,{edge:"start"});return y.node(e,n)},fragment(e,t){var n=y.range(e,t),r=ce.fragment(e,n);return r},hasBlocks(e,t){return t.children.some(n=>y.isBlock(e,n))},hasInlines(e,t){return t.children.some(n=>fe.isText(n)||y.isInline(e,n))},hasTexts(e,t){return t.children.every(n=>fe.isText(n))},insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock(e,t){return me.isElement(t)&&!e.isInline(t)},isEditor(e){var t=BB.get(e);if(t!==void 0)return t;if(!An(e))return!1;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||An(e.marks))&&(e.selection===null||V.isRange(e.selection))&&ce.isNodeList(e.children)&&Pa.isOperationList(e.operations);return BB.set(e,n),n},isEnd(e,t,n){var r=y.end(e,n);return Me.equals(t,r)},isEdge(e,t,n){return y.isStart(e,t,n)||y.isEnd(e,t,n)},isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&fe.isText(r)&&r.text===""&&!e.isVoid(t)},isInline(e,t){return me.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=xB.get(e);return t===void 0?!0:t},isStart(e,t,n){if(t.offset!==0)return!1;var r=y.start(e,n);return Me.equals(t,r)},isVoid(e,t){return me.isElement(t)&&e.isVoid(t)},last(e,t){var n=y.path(e,t,{edge:"end"});return y.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=y.path(e,t,n),i=ce.leaf(e,r);return[i,r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:a}=t;if(a==null&&(a=()=>!0),!!n){var u=[],s=y.path(e,n);for(var[c,f]of ce.levels(e,s))if(a(c,f)&&(u.push([c,f]),!i&&y.isVoid(e,c)))break;r&&u.reverse(),yield*u}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(V.isExpanded(n)){var[r]=y.nodes(e,{match:fe.isText});if(r){var[i]=r,a=Ia(i,GG);return a}else return{}}var{anchor:u}=n,{path:s}=u,[c]=y.leaf(e,s);if(u.offset===0){var f=y.previous(e,{at:s,match:fe.isText}),p=y.above(e,{match:A=>y.isBlock(e,A)});if(f&&p){var[h,g]=f,[,d]=p;F.isAncestor(d,g)&&(c=h)}}var b=Ia(c,WG);return b},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var u=y.after(e,a,{voids:r});if(u){var[,s]=y.last(e,[]),c=[u.path,s];if(F.isPath(a)&&a.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(F.isPath(a)){var[f]=y.parent(e,a);i=h=>f.children.includes(h)}else i=()=>!0;var[p]=y.nodes(e,{at:c,match:i,mode:n,voids:r});return p}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=y.path(e,t,n),i=ce.get(e,r);return[i,r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:a=!1,voids:u=!1}=t,{match:s}=t;if(s||(s=()=>!0),!!n){var c,f;if(KG.isSpan(n))c=n[0],f=n[1];else{var p=y.path(e,n,{edge:"start"}),h=y.path(e,n,{edge:"end"});c=a?h:p,f=a?p:h}var g=ce.nodes(e,{reverse:a,from:c,to:f,pass:C=>{var[M]=C;return u?!1:y.isVoid(e,M)}}),d=[],b;for(var[A,O]of g){var E=b&&F.compare(O,b[1])===0;if(!(r==="highest"&&E)){if(!s(A,O)){if(i&&!E&&fe.isText(A))return;continue}if(r==="lowest"&&E){b=[A,O];continue}var D=r==="lowest"?b:[A,O];D&&(i?d.push(D):yield D),b=[A,O]}}r==="lowest"&&b&&(i?d.push(b):yield b),i&&(yield*d)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=c=>gh.get(c)||[],i=c=>vh.get(c)||new Set,a=c=>{var f=r(c).pop(),p=f.join(",");return i(c).delete(p),f};if(y.isNormalizing(e)){if(n){var u=Array.from(ce.nodes(e),c=>{var[,f]=c;return f}),s=new Set(u.map(c=>c.join(",")));gh.set(e,u),vh.set(e,s)}r(e).length!==0&&y.withoutNormalizing(e,()=>{for(var c of r(e))if(ce.has(e,c)){var f=y.node(e,c),[p,h]=f;me.isElement(p)&&p.children.length===0&&e.normalizeNode(f)}for(var g=r(e).length*42,d=0;r(e).length!==0;){if(d>g)throw new Error(`
|
|
31
30
|
Could not completely normalize the editor after `.concat(g,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
|
|
32
|
-
`));var x=o(e);if(he.has(e,x)){var S=b.node(e,x);e.normalizeNode(S)}m++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=b.path(e,t,n),i=I.parent(r),o=b.node(e,i);return o},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:i}=n;if(I.isPath(t)){if(i==="start"){var[,o]=he.first(e,t);t=o}else if(i==="end"){var[,a]=he.last(e,t);t=a}}return W.isRange(t)&&(i==="start"?t=W.start(t):i==="end"?t=W.end(t):t=I.common(t.anchor.path,t.focus.path)),qe.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath(e,t){return he.has(e,t)},pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,l=b.pathRefs(e);return l.delete(i),i.current=null,a}},o=b.pathRefs(e);return o.add(i),i},pathRefs(e){var t=VO.get(e);return t||(t=new Set,VO.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(I.isPath(t)){var i;if(r==="end"){var[,o]=he.last(e,t);i=o}else{var[,a]=he.first(e,t);i=a}var l=he.get(e,i);if(!ge.isText(l))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:r==="end"?l.text.length:0}}if(W.isRange(t)){var[c,f]=W.edges(t);return r==="start"?c:f}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,l=b.pointRefs(e);return l.delete(i),i.current=null,a}},o=b.pointRefs(e);return o.add(i),i},pointRefs(e){var t=$O.get(e);return t||(t=new Set,$O.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1}=t;if(!n)return;var a=b.range(e,n),[l,c]=W.edges(a),f=i?c:l,p=!1,d="",g=0,m=0,x=0;for(var[S,T]of b.nodes(e,{at:n,reverse:i,voids:o})){if(ye.isElement(S)){if(!o&&e.isVoid(S)){yield b.start(e,T);continue}if(e.isInline(S))continue;if(b.hasInlines(e,S)){var y=I.isAncestor(T,c.path)?c:b.end(e,T),w=I.isAncestor(T,l.path)?l:b.start(e,T);d=b.string(e,{anchor:w,focus:y},{voids:o}),p=!0}}if(ge.isText(S)){var C=I.equals(T,f.path);for(C?(m=i?f.offset:S.text.length-f.offset,x=f.offset):(m=S.text.length,x=i?m:0),(C||p||r==="offset")&&(yield{path:T,offset:x},p=!1);;){if(g===0){if(d==="")break;g=M(d,r,i),d=tE(d,g,i)[1]}if(x=i?x-g:x+g,m=m-g,m<0){g=-m;break}g=0,yield{path:T,offset:x}}}}function M(R,A,P){return A==="character"?eE(R,P):A==="word"?BX(R,P):A==="line"||A==="block"?R.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=b.before(e,o,{voids:r});if(a){var[,l]=b.first(e,[]),c=[a.path,l];if(I.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(I.isPath(o)){var[f]=b.parent(e,o);i=d=>f.children.includes(d)}else i=()=>!0;var[p]=b.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return p}}},range(e,t,n){if(W.isRange(t)&&!n)return t;var r=b.start(e,t),i=b.end(e,n||t);return{anchor:r,focus:i}},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,l=b.rangeRefs(e);return l.delete(i),i.current=null,a}},o=b.rangeRefs(e);return o.add(i),i},rangeRefs(e){var t=GO.get(e);return t||(t=new Set,GO.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){jO.set(e,t)},start(e,t){return b.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,i=b.range(e,t),[o,a]=W.edges(i),l="";for(var[c,f]of b.nodes(e,{at:i,match:ge.isText,voids:r})){var p=c.text;I.equals(f,a.path)&&(p=p.slice(0,a.offset)),I.equals(f,o.path)&&(p=p.slice(o.offset)),l+=p}return l},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[i,o]=W.edges(t);if(i.offset!==0||o.offset!==0||W.isCollapsed(t))return t;var a=b.above(e,{at:o,match:m=>b.isBlock(e,m)}),l=a?a[1]:[],c=b.start(e,i),f={anchor:c,focus:o},p=!0;for(var[d,g]of b.nodes(e,{at:f,match:ge.isText,reverse:!0,voids:r})){if(p){p=!1;continue}if(d.text!==""||I.isBefore(g,l)){o={path:g,offset:d.text.length};break}}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return b.above(e,Ks(Ks({},t),{},{match:n=>b.isVoid(e,n)}))},withoutNormalizing(e,t){var n=b.isNormalizing(e);b.setNormalizing(e,!1);try{t()}finally{b.setNormalizing(e,n)}b.normalize(e)}};var QX={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(I.isPath)}},ZX=["children"],JX=["text"],ZO=new WeakMap,he={ancestor(e,t){var n=he.get(e,t);if(ge.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(En.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of I.ancestors(t,n)){var i=he.ancestor(e,r),o=[i,r];yield o}},child(e,t){if(ge.isText(e))throw new Error("Cannot get the child of a text node: ".concat(En.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(En.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,i=he.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var l=he.child(i,a),c=t.concat(a);yield[l,c],a=r?a-1:a+1}},common(e,t,n){var r=I.common(t,n),i=he.get(e,r);return[i,r]},descendant(e,t){var n=he.get(e,t);if(b.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(En.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of he.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of he.nodes(e,t))ye.isElement(n)&&(yield[n,r])},extractProps(e){if(ye.isAncestor(e)){var t=ia(e,ZX);return t}else{var t=ia(e,JX);return t}},first(e,t){for(var n=t.slice(),r=he.get(e,n);r&&!(ge.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(ge.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(En.stringify(e)));var n=sg({children:e.children},r=>{var[i,o]=W.edges(t),a=he.nodes(r,{reverse:!0,pass:g=>{var[,m]=g;return!W.includes(t,m)}});for(var[,l]of a){if(!W.includes(t,l)){var c=he.parent(r,l),f=l[l.length-1];c.children.splice(f,1)}if(I.equals(l,o.path)){var p=he.leaf(r,l);p.text=p.text.slice(0,o.offset)}if(I.equals(l,i.path)){var d=he.leaf(r,l);d.text=d.text.slice(i.offset)}}b.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(ge.isText(n)||!n.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(En.stringify(e)));n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(ge.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(e){return ge.isText(e)||ye.isElement(e)||b.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=ZO.get(e);if(t!==void 0)return t;var n=e.every(r=>he.isNode(r));return ZO.set(e,n),n},last(e,t){for(var n=t.slice(),r=he.get(e,n);r&&!(ge.isText(r)||r.children.length===0);){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=he.get(e,t);if(!ge.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(En.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of I.levels(t,n)){var i=he.get(e,r);yield[i,r]}},matches(e,t){return ye.isElement(e)&&ye.isElementProps(t)&&ye.matches(e,t)||ge.isText(e)&&ge.isTextProps(t)&&ge.matches(e,t)},*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,l=[],c=e;!(o&&(r?I.isBefore(l,o):I.isAfter(l,o)));){if(a.has(c)||(yield[c,l]),!a.has(c)&&!ge.isText(c)&&c.children.length!==0&&(n==null||n([c,l])===!1)){a.add(c);var f=r?c.children.length-1:0;I.isAncestor(l,i)&&(f=i[l.length]),l=l.concat(f),c=he.get(e,l);continue}if(l.length===0)break;if(!r){var p=I.next(l);if(he.has(e,p)){l=p,c=he.get(e,l);continue}}if(r&&l[l.length-1]!==0){var d=I.previous(l);l=d,c=he.get(e,l);continue}l=I.parent(l),c=he.get(e,l),a.add(c)}},parent(e,t){var n=I.parent(t),r=he.get(e,n);if(ge.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return ge.isText(e)?e.text:e.children.map(he.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of he.nodes(e,t))ge.isText(n)&&(yield[n,r])}};function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ra={isNodeOperation(e){return ra.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Un(e))return!1;switch(e.type){case"insert_node":return I.isPath(e.path)&&he.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&I.isPath(e.path);case"merge_node":return typeof e.position=="number"&&I.isPath(e.path)&&Un(e.properties);case"move_node":return I.isPath(e.path)&&I.isPath(e.newPath);case"remove_node":return I.isPath(e.path)&&he.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&I.isPath(e.path);case"set_node":return I.isPath(e.path)&&Un(e.properties)&&Un(e.newProperties);case"set_selection":return e.properties===null&&W.isRange(e.newProperties)||e.newProperties===null&&W.isRange(e.properties)||Un(e.properties)&&Un(e.newProperties);case"split_node":return I.isPath(e.path)&&typeof e.position=="number"&&Un(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>ra.isOperation(t))},isSelectionOperation(e){return ra.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return ra.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Ht(Ht({},e),{},{type:"remove_node"});case"insert_text":return Ht(Ht({},e),{},{type:"remove_text"});case"merge_node":return Ht(Ht({},e),{},{type:"split_node",path:I.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(I.equals(t,n))return e;if(I.isSibling(n,t))return Ht(Ht({},e),{},{path:t,newPath:n});var r=I.transform(n,e),i=I.transform(I.next(n),e);return Ht(Ht({},e),{},{path:r,newPath:i})}case"remove_node":return Ht(Ht({},e),{},{type:"insert_node"});case"remove_text":return Ht(Ht({},e),{},{type:"insert_text"});case"set_node":{var{properties:o,newProperties:a}=e;return Ht(Ht({},e),{},{properties:a,newProperties:o})}case"set_selection":{var{properties:l,newProperties:c}=e;return l==null?Ht(Ht({},e),{},{properties:c,newProperties:null}):c==null?Ht(Ht({},e),{},{properties:null,newProperties:l}):Ht(Ht({},e),{},{properties:c,newProperties:l})}case"split_node":return Ht(Ht({},e),{},{type:"merge_node",path:I.next(e.path)})}}},I={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=I.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r],o=t[r];if(i!==o)break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return I.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return I.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return I.equals(r,i)&&o<a},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return I.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&I.compare(e,t)===0},isBefore(e,t){return I.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&I.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&I.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&I.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&I.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),i=e[e.length-1],o=t[t.length-1];return i!==o&&I.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!I.isAncestor(t,e)&&!I.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:i="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:o}=t;(I.equals(o,r)||I.endsBefore(o,r)||I.isAncestor(o,r))&&(r[o.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(I.equals(a,r)||I.isAncestor(a,r))return null;I.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:l,position:c}=t;I.equals(l,r)||I.endsBefore(l,r)?r[l.length-1]-=1:I.isAncestor(l,r)&&(r[l.length-1]-=1,r[l.length]+=c);break}case"split_node":{var{path:f,position:p}=t;if(I.equals(f,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else I.endsBefore(f,r)?r[f.length-1]+=1:I.isAncestor(f,r)&&e[f.length]>=p&&(r[f.length-1]+=1,r[f.length]-=p);break}case"move_node":{var{path:d,newPath:g}=t;if(I.equals(d,g))return r;if(I.isAncestor(d,r)||I.equals(d,r)){var m=g.slice();return I.endsBefore(d,g)&&d.length<g.length&&(m[d.length-1]-=1),m.concat(r.slice(d.length))}else I.isSibling(d,g)&&(I.isAncestor(g,r)||I.equals(g,r))?I.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:I.endsBefore(g,r)||I.equals(g,r)||I.isAncestor(g,r)?(I.endsBefore(d,r)&&(r[d.length-1]-=1),r[g.length-1]+=1):I.endsBefore(d,r)&&(I.equals(g,r)&&(r[g.length-1]+=1),r[d.length-1]-=1);break}}return r}},eQ={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=I.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}};function e5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function t5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e5(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qe={compare(e,t){var n=I.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return qe.compare(e,t)===1},isBefore(e,t){return qe.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&I.equals(e.path,t.path)},isPoint(e){return Un(e)&&typeof e.offset=="number"&&I.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return sg(e,r=>{if(r===null)return null;var{affinity:i="forward"}=n,{path:o,offset:a}=r;switch(t.type){case"insert_node":case"move_node":{r.path=I.transform(o,t,n);break}case"insert_text":{I.equals(t.path,o)&&(t.offset<a||t.offset===a&&i==="forward")&&(r.offset+=t.text.length);break}case"merge_node":{I.equals(t.path,o)&&(r.offset+=t.position),r.path=I.transform(o,t,n);break}case"remove_text":{I.equals(t.path,o)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(I.equals(t.path,o)||I.isAncestor(t.path,o))return null;r.path=I.transform(o,t,n);break}case"split_node":{if(I.equals(t.path,o)){if(t.position===a&&i==null)return null;(t.position<a||t.position===a&&i==="forward")&&(r.offset-=t.position,r.path=I.transform(o,t,t5(t5({},n),{},{affinity:"forward"})))}else r.path=I.transform(o,t,n);break}}})}},tQ={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=qe.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},nQ=["anchor","focus"];function n5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n5(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var W={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return W.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=W.edges(e);return t},equals(e,t){return qe.equals(e.anchor,t.anchor)&&qe.equals(e.focus,t.focus)},includes(e,t){if(W.isRange(t)){if(W.includes(e,t.anchor)||W.includes(e,t.focus))return!0;var[n,r]=W.edges(e),[i,o]=W.edges(t);return qe.isBefore(n,i)&&qe.isAfter(r,o)}var[a,l]=W.edges(e),c=!1,f=!1;return qe.isPoint(t)?(c=qe.compare(t,a)>=0,f=qe.compare(t,l)<=0):(c=I.compare(t,a.path)>=0,f=I.compare(t,l.path)<=0),c&&f},intersection(e,t){var n=ia(e,nQ),[r,i]=W.edges(e),[o,a]=W.edges(t),l=qe.isBefore(r,o)?o:r,c=qe.isBefore(i,a)?i:a;return qe.isBefore(c,l)?null:rQ({anchor:l,focus:c},n)},isBackward(e){var{anchor:t,focus:n}=e;return qe.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return qe.equals(t,n)},isExpanded(e){return!W.isCollapsed(e)},isForward(e){return!W.isBackward(e)},isRange(e){return Un(e)&&qe.isPoint(e.anchor)&&qe.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=W.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return sg(e,r=>{if(r===null)return null;var{affinity:i="inward"}=n,o,a;if(i==="inward"){var l=W.isCollapsed(r);W.isForward(r)?(o="forward",a=l?o:"backward"):(o="backward",a=l?o:"forward")}else i==="outward"?W.isForward(r)?(o="backward",a="forward"):(o="forward",a="backward"):(o=i,a=i);var c=qe.transform(r.anchor,t,{affinity:o}),f=qe.transform(r.focus,t,{affinity:a});if(!c||!f)return null;r.anchor=c,r.focus=f})}},iQ={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=W.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},r5=void 0,En={setScrubber(e){r5=e},stringify(e){return JSON.stringify(e,r5)}},p5=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(Un(r)&&Un(i)){if(!p5(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==i[o])return!1}else if(r!==i)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},oQ=["text"],aQ=["anchor","focus"];function i5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function na(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i5(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ge={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(o){var a=ia(o,oQ);return a}return p5(r?i(e):e,r?i(t):t)},isText(e){return Un(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>ge.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[na({},e)];for(var r of t){var i=ia(r,aQ),[o,a]=W.edges(r),l=[],c=0,f=o.offset,p=a.offset;for(var d of n){var{length:g}=d.text,m=c;if(c+=g,f<=m&&c<=p){Object.assign(d,i),l.push(d);continue}if(f!==p&&(f===c||p===m)||f>c||p<m||p===m&&m!==0){l.push(d);continue}var x=d,S=void 0,T=void 0;if(p<c){var y=p-m;T=na(na({},x),{},{text:x.text.slice(y)}),x=na(na({},x),{},{text:x.text.slice(0,y)})}if(f>m){var w=f-m;S=na(na({},x),{},{text:x.text.slice(0,w)}),x=na(na({},x),{},{text:x.text.slice(w)})}Object.assign(x,i),S&&l.push(S),l.push(x),T&&l.push(T)}n=l}return n}};function o5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o5(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var uQ=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:i}=n,o=he.parent(e,r),a=r[r.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[l,c]of W.points(t))t[c]=qe.transform(l,n);break}case"insert_text":{var{path:f,offset:p,text:d}=n;if(d.length===0)break;var g=he.leaf(e,f),m=g.text.slice(0,p),x=g.text.slice(p);if(g.text=m+d+x,t)for(var[S,T]of W.points(t))t[T]=qe.transform(S,n);break}case"merge_node":{var{path:y}=n,w=he.get(e,y),C=I.previous(y),M=he.get(e,C),R=he.parent(e,y),A=y[y.length-1];if(ge.isText(w)&&ge.isText(M))M.text+=w.text;else if(!ge.isText(w)&&!ge.isText(M))M.children.push(...w.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(En.stringify(w)," ").concat(En.stringify(M)));if(R.children.splice(A,1),t)for(var[P,V]of W.points(t))t[V]=qe.transform(P,n);break}case"move_node":{var{path:J,newPath:_}=n;if(I.isAncestor(J,_))throw new Error("Cannot move a path [".concat(J,"] to new path [").concat(_,"] because the destination is inside itself."));var de=he.get(e,J),Z=he.parent(e,J),H=J[J.length-1];Z.children.splice(H,1);var K=I.transform(J,n),G=he.get(e,I.parent(K)),me=K[K.length-1];if(G.children.splice(me,0,de),t)for(var[U,te]of W.points(t))t[te]=qe.transform(U,n);break}case"remove_node":{var{path:Q}=n,E=Q[Q.length-1],ve=he.parent(e,Q);if(ve.children.splice(E,1),t)for(var[Se,D]of W.points(t)){var Ee=qe.transform(Se,n);if(t!=null&&Ee!=null)t[D]=Ee;else{var ze=void 0,Pe=void 0;for(var[_e,Te]of he.texts(e))if(I.compare(Te,Q)===-1)ze=[_e,Te];else{Pe=[_e,Te];break}var Ze=!1;ze&&Pe&&(I.equals(Pe[1],Q)?Ze=!I.hasPrevious(Pe[1]):Ze=I.common(ze[1],Q).length<I.common(Pe[1],Q).length),ze&&!Ze?(Se.path=ze[1],Se.offset=ze[0].text.length):Pe?(Se.path=Pe[1],Se.offset=0):t=null}}break}case"remove_text":{var{path:He,offset:je,text:Ne}=n;if(Ne.length===0)break;var rt=he.leaf(e,He),br=rt.text.slice(0,je),Ot=rt.text.slice(je+Ne.length);if(rt.text=br+Ot,t)for(var[er,Lr]of W.points(t))t[Lr]=qe.transform(er,n);break}case"set_node":{var{path:Rn,properties:ln,newProperties:tr}=n;if(Rn.length===0)throw new Error("Cannot set properties on the root node!");var Pr=he.get(e,Rn);for(var li in tr){if(li==="children"||li==="text")throw new Error('Cannot set the "'.concat(li,'" property of nodes!'));var si=tr[li];si==null?delete Pr[li]:Pr[li]=si}for(var ya in ln)tr.hasOwnProperty(ya)||delete Pr[ya];break}case"set_selection":{var{newProperties:Fn}=n;if(Fn==null)t=Fn;else{if(t==null){if(!W.isRange(Fn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(En.stringify(Fn)," when there is no current selection."));t=Mp({},Fn)}for(var ee in Fn){var z=Fn[ee];if(z==null){if(ee==="anchor"||ee==="focus")throw new Error('Cannot remove the "'.concat(ee,'" selection property'));delete t[ee]}else t[ee]=z}}break}case"split_node":{var{path:X,position:pe,properties:ke}=n;if(X.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(X,"] because the root node cannot be split."));var Re=he.get(e,X),_t=he.parent(e,X),zt=X[X.length-1],jt;if(ge.isText(Re)){var _n=Re.text.slice(0,pe),Vt=Re.text.slice(pe);Re.text=_n,jt=Mp(Mp({},ke),{},{text:Vt})}else{var vt=Re.children.slice(0,pe),In=Re.children.slice(pe);Re.children=vt,jt=Mp(Mp({},ke),{},{children:In})}if(_t.children.splice(zt+1,0,jt),t)for(var[Er,jm]of W.points(t))t[jm]=qe.transform(Er,n);break}}return t},lQ={transform(e,t){e.children=Zb(e.children);var n=e.selection&&Zb(e.selection);try{n=uQ(e,n,t)}finally{e.children=Jb(e.children),n?e.selection=tu(n)?Jb(n):n:e.selection=null}}},sQ=["text"],cQ=["children"];function a5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function u5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a5(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var fQ={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:l,select:c}=n;if(he.isNode(t)&&(t=[t]),t.length!==0){var[f]=t;if(a||(e.selection?a=e.selection:e.children.length>0?a=b.end(e,[]):a=[0],c=!0),c==null&&(c=!1),W.isRange(a))if(r||(a=b.unhangRange(e,a)),W.isCollapsed(a))a=a.anchor;else{var[,p]=W.edges(a),d=b.pointRef(e,p);L.delete(e,{at:a}),a=d.unref()}if(qe.isPoint(a)){l==null&&(ge.isText(f)?l=A=>ge.isText(A):e.isInline(f)?l=A=>ge.isText(A)||b.isInline(e,A):l=A=>b.isBlock(e,A));var[g]=b.nodes(e,{at:a.path,match:l,mode:o,voids:i});if(g){var[,m]=g,x=b.pathRef(e,m),S=b.isEnd(e,a,m);L.splitNodes(e,{at:a,match:l,mode:o,voids:i});var T=x.unref();a=S?I.next(T):T}else return}var y=I.parent(a),w=a[a.length-1];if(!(!i&&b.void(e,{at:y}))){for(var C of t){var M=y.concat(w);w++,e.apply({type:"insert_node",path:M,node:C}),a=I.next(a)}if(a=I.previous(a),c){var R=b.end(e,a);R&&L.select(e,R)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(o==null&&(o=I.isPath(n)?Ys(e,n):C=>b.isBlock(e,C)),!!n){var a=b.nodes(e,{at:n,match:o,mode:r,voids:i}),l=Array.from(a,C=>{var[,M]=C;return b.pathRef(e,M)});for(var c of l){var f=c.unref();if(f.length<2)throw new Error("Cannot lift node at a path [".concat(f,"] because it has a depth of less than `2`."));var p=b.node(e,I.parent(f)),[d,g]=p,m=f[f.length-1],{length:x}=d.children;if(x===1){var S=I.next(g);L.moveNodes(e,{at:f,to:S,voids:i}),L.removeNodes(e,{at:g,voids:i})}else if(m===0)L.moveNodes(e,{at:f,to:g,voids:i});else if(m===x-1){var T=I.next(g);L.moveNodes(e,{at:f,to:T,voids:i})}else{var y=I.next(f),w=I.next(g);L.splitNodes(e,{at:y,voids:i}),L.moveNodes(e,{at:f,to:w,voids:i})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(r){if(n==null)if(I.isPath(r)){var[l]=b.parent(e,r);n=J=>l.children.includes(J)}else n=J=>b.isBlock(e,J);if(!i&&W.isRange(r)&&(r=b.unhangRange(e,r)),W.isRange(r))if(W.isCollapsed(r))r=r.anchor;else{var[,c]=W.edges(r),f=b.pointRef(e,c);L.delete(e,{at:r}),r=f.unref(),t.at==null&&L.select(e,r)}var[p]=b.nodes(e,{at:r,match:n,voids:o,mode:a}),d=b.previous(e,{at:r,match:n,voids:o,mode:a});if(!(!p||!d)){var[g,m]=p,[x,S]=d;if(!(m.length===0||S.length===0)){var T=I.next(S),y=I.common(m,S),w=I.isSibling(m,S),C=Array.from(b.levels(e,{at:m}),J=>{var[_]=J;return _}).slice(y.length).slice(0,-1),M=b.above(e,{at:m,mode:"highest",match:J=>C.includes(J)&&m5(e,J)}),R=M&&b.pathRef(e,M[1]),A,P;if(ge.isText(g)&&ge.isText(x)){var V=ia(g,sQ);P=x.text.length,A=V}else if(ye.isElement(g)&&ye.isElement(x)){var V=ia(g,cQ);P=x.children.length,A=V}else throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(En.stringify(g)," ").concat(En.stringify(x)));w||L.moveNodes(e,{at:m,to:T,voids:o}),R&&L.removeNodes(e,{at:R.current,voids:o}),ye.isElement(x)&&b.isEmpty(e,x)||ge.isText(x)&&x.text===""&&S[S.length-1]!==0?L.removeNodes(e,{at:S,voids:o}):e.apply({type:"merge_node",path:T,position:P,properties:A}),R&&R.unref()}}}})},moveNodes(e,t){b.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(r){a==null&&(a=I.isPath(r)?Ys(e,r):m=>b.isBlock(e,m));var l=b.pathRef(e,n),c=b.nodes(e,{at:r,match:a,mode:i,voids:o}),f=Array.from(c,m=>{var[,x]=m;return b.pathRef(e,x)});for(var p of f){var d=p.unref(),g=l.current;d.length!==0&&e.apply({type:"move_node",path:d,newPath:g}),l.current&&I.isSibling(g,d)&&I.isAfter(g,d)&&(l.current=I.next(l.current))}l.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){a==null&&(a=I.isPath(o)?Ys(e,o):g=>b.isBlock(e,g)),!n&&W.isRange(o)&&(o=b.unhangRange(e,o));var l=b.nodes(e,{at:o,match:a,mode:i,voids:r}),c=Array.from(l,g=>{var[,m]=g;return b.pathRef(e,m)});for(var f of c){var p=f.unref();if(p){var[d]=b.node(e,p);e.apply({type:"remove_node",path:p,node:d})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection,compare:o,merge:a}=n,{hanging:l=!1,mode:c="lowest",split:f=!1,voids:p=!1}=n;if(i){if(r==null&&(r=I.isPath(i)?Ys(e,i):P=>b.isBlock(e,P)),!l&&W.isRange(i)&&(i=b.unhangRange(e,i)),f&&W.isRange(i)){if(W.isCollapsed(i)&&b.leaf(e,i.anchor)[0].text.length>0)return;var d=b.rangeRef(e,i,{affinity:"inward"}),[g,m]=W.edges(i),x=c==="lowest"?"lowest":"highest",S=b.isEnd(e,m,m.path);L.splitNodes(e,{at:m,match:r,mode:x,voids:p,always:!S});var T=b.isStart(e,g,g.path);L.splitNodes(e,{at:g,match:r,mode:x,voids:p,always:!T}),i=d.unref(),n.at==null&&L.select(e,i)}o||(o=(P,V)=>P!==V);for(var[y,w]of b.nodes(e,{at:i,match:r,mode:c,voids:p})){var C={},M={};if(w.length!==0){var R=!1;for(var A in t)A==="children"||A==="text"||o(t[A],y[A])&&(R=!0,y.hasOwnProperty(A)&&(C[A]=y[A]),a?t[A]!=null&&(M[A]=a(y[A],t[A])):t[A]!=null&&(M[A]=t[A]));R&&e.apply({type:"set_node",path:w,properties:C,newProperties:M})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:l=!1}=t;if(i==null&&(i=te=>b.isBlock(e,te)),W.isRange(o)&&(o=pQ(e,o)),I.isPath(o)){var c=o,f=b.point(e,c),[p]=b.parent(e,c);i=te=>te===p,a=f.path.length-c.length+1,o=f,l=!0}if(o){var d=b.pointRef(e,o,{affinity:"backward"}),g;try{var[m]=b.nodes(e,{at:o,match:i,mode:n,voids:r});if(!m)return;var x=b.void(e,{at:o,mode:"highest"}),S=0;if(!r&&x){var[T,y]=x;if(ye.isElement(T)&&e.isInline(T)){var w=b.after(e,y);if(!w){var C={text:""},M=I.next(y);L.insertNodes(e,C,{at:M,voids:r}),w=b.point(e,M)}o=w,l=!0}var R=o.path.length-y.length;a=R+1,l=!0}g=b.pointRef(e,o);var A=o.path.length-a,[,P]=m,V=o.path.slice(0,A),J=a===0?o.offset:o.path[A]+S;for(var[_,de]of b.levels(e,{at:V,reverse:!0,voids:r})){var Z=!1;if(de.length<P.length||de.length===0||!r&&b.isVoid(e,_))break;var H=d.current,K=b.isEnd(e,H,de);if(l||!d||!b.isEdge(e,H,de)){Z=!0;var G=he.extractProps(_);e.apply({type:"split_node",path:de,position:J,properties:G})}J=de[de.length-1]+(Z||K?1:0)}if(t.at==null){var me=g.current||b.end(e,[]);L.select(e,me)}}finally{var U;d.unref(),(U=g)===null||U===void 0||U.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;L.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){a==null&&(a=I.isPath(o)?Ys(e,o):g=>b.isBlock(e,g)),I.isPath(o)&&(o=b.range(e,o));var l=W.isRange(o)?b.rangeRef(e,o):null,c=b.nodes(e,{at:o,match:a,mode:n,voids:i}),f=Array.from(c,g=>{var[,m]=g;return b.pathRef(e,m)}).reverse(),p=function(m){var x=m.unref(),[S]=b.node(e,x),T=b.range(e,x);r&&l&&(T=W.intersection(l.current,T)),L.liftNodes(e,{at:T,match:y=>ye.isAncestor(S)&&S.children.includes(y),voids:i})};for(var d of f)p(d);l&&l.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:l=e.selection}=n;if(l){if(a==null&&(I.isPath(l)?a=Ys(e,l):e.isInline(t)?a=T=>b.isInline(e,T)||ge.isText(T):a=T=>b.isBlock(e,T)),i&&W.isRange(l)){var[c,f]=W.edges(l),p=b.rangeRef(e,l,{affinity:"inward"});L.splitNodes(e,{at:f,match:a,voids:o}),L.splitNodes(e,{at:c,match:a,voids:o}),l=p.unref(),n.at==null&&L.select(e,l)}var d=Array.from(b.nodes(e,{at:l,match:e.isInline(t)?T=>b.isBlock(e,T):T=>b.isEditor(T),mode:"lowest",voids:o}));for(var[,g]of d){var m=W.isRange(l)?W.intersection(l,b.range(e,g)):l;if(m){var x=Array.from(b.nodes(e,{at:m,match:a,mode:r,voids:o}));if(x.length>0){var S=function(){var[T]=x,y=x[x.length-1],[,w]=T,[,C]=y;if(w.length===0&&C.length===0)return"continue";var M=I.equals(w,C)?I.parent(w):I.common(w,C),R=b.range(e,w,C),A=b.node(e,M),[P]=A,V=M.length+1,J=I.next(C.slice(0,V)),_=u5(u5({},t),{},{children:[]});L.insertNodes(e,_,{at:J,voids:o}),L.moveNodes(e,{at:R,match:de=>ye.isAncestor(P)&&P.children.includes(de),to:J.concat(0),voids:o})}();if(S==="continue")continue}}}}})}},m5=(e,t)=>{if(ye.isElement(t)){var n=t;return b.isVoid(e,t)?!0:n.children.length===1?m5(e,n.children[0]):!1}else return!b.isEditor(t)},pQ=(e,t)=>{if(W.isCollapsed(t))return t.anchor;var[,n]=W.edges(t),r=b.pointRef(e,n);return L.delete(e,{at:t}),r.unref()},Ys=(e,t)=>{var[n]=b.node(e,t);return r=>r===n};function l5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function s5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l5(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mQ={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")L.select(e,r.anchor);else if(n==="focus")L.select(e,r.focus);else if(n==="start"){var[i]=W.edges(r);L.select(e,i)}else if(n==="end"){var[,o]=W.edges(r);L.select(e,o)}}else return},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(n){a==="start"&&(a=W.isBackward(n)?"focus":"anchor"),a==="end"&&(a=W.isBackward(n)?"anchor":"focus");var{anchor:l,focus:c}=n,f={distance:r,unit:i},p={};if(a==null||a==="anchor"){var d=o?b.before(e,l,f):b.after(e,l,f);d&&(p.anchor=d)}if(a==null||a==="focus"){var g=o?b.before(e,c,f):b.after(e,c,f);g&&(p.focus=g)}L.setSelection(e,p)}},select(e,t){var{selection:n}=e;if(t=b.range(e,t),n){L.setSelection(e,t);return}if(!W.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(En.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(r){i==="start"&&(i=W.isBackward(r)?"focus":"anchor"),i==="end"&&(i=W.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,l=i==="anchor"?o:a;L.setSelection(e,{[i==="anchor"?"anchor":"focus"]:s5(s5({},l),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var o in t)(o==="anchor"&&t.anchor!=null&&!qe.equals(t.anchor,n.anchor)||o==="focus"&&t.focus!=null&&!qe.equals(t.focus,n.focus)||o!=="anchor"&&o!=="focus"&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}}},hQ={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};b.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:l=!1}=t;if(a){var c=!1;if(W.isRange(a)&&W.isCollapsed(a)&&(c=!0,a=a.anchor),qe.isPoint(a)){var f=b.void(e,{at:a,mode:"highest"});if(!o&&f){var[,p]=f;a=p}else{var d={unit:r,distance:i},g=n?b.before(e,a,d)||b.start(e,[]):b.after(e,a,d)||b.end(e,[]);a={anchor:a,focus:g},l=!0}}if(I.isPath(a)){L.removeNodes(e,{at:a,voids:o});return}if(!W.isCollapsed(a)){if(!l){var[,m]=W.edges(a),x=b.end(e,[]);qe.equals(m,x)||(a=b.unhangRange(e,a,{voids:o}))}var[S,T]=W.edges(a),y=b.above(e,{match:je=>b.isBlock(e,je),at:S,voids:o}),w=b.above(e,{match:je=>b.isBlock(e,je),at:T,voids:o}),C=y&&w&&!I.equals(y[1],w[1]),M=I.equals(S.path,T.path),R=o?null:b.void(e,{at:S,mode:"highest"}),A=o?null:b.void(e,{at:T,mode:"highest"});if(R){var P=b.before(e,S);P&&y&&I.isAncestor(y[1],P.path)&&(S=P)}if(A){var V=b.after(e,T);V&&w&&I.isAncestor(w[1],V.path)&&(T=V)}var J=[],_;for(var de of b.nodes(e,{at:a,voids:o})){var[Z,H]=de;_&&I.compare(H,_)===0||(!o&&b.isVoid(e,Z)||!I.isCommon(H,S.path)&&!I.isCommon(H,T.path))&&(J.push(de),_=H)}var K=Array.from(J,je=>{var[,Ne]=je;return b.pathRef(e,Ne)}),G=b.pointRef(e,S),me=b.pointRef(e,T),U="";if(!M&&!R){var te=G.current,[Q]=b.leaf(e,te),{path:E}=te,{offset:ve}=S,Se=Q.text.slice(ve);Se.length>0&&(e.apply({type:"remove_text",path:E,offset:ve,text:Se}),U=Se)}if(K.reverse().map(je=>je.unref()).filter(je=>je!==null).forEach(je=>L.removeNodes(e,{at:je,voids:o})),!A){var D=me.current,[Ee]=b.leaf(e,D),{path:ze}=D,Pe=M?S.offset:0,_e=Ee.text.slice(Pe,T.offset);_e.length>0&&(e.apply({type:"remove_text",path:ze,offset:Pe,text:_e}),U=_e)}!M&&C&&me.current&&G.current&&L.mergeNodes(e,{at:me.current,hanging:!0,voids:o}),c&&n&&r==="character"&&U.length>1&&U.match(/[\u0E00-\u0E7F]+/)&&L.insertText(e,U.slice(0,U.length-i));var Te=G.unref(),Ze=me.unref(),He=n?Te||Ze:Ze||Te;t.at==null&&He&&L.select(e,He)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=e.selection}=n;if(t.length){if(o)if(W.isRange(o))if(r||(o=b.unhangRange(e,o)),W.isCollapsed(o))o=o.anchor;else{var[,a]=W.edges(o);if(!i&&b.void(e,{at:a}))return;var l=b.pointRef(e,a);L.delete(e,{at:o}),o=l.unref()}else I.isPath(o)&&(o=b.start(e,o));else return;if(!(!i&&b.void(e,{at:o}))){var c=b.above(e,{at:o,match:D=>b.isInline(e,D),mode:"highest",voids:i});if(c){var[,f]=c;if(b.isEnd(e,o,f)){var p=b.after(e,f);o=p}else if(b.isStart(e,o,f)){var d=b.before(e,f);o=d}}var g=b.above(e,{match:D=>b.isBlock(e,D),at:o,voids:i}),[,m]=g,x=b.isStart(e,o,m),S=b.isEnd(e,o,m),T=x&&S,y=!x||x&&S,w=!S,[,C]=he.first({children:t},[]),[,M]=he.last({children:t},[]),R=[],A=D=>{var[Ee,ze]=D,Pe=ze.length===0;return Pe?!1:T?!0:!(y&&I.isAncestor(ze,C)&&ye.isElement(Ee)&&!e.isVoid(Ee)&&!e.isInline(Ee)||w&&I.isAncestor(ze,M)&&ye.isElement(Ee)&&!e.isVoid(Ee)&&!e.isInline(Ee))};for(var P of he.nodes({children:t},{pass:A}))A(P)&&R.push(P);var V=[],J=[],_=[],de=!0,Z=!1;for(var[H]of R)ye.isElement(H)&&!e.isInline(H)?(de=!1,Z=!0,J.push(H)):de?V.push(H):_.push(H);var[K]=b.nodes(e,{at:o,match:D=>ge.isText(D)||b.isInline(e,D),mode:"highest",voids:i}),[,G]=K,me=b.isStart(e,o,G),U=b.isEnd(e,o,G),te=b.pathRef(e,S&&!_.length?I.next(m):m),Q=b.pathRef(e,U?I.next(G):G);L.splitNodes(e,{at:o,match:D=>Z?b.isBlock(e,D):ge.isText(D)||b.isInline(e,D),mode:Z?"lowest":"highest",always:Z&&(!x||V.length>0)&&(!S||_.length>0),voids:i});var E=b.pathRef(e,!me||me&&U?I.next(G):G);if(L.insertNodes(e,V,{at:E.current,match:D=>ge.isText(D)||b.isInline(e,D),mode:"highest",voids:i}),T&&!V.length&&J.length&&!_.length&&L.delete(e,{at:m,voids:i}),L.insertNodes(e,J,{at:te.current,match:D=>b.isBlock(e,D),mode:"lowest",voids:i}),L.insertNodes(e,_,{at:Q.current,match:D=>ge.isText(D)||b.isInline(e,D),mode:"highest",voids:i}),!n.at){var ve;if(_.length>0&&Q.current?ve=I.previous(Q.current):J.length>0&&te.current?ve=I.previous(te.current):E.current&&(ve=I.previous(E.current)),ve){var Se=b.end(e,ve);L.select(e,Se)}}E.unref(),te.unref(),Q.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};b.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(I.isPath(i)&&(i=b.range(e,i)),W.isRange(i))if(W.isCollapsed(i))i=i.anchor;else{var o=W.end(i);if(!r&&b.void(e,{at:o}))return;var a=W.start(i),l=b.pointRef(e,a),c=b.pointRef(e,o);L.delete(e,{at:i,voids:r});var f=l.unref(),p=c.unref();i=f||p,L.setSelection(e,{anchor:i,focus:i})}if(!(!r&&b.void(e,{at:i}))){var{path:d,offset:g}=i;t.length>0&&e.apply({type:"insert_text",path:d,offset:g,text:t})}}})}};function c5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c5(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var L=fg(fg(fg(fg({},lQ),fQ),mQ),hQ);var EE=q(v5()),yM=q(oE()),xM=q(X5()),oe=q(Ue());function Q5(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Z5(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function aE(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Z5(n.overflowY,t)||Z5(n.overflowX,t)||function(r){var i=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function dg(e,t,n,r,i,o,a,l){return o<e&&a>t||o>e&&a<t?0:o<=e&&l<=n||a>=t&&l>=n?o-e-r:a>t&&l<n||o<e&&l>n?a-t+i:0}var uE=function(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,l=t.skipOverflowHiddenElements,c=typeof a=="function"?a:function(br){return br!==a};if(!Q5(e))throw new TypeError("Invalid target");for(var f,p,d=document.scrollingElement||document.documentElement,g=[],m=e;Q5(m)&&c(m);){if((m=(p=(f=m).parentElement)==null?f.getRootNode().host||null:p)===d){g.push(m);break}m!=null&&m===document.body&&aE(m)&&!aE(document.documentElement)||m!=null&&aE(m,l)&&g.push(m)}for(var x=n.visualViewport?n.visualViewport.width:innerWidth,S=n.visualViewport?n.visualViewport.height:innerHeight,T=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,w=e.getBoundingClientRect(),C=w.height,M=w.width,R=w.top,A=w.right,P=w.bottom,V=w.left,J=i==="start"||i==="nearest"?R:i==="end"?P:R+C/2,_=o==="center"?V+M/2:o==="end"?A:V,de=[],Z=0;Z<g.length;Z++){var H=g[Z],K=H.getBoundingClientRect(),G=K.height,me=K.width,U=K.top,te=K.right,Q=K.bottom,E=K.left;if(r==="if-needed"&&R>=0&&V>=0&&P<=S&&A<=x&&R>=U&&P<=Q&&V>=E&&A<=te)return de;var ve=getComputedStyle(H),Se=parseInt(ve.borderLeftWidth,10),D=parseInt(ve.borderTopWidth,10),Ee=parseInt(ve.borderRightWidth,10),ze=parseInt(ve.borderBottomWidth,10),Pe=0,_e=0,Te="offsetWidth"in H?H.offsetWidth-H.clientWidth-Se-Ee:0,Ze="offsetHeight"in H?H.offsetHeight-H.clientHeight-D-ze:0,He="offsetWidth"in H?H.offsetWidth===0?0:me/H.offsetWidth:0,je="offsetHeight"in H?H.offsetHeight===0?0:G/H.offsetHeight:0;if(d===H)Pe=i==="start"?J:i==="end"?J-S:i==="nearest"?dg(y,y+S,S,D,ze,y+J,y+J+C,C):J-S/2,_e=o==="start"?_:o==="center"?_-x/2:o==="end"?_-x:dg(T,T+x,x,Se,Ee,T+_,T+_+M,M),Pe=Math.max(0,Pe+y),_e=Math.max(0,_e+T);else{Pe=i==="start"?J-U-D:i==="end"?J-Q+ze+Ze:i==="nearest"?dg(U,Q,G,D,ze+Ze,J,J+C,C):J-(U+G/2)+Ze/2,_e=o==="start"?_-E-Se:o==="center"?_-(E+me/2)+Te/2:o==="end"?_-te+Ee+Te:dg(E,te,me,Se,Ee+Te,_,_+M,M);var Ne=H.scrollLeft,rt=H.scrollTop;J+=rt-(Pe=Math.max(0,Math.min(rt+Pe/je,H.scrollHeight-G/je+Ze))),_+=Ne-(_e=Math.max(0,Math.min(Ne+_e/He,H.scrollWidth-me/He+Te)))}de.push({el:H,top:Pe,left:_e})}return de};function J5(e){return e===Object(e)&&Object.keys(e).length!==0}function fZ(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var i=r.el,o=r.top,a=r.left;i.scroll&&n?i.scroll({top:o,left:a,behavior:t}):(i.scrollTop=o,i.scrollLeft=a)})}function pZ(e){return e===!1?{block:"end",inline:"nearest"}:J5(e)?e:{block:"start",inline:"nearest"}}function mZ(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(J5(t)&&typeof t.behavior=="function")return t.behavior(n?uE(e,t):[]);if(n){var r=pZ(t);return fZ(uE(e,r),r.behavior)}}var eM=mZ;var bg=q(oM()),bM=q(Nh());function wg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Zs(e,t){if(e==null)return{};var n=yZ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var xZ=0,pE=class{constructor(){this.id="".concat(xZ++)}},DE=new WeakMap,wE=new WeakMap,EM=new WeakMap,mE=new WeakMap,hE=new WeakMap,Cg=new WeakMap,Js=new WeakMap,dE=new WeakMap,Sg=new WeakMap,CE=new WeakMap,pl=new WeakMap,ml=new WeakMap,_p=new WeakMap,gE=new WeakMap,SE=new WeakMap,Xi=new WeakMap,oa=new WeakMap,Or=new WeakMap,ru=new WeakMap,iu=new WeakMap,DM=new WeakMap,ec=Symbol("placeholder"),wM=Symbol("mark-placeholder"),bZ=globalThis.Text,kE=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,EZ=e=>dl(e)&&e.nodeType===8,Mi=e=>dl(e)&&e.nodeType===1,dl=e=>{var t=kE(e);return!!t&&e instanceof t.Node},vE=e=>{var t=e&&e.anchorNode&&kE(e.anchorNode);return!!t&&e instanceof t.Selection},CM=e=>dl(e)&&e.nodeType===3,DZ=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,wZ=e=>{var[t,n]=e;if(Mi(t)&&t.childNodes.length){var r=n===t.childNodes.length,i=r?n-1:n;for([t,i]=SM(t,i,r?"backward":"forward"),r=i<n;Mi(t)&&t.childNodes.length;){var o=r?t.childNodes.length-1:0;t=SZ(t,o,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},CZ=()=>!!(window.document.activeElement&&window.document.activeElement.shadowRoot),SM=(e,t,n)=>{for(var{childNodes:r}=e,i=r[t],o=t,a=!1,l=!1;(EZ(i)||Mi(i)&&i.childNodes.length===0||Mi(i)&&i.getAttribute("contenteditable")==="false")&&!(a&&l);){if(o>=r.length){a=!0,o=t-1,n="backward";continue}if(o<0){l=!0,o=t+1,n="forward";continue}i=r[o],t=o,o+=n==="forward"?1:-1}return[i,t]},SZ=(e,t,n)=>{var[r]=SM(e,t,n);return r},kM=e=>{var t="";if(CM(e)&&e.nodeValue)return e.nodeValue;if(Mi(e)){for(var n of Array.from(e.childNodes))t+=kM(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
|
|
33
|
-
`)}return t},
|
|
31
|
+
`));var b=a(e);if(ce.has(e,b)){var A=y.node(e,b);e.normalizeNode(A)}d++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=y.path(e,t,n),i=F.parent(r),a=y.node(e,i);return a},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:i}=n;if(F.isPath(t)){if(i==="start"){var[,a]=ce.first(e,t);t=a}else if(i==="end"){var[,u]=ce.last(e,t);t=u}}return V.isRange(t)&&(i==="start"?t=V.start(t):i==="end"?t=V.end(t):t=F.common(t.anchor.path,t.focus.path)),Me.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath(e,t){return ce.has(e,t)},pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:u}=i,s=y.pathRefs(e);return s.delete(i),i.current=null,u}},a=y.pathRefs(e);return a.add(i),i},pathRefs(e){var t=DB.get(e);return t||(t=new Set,DB.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(F.isPath(t)){var i;if(r==="end"){var[,a]=ce.last(e,t);i=a}else{var[,u]=ce.first(e,t);i=u}var s=ce.get(e,i);if(!fe.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:r==="end"?s.text.length:0}}if(V.isRange(t)){var[c,f]=V.edges(t);return r==="start"?c:f}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:u}=i,s=y.pointRefs(e);return s.delete(i),i.current=null,u}},a=y.pointRefs(e);return a.add(i),i},pointRefs(e){var t=CB.get(e);return t||(t=new Set,CB.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:a=!1}=t;if(!n)return;var u=y.range(e,n),[s,c]=V.edges(u),f=i?c:s,p=!1,h="",g=0,d=0,b=0;for(var[A,O]of y.nodes(e,{at:n,reverse:i,voids:a})){if(me.isElement(A)){if(!a&&e.isVoid(A)){yield y.start(e,O);continue}if(e.isInline(A))continue;if(y.hasInlines(e,A)){var E=F.isAncestor(O,c.path)?c:y.end(e,O),D=F.isAncestor(O,s.path)?s:y.start(e,O);h=y.string(e,{anchor:D,focus:E},{voids:a}),p=!0}}if(fe.isText(A)){var C=F.equals(O,f.path);for(C?(d=i?f.offset:A.text.length-f.offset,b=f.offset):(d=A.text.length,b=i?d:0),(C||p||r==="offset")&&(yield{path:O,offset:b},p=!1);;){if(g===0){if(h==="")break;g=M(h,r,i),h=BE(h,g,i)[1]}if(b=i?b-g:b+g,d=d-g,d<0){g=-d;break}g=0,yield{path:O,offset:b}}}}function M(L,B,H){return B==="character"?kE(L,H):B==="word"?SG(L,H):B==="line"||B==="block"?L.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var u=y.before(e,a,{voids:r});if(u){var[,s]=y.first(e,[]),c=[u.path,s];if(F.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(F.isPath(a)){var[f]=y.parent(e,a);i=h=>f.children.includes(h)}else i=()=>!0;var[p]=y.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return p}}},range(e,t,n){if(V.isRange(t)&&!n)return t;var r=y.start(e,t),i=y.end(e,n||t);return{anchor:r,focus:i}},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:u}=i,s=y.rangeRefs(e);return s.delete(i),i.current=null,u}},a=y.rangeRefs(e);return a.add(i),i},rangeRefs(e){var t=wB.get(e);return t||(t=new Set,wB.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){xB.set(e,t)},start(e,t){return y.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,i=y.range(e,t),[a,u]=V.edges(i),s="";for(var[c,f]of y.nodes(e,{at:i,match:fe.isText,voids:r})){var p=c.text;F.equals(f,u.path)&&(p=p.slice(0,u.offset)),F.equals(f,a.path)&&(p=p.slice(a.offset)),s+=p}return s},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[i,a]=V.edges(t);if(i.offset!==0||a.offset!==0||V.isCollapsed(t))return t;var u=y.above(e,{at:a,match:d=>y.isBlock(e,d)}),s=u?u[1]:[],c=y.start(e,i),f={anchor:c,focus:a},p=!0;for(var[h,g]of y.nodes(e,{at:f,match:fe.isText,reverse:!0,voids:r})){if(p){p=!1;continue}if(h.text!==""||F.isBefore(g,s)){a={path:g,offset:h.text.length};break}}return{anchor:i,focus:a}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return y.above(e,gs(gs({},t),{},{match:n=>y.isVoid(e,n)}))},withoutNormalizing(e,t){var n=y.isNormalizing(e);y.setNormalizing(e,!1);try{t()}finally{y.setNormalizing(e,n)}y.normalize(e)}};var KG={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(F.isPath)}},YG=["children"],QG=["text"],OB=new WeakMap,ce={ancestor(e,t){var n=ce.get(e,t);if(fe.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(on.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of F.ancestors(t,n)){var i=ce.ancestor(e,r),a=[i,r];yield a}},child(e,t){if(fe.isText(e))throw new Error("Cannot get the child of a text node: ".concat(on.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(on.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,i=ce.ancestor(e,t),{children:a}=i,u=r?a.length-1:0;r?u>=0:u<a.length;){var s=ce.child(i,u),c=t.concat(u);yield[s,c],u=r?u-1:u+1}},common(e,t,n){var r=F.common(t,n),i=ce.get(e,r);return[i,r]},descendant(e,t){var n=ce.get(e,t);if(y.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(on.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of ce.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of ce.nodes(e,t))me.isElement(n)&&(yield[n,r])},extractProps(e){if(me.isAncestor(e)){var t=Ia(e,YG);return t}else{var t=Ia(e,QG);return t}},first(e,t){for(var n=t.slice(),r=ce.get(e,n);r&&!(fe.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(fe.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(on.stringify(e)));var n=ph({children:e.children},r=>{var[i,a]=V.edges(t),u=ce.nodes(r,{reverse:!0,pass:g=>{var[,d]=g;return!V.includes(t,d)}});for(var[,s]of u){if(!V.includes(t,s)){var c=ce.parent(r,s),f=s[s.length-1];c.children.splice(f,1)}if(F.equals(s,a.path)){var p=ce.leaf(r,s);p.text=p.text.slice(0,a.offset)}if(F.equals(s,i.path)){var h=ce.leaf(r,s);h.text=h.text.slice(i.offset)}}y.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(fe.isText(n)||!n.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(on.stringify(e)));n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(fe.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(e){return fe.isText(e)||me.isElement(e)||y.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=OB.get(e);if(t!==void 0)return t;var n=e.every(r=>ce.isNode(r));return OB.set(e,n),n},last(e,t){for(var n=t.slice(),r=ce.get(e,n);r&&!(fe.isText(r)||r.children.length===0);){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=ce.get(e,t);if(!fe.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(on.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of F.levels(t,n)){var i=ce.get(e,r);yield[i,r]}},matches(e,t){return me.isElement(e)&&me.isElementProps(t)&&me.matches(e,t)||fe.isText(e)&&fe.isTextProps(t)&&fe.matches(e,t)},*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:a}=t,u=new Set,s=[],c=e;!(a&&(r?F.isBefore(s,a):F.isAfter(s,a)));){if(u.has(c)||(yield[c,s]),!u.has(c)&&!fe.isText(c)&&c.children.length!==0&&(n==null||n([c,s])===!1)){u.add(c);var f=r?c.children.length-1:0;F.isAncestor(s,i)&&(f=i[s.length]),s=s.concat(f),c=ce.get(e,s);continue}if(s.length===0)break;if(!r){var p=F.next(s);if(ce.has(e,p)){s=p,c=ce.get(e,s);continue}}if(r&&s[s.length-1]!==0){var h=F.previous(s);s=h,c=ce.get(e,s);continue}s=F.parent(s),c=ce.get(e,s),u.add(c)}},parent(e,t){var n=F.parent(t),r=ce.get(e,n);if(fe.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return fe.isText(e)?e.text:e.children.map(ce.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of ce.nodes(e,t))fe.isText(n)&&(yield[n,r])}};function MB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MB(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Pa={isNodeOperation(e){return Pa.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!An(e))return!1;switch(e.type){case"insert_node":return F.isPath(e.path)&&ce.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&F.isPath(e.path);case"merge_node":return typeof e.position=="number"&&F.isPath(e.path)&&An(e.properties);case"move_node":return F.isPath(e.path)&&F.isPath(e.newPath);case"remove_node":return F.isPath(e.path)&&ce.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&F.isPath(e.path);case"set_node":return F.isPath(e.path)&&An(e.properties)&&An(e.newProperties);case"set_selection":return e.properties===null&&V.isRange(e.newProperties)||e.newProperties===null&&V.isRange(e.properties)||An(e.properties)&&An(e.newProperties);case"split_node":return F.isPath(e.path)&&typeof e.position=="number"&&An(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Pa.isOperation(t))},isSelectionOperation(e){return Pa.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Pa.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Mt(Mt({},e),{},{type:"remove_node"});case"insert_text":return Mt(Mt({},e),{},{type:"remove_text"});case"merge_node":return Mt(Mt({},e),{},{type:"split_node",path:F.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(F.equals(t,n))return e;if(F.isSibling(n,t))return Mt(Mt({},e),{},{path:t,newPath:n});var r=F.transform(n,e),i=F.transform(F.next(n),e);return Mt(Mt({},e),{},{path:r,newPath:i})}case"remove_node":return Mt(Mt({},e),{},{type:"insert_node"});case"remove_text":return Mt(Mt({},e),{},{type:"insert_text"});case"set_node":{var{properties:a,newProperties:u}=e;return Mt(Mt({},e),{},{properties:u,newProperties:a})}case"set_selection":{var{properties:s,newProperties:c}=e;return s==null?Mt(Mt({},e),{},{properties:c,newProperties:null}):c==null?Mt(Mt({},e),{},{properties:null,newProperties:s}):Mt(Mt({},e),{},{properties:c,newProperties:s})}case"split_node":return Mt(Mt({},e),{},{type:"merge_node",path:F.next(e.path)})}}},F={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=F.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r],a=t[r];if(i!==a)break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],u=t[n];return F.equals(r,i)&&a>u},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return F.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],u=t[n];return F.equals(r,i)&&a<u},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return F.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&F.compare(e,t)===0},isBefore(e,t){return F.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&F.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&F.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&F.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&F.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),i=e[e.length-1],a=t[t.length-1];return i!==a&&F.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!F.isAncestor(t,e)&&!F.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:i="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:a}=t;(F.equals(a,r)||F.endsBefore(a,r)||F.isAncestor(a,r))&&(r[a.length-1]+=1);break}case"remove_node":{var{path:u}=t;if(F.equals(u,r)||F.isAncestor(u,r))return null;F.endsBefore(u,r)&&(r[u.length-1]-=1);break}case"merge_node":{var{path:s,position:c}=t;F.equals(s,r)||F.endsBefore(s,r)?r[s.length-1]-=1:F.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=c);break}case"split_node":{var{path:f,position:p}=t;if(F.equals(f,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else F.endsBefore(f,r)?r[f.length-1]+=1:F.isAncestor(f,r)&&e[f.length]>=p&&(r[f.length-1]+=1,r[f.length]-=p);break}case"move_node":{var{path:h,newPath:g}=t;if(F.equals(h,g))return r;if(F.isAncestor(h,r)||F.equals(h,r)){var d=g.slice();return F.endsBefore(h,g)&&h.length<g.length&&(d[h.length-1]-=1),d.concat(r.slice(h.length))}else F.isSibling(h,g)&&(F.isAncestor(g,r)||F.equals(g,r))?F.endsBefore(h,r)?r[h.length-1]-=1:r[h.length-1]+=1:F.endsBefore(g,r)||F.equals(g,r)||F.isAncestor(g,r)?(F.endsBefore(h,r)&&(r[h.length-1]-=1),r[g.length-1]+=1):F.endsBefore(h,r)&&(F.equals(g,r)&&(r[g.length-1]+=1),r[h.length-1]-=1);break}}return r}},XG={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=F.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}};function RB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RB(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Me={compare(e,t){var n=F.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return Me.compare(e,t)===1},isBefore(e,t){return Me.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&F.equals(e.path,t.path)},isPoint(e){return An(e)&&typeof e.offset=="number"&&F.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ph(e,r=>{if(r===null)return null;var{affinity:i="forward"}=n,{path:a,offset:u}=r;switch(t.type){case"insert_node":case"move_node":{r.path=F.transform(a,t,n);break}case"insert_text":{F.equals(t.path,a)&&(t.offset<u||t.offset===u&&i==="forward")&&(r.offset+=t.text.length);break}case"merge_node":{F.equals(t.path,a)&&(r.offset+=t.position),r.path=F.transform(a,t,n);break}case"remove_text":{F.equals(t.path,a)&&t.offset<=u&&(r.offset-=Math.min(u-t.offset,t.text.length));break}case"remove_node":{if(F.equals(t.path,a)||F.isAncestor(t.path,a))return null;r.path=F.transform(a,t,n);break}case"split_node":{if(F.equals(t.path,a)){if(t.position===u&&i==null)return null;(t.position<u||t.position===u&&i==="forward")&&(r.offset-=t.position,r.path=F.transform(a,t,FB(FB({},n),{},{affinity:"forward"})))}else r.path=F.transform(a,t,n);break}}})}},ZG={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=Me.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},JG=["anchor","focus"];function _B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_B(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_B(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var V={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return V.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=V.edges(e);return t},equals(e,t){return Me.equals(e.anchor,t.anchor)&&Me.equals(e.focus,t.focus)},includes(e,t){if(V.isRange(t)){if(V.includes(e,t.anchor)||V.includes(e,t.focus))return!0;var[n,r]=V.edges(e),[i,a]=V.edges(t);return Me.isBefore(n,i)&&Me.isAfter(r,a)}var[u,s]=V.edges(e),c=!1,f=!1;return Me.isPoint(t)?(c=Me.compare(t,u)>=0,f=Me.compare(t,s)<=0):(c=F.compare(t,u.path)>=0,f=F.compare(t,s.path)<=0),c&&f},intersection(e,t){var n=Ia(e,JG),[r,i]=V.edges(e),[a,u]=V.edges(t),s=Me.isBefore(r,a)?a:r,c=Me.isBefore(i,u)?i:u;return Me.isBefore(c,s)?null:eW({anchor:s,focus:c},n)},isBackward(e){var{anchor:t,focus:n}=e;return Me.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Me.equals(t,n)},isExpanded(e){return!V.isCollapsed(e)},isForward(e){return!V.isBackward(e)},isRange(e){return An(e)&&Me.isPoint(e.anchor)&&Me.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=V.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ph(e,r=>{if(r===null)return null;var{affinity:i="inward"}=n,a,u;if(i==="inward"){var s=V.isCollapsed(r);V.isForward(r)?(a="forward",u=s?a:"backward"):(a="backward",u=s?a:"forward")}else i==="outward"?V.isForward(r)?(a="backward",u="forward"):(a="forward",u="backward"):(a=i,u=i);var c=Me.transform(r.anchor,t,{affinity:a}),f=Me.transform(r.focus,t,{affinity:u});if(!c||!f)return null;r.anchor=c,r.focus=f})}},tW={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=V.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},zB=void 0,on={setScrubber(e){zB=e},stringify(e){return JSON.stringify(e,zB)}},VB=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(An(r)&&An(i)){if(!VB(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==i[a])return!1}else if(r!==i)return!1}for(var u in t)if(e[u]===void 0&&t[u]!==void 0)return!1;return!0},nW=["text"],rW=["anchor","focus"];function LB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LB(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var fe={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(a){var u=Ia(a,nW);return u}return VB(r?i(e):e,r?i(t):t)},isText(e){return An(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>fe.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[La({},e)];for(var r of t){var i=Ia(r,rW),[a,u]=V.edges(r),s=[],c=0,f=a.offset,p=u.offset;for(var h of n){var{length:g}=h.text,d=c;if(c+=g,f<=d&&c<=p){Object.assign(h,i),s.push(h);continue}if(f!==p&&(f===c||p===d)||f>c||p<d||p===d&&d!==0){s.push(h);continue}var b=h,A=void 0,O=void 0;if(p<c){var E=p-d;O=La(La({},b),{},{text:b.text.slice(E)}),b=La(La({},b),{},{text:b.text.slice(0,E)})}if(f>d){var D=f-d;A=La(La({},b),{},{text:b.text.slice(0,D)}),b=La(La({},b),{},{text:b.text.slice(D)})}Object.assign(b,i),A&&s.push(A),s.push(b),O&&s.push(O)}n=s}return n}};function PB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PB(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var iW=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:i}=n,a=ce.parent(e,r),u=r[r.length-1];if(u>a.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(a.children.splice(u,0,i),t)for(var[s,c]of V.points(t))t[c]=Me.transform(s,n);break}case"insert_text":{var{path:f,offset:p,text:h}=n;if(h.length===0)break;var g=ce.leaf(e,f),d=g.text.slice(0,p),b=g.text.slice(p);if(g.text=d+h+b,t)for(var[A,O]of V.points(t))t[O]=Me.transform(A,n);break}case"merge_node":{var{path:E}=n,D=ce.get(e,E),C=F.previous(E),M=ce.get(e,C),L=ce.parent(e,E),B=E[E.length-1];if(fe.isText(D)&&fe.isText(M))M.text+=D.text;else if(!fe.isText(D)&&!fe.isText(M))M.children.push(...D.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(E,"] to nodes of different interfaces: ").concat(on.stringify(D)," ").concat(on.stringify(M)));if(L.children.splice(B,1),t)for(var[H,j]of V.points(t))t[j]=Me.transform(H,n);break}case"move_node":{var{path:ue,newPath:P}=n;if(F.isAncestor(ue,P))throw new Error("Cannot move a path [".concat(ue,"] to new path [").concat(P,"] because the destination is inside itself."));var pe=ce.get(e,ue),ae=ce.parent(e,ue),G=ue[ue.length-1];ae.children.splice(G,1);var oe=F.transform(ue,n),Y=ce.get(e,F.parent(oe)),ve=oe[oe.length-1];if(Y.children.splice(ve,0,pe),t)for(var[U,ee]of V.points(t))t[ee]=Me.transform(U,n);break}case"remove_node":{var{path:Q}=n,T=Q[Q.length-1],he=ce.parent(e,Q);if(he.children.splice(T,1),t)for(var[Ae,k]of V.points(t)){var Ce=Me.transform(Ae,n);if(t!=null&&Ce!=null)t[k]=Ce;else{var je=void 0,Re=void 0;for(var[Fe,Ne]of ce.texts(e))if(F.compare(Ne,Q)===-1)je=[Fe,Ne];else{Re=[Fe,Ne];break}var tt=!1;je&&Re&&(F.equals(Re[1],Q)?tt=!F.hasPrevious(Re[1]):tt=F.common(je[1],Q).length<F.common(Re[1],Q).length),je&&!tt?(Ae.path=je[1],Ae.offset=je[0].text.length):Re?(Ae.path=Re[1],Ae.offset=0):t=null}}break}case"remove_text":{var{path:Xe,offset:Ze,text:He}=n;if(He.length===0)break;var it=ce.leaf(e,Xe),Nr=it.text.slice(0,Ze),Ft=it.text.slice(Ze+He.length);if(it.text=Nr+Ft,t)for(var[Ur,zi]of V.points(t))t[zi]=Me.transform(Ur,n);break}case"set_node":{var{path:Ln,properties:yn,newProperties:Hr}=n;if(Ln.length===0)throw new Error("Cannot set properties on the root node!");var hi=ce.get(e,Ln);for(var Li in Hr){if(Li==="children"||Li==="text")throw new Error('Cannot set the "'.concat(Li,'" property of nodes!'));var Pi=Hr[Li];Pi==null?delete hi[Li]:hi[Li]=Pi}for(var ml in yn)Hr.hasOwnProperty(ml)||delete hi[ml];break}case"set_selection":{var{newProperties:Pn}=n;if(Pn==null)t=Pn;else{if(t==null){if(!V.isRange(Pn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(on.stringify(Pn)," when there is no current selection."));t=Wf({},Pn)}for(var In in Pn){var K=Pn[In];if(K==null){if(In==="anchor"||In==="focus")throw new Error('Cannot remove the "'.concat(In,'" selection property'));delete t[In]}else t[In]=K}}break}case"split_node":{var{path:se,position:we,properties:at}=n;if(se.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(se,"] because the root node cannot be split."));var Ge=ce.get(e,se),En=ce.parent(e,se),tr=se[se.length-1],bn;if(fe.isText(Ge)){var gi=Ge.text.slice(0,we),la=Ge.text.slice(we);Ge.text=gi,bn=Wf(Wf({},at),{},{text:la})}else{var At=Ge.children.slice(0,we),iu=Ge.children.slice(we);Ge.children=At,bn=Wf(Wf({},at),{},{children:iu})}if(En.children.splice(tr+1,0,bn),t)for(var[nr,Wm]of V.points(t))t[Wm]=Me.transform(nr,n);break}}return t},aW={transform(e,t){e.children=SE(e.children);var n=e.selection&&SE(e.selection);try{n=iW(e,n,t)}finally{e.children=TE(e.children),n?e.selection=Fo(n)?TE(n):n:e.selection=null}}},oW=["text"],uW=["children"];function IB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IB(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var lW={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};y.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:a="lowest"}=n,{at:u,match:s,select:c}=n;if(ce.isNode(t)&&(t=[t]),t.length!==0){var[f]=t;if(u||(e.selection?u=e.selection:e.children.length>0?u=y.end(e,[]):u=[0],c=!0),c==null&&(c=!1),V.isRange(u))if(r||(u=y.unhangRange(e,u)),V.isCollapsed(u))u=u.anchor;else{var[,p]=V.edges(u),h=y.pointRef(e,p);_.delete(e,{at:u}),u=h.unref()}if(Me.isPoint(u)){s==null&&(fe.isText(f)?s=B=>fe.isText(B):e.isInline(f)?s=B=>fe.isText(B)||y.isInline(e,B):s=B=>y.isBlock(e,B));var[g]=y.nodes(e,{at:u.path,match:s,mode:a,voids:i});if(g){var[,d]=g,b=y.pathRef(e,d),A=y.isEnd(e,u,d);_.splitNodes(e,{at:u,match:s,mode:a,voids:i});var O=b.unref();u=A?F.next(O):O}else return}var E=F.parent(u),D=u[u.length-1];if(!(!i&&y.void(e,{at:E}))){for(var C of t){var M=E.concat(D);D++,e.apply({type:"insert_node",path:M,node:C}),u=F.next(u)}if(u=F.previous(u),c){var L=y.end(e,u);L&&_.select(e,L)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};y.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:a}=t;if(a==null&&(a=F.isPath(n)?vs(e,n):C=>y.isBlock(e,C)),!!n){var u=y.nodes(e,{at:n,match:a,mode:r,voids:i}),s=Array.from(u,C=>{var[,M]=C;return y.pathRef(e,M)});for(var c of s){var f=c.unref();if(f.length<2)throw new Error("Cannot lift node at a path [".concat(f,"] because it has a depth of less than `2`."));var p=y.node(e,F.parent(f)),[h,g]=p,d=f[f.length-1],{length:b}=h.children;if(b===1){var A=F.next(g);_.moveNodes(e,{at:f,to:A,voids:i}),_.removeNodes(e,{at:g,voids:i})}else if(d===0)_.moveNodes(e,{at:f,to:g,voids:i});else if(d===b-1){var O=F.next(g);_.moveNodes(e,{at:f,to:O,voids:i})}else{var E=F.next(f),D=F.next(g);_.splitNodes(e,{at:E,voids:i}),_.moveNodes(e,{at:f,to:D,voids:i})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};y.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:a=!1,mode:u="lowest"}=t;if(r){if(n==null)if(F.isPath(r)){var[s]=y.parent(e,r);n=ue=>s.children.includes(ue)}else n=ue=>y.isBlock(e,ue);if(!i&&V.isRange(r)&&(r=y.unhangRange(e,r)),V.isRange(r))if(V.isCollapsed(r))r=r.anchor;else{var[,c]=V.edges(r),f=y.pointRef(e,c);_.delete(e,{at:r}),r=f.unref(),t.at==null&&_.select(e,r)}var[p]=y.nodes(e,{at:r,match:n,voids:a,mode:u}),h=y.previous(e,{at:r,match:n,voids:a,mode:u});if(!(!p||!h)){var[g,d]=p,[b,A]=h;if(!(d.length===0||A.length===0)){var O=F.next(A),E=F.common(d,A),D=F.isSibling(d,A),C=Array.from(y.levels(e,{at:d}),ue=>{var[P]=ue;return P}).slice(E.length).slice(0,-1),M=y.above(e,{at:d,mode:"highest",match:ue=>C.includes(ue)&&$B(e,ue)}),L=M&&y.pathRef(e,M[1]),B,H;if(fe.isText(g)&&fe.isText(b)){var j=Ia(g,oW);H=b.text.length,B=j}else if(me.isElement(g)&&me.isElement(b)){var j=Ia(g,uW);H=b.children.length,B=j}else throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(on.stringify(g)," ").concat(on.stringify(b)));D||_.moveNodes(e,{at:d,to:O,voids:a}),L&&_.removeNodes(e,{at:L.current,voids:a}),me.isElement(b)&&y.isEmpty(e,b)||fe.isText(b)&&b.text===""&&A[A.length-1]!==0?_.removeNodes(e,{at:A,voids:a}):e.apply({type:"merge_node",path:O,position:H,properties:B}),L&&L.unref()}}}})},moveNodes(e,t){y.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:a=!1}=t,{match:u}=t;if(r){u==null&&(u=F.isPath(r)?vs(e,r):d=>y.isBlock(e,d));var s=y.pathRef(e,n),c=y.nodes(e,{at:r,match:u,mode:i,voids:a}),f=Array.from(c,d=>{var[,b]=d;return y.pathRef(e,b)});for(var p of f){var h=p.unref(),g=s.current;h.length!==0&&e.apply({type:"move_node",path:h,newPath:g}),s.current&&F.isSibling(g,h)&&F.isAfter(g,h)&&(s.current=F.next(s.current))}s.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};y.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:a=e.selection,match:u}=t;if(a){u==null&&(u=F.isPath(a)?vs(e,a):g=>y.isBlock(e,g)),!n&&V.isRange(a)&&(a=y.unhangRange(e,a));var s=y.nodes(e,{at:a,match:u,mode:i,voids:r}),c=Array.from(s,g=>{var[,d]=g;return y.pathRef(e,d)});for(var f of c){var p=f.unref();if(p){var[h]=y.node(e,p);e.apply({type:"remove_node",path:p,node:h})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};y.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection,compare:a,merge:u}=n,{hanging:s=!1,mode:c="lowest",split:f=!1,voids:p=!1}=n;if(i){if(r==null&&(r=F.isPath(i)?vs(e,i):H=>y.isBlock(e,H)),!s&&V.isRange(i)&&(i=y.unhangRange(e,i)),f&&V.isRange(i)){if(V.isCollapsed(i)&&y.leaf(e,i.anchor)[0].text.length>0)return;var h=y.rangeRef(e,i,{affinity:"inward"}),[g,d]=V.edges(i),b=c==="lowest"?"lowest":"highest",A=y.isEnd(e,d,d.path);_.splitNodes(e,{at:d,match:r,mode:b,voids:p,always:!A});var O=y.isStart(e,g,g.path);_.splitNodes(e,{at:g,match:r,mode:b,voids:p,always:!O}),i=h.unref(),n.at==null&&_.select(e,i)}a||(a=(H,j)=>H!==j);for(var[E,D]of y.nodes(e,{at:i,match:r,mode:c,voids:p})){var C={},M={};if(D.length!==0){var L=!1;for(var B in t)B==="children"||B==="text"||a(t[B],E[B])&&(L=!0,E.hasOwnProperty(B)&&(C[B]=E[B]),u?t[B]!=null&&(M[B]=u(E[B],t[B])):t[B]!=null&&(M[B]=t[B]));L&&e.apply({type:"set_node",path:D,properties:C,newProperties:M})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};y.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:a=e.selection,height:u=0,always:s=!1}=t;if(i==null&&(i=ee=>y.isBlock(e,ee)),V.isRange(a)&&(a=sW(e,a)),F.isPath(a)){var c=a,f=y.point(e,c),[p]=y.parent(e,c);i=ee=>ee===p,u=f.path.length-c.length+1,a=f,s=!0}if(a){var h=y.pointRef(e,a,{affinity:"backward"}),g;try{var[d]=y.nodes(e,{at:a,match:i,mode:n,voids:r});if(!d)return;var b=y.void(e,{at:a,mode:"highest"}),A=0;if(!r&&b){var[O,E]=b;if(me.isElement(O)&&e.isInline(O)){var D=y.after(e,E);if(!D){var C={text:""},M=F.next(E);_.insertNodes(e,C,{at:M,voids:r}),D=y.point(e,M)}a=D,s=!0}var L=a.path.length-E.length;u=L+1,s=!0}g=y.pointRef(e,a);var B=a.path.length-u,[,H]=d,j=a.path.slice(0,B),ue=u===0?a.offset:a.path[B]+A;for(var[P,pe]of y.levels(e,{at:j,reverse:!0,voids:r})){var ae=!1;if(pe.length<H.length||pe.length===0||!r&&y.isVoid(e,P))break;var G=h.current,oe=y.isEnd(e,G,pe);if(s||!h||!y.isEdge(e,G,pe)){ae=!0;var Y=ce.extractProps(P);e.apply({type:"split_node",path:pe,position:ue,properties:Y})}ue=pe[pe.length-1]+(ae||oe?1:0)}if(t.at==null){var ve=g.current||y.end(e,[]);_.select(e,ve)}}finally{var U;h.unref(),(U=g)===null||U===void 0||U.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;_.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};y.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:u}=t;if(a){u==null&&(u=F.isPath(a)?vs(e,a):g=>y.isBlock(e,g)),F.isPath(a)&&(a=y.range(e,a));var s=V.isRange(a)?y.rangeRef(e,a):null,c=y.nodes(e,{at:a,match:u,mode:n,voids:i}),f=Array.from(c,g=>{var[,d]=g;return y.pathRef(e,d)}).reverse(),p=function(d){var b=d.unref(),[A]=y.node(e,b),O=y.range(e,b);r&&s&&(O=V.intersection(s.current,O)),_.liftNodes(e,{at:O,match:E=>me.isAncestor(A)&&A.children.includes(E),voids:i})};for(var h of f)p(h);s&&s.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};y.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:a=!1}=n,{match:u,at:s=e.selection}=n;if(s){if(u==null&&(F.isPath(s)?u=vs(e,s):e.isInline(t)?u=O=>y.isInline(e,O)||fe.isText(O):u=O=>y.isBlock(e,O)),i&&V.isRange(s)){var[c,f]=V.edges(s),p=y.rangeRef(e,s,{affinity:"inward"});_.splitNodes(e,{at:f,match:u,voids:a}),_.splitNodes(e,{at:c,match:u,voids:a}),s=p.unref(),n.at==null&&_.select(e,s)}var h=Array.from(y.nodes(e,{at:s,match:e.isInline(t)?O=>y.isBlock(e,O):O=>y.isEditor(O),mode:"lowest",voids:a}));for(var[,g]of h){var d=V.isRange(s)?V.intersection(s,y.range(e,g)):s;if(d){var b=Array.from(y.nodes(e,{at:d,match:u,mode:r,voids:a}));if(b.length>0){var A=function(){var[O]=b,E=b[b.length-1],[,D]=O,[,C]=E;if(D.length===0&&C.length===0)return"continue";var M=F.equals(D,C)?F.parent(D):F.common(D,C),L=y.range(e,D,C),B=y.node(e,M),[H]=B,j=M.length+1,ue=F.next(C.slice(0,j)),P=NB(NB({},t),{},{children:[]});_.insertNodes(e,P,{at:ue,voids:a}),_.moveNodes(e,{at:L,match:pe=>me.isAncestor(H)&&H.children.includes(pe),to:ue.concat(0),voids:a})}();if(A==="continue")continue}}}}})}},$B=(e,t)=>{if(me.isElement(t)){var n=t;return y.isVoid(e,t)?!0:n.children.length===1?$B(e,n.children[0]):!1}else return!y.isEditor(t)},sW=(e,t)=>{if(V.isCollapsed(t))return t.anchor;var[,n]=V.edges(t),r=y.pointRef(e,n);return _.delete(e,{at:t}),r.unref()},vs=(e,t)=>{var[n]=y.node(e,t);return r=>r===n};function UB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UB(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cW={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")_.select(e,r.anchor);else if(n==="focus")_.select(e,r.focus);else if(n==="start"){var[i]=V.edges(r);_.select(e,i)}else if(n==="end"){var[,a]=V.edges(r);_.select(e,a)}}else return},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:a=!1}=t,{edge:u=null}=t;if(n){u==="start"&&(u=V.isBackward(n)?"focus":"anchor"),u==="end"&&(u=V.isBackward(n)?"anchor":"focus");var{anchor:s,focus:c}=n,f={distance:r,unit:i},p={};if(u==null||u==="anchor"){var h=a?y.before(e,s,f):y.after(e,s,f);h&&(p.anchor=h)}if(u==null||u==="focus"){var g=a?y.before(e,c,f):y.after(e,c,f);g&&(p.focus=g)}_.setSelection(e,p)}},select(e,t){var{selection:n}=e;if(t=y.range(e,t),n){_.setSelection(e,t);return}if(!V.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(on.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(r){i==="start"&&(i=V.isBackward(r)?"focus":"anchor"),i==="end"&&(i=V.isBackward(r)?"anchor":"focus");var{anchor:a,focus:u}=r,s=i==="anchor"?a:u;_.setSelection(e,{[i==="anchor"?"anchor":"focus"]:HB(HB({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a==="anchor"&&t.anchor!=null&&!Me.equals(t.anchor,n.anchor)||a==="focus"&&t.focus!=null&&!Me.equals(t.focus,n.focus)||a!=="anchor"&&a!=="focus"&&t[a]!==n[a])&&(r[a]=n[a],i[a]=t[a]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}}},fW={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};y.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:a=!1}=t,{at:u=e.selection,hanging:s=!1}=t;if(u){var c=!1;if(V.isRange(u)&&V.isCollapsed(u)&&(c=!0,u=u.anchor),Me.isPoint(u)){var f=y.void(e,{at:u,mode:"highest"});if(!a&&f){var[,p]=f;u=p}else{var h={unit:r,distance:i},g=n?y.before(e,u,h)||y.start(e,[]):y.after(e,u,h)||y.end(e,[]);u={anchor:u,focus:g},s=!0}}if(F.isPath(u)){_.removeNodes(e,{at:u,voids:a});return}if(!V.isCollapsed(u)){if(!s){var[,d]=V.edges(u),b=y.end(e,[]);Me.equals(d,b)||(u=y.unhangRange(e,u,{voids:a}))}var[A,O]=V.edges(u),E=y.above(e,{match:Ze=>y.isBlock(e,Ze),at:A,voids:a}),D=y.above(e,{match:Ze=>y.isBlock(e,Ze),at:O,voids:a}),C=E&&D&&!F.equals(E[1],D[1]),M=F.equals(A.path,O.path),L=a?null:y.void(e,{at:A,mode:"highest"}),B=a?null:y.void(e,{at:O,mode:"highest"});if(L){var H=y.before(e,A);H&&E&&F.isAncestor(E[1],H.path)&&(A=H)}if(B){var j=y.after(e,O);j&&D&&F.isAncestor(D[1],j.path)&&(O=j)}var ue=[],P;for(var pe of y.nodes(e,{at:u,voids:a})){var[ae,G]=pe;P&&F.compare(G,P)===0||(!a&&y.isVoid(e,ae)||!F.isCommon(G,A.path)&&!F.isCommon(G,O.path))&&(ue.push(pe),P=G)}var oe=Array.from(ue,Ze=>{var[,He]=Ze;return y.pathRef(e,He)}),Y=y.pointRef(e,A),ve=y.pointRef(e,O),U="";if(!M&&!L){var ee=Y.current,[Q]=y.leaf(e,ee),{path:T}=ee,{offset:he}=A,Ae=Q.text.slice(he);Ae.length>0&&(e.apply({type:"remove_text",path:T,offset:he,text:Ae}),U=Ae)}if(oe.reverse().map(Ze=>Ze.unref()).filter(Ze=>Ze!==null).forEach(Ze=>_.removeNodes(e,{at:Ze,voids:a})),!B){var k=ve.current,[Ce]=y.leaf(e,k),{path:je}=k,Re=M?A.offset:0,Fe=Ce.text.slice(Re,O.offset);Fe.length>0&&(e.apply({type:"remove_text",path:je,offset:Re,text:Fe}),U=Fe)}!M&&C&&ve.current&&Y.current&&_.mergeNodes(e,{at:ve.current,hanging:!0,voids:a}),c&&n&&r==="character"&&U.length>1&&U.match(/[\u0E00-\u0E7F]+/)&&_.insertText(e,U.slice(0,U.length-i));var Ne=Y.unref(),tt=ve.unref(),Xe=n?Ne||tt:tt||Ne;t.at==null&&Xe&&_.select(e,Xe)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};y.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length){if(a)if(V.isRange(a))if(r||(a=y.unhangRange(e,a)),V.isCollapsed(a))a=a.anchor;else{var[,u]=V.edges(a);if(!i&&y.void(e,{at:u}))return;var s=y.pointRef(e,u);_.delete(e,{at:a}),a=s.unref()}else F.isPath(a)&&(a=y.start(e,a));else return;if(!(!i&&y.void(e,{at:a}))){var c=y.above(e,{at:a,match:k=>y.isInline(e,k),mode:"highest",voids:i});if(c){var[,f]=c;if(y.isEnd(e,a,f)){var p=y.after(e,f);a=p}else if(y.isStart(e,a,f)){var h=y.before(e,f);a=h}}var g=y.above(e,{match:k=>y.isBlock(e,k),at:a,voids:i}),[,d]=g,b=y.isStart(e,a,d),A=y.isEnd(e,a,d),O=b&&A,E=!b||b&&A,D=!A,[,C]=ce.first({children:t},[]),[,M]=ce.last({children:t},[]),L=[],B=k=>{var[Ce,je]=k,Re=je.length===0;return Re?!1:O?!0:!(E&&F.isAncestor(je,C)&&me.isElement(Ce)&&!e.isVoid(Ce)&&!e.isInline(Ce)||D&&F.isAncestor(je,M)&&me.isElement(Ce)&&!e.isVoid(Ce)&&!e.isInline(Ce))};for(var H of ce.nodes({children:t},{pass:B}))B(H)&&L.push(H);var j=[],ue=[],P=[],pe=!0,ae=!1;for(var[G]of L)me.isElement(G)&&!e.isInline(G)?(pe=!1,ae=!0,ue.push(G)):pe?j.push(G):P.push(G);var[oe]=y.nodes(e,{at:a,match:k=>fe.isText(k)||y.isInline(e,k),mode:"highest",voids:i}),[,Y]=oe,ve=y.isStart(e,a,Y),U=y.isEnd(e,a,Y),ee=y.pathRef(e,A&&!P.length?F.next(d):d),Q=y.pathRef(e,U?F.next(Y):Y);_.splitNodes(e,{at:a,match:k=>ae?y.isBlock(e,k):fe.isText(k)||y.isInline(e,k),mode:ae?"lowest":"highest",always:ae&&(!b||j.length>0)&&(!A||P.length>0),voids:i});var T=y.pathRef(e,!ve||ve&&U?F.next(Y):Y);if(_.insertNodes(e,j,{at:T.current,match:k=>fe.isText(k)||y.isInline(e,k),mode:"highest",voids:i}),O&&!j.length&&ue.length&&!P.length&&_.delete(e,{at:d,voids:i}),_.insertNodes(e,ue,{at:ee.current,match:k=>y.isBlock(e,k),mode:"lowest",voids:i}),_.insertNodes(e,P,{at:Q.current,match:k=>fe.isText(k)||y.isInline(e,k),mode:"highest",voids:i}),!n.at){var he;if(P.length>0&&Q.current?he=F.previous(Q.current):ue.length>0&&ee.current?he=F.previous(ee.current):T.current&&(he=F.previous(T.current)),he){var Ae=y.end(e,he);_.select(e,Ae)}}T.unref(),ee.unref(),Q.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};y.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(F.isPath(i)&&(i=y.range(e,i)),V.isRange(i))if(V.isCollapsed(i))i=i.anchor;else{var a=V.end(i);if(!r&&y.void(e,{at:a}))return;var u=V.start(i),s=y.pointRef(e,u),c=y.pointRef(e,a);_.delete(e,{at:i,voids:r});var f=s.unref(),p=c.unref();i=f||p,_.setSelection(e,{anchor:i,focus:i})}if(!(!r&&y.void(e,{at:i}))){var{path:h,offset:g}=i;t.length>0&&e.apply({type:"insert_text",path:h,offset:g,text:t})}}})}};function qB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qB(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _=hh(hh(hh(hh({},aW),lW),cW),fW);var YE=N(YB()),Q3=N(FE()),X3=N(k3()),J=N(Oe());function B3(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function O3(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function _E(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return O3(n.overflowY,t)||O3(n.overflowX,t)||function(r){var i=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function Eh(e,t,n,r,i,a,u,s){return a<e&&u>t||a>e&&u<t?0:a<=e&&s<=n||u>=t&&s>=n?a-e-r:u>t&&s<n||a<e&&s>n?u-t+i:0}var zE=function(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,u=t.boundary,s=t.skipOverflowHiddenElements,c=typeof u=="function"?u:function(Nr){return Nr!==u};if(!B3(e))throw new TypeError("Invalid target");for(var f,p,h=document.scrollingElement||document.documentElement,g=[],d=e;B3(d)&&c(d);){if((d=(p=(f=d).parentElement)==null?f.getRootNode().host||null:p)===h){g.push(d);break}d!=null&&d===document.body&&_E(d)&&!_E(document.documentElement)||d!=null&&_E(d,s)&&g.push(d)}for(var b=n.visualViewport?n.visualViewport.width:innerWidth,A=n.visualViewport?n.visualViewport.height:innerHeight,O=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,D=e.getBoundingClientRect(),C=D.height,M=D.width,L=D.top,B=D.right,H=D.bottom,j=D.left,ue=i==="start"||i==="nearest"?L:i==="end"?H:L+C/2,P=a==="center"?j+M/2:a==="end"?B:j,pe=[],ae=0;ae<g.length;ae++){var G=g[ae],oe=G.getBoundingClientRect(),Y=oe.height,ve=oe.width,U=oe.top,ee=oe.right,Q=oe.bottom,T=oe.left;if(r==="if-needed"&&L>=0&&j>=0&&H<=A&&B<=b&&L>=U&&H<=Q&&j>=T&&B<=ee)return pe;var he=getComputedStyle(G),Ae=parseInt(he.borderLeftWidth,10),k=parseInt(he.borderTopWidth,10),Ce=parseInt(he.borderRightWidth,10),je=parseInt(he.borderBottomWidth,10),Re=0,Fe=0,Ne="offsetWidth"in G?G.offsetWidth-G.clientWidth-Ae-Ce:0,tt="offsetHeight"in G?G.offsetHeight-G.clientHeight-k-je:0,Xe="offsetWidth"in G?G.offsetWidth===0?0:ve/G.offsetWidth:0,Ze="offsetHeight"in G?G.offsetHeight===0?0:Y/G.offsetHeight:0;if(h===G)Re=i==="start"?ue:i==="end"?ue-A:i==="nearest"?Eh(E,E+A,A,k,je,E+ue,E+ue+C,C):ue-A/2,Fe=a==="start"?P:a==="center"?P-b/2:a==="end"?P-b:Eh(O,O+b,b,Ae,Ce,O+P,O+P+M,M),Re=Math.max(0,Re+E),Fe=Math.max(0,Fe+O);else{Re=i==="start"?ue-U-k:i==="end"?ue-Q+je+tt:i==="nearest"?Eh(U,Q,Y,k,je+tt,ue,ue+C,C):ue-(U+Y/2)+tt/2,Fe=a==="start"?P-T-Ae:a==="center"?P-(T+ve/2)+Ne/2:a==="end"?P-ee+Ce+Ne:Eh(T,ee,ve,Ae,Ce+Ne,P,P+M,M);var He=G.scrollLeft,it=G.scrollTop;ue+=it-(Re=Math.max(0,Math.min(it+Re/Ze,G.scrollHeight-Y/Ze+tt))),P+=He-(Fe=Math.max(0,Math.min(He+Fe/Xe,G.scrollWidth-ve/Xe+Ne)))}pe.push({el:G,top:Re,left:Fe})}return pe};function M3(e){return e===Object(e)&&Object.keys(e).length!==0}function lK(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var i=r.el,a=r.top,u=r.left;i.scroll&&n?i.scroll({top:a,left:u,behavior:t}):(i.scrollTop=a,i.scrollLeft=u)})}function sK(e){return e===!1?{block:"end",inline:"nearest"}:M3(e)?e:{block:"start",inline:"nearest"}}function cK(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(M3(t)&&typeof t.behavior=="function")return t.behavior(n?zE(e,t):[]);if(n){var r=sK(t);return lK(zE(e,r),r.behavior)}}var R3=cK;var wh=N(P3()),Z3=N(jp());function Th(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hK(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function bs(e,t){if(e==null)return{};var n=hK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var gK=0,UE=class{constructor(){this.id="".concat(gK++)}},QE=new WeakMap,XE=new WeakMap,J3=new WeakMap,HE=new WeakMap,qE=new WeakMap,kh=new WeakMap,xs=new WeakMap,jE=new WeakMap,Bh=new WeakMap,ZE=new WeakMap,Uu=new WeakMap,Hu=new WeakMap,Qf=new WeakMap,VE=new WeakMap,JE=new WeakMap,Ti=new WeakMap,Na=new WeakMap,fr=new WeakMap,zo=new WeakMap,Lo=new WeakMap,eO=new WeakMap,Ds=Symbol("placeholder"),tO=Symbol("mark-placeholder"),vK=globalThis.Text,eb=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,yK=e=>ju(e)&&e.nodeType===8,si=e=>ju(e)&&e.nodeType===1,ju=e=>{var t=eb(e);return!!t&&e instanceof t.Node},$E=e=>{var t=e&&e.anchorNode&&eb(e.anchorNode);return!!t&&e instanceof t.Selection},nO=e=>ju(e)&&e.nodeType===3,EK=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,bK=e=>{var[t,n]=e;if(si(t)&&t.childNodes.length){var r=n===t.childNodes.length,i=r?n-1:n;for([t,i]=rO(t,i,r?"backward":"forward"),r=i<n;si(t)&&t.childNodes.length;){var a=r?t.childNodes.length-1:0;t=DK(t,a,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},xK=()=>!!(window.document.activeElement&&window.document.activeElement.shadowRoot),rO=(e,t,n)=>{for(var{childNodes:r}=e,i=r[t],a=t,u=!1,s=!1;(yK(i)||si(i)&&i.childNodes.length===0||si(i)&&i.getAttribute("contenteditable")==="false")&&!(u&&s);){if(a>=r.length){u=!0,a=t-1,n="backward";continue}if(a<0){s=!0,a=t+1,n="forward";continue}i=r[a],t=a,a+=n==="forward"?1:-1}return[i,t]},DK=(e,t,n)=>{var[r]=rO(e,t,n);return r},iO=e=>{var t="";if(nO(e)&&e.nodeValue)return e.nodeValue;if(si(e)){for(var n of Array.from(e.childNodes))t+=iO(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
|
|
32
|
+
`)}return t},CK=/data-slate-fragment="(.+?)"/m,wK=e=>{var t=e.getData("text/html"),[,n]=t.match(CK)||[];return n},tb=(e,t,n)=>{var{target:r}=t;if(si(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:i}=W.getWindow(e);if(i.contains(r))return W.hasDOMNode(e,r,{editable:!0});var a=n.find(u=>{var{addedNodes:s,removedNodes:c}=u;for(var f of s)if(f===r||f.contains(r))return!0;for(var p of c)if(p===r||p.contains(r))return!0});return!a||a===t?!1:tb(e,a,n)},AK=parseInt(J.default.version.split(".")[0],10)>=17,SK=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,I3=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),ki=typeof navigator<"u"&&/Android/.test(navigator.userAgent),GE=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),IE=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),TK=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),aO=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),kK=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),BK=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),OK=typeof navigator<"u"&&/.*QQBrowser/.test(navigator.userAgent),MK=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),RK=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent),Ah=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_o=!kK&&!TK&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",W={isComposing(e){return!!Hu.get(e)},getWindow(e){var t=J3.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var n=jE.get(t);return n||(n=new UE,jE.set(t,n)),n},findPath(e,t){for(var n=[],r=t;;){var i=XE.get(r);if(i==null){if(y.isEditor(r))return n;break}var a=QE.get(r);if(a==null)break;n.unshift(a),r=i}throw new Error("Unable to find the path for Slate node: ".concat(on.stringify(t)))},findDocumentOrShadowRoot(e){var t=W.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},isFocused(e){return!!Uu.get(e)},isReadOnly(e){return!!ZE.get(e)},blur(e){var t=W.toDOMNode(e,e),n=W.findDocumentOrShadowRoot(e);Uu.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=W.toDOMNode(e,e),n=W.findDocumentOrShadowRoot(e);Uu.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=W.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&_.deselect(e)},hasDOMNode(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:r=!1}=n,i=W.toDOMNode(e,e),a;try{a=si(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return a?a.closest("[data-slate-editor]")===i&&(!r||a.isContentEditable?!0:typeof a.isContentEditable=="boolean"&&a.closest('[contenteditable="false"]')===i||!!a.getAttribute("data-slate-zero-width")):!1},insertData(e,t){e.insertData(t)},insertFragmentData(e,t){return e.insertFragmentData(t)},insertTextData(e,t){return e.insertTextData(t)},setFragmentData(e,t,n){e.setFragmentData(t,n)},toDOMNode(e,t){var n=Bh.get(e),r=y.isEditor(t)?HE.get(e):n?.get(W.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(on.stringify(t)));return r},toDOMPoint(e,t){var[n]=y.node(e,t.path),r=W.toDOMNode(e,n),i;y.void(e,{at:t})&&(t={path:t.path,offset:0});for(var a="[data-slate-string], [data-slate-zero-width]",u=Array.from(r.querySelectorAll(a)),s=0,c=0;c<u.length;c++){var f=u[c],p=f.childNodes[0];if(!(p==null||p.textContent==null)){var{length:h}=p.textContent,g=f.getAttribute("data-slate-length"),d=g==null?h:parseInt(g,10),b=s+d,A=u[c+1];if(t.offset===b&&A!==null&&A!==void 0&&A.hasAttribute("data-slate-mark-placeholder")){var O,E=A.childNodes[0];i=[E instanceof vK?E:A,(O=A.textContent)!==null&&O!==void 0&&O.startsWith("\uFEFF")?1:0];break}if(t.offset<=b){var D=Math.min(h,Math.max(0,t.offset-s));i=[p,D];break}s=b}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(on.stringify(t)));return i},toDOMRange(e,t){var{anchor:n,focus:r}=t,i=V.isBackward(t),a=W.toDOMPoint(e,n),u=V.isCollapsed(t)?a:W.toDOMPoint(e,r),s=W.getWindow(e),c=s.document.createRange(),[f,p]=i?u:a,[h,g]=i?a:u,d=si(f)?f:f.parentElement,b=!!d.getAttribute("data-slate-zero-width"),A=si(h)?h:h.parentElement,O=!!A.getAttribute("data-slate-zero-width");return c.setStart(f,b?1:p),c.setEnd(h,O?1:g),c},toSlateNode(e,t){var n=si(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?kh.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:i}=t;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var a=W.toSlateNode(e,t.target),u=W.findPath(e,a);if(y.isVoid(e,a)){var s=i.getBoundingClientRect(),c=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,f=y.point(e,u,{edge:c?"start":"end"}),p=c?y.before(e,f):y.after(e,f);if(p){var h=y.range(e,p);return h}}var g,{document:d}=W.getWindow(e);if(d.caretRangeFromPoint)g=d.caretRangeFromPoint(n,r);else{var b=d.caretPositionFromPoint(n,r);b&&(g=d.createRange(),g.setStart(b.offsetNode,b.offset),g.setEnd(b.offsetNode,b.offset))}if(!g)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var A=W.toSlateRange(e,g,{exactMatch:!1,suppressThrow:!1});return A},toSlatePoint(e,t,n){var{exactMatch:r,suppressThrow:i}=n,[a,u]=r?t:bK(t),s=a.parentNode,c=null,f=0;if(s){var p,h,g=W.toDOMNode(e,e),d=s.closest('[data-slate-void="true"]'),b=d&&g.contains(d)?d:null,A=s.closest("[data-slate-leaf]"),O=null;if(A){if(c=A.closest('[data-slate-node="text"]'),c){var E=W.getWindow(e),D=E.document.createRange();D.setStart(c,0),D.setEnd(a,u);var C=D.cloneContents(),M=[...Array.prototype.slice.call(C.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(C.querySelectorAll("[contenteditable=false]"))];M.forEach(oe=>{if(ki&&!r&&oe.hasAttribute("data-slate-zero-width")&&oe.textContent.length>0&&oe.textContext!=="\uFEFF"){oe.textContent.startsWith("\uFEFF")&&(oe.textContent=oe.textContent.slice(1));return}oe.parentNode.removeChild(oe)}),f=C.textContent.length,O=c}}else if(b){for(var L=b.querySelectorAll("[data-slate-leaf]"),B=0;B<L.length;B++){var H=L[B];if(W.hasDOMNode(e,H)){A=H;break}}A?(c=A.closest('[data-slate-node="text"]'),O=A,f=O.textContent.length,O.querySelectorAll("[data-slate-zero-width]").forEach(oe=>{f-=oe.textContent.length})):f=1}O&&f===O.textContent.length&&ki&&O.getAttribute("data-slate-zero-width")==="z"&&(p=O.textContent)!==null&&p!==void 0&&p.startsWith("\uFEFF")&&(s.hasAttribute("data-slate-zero-width")||GE&&(h=O.textContent)!==null&&h!==void 0&&h.endsWith(`
|
|
34
33
|
|
|
35
|
-
`))&&f--}if(
|
|
36
|
-
`?
|
|
37
|
-
`:"");return hl(()=>{var o=i();r.current&&r.current.textContent!==o&&(r.current.textContent=o)}),r.current?oe.default.createElement("span",{"data-slate-string":!0,ref:r}):oe.default.createElement("span",{"data-slate-string":!0,ref:r},i())},fE=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,i={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(i["data-slate-mark-placeholder"]=!0),oe.default.createElement("span",Object.assign({},i),!Qi||!n?"\uFEFF":null,n?oe.default.createElement("br",null):null)},TE=(0,oe.createContext)(null),Me=()=>{var e=(0,oe.useContext)(TE);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},UZ=e=>{var{leaf:t,isLast:n,text:r,parent:i,renderPlaceholder:o,renderLeaf:a=g=>oe.default.createElement(qZ,Object.assign({},g))}=e,l=(0,oe.useRef)(null),c=Me();(0,oe.useEffect)(()=>{var g=l?.current,m=ne.toDOMNode(c,c);if(!(!g||!m))return m.style.minHeight="".concat(g.clientHeight,"px"),hE.set(c,g),()=>{m.style.minHeight="auto",hE.delete(c)}},[l,t]);var f=oe.default.createElement(NZ,{isLast:n,leaf:t,parent:i,text:r});if(t[ec]){var p={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:l}};f=oe.default.createElement(oe.default.Fragment,null,o(p),f)}var d={"data-slate-leaf":!0};return a({attributes:d,children:f,leaf:t,text:r})},HZ=oe.default.memo(UZ,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&ge.equals(t.leaf,e.leaf)&&t.leaf[ec]===e.leaf[ec]),qZ=e=>{var{attributes:t,children:n}=e;return oe.default.createElement("span",Object.assign({},t),n)},jZ=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:i,renderLeaf:o,text:a}=e,l=Me(),c=(0,oe.useRef)(null),f=ge.decorations(a,t),p=ne.findKey(l,a),d=[],g=0;g<f.length;g++){var m=f[g];d.push(oe.default.createElement(HZ,{isLast:n&&g===f.length-1,key:"".concat(p.id,"-").concat(g),renderPlaceholder:i,leaf:m,text:a,parent:r,renderLeaf:o}))}return hl(()=>{var x=Sg.get(l);c.current?(x?.set(p,c.current),Js.set(a,c.current),Cg.set(c.current,a)):(x?.delete(p),Js.delete(a))}),oe.default.createElement("span",{"data-slate-node":"text",ref:c},d)},BM=oe.default.memo(jZ,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&TM(t.decorations,e.decorations)),VZ=e=>{var{decorations:t,element:n,renderElement:r=w=>oe.default.createElement(GZ,Object.assign({},w)),renderPlaceholder:i,renderLeaf:o,selection:a}=e,l=Me(),c=KZ(),f=l.isInline(n),p=ne.findKey(l,n),d=(0,oe.useCallback)(w=>{var C=Sg.get(l);w?(C?.set(p,w),Js.set(n,w),Cg.set(w,n)):(C?.delete(p),Js.delete(n))},[l,p,n]),g=RM({decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:a}),m={"data-slate-node":"element",ref:d};if(f&&(m["data-slate-inline"]=!0),!f&&b.hasInlines(l,n)){var x=he.string(n),S=(0,EE.default)(x);S==="rtl"&&(m.dir=S)}if(b.isVoid(l,n)){m["data-slate-void"]=!0,!c&&f&&(m.contentEditable=!1);var T=f?"span":"div",[[y]]=he.texts(n);g=oe.default.createElement(T,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},oe.default.createElement(BM,{renderPlaceholder:i,decorations:[],isLast:!1,parent:n,text:y})),DE.set(y,0),wE.set(y,n)}return r({attributes:m,children:g,element:n})},$Z=oe.default.memo(VZ,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&TM(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&W.equals(e.selection,t.selection))),GZ=e=>{var{attributes:t,children:n,element:r}=e,i=Me(),o=i.isInline(r)?"span":"div";return oe.default.createElement(o,Object.assign({},t,{style:{position:"relative"}}),n)},OM=(0,oe.createContext)(()=>[]),WZ=()=>(0,oe.useContext)(OM),MM=(0,oe.createContext)(!1),Ri=()=>(0,oe.useContext)(MM),RM=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:a}=e,l=WZ(),c=Me(),f=ne.findPath(c,n),p=[],d=ye.isElement(n)&&!c.isInline(n)&&b.hasInlines(c,n),g=0;g<n.children.length;g++){var m=f.concat(g),x=n.children[g],S=ne.findKey(c,x),T=b.range(c,m),y=a&&W.intersection(T,a),w=l([x,m]);for(var C of t){var M=W.intersection(C,T);M&&w.push(M)}ye.isElement(x)?p.push(oe.default.createElement(MM.Provider,{key:"provider-".concat(S.id),value:!!y},oe.default.createElement($Z,{decorations:w,element:x,key:S.id,renderElement:r,renderPlaceholder:i,renderLeaf:o,selection:y}))):p.push(oe.default.createElement(BM,{decorations:w,key:S.id,isLast:d&&g===n.children.length-1,parent:n,renderPlaceholder:i,renderLeaf:o,text:x})),DE.set(x,g),wE.set(x,n)}return p},FM=(0,oe.createContext)(!1),KZ=()=>(0,oe.useContext)(FM),_M=(0,oe.createContext)(null),BE=()=>{var e=(0,oe.useContext)(_M);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};var YZ=3,XZ={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},QZ={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},ZZ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},qt=e=>{var t=XZ[e],n=QZ[e],r=ZZ[e],i=t&&(0,bg.isKeyHotkey)(t),o=n&&(0,bg.isKeyHotkey)(n),a=r&&(0,bg.isKeyHotkey)(r);return l=>!!(i&&i(l)||aM&&o&&o(l)||!aM&&a&&a(l))},Yt={isBold:qt("bold"),isCompose:qt("compose"),isMoveBackward:qt("moveBackward"),isMoveForward:qt("moveForward"),isDeleteBackward:qt("deleteBackward"),isDeleteForward:qt("deleteForward"),isDeleteLineBackward:qt("deleteLineBackward"),isDeleteLineForward:qt("deleteLineForward"),isDeleteWordBackward:qt("deleteWordBackward"),isDeleteWordForward:qt("deleteWordForward"),isExtendBackward:qt("extendBackward"),isExtendForward:qt("extendForward"),isExtendLineBackward:qt("extendLineBackward"),isExtendLineForward:qt("extendLineForward"),isItalic:qt("italic"),isMoveLineBackward:qt("moveLineBackward"),isMoveLineForward:qt("moveLineForward"),isMoveWordBackward:qt("moveWordBackward"),isMoveWordForward:qt("moveWordForward"),isRedo:qt("redo"),isSoftBreak:qt("insertSoftBreak"),isSplitBlock:qt("splitBlock"),isTransposeCharacter:qt("transposeCharacter"),isUndo:qt("undo")},JZ=(e,t)=>{var n=[],r=()=>{n=[]},i=a=>{if(t.current){var l=a.filter(c=>AE(e,c,a));n.push(...l)}};function o(){n.reverse().forEach(a=>{if(a.type==="characterData"){a.target.textContent=a.oldValue;return}a.removedNodes.forEach(l=>{a.target.insertBefore(l,a.nextSibling)}),a.addedNodes.forEach(l=>{a.target.removeChild(l)})}),r()}return{registerMutations:i,restoreDOM:o,clear:r}},eJ={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0},Dg=class extends oe.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,eJ)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=JZ(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,i=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(i!=null&&i.length){var o;(o=this.manager)===null||o===void 0||o.registerMutations(i)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}};Dg.contextType=TE;var tJ=Qi?Dg:e=>{var{children:t}=e;return oe.default.createElement(oe.default.Fragment,null,t)};function nJ(e,t){var{path:n,diff:r}=t;if(!b.hasPath(e,n))return!1;var i=he.get(e,n);if(!ge.isText(i))return!1;if(r.start!==i.text.length||r.text.length===0)return i.text.slice(r.start,r.start+r.text.length)===r.text;var o=I.next(n);if(!b.hasPath(e,o))return!1;var a=he.get(e,o);return ge.isText(a)&&a.text.startsWith(r.text)}function rJ(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((i,o)=>i.slice(0,o.start)+o.text+i.slice(o.end),e)}function iJ(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}function oJ(e,t,n){for(var r=Math.min(e.length,t.length,n),i=0;i<r;i++)if(e.charAt(e.length-i-1)!==t.charAt(t.length-i-1))return i;return r}function IM(e,t){var{start:n,end:r,text:i}=t,o=e.slice(n,r),a=iJ(o,i),l=Math.min(o.length-a,i.length-a),c=oJ(o,i,l),f={start:n+a,end:r-c,text:i.slice(a,i.length-c)};return f.start===f.end&&f.text.length===0?null:f}function aJ(e,t,n){var r=Math.min(t.start,n.start),i=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),o=rJ(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-i),l=o.slice(r,a),c=Math.max(t.end,n.end-t.text.length+(t.end-t.start));return IM(e,{start:r,end:c,text:l})}function uJ(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function xE(e,t){var{path:n,offset:r}=t;if(!b.hasPath(e,n))return null;var i=he.get(e,n);if(!ge.isText(i))return null;var o=b.above(e,{match:l=>b.isBlock(e,l),at:n});if(!o)return null;for(;r>i.text.length;){var a=b.next(e,{at:n,match:ge.isText});if(!a||!I.isDescendant(a[1],o[1]))return null;r-=i.text.length,i=a[0],n=a[1]}return{path:n,offset:r}}function lM(e,t){var n=xE(e,t.anchor);if(!n)return null;if(W.isCollapsed(t))return{anchor:n,focus:n};var r=xE(e,t.focus);return r?{anchor:n,focus:r}:null}function bE(e,t,n){var r=Or.get(e),i=r?.find(p=>{var{path:d}=p;return I.equals(d,t.path)});if(!i||t.offset<=i.diff.start)return qe.transform(t,n,{affinity:"backward"});var{diff:o}=i;if(t.offset<=o.start+o.text.length){var a={path:t.path,offset:o.start},l=qe.transform(a,n,{affinity:"backward"});return l?{path:l.path,offset:l.offset+t.offset-o.start}:null}var c={path:t.path,offset:t.offset-o.text.length+o.end-o.start},f=qe.transform(c,n,{affinity:"backward"});return f?n.type==="split_node"&&I.equals(n.path,t.path)&&c.offset<n.position&&o.start<n.position?f:{path:f.path,offset:f.offset+o.text.length-o.end+o.start}:null}function sM(e,t,n){var r=bE(e,t.anchor,n);if(!r)return null;if(W.isCollapsed(t))return{anchor:r,focus:r};var i=bE(e,t.focus,n);return i?{anchor:r,focus:i}:null}function lJ(e,t){var{path:n,diff:r,id:i}=e;switch(t.type){case"insert_text":return!I.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:i,path:n};case"remove_text":return!I.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:i,path:n};case"split_node":return!I.equals(t.path,n)||t.position>=r.end?{diff:r,id:i,path:I.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:i,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:i,path:I.transform(n,t,{affinity:"forward"})};case"merge_node":return I.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:i,path:I.transform(n,t)}:{diff:r,id:i,path:I.transform(n,t)}}var o=I.transform(n,t);return o?{diff:r,path:o,id:i}:null}function cM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cM(Object(n),!0).forEach(function(r){wg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var sJ=25,cJ=200,fJ=function(){};function pJ(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,i=!1,o=null,a=null,l=null,c=0,f=!1,p=()=>{var Z=iu.get(t);if(iu.delete(t),Z){var{selection:H}=t,K=lM(t,Z);K&&(!H||!W.equals(K,H))&&L.select(t,K)}},d=()=>{var Z=ru.get(t);if(ru.delete(t),!!Z){if(Z.at){var H=qe.isPoint(Z.at)?xE(t,Z.at):lM(t,Z.at);if(!H)return;var K=b.range(t,H);(!t.selection||!W.equals(t.selection,K))&&L.select(t,H)}Z.run()}},g=()=>{var Z;if(a&&(clearTimeout(a),a=null),l&&(clearTimeout(l),l=null),!M()&&!C()){p();return}i||(i=!0,setTimeout(()=>i=!1)),C()&&(i="action");var H=t.selection&&b.rangeRef(t,t.selection,{affinity:"forward"});oa.set(t,t.marks),fJ("flush",ru.get(t),Or.get(t));for(var K=!!((Z=Or.get(t))!==null&&Z!==void 0&&Z.length),G;G=(me=Or.get(t))===null||me===void 0?void 0:me[0];){var me,U,te=Xi.get(t);te!==void 0&&(Xi.delete(t),t.marks=te),te&&f===!1&&(f=null);var Q=uJ(G);(!t.selection||!W.equals(t.selection,Q))&&L.select(t,Q),G.diff.text?b.insertText(t,G.diff.text):b.deleteFragment(t),Or.set(t,(U=Or.get(t))===null||U===void 0?void 0:U.filter(Se=>{var{id:D}=Se;return D!==G.id})),nJ(t,G)||(K=!1,ru.delete(t),oa.delete(t),i="action",iu.delete(t),n.cancel(),r.cancel(),H?.unref())}var E=H?.unref();if(E&&!iu.get(t)&&(!t.selection||!W.equals(E,t.selection))&&L.select(t,E),C()){d();return}K&&n(),n.flush(),r.flush(),p();var ve=oa.get(t);oa.delete(t),ve!==void 0&&(t.marks=ve,t.onChange())},m=Z=>{o&&clearTimeout(o),o=setTimeout(()=>{ml.set(t,!1),g()},sJ)},x=Z=>{ml.set(t,!0),o&&(clearTimeout(o),o=null)},S=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,K=hE.get(t);if(K){if(M()||H){K.style.display="none";return}K.style.removeProperty("display")}},T=(Z,H)=>{var K,G=(K=Or.get(t))!==null&&K!==void 0?K:[];Or.set(t,G);var me=he.leaf(t,Z),U=G.findIndex(E=>I.equals(E.path,Z));if(U<0){var te=IM(me.text,H);te&&G.push({path:Z,diff:H,id:c++}),S();return}var Q=aJ(me.text,G[U].diff,H);if(!Q){G.splice(U,1),S();return}G[U]=vg(vg({},G[U]),{},{diff:Q})},y=function(H){var{at:K}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f=!1,iu.delete(t),n.cancel(),r.cancel(),C()&&g(),ru.set(t,{at:K,run:H}),l=setTimeout(g)},w=Z=>{var H;a&&(clearTimeout(a),a=null);var{inputType:K}=Z,G=null,me=Z.dataTransfer||Z.data||void 0;f!==!1&&K!=="insertText"&&K!=="insertCompositionText"&&(f=!1);var[U]=Z.getTargetRanges();U&&(G=ne.toSlateRange(t,U,{exactMatch:!1,suppressThrow:!0}));var te=ne.getWindow(t),Q=te.getSelection();if(!G&&Q&&(U=Q,G=ne.toSlateRange(t,Q,{exactMatch:!1,suppressThrow:!0})),G=(H=G)!==null&&H!==void 0?H:t.selection,!!G){if(W.isExpanded(G)&&K.startsWith("delete")){var[E,ve]=W.edges(G),Se=he.leaf(t,E.path);if(Se.text.length===E.offset&&ve.offset===0){var D=b.next(t,{at:E.path,match:ge.isText});D&&I.equals(D[1],ve.path)&&(G={anchor:ve,focus:ve})}}if(W.isExpanded(G)&&K.startsWith("delete")){if(I.equals(G.anchor.path,G.focus.path)){var[Ee,ze]=W.edges(G);return T(G.anchor.path,{text:"",end:ze.offset,start:Ee.offset})}var Pe=K.endsWith("Backward")?"backward":"forward";return y(()=>b.deleteFragment(t,{direction:Pe}),{at:G})}switch(K){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return y(()=>b.deleteFragment(t),{at:G});case"deleteContent":case"deleteContentForward":{var{anchor:_e}=G;if(W.isCollapsed(G)){var Te=he.leaf(t,_e.path);if(_e.offset<Te.text.length)return T(_e.path,{text:"",start:_e.offset,end:_e.offset+1})}return y(()=>b.deleteForward(t),{at:G})}case"deleteContentBackward":{var Ze,{anchor:He}=G,je=vE(U)?U.isCollapsed:!!((Ze=U)!==null&&Ze!==void 0&&Ze.collapsed);return je&&W.isCollapsed(G)&&He.offset>0?T(He.path,{text:"",start:He.offset-1,end:He.offset}):y(()=>b.deleteBackward(t),{at:G})}case"deleteEntireSoftLine":return y(()=>{b.deleteBackward(t,{unit:"line"}),b.deleteForward(t,{unit:"line"})},{at:G});case"deleteHardLineBackward":return y(()=>b.deleteBackward(t,{unit:"block"}),{at:G});case"deleteSoftLineBackward":return y(()=>b.deleteBackward(t,{unit:"line"}),{at:G});case"deleteHardLineForward":return y(()=>b.deleteForward(t,{unit:"block"}),{at:G});case"deleteSoftLineForward":return y(()=>b.deleteForward(t,{unit:"line"}),{at:G});case"deleteWordBackward":return y(()=>b.deleteBackward(t,{unit:"word"}),{at:G});case"deleteWordForward":return y(()=>b.deleteForward(t,{unit:"word"}),{at:G});case"insertLineBreak":return y(()=>b.insertSoftBreak(t),{at:G});case"insertParagraph":return y(()=>b.insertBreak(t),{at:G});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(me?.constructor.name==="DataTransfer")return y(()=>ne.insertData(t,me),{at:G});if(typeof me=="string"&&me.includes(`
|
|
38
|
-
`))return y(()=>b.insertSoftBreak(t),{at:W.end(G)});var Ne=me??"";if(Xi.get(t)&&(Ne=Ne.replace("\uFEFF","")),I.equals(G.anchor.path,G.focus.path)){var[rt,br]=W.edges(G),Ot={start:rt.offset,end:br.offset,text:Ne};if(Ne&&f&&K==="insertCompositionText"){var er=f.start+f.text.search(/\S|$/),Lr=Ot.start+Ot.text.search(/\S|$/);Lr===er+1&&Ot.end===f.start+f.text.length?(Ot.start-=1,f=null,_()):f=!1}else K==="insertText"?f===null?f=Ot:f&&W.isCollapsed(G)&&f.end+f.text.length===rt.offset?f=vg(vg({},f),{},{text:f.text+Ne}):f=!1:f=!1;T(rt.path,Ot);return}return y(()=>b.insertText(t,Ne),{at:G})}}}},C=()=>!!ru.get(t),M=()=>{var Z;return!!((Z=Or.get(t))!==null&&Z!==void 0&&Z.length)},R=()=>C()||M(),A=()=>i,P=Z=>{iu.set(t,Z),a&&(clearTimeout(a),a=null);var{selection:H}=t;if(Z){var K=!H||!I.equals(H.anchor.path,Z.anchor.path),G=!H||!I.equals(H.anchor.path.slice(0,-1),Z.anchor.path.slice(0,-1));(K&&f||G)&&(f=!1),(K||!M())&&(a=setTimeout(g,cJ))}},V=()=>{(C()||!M())&&g()},J=Z=>{M()||(S(!0),setTimeout(S))},_=()=>{C()||(l=setTimeout(g))},de=Z=>{if(!(M()||C())&&Z.some(K=>AE(t,K,Z))){var H;(H=DM.get(t))===null||H===void 0||H()}};return{flush:g,scheduleFlush:_,hasPendingDiffs:M,hasPendingAction:C,hasPendingChanges:R,isFlushing:A,handleUserSelect:P,handleCompositionEnd:m,handleCompositionStart:x,handleDOMBeforeInput:w,handleKeyDown:J,handleDomMutations:de,handleInput:V}}function mJ(){var e=(0,oe.useRef)(!1);return(0,oe.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}function hJ(e,t,n){var[r]=(0,oe.useState)(()=>new MutationObserver(t));hl(()=>{r.takeRecords()}),(0,oe.useEffect)(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[])}var dJ=["node"];function fM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fM(Object(n),!0).forEach(function(r){wg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vJ={subtree:!0,childList:!0,characterData:!0};function yJ(e){var{node:t}=e,n=Zs(e,dJ);if(!Qi)return null;var r=Me(),i=mJ(),[o]=(0,oe.useState)(()=>pJ(gJ({editor:r},n)));return hJ(t,o.handleDomMutations,vJ),SE.set(r,o.scheduleFlush),i&&o.flush(),o}function xJ(){var e=Me(),t=(0,oe.useRef)(!1),n=(0,oe.useRef)(0),r=(0,oe.useCallback)(()=>{if(!t.current){t.current=!0;var i=ne.getWindow(e);i.cancelAnimationFrame(n.current),n.current=i.requestAnimationFrame(()=>{t.current=!1})}},[]);return(0,oe.useEffect)(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var bJ=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"],EJ=["text"];function pM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pM(Object(n),!0).forEach(function(r){wg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var DJ=e=>oe.default.createElement(oe.default.Fragment,null,RM(e)),LM=e=>{var{autoFocus:t,decorate:n=CJ,onDOMBeforeInput:r,placeholder:i,readOnly:o=!1,renderElement:a,renderLeaf:l,renderPlaceholder:c=U=>oe.default.createElement(wJ,Object.assign({},U)),scrollSelectionIntoView:f=SJ,style:p={},as:d="div"}=e,g=Zs(e,bJ),m=BE(),[x,S]=(0,oe.useState)(!1),T=(0,oe.useRef)(null),y=(0,oe.useRef)([]),{onUserInput:w,receivedUserInput:C}=xJ(),[,M]=(0,oe.useReducer)(U=>U+1,0);DM.set(m,M),CE.set(m,o);var R=(0,oe.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,oe.useEffect)(()=>{T.current&&t&&T.current.focus()},[t]);var A=(0,oe.useCallback)((0,xM.default)(()=>{if((Qi||!ne.isComposing(m))&&(!R.isUpdatingSelection||V!=null&&V.isFlushing())&&!R.isDraggingInternally){var U=ne.findDocumentOrShadowRoot(m),{activeElement:te}=U,Q=ne.toDOMNode(m,m),E=U.getSelection();if(te===Q?(R.latestElement=te,pl.set(m,!0)):pl.delete(m),!E)return L.deselect(m);var{anchorNode:ve,focusNode:Se}=E,D=Jr(m,ve)||mM(m,ve),Ee=Jr(m,Se)||mM(m,Se);if(D&&Ee){var ze=ne.toSlateRange(m,E,{exactMatch:!1,suppressThrow:!0});ze&&(!ne.isComposing(m)&&!(V!=null&&V.hasPendingChanges())&&!(V!=null&&V.isFlushing())?L.select(m,ze):V?.handleUserSelect(ze))}o&&(!D||!Ee)&&L.deselect(m)}},100),[o]),P=(0,oe.useMemo)(()=>(0,yM.default)(A,0),[A]),V=yJ({node:T,onDOMSelectionChange:A,scheduleOnDOMSelectionChange:P});hl(()=>{var U;T.current&&(U=kE(T.current))?(EM.set(m,U),mE.set(m,T.current),Js.set(m,T.current),Cg.set(T.current,m)):Js.delete(m);var{selection:te}=m,Q=ne.findDocumentOrShadowRoot(m),E=Q.getSelection();if(!(!E||!ne.isFocused(m)||V!=null&&V.hasPendingAction())){var ve=Pe=>{var _e=E.type!=="None";if(!(!te&&!_e)){var Te=mE.get(m),Ze=!1;if(Te.contains(E.anchorNode)&&Te.contains(E.focusNode)&&(Ze=!0),_e&&Ze&&te&&!Pe){var He=ne.toSlateRange(m,E,{exactMatch:!0,suppressThrow:!0});if(He&&W.equals(He,te)){var je;if(!R.hasMarkPlaceholder)return;var{anchorNode:Ne}=E;if(Ne!=null&&(je=Ne.parentElement)!==null&&je!==void 0&&je.hasAttribute("data-slate-mark-placeholder"))return}}if(te&&!ne.hasRange(m,te)){m.selection=ne.toSlateRange(m,E,{exactMatch:!1,suppressThrow:!0});return}R.isUpdatingSelection=!0;var rt=te&&ne.toDOMRange(m,te);return rt?(W.isBackward(te)?E.setBaseAndExtent(rt.endContainer,rt.endOffset,rt.startContainer,rt.startOffset):E.setBaseAndExtent(rt.startContainer,rt.startOffset,rt.endContainer,rt.endOffset),f(m,rt)):E.removeAllRanges(),rt}},Se=ve(),D=V?.isFlushing()==="action";if(!Qi||!D){setTimeout(()=>{if(Se&&yE){var Pe=ne.toDOMNode(m,m);Pe.focus()}R.isUpdatingSelection=!1});return}var Ee=null,ze=requestAnimationFrame(()=>{if(D){var Pe=_e=>{try{var Te=ne.toDOMNode(m,m);Te.focus(),ve(_e)}catch{}};Pe(),Ee=setTimeout(()=>{Pe(!0),R.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(ze),Ee&&clearTimeout(Ee)}}});var J=(0,oe.useCallback)(U=>{if(w(),!o&&Jr(m,U.target)&&!kJ(U,r)){var te;if(V)return V.handleDOMBeforeInput(U);P.flush(),A.flush();var{selection:Q}=m,{inputType:E}=U,ve=U.dataTransfer||U.data||void 0,Se=E==="insertCompositionText"||E==="deleteCompositionText";if(Se&&ne.isComposing(m))return;var D=!1;if(E==="insertText"&&Q&&W.isCollapsed(Q)&&U.data&&U.data.length===1&&/[a-z ]/i.test(U.data)&&Q.anchor.offset!==0){var Ee,ze;D=!0,m.marks&&(D=!1);var{anchor:Pe}=Q,[_e,Te]=ne.toDOMPoint(m,Pe),Ze=(Ee=_e.parentElement)===null||Ee===void 0?void 0:Ee.closest("a"),He=ne.getWindow(m);if(D&&Ze&&ne.hasDOMNode(m,Ze)){var je,Ne=He?.document.createTreeWalker(Ze,NodeFilter.SHOW_TEXT).lastChild();Ne===_e&&((je=Ne.textContent)===null||je===void 0?void 0:je.length)===Te&&(D=!1)}if(D&&_e.parentElement&&(He==null||(ze=He.getComputedStyle(_e.parentElement))===null||ze===void 0?void 0:ze.whiteSpace)==="pre"){var rt=b.above(m,{at:Pe.path,match:ln=>b.isBlock(m,ln)});rt&&he.string(rt[0]).includes(" ")&&(D=!1)}}if(!E.startsWith("delete")||E.startsWith("deleteBy")){var[br]=U.getTargetRanges();if(br){var Ot=ne.toSlateRange(m,br,{exactMatch:!1,suppressThrow:!1});if(!Q||!W.equals(Q,Ot)){D=!1;var er=!Se&&m.selection&&b.rangeRef(m,m.selection);L.select(m,Ot),er&&_p.set(m,er)}}}if(Se)return;if(D||U.preventDefault(),Q&&W.isExpanded(Q)&&E.startsWith("delete")){var Lr=E.endsWith("Backward")?"backward":"forward";b.deleteFragment(m,{direction:Lr});return}switch(E){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{b.deleteFragment(m);break}case"deleteContent":case"deleteContentForward":{b.deleteForward(m);break}case"deleteContentBackward":{b.deleteBackward(m);break}case"deleteEntireSoftLine":{b.deleteBackward(m,{unit:"line"}),b.deleteForward(m,{unit:"line"});break}case"deleteHardLineBackward":{b.deleteBackward(m,{unit:"block"});break}case"deleteSoftLineBackward":{b.deleteBackward(m,{unit:"line"});break}case"deleteHardLineForward":{b.deleteForward(m,{unit:"block"});break}case"deleteSoftLineForward":{b.deleteForward(m,{unit:"line"});break}case"deleteWordBackward":{b.deleteBackward(m,{unit:"word"});break}case"deleteWordForward":{b.deleteForward(m,{unit:"word"});break}case"insertLineBreak":b.insertSoftBreak(m);break;case"insertParagraph":{b.insertBreak(m);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{E==="insertFromComposition"&&ne.isComposing(m)&&(S(!1),ml.set(m,!1)),ve?.constructor.name==="DataTransfer"?ne.insertData(m,ve):typeof ve=="string"&&(D?y.current.push(()=>b.insertText(m,ve)):b.insertText(m,ve));break}}var Rn=(te=_p.get(m))===null||te===void 0?void 0:te.unref();_p.delete(m),Rn&&(!m.selection||!W.equals(m.selection,Rn))&&L.select(m,Rn)}},[o,r]);hl(()=>(T.current&&nu&&T.current.addEventListener("beforeinput",J),()=>{T.current&&nu&&T.current.removeEventListener("beforeinput",J)}),[J]),hl(()=>{var U=ne.getWindow(m);return U.document.addEventListener("selectionchange",P),()=>{U.document.removeEventListener("selectionchange",P)}},[P]);var _=n([m,[]]);if(i&&m.children.length===1&&Array.from(he.texts(m)).length===1&&he.string(m)===""&&!x){var de=b.start(m,[]);_.push({[ec]:!0,placeholder:i,anchor:de,focus:de})}var{marks:Z}=m;if(R.hasMarkPlaceholder=!1,m.selection&&W.isCollapsed(m.selection)&&Z){var{anchor:H}=m.selection,K=he.leaf(m,H.path),G=Zs(K,EJ);if(!ge.equals(K,Z,{loose:!0})){R.hasMarkPlaceholder=!0;var me=Object.fromEntries(Object.keys(G).map(U=>[U,null]));_.push(yg(yg(yg({[wM]:!0},me),Z),{},{anchor:H,focus:H}))}}return(0,oe.useEffect)(()=>{setTimeout(()=>{var{selection:U}=m;if(U){var{anchor:te}=U,Q=he.leaf(m,te.path);if(Z&&!ge.equals(Q,Z,{loose:!0})){Xi.set(m,Z);return}}Xi.delete(m)})}),oe.default.createElement(FM.Provider,{value:o},oe.default.createElement(OM.Provider,{value:n},oe.default.createElement(tJ,{node:T,receivedUserInput:C},oe.default.createElement(d,Object.assign({role:o?void 0:"textbox","aria-multiline":o?void 0:!0},g,{spellCheck:nu||!Eg?g.spellCheck:!1,autoCorrect:nu||!Eg?g.autoCorrect:"false",autoCapitalize:nu||!Eg?g.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!o,zindex:-1,suppressContentEditableWarning:!0,ref:T,style:yg({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},p),onBeforeInput:(0,oe.useCallback)(U=>{if(!nu&&!o&&!Br(U,g.onBeforeInput)&&Jr(m,U.target)&&(U.preventDefault(),!ne.isComposing(m))){var te=U.data;b.insertText(m,te)}},[o]),onInput:(0,oe.useCallback)(U=>{if(V){V.handleInput();return}for(var te of y.current)te();y.current=[]},[]),onBlur:(0,oe.useCallback)(U=>{if(!(o||R.isUpdatingSelection||!Jr(m,U.target)||Br(U,g.onBlur))){var te=ne.findDocumentOrShadowRoot(m);if(R.latestElement!==te.activeElement){var{relatedTarget:Q}=U,E=ne.toDOMNode(m,m);if(Q!==E&&!(Mi(Q)&&Q.hasAttribute("data-slate-spacer"))){if(Q!=null&&dl(Q)&&ne.hasDOMNode(m,Q)){var ve=ne.toSlateNode(m,Q);if(ye.isElement(ve)&&!m.isVoid(ve))return}if(cE){var Se=te.getSelection();Se?.removeAllRanges()}pl.delete(m)}}}},[o,g.onBlur]),onClick:(0,oe.useCallback)(U=>{if(Qs(m,U.target)&&!Br(U,g.onClick)&&dl(U.target)){var te=ne.toSlateNode(m,U.target),Q=ne.findPath(m,te);if(!b.hasPath(m,Q)||he.get(m,Q)!==te)return;if(U.detail===YZ&&Q.length>=1){var E=Q;if(!b.isBlock(m,te)){var ve,Se=b.above(m,{match:Ze=>b.isBlock(m,Ze),at:Q});E=(ve=Se?.[1])!==null&&ve!==void 0?ve:Q.slice(0,1)}var D=b.range(m,E);L.select(m,D);return}if(o)return;var Ee=b.start(m,Q),ze=b.end(m,Q),Pe=b.void(m,{at:Ee}),_e=b.void(m,{at:ze});if(Pe&&_e&&I.equals(Pe[1],_e[1])){var Te=b.range(m,Ee);L.select(m,Te)}}},[o,g.onClick]),onCompositionEnd:(0,oe.useCallback)(U=>{if(Jr(m,U.target)){if(ne.isComposing(m)&&(S(!1),ml.set(m,!1)),V?.handleCompositionEnd(U),Br(U,g.onCompositionEnd)||Qi)return;if(!cE&&!RZ&&!BZ&&!FZ&&!IZ&&!_Z&&U.data){var te=Xi.get(m);Xi.delete(m),te!==void 0&&(oa.set(m,m.marks),m.marks=te),b.insertText(m,U.data);var Q=oa.get(m);oa.delete(m),Q!==void 0&&(m.marks=Q)}}},[g.onCompositionEnd]),onCompositionUpdate:(0,oe.useCallback)(U=>{Jr(m,U.target)&&!Br(U,g.onCompositionUpdate)&&(ne.isComposing(m)||(S(!0),ml.set(m,!0)))},[g.onCompositionUpdate]),onCompositionStart:(0,oe.useCallback)(U=>{if(Jr(m,U.target)){if(V?.handleCompositionStart(U),Br(U,g.onCompositionStart)||Qi)return;S(!0);var{selection:te}=m;if(te){if(W.isExpanded(te)){b.deleteFragment(m);return}var Q=b.above(m,{match:Se=>b.isInline(m,Se),mode:"highest"});if(Q){var[,E]=Q;if(b.isEnd(m,te.anchor,E)){var ve=b.after(m,E);L.setSelection(m,{anchor:ve,focus:ve})}}}}},[g.onCompositionStart]),onCopy:(0,oe.useCallback)(U=>{Jr(m,U.target)&&!Br(U,g.onCopy)&&(U.preventDefault(),ne.setFragmentData(m,U.clipboardData,"copy"))},[g.onCopy]),onCut:(0,oe.useCallback)(U=>{if(!o&&Jr(m,U.target)&&!Br(U,g.onCut)){U.preventDefault(),ne.setFragmentData(m,U.clipboardData,"cut");var{selection:te}=m;if(te)if(W.isExpanded(te))b.deleteFragment(m);else{var Q=he.parent(m,te.anchor.path);b.isVoid(m,Q)&&L.delete(m)}}},[o,g.onCut]),onDragOver:(0,oe.useCallback)(U=>{if(Qs(m,U.target)&&!Br(U,g.onDragOver)){var te=ne.toSlateNode(m,U.target);b.isVoid(m,te)&&U.preventDefault()}},[g.onDragOver]),onDragStart:(0,oe.useCallback)(U=>{if(!o&&Qs(m,U.target)&&!Br(U,g.onDragStart)){var te=ne.toSlateNode(m,U.target),Q=ne.findPath(m,te),E=b.isVoid(m,te)||b.void(m,{at:Q,voids:!0});if(E){var ve=b.range(m,Q);L.select(m,ve)}R.isDraggingInternally=!0,ne.setFragmentData(m,U.dataTransfer,"drag")}},[o,g.onDragStart]),onDrop:(0,oe.useCallback)(U=>{if(!o&&Qs(m,U.target)&&!Br(U,g.onDrop)){U.preventDefault();var te=m.selection,Q=ne.findEventRange(m,U),E=U.dataTransfer;L.select(m,Q),R.isDraggingInternally&&te&&!W.equals(te,Q)&&!b.void(m,{at:Q,voids:!0})&&L.delete(m,{at:te}),ne.insertData(m,E),ne.isFocused(m)||ne.focus(m)}R.isDraggingInternally=!1},[o,g.onDrop]),onDragEnd:(0,oe.useCallback)(U=>{!o&&R.isDraggingInternally&&g.onDragEnd&&Qs(m,U.target)&&g.onDragEnd(U),R.isDraggingInternally=!1},[o,g.onDragEnd]),onFocus:(0,oe.useCallback)(U=>{if(!o&&!R.isUpdatingSelection&&Jr(m,U.target)&&!Br(U,g.onFocus)){var te=ne.toDOMNode(m,m),Q=ne.findDocumentOrShadowRoot(m);if(R.latestElement=Q.activeElement,yE&&U.target!==te){te.focus();return}pl.set(m,!0)}},[o,g.onFocus]),onKeyDown:(0,oe.useCallback)(U=>{if(!o&&Jr(m,U.target)){V?.handleKeyDown(U);var{nativeEvent:te}=U;if(ne.isComposing(m)&&te.isComposing===!1&&(ml.set(m,!1),S(!1)),Br(U,g.onKeyDown)||ne.isComposing(m))return;var{selection:Q}=m,E=m.children[Q!==null?Q.focus.path[0]:0],ve=(0,EE.default)(he.string(E))==="rtl";if(Yt.isRedo(te)){U.preventDefault();var Se=m;typeof Se.redo=="function"&&Se.redo();return}if(Yt.isUndo(te)){U.preventDefault();var D=m;typeof D.undo=="function"&&D.undo();return}if(Yt.isMoveLineBackward(te)){U.preventDefault(),L.move(m,{unit:"line",reverse:!0});return}if(Yt.isMoveLineForward(te)){U.preventDefault(),L.move(m,{unit:"line"});return}if(Yt.isExtendLineBackward(te)){U.preventDefault(),L.move(m,{unit:"line",edge:"focus",reverse:!0});return}if(Yt.isExtendLineForward(te)){U.preventDefault(),L.move(m,{unit:"line",edge:"focus"});return}if(Yt.isMoveBackward(te)){U.preventDefault(),Q&&W.isCollapsed(Q)?L.move(m,{reverse:!ve}):L.collapse(m,{edge:"start"});return}if(Yt.isMoveForward(te)){U.preventDefault(),Q&&W.isCollapsed(Q)?L.move(m,{reverse:ve}):L.collapse(m,{edge:"end"});return}if(Yt.isMoveWordBackward(te)){U.preventDefault(),Q&&W.isExpanded(Q)&&L.collapse(m,{edge:"focus"}),L.move(m,{unit:"word",reverse:!ve});return}if(Yt.isMoveWordForward(te)){U.preventDefault(),Q&&W.isExpanded(Q)&&L.collapse(m,{edge:"focus"}),L.move(m,{unit:"word",reverse:ve});return}if(nu){if((AM||cE)&&Q&&(Yt.isDeleteBackward(te)||Yt.isDeleteForward(te))&&W.isCollapsed(Q)){var Ee=he.parent(m,Q.anchor.path);if(ye.isElement(Ee)&&b.isVoid(m,Ee)&&(b.isInline(m,Ee)||b.isBlock(m,Ee))){U.preventDefault(),b.deleteBackward(m,{unit:"block"});return}}}else{if(Yt.isBold(te)||Yt.isItalic(te)||Yt.isTransposeCharacter(te)){U.preventDefault();return}if(Yt.isSoftBreak(te)){U.preventDefault(),b.insertSoftBreak(m);return}if(Yt.isSplitBlock(te)){U.preventDefault(),b.insertBreak(m);return}if(Yt.isDeleteBackward(te)){U.preventDefault(),Q&&W.isExpanded(Q)?b.deleteFragment(m,{direction:"backward"}):b.deleteBackward(m);return}if(Yt.isDeleteForward(te)){U.preventDefault(),Q&&W.isExpanded(Q)?b.deleteFragment(m,{direction:"forward"}):b.deleteForward(m);return}if(Yt.isDeleteLineBackward(te)){U.preventDefault(),Q&&W.isExpanded(Q)?b.deleteFragment(m,{direction:"backward"}):b.deleteBackward(m,{unit:"line"});return}if(Yt.isDeleteLineForward(te)){U.preventDefault(),Q&&W.isExpanded(Q)?b.deleteFragment(m,{direction:"forward"}):b.deleteForward(m,{unit:"line"});return}if(Yt.isDeleteWordBackward(te)){U.preventDefault(),Q&&W.isExpanded(Q)?b.deleteFragment(m,{direction:"backward"}):b.deleteBackward(m,{unit:"word"});return}if(Yt.isDeleteWordForward(te)){U.preventDefault(),Q&&W.isExpanded(Q)?b.deleteFragment(m,{direction:"forward"}):b.deleteForward(m,{unit:"word"});return}}}},[o,g.onKeyDown]),onPaste:(0,oe.useCallback)(U=>{!o&&Jr(m,U.target)&&!Br(U,g.onPaste)&&(!nu||DZ(U.nativeEvent))&&(U.preventDefault(),ne.insertData(m,U.clipboardData))},[o,g.onPaste])}),oe.default.createElement(DJ,{decorations:_,node:m,renderElement:a,renderPlaceholder:c,renderLeaf:l,selection:m.selection})))))},wJ=e=>{var{attributes:t,children:n}=e;return oe.default.createElement("span",Object.assign({},t),n,Qi&&oe.default.createElement("br",null))},CJ=()=>[],SJ=(e,t)=>{if(!e.selection||e.selection&&W.isCollapsed(e.selection)){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),eM(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},Qs=(e,t)=>dl(t)&&ne.hasDOMNode(e,t),Jr=(e,t)=>dl(t)&&ne.hasDOMNode(e,t,{editable:!0}),mM=(e,t)=>{if(CE.get(e))return!1;var n=Qs(e,t)&&ne.toSlateNode(e,t);return b.isVoid(e,n)},Br=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},kJ=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},PM=(0,oe.createContext)(!1),zM=()=>(0,oe.useContext)(PM);var AJ=(0,oe.createContext)({});function TJ(e){var t=(0,oe.useRef)([]).current,n=(0,oe.useRef)({editor:e}).current,r=(0,oe.useCallback)(o=>{n.editor=o,t.forEach(a=>a(o))},[]),i=(0,oe.useMemo)(()=>({getSlate:()=>n.editor,addEventListener:o=>(t.push(o),()=>{t.splice(t.indexOf(o),1)})}),[t,n]);return{selectorContext:i,onChange:r}}var BJ=["editor","children","onChange","value"],NM=e=>{var{editor:t,children:n,onChange:r,value:i}=e,o=Zs(e,BJ),a=(0,oe.useRef)(!1),[l,c]=oe.default.useState(()=>{if(!he.isNodeList(i))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(En.stringify(i)));if(!b.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(En.stringify(t)));return t.children=i,Object.assign(t,o),{v:0,editor:t}}),{selectorContext:f,onChange:p}=TJ(t),d=(0,oe.useCallback)(()=>{r&&r(t.children),c(x=>({v:x.v+1,editor:t})),p(t)},[r]);gE.set(t,d),(0,oe.useEffect)(()=>()=>{gE.set(t,()=>{}),a.current=!0},[]);var[g,m]=(0,oe.useState)(ne.isFocused(t));return(0,oe.useEffect)(()=>{m(ne.isFocused(t))}),hl(()=>{var x=()=>m(ne.isFocused(t));return TZ?(document.addEventListener("focusin",x),document.addEventListener("focusout",x),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",x)}):(document.addEventListener("focus",x,!0),document.addEventListener("blur",x,!0),()=>{document.removeEventListener("focus",x,!0),document.removeEventListener("blur",x,!0)})},[]),oe.default.createElement(AJ.Provider,{value:f},oe.default.createElement(_M.Provider,{value:l},oe.default.createElement(TE.Provider,{value:l.editor},oe.default.createElement(PM.Provider,{value:g},n))))};var hM=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},dM=(e,t,n)=>{var r=ne.toDOMRange(e,t).getBoundingClientRect(),i=ne.toDOMRange(e,n).getBoundingClientRect();return hM(r,i)&&hM(i,r)},OJ=(e,t)=>{var n=b.range(e,W.end(t)),r=Array.from(b.positions(e,{at:t})),i=0,o=r.length,a=Math.floor(o/2);if(dM(e,b.range(e,r[i]),n))return b.range(e,r[i],n);if(r.length<2)return b.range(e,r[r.length-1],n);for(;a!==r.length&&a!==i;)dM(e,b.range(e,r[a]),n)?o=a:i=a,a=Math.floor((i+o)/2);return b.range(e,r[o],n)};function gM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gM(Object(n),!0).forEach(function(r){wg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var UM=e=>{var t=e,{apply:n,onChange:r,deleteBackward:i,addMark:o,removeMark:a}=t;return Sg.set(t,new WeakMap),t.addMark=(l,c)=>{var f,p;(f=SE.get(t))===null||f===void 0||f(),!Xi.get(t)&&(p=Or.get(t))!==null&&p!==void 0&&p.length&&Xi.set(t,null),oa.delete(t),o(l,c)},t.removeMark=l=>{var c;!Xi.get(t)&&(c=Or.get(t))!==null&&c!==void 0&&c.length&&Xi.set(t,null),oa.delete(t),a(l)},t.deleteBackward=l=>{if(l!=="line")return i(l);if(t.selection&&W.isCollapsed(t.selection)){var c=b.above(t,{match:g=>b.isBlock(t,g),at:t.selection});if(c){var[,f]=c,p=b.range(t,f,t.selection.anchor),d=OJ(t,p);W.isCollapsed(d)||L.delete(t,{at:d})}}},t.apply=l=>{var c=[],f=Or.get(t);if(f!=null&&f.length){var p=f.map(M=>lJ(M,l)).filter(Boolean);Or.set(t,p)}var d=iu.get(t);d&&iu.set(t,sM(t,d,l));var g=ru.get(t);if(g!=null&&g.at){var m=qe.isPoint(g?.at)?bE(t,g.at,l):sM(t,g.at,l);ru.set(t,m?vM(vM({},g),{},{at:m}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...xg(t,l.path));break}case"set_selection":{var x;(x=_p.get(t))===null||x===void 0||x.unref(),_p.delete(t);break}case"insert_node":case"remove_node":{c.push(...xg(t,I.parent(l.path)));break}case"merge_node":{var S=I.previous(l.path);c.push(...xg(t,S));break}case"move_node":{var T=I.common(I.parent(l.path),I.parent(l.newPath));c.push(...xg(t,T));break}}n(l);for(var[y,w]of c){var[C]=b.node(t,y);dE.set(C,w)}},t.setFragmentData=l=>{var{selection:c}=t;if(c){var[f,p]=W.edges(c),d=b.void(t,{at:f.path}),g=b.void(t,{at:p.path});if(!(W.isCollapsed(c)&&!d)){var m=ne.toDOMRange(t,c),x=m.cloneContents(),S=x.childNodes[0];if(x.childNodes.forEach(V=>{V.textContent&&V.textContent.trim()!==""&&(S=V)}),g){var[T]=g,y=m.cloneRange(),w=ne.toDOMNode(t,T);y.setEndAfter(w),x=y.cloneContents()}if(d&&(S=x.querySelector("[data-slate-spacer]")),Array.from(x.querySelectorAll("[data-slate-zero-width]")).forEach(V=>{var J=V.getAttribute("data-slate-zero-width")==="n";V.textContent=J?`
|
|
39
|
-
`:""}),
|
|
40
|
-
`:" ")+
|
|
41
|
-
`)}function
|
|
42
|
-
`&&
|
|
43
|
-
`}function
|
|
44
|
-
`,encode:["`"],...
|
|
45
|
-
`),
|
|
46
|
-
`)),p+=
|
|
47
|
-
`,...c.current()}))),
|
|
34
|
+
`))&&f--}if(ki&&!c&&!r){var j=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(j&&W.hasDOMNode(e,j,{editable:!0})){var ue=W.toSlateNode(e,j),{path:P,offset:pe}=y.start(e,W.findPath(e,ue));return j.querySelector("[data-slate-leaf]")||(pe=u),{path:P,offset:pe}}}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var ae=W.toSlateNode(e,c),G=W.findPath(e,ae);return{path:G,offset:f}},toSlateRange(e,t,n){var{exactMatch:r,suppressThrow:i}=n,a=$E(t)?t.anchorNode:t.startContainer,u,s,c,f,p;if(a&&($E(t)?(u=t.anchorNode,s=t.anchorOffset,c=t.focusNode,f=t.focusOffset,aO&&xK()?p=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:p=t.isCollapsed):(u=t.startContainer,s=t.startOffset,c=t.endContainer,f=t.endOffset,p=t.collapsed)),u==null||c==null||s==null||f==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var h=W.toSlatePoint(e,[u,s],{exactMatch:r,suppressThrow:i});if(!h)return null;var g=p?h:W.toSlatePoint(e,[c,f],{exactMatch:r,suppressThrow:i});if(!g)return null;var d={anchor:h,focus:g};return V.isExpanded(d)&&V.isForward(d)&&si(c)&&y.void(e,{at:d.focus,mode:"highest"})&&(d=y.unhangRange(e,d,{voids:!0})),d},hasRange(e,t){var{anchor:n,focus:r}=t;return y.hasPath(e,n.path)&&y.hasPath(e,r.path)},androidScheduleFlush(e){var t;(t=JE.get(e))===null||t===void 0||t()},androidPendingDiffs(e){return fr.get(e)}},qu=Ah?J.useLayoutEffect:J.useEffect,FK=["anchor","focus"],_K=["anchor","focus"],zK=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),oO=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n],a=bs(r,FK),u=bs(i,_K);if(!V.equals(r,i)||r[Ds]!==i[Ds]||!zK(a,u))return!1}return!0},LK=e=>{var{isLast:t,leaf:n,parent:r,text:i}=e,a=Se(),u=W.findPath(a,i),s=F.parent(u),c=n[tO]===!0;return a.isVoid(r)?J.default.createElement(NE,{length:ce.string(r).length}):n.text===""&&r.children[r.children.length-1]===i&&!a.isInline(r)&&y.string(a,s)===""?J.default.createElement(NE,{isLineBreak:!0,isMarkPlaceholder:c}):n.text===""?J.default.createElement(NE,{isMarkPlaceholder:c}):t&&n.text.slice(-1)===`
|
|
35
|
+
`?J.default.createElement(N3,{isTrailing:!0,text:n.text}):J.default.createElement(N3,{text:n.text})},N3=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,J.useRef)(null),i=()=>"".concat(t??"").concat(n?`
|
|
36
|
+
`:"");return qu(()=>{var a=i();r.current&&r.current.textContent!==a&&(r.current.textContent=a)}),r.current?J.default.createElement("span",{"data-slate-string":!0,ref:r}):J.default.createElement("span",{"data-slate-string":!0,ref:r},i())},NE=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,i={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(i["data-slate-mark-placeholder"]=!0),J.default.createElement("span",Object.assign({},i),!ki||!n?"\uFEFF":null,n?J.default.createElement("br",null):null)},nb=(0,J.createContext)(null),Se=()=>{var e=(0,J.useContext)(nb);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},PK=e=>{var{leaf:t,isLast:n,text:r,parent:i,renderPlaceholder:a,renderLeaf:u=g=>J.default.createElement(NK,Object.assign({},g))}=e,s=(0,J.useRef)(null),c=Se();(0,J.useEffect)(()=>{var g=s?.current,d=W.toDOMNode(c,c);if(!(!g||!d))return d.style.minHeight="".concat(g.clientHeight,"px"),qE.set(c,g),()=>{d.style.minHeight="auto",qE.delete(c)}},[s,t]);var f=J.default.createElement(LK,{isLast:n,leaf:t,parent:i,text:r});if(t[Ds]){var p={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:s}};f=J.default.createElement(J.default.Fragment,null,a(p),f)}var h={"data-slate-leaf":!0};return u({attributes:h,children:f,leaf:t,text:r})},IK=J.default.memo(PK,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&fe.equals(t.leaf,e.leaf)&&t.leaf[Ds]===e.leaf[Ds]),NK=e=>{var{attributes:t,children:n}=e;return J.default.createElement("span",Object.assign({},t),n)},UK=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:i,renderLeaf:a,text:u}=e,s=Se(),c=(0,J.useRef)(null),f=fe.decorations(u,t),p=W.findKey(s,u),h=[],g=0;g<f.length;g++){var d=f[g];h.push(J.default.createElement(IK,{isLast:n&&g===f.length-1,key:"".concat(p.id,"-").concat(g),renderPlaceholder:i,leaf:d,text:u,parent:r,renderLeaf:a}))}return qu(()=>{var b=Bh.get(s);c.current?(b?.set(p,c.current),xs.set(u,c.current),kh.set(c.current,u)):(b?.delete(p),xs.delete(u))}),J.default.createElement("span",{"data-slate-node":"text",ref:c},h)},uO=J.default.memo(UK,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&oO(t.decorations,e.decorations)),HK=e=>{var{decorations:t,element:n,renderElement:r=D=>J.default.createElement(jK,Object.assign({},D)),renderPlaceholder:i,renderLeaf:a,selection:u}=e,s=Se(),c=$K(),f=s.isInline(n),p=W.findKey(s,n),h=(0,J.useCallback)(D=>{var C=Bh.get(s);D?(C?.set(p,D),xs.set(n,D),kh.set(D,n)):(C?.delete(p),xs.delete(n))},[s,p,n]),g=cO({decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:u}),d={"data-slate-node":"element",ref:h};if(f&&(d["data-slate-inline"]=!0),!f&&y.hasInlines(s,n)){var b=ce.string(n),A=(0,YE.default)(b);A==="rtl"&&(d.dir=A)}if(y.isVoid(s,n)){d["data-slate-void"]=!0,!c&&f&&(d.contentEditable=!1);var O=f?"span":"div",[[E]]=ce.texts(n);g=J.default.createElement(O,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},J.default.createElement(uO,{renderPlaceholder:i,decorations:[],isLast:!1,parent:n,text:E})),QE.set(E,0),XE.set(E,n)}return r({attributes:d,children:g,element:n})},qK=J.default.memo(HK,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&oO(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&V.equals(e.selection,t.selection))),jK=e=>{var{attributes:t,children:n,element:r}=e,i=Se(),a=i.isInline(r)?"span":"div";return J.default.createElement(a,Object.assign({},t,{style:{position:"relative"}}),n)},lO=(0,J.createContext)(()=>[]),VK=()=>(0,J.useContext)(lO),sO=(0,J.createContext)(!1),ci=()=>(0,J.useContext)(sO),cO=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:u}=e,s=VK(),c=Se(),f=W.findPath(c,n),p=[],h=me.isElement(n)&&!c.isInline(n)&&y.hasInlines(c,n),g=0;g<n.children.length;g++){var d=f.concat(g),b=n.children[g],A=W.findKey(c,b),O=y.range(c,d),E=u&&V.intersection(O,u),D=s([b,d]);for(var C of t){var M=V.intersection(C,O);M&&D.push(M)}me.isElement(b)?p.push(J.default.createElement(sO.Provider,{key:"provider-".concat(A.id),value:!!E},J.default.createElement(qK,{decorations:D,element:b,key:A.id,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:E}))):p.push(J.default.createElement(uO,{decorations:D,key:A.id,isLast:h&&g===n.children.length-1,parent:n,renderPlaceholder:i,renderLeaf:a,text:b})),QE.set(b,g),XE.set(b,n)}return p},fO=(0,J.createContext)(!1),$K=()=>(0,J.useContext)(fO),mO=(0,J.createContext)(null),rb=()=>{var e=(0,J.useContext)(mO);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};var GK=3,WK={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},KK={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},YK={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Rt=e=>{var t=WK[e],n=KK[e],r=YK[e],i=t&&(0,wh.isKeyHotkey)(t),a=n&&(0,wh.isKeyHotkey)(n),u=r&&(0,wh.isKeyHotkey)(r);return s=>!!(i&&i(s)||I3&&a&&a(s)||!I3&&u&&u(s))},It={isBold:Rt("bold"),isCompose:Rt("compose"),isMoveBackward:Rt("moveBackward"),isMoveForward:Rt("moveForward"),isDeleteBackward:Rt("deleteBackward"),isDeleteForward:Rt("deleteForward"),isDeleteLineBackward:Rt("deleteLineBackward"),isDeleteLineForward:Rt("deleteLineForward"),isDeleteWordBackward:Rt("deleteWordBackward"),isDeleteWordForward:Rt("deleteWordForward"),isExtendBackward:Rt("extendBackward"),isExtendForward:Rt("extendForward"),isExtendLineBackward:Rt("extendLineBackward"),isExtendLineForward:Rt("extendLineForward"),isItalic:Rt("italic"),isMoveLineBackward:Rt("moveLineBackward"),isMoveLineForward:Rt("moveLineForward"),isMoveWordBackward:Rt("moveWordBackward"),isMoveWordForward:Rt("moveWordForward"),isRedo:Rt("redo"),isSoftBreak:Rt("insertSoftBreak"),isSplitBlock:Rt("splitBlock"),isTransposeCharacter:Rt("transposeCharacter"),isUndo:Rt("undo")},QK=(e,t)=>{var n=[],r=()=>{n=[]},i=u=>{if(t.current){var s=u.filter(c=>tb(e,c,u));n.push(...s)}};function a(){n.reverse().forEach(u=>{if(u.type==="characterData"){u.target.textContent=u.oldValue;return}u.removedNodes.forEach(s=>{u.target.insertBefore(s,u.nextSibling)}),u.addedNodes.forEach(s=>{u.target.removeChild(s)})}),r()}return{registerMutations:i,restoreDOM:a,clear:r}},XK={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0},Sh=class extends J.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,XK)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=QK(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,i=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(i!=null&&i.length){var a;(a=this.manager)===null||a===void 0||a.registerMutations(i)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}};Sh.contextType=nb;var ZK=ki?Sh:e=>{var{children:t}=e;return J.default.createElement(J.default.Fragment,null,t)};function JK(e,t){var{path:n,diff:r}=t;if(!y.hasPath(e,n))return!1;var i=ce.get(e,n);if(!fe.isText(i))return!1;if(r.start!==i.text.length||r.text.length===0)return i.text.slice(r.start,r.start+r.text.length)===r.text;var a=F.next(n);if(!y.hasPath(e,a))return!1;var u=ce.get(e,a);return fe.isText(u)&&u.text.startsWith(r.text)}function eY(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((i,a)=>i.slice(0,a.start)+a.text+i.slice(a.end),e)}function tY(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}function nY(e,t,n){for(var r=Math.min(e.length,t.length,n),i=0;i<r;i++)if(e.charAt(e.length-i-1)!==t.charAt(t.length-i-1))return i;return r}function pO(e,t){var{start:n,end:r,text:i}=t,a=e.slice(n,r),u=tY(a,i),s=Math.min(a.length-u,i.length-u),c=nY(a,i,s),f={start:n+u,end:r-c,text:i.slice(u,i.length-c)};return f.start===f.end&&f.text.length===0?null:f}function rY(e,t,n){var r=Math.min(t.start,n.start),i=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),a=eY(e,t,n),u=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-i),s=a.slice(r,u),c=Math.max(t.end,n.end-t.text.length+(t.end-t.start));return pO(e,{start:r,end:c,text:s})}function iY(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function WE(e,t){var{path:n,offset:r}=t;if(!y.hasPath(e,n))return null;var i=ce.get(e,n);if(!fe.isText(i))return null;var a=y.above(e,{match:s=>y.isBlock(e,s),at:n});if(!a)return null;for(;r>i.text.length;){var u=y.next(e,{at:n,match:fe.isText});if(!u||!F.isDescendant(u[1],a[1]))return null;r-=i.text.length,i=u[0],n=u[1]}return{path:n,offset:r}}function U3(e,t){var n=WE(e,t.anchor);if(!n)return null;if(V.isCollapsed(t))return{anchor:n,focus:n};var r=WE(e,t.focus);return r?{anchor:n,focus:r}:null}function KE(e,t,n){var r=fr.get(e),i=r?.find(p=>{var{path:h}=p;return F.equals(h,t.path)});if(!i||t.offset<=i.diff.start)return Me.transform(t,n,{affinity:"backward"});var{diff:a}=i;if(t.offset<=a.start+a.text.length){var u={path:t.path,offset:a.start},s=Me.transform(u,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-a.start}:null}var c={path:t.path,offset:t.offset-a.text.length+a.end-a.start},f=Me.transform(c,n,{affinity:"backward"});return f?n.type==="split_node"&&F.equals(n.path,t.path)&&c.offset<n.position&&a.start<n.position?f:{path:f.path,offset:f.offset+a.text.length-a.end+a.start}:null}function H3(e,t,n){var r=KE(e,t.anchor,n);if(!r)return null;if(V.isCollapsed(t))return{anchor:r,focus:r};var i=KE(e,t.focus,n);return i?{anchor:r,focus:i}:null}function aY(e,t){var{path:n,diff:r,id:i}=e;switch(t.type){case"insert_text":return!F.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:i,path:n};case"remove_text":return!F.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:i,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:i,path:n};case"split_node":return!F.equals(t.path,n)||t.position>=r.end?{diff:r,id:i,path:F.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:i,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:i,path:F.transform(n,t,{affinity:"forward"})};case"merge_node":return F.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:i,path:F.transform(n,t)}:{diff:r,id:i,path:F.transform(n,t)}}var a=F.transform(n,t);return a?{diff:r,path:a,id:i}:null}function q3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q3(Object(n),!0).forEach(function(r){Th(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oY=25,uY=200,lY=function(){};function sY(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,i=!1,a=null,u=null,s=null,c=0,f=!1,p=()=>{var ae=Lo.get(t);if(Lo.delete(t),ae){var{selection:G}=t,oe=U3(t,ae);oe&&(!G||!V.equals(oe,G))&&_.select(t,oe)}},h=()=>{var ae=zo.get(t);if(zo.delete(t),!!ae){if(ae.at){var G=Me.isPoint(ae.at)?WE(t,ae.at):U3(t,ae.at);if(!G)return;var oe=y.range(t,G);(!t.selection||!V.equals(t.selection,oe))&&_.select(t,G)}ae.run()}},g=()=>{var ae;if(u&&(clearTimeout(u),u=null),s&&(clearTimeout(s),s=null),!M()&&!C()){p();return}i||(i=!0,setTimeout(()=>i=!1)),C()&&(i="action");var G=t.selection&&y.rangeRef(t,t.selection,{affinity:"forward"});Na.set(t,t.marks),lY("flush",zo.get(t),fr.get(t));for(var oe=!!((ae=fr.get(t))!==null&&ae!==void 0&&ae.length),Y;Y=(ve=fr.get(t))===null||ve===void 0?void 0:ve[0];){var ve,U,ee=Ti.get(t);ee!==void 0&&(Ti.delete(t),t.marks=ee),ee&&f===!1&&(f=null);var Q=iY(Y);(!t.selection||!V.equals(t.selection,Q))&&_.select(t,Q),Y.diff.text?y.insertText(t,Y.diff.text):y.deleteFragment(t),fr.set(t,(U=fr.get(t))===null||U===void 0?void 0:U.filter(Ae=>{var{id:k}=Ae;return k!==Y.id})),JK(t,Y)||(oe=!1,zo.delete(t),Na.delete(t),i="action",Lo.delete(t),n.cancel(),r.cancel(),G?.unref())}var T=G?.unref();if(T&&!Lo.get(t)&&(!t.selection||!V.equals(T,t.selection))&&_.select(t,T),C()){h();return}oe&&n(),n.flush(),r.flush(),p();var he=Na.get(t);Na.delete(t),he!==void 0&&(t.marks=he,t.onChange())},d=ae=>{a&&clearTimeout(a),a=setTimeout(()=>{Hu.set(t,!1),g()},oY)},b=ae=>{Hu.set(t,!0),a&&(clearTimeout(a),a=null)},A=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,oe=qE.get(t);if(oe){if(M()||G){oe.style.display="none";return}oe.style.removeProperty("display")}},O=(ae,G)=>{var oe,Y=(oe=fr.get(t))!==null&&oe!==void 0?oe:[];fr.set(t,Y);var ve=ce.leaf(t,ae),U=Y.findIndex(T=>F.equals(T.path,ae));if(U<0){var ee=pO(ve.text,G);ee&&Y.push({path:ae,diff:G,id:c++}),A();return}var Q=rY(ve.text,Y[U].diff,G);if(!Q){Y.splice(U,1),A();return}Y[U]=xh(xh({},Y[U]),{},{diff:Q})},E=function(G){var{at:oe}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f=!1,Lo.delete(t),n.cancel(),r.cancel(),C()&&g(),zo.set(t,{at:oe,run:G}),s=setTimeout(g)},D=ae=>{var G;u&&(clearTimeout(u),u=null);var{inputType:oe}=ae,Y=null,ve=ae.dataTransfer||ae.data||void 0;f!==!1&&oe!=="insertText"&&oe!=="insertCompositionText"&&(f=!1);var[U]=ae.getTargetRanges();U&&(Y=W.toSlateRange(t,U,{exactMatch:!1,suppressThrow:!0}));var ee=W.getWindow(t),Q=ee.getSelection();if(!Y&&Q&&(U=Q,Y=W.toSlateRange(t,Q,{exactMatch:!1,suppressThrow:!0})),Y=(G=Y)!==null&&G!==void 0?G:t.selection,!!Y){if(V.isExpanded(Y)&&oe.startsWith("delete")){var[T,he]=V.edges(Y),Ae=ce.leaf(t,T.path);if(Ae.text.length===T.offset&&he.offset===0){var k=y.next(t,{at:T.path,match:fe.isText});k&&F.equals(k[1],he.path)&&(Y={anchor:he,focus:he})}}if(V.isExpanded(Y)&&oe.startsWith("delete")){if(F.equals(Y.anchor.path,Y.focus.path)){var[Ce,je]=V.edges(Y);return O(Y.anchor.path,{text:"",end:je.offset,start:Ce.offset})}var Re=oe.endsWith("Backward")?"backward":"forward";return E(()=>y.deleteFragment(t,{direction:Re}),{at:Y})}switch(oe){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return E(()=>y.deleteFragment(t),{at:Y});case"deleteContent":case"deleteContentForward":{var{anchor:Fe}=Y;if(V.isCollapsed(Y)){var Ne=ce.leaf(t,Fe.path);if(Fe.offset<Ne.text.length)return O(Fe.path,{text:"",start:Fe.offset,end:Fe.offset+1})}return E(()=>y.deleteForward(t),{at:Y})}case"deleteContentBackward":{var tt,{anchor:Xe}=Y,Ze=$E(U)?U.isCollapsed:!!((tt=U)!==null&&tt!==void 0&&tt.collapsed);return Ze&&V.isCollapsed(Y)&&Xe.offset>0?O(Xe.path,{text:"",start:Xe.offset-1,end:Xe.offset}):E(()=>y.deleteBackward(t),{at:Y})}case"deleteEntireSoftLine":return E(()=>{y.deleteBackward(t,{unit:"line"}),y.deleteForward(t,{unit:"line"})},{at:Y});case"deleteHardLineBackward":return E(()=>y.deleteBackward(t,{unit:"block"}),{at:Y});case"deleteSoftLineBackward":return E(()=>y.deleteBackward(t,{unit:"line"}),{at:Y});case"deleteHardLineForward":return E(()=>y.deleteForward(t,{unit:"block"}),{at:Y});case"deleteSoftLineForward":return E(()=>y.deleteForward(t,{unit:"line"}),{at:Y});case"deleteWordBackward":return E(()=>y.deleteBackward(t,{unit:"word"}),{at:Y});case"deleteWordForward":return E(()=>y.deleteForward(t,{unit:"word"}),{at:Y});case"insertLineBreak":return E(()=>y.insertSoftBreak(t),{at:Y});case"insertParagraph":return E(()=>y.insertBreak(t),{at:Y});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(ve?.constructor.name==="DataTransfer")return E(()=>W.insertData(t,ve),{at:Y});if(typeof ve=="string"&&ve.includes(`
|
|
37
|
+
`))return E(()=>y.insertSoftBreak(t),{at:V.end(Y)});var He=ve??"";if(Ti.get(t)&&(He=He.replace("\uFEFF","")),F.equals(Y.anchor.path,Y.focus.path)){var[it,Nr]=V.edges(Y),Ft={start:it.offset,end:Nr.offset,text:He};if(He&&f&&oe==="insertCompositionText"){var Ur=f.start+f.text.search(/\S|$/),zi=Ft.start+Ft.text.search(/\S|$/);zi===Ur+1&&Ft.end===f.start+f.text.length?(Ft.start-=1,f=null,P()):f=!1}else oe==="insertText"?f===null?f=Ft:f&&V.isCollapsed(Y)&&f.end+f.text.length===it.offset?f=xh(xh({},f),{},{text:f.text+He}):f=!1:f=!1;O(it.path,Ft);return}return E(()=>y.insertText(t,He),{at:Y})}}}},C=()=>!!zo.get(t),M=()=>{var ae;return!!((ae=fr.get(t))!==null&&ae!==void 0&&ae.length)},L=()=>C()||M(),B=()=>i,H=ae=>{Lo.set(t,ae),u&&(clearTimeout(u),u=null);var{selection:G}=t;if(ae){var oe=!G||!F.equals(G.anchor.path,ae.anchor.path),Y=!G||!F.equals(G.anchor.path.slice(0,-1),ae.anchor.path.slice(0,-1));(oe&&f||Y)&&(f=!1),(oe||!M())&&(u=setTimeout(g,uY))}},j=()=>{(C()||!M())&&g()},ue=ae=>{M()||(A(!0),setTimeout(A))},P=()=>{C()||(s=setTimeout(g))},pe=ae=>{if(!(M()||C())&&ae.some(oe=>tb(t,oe,ae))){var G;(G=eO.get(t))===null||G===void 0||G()}};return{flush:g,scheduleFlush:P,hasPendingDiffs:M,hasPendingAction:C,hasPendingChanges:L,isFlushing:B,handleUserSelect:H,handleCompositionEnd:d,handleCompositionStart:b,handleDOMBeforeInput:D,handleKeyDown:ue,handleDomMutations:pe,handleInput:j}}function cY(){var e=(0,J.useRef)(!1);return(0,J.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}function fY(e,t,n){var[r]=(0,J.useState)(()=>new MutationObserver(t));qu(()=>{r.takeRecords()}),(0,J.useEffect)(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[])}var mY=["node"];function j3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j3(Object(n),!0).forEach(function(r){Th(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var dY={subtree:!0,childList:!0,characterData:!0};function hY(e){var{node:t}=e,n=bs(e,mY);if(!ki)return null;var r=Se(),i=cY(),[a]=(0,J.useState)(()=>sY(pY({editor:r},n)));return fY(t,a.handleDomMutations,dY),JE.set(r,a.scheduleFlush),i&&a.flush(),a}function gY(){var e=Se(),t=(0,J.useRef)(!1),n=(0,J.useRef)(0),r=(0,J.useCallback)(()=>{if(!t.current){t.current=!0;var i=W.getWindow(e);i.cancelAnimationFrame(n.current),n.current=i.requestAnimationFrame(()=>{t.current=!1})}},[]);return(0,J.useEffect)(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var vY=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"],yY=["text"];function V3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V3(Object(n),!0).forEach(function(r){Th(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var EY=e=>J.default.createElement(J.default.Fragment,null,cO(e)),dO=e=>{var{autoFocus:t,decorate:n=xY,onDOMBeforeInput:r,placeholder:i,readOnly:a=!1,renderElement:u,renderLeaf:s,renderPlaceholder:c=U=>J.default.createElement(bY,Object.assign({},U)),scrollSelectionIntoView:f=DY,style:p={},as:h="div"}=e,g=bs(e,vY),d=rb(),[b,A]=(0,J.useState)(!1),O=(0,J.useRef)(null),E=(0,J.useRef)([]),{onUserInput:D,receivedUserInput:C}=gY(),[,M]=(0,J.useReducer)(U=>U+1,0);eO.set(d,M),ZE.set(d,a);var L=(0,J.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,J.useEffect)(()=>{O.current&&t&&O.current.focus()},[t]);var B=(0,J.useCallback)((0,X3.default)(()=>{if((ki||!W.isComposing(d))&&(!L.isUpdatingSelection||j!=null&&j.isFlushing())&&!L.isDraggingInternally){var U=W.findDocumentOrShadowRoot(d),{activeElement:ee}=U,Q=W.toDOMNode(d,d),T=U.getSelection();if(ee===Q?(L.latestElement=ee,Uu.set(d,!0)):Uu.delete(d),!T)return _.deselect(d);var{anchorNode:he,focusNode:Ae}=T,k=Mr(d,he)||$3(d,he),Ce=Mr(d,Ae)||$3(d,Ae);if(k&&Ce){var je=W.toSlateRange(d,T,{exactMatch:!1,suppressThrow:!0});je&&(!W.isComposing(d)&&!(j!=null&&j.hasPendingChanges())&&!(j!=null&&j.isFlushing())?_.select(d,je):j?.handleUserSelect(je))}a&&(!k||!Ce)&&_.deselect(d)}},100),[a]),H=(0,J.useMemo)(()=>(0,Q3.default)(B,0),[B]),j=hY({node:O,onDOMSelectionChange:B,scheduleOnDOMSelectionChange:H});qu(()=>{var U;O.current&&(U=eb(O.current))?(J3.set(d,U),HE.set(d,O.current),xs.set(d,O.current),kh.set(O.current,d)):xs.delete(d);var{selection:ee}=d,Q=W.findDocumentOrShadowRoot(d),T=Q.getSelection();if(!(!T||!W.isFocused(d)||j!=null&&j.hasPendingAction())){var he=Re=>{var Fe=T.type!=="None";if(!(!ee&&!Fe)){var Ne=HE.get(d),tt=!1;if(Ne.contains(T.anchorNode)&&Ne.contains(T.focusNode)&&(tt=!0),Fe&&tt&&ee&&!Re){var Xe=W.toSlateRange(d,T,{exactMatch:!0,suppressThrow:!0});if(Xe&&V.equals(Xe,ee)){var Ze;if(!L.hasMarkPlaceholder)return;var{anchorNode:He}=T;if(He!=null&&(Ze=He.parentElement)!==null&&Ze!==void 0&&Ze.hasAttribute("data-slate-mark-placeholder"))return}}if(ee&&!W.hasRange(d,ee)){d.selection=W.toSlateRange(d,T,{exactMatch:!1,suppressThrow:!0});return}L.isUpdatingSelection=!0;var it=ee&&W.toDOMRange(d,ee);return it?(V.isBackward(ee)?T.setBaseAndExtent(it.endContainer,it.endOffset,it.startContainer,it.startOffset):T.setBaseAndExtent(it.startContainer,it.startOffset,it.endContainer,it.endOffset),f(d,it)):T.removeAllRanges(),it}},Ae=he(),k=j?.isFlushing()==="action";if(!ki||!k){setTimeout(()=>{if(Ae&&GE){var Re=W.toDOMNode(d,d);Re.focus()}L.isUpdatingSelection=!1});return}var Ce=null,je=requestAnimationFrame(()=>{if(k){var Re=Fe=>{try{var Ne=W.toDOMNode(d,d);Ne.focus(),he(Fe)}catch{}};Re(),Ce=setTimeout(()=>{Re(!0),L.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(je),Ce&&clearTimeout(Ce)}}});var ue=(0,J.useCallback)(U=>{if(D(),!a&&Mr(d,U.target)&&!CY(U,r)){var ee;if(j)return j.handleDOMBeforeInput(U);H.flush(),B.flush();var{selection:Q}=d,{inputType:T}=U,he=U.dataTransfer||U.data||void 0,Ae=T==="insertCompositionText"||T==="deleteCompositionText";if(Ae&&W.isComposing(d))return;var k=!1;if(T==="insertText"&&Q&&V.isCollapsed(Q)&&U.data&&U.data.length===1&&/[a-z ]/i.test(U.data)&&Q.anchor.offset!==0){var Ce,je;k=!0,d.marks&&(k=!1);var{anchor:Re}=Q,[Fe,Ne]=W.toDOMPoint(d,Re),tt=(Ce=Fe.parentElement)===null||Ce===void 0?void 0:Ce.closest("a"),Xe=W.getWindow(d);if(k&&tt&&W.hasDOMNode(d,tt)){var Ze,He=Xe?.document.createTreeWalker(tt,NodeFilter.SHOW_TEXT).lastChild();He===Fe&&((Ze=He.textContent)===null||Ze===void 0?void 0:Ze.length)===Ne&&(k=!1)}if(k&&Fe.parentElement&&(Xe==null||(je=Xe.getComputedStyle(Fe.parentElement))===null||je===void 0?void 0:je.whiteSpace)==="pre"){var it=y.above(d,{at:Re.path,match:yn=>y.isBlock(d,yn)});it&&ce.string(it[0]).includes(" ")&&(k=!1)}}if(!T.startsWith("delete")||T.startsWith("deleteBy")){var[Nr]=U.getTargetRanges();if(Nr){var Ft=W.toSlateRange(d,Nr,{exactMatch:!1,suppressThrow:!1});if(!Q||!V.equals(Q,Ft)){k=!1;var Ur=!Ae&&d.selection&&y.rangeRef(d,d.selection);_.select(d,Ft),Ur&&Qf.set(d,Ur)}}}if(Ae)return;if(k||U.preventDefault(),Q&&V.isExpanded(Q)&&T.startsWith("delete")){var zi=T.endsWith("Backward")?"backward":"forward";y.deleteFragment(d,{direction:zi});return}switch(T){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{y.deleteFragment(d);break}case"deleteContent":case"deleteContentForward":{y.deleteForward(d);break}case"deleteContentBackward":{y.deleteBackward(d);break}case"deleteEntireSoftLine":{y.deleteBackward(d,{unit:"line"}),y.deleteForward(d,{unit:"line"});break}case"deleteHardLineBackward":{y.deleteBackward(d,{unit:"block"});break}case"deleteSoftLineBackward":{y.deleteBackward(d,{unit:"line"});break}case"deleteHardLineForward":{y.deleteForward(d,{unit:"block"});break}case"deleteSoftLineForward":{y.deleteForward(d,{unit:"line"});break}case"deleteWordBackward":{y.deleteBackward(d,{unit:"word"});break}case"deleteWordForward":{y.deleteForward(d,{unit:"word"});break}case"insertLineBreak":y.insertSoftBreak(d);break;case"insertParagraph":{y.insertBreak(d);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{T==="insertFromComposition"&&W.isComposing(d)&&(A(!1),Hu.set(d,!1)),he?.constructor.name==="DataTransfer"?W.insertData(d,he):typeof he=="string"&&(k?E.current.push(()=>y.insertText(d,he)):y.insertText(d,he));break}}var Ln=(ee=Qf.get(d))===null||ee===void 0?void 0:ee.unref();Qf.delete(d),Ln&&(!d.selection||!V.equals(d.selection,Ln))&&_.select(d,Ln)}},[a,r]);qu(()=>(O.current&&_o&&O.current.addEventListener("beforeinput",ue),()=>{O.current&&_o&&O.current.removeEventListener("beforeinput",ue)}),[ue]),qu(()=>{var U=W.getWindow(d);return U.document.addEventListener("selectionchange",H),()=>{U.document.removeEventListener("selectionchange",H)}},[H]);var P=n([d,[]]);if(i&&d.children.length===1&&Array.from(ce.texts(d)).length===1&&ce.string(d)===""&&!b){var pe=y.start(d,[]);P.push({[Ds]:!0,placeholder:i,anchor:pe,focus:pe})}var{marks:ae}=d;if(L.hasMarkPlaceholder=!1,d.selection&&V.isCollapsed(d.selection)&&ae){var{anchor:G}=d.selection,oe=ce.leaf(d,G.path),Y=bs(oe,yY);if(!fe.equals(oe,ae,{loose:!0})){L.hasMarkPlaceholder=!0;var ve=Object.fromEntries(Object.keys(Y).map(U=>[U,null]));P.push(Dh(Dh(Dh({[tO]:!0},ve),ae),{},{anchor:G,focus:G}))}}return(0,J.useEffect)(()=>{setTimeout(()=>{var{selection:U}=d;if(U){var{anchor:ee}=U,Q=ce.leaf(d,ee.path);if(ae&&!fe.equals(Q,ae,{loose:!0})){Ti.set(d,ae);return}}Ti.delete(d)})}),J.default.createElement(fO.Provider,{value:a},J.default.createElement(lO.Provider,{value:n},J.default.createElement(ZK,{node:O,receivedUserInput:C},J.default.createElement(h,Object.assign({role:a?void 0:"textbox","aria-multiline":a?void 0:!0},g,{spellCheck:_o||!Ah?g.spellCheck:!1,autoCorrect:_o||!Ah?g.autoCorrect:"false",autoCapitalize:_o||!Ah?g.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:O,style:Dh({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},p),onBeforeInput:(0,J.useCallback)(U=>{if(!_o&&!a&&!cr(U,g.onBeforeInput)&&Mr(d,U.target)&&(U.preventDefault(),!W.isComposing(d))){var ee=U.data;y.insertText(d,ee)}},[a]),onInput:(0,J.useCallback)(U=>{if(j){j.handleInput();return}for(var ee of E.current)ee();E.current=[]},[]),onBlur:(0,J.useCallback)(U=>{if(!(a||L.isUpdatingSelection||!Mr(d,U.target)||cr(U,g.onBlur))){var ee=W.findDocumentOrShadowRoot(d);if(L.latestElement!==ee.activeElement){var{relatedTarget:Q}=U,T=W.toDOMNode(d,d);if(Q!==T&&!(si(Q)&&Q.hasAttribute("data-slate-spacer"))){if(Q!=null&&ju(Q)&&W.hasDOMNode(d,Q)){var he=W.toSlateNode(d,Q);if(me.isElement(he)&&!d.isVoid(he))return}if(IE){var Ae=ee.getSelection();Ae?.removeAllRanges()}Uu.delete(d)}}}},[a,g.onBlur]),onClick:(0,J.useCallback)(U=>{if(Es(d,U.target)&&!cr(U,g.onClick)&&ju(U.target)){var ee=W.toSlateNode(d,U.target),Q=W.findPath(d,ee);if(!y.hasPath(d,Q)||ce.get(d,Q)!==ee)return;if(U.detail===GK&&Q.length>=1){var T=Q;if(!y.isBlock(d,ee)){var he,Ae=y.above(d,{match:tt=>y.isBlock(d,tt),at:Q});T=(he=Ae?.[1])!==null&&he!==void 0?he:Q.slice(0,1)}var k=y.range(d,T);_.select(d,k);return}if(a)return;var Ce=y.start(d,Q),je=y.end(d,Q),Re=y.void(d,{at:Ce}),Fe=y.void(d,{at:je});if(Re&&Fe&&F.equals(Re[1],Fe[1])){var Ne=y.range(d,Ce);_.select(d,Ne)}}},[a,g.onClick]),onCompositionEnd:(0,J.useCallback)(U=>{if(Mr(d,U.target)){if(W.isComposing(d)&&(A(!1),Hu.set(d,!1)),j?.handleCompositionEnd(U),cr(U,g.onCompositionEnd)||ki)return;if(!IE&&!BK&&!SK&&!OK&&!RK&&!MK&&U.data){var ee=Ti.get(d);Ti.delete(d),ee!==void 0&&(Na.set(d,d.marks),d.marks=ee),y.insertText(d,U.data);var Q=Na.get(d);Na.delete(d),Q!==void 0&&(d.marks=Q)}}},[g.onCompositionEnd]),onCompositionUpdate:(0,J.useCallback)(U=>{Mr(d,U.target)&&!cr(U,g.onCompositionUpdate)&&(W.isComposing(d)||(A(!0),Hu.set(d,!0)))},[g.onCompositionUpdate]),onCompositionStart:(0,J.useCallback)(U=>{if(Mr(d,U.target)){if(j?.handleCompositionStart(U),cr(U,g.onCompositionStart)||ki)return;A(!0);var{selection:ee}=d;if(ee){if(V.isExpanded(ee)){y.deleteFragment(d);return}var Q=y.above(d,{match:Ae=>y.isInline(d,Ae),mode:"highest"});if(Q){var[,T]=Q;if(y.isEnd(d,ee.anchor,T)){var he=y.after(d,T);_.setSelection(d,{anchor:he,focus:he})}}}}},[g.onCompositionStart]),onCopy:(0,J.useCallback)(U=>{Mr(d,U.target)&&!cr(U,g.onCopy)&&(U.preventDefault(),W.setFragmentData(d,U.clipboardData,"copy"))},[g.onCopy]),onCut:(0,J.useCallback)(U=>{if(!a&&Mr(d,U.target)&&!cr(U,g.onCut)){U.preventDefault(),W.setFragmentData(d,U.clipboardData,"cut");var{selection:ee}=d;if(ee)if(V.isExpanded(ee))y.deleteFragment(d);else{var Q=ce.parent(d,ee.anchor.path);y.isVoid(d,Q)&&_.delete(d)}}},[a,g.onCut]),onDragOver:(0,J.useCallback)(U=>{if(Es(d,U.target)&&!cr(U,g.onDragOver)){var ee=W.toSlateNode(d,U.target);y.isVoid(d,ee)&&U.preventDefault()}},[g.onDragOver]),onDragStart:(0,J.useCallback)(U=>{if(!a&&Es(d,U.target)&&!cr(U,g.onDragStart)){var ee=W.toSlateNode(d,U.target),Q=W.findPath(d,ee),T=y.isVoid(d,ee)||y.void(d,{at:Q,voids:!0});if(T){var he=y.range(d,Q);_.select(d,he)}L.isDraggingInternally=!0,W.setFragmentData(d,U.dataTransfer,"drag")}},[a,g.onDragStart]),onDrop:(0,J.useCallback)(U=>{if(!a&&Es(d,U.target)&&!cr(U,g.onDrop)){U.preventDefault();var ee=d.selection,Q=W.findEventRange(d,U),T=U.dataTransfer;_.select(d,Q),L.isDraggingInternally&&ee&&!V.equals(ee,Q)&&!y.void(d,{at:Q,voids:!0})&&_.delete(d,{at:ee}),W.insertData(d,T),W.isFocused(d)||W.focus(d)}L.isDraggingInternally=!1},[a,g.onDrop]),onDragEnd:(0,J.useCallback)(U=>{!a&&L.isDraggingInternally&&g.onDragEnd&&Es(d,U.target)&&g.onDragEnd(U),L.isDraggingInternally=!1},[a,g.onDragEnd]),onFocus:(0,J.useCallback)(U=>{if(!a&&!L.isUpdatingSelection&&Mr(d,U.target)&&!cr(U,g.onFocus)){var ee=W.toDOMNode(d,d),Q=W.findDocumentOrShadowRoot(d);if(L.latestElement=Q.activeElement,GE&&U.target!==ee){ee.focus();return}Uu.set(d,!0)}},[a,g.onFocus]),onKeyDown:(0,J.useCallback)(U=>{if(!a&&Mr(d,U.target)){j?.handleKeyDown(U);var{nativeEvent:ee}=U;if(W.isComposing(d)&&ee.isComposing===!1&&(Hu.set(d,!1),A(!1)),cr(U,g.onKeyDown)||W.isComposing(d))return;var{selection:Q}=d,T=d.children[Q!==null?Q.focus.path[0]:0],he=(0,YE.default)(ce.string(T))==="rtl";if(It.isRedo(ee)){U.preventDefault();var Ae=d;typeof Ae.redo=="function"&&Ae.redo();return}if(It.isUndo(ee)){U.preventDefault();var k=d;typeof k.undo=="function"&&k.undo();return}if(It.isMoveLineBackward(ee)){U.preventDefault(),_.move(d,{unit:"line",reverse:!0});return}if(It.isMoveLineForward(ee)){U.preventDefault(),_.move(d,{unit:"line"});return}if(It.isExtendLineBackward(ee)){U.preventDefault(),_.move(d,{unit:"line",edge:"focus",reverse:!0});return}if(It.isExtendLineForward(ee)){U.preventDefault(),_.move(d,{unit:"line",edge:"focus"});return}if(It.isMoveBackward(ee)){U.preventDefault(),Q&&V.isCollapsed(Q)?_.move(d,{reverse:!he}):_.collapse(d,{edge:"start"});return}if(It.isMoveForward(ee)){U.preventDefault(),Q&&V.isCollapsed(Q)?_.move(d,{reverse:he}):_.collapse(d,{edge:"end"});return}if(It.isMoveWordBackward(ee)){U.preventDefault(),Q&&V.isExpanded(Q)&&_.collapse(d,{edge:"focus"}),_.move(d,{unit:"word",reverse:!he});return}if(It.isMoveWordForward(ee)){U.preventDefault(),Q&&V.isExpanded(Q)&&_.collapse(d,{edge:"focus"}),_.move(d,{unit:"word",reverse:he});return}if(_o){if((aO||IE)&&Q&&(It.isDeleteBackward(ee)||It.isDeleteForward(ee))&&V.isCollapsed(Q)){var Ce=ce.parent(d,Q.anchor.path);if(me.isElement(Ce)&&y.isVoid(d,Ce)&&(y.isInline(d,Ce)||y.isBlock(d,Ce))){U.preventDefault(),y.deleteBackward(d,{unit:"block"});return}}}else{if(It.isBold(ee)||It.isItalic(ee)||It.isTransposeCharacter(ee)){U.preventDefault();return}if(It.isSoftBreak(ee)){U.preventDefault(),y.insertSoftBreak(d);return}if(It.isSplitBlock(ee)){U.preventDefault(),y.insertBreak(d);return}if(It.isDeleteBackward(ee)){U.preventDefault(),Q&&V.isExpanded(Q)?y.deleteFragment(d,{direction:"backward"}):y.deleteBackward(d);return}if(It.isDeleteForward(ee)){U.preventDefault(),Q&&V.isExpanded(Q)?y.deleteFragment(d,{direction:"forward"}):y.deleteForward(d);return}if(It.isDeleteLineBackward(ee)){U.preventDefault(),Q&&V.isExpanded(Q)?y.deleteFragment(d,{direction:"backward"}):y.deleteBackward(d,{unit:"line"});return}if(It.isDeleteLineForward(ee)){U.preventDefault(),Q&&V.isExpanded(Q)?y.deleteFragment(d,{direction:"forward"}):y.deleteForward(d,{unit:"line"});return}if(It.isDeleteWordBackward(ee)){U.preventDefault(),Q&&V.isExpanded(Q)?y.deleteFragment(d,{direction:"backward"}):y.deleteBackward(d,{unit:"word"});return}if(It.isDeleteWordForward(ee)){U.preventDefault(),Q&&V.isExpanded(Q)?y.deleteFragment(d,{direction:"forward"}):y.deleteForward(d,{unit:"word"});return}}}},[a,g.onKeyDown]),onPaste:(0,J.useCallback)(U=>{!a&&Mr(d,U.target)&&!cr(U,g.onPaste)&&(!_o||EK(U.nativeEvent))&&(U.preventDefault(),W.insertData(d,U.clipboardData))},[a,g.onPaste])}),J.default.createElement(EY,{decorations:P,node:d,renderElement:u,renderPlaceholder:c,renderLeaf:s,selection:d.selection})))))},bY=e=>{var{attributes:t,children:n}=e;return J.default.createElement("span",Object.assign({},t),n,ki&&J.default.createElement("br",null))},xY=()=>[],DY=(e,t)=>{if(!e.selection||e.selection&&V.isCollapsed(e.selection)){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),R3(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},Es=(e,t)=>ju(t)&&W.hasDOMNode(e,t),Mr=(e,t)=>ju(t)&&W.hasDOMNode(e,t,{editable:!0}),$3=(e,t)=>{if(ZE.get(e))return!1;var n=Es(e,t)&&W.toSlateNode(e,t);return y.isVoid(e,n)},cr=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},CY=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},hO=(0,J.createContext)(!1),gO=()=>(0,J.useContext)(hO);var wY=(0,J.createContext)({});function AY(e){var t=(0,J.useRef)([]).current,n=(0,J.useRef)({editor:e}).current,r=(0,J.useCallback)(a=>{n.editor=a,t.forEach(u=>u(a))},[]),i=(0,J.useMemo)(()=>({getSlate:()=>n.editor,addEventListener:a=>(t.push(a),()=>{t.splice(t.indexOf(a),1)})}),[t,n]);return{selectorContext:i,onChange:r}}var SY=["editor","children","onChange","value"],vO=e=>{var{editor:t,children:n,onChange:r,value:i}=e,a=bs(e,SY),u=(0,J.useRef)(!1),[s,c]=J.default.useState(()=>{if(!ce.isNodeList(i))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(on.stringify(i)));if(!y.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(on.stringify(t)));return t.children=i,Object.assign(t,a),{v:0,editor:t}}),{selectorContext:f,onChange:p}=AY(t),h=(0,J.useCallback)(()=>{r&&r(t.children),c(b=>({v:b.v+1,editor:t})),p(t)},[r]);VE.set(t,h),(0,J.useEffect)(()=>()=>{VE.set(t,()=>{}),u.current=!0},[]);var[g,d]=(0,J.useState)(W.isFocused(t));return(0,J.useEffect)(()=>{d(W.isFocused(t))}),qu(()=>{var b=()=>d(W.isFocused(t));return AK?(document.addEventListener("focusin",b),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",b)}):(document.addEventListener("focus",b,!0),document.addEventListener("blur",b,!0),()=>{document.removeEventListener("focus",b,!0),document.removeEventListener("blur",b,!0)})},[]),J.default.createElement(wY.Provider,{value:f},J.default.createElement(mO.Provider,{value:s},J.default.createElement(nb.Provider,{value:s.editor},J.default.createElement(hO.Provider,{value:g},n))))};var G3=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},W3=(e,t,n)=>{var r=W.toDOMRange(e,t).getBoundingClientRect(),i=W.toDOMRange(e,n).getBoundingClientRect();return G3(r,i)&&G3(i,r)},TY=(e,t)=>{var n=y.range(e,V.end(t)),r=Array.from(y.positions(e,{at:t})),i=0,a=r.length,u=Math.floor(a/2);if(W3(e,y.range(e,r[i]),n))return y.range(e,r[i],n);if(r.length<2)return y.range(e,r[r.length-1],n);for(;u!==r.length&&u!==i;)W3(e,y.range(e,r[u]),n)?a=u:i=u,u=Math.floor((i+a)/2);return y.range(e,r[a],n)};function K3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K3(Object(n),!0).forEach(function(r){Th(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var yO=e=>{var t=e,{apply:n,onChange:r,deleteBackward:i,addMark:a,removeMark:u}=t;return Bh.set(t,new WeakMap),t.addMark=(s,c)=>{var f,p;(f=JE.get(t))===null||f===void 0||f(),!Ti.get(t)&&(p=fr.get(t))!==null&&p!==void 0&&p.length&&Ti.set(t,null),Na.delete(t),a(s,c)},t.removeMark=s=>{var c;!Ti.get(t)&&(c=fr.get(t))!==null&&c!==void 0&&c.length&&Ti.set(t,null),Na.delete(t),u(s)},t.deleteBackward=s=>{if(s!=="line")return i(s);if(t.selection&&V.isCollapsed(t.selection)){var c=y.above(t,{match:g=>y.isBlock(t,g),at:t.selection});if(c){var[,f]=c,p=y.range(t,f,t.selection.anchor),h=TY(t,p);V.isCollapsed(h)||_.delete(t,{at:h})}}},t.apply=s=>{var c=[],f=fr.get(t);if(f!=null&&f.length){var p=f.map(M=>aY(M,s)).filter(Boolean);fr.set(t,p)}var h=Lo.get(t);h&&Lo.set(t,H3(t,h,s));var g=zo.get(t);if(g!=null&&g.at){var d=Me.isPoint(g?.at)?KE(t,g.at,s):H3(t,g.at,s);zo.set(t,d?Y3(Y3({},g),{},{at:d}):null)}switch(s.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...Ch(t,s.path));break}case"set_selection":{var b;(b=Qf.get(t))===null||b===void 0||b.unref(),Qf.delete(t);break}case"insert_node":case"remove_node":{c.push(...Ch(t,F.parent(s.path)));break}case"merge_node":{var A=F.previous(s.path);c.push(...Ch(t,A));break}case"move_node":{var O=F.common(F.parent(s.path),F.parent(s.newPath));c.push(...Ch(t,O));break}}n(s);for(var[E,D]of c){var[C]=y.node(t,E);jE.set(C,D)}},t.setFragmentData=s=>{var{selection:c}=t;if(c){var[f,p]=V.edges(c),h=y.void(t,{at:f.path}),g=y.void(t,{at:p.path});if(!(V.isCollapsed(c)&&!h)){var d=W.toDOMRange(t,c),b=d.cloneContents(),A=b.childNodes[0];if(b.childNodes.forEach(j=>{j.textContent&&j.textContent.trim()!==""&&(A=j)}),g){var[O]=g,E=d.cloneRange(),D=W.toDOMNode(t,O);E.setEndAfter(D),b=E.cloneContents()}if(h&&(A=b.querySelector("[data-slate-spacer]")),Array.from(b.querySelectorAll("[data-slate-zero-width]")).forEach(j=>{var ue=j.getAttribute("data-slate-zero-width")==="n";j.textContent=ue?`
|
|
38
|
+
`:""}),nO(A)){var C=A.ownerDocument.createElement("span");C.style.whiteSpace="pre",C.appendChild(A),b.appendChild(C),A=C}var M=t.getFragment(),L=JSON.stringify(M),B=window.btoa(encodeURIComponent(L));A.setAttribute("data-slate-fragment",B),s.setData("application/x-slate-fragment",B);var H=b.ownerDocument.createElement("div");return H.appendChild(b),H.setAttribute("hidden","true"),b.ownerDocument.body.appendChild(H),s.setData("text/html",H.innerHTML),s.setData("text/plain",iO(H)),b.ownerDocument.body.removeChild(H),s}}},t.insertData=s=>{t.insertFragmentData(s)||t.insertTextData(s)},t.insertFragmentData=s=>{var c=s.getData("application/x-slate-fragment")||wK(s);if(c){var f=decodeURIComponent(window.atob(c)),p=JSON.parse(f);return t.insertFragment(p),!0}return!1},t.insertTextData=s=>{var c=s.getData("text/plain");if(c){var f=c.split(/\r\n|\r|\n/),p=!1;for(var h of f)p&&_.splitNodes(t,{always:!0}),t.insertText(h),p=!0;return!0}return!1},t.onChange=()=>{Z3.default.unstable_batchedUpdates(()=>{var s=VE.get(t);s&&s(),r()})},t},Ch=(e,t)=>{var n=[];for(var[r,i]of y.levels(e,{at:t})){var a=W.findKey(e,r);n.push([i,a])}return n};function ib(e,t){let n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var Lre=Po(/[A-Za-z]/),Pre=Po(/[\dA-Za-z]/),Ire=Po(/[#-'*+\--9=?A-Z^-~]/);var Nre=Po(/\d/),Ure=Po(/[\dA-Fa-f]/),Hre=Po(/[!-/:-@[-`{-~]/);var EO=Po(/\p{P}|\p{S}/u),bO=Po(/\s/);function Po(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ab(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Cs=function(e){if(e==null)return MY;if(typeof e=="function")return Oh(e);if(typeof e=="object")return Array.isArray(e)?kY(e):BY(e);if(typeof e=="string")return OY(e);throw new Error("Expected function, string, or object as test")};function kY(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Cs(e[n]);return Oh(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function BY(e){let t=e;return Oh(n);function n(r){let i=r,a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function OY(e){return Oh(t);function t(n){return n&&n.type===e}}function Oh(e){return t;function t(n,r,i){return!!(RY(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function MY(){return!0}function RY(e){return e!==null&&typeof e=="object"&&"type"in e}var xO=[],DO=!0,ob=!1,CO="skip";function ub(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;let a=Cs(i),u=r?-1:1;s(e,void 0,[])();function s(c,f,p){let h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){let d=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(c.type+(d?"<"+d+">":""))+")"})}return g;function g(){let d=xO,b,A,O;if((!t||a(c,f,p[p.length-1]||void 0))&&(d=FY(n(c,p)),d[0]===ob))return d;if("children"in c&&c.children){let E=c;if(E.children&&d[0]!==CO)for(A=(r?E.children.length:-1)+u,O=p.concat(E);A>-1&&A<E.children.length;){let D=E.children[A];if(b=s(D,A,O)(),b[0]===ob)return b;A=typeof b[1]=="number"?b[1]:A+u}}return d}}}function FY(e){return Array.isArray(e)?e:typeof e=="number"?[DO,e]:e==null?xO:[e]}function lb(e,t,n){let i=Cs((n||{}).ignore||[]),a=_Y(t),u=-1;for(;++u<a.length;)ub(e,"text",s);function s(f,p){let h=-1,g;for(;++h<p.length;){let d=p[h],b=g?g.children:void 0;if(i(d,b?b.indexOf(d):void 0,g))return;g=d}if(g)return c(f,p)}function c(f,p){let h=p[p.length-1],g=a[u][0],d=a[u][1],b=0,O=h.children.indexOf(f),E=!1,D=[];g.lastIndex=0;let C=g.exec(f.value);for(;C;){let M=C.index,L={index:C.index,input:C.input,stack:[...p,f]},B=d(...C,L);if(typeof B=="string"&&(B=B.length>0?{type:"text",value:B}:void 0),B===!1?g.lastIndex=M+1:(b!==M&&D.push({type:"text",value:f.value.slice(b,M)}),Array.isArray(B)?D.push(...B):B&&D.push(B),b=M+C[0].length,E=!0),!g.global)break;C=g.exec(f.value)}return E?(b<f.value.length&&D.push({type:"text",value:f.value.slice(b)}),h.children.splice(O,1,...D)):D=[f],O+D.length}}function _Y(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let i=n[r];t.push([zY(i[0]),LY(i[1])])}return t}function zY(e){return typeof e=="string"?new RegExp(ab(e),"g"):e}function LY(e){return typeof e=="function"?e:function(){return e}}var sb="phrasing",cb=["autolink","link","image","label"];function mb(){return{transforms:[qY],enter:{literalAutolink:PY,literalAutolinkEmail:fb,literalAutolinkHttp:fb,literalAutolinkWww:fb},exit:{literalAutolink:HY,literalAutolinkEmail:UY,literalAutolinkHttp:IY,literalAutolinkWww:NY}}}function pb(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:sb,notInConstruct:cb},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:sb,notInConstruct:cb},{character:":",before:"[ps]",after:"\\/",inConstruct:sb,notInConstruct:cb}]}}function PY(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function fb(e){this.config.enter.autolinkProtocol.call(this,e)}function IY(e){this.config.exit.autolinkProtocol.call(this,e)}function NY(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function UY(e){this.config.exit.autolinkEmail.call(this,e)}function HY(e){this.exit(e)}function qY(e){lb(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,jY],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,VY]],{ignore:["link","linkReference"]})}function jY(e,t,n,r,i){let a="";if(!wO(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!$Y(n)))return!1;let u=GY(n+r);if(!u[0])return!1;let s={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[s,{type:"text",value:u[1]}]:s}function VY(e,t,n,r){return!wO(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function $Y(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function GY(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=ib(e,"("),a=ib(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function wO(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||bO(n)||EO(n))&&(!t||n!==47)}function db(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}AO.peek=tQ;function WY(){this.buffer()}function KY(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function YY(){this.buffer()}function QY(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function XY(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=db(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ZY(e){this.exit(e)}function JY(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=db(this.sliceSerialize(e)).toLowerCase(),n.label=t}function eQ(e){this.exit(e)}function tQ(){return"["}function AO(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),u=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),u(),a+=i.move("]"),a}function hb(){return{enter:{gfmFootnoteCallString:WY,gfmFootnoteCall:KY,gfmFootnoteDefinitionLabelString:YY,gfmFootnoteDefinition:QY},exit:{gfmFootnoteCallString:XY,gfmFootnoteCall:ZY,gfmFootnoteDefinitionLabelString:JY,gfmFootnoteDefinition:eQ}}}function gb(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:AO},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,u){let s=a.createTracker(u),c=s.move("[^"),f=a.enter("footnoteDefinition"),p=a.enter("label");return c+=s.move(a.safe(a.associationId(r),{before:c,after:"]"})),p(),c+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),c+=s.move((t?`
|
|
39
|
+
`:" ")+a.indentLines(a.containerFlow(r,s.current()),t?SO:nQ))),f(),c}}function nQ(e,t,n){return t===0?e:SO(e,t,n)}function SO(e,t,n){return(n?"":" ")+e}var rQ=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];TO.peek=oQ;function vb(){return{canContainEols:["delete"],enter:{strikethrough:iQ},exit:{strikethrough:aQ}}}function yb(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rQ}],handlers:{delete:TO}}}function iQ(e){this.enter({type:"delete",children:[]},e)}function aQ(e){this.exit(e)}function TO(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),u=i.move("~~");return u+=n.containerPhrasing(e,{...i.current(),before:u,after:"~"}),u+=i.move("~~"),a(),u}function oQ(){return"~"}function uQ(e){return e.length}function BO(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||uQ,a=[],u=[],s=[],c=[],f=0,p=-1;for(;++p<e.length;){let A=[],O=[],E=-1;for(e[p].length>f&&(f=e[p].length);++E<e[p].length;){let D=lQ(e[p][E]);if(n.alignDelimiters!==!1){let C=i(D);O[E]=C,(c[E]===void 0||C>c[E])&&(c[E]=C)}A.push(D)}u[p]=A,s[p]=O}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<f;)a[h]=kO(r[h]);else{let A=kO(r);for(;++h<f;)a[h]=A}h=-1;let g=[],d=[];for(;++h<f;){let A=a[h],O="",E="";A===99?(O=":",E=":"):A===108?O=":":A===114&&(E=":");let D=n.alignDelimiters===!1?1:Math.max(1,c[h]-O.length-E.length),C=O+"-".repeat(D)+E;n.alignDelimiters!==!1&&(D=O.length+D+E.length,D>c[h]&&(c[h]=D),d[h]=D),g[h]=C}u.splice(1,0,g),s.splice(1,0,d),p=-1;let b=[];for(;++p<u.length;){let A=u[p],O=s[p];h=-1;let E=[];for(;++h<f;){let D=A[h]||"",C="",M="";if(n.alignDelimiters!==!1){let L=c[h]-(O[h]||0),B=a[h];B===114?C=" ".repeat(L):B===99?L%2?(C=" ".repeat(L/2+.5),M=" ".repeat(L/2-.5)):(C=" ".repeat(L/2),M=C):M=" ".repeat(L)}n.delimiterStart!==!1&&!h&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||h)&&E.push(" "),n.alignDelimiters!==!1&&E.push(C),E.push(D),n.alignDelimiters!==!1&&E.push(M),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||h!==f-1)&&E.push("|")}b.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return b.join(`
|
|
40
|
+
`)}function lQ(e){return e==null?"":String(e)}function kO(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function OO(e,t,n,r){let i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);let u=n.indentLines(n.containerFlow(e,a.current()),sQ);return i(),u}function sQ(e,t,n){return">"+(n?"":" ")+e}function RO(e,t){return MO(e,t.inConstruct,!0)&&!MO(e,t.notInConstruct,!1)}function MO(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Eb(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
41
|
+
`&&RO(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
42
|
+
`}function FO(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>u&&(u=a):a=1,i=r+t.length,r=n.indexOf(t,i);return u}function _O(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function zO(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function LO(e,t,n,r){let i=zO(n),a=e.value||"",u=i==="`"?"GraveAccent":"Tilde";if(_O(e,n)){let h=n.enter("codeIndented"),g=n.indentLines(a,cQ);return h(),g}let s=n.createTracker(r),c=i.repeat(Math.max(FO(a,i)+1,3)),f=n.enter("codeFenced"),p=s.move(c);if(e.lang){let h=n.enter(`codeFencedLang${u}`);p+=s.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...s.current()})),h()}if(e.lang&&e.meta){let h=n.enter(`codeFencedMeta${u}`);p+=s.move(" "),p+=s.move(n.safe(e.meta,{before:p,after:`
|
|
43
|
+
`,encode:["`"],...s.current()})),h()}return p+=s.move(`
|
|
44
|
+
`),a&&(p+=s.move(a+`
|
|
45
|
+
`)),p+=s.move(c),f(),p}function cQ(e,t,n){return(n?"":" ")+e}function ws(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function PO(e,t,n,r){let i=ws(n),a=i==='"'?"Quote":"Apostrophe",u=n.enter("definition"),s=n.enter("label"),c=n.createTracker(r),f=c.move("[");return f+=c.move(n.safe(n.associationId(e),{before:f,after:"]",...c.current()})),f+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(n.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(s=n.enter("destinationRaw"),f+=c.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
46
|
+
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),f+=c.move(" "+i),f+=c.move(n.safe(e.title,{before:f,after:i,...c.current()})),f+=c.move(i),s()),u(),f}function IO(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Io(e){return"&#x"+e.toString(16).toUpperCase()+";"}var zie=No(/[A-Za-z]/),Lie=No(/[\dA-Za-z]/),Pie=No(/[#-'*+\--9=?A-Z^-~]/);var Iie=No(/\d/),Nie=No(/[\dA-Fa-f]/),Uie=No(/[!-/:-@[-`{-~]/);function NO(e){return e!==null&&(e<0||e===32)}var UO=No(/\p{P}|\p{S}/u),HO=No(/\s/);function No(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function bb(e){if(e===null||NO(e)||HO(e))return 1;if(UO(e))return 2}function As(e,t,n){let r=bb(e),i=bb(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}xb.peek=fQ;function xb(e,t,n,r){let i=IO(n),a=n.enter("emphasis"),u=n.createTracker(r),s=u.move(i),c=u.move(n.containerPhrasing(e,{after:i,before:s,...u.current()})),f=c.charCodeAt(0),p=As(r.before.charCodeAt(r.before.length-1),f,i);p.inside&&(c=Io(f)+c.slice(1));let h=c.charCodeAt(c.length-1),g=As(r.after.charCodeAt(0),h,i);g.inside&&(c=c.slice(0,-1)+Io(h));let d=u.move(i);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},s+c+d}function fQ(e,t,n){return n.options.emphasis||"*"}var Mh=function(e){if(e==null)return hQ;if(typeof e=="function")return Rh(e);if(typeof e=="object")return Array.isArray(e)?mQ(e):pQ(e);if(typeof e=="string")return dQ(e);throw new Error("Expected function, string, or object as test")};function mQ(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Mh(e[n]);return Rh(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function pQ(e){let t=e;return Rh(n);function n(r){let i=r,a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function dQ(e){return Rh(t);function t(n){return n&&n.type===e}}function Rh(e){return t;function t(n,r,i){return!!(gQ(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function hQ(){return!0}function gQ(e){return e!==null&&typeof e=="object"&&"type"in e}var qO=[],Fh=!0,Vu=!1,_h="skip";function Db(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;let a=Mh(i),u=r?-1:1;s(e,void 0,[])();function s(c,f,p){let h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){let d=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(c.type+(d?"<"+d+">":""))+")"})}return g;function g(){let d=qO,b,A,O;if((!t||a(c,f,p[p.length-1]||void 0))&&(d=vQ(n(c,p)),d[0]===Vu))return d;if("children"in c&&c.children){let E=c;if(E.children&&d[0]!==_h)for(A=(r?E.children.length:-1)+u,O=p.concat(E);A>-1&&A<E.children.length;){let D=E.children[A];if(b=s(D,A,O)(),b[0]===Vu)return b;A=typeof b[1]=="number"?b[1]:A+u}}return d}}}function vQ(e){return Array.isArray(e)?e:typeof e=="number"?[Fh,e]:e==null?qO:[e]}function Cb(e,t,n,r){let i,a,u;typeof t=="function"&&typeof n!="function"?(a=void 0,u=t,i=n):(a=t,u=n,i=r),Db(e,a,s,i);function s(c,f){let p=f[f.length-1],h=p?p.children.indexOf(c):void 0;return u(c,h,p)}}var yQ={};function Xf(e,t){let n=t||yQ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return VO(e,r,i)}function VO(e,t,n){if(EQ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return jO(e.children,t,n)}return Array.isArray(e)?jO(e,t,n):""}function jO(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=VO(e[i],t,n);return r.join("")}function EQ(e){return!!(e&&typeof e=="object")}function $O(e,t){let n=!1;return Cb(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Vu}),!!((!e.depth||e.depth<3)&&Xf(e)&&(t.options.setext||n))}function GO(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if($O(e,n)){let p=n.enter("headingSetext"),h=n.enter("phrasing"),g=n.containerPhrasing(e,{...a.current(),before:`
|
|
48
47
|
`,after:`
|
|
49
|
-
`});return
|
|
48
|
+
`});return h(),p(),g+`
|
|
50
49
|
`+(i===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(`
|
|
51
|
-
`))+1))}let
|
|
52
|
-
`,...
|
|
53
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:
|
|
54
|
-
`))}function c(m,x,S,T){let y=S.enter("tableCell"),w=S.enter("phrasing"),C=S.containerPhrasing(m,{...T,before:o,after:o});return w(),y(),C}function f(m,x){return QM(m,{align:x,alignDelimiters:r,padding:n,stringLength:i})}function p(m,x,S){let T=m.children,y=-1,w=[],C=x.enter("table");for(;++y<T.length;)w[y]=d(T[y],x,S);return C(),w}function d(m,x,S){let T=m.children,y=-1,w=[],C=x.enter("tableRow");for(;++y<T.length;)w[y]=c(T[y],m,x,S);return C(),w}function g(m,x,S){let T=Lp.inlineCode(m,x,S);return S.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function lD(){return{exit:{taskListCheckValueChecked:T4,taskListCheckValueUnchecked:T4,paragraph:Uee}}}function sD(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Hee}}}function T4(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Uee(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let r=n.children[0];if(r&&r.type==="text"){let i=t.children,o=-1,a;for(;++o<i.length;){let l=i[o];if(l.type==="paragraph"){a=l;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Hee(e,t,n,r){let i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);o&&l.move(a);let c=Lp.listItem(e,t,n,{...r,...l.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),c;function f(p){return p+a}}function cD(){return[zE(),HE(),jE(),aD(),lD()]}function fD(e){return{extensions:[NE(),qE(e),VE(),uD(e),sD()]}}function B4(e,t,n,r){let i=e.length,o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}var O4={}.hasOwnProperty;function M4(e){let t={},n=-1;for(;++n<e.length;)qee(t,e[n]);return t}function qee(e,t){let n;for(n in t){let i=(O4.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n],a;if(o)for(a in o){O4.call(i,a)||(i[a]=[]);let l=o[a];jee(i[a],Array.isArray(l)?l:l?[l]:[])}}}function jee(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);B4(e,0,0,r)}var oc=lu(/[A-Za-z]/),_g=lu(/[\dA-Za-z]/),Yme=lu(/[#-'*+\--9=?A-Z^-~]/);function R4(e){return e!==null&&(e<32||e===127)}var Xme=lu(/\d/),Qme=lu(/[\dA-Fa-f]/),Zme=lu(/[!-/:-@[-`{-~]/);function vl(e){return e!==null&&(e<0||e===32)}var pD=lu(/\p{P}|\p{S}/u),ac=lu(/\s/);function lu(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}var Vee={tokenize:Yee,partial:!0},F4={tokenize:Xee,partial:!0},_4={tokenize:Qee,partial:!0},I4={tokenize:Zee,partial:!0},$ee={tokenize:Jee,partial:!0},L4={name:"wwwAutolink",tokenize:Wee,previous:z4},P4={name:"protocolAutolink",tokenize:Kee,previous:N4},aa={name:"emailAutolink",tokenize:Gee,previous:U4},bo={};function hD(){return{text:bo}}var yl=48;for(;yl<123;)bo[yl]=aa,yl++,yl===58?yl=65:yl===91&&(yl=97);bo[43]=aa;bo[45]=aa;bo[46]=aa;bo[95]=aa;bo[72]=[aa,P4];bo[104]=[aa,P4];bo[87]=[aa,L4];bo[119]=[aa,L4];function Gee(e,t,n){let r=this,i,o;return a;function a(d){return!mD(d)||!U4.call(r,r.previous)||dD(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return mD(d)?(e.consume(d),l):d===64?(e.consume(d),c):n(d)}function c(d){return d===46?e.check($ee,p,f)(d):d===45||d===95||_g(d)?(o=!0,e.consume(d),c):p(d)}function f(d){return e.consume(d),i=!0,c}function p(d){return o&&i&&oc(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Wee(e,t,n){let r=this;return i;function i(a){return a!==87&&a!==119||!z4.call(r,r.previous)||dD(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Vee,e.attempt(F4,e.attempt(_4,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function Kee(e,t,n){let r=this,i="",o=!1;return a;function a(d){return(d===72||d===104)&&N4.call(r,r.previous)&&!dD(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),l):n(d)}function l(d){if(oc(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),l;if(d===58){let g=i.toLowerCase();if(g==="http"||g==="https")return e.consume(d),c}return n(d)}function c(d){return d===47?(e.consume(d),o?f:(o=!0,c)):n(d)}function f(d){return d===null||R4(d)||vl(d)||ac(d)||pD(d)?n(d):e.attempt(F4,e.attempt(_4,p),n)(d)}function p(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Yee(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function Xee(e,t,n){let r,i,o;return a;function a(f){return f===46||f===95?e.check(I4,c,l)(f):f===null||vl(f)||ac(f)||f!==45&&pD(f)?c(f):(o=!0,e.consume(f),a)}function l(f){return f===95?r=!0:(i=r,r=void 0),e.consume(f),a}function c(f){return i||r||!o?n(f):t(f)}}function Qee(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(I4,t,o)(a):a===null||vl(a)||ac(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function Zee(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),o):l===93?(e.consume(l),i):l===60||l===null||vl(l)||ac(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||vl(l)||ac(l)?t(l):r(l)}function o(l){return oc(l)?a(l):n(l)}function a(l){return l===59?(e.consume(l),r):oc(l)?(e.consume(l),a):n(l)}}function Jee(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return _g(o)?n(o):t(o)}}function z4(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||vl(e)}function N4(e){return!oc(e)}function U4(e){return!(e===47||mD(e))}function mD(e){return e===43||e===45||e===46||e===95||_g(e)}function dD(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var ihe=su(/[A-Za-z]/),ohe=su(/[\dA-Za-z]/),ahe=su(/[#-'*+\--9=?A-Z^-~]/);var uhe=su(/\d/),lhe=su(/[\dA-Fa-f]/),she=su(/[!-/:-@[-`{-~]/);function H4(e){return e!==null&&e<-2}function Pp(e){return e!==null&&(e<0||e===32)}function zp(e){return e===-2||e===-1||e===32}var che=su(/\p{P}|\p{S}/u),fhe=su(/\s/);function su(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Np(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return a;function a(c){return zp(c)?(e.enter(n),l(c)):t(c)}function l(c){return zp(c)&&o++<i?(e.consume(c),l):(e.exit(n),t(c))}}var gD={partial:!0,tokenize:ete};function ete(e,t,n){return r;function r(o){return zp(o)?Np(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||H4(o)?t(o):n(o)}}function Ig(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var tte={tokenize:lte,partial:!0};function vD(){return{document:{[91]:{name:"gfmFootnoteDefinition",tokenize:ote,continuation:{tokenize:ate},exit:ute}},text:{[91]:{name:"gfmFootnoteCall",tokenize:ite},[93]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nte,resolveTo:rte}}}}function nte(e,t,n){let r=this,i=r.events.length,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a;for(;i--;){let c=r.events[i][1];if(c.type==="labelImage"){a=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!a||!a._balanced)return n(c);let f=Ig(r.sliceSerialize({start:a.end,end:r.now()}));return f.codePointAt(0)!==94||!o.includes(f.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function rte(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...c),e}function ite(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o=0,a;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),c}function c(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(d){if(o>999||d===93&&!a||d===null||d===91||Pp(d))return n(d);if(d===93){e.exit("chunkString");let g=e.exit("gfmFootnoteCallString");return i.includes(Ig(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Pp(d)||(a=!0),o++,e.consume(d),d===92?p:f}function p(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function ote(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o,a=0,l;return c;function c(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(x)}function p(x){if(a>999||x===93&&!l||x===null||x===91||Pp(x))return n(x);if(x===93){e.exit("chunkString");let S=e.exit("gfmFootnoteDefinitionLabelString");return o=Ig(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return Pp(x)||(l=!0),a++,e.consume(x),x===92?d:p}function d(x){return x===91||x===92||x===93?(e.consume(x),a++,p):p(x)}function g(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(o)||i.push(o),Np(e,m,"gfmFootnoteDefinitionWhitespace")):n(x)}function m(x){return t(x)}}function ate(e,t,n){return e.check(gD,t,e.attempt(tte,t,n))}function ute(e){e.exit("gfmFootnoteDefinition")}function lte(e,t,n){let r=this;return Np(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){let a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function Lg(e,t,n,r){let i=e.length,o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}var Bhe=cu(/[A-Za-z]/),Ohe=cu(/[\dA-Za-z]/),Mhe=cu(/[#-'*+\--9=?A-Z^-~]/);var Rhe=cu(/\d/),Fhe=cu(/[\dA-Fa-f]/),_he=cu(/[!-/:-@[-`{-~]/);function q4(e){return e!==null&&(e<0||e===32)}var j4=cu(/\p{P}|\p{S}/u),V4=cu(/\s/);function cu(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function yD(e){if(e===null||q4(e)||V4(e))return 1;if(j4(e))return 2}function $4(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function xD(e){let n=(e||{}).singleTilde,r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,l){let c=-1;for(;++c<a.length;)if(a[c][0]==="enter"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._close){let f=c;for(;f--;)if(a[f][0]==="exit"&&a[f][1].type==="strikethroughSequenceTemporary"&&a[f][1]._open&&a[c][1].end.offset-a[c][1].start.offset===a[f][1].end.offset-a[f][1].start.offset){a[c][1].type="strikethroughSequence",a[f][1].type="strikethroughSequence";let p={type:"strikethrough",start:Object.assign({},a[f][1].start),end:Object.assign({},a[c][1].end)},d={type:"strikethroughText",start:Object.assign({},a[f][1].end),end:Object.assign({},a[c][1].start)},g=[["enter",p,l],["enter",a[f][1],l],["exit",a[f][1],l],["enter",d,l]],m=l.parser.constructs.insideSpan.null;m&&Lg(g,g.length,0,$4(m,a.slice(f+1,c),l)),Lg(g,g.length,0,[["exit",d,l],["enter",a[c][1],l],["exit",a[c][1],l],["exit",p,l]]),Lg(a,f-1,c-f+3,g),c=f+g.length-2;break}}for(c=-1;++c<a.length;)a[c][1].type==="strikethroughSequenceTemporary"&&(a[c][1].type="data");return a}function o(a,l,c){let f=this.previous,p=this.events,d=0;return g;function g(x){return f===126&&p[p.length-1][1].type!=="characterEscape"?c(x):(a.enter("strikethroughSequenceTemporary"),m(x))}function m(x){let S=yD(f);if(x===126)return d>1?c(x):(a.consume(x),d++,m);if(d<2&&!n)return c(x);let T=a.exit("strikethroughSequenceTemporary"),y=yD(x);return T._open=!y||y===2&&!!S,T._close=!S||S===2&&!!y,l(x)}}}var $he=fu(/[A-Za-z]/),Ghe=fu(/[\dA-Za-z]/),Whe=fu(/[#-'*+\--9=?A-Z^-~]/);var Khe=fu(/\d/),Yhe=fu(/[\dA-Fa-f]/),Xhe=fu(/[!-/:-@[-`{-~]/);function Up(e){return e!==null&&e<-2}function bD(e){return e!==null&&(e<0||e===32)}function ua(e){return e===-2||e===-1||e===32}var Qhe=fu(/\p{P}|\p{S}/u),Zhe=fu(/\s/);function fu(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function uc(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return a;function a(c){return ua(c)?(e.enter(n),l(c)):t(c)}function l(c){return ua(c)&&o++<i?(e.consume(c),l):(e.exit(n),t(c))}}var Pg=class{constructor(){this.map=[]}add(t,n,r){ste(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(let o of i)t.push(o);i=r.pop()}this.map.length=0}};function ste(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function G4(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function ED(){return{flow:{null:{name:"table",tokenize:cte,resolveAll:fte}}}}function cte(e,t,n){let r=this,i=0,o=0,a;return l;function l(_){let de=r.events.length-1;for(;de>-1;){let K=r.events[de][1].type;if(K==="lineEnding"||K==="linePrefix")de--;else break}let Z=de>-1?r.events[de][1].type:null,H=Z==="tableHead"||Z==="tableRow"?A:c;return H===A&&r.parser.lazy[r.now().line]?n(_):H(_)}function c(_){return e.enter("tableHead"),e.enter("tableRow"),f(_)}function f(_){return _===124||(a=!0,o+=1),p(_)}function p(_){return _===null?n(_):Up(_)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),m):n(_):ua(_)?uc(e,p,"whitespace")(_):(o+=1,a&&(a=!1,i+=1),_===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),a=!0,p):(e.enter("data"),d(_)))}function d(_){return _===null||_===124||bD(_)?(e.exit("data"),p(_)):(e.consume(_),_===92?g:d)}function g(_){return _===92||_===124?(e.consume(_),d):d(_)}function m(_){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(_):(e.enter("tableDelimiterRow"),a=!1,ua(_)?uc(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):x(_))}function x(_){return _===45||_===58?T(_):_===124?(a=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),S):R(_)}function S(_){return ua(_)?uc(e,T,"whitespace")(_):T(_)}function T(_){return _===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),y):_===45?(o+=1,y(_)):_===null||Up(_)?M(_):R(_)}function y(_){return _===45?(e.enter("tableDelimiterFiller"),w(_)):R(_)}function w(_){return _===45?(e.consume(_),w):_===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(_))}function C(_){return ua(_)?uc(e,M,"whitespace")(_):M(_)}function M(_){return _===124?x(_):_===null||Up(_)?!a||i!==o?R(_):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(_)):R(_)}function R(_){return n(_)}function A(_){return e.enter("tableRow"),P(_)}function P(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),P):_===null||Up(_)?(e.exit("tableRow"),t(_)):ua(_)?uc(e,P,"whitespace")(_):(e.enter("data"),V(_))}function V(_){return _===null||_===124||bD(_)?(e.exit("data"),P(_)):(e.consume(_),_===92?J:V)}function J(_){return _===92||_===124?(e.consume(_),V):V(_)}}function fte(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],l=!1,c=0,f,p,d,g=new Pg;for(;++n<e.length;){let m=e[n],x=m[1];m[0]==="enter"?x.type==="tableHead"?(l=!1,c!==0&&(W4(g,t,c,f,p),p=void 0,c=0),f={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},g.add(n,0,[["enter",f,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],a=[0,n+1,0,0],l&&(l=!1,p={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},g.add(n,0,[["enter",p,t]])),i=x.type==="tableDelimiterRow"?2:p?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],d=zg(g,t,o,i,void 0,d),o=[0,0,0,0]),a[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],d=zg(g,t,o,i,void 0,d)),o=a,a=[o[1],n,0,0])):x.type==="tableHead"?(l=!0,c=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(c=n,o[1]!==0?(a[0]=a[1],d=zg(g,t,o,i,n,d)):a[1]!==0&&(d=zg(g,t,a,i,n,d)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(a[3]=n)}for(c!==0&&W4(g,t,c,f,p),g.consume(t.events),n=-1;++n<t.events.length;){let m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=G4(t.events,n))}return e}function zg(e,t,n,r,i,o){let a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(o.end=Object.assign({},lc(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let c=lc(t.events,n[1]);if(o={type:a,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){let f=lc(t.events,n[2]),p=lc(t.events,n[3]),d={type:l,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){let g=t.events[n[2]],m=t.events[n[3]];if(g[1].end=Object.assign({},m[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){let x=n[2]+1,S=n[3]-n[2]-1;e.add(x,S,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},lc(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function W4(e,t,n,r,i){let o=[],a=lc(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function lc(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var fde=pu(/[A-Za-z]/),pde=pu(/[\dA-Za-z]/),mde=pu(/[#-'*+\--9=?A-Z^-~]/);var hde=pu(/\d/),dde=pu(/[\dA-Fa-f]/),gde=pu(/[!-/:-@[-`{-~]/);function K4(e){return e!==null&&e<-2}function Y4(e){return e!==null&&(e<0||e===32)}function Hp(e){return e===-2||e===-1||e===32}var vde=pu(/\p{P}|\p{S}/u),yde=pu(/\s/);function pu(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function X4(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return a;function a(c){return Hp(c)?(e.enter(n),l(c)):t(c)}function l(c){return Hp(c)&&o++<i?(e.consume(c),l):(e.exit(n),t(c))}}var pte={name:"tasklistCheck",tokenize:mte};function DD(){return{text:{[91]:pte}}}function mte(e,t,n){let r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),o)}function o(c){return Y4(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),a):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),a):n(c)}function a(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return K4(c)?t(c):Hp(c)?e.check({tokenize:hte},t,n)(c):n(c)}}function hte(e,t,n){return X4(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Q4(e){return M4([hD(),vD(),xD(e),ED(),DD()])}var dte={};function sc(e){let t=this,n=e||dte,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Q4(n)),o.push(cD()),a.push(fD(n))}var gte={};function wD(e,t){let n=t||gte,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return J4(e,r,i)}function J4(e,t,n){if(vte(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Z4(e.children,t,n)}return Array.isArray(e)?Z4(e,t,n):""}function Z4(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=J4(e[i],t,n);return r.join("")}function vte(e){return!!(e&&typeof e=="object")}function Hn(e,t,n,r){let i=e.length,o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function sr(e,t){return e.length>0?(Hn(e,e.length,0,t),e):t}var eR={}.hasOwnProperty;function tR(e){let t={},n=-1;for(;++n<e.length;)yte(t,e[n]);return t}function yte(e,t){let n;for(n in t){let i=(eR.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n],a;if(o)for(a in o){eR.call(i,a)||(i[a]=[]);let l=o[a];xte(i[a],Array.isArray(l)?l:l?[l]:[])}}}function xte(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Hn(e,0,0,r)}var nR=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;var ei=mu(/[A-Za-z]/),cr=mu(/[\dA-Za-z]/),rR=mu(/[#-'*+\--9=?A-Z^-~]/);function qp(e){return e!==null&&(e<32||e===127)}var jp=mu(/\d/),iR=mu(/[\dA-Fa-f]/),oR=mu(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function rn(e){return e!==null&&(e<0||e===32)}function Ge(e){return e===-2||e===-1||e===32}var aR=mu(nR),uR=mu(/\s/);function mu(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function Xe(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return a;function a(c){return Ge(c)?(e.enter(n),l(c)):t(c)}function l(c){return Ge(c)&&o++<i?(e.consume(c),l):(e.exit(n),t(c))}}var lR={tokenize:bte};function bte(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Xe(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){let c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return we(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),a)}}var cR={tokenize:Ete},sR={tokenize:Dte};function Ete(e){let t=this,n=[],r=0,i,o,a;return l;function l(C){if(r<n.length){let M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,c,f)(C)}return f(C)}function c(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();let M=t.events.length,R=M,A;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){A=t.events[R][1].end;break}y(r);let P=M;for(;P<t.events.length;)t.events[P][1].end=Object.assign({},A),P++;return Hn(t.events,R+1,0,t.events.slice(M)),t.events.length=P,f(C)}return l(C)}function f(C){if(r===n.length){if(!i)return g(C);if(i.currentConstruct&&i.currentConstruct.concrete)return x(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(sR,p,d)(C)}function p(C){return i&&w(),y(r),g(C)}function d(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,x(C)}function g(C){return t.containerState={},e.attempt(sR,m,x)(C)}function m(C){return r++,n.push([t.currentConstruct,t.containerState]),g(C)}function x(C){if(C===null){i&&w(),y(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),S(C)}function S(C){if(C===null){T(e.exit("chunkFlow"),!0),y(0),e.consume(C);return}return we(C)?(e.consume(C),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(C),S)}function T(C,M){let R=t.sliceStream(C);if(M&&R.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(R),t.parser.lazy[C.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<a&&(!i.events[A][1].end||i.events[A][1].end.offset>a))return;let P=t.events.length,V=P,J,_;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(J){_=t.events[V][1].end;break}J=!0}for(y(r),A=P;A<t.events.length;)t.events[A][1].end=Object.assign({},_),A++;Hn(t.events,V+1,0,t.events.slice(P)),t.events.length=A}}function y(C){let M=n.length;for(;M-- >C;){let R=n[M];t.containerState=R[1],R[0].exit.call(t,e)}n.length=C}function w(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Dte(e,t,n){return Xe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function CD(e){if(e===null||rn(e)||uR(e))return 1;if(aR(e))return 2}function cc(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}var Vp={name:"attention",tokenize:Cte,resolveAll:wte};function wte(e,t){let n=-1,r,i,o,a,l,c,f,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d=Object.assign({},e[r][1].end),g=Object.assign({},e[n][1].start);fR(d,-c),fR(g,c),a={type:c>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},l={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:g},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:c>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},l.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=sr(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=sr(f,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),f=sr(f,cc(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=sr(f,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=sr(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Hn(e,r-1,n-r+3,f),n=r+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Cte(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=CD(r),o;return a;function a(c){return o=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===o)return e.consume(c),l;let f=e.exit("attentionSequence"),p=CD(c),d=!p||p===2&&i||n.includes(c),g=!i||i===2&&p||n.includes(r);return f._open=!!(o===42?d:d&&(i||!g)),f._close=!!(o===42?g:g&&(p||!d)),t(c)}}function fR(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var SD={name:"autolink",tokenize:Ste};function Ste(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(m){return ei(m)?(e.consume(m),a):f(m)}function a(m){return m===43||m===45||m===46||cr(m)?(r=1,l(m)):f(m)}function l(m){return m===58?(e.consume(m),r=0,c):(m===43||m===45||m===46||cr(m))&&r++<32?(e.consume(m),l):(r=0,f(m))}function c(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||qp(m)?n(m):(e.consume(m),c)}function f(m){return m===64?(e.consume(m),p):rR(m)?(e.consume(m),f):n(m)}function p(m){return cr(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,p):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):g(m)}function g(m){if((m===45||cr(m))&&r++<63){let x=m===45?g:d;return e.consume(m),x}return n(m)}}var hu={tokenize:kte,partial:!0};function kte(e,t,n){return r;function r(o){return Ge(o)?Xe(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||we(o)?t(o):n(o)}}var Ng={name:"blockQuote",tokenize:Ate,continuation:{tokenize:Tte},exit:Bte};function Ate(e,t,n){let r=this;return i;function i(a){if(a===62){let l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return Ge(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Tte(e,t,n){let r=this;return i;function i(a){return Ge(a)?Xe(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(Ng,t,n)(a)}}function Bte(e){e.exit("blockQuote")}var Ug={name:"characterEscape",tokenize:Ote};function Ote(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return oR(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}var Hg={name:"characterReference",tokenize:Mte};function Mte(e,t,n){let r=this,i=0,o,a;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),c}function c(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,a=cr,p(d))}function f(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=iR,p):(e.enter("characterReferenceValue"),o=7,a=jp,p(d))}function p(d){if(d===59&&i){let g=e.exit("characterReferenceValue");return a===cr&&!Fi(r.sliceSerialize(g))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),p):n(d)}}var pR={tokenize:Fte,partial:!0},qg={name:"codeFenced",tokenize:Rte,concrete:!0};function Rte(e,t,n){let r=this,i={tokenize:R,partial:!0},o=0,a=0,l;return c;function c(A){return f(A)}function f(A){let P=r.events[r.events.length-1];return o=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,l=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(A)}function p(A){return A===l?(a++,e.consume(A),p):a<3?n(A):(e.exit("codeFencedFenceSequence"),Ge(A)?Xe(e,d,"whitespace")(A):d(A))}function d(A){return A===null||we(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(pR,S,M)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||we(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):Ge(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Xe(e,m,"whitespace")(A)):A===96&&A===l?n(A):(e.consume(A),g)}function m(A){return A===null||we(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===null||we(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===l?n(A):(e.consume(A),x)}function S(A){return e.attempt(i,M,T)(A)}function T(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),y}function y(A){return o>0&&Ge(A)?Xe(e,w,"linePrefix",o+1)(A):w(A)}function w(A){return A===null||we(A)?e.check(pR,S,M)(A):(e.enter("codeFlowValue"),C(A))}function C(A){return A===null||we(A)?(e.exit("codeFlowValue"),w(A)):(e.consume(A),C)}function M(A){return e.exit("codeFenced"),t(A)}function R(A,P,V){let J=0;return _;function _(G){return A.enter("lineEnding"),A.consume(G),A.exit("lineEnding"),de}function de(G){return A.enter("codeFencedFence"),Ge(G)?Xe(A,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):Z(G)}function Z(G){return G===l?(A.enter("codeFencedFenceSequence"),H(G)):V(G)}function H(G){return G===l?(J++,A.consume(G),H):J>=a?(A.exit("codeFencedFenceSequence"),Ge(G)?Xe(A,K,"whitespace")(G):K(G)):V(G)}function K(G){return G===null||we(G)?(A.exit("codeFencedFence"),P(G)):V(G)}}}function Fte(e,t,n){let r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}var $p={name:"codeIndented",tokenize:Ite},_te={tokenize:Lte,partial:!0};function Ite(e,t,n){let r=this;return i;function i(f){return e.enter("codeIndented"),Xe(e,o,"linePrefix",4+1)(f)}function o(f){let p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(f):n(f)}function a(f){return f===null?c(f):we(f)?e.attempt(_te,a,c)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||we(f)?(e.exit("codeFlowValue"),a(f)):(e.consume(f),l)}function c(f){return e.exit("codeIndented"),t(f)}}function Lte(e,t,n){let r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):we(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Xe(e,o,"linePrefix",4+1)(a)}function o(a){let l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):we(a)?i(a):n(a)}}var kD={name:"codeText",tokenize:Nte,resolve:Pte,previous:zte};function Pte(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function zte(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Nte(e,t,n){let r=this,i=0,o,a;return l;function l(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),i++,c):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(a=e.enter("codeTextSequence"),o=0,d(g)):we(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||we(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),p)}function d(g){return g===96?(e.consume(g),o++,d):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",p(g))}}function jg(e){let t={},n=-1,r,i,o,a,l,c,f;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ute(e,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=e[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),l=e.slice(i,n),l.unshift(r),Hn(e,i,n-i+1,l))}}return!f}function Ute(e,t){let n=e[t][1],r=e[t][2],i=t-1,o=[],a=n._tokenizer||r.parser[n.contentType](n.start),l=a.events,c=[],f={},p,d,g=-1,m=n,x=0,S=0,T=[S];for(;m;){for(;e[++i][1]!==m;);o.push(i),m._tokenizer||(p=r.sliceStream(m),m.next||p.push(null),d&&a.defineSkip(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(S=g+1,T.push(S),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):T.pop(),g=T.length;g--;){let y=l.slice(T[g],T[g+1]),w=o.pop();c.unshift([w,w+y.length-1]),Hn(e,w,2,y)}for(g=-1;++g<c.length;)f[x+c[g][0]]=x+c[g][1],x+=c[g][1]-c[g][0]-1;return f}var AD={tokenize:jte,resolve:qte},Hte={tokenize:Vte,partial:!0};function qte(e){return jg(e),e}function jte(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):we(l)?e.check(Hte,a,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Vte(e,t,n){let r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Xe(e,o,"linePrefix")}function o(a){if(a===null||we(a))return n(a);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Vg(e,t,n,r,i,o,a,l,c){let f=c||Number.POSITIVE_INFINITY,p=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),g):y===null||y===32||y===41||qp(y)?n(y):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),S(y))}function g(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(l),g(y)):y===null||y===60||we(y)?n(y):(e.consume(y),y===92?x:m)}function x(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function S(y){return!p&&(y===null||y===41||rn(y))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(y)):p<f&&y===40?(e.consume(y),p++,S):y===41?(e.consume(y),p--,S):y===null||y===32||y===40||qp(y)?n(y):(e.consume(y),y===92?T:S)}function T(y){return y===40||y===41||y===92?(e.consume(y),S):S(y)}}function $g(e,t,n,r,i,o){let a=this,l=0,c;return f;function f(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(o),p}function p(m){return l>999||m===null||m===91||m===93&&!c||m===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(m):m===93?(e.exit(o),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):we(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||we(m)||l++>999?(e.exit("chunkString"),p(m)):(e.consume(m),c||(c=!Ge(m)),m===92?g:d)}function g(m){return m===91||m===92||m===93?(e.consume(m),l++,d):d(m)}}function Gg(e,t,n,r,i,o){let a;return l;function l(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),a=g===40?41:g,c):n(g)}function c(g){return g===a?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):(e.enter(o),f(g))}function f(g){return g===a?(e.exit(o),c(a)):g===null?n(g):we(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Xe(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===a||g===null||we(g)?(e.exit("chunkString"),f(g)):(e.consume(g),g===92?d:p)}function d(g){return g===a||g===92?(e.consume(g),p):p(g)}}function xl(e,t){let n;return r;function r(i){return we(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ge(i)?Xe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function la(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var TD={name:"definition",tokenize:Gte},$te={tokenize:Wte,partial:!0};function Gte(e,t,n){let r=this,i;return o;function o(m){return e.enter("definition"),a(m)}function a(m){return $g.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return i=la(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),c):n(m)}function c(m){return rn(m)?xl(e,f)(m):f(m)}function f(m){return Vg(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt($te,d,d)(m)}function d(m){return Ge(m)?Xe(e,g,"whitespace")(m):g(m)}function g(m){return m===null||we(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function Wte(e,t,n){return r;function r(l){return rn(l)?xl(e,i)(l):n(l)}function i(l){return Gg(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return Ge(l)?Xe(e,a,"whitespace")(l):a(l)}function a(l){return l===null||we(l)?t(l):n(l)}}var BD={name:"hardBreakEscape",tokenize:Kte};function Kte(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return we(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}var OD={name:"headingAtx",tokenize:Xte,resolve:Yte};function Yte(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Hn(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Xte(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&r++<6?(e.consume(p),a):p===null||rn(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),c(p)):p===null||we(p)?(e.exit("atxHeading"),t(p)):Ge(p)?Xe(e,l,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function c(p){return p===35?(e.consume(p),c):(e.exit("atxHeadingSequence"),l(p))}function f(p){return p===null||p===35||rn(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),f)}}var mR=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],MD=["pre","script","style","textarea"];var RD={name:"htmlFlow",tokenize:ene,resolveTo:Jte,concrete:!0},Qte={tokenize:nne,partial:!0},Zte={tokenize:tne,partial:!0};function Jte(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ene(e,t,n){let r=this,i,o,a,l,c;return f;function f(D){return p(D)}function p(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),g):D===47?(e.consume(D),o=!0,S):D===63?(e.consume(D),i=3,r.interrupt?t:E):ei(D)?(e.consume(D),a=String.fromCharCode(D),T):n(D)}function g(D){return D===45?(e.consume(D),i=2,m):D===91?(e.consume(D),i=5,l=0,x):ei(D)?(e.consume(D),i=4,r.interrupt?t:E):n(D)}function m(D){return D===45?(e.consume(D),r.interrupt?t:E):n(D)}function x(D){let Ee="CDATA[";return D===Ee.charCodeAt(l++)?(e.consume(D),l===Ee.length?r.interrupt?t:Z:x):n(D)}function S(D){return ei(D)?(e.consume(D),a=String.fromCharCode(D),T):n(D)}function T(D){if(D===null||D===47||D===62||rn(D)){let Ee=D===47,ze=a.toLowerCase();return!Ee&&!o&&MD.includes(ze)?(i=1,r.interrupt?t(D):Z(D)):mR.includes(a.toLowerCase())?(i=6,Ee?(e.consume(D),y):r.interrupt?t(D):Z(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):o?w(D):C(D))}return D===45||cr(D)?(e.consume(D),a+=String.fromCharCode(D),T):n(D)}function y(D){return D===62?(e.consume(D),r.interrupt?t:Z):n(D)}function w(D){return Ge(D)?(e.consume(D),w):_(D)}function C(D){return D===47?(e.consume(D),_):D===58||D===95||ei(D)?(e.consume(D),M):Ge(D)?(e.consume(D),C):_(D)}function M(D){return D===45||D===46||D===58||D===95||cr(D)?(e.consume(D),M):R(D)}function R(D){return D===61?(e.consume(D),A):Ge(D)?(e.consume(D),R):C(D)}function A(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),c=D,P):Ge(D)?(e.consume(D),A):V(D)}function P(D){return D===c?(e.consume(D),c=null,J):D===null||we(D)?n(D):(e.consume(D),P)}function V(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||rn(D)?R(D):(e.consume(D),V)}function J(D){return D===47||D===62||Ge(D)?C(D):n(D)}function _(D){return D===62?(e.consume(D),de):n(D)}function de(D){return D===null||we(D)?Z(D):Ge(D)?(e.consume(D),de):n(D)}function Z(D){return D===45&&i===2?(e.consume(D),me):D===60&&i===1?(e.consume(D),U):D===62&&i===4?(e.consume(D),ve):D===63&&i===3?(e.consume(D),E):D===93&&i===5?(e.consume(D),Q):we(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Qte,Se,H)(D)):D===null||we(D)?(e.exit("htmlFlowData"),H(D)):(e.consume(D),Z)}function H(D){return e.check(Zte,K,Se)(D)}function K(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),G}function G(D){return D===null||we(D)?H(D):(e.enter("htmlFlowData"),Z(D))}function me(D){return D===45?(e.consume(D),E):Z(D)}function U(D){return D===47?(e.consume(D),a="",te):Z(D)}function te(D){if(D===62){let Ee=a.toLowerCase();return MD.includes(Ee)?(e.consume(D),ve):Z(D)}return ei(D)&&a.length<8?(e.consume(D),a+=String.fromCharCode(D),te):Z(D)}function Q(D){return D===93?(e.consume(D),E):Z(D)}function E(D){return D===62?(e.consume(D),ve):D===45&&i===2?(e.consume(D),E):Z(D)}function ve(D){return D===null||we(D)?(e.exit("htmlFlowData"),Se(D)):(e.consume(D),ve)}function Se(D){return e.exit("htmlFlow"),t(D)}}function tne(e,t,n){let r=this;return i;function i(a){return we(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function nne(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(hu,t,n)}}var FD={name:"htmlText",tokenize:rne};function rne(e,t,n){let r=this,i,o,a;return l;function l(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),f):E===47?(e.consume(E),R):E===63?(e.consume(E),C):ei(E)?(e.consume(E),V):n(E)}function f(E){return E===45?(e.consume(E),p):E===91?(e.consume(E),o=0,x):ei(E)?(e.consume(E),w):n(E)}function p(E){return E===45?(e.consume(E),m):n(E)}function d(E){return E===null?n(E):E===45?(e.consume(E),g):we(E)?(a=d,U(E)):(e.consume(E),d)}function g(E){return E===45?(e.consume(E),m):d(E)}function m(E){return E===62?me(E):E===45?g(E):d(E)}function x(E){let ve="CDATA[";return E===ve.charCodeAt(o++)?(e.consume(E),o===ve.length?S:x):n(E)}function S(E){return E===null?n(E):E===93?(e.consume(E),T):we(E)?(a=S,U(E)):(e.consume(E),S)}function T(E){return E===93?(e.consume(E),y):S(E)}function y(E){return E===62?me(E):E===93?(e.consume(E),y):S(E)}function w(E){return E===null||E===62?me(E):we(E)?(a=w,U(E)):(e.consume(E),w)}function C(E){return E===null?n(E):E===63?(e.consume(E),M):we(E)?(a=C,U(E)):(e.consume(E),C)}function M(E){return E===62?me(E):C(E)}function R(E){return ei(E)?(e.consume(E),A):n(E)}function A(E){return E===45||cr(E)?(e.consume(E),A):P(E)}function P(E){return we(E)?(a=P,U(E)):Ge(E)?(e.consume(E),P):me(E)}function V(E){return E===45||cr(E)?(e.consume(E),V):E===47||E===62||rn(E)?J(E):n(E)}function J(E){return E===47?(e.consume(E),me):E===58||E===95||ei(E)?(e.consume(E),_):we(E)?(a=J,U(E)):Ge(E)?(e.consume(E),J):me(E)}function _(E){return E===45||E===46||E===58||E===95||cr(E)?(e.consume(E),_):de(E)}function de(E){return E===61?(e.consume(E),Z):we(E)?(a=de,U(E)):Ge(E)?(e.consume(E),de):J(E)}function Z(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),i=E,H):we(E)?(a=Z,U(E)):Ge(E)?(e.consume(E),Z):(e.consume(E),K)}function H(E){return E===i?(e.consume(E),i=void 0,G):E===null?n(E):we(E)?(a=H,U(E)):(e.consume(E),H)}function K(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||rn(E)?J(E):(e.consume(E),K)}function G(E){return E===47||E===62||rn(E)?J(E):n(E)}function me(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function U(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),te}function te(E){return Ge(E)?Xe(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):Q(E)}function Q(E){return e.enter("htmlTextData"),a(E)}}var bl={name:"labelEnd",tokenize:sne,resolveTo:lne,resolveAll:une},ine={tokenize:cne},one={tokenize:fne},ane={tokenize:pne};function une(e){let t=-1;for(;++t<e.length;){let n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function lne(e,t){let n=e.length,r=0,i,o,a,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);let c={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},f={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},p={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return l=[["enter",c,t],["enter",f,t]],l=sr(l,e.slice(o+1,o+r+3)),l=sr(l,[["enter",p,t]]),l=sr(l,cc(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),l=sr(l,[["exit",p,t],e[a-2],e[a-1],["exit",f,t]]),l=sr(l,e.slice(a+1)),l=sr(l,[["exit",c,t]]),Hn(e,o,e.length,l),e}function sne(e,t,n){let r=this,i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(g){return o?o._inactive?d(g):(a=r.parser.defined.includes(la(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),c):n(g)}function c(g){return g===40?e.attempt(ine,p,a?p:d)(g):g===91?e.attempt(one,p,a?f:d)(g):a?p(g):d(g)}function f(g){return e.attempt(ane,p,d)(g)}function p(g){return t(g)}function d(g){return o._balanced=!0,n(g)}}function cne(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return rn(d)?xl(e,o)(d):o(d)}function o(d){return d===41?p(d):Vg(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return rn(d)?xl(e,c)(d):p(d)}function l(d){return n(d)}function c(d){return d===34||d===39||d===40?Gg(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):p(d)}function f(d){return rn(d)?xl(e,p)(d):p(d)}function p(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function fne(e,t,n){let r=this;return i;function i(l){return $g.call(r,e,o,a,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(la(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function a(l){return n(l)}}function pne(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}var _D={name:"labelStartImage",tokenize:mne,resolveAll:bl.resolveAll};function mne(e,t,n){let r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}var ID={name:"labelStartLink",tokenize:hne,resolveAll:bl.resolveAll};function hne(e,t,n){let r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}var Gp={name:"lineEnding",tokenize:dne};function dne(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Xe(e,t,"linePrefix")}}var El={name:"thematicBreak",tokenize:gne};function gne(e,t,n){let r=0,i;return o;function o(f){return e.enter("thematicBreak"),a(f)}function a(f){return i=f,l(f)}function l(f){return f===i?(e.enter("thematicBreakSequence"),c(f)):r>=3&&(f===null||we(f))?(e.exit("thematicBreak"),t(f)):n(f)}function c(f){return f===i?(e.consume(f),r++,c):(e.exit("thematicBreakSequence"),Ge(f)?Xe(e,l,"whitespace")(f):l(f))}}var Yn={name:"list",tokenize:xne,continuation:{tokenize:bne},exit:Dne},vne={tokenize:wne,partial:!0},yne={tokenize:Ene,partial:!0};function xne(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return l;function l(m){let x=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:jp(m)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(El,n,f)(m):f(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(m)}return n(m)}function c(m){return jp(m)&&++a<10?(e.consume(m),c):(!r.interrupt||a<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),f(m)):n(m)}function f(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(hu,r.interrupt?n:p,e.attempt(vne,g,d))}function p(m){return r.containerState.initialBlankLine=!0,o++,g(m)}function d(m){return Ge(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),g):n(m)}function g(m){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function bne(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(hu,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Xe(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!Ge(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yne,t,a)(l))}function a(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Xe(e,e.attempt(Yn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Ene(e,t,n){let r=this;return Xe(e,i,"listItemIndent",r.containerState.size+1);function i(o){let a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function Dne(e){e.exit(this.containerState.type)}function wne(e,t,n){let r=this;return Xe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){let a=r.events[r.events.length-1];return!Ge(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}var Wg={name:"setextUnderline",tokenize:Sne,resolveTo:Cne};function Cne(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);let a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function Sne(e,t,n){let r=this,i;return o;function o(f){let p=r.events.length,d;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){d=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=f,a(f)):n(f)}function a(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===i?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),Ge(f)?Xe(e,c,"lineSuffix")(f):c(f))}function c(f){return f===null||we(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}var hR={tokenize:kne};function kne(e){let t=this,n=e.attempt(hu,r,e.attempt(this.parser.constructs.flowInitial,i,Xe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(AD,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}var dR={resolveAll:xR()},gR=yR("string"),vR=yR("text");function yR(e){return{tokenize:t,resolveAll:xR(e==="text"?Ane:void 0)};function t(n){let r=this,i=this.parser.constructs[e],o=n.attempt(i,a,l);return a;function a(p){return f(p)?o(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),c}function c(p){return f(p)?(n.exit("data"),o(p)):(n.consume(p),c)}function f(p){if(p===null)return!0;let d=i[p],g=-1;if(d)for(;++g<d.length;){let m=d[g];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function xR(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Ane(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){let r=e[n-1][1],i=t.sliceStream(r),o=i.length,a=-1,l=0,c;for(;o--;){let f=i[o];if(typeof f=="string"){for(a=f.length;f.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(f===-2)c=!0,l++;else if(f!==-1){o++;break}}if(l){let f={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},f.start),r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}function bR(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],a=[],l=[],c=!0,f={consume:M,enter:R,exit:A,attempt:J(P),check:J(V),interrupt:J(V,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:S,sliceSerialize:x,now:T,defineSkip:y,write:m},d=t.tokenize.call(p,f),g;return t.resolveAll&&o.push(t),p;function m(H){return a=sr(a,H),w(),a[a.length-1]!==null?[]:(_(t,0),p.events=cc(o,p.events,p),p.events)}function x(H,K){return Bne(S(H),K)}function S(H){return Tne(a,H)}function T(){let{line:H,column:K,offset:G,_index:me,_bufferIndex:U}=r;return{line:H,column:K,offset:G,_index:me,_bufferIndex:U}}function y(H){i[H.line]=H.column,Z()}function w(){let H;for(;r._index<a.length;){let K=a[r._index];if(typeof K=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<K.length;)C(K.charCodeAt(r._bufferIndex));else C(K)}}function C(H){c=void 0,g=H,d=d(H)}function M(H){we(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,Z()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),p.previous=H,c=!0}function R(H,K){let G=K||{};return G.type=H,G.start=T(),p.events.push(["enter",G,p]),l.push(G),G}function A(H){let K=l.pop();return K.end=T(),p.events.push(["exit",K,p]),K}function P(H,K){_(H,K.from)}function V(H,K){K.restore()}function J(H,K){return G;function G(me,U,te){let Q,E,ve,Se;return Array.isArray(me)?Ee(me):"tokenize"in me?Ee([me]):D(me);function D(Te){return Ze;function Ze(He){let je=He!==null&&Te[He],Ne=He!==null&&Te.null,rt=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Ne)?Ne:Ne?[Ne]:[]];return Ee(rt)(He)}}function Ee(Te){return Q=Te,E=0,Te.length===0?te:ze(Te[E])}function ze(Te){return Ze;function Ze(He){return Se=de(),ve=Te,Te.partial||(p.currentConstruct=Te),Te.name&&p.parser.constructs.disable.null.includes(Te.name)?_e(He):Te.tokenize.call(K?Object.assign(Object.create(p),K):p,f,Pe,_e)(He)}}function Pe(Te){return c=!0,H(ve,Se),U}function _e(Te){return c=!0,Se.restore(),++E<Q.length?ze(Q[E]):te}}}function _(H,K){H.resolveAll&&!o.includes(H)&&o.push(H),H.resolve&&Hn(p.events,K,p.events.length-K,H.resolve(p.events.slice(K),p)),H.resolveTo&&(p.events=H.resolveTo(p.events,p))}function de(){let H=T(),K=p.previous,G=p.currentConstruct,me=p.events.length,U=Array.from(l);return{restore:te,from:me};function te(){r=H,p.previous=K,p.currentConstruct=G,p.events.length=me,l=U,Z()}}function Z(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Tne(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex,a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){let l=a[0];typeof l=="string"?a[0]=l.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function Bne(e,t){let n=-1,r=[],i;for(;++n<e.length;){let o=e[n],a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
|
|
55
|
-
`;break}case-3:{
|
|
56
|
-
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}var LD={};ay(LD,{attentionMarkers:()=>Pne,contentInitial:()=>Mne,disable:()=>zne,document:()=>One,flow:()=>Fne,flowInitial:()=>Rne,insideSpan:()=>Lne,string:()=>_ne,text:()=>Ine});var One={[42]:Yn,[43]:Yn,[45]:Yn,[48]:Yn,[49]:Yn,[50]:Yn,[51]:Yn,[52]:Yn,[53]:Yn,[54]:Yn,[55]:Yn,[56]:Yn,[57]:Yn,[62]:Ng},Mne={[91]:TD},Rne={[-2]:$p,[-1]:$p,[32]:$p},Fne={[35]:OD,[42]:El,[45]:[Wg,El],[60]:RD,[61]:Wg,[95]:El,[96]:qg,[126]:qg},_ne={[38]:Hg,[92]:Ug},Ine={[-5]:Gp,[-4]:Gp,[-3]:Gp,[33]:_D,[38]:Hg,[42]:Vp,[60]:[SD,FD],[91]:ID,[92]:[BD,Ug],[93]:bl,[95]:Vp,[96]:kD},Lne={null:[Vp,dR]},Pne={null:[42,95]},zne={null:[]};function ER(e){let n=tR([LD,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(lR),document:i(cR),flow:i(hR),string:i(gR),text:i(vR)};return r;function i(o){return a;function a(l){return bR(r,o,l)}}}var DR=/[\0\t\n\r]/g;function wR(){let e=1,t="",n=!0,r;return i;function i(o,a,l){let c=[],f,p,d,g,m;for(o=t+o.toString(a),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(DR.lastIndex=d,f=DR.exec(o),g=f&&f.index!==void 0?f.index:o.length,m=o.charCodeAt(g),!f){t=o.slice(d);break}if(m===10&&d===g&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),d<g&&(c.push(o.slice(d,g)),e+=g-d),m){case 0:{c.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,c.push(-2);e++<p;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}d=g+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}function CR(e){for(;!jg(e););return e}function Kg(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCharCode(n)}var Nne=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function SR(e){return e.replace(Nne,Une)}function Une(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),o=i===120||i===88;return Kg(n.slice(o?2:1),o?16:10)}return Fi(n)||e}function fc(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?kR(e.position):"start"in e||"end"in e?kR(e):"line"in e||"column"in e?PD(e):""}function PD(e){return AR(e&&e.line)+":"+AR(e&&e.column)}function kR(e){return PD(e&&e.start)+"-"+PD(e&&e.end)}function AR(e){return e&&typeof e=="number"?e:1}var BR={}.hasOwnProperty,zD=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Hne(n)(CR(ER(n).document().write(wR()(e,t,!0))))};function Hne(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(tr),autolinkProtocol:de,autolinkEmail:de,atxHeading:l(er),blockQuote:l(je),characterEscape:de,characterReference:de,codeFenced:l(Ne),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(Ne,c),codeText:l(rt,c),codeTextData:de,data:de,codeFlowValue:de,definition:l(br),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(Ot),hardBreakEscape:l(Lr),hardBreakTrailing:l(Lr),htmlFlow:l(Rn,c),htmlFlowData:de,htmlText:l(Rn,c),htmlTextData:de,image:l(ln),label:c,link:l(tr),listItem:l(li),listItemValue:x,listOrdered:l(Pr,m),listUnordered:l(Pr),paragraph:l(si),reference:ze,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(er),strong:l(ya),thematicBreak:l(ee)},exit:{atxHeading:p(),atxHeadingSequence:P,autolink:p(),autolinkEmail:He,autolinkProtocol:Ze,blockQuote:p(),characterEscapeValue:Z,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:Te,codeFenced:p(w),codeFencedFence:y,codeFencedFenceInfo:S,codeFencedFenceMeta:T,codeFlowValue:Z,codeIndented:p(C),codeText:p(U),codeTextData:Z,data:Z,definition:p(),definitionDestinationString:A,definitionLabelString:M,definitionTitleString:R,emphasis:p(),hardBreakEscape:p(K),hardBreakTrailing:p(K),htmlFlow:p(G),htmlFlowData:Z,htmlText:p(me),htmlTextData:Z,image:p(Q),label:ve,labelText:E,lineEnding:H,link:p(te),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Pe,resourceDestinationString:Se,resourceTitleString:D,resource:Ee,setextHeading:p(_),setextHeadingLineSequence:J,setextHeadingText:V,strong:p(),thematicBreak:p()}};OR(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(z){let X={type:"root",children:[]},pe={stack:[X],tokenStack:[],config:t,enter:f,exit:d,buffer:c,resume:g,setData:o,getData:a},ke=[],Re=-1;for(;++Re<z.length;)if(z[Re][1].type==="listOrdered"||z[Re][1].type==="listUnordered")if(z[Re][0]==="enter")ke.push(Re);else{let _t=ke.pop();Re=i(z,_t,Re)}for(Re=-1;++Re<z.length;){let _t=t[z[Re][0]];BR.call(_t,z[Re][1].type)&&_t[z[Re][1].type].call(Object.assign({sliceSerialize:z[Re][2].sliceSerialize},pe),z[Re][1])}if(pe.tokenStack.length>0){let _t=pe.tokenStack[pe.tokenStack.length-1];(_t[1]||TR).call(pe,void 0,_t[0])}for(X.position={start:du(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:du(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<t.transforms.length;)X=t.transforms[Re](X)||X;return X}function i(z,X,pe){let ke=X-1,Re=-1,_t=!1,zt,jt,_n,Vt;for(;++ke<=pe;){let vt=z[ke];if(vt[1].type==="listUnordered"||vt[1].type==="listOrdered"||vt[1].type==="blockQuote"?(vt[0]==="enter"?Re++:Re--,Vt=void 0):vt[1].type==="lineEndingBlank"?vt[0]==="enter"&&(zt&&!Vt&&!Re&&!_n&&(_n=ke),Vt=void 0):vt[1].type==="linePrefix"||vt[1].type==="listItemValue"||vt[1].type==="listItemMarker"||vt[1].type==="listItemPrefix"||vt[1].type==="listItemPrefixWhitespace"||(Vt=void 0),!Re&&vt[0]==="enter"&&vt[1].type==="listItemPrefix"||Re===-1&&vt[0]==="exit"&&(vt[1].type==="listUnordered"||vt[1].type==="listOrdered")){if(zt){let In=ke;for(jt=void 0;In--;){let Er=z[In];if(Er[1].type==="lineEnding"||Er[1].type==="lineEndingBlank"){if(Er[0]==="exit")continue;jt&&(z[jt][1].type="lineEndingBlank",_t=!0),Er[1].type="lineEnding",jt=In}else if(!(Er[1].type==="linePrefix"||Er[1].type==="blockQuotePrefix"||Er[1].type==="blockQuotePrefixWhitespace"||Er[1].type==="blockQuoteMarker"||Er[1].type==="listItemIndent"))break}_n&&(!jt||_n<jt)&&(zt._spread=!0),zt.end=Object.assign({},jt?z[jt][1].start:vt[1].end),z.splice(jt||ke,0,["exit",zt,vt[2]]),ke++,pe++}vt[1].type==="listItemPrefix"&&(zt={type:"listItem",_spread:!1,start:Object.assign({},vt[1].start),end:void 0},z.splice(ke,0,["enter",zt,vt[2]]),ke++,pe++,_n=void 0,Vt=!0)}}return z[X][1]._spread=_t,pe}function o(z,X){n[z]=X}function a(z){return n[z]}function l(z,X){return pe;function pe(ke){f.call(this,z(ke),ke),X&&X.call(this,ke)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(z,X,pe){return this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([X,pe]),z.position={start:du(X.start)},z}function p(z){return X;function X(pe){z&&z.call(this,pe),d.call(this,pe)}}function d(z,X){let pe=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==z.type&&(X?X.call(this,z,ke[0]):(ke[1]||TR).call(this,z,ke[0]));else throw new Error("Cannot close `"+z.type+"` ("+fc({start:z.start,end:z.end})+"): it\u2019s not open");return pe.position.end=du(z.end),pe}function g(){return wD(this.stack.pop())}function m(){o("expectingFirstListItemValue",!0)}function x(z){if(a("expectingFirstListItemValue")){let X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(z),10),o("expectingFirstListItemValue")}}function S(){let z=this.resume(),X=this.stack[this.stack.length-1];X.lang=z}function T(){let z=this.resume(),X=this.stack[this.stack.length-1];X.meta=z}function y(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function w(){let z=this.resume(),X=this.stack[this.stack.length-1];X.value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function C(){let z=this.resume(),X=this.stack[this.stack.length-1];X.value=z.replace(/(\r?\n|\r)$/g,"")}function M(z){let X=this.resume(),pe=this.stack[this.stack.length-1];pe.label=X,pe.identifier=la(this.sliceSerialize(z)).toLowerCase()}function R(){let z=this.resume(),X=this.stack[this.stack.length-1];X.title=z}function A(){let z=this.resume(),X=this.stack[this.stack.length-1];X.url=z}function P(z){let X=this.stack[this.stack.length-1];if(!X.depth){let pe=this.sliceSerialize(z).length;X.depth=pe}}function V(){o("setextHeadingSlurpLineEnding",!0)}function J(z){let X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(z).charCodeAt(0)===61?1:2}function _(){o("setextHeadingSlurpLineEnding")}function de(z){let X=this.stack[this.stack.length-1],pe=X.children[X.children.length-1];(!pe||pe.type!=="text")&&(pe=Fn(),pe.position={start:du(z.start)},X.children.push(pe)),this.stack.push(pe)}function Z(z){let X=this.stack.pop();X.value+=this.sliceSerialize(z),X.position.end=du(z.end)}function H(z){let X=this.stack[this.stack.length-1];if(a("atHardBreak")){let pe=X.children[X.children.length-1];pe.position.end=du(z.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(X.type)&&(de.call(this,z),Z.call(this,z))}function K(){o("atHardBreak",!0)}function G(){let z=this.resume(),X=this.stack[this.stack.length-1];X.value=z}function me(){let z=this.resume(),X=this.stack[this.stack.length-1];X.value=z}function U(){let z=this.resume(),X=this.stack[this.stack.length-1];X.value=z}function te(){let z=this.stack[this.stack.length-1];if(a("inReference")){let X=a("referenceType")||"shortcut";z.type+="Reference",z.referenceType=X,delete z.url,delete z.title}else delete z.identifier,delete z.label;o("referenceType")}function Q(){let z=this.stack[this.stack.length-1];if(a("inReference")){let X=a("referenceType")||"shortcut";z.type+="Reference",z.referenceType=X,delete z.url,delete z.title}else delete z.identifier,delete z.label;o("referenceType")}function E(z){let X=this.sliceSerialize(z),pe=this.stack[this.stack.length-2];pe.label=SR(X),pe.identifier=la(X).toLowerCase()}function ve(){let z=this.stack[this.stack.length-1],X=this.resume(),pe=this.stack[this.stack.length-1];if(o("inReference",!0),pe.type==="link"){let ke=z.children;pe.children=ke}else pe.alt=X}function Se(){let z=this.resume(),X=this.stack[this.stack.length-1];X.url=z}function D(){let z=this.resume(),X=this.stack[this.stack.length-1];X.title=z}function Ee(){o("inReference")}function ze(){o("referenceType","collapsed")}function Pe(z){let X=this.resume(),pe=this.stack[this.stack.length-1];pe.label=X,pe.identifier=la(this.sliceSerialize(z)).toLowerCase(),o("referenceType","full")}function _e(z){o("characterReferenceType",z.type)}function Te(z){let X=this.sliceSerialize(z),pe=a("characterReferenceType"),ke;pe?(ke=Kg(X,pe==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):ke=Fi(X);let Re=this.stack.pop();Re.value+=ke,Re.position.end=du(z.end)}function Ze(z){Z.call(this,z);let X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(z)}function He(z){Z.call(this,z);let X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(z)}function je(){return{type:"blockquote",children:[]}}function Ne(){return{type:"code",lang:null,meta:null,value:""}}function rt(){return{type:"inlineCode",value:""}}function br(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ot(){return{type:"emphasis",children:[]}}function er(){return{type:"heading",depth:void 0,children:[]}}function Lr(){return{type:"break"}}function Rn(){return{type:"html",value:""}}function ln(){return{type:"image",title:null,url:"",alt:null}}function tr(){return{type:"link",title:null,url:"",children:[]}}function Pr(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function li(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function si(){return{type:"paragraph",children:[]}}function ya(){return{type:"strong",children:[]}}function Fn(){return{type:"text",value:""}}function ee(){return{type:"thematicBreak"}}}function du(e){return{line:e.line,column:e.column,offset:e.offset}}function OR(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?OR(e,r):qne(e,r)}}function qne(e,t){let n;for(n in t)if(BR.call(t,n)){if(n==="canContainEols"){let r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){let r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){let r=t[n];r&&Object.assign(e[n],r)}}}function TR(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+fc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+fc({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+fc({start:t.start,end:t.end})+") is still open")}function Yg(e){Object.assign(this,{Parser:n=>{let r=this.data("settings");return zD(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function ND(e){if(e)throw e}var Zg=q(NR(),1);function Wp(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function UD(){let e=[],t={run:n,use:r};return t;function n(...i){let o=-1,a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...i);function l(c,...f){let p=e[++o],d=-1;if(c){a(c);return}for(;++d<i.length;)(f[d]===null||f[d]===void 0)&&(f[d]=i[d]);i=f,p?UR(p,l)(...f):a(null,...f)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function UR(e,t){let n;return r;function r(...a){let l=e.length>a.length,c;l&&a.push(i);try{c=e.apply(this,a)}catch(f){let p=f;if(l&&n)throw p;return i(p)}l||(c&&c.then&&typeof c.then=="function"?c.then(o,i):c instanceof Error?i(c):o(c))}function i(a,...l){n||(n=!0,t(a,...l))}function o(a){i(null,a)}}function qD(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?HR(e.position):"start"in e||"end"in e?HR(e):"line"in e||"column"in e?HD(e):""}function HD(e){return qR(e&&e.line)+":"+qR(e&&e.column)}function HR(e){return HD(e&&e.start)+"-"+HD(e&&e.end)}function qR(e){return e&&typeof e=="number"?e:1}var on=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){let c=r.indexOf(":");c===-1?o.ruleId=r:(o.source=r.slice(0,c),o.ruleId=r.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){let c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}let l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=l?l.line:void 0,this.name=qD(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}};on.prototype.file="";on.prototype.name="";on.prototype.reason="";on.prototype.message="";on.prototype.stack="";on.prototype.column=void 0;on.prototype.line=void 0;on.prototype.ancestors=void 0;on.prototype.cause=void 0;on.prototype.fatal=void 0;on.prototype.place=void 0;on.prototype.ruleId=void 0;on.prototype.source=void 0;var Zi={basename:jne,dirname:Vne,extname:$ne,join:Gne,sep:"/"};function jne(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Kp(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function Vne(e){if(Kp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function $ne(e){Kp(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){let l=e.codePointAt(t);if(l===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Gne(...e){let t=-1,n;for(;++t<e.length;)Kp(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Wne(n)}function Wne(e){Kp(e);let t=e.codePointAt(0)===47,n=Kne(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Kne(e,t){let n="",r=0,i=-1,o=0,a=-1,l,c;for(;++a<=e.length;){if(a<e.length)l=e.codePointAt(a);else{if(l===47)break;l=47}if(l===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else l===46&&o>-1?o++:o=-1}return n}function Kp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var jR={cwd:Yne};function Yne(){return"/"}function pc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function VR(e){if(typeof e=="string")e=new URL(e);else if(!pc(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Xne(e)}function Xne(e){if(e.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let r=t.codePointAt(n+2);if(r===70||r===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var jD=["history","path","basename","stem","extname","dirname"],Dl=class{constructor(t){let n;t?pc(t)?n={path:t}:typeof t=="string"||Qne(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":jR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<jD.length;){let o=jD[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)jD.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Zi.basename(this.path):void 0}set basename(t){$D(t,"basename"),VD(t,"basename"),this.path=Zi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Zi.dirname(this.path):void 0}set dirname(t){$R(this.basename,"dirname"),this.path=Zi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Zi.extname(this.path):void 0}set extname(t){if(VD(t,"extname"),$R(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Zi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){pc(t)&&(t=VR(t)),$D(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Zi.basename(this.path,this.extname):void 0}set stem(t){$D(t,"stem"),VD(t,"stem"),this.path=Zi.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){let i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){let i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){let i=new on(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function VD(e,t){if(e&&e.includes(Zi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Zi.sep+"`")}function $D(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function $R(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Qne(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var GR=function(e){let r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o};var Zne={}.hasOwnProperty,Yp=class extends GR{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=UD()}copy(){let t=new Yp,n=-1;for(;++n<this.attachers.length;){let r=this.attachers[n];t.use(...r)}return t.data((0,Zg.default)(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(KD("data",this.frozen),this.namespace[t]=n,this):Zne.call(this.namespace,t)&&this.namespace[t]||void 0:t?(KD("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let n=Qg(t),r=this.parser||this.Parser;return GD("parse",r),r(String(n),n)}process(t,n){let r=this;return this.freeze(),GD("process",this.parser||this.Parser),WD("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){let l=Qg(t),c=r.parse(l);r.run(c,l,function(p,d,g){if(p||!d||!g)return f(p);let m=d,x=r.stringify(m,g);ere(x)?g.value=x:g.result=x,f(p,g)});function f(p,d){p||!d?a(p):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),GD("processSync",this.parser||this.Parser),WD("processSync",this.compiler||this.Compiler),this.process(t,i),KR("processSync","process",n),r;function i(o,a){n=!0,ND(o),r=a}}run(t,n,r){WR(t),this.freeze();let i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,l){let c=Qg(n);i.run(t,c,f);function f(p,d,g){let m=d||t;p?l(p):a?a(m):r(void 0,m,g)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),KR("runSync","run",r),i;function o(a,l){ND(a),i=l,r=!0}}stringify(t,n){this.freeze();let r=Qg(n),i=this.compiler||this.Compiler;return WD("stringify",i),WR(t),i(t,r)}use(t,...n){let r=this.attachers,i=this.namespace;if(KD("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(f){if(typeof f=="function")c(f,[]);else if(typeof f=="object")if(Array.isArray(f)){let[p,...d]=f;c(p,d)}else a(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function a(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(f.plugins),f.settings&&(i.settings=(0,Zg.default)(!0,i.settings,f.settings))}function l(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){let d=f[p];o(d)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function c(f,p){let d=-1,g=-1;for(;++d<r.length;)if(r[d][0]===f){g=d;break}if(g===-1)r.push([f,...p]);else if(p.length>0){let[m,...x]=p,S=r[g][1];Wp(S)&&Wp(m)&&(m=(0,Zg.default)(!0,S,m)),r[g]=[f,m,...x]}}}},Xp=new Yp().freeze();function GD(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function WD(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function KD(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function WR(e){if(!Wp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function KR(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qg(e){return Jne(e)?e:new Dl(e)}function Jne(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ere(e){return typeof e=="string"||tre(e)}function tre(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function YR(e,t){if(!e)throw new Error(`${t}`)}function Jg(e,t){if(e.type!==t)throw new Error(`Expected element to be of type ${JSON.stringify(e)} but is ${JSON.stringify(e,null,2)}`)}function gu(e){throw new Error(`Didn't expect to get here with value ${JSON.stringify(e,null,2)}`)}function XR(e){return[{type:"block-quote",children:mc(e.children)}]}function QR(e){return[{type:"block-quote",children:[{type:"paragraph",children:[{text:`[${e.identifier}]`}]},...mc(e.children)]}]}function Xn(e){return ge.isText(e)}function Ji(e){return ye.isElement(e)}function pn(e){return ge.isText(e)&&!!e.text.match(/^\s+$/)&&!e.code}var ZR={bold:"**",italic:"_",strike:"~~",code:""};function nre(e){if(e in ZR)return ZR[e];throw new Error(`Could not find mark ${JSON.stringify(e)} in MARK_KEY_TO_TOKEN lookup`)}function YD(e){return e.map(nre).join("")}function Qp(e){let{text:t,...n}=e;return Object.keys(n)}function XD(e){if(ge.isText(e)){if(pn(e))throw new Error("You probably didn't mean to do this. We should only be getting marks from segments that are not plain space segments.");return Qp(e)}else{if(e.type==="anchor")return QD(e.children);throw new Error(`Unhandled type ${e.type}`)}}function QD(e){let t;for(let n of e){if(!Xn(n)){if(n.type==="image-inline")continue;throw new Error("Expected every segment in an anchor to be a Text segment")}if(pn(n))continue;let r=Qp(n);if(t===void 0){t=r;continue}t=t.filter(i=>r.includes(i))}if(t===void 0)throw new Error("No text segments were found as children in this anchor which should not be possible");return t}var JR=["bold","italic","underline","strike","code"];function eF(e){return e.slice().sort((t,n)=>JR.indexOf(t)-JR.indexOf(n))}var rre=["\\","`","*","_","[","]","(",")","#","+","-",".","!","|","^","~","<",">","{","}","=",":",";","$","%","&","?",'"',"'",",","\\","/","@"],ire=new RegExp(`(${rre.map(e=>`\\${e}`).join("|")})`,"g");function tF(e){return e.replace(ire,t=>`\\${t}`)}function ore(e,t){let n=Qp(e),r=Qp(t);return n.length==r.length&&n.every(i=>r.includes(i))}function nF(e,t){let n=ge.isText(e),r=ge.isText(t);return t&&!r&&!n?[{text:""},e]:n?t===void 0||!r?[e]:ore(t,e)?(t.text=[t.text,e.text].join(""),[]):[e]:[e]}function rF(e){let t=[];for(let n=0;n<e.length;n++){let r=t[t.length-1];t.push(...nF(e[n],r))}return t.length===0&&t.push({text:""}),ge.isText(t[0])||t.unshift({text:""}),ge.isText(t[t.length-1])||t.push({text:""}),t}function iF(e){return{url:e.url,title:e.title||void 0,alt:e.alt||void 0}}var are=/^(\/[^?#]*)(?:\?([^#]*))?(#.*)?$/;function hc(e){try{let t=new URL(e);return{origin:t.origin,hostname:t.hostname,pathname:t.pathname,searchParams:t.searchParams,hash:t.hash}}catch{let n=e.match(are);if(n===null)throw new Error(`Invalid format should not happen: ${e}`);let[r,i,o,a]=[...n];return{origin:"",hostname:"",pathname:i||"",searchParams:new URLSearchParams(o),hash:a||""}}}function Zp(e){if(typeof e!="string")return null;let t=e.match(/^(\d+)x(\d+)$/);return t===null?null:{width:parseInt(t[1]),height:parseInt(t[2])}}function oF(e){let t=hc(e.url);if(!t.hostname.match(/[.]portive[.]com$/i))return;let n=t.searchParams.get("size");if(n===null)return;let r=Zp(n);if(r===null)return;let i=t.pathname.match(/[-][-](\d+)x(\d+)[.][a-zA-Z]+$/);if(i!==null)return{url:`${t.origin}${t.pathname}`,title:e.title||void 0,alt:e.alt||void 0,width:r.width,height:r.height,srcWidth:parseInt(i[1]),srcHeight:parseInt(i[2])}}function aF(e){let t=hc(e.url);if(t.hash.length===0)return;let n=new URLSearchParams(t.hash.slice(1)),r=Zp(n.get("size")),i=Zp(n.get("srcSize"));if(!(!r||!i))return{url:`${t.origin}${t.pathname}`,title:e.title||void 0,alt:e.alt||void 0,width:r.width,height:r.height,srcWidth:i.width,srcHeight:i.height}}var uF=[oF,aF,iF];function lF(e){for(let t of uF){let n=t(e);if(n)return[{type:"image-inline",...n,children:[{text:""}]}]}throw new Error("Shouldn't get here because last parser always returns data")}function Mr(e,t={}){let n=[];for(let i of e)n.push(...ure(i,t));return rF(n)}function ure(e,t={}){switch(e.type){case"delete":return Mr(e.children,{...t,strike:!0});case"emphasis":return Mr(e.children,{...t,italic:!0});case"footnoteReference":return[{text:`[${e.identifier}]`}];case"html":return[{text:e.value,code:!0}];case"image":return lF(e);case"inlineCode":return[{text:e.value,...t,code:!0}];case"link":return[{type:"anchor",href:e.url,title:e.title==null?void 0:e.title,children:Mr(e.children,t)}];case"strong":return Mr(e.children,{...t,bold:!0});case"text":return[{text:e.value,...t}];case"linkReference":case"imageReference":throw new Error("linkReference and imageReference should be converted to link and image through our transformInlineLinks function");case"break":return[{text:`
|
|
57
|
-
`}];case"footnote":throw new Error("footnote is not supported yet")}
|
|
50
|
+
`))+1))}let u="#".repeat(i),s=n.enter("headingAtx"),c=n.enter("phrasing");a.move(u+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
51
|
+
`,...a.current()});return/^[\t ]/.test(f)&&(f=Io(f.charCodeAt(0))+f.slice(1)),f=f?u+" "+f:u,n.options.closeAtx&&(f+=" "+u),c(),s(),f}wb.peek=bQ;function wb(e){return e.value||""}function bQ(){return"<"}Ab.peek=xQ;function Ab(e,t,n,r){let i=ws(n),a=i==='"'?"Quote":"Apostrophe",u=n.enter("image"),s=n.enter("label"),c=n.createTracker(r),f=c.move("![");return f+=c.move(n.safe(e.alt,{before:f,after:"]",...c.current()})),f+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(n.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(s=n.enter("destinationRaw"),f+=c.move(n.safe(e.url,{before:f,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),f+=c.move(" "+i),f+=c.move(n.safe(e.title,{before:f,after:i,...c.current()})),f+=c.move(i),s()),f+=c.move(")"),u(),f}function xQ(){return"!"}Sb.peek=DQ;function Sb(e,t,n,r){let i=e.referenceType,a=n.enter("imageReference"),u=n.enter("label"),s=n.createTracker(r),c=s.move("!["),f=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(f+"]["),u();let p=n.stack;n.stack=[],u=n.enter("reference");let h=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return u(),n.stack=p,a(),i==="full"||!f||f!==h?c+=s.move(h+"]"):i==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function DQ(){return"!"}Tb.peek=CQ;function Tb(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let u=n.unsafe[a],s=n.compilePattern(u),c;if(u.atBreak)for(;c=s.exec(r);){let f=c.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(c.index+1)}}return i+r+i}function CQ(){return"`"}function kb(e,t){let n=Xf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Bb.peek=wQ;function Bb(e,t,n,r){let i=ws(n),a=i==='"'?"Quote":"Apostrophe",u=n.createTracker(r),s,c;if(kb(e,n)){let p=n.stack;n.stack=[],s=n.enter("autolink");let h=u.move("<");return h+=u.move(n.containerPhrasing(e,{before:h,after:">",...u.current()})),h+=u.move(">"),s(),n.stack=p,h}s=n.enter("link"),c=n.enter("label");let f=u.move("[");return f+=u.move(n.containerPhrasing(e,{before:f,after:"](",...u.current()})),f+=u.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(n.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(c=n.enter("destinationRaw"),f+=u.move(n.safe(e.url,{before:f,after:e.title?" ":")",...u.current()}))),c(),e.title&&(c=n.enter(`title${a}`),f+=u.move(" "+i),f+=u.move(n.safe(e.title,{before:f,after:i,...u.current()})),f+=u.move(i),c()),f+=u.move(")"),s(),f}function wQ(e,t,n){return kb(e,n)?"<":"["}Ob.peek=AQ;function Ob(e,t,n,r){let i=e.referenceType,a=n.enter("linkReference"),u=n.enter("label"),s=n.createTracker(r),c=s.move("["),f=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(f+"]["),u();let p=n.stack;n.stack=[],u=n.enter("reference");let h=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return u(),n.stack=p,a(),i==="full"||!f||f!==h?c+=s.move(h+"]"):i==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function AQ(){return"["}function Ss(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function WO(e){let t=Ss(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function KO(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function zh(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function YO(e,t,n,r){let i=n.enter("list"),a=n.bulletCurrent,u=e.ordered?KO(n):Ss(n),s=e.ordered?u==="."?")":".":WO(n),c=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){let p=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),zh(n)===u&&p){let h=-1;for(;++h<e.children.length;){let g=e.children[h];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(u=s),n.bulletCurrent=u;let f=n.containerFlow(e,r);return n.bulletLastUsed=u,n.bulletCurrent=a,i(),f}function QO(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function XO(e,t,n,r){let i=QO(n),a=n.bulletCurrent||Ss(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let u=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);let s=n.createTracker(r);s.move(a+" ".repeat(u-a.length)),s.shift(u);let c=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,s.current()),p);return c(),f;function p(h,g,d){return g?(d?"":" ".repeat(u))+h:(d?a:a+" ".repeat(u-a.length))+h}}function ZO(e,t,n,r){let i=n.enter("paragraph"),a=n.enter("phrasing"),u=n.containerPhrasing(e,r);return a(),i(),u}var Lh=function(e){if(e==null)return BQ;if(typeof e=="function")return Ph(e);if(typeof e=="object")return Array.isArray(e)?SQ(e):TQ(e);if(typeof e=="string")return kQ(e);throw new Error("Expected function, string, or object as test")};function SQ(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Lh(e[n]);return Ph(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function TQ(e){let t=e;return Ph(n);function n(r){let i=r,a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function kQ(e){return Ph(t);function t(n){return n&&n.type===e}}function Ph(e){return t;function t(n,r,i){return!!(OQ(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function BQ(){return!0}function OQ(e){return e!==null&&typeof e=="object"&&"type"in e}var Mb=Lh(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function JO(e,t,n,r){return(e.children.some(function(u){return Mb(u)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function e5(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Rb.peek=MQ;function Rb(e,t,n,r){let i=e5(n),a=n.enter("strong"),u=n.createTracker(r),s=u.move(i+i),c=u.move(n.containerPhrasing(e,{after:i,before:s,...u.current()})),f=c.charCodeAt(0),p=As(r.before.charCodeAt(r.before.length-1),f,i);p.inside&&(c=Io(f)+c.slice(1));let h=c.charCodeAt(c.length-1),g=As(r.after.charCodeAt(0),h,i);g.inside&&(c=c.slice(0,-1)+Io(h));let d=u.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},s+c+d}function MQ(e,t,n){return n.options.strong||"*"}function t5(e,t,n,r){return n.safe(e.value,r)}function n5(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function r5(e,t,n){let r=(zh(n)+(n.options.ruleSpaces?" ":"")).repeat(n5(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Zf={blockquote:OO,break:Eb,code:LO,definition:PO,emphasis:xb,hardBreak:Eb,heading:GO,html:wb,image:Ab,imageReference:Sb,inlineCode:Tb,link:Bb,linkReference:Ob,list:YO,listItem:XO,paragraph:ZO,root:JO,strong:Rb,text:t5,thematicBreak:r5};var i5=document.createElement("i");function Ts(e){let t="&"+e+";";i5.innerHTML=t;let n=i5.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function _b(){return{enter:{table:RQ,tableData:a5,tableHeader:a5,tableRow:_Q},exit:{codeText:zQ,table:FQ,tableData:Fb,tableHeader:Fb,tableRow:Fb}}}function RQ(e){let t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function FQ(e){this.exit(e),this.data.inTable=void 0}function _Q(e){this.enter({type:"tableRow",children:[]},e)}function Fb(e){this.exit(e)}function a5(e){this.enter({type:"tableCell",children:[]},e)}function zQ(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,LQ));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function LQ(e,t){return t==="|"?t:e}function zb(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
52
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:u,tableCell:c,tableRow:s}};function u(d,b,A,O){return f(p(d,A,O),d.align)}function s(d,b,A,O){let E=h(d,A,O),D=f([E]);return D.slice(0,D.indexOf(`
|
|
53
|
+
`))}function c(d,b,A,O){let E=A.enter("tableCell"),D=A.enter("phrasing"),C=A.containerPhrasing(d,{...O,before:a,after:a});return D(),E(),C}function f(d,b){return BO(d,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function p(d,b,A){let O=d.children,E=-1,D=[],C=b.enter("table");for(;++E<O.length;)D[E]=h(O[E],b,A);return C(),D}function h(d,b,A){let O=d.children,E=-1,D=[],C=b.enter("tableRow");for(;++E<O.length;)D[E]=c(O[E],d,b,A);return C(),D}function g(d,b,A){let O=Zf.inlineCode(d,b,A);return A.stack.includes("tableCell")&&(O=O.replace(/\|/g,"\\$&")),O}}function Lb(){return{exit:{taskListCheckValueChecked:o5,taskListCheckValueUnchecked:o5,paragraph:PQ}}}function Pb(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:IQ}}}function o5(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function PQ(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let r=n.children[0];if(r&&r.type==="text"){let i=t.children,a=-1,u;for(;++a<i.length;){let s=i[a];if(s.type==="paragraph"){u=s;break}}u===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function IQ(e,t,n,r){let i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(u);let c=Zf.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),c;function f(p){return p+u}}function Ib(){return[mb(),hb(),vb(),_b(),Lb()]}function Nb(e){return{extensions:[pb(),gb(e),yb(),zb(e),Pb()]}}function u5(e,t,n,r){let i=e.length,a=0,u;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);a<r.length;)u=r.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}var l5={}.hasOwnProperty;function s5(e){let t={},n=-1;for(;++n<e.length;)NQ(t,e[n]);return t}function NQ(e,t){let n;for(n in t){let i=(l5.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n],u;if(a)for(u in a){l5.call(i,u)||(i[u]=[]);let s=a[u];UQ(i[u],Array.isArray(s)?s:s?[s]:[])}}}function UQ(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);u5(e,0,0,r)}var ks=Uo(/[A-Za-z]/),Ih=Uo(/[\dA-Za-z]/),Joe=Uo(/[#-'*+\--9=?A-Z^-~]/);function c5(e){return e!==null&&(e<32||e===127)}var eue=Uo(/\d/),tue=Uo(/[\dA-Fa-f]/),nue=Uo(/[!-/:-@[-`{-~]/);function $u(e){return e!==null&&(e<0||e===32)}var Ub=Uo(/\p{P}|\p{S}/u),Bs=Uo(/\s/);function Uo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}var HQ={tokenize:GQ,partial:!0},f5={tokenize:WQ,partial:!0},m5={tokenize:KQ,partial:!0},p5={tokenize:YQ,partial:!0},qQ={tokenize:QQ,partial:!0},d5={name:"wwwAutolink",tokenize:VQ,previous:g5},h5={name:"protocolAutolink",tokenize:$Q,previous:v5},Ua={name:"emailAutolink",tokenize:jQ,previous:y5},Ji={};function qb(){return{text:Ji}}var Gu=48;for(;Gu<123;)Ji[Gu]=Ua,Gu++,Gu===58?Gu=65:Gu===91&&(Gu=97);Ji[43]=Ua;Ji[45]=Ua;Ji[46]=Ua;Ji[95]=Ua;Ji[72]=[Ua,h5];Ji[104]=[Ua,h5];Ji[87]=[Ua,d5];Ji[119]=[Ua,d5];function jQ(e,t,n){let r=this,i,a;return u;function u(h){return!Hb(h)||!y5.call(r,r.previous)||jb(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(h))}function s(h){return Hb(h)?(e.consume(h),s):h===64?(e.consume(h),c):n(h)}function c(h){return h===46?e.check(qQ,p,f)(h):h===45||h===95||Ih(h)?(a=!0,e.consume(h),c):p(h)}function f(h){return e.consume(h),i=!0,c}function p(h){return a&&i&&ks(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function VQ(e,t,n){let r=this;return i;function i(u){return u!==87&&u!==119||!g5.call(r,r.previous)||jb(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(HQ,e.attempt(f5,e.attempt(m5,a),n),n)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function $Q(e,t,n){let r=this,i="",a=!1;return u;function u(h){return(h===72||h===104)&&v5.call(r,r.previous)&&!jb(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),s):n(h)}function s(h){if(ks(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),s;if(h===58){let g=i.toLowerCase();if(g==="http"||g==="https")return e.consume(h),c}return n(h)}function c(h){return h===47?(e.consume(h),a?f:(a=!0,c)):n(h)}function f(h){return h===null||c5(h)||$u(h)||Bs(h)||Ub(h)?n(h):e.attempt(f5,e.attempt(m5,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function GQ(e,t,n){let r=0;return i;function i(u){return(u===87||u===119)&&r<3?(r++,e.consume(u),i):u===46&&r===3?(e.consume(u),a):n(u)}function a(u){return u===null?n(u):t(u)}}function WQ(e,t,n){let r,i,a;return u;function u(f){return f===46||f===95?e.check(p5,c,s)(f):f===null||$u(f)||Bs(f)||f!==45&&Ub(f)?c(f):(a=!0,e.consume(f),u)}function s(f){return f===95?r=!0:(i=r,r=void 0),e.consume(f),u}function c(f){return i||r||!a?n(f):t(f)}}function KQ(e,t){let n=0,r=0;return i;function i(u){return u===40?(n++,e.consume(u),i):u===41&&r<n?a(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(p5,t,a)(u):u===null||$u(u)||Bs(u)?t(u):(e.consume(u),i)}function a(u){return u===41&&r++,e.consume(u),i}}function YQ(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||$u(s)||Bs(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||$u(s)||Bs(s)?t(s):r(s)}function a(s){return ks(s)?u(s):n(s)}function u(s){return s===59?(e.consume(s),r):ks(s)?(e.consume(s),u):n(s)}}function QQ(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Ih(a)?n(a):t(a)}}function g5(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||$u(e)}function v5(e){return!ks(e)}function y5(e){return!(e===47||Hb(e))}function Hb(e){return e===43||e===45||e===46||e===95||Ih(e)}function jb(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var lue=Ho(/[A-Za-z]/),sue=Ho(/[\dA-Za-z]/),cue=Ho(/[#-'*+\--9=?A-Z^-~]/);var fue=Ho(/\d/),mue=Ho(/[\dA-Fa-f]/),pue=Ho(/[!-/:-@[-`{-~]/);function E5(e){return e!==null&&e<-2}function Jf(e){return e!==null&&(e<0||e===32)}function em(e){return e===-2||e===-1||e===32}var due=Ho(/\p{P}|\p{S}/u),hue=Ho(/\s/);function Ho(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function tm(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return u;function u(c){return em(c)?(e.enter(n),s(c)):t(c)}function s(c){return em(c)&&a++<i?(e.consume(c),s):(e.exit(n),t(c))}}var Vb={partial:!0,tokenize:XQ};function XQ(e,t,n){return r;function r(a){return em(a)?tm(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||E5(a)?t(a):n(a)}}function Nh(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var ZQ={tokenize:aX,partial:!0};function $b(){return{document:{[91]:{name:"gfmFootnoteDefinition",tokenize:nX,continuation:{tokenize:rX},exit:iX}},text:{[91]:{name:"gfmFootnoteCall",tokenize:tX},[93]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:JQ,resolveTo:eX}}}}function JQ(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),u;for(;i--;){let c=r.events[i][1];if(c.type==="labelImage"){u=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!u||!u._balanced)return n(c);let f=Nh(r.sliceSerialize({start:u.end,end:r.now()}));return f.codePointAt(0)!==94||!a.includes(f.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function eX(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let u={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},c=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",u,t],["enter",s,t],["exit",s,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...c),e}function tX(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,u;return s;function s(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(h){if(a>999||h===93&&!u||h===null||h===91||Jf(h))return n(h);if(h===93){e.exit("chunkString");let g=e.exit("gfmFootnoteCallString");return i.includes(Nh(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Jf(h)||(u=!0),a++,e.consume(h),h===92?p:f}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function nX(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,u=0,s;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(u>999||b===93&&!s||b===null||b===91||Jf(b))return n(b);if(b===93){e.exit("chunkString");let A=e.exit("gfmFootnoteDefinitionLabelString");return a=Nh(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return Jf(b)||(s=!0),u++,e.consume(b),b===92?h:p}function h(b){return b===91||b===92||b===93?(e.consume(b),u++,p):p(b)}function g(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),tm(e,d,"gfmFootnoteDefinitionWhitespace")):n(b)}function d(b){return t(b)}}function rX(e,t,n){return e.check(Vb,t,e.attempt(ZQ,t,n))}function iX(e){e.exit("gfmFootnoteDefinition")}function aX(e,t,n){let r=this;return tm(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){let u=r.events[r.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(a):n(a)}}function Uh(e,t,n,r){let i=e.length,a=0,u;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);a<r.length;)u=r.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}var Fue=qo(/[A-Za-z]/),_ue=qo(/[\dA-Za-z]/),zue=qo(/[#-'*+\--9=?A-Z^-~]/);var Lue=qo(/\d/),Pue=qo(/[\dA-Fa-f]/),Iue=qo(/[!-/:-@[-`{-~]/);function b5(e){return e!==null&&(e<0||e===32)}var x5=qo(/\p{P}|\p{S}/u),D5=qo(/\s/);function qo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Gb(e){if(e===null||b5(e)||D5(e))return 1;if(x5(e))return 2}function C5(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function Wb(e){let n=(e||{}).singleTilde,r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(u,s){let c=-1;for(;++c<u.length;)if(u[c][0]==="enter"&&u[c][1].type==="strikethroughSequenceTemporary"&&u[c][1]._close){let f=c;for(;f--;)if(u[f][0]==="exit"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._open&&u[c][1].end.offset-u[c][1].start.offset===u[f][1].end.offset-u[f][1].start.offset){u[c][1].type="strikethroughSequence",u[f][1].type="strikethroughSequence";let p={type:"strikethrough",start:Object.assign({},u[f][1].start),end:Object.assign({},u[c][1].end)},h={type:"strikethroughText",start:Object.assign({},u[f][1].end),end:Object.assign({},u[c][1].start)},g=[["enter",p,s],["enter",u[f][1],s],["exit",u[f][1],s],["enter",h,s]],d=s.parser.constructs.insideSpan.null;d&&Uh(g,g.length,0,C5(d,u.slice(f+1,c),s)),Uh(g,g.length,0,[["exit",h,s],["enter",u[c][1],s],["exit",u[c][1],s],["exit",p,s]]),Uh(u,f-1,c-f+3,g),c=f+g.length-2;break}}for(c=-1;++c<u.length;)u[c][1].type==="strikethroughSequenceTemporary"&&(u[c][1].type="data");return u}function a(u,s,c){let f=this.previous,p=this.events,h=0;return g;function g(b){return f===126&&p[p.length-1][1].type!=="characterEscape"?c(b):(u.enter("strikethroughSequenceTemporary"),d(b))}function d(b){let A=Gb(f);if(b===126)return h>1?c(b):(u.consume(b),h++,d);if(h<2&&!n)return c(b);let O=u.exit("strikethroughSequenceTemporary"),E=Gb(b);return O._open=!E||E===2&&!!A,O._close=!A||A===2&&!!E,s(b)}}}var Yue=jo(/[A-Za-z]/),Que=jo(/[\dA-Za-z]/),Xue=jo(/[#-'*+\--9=?A-Z^-~]/);var Zue=jo(/\d/),Jue=jo(/[\dA-Fa-f]/),ele=jo(/[!-/:-@[-`{-~]/);function nm(e){return e!==null&&e<-2}function Kb(e){return e!==null&&(e<0||e===32)}function Ha(e){return e===-2||e===-1||e===32}var tle=jo(/\p{P}|\p{S}/u),nle=jo(/\s/);function jo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Os(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return u;function u(c){return Ha(c)?(e.enter(n),s(c)):t(c)}function s(c){return Ha(c)&&a++<i?(e.consume(c),s):(e.exit(n),t(c))}}var Hh=class{constructor(){this.map=[]}add(t,n,r){oX(this,t,n,r)}consume(t){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(let a of i)t.push(a);i=r.pop()}this.map.length=0}};function oX(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function w5(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Yb(){return{flow:{null:{name:"table",tokenize:uX,resolveAll:lX}}}}function uX(e,t,n){let r=this,i=0,a=0,u;return s;function s(P){let pe=r.events.length-1;for(;pe>-1;){let oe=r.events[pe][1].type;if(oe==="lineEnding"||oe==="linePrefix")pe--;else break}let ae=pe>-1?r.events[pe][1].type:null,G=ae==="tableHead"||ae==="tableRow"?B:c;return G===B&&r.parser.lazy[r.now().line]?n(P):G(P)}function c(P){return e.enter("tableHead"),e.enter("tableRow"),f(P)}function f(P){return P===124||(u=!0,a+=1),p(P)}function p(P){return P===null?n(P):nm(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),d):n(P):Ha(P)?Os(e,p,"whitespace")(P):(a+=1,u&&(u=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),u=!0,p):(e.enter("data"),h(P)))}function h(P){return P===null||P===124||Kb(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?g:h)}function g(P){return P===92||P===124?(e.consume(P),h):h(P)}function d(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),u=!1,Ha(P)?Os(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?O(P):P===124?(u=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),A):L(P)}function A(P){return Ha(P)?Os(e,O,"whitespace")(P):O(P)}function O(P){return P===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),E):P===45?(a+=1,E(P)):P===null||nm(P)?M(P):L(P)}function E(P){return P===45?(e.enter("tableDelimiterFiller"),D(P)):L(P)}function D(P){return P===45?(e.consume(P),D):P===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(P))}function C(P){return Ha(P)?Os(e,M,"whitespace")(P):M(P)}function M(P){return P===124?b(P):P===null||nm(P)?!u||i!==a?L(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):L(P)}function L(P){return n(P)}function B(P){return e.enter("tableRow"),H(P)}function H(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),H):P===null||nm(P)?(e.exit("tableRow"),t(P)):Ha(P)?Os(e,H,"whitespace")(P):(e.enter("data"),j(P))}function j(P){return P===null||P===124||Kb(P)?(e.exit("data"),H(P)):(e.consume(P),P===92?ue:j)}function ue(P){return P===92||P===124?(e.consume(P),j):j(P)}}function lX(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],u=[0,0,0,0],s=!1,c=0,f,p,h,g=new Hh;for(;++n<e.length;){let d=e[n],b=d[1];d[0]==="enter"?b.type==="tableHead"?(s=!1,c!==0&&(A5(g,t,c,f,p),p=void 0,c=0),f={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.add(n,0,[["enter",f,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,h=void 0,a=[0,0,0,0],u=[0,n+1,0,0],s&&(s=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.add(n,0,[["enter",p,t]])),i=b.type==="tableDelimiterRow"?2:p?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],h=qh(g,t,a,i,void 0,h),a=[0,0,0,0]),u[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(u[0]=u[1],h=qh(g,t,a,i,void 0,h)),a=u,u=[a[1],n,0,0])):b.type==="tableHead"?(s=!0,c=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(c=n,a[1]!==0?(u[0]=u[1],h=qh(g,t,a,i,n,h)):u[1]!==0&&(h=qh(g,t,u,i,n,h)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(u[3]=n)}for(c!==0&&A5(g,t,c,f,p),g.consume(t.events),n=-1;++n<t.events.length;){let d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=w5(t.events,n))}return e}function qh(e,t,n,r,i,a){let u=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},Ms(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let c=Ms(t.events,n[1]);if(a={type:u,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){let f=Ms(t.events,n[2]),p=Ms(t.events,n[3]),h={type:s,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){let g=t.events[n[2]],d=t.events[n[3]];if(g[1].end=Object.assign({},d[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){let b=n[2]+1,A=n[3]-n[2]-1;e.add(b,A,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(a.end=Object.assign({},Ms(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function A5(e,t,n,r,i){let a=[],u=Ms(t.events,n);i&&(i.end=Object.assign({},u),a.push(["exit",i,t])),r.end=Object.assign({},u),a.push(["exit",r,t]),e.add(n+1,0,a)}function Ms(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var hle=Vo(/[A-Za-z]/),gle=Vo(/[\dA-Za-z]/),vle=Vo(/[#-'*+\--9=?A-Z^-~]/);var yle=Vo(/\d/),Ele=Vo(/[\dA-Fa-f]/),ble=Vo(/[!-/:-@[-`{-~]/);function S5(e){return e!==null&&e<-2}function T5(e){return e!==null&&(e<0||e===32)}function rm(e){return e===-2||e===-1||e===32}var xle=Vo(/\p{P}|\p{S}/u),Dle=Vo(/\s/);function Vo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function k5(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return u;function u(c){return rm(c)?(e.enter(n),s(c)):t(c)}function s(c){return rm(c)&&a++<i?(e.consume(c),s):(e.exit(n),t(c))}}var sX={name:"tasklistCheck",tokenize:cX};function Qb(){return{text:{[91]:sX}}}function cX(e,t,n){let r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return T5(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),u):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),u):n(c)}function u(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return S5(c)?t(c):rm(c)?e.check({tokenize:fX},t,n)(c):n(c)}}function fX(e,t,n){return k5(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function B5(e){return s5([qb(),$b(),Wb(e),Yb(),Qb()])}var mX={};function jh(e){let t=this,n=e||mX,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),u=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(B5(n)),a.push(Ib()),u.push(Nb(n))}var pX={};function Xb(e,t){let n=t||pX,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return M5(e,r,i)}function M5(e,t,n){if(dX(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return O5(e.children,t,n)}return Array.isArray(e)?O5(e,t,n):""}function O5(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=M5(e[i],t,n);return r.join("")}function dX(e){return!!(e&&typeof e=="object")}function Sn(e,t,n,r){let i=e.length,a=0,u;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);a<r.length;)u=r.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function Gn(e,t){return e.length>0?(Sn(e,e.length,0,t),e):t}var R5={}.hasOwnProperty;function F5(e){let t={},n=-1;for(;++n<e.length;)hX(t,e[n]);return t}function hX(e,t){let n;for(n in t){let i=(R5.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n],u;if(a)for(u in a){R5.call(i,u)||(i[u]=[]);let s=a[u];gX(i[u],Array.isArray(s)?s:s?[s]:[])}}}function gX(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Sn(e,0,0,r)}var _5=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;var Rr=$o(/[A-Za-z]/),Wn=$o(/[\dA-Za-z]/),z5=$o(/[#-'*+\--9=?A-Z^-~]/);function im(e){return e!==null&&(e<32||e===127)}var am=$o(/\d/),L5=$o(/[\dA-Fa-f]/),P5=$o(/[!-/:-@[-`{-~]/);function Ee(e){return e!==null&&e<-2}function $t(e){return e!==null&&(e<0||e===32)}function Le(e){return e===-2||e===-1||e===32}var I5=$o(_5),N5=$o(/\s/);function $o(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function Ie(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return u;function u(c){return Le(c)?(e.enter(n),s(c)):t(c)}function s(c){return Le(c)&&a++<i?(e.consume(c),s):(e.exit(n),t(c))}}var U5={tokenize:vX};function vX(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ie(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){let c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,u(s)}function u(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Ee(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),u)}}var q5={tokenize:yX},H5={tokenize:EX};function yX(e){let t=this,n=[],r=0,i,a,u;return s;function s(C){if(r<n.length){let M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,c,f)(C)}return f(C)}function c(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&D();let M=t.events.length,L=M,B;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){B=t.events[L][1].end;break}E(r);let H=M;for(;H<t.events.length;)t.events[H][1].end=Object.assign({},B),H++;return Sn(t.events,L+1,0,t.events.slice(M)),t.events.length=H,f(C)}return s(C)}function f(C){if(r===n.length){if(!i)return g(C);if(i.currentConstruct&&i.currentConstruct.concrete)return b(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(H5,p,h)(C)}function p(C){return i&&D(),E(r),g(C)}function h(C){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,b(C)}function g(C){return t.containerState={},e.attempt(H5,d,b)(C)}function d(C){return r++,n.push([t.currentConstruct,t.containerState]),g(C)}function b(C){if(C===null){i&&D(),E(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),A(C)}function A(C){if(C===null){O(e.exit("chunkFlow"),!0),E(0),e.consume(C);return}return Ee(C)?(e.consume(C),O(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),A)}function O(C,M){let L=t.sliceStream(C);if(M&&L.push(null),C.previous=a,a&&(a.next=C),a=C,i.defineSkip(C.start),i.write(L),t.parser.lazy[C.start.line]){let B=i.events.length;for(;B--;)if(i.events[B][1].start.offset<u&&(!i.events[B][1].end||i.events[B][1].end.offset>u))return;let H=t.events.length,j=H,ue,P;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(ue){P=t.events[j][1].end;break}ue=!0}for(E(r),B=H;B<t.events.length;)t.events[B][1].end=Object.assign({},P),B++;Sn(t.events,j+1,0,t.events.slice(H)),t.events.length=B}}function E(C){let M=n.length;for(;M-- >C;){let L=n[M];t.containerState=L[1],L[0].exit.call(t,e)}n.length=C}function D(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function EX(e,t,n){return Ie(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Zb(e){if(e===null||$t(e)||N5(e))return 1;if(I5(e))return 2}function Rs(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var om={name:"attention",tokenize:xX,resolveAll:bX};function bX(e,t){let n=-1,r,i,a,u,s,c,f,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let h=Object.assign({},e[r][1].end),g=Object.assign({},e[n][1].start);j5(h,-c),j5(g,c),u={type:c>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},s={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:g},a={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:c>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},u.start),e[n][1].start=Object.assign({},s.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=Gn(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=Gn(f,[["enter",i,t],["enter",u,t],["exit",u,t],["enter",a,t]]),f=Gn(f,Rs(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=Gn(f,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=Gn(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Sn(e,r-1,n-r+3,f),n=r+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function xX(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Zb(r),a;return u;function u(c){return a=c,e.enter("attentionSequence"),s(c)}function s(c){if(c===a)return e.consume(c),s;let f=e.exit("attentionSequence"),p=Zb(c),h=!p||p===2&&i||n.includes(c),g=!i||i===2&&p||n.includes(r);return f._open=!!(a===42?h:h&&(i||!g)),f._close=!!(a===42?g:g&&(p||!h)),t(c)}}function j5(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Jb={name:"autolink",tokenize:DX};function DX(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(d){return Rr(d)?(e.consume(d),u):f(d)}function u(d){return d===43||d===45||d===46||Wn(d)?(r=1,s(d)):f(d)}function s(d){return d===58?(e.consume(d),r=0,c):(d===43||d===45||d===46||Wn(d))&&r++<32?(e.consume(d),s):(r=0,f(d))}function c(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||im(d)?n(d):(e.consume(d),c)}function f(d){return d===64?(e.consume(d),p):z5(d)?(e.consume(d),f):n(d)}function p(d){return Wn(d)?h(d):n(d)}function h(d){return d===46?(e.consume(d),r=0,p):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):g(d)}function g(d){if((d===45||Wn(d))&&r++<63){let b=d===45?g:h;return e.consume(d),b}return n(d)}}var Go={tokenize:CX,partial:!0};function CX(e,t,n){return r;function r(a){return Le(a)?Ie(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Ee(a)?t(a):n(a)}}var Vh={name:"blockQuote",tokenize:wX,continuation:{tokenize:AX},exit:SX};function wX(e,t,n){let r=this;return i;function i(u){if(u===62){let s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return n(u)}function a(u){return Le(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function AX(e,t,n){let r=this;return i;function i(u){return Le(u)?Ie(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(Vh,t,n)(u)}}function SX(e){e.exit("blockQuote")}var $h={name:"characterEscape",tokenize:TX};function TX(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return P5(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}var Gh={name:"characterReference",tokenize:kX};function kX(e,t,n){let r=this,i=0,a,u;return s;function s(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),a=31,u=Wn,p(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=L5,p):(e.enter("characterReferenceValue"),a=7,u=am,p(h))}function p(h){if(h===59&&i){let g=e.exit("characterReferenceValue");return u===Wn&&!Ts(r.sliceSerialize(g))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(h)&&i++<a?(e.consume(h),p):n(h)}}var V5={tokenize:OX,partial:!0},Wh={name:"codeFenced",tokenize:BX,concrete:!0};function BX(e,t,n){let r=this,i={tokenize:L,partial:!0},a=0,u=0,s;return c;function c(B){return f(B)}function f(B){let H=r.events[r.events.length-1];return a=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,s=B,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(B)}function p(B){return B===s?(u++,e.consume(B),p):u<3?n(B):(e.exit("codeFencedFenceSequence"),Le(B)?Ie(e,h,"whitespace")(B):h(B))}function h(B){return B===null||Ee(B)?(e.exit("codeFencedFence"),r.interrupt?t(B):e.check(V5,A,M)(B)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(B))}function g(B){return B===null||Ee(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(B)):Le(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ie(e,d,"whitespace")(B)):B===96&&B===s?n(B):(e.consume(B),g)}function d(B){return B===null||Ee(B)?h(B):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(B))}function b(B){return B===null||Ee(B)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(B)):B===96&&B===s?n(B):(e.consume(B),b)}function A(B){return e.attempt(i,M,O)(B)}function O(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),E}function E(B){return a>0&&Le(B)?Ie(e,D,"linePrefix",a+1)(B):D(B)}function D(B){return B===null||Ee(B)?e.check(V5,A,M)(B):(e.enter("codeFlowValue"),C(B))}function C(B){return B===null||Ee(B)?(e.exit("codeFlowValue"),D(B)):(e.consume(B),C)}function M(B){return e.exit("codeFenced"),t(B)}function L(B,H,j){let ue=0;return P;function P(Y){return B.enter("lineEnding"),B.consume(Y),B.exit("lineEnding"),pe}function pe(Y){return B.enter("codeFencedFence"),Le(Y)?Ie(B,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):ae(Y)}function ae(Y){return Y===s?(B.enter("codeFencedFenceSequence"),G(Y)):j(Y)}function G(Y){return Y===s?(ue++,B.consume(Y),G):ue>=u?(B.exit("codeFencedFenceSequence"),Le(Y)?Ie(B,oe,"whitespace")(Y):oe(Y)):j(Y)}function oe(Y){return Y===null||Ee(Y)?(B.exit("codeFencedFence"),H(Y)):j(Y)}}}function OX(e,t,n){let r=this;return i;function i(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}var um={name:"codeIndented",tokenize:RX},MX={tokenize:FX,partial:!0};function RX(e,t,n){let r=this;return i;function i(f){return e.enter("codeIndented"),Ie(e,a,"linePrefix",4+1)(f)}function a(f){let p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?u(f):n(f)}function u(f){return f===null?c(f):Ee(f)?e.attempt(MX,u,c)(f):(e.enter("codeFlowValue"),s(f))}function s(f){return f===null||Ee(f)?(e.exit("codeFlowValue"),u(f)):(e.consume(f),s)}function c(f){return e.exit("codeIndented"),t(f)}}function FX(e,t,n){let r=this;return i;function i(u){return r.parser.lazy[r.now().line]?n(u):Ee(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):Ie(e,a,"linePrefix",4+1)(u)}function a(u){let s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(u):Ee(u)?i(u):n(u)}}var ex={name:"codeText",tokenize:LX,resolve:_X,previous:zX};function _X(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function zX(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function LX(e,t,n){let r=this,i=0,a,u;return s;function s(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),i++,c):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(u=e.enter("codeTextSequence"),a=0,h(g)):Ee(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||Ee(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),p)}function h(g){return g===96?(e.consume(g),a++,h):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(u.type="codeTextData",p(g))}}function Kh(e){let t={},n=-1,r,i,a,u,s,c,f;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type==="lineEndingBlank"&&(a+=2),a<c.length&&c[a][1].type==="content"))for(;++a<c.length&&c[a][1].type!=="content";)c[a][1].type==="chunkText"&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,PX(e,n)),n=t[n],f=!0);else if(r[1]._container){for(a=n,i=void 0;a--&&(u=e[a],u[1].type==="lineEnding"||u[1].type==="lineEndingBlank");)u[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),u[1].type="lineEnding",i=a);i&&(r[1].end=Object.assign({},e[i][1].start),s=e.slice(i,n),s.unshift(r),Sn(e,i,n-i+1,s))}}return!f}function PX(e,t){let n=e[t][1],r=e[t][2],i=t-1,a=[],u=n._tokenizer||r.parser[n.contentType](n.start),s=u.events,c=[],f={},p,h,g=-1,d=n,b=0,A=0,O=[A];for(;d;){for(;e[++i][1]!==d;);a.push(i),d._tokenizer||(p=r.sliceStream(d),d.next||p.push(null),h&&u.defineSkip(d.start),d._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(p),d._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=n;++g<s.length;)s[g][0]==="exit"&&s[g-1][0]==="enter"&&s[g][1].type===s[g-1][1].type&&s[g][1].start.line!==s[g][1].end.line&&(A=g+1,O.push(A),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(u.events=[],d?(d._tokenizer=void 0,d.previous=void 0):O.pop(),g=O.length;g--;){let E=s.slice(O[g],O[g+1]),D=a.pop();c.unshift([D,D+E.length-1]),Sn(e,D,2,E)}for(g=-1;++g<c.length;)f[b+c[g][0]]=b+c[g][1],b+=c[g][1]-c[g][0]-1;return f}var tx={tokenize:UX,resolve:NX},IX={tokenize:HX,partial:!0};function NX(e){return Kh(e),e}function UX(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):Ee(s)?e.check(IX,u,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function u(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function HX(e,t,n){let r=this;return i;function i(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ie(e,a,"linePrefix")}function a(u){if(u===null||Ee(u))return n(u);let s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function Yh(e,t,n,r,i,a,u,s,c){let f=c||Number.POSITIVE_INFINITY,p=0;return h;function h(E){return E===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(E),e.exit(a),g):E===null||E===32||E===41||im(E)?n(E):(e.enter(r),e.enter(u),e.enter(s),e.enter("chunkString",{contentType:"string"}),A(E))}function g(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===62?(e.exit("chunkString"),e.exit(s),g(E)):E===null||E===60||Ee(E)?n(E):(e.consume(E),E===92?b:d)}function b(E){return E===60||E===62||E===92?(e.consume(E),d):d(E)}function A(E){return!p&&(E===null||E===41||$t(E))?(e.exit("chunkString"),e.exit(s),e.exit(u),e.exit(r),t(E)):p<f&&E===40?(e.consume(E),p++,A):E===41?(e.consume(E),p--,A):E===null||E===32||E===40||im(E)?n(E):(e.consume(E),E===92?O:A)}function O(E){return E===40||E===41||E===92?(e.consume(E),A):A(E)}}function Qh(e,t,n,r,i,a){let u=this,s=0,c;return f;function f(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(a),p}function p(d){return s>999||d===null||d===91||d===93&&!c||d===94&&!s&&"_hiddenFootnoteSupport"in u.parser.constructs?n(d):d===93?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):Ee(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===null||d===91||d===93||Ee(d)||s++>999?(e.exit("chunkString"),p(d)):(e.consume(d),c||(c=!Le(d)),d===92?g:h)}function g(d){return d===91||d===92||d===93?(e.consume(d),s++,h):h(d)}}function Xh(e,t,n,r,i,a){let u;return s;function s(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),u=g===40?41:g,c):n(g)}function c(g){return g===u?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):(e.enter(a),f(g))}function f(g){return g===u?(e.exit(a),c(u)):g===null?n(g):Ee(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Ie(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===u||g===null||Ee(g)?(e.exit("chunkString"),f(g)):(e.consume(g),g===92?h:p)}function h(g){return g===u||g===92?(e.consume(g),p):p(g)}}function Wu(e,t){let n;return r;function r(i){return Ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Le(i)?Ie(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function qa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var nx={name:"definition",tokenize:jX},qX={tokenize:VX,partial:!0};function jX(e,t,n){let r=this,i;return a;function a(d){return e.enter("definition"),u(d)}function u(d){return Qh.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return i=qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),c):n(d)}function c(d){return $t(d)?Wu(e,f)(d):f(d)}function f(d){return Yh(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function p(d){return e.attempt(qX,h,h)(d)}function h(d){return Le(d)?Ie(e,g,"whitespace")(d):g(d)}function g(d){return d===null||Ee(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function VX(e,t,n){return r;function r(s){return $t(s)?Wu(e,i)(s):n(s)}function i(s){return Xh(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Le(s)?Ie(e,u,"whitespace")(s):u(s)}function u(s){return s===null||Ee(s)?t(s):n(s)}}var rx={name:"hardBreakEscape",tokenize:$X};function $X(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ee(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}var ix={name:"headingAtx",tokenize:WX,resolve:GX};function GX(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Sn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function WX(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),u(p)}function u(p){return p===35&&r++<6?(e.consume(p),u):p===null||$t(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),c(p)):p===null||Ee(p)?(e.exit("atxHeading"),t(p)):Le(p)?Ie(e,s,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function c(p){return p===35?(e.consume(p),c):(e.exit("atxHeadingSequence"),s(p))}function f(p){return p===null||p===35||$t(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),f)}}var $5=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ax=["pre","script","style","textarea"];var ox={name:"htmlFlow",tokenize:XX,resolveTo:QX,concrete:!0},KX={tokenize:JX,partial:!0},YX={tokenize:ZX,partial:!0};function QX(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function XX(e,t,n){let r=this,i,a,u,s,c;return f;function f(k){return p(k)}function p(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),h}function h(k){return k===33?(e.consume(k),g):k===47?(e.consume(k),a=!0,A):k===63?(e.consume(k),i=3,r.interrupt?t:T):Rr(k)?(e.consume(k),u=String.fromCharCode(k),O):n(k)}function g(k){return k===45?(e.consume(k),i=2,d):k===91?(e.consume(k),i=5,s=0,b):Rr(k)?(e.consume(k),i=4,r.interrupt?t:T):n(k)}function d(k){return k===45?(e.consume(k),r.interrupt?t:T):n(k)}function b(k){let Ce="CDATA[";return k===Ce.charCodeAt(s++)?(e.consume(k),s===Ce.length?r.interrupt?t:ae:b):n(k)}function A(k){return Rr(k)?(e.consume(k),u=String.fromCharCode(k),O):n(k)}function O(k){if(k===null||k===47||k===62||$t(k)){let Ce=k===47,je=u.toLowerCase();return!Ce&&!a&&ax.includes(je)?(i=1,r.interrupt?t(k):ae(k)):$5.includes(u.toLowerCase())?(i=6,Ce?(e.consume(k),E):r.interrupt?t(k):ae(k)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):a?D(k):C(k))}return k===45||Wn(k)?(e.consume(k),u+=String.fromCharCode(k),O):n(k)}function E(k){return k===62?(e.consume(k),r.interrupt?t:ae):n(k)}function D(k){return Le(k)?(e.consume(k),D):P(k)}function C(k){return k===47?(e.consume(k),P):k===58||k===95||Rr(k)?(e.consume(k),M):Le(k)?(e.consume(k),C):P(k)}function M(k){return k===45||k===46||k===58||k===95||Wn(k)?(e.consume(k),M):L(k)}function L(k){return k===61?(e.consume(k),B):Le(k)?(e.consume(k),L):C(k)}function B(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),c=k,H):Le(k)?(e.consume(k),B):j(k)}function H(k){return k===c?(e.consume(k),c=null,ue):k===null||Ee(k)?n(k):(e.consume(k),H)}function j(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||$t(k)?L(k):(e.consume(k),j)}function ue(k){return k===47||k===62||Le(k)?C(k):n(k)}function P(k){return k===62?(e.consume(k),pe):n(k)}function pe(k){return k===null||Ee(k)?ae(k):Le(k)?(e.consume(k),pe):n(k)}function ae(k){return k===45&&i===2?(e.consume(k),ve):k===60&&i===1?(e.consume(k),U):k===62&&i===4?(e.consume(k),he):k===63&&i===3?(e.consume(k),T):k===93&&i===5?(e.consume(k),Q):Ee(k)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(KX,Ae,G)(k)):k===null||Ee(k)?(e.exit("htmlFlowData"),G(k)):(e.consume(k),ae)}function G(k){return e.check(YX,oe,Ae)(k)}function oe(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Y}function Y(k){return k===null||Ee(k)?G(k):(e.enter("htmlFlowData"),ae(k))}function ve(k){return k===45?(e.consume(k),T):ae(k)}function U(k){return k===47?(e.consume(k),u="",ee):ae(k)}function ee(k){if(k===62){let Ce=u.toLowerCase();return ax.includes(Ce)?(e.consume(k),he):ae(k)}return Rr(k)&&u.length<8?(e.consume(k),u+=String.fromCharCode(k),ee):ae(k)}function Q(k){return k===93?(e.consume(k),T):ae(k)}function T(k){return k===62?(e.consume(k),he):k===45&&i===2?(e.consume(k),T):ae(k)}function he(k){return k===null||Ee(k)?(e.exit("htmlFlowData"),Ae(k)):(e.consume(k),he)}function Ae(k){return e.exit("htmlFlow"),t(k)}}function ZX(e,t,n){let r=this;return i;function i(u){return Ee(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):n(u)}function a(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function JX(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Go,t,n)}}var ux={name:"htmlText",tokenize:eZ};function eZ(e,t,n){let r=this,i,a,u;return s;function s(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),c}function c(T){return T===33?(e.consume(T),f):T===47?(e.consume(T),L):T===63?(e.consume(T),C):Rr(T)?(e.consume(T),j):n(T)}function f(T){return T===45?(e.consume(T),p):T===91?(e.consume(T),a=0,b):Rr(T)?(e.consume(T),D):n(T)}function p(T){return T===45?(e.consume(T),d):n(T)}function h(T){return T===null?n(T):T===45?(e.consume(T),g):Ee(T)?(u=h,U(T)):(e.consume(T),h)}function g(T){return T===45?(e.consume(T),d):h(T)}function d(T){return T===62?ve(T):T===45?g(T):h(T)}function b(T){let he="CDATA[";return T===he.charCodeAt(a++)?(e.consume(T),a===he.length?A:b):n(T)}function A(T){return T===null?n(T):T===93?(e.consume(T),O):Ee(T)?(u=A,U(T)):(e.consume(T),A)}function O(T){return T===93?(e.consume(T),E):A(T)}function E(T){return T===62?ve(T):T===93?(e.consume(T),E):A(T)}function D(T){return T===null||T===62?ve(T):Ee(T)?(u=D,U(T)):(e.consume(T),D)}function C(T){return T===null?n(T):T===63?(e.consume(T),M):Ee(T)?(u=C,U(T)):(e.consume(T),C)}function M(T){return T===62?ve(T):C(T)}function L(T){return Rr(T)?(e.consume(T),B):n(T)}function B(T){return T===45||Wn(T)?(e.consume(T),B):H(T)}function H(T){return Ee(T)?(u=H,U(T)):Le(T)?(e.consume(T),H):ve(T)}function j(T){return T===45||Wn(T)?(e.consume(T),j):T===47||T===62||$t(T)?ue(T):n(T)}function ue(T){return T===47?(e.consume(T),ve):T===58||T===95||Rr(T)?(e.consume(T),P):Ee(T)?(u=ue,U(T)):Le(T)?(e.consume(T),ue):ve(T)}function P(T){return T===45||T===46||T===58||T===95||Wn(T)?(e.consume(T),P):pe(T)}function pe(T){return T===61?(e.consume(T),ae):Ee(T)?(u=pe,U(T)):Le(T)?(e.consume(T),pe):ue(T)}function ae(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),i=T,G):Ee(T)?(u=ae,U(T)):Le(T)?(e.consume(T),ae):(e.consume(T),oe)}function G(T){return T===i?(e.consume(T),i=void 0,Y):T===null?n(T):Ee(T)?(u=G,U(T)):(e.consume(T),G)}function oe(T){return T===null||T===34||T===39||T===60||T===61||T===96?n(T):T===47||T===62||$t(T)?ue(T):(e.consume(T),oe)}function Y(T){return T===47||T===62||$t(T)?ue(T):n(T)}function ve(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):n(T)}function U(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),ee}function ee(T){return Le(T)?Ie(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):Q(T)}function Q(T){return e.enter("htmlTextData"),u(T)}}var Ku={name:"labelEnd",tokenize:oZ,resolveTo:aZ,resolveAll:iZ},tZ={tokenize:uZ},nZ={tokenize:lZ},rZ={tokenize:sZ};function iZ(e){let t=-1;for(;++t<e.length;){let n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function aZ(e,t){let n=e.length,r=0,i,a,u,s;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(u=n);let c={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},f={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[u][1].end)},p={type:"labelText",start:Object.assign({},e[a+r+2][1].end),end:Object.assign({},e[u-2][1].start)};return s=[["enter",c,t],["enter",f,t]],s=Gn(s,e.slice(a+1,a+r+3)),s=Gn(s,[["enter",p,t]]),s=Gn(s,Rs(t.parser.constructs.insideSpan.null,e.slice(a+r+4,u-3),t)),s=Gn(s,[["exit",p,t],e[u-2],e[u-1],["exit",f,t]]),s=Gn(s,e.slice(u+1)),s=Gn(s,[["exit",c,t]]),Sn(e,a,e.length,s),e}function oZ(e,t,n){let r=this,i=r.events.length,a,u;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(g){return a?a._inactive?h(g):(u=r.parser.defined.includes(qa(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),c):n(g)}function c(g){return g===40?e.attempt(tZ,p,u?p:h)(g):g===91?e.attempt(nZ,p,u?f:h)(g):u?p(g):h(g)}function f(g){return e.attempt(rZ,p,h)(g)}function p(g){return t(g)}function h(g){return a._balanced=!0,n(g)}}function uZ(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return $t(h)?Wu(e,a)(h):a(h)}function a(h){return h===41?p(h):Yh(e,u,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function u(h){return $t(h)?Wu(e,c)(h):p(h)}function s(h){return n(h)}function c(h){return h===34||h===39||h===40?Xh(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function f(h){return $t(h)?Wu(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function lZ(e,t,n){let r=this;return i;function i(s){return Qh.call(r,e,a,u,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function u(s){return n(s)}}function sZ(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}var lx={name:"labelStartImage",tokenize:cZ,resolveAll:Ku.resolveAll};function cZ(e,t,n){let r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),u):n(s)}function u(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}var sx={name:"labelStartLink",tokenize:fZ,resolveAll:Ku.resolveAll};function fZ(e,t,n){let r=this;return i;function i(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}var lm={name:"lineEnding",tokenize:mZ};function mZ(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ie(e,t,"linePrefix")}}var Yu={name:"thematicBreak",tokenize:pZ};function pZ(e,t,n){let r=0,i;return a;function a(f){return e.enter("thematicBreak"),u(f)}function u(f){return i=f,s(f)}function s(f){return f===i?(e.enter("thematicBreakSequence"),c(f)):r>=3&&(f===null||Ee(f))?(e.exit("thematicBreak"),t(f)):n(f)}function c(f){return f===i?(e.consume(f),r++,c):(e.exit("thematicBreakSequence"),Le(f)?Ie(e,s,"whitespace")(f):s(f))}}var Fn={name:"list",tokenize:gZ,continuation:{tokenize:vZ},exit:EZ},dZ={tokenize:bZ,partial:!0},hZ={tokenize:yZ,partial:!0};function gZ(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,u=0;return s;function s(d){let b=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:am(d)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Yu,n,f)(d):f(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(d)}return n(d)}function c(d){return am(d)&&++u<10?(e.consume(d),c):(!r.interrupt||u<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),f(d)):n(d)}function f(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Go,r.interrupt?n:p,e.attempt(dZ,g,h))}function p(d){return r.containerState.initialBlankLine=!0,a++,g(d)}function h(d){return Le(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),g):n(d)}function g(d){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function vZ(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Go,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ie(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Le(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(hZ,t,u)(s))}function u(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ie(e,e.attempt(Fn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function yZ(e,t,n){let r=this;return Ie(e,i,"listItemIndent",r.containerState.size+1);function i(a){let u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(a):n(a)}}function EZ(e){e.exit(this.containerState.type)}function bZ(e,t,n){let r=this;return Ie(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){let u=r.events[r.events.length-1];return!Le(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}var Zh={name:"setextUnderline",tokenize:DZ,resolveTo:xZ};function xZ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);let u={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",u,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=u,e.push(["exit",u,t]),e}function DZ(e,t,n){let r=this,i;return a;function a(f){let p=r.events.length,h;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){h=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=f,u(f)):n(f)}function u(f){return e.enter("setextHeadingLineSequence"),s(f)}function s(f){return f===i?(e.consume(f),s):(e.exit("setextHeadingLineSequence"),Le(f)?Ie(e,c,"lineSuffix")(f):c(f))}function c(f){return f===null||Ee(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}var G5={tokenize:CZ};function CZ(e){let t=this,n=e.attempt(Go,r,e.attempt(this.parser.constructs.flowInitial,i,Ie(e,e.attempt(this.parser.constructs.flow,i,e.attempt(tx,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}var W5={resolveAll:X5()},K5=Q5("string"),Y5=Q5("text");function Q5(e){return{tokenize:t,resolveAll:X5(e==="text"?wZ:void 0)};function t(n){let r=this,i=this.parser.constructs[e],a=n.attempt(i,u,s);return u;function u(p){return f(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),c}function c(p){return f(p)?(n.exit("data"),a(p)):(n.consume(p),c)}function f(p){if(p===null)return!0;let h=i[p],g=-1;if(h)for(;++g<h.length;){let d=h[g];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function X5(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function wZ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,u=-1,s=0,c;for(;a--;){let f=i[a];if(typeof f=="string"){for(u=f.length;f.charCodeAt(u-1)===32;)s++,u--;if(u)break;u=-1}else if(f===-2)c=!0,s++;else if(f!==-1){a++;break}}if(s){let f={type:n===e.length||c||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+a,_bufferIndex:a?u:r.start._bufferIndex+u},end:Object.assign({},r.end)};r.end=Object.assign({},f.start),r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}function Z5(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},a=[],u=[],s=[],c=!0,f={consume:M,enter:L,exit:B,attempt:ue(H),check:ue(j),interrupt:ue(j,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:A,sliceSerialize:b,now:O,defineSkip:E,write:d},h=t.tokenize.call(p,f),g;return t.resolveAll&&a.push(t),p;function d(G){return u=Gn(u,G),D(),u[u.length-1]!==null?[]:(P(t,0),p.events=Rs(a,p.events,p),p.events)}function b(G,oe){return SZ(A(G),oe)}function A(G){return AZ(u,G)}function O(){let{line:G,column:oe,offset:Y,_index:ve,_bufferIndex:U}=r;return{line:G,column:oe,offset:Y,_index:ve,_bufferIndex:U}}function E(G){i[G.line]=G.column,ae()}function D(){let G;for(;r._index<u.length;){let oe=u[r._index];if(typeof oe=="string")for(G=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===G&&r._bufferIndex<oe.length;)C(oe.charCodeAt(r._bufferIndex));else C(oe)}}function C(G){c=void 0,g=G,h=h(G)}function M(G){Ee(G)?(r.line++,r.column=1,r.offset+=G===-3?2:1,ae()):G!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),p.previous=G,c=!0}function L(G,oe){let Y=oe||{};return Y.type=G,Y.start=O(),p.events.push(["enter",Y,p]),s.push(Y),Y}function B(G){let oe=s.pop();return oe.end=O(),p.events.push(["exit",oe,p]),oe}function H(G,oe){P(G,oe.from)}function j(G,oe){oe.restore()}function ue(G,oe){return Y;function Y(ve,U,ee){let Q,T,he,Ae;return Array.isArray(ve)?Ce(ve):"tokenize"in ve?Ce([ve]):k(ve);function k(Ne){return tt;function tt(Xe){let Ze=Xe!==null&&Ne[Xe],He=Xe!==null&&Ne.null,it=[...Array.isArray(Ze)?Ze:Ze?[Ze]:[],...Array.isArray(He)?He:He?[He]:[]];return Ce(it)(Xe)}}function Ce(Ne){return Q=Ne,T=0,Ne.length===0?ee:je(Ne[T])}function je(Ne){return tt;function tt(Xe){return Ae=pe(),he=Ne,Ne.partial||(p.currentConstruct=Ne),Ne.name&&p.parser.constructs.disable.null.includes(Ne.name)?Fe(Xe):Ne.tokenize.call(oe?Object.assign(Object.create(p),oe):p,f,Re,Fe)(Xe)}}function Re(Ne){return c=!0,G(he,Ae),U}function Fe(Ne){return c=!0,Ae.restore(),++T<Q.length?je(Q[T]):ee}}}function P(G,oe){G.resolveAll&&!a.includes(G)&&a.push(G),G.resolve&&Sn(p.events,oe,p.events.length-oe,G.resolve(p.events.slice(oe),p)),G.resolveTo&&(p.events=G.resolveTo(p.events,p))}function pe(){let G=O(),oe=p.previous,Y=p.currentConstruct,ve=p.events.length,U=Array.from(s);return{restore:ee,from:ve};function ee(){r=G,p.previous=oe,p.currentConstruct=Y,p.events.length=ve,s=U,ae()}}function ae(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function AZ(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,u;if(n===i)u=[e[n].slice(r,a)];else{if(u=e.slice(n,i),r>-1){let s=u[0];typeof s=="string"?u[0]=s.slice(r):u.shift()}a>0&&u.push(e[i].slice(0,a))}return u}function SZ(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
|
|
54
|
+
`;break}case-3:{u=`\r
|
|
55
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&i)continue;u=" ";break}default:u=String.fromCharCode(a)}i=a===-2,r.push(u)}return r.join("")}var cx={};yj(cx,{attentionMarkers:()=>_Z,contentInitial:()=>kZ,disable:()=>zZ,document:()=>TZ,flow:()=>OZ,flowInitial:()=>BZ,insideSpan:()=>FZ,string:()=>MZ,text:()=>RZ});var TZ={[42]:Fn,[43]:Fn,[45]:Fn,[48]:Fn,[49]:Fn,[50]:Fn,[51]:Fn,[52]:Fn,[53]:Fn,[54]:Fn,[55]:Fn,[56]:Fn,[57]:Fn,[62]:Vh},kZ={[91]:nx},BZ={[-2]:um,[-1]:um,[32]:um},OZ={[35]:ix,[42]:Yu,[45]:[Zh,Yu],[60]:ox,[61]:Zh,[95]:Yu,[96]:Wh,[126]:Wh},MZ={[38]:Gh,[92]:$h},RZ={[-5]:lm,[-4]:lm,[-3]:lm,[33]:lx,[38]:Gh,[42]:om,[60]:[Jb,ux],[91]:sx,[92]:[rx,$h],[93]:Ku,[95]:om,[96]:ex},FZ={null:[om,W5]},_Z={null:[42,95]},zZ={null:[]};function J5(e){let n=F5([cx,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(U5),document:i(q5),flow:i(G5),string:i(K5),text:i(Y5)};return r;function i(a){return u;function u(s){return Z5(r,a,s)}}}var e4=/[\0\t\n\r]/g;function t4(){let e=1,t="",n=!0,r;return i;function i(a,u,s){let c=[],f,p,h,g,d;for(a=t+a.toString(u),h=0,t="",n&&(a.charCodeAt(0)===65279&&h++,n=void 0);h<a.length;){if(e4.lastIndex=h,f=e4.exec(a),g=f&&f.index!==void 0?f.index:a.length,d=a.charCodeAt(g),!f){t=a.slice(h);break}if(d===10&&h===g&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<g&&(c.push(a.slice(h,g)),e+=g-h),d){case 0:{c.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,c.push(-2);e++<p;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=g+1}return s&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}function n4(e){for(;!Kh(e););return e}function Jh(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCharCode(n)}var LZ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function r4(e){return e.replace(LZ,PZ)}function PZ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),a=i===120||i===88;return Jh(n.slice(a?2:1),a?16:10)}return Ts(n)||e}function Fs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?i4(e.position):"start"in e||"end"in e?i4(e):"line"in e||"column"in e?fx(e):""}function fx(e){return a4(e&&e.line)+":"+a4(e&&e.column)}function i4(e){return fx(e&&e.start)+"-"+fx(e&&e.end)}function a4(e){return e&&typeof e=="number"?e:1}var u4={}.hasOwnProperty,mx=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),IZ(n)(n4(J5(n).document().write(t4()(e,t,!0))))};function IZ(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Hr),autolinkProtocol:pe,autolinkEmail:pe,atxHeading:s(Ur),blockQuote:s(Ze),characterEscape:pe,characterReference:pe,codeFenced:s(He),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(He,c),codeText:s(it,c),codeTextData:pe,data:pe,codeFlowValue:pe,definition:s(Nr),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ft),hardBreakEscape:s(zi),hardBreakTrailing:s(zi),htmlFlow:s(Ln,c),htmlFlowData:pe,htmlText:s(Ln,c),htmlTextData:pe,image:s(yn),label:c,link:s(Hr),listItem:s(Li),listItemValue:b,listOrdered:s(hi,d),listUnordered:s(hi),paragraph:s(Pi),reference:je,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Ur),strong:s(ml),thematicBreak:s(In)},exit:{atxHeading:p(),atxHeadingSequence:H,autolink:p(),autolinkEmail:Xe,autolinkProtocol:tt,blockQuote:p(),characterEscapeValue:ae,characterReferenceMarkerHexadecimal:Fe,characterReferenceMarkerNumeric:Fe,characterReferenceValue:Ne,codeFenced:p(D),codeFencedFence:E,codeFencedFenceInfo:A,codeFencedFenceMeta:O,codeFlowValue:ae,codeIndented:p(C),codeText:p(U),codeTextData:ae,data:ae,definition:p(),definitionDestinationString:B,definitionLabelString:M,definitionTitleString:L,emphasis:p(),hardBreakEscape:p(oe),hardBreakTrailing:p(oe),htmlFlow:p(Y),htmlFlowData:ae,htmlText:p(ve),htmlTextData:ae,image:p(Q),label:he,labelText:T,lineEnding:G,link:p(ee),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Re,resourceDestinationString:Ae,resourceTitleString:k,resource:Ce,setextHeading:p(P),setextHeadingLineSequence:ue,setextHeadingText:j,strong:p(),thematicBreak:p()}};l4(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(K){let se={type:"root",children:[]},we={stack:[se],tokenStack:[],config:t,enter:f,exit:h,buffer:c,resume:g,setData:a,getData:u},at=[],Ge=-1;for(;++Ge<K.length;)if(K[Ge][1].type==="listOrdered"||K[Ge][1].type==="listUnordered")if(K[Ge][0]==="enter")at.push(Ge);else{let En=at.pop();Ge=i(K,En,Ge)}for(Ge=-1;++Ge<K.length;){let En=t[K[Ge][0]];u4.call(En,K[Ge][1].type)&&En[K[Ge][1].type].call(Object.assign({sliceSerialize:K[Ge][2].sliceSerialize},we),K[Ge][1])}if(we.tokenStack.length>0){let En=we.tokenStack[we.tokenStack.length-1];(En[1]||o4).call(we,void 0,En[0])}for(se.position={start:Wo(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Wo(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ge=-1;++Ge<t.transforms.length;)se=t.transforms[Ge](se)||se;return se}function i(K,se,we){let at=se-1,Ge=-1,En=!1,tr,bn,gi,la;for(;++at<=we;){let At=K[at];if(At[1].type==="listUnordered"||At[1].type==="listOrdered"||At[1].type==="blockQuote"?(At[0]==="enter"?Ge++:Ge--,la=void 0):At[1].type==="lineEndingBlank"?At[0]==="enter"&&(tr&&!la&&!Ge&&!gi&&(gi=at),la=void 0):At[1].type==="linePrefix"||At[1].type==="listItemValue"||At[1].type==="listItemMarker"||At[1].type==="listItemPrefix"||At[1].type==="listItemPrefixWhitespace"||(la=void 0),!Ge&&At[0]==="enter"&&At[1].type==="listItemPrefix"||Ge===-1&&At[0]==="exit"&&(At[1].type==="listUnordered"||At[1].type==="listOrdered")){if(tr){let iu=at;for(bn=void 0;iu--;){let nr=K[iu];if(nr[1].type==="lineEnding"||nr[1].type==="lineEndingBlank"){if(nr[0]==="exit")continue;bn&&(K[bn][1].type="lineEndingBlank",En=!0),nr[1].type="lineEnding",bn=iu}else if(!(nr[1].type==="linePrefix"||nr[1].type==="blockQuotePrefix"||nr[1].type==="blockQuotePrefixWhitespace"||nr[1].type==="blockQuoteMarker"||nr[1].type==="listItemIndent"))break}gi&&(!bn||gi<bn)&&(tr._spread=!0),tr.end=Object.assign({},bn?K[bn][1].start:At[1].end),K.splice(bn||at,0,["exit",tr,At[2]]),at++,we++}At[1].type==="listItemPrefix"&&(tr={type:"listItem",_spread:!1,start:Object.assign({},At[1].start),end:void 0},K.splice(at,0,["enter",tr,At[2]]),at++,we++,gi=void 0,la=!0)}}return K[se][1]._spread=En,we}function a(K,se){n[K]=se}function u(K){return n[K]}function s(K,se){return we;function we(at){f.call(this,K(at),at),se&&se.call(this,at)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(K,se,we){return this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([se,we]),K.position={start:Wo(se.start)},K}function p(K){return se;function se(we){K&&K.call(this,we),h.call(this,we)}}function h(K,se){let we=this.stack.pop(),at=this.tokenStack.pop();if(at)at[0].type!==K.type&&(se?se.call(this,K,at[0]):(at[1]||o4).call(this,K,at[0]));else throw new Error("Cannot close `"+K.type+"` ("+Fs({start:K.start,end:K.end})+"): it\u2019s not open");return we.position.end=Wo(K.end),we}function g(){return Xb(this.stack.pop())}function d(){a("expectingFirstListItemValue",!0)}function b(K){if(u("expectingFirstListItemValue")){let se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(K),10),a("expectingFirstListItemValue")}}function A(){let K=this.resume(),se=this.stack[this.stack.length-1];se.lang=K}function O(){let K=this.resume(),se=this.stack[this.stack.length-1];se.meta=K}function E(){u("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function D(){let K=this.resume(),se=this.stack[this.stack.length-1];se.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function C(){let K=this.resume(),se=this.stack[this.stack.length-1];se.value=K.replace(/(\r?\n|\r)$/g,"")}function M(K){let se=this.resume(),we=this.stack[this.stack.length-1];we.label=se,we.identifier=qa(this.sliceSerialize(K)).toLowerCase()}function L(){let K=this.resume(),se=this.stack[this.stack.length-1];se.title=K}function B(){let K=this.resume(),se=this.stack[this.stack.length-1];se.url=K}function H(K){let se=this.stack[this.stack.length-1];if(!se.depth){let we=this.sliceSerialize(K).length;se.depth=we}}function j(){a("setextHeadingSlurpLineEnding",!0)}function ue(K){let se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(K).charCodeAt(0)===61?1:2}function P(){a("setextHeadingSlurpLineEnding")}function pe(K){let se=this.stack[this.stack.length-1],we=se.children[se.children.length-1];(!we||we.type!=="text")&&(we=Pn(),we.position={start:Wo(K.start)},se.children.push(we)),this.stack.push(we)}function ae(K){let se=this.stack.pop();se.value+=this.sliceSerialize(K),se.position.end=Wo(K.end)}function G(K){let se=this.stack[this.stack.length-1];if(u("atHardBreak")){let we=se.children[se.children.length-1];we.position.end=Wo(K.end),a("atHardBreak");return}!u("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(se.type)&&(pe.call(this,K),ae.call(this,K))}function oe(){a("atHardBreak",!0)}function Y(){let K=this.resume(),se=this.stack[this.stack.length-1];se.value=K}function ve(){let K=this.resume(),se=this.stack[this.stack.length-1];se.value=K}function U(){let K=this.resume(),se=this.stack[this.stack.length-1];se.value=K}function ee(){let K=this.stack[this.stack.length-1];if(u("inReference")){let se=u("referenceType")||"shortcut";K.type+="Reference",K.referenceType=se,delete K.url,delete K.title}else delete K.identifier,delete K.label;a("referenceType")}function Q(){let K=this.stack[this.stack.length-1];if(u("inReference")){let se=u("referenceType")||"shortcut";K.type+="Reference",K.referenceType=se,delete K.url,delete K.title}else delete K.identifier,delete K.label;a("referenceType")}function T(K){let se=this.sliceSerialize(K),we=this.stack[this.stack.length-2];we.label=r4(se),we.identifier=qa(se).toLowerCase()}function he(){let K=this.stack[this.stack.length-1],se=this.resume(),we=this.stack[this.stack.length-1];if(a("inReference",!0),we.type==="link"){let at=K.children;we.children=at}else we.alt=se}function Ae(){let K=this.resume(),se=this.stack[this.stack.length-1];se.url=K}function k(){let K=this.resume(),se=this.stack[this.stack.length-1];se.title=K}function Ce(){a("inReference")}function je(){a("referenceType","collapsed")}function Re(K){let se=this.resume(),we=this.stack[this.stack.length-1];we.label=se,we.identifier=qa(this.sliceSerialize(K)).toLowerCase(),a("referenceType","full")}function Fe(K){a("characterReferenceType",K.type)}function Ne(K){let se=this.sliceSerialize(K),we=u("characterReferenceType"),at;we?(at=Jh(se,we==="characterReferenceMarkerNumeric"?10:16),a("characterReferenceType")):at=Ts(se);let Ge=this.stack.pop();Ge.value+=at,Ge.position.end=Wo(K.end)}function tt(K){ae.call(this,K);let se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(K)}function Xe(K){ae.call(this,K);let se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(K)}function Ze(){return{type:"blockquote",children:[]}}function He(){return{type:"code",lang:null,meta:null,value:""}}function it(){return{type:"inlineCode",value:""}}function Nr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ft(){return{type:"emphasis",children:[]}}function Ur(){return{type:"heading",depth:void 0,children:[]}}function zi(){return{type:"break"}}function Ln(){return{type:"html",value:""}}function yn(){return{type:"image",title:null,url:"",alt:null}}function Hr(){return{type:"link",title:null,url:"",children:[]}}function hi(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Li(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Pi(){return{type:"paragraph",children:[]}}function ml(){return{type:"strong",children:[]}}function Pn(){return{type:"text",value:""}}function In(){return{type:"thematicBreak"}}}function Wo(e){return{line:e.line,column:e.column,offset:e.offset}}function l4(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?l4(e,r):NZ(e,r)}}function NZ(e,t){let n;for(n in t)if(u4.call(t,n)){if(n==="canContainEols"){let r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){let r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){let r=t[n];r&&Object.assign(e[n],r)}}}function o4(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Fs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Fs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Fs({start:t.start,end:t.end})+") is still open")}function eg(e){Object.assign(this,{Parser:n=>{let r=this.data("settings");return mx(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function px(e){if(e)throw e}var rg=N(v4(),1);function sm(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function dx(){let e=[],t={run:n,use:r};return t;function n(...i){let a=-1,u=i.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);s(null,...i);function s(c,...f){let p=e[++a],h=-1;if(c){u(c);return}for(;++h<i.length;)(f[h]===null||f[h]===void 0)&&(f[h]=i[h]);i=f,p?y4(p,s)(...f):u(null,...f)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function y4(e,t){let n;return r;function r(...u){let s=e.length>u.length,c;s&&u.push(i);try{c=e.apply(this,u)}catch(f){let p=f;if(s&&n)throw p;return i(p)}s||(c&&c.then&&typeof c.then=="function"?c.then(a,i):c instanceof Error?i(c):a(c))}function i(u,...s){n||(n=!0,t(u,...s))}function a(u){i(null,u)}}function gx(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?E4(e.position):"start"in e||"end"in e?E4(e):"line"in e||"column"in e?hx(e):""}function hx(e){return b4(e&&e.line)+":"+b4(e&&e.column)}function E4(e){return hx(e&&e.start)+"-"+hx(e&&e.end)}function b4(e){return e&&typeof e=="number"?e:1}var dn=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},u=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(u=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){let c=r.indexOf(":");c===-1?a.ruleId=r:(a.source=r.slice(0,c),a.ruleId=r.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){let c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.position)}let s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=gx(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}};dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;var Bi={basename:UZ,dirname:HZ,extname:qZ,join:jZ,sep:"/"};function UZ(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cm(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else u<0&&(a=!0,u=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function HZ(e){if(cm(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function qZ(e){cm(e);let t=e.length,n=-1,r=0,i=-1,a=0,u;for(;t--;){let s=e.codePointAt(t);if(s===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function jZ(...e){let t=-1,n;for(;++t<e.length;)cm(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":VZ(n)}function VZ(e){cm(e);let t=e.codePointAt(0)===47,n=$Z(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function $Z(e,t){let n="",r=0,i=-1,a=0,u=-1,s,c;for(;++u<=e.length;){if(u<e.length)s=e.codePointAt(u);else{if(s===47)break;s=47}if(s===47){if(!(i===u-1||a===1))if(i!==u-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=u,a=0;continue}}else if(n.length>0){n="",r=0,i=u,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,u):n=e.slice(i+1,u),r=u-i-1;i=u,a=0}else s===46&&a>-1?a++:a=-1}return n}function cm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var x4={cwd:GZ};function GZ(){return"/"}function _s(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function D4(e){if(typeof e=="string")e=new URL(e);else if(!_s(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return WZ(e)}function WZ(e){if(e.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let r=t.codePointAt(n+2);if(r===70||r===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var vx=["history","path","basename","stem","extname","dirname"],fm=class{constructor(t){let n;t?_s(t)?n={path:t}:typeof t=="string"||KZ(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":x4.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<vx.length;){let a=vx[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)vx.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Bi.basename(this.path):void 0}set basename(t){Ex(t,"basename"),yx(t,"basename"),this.path=Bi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Bi.dirname(this.path):void 0}set dirname(t){C4(this.basename,"dirname"),this.path=Bi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Bi.extname(this.path):void 0}set extname(t){if(yx(t,"extname"),C4(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Bi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_s(t)&&(t=D4(t)),Ex(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Bi.basename(this.path,this.extname):void 0}set stem(t){Ex(t,"stem"),yx(t,"stem"),this.path=Bi.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){let i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){let i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){let i=new dn(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function yx(e,t){if(e&&e.includes(Bi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Bi.sep+"`")}function Ex(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function C4(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function KZ(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var w4=function(e){let r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a};var YZ={}.hasOwnProperty,mm=class extends w4{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=dx()}copy(){let t=new mm,n=-1;for(;++n<this.attachers.length;){let r=this.attachers[n];t.use(...r)}return t.data((0,rg.default)(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Dx("data",this.frozen),this.namespace[t]=n,this):YZ.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Dx("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let n=ng(t),r=this.parser||this.Parser;return bx("parse",r),r(String(n),n)}process(t,n){let r=this;return this.freeze(),bx("process",this.parser||this.Parser),xx("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,u){let s=ng(t),c=r.parse(s);r.run(c,s,function(p,h,g){if(p||!h||!g)return f(p);let d=h,b=r.stringify(d,g);XZ(b)?g.value=b:g.result=b,f(p,g)});function f(p,h){p||!h?u(p):a?a(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),bx("processSync",this.parser||this.Parser),xx("processSync",this.compiler||this.Compiler),this.process(t,i),S4("processSync","process",n),r;function i(a,u){n=!0,px(a),r=u}}run(t,n,r){A4(t),this.freeze();let i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(u,s){let c=ng(n);i.run(t,c,f);function f(p,h,g){let d=h||t;p?s(p):u?u(d):r(void 0,d,g)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),S4("runSync","run",r),i;function a(u,s){px(u),i=s,r=!0}}stringify(t,n){this.freeze();let r=ng(n),i=this.compiler||this.Compiler;return xx("stringify",i),A4(t),i(t,r)}use(t,...n){let r=this.attachers,i=this.namespace;if(Dx("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(f){if(typeof f=="function")c(f,[]);else if(typeof f=="object")if(Array.isArray(f)){let[p,...h]=f;c(p,h)}else u(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function u(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(f.plugins),f.settings&&(i.settings=(0,rg.default)(!0,i.settings,f.settings))}function s(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){let h=f[p];a(h)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function c(f,p){let h=-1,g=-1;for(;++h<r.length;)if(r[h][0]===f){g=h;break}if(g===-1)r.push([f,...p]);else if(p.length>0){let[d,...b]=p,A=r[g][1];sm(A)&&sm(d)&&(d=(0,rg.default)(!0,A,d)),r[g]=[f,d,...b]}}}},Cx=new mm().freeze();function bx(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xx(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Dx(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function A4(e){if(!sm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function S4(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ng(e){return QZ(e)?e:new fm(e)}function QZ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function XZ(e){return typeof e=="string"||ZZ(e)}function ZZ(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function T4(e,t){if(!e)throw new Error(`${t}`)}function ig(e,t){if(e.type!==t)throw new Error(`Expected element to be of type ${JSON.stringify(e)} but is ${JSON.stringify(e,null,2)}`)}function Ko(e){throw new Error(`Didn't expect to get here with value ${JSON.stringify(e,null,2)}`)}function k4(e){return[{type:"block-quote",children:zs(e.children)}]}function B4(e){return[{type:"block-quote",children:[{type:"paragraph",children:[{text:`[${e.identifier}]`}]},...zs(e.children)]}]}function _n(e){return fe.isText(e)}function Oi(e){return me.isElement(e)}function Qt(e){return fe.isText(e)&&!!e.text.match(/^\s+$/)&&!e.code}var O4={bold:"**",italic:"_",strike:"~~",code:""};function JZ(e){if(e in O4)return O4[e];throw new Error(`Could not find mark ${JSON.stringify(e)} in MARK_KEY_TO_TOKEN lookup`)}function wx(e){return e.map(JZ).join("")}function pm(e){let{text:t,...n}=e;return Object.keys(n)}function Ax(e){if(fe.isText(e)){if(Qt(e))throw new Error("You probably didn't mean to do this. We should only be getting marks from segments that are not plain space segments.");return pm(e)}else{if(e.type==="anchor")return Sx(e.children);throw new Error(`Unhandled type ${e.type}`)}}function Sx(e){let t;for(let n of e){if(!_n(n)){if(n.type==="image-inline")continue;throw new Error("Expected every segment in an anchor to be a Text segment")}if(Qt(n))continue;let r=pm(n);if(t===void 0){t=r;continue}t=t.filter(i=>r.includes(i))}if(t===void 0)throw new Error("No text segments were found as children in this anchor which should not be possible");return t}var M4=["bold","italic","underline","strike","code"];function R4(e){return e.slice().sort((t,n)=>M4.indexOf(t)-M4.indexOf(n))}var eJ=["\\","`","*","_","[","]","(",")","#","+","-",".","!","|","^","~","<",">","{","}","=",":",";","$","%","&","?",'"',"'",",","\\","/","@"],tJ=new RegExp(`(${eJ.map(e=>`\\${e}`).join("|")})`,"g");function F4(e){return e.replace(tJ,t=>`\\${t}`)}function nJ(e,t){let n=pm(e),r=pm(t);return n.length==r.length&&n.every(i=>r.includes(i))}function _4(e,t){let n=fe.isText(e),r=fe.isText(t);return t&&!r&&!n?[{text:""},e]:n?t===void 0||!r?[e]:nJ(t,e)?(t.text=[t.text,e.text].join(""),[]):[e]:[e]}function z4(e){let t=[];for(let n=0;n<e.length;n++){let r=t[t.length-1];t.push(..._4(e[n],r))}return t.length===0&&t.push({text:""}),fe.isText(t[0])||t.unshift({text:""}),fe.isText(t[t.length-1])||t.push({text:""}),t}function L4(e){return{url:e.url,title:e.title||void 0,alt:e.alt||void 0}}var rJ=/^(\/[^?#]*)(?:\?([^#]*))?(#.*)?$/;function Ls(e){try{let t=new URL(e);return{origin:t.origin,hostname:t.hostname,pathname:t.pathname,searchParams:t.searchParams,hash:t.hash}}catch{let n=e.match(rJ);if(n===null)throw new Error(`Invalid format should not happen: ${e}`);let[r,i,a,u]=[...n];return{origin:"",hostname:"",pathname:i||"",searchParams:new URLSearchParams(a),hash:u||""}}}function dm(e){if(typeof e!="string")return null;let t=e.match(/^(\d+)x(\d+)$/);return t===null?null:{width:parseInt(t[1]),height:parseInt(t[2])}}function P4(e){let t=Ls(e.url);if(!t.hostname.match(/[.]portive[.]com$/i))return;let n=t.searchParams.get("size");if(n===null)return;let r=dm(n);if(r===null)return;let i=t.pathname.match(/[-][-](\d+)x(\d+)[.][a-zA-Z]+$/);if(i!==null)return{url:`${t.origin}${t.pathname}`,title:e.title||void 0,alt:e.alt||void 0,width:r.width,height:r.height,srcWidth:parseInt(i[1]),srcHeight:parseInt(i[2])}}function I4(e){let t=Ls(e.url);if(t.hash.length===0)return;let n=new URLSearchParams(t.hash.slice(1)),r=dm(n.get("size")),i=dm(n.get("srcSize"));if(!(!r||!i))return{url:`${t.origin}${t.pathname}`,title:e.title||void 0,alt:e.alt||void 0,width:r.width,height:r.height,srcWidth:i.width,srcHeight:i.height}}var N4=[P4,I4,L4];function U4(e){for(let t of N4){let n=t(e);if(n)return[{type:"image-inline",...n,children:[{text:""}]}]}throw new Error("Shouldn't get here because last parser always returns data")}function mr(e,t={}){let n=[];for(let i of e)n.push(...iJ(i,t));return z4(n)}function iJ(e,t={}){switch(e.type){case"delete":return mr(e.children,{...t,strike:!0});case"emphasis":return mr(e.children,{...t,italic:!0});case"footnoteReference":return[{text:`[${e.identifier}]`}];case"html":return[{text:e.value,code:!0}];case"image":return U4(e);case"inlineCode":return[{text:e.value,...t,code:!0}];case"link":return[{type:"anchor",href:e.url,title:e.title==null?void 0:e.title,children:mr(e.children,t)}];case"strong":return mr(e.children,{...t,bold:!0});case"text":return[{text:e.value,...t}];case"linkReference":case"imageReference":throw new Error("linkReference and imageReference should be converted to link and image through our transformInlineLinks function");case"break":return[{text:`
|
|
56
|
+
`}];case"footnote":throw new Error("footnote is not supported yet")}Ko(e)}function H4(e){return[{type:"heading",level:e.depth,children:mr(e.children)}]}function q4(e){return[{type:"paragraph",children:[{text:e.value}]}]}function j4(e,{depth:t,ordered:n,checked:r}){switch(e.type){case"paragraph":return r===!0||r===!1?[{type:"task-list-item",depth:t,checked:r,children:mr(e.children)}]:n?[{type:"ordered-list-item",depth:t,children:mr(e.children)}]:[{type:"unordered-list-item",depth:t,children:mr(e.children)}];case"list":return ag(e,t+1);default:return Tx(e)}}function V4(e,t){let n=[];for(let r of e.children)n.push(...j4(r,{...t,checked:e.checked}));return n}function ag(e,t=0){let n=[];for(let r of e.children)n.push(...V4(r,{depth:t,ordered:!!e.ordered}));return n}function aJ(e){return!(e.length!==3||!("text"in e[0])||e[0].text!==""||!("text"in e[2])||e[2].text!==""||!("type"in e[1])||e[1].type!=="image-inline")}var oJ="\xA0";function uJ(e){return!(e.length!==1||!("text"in e[0])||e[0].text!==oJ)}function $4(e){let t=mr(e.children);return aJ(t)?[{...t[1],type:"image-block"}]:uJ(t)?[{type:"paragraph",children:[{text:""}]}]:[{type:"paragraph",children:t}]}function G4(e){if(e.align==null)throw new Error("Expected an array of AlignType for table.align");return[{type:"table",columns:e.align.map(t=>({align:t||"left"})),children:e.children.map(lJ)}]}function lJ(e){if(e.type!=="tableRow")throw new Error("Expected a tableRow");return{type:"table-row",children:e.children.map(sJ)}}function sJ(e){if(e.type!=="tableCell")throw new Error("Expected a tableCell");return{type:"table-cell",children:[{type:"table-content",children:mr(e.children)}]}}function W4(){return[{type:"horizontal-rule",children:[{text:""}]}]}function zs(e){let t=[];for(let n of e)t.push(...Tx(n));return t}function Tx(e){switch(e.type){case"blockquote":return k4(e);case"code":return[];case"definition":throw new Error('The type "definition" should not exist. See comments');case"footnoteDefinition":return B4(e);case"heading":return H4(e);case"html":return q4(e);case"list":return ag(e);case"paragraph":return $4(e);case"table":return G4(e);case"thematicBreak":return W4();case"yaml":return[]}Ko(e)}var og=function(e){if(e==null)return pJ;if(typeof e=="string")return mJ(e);if(typeof e=="object")return Array.isArray(e)?cJ(e):fJ(e);if(typeof e=="function")return ug(e);throw new Error("Expected function, string, or object as test")};function cJ(e){let t=[],n=-1;for(;++n<e.length;)t[n]=og(e[n]);return ug(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].call(this,...i))return!0;return!1}}function fJ(e){return ug(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function mJ(e){return ug(t);function t(n){return n&&n.type===e}}function ug(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function pJ(){return!0}var lg=!0,hm=!1,Qu="skip",kx=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);let i=og(t),a=r?-1:1;u(e,void 0,[])();function u(s,c,f){let p=s&&typeof s=="object"?s:{};if(typeof p.type=="string"){let g=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(g?"<"+g+">":""))+")"})}return h;function h(){let g=[],d,b,A;if((!t||i(s,c,f[f.length-1]||null))&&(g=dJ(n(s,f)),g[0]===hm))return g;if(s.children&&g[0]!==Qu)for(b=(r?s.children.length:-1)+a,A=f.concat(s);b>-1&&b<s.children.length;){if(d=u(s.children[b],b,A)(),d[0]===hm)return d;b=typeof d[1]=="number"?d[1]:b+a}return g}}};function dJ(e){return Array.isArray(e)?e:typeof e=="number"?[lg,e]:[e]}var gm=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),kx(e,t,i,r);function i(a,u){let s=u[u.length-1];return n(a,s?s.children.indexOf(a):null,s)}};var K4={}.hasOwnProperty;function Bx(e){let t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return gm(e,"definition",r=>{let i=Y4(r.identifier);i&&!K4.call(t,i)&&(t[i]=r)}),n;function n(r){let i=Y4(r);return i&&K4.call(t,i)?t[i]:null}}function Y4(e){return String(e||"").toUpperCase()}function Q4(e){let t=Bx(e);gm(e,(n,r,i)=>{let a=n,u=i;if(a.type==="definition"&&u!==null&&typeof r=="number")return u.children.splice(r,1),[Qu,r];if(a.type==="imageReference"||a.type==="linkReference"){let s="identifier"in a&&typeof a.identifier=="string"?a.identifier:"",c=t(s);if(c&&u!==null&&typeof r=="number"){let f=a.type==="imageReference"?{type:"image",url:c.url,title:c.title,alt:a.alt}:{type:"link",url:c.url,title:c.title,children:a.children};return u.children[r]=f,[Qu,r]}}})}var hJ=Cx().use(eg).use(jh);function gJ(e){let t=hJ.parse(e);return Q4(t),t}function Yo(e){let t=gJ(e);return t.children.length===0?[{type:"paragraph",children:[{text:""}]}]:zs(t.children)}function vJ(e){return e.type==="ordered-list-item"||e.type==="unordered-list-item"||e.type==="task-list-item"}function X4(e){let t=[],n=-1;for(let r of e){if(!vJ(r)){t.push(r),n=-1;continue}let i=r.depth>n+1?n+1:r.depth;t.push({...r,depth:i}),n=i}return t}function Z4(e){return e.url}function J4(e){if(e.url.startsWith("$"))return"";let{hostname:t}=Ls(e.url);if(t.match(/[.]portive[.]com$/i)&&e.width&&e.height)return`${e.url}?size=${e.width}x${e.height}`}function eM(e){if(e.width&&e.height&&e.srcWidth&&e.srcHeight)return`${e.url}#srcSize=${e.srcWidth}x${e.srcHeight}&size=${e.width}x${e.height}`}var yJ=[J4,eM,Z4];function sg(e){for(let t of yJ){let n=t(e);if(typeof n=="string")return n===""?"":``}throw new Error("Shouldn't get here")}function tM(e){return sg(e)}function nM(e,t){let n=t.filter(i=>!e.includes(i));return{orderedMarksToAdd:R4(n)}}function rM(e,t){let n=[...e],r=e.filter(a=>!t.includes(a)),i=[];for(let a=0;a<e.length&&r.length!==0;a++){let u=n.pop();if(u===void 0)throw new Error("This shouldn't happen unless we made a mistake in the algorithm");i.push(u);let s=r.indexOf(u);s!==-1&&r.splice(s,1)}return{orderedMarksToRemove:i,nextOrderedMarks:n}}function Ox(e,t){let{orderedMarksToRemove:n,nextOrderedMarks:r}=rM(e,t),{orderedMarksToAdd:i}=nM(r,t);return{remove:n,add:i,nextOrderedMarks:[...r,...i]}}function iM({node:e,nextNode:t,nodes:n,index:r}){return!_n(e)||!Qt(e)||e.code||!_n(t)||!Qt(t)||e.code?!1:(n.splice(r,2,{text:`${e.text}${t.text}`}),!0)}function aM({node:e,nodes:t,prevNode:n,index:r}){if(!Oi(e)||e.type!=="anchor")return!1;let i=e.children[0];return _n(i)&&Qt(i)?(e.children.splice(0,1),_n(n)&&Qt(n)?n.text=`${n.text}${i.text}`:t.splice(r,0,{text:i.text}),!0):!1}function oM({node:e,nodes:t,nextNode:n,index:r}){if(!Oi(e)||e.type!=="anchor")return!1;let i=e.children[e.children.length-1];return _n(i)&&Qt(i)?(e.children.splice(e.children.length-1,1),_n(n)&&Qt(n)?n.text=`${i.text}${n.text}`:t.splice(r+1,0,{text:i.text}),!0):!1}function uM({node:e}){return!Oi(e)||e.type!=="line"||e.children.length>0?!1:(e.children.push({text:""}),!0)}function lM({node:e,nodes:t,index:n}){if(!_n(e)||Qt(e)||e.code)return!1;let r=e.text.match(/^(\s*)(.*?)(\s*)$/);if(!r||r[1].length===0&&r[3].length===0)return!1;let i=[{text:r[1]},{...e,text:r[2]},{text:r[3]}].filter(a=>a.text!=="");return t.splice(n,1,...i),!0}function sM({index:e,nodes:t,node:n,parent:r}){return e!==t.length-1||t.length<=1||!_n(n)||!Qt(n)?!1:r&&Oi(r)&&r.type==="line"?(t.splice(t.length-1,1),!0):!1}function cM({index:e,nodes:t,node:n,parent:r}){return e!==0||t.length===0||!_n(n)||!Qt(n)?!1:r&&Oi(r)&&r.type==="line"?(t.splice(0,1),!0):!1}var fM=[lM,aM,oM,iM,cM,sM,uM];function mM(e){for(let t of fM)if(t(e))return!0;return!1}var EJ=72;function Mx(e,t){let n=!1,r,i=0,a=(e.length+1)*EJ;do{if(r=!1,i=i+1,i>a)throw new Error(`There have been ${i} normalization passes (72x the number of nodes at this level). This likely indicates a bug in the code.`);e:for(let u=0;u<e.length;u++){let s=e[u];if(Oi(s)&&Mx(s.children,s)){r=!0,n=!0;break e}let c=e[u-1],f=e[u+1];if(mM({parent:t,node:s,prevNode:c,nextNode:f,index:u,nodes:e})){r=!0,n=!0;break e}}}while(r);return n}var pM=e=>e.map(t=>me.isElement(t)&&t.type==="anchor"?{...t,children:pM(t.children)}:t);function dM(e){let t={type:"line",children:pM(e)};return Mx([t],void 0),t.children}function hM(e){let t=0;for(let n of e.text.matchAll(/[`]+/g))t=Math.max(t,n[0].length);return t===0?`\`${e.text.replace(/[`]/g,"\\`")}\``:`${"`".repeat(t+1)} ${e.text} ${"`".repeat(t+1)}`}function bJ(e){return e.replace(/"/g,'\\"')}function gM(e){let t=Sx(e.children);return e.href.startsWith("$")?Fr(e.children,t,t):typeof e.title=="string"&&e.title.length>0?`[${Fr(e.children,t,t)}](${e.href} "${bJ(e.title)}")`:`[${Fr(e.children,t,t)}](${e.href})`}function vM(e){return F4(e.text)}function yM(e){if(fe.isText(e))return e.code?hM(e):vM(e);switch(e.type){case"anchor":return gM(e);case"image-inline":return sg(e);default:Ko(e)}}function Fr(e,t=[],n=[]){let r=dM(e),i=[],a=Ox(t,Ax(r[0]));for(let u=0;u<r.length;u++){let s=r[u];if(fe.isText(s)&&Qt(s)){i.push(s.text);continue}i.push(wx(a.add)),i.push(yM(s));let c=xJ(r,u,n),f=Ox(a.nextOrderedMarks,c);i.push(wx(f.remove)),a=f}return i.join("")}function xJ(e,t,n){for(let r=t+1;r<e.length;r++){let i=e[r];if(!Qt(i)&&!(me.isElement(i)&&i.type==="image-inline"))return Ax(i)}return n}function bM(e){let t=[];return t.push(EM(e.children[0])),t.push(DJ(e.columns)),e.children.slice(1).forEach(n=>{t.push(EM(n))}),`${t.join(`
|
|
58
57
|
`)}
|
|
59
58
|
|
|
60
|
-
`}function
|
|
59
|
+
`}function DJ(e){return e.every(n=>n.align==="left")?`|${e.map(()=>"---").join("|")}|`:`|${e.map(n=>CJ(n.align)).join("|")}|`}function CJ(e){switch(e){case"left":return":---";case"center":return":---:";case"right":return"---:"}}function EM(e){return ig(e,"table-row"),`|${e.children.map(wJ).join("|")}|`}function wJ(e){return ig(e,"table-cell"),T4(e.children.length===1,`Expected table-cell to have one child but is ${JSON.stringify(e.children)}`),e.children.map(AJ).join()}function AJ(e){return ig(e,"table-content"),Fr(e.children)}var Rx=4;function xM(e,t){switch(e.type){case"anchor":return`[${Fr(e.children)}](${e.href})`;case"block-quote":return`${cg(e.children).split(`
|
|
61
60
|
`).map(r=>`> ${r}`.trim()).join(`
|
|
62
61
|
`)}
|
|
63
62
|
|
|
64
|
-
`;case"heading":return`${"#".repeat(e.level)} ${
|
|
63
|
+
`;case"heading":return`${"#".repeat(e.level)} ${Fr(e.children)}
|
|
65
64
|
|
|
66
65
|
`;case"horizontal-rule":return`---
|
|
67
66
|
|
|
68
|
-
`;case"paragraph":return`${
|
|
67
|
+
`;case"paragraph":return`${Fr(e.children)}
|
|
69
68
|
|
|
70
|
-
`;case"table":return
|
|
69
|
+
`;case"table":return bM(e);case"table-row":case"table-cell":case"table-content":throw new Error(`Table elements should only be present as children of table which should be handled by serializeTable. Got ${e.type} may indicate an error in normalization.`);case"unordered-list-item":return`${" ".repeat(e.depth*Rx)}- ${Fr(e.children)}
|
|
71
70
|
|
|
72
|
-
`;case"ordered-list-item":return`${" ".repeat(e.depth*
|
|
71
|
+
`;case"ordered-list-item":return`${" ".repeat(e.depth*Rx)}${t[e.depth]}. ${Fr(e.children)}
|
|
73
72
|
|
|
74
|
-
`;case"task-list-item":{let n=" ".repeat(e.depth*
|
|
73
|
+
`;case"task-list-item":{let n=" ".repeat(e.depth*Rx),r=Fr(e.children);return r.trim()===""&&(r=" "),`${n}- [${e.checked?"x":" "}] ${r}
|
|
75
74
|
|
|
76
|
-
`}case"image-block":return
|
|
75
|
+
`}case"image-block":return tM(e);case"image-inline":throw new Error("This shouldn't happen because inlines are handled in serializeSegment")}Ko(e)}function cg(e){let t=[],n=[];for(let i of e)i.type==="ordered-list-item"?(n[i.depth]=(n[i.depth]||0)+1,n=n.slice(0,i.depth+1)):i.type==="unordered-list-item"||i.type==="task-list-item"?n=n.slice(0,i.depth):n=[],t.push(xM(i,n));let r=t.join("");return r.trim()===""?"":TJ(SJ(r)).trim()}function SJ(e){return e.replace(/^\n\n/g,`
|
|
77
76
|
|
|
78
|
-
`)}function
|
|
77
|
+
`)}function TJ(e){return e.replace(/(\n{4,})/g,t=>{let n=t.length,r=Math.floor((n-2)/2);return`
|
|
79
78
|
|
|
80
79
|
`+Array(r).fill(" ").join(`
|
|
81
80
|
|
|
82
81
|
`)+`
|
|
83
82
|
|
|
84
|
-
`})}function tm(e){let t=xF(e);return o0(t)}var at=e=>({fn:e});var pm=q(Ue());function Eo(e){return!!e}function VF(e,t){let n=t.map(r=>r.editableProps?.decorate).filter(Eo);return function(r){let i=[];for(let o of n){let a=o(r);i.push(...a)}return e&&i.push(...e(r)),i}}var YF=q(re());function KF(e){let t=e.map(r=>r.renderEditable).filter(Eo),n=r=>(0,YF.jsx)(LM,{...r});for(let r of t){let i=n;n=o=>r({attributes:o,Editable:i})}return n}function u0(e,t){let n=[];for(let r of e){let i=r.editableProps?.[t];i&&n.push(i)}return n}function l0(e,t){return function(n){for(let r of e)if(r(n))return;t?.(n)}}var XF=(e,t)=>{let n=u0(t,"onKeyDown");return l0(n,e)},QF=(e,t)=>{let n=u0(t,"onKeyUp");return l0(n,e)},ZF=(e,t)=>{let n=u0(t,"onPaste");return l0(n,e)},JF=(e,t)=>{let n=u0(t,"onDrop");return l0(n,e)};function e_(e,t){let n=t.map(r=>r.editableProps?.renderElement).filter(Eo);return function(i){for(let o of n){let a=o(i);if(a)return a}if(e===void 0)throw new Error(`Element with type ${i.element.type} not handled. Note that renderElement is not defined on SinkEditable so this is only the result of checking the Sink Plugins.`);return e(i)}}var t_=q(Ue());function n_(e,t){if(e===void 0)throw new Error("renderLeaf was not defined on SinkEditable");let n=t.map(r=>r.editableProps?.renderLeaf).filter(Eo).reverse();return function(r){let i=e({...r,attributes:{}});for(let o of n){let a=o({...r,children:i});a&&(i=a)}return i=(0,t_.cloneElement)(i,r.attributes),i}}function r_(e,t){if(e)return e;let n=t.map(r=>r.editableProps?.renderPlaceholder).filter(Eo);if(n.length!==0)return function(r){if(n.length>1)throw new Error(`Only one plugin can define renderPlaceholder but there are ${n.length}`);let i=n[0];if(i==null)throw new Error("Expected fn to be defined");return i(r)}}function nm(){return nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nm.apply(null,arguments)}var Ii=q(Ue()),A0=q(Ue());var Fre=!1;function _re(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ire(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var i_=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!Fre:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ire(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=_re(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}();var qn="-ms-",rm="-moz-",xt="-webkit-",s0="comm",dc="rule",gc="decl";var o_="@import";var c0="@keyframes";var a_="@layer";var u_=Math.abs,Cl=String.fromCharCode,l_=Object.assign;function s_(e,t){return an(e,0)^45?(((t<<2^an(e,0))<<2^an(e,1))<<2^an(e,2))<<2^an(e,3):0}function f0(e){return e.trim()}function iw(e,t){return(e=t.exec(e))?e[0]:e}function dt(e,t,n){return e.replace(t,n)}function im(e,t){return e.indexOf(t)}function an(e,t){return e.charCodeAt(t)|0}function yu(e,t,n){return e.slice(t,n)}function fr(e){return e.length}function vc(e){return e.length}function yc(e,t){return t.push(e),e}function ow(e,t){return e.map(t).join("")}var p0=1,xc=1,c_=0,pr=0,mn=0,Ec="";function om(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:p0,column:xc,length:a,return:""}}function Dc(e,t){return l_(om("",null,null,"",null,null,0),e,{length:-e.length},t)}function f_(){return mn}function p_(){return mn=pr>0?an(Ec,--pr):0,xc--,mn===10&&(xc=1,p0--),mn}function mr(){return mn=pr<c_?an(Ec,pr++):0,xc++,mn===10&&(xc=1,p0++),mn}function _i(){return an(Ec,pr)}function am(){return pr}function wc(e,t){return yu(Ec,e,t)}function bc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function m0(e){return p0=xc=1,c_=fr(Ec=e),pr=0,[]}function h0(e){return Ec="",e}function Cc(e){return f0(wc(pr-1,aw(e===91?e+2:e===40?e+1:e)))}function m_(e){for(;(mn=_i())&&mn<33;)mr();return bc(e)>2||bc(mn)>3?"":" "}function h_(e,t){for(;--t&&mr()&&!(mn<48||mn>102||mn>57&&mn<65||mn>70&&mn<97););return wc(e,am()+(t<6&&_i()==32&&mr()==32))}function aw(e){for(;mr();)switch(mn){case e:return pr;case 34:case 39:e!==34&&e!==39&&aw(mn);break;case 40:e===41&&aw(e);break;case 92:mr();break}return pr}function d_(e,t){for(;mr()&&e+mn!==47+10;)if(e+mn===42+42&&_i()===47)break;return"/*"+wc(t,pr-1)+"*"+Cl(e===47?e:mr())}function g_(e){for(;!bc(_i());)mr();return wc(e,pr)}function x_(e){return h0(d0("",null,null,null,[""],e=m0(e),0,[0],e))}function d0(e,t,n,r,i,o,a,l,c){for(var f=0,p=0,d=a,g=0,m=0,x=0,S=1,T=1,y=1,w=0,C="",M=i,R=o,A=r,P=C;T;)switch(x=w,w=mr()){case 40:if(x!=108&&an(P,d-1)==58){im(P+=dt(Cc(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:P+=Cc(w);break;case 9:case 10:case 13:case 32:P+=m_(x);break;case 92:P+=h_(am()-1,7);continue;case 47:switch(_i()){case 42:case 47:yc(Lre(d_(mr(),am()),t,n),c);break;default:P+="/"}break;case 123*S:l[f++]=fr(P)*y;case 125*S:case 59:case 0:switch(w){case 0:case 125:T=0;case 59+p:y==-1&&(P=dt(P,/\f/g,"")),m>0&&fr(P)-d&&yc(m>32?y_(P+";",r,n,d-1):y_(dt(P," ","")+";",r,n,d-2),c);break;case 59:P+=";";default:if(yc(A=v_(P,t,n,f,p,i,l,C,M=[],R=[],d),o),w===123)if(p===0)d0(P,t,A,A,M,o,d,l,R);else switch(g===99&&an(P,3)===110?100:g){case 100:case 108:case 109:case 115:d0(e,A,A,r&&yc(v_(e,A,A,0,0,i,l,C,i,M=[],d),R),i,R,d,l,r?M:R);break;default:d0(P,A,A,A,[""],R,0,l,R)}}f=p=m=0,S=y=1,C=P="",d=a;break;case 58:d=1+fr(P),m=x;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&p_()==125)continue}switch(P+=Cl(w),w*S){case 38:y=p>0?1:(P+="\f",-1);break;case 44:l[f++]=(fr(P)-1)*y,y=1;break;case 64:_i()===45&&(P+=Cc(mr())),g=_i(),p=d=fr(C=P+=g_(am())),w++;break;case 45:x===45&&fr(P)==2&&(S=0)}}return o}function v_(e,t,n,r,i,o,a,l,c,f,p){for(var d=i-1,g=i===0?o:[""],m=vc(g),x=0,S=0,T=0;x<r;++x)for(var y=0,w=yu(e,d+1,d=u_(S=a[x])),C=e;y<m;++y)(C=f0(S>0?g[y]+" "+w:dt(w,/&\f/g,g[y])))&&(c[T++]=C);return om(e,t,n,i===0?dc:l,c,f,p)}function Lre(e,t,n){return om(e,t,n,s0,Cl(f_()),yu(e,2,-2),0)}function y_(e,t,n,r){return om(e,t,n,gc,yu(e,0,r),yu(e,r+1,-1),r)}function Sl(e,t){for(var n="",r=vc(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function b_(e,t,n,r){switch(e.type){case a_:if(e.children.length)break;case o_:case gc:return e.return=e.return||e.value;case s0:return"";case c0:return e.return=e.value+"{"+Sl(e.children,r)+"}";case dc:e.value=e.props.join(",")}return fr(n=Sl(e.children,r))?e.return=e.value+"{"+n+"}":""}function E_(e){var t=vc(e);return function(n,r,i,o){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,o)||"";return a}}function D_(e){return function(t){t.root||(t=t.return)&&e(t)}}function g0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Pre=function(t,n,r){for(var i=0,o=0;i=o,o=_i(),i===38&&o===12&&(n[r]=1),!bc(o);)mr();return wc(t,pr)},zre=function(t,n){var r=-1,i=44;do switch(bc(i)){case 0:i===38&&_i()===12&&(n[r]=1),t[r]+=Pre(pr-1,n,r);break;case 2:t[r]+=Cc(i);break;case 4:if(i===44){t[++r]=_i()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Cl(i)}while(i=mr());return t},Nre=function(t,n){return h0(zre(m0(t),n))},w_=new WeakMap,Ure=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!w_.get(r))&&!i){w_.set(t,!0);for(var o=[],a=Nre(n,o),l=r.props,c=0,f=0;c<a.length;c++)for(var p=0;p<l.length;p++,f++)t.props[f]=o[c]?a[c].replace(/&\f/g,l[p]):l[p]+" "+a[c]}}},Hre=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function C_(e,t){switch(s_(e,t)){case 5103:return xt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xt+e+rm+e+qn+e+e;case 6828:case 4268:return xt+e+qn+e+e;case 6165:return xt+e+qn+"flex-"+e+e;case 5187:return xt+e+dt(e,/(\w+).+(:[^]+)/,xt+"box-$1$2"+qn+"flex-$1$2")+e;case 5443:return xt+e+qn+"flex-item-"+dt(e,/flex-|-self/,"")+e;case 4675:return xt+e+qn+"flex-line-pack"+dt(e,/align-content|flex-|-self/,"")+e;case 5548:return xt+e+qn+dt(e,"shrink","negative")+e;case 5292:return xt+e+qn+dt(e,"basis","preferred-size")+e;case 6060:return xt+"box-"+dt(e,"-grow","")+xt+e+qn+dt(e,"grow","positive")+e;case 4554:return xt+dt(e,/([^-])(transform)/g,"$1"+xt+"$2")+e;case 6187:return dt(dt(dt(e,/(zoom-|grab)/,xt+"$1"),/(image-set)/,xt+"$1"),e,"")+e;case 5495:case 3959:return dt(e,/(image-set\([^]*)/,xt+"$1$`$1");case 4968:return dt(dt(e,/(.+:)(flex-)?(.*)/,xt+"box-pack:$3"+qn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xt+e+e;case 4095:case 3583:case 4068:case 2532:return dt(e,/(.+)-inline(.+)/,xt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(fr(e)-1-t>6)switch(an(e,t+1)){case 109:if(an(e,t+4)!==45)break;case 102:return dt(e,/(.+:)(.+)-([^]+)/,"$1"+xt+"$2-$3$1"+rm+(an(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~im(e,"stretch")?C_(dt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(an(e,t+1)!==115)break;case 6444:switch(an(e,fr(e)-3-(~im(e,"!important")&&10))){case 107:return dt(e,":",":"+xt)+e;case 101:return dt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xt+(an(e,14)===45?"inline-":"")+"box$3$1"+xt+"$2$3$1"+qn+"$2box$3")+e}break;case 5936:switch(an(e,t+11)){case 114:return xt+e+qn+dt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xt+e+qn+dt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xt+e+qn+dt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xt+e+qn+e+e}return e}var qre=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case gc:t.return=C_(t.value,t.length);break;case c0:return Sl([Dc(t,{value:dt(t.value,"@","@"+xt)})],i);case dc:if(t.length)return ow(t.props,function(o){switch(iw(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sl([Dc(t,{props:[dt(o,/:(read-\w+)/,":"+rm+"$1")]})],i);case"::placeholder":return Sl([Dc(t,{props:[dt(o,/:(plac\w+)/,":"+xt+"input-$1")]}),Dc(t,{props:[dt(o,/:(plac\w+)/,":"+rm+"$1")]}),Dc(t,{props:[dt(o,/:(plac\w+)/,qn+"input-$1")]})],i)}return""})}},jre=[qre],S_=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var T=S.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||jre,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var T=S.getAttribute("data-emotion").split(" "),y=1;y<T.length;y++)o[T[y]]=!0;l.push(S)});var c,f=[Ure,Hre];{var p,d=[b_,D_(function(S){p.insert(S)})],g=E_(f.concat(i,d)),m=function(T){return Sl(x_(T),g)};c=function(T,y,w,C){p=w,m(T?T+"{"+y.styles+"}":y.styles),C&&(x.inserted[y.name]=!0)}}var x={key:n,sheet:new i_({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return x.sheet.hydrate(l),x};var nie=!0;function um(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Sc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||nie===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},kc=function(t,n,r){Sc(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function P_(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var z_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var rie=!1,iie=/[A-Z]|^ms/g,oie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,q_=function(t){return t.charCodeAt(1)===45},N_=function(t){return t!=null&&typeof t!="boolean"},pw=g0(function(e){return q_(e)?e:e.replace(iie,"-$&").toLowerCase()}),U_=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(oie,function(r,i,o){return Do={name:i,styles:o,next:Do},i})}return z_[t]!==1&&!q_(t)&&typeof n=="number"&&n!==0?n+"px":n},aie="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function lm(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Do={name:i.name,styles:i.styles,next:Do},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Do={name:a.name,styles:a.styles,next:Do},a=a.next;var l=o.styles+";";return l}return uie(e,t,n)}case"function":{if(e!==void 0){var c=Do,f=n(e);return Do=c,lm(e,t,f)}break}}var p=n;if(t==null)return p;var d=t[p];return d!==void 0?d:p}function uie(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=lm(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=o+"{"+t[l]+"}":N_(l)&&(r+=pw(o)+":"+U_(o,l)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&rie)throw new Error(aie);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)N_(a[c])&&(r+=pw(o)+":"+U_(o,a[c])+";");else{var f=lm(e,t,a);switch(o){case"animation":case"animationName":{r+=pw(o)+":"+f+";";break}default:r+=o+"{"+f+"}"}}}}return r}var H_=/label:\s*([^\s;{]+)\s*(;|$)/g,Do;function kl(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Do=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=lm(n,t,o);else{var a=o;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=lm(n,t,e[l]),r){var c=o;i+=c[l]}H_.lastIndex=0;for(var f="",p;(p=H_.exec(i))!==null;)f+="-"+p[1];var d=P_(i)+f;return{name:d,styles:i,next:Do}}var sm=q(Ue()),lie=function(t){return t()},j_=sm.useInsertionEffect?sm.useInsertionEffect:!1,cm=j_||lie,mw=j_||sm.useLayoutEffect;var V_=!1,$_=Ii.createContext(typeof HTMLElement<"u"?S_({key:"css"}):null),sie=$_.Provider;var Ac=function(t){return(0,A0.forwardRef)(function(n,r){var i=(0,A0.useContext)($_);return t(n,i,r)})},Tc=Ii.createContext({});var T0={}.hasOwnProperty,hw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",G_=function(t,n){var r={};for(var i in n)T0.call(n,i)&&(r[i]=n[i]);return r[hw]=t,r},cie=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Sc(n,r,i),cm(function(){return kc(n,r,i)}),null},fie=Ac(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[hw],o=[r],a="";typeof e.className=="string"?a=um(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var l=kl(o,void 0,Ii.useContext(Tc));a+=t.key+"-"+l.name;var c={};for(var f in e)T0.call(e,f)&&f!=="css"&&f!==hw&&!V_&&(c[f]=e[f]);return c.className=a,n&&(c.ref=n),Ii.createElement(Ii.Fragment,null,Ii.createElement(cie,{cache:t,serialized:l,isStringTag:typeof i=="string"}),Ii.createElement(i,c))}),W_=fie;var xu=q(Ue());var EDe=q(L_()),K_=function(t,n){var r=arguments;if(n==null||!T0.call(n,"css"))return xu.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=W_,o[1]=G_(t,n);for(var a=2;a<i;a++)o[a]=r[a];return xu.createElement.apply(null,o)};(function(e){var t;(function(n){})(t||(t=e.JSX||(e.JSX={})))})(K_||(K_={}));var Y_=Ac(function(e,t){var n=e.styles,r=kl([n],void 0,xu.useContext(Tc)),i=xu.useRef();return mw(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",o),a.hydrate([c])),i.current=[a,l],function(){a.flush()}},[t]),mw(function(){var o=i.current,a=o[0],l=o[1];if(l){o[1]=!1;return}if(r.next!==void 0&&kc(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function B0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return kl(t)}var bu=q(Ue());var pie=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,X_=g0(function(e){return pie.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var mie=!1,hie=X_,die=function(t){return t!=="theme"},Q_=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hie:die},Z_=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},gie=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Sc(n,r,i),cm(function(){return kc(n,r,i)}),null},J_=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var l=Z_(t,n,r),c=l||Q_(i),f=!c("as");return function(){var p=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)d.push.apply(d,p);else{var g=p[0];d.push(g[0]);for(var m=p.length,x=1;x<m;x++)d.push(p[x],g[x])}var S=Ac(function(T,y,w){var C=f&&T.as||i,M="",R=[],A=T;if(T.theme==null){A={};for(var P in T)A[P]=T[P];A.theme=bu.useContext(Tc)}typeof T.className=="string"?M=um(y.registered,R,T.className):T.className!=null&&(M=T.className+" ");var V=kl(d.concat(R),y.registered,A);M+=y.key+"-"+V.name,a!==void 0&&(M+=" "+a);var J=f&&l===void 0?Q_(C):c,_={};for(var de in T)f&&de==="as"||J(de)&&(_[de]=T[de]);return _.className=M,w&&(_.ref=w),bu.createElement(bu.Fragment,null,bu.createElement(gie,{cache:y,serialized:V,isStringTag:typeof C=="string"}),bu.createElement(C,_))});return S.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=i,S.__emotion_styles=d,S.__emotion_forwardProp=l,Object.defineProperty(S,"toString",{value:function(){return a===void 0&&mie?"NO_COMPONENT_SELECTOR":"."+a}}),S.withComponent=function(T,y){var w=e(T,nm({},n,y,{shouldForwardProp:Z_(S,y,!0)}));return w.apply(void 0,d)},S}};var zDe=q(Ue());var vie=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ae=J_.bind(null);vie.forEach(function(e){ae[e]=ae(e)});var fm=ae("div")`
|
|
83
|
+
`})}function vm(e){let t=X4(e);return cg(t)}var Ye=e=>({fn:e});var km=N(Oe());function ea(e){return!!e}function DM(e,t){let n=t.map(r=>r.editableProps?.decorate).filter(ea);return function(r){let i=[];for(let a of n){let u=a(r);i.push(...u)}return e&&i.push(...e(r)),i}}var TM=N(Z());function SM(e){let t=e.map(r=>r.renderEditable).filter(ea),n=r=>(0,TM.jsx)(dO,{...r});for(let r of t){let i=n;n=a=>r({attributes:a,Editable:i})}return n}function mg(e,t){let n=[];for(let r of e){let i=r.editableProps?.[t];i&&n.push(i)}return n}function pg(e,t){return function(n){for(let r of e)if(r(n))return;t?.(n)}}var kM=(e,t)=>{let n=mg(t,"onKeyDown");return pg(n,e)},BM=(e,t)=>{let n=mg(t,"onKeyUp");return pg(n,e)},OM=(e,t)=>{let n=mg(t,"onPaste");return pg(n,e)},MM=(e,t)=>{let n=mg(t,"onDrop");return pg(n,e)};function RM(e,t){let n=t.map(r=>r.editableProps?.renderElement).filter(ea);return function(i){for(let a of n){let u=a(i);if(u)return u}if(e===void 0)throw new Error(`Element with type ${i.element.type} not handled. Note that renderElement is not defined on SinkEditable so this is only the result of checking the Sink Plugins.`);return e(i)}}var FM=N(Oe());function _M(e,t){if(e===void 0)throw new Error("renderLeaf was not defined on SinkEditable");let n=t.map(r=>r.editableProps?.renderLeaf).filter(ea).reverse();return function(r){let i=e({...r,attributes:{}});for(let a of n){let u=a({...r,children:i});u&&(i=u)}return i=(0,FM.cloneElement)(i,r.attributes),i}}function zM(e,t){if(e)return e;let n=t.map(r=>r.editableProps?.renderPlaceholder).filter(ea);if(n.length!==0)return function(r){if(n.length>1)throw new Error(`Only one plugin can define renderPlaceholder but there are ${n.length}`);let i=n[0];if(i==null)throw new Error("Expected fn to be defined");return i(r)}}function ym(){return ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ym.apply(null,arguments)}var mi=N(Oe()),Rg=N(Oe());var OJ=!1;function MJ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function RJ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var LM=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!OJ:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(RJ(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=MJ(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}();var Tn="-ms-",Em="-moz-",mt="-webkit-",dg="comm",Ps="rule",Is="decl";var PM="@import";var hg="@keyframes";var IM="@layer";var NM=Math.abs,Xu=String.fromCharCode,UM=Object.assign;function HM(e,t){return Gt(e,0)^45?(((t<<2^Gt(e,0))<<2^Gt(e,1))<<2^Gt(e,2))<<2^Gt(e,3):0}function gg(e){return e.trim()}function Fx(e,t){return(e=t.exec(e))?e[0]:e}function st(e,t,n){return e.replace(t,n)}function bm(e,t){return e.indexOf(t)}function Gt(e,t){return e.charCodeAt(t)|0}function Qo(e,t,n){return e.slice(t,n)}function Kn(e){return e.length}function Ns(e){return e.length}function Us(e,t){return t.push(e),e}function _x(e,t){return e.map(t).join("")}var vg=1,Hs=1,qM=0,Yn=0,Xt=0,js="";function xm(e,t,n,r,i,a,u){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:vg,column:Hs,length:u,return:""}}function Vs(e,t){return UM(xm("",null,null,"",null,null,0),e,{length:-e.length},t)}function jM(){return Xt}function VM(){return Xt=Yn>0?Gt(js,--Yn):0,Hs--,Xt===10&&(Hs=1,vg--),Xt}function Qn(){return Xt=Yn<qM?Gt(js,Yn++):0,Hs++,Xt===10&&(Hs=1,vg++),Xt}function fi(){return Gt(js,Yn)}function Dm(){return Yn}function $s(e,t){return Qo(js,e,t)}function qs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yg(e){return vg=Hs=1,qM=Kn(js=e),Yn=0,[]}function Eg(e){return js="",e}function Gs(e){return gg($s(Yn-1,zx(e===91?e+2:e===40?e+1:e)))}function $M(e){for(;(Xt=fi())&&Xt<33;)Qn();return qs(e)>2||qs(Xt)>3?"":" "}function GM(e,t){for(;--t&&Qn()&&!(Xt<48||Xt>102||Xt>57&&Xt<65||Xt>70&&Xt<97););return $s(e,Dm()+(t<6&&fi()==32&&Qn()==32))}function zx(e){for(;Qn();)switch(Xt){case e:return Yn;case 34:case 39:e!==34&&e!==39&&zx(Xt);break;case 40:e===41&&zx(e);break;case 92:Qn();break}return Yn}function WM(e,t){for(;Qn()&&e+Xt!==47+10;)if(e+Xt===42+42&&fi()===47)break;return"/*"+$s(t,Yn-1)+"*"+Xu(e===47?e:Qn())}function KM(e){for(;!qs(fi());)Qn();return $s(e,Yn)}function XM(e){return Eg(bg("",null,null,null,[""],e=yg(e),0,[0],e))}function bg(e,t,n,r,i,a,u,s,c){for(var f=0,p=0,h=u,g=0,d=0,b=0,A=1,O=1,E=1,D=0,C="",M=i,L=a,B=r,H=C;O;)switch(b=D,D=Qn()){case 40:if(b!=108&&Gt(H,h-1)==58){bm(H+=st(Gs(D),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:H+=Gs(D);break;case 9:case 10:case 13:case 32:H+=$M(b);break;case 92:H+=GM(Dm()-1,7);continue;case 47:switch(fi()){case 42:case 47:Us(FJ(WM(Qn(),Dm()),t,n),c);break;default:H+="/"}break;case 123*A:s[f++]=Kn(H)*E;case 125*A:case 59:case 0:switch(D){case 0:case 125:O=0;case 59+p:E==-1&&(H=st(H,/\f/g,"")),d>0&&Kn(H)-h&&Us(d>32?QM(H+";",r,n,h-1):QM(st(H," ","")+";",r,n,h-2),c);break;case 59:H+=";";default:if(Us(B=YM(H,t,n,f,p,i,s,C,M=[],L=[],h),a),D===123)if(p===0)bg(H,t,B,B,M,a,h,s,L);else switch(g===99&&Gt(H,3)===110?100:g){case 100:case 108:case 109:case 115:bg(e,B,B,r&&Us(YM(e,B,B,0,0,i,s,C,i,M=[],h),L),i,L,h,s,r?M:L);break;default:bg(H,B,B,B,[""],L,0,s,L)}}f=p=d=0,A=E=1,C=H="",h=u;break;case 58:h=1+Kn(H),d=b;default:if(A<1){if(D==123)--A;else if(D==125&&A++==0&&VM()==125)continue}switch(H+=Xu(D),D*A){case 38:E=p>0?1:(H+="\f",-1);break;case 44:s[f++]=(Kn(H)-1)*E,E=1;break;case 64:fi()===45&&(H+=Gs(Qn())),g=fi(),p=h=Kn(C=H+=KM(Dm())),D++;break;case 45:b===45&&Kn(H)==2&&(A=0)}}return a}function YM(e,t,n,r,i,a,u,s,c,f,p){for(var h=i-1,g=i===0?a:[""],d=Ns(g),b=0,A=0,O=0;b<r;++b)for(var E=0,D=Qo(e,h+1,h=NM(A=u[b])),C=e;E<d;++E)(C=gg(A>0?g[E]+" "+D:st(D,/&\f/g,g[E])))&&(c[O++]=C);return xm(e,t,n,i===0?Ps:s,c,f,p)}function FJ(e,t,n){return xm(e,t,n,dg,Xu(jM()),Qo(e,2,-2),0)}function QM(e,t,n,r){return xm(e,t,n,Is,Qo(e,0,r),Qo(e,r+1,-1),r)}function Zu(e,t){for(var n="",r=Ns(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ZM(e,t,n,r){switch(e.type){case IM:if(e.children.length)break;case PM:case Is:return e.return=e.return||e.value;case dg:return"";case hg:return e.return=e.value+"{"+Zu(e.children,r)+"}";case Ps:e.value=e.props.join(",")}return Kn(n=Zu(e.children,r))?e.return=e.value+"{"+n+"}":""}function JM(e){var t=Ns(e);return function(n,r,i,a){for(var u="",s=0;s<t;s++)u+=e[s](n,r,i,a)||"";return u}}function eR(e){return function(t){t.root||(t=t.return)&&e(t)}}function xg(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _J=function(t,n,r){for(var i=0,a=0;i=a,a=fi(),i===38&&a===12&&(n[r]=1),!qs(a);)Qn();return $s(t,Yn)},zJ=function(t,n){var r=-1,i=44;do switch(qs(i)){case 0:i===38&&fi()===12&&(n[r]=1),t[r]+=_J(Yn-1,n,r);break;case 2:t[r]+=Gs(i);break;case 4:if(i===44){t[++r]=fi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Xu(i)}while(i=Qn());return t},LJ=function(t,n){return Eg(zJ(yg(t),n))},tR=new WeakMap,PJ=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!tR.get(r))&&!i){tR.set(t,!0);for(var a=[],u=LJ(n,a),s=r.props,c=0,f=0;c<u.length;c++)for(var p=0;p<s.length;p++,f++)t.props[f]=a[c]?u[c].replace(/&\f/g,s[p]):s[p]+" "+u[c]}}},IJ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function nR(e,t){switch(HM(e,t)){case 5103:return mt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return mt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mt+e+Em+e+Tn+e+e;case 6828:case 4268:return mt+e+Tn+e+e;case 6165:return mt+e+Tn+"flex-"+e+e;case 5187:return mt+e+st(e,/(\w+).+(:[^]+)/,mt+"box-$1$2"+Tn+"flex-$1$2")+e;case 5443:return mt+e+Tn+"flex-item-"+st(e,/flex-|-self/,"")+e;case 4675:return mt+e+Tn+"flex-line-pack"+st(e,/align-content|flex-|-self/,"")+e;case 5548:return mt+e+Tn+st(e,"shrink","negative")+e;case 5292:return mt+e+Tn+st(e,"basis","preferred-size")+e;case 6060:return mt+"box-"+st(e,"-grow","")+mt+e+Tn+st(e,"grow","positive")+e;case 4554:return mt+st(e,/([^-])(transform)/g,"$1"+mt+"$2")+e;case 6187:return st(st(st(e,/(zoom-|grab)/,mt+"$1"),/(image-set)/,mt+"$1"),e,"")+e;case 5495:case 3959:return st(e,/(image-set\([^]*)/,mt+"$1$`$1");case 4968:return st(st(e,/(.+:)(flex-)?(.*)/,mt+"box-pack:$3"+Tn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mt+e+e;case 4095:case 3583:case 4068:case 2532:return st(e,/(.+)-inline(.+)/,mt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Kn(e)-1-t>6)switch(Gt(e,t+1)){case 109:if(Gt(e,t+4)!==45)break;case 102:return st(e,/(.+:)(.+)-([^]+)/,"$1"+mt+"$2-$3$1"+Em+(Gt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bm(e,"stretch")?nR(st(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Gt(e,t+1)!==115)break;case 6444:switch(Gt(e,Kn(e)-3-(~bm(e,"!important")&&10))){case 107:return st(e,":",":"+mt)+e;case 101:return st(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mt+(Gt(e,14)===45?"inline-":"")+"box$3$1"+mt+"$2$3$1"+Tn+"$2box$3")+e}break;case 5936:switch(Gt(e,t+11)){case 114:return mt+e+Tn+st(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mt+e+Tn+st(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mt+e+Tn+st(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mt+e+Tn+e+e}return e}var NJ=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Is:t.return=nR(t.value,t.length);break;case hg:return Zu([Vs(t,{value:st(t.value,"@","@"+mt)})],i);case Ps:if(t.length)return _x(t.props,function(a){switch(Fx(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zu([Vs(t,{props:[st(a,/:(read-\w+)/,":"+Em+"$1")]})],i);case"::placeholder":return Zu([Vs(t,{props:[st(a,/:(plac\w+)/,":"+mt+"input-$1")]}),Vs(t,{props:[st(a,/:(plac\w+)/,":"+Em+"$1")]}),Vs(t,{props:[st(a,/:(plac\w+)/,Tn+"input-$1")]})],i)}return""})}},UJ=[NJ],rR=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(A){var O=A.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(A),A.setAttribute("data-s",""))})}var i=t.stylisPlugins||UJ,a={},u,s=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(A){for(var O=A.getAttribute("data-emotion").split(" "),E=1;E<O.length;E++)a[O[E]]=!0;s.push(A)});var c,f=[PJ,IJ];{var p,h=[ZM,eR(function(A){p.insert(A)})],g=JM(f.concat(i,h)),d=function(O){return Zu(XM(O),g)};c=function(O,E,D,C){p=D,d(O?O+"{"+E.styles+"}":E.styles),C&&(b.inserted[E.name]=!0)}}var b={key:n,sheet:new LM({key:n,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return b.sheet.hydrate(s),b};var JJ=!0;function Cm(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Ws=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||JJ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Ks=function(t,n,r){Ws(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function hR(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gR={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var eee=!1,tee=/[A-Z]|^ms/g,nee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bR=function(t){return t.charCodeAt(1)===45},vR=function(t){return t!=null&&typeof t!="boolean"},Hx=xg(function(e){return bR(e)?e:e.replace(tee,"-$&").toLowerCase()}),yR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nee,function(r,i,a){return ta={name:i,styles:a,next:ta},i})}return gR[t]!==1&&!bR(t)&&typeof n=="number"&&n!==0?n+"px":n},ree="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wm(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return ta={name:i.name,styles:i.styles,next:ta},i.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)ta={name:u.name,styles:u.styles,next:ta},u=u.next;var s=a.styles+";";return s}return iee(e,t,n)}case"function":{if(e!==void 0){var c=ta,f=n(e);return ta=c,wm(e,t,f)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function iee(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=wm(e,t,n[i])+";";else for(var a in n){var u=n[a];if(typeof u!="object"){var s=u;t!=null&&t[s]!==void 0?r+=a+"{"+t[s]+"}":vR(s)&&(r+=Hx(a)+":"+yR(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&eee)throw new Error(ree);if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var c=0;c<u.length;c++)vR(u[c])&&(r+=Hx(a)+":"+yR(a,u[c])+";");else{var f=wm(e,t,u);switch(a){case"animation":case"animationName":{r+=Hx(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}}return r}var ER=/label:\s*([^\s;{]+)\s*(;|$)/g,ta;function Ju(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";ta=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=wm(n,t,a);else{var u=a;i+=u[0]}for(var s=1;s<e.length;s++)if(i+=wm(n,t,e[s]),r){var c=a;i+=c[s]}ER.lastIndex=0;for(var f="",p;(p=ER.exec(i))!==null;)f+="-"+p[1];var h=hR(i)+f;return{name:h,styles:i,next:ta}}var Am=N(Oe()),aee=function(t){return t()},xR=Am.useInsertionEffect?Am.useInsertionEffect:!1,Sm=xR||aee,qx=xR||Am.useLayoutEffect;var DR=!1,CR=mi.createContext(typeof HTMLElement<"u"?rR({key:"css"}):null),oee=CR.Provider;var Ys=function(t){return(0,Rg.forwardRef)(function(n,r){var i=(0,Rg.useContext)(CR);return t(n,i,r)})},Qs=mi.createContext({});var Fg={}.hasOwnProperty,jx="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wR=function(t,n){var r={};for(var i in n)Fg.call(n,i)&&(r[i]=n[i]);return r[jx]=t,r},uee=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ws(n,r,i),Sm(function(){return Ks(n,r,i)}),null},lee=Ys(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[jx],a=[r],u="";typeof e.className=="string"?u=Cm(t.registered,a,e.className):e.className!=null&&(u=e.className+" ");var s=Ju(a,void 0,mi.useContext(Qs));u+=t.key+"-"+s.name;var c={};for(var f in e)Fg.call(e,f)&&f!=="css"&&f!==jx&&!DR&&(c[f]=e[f]);return c.className=u,n&&(c.ref=n),mi.createElement(mi.Fragment,null,mi.createElement(uee,{cache:t,serialized:s,isStringTag:typeof i=="string"}),mi.createElement(i,c))}),AR=lee;var Xo=N(Oe());var A0e=N(dR()),SR=function(t,n){var r=arguments;if(n==null||!Fg.call(n,"css"))return Xo.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=AR,a[1]=wR(t,n);for(var u=2;u<i;u++)a[u]=r[u];return Xo.createElement.apply(null,a)};(function(e){var t;(function(n){})(t||(t=e.JSX||(e.JSX={})))})(SR||(SR={}));var TR=Ys(function(e,t){var n=e.styles,r=Ju([n],void 0,Xo.useContext(Qs)),i=Xo.useRef();return qx(function(){var a=t.key+"-global",u=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",a),u.hydrate([c])),i.current=[u,s],function(){u.flush()}},[t]),qx(function(){var a=i.current,u=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Ks(t,r.next,!0),u.tags.length){var c=u.tags[u.tags.length-1].nextElementSibling;u.before=c,u.flush()}t.insert("",r,u,!1)},[t,r.name]),null});function _g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ju(t)}var Zo=N(Oe());var see=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kR=xg(function(e){return see.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var cee=!1,fee=kR,mee=function(t){return t!=="theme"},BR=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?fee:mee},OR=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},pee=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ws(n,r,i),Sm(function(){return Ks(n,r,i)}),null},MR=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,u;n!==void 0&&(a=n.label,u=n.target);var s=OR(t,n,r),c=s||BR(i),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var g=p[0];h.push(g[0]);for(var d=p.length,b=1;b<d;b++)h.push(p[b],g[b])}var A=Ys(function(O,E,D){var C=f&&O.as||i,M="",L=[],B=O;if(O.theme==null){B={};for(var H in O)B[H]=O[H];B.theme=Zo.useContext(Qs)}typeof O.className=="string"?M=Cm(E.registered,L,O.className):O.className!=null&&(M=O.className+" ");var j=Ju(h.concat(L),E.registered,B);M+=E.key+"-"+j.name,u!==void 0&&(M+=" "+u);var ue=f&&s===void 0?BR(C):c,P={};for(var pe in O)f&&pe==="as"||ue(pe)&&(P[pe]=O[pe]);return P.className=M,D&&(P.ref=D),Zo.createElement(Zo.Fragment,null,Zo.createElement(pee,{cache:E,serialized:j,isStringTag:typeof C=="string"}),Zo.createElement(C,P))});return A.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",A.defaultProps=t.defaultProps,A.__emotion_real=A,A.__emotion_base=i,A.__emotion_styles=h,A.__emotion_forwardProp=s,Object.defineProperty(A,"toString",{value:function(){return u===void 0&&cee?"NO_COMPONENT_SELECTOR":"."+u}}),A.withComponent=function(O,E){var D=e(O,ym({},n,E,{shouldForwardProp:OR(A,E,!0)}));return D.apply(void 0,h)},A}};var q0e=N(Oe());var dee=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],te=MR.bind(null);dee.forEach(function(e){te[e]=te(e)});var Tm=te("div")`
|
|
85
84
|
-webkit-font-smoothing: antialiased;
|
|
86
85
|
-moz-osx-font-smoothing: grayscale;
|
|
87
86
|
font-size: 16px;
|
|
88
87
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
89
88
|
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
90
89
|
box-sizing: border-box;
|
|
91
|
-
`;var
|
|
90
|
+
`;var FR=N(Z());function RR(e){let t=Se();(0,km.useEffect)(()=>{y.normalize(t,{force:!0})},[]);let{plugins:n}=t.sink,r=(0,km.useMemo)(()=>({...e,decorate:DM(e.decorate,n),renderElement:RM(e.renderElement,n),renderLeaf:_M(e.renderLeaf,n),renderPlaceholder:zM(e.renderPlaceholder,n),onKeyDown:kM(e.onKeyDown,n),onKeyUp:BM(e.onKeyUp,n),onPaste:OM(e.onPaste,n),onDrop:MM(e.onDrop,n)}),Object.values(e)),i=(0,km.useMemo)(()=>SM(n),[n]);return(0,FR.jsx)(i,{...r})}function Xs(e,t,n){let r=e[t],i=n.filter(a=>a.editor?.[t]);return function(u){for(let s of i){let c=s.editor?.[t]?.(u);if(typeof c=="boolean")return c}return r(u)}}function ja(e,t,n){let r=e[t],i=n.filter(a=>a.editor?.[t]);return function(...u){let s=!1,c=[];for(let f of i){let p=f.editor?.[t]?.(...u);if(typeof p=="function")c.push(p);else if(p===!0){s=!0;break}}s||r(...u),c.forEach(f=>f())}}function _R(e){return(t,n)=>{let r=t,i=e.map(a=>a(r,n,{createPolicy:u=>u}));return r.sink={plugins:i},r.isMaster="isMaster"in r?r.isMaster:()=>!1,r.isSlave="isSlave"in r?r.isSlave:()=>!1,r.isStandalone="isStandalone"in r?r.isStandalone:()=>!1,Object.assign(r,{normalizeNode:ja(r,"normalizeNode",i),deleteBackward:ja(r,"deleteBackward",i),deleteForward:ja(r,"deleteForward",i),deleteFragment:ja(r,"deleteFragment",i),insertBreak:ja(r,"insertBreak",i),insertFragment:ja(r,"insertFragment",i),insertNode:ja(r,"insertNode",i),insertText:ja(r,"insertText",i),isInline:Xs(r,"isInline",i),isVoid:Xs(r,"isVoid",i),isMaster:Xs(r,"isMaster",i),isSlave:Xs(r,"isSlave",i),isStandalone:Xs(r,"isStandalone",i)}),r}}var zR=e=>{let t=e.map(i=>i.fn);return{withSink:_R(t),SinkEditable:RR}};function LR(e,t){return me.isElement(t)?W.findPath(e,t):t}function be(e,t){return e.bind(null,t)}function zr(e,t,n){return e.bind(null,t,n)}var hee=/mac os x/i,zg;function Lg(){if(zg!==void 0)return zg;let{userAgent:e}=window.navigator;return zg=hee.test(e),zg}function Va(e){e.preventDefault(),e.stopPropagation()}function PR(e){if(typeof e=="function")return e;if(typeof e=="string")return t=>me.isElement(t)&&t.type===e;if(Array.isArray(e))return t=>me.isElement(t)&&e.includes(t.type);throw new Error(`Expected matchNode to be a function, string or array but is ${e}`)}function Qe(e,t,{at:n=e.selection}={}){if(n===null)return;let r=LR(e,n),i=PR(t);if(F.isPath(r)){let a=y.node(e,r);if(a&&i(a[0]))return a}return y.above(e,{at:r,match:i})}function Zs(...e){return Qe(...e)?.[1]}var IR=N(Z()),rt=({strokeWidth:e=1.5,...t})=>(0,IR.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",strokeWidth:e,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",...t});function Bm(e){return e==null?!1:V.isCollapsed(e)}function Pg(e){return Array.isArray(e)?t=>me.isElement(t)&&e.includes(t.type):t=>me.isElement(t)&&e==t.type}function NR(e,t){let{selection:n}=e;if(!Bm(n))return!1;let r=Qe(e,t,{at:n});return!!r&&y.isEnd(e,n.anchor,r[1])}function el(e,t){let{selection:n}=e;if(!Bm(n))return!1;let r=Qe(e,t,{at:n});return!!r&&y.isStart(e,n.anchor,r[1])}var Wx=N(Ng());var Eee=(0,Wx.isHotkey)(" "),bee=(0,Wx.isHotkey)("SHIFT+SPACE");function VR(e,t){return n=>{if(!Eee(n.nativeEvent)&&!bee(n.nativeEvent))return!1;let{selection:r}=e;if(r===null||V.isExpanded(r))return!1;let i=Qe(e,f=>me.isElement(f)&&e.convertElement.isConvertibleElement(f));if(!i)return!1;let a={anchor:y.start(e,i[1]),focus:r.focus},u=y.string(e,a),s=t[u];if(!s)return!1;Va(n);let c={anchor:y.start(e,i[1]),focus:r.focus};return _.delete(e,{at:c}),s(),!0}}var $R=N(Ng());function GR(e){let t=e.replace(/\bsuper\b/g,Lg()?"cmd+alt":"ctrl+shift");return(0,$R.isHotkey)(t)}function zn(e){let t=null;return function(r){t==null&&(t=Object.entries(e).map(([i,a])=>[GR(i),a]));for(let[i,a]of t)if(i(r.nativeEvent)){let u=a();if(u===!0||u===void 0)return r.preventDefault(),r.stopPropagation(),!0}return!1}}function WR(e,t){y.withoutNormalizing(e,()=>{_.setNodes(e,{__DOESNT_MATTER_JUST_TO_START_NORMALIZING__:"123"},{at:t}),_.setNodes(e,{__DOESNT_MATTER_JUST_TO_START_NORMALIZING__:null},{at:t})})}function Jo(e,t,n){let[,r]=t,i=y.previous(e,{at:r});if(i&&n(i,t))return!0;let a=y.next(e,{at:r});return!!(a&&n(t,a))}function ra(e,t){_.select(e,y.start(e,t))}function KR(e,t){_.select(e,y.end(e,t))}function YR(e,t){return typeof t!="function"?t:t(e)}function QR(e,t,{at:n=e.selection}={}){if(n==null)return!1;let r=Qe(e,i=>me.isElement(i)&&e.isMaster(i));if(r==null){let i=e.selection;y.withoutNormalizing(e,()=>{_.insertNodes(e,t,{at:n}),i&&(_.select(e,i),_.move(e))})}else{let i=F.next(r[1]);y.withoutNormalizing(e,()=>{_.insertNodes(e,t,{at:i}),_.select(e,y.start(e,i))})}return!0}function Mm(e,t,n){y.withoutNormalizing(e,()=>{let r=y.node(e,n),i=YR(r[0],t);_.wrapNodes(e,i,{at:n}),_.unwrapNodes(e,{at:[...n,0]})})}function Ug(e,t,n){let r=Array.from(y.nodes(e,n));if(r.length===0)return!1;for(let i of r){let[a]=i;_.setNodes(e,t(a),{at:i[1]})}return!0}function XR(e,t){let n=t.clipboardData,{types:r}=n;if(console.log(n.getData("text/html")),r.length>1||r[0]!=="text/plain")return!1;let i=n.getData("text/plain");return xee(i)?(t.preventDefault(),t.stopPropagation(),e.anchor.insertLink(i),!0):!1}function xee(e){let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"||t.protocol==="mailto:"}function ZR(e,{href:t,title:n},{at:r}){let i=Qe(e,"anchor",{at:r});return i?(_.setNodes(e,{href:t,title:n},{at:i[1]}),!0):!1}function JR(e,t,n=t,{select:r=!0}={}){let i=e.selection||{anchor:y.start(e,[0]),focus:y.start(e,[0])};if(V.isCollapsed(i)){if(_.insertNodes(e,{type:"anchor",href:t,children:[{text:n}]},{select:r,at:i}),r&&e.selection){let a=y.node(e,e.selection);_.select(e,a[1])}}else _.wrapNodes(e,{type:"anchor",href:t,children:[]},{split:!0,match:a=>fe.isText(a)||y.isInline(e,a)})}function eF(e,{at:t}){let n=Qe(e,"anchor",{at:t});return n?(_.unwrapNodes(e,{at:n[1]}),!0):!1}function tF(e){return{insertLink:be(JR,e),removeLink:be(eF,e),editLink:be(ZR,e)}}function nF(e,t){if(!me.isElement(t[0])||t[0].type!=="anchor")return!1;let n=t[0].children;for(let r=0;r<n.length;r++){let i=n[r];if(!(!me.isElement(i)||i.type!=="anchor"))return _.unwrapNodes(e,{at:[...t[1],r]}),!0}return!1}function rF(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=rF(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Zt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=rF(e))&&(r&&(r+=" "),r+=t);return r}var _m=N(Oe());var Rm=N(Oe());var iF=N(jp());function aF({children:e}){return(0,iF.createPortal)(e,document.body)}var Js=N(Z()),Kx=(0,Rm.createContext)({}),Dee=(0,Rm.createContext)({});function oF({children:e}){let[t,n]=(0,Rm.useState)({});function r(a){n(u=>({...u,[a.type]:a}))}function i(a){n(u=>{let s={...u};return delete s[a],s})}return(0,Js.jsxs)(Kx.Provider,{value:{layers:t,setLayers:n,openLayer:r,closeLayer:i},children:[e,Object.entries(t).map(([,a])=>(0,Js.jsx)(aF,{children:(0,Js.jsx)(Dee.Provider,{value:a,children:(0,Js.jsx)(a.Component,{})})},a.type))]})}var uF=N(Oe());function Xn(e){let{openLayer:t,closeLayer:n,layers:r}=(0,uF.useContext)(Kx);function i(u){t({type:e,Component:u})}function a(){n(e)}return{open:i,close:a,layer:r[e],type:e}}var lF=te("a")`
|
|
92
91
|
/**
|
|
93
92
|
* Link colors
|
|
94
93
|
*/
|
|
@@ -107,10 +106,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
107
106
|
&.--selected {
|
|
108
107
|
background: var(--blue-50);
|
|
109
108
|
}
|
|
110
|
-
`,
|
|
109
|
+
`,Yx=te("span")`
|
|
111
110
|
display: inline;
|
|
112
111
|
padding: 0 1px 0 0;
|
|
113
|
-
`,
|
|
112
|
+
`,uEe=te("span")`
|
|
114
113
|
position: fixed;
|
|
115
114
|
width: 100px;
|
|
116
115
|
background: var(--shade-50);
|
|
@@ -119,14 +118,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
119
118
|
border: 1px solid var(--shade-400);
|
|
120
119
|
overflow: hidden;
|
|
121
120
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
122
|
-
`,
|
|
121
|
+
`,lEe=te("span")`
|
|
123
122
|
position: absolute;
|
|
124
123
|
left: 0;
|
|
125
124
|
top: 0;
|
|
126
125
|
height: 14px;
|
|
127
126
|
background: var(--blue-400);
|
|
128
127
|
transition: width 100ms linear;
|
|
129
|
-
`;var
|
|
128
|
+
`;var iD=N(Oe());var cF=N(Oe());var sF=te("div")`
|
|
130
129
|
position: fixed;
|
|
131
130
|
user-select: none;
|
|
132
131
|
top: 0;
|
|
@@ -135,7 +134,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
135
134
|
bottom: 0;
|
|
136
135
|
overflow-y: auto;
|
|
137
136
|
background: rgba(0, 0, 0, 0.01);
|
|
138
|
-
`;var
|
|
137
|
+
`;var fF=N(Z());function eu({close:e}){let t=(0,cF.useRef)(null);return(0,fF.jsx)(sF,{ref:t,onClick:e})}var ia={cmd:"\u2318",ctrl:"\u2303",shift:"\u21E7",opt:"\u2325",enter:"\u23CE"},Cee={shift:ia.shift,opt:ia.opt,alt:ia.opt,ctrl:ia.ctrl,mod:ia.cmd,cmd:ia.cmd,enter:ia.enter,super:`${ia.opt}${ia.cmd}`},wee={alt:"ALT",ctrl:"CTRL",opt:"ALT",shift:"SHIFT",mod:"CTRL",cmd:"CTRL",enter:ia.enter,super:"CTRL+SHIFT"};function mF(e,t){let n=e.findIndex(r=>r===t);n!==-1&&e.splice(n,1)}function Aee(e){let t=[];return Object.entries(Cee).forEach(([n,r])=>{e.includes(n)&&(t.push(r),mF(e,n))}),t.push(...e.map(n=>n.toUpperCase())),t.join("")}function See(e){let t=[];return Object.entries(wee).forEach(([n,r])=>{e.includes(n)&&(t.push(r),mF(e,n))}),t.push(...e.map(n=>n.toUpperCase())),t.join("+")}function Hg(e){let t=e.toLowerCase().split("+");return Lg()?Aee(t):See(t)}var zF=N(Oe());function Qx(e){let t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function pF(e){let t=Qx(e),{scrollY:n}=window;return Object.assign(t,{top:t.top+n,bottom:t.bottom+n})}function Xx(){let e=document.documentElement.clientWidth||document.body.clientWidth;return{top:0,right:e,bottom:window.innerHeight,left:0,width:e,height:window.innerHeight}}function dF(){let e=Xx();return Object.assign(e,{top:window.scrollY,bottom:window.scrollY+e.height})}var hF=Tee;function Tee(e,t){for(var n={},r=Object.keys(e),i=r.length,a=0;a<i;a++){var u=r[a];n[u]=t(e[u],u,e)}return n}function Zx(e,t){return hF(e,r=>{let i=r instanceof HTMLElement?r:r.current;return i?t(i):null})}var yF=N(Oe());var gF=N(sh()),vF=N(Oe());function qg(e=100){let[t,n]=(0,vF.useState)(0),r=(0,gF.throttle)(()=>{n(i=>i+1)},e,{trailing:!0});return Object.assign(r,{counter:t})}function Jx(){let e=qg();return(0,yF.useEffect)(()=>(e(),window.addEventListener("resize",e),window.addEventListener("scroll",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}),[]),e}function pi(e,t){let n=Jx(),r=Zx(e,i=>pF(i));return t(r,dF(),n)}function jg(e,t,n,{margin:r=0}={}){return e==null?{...n,left:-1024}:n.left+e.width<=t.right-r?n:{...n,left:t.right-e.width-r}}var di=te(Tm)`
|
|
139
138
|
position: absolute;
|
|
140
139
|
z-index: 1000;
|
|
141
140
|
border: 1px solid var(--table-border-color);
|
|
@@ -161,13 +160,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
161
160
|
* even if we did, it looks better this way.
|
|
162
161
|
*/
|
|
163
162
|
/* transition: left 100ms, top 100ms; */
|
|
164
|
-
`;var
|
|
163
|
+
`;var EF=te(di)`
|
|
165
164
|
padding: 1em;
|
|
166
165
|
width: 24em;
|
|
167
|
-
`,
|
|
166
|
+
`,bF=te("div")`
|
|
168
167
|
display: flex;
|
|
169
168
|
gap: 0.5em;
|
|
170
|
-
`,
|
|
169
|
+
`,xF=te("input")`
|
|
171
170
|
flex: 1 1 auto;
|
|
172
171
|
padding: 0.5em 0.75em;
|
|
173
172
|
border-radius: 0.25em;
|
|
@@ -177,7 +176,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
177
176
|
&:focus {
|
|
178
177
|
outline: 2px solid var(--blue-200);
|
|
179
178
|
}
|
|
180
|
-
`;var
|
|
179
|
+
`;var DF=te(Tm)`
|
|
181
180
|
border: 1px solid var(--shade-300); /* shade-300 */
|
|
182
181
|
border-radius: 0.5em;
|
|
183
182
|
color: rgb(39 39 42); /* shade-800 */
|
|
@@ -193,9 +192,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
193
192
|
*/
|
|
194
193
|
outline: 2px solid var(--select-editor-color) !important;
|
|
195
194
|
}
|
|
196
|
-
`;var
|
|
195
|
+
`;var CF=te("div")`
|
|
197
196
|
padding: 2em;
|
|
198
|
-
`,
|
|
197
|
+
`,wF=te(DF)`
|
|
199
198
|
/**
|
|
200
199
|
* We use this to make sure the top of the container is rounded even though
|
|
201
200
|
* the toolbar inside is square. We keep the toolbar square so that as the
|
|
@@ -216,7 +215,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
216
215
|
overflow-y: clip;
|
|
217
216
|
display: flex;
|
|
218
217
|
flex-direction: column;
|
|
219
|
-
`;var
|
|
218
|
+
`;var AF=te(di)`
|
|
220
219
|
position: absolute;
|
|
221
220
|
padding-top: 0.5em;
|
|
222
221
|
padding-bottom: 0.5em;
|
|
@@ -225,7 +224,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
225
224
|
* Prevent clicks from stealing focus from the editor
|
|
226
225
|
*/
|
|
227
226
|
user-select: none;
|
|
228
|
-
`,
|
|
227
|
+
`,SF=te("div")`
|
|
229
228
|
display: flex;
|
|
230
229
|
z-index: 10;
|
|
231
230
|
padding: 0 1em 0 1.5em;
|
|
@@ -264,12 +263,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
264
263
|
&:hover {
|
|
265
264
|
background: var(--blue-50);
|
|
266
265
|
}
|
|
267
|
-
`,
|
|
266
|
+
`,TF=te("div")`
|
|
268
267
|
height: 1px;
|
|
269
268
|
background: var(--shade-200);
|
|
270
269
|
margin-top: 0.25em;
|
|
271
270
|
margin-bottom: 0.25em;
|
|
272
|
-
`;var
|
|
271
|
+
`;var kF=te("div")`
|
|
273
272
|
/**
|
|
274
273
|
* This flex rule applies to the "display: flex;" of the parent container.
|
|
275
274
|
* Ensures the toolbar does not shrink or grow vertically.
|
|
@@ -308,22 +307,22 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
308
307
|
3em + 1px
|
|
309
308
|
); // $ToolbarDivider height + border-bottom of 1px above
|
|
310
309
|
overflow: hidden;
|
|
311
|
-
`,
|
|
310
|
+
`,BF=te("div")`
|
|
312
311
|
display: inline-block;
|
|
313
312
|
height: calc(
|
|
314
313
|
3em + 1px
|
|
315
314
|
); // $ToolbarDivider height + border-bottom of 1px above
|
|
316
|
-
`,
|
|
315
|
+
`,OF=te("div")`
|
|
317
316
|
display: inline-block;
|
|
318
317
|
height: 3em;
|
|
319
318
|
padding: 0 0.375em;
|
|
320
|
-
`,
|
|
319
|
+
`,MF=te("div")`
|
|
321
320
|
display: inline-block;
|
|
322
321
|
background: var(--shade-300);
|
|
323
322
|
opacity: 50%;
|
|
324
323
|
width: 1px;
|
|
325
324
|
height: 3em;
|
|
326
|
-
`,
|
|
325
|
+
`,RF=te("div")`
|
|
327
326
|
box-sizing: border-box;
|
|
328
327
|
position: relative;
|
|
329
328
|
display: inline-block;
|
|
@@ -371,7 +370,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
371
370
|
margin-left: -0.25em;
|
|
372
371
|
opacity: 0.375;
|
|
373
372
|
}
|
|
374
|
-
`;var
|
|
373
|
+
`;var FF=N(Oe());var Mi=N(Z());function _F({editor:e,item:t,close:n,dest:r}){let i=Xn("menu"),a=(0,FF.useCallback)(()=>{if(t.Component){let u=t.Component;i.open(()=>(0,Mi.jsx)(u,{dest:r,close:i.close}))}else t.action&&(t.action(e),W.focus(e),n())},[e,t]);return(0,Mi.jsx)(Mi.Fragment,{children:(0,Mi.jsxs)(SF,{onClick:a,children:[(0,Mi.jsx)("div",{className:"--icon",children:(0,Mi.jsx)(t.icon,{})}),(0,Mi.jsx)("div",{className:"--title",children:t.title}),(0,Mi.jsx)("div",{className:"--hotkey",children:t.hotkey?Hg(t.hotkey):void 0})]})})}var $a=N(Z());function Vg({dest:e,items:t,close:n}){let r=Se(),i=(0,zF.useRef)(null),a=pi({src:i,dest:e},({dest:u})=>({left:u.left-8,top:u.top+u.height}));return(0,$a.jsxs)($a.Fragment,{children:[(0,$a.jsx)(eu,{close:n}),(0,$a.jsx)(AF,{ref:i,style:a,children:t.map((u,s)=>u==="divider"?(0,$a.jsx)(TF,{},s):u.show&&!u.show(r)?null:(0,$a.jsx)(_F,{editor:r,item:u,close:n,dest:e},s))})]})}var tD=N(Oe());var $g=N(Z());function eD(e){return e.getBoundingClientRect()}var kee=te("div")`
|
|
375
374
|
position: fixed;
|
|
376
375
|
z-index: 10;
|
|
377
376
|
-webkit-font-smoothing: antialiased;
|
|
@@ -387,12 +386,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
387
386
|
background: var(--shade-700);
|
|
388
387
|
border-radius: 0.25em;
|
|
389
388
|
white-space: nowrap;
|
|
390
|
-
`,
|
|
389
|
+
`,Bee=te("span")`
|
|
391
390
|
margin-left: 0.75em;
|
|
392
391
|
font-size: 0.875em;
|
|
393
392
|
font-weight: 500;
|
|
394
393
|
color: var(--shade-400);
|
|
395
|
-
`;function
|
|
394
|
+
`;function LF({title:e,hotkey:t,dest:n}){let r=eD(n);return(0,$g.jsxs)(kee,{style:{left:r.left,top:`calc(${r.top}px - 2em)`},children:[e,t?(0,$g.jsx)(Bee,{children:t}):null]})}var IF=N(Z()),Oee=te("span")`
|
|
396
395
|
position: fixed;
|
|
397
396
|
z-index: 10;
|
|
398
397
|
width: 0;
|
|
@@ -400,7 +399,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
400
399
|
border-left: 0.375em solid transparent;
|
|
401
400
|
border-right: 0.375em solid transparent;
|
|
402
401
|
border-top: 0.375em solid var(--shade-700);
|
|
403
|
-
`;function
|
|
402
|
+
`;function PF({dest:e}){let t=eD(e);return(0,IF.jsx)(Oee,{style:{left:`calc(${t.left+t.width/2}px - 0.375em)`,top:`calc(${t.top}px - 0.5em)`}})}var nD=N(Z());function Ri({title:e,hotkey:t},n=[]){let r=Xn("tooltip-label"),i=Xn("tooltip-triangle"),a=(0,tD.useCallback)(s=>{let c=s.currentTarget;e!==void 0&&(r.open(()=>(0,nD.jsx)(LF,{title:e,hotkey:typeof t=="function"?t():t,dest:c})),i.open(()=>(0,nD.jsx)(PF,{dest:c})))},n),u=(0,tD.useCallback)(()=>{r.close(),i.close()},n);return{onMouseEnter:a,onMouseLeave:u}}var aa=N(Oe());var Mee={ja:{bold:"\u592A\u5B57",italic:"\u659C\u4F53",strike:"\u53D6\u308A\u6D88\u3057\u7DDA",inlineCode:"\u30A4\u30F3\u30E9\u30A4\u30F3\u30B3\u30FC\u30C9",underline:"\u4E0B\u7DDA",increaseDepth:"\u968E\u5C64\u3092\u6DF1\u304F\u3059\u308B",decreaseDepth:"\u968E\u5C64\u3092\u6D45\u304F\u3059\u308B",heading1:"\u898B\u51FA\u30571",heading2:"\u898B\u51FA\u30572",heading3:"\u898B\u51FA\u30573",paragraph:"\u6BB5\u843D",paragraphStyle:"\u6BB5\u843D\u30B9\u30BF\u30A4\u30EB",bulletList:"\u7B87\u6761\u66F8\u304D",numberedList:"\u756A\u53F7\u4ED8\u304D\u30EA\u30B9\u30C8",checkList:"\u30C1\u30A7\u30C3\u30AF\u30EA\u30B9\u30C8",list:"\u30EA\u30B9\u30C8",linkUrl:"\u30EA\u30F3\u30AF\u306EURL",tooltipText:"\u30C4\u30FC\u30EB\u30C1\u30C3\u30D7\u30C6\u30AD\u30B9\u30C8",tooltipHint:"\u30DE\u30A6\u30B9\u30DB\u30D0\u30FC\u6642\u306B\u8868\u793A\u3055\u308C\u308B\u30C4\u30FC\u30EB\u30C1\u30C3\u30D7",apply:"\u9069\u7528",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",insertLink:"\u30EA\u30F3\u30AF\u306E\u633F\u5165",quote:"\u5F15\u7528",insertTable:"\u8868\u306E\u633F\u5165",insertImage:"\u753B\u50CF\u306E\u633F\u5165",insert:"\u633F\u5165"},en:{bold:"Bold",italic:"Italic",strike:"Strikethrough",inlineCode:"Inline Code",underline:"Underline",increaseDepth:"Increase Depth",decreaseDepth:"Decrease Depth",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",paragraph:"Paragraph",paragraphStyle:"Paragraph Style",bulletList:"Bullet List",numberedList:"Numbered List",checkList:"Check List",list:"List",linkUrl:"Link URL",tooltipText:"Tooltip Text",tooltipHint:"Tooltip shown on mouse hover",apply:"Apply",cancel:"Cancel",insertLink:"Insert Link",quote:"Quote",insertTable:"Insert Table",insertImage:"Insert Image",insert:"Insert"}},ct=e=>{let t=window.navigator.language.split("-")[0];return Mee[t==="ja"?"ja":"en"][e]};var Fm=te("div")`
|
|
404
403
|
margin: 0.5em 0;
|
|
405
404
|
&:first-of-type {
|
|
406
405
|
margin-top: 0;
|
|
@@ -408,15 +407,15 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
408
407
|
&:last-of-type {
|
|
409
408
|
margin-bottom: 0;
|
|
410
409
|
}
|
|
411
|
-
`,
|
|
410
|
+
`,rD=te("div")`
|
|
412
411
|
font-size: 0.9375em;
|
|
413
412
|
margin-bottom: 0.25em;
|
|
414
413
|
color: var(--shade-700);
|
|
415
|
-
`,
|
|
414
|
+
`,NF=te("div")`
|
|
416
415
|
font-size: 0.875em;
|
|
417
416
|
margin-top: 0.25em;
|
|
418
417
|
color: var(--shade-500);
|
|
419
|
-
`,
|
|
418
|
+
`,UF=te("input")`
|
|
420
419
|
box-sizing: border-box;
|
|
421
420
|
width: 100%;
|
|
422
421
|
height: 6em;
|
|
@@ -429,7 +428,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
429
428
|
&:focus {
|
|
430
429
|
outline: 2px solid var(--blue-200);
|
|
431
430
|
}
|
|
432
|
-
`,
|
|
431
|
+
`,HF=te("input")`
|
|
433
432
|
box-sizing: border-box;
|
|
434
433
|
width: 100%;
|
|
435
434
|
padding: 0.5em 0.75em;
|
|
@@ -440,7 +439,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
440
439
|
&:focus {
|
|
441
440
|
outline: 2px solid var(--blue-200);
|
|
442
441
|
}
|
|
443
|
-
`,
|
|
442
|
+
`,qF=te("div")`
|
|
444
443
|
/* Center vertically and horizontally */
|
|
445
444
|
display: flex;
|
|
446
445
|
align-items: center;
|
|
@@ -454,7 +453,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
454
453
|
font-size: 1.25em;
|
|
455
454
|
stroke-width: 2px;
|
|
456
455
|
}
|
|
457
|
-
`,
|
|
456
|
+
`,jF=te(qF)`
|
|
458
457
|
color: var(--blue-50);
|
|
459
458
|
background: var(--blue-500);
|
|
460
459
|
outline: 0px solid white;
|
|
@@ -466,7 +465,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
466
465
|
svg {
|
|
467
466
|
color: var(--blue-200);
|
|
468
467
|
}
|
|
469
|
-
`,
|
|
468
|
+
`,VF=te(qF)`
|
|
470
469
|
color: var(--shade-500);
|
|
471
470
|
background: var(--shade-200);
|
|
472
471
|
outline: 0px solid white;
|
|
@@ -478,11 +477,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
478
477
|
svg {
|
|
479
478
|
color: var(--shade-400);
|
|
480
479
|
}
|
|
481
|
-
`;var
|
|
480
|
+
`;var Zn=N(Z()),Ree=te(di)`
|
|
482
481
|
position: absolute;
|
|
483
482
|
width: 20em;
|
|
484
483
|
padding: 1em;
|
|
485
|
-
`;function
|
|
484
|
+
`;function $F({destAnchor:e,destStartEdge:t,element:n}){let r=Xn("dialog"),i=pi({destAnchor:e,destStartEdge:t},({destAnchor:A,destStartEdge:O})=>({left:O.left,top:A.top+A.height})),a=Se(),[u,s]=(0,aa.useState)(n.href),[c,f]=(0,aa.useState)(n.title||""),p=(0,aa.useRef)({href:u,title:c});p.current={href:u,title:c};let h=(0,aa.useCallback)(A=>{s(A.target.value)},[]),g=(0,aa.useCallback)(A=>{f(A.target.value)},[]),d=(0,aa.useCallback)(()=>{r.open(()=>(0,Zn.jsx)(Gg,{destAnchor:e,destStartEdge:t,element:n}))},[e,t,n]),b=(0,aa.useCallback)(()=>{let{href:A,title:O}=p.current;a.anchor.editLink({href:A,title:O},{at:n}),d()},[d]);return(0,Zn.jsxs)(Ree,{contentEditable:!1,style:i,children:[(0,Zn.jsxs)(Fm,{children:[(0,Zn.jsx)(rD,{children:ct("linkUrl")}),(0,Zn.jsx)(UF,{as:"textarea",value:u,onChange:h})]}),(0,Zn.jsxs)(Fm,{children:[(0,Zn.jsx)(rD,{children:ct("tooltipText")}),(0,Zn.jsx)(HF,{type:"text",value:c,onChange:g}),(0,Zn.jsx)(NF,{children:ct("tooltipHint")})]}),(0,Zn.jsx)(Fm,{children:(0,Zn.jsx)(jF,{onClick:b,children:ct("apply")})}),(0,Zn.jsx)(Fm,{children:(0,Zn.jsx)(VF,{onClick:d,children:ct("cancel")})})]})}var tl=N(Z()),GF=e=>(0,tl.jsx)(rt,{...e,children:(0,tl.jsx)("path",{d:"M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6M11 13l9-9M15 4h5v5"})}),WF=e=>(0,tl.jsx)(rt,{...e,children:(0,tl.jsx)("path",{d:"m9 15 3-3m2-2 1-1M11 6l.463-.536a5 5 0 0 1 7.071 7.072L18 13M3 3l18 18M13 18l-.397.534a5.068 5.068 0 0 1-7.127 0 4.972 4.972 0 0 1 0-7.071L6 11"})}),KF=e=>(0,tl.jsx)(rt,{...e,children:(0,tl.jsx)("path",{d:"M4 20h4L18.5 9.5a1.5 1.5 0 0 0-4-4L4 16v4M13.5 6.5l4 4"})});var Jn=N(Z()),Fee=te(di)`
|
|
486
485
|
position: absolute;
|
|
487
486
|
display: flex;
|
|
488
487
|
width: 20em;
|
|
@@ -566,10 +565,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
566
565
|
height: 1.25em;
|
|
567
566
|
stroke-width: 1.5;
|
|
568
567
|
}
|
|
569
|
-
`;function
|
|
568
|
+
`;function _ee(e){try{let t=new URL(e);return{hostname:t.hostname,pathname:t.pathname}}catch{return{hostname:"",pathname:""}}}function Gg({destAnchor:e,destStartEdge:t,element:n}){let r=Xn("dialog"),i=Se(),a=_ee(n.href),u=pi({destAnchor:e,destStartEdge:t},({destAnchor:h,destStartEdge:g})=>({left:g.left,top:h.top+h.height})),s=Ri({title:"\u30EA\u30F3\u30AF\u3092\u524A\u9664"}),c=Ri({title:"\u30EA\u30F3\u30AF\u3092\u7DE8\u96C6"}),f=(0,iD.useCallback)(()=>{i.anchor.removeLink({at:n})},[i]),p=(0,iD.useCallback)(()=>{c.onMouseLeave(),r.open(()=>(0,Jn.jsx)($F,{destAnchor:e,destStartEdge:t,element:n}))},[e,t,n]);return(0,Jn.jsxs)(Fee,{contentEditable:!1,style:u,children:[(0,Jn.jsxs)("a",{className:"--link",href:n.href,target:"_blank",rel:"noreferrer",children:[(0,Jn.jsx)(GF,{}),(0,Jn.jsxs)("div",{className:"--url",children:[(0,Jn.jsx)("div",{className:"--hostname",children:a.hostname}),a.pathname===""||a.pathname==="/"?null:(0,Jn.jsx)("div",{className:"--pathname",children:a.pathname}),n.title==null||n.title===""?null:(0,Jn.jsx)("div",{className:"--tooltip",children:n.title})]})]}),(0,Jn.jsxs)("span",{className:"--icons",children:[(0,Jn.jsx)("span",{className:"--icon",onClick:f,onMouseEnter:s.onMouseEnter,onMouseLeave:s.onMouseLeave,children:(0,Jn.jsx)(WF,{})}),(0,Jn.jsx)("span",{className:"--icon",onMouseEnter:c.onMouseEnter,onMouseLeave:c.onMouseLeave,onClick:p,children:(0,Jn.jsx)(KF,{})})]})]})}var nl=N(Z());function YF({element:e,attributes:t,children:n}){let r=(0,_m.useRef)(null),i=(0,_m.useRef)(null),a=ci(),u=Xn("dialog");return(0,_m.useEffect)(()=>{let s=i.current,c=r.current;!s||!c||(a?setTimeout(()=>{u.open(()=>(0,nl.jsx)(Gg,{destAnchor:s,destStartEdge:c,element:e}))}):u.close())},[a,e]),(0,nl.jsxs)(lF,{className:Zt({"--selected":a}),href:e.href,target:e.target,...t,ref:i,children:[(0,nl.jsx)(Yx,{ref:r,contentEditable:!1}),(0,nl.jsx)("span",{children:n}),(0,nl.jsx)(Yx,{contentEditable:!1})]})}var XF=N(Z()),QF=Ye((e,t,{createPolicy:n})=>(e.anchor=tF(e),n({name:"anchor",editor:{isInline(r){if(r.type==="anchor")return!0},normalizeNode:be(nF,e)},editableProps:{onPaste:be(XR,e),renderElement:({element:r,attributes:i,children:a})=>{if(r.type==="anchor")return(0,XF.jsx)(YF,{element:r,attributes:i,children:a})}}})));function aD(e,t,n){if(!t||!n||F.equals(t[1],n[1]))return!0;let r=Qe(e,a=>me.isElement(a)&&e.isMaster(a),{at:t[1]}),i=Qe(e,a=>me.isElement(a)&&e.isMaster(a),{at:n[1]});return!!(!r&&!i||r&&i&&F.equals(r[1],i[1]))}var ZF=Ye(e=>(e.atomicDelete=!0,{name:"atomic-delete",editor:{deleteBackward(){if(e.selection==null)return!1;let t=y.node(e,e.selection),n=y.previous(e,{mode:"lowest"});return aD(e,t,n)?!1:(_.move(e,{unit:"character",reverse:!0}),!0)},deleteForward(){if(e.selection==null)return!1;let t=y.node(e,e.selection),n=y.next(e,{mode:"lowest"});return aD(e,t,n)?!1:(_.move(e,{unit:"character"}),!0)}}}));function zee(e){}function JF(e){return{noop:be(zee,e)}}function e_(e,t){return!1}var t_=te("div")`
|
|
570
569
|
display: block;
|
|
571
570
|
margin: 1em 0;
|
|
572
|
-
`;var
|
|
571
|
+
`;var pD=N(Oe());var n_=e=>{let t,n=new Set,r=(p,h)=>{let g=typeof p=="function"?p(t):p;if(!Object.is(g,t)){let d=t;t=h??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(b=>b(t,d))}},i=()=>t,c={setState:r,getState:i,getInitialState:()=>f,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},f=t=e(r,i,c);return c},r_=e=>e?n_(e):n_;var d_=N(Oe(),1),h_=N(f_(),1),{useDebugValue:Jee}=d_.default,{useSyncExternalStoreWithSelector:ete}=h_.default,m_=!1,tte=e=>e;function nte(e,t=tte,n){(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&n&&!m_&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),m_=!0);let r=ete(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Jee(r),r}var p_=e=>{(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t=typeof e=="function"?r_(e):e,n=(r,i)=>nte(t,r,i);return Object.assign(n,t),n},rte=e=>e?p_(e):p_,g_=e=>((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),rte(e));var v_=({uploads:e={}}={uploads:{}})=>g_((t,n)=>({uploads:e,setUpload(r,i){t(a=>({uploads:{...a.uploads,[r]:i}}))},getUpload(r){let i=n().uploads[r];if(i===void 0)throw new Error(`Expected origin with id "${r}" but could not find it`);return i}}));function y_(e){let n=Se().upload.useUploadStore(r=>r.uploads[e]);return e.includes("/")?{status:"success",url:e}:n}function zm(e,t,n){e.upload.useUploadStore.getState().setUpload(t,n)}var E_=te("span")`
|
|
573
572
|
/**
|
|
574
573
|
* In order for this container to wrap tightly (without space), it needs to be
|
|
575
574
|
* an "inline-block". If it's just an "inline" we end up with spacing
|
|
@@ -581,7 +580,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
581
580
|
* so that we can place UI controls for the image in and around the image.
|
|
582
581
|
*/
|
|
583
582
|
position: relative;
|
|
584
|
-
`,
|
|
583
|
+
`,b_=te("img")`
|
|
585
584
|
/**
|
|
586
585
|
* TODO:
|
|
587
586
|
*
|
|
@@ -643,7 +642,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
643
642
|
.--dragging > & {
|
|
644
643
|
transition: border-radius 250ms;
|
|
645
644
|
}
|
|
646
|
-
`;var
|
|
645
|
+
`;var sD=N(Oe());var x_=N(Oe());function D_(){let e=qg();return(0,x_.useEffect)(()=>(e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}),[]),e}var C_=te("span")`
|
|
647
646
|
position: absolute;
|
|
648
647
|
display: block;
|
|
649
648
|
/**
|
|
@@ -670,7 +669,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
670
669
|
/* background: green; */
|
|
671
670
|
width: 1.25em;
|
|
672
671
|
}
|
|
673
|
-
`,
|
|
672
|
+
`,w_=te("span")`
|
|
674
673
|
position: absolute;
|
|
675
674
|
display: block;
|
|
676
675
|
background: var(--select-color);
|
|
@@ -763,7 +762,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
763
762
|
.--small > & > .--bar-right {
|
|
764
763
|
left: calc(50% + 1px);
|
|
765
764
|
}
|
|
766
|
-
`;function
|
|
765
|
+
`;function uD({value:e,min:t,max:n}){if(!(n>=t))throw new Error("Expected max >= min but is not");return Math.max(t,Math.min(n,e))}function Kg(e,t){e=Math.round(e);let n=t.width/t.height;return{width:e,height:Math.round(e/n)}}function ite(e,t){e=Math.round(e);let n=t.width/t.height;return{width:Math.round(e*n),height:e}}function lD(e,t){let n=e.width/e.height,r=t.width/t.height;if(n>=r){if(e.width>t.width)return Kg(t.width,e)}else if(e.height>t.width)return ite(t.height,e);return e}function rl(e,t,n){switch(n.type){case"bounds":return lD(t,n);case"scale":return{width:Math.round(t.width*n.scale),height:Math.round(t.height*n.scale)}}}function A_(e){let t=W.toDOMNode(e,e),n=getComputedStyle(t),r=parseInt(n.paddingLeft)+parseInt(n.paddingRight);return t.clientWidth-r}var oa=N(Z());function ate(e,t){let r=W.toDOMNode(e,t).querySelector("img");if(!r)throw new Error("Image Element could not be found but should exist");return r.getBoundingClientRect()}function S_({element:e,srcSize:t,size:n,setSize:r,isDragging:i,setIsDragging:a}){let u=Se();D_();let s=A_(u),c=n.width,f=Math.min(t.width,s),p=Math.min(12,t.width),h=(0,sD.useCallback)(b=>{Va(b),a(!0);let A=b.clientX,E=ate(u,e).width,D={...n},C=L=>{let B=uD({value:E+L.clientX-A,min:p,max:f});D=Kg(B,t),r(D)},M=()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",M);let L=W.findPath(u,e),B={width:D.width,height:D.height};r(B),_.setNodes(u,B,{at:L}),a(!1)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",M)},[t.width,t.height,n.width,e]),g=(0,sD.useCallback)(b=>{Va(b),a(!0);let A=b.changedTouches[0].clientX,O=n.width,E={...n},D=M=>{let L=M.changedTouches[0],B=uD({value:O+L.clientX-A,min:p,max:f});E=Kg(B,t),r(E)},C=()=>{document.removeEventListener("touchmove",D),document.removeEventListener("touchend",C);let M=W.findPath(u,e);_.setNodes(u,{width:E.width,height:E.height},{at:M}),a(!1)};document.addEventListener("touchmove",D),document.addEventListener("touchend",C)},[t.width,t.height,n.width,e]),d=Zt({"--center":c<f&&c>p,"--left":c>=f&&c>p,"--right":c<=p&&c<f,"--dragging":i,"--small":c<=64||n.height<=64});return(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsx)(C_,{className:d,onMouseDown:h,onTouchStart:g,children:(0,oa.jsxs)(w_,{children:[(0,oa.jsx)("span",{className:"--bar --bar-left"}),(0,oa.jsx)("span",{className:"--bar --bar-center"}),(0,oa.jsx)("span",{className:"--bar --bar-right"})]})})})}var T_=te("span")`
|
|
767
766
|
position: absolute;
|
|
768
767
|
/**
|
|
769
768
|
* The status appears with a 1px gap from the outline.
|
|
@@ -785,7 +784,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
785
784
|
|
|
786
785
|
/* force numbers to be monospaced for better alignment */
|
|
787
786
|
font-variant-numeric: tabular-nums;
|
|
788
|
-
`;var
|
|
787
|
+
`;var B_=N(Z());function k_({size:e}){return(0,B_.jsxs)(T_,{children:[e.width," \xD7 ",e.height]})}var O_=te("span")`
|
|
789
788
|
position: absolute;
|
|
790
789
|
/**
|
|
791
790
|
* On top of the image +1 for space inside outline, +2 for outline,
|
|
@@ -816,7 +815,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
816
815
|
}
|
|
817
816
|
display: flex;
|
|
818
817
|
gap: 0.25em;
|
|
819
|
-
`;var
|
|
818
|
+
`;var Yg=te("span")`
|
|
820
819
|
/* font-size: 0.75em; */
|
|
821
820
|
border-radius: 0.5em;
|
|
822
821
|
display: flex;
|
|
@@ -829,7 +828,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
829
828
|
* see the border of the buttons.
|
|
830
829
|
*/
|
|
831
830
|
outline: 1px solid white;
|
|
832
|
-
`,
|
|
831
|
+
`,tc=te("span")`
|
|
833
832
|
font-size: 0.75em;
|
|
834
833
|
line-height: 2em;
|
|
835
834
|
padding: 0 0.625em;
|
|
@@ -883,16 +882,16 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
883
882
|
font-size: 1.33em;
|
|
884
883
|
line-height: 1em;
|
|
885
884
|
}
|
|
886
|
-
`;var
|
|
885
|
+
`;var M_=N(Oe());var F_=N(Z());function R_({element:e,preset:t,size:n,setSize:r,srcSize:i}){let a=Se(),u=rl(n,i,t),s=Ri({title:t.title,hotkey:`${u.width}x${u.height}`}),c=(0,M_.useCallback)(()=>{let d=W.findPath(a,e),b=rl(n,i,t);r(b),_.setNodes(a,b,{at:d})},[e,t,n,i]),p=!(t.type==="scale"?!0:t.width<=i.width||t.height<=i.height),h=n.width===u.width&&n.height===u.height,g=Zt({"--disabled":p,"--selected":!p&&h});return(0,F_.jsx)(tc,{className:g,onClick:p?void 0:c,onMouseEnter:s.onMouseEnter,onMouseLeave:s.onMouseLeave,children:t.name})}var cD=N(Z());function __({element:e,size:t,setSize:n,srcSize:r,presets:i}){return(0,cD.jsx)(Yg,{children:i.map((a,u)=>(0,cD.jsx)(R_,{element:e,preset:a,size:t,setSize:n,srcSize:r},u))})}var I_=N(Oe());var tu=N(Z());var z_=e=>(0,tu.jsxs)(rt,{...e,children:[(0,tu.jsx)("rect",{width:6,height:6,x:4,y:5,rx:1}),(0,tu.jsx)("path",{d:"M4 15h16M4 19h16"})]}),L_=e=>(0,tu.jsxs)(rt,{...e,children:[(0,tu.jsx)("rect",{width:6,height:6,x:9,y:5,rx:1}),(0,tu.jsx)("path",{d:"M4 7h1M4 11h1M19 7h1M19 11h1M4 15h16M4 19h16"})]});function P_(e,t){if(!t.width||!t.height||!t.srcWidth||!t.srcHeight)return;let n={width:t.width,height:t.height},r={width:t.srcWidth,height:t.srcHeight},i=W.findPath(e,t);y.withoutNormalizing(e,()=>{let a=rl(n,r,{name:"initial-inline-image",title:"",type:"bounds",width:24,height:24});_.setNodes(e,{type:"image-inline",...a},{at:i}),_.wrapNodes(e,{type:"paragraph",children:[]},{at:i})})}var fD=N(Z());function N_({element:e}){let t=Se(),n=Ri({title:"Inline Image",hotkey:"In a line with text"}),r=(0,I_.useCallback)(()=>{e.type==="image-block"&&P_(t,e)},[t,e]);return(0,fD.jsx)(tc,{className:e.type==="image-inline"?"--selected":"",onClick:e.type==="image-inline"?void 0:r,onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,children:(0,fD.jsx)(L_,{})})}var H_=N(Oe());function U_(e,t){if(!t.width||!t.height||!t.srcWidth||!t.srcHeight)return;let n={width:t.width,height:t.height},r={width:t.srcWidth,height:t.srcHeight},i=W.findPath(e,t);y.withoutNormalizing(e,()=>{let a=rl(n,r,{name:"initial-block-image",title:"",type:"bounds",width:320,height:320});_.setNodes(e,{type:"image-block",...a},{at:i});let u=Qe(e,A=>y.isBlock(e,A)&&A.type!=="image-block");if(!u)throw new Error("This shouldn't happen");let[s,c]=u,f=s.children,p=s.children.length,h=i.slice(-1)[0],g=f[p-1];h===p-2&&fe.isText(g)&&g.text===""&&_.removeNodes(e,{at:[...c,p-1]});let d=f[0],b=h===1&&fe.isText(d)&&d.text==="";b&&_.removeNodes(e,{at:[...c,0]}),_.liftNodes(e,{at:[...c,b?h-1:h]})})}var mD=N(Z());function q_({element:e}){let t=Se(),n=Ri({title:"Block Image",hotkey:"On a line by itself"}),r=(0,H_.useCallback)(()=>{e.type==="image-inline"&&U_(t,e)},[t,e]);return(0,mD.jsx)(tc,{className:e.type==="image-block"?"--selected":"",onClick:e.type==="image-block"?void 0:r,onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,children:(0,mD.jsx)(z_,{})})}var Lm=N(Z());function j_({element:e}){return(0,Lm.jsxs)(Yg,{children:[(0,Lm.jsx)(q_,{element:e}),(0,Lm.jsx)(N_,{element:e})]})}var Pm=N(Z());function V_({element:e,size:t,setSize:n,srcSize:r,presets:i}){return(0,Pm.jsxs)(O_,{children:[(0,Pm.jsx)(j_,{element:e}),(0,Pm.jsx)(__,{element:e,size:t,setSize:n,srcSize:r,presets:i})]})}var il=N(Z());function Qg({element:e,presets:t}){let n=y_(e.url),r=ci(),[i,a]=(0,pD.useState)(!1),[u,s]=(0,pD.useState)(e.srcWidth&&e.srcHeight&&e.width&&e.height?{width:e.width,height:e.height}:null),c=e.srcWidth&&e.srcHeight?{width:e.srcWidth,height:e.srcHeight}:null,f=r&&u&&c,p=Zt({"--selected":r,"--dragging":i,"--small":u&&(u.width<=64||u.height<=64),"--loaded":n.status==="success"});return(0,il.jsxs)(E_,{className:p,children:[(0,il.jsx)(b_,{src:n.url,width:u?.width,height:u?.height}),f?(0,il.jsx)(V_,{element:e,size:u,setSize:s,srcSize:c,presets:t}):null,i&&u?(0,il.jsx)(k_,{size:u}):null,f?(0,il.jsx)(S_,{element:e,srcSize:c,isDragging:i,setIsDragging:a,size:u,setSize:s}):null]})}var Im=N(Z());function $_({element:e,attributes:t,children:n}){let r=Se();return(0,Im.jsxs)("div",{...t,children:[(0,Im.jsx)(t_,{contentEditable:!1,children:(0,Im.jsx)(Qg,{element:e,presets:r.image.imageBlockPresets})}),n]})}var G_=te("span")`
|
|
887
886
|
display: inline;
|
|
888
|
-
`;var
|
|
887
|
+
`;var Nm=N(Z());function W_({element:e,attributes:t,children:n}){let r=Se();return(0,Nm.jsxs)("span",{...t,style:{display:"inline-block"},children:[(0,Nm.jsx)(G_,{contentEditable:!1,children:(0,Nm.jsx)(Qg,{element:e,presets:r.image.imageInlinePresets})}),n]})}var dD=N(Z());function K_({element:e,attributes:t,children:n}){switch(e.type){case"image-block":return(0,dD.jsx)($_,{element:e,attributes:t,children:n});case"image-inline":return(0,dD.jsx)(W_,{element:e,attributes:t,children:n})}}var ote={maxInitialInlineImageSize:{width:64,height:64},maxInitialImageSize:{width:320,height:320},maxImageSize:{width:1024,height:1024},imageBlockPresets:[{name:"S",title:"Small",type:"bounds",width:160,height:160},{name:"M",title:"Medium",type:"bounds",width:320,height:320},{name:"L",title:"Large",type:"bounds",width:640,height:640},{name:"\u2153",title:"1/3 scale",type:"scale",scale:1/3},{name:"\xBD",title:"1/2 scale",type:"scale",scale:.5},{name:"Full",title:"Full size",type:"scale",scale:1}],imageInlinePresets:[{name:"16",title:"16 pixels",type:"bounds",width:16,height:16},{name:"24",title:"24 pixels",type:"bounds",width:24,height:24},{name:"32",title:"32 pixels",type:"bounds",width:32,height:32},{name:"\u2153",title:"1/3 scale",type:"scale",scale:1/3},{name:"\xBD",title:"1/2 scale",type:"scale",scale:.5},{name:"Full",title:"Full size",type:"scale",scale:1}]},Y_=Ye((e,t,{createPolicy:n})=>{let r={...ote,...t.image};return e.image={...JF(e),maxInitialInlineImageSize:r.maxInitialInlineImageSize,maxInitialImageSize:r.maxInitialImageSize,maxImageSize:r.maxImageSize,imageBlockPresets:r.imageBlockPresets,imageInlinePresets:r.imageInlinePresets},e.upload.onUploadImageFile=i=>{let{selection:a}=e;if(i.width<=64&&i.height<=64)_.insertNodes(e,{type:"image-inline",url:i.hashUrl,alt:i.file.name,title:i.file.name,bytes:i.file.size,width:i.width,height:i.height,srcWidth:i.width,srcHeight:i.height,children:[{text:""}]});else{let u=lD({width:i.width,height:i.height},r.maxInitialImageSize||r.maxImageSize);_.insertNodes(e,{type:"image-block",url:i.hashUrl,alt:i.file.name,title:i.file.name,bytes:i.file.size,width:u.width,height:u.height,srcWidth:i.width,srcHeight:i.height,children:[{text:""}]})}if(!a){let u=y.end(e,[]);_.select(e,u),W.focus(e)}return!0},e.upload.onUploadImageFileSuccess=i=>(e.upload.setElementTimeTraveling({url:i.hashUrl},{url:i.url}),!0),n({name:"image",editor:{isVoid:i=>{if(["image-block","image-inline"].includes(i.type))return!0},isInline:i=>{if(i.type==="image-inline")return!0},normalizeNode:be(e_,e)},editableProps:{renderElement:K_}})});var Q_=te("blockquote")`
|
|
889
888
|
position: relative;
|
|
890
889
|
margin-top: 1em;
|
|
891
890
|
margin-bottom: 1em;
|
|
892
891
|
margin-left: 0;
|
|
893
892
|
border-left: 0.25em solid rgba(0, 0, 0, 0.075);
|
|
894
893
|
padding-left: 1.5em;
|
|
895
|
-
`;var
|
|
894
|
+
`;var J_=N(Z());function X_(e){return me.isElement(e)&&(e.type==="paragraph"||e.type==="table"||e.type==="horizontal-rule"||e.type==="task-list-item"||e.type==="unordered-list-item"||e.type==="ordered-list-item"||e.type==="heading")}var Z_=Ye(e=>(e.supportsBlockQuote=!0,e.blockQuotePlugin={indent:()=>{_.wrapNodes(e,{type:"block-quote",children:[]},{match:X_})},outdent:()=>{_.liftNodes(e,{match:(t,n)=>X_(t)&&n.length>1})},isActive:()=>{let[t]=y.nodes(e,{match:n=>me.isElement(n)&&n.type==="block-quote"});return!!t}},{name:"block-quote",editor:{normalizeNode(t){let[n,r]=t;return!me.isElement(n)||n.type!=="block-quote"?!1:Jo(e,[n,r],(i,a)=>(me.isElement(i[0])&&me.isElement(a[0])&&i[0].type==="block-quote"&&a[0].type==="block-quote"&&_.mergeNodes(e,{at:a[1]}),!0))}},editableProps:{renderElement:({element:t,attributes:n,children:r})=>{if(t.type==="block-quote")return(0,J_.jsx)(Q_,{...n,children:r})},onKeyDown:zn({"super+.":e.blockQuotePlugin.indent,"super+,":e.blockQuotePlugin.outdent})}}));function e6(e){return me.isElement(e)&&e.type==="paragraph"}function t6(e,t){return Jo(e,t,(n,r)=>!e6(n[0])||!e6(r[0])?!1:n[0].__collapsible&&r[0].__collapsible?(_.removeNodes(e,{at:n[1]}),!0):!1)}function hD(e,t){return me.isElement(t)?e.isVoid(t)||e.isMaster(t):!1}function n6(e,t){return hD(e,t[0])?Jo(e,t,(n,r)=>!hD(e,n[0])||!hD(e,r[0])?!1:(_.insertNodes(e,{type:"paragraph",__collapsible:!0,children:[{text:""}]},{at:r[1]}),!0)):!1}function r6(e,t){let[n,r]=t;return me.isElement(n)?!!(n6(e,[n,r])||t6(e,[n,r])):!1}var i6=te("p")`
|
|
896
895
|
padding: 0;
|
|
897
896
|
margin: 1em 0;
|
|
898
897
|
&:first-child {
|
|
@@ -922,37 +921,37 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
922
921
|
}
|
|
923
922
|
border-radius: 8px;
|
|
924
923
|
}
|
|
925
|
-
`;function
|
|
924
|
+
`;function a6(e){return e.children.length===1&&ce.string(e.children[0]).length===0}var u6=N(Z());function o6({element:e,attributes:t,children:n}){let r=ci(),i=a6(e);return(0,u6.jsx)(i6,{...t,className:Zt({"--selected":r,"--empty":i,"--collapsible":!!e.__collapsible}),children:n})}var s6=N(Z()),l6=Ye(e=>{let{insertBreak:t}=e,n=(r,i)=>{let a=r.split(`
|
|
926
925
|
|
|
927
|
-
`).filter(
|
|
926
|
+
`).filter(s=>s.trim()),u=a.map(s=>({type:"paragraph",children:[{text:s.trim()}]}));return y.withoutNormalizing(e,()=>{_.removeNodes(e,{at:i}),_.insertNodes(e,u,{at:i})}),a};if(e.insertBreak=()=>{let{selection:r}=e;if(r&&r.anchor.path[0]===r.focus.path[0]){let i=y.string(e,[r.anchor.path[0]]),a=r.anchor.offset;if(i.slice(0,a).match(/\n$/))t();else if(i.includes(`
|
|
928
927
|
|
|
929
|
-
`)){let
|
|
930
|
-
`)}else t()},e.convertElement.addConvertElementType("paragraph"),e.collapsibleParagraph={convertParagraph:()=>{e.convertElement.convertElements(()=>!1,{type:"paragraph"},!1)}},!e.normalizeAfterDelete)throw new Error("The collapsible-paragraph-plugin has a dependency on the normalize-after-delete plugin. Please add that plugin before this one.");return{name:"collapsible-paragraph",editor:{normalizeNode:
|
|
928
|
+
`)){let s=[r.anchor.path[0]],c=n(i,s),f=a,p=0,h=0;for(let g=0;g<c.length;g++){if(h+c[g].length+2>a){f=a-h,p=g;break}h+=c[g].length+2}e.selection={anchor:{path:[s[0]+p,0],offset:f},focus:{path:[s[0]+p,0],offset:f}}}else e.insertText(`
|
|
929
|
+
`)}else t()},e.convertElement.addConvertElementType("paragraph"),e.collapsibleParagraph={convertParagraph:()=>{e.convertElement.convertElements(()=>!1,{type:"paragraph"},!1)}},!e.normalizeAfterDelete)throw new Error("The collapsible-paragraph-plugin has a dependency on the normalize-after-delete plugin. Please add that plugin before this one.");return{name:"collapsible-paragraph",editor:{normalizeNode:be(r6,e)},editableProps:{renderElement:({element:r,attributes:i,children:a})=>{switch(r.type){case"paragraph":return(0,s6.jsx)(o6,{element:r,attributes:i,children:a})}},onKeyDown:zn({"super+0":e.collapsibleParagraph.convertParagraph})}}});function c6(e,t){Array.isArray(t)?e.convertElement.convertElementTypes.push(...t):e.convertElement.convertElementTypes.push(t)}function f6(e,t,n,r){let i=Array.from(y.nodes(e,{match:u=>me.isElement(u)&&e.convertElement.isConvertibleElement(u)}));return i.length===0?!1:(r&&i.every(u=>t(u[0]))?y.withoutNormalizing(e,()=>{for(let u of i)Mm(e,{type:"paragraph"},u[1])}):y.withoutNormalizing(e,()=>{for(let u of i)Mm(e,n,u[1])}),!0)}function m6(e,t){return e.convertElement.convertElementTypes.includes(t.type)}function p6(e){return{convertElementTypes:[],addConvertElementType:be(c6,e),isConvertibleElement:be(m6,e),convertElements:be(f6,e)}}var d6=Ye(e=>(e.convertElement=p6(e),{name:"convert-element"}));function h6(e){let t=Qe(e,"heading");if(!t||!e.selection||V.isExpanded(e.selection)||!y.isEnd(e,e.selection.anchor,t[1]))return!1;let n=F.next(t[1]);return _.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:n}),_.select(e,{anchor:y.start(e,n),focus:y.start(e,n)}),!0}function ute(e,t,n){e.convertElement.convertElements(r=>r.type==="heading"&&r.level==t,{type:"heading",level:t},n)}function lte(e,t){let[n]=y.nodes(e,{match:r=>"type"in r&&"level"in r&&r.type==="heading"&&r.level===t});return!!n}function g6(e){return{convertHeading:be(ute,e),isHeadingActive:be(lte,e)}}var nc=_g`
|
|
931
930
|
margin-top: 1em;
|
|
932
931
|
&:first-child {
|
|
933
932
|
margin-top: 0;
|
|
934
933
|
}
|
|
935
934
|
font-weight: bold;
|
|
936
|
-
`,
|
|
937
|
-
${
|
|
935
|
+
`,v6=te("h1")`
|
|
936
|
+
${nc}
|
|
938
937
|
font-size: 2.25em;
|
|
939
938
|
letter-spacing: -0.01em;
|
|
940
|
-
`,
|
|
941
|
-
${
|
|
939
|
+
`,y6=te("h2")`
|
|
940
|
+
${nc}
|
|
942
941
|
font-size: 1.5em;
|
|
943
|
-
`,
|
|
944
|
-
${
|
|
942
|
+
`,E6=te("h3")`
|
|
943
|
+
${nc}
|
|
945
944
|
font-size: 1.25em;
|
|
946
|
-
`,
|
|
947
|
-
${
|
|
945
|
+
`,b6=te("h4")`
|
|
946
|
+
${nc}
|
|
948
947
|
font-size: 1em;
|
|
949
|
-
`,
|
|
950
|
-
${
|
|
948
|
+
`,x6=te("h5")`
|
|
949
|
+
${nc}
|
|
951
950
|
font-size: 1em;
|
|
952
|
-
`,
|
|
953
|
-
${
|
|
951
|
+
`,D6=te("h6")`
|
|
952
|
+
${nc}
|
|
954
953
|
font-size: 1em;
|
|
955
|
-
`;var
|
|
954
|
+
`;var al=N(Z()),C6=Ye(e=>{e.convertElement.addConvertElementType("heading"),e.heading=g6(e);let t=zn({"super+1":zr(e.heading.convertHeading,1,!0),"super+2":zr(e.heading.convertHeading,2,!0),"super+3":zr(e.heading.convertHeading,3,!0),"super+4":zr(e.heading.convertHeading,4,!0),"super+5":zr(e.heading.convertHeading,5,!0),"super+6":zr(e.heading.convertHeading,6,!0)}),n=VR(e,{"#":zr(e.heading.convertHeading,1,!1),"##":zr(e.heading.convertHeading,2,!1),"###":zr(e.heading.convertHeading,3,!1),"####":zr(e.heading.convertHeading,4,!1),"#####":zr(e.heading.convertHeading,5,!1),"######":zr(e.heading.convertHeading,6,!1)});return{name:"heading",editor:{insertBreak:be(h6,e)},editableProps:{renderElement:({element:r,attributes:i,children:a})=>{if(r.type==="heading")switch(r.level){case 1:return(0,al.jsx)(v6,{...i,children:a});case 2:return(0,al.jsx)(y6,{...i,children:a});case 3:return(0,al.jsx)(E6,{...i,children:a});case 4:return(0,al.jsx)(b6,{...i,children:a});case 5:return(0,al.jsx)(x6,{...i,children:a});case 6:return(0,al.jsx)(D6,{...i,children:a});default:throw new Error(`Expected element.level to be 1-6 but got ${r.level}`)}},onKeyDown:r=>!!(t(r)||n(r))}}});var w6=te("hr")`
|
|
956
955
|
position: relative;
|
|
957
956
|
height: 1em;
|
|
958
957
|
/* background-color: var(--hr-color); */
|
|
@@ -982,7 +981,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
982
981
|
outline: 2px solid var(--select-color, blue);
|
|
983
982
|
}
|
|
984
983
|
}
|
|
985
|
-
`;var
|
|
984
|
+
`;var Um=N(Z());function A6({attributes:e,children:t}){let n=ci();return(0,Um.jsxs)("div",{...e,draggable:!0,children:[t,(0,Um.jsx)("div",{contentEditable:!1,children:(0,Um.jsx)(w6,{className:n?"--selected":""})})]})}function ste(e){return QR(e,{type:"horizontal-rule",children:[{text:""}]})}function S6(e){return{insertHorizontalRule:be(ste,e)}}var k6=N(Z()),T6=Ye((e,t,{createPolicy:n})=>(e.horizontalRule=S6(e),n({name:"horizontal-rule",editor:{isVoid(r){if(r.type==="horizontal-rule")return!0}},editableProps:{renderElement:r=>{if(r.element.type==="horizontal-rule")return(0,k6.jsx)(A6,{...r})},onKeyDown:zn({"super+-":e.horizontalRule.insertHorizontalRule})}})));var B6=te("code")`
|
|
986
985
|
color: var(--shade-600);
|
|
987
986
|
background-color: var(--inline-code-bgcolor);
|
|
988
987
|
border: 1px solid var(--inline-code-border-color);
|
|
@@ -1003,17 +1002,17 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1003
1002
|
*/
|
|
1004
1003
|
font-size: 0.75em;
|
|
1005
1004
|
vertical-align: baseline;
|
|
1006
|
-
`,
|
|
1005
|
+
`,gD=te("span")`
|
|
1007
1006
|
display: inline-block;
|
|
1008
1007
|
opacity: 0;
|
|
1009
1008
|
width: 1px;
|
|
1010
1009
|
overflow: hidden;
|
|
1011
|
-
`;var
|
|
1010
|
+
`;var Hm=N(Z()),O6=Ye(e=>{if(!e.marksPlugin)throw new Error("InlineCodePlugin has a dependency on the MarksPlugin but the MarksPlugin has not been added or is added after the InlineCodePlugin");return e.inlineCode={toggleInlineCode:()=>e.marksPlugin.toggleMark("code")},{name:"inline-code",editableProps:{renderLeaf:({leaf:t,children:n})=>t.code?(0,Hm.jsxs)(B6,{spellCheck:!1,children:[(0,Hm.jsx)(gD,{contentEditable:!1,children:"|"}),n,(0,Hm.jsx)(gD,{contentEditable:!1,children:"|"})]}):n,onKeyDown:zn({"mod+j":()=>e.inlineCode.toggleInlineCode()})}}});function M6(e,t){return e.convertElement.convertElements(n=>n.type==="ordered-list-item",n=>({type:"ordered-list-item",depth:"depth"in n?n.depth:0}),t)}function R6(e,t){return e.convertElement.convertElements(n=>n.type==="task-list-item",n=>({type:"task-list-item",checked:"checked"in n?n.checked:!1,depth:"depth"in n?n.depth:0}),t)}function F6(e,t){return e.convertElement.convertElements(n=>n.type==="unordered-list-item",n=>({type:"unordered-list-item",depth:"depth"in n?n.depth:0}),t)}var cte=2;function Xg(e){let t=Qe(e,Jt);return t?t[0].depth:0}function vD(e){return el(e,Jt)?Xg(e)<cte:!1}function yD(e){return el(e,Jt)?Xg(e)>0:!1}function _6(e){vD(e)&&e.list.indent()}function z6(e){yD(e)&&e.list.outdent()}function L6(e){return Ug(e,t=>({depth:t.depth+1}),{match:Jt})}function P6(e){let t=Qe(e,Jt);if(!t)return!1;let[n,r]=t;if(y.isEmpty(e,n))return n.depth>0?(_.setNodes(e,{depth:n.depth-1},{at:r}),!0):(Mm(e,{type:"paragraph"},r),!0);_.splitNodes(e,{always:!0});let i=Qe(e,Jt);return i&&i[0].type==="task-list-item"&&i[0].checked===!0&&_.setNodes(e,{checked:!1},{at:i[1]}),!0}function I6(e){let t=Array.from(y.nodes(e,{match:Jt}));for(let n of t)if(n[0].depth===0)return!0;return Ug(e,n=>({depth:Math.max(0,n.depth-1)}),{match:Jt})}function N6(e,{at:t=e.selection}={}){let n=Qe(e,"task-list-item",{at:t});if(!n)return!1;let r=!n[0].checked;_.setNodes(e,{checked:r},{at:n[1]})}function U6(e){return{indent:be(L6,e),outdent:be(I6,e),convertUnorderedList:be(F6,e),convertOrderedList:be(M6,e),convertTaskList:be(R6,e),insertBreak:be(P6,e),toggleTaskListItem:be(N6,e),getListDepth:be(Xg,e),canIncreaseDepth:be(vD,e),canDecreaseDepth:be(yD,e),increaseDepth:be(_6,e),decreaseDepth:be(z6,e)}}var H6=Pg(["ordered-list-item"]);function Zg(e,t){let[n,r]=t;return me.isElement(n)?Jo(e,[n,r],(i,a)=>{if(!H6(a[0]))return!1;let u=H6(i[0])||Jt(i[0])?a[0].depth>i[0].depth:!0;return a[0].__firstAtDepth!==u?(_.setNodes(e,{__firstAtDepth:u},{at:a[1]}),!0):!1}):!1}function q6(e,t){let[n]=t;return Jt(n)?Zg(e,t):!1}var G6=N(Oe());var ED=te("li")`
|
|
1012
1011
|
margin-top: 0.5em;
|
|
1013
1012
|
margin-bottom: 0.5em;
|
|
1014
1013
|
list-style-position: outside;
|
|
1015
1014
|
margin-left: calc(2em + var(--list-item-depth) * 2em);
|
|
1016
|
-
`,
|
|
1015
|
+
`,j6=te(ED)`
|
|
1017
1016
|
position: relative;
|
|
1018
1017
|
list-style-type: none;
|
|
1019
1018
|
.--list-item-icon {
|
|
@@ -1023,7 +1022,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1023
1022
|
line-height: 1.5em;
|
|
1024
1023
|
color: var(--shade-600);
|
|
1025
1024
|
}
|
|
1026
|
-
`,
|
|
1025
|
+
`,V6=te(ED)`
|
|
1027
1026
|
position: relative;
|
|
1028
1027
|
list-style-type: none;
|
|
1029
1028
|
counter-increment: var(--list-item-var);
|
|
@@ -1048,7 +1047,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1048
1047
|
/* force numbers to be monospaced for better alignment */
|
|
1049
1048
|
font-variant-numeric: tabular-nums;
|
|
1050
1049
|
}
|
|
1051
|
-
|
|
1050
|
+
`,$6=te(ED)`
|
|
1052
1051
|
position: relative;
|
|
1053
1052
|
list-style-type: none;
|
|
1054
1053
|
.--list-item-icon {
|
|
@@ -1062,7 +1061,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1062
1061
|
stroke-width: 3px;
|
|
1063
1062
|
}
|
|
1064
1063
|
}
|
|
1065
|
-
`;var
|
|
1064
|
+
`;var K6=N(Z());function W6({element:e,attributes:t,children:n}){let r=Se();(0,G6.useEffect)(()=>{let u=W.findPath(r,e);Zg(r,[e,u])},[]);let i={"--list-item-depth":e.depth,"--list-item-var":`list-item-depth-${e.depth}`},a=Zt({"--first-at-depth":e.__firstAtDepth});return(0,K6.jsx)(V6,{...t,className:a,style:i,children:n})}var Z6=N(Oe());var Fi=N(Z()),Y6=e=>(0,Fi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",...e,children:[(0,Fi.jsx)("path",{d:"M0 0h24v24H0z",stroke:"none"}),(0,Fi.jsx)("rect",{x:4,y:4,width:16,height:16,rx:2})]}),Q6=e=>(0,Fi.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-checkbox",width:"1em",height:"1em",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",...e,children:[(0,Fi.jsx)("path",{d:"M0 0h24v24H0z",stroke:"none"}),(0,Fi.jsx)("path",{d:"m9 11 3 3 8-8",className:"--checkmark"}),(0,Fi.jsx)("path",{d:"M20 12v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h9"})]}),X6=e=>(0,Fi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em",...e,children:(0,Fi.jsx)("path",{d:"M12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5z"})});var rc=N(Z());function J6({element:e,attributes:t,children:n}){let r=Se(),i=(0,Z6.useCallback)(()=>{r.list.toggleTaskListItem({at:e})},[r,e]),a={"--list-item-depth":e.depth};return(0,rc.jsxs)($6,{...t,style:a,children:[(0,rc.jsx)("div",{className:"--list-item-icon",contentEditable:!1,children:e.checked?(0,rc.jsx)(Q6,{onClick:i,style:{cursor:"pointer"}}):(0,rc.jsx)(Y6,{onClick:i,style:{cursor:"pointer"}})}),n]})}var qm=N(Z());function e7({element:e,attributes:t,children:n}){let r={"--list-item-depth":e.depth};return(0,qm.jsxs)(j6,{...t,style:r,children:[(0,qm.jsx)("div",{className:"--list-item-icon",contentEditable:!1,children:(0,qm.jsx)(X6,{})}),n]})}var Jg=N(Z());function t7({element:e,attributes:t,children:n}){switch(e.type){case"ordered-list-item":return(0,Jg.jsx)(W6,{element:e,attributes:t,children:n});case"unordered-list-item":return(0,Jg.jsx)(e7,{element:e,attributes:t,children:n});case"task-list-item":return(0,Jg.jsx)(J6,{element:e,attributes:t,children:n})}}var n7=["unordered-list-item","ordered-list-item","task-list-item"],Jt=Pg(n7),r7=Ye((e,t,{createPolicy:n})=>{e.convertElement.addConvertElementType(n7);let r=e.list=U6(e),i=zn({tab:r.indent,"shift+tab":r.outdent,"super+7":be(r.convertOrderedList,!0),"super+8":be(r.convertUnorderedList,!0),"super+9":be(r.convertTaskList,!0)});return n({name:"list",editor:{normalizeNode:a=>q6(e,a),insertBreak:r.insertBreak,deleteBackward:a=>{if(a!=="character"||!el(e,Jt))return!1;let u=Qe(e,Jt);if(!u)return!1;let s=u[1];if(!F.hasPrevious(s))return e.collapsibleParagraph.convertParagraph(),!0;let c=F.previous(s),f=y.node(e,c);return Jt(f[0])?!1:(e.collapsibleParagraph.convertParagraph(),!0)}},editableProps:{renderElement:t7,onKeyDown(a){return y.nodes(e,{match:Jt})?i(a):!1}}})});function i7(e,{at:t=e.selection}={}){if(t==null)return;let n=[...y.nodes(e,{match:i=>fe.isText(i),at:t})],r={};for(let[i]of n)for(let a of Object.keys(i))a!=="text"&&(r[a]=null);_.setNodes(e,r,{match:i=>fe.isText(i),split:!0,at:t})}function ic(e,t,n,{at:r=e.selection}={}){if(r==null)return;let i=V.isRange(r)?r.focus:r,a=Me.isPoint(i)&&(y.after(e,i)===null||y.isEnd(e,i,y.end(e,[]))),u=t,c=(y.marks(e)||{})[u]===!0;if(a)if(!c)e.activeMarks={...e.activeMarks,[u]:!0};else{let{[u]:f,...p}=e.activeMarks||{};e.activeMarks=p}c?y.removeMark(e,u):y.addMark(e,u,!0),typeof n=="string"&&y.removeMark(e,n)}function a7(e){return{removeMarks:be(i7,e),toggleMark:be(ic,e),toggleBold:()=>ic(e,"bold"),toggleItalic:()=>ic(e,"italic"),toggleUnderline:()=>ic(e,"underline"),toggleStrike:()=>ic(e,"strike")}}var o7=te("span")`
|
|
1066
1065
|
&.--bold {
|
|
1067
1066
|
font-weight: bold;
|
|
1068
1067
|
}
|
|
@@ -1082,7 +1081,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1082
1081
|
&.--underline.--strike {
|
|
1083
1082
|
text-decoration: underline line-through;
|
|
1084
1083
|
}
|
|
1085
|
-
`;var
|
|
1084
|
+
`;var l7=N(Z()),u7=Ye(e=>{e.marksPlugin=a7(e),e.activeMarks={};let t=zn({"mod+b":e.marksPlugin.toggleBold,"mod+i":e.marksPlugin.toggleItalic,"mod+u":e.marksPlugin.toggleUnderline,"super+0":e.marksPlugin.removeMarks,"super+k":e.marksPlugin.toggleStrike}),{insertText:n}=e;e.insertText=i=>{if(e.activeMarks&&Object.keys(e.activeMarks).length>0){let{activeMarks:a}=e;Object.entries(a).forEach(([u,s])=>{s&&e.addMark(u,!0)})}n(i)};let{removeMarks:r}=e.marksPlugin;return e.marksPlugin.removeMarks=()=>{if(r(),e.selection){let i=V.isRange(e.selection)?e.selection.focus:e.selection;Me.isPoint(i)&&(y.after(e,i)===null||y.isEnd(e,i,y.end(e,[])))&&(e.activeMarks={})}},{name:"marks",editableProps:{renderLeaf:({leaf:i,children:a})=>(0,l7.jsx)(o7,{className:Zt({"--bold":i.bold,"--italic":i.italic,"--underline":i.underline,"--strike":i.strike}),children:a}),onKeyDown:i=>!!t(i)}}});function s7(e){if(!e.selection)return;let t=y.parent(e,e.selection);WR(e,t[1])}var c7=Ye(e=>(e.normalizeAfterDelete=!0,{name:"normalize-after-delete",editor:{deleteBackward(){if(!e.selection)return!1;let t=y.parent(e,e.selection);return Me.equals(y.start(e,t[1]),e.selection.anchor)?function(){s7(e)}:!1},deleteForward(){if(!e.selection)return!1;let t=y.parent(e,e.selection);return Me.equals(y.end(e,t[1]),e.selection.anchor)?function(){s7(e)}:!1}},editableProps:{}}));function f7(e,t,n){let r=[...y.positions(e,{at:t})],i=[],a,u,s;a=u=r[0],s=Zs(e,n,{at:a});for(let f of r){let p=Zs(e,n,{at:f});if(s&&p&&F.equals(s,p)||s==null&&p==null)u=f;else{let h={anchor:a,focus:u};i.push(h),a=u=f,s=p}}let c={anchor:a,focus:u};return i.push(c),i.reverse(),i}function m7(e,t){if(e.selection==null)return!1;let[n,r]=y.edges(e,e.selection),i=Zs(e,t,{at:n}),a=Zs(e,t,{at:r});if(!i&&!a||i&&a&&F.equals(i,a))return!1;let u=f7(e,e.selection,t);return y.withoutNormalizing(e,()=>{for(let s of u)_.delete(e,{at:s});_.collapse(e,{edge:"start"})}),!0}function un(e,{at:t=e.selection}={}){if(t==null)return;let n=Qe(e,"table-cell",{at:t});if(!n)return;let r=Qe(e,"table-row",{at:t});if(!r)return;let i=Qe(e,"table",{at:t});if(!i)return;let[a,u]=i,[s,c]=r,[f,p]=n;return{tableElement:a,tablePath:u,tableColumns:a.columns,rowElement:s,rowPath:c,rowIndex:c.slice(-1)[0],rowCount:a.children.length,cellElement:f,cellPath:p,cellIndex:p.slice(-1)[0],cellCount:s.children.length}}function ac(e,t=[{type:"table-content",children:[{text:""}]}]){return{type:"table-cell",children:t}}function p7(e,{offset:t=0,at:n=e.selection}={}){let r=un(e,{at:n});if(r===void 0)return!1;let{tableElement:i,tablePath:a,cellIndex:u}=r,s=u+t;return y.withoutNormalizing(e,()=>{let{columns:c}=i,f=[...c];f.splice(s,0,c[s]),_.setNodes(e,{columns:f},{at:a}),i.children.forEach((p,h)=>{_.insertNodes(e,ac(s),{at:[...a,h,s]})})}),!0}function mte(e){return{type:"table-row",children:[...Array(e).keys()].map(t=>ac(t))}}function bD(e,{at:t=e.selection,offset:n=0}={}){let r=un(e,{at:t});if(!r)return!1;let i=mte(r.tableElement.columns.length);return _.insertNodes(e,i,{at:[...r.tablePath,r.rowIndex+n]}),!0}function d7(e,{at:t}={}){return bD(e,{at:t,offset:1})}function h7(e){return[...Array(e).keys()]}function pte(e){return h7(e).map(()=>({align:"left"}))}function dte(e,t){return{type:"table",columns:pte(e),children:h7(t).map(()=>hte(e))}}function hte(e){return{type:"table-row",children:[...Array(e).keys()].map(t=>ac(t))}}function g7(e,t,n,{at:r=e.selection}={}){let i=dte(t,n);return gte(e,i,{at:r})}function gte(e,t,{at:n=e.selection}={}){if(n==null)return!1;let r=Qe(e,i=>me.isElement(i)&&e.isMaster(i));if(r==null){let i=e.selection;y.withoutNormalizing(e,()=>{_.insertNodes(e,t,{at:n}),i&&(_.select(e,i),_.move(e))})}else{let i=F.next(r[1]);y.withoutNormalizing(e,()=>{_.insertNodes(e,t,{at:i}),_.select(e,y.start(e,i))})}return!0}function v7(e,t){let{cellIndex:n,rowIndex:r,rowCount:i,tablePath:a}=t;if(r<i-1)return ra(e,[...a,r+1,n]),!0;try{return ra(e,F.next(a)),!0}catch{return!1}}function y7(e,t){let{cellIndex:n,rowIndex:r,tablePath:i}=t;if(r>0)return ra(e,[...i,r-1,n]),!0;try{return KR(e,F.previous(i)),!0}catch{return!1}}function vte(){let e=window.getSelection();return e?e.getRangeAt(0).getBoundingClientRect():null}function yte(e,t){return W.toDOMNode(e,t).getBoundingClientRect()}function xD(e,t){let n=vte();if(!n)return!1;let r=yte(e,t);return n.right<r.right&&n.left>r.left&&n.bottom<r.bottom&&n.top>r.top}function E7(e){let t=un(e);return t&&setTimeout(()=>{xD(e,t.cellElement)||v7(e,t)}),!1}function b7(e){let t=un(e);return t&&setTimeout(()=>{xD(e,t.cellElement)||y7(e,t)}),!1}function oc(e){let t=e.tablePlugin.getTableInfo();return t===void 0?!1:(_.removeNodes(e,{at:t.tablePath}),!0)}function x7(e,{at:t=e.selection}={}){let n=un(e,{at:t});if(!n)return!1;let{tableElement:r,tablePath:i,rowIndex:a,cellIndex:u,cellCount:s}=n;if(s===1)return oc(e);y.withoutNormalizing(e,()=>{let c=[...r.columns];c.splice(u,1),_.setNodes(e,{columns:c},{at:i}),r.children.forEach((p,h)=>{_.removeNodes(e,{at:[...i,h,u]})});let f=y.start(e,[...i,a,Math.min(u,s-2)]);_.select(e,f)})}function D7(e,{at:t=e.selection}={}){let n=un(e,{at:t});return n===void 0?!1:n.rowCount===1?(oc(e),!0):(y.withoutNormalizing(e,()=>{_.removeNodes(e,{at:n.rowPath}),_.select(e,y.start(e,[...n.tablePath,Math.min(n.rowIndex,n.rowCount-2),n.cellIndex]))}),!0)}function C7(e,t){let n=un(e);if(n===void 0)return!1;let{tableElement:r,tablePath:i,cellIndex:a}=n,u=r.columns.slice();return u.splice(a,1,{align:t.align}),_.setNodes(e,{columns:u},{at:i}),!0}function w7(e){let t=un(e);if(!t)return!1;let{cellIndex:n,cellCount:r,rowIndex:i,rowCount:a,tablePath:u}=t;return n<r-1?(ra(e,[...u,i,n+1]),!0):i<a-1?(ra(e,[...u,i+1,0]),!0):(d7(e),ra(e,[...u,i+1,0]),!0)}function A7(e){let t=un(e);if(!t)return!1;let{cellIndex:n,cellCount:r,rowIndex:i,tablePath:a}=t;if(n>0)return ra(e,[...a,i,n-1]),!0;if(i>0)return ra(e,[...a,i-1,r-1]),!0}function S7(e){return{getTableInfo:be(un,e),insertTable:be(g7,e),insertColumn:be(p7,e),insertRow:be(bD,e),removeTable:be(oc,e),removeColumn:be(x7,e),removeRow:be(D7,e),tabForward:be(w7,e),tabBackward:be(A7,e),selectCell:be(Ete,e),down:be(E7,e),up:be(b7,e),setTableColumnAlign:be(C7,e)}}function Ete(e,{at:t=e.selection}={}){let n=un(e,{at:t});if(n===void 0)return!1;let{cellPath:r}=n;return _.select(e,r),!0}function e0(e,t){let n=!1;return t[0].children.forEach((i,a)=>{i.children.forEach((s,c)=>{(s.x!==c||s.y!==a)&&(_.setNodes(e,{x:c,y:a},{at:[...t[1],a,c]}),n=!0)})}),n}function T7(e,t){let[n,r]=t;return n.children.length===1&&n.children[0].type==="table-content"?!1:(y.withoutNormalizing(e,()=>{_.insertNodes(e,{type:"table-content",children:[{text:"X"}]},{at:[...t[1],0]});for(let i=n.children.length;i>=0;i--)_.mergeNodes(e,{at:[...r,i]});_.delete(e,{at:{path:[...r,0,0],offset:0},unit:"character"})}),!0)}var U7=N(Oe());var k7=te("div")`
|
|
1086
1085
|
position: absolute;
|
|
1087
1086
|
/**
|
|
1088
1087
|
* very slightly shaded
|
|
@@ -1106,7 +1105,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1106
1105
|
background: rgba(0, 0, 0, 0.15);
|
|
1107
1106
|
}
|
|
1108
1107
|
}
|
|
1109
|
-
`,
|
|
1108
|
+
`,B7=te(k7)`
|
|
1110
1109
|
cursor: pointer;
|
|
1111
1110
|
/**
|
|
1112
1111
|
* hangs out on top
|
|
@@ -1116,7 +1115,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1116
1115
|
right: 0;
|
|
1117
1116
|
height: 3em;
|
|
1118
1117
|
top: -3em;
|
|
1119
|
-
`,
|
|
1118
|
+
`,O7=te(k7)`
|
|
1120
1119
|
/**
|
|
1121
1120
|
* hangs out on left
|
|
1122
1121
|
*/
|
|
@@ -1124,7 +1123,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1124
1123
|
bottom: -1px;
|
|
1125
1124
|
width: 3em;
|
|
1126
1125
|
left: -3em;
|
|
1127
|
-
`,
|
|
1126
|
+
`,M7=te("div")`
|
|
1128
1127
|
position: absolute;
|
|
1129
1128
|
background: rgba(0, 0, 0, 0.05);
|
|
1130
1129
|
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
@@ -1136,7 +1135,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1136
1135
|
left: 0;
|
|
1137
1136
|
right: 0;
|
|
1138
1137
|
bottom: 0;
|
|
1139
|
-
`,
|
|
1138
|
+
`,R7=te(M7)`
|
|
1140
1139
|
top: 50%;
|
|
1141
1140
|
border-bottom: none;
|
|
1142
1141
|
border-right: none;
|
|
@@ -1162,7 +1161,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1162
1161
|
|
|
1163
1162
|
/* border-top-left-radius: 0.5em;
|
|
1164
1163
|
border-top-right-radius: 0.5em; */
|
|
1165
|
-
`,
|
|
1164
|
+
`,F7=te(M7)`
|
|
1166
1165
|
left: 50%;
|
|
1167
1166
|
border-right: none;
|
|
1168
1167
|
border-bottom: none;
|
|
@@ -1188,7 +1187,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1188
1187
|
|
|
1189
1188
|
/* border-top-left-radius: 0.5em;
|
|
1190
1189
|
border-bottom-left-radius: 0.5em; */
|
|
1191
|
-
`,
|
|
1190
|
+
`,_7=te("div")`
|
|
1192
1191
|
position: absolute;
|
|
1193
1192
|
font-size: 1.5em;
|
|
1194
1193
|
background: white;
|
|
@@ -1197,27 +1196,27 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1197
1196
|
svg {
|
|
1198
1197
|
display: block;
|
|
1199
1198
|
}
|
|
1200
|
-
`,
|
|
1199
|
+
`,uc=te(_7)`
|
|
1201
1200
|
color: #c0c0c0;
|
|
1202
1201
|
&:hover {
|
|
1203
1202
|
color: royalblue;
|
|
1204
1203
|
}
|
|
1205
|
-
`,
|
|
1204
|
+
`,t0=te(_7)`
|
|
1206
1205
|
color: #c0c0c0;
|
|
1207
1206
|
&:hover {
|
|
1208
1207
|
color: firebrick;
|
|
1209
1208
|
}
|
|
1210
|
-
`;var
|
|
1209
|
+
`;var z7=te("table")`
|
|
1211
1210
|
border-collapse: collapse;
|
|
1212
1211
|
margin: 1em 0;
|
|
1213
1212
|
${({columns:e})=>e.map((t,n)=>`td:nth-of-type(${n+1}) { text-align: ${t.align}; }`).join(`
|
|
1214
1213
|
`)}
|
|
1215
|
-
`,
|
|
1214
|
+
`,L7=te("tr")`
|
|
1216
1215
|
position: relative;
|
|
1217
1216
|
&:first-of-type {
|
|
1218
1217
|
background: var(--table-head-bgcolor);
|
|
1219
1218
|
}
|
|
1220
|
-
`,
|
|
1219
|
+
`,P7=te("td")`
|
|
1221
1220
|
position: relative;
|
|
1222
1221
|
border-width: 1px;
|
|
1223
1222
|
border-style: solid;
|
|
@@ -1237,7 +1236,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1237
1236
|
&:last-of-type {
|
|
1238
1237
|
border-right-color: var(--table-border-color);
|
|
1239
1238
|
}
|
|
1240
|
-
`,
|
|
1239
|
+
`,I7=te("div")`
|
|
1241
1240
|
/**
|
|
1242
1241
|
* Smaller font inside a table than outside of it
|
|
1243
1242
|
*/
|
|
@@ -1249,7 +1248,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1249
1248
|
color: rgba(0, 0, 0, 0.6);
|
|
1250
1249
|
font-size: 0.875em; /* 14px */
|
|
1251
1250
|
}
|
|
1252
|
-
`;var
|
|
1251
|
+
`;var N7=N(Oe()),n0=(0,N7.createContext)({isSelected:!1});var r0=N(Z());function H7({element:e,attributes:t,children:n}){let r=Se(),i=ci();return(0,U7.useEffect)(()=>{let a=W.findPath(r,e);e0(r,[e,a])},[]),(0,r0.jsx)(n0.Provider,{value:{isSelected:i},children:(0,r0.jsx)(z7,{...t,columns:e.columns,children:(0,r0.jsx)("tbody",{children:n})})})}var X7=N(Oe());var nu=N(Oe());var Lr=N(Z()),lc=e=>(0,Lr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"1em",height:"1em",...e,children:(0,Lr.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm.75-11.25a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5z",clipRule:"evenodd"})}),i0=e=>(0,Lr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"1em",height:"1em",...e,children:(0,Lr.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM6.75 9.25a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5z",clipRule:"evenodd"})}),a0=()=>(0,Lr.jsx)(rt,{children:(0,Lr.jsx)("path",{d:"M4 6h16M4 12h16M4 18h16"})}),q7=()=>(0,Lr.jsx)(rt,{children:(0,Lr.jsx)("path",{d:"M4 6h16M4 12h10M4 18h14"})}),j7=()=>(0,Lr.jsx)(rt,{children:(0,Lr.jsx)("path",{d:"M4 6h16M8 12h8M6 18h12"})}),V7=()=>(0,Lr.jsx)(rt,{children:(0,Lr.jsx)("path",{d:"M4 6h16M10 12h10M6 18h14"})});var er=N(Z());function $7({cellElement:e}){let t=Se(),n=Xn("column-menu"),r=(0,nu.useRef)(null),[i,a]=(0,nu.useState)(!1),u=(0,nu.useCallback)(()=>{a(!0)},[]),s=(0,nu.useCallback)(()=>{a(!1)},[]),c=(0,nu.useCallback)(()=>{n.layer&&n.close();let f=r.current;if(f===null)return;let p=[{icon:q7,title:"\u5DE6\u63C3\u3048",action:()=>{t.tablePlugin.setTableColumnAlign({align:"left"})}},{icon:j7,title:"\u4E2D\u592E\u63C3\u3048",action:()=>{t.tablePlugin.setTableColumnAlign({align:"center"})}},{icon:V7,title:"\u53F3\u63C3\u3048",action:()=>{t.tablePlugin.setTableColumnAlign({align:"right"})}}];n.open(()=>(0,er.jsx)(Vg,{dest:f,items:p,close:n.close}))},[]);return(0,er.jsxs)(B7,{ref:r,contentEditable:!1,onClick:c,onMouseEnter:u,onMouseLeave:s,children:[(0,er.jsx)(R7,{className:"--tile",children:(0,er.jsx)(a0,{})}),i?(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(t0,{style:{top:0,left:"50%",marginLeft:"-0.5em"},onMouseDown:()=>t.tablePlugin.removeColumn({at:e}),children:(0,er.jsx)(i0,{})}),(0,er.jsx)(uc,{style:{left:"-0.5em",top:0},onMouseDown:()=>t.tablePlugin.insertColumn({at:e}),children:(0,er.jsx)(lc,{})}),(0,er.jsx)(uc,{style:{right:"-0.5em",top:0},onMouseDown:()=>t.tablePlugin.insertColumn({at:e,offset:1}),children:(0,er.jsx)(lc,{})})]}):null]})}var G7=N(Oe());var pr=N(Z());function W7({cellElement:e}){let t=Se(),[n,r]=(0,G7.useState)(!1);return(0,pr.jsxs)(O7,{contentEditable:!1,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[(0,pr.jsx)(F7,{className:"--tile",children:(0,pr.jsx)(a0,{})}),n?(0,pr.jsxs)(pr.Fragment,{children:[(0,pr.jsx)(t0,{style:{top:"50%",left:"0.5em",marginTop:"-0.5em"},onMouseDown:()=>t.tablePlugin.removeRow({at:e}),children:(0,pr.jsx)(i0,{})}),(0,pr.jsx)(uc,{style:{top:"-0.5em",left:"0.5em"},onMouseDown:()=>t.tablePlugin.insertRow({at:e}),children:(0,pr.jsx)(lc,{})}),(0,pr.jsx)(uc,{style:{bottom:"-0.5em",left:"0.5em"},onMouseDown:()=>t.tablePlugin.insertRow({at:e,offset:1}),children:(0,pr.jsx)(lc,{})})]}):null]})}var K7=te("div")`
|
|
1253
1252
|
position: absolute;
|
|
1254
1253
|
/**
|
|
1255
1254
|
* very slightly shaded
|
|
@@ -1281,7 +1280,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1281
1280
|
background: rgba(0, 0, 0, 0.15);
|
|
1282
1281
|
}
|
|
1283
1282
|
}
|
|
1284
|
-
`,
|
|
1283
|
+
`,Y7=te("div")`
|
|
1285
1284
|
position: absolute;
|
|
1286
1285
|
left: 0;
|
|
1287
1286
|
top: 0;
|
|
@@ -1289,7 +1288,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1289
1288
|
height: 1.5em;
|
|
1290
1289
|
background: rgba(0, 0, 0, 0.05);
|
|
1291
1290
|
border-radius: 50%;
|
|
1292
|
-
`;var
|
|
1291
|
+
`;var DD=N(Z());function Q7(){return(0,DD.jsx)(K7,{contentEditable:!1,children:(0,DD.jsx)(Y7,{className:"--table-menu-tile"})})}var sc=N(Z());function Z7({element:e,attributes:t,children:n}){let r=(0,X7.useContext)(n0),i=ci(),a=r.isSelected&&e.x===0&&e.y===0,u=r.isSelected&&e.x===0,s=r.isSelected&&e.y===0;return(0,sc.jsxs)(P7,{className:i?"--selected":"",...t,"data-x":e.x,"data-y":e.y,children:[n,a?(0,sc.jsx)(Q7,{}):null,u?(0,sc.jsx)(W7,{cellElement:e}):null,s?(0,sc.jsx)($7,{cellElement:e}):null]})}var e8=N(Z());function J7({attributes:e,children:t}){return(0,e8.jsx)(I7,{...e,children:t})}var n8=N(Z());function t8({attributes:e,children:t}){return(0,n8.jsx)(L7,{...e,children:t})}var jm=N(Z());function r8({element:e,attributes:t,children:n}){switch(e.type){case"table":return(0,jm.jsx)(H7,{element:e,attributes:t,children:n});case"table-row":return(0,jm.jsx)(t8,{element:e,attributes:t,children:n});case"table-cell":return(0,jm.jsx)(Z7,{element:e,attributes:t,children:n});case"table-content":return(0,jm.jsx)(J7,{element:e,attributes:t,children:n})}}var i8=Ye((e,t,{createPolicy:n})=>(e.supportsTable=!0,e.tablePlugin=S7(e),n({name:"table",editor:{deleteBackward:()=>el(e,"table-cell"),deleteForward:()=>NR(e,"table-cell"),deleteFragment:()=>m7(e,["table-cell"]),insertBreak:()=>!!Qe(e,"table-cell"),isMaster(r){if(r.type==="table")return!0},normalizeNode:r=>{let[i]=r;if(!me.isElement(i))return!1;switch(i.type){case"table":return e0(e,r);case"table-cell":return T7(e,r)}return!1}},editableProps:{renderElement:r8,onKeyDown:zn({tab:e.tablePlugin.tabForward,"shift+tab":e.tablePlugin.tabBackward,down:e.tablePlugin.down,up:e.tablePlugin.up,"mod+a":e.tablePlugin.selectCell,"super+t":()=>e.tablePlugin.insertTable(3,2),"mod+shift+enter":()=>e.tablePlugin.insertRow({offset:0}),"mod+enter":()=>e.tablePlugin.insertRow({offset:1}),"super+[":()=>e.tablePlugin.insertColumn({offset:0}),"super+]":()=>e.tablePlugin.insertColumn({offset:1}),"super+backspace":e.tablePlugin.removeTable,"mod+backspace":e.tablePlugin.removeRow,"mod+shift+backspace":e.tablePlugin.removeColumn})}})));var bte=`
|
|
1293
1292
|
--blue-50: rgb(239 246 255);
|
|
1294
1293
|
--blue-100: rgb(219 234 254);
|
|
1295
1294
|
--blue-200: rgb(191 219 254);
|
|
@@ -1300,7 +1299,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1300
1299
|
--blue-700: rgb(29 78 216);
|
|
1301
1300
|
--blue-800: rgb(30 64 175);
|
|
1302
1301
|
--blue-900: rgb(30 58 138);
|
|
1303
|
-
`;var
|
|
1302
|
+
`;var xte=`
|
|
1304
1303
|
--shade-50: rgb(250 250 250);
|
|
1305
1304
|
--shade-100: rgb(244 244 245);
|
|
1306
1305
|
--shade-200: rgb(228 228 231);
|
|
@@ -1311,11 +1310,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1311
1310
|
--shade-700: rgb(63 63 70);
|
|
1312
1311
|
--shade-800: rgb(39 39 42);
|
|
1313
1312
|
--shade-900: rgb(24 24 27);
|
|
1314
|
-
`,
|
|
1313
|
+
`,a8=_g`
|
|
1315
1314
|
:root {
|
|
1316
1315
|
/* Tailwind Colors */
|
|
1317
|
-
${
|
|
1318
|
-
${
|
|
1316
|
+
${bte}
|
|
1317
|
+
${xte}
|
|
1319
1318
|
/* Select Colors */
|
|
1320
1319
|
--select-color: var(--blue-400);
|
|
1321
1320
|
--select-editor-color: var(--blue-200);
|
|
@@ -1337,14 +1336,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1337
1336
|
/* Horizontal Rule Colors */
|
|
1338
1337
|
--hr-color: var(--shade-300);
|
|
1339
1338
|
}
|
|
1340
|
-
`;var
|
|
1339
|
+
`;var ol=N(Z()),o8=Ye(e=>(e.theme=!0,{name:"theme",editor:{},renderEditable:({attributes:t,Editable:n})=>(0,ol.jsxs)(ol.Fragment,{children:[(0,ol.jsx)(TR,{styles:a8}),(0,ol.jsx)(n,{...t})]}),editableProps:{}}));var m0=N(Oe());var ul=N(Oe());var u8=te(di)`
|
|
1341
1340
|
padding: 0.5em;
|
|
1342
|
-
`,
|
|
1341
|
+
`,l8=te("div")`
|
|
1343
1342
|
display: grid;
|
|
1344
1343
|
grid-template-columns: repeat(5, 1.75em);
|
|
1345
1344
|
grid-template-rows: 1.5em;
|
|
1346
1345
|
/* grid-gap: 1px; */
|
|
1347
|
-
`,
|
|
1346
|
+
`,s8=te("div")`
|
|
1348
1347
|
background: var(--shade-100);
|
|
1349
1348
|
height: 1.5em;
|
|
1350
1349
|
border-radius: 0.125em;
|
|
@@ -1354,7 +1353,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1354
1353
|
&.--selected {
|
|
1355
1354
|
background: var(--blue-100);
|
|
1356
1355
|
}
|
|
1357
|
-
`;var
|
|
1356
|
+
`;var Ga=N(Z());function c8(e){return[...Array(e).keys()]}function f8({dest:e,close:t}){let[n,r]=(0,ul.useState)({x:0,y:0}),i=Se(),a=(0,ul.useRef)(null),u=pi({src:a,dest:e},({dest:h})=>({left:h.left-8,top:h.top+h.height})),s=c8(5).map(h=>h+1),c=c8(5).map(h=>h+1),f=(0,ul.useCallback)((h,g)=>{r({x:h,y:g})},[r]),p=(0,ul.useCallback)((h,g)=>{i.tablePlugin.insertTable(h,g),W.focus(i),t()},[i]);return(0,Ga.jsxs)(Ga.Fragment,{children:[(0,Ga.jsx)(eu,{close:t}),(0,Ga.jsx)(u8,{ref:a,style:u,children:(0,Ga.jsx)(l8,{onMouseLeave:()=>f(0,0),children:s.map(h=>c.map(g=>{let d=g<=n.x&&h<=n.y;return(0,Ga.jsx)(s8,{className:Zt({"--selected":d}),onMouseEnter:()=>f(g,h),onClick:()=>p(g,h)},`${g},${h}`)}))})})]})}var K8=N(sh()),pc=N(Oe());var De=N(Z()),m8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M7 12h10M7 5v14M17 5v14M15 19h4M15 5h4M5 19h4M5 5h4"})}),p8=()=>(0,De.jsx)(rt,{className:"--more-icon",width:"0.5em",viewBox:"0 0 12 24",children:(0,De.jsx)("path",{d:"m2 12 4 4 4-4"})}),d8=()=>(0,De.jsx)(rt,{width:"0.5em",viewBox:"6 0 12 24",children:(0,De.jsx)("path",{d:"M9 12h6M12 9v6"})}),h8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M19 18v-8l-2 2M4 6v12M12 6v12M11 18h2M3 18h2M4 12h8M3 6h2M11 6h2"})}),g8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M17 12a2 2 0 1 1 4 0c0 .591-.417 1.318-.816 1.858L17 18.001h4M4 6v12M12 6v12M11 18h2M3 18h2M4 12h8M3 6h2M11 6h2"})}),v8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M19 14a2 2 0 1 0-2-2M17 16a2 2 0 1 0 2-2M4 6v12M12 6v12M11 18h2M3 18h2M4 12h8M3 6h2M11 6h2"})});var y8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M7 20V4h5.5a4 4 0 0 1 0 9H7"})}),E8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7H7zM13 12h1a3.5 3.5 0 0 1 0 7H7v-7"})}),b8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M11 5h6M7 19h6M14 5l-4 14"})});var o0=()=>(0,De.jsxs)(rt,{children:[(0,De.jsx)("path",{d:"M10 14a3.5 3.5 0 0 0 5 0l4-4a3.5 3.5 0 0 0-5-5l-.5.5"}),(0,De.jsx)("path",{d:"M14 10a3.5 3.5 0 0 0-5 0l-4 4a3.5 3.5 0 0 0 5 5l.5-.5"})]});var x8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M10 11H6a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v6c0 2.667-1.333 4.333-4 5M19 11h-4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v6c0 2.667-1.333 4.333-4 5"})});var D8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M9 6h11M9 12h11M9 18h11M5 6v.01M5 12v.01M5 18v.01"})}),C8=()=>(0,De.jsxs)(rt,{children:[(0,De.jsx)("rect",{x:4,y:4,width:16,height:16,rx:2}),(0,De.jsx)("path",{d:"M4 10h16M10 4v16"})]}),w8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"m7 8-4 4 4 4M17 8l4 4-4 4M14 4l-4 16"})}),A8=()=>(0,De.jsxs)(rt,{children:[(0,De.jsx)("path",{d:"M15 8h.01"}),(0,De.jsx)("rect",{x:4,y:4,width:16,height:16,rx:3}),(0,De.jsx)("path",{d:"m4 15 4-4a3 5 0 0 1 3 0l5 5"}),(0,De.jsx)("path",{d:"m14 14 1-1a3 5 0 0 1 3 0l2 2"})]});var S8=()=>(0,De.jsxs)(rt,{children:[(0,De.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z"}),(0,De.jsx)("path",{d:"M15 8h.01M12.5 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v6.5"}),(0,De.jsx)("path",{d:"m3 16 5-5c.928-.893 2.072-.893 3 0l3.5 3.5"}),(0,De.jsx)("path",{d:"m14 14 1-1c.679-.653 1.473-.829 2.214-.526M19 22v-6M22 19l-3-3-3 3"})]}),T8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M12 5v14M5 12h14"})}),k8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M5 12h14M16 6.5A4 2 0 0 0 12 5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1-4-1.5"})}),B8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M7 5v5a5 5 0 0 0 10 0V5M5 19h14"})});var O8=()=>(0,De.jsxs)(rt,{children:[(0,De.jsx)("path",{d:"m9 11 3 3 8-8"}),(0,De.jsx)("path",{d:"M20 12v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h9"})]}),CD=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M11 6h9M11 12h9M12 18h8M4 16a2 2 0 1 1 4 0c0 .591-.5 1-1 1.5L4 20h4M6 10V4L4 6"})}),M8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M4 6h16M8 12h12M12 18h8M7 12l-3-3M7 12l-3 3"})}),R8=()=>(0,De.jsx)(rt,{children:(0,De.jsx)("path",{d:"M4 6h16M8 12h12M12 18h8M4 12l3-3M4 12l3 3"})});var F8=[{icon:M8,title:ct("increaseDepth"),hotkey:"tab",action:e=>e.list.increaseDepth(),active:e=>e.list.canIncreaseDepth()},{icon:R8,title:ct("decreaseDepth"),hotkey:"shift+tab",action:e=>e.list.decreaseDepth(),active:e=>e.list.canDecreaseDepth()}],_8=[{icon:h8,title:ct("heading1"),hotkey:"super+1",action:e=>e.heading.convertHeading(1,!0),active:e=>e.heading.isHeadingActive(1)},{icon:g8,title:ct("heading2"),hotkey:"super+2",action:e=>e.heading.convertHeading(2,!0),active:e=>e.heading.isHeadingActive(2)},{icon:v8,title:ct("heading3"),hotkey:"super+3",action:e=>e.heading.convertHeading(3,!0),active:e=>e.heading.isHeadingActive(3)},{icon:y8,title:ct("paragraph"),hotkey:"super+0",action:e=>{e.collapsibleParagraph.convertParagraph()}}],wD=[..._8,"divider",...F8],AD=[{icon:m8,title:ct("paragraphStyle"),more:!0,children:_8},"divider",...F8];var L8=N(Oe());var u0=te("div")`
|
|
1358
1357
|
/* Center vertically and horizontally */
|
|
1359
1358
|
display: flex;
|
|
1360
1359
|
align-items: center;
|
|
@@ -1378,27 +1377,15 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1378
1377
|
font-size: 1.25em;
|
|
1379
1378
|
stroke-width: 2px;
|
|
1380
1379
|
}
|
|
1381
|
-
`,
|
|
1380
|
+
`,l0=te("div")`
|
|
1382
1381
|
font-size: 0.875em;
|
|
1383
1382
|
margin-top: 0.5em;
|
|
1384
1383
|
color: var(--shade-500);
|
|
1385
1384
|
line-height: 1.375;
|
|
1386
|
-
`;var
|
|
1385
|
+
`;var z8=te(di)`
|
|
1387
1386
|
padding: 1em;
|
|
1388
1387
|
width: 18em;
|
|
1389
|
-
`;var Fr=q(re());function Soe({dest:e,close:t,icon:n,buttonCaption:r,buttonHint:i}){let o=Me(),a=(0,i9.useRef)(null),l=Li({src:a,dest:e},({src:f,dest:p},d)=>z0(f,d,{left:p.left-16,top:p.top+p.height},{margin:16}));async function c(f){if(f.target.files==null||f.target.files.length===0)return;ca(f);let{files:p}=f.target;for(let d of p)o.upload.upload(d);t()}return(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsx)(Du,{close:t}),(0,Fr.jsxs)(r9,{ref:a,style:l,children:[(0,Fr.jsxs)("label",{children:[(0,Fr.jsx)("input",{type:"file",multiple:!0,style:{display:"none"},onChange:c}),(0,Fr.jsxs)(n1,{children:[n,(0,Fr.jsx)("span",{style:{marginLeft:"0.5em"},children:r})]})]}),(0,Fr.jsx)(r1,{children:i})]})]})}function o9({dest:e,close:t}){return(0,Fr.jsx)(Soe,{dest:e,close:t,icon:(0,Fr.jsx)(Kz,{}),buttonCaption:"Select images...",buttonHint:"Select image files to upload and insert into the editor"})}var a9=[{icon:$z,title:gt("insertTable"),more:!0,Component:Fz},{icon:Wz,title:gt("insertImage"),more:!0,Component:o9,show:e=>e.toolbar.showUploadButtons??!1}],u9=a9,Qw=[{icon:Yz,title:gt("insert"),more:!0,children:a9}];var i1=[];var l9=q(_0()),qc=q(Ue());var oi=q(re()),koe=(0,l9.isHotkey)("enter");function s9({dest:e,close:t}){let n=Me(),r=(0,qc.useRef)(null),i=Li({src:r,dest:e},({src:p,dest:d},g)=>z0(p,g,{left:d.left-12,top:d.top+d.height},{margin:16})),[o,a]=(0,qc.useState)(""),l=()=>{n.anchor.insertLink(o,o,{select:!0}),ne.focus(n),t()},c=(0,qc.useCallback)(p=>{a(p.currentTarget.value)},[a]);return(0,oi.jsxs)(oi.Fragment,{children:[(0,oi.jsx)(Du,{close:t}),(0,oi.jsxs)(H6,{ref:r,style:i,children:[(0,oi.jsxs)(q6,{children:[(0,oi.jsx)(j6,{type:"text",value:o,autoFocus:!0,onChange:c,onKeyDown:p=>{koe(p)&&(p.preventDefault(),p.stopPropagation(),l())}}),(0,oi.jsxs)(n1,{onClick:l,children:[(0,oi.jsx)(t1,{}),(0,oi.jsx)(Lz,{})]})]}),(0,oi.jsx)(r1,{children:"Enter URL of link"})]})]})}var o1={icon:t1,title:gt("insertLink"),more:!0,hotkey:"mod+k",Component:s9};function Tm(e){let t=b.marks(e);return{bold:t?.bold||!1,italic:t?.italic||!1,strike:t?.strike||!1,code:t?.code||!1,underline:t?.underline||!1}}var c9=[{icon:Hz,title:gt("bold"),hotkey:"mod+b",action:e=>e.marksPlugin.toggleBold(),active:e=>Tm(e).bold},{icon:qz,title:gt("italic"),hotkey:"mod+i",action:e=>e.marksPlugin.toggleItalic(),active:e=>Tm(e).italic},{icon:Xz,title:gt("strike"),hotkey:"super+k",action:e=>e.marksPlugin.toggleStrike(),active:e=>Tm(e).strike},{icon:Gz,title:gt("inlineCode"),hotkey:"mod+j",action:e=>e.inlineCode.toggleInlineCode(),active:e=>Tm(e).code},{icon:Qz,title:gt("underline"),hotkey:"mod+u",action:e=>e.marksPlugin.toggleUnderline(),active:e=>Tm(e).underline}],Zw=c9,f9=c9;var p9=[{icon:Vz,title:gt("bulletList"),hotkey:"super+8",action:e=>e.list.convertUnorderedList(!0)},{icon:Kw,title:gt("numberedList"),hotkey:"super+7",action:e=>e.list.convertOrderedList(!0)},{icon:Zz,title:gt("checkList"),hotkey:"super+9",action:e=>e.list.convertTaskList(!0)}],Jw=p9,m9=[{icon:Kw,title:gt("list"),more:!0,children:p9}];var a1=[{icon:jz,title:gt("quote"),hotkey:"super+.",action:e=>{e.blockQuotePlugin.isActive()?e.blockQuotePlugin.outdent():e.blockQuotePlugin.indent()},active:e=>e.blockQuotePlugin.isActive()}];var Aoe=[...Yw,"divider",...Jw,"divider",...Zw,"divider",o1,...a1,...i1,"divider",...u9],Toe=[...Xw,"divider",...Jw,"divider",...Zw,"divider",o1,...a1,...i1,"divider",...Qw],Boe=[...Xw,"divider",...m9,"divider",...f9,"divider",o1,...a1,...i1,"divider",...Qw],h9=[...Yw,"divider"];var jc=[Aoe,Toe,Boe];var Vc=q(Ue());var Il=q(re());function d9({item:e}){let t=Me(),n=BE(),r=e.active?e.active(n):!1,i=(0,Vc.useRef)(null),o=to({title:e.title,hotkey:()=>e.hotkey?L0(e.hotkey):void 0}),a=hr("menu"),l=(0,Vc.useCallback)(()=>{let p=i.current,d=e.children,g=e.Component;p&&(d?a.open(()=>(0,Il.jsx)(N0,{dest:p,items:d,close:a.close})):g&&a.open(()=>(0,Il.jsx)(g,{dest:p,close:a.close})))},[e]),c=(0,Vc.useCallback)(()=>{if(e.action){e.action(t),ne.focus(t);return}a.layer?a.close():l()},[a.layer,e]),f=(0,Vc.useCallback)(p=>{o.onMouseEnter(p),a.layer&&l()},[a.layer]);return(0,Il.jsxs)(eI,{"data-item-type":"button",ref:i,onMouseEnter:f,onMouseLeave:o.onMouseLeave,onClick:c,className:hn({"--active":r&&!e.title.includes("\u968E\u5C64"),"--more":e.more,"--disabled":!r&&e.title.includes("\u968E\u5C64")}),children:[(0,Il.jsx)(e.icon,{}),e.more?(0,Il.jsx)(Iz,{}):null]})}var Ll=q(re());function Ooe({item:e}){let t=Me();return e==="divider"?(0,Ll.jsx)(Z6,{"data-item-type":"divider",children:(0,Ll.jsx)(J6,{})}):(e.show===void 0?!0:e.show(t))?(0,Ll.jsx)(d9,{item:e}):null}function Moe(e){let t=e.querySelector("[data-item-type=button]"),n=e.querySelector("[data-item-type=divider]");if(!t||!n)throw new Error("Button or divider not found");return{toolbar:e.offsetWidth,button:t.offsetWidth,divider:n.offsetWidth}}function Roe(e,t,n){let r=0;for(let i of e)r+=i==="divider"?n:t;return r}function v9(){let e=(0,$c.useRef)(null),[t,n]=(0,$c.useState)(h9);return(0,$c.useEffect)(()=>{let r=(0,g9.throttle)(()=>{let i=e.current;if(!i)throw new Error("Toolbar not found");let o=Moe(i);for(let a=0;a<jc.length-1;a++)if(Roe(jc[a],o.button,o.divider)<o.toolbar){n(jc[a]);return}n(jc[jc.length-1])},100,{trailing:!0});return r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),(0,Ll.jsx)(X6,{ref:e,children:(0,Ll.jsx)(Q6,{children:t.map((r,i)=>(0,Ll.jsx)(Ooe,{item:r},typeof r=="string"?i:r.title))})})}var Gc=q(re());function y9({attributes:e,Editable:t}){let n=(0,u1.useRef)(null),r=Me(),i=zM(),o=(0,u1.useCallback)(a=>{a.target===a.currentTarget&&(L.select(r,b.end(r,[])),ne.focus(r))},[r]);return(0,Gc.jsx)(T6,{children:(0,Gc.jsxs)(G6,{ref:n,className:hn({"--focused":i}),style:{height:r.toolbar.height,minHeight:r.toolbar.minHeight,maxHeight:r.toolbar.maxHeight},onClick:o,children:[(0,Gc.jsx)(v9,{}),(0,Gc.jsx)(t,{as:$6,...e,style:{overflowY:"auto"}})]})})}var x9=at((e,t)=>(e.toolbar={height:t.toolbar?.height,minHeight:t.toolbar?.minHeight,maxHeight:t.toolbar?.maxHeight,showUploadButtons:t.toolbar?.showUploadButtons??!0},{name:"toolbar",editor:{},renderEditable:y9,editableProps:{}}));var b9=at(e=>(e.allowTrailingBlock=!0,{name:"trailing-block",editor:{normalizeNode:t=>{if(!b.isEditor(t[0]))return!1;let n=[e.children.length-1],r=he.child(e,e.children.length-1);return(b.hasBlocks(e,r)||b.isVoid(e,r))&&L.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:I.next(n)}),!0}}}));function Foe(e,t){let n=vu(t);L.insertNodes(e,n)}function E9(e){return{pasteMarkdown:Ae(Foe,e)}}var D9=at(e=>(e.pasteMarkdown=E9(e),{name:"paste-markdown",editor:{},editableProps:{onPaste(t){let{types:n}=t.clipboardData;if(n.length!==1||n[0]!=="text/plain")return!1;let r=t.clipboardData.getData("text/plain");return e.pasteMarkdown.pasteMarkdown(r),ca(t),!0}}}));var C9=q(re());function _oe(e){let t={...e.attributes,style:{...e.attributes.style,width:void 0,maxWidth:void 0}};return(0,C9.jsx)("span",{...t,children:e.children})}var w9=at((e,t,{createPolicy:n})=>(e.placeholder={},n({name:"placeholder",editableProps:{renderPlaceholder:_oe}})));var eC="https://api.portive.com",tC="/api/v1/upload";if(eC.endsWith("/"))throw new Error("DEFAULT_ROGIN_URL should not end with a '/'");if(!tC.startsWith("/"))throw new Error("UPLOAD_PATH should start with a '/'");var UN=q(CC());var NN=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(p){try{f(r.next(p))}catch(d){a(d)}}function c(p){try{f(r.throw(p))}catch(d){a(d)}}function f(p){p.done?o(p.value):i(p.value).then(l,c)}f((r=r.apply(e,t||[])).next())})},Pae=["image/jpg","image/jpeg","image/png","image/gif","image/webp"];function zae(e){return Pae.includes(e.type)}function Nae(e){return NN(this,void 0,void 0,function*(){return new Promise(t=>{let n=new Image;n.addEventListener("load",function(){t({width:this.naturalWidth,height:this.naturalHeight})}),n.src=e})})}var SC=new WeakMap;function kC(e){return NN(this,void 0,void 0,function*(){if(!(e instanceof File))return e;let t=SC.get(e);if(t!==void 0)return t;let n=URL.createObjectURL(e);if(zae(e)){let r=yield Nae(n),i={type:"image",filename:e.name,contentType:e.type,bytes:e.size,width:r.width,height:r.height,file:e,objectUrl:n};return SC.set(e,i),i}else{let r={type:"generic",filename:e.name,contentType:e.type,bytes:e.size,file:e,objectUrl:n};return SC.set(e,r),r}})}var AC=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(p){try{f(r.next(p))}catch(d){a(d)}}function c(p){try{f(r.throw(p))}catch(d){a(d)}}function f(p){p.done?o(p.value):i(p.value).then(l,c)}f((r=r.apply(e,t||[])).next())})},Uae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Hae({client:e,clientFileInfo:t}){return AC(this,void 0,void 0,function*(){try{return yield e.post(tC,{clientFileInfo:t})}catch(n){return{status:"error",message:`Error during getUploadPolicyFromClientFileInfo. ${n}`}}})}function qae({client:e,file:t}){return AC(this,void 0,void 0,function*(){try{let n=yield kC(t),{objectUrl:r,file:i}=n,o=Uae(n,["objectUrl","file"]);return yield Hae({client:e,clientFileInfo:o})}catch(n){return{status:"error",message:`Error during getUploadPolicy. ${n}`}}})}function HN({client:e,file:t,onBeforeFetch:n=()=>{},onBeforeSend:r=()=>{},onProgress:i=()=>{},onError:o=()=>{},onSuccess:a=()=>{},onFinish:l=()=>{},onUpdate:c=()=>{}}){return AC(this,void 0,void 0,function*(){let f=yield kC(t),p={type:"beforeFetch",file:t,clientFile:f};n(p),c(p);let d=yield qae({client:e,file:t});if(d.status==="error"){let M={type:"error",file:t,clientFile:f,message:d.message};return o(M),l(M),c(M),M}let{formFields:g,apiUrl:m,fileUrl:x}=d.data,S=f.type==="image"?{type:"image",url:x,width:f.width,height:f.height}:{type:"generic",url:x};r({type:"beforeSend",file:t,clientFile:f,hostedFile:S});let y=new FormData;for(let[M,R]of Object.entries(g))y.append(M,R);y.append("content-type",t.type),y.append("file",f.file);let w=yield UN.default.post(m,y,{onUploadProgress(M){let R={type:"progress",file:t,clientFile:f,hostedFile:S,sentBytes:M.loaded,totalBytes:M.total};i(R),c(R)}});if(w.status!==204){let M={type:"error",file:t,clientFile:f,message:`Error during upload ${JSON.stringify(w.data,null,2)}`};return o(M),l(M),c(M),M}let C={type:"success",file:t,clientFile:f,hostedFile:S};return a(C),l(C),c(C),C})}function jae(e){return typeof e=="function"}async function TC(e){return await(jae(e)?e():e)}var qN=q(CC()),BC=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(p){try{f(r.next(p))}catch(d){a(d)}}function c(p){try{f(r.throw(p))}catch(d){a(d)}}function f(p){p.done?o(p.value):i(p.value).then(l,c)}f((r=r.apply(e,t||[])).next())})};function jN(e){return new OC(e)}var OC=class{constructor({apiKey:t,authToken:n,apiOrigin:r=eC}){if(t==null&&n==null)throw new Error("apiKey or authToken must be defined but neither are defined");if(r.endsWith("/"))throw new Error("apiOrigin should not end with a '/'");if(!r.startsWith("http"))throw new Error("Expected apiOrigin to start with http");this.unresolvedApiKey=t,this.unresolvedAuthToken=n,this.apiOrigin=r}post(t,n){return BC(this,void 0,void 0,function*(){if(!t.startsWith("/"))throw new Error(`Expected path to start with "/" but is ${JSON.stringify(t)}`);let r=`${this.apiOrigin}${t}`,i={data:n},o=yield this.getAuthToken(),a=yield this.getApiKey();if(typeof o=="string"&&typeof a=="string")throw new Error("Expected one of 'authToken' or 'apiKey' to be defined but both are defined which is ambiguous");if(typeof o=="string")i.authToken=o;else if(typeof a=="string")i.apiKey=a;else throw new Error("Expected either 'authToken' or 'apiKey' to be defined but neither are defined");return(yield qN.default.post(r,i)).data})}getApiKey(){return BC(this,void 0,void 0,function*(){return this.unresolvedApiKey?TC(this.unresolvedApiKey):void 0})}getAuthToken(){return BC(this,void 0,void 0,function*(){return this.unresolvedAuthToken?TC(this.unresolvedAuthToken):void 0})}};function Vae(e){let t=e.undos[e.undos.length-1];return t.operations[t.operations.length-1]}function $ae(e){let t=Vae(e);if(t.type!=="set_node")throw new Error(`Expected set_node operation, got ${t.type}.`);return t}function VN(e,t,n){let i=Object.keys(t)[0],o=t[i],{undos:a}=e.history;for(let c of a)for(let f of c.operations)(f.type==="insert_node"||f.type==="remove_node")&&f.node[i]===o&&(f.node={...f.node,...n});let l=[...b.nodes(e,{mode:"all",at:[],match:c=>ye.isElement(c)&&c[i]===o})];for(let c of l){L.setNodes(e,n,{at:c[1]});let f=$ae(e.history);f.properties=n}}var $N=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function GN(e,t){let{client:n}=e.upload;if(n===void 0)throw new Error("Expected editor.upload.client to be defined if upload is being called");let r=`$${$N()}`,i=URL.createObjectURL(t);return HN({client:n,file:t,onBeforeFetch:({clientFile:o})=>(xm(e,r,{status:"progress",url:i,sentBytes:0,totalBytes:o.bytes}),!!(o.type==="image"&&e.upload.onUploadImageFile({hashUrl:r,file:t,width:o.width,height:o.height})||e.upload.onUploadFile({hashUrl:r,file:t}))),onProgress:({sentBytes:o,totalBytes:a})=>{xm(e,r,{status:"progress",url:i,sentBytes:o,totalBytes:a})},onError:o=>{xm(e,r,{status:"error",url:i,message:o.message})},onSuccess:o=>{if(xm(e,r,{status:"success",url:o.hostedFile.url}),o.hostedFile.type==="image"&&e.upload.onUploadImageFileSuccess({hashUrl:r,file:t,width:o.hostedFile.width,height:o.hostedFile.height,url:o.hostedFile.url}))return!0;e.upload.onUploadFileSuccess({hashUrl:r,file:t,url:o.hostedFile.url})}}),!1}function WN(e){return{upload:Ae(GN,e),setElementTimeTraveling:(t,n)=>VN(e,t,n)}}var KN=at((e,t)=>{let n=t.upload?.authToken;n||console.warn("No authToken provided. Uploads are disabled.");let r=n?jN({authToken:n}):void 0;return e.upload={client:r,onUploadImageFile:()=>(console.log("called onUploadImageFile"),!1),onUploadFile:()=>(console.log("called onUploadFile"),!1),onUploadImageFileSuccess:()=>(console.log("called onUploadImageFileSuccess"),!1),onUploadFileSuccess:()=>(console.log("called onUploadFileSuccess"),!1),useUploadStore:NI(),...WN(e)},{name:"upload",editor:{},editableProps:n?{onPaste(o){let a=o.nativeEvent.clipboardData?.files;if(!a||a.length===0)return!1;for(let l of a)e.upload.upload(l);return!0},onDrop(o){let a=o.nativeEvent.dataTransfer?.files;if(!a||a.length===0)return!1;for(let l of a)e.upload.upload(l);return!0}}:{}}});var YN=[D9,LL,yI,$L,BP,ZL,bL,kz,YL,b9,SP,bI,RP,OL,Tz,x9,KN,vL,w9];var Gae=r6(YN),{withSink:XN,SinkEditable:QN}=Gae;var t7=q(Ue());function ZN(e){return Object.prototype.toString.call(e)==="[object Object]"}function JN(e){var t,n;return ZN(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(ZN(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var Wae={isHistory(e){return JN(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||ra.isOperationList(e.redos[0]))&&(e.undos.length===0||ra.isOperationList(e.undos[0]))}};var MC=new WeakMap,RC=new WeakMap,Zc={isHistoryEditor(e){return Wae.isHistory(e.history)&&b.isEditor(e)},isMerging(e){return RC.get(e)},isSaving(e){return MC.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Zc.isMerging(e);RC.set(e,!1),t(),RC.set(e,n)},withoutSaving(e,t){var n=Zc.isSaving(e);MC.set(e,!1),t(),MC.set(e,n)}},e7=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:r}=t,{redos:i}=r;if(i.length>0){var o=i[i.length-1];o.selectionBefore&&L.setSelection(t,o.selectionBefore),Zc.withoutSaving(t,()=>{b.withoutNormalizing(t,()=>{for(var a of o.operations)t.apply(a)})}),r.redos.pop(),r.undos.push(o)}},t.undo=()=>{var{history:r}=t,{undos:i}=r;if(i.length>0){var o=i[i.length-1];Zc.withoutSaving(t,()=>{b.withoutNormalizing(t,()=>{var a=o.operations.map(ra.inverse).reverse();for(var l of a)t.apply(l);o.selectionBefore&&L.setSelection(t,o.selectionBefore)})}),r.redos.push(o),r.undos.pop()}},t.apply=r=>{var{operations:i,history:o}=t,{undos:a}=o,l=a[a.length-1],c=l&&l.operations[l.operations.length-1],f=Zc.isSaving(t),p=Zc.isMerging(t);if(f==null&&(f=Yae(r)),f){if(p==null&&(l==null?p=!1:i.length!==0?p=!0:p=Kae(r,c)),l&&p)l.operations.push(r);else{var d={operations:[r],selectionBefore:t.selection};a.push(d)}for(;a.length>100;)a.shift();o.redos=[]}n(r)},t},Kae=(e,t)=>!!(t&&e.type==="insert_text"&&t.type==="insert_text"&&e.offset===t.offset+t.text.length&&I.equals(e.path,t.path)||t&&e.type==="remove_text"&&t.type==="remove_text"&&e.offset+e.text.length===t.offset&&I.equals(e.path,t.path)),Yae=(e,t)=>e.type!=="set_selection";function FC({authToken:e,height:t,minHeight:n,maxHeight:r}){let[i]=(0,t7.useState)(()=>{let o=f5(),a=XN(UM(e7(o)),{toolbar:{height:t,minHeight:n,maxHeight:r,showUploadButtons:!!e},image:{},upload:e?{authToken:e}:void 0});return a.convertElement.addConvertElementType("paragraph"),o.wysimark={},o.getMarkdown=()=>tm(o.children),o.setMarkdown=l=>{let c=vu(l);o.children=c,o.selection=null,L.select(o,b.start(o,[0]))},a});return i}var g1=q(re());function Xae({children:e,attributes:t}){return(0,g1.jsx)("span",{...t,children:e})}function r7({editor:e,value:t,onChange:n,throttleInMs:r=1e3,placeholder:i,className:o,style:a}){let l=(0,da.useRef)(!1),c=(0,da.useRef)(void 0),f=(0,da.useRef)(void 0),p=(0,da.useCallback)((0,n7.throttle)(()=>{let x=tm(e.children);e.wysimark.prevValue={markdown:x,children:e.children},n(x)},r,{leading:!1,trailing:!0}),[e,n,r]),d=(0,da.useCallback)(()=>{f.current!==e.children&&(f.current=e.children,p())},[p]);if(e.wysimark.prevValue==null||c.current==null){l.current=!0;let x=vu(t);f.current=c.current=x,e.wysimark.prevValue={markdown:t,children:x}}else if(t!==e.wysimark.prevValue.markdown){l.current=!0;let x=vu(t);e.children=x,e.selection=null,L.select(e,b.start(e,[0]))}let g=(0,da.useCallback)(()=>{navigator.userAgent.toLowerCase().includes("firefox")&&ne.focus(e)},[e]),m=(0,da.useCallback)(()=>{p.flush()},[p]);return(0,g1.jsx)(NM,{editor:e,value:c.current,onChange:d,children:(0,g1.jsx)(QN,{renderLeaf:Xae,onMouseDown:g,onBlur:m,placeholder:i,className:o,style:a})})}function i7(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var Qae=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zae=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jae={};function v1(e,t){return((t||Jae).jsx?Zae:Qae).test(e)}var eue=/[ \t\n\f\r]/g;function _C(e){return typeof e=="object"?e.type==="text"?o7(e.value):!1:o7(e)}function o7(e){return e.replace(eue,"")===""}var ga=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};ga.prototype.property={};ga.prototype.normal={};ga.prototype.space=null;function IC(e,t){let n={},r={},i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new ga(n,r,t)}function Mm(e){return e.toLowerCase()}var Zn=class{constructor(t,n){this.property=t,this.attribute=n}};Zn.prototype.space=null;Zn.prototype.boolean=!1;Zn.prototype.booleanish=!1;Zn.prototype.overloadedBoolean=!1;Zn.prototype.number=!1;Zn.prototype.commaSeparated=!1;Zn.prototype.spaceSeparated=!1;Zn.prototype.commaOrSpaceSeparated=!1;Zn.prototype.mustUseProperty=!1;Zn.prototype.defined=!1;var Rm={};ay(Rm,{boolean:()=>We,booleanish:()=>Jt,commaOrSpaceSeparated:()=>Ir,commaSeparated:()=>ku,number:()=>fe,overloadedBoolean:()=>LC,spaceSeparated:()=>Ct});var tue=0,We=Nl(),Jt=Nl(),LC=Nl(),fe=Nl(),Ct=Nl(),ku=Nl(),Ir=Nl();function Nl(){return 2**++tue}var PC=Object.keys(Rm),Ul=class extends Zn{constructor(t,n,r,i){let o=-1;if(super(t,n),a7(this,"space",i),typeof r=="number")for(;++o<PC.length;){let a=PC[o];a7(this,PC[o],(r&Rm[a])===Rm[a])}}};Ul.prototype.defined=!0;function a7(e,t,n){n&&(e[t]=n)}var nue={}.hasOwnProperty;function zi(e){let t={},n={},r;for(r in e.properties)if(nue.call(e.properties,r)){let i=e.properties[r],o=new Ul(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Mm(r)]=r,n[Mm(o.attribute)]=r}return new ga(t,n,e.space)}var zC=zi({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var NC=zi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function y1(e,t){return t in e?e[t]:t}function x1(e,t){return y1(e,t.toLowerCase())}var UC=zi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:x1,properties:{xmlns:null,xmlnsXLink:null}});var HC=zi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:fe,ariaColIndex:fe,ariaColSpan:fe,ariaControls:Ct,ariaCurrent:null,ariaDescribedBy:Ct,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:Ct,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:Ct,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ct,ariaLevel:fe,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:Ct,ariaPlaceholder:null,ariaPosInSet:fe,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:Ct,ariaRowCount:fe,ariaRowIndex:fe,ariaRowSpan:fe,ariaSelected:Jt,ariaSetSize:fe,ariaSort:null,ariaValueMax:fe,ariaValueMin:fe,ariaValueNow:fe,ariaValueText:null,role:null}});var u7=zi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:x1,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ku,acceptCharset:Ct,accessKey:Ct,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:Ct,autoFocus:We,autoPlay:We,blocking:Ct,capture:null,charSet:null,checked:We,cite:null,className:Ct,cols:fe,colSpan:null,content:null,contentEditable:Jt,controls:We,controlsList:Ct,coords:fe|ku,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:LC,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Ct,height:fe,hidden:We,high:fe,href:null,hrefLang:null,htmlFor:Ct,httpEquiv:Ct,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:Ct,itemRef:Ct,itemScope:We,itemType:Ct,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:fe,manifest:null,max:null,maxLength:fe,media:null,method:null,min:null,minLength:fe,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:We,optimum:fe,pattern:null,ping:Ct,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:Ct,required:We,reversed:We,rows:fe,rowSpan:fe,sandbox:Ct,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:fe,sizes:null,slot:null,span:fe,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:fe,step:null,style:null,tabIndex:fe,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:Jt,width:fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ct,axis:null,background:null,bgColor:null,border:fe,borderColor:null,bottomMargin:fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:fe,leftMargin:fe,link:null,longDesc:null,lowSrc:null,marginHeight:fe,marginWidth:fe,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:fe,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:fe,security:null,unselectable:null}});var l7=zi({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:y1,properties:{about:Ir,accentHeight:fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:fe,amplitude:fe,arabicForm:null,ascent:fe,attributeName:null,attributeType:null,azimuth:fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:fe,by:null,calcMode:null,capHeight:fe,className:Ct,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:fe,diffuseConstant:fe,direction:null,display:null,dur:null,divisor:fe,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:fe,enableBackground:null,end:null,event:null,exponent:fe,externalResourcesRequired:null,fill:null,fillOpacity:fe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ku,g2:ku,glyphName:ku,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:fe,horizOriginX:fe,horizOriginY:fe,id:null,ideographic:fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:fe,k:fe,k1:fe,k2:fe,k3:fe,k4:fe,kernelMatrix:Ir,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:fe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:fe,overlineThickness:fe,paintOrder:null,panose1:null,path:null,pathLength:fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ct,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:fe,pointsAtY:fe,pointsAtZ:fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ir,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ir,rev:Ir,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ir,requiredFeatures:Ir,requiredFonts:Ir,requiredFormats:Ir,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:fe,specularExponent:fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:fe,strikethroughThickness:fe,string:null,stroke:null,strokeDashArray:Ir,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:fe,strokeOpacity:fe,strokeWidth:null,style:null,surfaceScale:fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ir,tabIndex:fe,tableValues:null,target:null,targetX:fe,targetY:fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ir,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:fe,underlineThickness:fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:fe,values:null,vAlphabetic:fe,vMathematical:fe,vectorEffect:null,vHanging:fe,vIdeographic:fe,version:null,vertAdvY:fe,vertOriginX:fe,vertOriginY:fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var rue=/^data[-\w.:]+$/i,s7=/-[a-z]/g,iue=/[A-Z]/g;function qC(e,t){let n=Mm(t),r=t,i=Zn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&rue.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(s7,aue);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!s7.test(o)){let a=o.replace(iue,oue);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Ul}return new i(r,t)}function oue(e){return"-"+e.toLowerCase()}function aue(e){return e.charAt(1).toUpperCase()}var jC={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var c7=IC([NC,zC,UC,HC,u7],"html"),b1=IC([NC,zC,UC,HC,l7],"svg");function f7(e){return e.join(" ").trim()}var VC=q(y7(),1),x7=VC.default.default||VC.default;var E1=b7("end"),Jc=b7("start");function b7(e){return t;function t(n){let r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function $C(e){let t=Jc(e),n=E1(e);if(t&&n)return{start:t,end:n}}var GC={}.hasOwnProperty,bue=new Map,Eue=/[A-Z]/g,Due=/-([a-z])/g,wue=new Set(["table","tbody","thead","tfoot","tr"]),Cue=new Set(["td","th"]),E7="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function WC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Rue(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Mue(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?b1:c7,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=D7(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function D7(e,t,n){if(t.type==="element")return Sue(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return kue(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Tue(e,t,n);if(t.type==="mdxjsEsm")return Aue(e,t);if(t.type==="root")return Bue(e,t,n);if(t.type==="text")return Oue(e,t)}function Sue(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=b1,e.schema=i),e.ancestors.push(t);let o=C7(e,t.tagName,!1),a=Fue(e,t),l=YC(e,t);return wue.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!_C(c):!0})),w7(e,a,o,t),KC(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function kue(e,t){if(t.data&&t.data.estree&&e.evaluater){let r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}_m(e,t.position)}function Aue(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);_m(e,t.position)}function Tue(e,t,n){let r=e.schema,i=r;t.name==="svg"&&r.space==="html"&&(i=b1,e.schema=i),e.ancestors.push(t);let o=t.name===null?e.Fragment:C7(e,t.name,!0),a=_ue(e,t),l=YC(e,t);return w7(e,a,o,t),KC(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Bue(e,t,n){let r={};return KC(r,YC(e,t)),e.create(t,e.Fragment,r,n)}function Oue(e,t){return t.value}function w7(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function KC(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Mue(e,t,n){return r;function r(i,o,a,l){let f=Array.isArray(a.children)?n:t;return l?f(o,a,l):f(o,a)}}function Rue(e,t){return n;function n(r,i,o,a){let l=Array.isArray(o.children),c=Jc(r);return t(i,o,a,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Fue(e,t){let n={},r,i;for(i in t.properties)if(i!=="children"&&GC.call(t.properties,i)){let o=Iue(e,i,t.properties[i]);if(o){let[a,l]=o;e.tableCellAlignToStyle&&a==="align"&&typeof l=="string"&&Cue.has(t.tagName)?r=l:n[a]=l}}if(r){let o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function _ue(e,t){let n={};for(let r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){let o=r.data.estree.body[0];o.type;let a=o.expression;a.type;let l=a.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else _m(e,t.position);else{let i=r.name,o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){let l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else _m(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function YC(e,t){let n=[],r=-1,i=e.passKeys?new Map:bue;for(;++r<t.children.length;){let o=t.children[r],a;if(e.passKeys){let c=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(c){let f=i.get(c)||0;a=c+"-"+f,i.set(c,f+1)}}let l=D7(e,o,a);l!==void 0&&n.push(l)}return n}function Iue(e,t,n){let r=qC(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?i7(n):f7(n)),r.property==="style"){let i=typeof n=="object"?n:Lue(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Pue(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?jC[r.property]||r.property:r.attribute,n]}}function Lue(e,t){let n={};try{x7(t,r)}catch(i){if(!e.ignoreInvalidStyle){let o=i,a=new on("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=E7+"#cannot-parse-style-attribute",a}}return n;function r(i,o){let a=i;a.slice(0,2)!=="--"&&(a.slice(0,4)==="-ms-"&&(a="ms-"+a.slice(4)),a=a.replace(Due,Nue)),n[a]=o}}function C7(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){let i=t.split("."),o=-1,a;for(;++o<i.length;){let l=v1(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=a}else r=v1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){let i=r.value;return GC.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);_m(e)}function _m(e,t){let n=new on("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=E7+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Pue(e){let t={},n;for(n in e)GC.call(e,n)&&(t[zue(n)]=e[n]);return t}function zue(e){let t=e.replace(Eue,Uue);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Nue(e,t){return t.toUpperCase()}function Uue(e){return"-"+e.toLowerCase()}var Im={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var of=q(re(),1);var Hue={};function XC(e,t){let n=t||Hue,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return k7(e,r,i)}function k7(e,t,n){if(que(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return S7(e.children,t,n)}return Array.isArray(e)?S7(e,t,n):""}function S7(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=k7(e[i],t,n);return r.join("")}function que(e){return!!(e&&typeof e=="object")}function jn(e,t,n,r){let i=e.length,o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function yr(e,t){return e.length>0?(jn(e,e.length,0,t),e):t}var A7={}.hasOwnProperty;function T7(e){let t={},n=-1;for(;++n<e.length;)jue(t,e[n]);return t}function jue(e,t){let n;for(n in t){let i=(A7.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n],a;if(o)for(a in o){A7.call(i,a)||(i[a]=[]);let l=o[a];Vue(i[a],Array.isArray(l)?l:l?[l]:[])}}}function Vue(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);jn(e,0,0,r)}function D1(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function va(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var ui=Au(/[A-Za-z]/),xr=Au(/[\dA-Za-z]/),B7=Au(/[#-'*+\--9=?A-Z^-~]/);function Lm(e){return e!==null&&(e<32||e===127)}var Pm=Au(/\d/),O7=Au(/[\dA-Fa-f]/),M7=Au(/[!-/:-@[-`{-~]/);function Ce(e){return e!==null&&e<-2}function un(e){return e!==null&&(e<0||e===32)}function Ke(e){return e===-2||e===-1||e===32}var R7=Au(/\p{P}|\p{S}/u),F7=Au(/\s/);function Au(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Qe(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return a;function a(c){return Ke(c)?(e.enter(n),l(c)):t(c)}function l(c){return Ke(c)&&o++<i?(e.consume(c),l):(e.exit(n),t(c))}}var _7={tokenize:$ue};function $ue(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Qe(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){let c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Ce(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),a)}}var L7={tokenize:Gue},I7={tokenize:Wue};function Gue(e){let t=this,n=[],r=0,i,o,a;return l;function l(C){if(r<n.length){let M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,c,f)(C)}return f(C)}function c(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();let M=t.events.length,R=M,A;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){A=t.events[R][1].end;break}y(r);let P=M;for(;P<t.events.length;)t.events[P][1].end={...A},P++;return jn(t.events,R+1,0,t.events.slice(M)),t.events.length=P,f(C)}return l(C)}function f(C){if(r===n.length){if(!i)return g(C);if(i.currentConstruct&&i.currentConstruct.concrete)return x(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(I7,p,d)(C)}function p(C){return i&&w(),y(r),g(C)}function d(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,x(C)}function g(C){return t.containerState={},e.attempt(I7,m,x)(C)}function m(C){return r++,n.push([t.currentConstruct,t.containerState]),g(C)}function x(C){if(C===null){i&&w(),y(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),S(C)}function S(C){if(C===null){T(e.exit("chunkFlow"),!0),y(0),e.consume(C);return}return Ce(C)?(e.consume(C),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(C),S)}function T(C,M){let R=t.sliceStream(C);if(M&&R.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(R),t.parser.lazy[C.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<a&&(!i.events[A][1].end||i.events[A][1].end.offset>a))return;let P=t.events.length,V=P,J,_;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(J){_=t.events[V][1].end;break}J=!0}for(y(r),A=P;A<t.events.length;)t.events[A][1].end={..._},A++;jn(t.events,V+1,0,t.events.slice(P)),t.events.length=A}}function y(C){let M=n.length;for(;M-- >C;){let R=n[M];t.containerState=R[1],R[0].exit.call(t,e)}n.length=C}function w(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Wue(e,t,n){return Qe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function QC(e){if(e===null||un(e)||F7(e))return 1;if(R7(e))return 2}function ef(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}var zm={name:"attention",resolveAll:Kue,tokenize:Yue};function Kue(e,t){let n=-1,r,i,o,a,l,c,f,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},g={...e[n][1].start};P7(d,-c),P7(g,c),a={type:c>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},o={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},e[r][1].end={...a.start},e[n][1].start={...l.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=yr(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=yr(f,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),f=yr(f,ef(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=yr(f,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=yr(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,jn(e,r-1,n-r+3,f),n=r+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Yue(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=QC(r),o;return a;function a(c){return o=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===o)return e.consume(c),l;let f=e.exit("attentionSequence"),p=QC(c),d=!p||p===2&&i||n.includes(c),g=!i||i===2&&p||n.includes(r);return f._open=!!(o===42?d:d&&(i||!g)),f._close=!!(o===42?g:g&&(p||!d)),t(c)}}function P7(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ZC={name:"autolink",tokenize:Xue};function Xue(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(m){return ui(m)?(e.consume(m),a):m===64?n(m):f(m)}function a(m){return m===43||m===45||m===46||xr(m)?(r=1,l(m)):f(m)}function l(m){return m===58?(e.consume(m),r=0,c):(m===43||m===45||m===46||xr(m))&&r++<32?(e.consume(m),l):(r=0,f(m))}function c(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Lm(m)?n(m):(e.consume(m),c)}function f(m){return m===64?(e.consume(m),p):B7(m)?(e.consume(m),f):n(m)}function p(m){return xr(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,p):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):g(m)}function g(m){if((m===45||xr(m))&&r++<63){let x=m===45?g:d;return e.consume(m),x}return n(m)}}var Tu={partial:!0,tokenize:Que};function Que(e,t,n){return r;function r(o){return Ke(o)?Qe(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||Ce(o)?t(o):n(o)}}var w1={continuation:{tokenize:Jue},exit:ele,name:"blockQuote",tokenize:Zue};function Zue(e,t,n){let r=this;return i;function i(a){if(a===62){let l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return Ke(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Jue(e,t,n){let r=this;return i;function i(a){return Ke(a)?Qe(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(w1,t,n)(a)}}function ele(e){e.exit("blockQuote")}var C1={name:"characterEscape",tokenize:tle};function tle(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return M7(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}var S1={name:"characterReference",tokenize:nle};function nle(e,t,n){let r=this,i=0,o,a;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),c}function c(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,a=xr,p(d))}function f(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=O7,p):(e.enter("characterReferenceValue"),o=7,a=Pm,p(d))}function p(d){if(d===59&&i){let g=e.exit("characterReferenceValue");return a===xr&&!Fi(r.sliceSerialize(g))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),p):n(d)}}var z7={partial:!0,tokenize:ile},k1={concrete:!0,name:"codeFenced",tokenize:rle};function rle(e,t,n){let r=this,i={partial:!0,tokenize:R},o=0,a=0,l;return c;function c(A){return f(A)}function f(A){let P=r.events[r.events.length-1];return o=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,l=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(A)}function p(A){return A===l?(a++,e.consume(A),p):a<3?n(A):(e.exit("codeFencedFenceSequence"),Ke(A)?Qe(e,d,"whitespace")(A):d(A))}function d(A){return A===null||Ce(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(z7,S,M)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||Ce(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):Ke(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qe(e,m,"whitespace")(A)):A===96&&A===l?n(A):(e.consume(A),g)}function m(A){return A===null||Ce(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===null||Ce(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===l?n(A):(e.consume(A),x)}function S(A){return e.attempt(i,M,T)(A)}function T(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),y}function y(A){return o>0&&Ke(A)?Qe(e,w,"linePrefix",o+1)(A):w(A)}function w(A){return A===null||Ce(A)?e.check(z7,S,M)(A):(e.enter("codeFlowValue"),C(A))}function C(A){return A===null||Ce(A)?(e.exit("codeFlowValue"),w(A)):(e.consume(A),C)}function M(A){return e.exit("codeFenced"),t(A)}function R(A,P,V){let J=0;return _;function _(G){return A.enter("lineEnding"),A.consume(G),A.exit("lineEnding"),de}function de(G){return A.enter("codeFencedFence"),Ke(G)?Qe(A,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):Z(G)}function Z(G){return G===l?(A.enter("codeFencedFenceSequence"),H(G)):V(G)}function H(G){return G===l?(J++,A.consume(G),H):J>=a?(A.exit("codeFencedFenceSequence"),Ke(G)?Qe(A,K,"whitespace")(G):K(G)):V(G)}function K(G){return G===null||Ce(G)?(A.exit("codeFencedFence"),P(G)):V(G)}}}function ile(e,t,n){let r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}var Nm={name:"codeIndented",tokenize:ale},ole={partial:!0,tokenize:ule};function ale(e,t,n){let r=this;return i;function i(f){return e.enter("codeIndented"),Qe(e,o,"linePrefix",4+1)(f)}function o(f){let p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(f):n(f)}function a(f){return f===null?c(f):Ce(f)?e.attempt(ole,a,c)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||Ce(f)?(e.exit("codeFlowValue"),a(f)):(e.consume(f),l)}function c(f){return e.exit("codeIndented"),t(f)}}function ule(e,t,n){let r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):Ce(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Qe(e,o,"linePrefix",4+1)(a)}function o(a){let l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):Ce(a)?i(a):n(a)}}var JC={name:"codeText",previous:sle,resolve:lle,tokenize:cle};function lle(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function sle(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cle(e,t,n){let r=this,i=0,o,a;return l;function l(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),i++,c):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(a=e.enter("codeTextSequence"),o=0,d(g)):Ce(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||Ce(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),p)}function d(g){return g===96?(e.consume(g),o++,d):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",p(g))}}var A1=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){let r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){let i=n||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Um(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Um(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Um(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let n=this.left.splice(t,Number.POSITIVE_INFINITY);Um(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Um(this.left,n.reverse())}}};function Um(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function T1(e){let t={},n=-1,r,i,o,a,l,c,f,p=new A1(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,fle(p,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=p.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(p.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(a[1].type!=="linePrefix")break;i&&(r[1].end={...p.get(i)[1].start},l=p.slice(i,n),l.unshift(r),p.splice(i,n-i+1,l))}}return jn(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function fle(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,o=[],a=n._tokenizer||r.parser[n.contentType](n.start),l=a.events,c=[],f={},p,d,g=-1,m=n,x=0,S=0,T=[S];for(;m;){for(;e.get(++i)[1]!==m;);o.push(i),m._tokenizer||(p=r.sliceStream(m),m.next||p.push(null),d&&a.defineSkip(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(S=g+1,T.push(S),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):T.pop(),g=T.length;g--;){let y=l.slice(T[g],T[g+1]),w=o.pop();c.push([w,w+y.length-1]),e.splice(w,2,y)}for(c.reverse(),g=-1;++g<c.length;)f[x+c[g][0]]=x+c[g][1],x+=c[g][1]-c[g][0]-1;return f}var eS={resolve:mle,tokenize:hle},ple={partial:!0,tokenize:dle};function mle(e){return T1(e),e}function hle(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):Ce(l)?e.check(ple,a,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function dle(e,t,n){let r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Qe(e,o,"linePrefix")}function o(a){if(a===null||Ce(a))return n(a);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function B1(e,t,n,r,i,o,a,l,c){let f=c||Number.POSITIVE_INFINITY,p=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),g):y===null||y===32||y===41||Lm(y)?n(y):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),S(y))}function g(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(l),g(y)):y===null||y===60||Ce(y)?n(y):(e.consume(y),y===92?x:m)}function x(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function S(y){return!p&&(y===null||y===41||un(y))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(y)):p<f&&y===40?(e.consume(y),p++,S):y===41?(e.consume(y),p--,S):y===null||y===32||y===40||Lm(y)?n(y):(e.consume(y),y===92?T:S)}function T(y){return y===40||y===41||y===92?(e.consume(y),S):S(y)}}function O1(e,t,n,r,i,o){let a=this,l=0,c;return f;function f(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(o),p}function p(m){return l>999||m===null||m===91||m===93&&!c||m===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(m):m===93?(e.exit(o),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):Ce(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||Ce(m)||l++>999?(e.exit("chunkString"),p(m)):(e.consume(m),c||(c=!Ke(m)),m===92?g:d)}function g(m){return m===91||m===92||m===93?(e.consume(m),l++,d):d(m)}}function M1(e,t,n,r,i,o){let a;return l;function l(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),a=g===40?41:g,c):n(g)}function c(g){return g===a?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):(e.enter(o),f(g))}function f(g){return g===a?(e.exit(o),c(a)):g===null?n(g):Ce(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Qe(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===a||g===null||Ce(g)?(e.exit("chunkString"),f(g)):(e.consume(g),g===92?d:p)}function d(g){return g===a||g===92?(e.consume(g),p):p(g)}}function ql(e,t){let n;return r;function r(i){return Ce(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ke(i)?Qe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var tS={name:"definition",tokenize:vle},gle={partial:!0,tokenize:yle};function vle(e,t,n){let r=this,i;return o;function o(m){return e.enter("definition"),a(m)}function a(m){return O1.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return i=va(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),c):n(m)}function c(m){return un(m)?ql(e,f)(m):f(m)}function f(m){return B1(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt(gle,d,d)(m)}function d(m){return Ke(m)?Qe(e,g,"whitespace")(m):g(m)}function g(m){return m===null||Ce(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function yle(e,t,n){return r;function r(l){return un(l)?ql(e,i)(l):n(l)}function i(l){return M1(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return Ke(l)?Qe(e,a,"whitespace")(l):a(l)}function a(l){return l===null||Ce(l)?t(l):n(l)}}var nS={name:"hardBreakEscape",tokenize:xle};function xle(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return Ce(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}var rS={name:"headingAtx",resolve:ble,tokenize:Ele};function ble(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},jn(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Ele(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&r++<6?(e.consume(p),a):p===null||un(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),c(p)):p===null||Ce(p)?(e.exit("atxHeading"),t(p)):Ke(p)?Qe(e,l,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function c(p){return p===35?(e.consume(p),c):(e.exit("atxHeadingSequence"),l(p))}function f(p){return p===null||p===35||un(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),f)}}var N7=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],iS=["pre","script","style","textarea"];var oS={concrete:!0,name:"htmlFlow",resolveTo:Cle,tokenize:Sle},Dle={partial:!0,tokenize:Ale},wle={partial:!0,tokenize:kle};function Cle(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Sle(e,t,n){let r=this,i,o,a,l,c;return f;function f(D){return p(D)}function p(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),g):D===47?(e.consume(D),o=!0,S):D===63?(e.consume(D),i=3,r.interrupt?t:E):ui(D)?(e.consume(D),a=String.fromCharCode(D),T):n(D)}function g(D){return D===45?(e.consume(D),i=2,m):D===91?(e.consume(D),i=5,l=0,x):ui(D)?(e.consume(D),i=4,r.interrupt?t:E):n(D)}function m(D){return D===45?(e.consume(D),r.interrupt?t:E):n(D)}function x(D){let Ee="CDATA[";return D===Ee.charCodeAt(l++)?(e.consume(D),l===Ee.length?r.interrupt?t:Z:x):n(D)}function S(D){return ui(D)?(e.consume(D),a=String.fromCharCode(D),T):n(D)}function T(D){if(D===null||D===47||D===62||un(D)){let Ee=D===47,ze=a.toLowerCase();return!Ee&&!o&&iS.includes(ze)?(i=1,r.interrupt?t(D):Z(D)):N7.includes(a.toLowerCase())?(i=6,Ee?(e.consume(D),y):r.interrupt?t(D):Z(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):o?w(D):C(D))}return D===45||xr(D)?(e.consume(D),a+=String.fromCharCode(D),T):n(D)}function y(D){return D===62?(e.consume(D),r.interrupt?t:Z):n(D)}function w(D){return Ke(D)?(e.consume(D),w):_(D)}function C(D){return D===47?(e.consume(D),_):D===58||D===95||ui(D)?(e.consume(D),M):Ke(D)?(e.consume(D),C):_(D)}function M(D){return D===45||D===46||D===58||D===95||xr(D)?(e.consume(D),M):R(D)}function R(D){return D===61?(e.consume(D),A):Ke(D)?(e.consume(D),R):C(D)}function A(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),c=D,P):Ke(D)?(e.consume(D),A):V(D)}function P(D){return D===c?(e.consume(D),c=null,J):D===null||Ce(D)?n(D):(e.consume(D),P)}function V(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||un(D)?R(D):(e.consume(D),V)}function J(D){return D===47||D===62||Ke(D)?C(D):n(D)}function _(D){return D===62?(e.consume(D),de):n(D)}function de(D){return D===null||Ce(D)?Z(D):Ke(D)?(e.consume(D),de):n(D)}function Z(D){return D===45&&i===2?(e.consume(D),me):D===60&&i===1?(e.consume(D),U):D===62&&i===4?(e.consume(D),ve):D===63&&i===3?(e.consume(D),E):D===93&&i===5?(e.consume(D),Q):Ce(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Dle,Se,H)(D)):D===null||Ce(D)?(e.exit("htmlFlowData"),H(D)):(e.consume(D),Z)}function H(D){return e.check(wle,K,Se)(D)}function K(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),G}function G(D){return D===null||Ce(D)?H(D):(e.enter("htmlFlowData"),Z(D))}function me(D){return D===45?(e.consume(D),E):Z(D)}function U(D){return D===47?(e.consume(D),a="",te):Z(D)}function te(D){if(D===62){let Ee=a.toLowerCase();return iS.includes(Ee)?(e.consume(D),ve):Z(D)}return ui(D)&&a.length<8?(e.consume(D),a+=String.fromCharCode(D),te):Z(D)}function Q(D){return D===93?(e.consume(D),E):Z(D)}function E(D){return D===62?(e.consume(D),ve):D===45&&i===2?(e.consume(D),E):Z(D)}function ve(D){return D===null||Ce(D)?(e.exit("htmlFlowData"),Se(D)):(e.consume(D),ve)}function Se(D){return e.exit("htmlFlow"),t(D)}}function kle(e,t,n){let r=this;return i;function i(a){return Ce(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Ale(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Tu,t,n)}}var aS={name:"htmlText",tokenize:Tle};function Tle(e,t,n){let r=this,i,o,a;return l;function l(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),f):E===47?(e.consume(E),R):E===63?(e.consume(E),C):ui(E)?(e.consume(E),V):n(E)}function f(E){return E===45?(e.consume(E),p):E===91?(e.consume(E),o=0,x):ui(E)?(e.consume(E),w):n(E)}function p(E){return E===45?(e.consume(E),m):n(E)}function d(E){return E===null?n(E):E===45?(e.consume(E),g):Ce(E)?(a=d,U(E)):(e.consume(E),d)}function g(E){return E===45?(e.consume(E),m):d(E)}function m(E){return E===62?me(E):E===45?g(E):d(E)}function x(E){let ve="CDATA[";return E===ve.charCodeAt(o++)?(e.consume(E),o===ve.length?S:x):n(E)}function S(E){return E===null?n(E):E===93?(e.consume(E),T):Ce(E)?(a=S,U(E)):(e.consume(E),S)}function T(E){return E===93?(e.consume(E),y):S(E)}function y(E){return E===62?me(E):E===93?(e.consume(E),y):S(E)}function w(E){return E===null||E===62?me(E):Ce(E)?(a=w,U(E)):(e.consume(E),w)}function C(E){return E===null?n(E):E===63?(e.consume(E),M):Ce(E)?(a=C,U(E)):(e.consume(E),C)}function M(E){return E===62?me(E):C(E)}function R(E){return ui(E)?(e.consume(E),A):n(E)}function A(E){return E===45||xr(E)?(e.consume(E),A):P(E)}function P(E){return Ce(E)?(a=P,U(E)):Ke(E)?(e.consume(E),P):me(E)}function V(E){return E===45||xr(E)?(e.consume(E),V):E===47||E===62||un(E)?J(E):n(E)}function J(E){return E===47?(e.consume(E),me):E===58||E===95||ui(E)?(e.consume(E),_):Ce(E)?(a=J,U(E)):Ke(E)?(e.consume(E),J):me(E)}function _(E){return E===45||E===46||E===58||E===95||xr(E)?(e.consume(E),_):de(E)}function de(E){return E===61?(e.consume(E),Z):Ce(E)?(a=de,U(E)):Ke(E)?(e.consume(E),de):J(E)}function Z(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),i=E,H):Ce(E)?(a=Z,U(E)):Ke(E)?(e.consume(E),Z):(e.consume(E),K)}function H(E){return E===i?(e.consume(E),i=void 0,G):E===null?n(E):Ce(E)?(a=H,U(E)):(e.consume(E),H)}function K(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||un(E)?J(E):(e.consume(E),K)}function G(E){return E===47||E===62||un(E)?J(E):n(E)}function me(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function U(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),te}function te(E){return Ke(E)?Qe(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):Q(E)}function Q(E){return e.enter("htmlTextData"),a(E)}}var jl={name:"labelEnd",resolveAll:Rle,resolveTo:Fle,tokenize:_le},Ble={tokenize:Ile},Ole={tokenize:Lle},Mle={tokenize:Ple};function Rle(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&jn(e,0,e.length,n),e}function Fle(e,t){let n=e.length,r=0,i,o,a,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);let c={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},p={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return l=[["enter",c,t],["enter",f,t]],l=yr(l,e.slice(o+1,o+r+3)),l=yr(l,[["enter",p,t]]),l=yr(l,ef(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),l=yr(l,[["exit",p,t],e[a-2],e[a-1],["exit",f,t]]),l=yr(l,e.slice(a+1)),l=yr(l,[["exit",c,t]]),jn(e,o,e.length,l),e}function _le(e,t,n){let r=this,i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(g){return o?o._inactive?d(g):(a=r.parser.defined.includes(va(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),c):n(g)}function c(g){return g===40?e.attempt(Ble,p,a?p:d)(g):g===91?e.attempt(Ole,p,a?f:d)(g):a?p(g):d(g)}function f(g){return e.attempt(Mle,p,d)(g)}function p(g){return t(g)}function d(g){return o._balanced=!0,n(g)}}function Ile(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return un(d)?ql(e,o)(d):o(d)}function o(d){return d===41?p(d):B1(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return un(d)?ql(e,c)(d):p(d)}function l(d){return n(d)}function c(d){return d===34||d===39||d===40?M1(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):p(d)}function f(d){return un(d)?ql(e,p)(d):p(d)}function p(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Lle(e,t,n){let r=this;return i;function i(l){return O1.call(r,e,o,a,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(va(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function a(l){return n(l)}}function Ple(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}var uS={name:"labelStartImage",resolveAll:jl.resolveAll,tokenize:zle};function zle(e,t,n){let r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}var lS={name:"labelStartLink",resolveAll:jl.resolveAll,tokenize:Nle};function Nle(e,t,n){let r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}var Hm={name:"lineEnding",tokenize:Ule};function Ule(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Qe(e,t,"linePrefix")}}var Vl={name:"thematicBreak",tokenize:Hle};function Hle(e,t,n){let r=0,i;return o;function o(f){return e.enter("thematicBreak"),a(f)}function a(f){return i=f,l(f)}function l(f){return f===i?(e.enter("thematicBreakSequence"),c(f)):r>=3&&(f===null||Ce(f))?(e.exit("thematicBreak"),t(f)):n(f)}function c(f){return f===i?(e.consume(f),r++,c):(e.exit("thematicBreakSequence"),Ke(f)?Qe(e,l,"whitespace")(f):l(f))}}var Jn={continuation:{tokenize:$le},exit:Wle,name:"list",tokenize:Vle},qle={partial:!0,tokenize:Kle},jle={partial:!0,tokenize:Gle};function Vle(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return l;function l(m){let x=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Pm(m)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Vl,n,f)(m):f(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(m)}return n(m)}function c(m){return Pm(m)&&++a<10?(e.consume(m),c):(!r.interrupt||a<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),f(m)):n(m)}function f(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Tu,r.interrupt?n:p,e.attempt(qle,g,d))}function p(m){return r.containerState.initialBlankLine=!0,o++,g(m)}function d(m){return Ke(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),g):n(m)}function g(m){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function $le(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Tu,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Qe(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!Ke(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jle,t,a)(l))}function a(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Qe(e,e.attempt(Jn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Gle(e,t,n){let r=this;return Qe(e,i,"listItemIndent",r.containerState.size+1);function i(o){let a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function Wle(e){e.exit(this.containerState.type)}function Kle(e,t,n){let r=this;return Qe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){let a=r.events[r.events.length-1];return!Ke(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}var R1={name:"setextUnderline",resolveTo:Yle,tokenize:Xle};function Yle(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);let a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function Xle(e,t,n){let r=this,i;return o;function o(f){let p=r.events.length,d;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){d=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=f,a(f)):n(f)}function a(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===i?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),Ke(f)?Qe(e,c,"lineSuffix")(f):c(f))}function c(f){return f===null||Ce(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}var U7={tokenize:Qle};function Qle(e){let t=this,n=e.attempt(Tu,r,e.attempt(this.parser.constructs.flowInitial,i,Qe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(eS,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}var H7={resolveAll:$7()},q7=V7("string"),j7=V7("text");function V7(e){return{resolveAll:$7(e==="text"?Zle:void 0),tokenize:t};function t(n){let r=this,i=this.parser.constructs[e],o=n.attempt(i,a,l);return a;function a(p){return f(p)?o(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),c}function c(p){return f(p)?(n.exit("data"),o(p)):(n.consume(p),c)}function f(p){if(p===null)return!0;let d=i[p],g=-1;if(d)for(;++g<d.length;){let m=d[g];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function $7(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Zle(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){let r=e[n-1][1],i=t.sliceStream(r),o=i.length,a=-1,l=0,c;for(;o--;){let f=i[o];if(typeof f=="string"){for(a=f.length;f.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(f===-2)c=!0,l++;else if(f!==-1){o++;break}}if(l){let f={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}var sS={};ay(sS,{attentionMarkers:()=>ase,contentInitial:()=>ese,disable:()=>use,document:()=>Jle,flow:()=>nse,flowInitial:()=>tse,insideSpan:()=>ose,string:()=>rse,text:()=>ise});var Jle={[42]:Jn,[43]:Jn,[45]:Jn,[48]:Jn,[49]:Jn,[50]:Jn,[51]:Jn,[52]:Jn,[53]:Jn,[54]:Jn,[55]:Jn,[56]:Jn,[57]:Jn,[62]:w1},ese={[91]:tS},tse={[-2]:Nm,[-1]:Nm,[32]:Nm},nse={[35]:rS,[42]:Vl,[45]:[R1,Vl],[60]:oS,[61]:R1,[95]:Vl,[96]:k1,[126]:k1},rse={[38]:S1,[92]:C1},ise={[-5]:Hm,[-4]:Hm,[-3]:Hm,[33]:uS,[38]:S1,[42]:zm,[60]:[ZC,aS],[91]:lS,[92]:[nS,C1],[93]:jl,[95]:zm,[96]:JC},ose={null:[zm,H7]},ase={null:[42,95]},use={null:[]};function G7(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],a=[],l=[],c=!0,f={attempt:J(P),check:J(V),consume:M,enter:R,exit:A,interrupt:J(V,{interrupt:!0})},p={code:null,containerState:{},defineSkip:y,events:[],now:T,parser:e,previous:null,sliceSerialize:x,sliceStream:S,write:m},d=t.tokenize.call(p,f),g;return t.resolveAll&&o.push(t),p;function m(H){return a=yr(a,H),w(),a[a.length-1]!==null?[]:(_(t,0),p.events=ef(o,p.events,p),p.events)}function x(H,K){return sse(S(H),K)}function S(H){return lse(a,H)}function T(){let{_bufferIndex:H,_index:K,line:G,column:me,offset:U}=r;return{_bufferIndex:H,_index:K,line:G,column:me,offset:U}}function y(H){i[H.line]=H.column,Z()}function w(){let H;for(;r._index<a.length;){let K=a[r._index];if(typeof K=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<K.length;)C(K.charCodeAt(r._bufferIndex));else C(K)}}function C(H){c=void 0,g=H,d=d(H)}function M(H){Ce(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,Z()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),p.previous=H,c=!0}function R(H,K){let G=K||{};return G.type=H,G.start=T(),p.events.push(["enter",G,p]),l.push(G),G}function A(H){let K=l.pop();return K.end=T(),p.events.push(["exit",K,p]),K}function P(H,K){_(H,K.from)}function V(H,K){K.restore()}function J(H,K){return G;function G(me,U,te){let Q,E,ve,Se;return Array.isArray(me)?Ee(me):"tokenize"in me?Ee([me]):D(me);function D(Te){return Ze;function Ze(He){let je=He!==null&&Te[He],Ne=He!==null&&Te.null,rt=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Ne)?Ne:Ne?[Ne]:[]];return Ee(rt)(He)}}function Ee(Te){return Q=Te,E=0,Te.length===0?te:ze(Te[E])}function ze(Te){return Ze;function Ze(He){return Se=de(),ve=Te,Te.partial||(p.currentConstruct=Te),Te.name&&p.parser.constructs.disable.null.includes(Te.name)?_e(He):Te.tokenize.call(K?Object.assign(Object.create(p),K):p,f,Pe,_e)(He)}}function Pe(Te){return c=!0,H(ve,Se),U}function _e(Te){return c=!0,Se.restore(),++E<Q.length?ze(Q[E]):te}}}function _(H,K){H.resolveAll&&!o.includes(H)&&o.push(H),H.resolve&&jn(p.events,K,p.events.length-K,H.resolve(p.events.slice(K),p)),H.resolveTo&&(p.events=H.resolveTo(p.events,p))}function de(){let H=T(),K=p.previous,G=p.currentConstruct,me=p.events.length,U=Array.from(l);return{from:me,restore:te};function te(){r=H,p.previous=K,p.currentConstruct=G,p.events.length=me,l=U,Z()}}function Z(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function lse(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex,a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){let l=a[0];typeof l=="string"?a[0]=l.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function sse(e,t){let n=-1,r=[],i;for(;++n<e.length;){let o=e[n],a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
|
|
1390
|
-
`;break}case-3:{a=`\r
|
|
1391
|
-
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function cS(e){let r={constructs:T7([sS,...(e||{}).extensions||[]]),content:i(_7),defined:[],document:i(L7),flow:i(U7),lazy:{},string:i(q7),text:i(j7)};return r;function i(o){return a;function a(l){return G7(r,o,l)}}}function fS(e){for(;!T1(e););return e}var W7=/[\0\t\n\r]/g;function pS(){let e=1,t="",n=!0,r;return i;function i(o,a,l){let c=[],f,p,d,g,m;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(W7.lastIndex=d,f=W7.exec(o),g=f&&f.index!==void 0?f.index:o.length,m=o.charCodeAt(g),!f){t=o.slice(d);break}if(m===10&&d===g&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),d<g&&(c.push(o.slice(d,g)),e+=g-d),m){case 0:{c.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,c.push(-2);e++<p;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}d=g+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}var cse=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function K7(e){return e.replace(cse,fse)}function fse(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),o=i===120||i===88;return D1(n.slice(o?2:1),o?16:10)}return Fi(n)||e}function tf(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Y7(e.position):"start"in e||"end"in e?Y7(e):"line"in e||"column"in e?mS(e):""}function mS(e){return X7(e&&e.line)+":"+X7(e&&e.column)}function Y7(e){return mS(e&&e.start)+"-"+mS(e&&e.end)}function X7(e){return e&&typeof e=="number"?e:1}var Z7={}.hasOwnProperty;function hS(e,t,n){return typeof t!="string"&&(n=t,t=void 0),pse(n)(fS(cS(n).document().write(pS()(e,t,!0))))}function pse(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ln),autolinkProtocol:J,autolinkEmail:J,atxHeading:o(Ot),blockQuote:o(He),characterEscape:J,characterReference:J,codeFenced:o(je),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(je,a),codeText:o(Ne,a),codeTextData:J,data:J,codeFlowValue:J,definition:o(rt),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(br),hardBreakEscape:o(er),hardBreakTrailing:o(er),htmlFlow:o(Lr,a),htmlFlowData:J,htmlText:o(Lr,a),htmlTextData:J,image:o(Rn),label:a,link:o(ln),listItem:o(Pr),listItemValue:g,listOrdered:o(tr,d),listUnordered:o(tr),paragraph:o(li),reference:D,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(Ot),strong:o(si),thematicBreak:o(Fn)},exit:{atxHeading:c(),atxHeadingSequence:R,autolink:c(),autolinkEmail:Ze,autolinkProtocol:Te,blockQuote:c(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:ze,characterReferenceMarkerNumeric:ze,characterReferenceValue:Pe,characterReference:_e,codeFenced:c(T),codeFencedFence:S,codeFencedFenceInfo:m,codeFencedFenceMeta:x,codeFlowValue:_,codeIndented:c(y),codeText:c(G),codeTextData:_,data:_,definition:c(),definitionDestinationString:M,definitionLabelString:w,definitionTitleString:C,emphasis:c(),hardBreakEscape:c(Z),hardBreakTrailing:c(Z),htmlFlow:c(H),htmlFlowData:_,htmlText:c(K),htmlTextData:_,image:c(U),label:Q,labelText:te,lineEnding:de,link:c(me),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Ee,resourceDestinationString:E,resourceTitleString:ve,resource:Se,setextHeading:c(V),setextHeadingLineSequence:P,setextHeadingText:A,strong:c(),thematicBreak:c()}};J7(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(ee){let z={type:"root",children:[]},X={stack:[z],tokenStack:[],config:t,enter:l,exit:f,buffer:a,resume:p,data:n},pe=[],ke=-1;for(;++ke<ee.length;)if(ee[ke][1].type==="listOrdered"||ee[ke][1].type==="listUnordered")if(ee[ke][0]==="enter")pe.push(ke);else{let Re=pe.pop();ke=i(ee,Re,ke)}for(ke=-1;++ke<ee.length;){let Re=t[ee[ke][0]];Z7.call(Re,ee[ke][1].type)&&Re[ee[ke][1].type].call(Object.assign({sliceSerialize:ee[ke][2].sliceSerialize},X),ee[ke][1])}if(X.tokenStack.length>0){let Re=X.tokenStack[X.tokenStack.length-1];(Re[1]||Q7).call(X,void 0,Re[0])}for(z.position={start:Bu(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Bu(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},ke=-1;++ke<t.transforms.length;)z=t.transforms[ke](z)||z;return z}function i(ee,z,X){let pe=z-1,ke=-1,Re=!1,_t,zt,jt,_n;for(;++pe<=X;){let Vt=ee[pe];switch(Vt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Vt[0]==="enter"?ke++:ke--,_n=void 0;break}case"lineEndingBlank":{Vt[0]==="enter"&&(_t&&!_n&&!ke&&!jt&&(jt=pe),_n=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_n=void 0}if(!ke&&Vt[0]==="enter"&&Vt[1].type==="listItemPrefix"||ke===-1&&Vt[0]==="exit"&&(Vt[1].type==="listUnordered"||Vt[1].type==="listOrdered")){if(_t){let vt=pe;for(zt=void 0;vt--;){let In=ee[vt];if(In[1].type==="lineEnding"||In[1].type==="lineEndingBlank"){if(In[0]==="exit")continue;zt&&(ee[zt][1].type="lineEndingBlank",Re=!0),In[1].type="lineEnding",zt=vt}else if(!(In[1].type==="linePrefix"||In[1].type==="blockQuotePrefix"||In[1].type==="blockQuotePrefixWhitespace"||In[1].type==="blockQuoteMarker"||In[1].type==="listItemIndent"))break}jt&&(!zt||jt<zt)&&(_t._spread=!0),_t.end=Object.assign({},zt?ee[zt][1].start:Vt[1].end),ee.splice(zt||pe,0,["exit",_t,Vt[2]]),pe++,X++}if(Vt[1].type==="listItemPrefix"){let vt={type:"listItem",_spread:!1,start:Object.assign({},Vt[1].start),end:void 0};_t=vt,ee.splice(pe,0,["enter",vt,Vt[2]]),pe++,X++,jt=void 0,_n=!0}}}return ee[z][1]._spread=Re,X}function o(ee,z){return X;function X(pe){l.call(this,ee(pe),pe),z&&z.call(this,pe)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(ee,z,X){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([z,X||void 0]),ee.position={start:Bu(z.start),end:void 0}}function c(ee){return z;function z(X){ee&&ee.call(this,X),f.call(this,X)}}function f(ee,z){let X=this.stack.pop(),pe=this.tokenStack.pop();if(pe)pe[0].type!==ee.type&&(z?z.call(this,ee,pe[0]):(pe[1]||Q7).call(this,ee,pe[0]));else throw new Error("Cannot close `"+ee.type+"` ("+tf({start:ee.start,end:ee.end})+"): it\u2019s not open");X.position.end=Bu(ee.end)}function p(){return XC(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function g(ee){if(this.data.expectingFirstListItemValue){let z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function m(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.lang=ee}function x(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.meta=ee}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.value=ee.replace(/(\r?\n|\r)$/g,"")}function w(ee){let z=this.resume(),X=this.stack[this.stack.length-1];X.label=z,X.identifier=va(this.sliceSerialize(ee)).toLowerCase()}function C(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.title=ee}function M(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.url=ee}function R(ee){let z=this.stack[this.stack.length-1];if(!z.depth){let X=this.sliceSerialize(ee).length;z.depth=X}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function P(ee){let z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function J(ee){let X=this.stack[this.stack.length-1].children,pe=X[X.length-1];(!pe||pe.type!=="text")&&(pe=ya(),pe.position={start:Bu(ee.start),end:void 0},X.push(pe)),this.stack.push(pe)}function _(ee){let z=this.stack.pop();z.value+=this.sliceSerialize(ee),z.position.end=Bu(ee.end)}function de(ee){let z=this.stack[this.stack.length-1];if(this.data.atHardBreak){let X=z.children[z.children.length-1];X.position.end=Bu(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(J.call(this,ee),_.call(this,ee))}function Z(){this.data.atHardBreak=!0}function H(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.value=ee}function K(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.value=ee}function G(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.value=ee}function me(){let ee=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=z,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function U(){let ee=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=z,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function te(ee){let z=this.sliceSerialize(ee),X=this.stack[this.stack.length-2];X.label=K7(z),X.identifier=va(z).toLowerCase()}function Q(){let ee=this.stack[this.stack.length-1],z=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){let pe=ee.children;X.children=pe}else X.alt=z}function E(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.url=ee}function ve(){let ee=this.resume(),z=this.stack[this.stack.length-1];z.title=ee}function Se(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function Ee(ee){let z=this.resume(),X=this.stack[this.stack.length-1];X.label=z,X.identifier=va(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function ze(ee){this.data.characterReferenceType=ee.type}function Pe(ee){let z=this.sliceSerialize(ee),X=this.data.characterReferenceType,pe;X?(pe=D1(z,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pe=Fi(z);let ke=this.stack[this.stack.length-1];ke.value+=pe}function _e(ee){let z=this.stack.pop();z.position.end=Bu(ee.end)}function Te(ee){_.call(this,ee);let z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(ee)}function Ze(ee){_.call(this,ee);let z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(ee)}function He(){return{type:"blockquote",children:[]}}function je(){return{type:"code",lang:null,meta:null,value:""}}function Ne(){return{type:"inlineCode",value:""}}function rt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function br(){return{type:"emphasis",children:[]}}function Ot(){return{type:"heading",depth:0,children:[]}}function er(){return{type:"break"}}function Lr(){return{type:"html",value:""}}function Rn(){return{type:"image",title:null,url:"",alt:null}}function ln(){return{type:"link",title:null,url:"",children:[]}}function tr(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function Pr(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function li(){return{type:"paragraph",children:[]}}function si(){return{type:"strong",children:[]}}function ya(){return{type:"text",value:""}}function Fn(){return{type:"thematicBreak"}}}function Bu(e){return{line:e.line,column:e.column,offset:e.offset}}function J7(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?J7(e,r):mse(e,r)}}function mse(e,t){let n;for(n in t)if(Z7.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r);break}}}function Q7(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+tf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+tf({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+tf({start:t.start,end:t.end})+") is still open")}function F1(e){let t=this;t.parser=n;function n(r){return hS(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function e8(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function t8(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
1392
|
-
`}]}function n8(e,t){let n=t.value?t.value+`
|
|
1393
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function r8(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function i8(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var m7e=Ou(/[A-Za-z]/),dS=Ou(/[\dA-Za-z]/),h7e=Ou(/[#-'*+\--9=?A-Z^-~]/);var d7e=Ou(/\d/),g7e=Ou(/[\dA-Fa-f]/),v7e=Ou(/[!-/:-@[-`{-~]/);var y7e=Ou(/\p{P}|\p{S}/u),x7e=Ou(/\s/);function Ou(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ni(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),a="";if(o===37&&dS(e.charCodeAt(n+1))&&dS(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){let l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(a=String.fromCharCode(o,l),i=1):a="\uFFFD"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function o8(e,t){let n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ni(r.toLowerCase()),o=e.footnoteOrder.indexOf(r),a,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,l+=1,e.footnoteCounts.set(r,l);let c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,c);let f={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,f),e.applyData(t,f)}function a8(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function u8(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function _1(e,t){let n=t.referenceType,r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function l8(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _1(e,t);let i={src:Ni(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function s8(e,t){let n={src:Ni(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function c8(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function f8(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _1(e,t);let i={href:Ni(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function p8(e,t){let n={href:Ni(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function m8(e,t,n){let r=e.all(t),i=n?hse(n):h8(t),o={},a=[];if(typeof t.checked=="boolean"){let p=r[0],d;p&&p.type==="element"&&p.tagName==="p"?d=p:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){let p=r[l];(i||l!==0||p.type!=="element"||p.tagName!=="p")&&a.push({type:"text",value:`
|
|
1394
|
-
`}),p.type==="element"&&p.tagName==="p"&&!i?a.push(...p.children):a.push(p)}let c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
|
|
1395
|
-
`});let f={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,f),e.applyData(t,f)}function hse(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=h8(n[r])}return t}function h8(e){let t=e.spread;return t??e.children.length>1}function d8(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){let a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function g8(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function v8(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function y8(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function x8(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){let a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=Jc(t.children[1]),c=E1(t.children[t.children.length-1]);l&&c&&(a.position={start:l,end:c}),i.push(a)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function b8(e,t,n){let r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,l=a?a.length:t.children.length,c=-1,f=[];for(;++c<l;){let d=t.children[c],g={},m=a?a[c]:void 0;m&&(g.align=m);let x={type:"element",tagName:o,properties:g,children:[]};d&&(x.children=e.all(d),e.patch(d,x),x=e.applyData(d,x)),f.push(x)}let p={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,p),e.applyData(t,p)}function E8(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function w8(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(D8(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(D8(t.slice(i),i>0,!1)),o.join("")}function D8(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===9||o===32;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===9||o===32;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function C8(e,t){let n={type:"text",value:w8(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function S8(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var k8={blockquote:e8,break:t8,code:n8,delete:r8,emphasis:i8,footnoteReference:o8,heading:a8,html:u8,imageReference:l8,image:s8,inlineCode:c8,linkReference:f8,link:p8,listItem:m8,list:d8,paragraph:g8,root:v8,strong:y8,table:x8,tableCell:E8,tableRow:b8,text:C8,thematicBreak:S8,toml:I1,yaml:I1,definition:I1,footnoteDefinition:I1};function I1(){}var A8=typeof self=="object"?self:globalThis,yse=(e,t)=>{let n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);let[o,a]=t[i];switch(o){case 0:case-1:return n(a,i);case 1:{let l=n([],i);for(let c of a)l.push(r(c));return l}case 2:{let l=n({},i);for(let[c,f]of a)l[r(c)]=r(f);return l}case 3:return n(new Date(a),i);case 4:{let{source:l,flags:c}=a;return n(new RegExp(l,c),i)}case 5:{let l=n(new Map,i);for(let[c,f]of a)l.set(r(c),r(f));return l}case 6:{let l=n(new Set,i);for(let c of a)l.add(r(c));return l}case 7:{let{name:l,message:c}=a;return n(new A8[l](c),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:l}=new Uint8Array(a);return n(new DataView(l),a)}}return n(new A8[o](a),i)};return r},yS=e=>yse(new Map,e)(0);var nf="",{toString:xse}={},{keys:bse}=Object,qm=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let n=xse.call(e).slice(8,-1);switch(n){case"Array":return[1,nf];case"Object":return[2,nf];case"Date":return[3,nf];case"RegExp":return[4,nf];case"Map":return[5,nf];case"Set":return[6,nf];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},P1=([e,t])=>e===0&&(t==="function"||t==="symbol"),Ese=(e,t,n,r)=>{let i=(a,l)=>{let c=r.push(a)-1;return n.set(l,c),c},o=a=>{if(n.has(a))return n.get(a);let[l,c]=qm(a);switch(l){case 0:{let p=a;switch(c){case"bigint":l=8,p=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);p=null;break;case"undefined":return i([-1],a)}return i([l,p],a)}case 1:{if(c){let g=a;return c==="DataView"?g=new Uint8Array(a.buffer):c==="ArrayBuffer"&&(g=new Uint8Array(a)),i([c,[...g]],a)}let p=[],d=i([l,p],a);for(let g of a)p.push(o(g));return d}case 2:{if(c)switch(c){case"BigInt":return i([c,a.toString()],a);case"Boolean":case"Number":case"String":return i([c,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());let p=[],d=i([l,p],a);for(let g of bse(a))(e||!P1(qm(a[g])))&&p.push([o(g),o(a[g])]);return d}case 3:return i([l,a.toISOString()],a);case 4:{let{source:p,flags:d}=a;return i([l,{source:p,flags:d}],a)}case 5:{let p=[],d=i([l,p],a);for(let[g,m]of a)(e||!(P1(qm(g))||P1(qm(m))))&&p.push([o(g),o(m)]);return d}case 6:{let p=[],d=i([l,p],a);for(let g of a)(e||!P1(qm(g)))&&p.push(o(g));return d}}let{message:f}=a;return i([l,{name:c,message:f}],a)};return o},xS=(e,{json:t,lossy:n}={})=>{let r=[];return Ese(!(t||n),!!t,new Map,r)(e),r};var rf=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?yS(xS(e,t)):structuredClone(e):(e,t)=>yS(xS(e,t));function Dse(e,t){let n=[{type:"text",value:"\u21A9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function wse(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function R8(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Dse,r=e.options.footnoteBackLabel||wse,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],c=-1;for(;++c<e.footnoteOrder.length;){let f=e.footnoteById.get(e.footnoteOrder[c]);if(!f)continue;let p=e.all(f),d=String(f.identifier).toUpperCase(),g=Ni(d.toLowerCase()),m=0,x=[],S=e.footnoteCounts.get(d);for(;S!==void 0&&++m<=S;){x.length>0&&x.push({type:"text",value:" "});let w=typeof n=="string"?n:n(c,m);typeof w=="string"&&(w={type:"text",value:w}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,m),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}let T=p[p.length-1];if(T&&T.type==="element"&&T.tagName==="p"){let w=T.children[T.children.length-1];w&&w.type==="text"?w.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...x)}else p.push(...x);let y={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(p,!0)};e.patch(f,y),l.push(y)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...rf(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
1396
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
|
|
1397
|
-
`}]}}var z1=function(e){if(e==null)return Ase;if(typeof e=="function")return N1(e);if(typeof e=="object")return Array.isArray(e)?Cse(e):Sse(e);if(typeof e=="string")return kse(e);throw new Error("Expected function, string, or object as test")};function Cse(e){let t=[],n=-1;for(;++n<e.length;)t[n]=z1(e[n]);return N1(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Sse(e){let t=e;return N1(n);function n(r){let i=r,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function kse(e){return N1(t);function t(n){return n&&n.type===e}}function N1(e){return t;function t(n,r,i){return!!(Tse(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Ase(){return!0}function Tse(e){return e!==null&&typeof e=="object"&&"type"in e}var F8=[],bS=!0,U1=!1,ES="skip";function DS(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;let o=z1(i),a=r?-1:1;l(e,void 0,[])();function l(c,f,p){let d=c&&typeof c=="object"?c:{};if(typeof d.type=="string"){let m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(c.type+(m?"<"+m+">":""))+")"})}return g;function g(){let m=F8,x,S,T;if((!t||o(c,f,p[p.length-1]||void 0))&&(m=Bse(n(c,p)),m[0]===U1))return m;if("children"in c&&c.children){let y=c;if(y.children&&m[0]!==ES)for(S=(r?y.children.length:-1)+a,T=p.concat(y);S>-1&&S<y.children.length;){let w=y.children[S];if(x=l(w,S,T)(),x[0]===U1)return x;S=typeof x[1]=="number"?x[1]:S+a}}return m}}}function Bse(e){return Array.isArray(e)?e:typeof e=="number"?[bS,e]:e==null?F8:[e]}function wS(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),DS(e,o,l,i);function l(c,f){let p=f[f.length-1],d=p?p.children.indexOf(c):void 0;return a(c,d,p)}}var CS={}.hasOwnProperty,Ose={};function I8(e,t){let n=t||Ose,r=new Map,i=new Map,o=new Map,a={...k8,...n.handlers},l={all:f,applyData:Rse,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:c,options:n,patch:Mse,wrap:_se};return wS(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){let d=p.type==="definition"?r:i,g=String(p.identifier).toUpperCase();d.has(g)||d.set(g,p)}}),l;function c(p,d){let g=p.type,m=l.handlers[g];if(CS.call(l.handlers,g)&&m)return m(l,p,d);if(l.options.passThrough&&l.options.passThrough.includes(g)){if("children"in p){let{children:S,...T}=p,y=rf(T);return y.children=l.all(p),y}return rf(p)}return(l.options.unknownHandler||Fse)(l,p,d)}function f(p){let d=[];if("children"in p){let g=p.children,m=-1;for(;++m<g.length;){let x=l.one(g[m],p);if(x){if(m&&g[m-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=_8(x.value)),!Array.isArray(x)&&x.type==="element")){let S=x.children[0];S&&S.type==="text"&&(S.value=_8(S.value))}Array.isArray(x)?d.push(...x):d.push(x)}}}return d}}function Mse(e,t){e.position&&(t.position=$C(e))}function Rse(e,t){let n=t;if(e&&e.data){let r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{let a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,rf(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Fse(e,t){let n=t.data||{},r="value"in t&&!(CS.call(n,"hProperties")||CS.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _se(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:`
|
|
1398
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
1399
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
1400
|
-
`}),n}function _8(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function H1(e,t){let n=I8(e,t),r=n.one(e,void 0),i=R8(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&("children"in o,o.children.push({type:"text",value:`
|
|
1401
|
-
`},i)),o}function q1(e,t){return e&&"run"in e?async function(n,r){let i=H1(n,{file:r,...t});await e.run(i,r)}:function(n,r){return H1(n,{file:r,...e||t})}}var j1=function(e){if(e==null)return zse;if(typeof e=="function")return V1(e);if(typeof e=="object")return Array.isArray(e)?Ise(e):Lse(e);if(typeof e=="string")return Pse(e);throw new Error("Expected function, string, or object as test")};function Ise(e){let t=[],n=-1;for(;++n<e.length;)t[n]=j1(e[n]);return V1(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Lse(e){let t=e;return V1(n);function n(r){let i=r,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function Pse(e){return V1(t);function t(n){return n&&n.type===e}}function V1(e){return t;function t(n,r,i){return!!(Nse(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function zse(){return!0}function Nse(e){return e!==null&&typeof e=="object"&&"type"in e}var L8=[],SS=!0,$1=!1,kS="skip";function AS(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;let o=j1(i),a=r?-1:1;l(e,void 0,[])();function l(c,f,p){let d=c&&typeof c=="object"?c:{};if(typeof d.type=="string"){let m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(c.type+(m?"<"+m+">":""))+")"})}return g;function g(){let m=L8,x,S,T;if((!t||o(c,f,p[p.length-1]||void 0))&&(m=Use(n(c,p)),m[0]===$1))return m;if("children"in c&&c.children){let y=c;if(y.children&&m[0]!==kS)for(S=(r?y.children.length:-1)+a,T=p.concat(y);S>-1&&S<y.children.length;){let w=y.children[S];if(x=l(w,S,T)(),x[0]===$1)return x;S=typeof x[1]=="number"?x[1]:S+a}}return m}}}function Use(e){return Array.isArray(e)?e:typeof e=="number"?[SS,e]:e==null?L8:[e]}function TS(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),AS(e,o,l,i);function l(c,f){let p=f[f.length-1],d=p?p.children.indexOf(c):void 0;return a(c,d,p)}}var Hse="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",P8=[],z8={allowDangerousHtml:!0},qse=/^(https?|ircs?|mailto|xmpp)$/i,jse=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function BS(e){let t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,l=e.rehypePlugins||P8,c=e.remarkPlugins||P8,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...z8}:z8,p=e.skipHtml,d=e.unwrapDisallowed,g=e.urlTransform||N8,m=Xp().use(F1).use(c).use(q1,f).use(l),x=new Dl;typeof r=="string"?x.value=r:(""+r,void 0),t&&a&&void 0;for(let w of jse)Object.hasOwn(e,w.from)&&(""+w.from+(w.to?"use `"+w.to+"` instead":"remove it")+Hse+w.id,void 0);let S=m.parse(x),T=m.runSync(S,x);return i&&(T={type:"element",tagName:"div",properties:{className:i},children:T.type==="root"?T.children:[T]}),TS(T,y),WC(T,{Fragment:of.Fragment,components:o,ignoreInvalidStyle:!0,jsx:of.jsx,jsxs:of.jsxs,passKeys:!0,passNode:!0});function y(w,C,M){if(w.type==="raw"&&M&&typeof C=="number")return p?M.children.splice(C,1):M.children[C]={type:"text",value:w.value},C;if(w.type==="element"){let R;for(R in Im)if(Object.hasOwn(Im,R)&&Object.hasOwn(w.properties,R)){let A=w.properties[R],P=Im[R];(P===null||P.includes(w.tagName))&&(w.properties[R]=g(String(A||""),R,w))}}if(w.type==="element"){let R=t?!t.includes(w.tagName):a?a.includes(w.tagName):!1;if(!R&&n&&typeof C=="number"&&(R=!n(w,C,M)),R&&M&&typeof C=="number")return d&&w.children?M.children.splice(C,1,...w.children):M.children.splice(C,1),C}}}function N8(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||qse.test(e.slice(0,t))?e:""}var OS=q(re());function U8({markdown:e,className:t,style:n}){return(0,OS.jsx)("div",{className:t,style:{...n,userSelect:"text"},children:(0,OS.jsx)(BS,{remarkPlugins:[sc],children:e})})}var G1=q(re());function OUe(e,t={markdown:""}){let n=(0,MS.createRoot)(e);return n.render((0,G1.jsx)(U8,{markdown:t.markdown,className:t.className,style:t.style})),{unmount(){try{n.unmount()}catch{}}}}function Vse({standaloneOptions:{onChange:e,placeholder:t,className:n,...r},standaloneMethodsRef:i}){let[o,a]=(0,To.useState)(r.initialMarkdown||""),l=(0,To.useRef)(o),c=FC(r);l.current=o,(0,To.useImperativeHandle)(i,()=>({getMarkdown(){return l.current},setMarkdown(p){l.current=p,a(p)}}),[l,a]);let f=(0,To.useCallback)(p=>{l.current=p,a(p),e?.(p)},[c]);return(0,G1.jsx)(r7,{editor:c,value:o,className:n||"",onChange:f,placeholder:t})}function MUe(e,t){let n=(0,To.createRef)(),r=(0,MS.createRoot)(e);return r.render((0,G1.jsx)(Vse,{standaloneMethodsRef:n,standaloneOptions:t})),{unmount(){try{r.unmount()}catch{}},getMarkdown(){return n.current?.getMarkdown()||""},setMarkdown(i){n.current?.setMarkdown(i)}}}export{OUe as createMarkdownDisplay,MUe as createWysimark};
|
|
1388
|
+
`;var dr=N(Z());function Dte({dest:e,close:t,icon:n,buttonCaption:r,buttonHint:i}){let a=Se(),u=(0,L8.useRef)(null),s=pi({src:u,dest:e},({src:f,dest:p},h)=>jg(f,h,{left:p.left-16,top:p.top+p.height},{margin:16}));async function c(f){if(f.target.files==null||f.target.files.length===0)return;Va(f);let{files:p}=f.target;for(let h of p)a.upload.upload(h);t()}return(0,dr.jsxs)(dr.Fragment,{children:[(0,dr.jsx)(eu,{close:t}),(0,dr.jsxs)(z8,{ref:u,style:s,children:[(0,dr.jsxs)("label",{children:[(0,dr.jsx)("input",{type:"file",multiple:!0,style:{display:"none"},onChange:c}),(0,dr.jsxs)(u0,{children:[n,(0,dr.jsx)("span",{style:{marginLeft:"0.5em"},children:r})]})]}),(0,dr.jsx)(l0,{children:i})]})]})}function P8({dest:e,close:t}){return(0,dr.jsx)(Dte,{dest:e,close:t,icon:(0,dr.jsx)(S8,{}),buttonCaption:"Select images...",buttonHint:"Select image files to upload and insert into the editor"})}var I8=[{icon:C8,title:ct("insertTable"),more:!0,Component:f8},{icon:A8,title:ct("insertImage"),more:!0,Component:P8,show:e=>e.toolbar.showUploadButtons??!1}],N8=I8,SD=[{icon:T8,title:ct("insert"),more:!0,children:I8}];var s0=[];var U8=N(Ng()),cc=N(Oe());var Pr=N(Z()),Cte=(0,U8.isHotkey)("enter");function H8({dest:e,close:t}){let n=Se(),r=(0,cc.useRef)(null),i=pi({src:r,dest:e},({src:p,dest:h},g)=>jg(p,g,{left:h.left-12,top:h.top+h.height},{margin:16})),[a,u]=(0,cc.useState)(""),s=()=>{n.anchor.insertLink(a,a,{select:!0}),W.focus(n),t()},c=(0,cc.useCallback)(p=>{u(p.currentTarget.value)},[u]);return(0,Pr.jsxs)(Pr.Fragment,{children:[(0,Pr.jsx)(eu,{close:t}),(0,Pr.jsxs)(EF,{ref:r,style:i,children:[(0,Pr.jsxs)(bF,{children:[(0,Pr.jsx)(xF,{type:"text",value:a,autoFocus:!0,onChange:c,onKeyDown:p=>{Cte(p)&&(p.preventDefault(),p.stopPropagation(),s())}}),(0,Pr.jsxs)(u0,{onClick:s,children:[(0,Pr.jsx)(o0,{}),(0,Pr.jsx)(d8,{})]})]}),(0,Pr.jsx)(l0,{children:"Enter URL of link"})]})]})}var c0={icon:o0,title:ct("insertLink"),more:!0,hotkey:"mod+k",Component:H8};function Vm(e){let t=y.marks(e);return{bold:t?.bold||!1,italic:t?.italic||!1,strike:t?.strike||!1,code:t?.code||!1,underline:t?.underline||!1}}var q8=[{icon:E8,title:ct("bold"),hotkey:"mod+b",action:e=>e.marksPlugin.toggleBold(),active:e=>Vm(e).bold},{icon:b8,title:ct("italic"),hotkey:"mod+i",action:e=>e.marksPlugin.toggleItalic(),active:e=>Vm(e).italic},{icon:k8,title:ct("strike"),hotkey:"super+k",action:e=>e.marksPlugin.toggleStrike(),active:e=>Vm(e).strike},{icon:w8,title:ct("inlineCode"),hotkey:"mod+j",action:e=>e.inlineCode.toggleInlineCode(),active:e=>Vm(e).code},{icon:B8,title:ct("underline"),hotkey:"mod+u",action:e=>e.marksPlugin.toggleUnderline(),active:e=>Vm(e).underline}],TD=q8,j8=q8;var V8=[{icon:D8,title:ct("bulletList"),hotkey:"super+8",action:e=>e.list.convertUnorderedList(!0)},{icon:CD,title:ct("numberedList"),hotkey:"super+7",action:e=>e.list.convertOrderedList(!0)},{icon:O8,title:ct("checkList"),hotkey:"super+9",action:e=>e.list.convertTaskList(!0)}],kD=V8,$8=[{icon:CD,title:ct("list"),more:!0,children:V8}];var f0=[{icon:x8,title:ct("quote"),hotkey:"super+.",action:e=>{e.blockQuotePlugin.isActive()?e.blockQuotePlugin.outdent():e.blockQuotePlugin.indent()},active:e=>e.blockQuotePlugin.isActive()}];var wte=[...wD,"divider",...kD,"divider",...TD,"divider",c0,...f0,...s0,"divider",...N8],Ate=[...AD,"divider",...kD,"divider",...TD,"divider",c0,...f0,...s0,"divider",...SD],Ste=[...AD,"divider",...$8,"divider",...j8,"divider",c0,...f0,...s0,"divider",...SD],G8=[...wD,"divider"];var fc=[wte,Ate,Ste];var mc=N(Oe());var ll=N(Z());function W8({item:e}){let t=Se(),n=rb(),r=e.active?e.active(n):!1,i=(0,mc.useRef)(null),a=Ri({title:e.title,hotkey:()=>e.hotkey?Hg(e.hotkey):void 0}),u=Xn("menu"),s=(0,mc.useCallback)(()=>{let p=i.current,h=e.children,g=e.Component;p&&(h?u.open(()=>(0,ll.jsx)(Vg,{dest:p,items:h,close:u.close})):g&&u.open(()=>(0,ll.jsx)(g,{dest:p,close:u.close})))},[e]),c=(0,mc.useCallback)(()=>{if(e.action){e.action(t),W.focus(t);return}u.layer?u.close():s()},[u.layer,e]),f=(0,mc.useCallback)(p=>{a.onMouseEnter(p),u.layer&&s()},[u.layer]);return(0,ll.jsxs)(RF,{"data-item-type":"button",ref:i,onMouseEnter:f,onMouseLeave:a.onMouseLeave,onClick:c,className:Zt({"--active":r&&!e.title.includes("\u968E\u5C64"),"--more":e.more,"--disabled":!r&&e.title.includes("\u968E\u5C64")}),children:[(0,ll.jsx)(e.icon,{}),e.more?(0,ll.jsx)(p8,{}):null]})}var sl=N(Z());function Tte({item:e}){let t=Se();return e==="divider"?(0,sl.jsx)(OF,{"data-item-type":"divider",children:(0,sl.jsx)(MF,{})}):(e.show===void 0?!0:e.show(t))?(0,sl.jsx)(W8,{item:e}):null}function kte(e){let t=e.querySelector("[data-item-type=button]"),n=e.querySelector("[data-item-type=divider]");if(!t||!n)throw new Error("Button or divider not found");return{toolbar:e.offsetWidth,button:t.offsetWidth,divider:n.offsetWidth}}function Bte(e,t,n){let r=0;for(let i of e)r+=i==="divider"?n:t;return r}function Y8(){let e=(0,pc.useRef)(null),[t,n]=(0,pc.useState)(G8);return(0,pc.useEffect)(()=>{let r=(0,K8.throttle)(()=>{let i=e.current;if(!i)throw new Error("Toolbar not found");let a=kte(i);for(let u=0;u<fc.length-1;u++)if(Bte(fc[u],a.button,a.divider)<a.toolbar){n(fc[u]);return}n(fc[fc.length-1])},100,{trailing:!0});return r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),(0,sl.jsx)(kF,{ref:e,children:(0,sl.jsx)(BF,{children:t.map((r,i)=>(0,sl.jsx)(Tte,{item:r},typeof r=="string"?i:r.title))})})}var dc=N(Z());function Q8({attributes:e,Editable:t}){let n=(0,m0.useRef)(null),r=Se(),i=gO(),a=(0,m0.useCallback)(u=>{u.target===u.currentTarget&&(_.select(r,y.end(r,[])),W.focus(r))},[r]);return(0,dc.jsx)(oF,{children:(0,dc.jsxs)(wF,{ref:n,className:Zt({"--focused":i}),style:{height:r.toolbar.height,minHeight:r.toolbar.minHeight,maxHeight:r.toolbar.maxHeight},onClick:a,children:[(0,dc.jsx)(Y8,{}),(0,dc.jsx)(t,{as:CF,...e,style:{overflowY:"auto"}})]})})}var X8=Ye((e,t)=>(e.toolbar={height:t.toolbar?.height,minHeight:t.toolbar?.minHeight,maxHeight:t.toolbar?.maxHeight,showUploadButtons:t.toolbar?.showUploadButtons??!0},{name:"toolbar",editor:{},renderEditable:Q8,editableProps:{}}));var Z8=Ye(e=>(e.allowTrailingBlock=!0,{name:"trailing-block",editor:{normalizeNode:t=>{if(!y.isEditor(t[0]))return!1;let n=[e.children.length-1],r=ce.child(e,e.children.length-1);return(y.hasBlocks(e,r)||y.isVoid(e,r))&&_.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:F.next(n)}),!0}}}));function Ote(e,t){let n=Yo(t);_.insertNodes(e,n)}function J8(e){return{pasteMarkdown:be(Ote,e)}}var e9=Ye(e=>(e.pasteMarkdown=J8(e),{name:"paste-markdown",editor:{},editableProps:{onPaste(t){let{types:n}=t.clipboardData;if(n.length!==1||n[0]!=="text/plain")return!1;let r=t.clipboardData.getData("text/plain");return e.pasteMarkdown.pasteMarkdown(r),Va(t),!0}}}));var n9=N(Z());function Mte(e){let t={...e.attributes,style:{...e.attributes.style,width:void 0,maxWidth:void 0}};return(0,n9.jsx)("span",{...t,children:e.children})}var t9=Ye((e,t,{createPolicy:n})=>(e.placeholder={},n({name:"placeholder",editableProps:{renderPlaceholder:Mte}})));var BD="https://api.portive.com",OD="/api/v1/upload";if(BD.endsWith("/"))throw new Error("DEFAULT_ROGIN_URL should not end with a '/'");if(!OD.startsWith("/"))throw new Error("UPLOAD_PATH should start with a '/'");var yz=N(JD());var vz=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(u){u(a)})}return new(n||(n=Promise))(function(a,u){function s(p){try{f(r.next(p))}catch(h){u(h)}}function c(p){try{f(r.throw(p))}catch(h){u(h)}}function f(p){p.done?a(p.value):i(p.value).then(s,c)}f((r=r.apply(e,t||[])).next())})},_ne=["image/jpg","image/jpeg","image/png","image/gif","image/webp"];function zne(e){return _ne.includes(e.type)}function Lne(e){return vz(this,void 0,void 0,function*(){return new Promise(t=>{let n=new Image;n.addEventListener("load",function(){t({width:this.naturalWidth,height:this.naturalHeight})}),n.src=e})})}var eC=new WeakMap;function tC(e){return vz(this,void 0,void 0,function*(){if(!(e instanceof File))return e;let t=eC.get(e);if(t!==void 0)return t;let n=URL.createObjectURL(e);if(zne(e)){let r=yield Lne(n),i={type:"image",filename:e.name,contentType:e.type,bytes:e.size,width:r.width,height:r.height,file:e,objectUrl:n};return eC.set(e,i),i}else{let r={type:"generic",filename:e.name,contentType:e.type,bytes:e.size,file:e,objectUrl:n};return eC.set(e,r),r}})}var nC=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(u){u(a)})}return new(n||(n=Promise))(function(a,u){function s(p){try{f(r.next(p))}catch(h){u(h)}}function c(p){try{f(r.throw(p))}catch(h){u(h)}}function f(p){p.done?a(p.value):i(p.value).then(s,c)}f((r=r.apply(e,t||[])).next())})},Pne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ine({client:e,clientFileInfo:t}){return nC(this,void 0,void 0,function*(){try{return yield e.post(OD,{clientFileInfo:t})}catch(n){return{status:"error",message:`Error during getUploadPolicyFromClientFileInfo. ${n}`}}})}function Nne({client:e,file:t}){return nC(this,void 0,void 0,function*(){try{let n=yield tC(t),{objectUrl:r,file:i}=n,a=Pne(n,["objectUrl","file"]);return yield Ine({client:e,clientFileInfo:a})}catch(n){return{status:"error",message:`Error during getUploadPolicy. ${n}`}}})}function Ez({client:e,file:t,onBeforeFetch:n=()=>{},onBeforeSend:r=()=>{},onProgress:i=()=>{},onError:a=()=>{},onSuccess:u=()=>{},onFinish:s=()=>{},onUpdate:c=()=>{}}){return nC(this,void 0,void 0,function*(){let f=yield tC(t),p={type:"beforeFetch",file:t,clientFile:f};n(p),c(p);let h=yield Nne({client:e,file:t});if(h.status==="error"){let M={type:"error",file:t,clientFile:f,message:h.message};return a(M),s(M),c(M),M}let{formFields:g,apiUrl:d,fileUrl:b}=h.data,A=f.type==="image"?{type:"image",url:b,width:f.width,height:f.height}:{type:"generic",url:b};r({type:"beforeSend",file:t,clientFile:f,hostedFile:A});let E=new FormData;for(let[M,L]of Object.entries(g))E.append(M,L);E.append("content-type",t.type),E.append("file",f.file);let D=yield yz.default.post(d,E,{onUploadProgress(M){let L={type:"progress",file:t,clientFile:f,hostedFile:A,sentBytes:M.loaded,totalBytes:M.total};i(L),c(L)}});if(D.status!==204){let M={type:"error",file:t,clientFile:f,message:`Error during upload ${JSON.stringify(D.data,null,2)}`};return a(M),s(M),c(M),M}let C={type:"success",file:t,clientFile:f,hostedFile:A};return u(C),s(C),c(C),C})}function Une(e){return typeof e=="function"}async function rC(e){return await(Une(e)?e():e)}var bz=N(JD()),iC=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(u){u(a)})}return new(n||(n=Promise))(function(a,u){function s(p){try{f(r.next(p))}catch(h){u(h)}}function c(p){try{f(r.throw(p))}catch(h){u(h)}}function f(p){p.done?a(p.value):i(p.value).then(s,c)}f((r=r.apply(e,t||[])).next())})};function xz(e){return new aC(e)}var aC=class{constructor({apiKey:t,authToken:n,apiOrigin:r=BD}){if(t==null&&n==null)throw new Error("apiKey or authToken must be defined but neither are defined");if(r.endsWith("/"))throw new Error("apiOrigin should not end with a '/'");if(!r.startsWith("http"))throw new Error("Expected apiOrigin to start with http");this.unresolvedApiKey=t,this.unresolvedAuthToken=n,this.apiOrigin=r}post(t,n){return iC(this,void 0,void 0,function*(){if(!t.startsWith("/"))throw new Error(`Expected path to start with "/" but is ${JSON.stringify(t)}`);let r=`${this.apiOrigin}${t}`,i={data:n},a=yield this.getAuthToken(),u=yield this.getApiKey();if(typeof a=="string"&&typeof u=="string")throw new Error("Expected one of 'authToken' or 'apiKey' to be defined but both are defined which is ambiguous");if(typeof a=="string")i.authToken=a;else if(typeof u=="string")i.apiKey=u;else throw new Error("Expected either 'authToken' or 'apiKey' to be defined but neither are defined");return(yield bz.default.post(r,i)).data})}getApiKey(){return iC(this,void 0,void 0,function*(){return this.unresolvedApiKey?rC(this.unresolvedApiKey):void 0})}getAuthToken(){return iC(this,void 0,void 0,function*(){return this.unresolvedAuthToken?rC(this.unresolvedAuthToken):void 0})}};function Hne(e){let t=e.undos[e.undos.length-1];return t.operations[t.operations.length-1]}function qne(e){let t=Hne(e);if(t.type!=="set_node")throw new Error(`Expected set_node operation, got ${t.type}.`);return t}function Dz(e,t,n){let i=Object.keys(t)[0],a=t[i],{undos:u}=e.history;for(let c of u)for(let f of c.operations)(f.type==="insert_node"||f.type==="remove_node")&&f.node[i]===a&&(f.node={...f.node,...n});let s=[...y.nodes(e,{mode:"all",at:[],match:c=>me.isElement(c)&&c[i]===a})];for(let c of s){_.setNodes(e,n,{at:c[1]});let f=qne(e.history);f.properties=n}}var Cz=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function wz(e,t){let{client:n}=e.upload;if(n===void 0)throw new Error("Expected editor.upload.client to be defined if upload is being called");let r=`$${Cz()}`,i=URL.createObjectURL(t);return Ez({client:n,file:t,onBeforeFetch:({clientFile:a})=>(zm(e,r,{status:"progress",url:i,sentBytes:0,totalBytes:a.bytes}),!!(a.type==="image"&&e.upload.onUploadImageFile({hashUrl:r,file:t,width:a.width,height:a.height})||e.upload.onUploadFile({hashUrl:r,file:t}))),onProgress:({sentBytes:a,totalBytes:u})=>{zm(e,r,{status:"progress",url:i,sentBytes:a,totalBytes:u})},onError:a=>{zm(e,r,{status:"error",url:i,message:a.message})},onSuccess:a=>{if(zm(e,r,{status:"success",url:a.hostedFile.url}),a.hostedFile.type==="image"&&e.upload.onUploadImageFileSuccess({hashUrl:r,file:t,width:a.hostedFile.width,height:a.hostedFile.height,url:a.hostedFile.url}))return!0;e.upload.onUploadFileSuccess({hashUrl:r,file:t,url:a.hostedFile.url})}}),!1}function Az(e){return{upload:be(wz,e),setElementTimeTraveling:(t,n)=>Dz(e,t,n)}}var Sz=Ye((e,t)=>{let n=t.upload?.authToken;n||console.warn("No authToken provided. Uploads are disabled.");let r=n?xz({authToken:n}):void 0;return e.upload={client:r,onUploadImageFile:()=>(console.log("called onUploadImageFile"),!1),onUploadFile:()=>(console.log("called onUploadFile"),!1),onUploadImageFileSuccess:()=>(console.log("called onUploadImageFileSuccess"),!1),onUploadFileSuccess:()=>(console.log("called onUploadFileSuccess"),!1),useUploadStore:v_(),...Az(e)},{name:"upload",editor:{},editableProps:n?{onPaste(a){let u=a.nativeEvent.clipboardData?.files;if(!u||u.length===0)return!1;for(let s of u)e.upload.upload(s);return!0},onDrop(a){let u=a.nativeEvent.dataTransfer?.files;if(!u||u.length===0)return!1;for(let s of u)e.upload.upload(s);return!0}}:{}}});var Tz=[e9,d6,QF,C6,u7,O6,Z_,i8,T6,Z8,r7,ZF,c7,l6,o8,X8,Sz,Y_,t9];var jne=zR(Tz),{withSink:kz,SinkEditable:Bz}=jne;var Fz=N(Oe());function Oz(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mz(e){var t,n;return Oz(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Oz(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var Vne={isHistory(e){return Mz(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Pa.isOperationList(e.redos[0]))&&(e.undos.length===0||Pa.isOperationList(e.undos[0]))}};var oC=new WeakMap,uC=new WeakMap,bc={isHistoryEditor(e){return Vne.isHistory(e.history)&&y.isEditor(e)},isMerging(e){return uC.get(e)},isSaving(e){return oC.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=bc.isMerging(e);uC.set(e,!1),t(),uC.set(e,n)},withoutSaving(e,t){var n=bc.isSaving(e);oC.set(e,!1),t(),oC.set(e,n)}},Rz=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:r}=t,{redos:i}=r;if(i.length>0){var a=i[i.length-1];a.selectionBefore&&_.setSelection(t,a.selectionBefore),bc.withoutSaving(t,()=>{y.withoutNormalizing(t,()=>{for(var u of a.operations)t.apply(u)})}),r.redos.pop(),r.undos.push(a)}},t.undo=()=>{var{history:r}=t,{undos:i}=r;if(i.length>0){var a=i[i.length-1];bc.withoutSaving(t,()=>{y.withoutNormalizing(t,()=>{var u=a.operations.map(Pa.inverse).reverse();for(var s of u)t.apply(s);a.selectionBefore&&_.setSelection(t,a.selectionBefore)})}),r.redos.push(a),r.undos.pop()}},t.apply=r=>{var{operations:i,history:a}=t,{undos:u}=a,s=u[u.length-1],c=s&&s.operations[s.operations.length-1],f=bc.isSaving(t),p=bc.isMerging(t);if(f==null&&(f=Gne(r)),f){if(p==null&&(s==null?p=!1:i.length!==0?p=!0:p=$ne(r,c)),s&&p)s.operations.push(r);else{var h={operations:[r],selectionBefore:t.selection};u.push(h)}for(;u.length>100;)u.shift();a.redos=[]}n(r)},t},$ne=(e,t)=>!!(t&&e.type==="insert_text"&&t.type==="insert_text"&&e.offset===t.offset+t.text.length&&F.equals(e.path,t.path)||t&&e.type==="remove_text"&&t.type==="remove_text"&&e.offset+e.text.length===t.offset&&F.equals(e.path,t.path)),Gne=(e,t)=>e.type!=="set_selection";function lC({authToken:e,height:t,minHeight:n,maxHeight:r}){let[i]=(0,Fz.useState)(()=>{let a=jB(),u=kz(yO(Rz(a)),{toolbar:{height:t,minHeight:n,maxHeight:r,showUploadButtons:!!e},image:{},upload:e?{authToken:e}:void 0});return u.convertElement.addConvertElementType("paragraph"),a.wysimark={},a.getMarkdown=()=>vm(a.children),a.setMarkdown=s=>{let c=Yo(s);a.children=c,a.selection=null,_.select(a,y.start(a,[0]))},u});return i}var x0=N(Z());function Wne({children:e,attributes:t}){return(0,x0.jsx)("span",{...t,children:e})}function zz({editor:e,value:t,onChange:n,throttleInMs:r=1e3,placeholder:i,className:a,style:u}){let s=(0,Ya.useRef)(!1),c=(0,Ya.useRef)(void 0),f=(0,Ya.useRef)(void 0),p=(0,Ya.useCallback)((0,_z.throttle)(()=>{let b=vm(e.children);e.wysimark.prevValue={markdown:b,children:e.children},n(b)},r,{leading:!1,trailing:!0}),[e,n,r]),h=(0,Ya.useCallback)(()=>{f.current!==e.children&&(f.current=e.children,p())},[p]);if(e.wysimark.prevValue==null||c.current==null){s.current=!0;let b=Yo(t);f.current=c.current=b,e.wysimark.prevValue={markdown:t,children:b}}else if(t!==e.wysimark.prevValue.markdown){s.current=!0;let b=Yo(t);e.children=b,e.selection=null,_.select(e,y.start(e,[0]))}let g=(0,Ya.useCallback)(()=>{navigator.userAgent.toLowerCase().includes("firefox")&&W.focus(e)},[e]),d=(0,Ya.useCallback)(()=>{p.flush()},[p]);return(0,x0.jsx)(vO,{editor:e,value:c.current,onChange:h,children:(0,x0.jsx)(Bz,{renderLeaf:Wne,onMouseDown:g,onBlur:d,placeholder:i,className:a,style:u})})}var sC=N(Z());function Kne({standaloneOptions:{onChange:e,placeholder:t,className:n,...r},standaloneMethodsRef:i}){let[a,u]=(0,ua.useState)(r.initialMarkdown||""),s=(0,ua.useRef)(a),c=lC(r);s.current=a,(0,ua.useImperativeHandle)(i,()=>({getMarkdown(){return s.current},setMarkdown(p){s.current=p,u(p)}}),[s,u]);let f=(0,ua.useCallback)(p=>{s.current=p,u(p),e?.(p)},[c]);return(0,sC.jsx)(zz,{editor:c,value:a,className:n||"",onChange:f,placeholder:t})}function T4e(e,t){let n=(0,ua.createRef)(),r=(0,Lz.createRoot)(e);return r.render((0,sC.jsx)(Kne,{standaloneMethodsRef:n,standaloneOptions:t})),{unmount(){try{r.unmount()}catch{}},getMarkdown(){return n.current?.getMarkdown()||""},setMarkdown(i){n.current?.setMarkdown(i)}}}export{T4e as createWysimark};
|
|
1402
1389
|
/*! Bundled license information:
|
|
1403
1390
|
|
|
1404
1391
|
react/cjs/react.production.js:
|