wysimark-lite 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +189 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/wysimark.d.ts +1038 -0
- package/dist/wysimark.js +1516 -0
- package/dist/wysimark.mjs +12339 -0
- package/dist/wysimark.mjs.map +1 -0
- package/package.json +87 -0
package/dist/wysimark.js
ADDED
|
@@ -0,0 +1,1516 @@
|
|
|
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(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+by+e+I2}var Ey=!1;function Dy(e,t){if(!e||Ey)return"";Ey=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(m){var g=m}Reflect.construct(e,[],d)}else{try{d.call()}catch(m){g=m}e.call(d.prototype)}}else{try{throw Error()}catch(m){g=m}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(m){if(m&&g&&typeof m.stack=="string")return[m.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 o=r.DetermineComponentFrameRoot(),a=o[0],l=o[1];if(a&&l){var c=a.split(`
|
|
4
|
+
`),f=l.split(`
|
|
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{Ey=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?_f(n):""}function WW(e){switch(e.tag){case 26:case 27:case 5:return _f(e.type);case 16:return _f("Lazy");case 13:return _f("Suspense");case 19:return _f("SuspenseList");case 0:case 15:return e=Dy(e.type,!1),e;case 11:return e=Dy(e.type.render,!1),e;case 1:return e=Dy(e.type,!0),e;default:return""}}function L2(e){try{var t="";do t+=WW(e),e=e.return;while(e);return t}catch(n){return`
|
|
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 `+s+`] */
|
|
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
|
+
`;u.replace(xe,function(Le,lt,pt,qr,ir,jr){return pt||(pt=qr),ce+=u.slice(ue,jr).replace(sU,ZU),lt&&(N=!0,ce+=`' +
|
|
13
|
+
__e(`+lt+`) +
|
|
14
|
+
'`),ir&&($=!0,ce+=`';
|
|
15
|
+
`+ir+`;
|
|
16
|
+
__p += '`),pt&&(ce+=`' +
|
|
17
|
+
((__t = (`+pt+`)) == null ? '' : __t) +
|
|
18
|
+
'`),ue=jr+Le.length,Le}),ce+=`';
|
|
19
|
+
`;var Ie=Dt.call(s,"variable")&&s.variable;if(!Ie)ce=`with (obj) {
|
|
20
|
+
`+ce+`
|
|
21
|
+
}
|
|
22
|
+
`;else if(eU.test(Ie))throw new $e(o);ce=($?ce.replace(Vt,""):ce).replace(vt,"$1").replace(In,"$1;"),ce="function("+(Ie||"obj")+`) {
|
|
23
|
+
`+(Ie?"":`obj || (obj = {});
|
|
24
|
+
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+($?`, __j = Array.prototype.join;
|
|
25
|
+
function print() { __p += __j.call(arguments, '') }
|
|
26
|
+
`:`;
|
|
27
|
+
`)+ce+`return __p
|
|
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(`
|
|
31
|
+
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},kZ=/data-slate-fragment="(.+?)"/m,AZ=e=>{var t=e.getData("text/html"),[,n]=t.match(kZ)||[];return n},AE=(e,t,n)=>{var{target:r}=t;if(Mi(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:i}=ne.getWindow(e);if(i.contains(r))return ne.hasDOMNode(e,r,{editable:!0});var o=n.find(a=>{var{addedNodes:l,removedNodes:c}=a;for(var f of l)if(f===r||f.contains(r))return!0;for(var p of c)if(p===r||p.contains(r))return!0});return!o||o===t?!1:AE(e,o,n)},TZ=parseInt(oe.default.version.split(".")[0],10)>=17,BZ=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,aM=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Qi=typeof navigator<"u"&&/Android/.test(navigator.userAgent),yE=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),cE=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),OZ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),AM=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),MZ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),RZ=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),FZ=typeof navigator<"u"&&/.*QQBrowser/.test(navigator.userAgent),_Z=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),IZ=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent),Eg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nu=!MZ&&!OZ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",ne={isComposing(e){return!!ml.get(e)},getWindow(e){var t=EM.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var n=dE.get(t);return n||(n=new pE,dE.set(t,n)),n},findPath(e,t){for(var n=[],r=t;;){var i=wE.get(r);if(i==null){if(b.isEditor(r))return n;break}var o=DE.get(r);if(o==null)break;n.unshift(o),r=i}throw new Error("Unable to find the path for Slate node: ".concat(En.stringify(t)))},findDocumentOrShadowRoot(e){var t=ne.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},isFocused(e){return!!pl.get(e)},isReadOnly(e){return!!CE.get(e)},blur(e){var t=ne.toDOMNode(e,e),n=ne.findDocumentOrShadowRoot(e);pl.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=ne.toDOMNode(e,e),n=ne.findDocumentOrShadowRoot(e);pl.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=ne.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&L.deselect(e)},hasDOMNode(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:r=!1}=n,i=ne.toDOMNode(e,e),o;try{o=Mi(t)?t:t.parentElement}catch(a){if(!a.message.includes('Permission denied to access property "nodeType"'))throw a}return o?o.closest("[data-slate-editor]")===i&&(!r||o.isContentEditable?!0:typeof o.isContentEditable=="boolean"&&o.closest('[contenteditable="false"]')===i||!!o.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=Sg.get(e),r=b.isEditor(t)?mE.get(e):n?.get(ne.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(En.stringify(t)));return r},toDOMPoint(e,t){var[n]=b.node(e,t.path),r=ne.toDOMNode(e,n),i;b.void(e,{at:t})&&(t={path:t.path,offset:0});for(var o="[data-slate-string], [data-slate-zero-width]",a=Array.from(r.querySelectorAll(o)),l=0,c=0;c<a.length;c++){var f=a[c],p=f.childNodes[0];if(!(p==null||p.textContent==null)){var{length:d}=p.textContent,g=f.getAttribute("data-slate-length"),m=g==null?d:parseInt(g,10),x=l+m,S=a[c+1];if(t.offset===x&&S!==null&&S!==void 0&&S.hasAttribute("data-slate-mark-placeholder")){var T,y=S.childNodes[0];i=[y instanceof bZ?y:S,(T=S.textContent)!==null&&T!==void 0&&T.startsWith("\uFEFF")?1:0];break}if(t.offset<=x){var w=Math.min(d,Math.max(0,t.offset-l));i=[p,w];break}l=x}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(En.stringify(t)));return i},toDOMRange(e,t){var{anchor:n,focus:r}=t,i=W.isBackward(t),o=ne.toDOMPoint(e,n),a=W.isCollapsed(t)?o:ne.toDOMPoint(e,r),l=ne.getWindow(e),c=l.document.createRange(),[f,p]=i?a:o,[d,g]=i?o:a,m=Mi(f)?f:f.parentElement,x=!!m.getAttribute("data-slate-zero-width"),S=Mi(d)?d:d.parentElement,T=!!S.getAttribute("data-slate-zero-width");return c.setStart(f,x?1:p),c.setEnd(d,T?1:g),c},toSlateNode(e,t){var n=Mi(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Cg.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 o=ne.toSlateNode(e,t.target),a=ne.findPath(e,o);if(b.isVoid(e,o)){var l=i.getBoundingClientRect(),c=e.isInline(o)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,f=b.point(e,a,{edge:c?"start":"end"}),p=c?b.before(e,f):b.after(e,f);if(p){var d=b.range(e,p);return d}}var g,{document:m}=ne.getWindow(e);if(m.caretRangeFromPoint)g=m.caretRangeFromPoint(n,r);else{var x=m.caretPositionFromPoint(n,r);x&&(g=m.createRange(),g.setStart(x.offsetNode,x.offset),g.setEnd(x.offsetNode,x.offset))}if(!g)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var S=ne.toSlateRange(e,g,{exactMatch:!1,suppressThrow:!1});return S},toSlatePoint(e,t,n){var{exactMatch:r,suppressThrow:i}=n,[o,a]=r?t:wZ(t),l=o.parentNode,c=null,f=0;if(l){var p,d,g=ne.toDOMNode(e,e),m=l.closest('[data-slate-void="true"]'),x=m&&g.contains(m)?m:null,S=l.closest("[data-slate-leaf]"),T=null;if(S){if(c=S.closest('[data-slate-node="text"]'),c){var y=ne.getWindow(e),w=y.document.createRange();w.setStart(c,0),w.setEnd(o,a);var C=w.cloneContents(),M=[...Array.prototype.slice.call(C.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(C.querySelectorAll("[contenteditable=false]"))];M.forEach(K=>{if(Qi&&!r&&K.hasAttribute("data-slate-zero-width")&&K.textContent.length>0&&K.textContext!=="\uFEFF"){K.textContent.startsWith("\uFEFF")&&(K.textContent=K.textContent.slice(1));return}K.parentNode.removeChild(K)}),f=C.textContent.length,T=c}}else if(x){for(var R=x.querySelectorAll("[data-slate-leaf]"),A=0;A<R.length;A++){var P=R[A];if(ne.hasDOMNode(e,P)){S=P;break}}S?(c=S.closest('[data-slate-node="text"]'),T=S,f=T.textContent.length,T.querySelectorAll("[data-slate-zero-width]").forEach(K=>{f-=K.textContent.length})):f=1}T&&f===T.textContent.length&&Qi&&T.getAttribute("data-slate-zero-width")==="z"&&(p=T.textContent)!==null&&p!==void 0&&p.startsWith("\uFEFF")&&(l.hasAttribute("data-slate-zero-width")||yE&&(d=T.textContent)!==null&&d!==void 0&&d.endsWith(`
|
|
34
|
+
|
|
35
|
+
`))&&f--}if(Qi&&!c&&!r){var V=l.hasAttribute("data-slate-node")?l:l.closest("[data-slate-node]");if(V&&ne.hasDOMNode(e,V,{editable:!0})){var J=ne.toSlateNode(e,V),{path:_,offset:de}=b.start(e,ne.findPath(e,J));return V.querySelector("[data-slate-leaf]")||(de=a),{path:_,offset:de}}}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var Z=ne.toSlateNode(e,c),H=ne.findPath(e,Z);return{path:H,offset:f}},toSlateRange(e,t,n){var{exactMatch:r,suppressThrow:i}=n,o=vE(t)?t.anchorNode:t.startContainer,a,l,c,f,p;if(o&&(vE(t)?(a=t.anchorNode,l=t.anchorOffset,c=t.focusNode,f=t.focusOffset,AM&&CZ()?p=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:p=t.isCollapsed):(a=t.startContainer,l=t.startOffset,c=t.endContainer,f=t.endOffset,p=t.collapsed)),a==null||c==null||l==null||f==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var d=ne.toSlatePoint(e,[a,l],{exactMatch:r,suppressThrow:i});if(!d)return null;var g=p?d:ne.toSlatePoint(e,[c,f],{exactMatch:r,suppressThrow:i});if(!g)return null;var m={anchor:d,focus:g};return W.isExpanded(m)&&W.isForward(m)&&Mi(c)&&b.void(e,{at:m.focus,mode:"highest"})&&(m=b.unhangRange(e,m,{voids:!0})),m},hasRange(e,t){var{anchor:n,focus:r}=t;return b.hasPath(e,n.path)&&b.hasPath(e,r.path)},androidScheduleFlush(e){var t;(t=SE.get(e))===null||t===void 0||t()},androidPendingDiffs(e){return Or.get(e)}},hl=Eg?oe.useLayoutEffect:oe.useEffect,LZ=["anchor","focus"],PZ=["anchor","focus"],zZ=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),TM=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n],o=Zs(r,LZ),a=Zs(i,PZ);if(!W.equals(r,i)||r[ec]!==i[ec]||!zZ(o,a))return!1}return!0},NZ=e=>{var{isLast:t,leaf:n,parent:r,text:i}=e,o=Me(),a=ne.findPath(o,i),l=I.parent(a),c=n[wM]===!0;return o.isVoid(r)?oe.default.createElement(fE,{length:he.string(r).length}):n.text===""&&r.children[r.children.length-1]===i&&!o.isInline(r)&&b.string(o,l)===""?oe.default.createElement(fE,{isLineBreak:!0,isMarkPlaceholder:c}):n.text===""?oe.default.createElement(fE,{isMarkPlaceholder:c}):t&&n.text.slice(-1)===`
|
|
36
|
+
`?oe.default.createElement(uM,{isTrailing:!0,text:n.text}):oe.default.createElement(uM,{text:n.text})},uM=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,oe.useRef)(null),i=()=>"".concat(t??"").concat(n?`
|
|
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
|
+
`:""}),CM(S)){var C=S.ownerDocument.createElement("span");C.style.whiteSpace="pre",C.appendChild(S),x.appendChild(C),S=C}var M=t.getFragment(),R=JSON.stringify(M),A=window.btoa(encodeURIComponent(R));S.setAttribute("data-slate-fragment",A),l.setData("application/x-slate-fragment",A);var P=x.ownerDocument.createElement("div");return P.appendChild(x),P.setAttribute("hidden","true"),x.ownerDocument.body.appendChild(P),l.setData("text/html",P.innerHTML),l.setData("text/plain",kM(P)),x.ownerDocument.body.removeChild(P),l}}},t.insertData=l=>{t.insertFragmentData(l)||t.insertTextData(l)},t.insertFragmentData=l=>{var c=l.getData("application/x-slate-fragment")||AZ(l);if(c){var f=decodeURIComponent(window.atob(c)),p=JSON.parse(f);return t.insertFragment(p),!0}return!1},t.insertTextData=l=>{var c=l.getData("text/plain");if(c){var f=c.split(/\r\n|\r|\n/),p=!1;for(var d of f)p&&L.splitNodes(t,{always:!0}),t.insertText(d),p=!0;return!0}return!1},t.onChange=()=>{bM.default.unstable_batchedUpdates(()=>{var l=gE.get(t);l&&l(),r()})},t},xg=(e,t)=>{var n=[];for(var[r,i]of b.levels(e,{at:t})){var o=ne.findKey(e,r);n.push([i,o])}return n};function OE(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 Rce=ou(/[A-Za-z]/),Fce=ou(/[\dA-Za-z]/),_ce=ou(/[#-'*+\--9=?A-Z^-~]/);var Ice=ou(/\d/),Lce=ou(/[\dA-Fa-f]/),Pce=ou(/[!-/:-@[-`{-~]/);var HM=ou(/\p{P}|\p{S}/u),qM=ou(/\s/);function ou(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ME(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var tc=function(e){if(e==null)return _J;if(typeof e=="function")return kg(e);if(typeof e=="object")return Array.isArray(e)?MJ(e):RJ(e);if(typeof e=="string")return FJ(e);throw new Error("Expected function, string, or object as test")};function MJ(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tc(e[n]);return kg(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function RJ(e){let t=e;return kg(n);function n(r){let i=r,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function FJ(e){return kg(t);function t(n){return n&&n.type===e}}function kg(e){return t;function t(n,r,i){return!!(IJ(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function _J(){return!0}function IJ(e){return e!==null&&typeof e=="object"&&"type"in e}var jM=[],VM=!0,RE=!1,$M="skip";function FE(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;let o=tc(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=jM,x,S,T;if((!t||o(c,f,p[p.length-1]||void 0))&&(m=LJ(n(c,p)),m[0]===RE))return m;if("children"in c&&c.children){let y=c;if(y.children&&m[0]!==$M)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]===RE)return x;S=typeof x[1]=="number"?x[1]:S+a}}return m}}}function LJ(e){return Array.isArray(e)?e:typeof e=="number"?[VM,e]:e==null?jM:[e]}function _E(e,t,n){let i=tc((n||{}).ignore||[]),o=PJ(t),a=-1;for(;++a<o.length;)FE(e,"text",l);function l(f,p){let d=-1,g;for(;++d<p.length;){let m=p[d],x=g?g.children:void 0;if(i(m,x?x.indexOf(m):void 0,g))return;g=m}if(g)return c(f,p)}function c(f,p){let d=p[p.length-1],g=o[a][0],m=o[a][1],x=0,T=d.children.indexOf(f),y=!1,w=[];g.lastIndex=0;let C=g.exec(f.value);for(;C;){let M=C.index,R={index:C.index,input:C.input,stack:[...p,f]},A=m(...C,R);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?g.lastIndex=M+1:(x!==M&&w.push({type:"text",value:f.value.slice(x,M)}),Array.isArray(A)?w.push(...A):A&&w.push(A),x=M+C[0].length,y=!0),!g.global)break;C=g.exec(f.value)}return y?(x<f.value.length&&w.push({type:"text",value:f.value.slice(x)}),d.children.splice(T,1,...w)):w=[f],T+w.length}}function PJ(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([zJ(i[0]),NJ(i[1])])}return t}function zJ(e){return typeof e=="string"?new RegExp(ME(e),"g"):e}function NJ(e){return typeof e=="function"?e:function(){return e}}var IE="phrasing",LE=["autolink","link","image","label"];function zE(){return{transforms:[$J],enter:{literalAutolink:UJ,literalAutolinkEmail:PE,literalAutolinkHttp:PE,literalAutolinkWww:PE},exit:{literalAutolink:VJ,literalAutolinkEmail:jJ,literalAutolinkHttp:HJ,literalAutolinkWww:qJ}}}function NE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:IE,notInConstruct:LE},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:IE,notInConstruct:LE},{character:":",before:"[ps]",after:"\\/",inConstruct:IE,notInConstruct:LE}]}}function UJ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function PE(e){this.config.enter.autolinkProtocol.call(this,e)}function HJ(e){this.config.exit.autolinkProtocol.call(this,e)}function qJ(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 jJ(e){this.config.exit.autolinkEmail.call(this,e)}function VJ(e){this.exit(e)}function $J(e){_E(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,GJ],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,WJ]],{ignore:["link","linkReference"]})}function GJ(e,t,n,r,i){let o="";if(!GM(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!KJ(n)))return!1;let a=YJ(n+r);if(!a[0])return!1;let l={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function WJ(e,t,n,r){return!GM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function KJ(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 YJ(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=OE(e,"("),o=OE(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function GM(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||qM(n)||HM(n))&&(!t||n!==47)}function UE(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}WM.peek=iee;function XJ(){this.buffer()}function QJ(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ZJ(){this.buffer()}function JJ(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function eee(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=UE(this.sliceSerialize(e)).toLowerCase(),n.label=t}function tee(e){this.exit(e)}function nee(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=UE(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ree(e){this.exit(e)}function iee(){return"["}function WM(e,t,n,r){let i=n.createTracker(r),o=i.move("[^"),a=n.enter("footnoteReference"),l=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),l(),a(),o+=i.move("]"),o}function HE(){return{enter:{gfmFootnoteCallString:XJ,gfmFootnoteCall:QJ,gfmFootnoteDefinitionLabelString:ZJ,gfmFootnoteDefinition:JJ},exit:{gfmFootnoteCallString:eee,gfmFootnoteCall:tee,gfmFootnoteDefinitionLabelString:nee,gfmFootnoteDefinition:ree}}}function qE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:WM},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){let l=o.createTracker(a),c=l.move("[^"),f=o.enter("footnoteDefinition"),p=o.enter("label");return c+=l.move(o.safe(o.associationId(r),{before:c,after:"]"})),p(),c+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),c+=l.move((t?`
|
|
40
|
+
`:" ")+o.indentLines(o.containerFlow(r,l.current()),t?KM:oee))),f(),c}}function oee(e,t,n){return t===0?e:KM(e,t,n)}function KM(e,t,n){return(n?"":" ")+e}var aee=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];YM.peek=see;function jE(){return{canContainEols:["delete"],enter:{strikethrough:uee},exit:{strikethrough:lee}}}function VE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:aee}],handlers:{delete:YM}}}function uee(e){this.enter({type:"delete",children:[]},e)}function lee(e){this.exit(e)}function YM(e,t,n,r){let i=n.createTracker(r),o=n.enter("strikethrough"),a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function see(){return"~"}function cee(e){return e.length}function QM(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||cee,o=[],a=[],l=[],c=[],f=0,p=-1;for(;++p<e.length;){let S=[],T=[],y=-1;for(e[p].length>f&&(f=e[p].length);++y<e[p].length;){let w=fee(e[p][y]);if(n.alignDelimiters!==!1){let C=i(w);T[y]=C,(c[y]===void 0||C>c[y])&&(c[y]=C)}S.push(w)}a[p]=S,l[p]=T}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<f;)o[d]=XM(r[d]);else{let S=XM(r);for(;++d<f;)o[d]=S}d=-1;let g=[],m=[];for(;++d<f;){let S=o[d],T="",y="";S===99?(T=":",y=":"):S===108?T=":":S===114&&(y=":");let w=n.alignDelimiters===!1?1:Math.max(1,c[d]-T.length-y.length),C=T+"-".repeat(w)+y;n.alignDelimiters!==!1&&(w=T.length+w+y.length,w>c[d]&&(c[d]=w),m[d]=w),g[d]=C}a.splice(1,0,g),l.splice(1,0,m),p=-1;let x=[];for(;++p<a.length;){let S=a[p],T=l[p];d=-1;let y=[];for(;++d<f;){let w=S[d]||"",C="",M="";if(n.alignDelimiters!==!1){let R=c[d]-(T[d]||0),A=o[d];A===114?C=" ".repeat(R):A===99?R%2?(C=" ".repeat(R/2+.5),M=" ".repeat(R/2-.5)):(C=" ".repeat(R/2),M=C):M=" ".repeat(R)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&w==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(C),y.push(w),n.alignDelimiters!==!1&&y.push(M),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==f-1)&&y.push("|")}x.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return x.join(`
|
|
41
|
+
`)}function fee(e){return e==null?"":String(e)}function XM(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 ZM(e,t,n,r){let i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);let a=n.indentLines(n.containerFlow(e,o.current()),pee);return i(),a}function pee(e,t,n){return">"+(n?"":" ")+e}function e4(e,t){return JM(e,t.inConstruct,!0)&&!JM(e,t.notInConstruct,!1)}function JM(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 $E(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
42
|
+
`&&e4(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
43
|
+
`}function t4(e,t){let n=String(e),r=n.indexOf(t),i=r,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function n4(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 r4(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 i4(e,t,n,r){let i=r4(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(n4(e,n)){let d=n.enter("codeIndented"),g=n.indentLines(o,mee);return d(),g}let l=n.createTracker(r),c=i.repeat(Math.max(t4(o,i)+1,3)),f=n.enter("codeFenced"),p=l.move(c);if(e.lang){let d=n.enter(`codeFencedLang${a}`);p+=l.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){let d=n.enter(`codeFencedMeta${a}`);p+=l.move(" "),p+=l.move(n.safe(e.meta,{before:p,after:`
|
|
44
|
+
`,encode:["`"],...l.current()})),d()}return p+=l.move(`
|
|
45
|
+
`),o&&(p+=l.move(o+`
|
|
46
|
+
`)),p+=l.move(c),f(),p}function mee(e,t,n){return(n?"":" ")+e}function nc(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 o4(e,t,n,r){let i=nc(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition"),l=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("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(n.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(l=n.enter("destinationRaw"),f+=c.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
47
|
+
`,...c.current()}))),l(),e.title&&(l=n.enter(`title${o}`),f+=c.move(" "+i),f+=c.move(n.safe(e.title,{before:f,after:i,...c.current()})),f+=c.move(i),l()),a(),f}function a4(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 au(e){return"&#x"+e.toString(16).toUpperCase()+";"}var Mfe=uu(/[A-Za-z]/),Rfe=uu(/[\dA-Za-z]/),Ffe=uu(/[#-'*+\--9=?A-Z^-~]/);var _fe=uu(/\d/),Ife=uu(/[\dA-Fa-f]/),Lfe=uu(/[!-/:-@[-`{-~]/);function u4(e){return e!==null&&(e<0||e===32)}var l4=uu(/\p{P}|\p{S}/u),s4=uu(/\s/);function uu(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function GE(e){if(e===null||u4(e)||s4(e))return 1;if(l4(e))return 2}function rc(e,t,n){let r=GE(e),i=GE(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}}WE.peek=hee;function WE(e,t,n,r){let i=a4(n),o=n.enter("emphasis"),a=n.createTracker(r),l=a.move(i),c=a.move(n.containerPhrasing(e,{after:i,before:l,...a.current()})),f=c.charCodeAt(0),p=rc(r.before.charCodeAt(r.before.length-1),f,i);p.inside&&(c=au(f)+c.slice(1));let d=c.charCodeAt(c.length-1),g=rc(r.after.charCodeAt(0),d,i);g.inside&&(c=c.slice(0,-1)+au(d));let m=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},l+c+m}function hee(e,t,n){return n.options.emphasis||"*"}var Ag=function(e){if(e==null)return yee;if(typeof e=="function")return Tg(e);if(typeof e=="object")return Array.isArray(e)?dee(e):gee(e);if(typeof e=="string")return vee(e);throw new Error("Expected function, string, or object as test")};function dee(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Ag(e[n]);return Tg(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function gee(e){let t=e;return Tg(n);function n(r){let i=r,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function vee(e){return Tg(t);function t(n){return n&&n.type===e}}function Tg(e){return t;function t(n,r,i){return!!(xee(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function yee(){return!0}function xee(e){return e!==null&&typeof e=="object"&&"type"in e}var c4=[],Bg=!0,gl=!1,Og="skip";function KE(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;let o=Ag(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=c4,x,S,T;if((!t||o(c,f,p[p.length-1]||void 0))&&(m=bee(n(c,p)),m[0]===gl))return m;if("children"in c&&c.children){let y=c;if(y.children&&m[0]!==Og)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]===gl)return x;S=typeof x[1]=="number"?x[1]:S+a}}return m}}}function bee(e){return Array.isArray(e)?e:typeof e=="number"?[Bg,e]:e==null?c4:[e]}function YE(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),KE(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 Eee={};function Ip(e,t){let n=t||Eee,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return p4(e,r,i)}function p4(e,t,n){if(Dee(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 f4(e.children,t,n)}return Array.isArray(e)?f4(e,t,n):""}function f4(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=p4(e[i],t,n);return r.join("")}function Dee(e){return!!(e&&typeof e=="object")}function m4(e,t){let n=!1;return YE(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,gl}),!!((!e.depth||e.depth<3)&&Ip(e)&&(t.options.setext||n))}function h4(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(m4(e,n)){let p=n.enter("headingSetext"),d=n.enter("phrasing"),g=n.containerPhrasing(e,{...o.current(),before:`
|
|
48
|
+
`,after:`
|
|
49
|
+
`});return d(),p(),g+`
|
|
50
|
+
`+(i===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(`
|
|
51
|
+
`))+1))}let a="#".repeat(i),l=n.enter("headingAtx"),c=n.enter("phrasing");o.move(a+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
52
|
+
`,...o.current()});return/^[\t ]/.test(f)&&(f=au(f.charCodeAt(0))+f.slice(1)),f=f?a+" "+f:a,n.options.closeAtx&&(f+=" "+a),c(),l(),f}XE.peek=wee;function XE(e){return e.value||""}function wee(){return"<"}QE.peek=Cee;function QE(e,t,n,r){let i=nc(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image"),l=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("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(n.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(l=n.enter("destinationRaw"),f+=c.move(n.safe(e.url,{before:f,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${o}`),f+=c.move(" "+i),f+=c.move(n.safe(e.title,{before:f,after:i,...c.current()})),f+=c.move(i),l()),f+=c.move(")"),a(),f}function Cee(){return"!"}ZE.peek=See;function ZE(e,t,n,r){let i=e.referenceType,o=n.enter("imageReference"),a=n.enter("label"),l=n.createTracker(r),c=l.move("!["),f=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(f+"]["),a();let p=n.stack;n.stack=[],a=n.enter("reference");let d=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return a(),n.stack=p,o(),i==="full"||!f||f!==d?c+=l.move(d+"]"):i==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function See(){return"!"}JE.peek=kee;function JE(e,t,n){let r=e.value||"",i="`",o=-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+" ");++o<n.unsafe.length;){let a=n.unsafe[o],l=n.compilePattern(a),c;if(a.atBreak)for(;c=l.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 kee(){return"`"}function eD(e,t){let n=Ip(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))}tD.peek=Aee;function tD(e,t,n,r){let i=nc(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r),l,c;if(eD(e,n)){let p=n.stack;n.stack=[],l=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),l(),n.stack=p,d}l=n.enter("link"),c=n.enter("label");let f=a.move("[");return f+=a.move(n.containerPhrasing(e,{before:f,after:"](",...a.current()})),f+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=a.move("<"),f+=a.move(n.safe(e.url,{before:f,after:">",...a.current()})),f+=a.move(">")):(c=n.enter("destinationRaw"),f+=a.move(n.safe(e.url,{before:f,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=n.enter(`title${o}`),f+=a.move(" "+i),f+=a.move(n.safe(e.title,{before:f,after:i,...a.current()})),f+=a.move(i),c()),f+=a.move(")"),l(),f}function Aee(e,t,n){return eD(e,n)?"<":"["}nD.peek=Tee;function nD(e,t,n,r){let i=e.referenceType,o=n.enter("linkReference"),a=n.enter("label"),l=n.createTracker(r),c=l.move("["),f=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(f+"]["),a();let p=n.stack;n.stack=[],a=n.enter("reference");let d=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return a(),n.stack=p,o(),i==="full"||!f||f!==d?c+=l.move(d+"]"):i==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Tee(){return"["}function ic(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 d4(e){let t=ic(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 g4(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 Mg(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 v4(e,t,n,r){let i=n.enter("list"),o=n.bulletCurrent,a=e.ordered?g4(n):ic(n),l=e.ordered?a==="."?")":".":d4(n),c=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){let p=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&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),Mg(n)===a&&p){let d=-1;for(;++d<e.children.length;){let g=e.children[d];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(a=l),n.bulletCurrent=a;let f=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),f}function y4(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 x4(e,t,n,r){let i=y4(n),o=n.bulletCurrent||ic(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);let l=n.createTracker(r);l.move(o+" ".repeat(a-o.length)),l.shift(a);let c=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,l.current()),p);return c(),f;function p(d,g,m){return g?(m?"":" ".repeat(a))+d:(m?o:o+" ".repeat(a-o.length))+d}}function b4(e,t,n,r){let i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}var Rg=function(e){if(e==null)return Ree;if(typeof e=="function")return Fg(e);if(typeof e=="object")return Array.isArray(e)?Bee(e):Oee(e);if(typeof e=="string")return Mee(e);throw new Error("Expected function, string, or object as test")};function Bee(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Rg(e[n]);return Fg(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Oee(e){let t=e;return Fg(n);function n(r){let i=r,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function Mee(e){return Fg(t);function t(n){return n&&n.type===e}}function Fg(e){return t;function t(n,r,i){return!!(Fee(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Ree(){return!0}function Fee(e){return e!==null&&typeof e=="object"&&"type"in e}var rD=Rg(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function E4(e,t,n,r){return(e.children.some(function(a){return rD(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function D4(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}iD.peek=_ee;function iD(e,t,n,r){let i=D4(n),o=n.enter("strong"),a=n.createTracker(r),l=a.move(i+i),c=a.move(n.containerPhrasing(e,{after:i,before:l,...a.current()})),f=c.charCodeAt(0),p=rc(r.before.charCodeAt(r.before.length-1),f,i);p.inside&&(c=au(f)+c.slice(1));let d=c.charCodeAt(c.length-1),g=rc(r.after.charCodeAt(0),d,i);g.inside&&(c=c.slice(0,-1)+au(d));let m=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},l+c+m}function _ee(e,t,n){return n.options.strong||"*"}function w4(e,t,n,r){return n.safe(e.value,r)}function C4(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 S4(e,t,n){let r=(Mg(n)+(n.options.ruleSpaces?" ":"")).repeat(C4(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Lp={blockquote:ZM,break:$E,code:i4,definition:o4,emphasis:WE,hardBreak:$E,heading:h4,html:XE,image:QE,imageReference:ZE,inlineCode:JE,link:tD,linkReference:nD,list:v4,listItem:x4,paragraph:b4,root:E4,strong:iD,text:w4,thematicBreak:S4};var k4=document.createElement("i");function Fi(e){let t="&"+e+";";k4.innerHTML=t;let n=k4.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function aD(){return{enter:{table:Iee,tableData:A4,tableHeader:A4,tableRow:Pee},exit:{codeText:zee,table:Lee,tableData:oD,tableHeader:oD,tableRow:oD}}}function Iee(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 Lee(e){this.exit(e),this.data.inTable=void 0}function Pee(e){this.enter({type:"tableRow",children:[]},e)}function oD(e){this.exit(e)}function A4(e){this.enter({type:"tableCell",children:[]},e)}function zee(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Nee));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Nee(e,t){return t==="|"?t:e}function uD(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
53
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:a,tableCell:c,tableRow:l}};function a(m,x,S,T){return f(p(m,S,T),m.align)}function l(m,x,S,T){let y=d(m,S,T),w=f([y]);return w.slice(0,w.indexOf(`
|
|
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:{a=`\r
|
|
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")}gu(e)}function sF(e){return[{type:"heading",level:e.depth,children:Mr(e.children)}]}function cF(e){return[{type:"paragraph",children:[{text:e.value}]}]}function fF(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 e0(e,t+1);default:return ZD(e)}}function pF(e,t){let n=[];for(let r of e.children)n.push(...fF(r,{...t,checked:e.checked}));return n}function e0(e,t=0){let n=[];for(let r of e.children)n.push(...pF(r,{depth:t,ordered:!!e.ordered}));return n}function lre(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 sre="\xA0";function cre(e){return!(e.length!==1||!("text"in e[0])||e[0].text!==sre)}function mF(e){let t=Mr(e.children);return lre(t)?[{...t[1],type:"image-block"}]:cre(t)?[{type:"paragraph",children:[{text:""}]}]:[{type:"paragraph",children:t}]}function hF(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(fre)}]}function fre(e){if(e.type!=="tableRow")throw new Error("Expected a tableRow");return{type:"table-row",children:e.children.map(pre)}}function pre(e){if(e.type!=="tableCell")throw new Error("Expected a tableCell");return{type:"table-cell",children:[{type:"table-content",children:Mr(e.children)}]}}function dF(){return[{type:"horizontal-rule",children:[{text:""}]}]}function mc(e){let t=[];for(let n of e)t.push(...ZD(n));return t}function ZD(e){switch(e.type){case"blockquote":return XR(e);case"code":return[];case"definition":throw new Error('The type "definition" should not exist. See comments');case"footnoteDefinition":return QR(e);case"heading":return sF(e);case"html":return cF(e);case"list":return e0(e);case"paragraph":return mF(e);case"table":return hF(e);case"thematicBreak":return dF();case"yaml":return[]}gu(e)}var t0=function(e){if(e==null)return gre;if(typeof e=="string")return dre(e);if(typeof e=="object")return Array.isArray(e)?mre(e):hre(e);if(typeof e=="function")return n0(e);throw new Error("Expected function, string, or object as test")};function mre(e){let t=[],n=-1;for(;++n<e.length;)t[n]=t0(e[n]);return n0(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function hre(e){return n0(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function dre(e){return n0(t);function t(n){return n&&n.type===e}}function n0(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function gre(){return!0}var r0=!0,Jp=!1,wl="skip",JD=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);let i=t0(t),o=r?-1:1;a(e,void 0,[])();function a(l,c,f){let p=l&&typeof l=="object"?l:{};if(typeof p.type=="string"){let g=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(g?"<"+g+">":""))+")"})}return d;function d(){let g=[],m,x,S;if((!t||i(l,c,f[f.length-1]||null))&&(g=vre(n(l,f)),g[0]===Jp))return g;if(l.children&&g[0]!==wl)for(x=(r?l.children.length:-1)+o,S=f.concat(l);x>-1&&x<l.children.length;){if(m=a(l.children[x],x,S)(),m[0]===Jp)return m;x=typeof m[1]=="number"?m[1]:x+o}return g}}};function vre(e){return Array.isArray(e)?e:typeof e=="number"?[r0,e]:[e]}var em=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),JD(e,t,i,r);function i(o,a){let l=a[a.length-1];return n(o,l?l.children.indexOf(o):null,l)}};var gF={}.hasOwnProperty;function ew(e){let t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return em(e,"definition",r=>{let i=vF(r.identifier);i&&!gF.call(t,i)&&(t[i]=r)}),n;function n(r){let i=vF(r);return i&&gF.call(t,i)?t[i]:null}}function vF(e){return String(e||"").toUpperCase()}function yF(e){let t=ew(e);em(e,(n,r,i)=>{let o=n,a=i;if(o.type==="definition"&&a!==null&&typeof r=="number")return a.children.splice(r,1),[wl,r];if(o.type==="imageReference"||o.type==="linkReference"){let l="identifier"in o&&typeof o.identifier=="string"?o.identifier:"",c=t(l);if(c&&a!==null&&typeof r=="number"){let f=o.type==="imageReference"?{type:"image",url:c.url,title:c.title,alt:o.alt}:{type:"link",url:c.url,title:c.title,children:o.children};return a.children[r]=f,[wl,r]}}})}var yre=Xp().use(Yg).use(sc);function xre(e){let t=yre.parse(e);return yF(t),t}function vu(e){let t=xre(e);return t.children.length===0?[{type:"paragraph",children:[{text:""}]}]:mc(t.children)}function bre(e){return e.type==="ordered-list-item"||e.type==="unordered-list-item"||e.type==="task-list-item"}function xF(e){let t=[],n=-1;for(let r of e){if(!bre(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 bF(e){return e.url}function EF(e){if(e.url.startsWith("$"))return"";let{hostname:t}=hc(e.url);if(t.match(/[.]portive[.]com$/i)&&e.width&&e.height)return`${e.url}?size=${e.width}x${e.height}`}function DF(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 Ere=[EF,DF,bF];function i0(e){for(let t of Ere){let n=t(e);if(typeof n=="string")return n===""?"":``}throw new Error("Shouldn't get here")}function wF(e){return i0(e)}function CF(e,t){let n=t.filter(i=>!e.includes(i));return{orderedMarksToAdd:eF(n)}}function SF(e,t){let n=[...e],r=e.filter(o=>!t.includes(o)),i=[];for(let o=0;o<e.length&&r.length!==0;o++){let a=n.pop();if(a===void 0)throw new Error("This shouldn't happen unless we made a mistake in the algorithm");i.push(a);let l=r.indexOf(a);l!==-1&&r.splice(l,1)}return{orderedMarksToRemove:i,nextOrderedMarks:n}}function tw(e,t){let{orderedMarksToRemove:n,nextOrderedMarks:r}=SF(e,t),{orderedMarksToAdd:i}=CF(r,t);return{remove:n,add:i,nextOrderedMarks:[...r,...i]}}function kF({node:e,nextNode:t,nodes:n,index:r}){return!Xn(e)||!pn(e)||e.code||!Xn(t)||!pn(t)||e.code?!1:(n.splice(r,2,{text:`${e.text}${t.text}`}),!0)}function AF({node:e,nodes:t,prevNode:n,index:r}){if(!Ji(e)||e.type!=="anchor")return!1;let i=e.children[0];return Xn(i)&&pn(i)?(e.children.splice(0,1),Xn(n)&&pn(n)?n.text=`${n.text}${i.text}`:t.splice(r,0,{text:i.text}),!0):!1}function TF({node:e,nodes:t,nextNode:n,index:r}){if(!Ji(e)||e.type!=="anchor")return!1;let i=e.children[e.children.length-1];return Xn(i)&&pn(i)?(e.children.splice(e.children.length-1,1),Xn(n)&&pn(n)?n.text=`${i.text}${n.text}`:t.splice(r+1,0,{text:i.text}),!0):!1}function BF({node:e}){return!Ji(e)||e.type!=="line"||e.children.length>0?!1:(e.children.push({text:""}),!0)}function OF({node:e,nodes:t,index:n}){if(!Xn(e)||pn(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(o=>o.text!=="");return t.splice(n,1,...i),!0}function MF({index:e,nodes:t,node:n,parent:r}){return e!==t.length-1||t.length<=1||!Xn(n)||!pn(n)?!1:r&&Ji(r)&&r.type==="line"?(t.splice(t.length-1,1),!0):!1}function RF({index:e,nodes:t,node:n,parent:r}){return e!==0||t.length===0||!Xn(n)||!pn(n)?!1:r&&Ji(r)&&r.type==="line"?(t.splice(0,1),!0):!1}var FF=[OF,AF,TF,kF,RF,MF,BF];function _F(e){for(let t of FF)if(t(e))return!0;return!1}var Dre=72;function nw(e,t){let n=!1,r,i=0,o=(e.length+1)*Dre;do{if(r=!1,i=i+1,i>o)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 a=0;a<e.length;a++){let l=e[a];if(Ji(l)&&nw(l.children,l)){r=!0,n=!0;break e}let c=e[a-1],f=e[a+1];if(_F({parent:t,node:l,prevNode:c,nextNode:f,index:a,nodes:e})){r=!0,n=!0;break e}}}while(r);return n}var IF=e=>e.map(t=>ye.isElement(t)&&t.type==="anchor"?{...t,children:IF(t.children)}:t);function LF(e){let t={type:"line",children:IF(e)};return nw([t],void 0),t.children}function PF(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 wre(e){return e.replace(/"/g,'\\"')}function zF(e){let t=QD(e.children);return e.href.startsWith("$")?ti(e.children,t,t):typeof e.title=="string"&&e.title.length>0?`[${ti(e.children,t,t)}](${e.href} "${wre(e.title)}")`:`[${ti(e.children,t,t)}](${e.href})`}function NF(e){return tF(e.text)}function UF(e){if(ge.isText(e))return e.code?PF(e):NF(e);switch(e.type){case"anchor":return zF(e);case"image-inline":return i0(e);default:gu(e)}}function ti(e,t=[],n=[]){let r=LF(e),i=[],o=tw(t,XD(r[0]));for(let a=0;a<r.length;a++){let l=r[a];if(ge.isText(l)&&pn(l)){i.push(l.text);continue}i.push(YD(o.add)),i.push(UF(l));let c=Cre(r,a,n),f=tw(o.nextOrderedMarks,c);i.push(YD(f.remove)),o=f}return i.join("")}function Cre(e,t,n){for(let r=t+1;r<e.length;r++){let i=e[r];if(!pn(i)&&!(ye.isElement(i)&&i.type==="image-inline"))return XD(i)}return n}function qF(e){let t=[];return t.push(HF(e.children[0])),t.push(Sre(e.columns)),e.children.slice(1).forEach(n=>{t.push(HF(n))}),`${t.join(`
|
|
58
|
+
`)}
|
|
59
|
+
|
|
60
|
+
`}function Sre(e){return e.every(n=>n.align==="left")?`|${e.map(()=>"---").join("|")}|`:`|${e.map(n=>kre(n.align)).join("|")}|`}function kre(e){switch(e){case"left":return":---";case"center":return":---:";case"right":return"---:"}}function HF(e){return Jg(e,"table-row"),`|${e.children.map(Are).join("|")}|`}function Are(e){return Jg(e,"table-cell"),YR(e.children.length===1,`Expected table-cell to have one child but is ${JSON.stringify(e.children)}`),e.children.map(Tre).join()}function Tre(e){return Jg(e,"table-content"),ti(e.children)}var rw=4;function jF(e,t){switch(e.type){case"anchor":return`[${ti(e.children)}](${e.href})`;case"block-quote":return`${o0(e.children).split(`
|
|
61
|
+
`).map(r=>`> ${r}`.trim()).join(`
|
|
62
|
+
`)}
|
|
63
|
+
|
|
64
|
+
`;case"heading":return`${"#".repeat(e.level)} ${ti(e.children)}
|
|
65
|
+
|
|
66
|
+
`;case"horizontal-rule":return`---
|
|
67
|
+
|
|
68
|
+
`;case"paragraph":return`${ti(e.children)}
|
|
69
|
+
|
|
70
|
+
`;case"table":return qF(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*rw)}- ${ti(e.children)}
|
|
71
|
+
|
|
72
|
+
`;case"ordered-list-item":return`${" ".repeat(e.depth*rw)}${t[e.depth]}. ${ti(e.children)}
|
|
73
|
+
|
|
74
|
+
`;case"task-list-item":{let n=" ".repeat(e.depth*rw),r=ti(e.children);return r.trim()===""&&(r=" "),`${n}- [${e.checked?"x":" "}] ${r}
|
|
75
|
+
|
|
76
|
+
`}case"image-block":return wF(e);case"image-inline":throw new Error("This shouldn't happen because inlines are handled in serializeSegment")}gu(e)}function o0(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(jF(i,n));let r=t.join("");return r.trim()===""?"":Ore(Bre(r)).trim()}function Bre(e){return e.replace(/^\n\n/g,`
|
|
77
|
+
|
|
78
|
+
`)}function Ore(e){return e.replace(/(\n{4,})/g,t=>{let n=t.length,r=Math.floor((n-2)/2);return`
|
|
79
|
+
|
|
80
|
+
`+Array(r).fill(" ").join(`
|
|
81
|
+
|
|
82
|
+
`)+`
|
|
83
|
+
|
|
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")`
|
|
85
|
+
-webkit-font-smoothing: antialiased;
|
|
86
|
+
-moz-osx-font-smoothing: grayscale;
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
89
|
+
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
`;var t6=q(re());function e6(e){let t=Me();(0,pm.useEffect)(()=>{b.normalize(t,{force:!0})},[]);let{plugins:n}=t.sink,r=(0,pm.useMemo)(()=>({...e,decorate:VF(e.decorate,n),renderElement:e_(e.renderElement,n),renderLeaf:n_(e.renderLeaf,n),renderPlaceholder:r_(e.renderPlaceholder,n),onKeyDown:XF(e.onKeyDown,n),onKeyUp:QF(e.onKeyUp,n),onPaste:ZF(e.onPaste,n),onDrop:JF(e.onDrop,n)}),Object.values(e)),i=(0,pm.useMemo)(()=>KF(n),[n]);return(0,t6.jsx)(i,{...r})}function Bc(e,t,n){let r=e[t],i=n.filter(o=>o.editor?.[t]);return function(a){for(let l of i){let c=l.editor?.[t]?.(a);if(typeof c=="boolean")return c}return r(a)}}function sa(e,t,n){let r=e[t],i=n.filter(o=>o.editor?.[t]);return function(...a){let l=!1,c=[];for(let f of i){let p=f.editor?.[t]?.(...a);if(typeof p=="function")c.push(p);else if(p===!0){l=!0;break}}l||r(...a),c.forEach(f=>f())}}function n6(e){return(t,n)=>{let r=t,i=e.map(o=>o(r,n,{createPolicy:a=>a}));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:sa(r,"normalizeNode",i),deleteBackward:sa(r,"deleteBackward",i),deleteForward:sa(r,"deleteForward",i),deleteFragment:sa(r,"deleteFragment",i),insertBreak:sa(r,"insertBreak",i),insertFragment:sa(r,"insertFragment",i),insertNode:sa(r,"insertNode",i),insertText:sa(r,"insertText",i),isInline:Bc(r,"isInline",i),isVoid:Bc(r,"isVoid",i),isMaster:Bc(r,"isMaster",i),isSlave:Bc(r,"isSlave",i),isStandalone:Bc(r,"isStandalone",i)}),r}}var r6=e=>{let t=e.map(i=>i.fn);return{withSink:n6(t),SinkEditable:e6}};function i6(e,t){return ye.isElement(t)?ne.findPath(e,t):t}function Ae(e,t){return e.bind(null,t)}function ri(e,t,n){return e.bind(null,t,n)}var yie=/mac os x/i,O0;function M0(){if(O0!==void 0)return O0;let{userAgent:e}=window.navigator;return O0=yie.test(e),O0}function ca(e){e.preventDefault(),e.stopPropagation()}function o6(e){if(typeof e=="function")return e;if(typeof e=="string")return t=>ye.isElement(t)&&t.type===e;if(Array.isArray(e))return t=>ye.isElement(t)&&e.includes(t.type);throw new Error(`Expected matchNode to be a function, string or array but is ${e}`)}function ut(e,t,{at:n=e.selection}={}){if(n===null)return;let r=i6(e,n),i=o6(t);if(I.isPath(r)){let o=b.node(e,r);if(o&&i(o[0]))return o}return b.above(e,{at:r,match:i})}function Oc(...e){return ut(...e)?.[1]}var a6=q(re()),ft=({strokeWidth:e=1.5,...t})=>(0,a6.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 mm(e){return e==null?!1:W.isCollapsed(e)}function R0(e){return Array.isArray(e)?t=>ye.isElement(t)&&e.includes(t.type):t=>ye.isElement(t)&&e==t.type}function u6(e,t){let{selection:n}=e;if(!mm(n))return!1;let r=ut(e,t,{at:n});return!!r&&b.isEnd(e,n.anchor,r[1])}function Al(e,t){let{selection:n}=e;if(!mm(n))return!1;let r=ut(e,t,{at:n});return!!r&&b.isStart(e,n.anchor,r[1])}var yw=q(_0());var Die=(0,yw.isHotkey)(" "),wie=(0,yw.isHotkey)("SHIFT+SPACE");function p6(e,t){return n=>{if(!Die(n.nativeEvent)&&!wie(n.nativeEvent))return!1;let{selection:r}=e;if(r===null||W.isExpanded(r))return!1;let i=ut(e,f=>ye.isElement(f)&&e.convertElement.isConvertibleElement(f));if(!i)return!1;let o={anchor:b.start(e,i[1]),focus:r.focus},a=b.string(e,o),l=t[a];if(!l)return!1;ca(n);let c={anchor:b.start(e,i[1]),focus:r.focus};return L.delete(e,{at:c}),l(),!0}}var m6=q(_0());function h6(e){let t=e.replace(/\bsuper\b/g,M0()?"cmd+alt":"ctrl+shift");return(0,m6.isHotkey)(t)}function Qn(e){let t=null;return function(r){t==null&&(t=Object.entries(e).map(([i,o])=>[h6(i),o]));for(let[i,o]of t)if(i(r.nativeEvent)){let a=o();if(a===!0||a===void 0)return r.preventDefault(),r.stopPropagation(),!0}return!1}}function d6(e,t){b.withoutNormalizing(e,()=>{L.setNodes(e,{__DOESNT_MATTER_JUST_TO_START_NORMALIZING__:"123"},{at:t}),L.setNodes(e,{__DOESNT_MATTER_JUST_TO_START_NORMALIZING__:null},{at:t})})}function Eu(e,t,n){let[,r]=t,i=b.previous(e,{at:r});if(i&&n(i,t))return!0;let o=b.next(e,{at:r});return!!(o&&n(t,o))}function Co(e,t){L.select(e,b.start(e,t))}function g6(e,t){L.select(e,b.end(e,t))}function v6(e,t){return typeof t!="function"?t:t(e)}function y6(e,t,{at:n=e.selection}={}){if(n==null)return!1;let r=ut(e,i=>ye.isElement(i)&&e.isMaster(i));if(r==null){let i=e.selection;b.withoutNormalizing(e,()=>{L.insertNodes(e,t,{at:n}),i&&(L.select(e,i),L.move(e))})}else{let i=I.next(r[1]);b.withoutNormalizing(e,()=>{L.insertNodes(e,t,{at:i}),L.select(e,b.start(e,i))})}return!0}function dm(e,t,n){b.withoutNormalizing(e,()=>{let r=b.node(e,n),i=v6(r[0],t);L.wrapNodes(e,i,{at:n}),L.unwrapNodes(e,{at:[...n,0]})})}function I0(e,t,n){let r=Array.from(b.nodes(e,n));if(r.length===0)return!1;for(let i of r){let[o]=i;L.setNodes(e,t(o),{at:i[1]})}return!0}function x6(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 Cie(i)?(t.preventDefault(),t.stopPropagation(),e.anchor.insertLink(i),!0):!1}function Cie(e){let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"||t.protocol==="mailto:"}function b6(e,{href:t,title:n},{at:r}){let i=ut(e,"anchor",{at:r});return i?(L.setNodes(e,{href:t,title:n},{at:i[1]}),!0):!1}function E6(e,t,n=t,{select:r=!0}={}){let i=e.selection||{anchor:b.start(e,[0]),focus:b.start(e,[0])};if(W.isCollapsed(i)){if(L.insertNodes(e,{type:"anchor",href:t,children:[{text:n}]},{select:r,at:i}),r&&e.selection){let o=b.node(e,e.selection);L.select(e,o[1])}}else L.wrapNodes(e,{type:"anchor",href:t,children:[]},{split:!0,match:o=>ge.isText(o)||b.isInline(e,o)})}function D6(e,{at:t}){let n=ut(e,"anchor",{at:t});return n?(L.unwrapNodes(e,{at:n[1]}),!0):!1}function w6(e){return{insertLink:Ae(E6,e),removeLink:Ae(D6,e),editLink:Ae(b6,e)}}function C6(e,t){if(!ye.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(!(!ye.isElement(i)||i.type!=="anchor"))return L.unwrapNodes(e,{at:[...t[1],r]}),!0}return!1}function S6(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=S6(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function hn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=S6(e))&&(r&&(r+=" "),r+=t);return r}var ym=q(Ue());var gm=q(Ue());var k6=q(Nh());function A6({children:e}){return(0,k6.createPortal)(e,document.body)}var Mc=q(re()),xw=(0,gm.createContext)({}),Sie=(0,gm.createContext)({});function T6({children:e}){let[t,n]=(0,gm.useState)({});function r(o){n(a=>({...a,[o.type]:o}))}function i(o){n(a=>{let l={...a};return delete l[o],l})}return(0,Mc.jsxs)(xw.Provider,{value:{layers:t,setLayers:n,openLayer:r,closeLayer:i},children:[e,Object.entries(t).map(([,o])=>(0,Mc.jsx)(A6,{children:(0,Mc.jsx)(Sie.Provider,{value:o,children:(0,Mc.jsx)(o.Component,{})})},o.type))]})}var B6=q(Ue());function hr(e){let{openLayer:t,closeLayer:n,layers:r}=(0,B6.useContext)(xw);function i(a){t({type:e,Component:a})}function o(){n(e)}return{open:i,close:o,layer:r[e],type:e}}var O6=ae("a")`
|
|
92
|
+
/**
|
|
93
|
+
* Link colors
|
|
94
|
+
*/
|
|
95
|
+
color: var(--link-color, blue);
|
|
96
|
+
&:hover {
|
|
97
|
+
color: var(--link-hover-color, blue);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* When the cursor is in the anchor and not outside the anchor, we style the
|
|
101
|
+
* anchor with a very light shade. This is enough to subtly intuit to the user
|
|
102
|
+
* that when they type, it will appear inside the link. When the shade is
|
|
103
|
+
* not present, they intuit they are just outside the link.
|
|
104
|
+
*/
|
|
105
|
+
border-radius: 0.125em;
|
|
106
|
+
transition: background-color 250ms;
|
|
107
|
+
&.--selected {
|
|
108
|
+
background: var(--blue-50);
|
|
109
|
+
}
|
|
110
|
+
`,bw=ae("span")`
|
|
111
|
+
display: inline;
|
|
112
|
+
padding: 0 1px 0 0;
|
|
113
|
+
`,rke=ae("span")`
|
|
114
|
+
position: fixed;
|
|
115
|
+
width: 100px;
|
|
116
|
+
background: var(--shade-50);
|
|
117
|
+
height: 8px;
|
|
118
|
+
border-radius: 7px;
|
|
119
|
+
border: 1px solid var(--shade-400);
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
122
|
+
`,ike=ae("span")`
|
|
123
|
+
position: absolute;
|
|
124
|
+
left: 0;
|
|
125
|
+
top: 0;
|
|
126
|
+
height: 14px;
|
|
127
|
+
background: var(--blue-400);
|
|
128
|
+
transition: width 100ms linear;
|
|
129
|
+
`;var Bw=q(Ue());var R6=q(Ue());var M6=ae("div")`
|
|
130
|
+
position: fixed;
|
|
131
|
+
user-select: none;
|
|
132
|
+
top: 0;
|
|
133
|
+
left: 0;
|
|
134
|
+
right: 0;
|
|
135
|
+
bottom: 0;
|
|
136
|
+
overflow-y: auto;
|
|
137
|
+
background: rgba(0, 0, 0, 0.01);
|
|
138
|
+
`;var F6=q(re());function Du({close:e}){let t=(0,R6.useRef)(null);return(0,F6.jsx)(M6,{ref:t,onClick:e})}var So={cmd:"\u2318",ctrl:"\u2303",shift:"\u21E7",opt:"\u2325",enter:"\u23CE"},kie={shift:So.shift,opt:So.opt,alt:So.opt,ctrl:So.ctrl,mod:So.cmd,cmd:So.cmd,enter:So.enter,super:`${So.opt}${So.cmd}`},Aie={alt:"ALT",ctrl:"CTRL",opt:"ALT",shift:"SHIFT",mod:"CTRL",cmd:"CTRL",enter:So.enter,super:"CTRL+SHIFT"};function _6(e,t){let n=e.findIndex(r=>r===t);n!==-1&&e.splice(n,1)}function Tie(e){let t=[];return Object.entries(kie).forEach(([n,r])=>{e.includes(n)&&(t.push(r),_6(e,n))}),t.push(...e.map(n=>n.toUpperCase())),t.join("")}function Bie(e){let t=[];return Object.entries(Aie).forEach(([n,r])=>{e.includes(n)&&(t.push(r),_6(e,n))}),t.push(...e.map(n=>n.toUpperCase())),t.join("+")}function L0(e){let t=e.toLowerCase().split("+");return M0()?Tie(t):Bie(t)}var rI=q(Ue());function Ew(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 I6(e){let t=Ew(e),{scrollY:n}=window;return Object.assign(t,{top:t.top+n,bottom:t.bottom+n})}function Dw(){let e=document.documentElement.clientWidth||document.body.clientWidth;return{top:0,right:e,bottom:window.innerHeight,left:0,width:e,height:window.innerHeight}}function L6(){let e=Dw();return Object.assign(e,{top:window.scrollY,bottom:window.scrollY+e.height})}var P6=Oie;function Oie(e,t){for(var n={},r=Object.keys(e),i=r.length,o=0;o<i;o++){var a=r[o];n[a]=t(e[a],a,e)}return n}function ww(e,t){return P6(e,r=>{let i=r instanceof HTMLElement?r:r.current;return i?t(i):null})}var U6=q(Ue());var z6=q(og()),N6=q(Ue());function P0(e=100){let[t,n]=(0,N6.useState)(0),r=(0,z6.throttle)(()=>{n(i=>i+1)},e,{trailing:!0});return Object.assign(r,{counter:t})}function Cw(){let e=P0();return(0,U6.useEffect)(()=>(e(),window.addEventListener("resize",e),window.addEventListener("scroll",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}),[]),e}function Li(e,t){let n=Cw(),r=ww(e,i=>I6(i));return t(r,L6(),n)}function z0(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 Pi=ae(fm)`
|
|
139
|
+
position: absolute;
|
|
140
|
+
z-index: 1000;
|
|
141
|
+
border: 1px solid var(--table-border-color);
|
|
142
|
+
border-radius: 0.5em;
|
|
143
|
+
overflow: clip;
|
|
144
|
+
filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07))
|
|
145
|
+
drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
|
|
146
|
+
background: white;
|
|
147
|
+
/**
|
|
148
|
+
* If you are tempted to add the transitions back in, here's why we left
|
|
149
|
+
* them off:
|
|
150
|
+
*
|
|
151
|
+
* - When we initially unhide the panel (by setting a negative 'left' pos)
|
|
152
|
+
* the panel slides in very quickly. So we'd need to fix this first which
|
|
153
|
+
* adds complexity.
|
|
154
|
+
*
|
|
155
|
+
* - Even if we fixed it, the browser window updates the scrolls and resizes
|
|
156
|
+
* in a stepped manner (i.e. like frames in an animation). Keeping the
|
|
157
|
+
* smooth animations makes the panel step in sync with the page refreshes
|
|
158
|
+
* and so actually looks better.
|
|
159
|
+
*
|
|
160
|
+
* In other words, there's a technical issue we'd still need to solve but
|
|
161
|
+
* even if we did, it looks better this way.
|
|
162
|
+
*/
|
|
163
|
+
/* transition: left 100ms, top 100ms; */
|
|
164
|
+
`;var H6=ae(Pi)`
|
|
165
|
+
padding: 1em;
|
|
166
|
+
width: 24em;
|
|
167
|
+
`,q6=ae("div")`
|
|
168
|
+
display: flex;
|
|
169
|
+
gap: 0.5em;
|
|
170
|
+
`,j6=ae("input")`
|
|
171
|
+
flex: 1 1 auto;
|
|
172
|
+
padding: 0.5em 0.75em;
|
|
173
|
+
border-radius: 0.25em;
|
|
174
|
+
color: var(--shade-700);
|
|
175
|
+
border: 1px solid var(--shade-300);
|
|
176
|
+
font-size: 0.9375em;
|
|
177
|
+
&:focus {
|
|
178
|
+
outline: 2px solid var(--blue-200);
|
|
179
|
+
}
|
|
180
|
+
`;var V6=ae(fm)`
|
|
181
|
+
border: 1px solid var(--shade-300); /* shade-300 */
|
|
182
|
+
border-radius: 0.5em;
|
|
183
|
+
color: rgb(39 39 42); /* shade-800 */
|
|
184
|
+
line-height: 1.5;
|
|
185
|
+
/**
|
|
186
|
+
* !important is required because of role="textbox" I think
|
|
187
|
+
*/
|
|
188
|
+
outline: 2px solid transparent !important;
|
|
189
|
+
transition: all 250ms;
|
|
190
|
+
&.--focused {
|
|
191
|
+
/**
|
|
192
|
+
* !important is required because of role="textbox" I think
|
|
193
|
+
*/
|
|
194
|
+
outline: 2px solid var(--select-editor-color) !important;
|
|
195
|
+
}
|
|
196
|
+
`;var $6=ae("div")`
|
|
197
|
+
padding: 2em;
|
|
198
|
+
`,G6=ae(V6)`
|
|
199
|
+
/**
|
|
200
|
+
* We use this to make sure the top of the container is rounded even though
|
|
201
|
+
* the toolbar inside is square. We keep the toolbar square so that as the
|
|
202
|
+
* toolbar hits the top when scrolling, it can become sticky. We can try to
|
|
203
|
+
* round the toolbar, but it causes an issue where the part under the
|
|
204
|
+
* rounded part is still visible (i.e. the edge of the container). We can
|
|
205
|
+
* then try to put an absolutely positioned background on it with an opaque
|
|
206
|
+
* color, but that doesn't work unless we know the color of the background
|
|
207
|
+
* so... ultimately, it's not a good solution.
|
|
208
|
+
*
|
|
209
|
+
* NOTE:
|
|
210
|
+
*
|
|
211
|
+
* Using "overflow: hidden;" will break the "position: sticky;" and it will
|
|
212
|
+
* not work. "overflow: clip;" does work though.
|
|
213
|
+
*
|
|
214
|
+
* https://stackoverflow.com/a/73051006
|
|
215
|
+
*/
|
|
216
|
+
overflow-y: clip;
|
|
217
|
+
display: flex;
|
|
218
|
+
flex-direction: column;
|
|
219
|
+
`;var W6=ae(Pi)`
|
|
220
|
+
position: absolute;
|
|
221
|
+
padding-top: 0.5em;
|
|
222
|
+
padding-bottom: 0.5em;
|
|
223
|
+
transition: all 200ms;
|
|
224
|
+
/**
|
|
225
|
+
* Prevent clicks from stealing focus from the editor
|
|
226
|
+
*/
|
|
227
|
+
user-select: none;
|
|
228
|
+
`,K6=ae("div")`
|
|
229
|
+
display: flex;
|
|
230
|
+
z-index: 10;
|
|
231
|
+
padding: 0 1em 0 1.5em;
|
|
232
|
+
height: 2em;
|
|
233
|
+
align-items: center;
|
|
234
|
+
/**
|
|
235
|
+
* Normally we don't do it this way but since each part of the MenuItem
|
|
236
|
+
* is tightly related to the display: flex, this seemed the easiest way
|
|
237
|
+
* to set this up.
|
|
238
|
+
*/
|
|
239
|
+
.--icon {
|
|
240
|
+
flex: 0 0;
|
|
241
|
+
display: block;
|
|
242
|
+
font-size: 1.25em;
|
|
243
|
+
height: 1em;
|
|
244
|
+
padding-right: 0.75em;
|
|
245
|
+
color: var(--shade-400);
|
|
246
|
+
svg {
|
|
247
|
+
position: relative;
|
|
248
|
+
stroke-width: 1.5px;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
.--title {
|
|
252
|
+
flex: 1 0;
|
|
253
|
+
font-size: 0.875em;
|
|
254
|
+
color: var(--shade-800);
|
|
255
|
+
}
|
|
256
|
+
.--hotkey {
|
|
257
|
+
flex: 0 0;
|
|
258
|
+
font-size: 0.75em;
|
|
259
|
+
padding-left: 1.5em;
|
|
260
|
+
color: var(--shade-500);
|
|
261
|
+
}
|
|
262
|
+
background: white;
|
|
263
|
+
cursor: pointer;
|
|
264
|
+
&:hover {
|
|
265
|
+
background: var(--blue-50);
|
|
266
|
+
}
|
|
267
|
+
`,Y6=ae("div")`
|
|
268
|
+
height: 1px;
|
|
269
|
+
background: var(--shade-200);
|
|
270
|
+
margin-top: 0.25em;
|
|
271
|
+
margin-bottom: 0.25em;
|
|
272
|
+
`;var X6=ae("div")`
|
|
273
|
+
/**
|
|
274
|
+
* This flex rule applies to the "display: flex;" of the parent container.
|
|
275
|
+
* Ensures the toolbar does not shrink or grow vertically.
|
|
276
|
+
*/
|
|
277
|
+
flex: 0 0 auto;
|
|
278
|
+
/**
|
|
279
|
+
* If "position: sticky;" is not working, check the ancestor for "overflow:
|
|
280
|
+
* hidden;" of any kind. This will stop sticky from working. A good workaround
|
|
281
|
+
* is to use "overflow: clip;" instead.
|
|
282
|
+
*
|
|
283
|
+
* https://stackoverflow.com/a/73051006
|
|
284
|
+
*/
|
|
285
|
+
position: sticky;
|
|
286
|
+
top: 0;
|
|
287
|
+
z-index: 2;
|
|
288
|
+
background: var(--shade-50);
|
|
289
|
+
/* font-size: 0.875em; */
|
|
290
|
+
font-size: 0.9375em;
|
|
291
|
+
padding: 0 0.5em;
|
|
292
|
+
border-bottom: 1px solid var(--shade-300);
|
|
293
|
+
/**
|
|
294
|
+
* Prevent clicks from stealing focus from the editor
|
|
295
|
+
*/
|
|
296
|
+
user-select: none;
|
|
297
|
+
/**
|
|
298
|
+
* Extreme attention to detail. When the sticky is ending and the toolbar
|
|
299
|
+
* is stuck to the bottom of the editor, setting margin-bottom to -1px will
|
|
300
|
+
* fix the 2px bottom border and make it the proper 1px.
|
|
301
|
+
*/
|
|
302
|
+
margin-bottom: -1px;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* NOTE: The space in the equation is significant
|
|
306
|
+
*/
|
|
307
|
+
height: calc(
|
|
308
|
+
3em + 1px
|
|
309
|
+
); // $ToolbarDivider height + border-bottom of 1px above
|
|
310
|
+
overflow: hidden;
|
|
311
|
+
`,Q6=ae("div")`
|
|
312
|
+
display: inline-block;
|
|
313
|
+
height: calc(
|
|
314
|
+
3em + 1px
|
|
315
|
+
); // $ToolbarDivider height + border-bottom of 1px above
|
|
316
|
+
`,Z6=ae("div")`
|
|
317
|
+
display: inline-block;
|
|
318
|
+
height: 3em;
|
|
319
|
+
padding: 0 0.375em;
|
|
320
|
+
`,J6=ae("div")`
|
|
321
|
+
display: inline-block;
|
|
322
|
+
background: var(--shade-300);
|
|
323
|
+
opacity: 50%;
|
|
324
|
+
width: 1px;
|
|
325
|
+
height: 3em;
|
|
326
|
+
`,eI=ae("div")`
|
|
327
|
+
box-sizing: border-box;
|
|
328
|
+
position: relative;
|
|
329
|
+
display: inline-block;
|
|
330
|
+
vertical-align: top;
|
|
331
|
+
font-size: 1.25em;
|
|
332
|
+
margin-top: 0.25em;
|
|
333
|
+
height: 2em;
|
|
334
|
+
padding: 0.375em 0.375em;
|
|
335
|
+
border-radius: 0.25em;
|
|
336
|
+
text-align: center;
|
|
337
|
+
color: var(--shade-500);
|
|
338
|
+
transition: all 100ms;
|
|
339
|
+
cursor: pointer;
|
|
340
|
+
border: 1px solid rgba(0, 0, 0, 0);
|
|
341
|
+
&.--disabled {
|
|
342
|
+
opacity: 0.3;
|
|
343
|
+
cursor: default;
|
|
344
|
+
pointer-events: none;
|
|
345
|
+
}
|
|
346
|
+
&.--active {
|
|
347
|
+
color: var(--shade-700);
|
|
348
|
+
background: rgba(0, 0, 0, 0.05);
|
|
349
|
+
svg {
|
|
350
|
+
/* stroke-width: 2px; */
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
svg {
|
|
354
|
+
stroke-width: 1.5px;
|
|
355
|
+
}
|
|
356
|
+
&:not(.--disabled):hover {
|
|
357
|
+
color: var(--shade-700);
|
|
358
|
+
background: var(--blue-100);
|
|
359
|
+
svg {
|
|
360
|
+
/* stroke-width: 2px; */
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
&.--more {
|
|
365
|
+
padding: 0.375em 0.5em;
|
|
366
|
+
}
|
|
367
|
+
.--more-icon {
|
|
368
|
+
position: absolute;
|
|
369
|
+
bottom: -0.2em;
|
|
370
|
+
left: 50%;
|
|
371
|
+
margin-left: -0.25em;
|
|
372
|
+
opacity: 0.375;
|
|
373
|
+
}
|
|
374
|
+
`;var tI=q(Ue());var eo=q(re());function nI({editor:e,item:t,close:n,dest:r}){let i=hr("menu"),o=(0,tI.useCallback)(()=>{if(t.Component){let a=t.Component;i.open(()=>(0,eo.jsx)(a,{dest:r,close:i.close}))}else t.action&&(t.action(e),ne.focus(e),n())},[e,t]);return(0,eo.jsx)(eo.Fragment,{children:(0,eo.jsxs)(K6,{onClick:o,children:[(0,eo.jsx)("div",{className:"--icon",children:(0,eo.jsx)(t.icon,{})}),(0,eo.jsx)("div",{className:"--title",children:t.title}),(0,eo.jsx)("div",{className:"--hotkey",children:t.hotkey?L0(t.hotkey):void 0})]})})}var fa=q(re());function N0({dest:e,items:t,close:n}){let r=Me(),i=(0,rI.useRef)(null),o=Li({src:i,dest:e},({dest:a})=>({left:a.left-8,top:a.top+a.height}));return(0,fa.jsxs)(fa.Fragment,{children:[(0,fa.jsx)(Du,{close:n}),(0,fa.jsx)(W6,{ref:i,style:o,children:t.map((a,l)=>a==="divider"?(0,fa.jsx)(Y6,{},l):a.show&&!a.show(r)?null:(0,fa.jsx)(nI,{editor:r,item:a,close:n,dest:e},l))})]})}var kw=q(Ue());var U0=q(re());function Sw(e){return e.getBoundingClientRect()}var Mie=ae("div")`
|
|
375
|
+
position: fixed;
|
|
376
|
+
z-index: 10;
|
|
377
|
+
-webkit-font-smoothing: antialiased;
|
|
378
|
+
-moz-osx-font-smoothing: grayscale;
|
|
379
|
+
font-size: 16px;
|
|
380
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
381
|
+
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
382
|
+
color: white;
|
|
383
|
+
font-size: 0.875em;
|
|
384
|
+
line-height: 1.5em;
|
|
385
|
+
padding: 0 0.5em;
|
|
386
|
+
color: var(--shade-300);
|
|
387
|
+
background: var(--shade-700);
|
|
388
|
+
border-radius: 0.25em;
|
|
389
|
+
white-space: nowrap;
|
|
390
|
+
`,Rie=ae("span")`
|
|
391
|
+
margin-left: 0.75em;
|
|
392
|
+
font-size: 0.875em;
|
|
393
|
+
font-weight: 500;
|
|
394
|
+
color: var(--shade-400);
|
|
395
|
+
`;function iI({title:e,hotkey:t,dest:n}){let r=Sw(n);return(0,U0.jsxs)(Mie,{style:{left:r.left,top:`calc(${r.top}px - 2em)`},children:[e,t?(0,U0.jsx)(Rie,{children:t}):null]})}var aI=q(re()),Fie=ae("span")`
|
|
396
|
+
position: fixed;
|
|
397
|
+
z-index: 10;
|
|
398
|
+
width: 0;
|
|
399
|
+
height: 0;
|
|
400
|
+
border-left: 0.375em solid transparent;
|
|
401
|
+
border-right: 0.375em solid transparent;
|
|
402
|
+
border-top: 0.375em solid var(--shade-700);
|
|
403
|
+
`;function oI({dest:e}){let t=Sw(e);return(0,aI.jsx)(Fie,{style:{left:`calc(${t.left+t.width/2}px - 0.375em)`,top:`calc(${t.top}px - 0.5em)`}})}var Aw=q(re());function to({title:e,hotkey:t},n=[]){let r=hr("tooltip-label"),i=hr("tooltip-triangle"),o=(0,kw.useCallback)(l=>{let c=l.currentTarget;e!==void 0&&(r.open(()=>(0,Aw.jsx)(iI,{title:e,hotkey:typeof t=="function"?t():t,dest:c})),i.open(()=>(0,Aw.jsx)(oI,{dest:c})))},n),a=(0,kw.useCallback)(()=>{r.close(),i.close()},n);return{onMouseEnter:o,onMouseLeave:a}}var ko=q(Ue());var _ie={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"}},gt=e=>{let t=window.navigator.language.split("-")[0];return _ie[t==="ja"?"ja":"en"][e]};var vm=ae("div")`
|
|
404
|
+
margin: 0.5em 0;
|
|
405
|
+
&:first-of-type {
|
|
406
|
+
margin-top: 0;
|
|
407
|
+
}
|
|
408
|
+
&:last-of-type {
|
|
409
|
+
margin-bottom: 0;
|
|
410
|
+
}
|
|
411
|
+
`,Tw=ae("div")`
|
|
412
|
+
font-size: 0.9375em;
|
|
413
|
+
margin-bottom: 0.25em;
|
|
414
|
+
color: var(--shade-700);
|
|
415
|
+
`,uI=ae("div")`
|
|
416
|
+
font-size: 0.875em;
|
|
417
|
+
margin-top: 0.25em;
|
|
418
|
+
color: var(--shade-500);
|
|
419
|
+
`,lI=ae("input")`
|
|
420
|
+
box-sizing: border-box;
|
|
421
|
+
width: 100%;
|
|
422
|
+
height: 6em;
|
|
423
|
+
padding: 0.5em 0.75em;
|
|
424
|
+
border-radius: 0.25em;
|
|
425
|
+
color: var(--shade-700);
|
|
426
|
+
font-family: inherit;
|
|
427
|
+
border: 1px solid var(--shade-300);
|
|
428
|
+
font-size: 0.9375em;
|
|
429
|
+
&:focus {
|
|
430
|
+
outline: 2px solid var(--blue-200);
|
|
431
|
+
}
|
|
432
|
+
`,sI=ae("input")`
|
|
433
|
+
box-sizing: border-box;
|
|
434
|
+
width: 100%;
|
|
435
|
+
padding: 0.5em 0.75em;
|
|
436
|
+
border-radius: 0.25em;
|
|
437
|
+
color: var(--shade-700);
|
|
438
|
+
border: 1px solid var(--shade-300);
|
|
439
|
+
font-size: 0.9375em;
|
|
440
|
+
&:focus {
|
|
441
|
+
outline: 2px solid var(--blue-200);
|
|
442
|
+
}
|
|
443
|
+
`,cI=ae("div")`
|
|
444
|
+
/* Center vertically and horizontally */
|
|
445
|
+
display: flex;
|
|
446
|
+
align-items: center;
|
|
447
|
+
justify-content: center;
|
|
448
|
+
cursor: pointer;
|
|
449
|
+
padding: 0.25em 0.75em;
|
|
450
|
+
text-align: center;
|
|
451
|
+
transition: all 100ms;
|
|
452
|
+
border-radius: 0.25em;
|
|
453
|
+
svg {
|
|
454
|
+
font-size: 1.25em;
|
|
455
|
+
stroke-width: 2px;
|
|
456
|
+
}
|
|
457
|
+
`,fI=ae(cI)`
|
|
458
|
+
color: var(--blue-50);
|
|
459
|
+
background: var(--blue-500);
|
|
460
|
+
outline: 0px solid white;
|
|
461
|
+
&:hover {
|
|
462
|
+
color: white;
|
|
463
|
+
background: var(--blue-600);
|
|
464
|
+
outline: 2px solid var(--blue-200);
|
|
465
|
+
}
|
|
466
|
+
svg {
|
|
467
|
+
color: var(--blue-200);
|
|
468
|
+
}
|
|
469
|
+
`,pI=ae(cI)`
|
|
470
|
+
color: var(--shade-500);
|
|
471
|
+
background: var(--shade-200);
|
|
472
|
+
outline: 0px solid white;
|
|
473
|
+
&:hover {
|
|
474
|
+
color: var(--shade-600);
|
|
475
|
+
background: var(--shade-300);
|
|
476
|
+
outline: 2px solid var(--shade-200);
|
|
477
|
+
}
|
|
478
|
+
svg {
|
|
479
|
+
color: var(--shade-400);
|
|
480
|
+
}
|
|
481
|
+
`;var dr=q(re()),Iie=ae(Pi)`
|
|
482
|
+
position: absolute;
|
|
483
|
+
width: 20em;
|
|
484
|
+
padding: 1em;
|
|
485
|
+
`;function mI({destAnchor:e,destStartEdge:t,element:n}){let r=hr("dialog"),i=Li({destAnchor:e,destStartEdge:t},({destAnchor:S,destStartEdge:T})=>({left:T.left,top:S.top+S.height})),o=Me(),[a,l]=(0,ko.useState)(n.href),[c,f]=(0,ko.useState)(n.title||""),p=(0,ko.useRef)({href:a,title:c});p.current={href:a,title:c};let d=(0,ko.useCallback)(S=>{l(S.target.value)},[]),g=(0,ko.useCallback)(S=>{f(S.target.value)},[]),m=(0,ko.useCallback)(()=>{r.open(()=>(0,dr.jsx)(H0,{destAnchor:e,destStartEdge:t,element:n}))},[e,t,n]),x=(0,ko.useCallback)(()=>{let{href:S,title:T}=p.current;o.anchor.editLink({href:S,title:T},{at:n}),m()},[m]);return(0,dr.jsxs)(Iie,{contentEditable:!1,style:i,children:[(0,dr.jsxs)(vm,{children:[(0,dr.jsx)(Tw,{children:gt("linkUrl")}),(0,dr.jsx)(lI,{as:"textarea",value:a,onChange:d})]}),(0,dr.jsxs)(vm,{children:[(0,dr.jsx)(Tw,{children:gt("tooltipText")}),(0,dr.jsx)(sI,{type:"text",value:c,onChange:g}),(0,dr.jsx)(uI,{children:gt("tooltipHint")})]}),(0,dr.jsx)(vm,{children:(0,dr.jsx)(fI,{onClick:x,children:gt("apply")})}),(0,dr.jsx)(vm,{children:(0,dr.jsx)(pI,{onClick:m,children:gt("cancel")})})]})}var Tl=q(re()),hI=e=>(0,Tl.jsx)(ft,{...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"})}),dI=e=>(0,Tl.jsx)(ft,{...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"})}),gI=e=>(0,Tl.jsx)(ft,{...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 gr=q(re()),Lie=ae(Pi)`
|
|
486
|
+
position: absolute;
|
|
487
|
+
display: flex;
|
|
488
|
+
width: 20em;
|
|
489
|
+
z-index: 10;
|
|
490
|
+
padding: 1em;
|
|
491
|
+
color: var(--shade-400);
|
|
492
|
+
|
|
493
|
+
.--icons {
|
|
494
|
+
display: flex;
|
|
495
|
+
overflow: hidden;
|
|
496
|
+
flex: 0 0 6em;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.--link {
|
|
500
|
+
text-decoration: none;
|
|
501
|
+
display: flex;
|
|
502
|
+
flex: 0 0 14em;
|
|
503
|
+
overflow: hidden;
|
|
504
|
+
color: var(--shade-400);
|
|
505
|
+
&:hover {
|
|
506
|
+
color: var(--blue-600);
|
|
507
|
+
}
|
|
508
|
+
transition: all 200ms;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.--url {
|
|
512
|
+
margin-left: 0.5em;
|
|
513
|
+
.--hostname {
|
|
514
|
+
font-size: 0.875em;
|
|
515
|
+
width: 14em;
|
|
516
|
+
line-height: 1.5em;
|
|
517
|
+
color: var(--blue-600);
|
|
518
|
+
overflow-wrap: break-word;
|
|
519
|
+
/* width: 13.5em;
|
|
520
|
+
white-space: nowrap;
|
|
521
|
+
overflow: hidden;
|
|
522
|
+
text-overflow: ellipsis; */
|
|
523
|
+
}
|
|
524
|
+
.--pathname {
|
|
525
|
+
margin-top: 0.125em;
|
|
526
|
+
font-size: 0.75em;
|
|
527
|
+
width: 16.25em;
|
|
528
|
+
line-height: 1.5em;
|
|
529
|
+
overflow-wrap: break-word;
|
|
530
|
+
}
|
|
531
|
+
.--tooltip {
|
|
532
|
+
box-sizing: border-box;
|
|
533
|
+
position: relative;
|
|
534
|
+
margin-top: 1em;
|
|
535
|
+
font-size: 0.875em;
|
|
536
|
+
width: 14em;
|
|
537
|
+
line-height: 1.5em;
|
|
538
|
+
background: var(--shade-200);
|
|
539
|
+
border-radius: 0.5em;
|
|
540
|
+
padding: 0.5em 0.75em;
|
|
541
|
+
color: var(--shade-600);
|
|
542
|
+
overflow-wrap: break-word;
|
|
543
|
+
}
|
|
544
|
+
.--tooltip::before {
|
|
545
|
+
content: "";
|
|
546
|
+
position: absolute;
|
|
547
|
+
top: -0.5em; /* Height of the triangle */
|
|
548
|
+
left: 0.5em; /* Position it on the left side */
|
|
549
|
+
border-left: 0.5em solid transparent; /* Half the width of the triangle */
|
|
550
|
+
border-right: 0.5em solid transparent; /* Half the width of the triangle */
|
|
551
|
+
border-bottom: 0.5em solid var(--shade-200); /* Height and color of the triangle */
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.--icon {
|
|
556
|
+
cursor: pointer;
|
|
557
|
+
margin-left: 0.5em;
|
|
558
|
+
&:hover {
|
|
559
|
+
color: var(--blue-600);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
svg {
|
|
564
|
+
flex: 0 0 auto;
|
|
565
|
+
width: 1.25em;
|
|
566
|
+
height: 1.25em;
|
|
567
|
+
stroke-width: 1.5;
|
|
568
|
+
}
|
|
569
|
+
`;function Pie(e){try{let t=new URL(e);return{hostname:t.hostname,pathname:t.pathname}}catch{return{hostname:"",pathname:""}}}function H0({destAnchor:e,destStartEdge:t,element:n}){let r=hr("dialog"),i=Me(),o=Pie(n.href),a=Li({destAnchor:e,destStartEdge:t},({destAnchor:d,destStartEdge:g})=>({left:g.left,top:d.top+d.height})),l=to({title:"\u30EA\u30F3\u30AF\u3092\u524A\u9664"}),c=to({title:"\u30EA\u30F3\u30AF\u3092\u7DE8\u96C6"}),f=(0,Bw.useCallback)(()=>{i.anchor.removeLink({at:n})},[i]),p=(0,Bw.useCallback)(()=>{c.onMouseLeave(),r.open(()=>(0,gr.jsx)(mI,{destAnchor:e,destStartEdge:t,element:n}))},[e,t,n]);return(0,gr.jsxs)(Lie,{contentEditable:!1,style:a,children:[(0,gr.jsxs)("a",{className:"--link",href:n.href,target:"_blank",rel:"noreferrer",children:[(0,gr.jsx)(hI,{}),(0,gr.jsxs)("div",{className:"--url",children:[(0,gr.jsx)("div",{className:"--hostname",children:o.hostname}),o.pathname===""||o.pathname==="/"?null:(0,gr.jsx)("div",{className:"--pathname",children:o.pathname}),n.title==null||n.title===""?null:(0,gr.jsx)("div",{className:"--tooltip",children:n.title})]})]}),(0,gr.jsxs)("span",{className:"--icons",children:[(0,gr.jsx)("span",{className:"--icon",onClick:f,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave,children:(0,gr.jsx)(dI,{})}),(0,gr.jsx)("span",{className:"--icon",onMouseEnter:c.onMouseEnter,onMouseLeave:c.onMouseLeave,onClick:p,children:(0,gr.jsx)(gI,{})})]})]})}var Bl=q(re());function vI({element:e,attributes:t,children:n}){let r=(0,ym.useRef)(null),i=(0,ym.useRef)(null),o=Ri(),a=hr("dialog");return(0,ym.useEffect)(()=>{let l=i.current,c=r.current;!l||!c||(o?setTimeout(()=>{a.open(()=>(0,Bl.jsx)(H0,{destAnchor:l,destStartEdge:c,element:e}))}):a.close())},[o,e]),(0,Bl.jsxs)(O6,{className:hn({"--selected":o}),href:e.href,target:e.target,...t,ref:i,children:[(0,Bl.jsx)(bw,{ref:r,contentEditable:!1}),(0,Bl.jsx)("span",{children:n}),(0,Bl.jsx)(bw,{contentEditable:!1})]})}var xI=q(re()),yI=at((e,t,{createPolicy:n})=>(e.anchor=w6(e),n({name:"anchor",editor:{isInline(r){if(r.type==="anchor")return!0},normalizeNode:Ae(C6,e)},editableProps:{onPaste:Ae(x6,e),renderElement:({element:r,attributes:i,children:o})=>{if(r.type==="anchor")return(0,xI.jsx)(vI,{element:r,attributes:i,children:o})}}})));function Ow(e,t,n){if(!t||!n||I.equals(t[1],n[1]))return!0;let r=ut(e,o=>ye.isElement(o)&&e.isMaster(o),{at:t[1]}),i=ut(e,o=>ye.isElement(o)&&e.isMaster(o),{at:n[1]});return!!(!r&&!i||r&&i&&I.equals(r[1],i[1]))}var bI=at(e=>(e.atomicDelete=!0,{name:"atomic-delete",editor:{deleteBackward(){if(e.selection==null)return!1;let t=b.node(e,e.selection),n=b.previous(e,{mode:"lowest"});return Ow(e,t,n)?!1:(L.move(e,{unit:"character",reverse:!0}),!0)},deleteForward(){if(e.selection==null)return!1;let t=b.node(e,e.selection),n=b.next(e,{mode:"lowest"});return Ow(e,t,n)?!1:(L.move(e,{unit:"character"}),!0)}}}));function zie(e){}function EI(e){return{noop:Ae(zie,e)}}function DI(e,t){return!1}var wI=ae("div")`
|
|
570
|
+
display: block;
|
|
571
|
+
margin: 1em 0;
|
|
572
|
+
`;var zw=q(Ue());var CI=e=>{let t,n=new Set,r=(p,d)=>{let g=typeof p=="function"?p(t):p;if(!Object.is(g,t)){let m=t;t=d??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(x=>x(t,m))}},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},SI=e=>e?CI(e):CI;var LI=q(Ue(),1),PI=q(FI(),1),{useDebugValue:noe}=LI.default,{useSyncExternalStoreWithSelector:roe}=PI.default,_I=!1,ioe=e=>e;function ooe(e,t=ioe,n){(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&n&&!_I&&(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"),_I=!0);let r=roe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return noe(r),r}var II=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"?SI(e):e,n=(r,i)=>ooe(t,r,i);return Object.assign(n,t),n},aoe=e=>e?II(e):II,zI=e=>((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),aoe(e));var NI=({uploads:e={}}={uploads:{}})=>zI((t,n)=>({uploads:e,setUpload(r,i){t(o=>({uploads:{...o.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 UI(e){let n=Me().upload.useUploadStore(r=>r.uploads[e]);return e.includes("/")?{status:"success",url:e}:n}function xm(e,t,n){e.upload.useUploadStore.getState().setUpload(t,n)}var HI=ae("span")`
|
|
573
|
+
/**
|
|
574
|
+
* In order for this container to wrap tightly (without space), it needs to be
|
|
575
|
+
* an "inline-block". If it's just an "inline" we end up with spacing
|
|
576
|
+
* artificats related to how spacing is placed around text.
|
|
577
|
+
*/
|
|
578
|
+
display: inline-block;
|
|
579
|
+
/**
|
|
580
|
+
* This wrapper's primary purpose (why we don't use the image by itself) is
|
|
581
|
+
* so that we can place UI controls for the image in and around the image.
|
|
582
|
+
*/
|
|
583
|
+
position: relative;
|
|
584
|
+
`,qI=ae("img")`
|
|
585
|
+
/**
|
|
586
|
+
* TODO:
|
|
587
|
+
*
|
|
588
|
+
* This is a bit of a hack but is a better experience than not anything.
|
|
589
|
+
*
|
|
590
|
+
* Constrains the maximum resize width of an image to 100% of the space
|
|
591
|
+
* available. This prevents the image from stepping outside its boundaries.
|
|
592
|
+
*
|
|
593
|
+
* Problem:
|
|
594
|
+
*
|
|
595
|
+
* - The "height" is set to "auto" which likely conflicts with the height
|
|
596
|
+
* provided as an image attribute of "height" set by the application.
|
|
597
|
+
* Effectively, this means that the "height" is ignored which is fine
|
|
598
|
+
* except when the image hasn't been loaded yet, I think it's possible
|
|
599
|
+
* and perhaps likely that there may be a reflow that happens before/after
|
|
600
|
+
* the image is loaded.
|
|
601
|
+
*/
|
|
602
|
+
max-width: 100%;
|
|
603
|
+
height: auto;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Rounded borders are pretty and also help the selection outline look
|
|
607
|
+
* pretty.
|
|
608
|
+
*/
|
|
609
|
+
transition: border-radius 250ms;
|
|
610
|
+
border-radius: 0.5em;
|
|
611
|
+
.--small > & {
|
|
612
|
+
border-radius: 1px;
|
|
613
|
+
}
|
|
614
|
+
display: block;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Selection border. We leave a space between the outline and the image so
|
|
618
|
+
* that an image that is the same color as the selection border will still
|
|
619
|
+
* look selected.
|
|
620
|
+
*/
|
|
621
|
+
.--selected > & {
|
|
622
|
+
outline: 2px solid var(--select-color);
|
|
623
|
+
outline-offset: 1px;
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* If the image isn't loaded yet, we want to have some color filling the space
|
|
627
|
+
* that the image will eventually load into. This helps indicates to the user
|
|
628
|
+
* the space that the image will fill into.
|
|
629
|
+
*
|
|
630
|
+
* Once the image is finished loading, we want to respect transparency so at
|
|
631
|
+
* that point we hide the background shading.
|
|
632
|
+
*/
|
|
633
|
+
.--loading > & {
|
|
634
|
+
background: var(--shade-100);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* When we change the image via a preset, we want to animate the change;
|
|
639
|
+
* however, when we are dragging to resize, a transition adds a janky delay
|
|
640
|
+
* to the resize so we remove the transition during drag resizing.
|
|
641
|
+
*/
|
|
642
|
+
transition: width 100ms, height 100ms;
|
|
643
|
+
.--dragging > & {
|
|
644
|
+
transition: border-radius 250ms;
|
|
645
|
+
}
|
|
646
|
+
`;var _w=q(Ue());var jI=q(Ue());function VI(){let e=P0();return(0,jI.useEffect)(()=>(e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}),[]),e}var $I=ae("span")`
|
|
647
|
+
position: absolute;
|
|
648
|
+
display: block;
|
|
649
|
+
/**
|
|
650
|
+
* Prevent touch dragging from exhibiting a kind of scroll bounce behavior
|
|
651
|
+
* when we just want the image to resize.
|
|
652
|
+
*/
|
|
653
|
+
touch-action: none;
|
|
654
|
+
background: rgba(127, 127, 127, 0.001);
|
|
655
|
+
top: 0;
|
|
656
|
+
right: calc(-1em - 2px);
|
|
657
|
+
width: 2em;
|
|
658
|
+
bottom: 0;
|
|
659
|
+
&.--left {
|
|
660
|
+
cursor: w-resize;
|
|
661
|
+
}
|
|
662
|
+
&.--center {
|
|
663
|
+
cursor: ew-resize;
|
|
664
|
+
}
|
|
665
|
+
&.--right {
|
|
666
|
+
cursor: e-resize;
|
|
667
|
+
}
|
|
668
|
+
&.--small {
|
|
669
|
+
right: calc(-1.25em);
|
|
670
|
+
/* background: green; */
|
|
671
|
+
width: 1.25em;
|
|
672
|
+
}
|
|
673
|
+
`,GI=ae("span")`
|
|
674
|
+
position: absolute;
|
|
675
|
+
display: block;
|
|
676
|
+
background: var(--select-color);
|
|
677
|
+
top: 50%;
|
|
678
|
+
margin-top: -1em;
|
|
679
|
+
width: 1em;
|
|
680
|
+
height: 2em;
|
|
681
|
+
outline: 1px solid white;
|
|
682
|
+
transition: all 250ms;
|
|
683
|
+
/**
|
|
684
|
+
* The handle is 3 visible states depending on whether the image is at
|
|
685
|
+
* maximum size or minimum size.
|
|
686
|
+
*
|
|
687
|
+
* There are three indicators that let the user know which directions are
|
|
688
|
+
* available (left, right or both) that the user can drag:
|
|
689
|
+
*
|
|
690
|
+
* - rounded corners on the side that are available to drag towards
|
|
691
|
+
* - on larger size image, the handle is on the inside, middle or outside
|
|
692
|
+
* of the outline
|
|
693
|
+
* - the cursor pointer indicates the direction available for resizing.
|
|
694
|
+
*/
|
|
695
|
+
.--center > & {
|
|
696
|
+
left: 0.5em;
|
|
697
|
+
border-radius: 0.375em;
|
|
698
|
+
}
|
|
699
|
+
.--left > & {
|
|
700
|
+
border-radius: 0.5em 0 0 0.5em;
|
|
701
|
+
left: 1px;
|
|
702
|
+
}
|
|
703
|
+
.--right > & {
|
|
704
|
+
border-radius: 0 0.5em 0.5em 0;
|
|
705
|
+
left: calc(50% - 1px);
|
|
706
|
+
}
|
|
707
|
+
.--bar {
|
|
708
|
+
position: absolute;
|
|
709
|
+
background: var(--blue-200);
|
|
710
|
+
width: 1px;
|
|
711
|
+
top: 0.5em;
|
|
712
|
+
bottom: 0.5em;
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* Each of 3 bars is 1px wide and 3px apart
|
|
716
|
+
*/
|
|
717
|
+
.--bar-left {
|
|
718
|
+
left: calc(50% - 3.5px);
|
|
719
|
+
}
|
|
720
|
+
.--bar-center {
|
|
721
|
+
left: calc(50% - 0.5px);
|
|
722
|
+
}
|
|
723
|
+
.--bar-right {
|
|
724
|
+
left: calc(50% + 2.5px);
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* When the image is small, we reduce the size of the handler and place it
|
|
728
|
+
* outside the image. The reasons we do this:
|
|
729
|
+
*
|
|
730
|
+
* - If the handle is not outside the image at small sizes, the handle
|
|
731
|
+
* obscures the image too much. At larger sizes, it works okay and the
|
|
732
|
+
* inside handle placement makes the available direction of the drags more
|
|
733
|
+
* intuitive.
|
|
734
|
+
*
|
|
735
|
+
* - Also, at small sizes, a large handle can overwhelm the image. That is,
|
|
736
|
+
* the handle can be twice as tall as the image itself which looks poor.
|
|
737
|
+
* It's still possible for the handle to be larger than the image at small
|
|
738
|
+
* sizes, but this is okay in that we don't want the handle to become so
|
|
739
|
+
* small that it is hard to see and hard to click.
|
|
740
|
+
*/
|
|
741
|
+
.--small > & {
|
|
742
|
+
/**
|
|
743
|
+
* We opt to mainly adjust the size of the handle at smaller sizes by
|
|
744
|
+
* adjusting the font-size. This is more efficient than changing all the
|
|
745
|
+
* border-sizes because changing the font-size automatically changes the
|
|
746
|
+
* size of the border, but we don't have to redo the different combinations
|
|
747
|
+
* border-size and the corner that they need to display on.
|
|
748
|
+
*/
|
|
749
|
+
font-size: 0.5em;
|
|
750
|
+
width: 1.5em;
|
|
751
|
+
left: 0.5em;
|
|
752
|
+
margin-top: -1em;
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Each of 2 bars is 1px wide and 3px apart
|
|
756
|
+
*/
|
|
757
|
+
.--small > & > .--bar-left {
|
|
758
|
+
left: calc(50% - 2px);
|
|
759
|
+
}
|
|
760
|
+
.--small > & > .--bar-center {
|
|
761
|
+
display: none;
|
|
762
|
+
}
|
|
763
|
+
.--small > & > .--bar-right {
|
|
764
|
+
left: calc(50% + 1px);
|
|
765
|
+
}
|
|
766
|
+
`;function Rw({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 j0(e,t){e=Math.round(e);let n=t.width/t.height;return{width:e,height:Math.round(e/n)}}function uoe(e,t){e=Math.round(e);let n=t.width/t.height;return{width:Math.round(e*n),height:e}}function Fw(e,t){let n=e.width/e.height,r=t.width/t.height;if(n>=r){if(e.width>t.width)return j0(t.width,e)}else if(e.height>t.width)return uoe(t.height,e);return e}function Ol(e,t,n){switch(n.type){case"bounds":return Fw(t,n);case"scale":return{width:Math.round(t.width*n.scale),height:Math.round(t.height*n.scale)}}}function WI(e){let t=ne.toDOMNode(e,e),n=getComputedStyle(t),r=parseInt(n.paddingLeft)+parseInt(n.paddingRight);return t.clientWidth-r}var Ao=q(re());function loe(e,t){let r=ne.toDOMNode(e,t).querySelector("img");if(!r)throw new Error("Image Element could not be found but should exist");return r.getBoundingClientRect()}function KI({element:e,srcSize:t,size:n,setSize:r,isDragging:i,setIsDragging:o}){let a=Me();VI();let l=WI(a),c=n.width,f=Math.min(t.width,l),p=Math.min(12,t.width),d=(0,_w.useCallback)(x=>{ca(x),o(!0);let S=x.clientX,y=loe(a,e).width,w={...n},C=R=>{let A=Rw({value:y+R.clientX-S,min:p,max:f});w=j0(A,t),r(w)},M=()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",M);let R=ne.findPath(a,e),A={width:w.width,height:w.height};r(A),L.setNodes(a,A,{at:R}),o(!1)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",M)},[t.width,t.height,n.width,e]),g=(0,_w.useCallback)(x=>{ca(x),o(!0);let S=x.changedTouches[0].clientX,T=n.width,y={...n},w=M=>{let R=M.changedTouches[0],A=Rw({value:T+R.clientX-S,min:p,max:f});y=j0(A,t),r(y)},C=()=>{document.removeEventListener("touchmove",w),document.removeEventListener("touchend",C);let M=ne.findPath(a,e);L.setNodes(a,{width:y.width,height:y.height},{at:M}),o(!1)};document.addEventListener("touchmove",w),document.addEventListener("touchend",C)},[t.width,t.height,n.width,e]),m=hn({"--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,Ao.jsx)(Ao.Fragment,{children:(0,Ao.jsx)($I,{className:m,onMouseDown:d,onTouchStart:g,children:(0,Ao.jsxs)(GI,{children:[(0,Ao.jsx)("span",{className:"--bar --bar-left"}),(0,Ao.jsx)("span",{className:"--bar --bar-center"}),(0,Ao.jsx)("span",{className:"--bar --bar-right"})]})})})}var YI=ae("span")`
|
|
767
|
+
position: absolute;
|
|
768
|
+
/**
|
|
769
|
+
* The status appears with a 1px gap from the outline.
|
|
770
|
+
*
|
|
771
|
+
* - 1px for gap from image to outline
|
|
772
|
+
* - 2px for outline width
|
|
773
|
+
* - 1px more for the space to the status
|
|
774
|
+
*/
|
|
775
|
+
bottom: calc(-2em - 4px);
|
|
776
|
+
left: 0;
|
|
777
|
+
font-size: 0.625em; /* 10px tiny */
|
|
778
|
+
line-height: 2em;
|
|
779
|
+
padding: 0 0.5em;
|
|
780
|
+
color: var(--shade-100);
|
|
781
|
+
background: var(--shade-600);
|
|
782
|
+
outline: 1px solid rgba(255, 255, 255, 0.5);
|
|
783
|
+
border-radius: 0.5em;
|
|
784
|
+
white-space: nowrap;
|
|
785
|
+
|
|
786
|
+
/* force numbers to be monospaced for better alignment */
|
|
787
|
+
font-variant-numeric: tabular-nums;
|
|
788
|
+
`;var QI=q(re());function XI({size:e}){return(0,QI.jsxs)(YI,{children:[e.width," \xD7 ",e.height]})}var ZI=ae("span")`
|
|
789
|
+
position: absolute;
|
|
790
|
+
/**
|
|
791
|
+
* On top of the image +1 for space inside outline, +2 for outline,
|
|
792
|
+
* +2 for space outside outline.
|
|
793
|
+
*
|
|
794
|
+
* DO NOT MOVE TO BOTTOM:
|
|
795
|
+
*
|
|
796
|
+
* This is a reminder not to move the preset to the bottom. Visually, it is
|
|
797
|
+
* less obtrusive at the bottom; however, an issue is that when switching
|
|
798
|
+
* between different presets, the preset UI moves up/down making it difficult
|
|
799
|
+
* to switch between different presets. When kept at the top, the preset
|
|
800
|
+
* UI doesn't move.
|
|
801
|
+
*/
|
|
802
|
+
top: calc(-1.5em - 5px);
|
|
803
|
+
/**
|
|
804
|
+
* Align left to the outline: +1 for space inside outline, +2 for outline
|
|
805
|
+
* width
|
|
806
|
+
*/
|
|
807
|
+
left: -3px;
|
|
808
|
+
/**
|
|
809
|
+
* When we're resizing, the controls aren't usable and just add to visual
|
|
810
|
+
* clutter so we hide it. The transition lets us do it smoothly and less
|
|
811
|
+
* obtrusively.
|
|
812
|
+
*/
|
|
813
|
+
transition: opacity 200ms;
|
|
814
|
+
.--dragging & {
|
|
815
|
+
opacity: 0;
|
|
816
|
+
}
|
|
817
|
+
display: flex;
|
|
818
|
+
gap: 0.25em;
|
|
819
|
+
`;var V0=ae("span")`
|
|
820
|
+
/* font-size: 0.75em; */
|
|
821
|
+
border-radius: 0.5em;
|
|
822
|
+
display: flex;
|
|
823
|
+
/**
|
|
824
|
+
* So that inner Preset design shows within the rounded corners.
|
|
825
|
+
*/
|
|
826
|
+
overflow: clip;
|
|
827
|
+
/**
|
|
828
|
+
* Let's the menu pop a little over other content. Without it, may be able to
|
|
829
|
+
* see the border of the buttons.
|
|
830
|
+
*/
|
|
831
|
+
outline: 1px solid white;
|
|
832
|
+
`,Fc=ae("span")`
|
|
833
|
+
font-size: 0.75em;
|
|
834
|
+
line-height: 2em;
|
|
835
|
+
padding: 0 0.625em;
|
|
836
|
+
&:last-child {
|
|
837
|
+
border-right: none;
|
|
838
|
+
}
|
|
839
|
+
cursor: pointer;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* We don't want it to wrap
|
|
843
|
+
*/
|
|
844
|
+
white-space: nowrap;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Preset default colors
|
|
848
|
+
*/
|
|
849
|
+
color: var(--shade-600);
|
|
850
|
+
background: var(--shade-200);
|
|
851
|
+
border-right: 1px solid var(--shade-100);
|
|
852
|
+
/**
|
|
853
|
+
* When preset is disabled, it is lighter in color and with elss contrast.
|
|
854
|
+
*/
|
|
855
|
+
&.--disabled {
|
|
856
|
+
cursor: default;
|
|
857
|
+
color: var(--shade-300);
|
|
858
|
+
background: var(--shade-100);
|
|
859
|
+
&:hover {
|
|
860
|
+
color: var(--shade-300);
|
|
861
|
+
background: var(--shade-100);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
&.--selected {
|
|
865
|
+
cursor: default;
|
|
866
|
+
color: var(--blue-700);
|
|
867
|
+
background: var(--blue-200);
|
|
868
|
+
&:hover {
|
|
869
|
+
color: var(--blue-700);
|
|
870
|
+
background: var(--blue-200);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* On hover, it is dark, and with higher contrast.
|
|
875
|
+
*/
|
|
876
|
+
&:hover {
|
|
877
|
+
color: var(--shade-700);
|
|
878
|
+
background: var(--shade-300);
|
|
879
|
+
}
|
|
880
|
+
svg {
|
|
881
|
+
position: relative;
|
|
882
|
+
top: 0.25em;
|
|
883
|
+
font-size: 1.33em;
|
|
884
|
+
line-height: 1em;
|
|
885
|
+
}
|
|
886
|
+
`;var JI=q(Ue());var tL=q(re());function eL({element:e,preset:t,size:n,setSize:r,srcSize:i}){let o=Me(),a=Ol(n,i,t),l=to({title:t.title,hotkey:`${a.width}x${a.height}`}),c=(0,JI.useCallback)(()=>{let m=ne.findPath(o,e),x=Ol(n,i,t);r(x),L.setNodes(o,x,{at:m})},[e,t,n,i]),p=!(t.type==="scale"?!0:t.width<=i.width||t.height<=i.height),d=n.width===a.width&&n.height===a.height,g=hn({"--disabled":p,"--selected":!p&&d});return(0,tL.jsx)(Fc,{className:g,onClick:p?void 0:c,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave,children:t.name})}var Iw=q(re());function nL({element:e,size:t,setSize:n,srcSize:r,presets:i}){return(0,Iw.jsx)(V0,{children:i.map((o,a)=>(0,Iw.jsx)(eL,{element:e,preset:o,size:t,setSize:n,srcSize:r},a))})}var aL=q(Ue());var wu=q(re());var rL=e=>(0,wu.jsxs)(ft,{...e,children:[(0,wu.jsx)("rect",{width:6,height:6,x:4,y:5,rx:1}),(0,wu.jsx)("path",{d:"M4 15h16M4 19h16"})]}),iL=e=>(0,wu.jsxs)(ft,{...e,children:[(0,wu.jsx)("rect",{width:6,height:6,x:9,y:5,rx:1}),(0,wu.jsx)("path",{d:"M4 7h1M4 11h1M19 7h1M19 11h1M4 15h16M4 19h16"})]});function oL(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=ne.findPath(e,t);b.withoutNormalizing(e,()=>{let o=Ol(n,r,{name:"initial-inline-image",title:"",type:"bounds",width:24,height:24});L.setNodes(e,{type:"image-inline",...o},{at:i}),L.wrapNodes(e,{type:"paragraph",children:[]},{at:i})})}var Lw=q(re());function uL({element:e}){let t=Me(),n=to({title:"Inline Image",hotkey:"In a line with text"}),r=(0,aL.useCallback)(()=>{e.type==="image-block"&&oL(t,e)},[t,e]);return(0,Lw.jsx)(Fc,{className:e.type==="image-inline"?"--selected":"",onClick:e.type==="image-inline"?void 0:r,onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,children:(0,Lw.jsx)(iL,{})})}var sL=q(Ue());function lL(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=ne.findPath(e,t);b.withoutNormalizing(e,()=>{let o=Ol(n,r,{name:"initial-block-image",title:"",type:"bounds",width:320,height:320});L.setNodes(e,{type:"image-block",...o},{at:i});let a=ut(e,S=>b.isBlock(e,S)&&S.type!=="image-block");if(!a)throw new Error("This shouldn't happen");let[l,c]=a,f=l.children,p=l.children.length,d=i.slice(-1)[0],g=f[p-1];d===p-2&&ge.isText(g)&&g.text===""&&L.removeNodes(e,{at:[...c,p-1]});let m=f[0],x=d===1&&ge.isText(m)&&m.text==="";x&&L.removeNodes(e,{at:[...c,0]}),L.liftNodes(e,{at:[...c,x?d-1:d]})})}var Pw=q(re());function cL({element:e}){let t=Me(),n=to({title:"Block Image",hotkey:"On a line by itself"}),r=(0,sL.useCallback)(()=>{e.type==="image-inline"&&lL(t,e)},[t,e]);return(0,Pw.jsx)(Fc,{className:e.type==="image-block"?"--selected":"",onClick:e.type==="image-block"?void 0:r,onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,children:(0,Pw.jsx)(rL,{})})}var bm=q(re());function fL({element:e}){return(0,bm.jsxs)(V0,{children:[(0,bm.jsx)(cL,{element:e}),(0,bm.jsx)(uL,{element:e})]})}var Em=q(re());function pL({element:e,size:t,setSize:n,srcSize:r,presets:i}){return(0,Em.jsxs)(ZI,{children:[(0,Em.jsx)(fL,{element:e}),(0,Em.jsx)(nL,{element:e,size:t,setSize:n,srcSize:r,presets:i})]})}var Ml=q(re());function $0({element:e,presets:t}){let n=UI(e.url),r=Ri(),[i,o]=(0,zw.useState)(!1),[a,l]=(0,zw.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&&a&&c,p=hn({"--selected":r,"--dragging":i,"--small":a&&(a.width<=64||a.height<=64),"--loaded":n.status==="success"});return(0,Ml.jsxs)(HI,{className:p,children:[(0,Ml.jsx)(qI,{src:n.url,width:a?.width,height:a?.height}),f?(0,Ml.jsx)(pL,{element:e,size:a,setSize:l,srcSize:c,presets:t}):null,i&&a?(0,Ml.jsx)(XI,{size:a}):null,f?(0,Ml.jsx)(KI,{element:e,srcSize:c,isDragging:i,setIsDragging:o,size:a,setSize:l}):null]})}var Dm=q(re());function mL({element:e,attributes:t,children:n}){let r=Me();return(0,Dm.jsxs)("div",{...t,children:[(0,Dm.jsx)(wI,{contentEditable:!1,children:(0,Dm.jsx)($0,{element:e,presets:r.image.imageBlockPresets})}),n]})}var hL=ae("span")`
|
|
887
|
+
display: inline;
|
|
888
|
+
`;var wm=q(re());function dL({element:e,attributes:t,children:n}){let r=Me();return(0,wm.jsxs)("span",{...t,style:{display:"inline-block"},children:[(0,wm.jsx)(hL,{contentEditable:!1,children:(0,wm.jsx)($0,{element:e,presets:r.image.imageInlinePresets})}),n]})}var Nw=q(re());function gL({element:e,attributes:t,children:n}){switch(e.type){case"image-block":return(0,Nw.jsx)(mL,{element:e,attributes:t,children:n});case"image-inline":return(0,Nw.jsx)(dL,{element:e,attributes:t,children:n})}}var soe={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}]},vL=at((e,t,{createPolicy:n})=>{let r={...soe,...t.image};return e.image={...EI(e),maxInitialInlineImageSize:r.maxInitialInlineImageSize,maxInitialImageSize:r.maxInitialImageSize,maxImageSize:r.maxImageSize,imageBlockPresets:r.imageBlockPresets,imageInlinePresets:r.imageInlinePresets},e.upload.onUploadImageFile=i=>{let{selection:o}=e;if(i.width<=64&&i.height<=64)L.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 a=Fw({width:i.width,height:i.height},r.maxInitialImageSize||r.maxImageSize);L.insertNodes(e,{type:"image-block",url:i.hashUrl,alt:i.file.name,title:i.file.name,bytes:i.file.size,width:a.width,height:a.height,srcWidth:i.width,srcHeight:i.height,children:[{text:""}]})}if(!o){let a=b.end(e,[]);L.select(e,a),ne.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:Ae(DI,e)},editableProps:{renderElement:gL}})});var yL=ae("blockquote")`
|
|
889
|
+
position: relative;
|
|
890
|
+
margin-top: 1em;
|
|
891
|
+
margin-bottom: 1em;
|
|
892
|
+
margin-left: 0;
|
|
893
|
+
border-left: 0.25em solid rgba(0, 0, 0, 0.075);
|
|
894
|
+
padding-left: 1.5em;
|
|
895
|
+
`;var EL=q(re());function xL(e){return ye.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 bL=at(e=>(e.supportsBlockQuote=!0,e.blockQuotePlugin={indent:()=>{L.wrapNodes(e,{type:"block-quote",children:[]},{match:xL})},outdent:()=>{L.liftNodes(e,{match:(t,n)=>xL(t)&&n.length>1})},isActive:()=>{let[t]=b.nodes(e,{match:n=>ye.isElement(n)&&n.type==="block-quote"});return!!t}},{name:"block-quote",editor:{normalizeNode(t){let[n,r]=t;return!ye.isElement(n)||n.type!=="block-quote"?!1:Eu(e,[n,r],(i,o)=>(ye.isElement(i[0])&&ye.isElement(o[0])&&i[0].type==="block-quote"&&o[0].type==="block-quote"&&L.mergeNodes(e,{at:o[1]}),!0))}},editableProps:{renderElement:({element:t,attributes:n,children:r})=>{if(t.type==="block-quote")return(0,EL.jsx)(yL,{...n,children:r})},onKeyDown:Qn({"super+.":e.blockQuotePlugin.indent,"super+,":e.blockQuotePlugin.outdent})}}));function DL(e){return ye.isElement(e)&&e.type==="paragraph"}function wL(e,t){return Eu(e,t,(n,r)=>!DL(n[0])||!DL(r[0])?!1:n[0].__collapsible&&r[0].__collapsible?(L.removeNodes(e,{at:n[1]}),!0):!1)}function Uw(e,t){return ye.isElement(t)?e.isVoid(t)||e.isMaster(t):!1}function CL(e,t){return Uw(e,t[0])?Eu(e,t,(n,r)=>!Uw(e,n[0])||!Uw(e,r[0])?!1:(L.insertNodes(e,{type:"paragraph",__collapsible:!0,children:[{text:""}]},{at:r[1]}),!0)):!1}function SL(e,t){let[n,r]=t;return ye.isElement(n)?!!(CL(e,[n,r])||wL(e,[n,r])):!1}var kL=ae("p")`
|
|
896
|
+
padding: 0;
|
|
897
|
+
margin: 1em 0;
|
|
898
|
+
&:first-child {
|
|
899
|
+
margin-top: 0;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
transition: background-color 200ms, margin-top 200ms, padding-top 200ms,
|
|
903
|
+
margin-bottom 200ms, padding-bottom 200ms, font-size 200ms;
|
|
904
|
+
|
|
905
|
+
&.--collapsible&.--empty {
|
|
906
|
+
font-size: 0.25em; /* font-size is collapsed to 1/4 of regular em */
|
|
907
|
+
margin: -4em 0; /* margin grows to 3/4 of regular em leaving space */
|
|
908
|
+
padding: 1em 0; /* this is kind of eye-balling it */
|
|
909
|
+
border-radius: 1em;
|
|
910
|
+
&:hover {
|
|
911
|
+
background: rgba(0, 127, 255, 0.1);
|
|
912
|
+
cursor: pointer;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
&.--collapsible&.--empty&.--selected {
|
|
916
|
+
font-size: 1em;
|
|
917
|
+
padding: 0;
|
|
918
|
+
margin: 1em 0;
|
|
919
|
+
&:hover {
|
|
920
|
+
background: none;
|
|
921
|
+
cursor: default;
|
|
922
|
+
}
|
|
923
|
+
border-radius: 8px;
|
|
924
|
+
}
|
|
925
|
+
`;function AL(e){return e.children.length===1&&he.string(e.children[0]).length===0}var BL=q(re());function TL({element:e,attributes:t,children:n}){let r=Ri(),i=AL(e);return(0,BL.jsx)(kL,{...t,className:hn({"--selected":r,"--empty":i,"--collapsible":!!e.__collapsible}),children:n})}var ML=q(re()),OL=at(e=>{let{insertBreak:t}=e,n=(r,i)=>{let o=r.split(`
|
|
926
|
+
|
|
927
|
+
`).filter(l=>l.trim()),a=o.map(l=>({type:"paragraph",children:[{text:l.trim()}]}));return b.withoutNormalizing(e,()=>{L.removeNodes(e,{at:i}),L.insertNodes(e,a,{at:i})}),o};if(e.insertBreak=()=>{let{selection:r}=e;if(r&&r.anchor.path[0]===r.focus.path[0]){let i=b.string(e,[r.anchor.path[0]]),o=r.anchor.offset;if(i.slice(0,o).match(/\n$/))t();else if(i.includes(`
|
|
928
|
+
|
|
929
|
+
`)){let l=[r.anchor.path[0]],c=n(i,l),f=o,p=0,d=0;for(let g=0;g<c.length;g++){if(d+c[g].length+2>o){f=o-d,p=g;break}d+=c[g].length+2}e.selection={anchor:{path:[l[0]+p,0],offset:f},focus:{path:[l[0]+p,0],offset:f}}}else e.insertText(`
|
|
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:Ae(SL,e)},editableProps:{renderElement:({element:r,attributes:i,children:o})=>{switch(r.type){case"paragraph":return(0,ML.jsx)(TL,{element:r,attributes:i,children:o})}},onKeyDown:Qn({"super+0":e.collapsibleParagraph.convertParagraph})}}});function RL(e,t){Array.isArray(t)?e.convertElement.convertElementTypes.push(...t):e.convertElement.convertElementTypes.push(t)}function FL(e,t,n,r){let i=Array.from(b.nodes(e,{match:a=>ye.isElement(a)&&e.convertElement.isConvertibleElement(a)}));return i.length===0?!1:(r&&i.every(a=>t(a[0]))?b.withoutNormalizing(e,()=>{for(let a of i)dm(e,{type:"paragraph"},a[1])}):b.withoutNormalizing(e,()=>{for(let a of i)dm(e,n,a[1])}),!0)}function _L(e,t){return e.convertElement.convertElementTypes.includes(t.type)}function IL(e){return{convertElementTypes:[],addConvertElementType:Ae(RL,e),isConvertibleElement:Ae(_L,e),convertElements:Ae(FL,e)}}var LL=at(e=>(e.convertElement=IL(e),{name:"convert-element"}));function PL(e){let t=ut(e,"heading");if(!t||!e.selection||W.isExpanded(e.selection)||!b.isEnd(e,e.selection.anchor,t[1]))return!1;let n=I.next(t[1]);return L.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:n}),L.select(e,{anchor:b.start(e,n),focus:b.start(e,n)}),!0}function coe(e,t,n){e.convertElement.convertElements(r=>r.type==="heading"&&r.level==t,{type:"heading",level:t},n)}function foe(e,t){let[n]=b.nodes(e,{match:r=>"type"in r&&"level"in r&&r.type==="heading"&&r.level===t});return!!n}function zL(e){return{convertHeading:Ae(coe,e),isHeadingActive:Ae(foe,e)}}var _c=B0`
|
|
931
|
+
margin-top: 1em;
|
|
932
|
+
&:first-child {
|
|
933
|
+
margin-top: 0;
|
|
934
|
+
}
|
|
935
|
+
font-weight: bold;
|
|
936
|
+
`,NL=ae("h1")`
|
|
937
|
+
${_c}
|
|
938
|
+
font-size: 2.25em;
|
|
939
|
+
letter-spacing: -0.01em;
|
|
940
|
+
`,UL=ae("h2")`
|
|
941
|
+
${_c}
|
|
942
|
+
font-size: 1.5em;
|
|
943
|
+
`,HL=ae("h3")`
|
|
944
|
+
${_c}
|
|
945
|
+
font-size: 1.25em;
|
|
946
|
+
`,qL=ae("h4")`
|
|
947
|
+
${_c}
|
|
948
|
+
font-size: 1em;
|
|
949
|
+
`,jL=ae("h5")`
|
|
950
|
+
${_c}
|
|
951
|
+
font-size: 1em;
|
|
952
|
+
`,VL=ae("h6")`
|
|
953
|
+
${_c}
|
|
954
|
+
font-size: 1em;
|
|
955
|
+
`;var Rl=q(re()),$L=at(e=>{e.convertElement.addConvertElementType("heading"),e.heading=zL(e);let t=Qn({"super+1":ri(e.heading.convertHeading,1,!0),"super+2":ri(e.heading.convertHeading,2,!0),"super+3":ri(e.heading.convertHeading,3,!0),"super+4":ri(e.heading.convertHeading,4,!0),"super+5":ri(e.heading.convertHeading,5,!0),"super+6":ri(e.heading.convertHeading,6,!0)}),n=p6(e,{"#":ri(e.heading.convertHeading,1,!1),"##":ri(e.heading.convertHeading,2,!1),"###":ri(e.heading.convertHeading,3,!1),"####":ri(e.heading.convertHeading,4,!1),"#####":ri(e.heading.convertHeading,5,!1),"######":ri(e.heading.convertHeading,6,!1)});return{name:"heading",editor:{insertBreak:Ae(PL,e)},editableProps:{renderElement:({element:r,attributes:i,children:o})=>{if(r.type==="heading")switch(r.level){case 1:return(0,Rl.jsx)(NL,{...i,children:o});case 2:return(0,Rl.jsx)(UL,{...i,children:o});case 3:return(0,Rl.jsx)(HL,{...i,children:o});case 4:return(0,Rl.jsx)(qL,{...i,children:o});case 5:return(0,Rl.jsx)(jL,{...i,children:o});case 6:return(0,Rl.jsx)(VL,{...i,children:o});default:throw new Error(`Expected element.level to be 1-6 but got ${r.level}`)}},onKeyDown:r=>!!(t(r)||n(r))}}});var GL=ae("hr")`
|
|
956
|
+
position: relative;
|
|
957
|
+
height: 1em;
|
|
958
|
+
/* background-color: var(--hr-color); */
|
|
959
|
+
margin: 1em 0;
|
|
960
|
+
&::before {
|
|
961
|
+
position: absolute;
|
|
962
|
+
content: "";
|
|
963
|
+
left: 0.125em;
|
|
964
|
+
right: 0.125em;
|
|
965
|
+
top: 50%;
|
|
966
|
+
height: 1px;
|
|
967
|
+
background-color: var(--hr-color);
|
|
968
|
+
border-radius: 1px;
|
|
969
|
+
}
|
|
970
|
+
border-radius: 0.25em;
|
|
971
|
+
cursor: pointer;
|
|
972
|
+
border: none;
|
|
973
|
+
&:hover {
|
|
974
|
+
background-color: rgba(0, 127, 255, 0.1);
|
|
975
|
+
/* &::before {
|
|
976
|
+
outline: 2px solid var(--hover-color);
|
|
977
|
+
} */
|
|
978
|
+
}
|
|
979
|
+
&.--selected {
|
|
980
|
+
background: none;
|
|
981
|
+
&::before {
|
|
982
|
+
outline: 2px solid var(--select-color, blue);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
`;var Cm=q(re());function WL({attributes:e,children:t}){let n=Ri();return(0,Cm.jsxs)("div",{...e,draggable:!0,children:[t,(0,Cm.jsx)("div",{contentEditable:!1,children:(0,Cm.jsx)(GL,{className:n?"--selected":""})})]})}function poe(e){return y6(e,{type:"horizontal-rule",children:[{text:""}]})}function KL(e){return{insertHorizontalRule:Ae(poe,e)}}var XL=q(re()),YL=at((e,t,{createPolicy:n})=>(e.horizontalRule=KL(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,XL.jsx)(WL,{...r})},onKeyDown:Qn({"super+-":e.horizontalRule.insertHorizontalRule})}})));var QL=ae("code")`
|
|
986
|
+
color: var(--shade-600);
|
|
987
|
+
background-color: var(--inline-code-bgcolor);
|
|
988
|
+
border: 1px solid var(--inline-code-border-color);
|
|
989
|
+
border-radius: 0.25em;
|
|
990
|
+
padding: 0.1375em 0.125em;
|
|
991
|
+
/**
|
|
992
|
+
* Font Stack from
|
|
993
|
+
* https://qwtel.com/posts/software/the-monospaced-system-ui-css-font-stack/
|
|
994
|
+
*/
|
|
995
|
+
font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
|
|
996
|
+
"Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
|
|
997
|
+
"Fira Mono", "Droid Sans Mono", "Courier New", monospace;
|
|
998
|
+
/**
|
|
999
|
+
* This font size may seem smaller but any larger (including 0.875) means that
|
|
1000
|
+
* it messes up the line height of the normal text. Not sure why this happens
|
|
1001
|
+
* with the monospace font but seems to happen on both the default 'monospace'
|
|
1002
|
+
* font as well as the font stack above.
|
|
1003
|
+
*/
|
|
1004
|
+
font-size: 0.75em;
|
|
1005
|
+
vertical-align: baseline;
|
|
1006
|
+
`,Hw=ae("span")`
|
|
1007
|
+
display: inline-block;
|
|
1008
|
+
opacity: 0;
|
|
1009
|
+
width: 1px;
|
|
1010
|
+
overflow: hidden;
|
|
1011
|
+
`;var Sm=q(re()),ZL=at(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,Sm.jsxs)(QL,{spellCheck:!1,children:[(0,Sm.jsx)(Hw,{contentEditable:!1,children:"|"}),n,(0,Sm.jsx)(Hw,{contentEditable:!1,children:"|"})]}):n,onKeyDown:Qn({"mod+j":()=>e.inlineCode.toggleInlineCode()})}}});function JL(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 eP(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 tP(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 moe=2;function G0(e){let t=ut(e,dn);return t?t[0].depth:0}function qw(e){return Al(e,dn)?G0(e)<moe:!1}function jw(e){return Al(e,dn)?G0(e)>0:!1}function nP(e){qw(e)&&e.list.indent()}function rP(e){jw(e)&&e.list.outdent()}function iP(e){return I0(e,t=>({depth:t.depth+1}),{match:dn})}function oP(e){let t=ut(e,dn);if(!t)return!1;let[n,r]=t;if(b.isEmpty(e,n))return n.depth>0?(L.setNodes(e,{depth:n.depth-1},{at:r}),!0):(dm(e,{type:"paragraph"},r),!0);L.splitNodes(e,{always:!0});let i=ut(e,dn);return i&&i[0].type==="task-list-item"&&i[0].checked===!0&&L.setNodes(e,{checked:!1},{at:i[1]}),!0}function aP(e){let t=Array.from(b.nodes(e,{match:dn}));for(let n of t)if(n[0].depth===0)return!0;return I0(e,n=>({depth:Math.max(0,n.depth-1)}),{match:dn})}function uP(e,{at:t=e.selection}={}){let n=ut(e,"task-list-item",{at:t});if(!n)return!1;let r=!n[0].checked;L.setNodes(e,{checked:r},{at:n[1]})}function lP(e){return{indent:Ae(iP,e),outdent:Ae(aP,e),convertUnorderedList:Ae(tP,e),convertOrderedList:Ae(JL,e),convertTaskList:Ae(eP,e),insertBreak:Ae(oP,e),toggleTaskListItem:Ae(uP,e),getListDepth:Ae(G0,e),canIncreaseDepth:Ae(qw,e),canDecreaseDepth:Ae(jw,e),increaseDepth:Ae(nP,e),decreaseDepth:Ae(rP,e)}}var sP=R0(["ordered-list-item"]);function W0(e,t){let[n,r]=t;return ye.isElement(n)?Eu(e,[n,r],(i,o)=>{if(!sP(o[0]))return!1;let a=sP(i[0])||dn(i[0])?o[0].depth>i[0].depth:!0;return o[0].__firstAtDepth!==a?(L.setNodes(e,{__firstAtDepth:a},{at:o[1]}),!0):!1}):!1}function cP(e,t){let[n]=t;return dn(n)?W0(e,t):!1}var hP=q(Ue());var Vw=ae("li")`
|
|
1012
|
+
margin-top: 0.5em;
|
|
1013
|
+
margin-bottom: 0.5em;
|
|
1014
|
+
list-style-position: outside;
|
|
1015
|
+
margin-left: calc(2em + var(--list-item-depth) * 2em);
|
|
1016
|
+
`,fP=ae(Vw)`
|
|
1017
|
+
position: relative;
|
|
1018
|
+
list-style-type: none;
|
|
1019
|
+
.--list-item-icon {
|
|
1020
|
+
position: absolute;
|
|
1021
|
+
top: 0.25em;
|
|
1022
|
+
left: -1.375em;
|
|
1023
|
+
line-height: 1.5em;
|
|
1024
|
+
color: var(--shade-600);
|
|
1025
|
+
}
|
|
1026
|
+
`,pP=ae(Vw)`
|
|
1027
|
+
position: relative;
|
|
1028
|
+
list-style-type: none;
|
|
1029
|
+
counter-increment: var(--list-item-var);
|
|
1030
|
+
|
|
1031
|
+
&.--first-at-depth {
|
|
1032
|
+
counter-reset: var(--list-item-var);
|
|
1033
|
+
/**
|
|
1034
|
+
* if isDebug is true, then show a highlight on list items that are marked
|
|
1035
|
+
* as the first at a given depth.
|
|
1036
|
+
*/
|
|
1037
|
+
background: ${!1?"rgba(0, 255, 0, 0.2)":"inherit"};
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
&:before {
|
|
1041
|
+
position: absolute;
|
|
1042
|
+
content: counter(var(--list-item-var)) ".";
|
|
1043
|
+
top: 0;
|
|
1044
|
+
left: -2em;
|
|
1045
|
+
width: 1.5em;
|
|
1046
|
+
text-align: right;
|
|
1047
|
+
color: var(--shade-500);
|
|
1048
|
+
/* force numbers to be monospaced for better alignment */
|
|
1049
|
+
font-variant-numeric: tabular-nums;
|
|
1050
|
+
}
|
|
1051
|
+
`,mP=ae(Vw)`
|
|
1052
|
+
position: relative;
|
|
1053
|
+
list-style-type: none;
|
|
1054
|
+
.--list-item-icon {
|
|
1055
|
+
position: absolute;
|
|
1056
|
+
top: 0.25em;
|
|
1057
|
+
left: -1.5em;
|
|
1058
|
+
line-height: 1.5em;
|
|
1059
|
+
color: var(--shade-300);
|
|
1060
|
+
.--checkmark {
|
|
1061
|
+
color: green;
|
|
1062
|
+
stroke-width: 3px;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
`;var gP=q(re());function dP({element:e,attributes:t,children:n}){let r=Me();(0,hP.useEffect)(()=>{let a=ne.findPath(r,e);W0(r,[e,a])},[]);let i={"--list-item-depth":e.depth,"--list-item-var":`list-item-depth-${e.depth}`},o=hn({"--first-at-depth":e.__firstAtDepth});return(0,gP.jsx)(pP,{...t,className:o,style:i,children:n})}var bP=q(Ue());var no=q(re()),vP=e=>(0,no.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,no.jsx)("path",{d:"M0 0h24v24H0z",stroke:"none"}),(0,no.jsx)("rect",{x:4,y:4,width:16,height:16,rx:2})]}),yP=e=>(0,no.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,no.jsx)("path",{d:"M0 0h24v24H0z",stroke:"none"}),(0,no.jsx)("path",{d:"m9 11 3 3 8-8",className:"--checkmark"}),(0,no.jsx)("path",{d:"M20 12v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h9"})]}),xP=e=>(0,no.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em",...e,children:(0,no.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 Ic=q(re());function EP({element:e,attributes:t,children:n}){let r=Me(),i=(0,bP.useCallback)(()=>{r.list.toggleTaskListItem({at:e})},[r,e]),o={"--list-item-depth":e.depth};return(0,Ic.jsxs)(mP,{...t,style:o,children:[(0,Ic.jsx)("div",{className:"--list-item-icon",contentEditable:!1,children:e.checked?(0,Ic.jsx)(yP,{onClick:i,style:{cursor:"pointer"}}):(0,Ic.jsx)(vP,{onClick:i,style:{cursor:"pointer"}})}),n]})}var km=q(re());function DP({element:e,attributes:t,children:n}){let r={"--list-item-depth":e.depth};return(0,km.jsxs)(fP,{...t,style:r,children:[(0,km.jsx)("div",{className:"--list-item-icon",contentEditable:!1,children:(0,km.jsx)(xP,{})}),n]})}var K0=q(re());function wP({element:e,attributes:t,children:n}){switch(e.type){case"ordered-list-item":return(0,K0.jsx)(dP,{element:e,attributes:t,children:n});case"unordered-list-item":return(0,K0.jsx)(DP,{element:e,attributes:t,children:n});case"task-list-item":return(0,K0.jsx)(EP,{element:e,attributes:t,children:n})}}var CP=["unordered-list-item","ordered-list-item","task-list-item"],dn=R0(CP),SP=at((e,t,{createPolicy:n})=>{e.convertElement.addConvertElementType(CP);let r=e.list=lP(e),i=Qn({tab:r.indent,"shift+tab":r.outdent,"super+7":Ae(r.convertOrderedList,!0),"super+8":Ae(r.convertUnorderedList,!0),"super+9":Ae(r.convertTaskList,!0)});return n({name:"list",editor:{normalizeNode:o=>cP(e,o),insertBreak:r.insertBreak,deleteBackward:o=>{if(o!=="character"||!Al(e,dn))return!1;let a=ut(e,dn);if(!a)return!1;let l=a[1];if(!I.hasPrevious(l))return e.collapsibleParagraph.convertParagraph(),!0;let c=I.previous(l),f=b.node(e,c);return dn(f[0])?!1:(e.collapsibleParagraph.convertParagraph(),!0)}},editableProps:{renderElement:wP,onKeyDown(o){return b.nodes(e,{match:dn})?i(o):!1}}})});function kP(e,{at:t=e.selection}={}){if(t==null)return;let n=[...b.nodes(e,{match:i=>ge.isText(i),at:t})],r={};for(let[i]of n)for(let o of Object.keys(i))o!=="text"&&(r[o]=null);L.setNodes(e,r,{match:i=>ge.isText(i),split:!0,at:t})}function Lc(e,t,n,{at:r=e.selection}={}){if(r==null)return;let i=W.isRange(r)?r.focus:r,o=qe.isPoint(i)&&(b.after(e,i)===null||b.isEnd(e,i,b.end(e,[]))),a=t,c=(b.marks(e)||{})[a]===!0;if(o)if(!c)e.activeMarks={...e.activeMarks,[a]:!0};else{let{[a]:f,...p}=e.activeMarks||{};e.activeMarks=p}c?b.removeMark(e,a):b.addMark(e,a,!0),typeof n=="string"&&b.removeMark(e,n)}function AP(e){return{removeMarks:Ae(kP,e),toggleMark:Ae(Lc,e),toggleBold:()=>Lc(e,"bold"),toggleItalic:()=>Lc(e,"italic"),toggleUnderline:()=>Lc(e,"underline"),toggleStrike:()=>Lc(e,"strike")}}var TP=ae("span")`
|
|
1066
|
+
&.--bold {
|
|
1067
|
+
font-weight: bold;
|
|
1068
|
+
}
|
|
1069
|
+
&.--italic {
|
|
1070
|
+
font-style: italic;
|
|
1071
|
+
}
|
|
1072
|
+
&.--underline {
|
|
1073
|
+
text-decoration: underline;
|
|
1074
|
+
}
|
|
1075
|
+
&.--strike {
|
|
1076
|
+
text-decoration: line-through;
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* Text decorations don't merge automatically so we make a special one
|
|
1080
|
+
* when there is both an underline and a strike through.
|
|
1081
|
+
*/
|
|
1082
|
+
&.--underline.--strike {
|
|
1083
|
+
text-decoration: underline line-through;
|
|
1084
|
+
}
|
|
1085
|
+
`;var OP=q(re()),BP=at(e=>{e.marksPlugin=AP(e),e.activeMarks={};let t=Qn({"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:o}=e;Object.entries(o).forEach(([a,l])=>{l&&e.addMark(a,!0)})}n(i)};let{removeMarks:r}=e.marksPlugin;return e.marksPlugin.removeMarks=()=>{if(r(),e.selection){let i=W.isRange(e.selection)?e.selection.focus:e.selection;qe.isPoint(i)&&(b.after(e,i)===null||b.isEnd(e,i,b.end(e,[])))&&(e.activeMarks={})}},{name:"marks",editableProps:{renderLeaf:({leaf:i,children:o})=>(0,OP.jsx)(TP,{className:hn({"--bold":i.bold,"--italic":i.italic,"--underline":i.underline,"--strike":i.strike}),children:o}),onKeyDown:i=>!!t(i)}}});function MP(e){if(!e.selection)return;let t=b.parent(e,e.selection);d6(e,t[1])}var RP=at(e=>(e.normalizeAfterDelete=!0,{name:"normalize-after-delete",editor:{deleteBackward(){if(!e.selection)return!1;let t=b.parent(e,e.selection);return qe.equals(b.start(e,t[1]),e.selection.anchor)?function(){MP(e)}:!1},deleteForward(){if(!e.selection)return!1;let t=b.parent(e,e.selection);return qe.equals(b.end(e,t[1]),e.selection.anchor)?function(){MP(e)}:!1}},editableProps:{}}));function FP(e,t,n){let r=[...b.positions(e,{at:t})],i=[],o,a,l;o=a=r[0],l=Oc(e,n,{at:o});for(let f of r){let p=Oc(e,n,{at:f});if(l&&p&&I.equals(l,p)||l==null&&p==null)a=f;else{let d={anchor:o,focus:a};i.push(d),o=a=f,l=p}}let c={anchor:o,focus:a};return i.push(c),i.reverse(),i}function _P(e,t){if(e.selection==null)return!1;let[n,r]=b.edges(e,e.selection),i=Oc(e,t,{at:n}),o=Oc(e,t,{at:r});if(!i&&!o||i&&o&&I.equals(i,o))return!1;let a=FP(e,e.selection,t);return b.withoutNormalizing(e,()=>{for(let l of a)L.delete(e,{at:l});L.collapse(e,{edge:"start"})}),!0}function Dn(e,{at:t=e.selection}={}){if(t==null)return;let n=ut(e,"table-cell",{at:t});if(!n)return;let r=ut(e,"table-row",{at:t});if(!r)return;let i=ut(e,"table",{at:t});if(!i)return;let[o,a]=i,[l,c]=r,[f,p]=n;return{tableElement:o,tablePath:a,tableColumns:o.columns,rowElement:l,rowPath:c,rowIndex:c.slice(-1)[0],rowCount:o.children.length,cellElement:f,cellPath:p,cellIndex:p.slice(-1)[0],cellCount:l.children.length}}function Pc(e,t=[{type:"table-content",children:[{text:""}]}]){return{type:"table-cell",children:t}}function IP(e,{offset:t=0,at:n=e.selection}={}){let r=Dn(e,{at:n});if(r===void 0)return!1;let{tableElement:i,tablePath:o,cellIndex:a}=r,l=a+t;return b.withoutNormalizing(e,()=>{let{columns:c}=i,f=[...c];f.splice(l,0,c[l]),L.setNodes(e,{columns:f},{at:o}),i.children.forEach((p,d)=>{L.insertNodes(e,Pc(l),{at:[...o,d,l]})})}),!0}function doe(e){return{type:"table-row",children:[...Array(e).keys()].map(t=>Pc(t))}}function $w(e,{at:t=e.selection,offset:n=0}={}){let r=Dn(e,{at:t});if(!r)return!1;let i=doe(r.tableElement.columns.length);return L.insertNodes(e,i,{at:[...r.tablePath,r.rowIndex+n]}),!0}function LP(e,{at:t}={}){return $w(e,{at:t,offset:1})}function PP(e){return[...Array(e).keys()]}function goe(e){return PP(e).map(()=>({align:"left"}))}function voe(e,t){return{type:"table",columns:goe(e),children:PP(t).map(()=>yoe(e))}}function yoe(e){return{type:"table-row",children:[...Array(e).keys()].map(t=>Pc(t))}}function zP(e,t,n,{at:r=e.selection}={}){let i=voe(t,n);return xoe(e,i,{at:r})}function xoe(e,t,{at:n=e.selection}={}){if(n==null)return!1;let r=ut(e,i=>ye.isElement(i)&&e.isMaster(i));if(r==null){let i=e.selection;b.withoutNormalizing(e,()=>{L.insertNodes(e,t,{at:n}),i&&(L.select(e,i),L.move(e))})}else{let i=I.next(r[1]);b.withoutNormalizing(e,()=>{L.insertNodes(e,t,{at:i}),L.select(e,b.start(e,i))})}return!0}function NP(e,t){let{cellIndex:n,rowIndex:r,rowCount:i,tablePath:o}=t;if(r<i-1)return Co(e,[...o,r+1,n]),!0;try{return Co(e,I.next(o)),!0}catch{return!1}}function UP(e,t){let{cellIndex:n,rowIndex:r,tablePath:i}=t;if(r>0)return Co(e,[...i,r-1,n]),!0;try{return g6(e,I.previous(i)),!0}catch{return!1}}function boe(){let e=window.getSelection();return e?e.getRangeAt(0).getBoundingClientRect():null}function Eoe(e,t){return ne.toDOMNode(e,t).getBoundingClientRect()}function Gw(e,t){let n=boe();if(!n)return!1;let r=Eoe(e,t);return n.right<r.right&&n.left>r.left&&n.bottom<r.bottom&&n.top>r.top}function HP(e){let t=Dn(e);return t&&setTimeout(()=>{Gw(e,t.cellElement)||NP(e,t)}),!1}function qP(e){let t=Dn(e);return t&&setTimeout(()=>{Gw(e,t.cellElement)||UP(e,t)}),!1}function zc(e){let t=e.tablePlugin.getTableInfo();return t===void 0?!1:(L.removeNodes(e,{at:t.tablePath}),!0)}function jP(e,{at:t=e.selection}={}){let n=Dn(e,{at:t});if(!n)return!1;let{tableElement:r,tablePath:i,rowIndex:o,cellIndex:a,cellCount:l}=n;if(l===1)return zc(e);b.withoutNormalizing(e,()=>{let c=[...r.columns];c.splice(a,1),L.setNodes(e,{columns:c},{at:i}),r.children.forEach((p,d)=>{L.removeNodes(e,{at:[...i,d,a]})});let f=b.start(e,[...i,o,Math.min(a,l-2)]);L.select(e,f)})}function VP(e,{at:t=e.selection}={}){let n=Dn(e,{at:t});return n===void 0?!1:n.rowCount===1?(zc(e),!0):(b.withoutNormalizing(e,()=>{L.removeNodes(e,{at:n.rowPath}),L.select(e,b.start(e,[...n.tablePath,Math.min(n.rowIndex,n.rowCount-2),n.cellIndex]))}),!0)}function $P(e,t){let n=Dn(e);if(n===void 0)return!1;let{tableElement:r,tablePath:i,cellIndex:o}=n,a=r.columns.slice();return a.splice(o,1,{align:t.align}),L.setNodes(e,{columns:a},{at:i}),!0}function GP(e){let t=Dn(e);if(!t)return!1;let{cellIndex:n,cellCount:r,rowIndex:i,rowCount:o,tablePath:a}=t;return n<r-1?(Co(e,[...a,i,n+1]),!0):i<o-1?(Co(e,[...a,i+1,0]),!0):(LP(e),Co(e,[...a,i+1,0]),!0)}function WP(e){let t=Dn(e);if(!t)return!1;let{cellIndex:n,cellCount:r,rowIndex:i,tablePath:o}=t;if(n>0)return Co(e,[...o,i,n-1]),!0;if(i>0)return Co(e,[...o,i-1,r-1]),!0}function KP(e){return{getTableInfo:Ae(Dn,e),insertTable:Ae(zP,e),insertColumn:Ae(IP,e),insertRow:Ae($w,e),removeTable:Ae(zc,e),removeColumn:Ae(jP,e),removeRow:Ae(VP,e),tabForward:Ae(GP,e),tabBackward:Ae(WP,e),selectCell:Ae(Doe,e),down:Ae(HP,e),up:Ae(qP,e),setTableColumnAlign:Ae($P,e)}}function Doe(e,{at:t=e.selection}={}){let n=Dn(e,{at:t});if(n===void 0)return!1;let{cellPath:r}=n;return L.select(e,r),!0}function Y0(e,t){let n=!1;return t[0].children.forEach((i,o)=>{i.children.forEach((l,c)=>{(l.x!==c||l.y!==o)&&(L.setNodes(e,{x:c,y:o},{at:[...t[1],o,c]}),n=!0)})}),n}function YP(e,t){let[n,r]=t;return n.children.length===1&&n.children[0].type==="table-content"?!1:(b.withoutNormalizing(e,()=>{L.insertNodes(e,{type:"table-content",children:[{text:"X"}]},{at:[...t[1],0]});for(let i=n.children.length;i>=0;i--)L.mergeNodes(e,{at:[...r,i]});L.delete(e,{at:{path:[...r,0,0],offset:0},unit:"character"})}),!0)}var lz=q(Ue());var XP=ae("div")`
|
|
1086
|
+
position: absolute;
|
|
1087
|
+
/**
|
|
1088
|
+
* very slightly shaded
|
|
1089
|
+
*/
|
|
1090
|
+
background: rgba(0, 0, 0, 0.001);
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* hover
|
|
1094
|
+
*/
|
|
1095
|
+
&:hover {
|
|
1096
|
+
/**
|
|
1097
|
+
* needs to pop up so that it doesn't jump back and forth with neighbor
|
|
1098
|
+
* below
|
|
1099
|
+
*/
|
|
1100
|
+
z-index: 1000;
|
|
1101
|
+
/**
|
|
1102
|
+
* Makes the visible tile get darker on hover over any part of the
|
|
1103
|
+
* menu including the invisible part
|
|
1104
|
+
*/
|
|
1105
|
+
.--tile {
|
|
1106
|
+
background: rgba(0, 0, 0, 0.15);
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
`,QP=ae(XP)`
|
|
1110
|
+
cursor: pointer;
|
|
1111
|
+
/**
|
|
1112
|
+
* hangs out on top
|
|
1113
|
+
*/
|
|
1114
|
+
left: -1px;
|
|
1115
|
+
right: -1px;
|
|
1116
|
+
right: 0;
|
|
1117
|
+
height: 3em;
|
|
1118
|
+
top: -3em;
|
|
1119
|
+
`,ZP=ae(XP)`
|
|
1120
|
+
/**
|
|
1121
|
+
* hangs out on left
|
|
1122
|
+
*/
|
|
1123
|
+
top: -1px;
|
|
1124
|
+
bottom: -1px;
|
|
1125
|
+
width: 3em;
|
|
1126
|
+
left: -3em;
|
|
1127
|
+
`,JP=ae("div")`
|
|
1128
|
+
position: absolute;
|
|
1129
|
+
background: rgba(0, 0, 0, 0.05);
|
|
1130
|
+
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
1131
|
+
transition: all 200ms;
|
|
1132
|
+
/**
|
|
1133
|
+
* NOTE: One of these should be overridden
|
|
1134
|
+
*/
|
|
1135
|
+
top: 0;
|
|
1136
|
+
left: 0;
|
|
1137
|
+
right: 0;
|
|
1138
|
+
bottom: 0;
|
|
1139
|
+
`,ez=ae(JP)`
|
|
1140
|
+
top: 50%;
|
|
1141
|
+
border-bottom: none;
|
|
1142
|
+
border-right: none;
|
|
1143
|
+
bottom: 1px;
|
|
1144
|
+
td:first-of-type & {
|
|
1145
|
+
border-top-left-radius: 0.5em;
|
|
1146
|
+
}
|
|
1147
|
+
td:last-of-type & {
|
|
1148
|
+
border-top-right-radius: 0.5em;
|
|
1149
|
+
border-right: 1px solid rgba(0, 0, 0, 0.05);
|
|
1150
|
+
right: -1px;
|
|
1151
|
+
}
|
|
1152
|
+
svg {
|
|
1153
|
+
position: absolute;
|
|
1154
|
+
top: 0.1875em;
|
|
1155
|
+
left: 50%;
|
|
1156
|
+
margin-left: -0.5em;
|
|
1157
|
+
color: rgba(0, 0, 0, 0.2);
|
|
1158
|
+
}
|
|
1159
|
+
&:hover svg {
|
|
1160
|
+
color: rgba(0, 0, 0, 0.5);
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
/* border-top-left-radius: 0.5em;
|
|
1164
|
+
border-top-right-radius: 0.5em; */
|
|
1165
|
+
`,tz=ae(JP)`
|
|
1166
|
+
left: 50%;
|
|
1167
|
+
border-right: none;
|
|
1168
|
+
border-bottom: none;
|
|
1169
|
+
right: 1px;
|
|
1170
|
+
tr:first-of-type & {
|
|
1171
|
+
border-top-left-radius: 0.5em;
|
|
1172
|
+
}
|
|
1173
|
+
tr:last-of-type & {
|
|
1174
|
+
border-bottom-left-radius: 0.5em;
|
|
1175
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
1176
|
+
bottom: 0;
|
|
1177
|
+
}
|
|
1178
|
+
svg {
|
|
1179
|
+
position: absolute;
|
|
1180
|
+
left: 0.25em;
|
|
1181
|
+
top: 50%;
|
|
1182
|
+
margin-top: -0.5em;
|
|
1183
|
+
color: rgba(0, 0, 0, 0.2);
|
|
1184
|
+
}
|
|
1185
|
+
&:hover svg {
|
|
1186
|
+
color: rgba(0, 0, 0, 0.5);
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
/* border-top-left-radius: 0.5em;
|
|
1190
|
+
border-bottom-left-radius: 0.5em; */
|
|
1191
|
+
`,nz=ae("div")`
|
|
1192
|
+
position: absolute;
|
|
1193
|
+
font-size: 1.5em;
|
|
1194
|
+
background: white;
|
|
1195
|
+
border-radius: 50%;
|
|
1196
|
+
cursor: pointer;
|
|
1197
|
+
svg {
|
|
1198
|
+
display: block;
|
|
1199
|
+
}
|
|
1200
|
+
`,Nc=ae(nz)`
|
|
1201
|
+
color: #c0c0c0;
|
|
1202
|
+
&:hover {
|
|
1203
|
+
color: royalblue;
|
|
1204
|
+
}
|
|
1205
|
+
`,X0=ae(nz)`
|
|
1206
|
+
color: #c0c0c0;
|
|
1207
|
+
&:hover {
|
|
1208
|
+
color: firebrick;
|
|
1209
|
+
}
|
|
1210
|
+
`;var rz=ae("table")`
|
|
1211
|
+
border-collapse: collapse;
|
|
1212
|
+
margin: 1em 0;
|
|
1213
|
+
${({columns:e})=>e.map((t,n)=>`td:nth-of-type(${n+1}) { text-align: ${t.align}; }`).join(`
|
|
1214
|
+
`)}
|
|
1215
|
+
`,iz=ae("tr")`
|
|
1216
|
+
position: relative;
|
|
1217
|
+
&:first-of-type {
|
|
1218
|
+
background: var(--table-head-bgcolor);
|
|
1219
|
+
}
|
|
1220
|
+
`,oz=ae("td")`
|
|
1221
|
+
position: relative;
|
|
1222
|
+
border-width: 1px;
|
|
1223
|
+
border-style: solid;
|
|
1224
|
+
border-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
|
|
1225
|
+
border-color: var(--table-row-border-color) var(--table-column-border-color);
|
|
1226
|
+
padding: 0.75em 1em;
|
|
1227
|
+
min-width: 2em;
|
|
1228
|
+
&.--selected {
|
|
1229
|
+
outline: 2px solid var(--select-color, blue);
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Stronger borders on the left and right edge
|
|
1233
|
+
*/
|
|
1234
|
+
&:first-of-type {
|
|
1235
|
+
border-left-color: var(--table-border-color);
|
|
1236
|
+
}
|
|
1237
|
+
&:last-of-type {
|
|
1238
|
+
border-right-color: var(--table-border-color);
|
|
1239
|
+
}
|
|
1240
|
+
`,az=ae("div")`
|
|
1241
|
+
/**
|
|
1242
|
+
* Smaller font inside a table than outside of it
|
|
1243
|
+
*/
|
|
1244
|
+
font-size: 0.9375em; /* 15px */
|
|
1245
|
+
/**
|
|
1246
|
+
* Even smaller font and dimmer for the heading row
|
|
1247
|
+
*/
|
|
1248
|
+
tr:first-of-type & {
|
|
1249
|
+
color: rgba(0, 0, 0, 0.6);
|
|
1250
|
+
font-size: 0.875em; /* 14px */
|
|
1251
|
+
}
|
|
1252
|
+
`;var uz=q(Ue()),Q0=(0,uz.createContext)({isSelected:!1});var Z0=q(re());function sz({element:e,attributes:t,children:n}){let r=Me(),i=Ri();return(0,lz.useEffect)(()=>{let o=ne.findPath(r,e);Y0(r,[e,o])},[]),(0,Z0.jsx)(Q0.Provider,{value:{isSelected:i},children:(0,Z0.jsx)(rz,{...t,columns:e.columns,children:(0,Z0.jsx)("tbody",{children:n})})})}var xz=q(Ue());var Cu=q(Ue());var ii=q(re()),Uc=e=>(0,ii.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"1em",height:"1em",...e,children:(0,ii.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"})}),J0=e=>(0,ii.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"1em",height:"1em",...e,children:(0,ii.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"})}),e1=()=>(0,ii.jsx)(ft,{children:(0,ii.jsx)("path",{d:"M4 6h16M4 12h16M4 18h16"})}),cz=()=>(0,ii.jsx)(ft,{children:(0,ii.jsx)("path",{d:"M4 6h16M4 12h10M4 18h14"})}),fz=()=>(0,ii.jsx)(ft,{children:(0,ii.jsx)("path",{d:"M4 6h16M8 12h8M6 18h12"})}),pz=()=>(0,ii.jsx)(ft,{children:(0,ii.jsx)("path",{d:"M4 6h16M10 12h10M6 18h14"})});var vr=q(re());function mz({cellElement:e}){let t=Me(),n=hr("column-menu"),r=(0,Cu.useRef)(null),[i,o]=(0,Cu.useState)(!1),a=(0,Cu.useCallback)(()=>{o(!0)},[]),l=(0,Cu.useCallback)(()=>{o(!1)},[]),c=(0,Cu.useCallback)(()=>{n.layer&&n.close();let f=r.current;if(f===null)return;let p=[{icon:cz,title:"\u5DE6\u63C3\u3048",action:()=>{t.tablePlugin.setTableColumnAlign({align:"left"})}},{icon:fz,title:"\u4E2D\u592E\u63C3\u3048",action:()=>{t.tablePlugin.setTableColumnAlign({align:"center"})}},{icon:pz,title:"\u53F3\u63C3\u3048",action:()=>{t.tablePlugin.setTableColumnAlign({align:"right"})}}];n.open(()=>(0,vr.jsx)(N0,{dest:f,items:p,close:n.close}))},[]);return(0,vr.jsxs)(QP,{ref:r,contentEditable:!1,onClick:c,onMouseEnter:a,onMouseLeave:l,children:[(0,vr.jsx)(ez,{className:"--tile",children:(0,vr.jsx)(e1,{})}),i?(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(X0,{style:{top:0,left:"50%",marginLeft:"-0.5em"},onMouseDown:()=>t.tablePlugin.removeColumn({at:e}),children:(0,vr.jsx)(J0,{})}),(0,vr.jsx)(Nc,{style:{left:"-0.5em",top:0},onMouseDown:()=>t.tablePlugin.insertColumn({at:e}),children:(0,vr.jsx)(Uc,{})}),(0,vr.jsx)(Nc,{style:{right:"-0.5em",top:0},onMouseDown:()=>t.tablePlugin.insertColumn({at:e,offset:1}),children:(0,vr.jsx)(Uc,{})})]}):null]})}var hz=q(Ue());var Rr=q(re());function dz({cellElement:e}){let t=Me(),[n,r]=(0,hz.useState)(!1);return(0,Rr.jsxs)(ZP,{contentEditable:!1,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[(0,Rr.jsx)(tz,{className:"--tile",children:(0,Rr.jsx)(e1,{})}),n?(0,Rr.jsxs)(Rr.Fragment,{children:[(0,Rr.jsx)(X0,{style:{top:"50%",left:"0.5em",marginTop:"-0.5em"},onMouseDown:()=>t.tablePlugin.removeRow({at:e}),children:(0,Rr.jsx)(J0,{})}),(0,Rr.jsx)(Nc,{style:{top:"-0.5em",left:"0.5em"},onMouseDown:()=>t.tablePlugin.insertRow({at:e}),children:(0,Rr.jsx)(Uc,{})}),(0,Rr.jsx)(Nc,{style:{bottom:"-0.5em",left:"0.5em"},onMouseDown:()=>t.tablePlugin.insertRow({at:e,offset:1}),children:(0,Rr.jsx)(Uc,{})})]}):null]})}var gz=ae("div")`
|
|
1253
|
+
position: absolute;
|
|
1254
|
+
/**
|
|
1255
|
+
* very slightly shaded
|
|
1256
|
+
*/
|
|
1257
|
+
background: rgba(0, 0, 0, 0.001);
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* hangs out on left
|
|
1261
|
+
*/
|
|
1262
|
+
top: -1.5em;
|
|
1263
|
+
left: -4em;
|
|
1264
|
+
height: 2.5em;
|
|
1265
|
+
width: 2.5em;
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* hover
|
|
1269
|
+
*/
|
|
1270
|
+
&:hover {
|
|
1271
|
+
/**
|
|
1272
|
+
* needs to pop up so that it doesn't jump back and forth with neighbor
|
|
1273
|
+
* below
|
|
1274
|
+
*/
|
|
1275
|
+
z-index: 1000;
|
|
1276
|
+
/**
|
|
1277
|
+
* Makes the visible tile get darker on hover over any part of the
|
|
1278
|
+
* menu including the invisible part
|
|
1279
|
+
*/
|
|
1280
|
+
.--row-menu-tile {
|
|
1281
|
+
background: rgba(0, 0, 0, 0.15);
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
`,vz=ae("div")`
|
|
1285
|
+
position: absolute;
|
|
1286
|
+
left: 0;
|
|
1287
|
+
top: 0;
|
|
1288
|
+
width: 1.5em;
|
|
1289
|
+
height: 1.5em;
|
|
1290
|
+
background: rgba(0, 0, 0, 0.05);
|
|
1291
|
+
border-radius: 50%;
|
|
1292
|
+
`;var Ww=q(re());function yz(){return(0,Ww.jsx)(gz,{contentEditable:!1,children:(0,Ww.jsx)(vz,{className:"--table-menu-tile"})})}var Hc=q(re());function bz({element:e,attributes:t,children:n}){let r=(0,xz.useContext)(Q0),i=Ri(),o=r.isSelected&&e.x===0&&e.y===0,a=r.isSelected&&e.x===0,l=r.isSelected&&e.y===0;return(0,Hc.jsxs)(oz,{className:i?"--selected":"",...t,"data-x":e.x,"data-y":e.y,children:[n,o?(0,Hc.jsx)(yz,{}):null,a?(0,Hc.jsx)(dz,{cellElement:e}):null,l?(0,Hc.jsx)(mz,{cellElement:e}):null]})}var Dz=q(re());function Ez({attributes:e,children:t}){return(0,Dz.jsx)(az,{...e,children:t})}var Cz=q(re());function wz({attributes:e,children:t}){return(0,Cz.jsx)(iz,{...e,children:t})}var Am=q(re());function Sz({element:e,attributes:t,children:n}){switch(e.type){case"table":return(0,Am.jsx)(sz,{element:e,attributes:t,children:n});case"table-row":return(0,Am.jsx)(wz,{element:e,attributes:t,children:n});case"table-cell":return(0,Am.jsx)(bz,{element:e,attributes:t,children:n});case"table-content":return(0,Am.jsx)(Ez,{element:e,attributes:t,children:n})}}var kz=at((e,t,{createPolicy:n})=>(e.supportsTable=!0,e.tablePlugin=KP(e),n({name:"table",editor:{deleteBackward:()=>Al(e,"table-cell"),deleteForward:()=>u6(e,"table-cell"),deleteFragment:()=>_P(e,["table-cell"]),insertBreak:()=>!!ut(e,"table-cell"),isMaster(r){if(r.type==="table")return!0},normalizeNode:r=>{let[i]=r;if(!ye.isElement(i))return!1;switch(i.type){case"table":return Y0(e,r);case"table-cell":return YP(e,r)}return!1}},editableProps:{renderElement:Sz,onKeyDown:Qn({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 woe=`
|
|
1293
|
+
--blue-50: rgb(239 246 255);
|
|
1294
|
+
--blue-100: rgb(219 234 254);
|
|
1295
|
+
--blue-200: rgb(191 219 254);
|
|
1296
|
+
--blue-300: rgb(147 197 253);
|
|
1297
|
+
--blue-400: rgb(96 165 250);
|
|
1298
|
+
--blue-500: rgb(59 130 246);
|
|
1299
|
+
--blue-600: rgb(37 99 235);
|
|
1300
|
+
--blue-700: rgb(29 78 216);
|
|
1301
|
+
--blue-800: rgb(30 64 175);
|
|
1302
|
+
--blue-900: rgb(30 58 138);
|
|
1303
|
+
`;var Coe=`
|
|
1304
|
+
--shade-50: rgb(250 250 250);
|
|
1305
|
+
--shade-100: rgb(244 244 245);
|
|
1306
|
+
--shade-200: rgb(228 228 231);
|
|
1307
|
+
--shade-300: rgb(212 212 216);
|
|
1308
|
+
--shade-400: rgb(161 161 170);
|
|
1309
|
+
--shade-500: rgb(113 113 122);
|
|
1310
|
+
--shade-600: rgb(82 82 91);
|
|
1311
|
+
--shade-700: rgb(63 63 70);
|
|
1312
|
+
--shade-800: rgb(39 39 42);
|
|
1313
|
+
--shade-900: rgb(24 24 27);
|
|
1314
|
+
`,Az=B0`
|
|
1315
|
+
:root {
|
|
1316
|
+
/* Tailwind Colors */
|
|
1317
|
+
${woe}
|
|
1318
|
+
${Coe}
|
|
1319
|
+
/* Select Colors */
|
|
1320
|
+
--select-color: var(--blue-400);
|
|
1321
|
+
--select-editor-color: var(--blue-200);
|
|
1322
|
+
--hover-color: var(--blue-200);
|
|
1323
|
+
/* Link Colors */
|
|
1324
|
+
--link-color: var(--blue-600);
|
|
1325
|
+
--link-hover-color: var(--blue-700);
|
|
1326
|
+
/* Code Block Colors */
|
|
1327
|
+
/* Inline Code Colors */
|
|
1328
|
+
--inline-code-bgcolor: var(--shade-100);
|
|
1329
|
+
--inline-code-border-color: var(--shade-200);
|
|
1330
|
+
/* Table Colors */
|
|
1331
|
+
--table-border-color: var(--shade-300);
|
|
1332
|
+
--table-row-border-color: var(--shade-300);
|
|
1333
|
+
--table-column-border-color: var(--shade-100);
|
|
1334
|
+
--table-head-bgcolor: var(--shade-50);
|
|
1335
|
+
--table-menu-bgcolor: var(--shade-100);
|
|
1336
|
+
--table-menu-hover-bgcolor: var(--shade-200);
|
|
1337
|
+
/* Horizontal Rule Colors */
|
|
1338
|
+
--hr-color: var(--shade-300);
|
|
1339
|
+
}
|
|
1340
|
+
`;var Fl=q(re()),Tz=at(e=>(e.theme=!0,{name:"theme",editor:{},renderEditable:({attributes:t,Editable:n})=>(0,Fl.jsxs)(Fl.Fragment,{children:[(0,Fl.jsx)(Y_,{styles:Az}),(0,Fl.jsx)(n,{...t})]}),editableProps:{}}));var u1=q(Ue());var _l=q(Ue());var Bz=ae(Pi)`
|
|
1341
|
+
padding: 0.5em;
|
|
1342
|
+
`,Oz=ae("div")`
|
|
1343
|
+
display: grid;
|
|
1344
|
+
grid-template-columns: repeat(5, 1.75em);
|
|
1345
|
+
grid-template-rows: 1.5em;
|
|
1346
|
+
/* grid-gap: 1px; */
|
|
1347
|
+
`,Mz=ae("div")`
|
|
1348
|
+
background: var(--shade-100);
|
|
1349
|
+
height: 1.5em;
|
|
1350
|
+
border-radius: 0.125em;
|
|
1351
|
+
border-right: 1px solid white;
|
|
1352
|
+
border-top: 1px solid white;
|
|
1353
|
+
cursor: pointer;
|
|
1354
|
+
&.--selected {
|
|
1355
|
+
background: var(--blue-100);
|
|
1356
|
+
}
|
|
1357
|
+
`;var pa=q(re());function Rz(e){return[...Array(e).keys()]}function Fz({dest:e,close:t}){let[n,r]=(0,_l.useState)({x:0,y:0}),i=Me(),o=(0,_l.useRef)(null),a=Li({src:o,dest:e},({dest:d})=>({left:d.left-8,top:d.top+d.height})),l=Rz(5).map(d=>d+1),c=Rz(5).map(d=>d+1),f=(0,_l.useCallback)((d,g)=>{r({x:d,y:g})},[r]),p=(0,_l.useCallback)((d,g)=>{i.tablePlugin.insertTable(d,g),ne.focus(i),t()},[i]);return(0,pa.jsxs)(pa.Fragment,{children:[(0,pa.jsx)(Du,{close:t}),(0,pa.jsx)(Bz,{ref:o,style:a,children:(0,pa.jsx)(Oz,{onMouseLeave:()=>f(0,0),children:l.map(d=>c.map(g=>{let m=g<=n.x&&d<=n.y;return(0,pa.jsx)(Mz,{className:hn({"--selected":m}),onMouseEnter:()=>f(g,d),onClick:()=>p(g,d)},`${g},${d}`)}))})})]})}var g9=q(og()),$c=q(Ue());var Oe=q(re()),_z=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M7 12h10M7 5v14M17 5v14M15 19h4M15 5h4M5 19h4M5 5h4"})}),Iz=()=>(0,Oe.jsx)(ft,{className:"--more-icon",width:"0.5em",viewBox:"0 0 12 24",children:(0,Oe.jsx)("path",{d:"m2 12 4 4 4-4"})}),Lz=()=>(0,Oe.jsx)(ft,{width:"0.5em",viewBox:"6 0 12 24",children:(0,Oe.jsx)("path",{d:"M9 12h6M12 9v6"})}),Pz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M19 18v-8l-2 2M4 6v12M12 6v12M11 18h2M3 18h2M4 12h8M3 6h2M11 6h2"})}),zz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.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"})}),Nz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.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 Uz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M7 20V4h5.5a4 4 0 0 1 0 9H7"})}),Hz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7H7zM13 12h1a3.5 3.5 0 0 1 0 7H7v-7"})}),qz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M11 5h6M7 19h6M14 5l-4 14"})});var t1=()=>(0,Oe.jsxs)(ft,{children:[(0,Oe.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,Oe.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 jz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.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 Vz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M9 6h11M9 12h11M9 18h11M5 6v.01M5 12v.01M5 18v.01"})}),$z=()=>(0,Oe.jsxs)(ft,{children:[(0,Oe.jsx)("rect",{x:4,y:4,width:16,height:16,rx:2}),(0,Oe.jsx)("path",{d:"M4 10h16M10 4v16"})]}),Gz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"m7 8-4 4 4 4M17 8l4 4-4 4M14 4l-4 16"})}),Wz=()=>(0,Oe.jsxs)(ft,{children:[(0,Oe.jsx)("path",{d:"M15 8h.01"}),(0,Oe.jsx)("rect",{x:4,y:4,width:16,height:16,rx:3}),(0,Oe.jsx)("path",{d:"m4 15 4-4a3 5 0 0 1 3 0l5 5"}),(0,Oe.jsx)("path",{d:"m14 14 1-1a3 5 0 0 1 3 0l2 2"})]});var Kz=()=>(0,Oe.jsxs)(ft,{children:[(0,Oe.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z"}),(0,Oe.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,Oe.jsx)("path",{d:"m3 16 5-5c.928-.893 2.072-.893 3 0l3.5 3.5"}),(0,Oe.jsx)("path",{d:"m14 14 1-1c.679-.653 1.473-.829 2.214-.526M19 22v-6M22 19l-3-3-3 3"})]}),Yz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M12 5v14M5 12h14"})}),Xz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.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"})}),Qz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M7 5v5a5 5 0 0 0 10 0V5M5 19h14"})});var Zz=()=>(0,Oe.jsxs)(ft,{children:[(0,Oe.jsx)("path",{d:"m9 11 3 3 8-8"}),(0,Oe.jsx)("path",{d:"M20 12v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h9"})]}),Kw=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M11 6h9M11 12h9M12 18h8M4 16a2 2 0 1 1 4 0c0 .591-.5 1-1 1.5L4 20h4M6 10V4L4 6"})}),Jz=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M4 6h16M8 12h12M12 18h8M7 12l-3-3M7 12l-3 3"})}),e9=()=>(0,Oe.jsx)(ft,{children:(0,Oe.jsx)("path",{d:"M4 6h16M8 12h12M12 18h8M4 12l3-3M4 12l3 3"})});var t9=[{icon:Jz,title:gt("increaseDepth"),hotkey:"tab",action:e=>e.list.increaseDepth(),active:e=>e.list.canIncreaseDepth()},{icon:e9,title:gt("decreaseDepth"),hotkey:"shift+tab",action:e=>e.list.decreaseDepth(),active:e=>e.list.canDecreaseDepth()}],n9=[{icon:Pz,title:gt("heading1"),hotkey:"super+1",action:e=>e.heading.convertHeading(1,!0),active:e=>e.heading.isHeadingActive(1)},{icon:zz,title:gt("heading2"),hotkey:"super+2",action:e=>e.heading.convertHeading(2,!0),active:e=>e.heading.isHeadingActive(2)},{icon:Nz,title:gt("heading3"),hotkey:"super+3",action:e=>e.heading.convertHeading(3,!0),active:e=>e.heading.isHeadingActive(3)},{icon:Uz,title:gt("paragraph"),hotkey:"super+0",action:e=>{e.collapsibleParagraph.convertParagraph()}}],Yw=[...n9,"divider",...t9],Xw=[{icon:_z,title:gt("paragraphStyle"),more:!0,children:n9},"divider",...t9];var i9=q(Ue());var n1=ae("div")`
|
|
1358
|
+
/* Center vertically and horizontally */
|
|
1359
|
+
display: flex;
|
|
1360
|
+
align-items: center;
|
|
1361
|
+
justify-content: center;
|
|
1362
|
+
cursor: pointer;
|
|
1363
|
+
/* font-size: 1.25em; */
|
|
1364
|
+
padding: 0.25em 0.75em;
|
|
1365
|
+
text-align: center;
|
|
1366
|
+
color: var(--blue-100);
|
|
1367
|
+
color: white;
|
|
1368
|
+
background: var(--blue-500);
|
|
1369
|
+
transition: all 100ms;
|
|
1370
|
+
&:hover {
|
|
1371
|
+
color: var(--blue-50);
|
|
1372
|
+
background: var(--blue-600);
|
|
1373
|
+
outline: 2px solid var(--blue-200);
|
|
1374
|
+
}
|
|
1375
|
+
border-radius: 0.25em;
|
|
1376
|
+
svg {
|
|
1377
|
+
color: var(--blue-200);
|
|
1378
|
+
font-size: 1.25em;
|
|
1379
|
+
stroke-width: 2px;
|
|
1380
|
+
}
|
|
1381
|
+
`,r1=ae("div")`
|
|
1382
|
+
font-size: 0.875em;
|
|
1383
|
+
margin-top: 0.5em;
|
|
1384
|
+
color: var(--shade-500);
|
|
1385
|
+
line-height: 1.375;
|
|
1386
|
+
`;var r9=ae(Pi)`
|
|
1387
|
+
padding: 1em;
|
|
1388
|
+
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};
|
|
1402
|
+
/*! Bundled license information:
|
|
1403
|
+
|
|
1404
|
+
react/cjs/react.production.js:
|
|
1405
|
+
(**
|
|
1406
|
+
* @license React
|
|
1407
|
+
* react.production.js
|
|
1408
|
+
*
|
|
1409
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1410
|
+
*
|
|
1411
|
+
* This source code is licensed under the MIT license found in the
|
|
1412
|
+
* LICENSE file in the root directory of this source tree.
|
|
1413
|
+
*)
|
|
1414
|
+
|
|
1415
|
+
scheduler/cjs/scheduler.production.js:
|
|
1416
|
+
(**
|
|
1417
|
+
* @license React
|
|
1418
|
+
* scheduler.production.js
|
|
1419
|
+
*
|
|
1420
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1421
|
+
*
|
|
1422
|
+
* This source code is licensed under the MIT license found in the
|
|
1423
|
+
* LICENSE file in the root directory of this source tree.
|
|
1424
|
+
*)
|
|
1425
|
+
|
|
1426
|
+
react-dom/cjs/react-dom.production.js:
|
|
1427
|
+
(**
|
|
1428
|
+
* @license React
|
|
1429
|
+
* react-dom.production.js
|
|
1430
|
+
*
|
|
1431
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1432
|
+
*
|
|
1433
|
+
* This source code is licensed under the MIT license found in the
|
|
1434
|
+
* LICENSE file in the root directory of this source tree.
|
|
1435
|
+
*)
|
|
1436
|
+
|
|
1437
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
1438
|
+
(**
|
|
1439
|
+
* @license React
|
|
1440
|
+
* react-dom-client.production.js
|
|
1441
|
+
*
|
|
1442
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1443
|
+
*
|
|
1444
|
+
* This source code is licensed under the MIT license found in the
|
|
1445
|
+
* LICENSE file in the root directory of this source tree.
|
|
1446
|
+
*)
|
|
1447
|
+
|
|
1448
|
+
lodash/lodash.js:
|
|
1449
|
+
(**
|
|
1450
|
+
* @license
|
|
1451
|
+
* Lodash <https://lodash.com/>
|
|
1452
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1453
|
+
* Released under MIT license <https://lodash.com/license>
|
|
1454
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1455
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1456
|
+
*)
|
|
1457
|
+
|
|
1458
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
1459
|
+
(**
|
|
1460
|
+
* @license React
|
|
1461
|
+
* react-jsx-runtime.production.js
|
|
1462
|
+
*
|
|
1463
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1464
|
+
*
|
|
1465
|
+
* This source code is licensed under the MIT license found in the
|
|
1466
|
+
* LICENSE file in the root directory of this source tree.
|
|
1467
|
+
*)
|
|
1468
|
+
|
|
1469
|
+
react-is/cjs/react-is.production.min.js:
|
|
1470
|
+
(** @license React v16.13.1
|
|
1471
|
+
* react-is.production.min.js
|
|
1472
|
+
*
|
|
1473
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1474
|
+
*
|
|
1475
|
+
* This source code is licensed under the MIT license found in the
|
|
1476
|
+
* LICENSE file in the root directory of this source tree.
|
|
1477
|
+
*)
|
|
1478
|
+
|
|
1479
|
+
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
|
1480
|
+
(**
|
|
1481
|
+
* @license React
|
|
1482
|
+
* use-sync-external-store-shim.production.js
|
|
1483
|
+
*
|
|
1484
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1485
|
+
*
|
|
1486
|
+
* This source code is licensed under the MIT license found in the
|
|
1487
|
+
* LICENSE file in the root directory of this source tree.
|
|
1488
|
+
*)
|
|
1489
|
+
|
|
1490
|
+
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:
|
|
1491
|
+
(**
|
|
1492
|
+
* @license React
|
|
1493
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
1494
|
+
*
|
|
1495
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1496
|
+
*
|
|
1497
|
+
* This source code is licensed under the MIT license found in the
|
|
1498
|
+
* LICENSE file in the root directory of this source tree.
|
|
1499
|
+
*)
|
|
1500
|
+
|
|
1501
|
+
is-plain-object/dist/is-plain-object.mjs:
|
|
1502
|
+
(*!
|
|
1503
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
1504
|
+
*
|
|
1505
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
1506
|
+
* Released under the MIT License.
|
|
1507
|
+
*)
|
|
1508
|
+
|
|
1509
|
+
is-plain-object/dist/is-plain-object.mjs:
|
|
1510
|
+
(*!
|
|
1511
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
1512
|
+
*
|
|
1513
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
1514
|
+
* Released under the MIT License.
|
|
1515
|
+
*)
|
|
1516
|
+
*/
|