elseware-ui 2.22.0 → 2.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js CHANGED
@@ -1305,7 +1305,7 @@ function almostEquals(x, y, epsilon) {
1305
1305
  */ function isNonPrimitive(n) {
1306
1306
  return typeof n === 'symbol' || typeof n === 'object' && n !== null && !(Symbol.toPrimitive in n || 'toString' in n || 'valueOf' in n);
1307
1307
  }
1308
- function isNumber(n) {
1308
+ function isNumber$1(n) {
1309
1309
  return !isNonPrimitive(n) && !isNaN(parseFloat(n)) && isFinite(n);
1310
1310
  }
1311
1311
  function almostWhole(x, epsilon) {
@@ -5709,7 +5709,7 @@ class LineController extends DatasetController {
5709
5709
  const iAxis = iScale.axis;
5710
5710
  const vAxis = vScale.axis;
5711
5711
  const { spanGaps , segment } = this.options;
5712
- const maxGapLength = isNumber(spanGaps) ? spanGaps : Number.POSITIVE_INFINITY;
5712
+ const maxGapLength = isNumber$1(spanGaps) ? spanGaps : Number.POSITIVE_INFINITY;
5713
5713
  const directUpdate = this.chart._animationsDisabled || reset || mode === 'none';
5714
5714
  const end = start + count;
5715
5715
  const pointsCount = points.length;
@@ -6702,7 +6702,7 @@ class Element$4 {
6702
6702
  };
6703
6703
  }
6704
6704
  hasValue() {
6705
- return isNumber(this.x) && isNumber(this.y);
6705
+ return isNumber$1(this.x) && isNumber$1(this.y);
6706
6706
  }
6707
6707
  getProps(props, final) {
6708
6708
  const anims = this.$animations;
@@ -13278,7 +13278,7 @@ const INTERVALS = {
13278
13278
  return null;
13279
13279
  }
13280
13280
  if (round) {
13281
- value = round === 'week' && (isNumber(isoWeekday) || isoWeekday === true) ? adapter.startOf(value, 'isoWeek', isoWeekday) : adapter.startOf(value, round);
13281
+ value = round === 'week' && (isNumber$1(isoWeekday) || isoWeekday === true) ? adapter.startOf(value, 'isoWeek', isoWeekday) : adapter.startOf(value, round);
13282
13282
  }
13283
13283
  return +value;
13284
13284
  }
@@ -13505,7 +13505,7 @@ class TimeScale extends Scale {
13505
13505
  const minor = timeOpts.unit || determineUnitForAutoTicks(timeOpts.minUnit, min, max, this._getLabelCapacity(min));
13506
13506
  const stepSize = valueOrDefault(options.ticks.stepSize, 1);
13507
13507
  const weekday = minor === 'week' ? timeOpts.isoWeekday : false;
13508
- const hasWeekday = isNumber(weekday) || weekday === true;
13508
+ const hasWeekday = isNumber$1(weekday) || weekday === true;
13509
13509
  const ticks = {};
13510
13510
  let first = min;
13511
13511
  let time, count;
@@ -37720,7 +37720,7 @@ var isObject$2 = function isObject(obj) {
37720
37720
  };
37721
37721
  /** @private is the given object an integer? */
37722
37722
 
37723
- var isInteger$1 = function isInteger(obj) {
37723
+ var isInteger$2 = function isInteger(obj) {
37724
37724
  return String(Math.floor(Number(obj))) === obj;
37725
37725
  };
37726
37726
  /** @private is the given object a string? */
@@ -37825,7 +37825,7 @@ function setIn(obj, path, value) {
37825
37825
  resVal = resVal[currentPath] = clone(currentObj);
37826
37826
  } else {
37827
37827
  var nextPath = pathArray[i + 1];
37828
- resVal = resVal[currentPath] = isInteger$1(nextPath) && Number(nextPath) >= 0 ? [] : {};
37828
+ resVal = resVal[currentPath] = isInteger$2(nextPath) && Number(nextPath) >= 0 ? [] : {};
37829
37829
  }
37830
37830
  } // Return original object if new value is the same as current
37831
37831
 
@@ -72063,7 +72063,7 @@ var scrollDroppable = (function (droppable, newScroll) {
72063
72063
  return result;
72064
72064
  });
72065
72065
 
72066
- function isInteger(value) {
72066
+ function isInteger$1(value) {
72067
72067
  if (Number.isInteger) {
72068
72068
  return Number.isInteger(value);
72069
72069
  }
@@ -79474,7 +79474,7 @@ function useValidation$1(props, contextId, getRef) {
79474
79474
  var id = props.draggableId;
79475
79475
  !id ? process.env.NODE_ENV !== "production" ? invariant(false, 'Draggable requires a draggableId') : invariant(false) : void 0;
79476
79476
  !(typeof id === 'string') ? process.env.NODE_ENV !== "production" ? invariant(false, "Draggable requires a [string] draggableId.\n Provided: [type: " + typeof id + "] (value: " + id + ")") : invariant(false) : void 0;
79477
- !isInteger(props.index) ? process.env.NODE_ENV !== "production" ? invariant(false, prefix(id) + " requires an integer index prop") : invariant(false) : void 0;
79477
+ !isInteger$1(props.index) ? process.env.NODE_ENV !== "production" ? invariant(false, prefix(id) + " requires an integer index prop") : invariant(false) : void 0;
79478
79478
 
79479
79479
  if (props.mapped.type === 'DRAGGING') {
79480
79480
  return;
@@ -94402,7 +94402,7 @@ var modDev$p = /*#__PURE__*/Object.freeze({
94402
94402
  *
94403
94403
  */
94404
94404
 
94405
- function t$2(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const e$3="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,n$5=e$3&&"documentMode"in document?document.documentMode:null,r$1=e$3&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),i$1=e$3&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s$1=!(!e$3||!("InputEvent"in window)||n$5)&&"getTargetRanges"in new window.InputEvent("input"),o$4=e$3&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l$4=e$3&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c$5=e$3&&/Android/.test(navigator.userAgent),a$5=e$3&&/^(?=.*Chrome).*/i.test(navigator.userAgent),u$4=e$3&&c$5&&a$5,f$5=e$3&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!a$5;function d$5(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}const h$6=1,g$7=3,_$6=9,p$4=11,m$6=0,y$6=1,x$8=2,S$4=0,v$5=1,C$6=2,k$8=1,b$8=2,T$3=4,w$6=8,N$7=16,E$7=32,P$5=64,F$4=128,L$5=1792|(112|(3|T$3|w$6)|F$4),A$4=1,O$6=2,M$5=3,I$5=4,D$6=5,z$4=6,B$4=o$4||l$4||f$5?" ":"​",W$3="\n\n",K$3=i$1?" ":B$4,R$5="֑-߿יִ-﷽ﹰ-ﻼ",J$3="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",j$3=new RegExp("^[^"+J$3+"]*["+R$5+"]"),$$3=new RegExp("^[^"+R$5+"]*["+J$3+"]"),V$3={bold:1,capitalize:1024,code:16,highlight:F$4,italic:2,lowercase:256,strikethrough:T$3,subscript:32,superscript:64,underline:w$6,uppercase:512},U$5={directionless:1,unmergeable:2},q$4={center:O$6,end:z$4,justify:I$5,left:A$4,right:M$5,start:D$6},H$4={[O$6]:"center",[z$4]:"end",[I$5]:"justify",[A$4]:"left",[M$5]:"right",[D$6]:"start"},G$4={normal:0,segmented:2,token:1},Q$3={[S$4]:"normal",[C$6]:"segmented",[v$5]:"token"},X$3="$";function Y$3(t,e,n,r,i,s){let o=t.getFirstChild();for(;null!==o;){const t=o.__key;o.__parent===e&&(di(o)&&Y$3(o,t,n,r,i,s),n.has(t)||s.delete(t),i.push(t)),o=o.getNextSibling();}}const Z$2=100;let tt$2=!1,et$2=0;function nt$2(t){et$2=t.timeStamp;}function rt$2(t,e,n){const r="BR"===t.nodeName,i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&void 0!==ns(t,n)}function it$2(t,e,n){const r=Xs(Rs(n));let i=null,s=null;null!==r&&r.anchorNode===t&&(i=r.anchorOffset,s=r.focusOffset);const o=t.nodeValue;null!==o&&ps(e,o,i,s,!1);}function st$2(t,e,n){if(lr(t)){const e=t.anchor.getNode();if(e.is(n)&&t.format!==e.getFormat())return !1}return $i(e)&&n.isAttached()}function ot$1(t,e,n,r){for(let i=t;i&&!po(i);i=Ms(i)){const t=ns(i,e);if(void 0!==t){const e=ts(t,n);if(e)return _i(e)||!eo(i)?void 0:[i,e]}else if(i===r)return [r,ls(n)]}}function lt$2(t,e,n){tt$2=!0;const r=performance.now()-et$2>Z$2;try{ci(t,(()=>{const s=Tr()||function(t){return t.getEditorState().read((()=>{const t=Tr();return null!==t?t.clone():null}))}(t),o=new Map,l=t.getRootElement(),c=t._editorState,a=t._blockCursorElement;let u=!1,f="";for(let n=0;n<e.length;n++){const d=e[n],h=d.type,g=d.target,_=ot$1(g,t,c,l);if(!_)continue;const[p,m]=_;if("characterData"===h)r&&Xn(m)&&$i(g)&&st$2(s,g,m)&&it$2(g,m,t);else if("childList"===h){u=!0;const e=d.addedNodes;for(let n=0;n<e.length;n++){const r=e[n],s=es(r),o=r.parentNode;if(null!=o&&r!==a&&null===s&&!rt$2(r,o,t)){if(i$1){const t=(eo(r)?r.innerText:null)||r.nodeValue;t&&(f+=t);}o.removeChild(r);}}const n=d.removedNodes,r=n.length;if(r>0){let e=0;for(let i=0;i<r;i++){const r=n[i];(rt$2(r,g,t)||a===r)&&(g.appendChild(r),e++);}r!==e&&o.set(p,m);}}}if(o.size>0)for(const[e,n]of o)n.reconcileObservedMutation(e,t);const d=n.takeRecords();if(d.length>0){for(let e=0;e<d.length;e++){const n=d[e],r=n.addedNodes,i=n.target;for(let e=0;e<r.length;e++){const n=r[e],s=n.parentNode;null==s||"BR"!==n.nodeName||rt$2(n,i,t)||s.removeChild(n);}}n.takeRecords();}null!==s&&(u&&cs(s),i$1&&Fs(t)&&s.insertRawText(f));}));}finally{tt$2=!1;}}function ct$1(t){const e=t._observer;if(null!==e){lt$2(t,e.takeRecords(),e);}}function at$1(t){!function(t){0===et$2&&Rs(t).addEventListener("textInput",nt$2,!0);}(t),t._observer=new MutationObserver(((e,n)=>{lt$2(t,e,n);}));}function ut$1(t){return t}class ft$2{constructor(t,e){this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||ut$1).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0);}}function dt$2(t,e){return new ft$2(t,e)}function ht$2(t,e,n){const r=gt$2(t,n,"direct"),i=gt$2(e,n,"direct");return n.isEqual(r,i)?null:[r,i]}function gt$2(t,e,n="latest"){const r=("latest"===n?t.getLatest():t).__state;return r?r.getValue(e):e.defaultValue}function _t$2(t,e,n){let r;if(Vr(),"function"==typeof n){const i=t.getLatest(),s=gt$2(i,e);if(r=n(s),e.isEqual(s,r))return i}else r=n;const i=t.getWritable();return yt$2(i).updateFromKnown(e,r),i}class pt$2{constructor(t,e=new Map,n=void 0,r=new Map,i=void 0){this.node=t,this.sharedConfigMap=e,this.unknownState=n,this.knownState=r;const s=void 0!==i?i:function(t,e,n){let r=n.size;if(e)for(const i in e){const e=t.get(i);e&&n.has(e)||r++;}return r}(e,n,r);this.size=s;}getValue(t){const e=this.knownState.get(t);if(void 0!==e)return e;this.sharedConfigMap.set(t.key,t);let n=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const e=this.unknownState[t.key];void 0!==e&&(n=t.parse(e)),this.updateFromKnown(t,n);}return n}getInternalState(){return [this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState};for(const[e,n]of this.knownState)e.isEqual(n,e.defaultValue)?delete t[e.key]:t[e.key]=e.unparse(n);return mt$2(t)?{[X$3]:t}:{}}getWritable(t){if(this.node===t)return this;const e=new Map(this.knownState),n=mt$2(r=this.unknownState)&&{...r};var r;if(n)for(const t of e.keys())delete n[t.key];return new pt$2(t,this.sharedConfigMap,mt$2(n),e,this.size)}updateFromKnown(t,e){const n=t.key;this.sharedConfigMap.set(n,t);const{knownState:r,unknownState:i}=this;r.has(t)||i&&n in i||this.size++,r.set(t,e);}updateFromUnknown(t,e){const n=this.sharedConfigMap.get(t);n?this.updateFromKnown(n,n.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e);}updateFromJSON(t){const{knownState:e}=this;for(const t of e.keys())e.set(t,t.defaultValue);if(this.size=e.size,this.unknownState={},t)for(const[e,n]of Object.entries(t))this.updateFromUnknown(e,n);this.unknownState=mt$2(this.unknownState);}}function mt$2(t){if(t)for(const e in t)return t}function yt$2(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new pt$2(e);return e.__state=n,n}function xt$2(t,e){const n=t.__mode,r=t.__format,i=t.__style,s=e.__mode,o=e.__format,l=e.__style,c=t.__state,a=e.__state;return (null===n||n===s)&&(null===r||r===o)&&(null===i||i===l)&&(null===t.__state||c===a||function(t,e){if(t===e)return !0;if(t&&e&&t.size!==e.size)return !1;const n=new Set,r=(t,e)=>{for(const[r,i]of t.knownState){if(n.has(r.key))continue;n.add(r.key);const t=e?e.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return !0}return !1},i=(t,e)=>{const{unknownState:r}=t,i=e?e.unknownState:void 0;if(r)for(const[t,e]of Object.entries(r))if(!n.has(t)&&(n.add(t),e!==(i?i[t]:void 0)))return !0;return !1};return !(t&&r(t,e)||e&&r(e,t)||t&&i(t,e)||e&&i(e,t))}(c,a))}function St$2(t,e){const n=t.mergeWithSibling(e),r=Hr()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function vt$2(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&Xn(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(xt$2(e,r)){r=St$2(e,r);break}break}e.remove();}for(;null!==(n=r.getNextSibling())&&Xn(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(xt$2(r,n)){r=St$2(r,n);break}break}n.remove();}}else r.remove();}function Ct$2(t){return kt$1(t.anchor),kt$1(t.focus),t}function kt$1(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),Xn(r)){t.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!di(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element",!0);}}let bt$1,Tt$2,wt$2,Nt$2,Et$2,Pt$2,Ft$1,Lt$1,At$2,Ot$2,Mt$1="",It$1="",Dt$1=null,zt="",Bt$1="",Wt=!1,Kt=!1,Rt$1=null;function Jt(t,e){const n=Ft$1.get(t);if(null!==e){const n=se(t);n.parentNode===e&&e.removeChild(n);}if(Lt$1.has(t)||Tt$2._keyToDOMMap.delete(t),di(n)){const t=te(n,Ft$1);jt(t,0,t.length-1,null);}void 0!==n&&ws(Ot$2,wt$2,Nt$2,n,"destroyed");}function jt(t,e,n,r){let i=e;for(;i<=n;++i){const e=t[i];void 0!==e&&Jt(e,r);}}function $t(t,e){t.setProperty("text-align",e);}const Vt="40px";function Ut(t,e){const n=bt$1.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n);}const r=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||Vt;t.style.setProperty("padding-inline-start",0===e?"":`calc(${e} * ${r})`);}function qt(t,e){const n=t.style;0===e?$t(n,""):e===A$4?$t(n,"left"):e===O$6?$t(n,"center"):e===M$5?$t(n,"right"):e===I$5?$t(n,"justify"):e===D$6?$t(n,"start"):e===z$4&&$t(n,"end");}function Ht(e,n){const r=Lt$1.get(e);void 0===r&&t$2(60);const i=r.createDOM(bt$1,Tt$2);if(function(t,e,n){const r=n._keyToDOMMap;((function(t,e,n){const r=`__lexicalKey_${e._key}`;t[r]=n;}))(e,n,t),r.set(t,e);}(e,i,Tt$2),Xn(r)?i.setAttribute("data-lexical-text","true"):_i(r)&&i.setAttribute("data-lexical-decorator","true"),di(r)){const t=r.__indent,e=r.__size;if(0!==t&&Ut(i,t),0!==e){const t=e-1;!function(t,e,n,r){const i=It$1;It$1="",Gt(t,n,0,e,n.getDOMSlot(r)),Yt(n,r),It$1=i;}(te(r,Lt$1),t,r,i);}const n=r.__format;0!==n&&qt(i,n),r.isInline()||Xt(null,r,i),As(r)&&(Mt$1+=W$3,Bt$1+=W$3);}else {const t=r.getTextContent();if(_i(r)){const t=r.decorate(Tt$2,bt$1);null!==t&&ne(e,t),i.contentEditable="false";}else Xn(r)&&(r.isDirectionless()||(It$1+=t));Mt$1+=t,Bt$1+=t;}return null!==n&&n.insertChild(i),ws(Ot$2,wt$2,Nt$2,r,"created"),i}function Gt(t,e,n,r,i){const s=Mt$1;Mt$1="";let o=n;for(;o<=r;++o){Ht(t[o],i);const e=Lt$1.get(t[o]);null!==e&&Xn(e)&&(null===Dt$1&&(Dt$1=e.getFormat()),""===zt&&(zt=e.getStyle()));}As(e)&&(Mt$1+=W$3);i.element.__lexicalTextContent=Mt$1,Mt$1=s+Mt$1;}function Qt(t,e){if(t){const n=t.__last;if(n){const t=e.get(n);if(t)return On(t)?"line-break":_i(t)&&t.isInline()?"decorator":null}return "empty"}return null}function Xt(t,e,n){const r=Qt(t,Ft$1),i=Qt(e,Lt$1);r!==i&&e.getDOMSlot(n).setManagedLineBreak(i);}function Yt(t,e){const n=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(n!==It$1||r!==Rt$1){const n=""===It$1,i=n?Rt$1:function(t){if(j$3.test(t))return "rtl";if($$3.test(t))return "ltr";return null}(It$1);if(i!==r){const s=e.classList,o=bt$1.theme;let l=null!==r?o[r]:void 0,c=null!==i?o[i]:void 0;if(void 0!==l){if("string"==typeof l){const t=d$5(l);l=o[r]=t;}s.remove(...l);}if(null===i||n&&"ltr"===i)e.removeAttribute("dir");else {if(void 0!==c){if("string"==typeof c){const t=d$5(c);c=o[i]=t;}void 0!==c&&s.add(...c);}e.dir=i;}if(!Kt){t.getWritable().__dir=i;}}Rt$1=i,e.__lexicalDirTextContent=It$1,e.__lexicalDir=i;}}function Zt(e,n,r){const i=It$1;var s;It$1="",Dt$1=null,zt="",function(e,n,r){const i=Mt$1,s=e.__size,o=n.__size;Mt$1="";const l=r.element;if(1===s&&1===o){const t=e.__first,r=n.__first;if(t===r)ee(t,l);else {const e=se(t),n=Ht(r,null);try{l.replaceChild(n,e);}catch(i){if("object"==typeof i&&null!=i){const s=`${i.toString()} Parent: ${l.tagName}, new child: {tag: ${n.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${t}}.`;throw new Error(s)}throw i}Jt(t,null);}const i=Lt$1.get(r);Xn(i)&&(null===Dt$1&&(Dt$1=i.getFormat()),""===zt&&(zt=i.getStyle()));}else {const i=te(e,Ft$1),c=te(n,Lt$1);if(i.length!==s&&t$2(227),c.length!==o&&t$2(228),0===s)0!==o&&Gt(c,n,0,o-1,r);else if(0===o){if(0!==s){const t=null==r.after&&null==r.before&&null==r.element.__lexicalLineBreak;jt(i,0,s-1,t?null:l),t&&(l.textContent="");}}else !function(t,e,n,r,i,s){const o=r-1,l=i-1;let c,a,u=s.getFirstChild(),f=0,d=0;for(;f<=o&&d<=l;){const t=e[f],r=n[d];if(t===r)u=re(ee(r,s.element)),f++,d++;else {void 0===c&&(c=new Set(e)),void 0===a&&(a=new Set(n));const i=a.has(t),o=c.has(r);if(i)if(o){const t=Os(Tt$2,r);t===u?u=re(ee(r,s.element)):(s.withBefore(u).insertChild(t),ee(r,s.element)),f++,d++;}else Ht(r,s.withBefore(u)),d++;else u=re(se(t)),Jt(t,s.element),f++;}const i=Lt$1.get(r);null!==i&&Xn(i)&&(null===Dt$1&&(Dt$1=i.getFormat()),""===zt&&(zt=i.getStyle()));}const h=f>o,g=d>l;if(h&&!g){const e=n[l+1],r=void 0===e?null:Tt$2.getElementByKey(e);Gt(n,t,d,l,s.withBefore(r));}else g&&!h&&jt(e,f,o,s.element);}(n,i,c,s,o,r);}As(n)&&(Mt$1+=W$3);l.__lexicalTextContent=Mt$1,Mt$1=i+Mt$1;}(e,n,n.getDOMSlot(r)),Yt(n,r),s=n,null==Dt$1||Dt$1===s.__textFormat||Kt||s.setTextFormat(Dt$1),function(t){""===zt||zt===t.__textStyle||Kt||t.setTextStyle(zt);}(n),It$1=i;}function te(e,n){const r=[];let i=e.__first;for(;null!==i;){const e=n.get(i);void 0===e&&t$2(101),r.push(i),i=e.__next;}return r}function ee(e,n){const r=Ft$1.get(e);let i=Lt$1.get(e);void 0!==r&&void 0!==i||t$2(61);const s=Wt||Pt$2.has(e)||Et$2.has(e),o=Os(Tt$2,e);if(r===i&&!s){if(di(r)){const t=o.__lexicalTextContent;void 0!==t&&(Mt$1+=t,Bt$1+=t);const e=o.__lexicalDirTextContent;void 0!==e&&(It$1+=e);}else {const t=r.getTextContent();Xn(r)&&!r.isDirectionless()&&(It$1+=t),Bt$1+=t,Mt$1+=t;}return o}if(r!==i&&s&&ws(Ot$2,wt$2,Nt$2,i,"updated"),i.updateDOM(r,o,bt$1)){const r=Ht(e,null);return null===n&&t$2(62),n.replaceChild(r,o),Jt(e,null),r}if(di(r)&&di(i)){const t=i.__indent;t!==r.__indent&&Ut(o,t);const e=i.__format;e!==r.__format&&qt(o,e),s&&(Zt(r,i,o),mi(i)||i.isInline()||Xt(r,i,o)),As(i)&&(Mt$1+=W$3,Bt$1+=W$3);}else {const t=i.getTextContent();if(_i(i)){const t=i.decorate(Tt$2,bt$1);null!==t&&ne(e,t);}else Xn(i)&&!i.isDirectionless()&&(It$1+=t);Mt$1+=t,Bt$1+=t;}if(!Kt&&mi(i)&&i.__cachedText!==Bt$1){const t=i.getWritable();t.__cachedText=Bt$1,i=t;}return o}function ne(t,e){let n=Tt$2._pendingDecorators;const r=Tt$2._decorators;if(null===n){if(r[t]===e)return;n=is(Tt$2);}n[t]=e;}function re(t){let e=t.nextSibling;return null!==e&&e===Tt$2._blockCursorElement&&(e=e.nextSibling),e}function ie(t,e,n,r,i,s){Mt$1="",Bt$1="",It$1="",Wt=r===x$8,Rt$1=null,Tt$2=n,bt$1=n._config,wt$2=n._nodes,Nt$2=Tt$2._listeners.mutation,Et$2=i,Pt$2=s,Ft$1=t._nodeMap,Lt$1=e._nodeMap,Kt=e._readOnly,At$2=new Map(n._keyToDOMMap);const o=new Map;return Ot$2=o,ee("root",null),Tt$2=void 0,wt$2=void 0,Et$2=void 0,Pt$2=void 0,Ft$1=void 0,Lt$1=void 0,bt$1=void 0,At$2=void 0,Ot$2=void 0,o}function se(e){const n=At$2.get(e);return void 0===n&&t$2(75,e),n}function oe(t){return {}}const le={},ce={},ae={},ue={},fe={},de={},he={},ge={},_e={},pe={},me={},ye={},xe={},Se={},ve={},Ce={},ke={},be={},Te={},we={},Ne={},Ee={},Pe={},Fe={},Le={},Ae={},Oe={},Me={},Ie={},De={},ze={},Be={},We={},Ke={},Re={},Je={},je={},$e={},Ve={},Ue={},qe={},He={},Ge={},Qe={},Xe={},Ye=Object.freeze({}),Ze=30,tn=[["keydown",function(t,e){if(en=t.timeStamp,nn=t.key,e.isComposing())return;const{key:n,shiftKey:s,ctrlKey:o,metaKey:l,altKey:c}=t;if(Ls(e,ve,t))return;if(null==n)return;if(fn&&vs(nn))return ci(e,(()=>{vn(e,dn);})),fn=!1,void(dn="");if(function(t,e,n,r){return ys(t)&&!e&&!r&&!n}(n,o,c,l))Ls(e,Ce,t);else if(function(t,e,n,r,i){return ys(t)&&!r&&!n&&(e||i)}(n,o,s,c,l))Ls(e,ke,t);else if(function(t,e,n,r){return ms(t)&&!e&&!r&&!n}(n,o,c,l))Ls(e,be,t);else if(function(t,e,n,r,i){return ms(t)&&!r&&!n&&(e||i)}(n,o,s,c,l))Ls(e,Te,t);else if(function(t,e,n){return function(t){return "ArrowUp"===t}(t)&&!e&&!n}(n,o,l))Ls(e,we,t);else if(function(t,e,n){return function(t){return "ArrowDown"===t}(t)&&!e&&!n}(n,o,l))Ls(e,Ne,t);else if(function(t,e){return Ss(t)&&e}(n,s))an=!0,Ls(e,Ee,t);else if(function(t){return " "===t}(n))Ls(e,Pe,t);else if(function(t,e){return r$1&&e&&"o"===t.toLowerCase()}(n,o))t.preventDefault(),an=!0,Ls(e,fe,!0);else if(function(t,e){return Ss(t)&&!e}(n,s))an=!1,Ls(e,Ee,t);else if(function(t,e,n,i){if(r$1)return !e&&!n&&(vs(t)||"h"===t.toLowerCase()&&i);if(i||e||n)return !1;return vs(t)}(n,c,l,o))vs(n)?Ls(e,Fe,t):(t.preventDefault(),Ls(e,ue,!0));else if(function(t){return "Escape"===t}(n))Ls(e,Le,t);else if(function(t,e,n,i,s){if(r$1)return !(n||i||s)&&(Cs(t)||"d"===t.toLowerCase()&&e);if(e||i||s)return !1;return Cs(t)}(n,o,s,c,l))Cs(n)?Ls(e,Ae,t):(t.preventDefault(),Ls(e,ue,!1));else if(function(t,e,n){return vs(t)&&(r$1?e:n)}(n,c,o))t.preventDefault(),Ls(e,pe,!0);else if(function(t,e,n){return Cs(t)&&(r$1?e:n)}(n,c,o))t.preventDefault(),Ls(e,pe,!1);else if(function(t,e){return r$1&&e&&vs(t)}(n,l))t.preventDefault(),Ls(e,me,!0);else if(function(t,e){return r$1&&e&&Cs(t)}(n,l))t.preventDefault(),Ls(e,me,!1);else if(function(t,e,n,r){return "b"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"bold");else if(function(t,e,n,r){return "u"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"underline");else if(function(t,e,n,r){return "i"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"italic");else if(function(t,e,n,r){return "Tab"===t&&!e&&!n&&!r}(n,c,o,l))Ls(e,Oe,t);else if(function(t,e,n,r){return "z"===t.toLowerCase()&&!e&&xs(n,r)}(n,s,l,o))t.preventDefault(),Ls(e,xe,void 0);else if(function(t,e,n,i){if(r$1)return "z"===t.toLowerCase()&&n&&e;return "y"===t.toLowerCase()&&i||"z"===t.toLowerCase()&&i&&e}(n,s,l,o))t.preventDefault(),Ls(e,Se,void 0);else {const c=e._editorState._selection;null===c||lr(c)?!i$1&&ks(n,l,o)&&(t.preventDefault(),Ls(e,$e,t)):!function(t,e,n,i){if(e)return !1;if("c"===t.toLowerCase())return r$1?n:i;return !1}(n,s,l,o)?!function(t,e,n,i){if(e)return !1;if("x"===t.toLowerCase())return r$1?n:i;return !1}(n,s,l,o)?ks(n,l,o)&&(t.preventDefault(),Ls(e,$e,t)):(t.preventDefault(),Ls(e,je,t)):(t.preventDefault(),Ls(e,Je,t));}(function(t,e,n,r){return t||e||n||r})(o,s,c,l)&&Ls(e,Xe,t);}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;no(n)&&"touch"!==r&&0===t.button&&ci(e,(()=>{_i(rs(n))||(cn=!0);}));}],["compositionstart",function(t,e){ci(e,(()=>{const n=Tr();if(lr(n)&&!e.isComposing()){const r=n.anchor,i=n.anchor.getNode();Yi(r.key),(t.timeStamp<en+Ze||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||Xn(i)&&i.getStyle()!==n.style)&&Ls(e,he,K$3);}}));}],["compositionend",function(t,e){i$1?un=!0:l$4||!o$4&&!f$5?ci(e,(()=>{vn(e,t.data);})):(fn=!0,dn=t.data);}],["input",function(t,e){t.stopPropagation(),ci(e,(()=>{const n=Tr(),r=t.data,c=Sn(t);if(null!=r&&lr(n)&&_n(n,c,r,t.timeStamp,!1)){un&&(vn(e,r),un=!1);const c=n.anchor.getNode(),a=Xs(Rs(e));if(null===a)return;const u=n.isBackward(),d=u?n.anchor.offset:n.focus.offset,h=u?n.focus.offset:n.anchor.offset;s$1&&!n.isCollapsed()&&Xn(c)&&null!==a.anchorNode&&c.getTextContent().slice(0,d)+r+c.getTextContent().slice(d+h)===gs(a.anchorNode)||Ls(e,he,r);const g=r.length;i$1&&g>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=g),o$4||l$4||f$5||!e.isComposing()||(en=0,Yi(null));}else {_s(!1,e,null!==r?r:void 0),un&&(vn(e,r||void 0),un=!1);}!function(){Vr();const t=Hr();ct$1(t);}();}),{event:t}),sn=null;}],["click",function(t,e){ci(e,(()=>{const n=Tr(),r=Xs(Rs(e)),i=wr();if(r)if(lr(n)){const e=n.anchor,s=e.getNode();if("element"===e.type&&0===e.offset&&n.isCollapsed()&&!mi(s)&&1===os().getChildrenSize()&&s.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===t.detail&&!n.isCollapsed()){if(s!==n.focus.getNode()){const t=function(t,e){let n=t;for(;n!==os()&&null!=n;){if(e(n))return n;n=n.getParent();}return null}(s,(t=>di(t)&&!t.isInline()));di(t)&&t.select(0);}}}else if("touch"===t.pointerType){const n=r.anchorNode;if(eo(n)||$i(n)){cs(br(i,r,e,t));}}Ls(e,ae,t);}));}],["cut",Ye],["copy",Ye],["dragstart",Ye],["dragover",Ye],["dragend",Ye],["paste",Ye],["focus",Ye],["blur",Ye],["drop",Ye]];s$1&&tn.push(["beforeinput",(e,n)=>function(e,n){const r=e.inputType,s=Sn(e);if("deleteCompositionText"===r||i$1&&Fs(n))return;if("insertCompositionText"===r)return;ci(n,(()=>{const i=Tr();if("deleteContentBackward"===r){if(null===i){const t=wr();if(!lr(t))return;cs(t.clone());}if(lr(i)){const r=i.anchor.key===i.focus.key;if(o=e.timeStamp,"MediaLast"===nn&&o<en+Ze&&n.isComposing()&&r){if(Yi(null),en=0,setTimeout((()=>{ci(n,(()=>{Yi(null);}));}),Ze),lr(i)){const e=i.anchor.getNode();e.markDirty(),Xn(e)||t$2(142),xn(i,e);}}else {Yi(null),e.preventDefault();const t=i.anchor.getNode(),s=t.getTextContent(),o=t.canInsertTextAfter(),l=0===i.anchor.offset&&i.focus.offset===s.length;let c=u$4&&r&&!l&&o;if(c&&i.isCollapsed()&&(c=!_i(Ps(i.anchor,!0))),!c){Ls(n,ue,!0);const t=Tr();u$4&&lr(t)&&t.isCollapsed()&&(hn=t,setTimeout((()=>hn=null)));}}return}}var o;if(!lr(i))return;const c=e.data;null!==sn&&_s(!1,n,sn),i.dirty&&null===sn||!i.isCollapsed()||mi(i.anchor.getNode())||null===s||i.applyDOMRange(s),sn=null;const a=i.anchor,f=i.focus,d=a.getNode(),h=f.getNode();if("insertText"!==r&&"insertTranspose"!==r)switch(e.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ls(n,he,e);break;case"insertFromComposition":Yi(null),Ls(n,he,e);break;case"insertLineBreak":Yi(null),Ls(n,fe,!1);break;case"insertParagraph":Yi(null),an&&!l$4?(an=!1,Ls(n,fe,!1)):Ls(n,de,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ls(n,ge,e);break;case"deleteByComposition":(function(t,e){return t!==e||di(t)||di(e)||!t.isToken()||!e.isToken()})(d,h)&&Ls(n,_e,e);break;case"deleteByDrag":case"deleteByCut":Ls(n,_e,e);break;case"deleteContent":Ls(n,ue,!1);break;case"deleteWordBackward":Ls(n,pe,!0);break;case"deleteWordForward":Ls(n,pe,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ls(n,me,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ls(n,me,!1);break;case"formatStrikeThrough":Ls(n,ye,"strikethrough");break;case"formatBold":Ls(n,ye,"bold");break;case"formatItalic":Ls(n,ye,"italic");break;case"formatUnderline":Ls(n,ye,"underline");break;case"historyUndo":Ls(n,xe,void 0);break;case"historyRedo":Ls(n,Se,void 0);}else {if("\n"===c)e.preventDefault(),Ls(n,fe,!1);else if(c===W$3)e.preventDefault(),Ls(n,de,void 0);else if(null==c&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),i.insertRawText(t);}else null!=c&&_n(i,s,c,e.timeStamp,!0)?(e.preventDefault(),Ls(n,he,c)):sn=c;rn=e.timeStamp;}}));}(e,n)]);let en=0,nn=null,rn=0,sn=null;const on=new WeakMap;let ln=!1,cn=!1,an=!1,un=!1,fn=!1,dn="",hn=null,gn=[0,"",0,"root",0];function _n(t,e,n,r,i){const o=t.anchor,l=t.focus,c=o.getNode(),a=Hr(),u=Xs(Rs(a)),f=null!==u?u.anchorNode:null,d=o.key,h=a.getElementByKey(d),g=n.length;return d!==l.key||!Xn(c)||(!i&&(!s$1||rn<r+50)||c.isDirty()&&g<2||fs(n))&&o.offset!==l.offset&&!c.isComposing()||ji(c)||c.isDirty()&&g>1||(i||!s$1)&&null!==h&&!c.isComposing()&&f!==Ui(h)||null!==u&&null!==e&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||c.getFormat()!==t.format||c.getStyle()!==t.style||function(t,e){if(e.isSegmented())return !0;if(!t.isCollapsed())return !1;const n=t.anchor.offset,r=e.getParentOrThrow(),i=e.isToken();return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||i||function(t){const e=t.getPreviousSibling();return (Xn(e)||di(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||i)}(t,c)}function pn(t,e){return $i(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length}function mn(e,n,r){const{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:l}=e;ln&&(ln=!1,pn(i,s)&&pn(o,l)&&!hn)||ci(n,(()=>{if(!r)return void cs(null);if(!Wi(n,i,o))return;let c=Tr();if(hn&&lr(c)&&c.isCollapsed()){const t=c.anchor,e=hn.anchor;(t.key===e.key&&t.offset===e.offset+1||1===t.offset&&e.getNode().is(t.getNode().getPreviousSibling()))&&(c=hn.clone(),cs(c));}if(hn=null,lr(c)){const r=c.anchor,i=r.getNode();if(c.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(c.dirty=!0);const s=Rs(n).event,o=s?s.timeStamp:performance.now(),[l,a,u,f,d]=gn,h=os(),g=!1===n.isComposing()&&""===h.getTextContent();if(o<d+200&&r.offset===u&&r.key===f)yn(c,l,a);else if("text"===r.type)Xn(i)||t$2(141),xn(c,i);else if("element"===r.type&&!g){di(i)||t$2(259);const e=r.getNode();e.isEmpty()?function(t,e){const n=e.getTextFormat(),r=e.getTextStyle();yn(t,n,r);}(c,e):yn(c,0,"");}}else {const t=r.key,e=c.focus.key,n=c.getNodes(),i=n.length,o=c.isBackward(),a=o?l:s,u=o?s:l,f=o?e:t,d=o?t:e;let h=L$5,g=!1;for(let t=0;t<i;t++){const e=n[t],r=e.getTextContentSize();if(Xn(e)&&0!==r&&!(0===t&&e.__key===f&&a===r||t===i-1&&e.__key===d&&0===u)&&(g=!0,h&=e.getFormat(),0===h))break}c.format=g?h:0;}}Ls(n,le,void 0);}));}function yn(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0);}function xn(t,e){yn(t,e.getFormat(),e.getStyle());}function Sn(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return 0===e.length?null:e[0]}function vn(t,e){const n=t._compositionKey;if(Yi(null),null!==n&&null!=e){if(""===e){const e=ts(n),r=Ui(t.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&Xn(e)&&ps(e,r.nodeValue,null,null,!0))}if("\n"===e[e.length-1]){const e=Tr();if(lr(e)){const n=e.focus;return e.anchor.set(n.key,n.offset,n.type),void Ls(t,Ee,null)}}}_s(!0,t,e);}function Cn(t){let e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e}const kn=new Map;function bn(t){const e=Ys(t.target);if(null===e)return;const n=Ri(e.anchorNode);if(null===n)return;cn&&(cn=!1,ci(n,(()=>{const r=wr(),i=e.anchorNode;if(eo(i)||$i(i)){cs(br(r,e,n,t));}})));const r=ds(n),i=r[r.length-1],s=i._key,o=kn.get(s),l=o||i;l!==n&&mn(e,l,!1),mn(e,n,!0),n!==i?kn.set(s,n):o&&kn.delete(s);}function Tn(t){t._lexicalHandled=!0;}function wn(t){return !0===t._lexicalHandled}function Nn(e){const n=e.ownerDocument,r=on.get(n);void 0===r&&t$2(162);const i=r-1;i>=0||t$2(164),on.set(n,i),0===i&&n.removeEventListener("selectionchange",bn);const s=Ji(e);Ki(s)?(!function(t){if(null!==t._parentEditor){const e=ds(t),n=e[e.length-1]._key;kn.get(n)===t&&kn.delete(n);}else kn.delete(t._key);}(s),e.__lexicalEditor=null):s&&t$2(198);const o=Cn(e);for(let t=0;t<o.length;t++)o[t]();e.__lexicalEventHandles=[];}function En(t,e,n){Vr();const r=t.__key,i=t.getParent();if(null===i)return;const s=function(t){const e=Tr();if(!lr(e)||!di(t))return e;const{anchor:n,focus:r}=e,i=n.getNode(),s=r.getNode();Ws(i,t)&&n.set(t.__key,0,"element");Ws(s,t)&&r.set(t.__key,0,"element");return e}(t);let o=!1;if(lr(s)&&e){const e=s.anchor,n=s.focus;e.key===r&&(Pr(e,t,i,t.getPreviousSibling(),t.getNextSibling()),o=!0),n.key===r&&(Pr(n,t,i,t.getPreviousSibling(),t.getNextSibling()),o=!0);}else ar(s)&&e&&t.isSelected()&&t.selectPrevious();if(lr(s)&&e&&!o){const e=t.getIndexWithinParent();Qi(t),Nr(s,i,e,-1);}else Qi(t);n||$s(i)||i.canBeEmpty()||!i.isEmpty()||En(i,e),e&&mi(i)&&i.isEmpty()&&i.selectEnd();}class Pn{static getType(){t$2(64,this.name);}static clone(e){t$2(65,this.name);}afterCloneFrom(t){this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state;}constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),Gi(this,t);}getType(){return this.__type}isInline(){t$2(137,this.constructor.name);}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return !0;const e=ts(t);if(null===e)break;t=e.__parent;}return !1}isSelected(t){const e=t||Tr();if(null==e)return !1;const n=e.getNodes().some((t=>t.__key===this.__key));if(Xn(this))return n;if(lr(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return !1;const t=this.getParent();if(_i(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor;if(t.is(n.getNode())&&n.offset===t.getChildrenSize()&&this.is(t.getLastChild()))return !1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return -1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling();}return -1}getParent(){const t=this.getLatest().__parent;return null===t?null:ts(t)}getParentOrThrow(){const e=this.getParent();return null===e&&t$2(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const n=e.getParent();if($s(n))return di(e)||e===this&&_i(e)||t$2(194),e;e=n;}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&t$2(67,this.__key),e}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:ts(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:ts(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=di(this)?this:this.getParent(),n=di(t)?t:t.getParent(),r=e&&n?Go(e,n):null;return r?r.commonAncestor:null}is(t){return null!=t&&this.__key===t.__key}isBefore(e){const n=Go(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===Uo(n):("same"!==n.type&&"ancestor"!==n.type&&t$2(279),!1)))}isParentOf(t){const e=Go(this,t);return null!==e&&"ancestor"===e.type}getNodesBetween(e){const n=this.isBefore(e),r=[],i=new Set;let s=this;for(;null!==s;){const o=s.__key;if(i.has(o)||(i.add(o),r.push(s)),s===e)break;const l=di(s)?n?s.getFirstChild():s.getLastChild():null;if(null!==l){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(null!==c){s=c;continue}const a=s.getParentOrThrow();if(i.has(a.__key)||r.push(a),a===e)break;let u=null,f=a;do{if(null===f&&t$2(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),null===f)break;null!==u||i.has(f.__key)||r.push(f);}while(null===u);s=u;}return n||r.reverse(),r}isDirty(){const t=Hr()._dirtyLeaves;return null!==t&&t.has(this.__key)}getLatest(){const e=ts(this.__key);return null===e&&t$2(113),e}getWritable(){Vr();const t=qr(),e=Hr(),n=t._nodeMap,r=this.__key,i=this.getLatest(),s=e._cloneNotNeeded,o=Tr();if(null!==o&&o.setCachedNodes(null),s.has(r))return Xi(i),i;const l=ho(i);return s.add(r),Xi(l),n.set(r,l),l}getTextContent(){return ""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t$2(70);}updateDOM(e,n,r){t$2(71);}exportDOM(t){return {element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return {type:this.__type,version:1,...t}}static importJSON(e){t$2(18,this.name);}updateFromJSON(t){return function(t,e){const n=t.getWritable();return (e||n.__state)&&yt$2(t).updateFromJSON(e),n}(this,t.$)}static transform(){return null}remove(t){En(this,!0,t);}replace(e,n){Vr();let r=Tr();null!==r&&(r=r.clone()),qs(this,e);const i=this.getLatest(),s=this.__key,o=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),a=c.__size;Qi(l);const u=i.getPreviousSibling(),f=i.getNextSibling(),d=i.__prev,h=i.__next,g=i.__parent;if(En(i,!1,!0),null===u)c.__first=o;else {u.getWritable().__next=o;}if(l.__prev=d,null===f)c.__last=o;else {f.getWritable().__prev=o;}if(l.__next=h,l.__parent=g,c.__size=a,n&&(di(this)&&di(l)||t$2(139),this.getChildren().forEach((t=>{l.append(t);}))),lr(r)){cs(r);const t=r.anchor,e=r.focus;t.key===s&&sr(t,l),e.key===s&&sr(e,l);}return Zi()===s&&Yi(o),l}insertAfter(t,e=!0){Vr(),qs(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.getParent(),s=Tr();let o=!1,l=!1;if(null!==i){const e=t.getIndexWithinParent();if(Qi(r),lr(s)){const t=i.__key,n=s.anchor,r=s.focus;o="element"===n.type&&n.key===t&&n.offset===e+1,l="element"===r.type&&r.key===t&&r.offset===e+1;}}const c=this.getNextSibling(),a=this.getParentOrThrow().getWritable(),u=r.__key,f=n.__next;if(null===c)a.__last=u;else {c.getWritable().__prev=u;}if(a.__size++,n.__next=u,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,e&&lr(s)){const t=this.getIndexWithinParent();Nr(s,a,t+1);const e=a.__key;o&&s.anchor.set(e,t+2,"element"),l&&s.focus.set(e,t+2,"element");}return t}insertBefore(t,e=!0){Vr(),qs(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.__key;Qi(r);const s=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),l=n.__prev,c=this.getIndexWithinParent();if(null===s)o.__first=i;else {s.getWritable().__next=i;}o.__size++,n.__prev=i,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const a=Tr();if(e&&lr(a)){Nr(a,this.getParentOrThrow(),c);}return t}isParentRequired(){return !1}createParentElementNode(){return Ti()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){Vr();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(di(n))return n.select();if(!Xn(n)){const t=n.getIndexWithinParent()+1;return r.select(t,t)}return n.select(t,e)}selectNext(t,e){Vr();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(di(n))return n.select(0,0);if(!Xn(n)){const t=n.getIndexWithinParent();return r.select(t,t)}return n.select(t,e)}markDirty(){this.getWritable();}reconcileObservedMutation(t,e){this.markDirty();}}class Fn extends Pn{static getType(){return "linebreak"}static clone(t){return new Fn(t.__key)}constructor(t){super(t);}getTextContent(){return "\n"}createDOM(){return document.createElement("br")}updateDOM(){return !1}isInline(){return !0}static importDOM(){return {br:t=>function(t){const e=t.parentElement;if(null!==e&&so(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Mn(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&Mn(n))return !0}}return !1}(t)||function(t){const e=t.parentElement;if(null!==e&&so(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Mn(n))return !1;const r=e.lastChild;if(r===t||r.previousSibling===t&&Mn(r))return !0}return !1}(t)?null:{conversion:Ln,priority:0}}}static importJSON(t){return An().updateFromJSON(t)}}function Ln(t){return {node:An()}}function An(){return Us(new Fn)}function On(t){return t instanceof Fn}function Mn(t){return $i(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function In(t,e){return 16&e?"code":e&F$4?"mark":32&e?"sub":64&e?"sup":null}function Dn(t,e){return 1&e?"strong":2&e?"em":"span"}function zn(t,e,n,r,i){const s=r.classList;let o=Ts(i,"base");void 0!==o&&s.add(...o),o=Ts(i,"underlineStrikethrough");let l=!1;const c=e&w$6&&e&T$3;void 0!==o&&(n&w$6&&n&T$3?(l=!0,c||s.add(...o)):c&&s.remove(...o));for(const t in V$3){const r=V$3[t];if(o=Ts(i,t),void 0!==o)if(n&r){if(l&&("underline"===t||"strikethrough"===t)){e&r&&s.remove(...o);continue}e&r&&(!c||"underline"!==t)&&"strikethrough"!==t||s.add(...o);}else e&r&&s.remove(...o);}}function Bn(t,e,n){const r=e.firstChild,s=n.isComposing(),o=t+(s?B$4:"");if(null==r)e.textContent=o;else {const t=r.nodeValue;if(t!==o)if(s||i$1){const[e,n,i]=function(t,e){const n=t.length,r=e.length;let i=0,s=0;for(;i<n&&i<r&&t[i]===e[i];)i++;for(;s+i<n&&s+i<r&&t[n-s-1]===e[r-s-1];)s++;return [i,n-i-s,e.slice(i,r-s)]}(t,o);0!==n&&r.deleteData(e,n),r.insertData(e,i);}else r.nodeValue=o;}}function Wn(t,e,n,r,i,s){Bn(i,t,e);const o=s.theme.text;void 0!==o&&zn(0,0,r,t,o);}function Kn(t,e){const n=document.createElement(e);return n.appendChild(t),n}class Rn extends Pn{static getType(){return "text"}static clone(t){return new Rn(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail;}constructor(t="",e){super(e),this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0;}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return Q$3[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Zi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return !!(1&this.getLatest().__detail)}isUnmergeable(){return !!(2&this.getLatest().__detail)}hasFormat(t){const e=V$3[t];return !!(this.getFormat()&e)}isSimpleText(){return "text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(t,e){return qi(this.getLatest().__format,t,e)}canHaveFormat(){return !0}isInline(){return !0}createDOM(t,e){const n=this.__format,r=In(0,n),i=Dn(0,n),s=null===r?i:r,o=document.createElement(s);let l=o;this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(i),o.appendChild(l));Wn(l,this,0,n,this.__text,t);const c=this.__style;return ""!==c&&(o.style.cssText=c),o}updateDOM(e,n,r){const i=this.__text,s=e.__format,o=this.__format,l=In(0,s),c=In(0,o),a=Dn(0,s),u=Dn(0,o);if((null===l?a:l)!==(null===c?u:c))return !0;if(l===c&&a!==u){const e=n.firstChild;null==e&&t$2(48);const s=document.createElement(u);return Wn(s,this,0,o,i,r),n.replaceChild(s,e),!1}let f=n;null!==c&&null!==l&&(f=n.firstChild,null==f&&t$2(49)),Bn(i,f,this);const d=r.theme.text;void 0!==d&&s!==o&&zn(0,s,o,f,d);const h=e.__style,g=this.__style;return h!==g&&(n.style.cssText=g),!1}static importDOM(){return {"#text":()=>({conversion:Un,priority:0}),b:()=>({conversion:jn,priority:0}),code:()=>({conversion:Gn,priority:0}),em:()=>({conversion:Gn,priority:0}),i:()=>({conversion:Gn,priority:0}),mark:()=>({conversion:Gn,priority:0}),s:()=>({conversion:Gn,priority:0}),span:()=>({conversion:Jn,priority:0}),strong:()=>({conversion:Gn,priority:0}),sub:()=>({conversion:Gn,priority:0}),sup:()=>({conversion:Gn,priority:0}),u:()=>({conversion:Gn,priority:0})}}static importJSON(t){return Qn().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return eo(n)||t$2(132),n.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(n=Kn(n,"b")),this.hasFormat("italic")&&(n=Kn(n,"i")),this.hasFormat("strikethrough")&&(n=Kn(n,"s")),this.hasFormat("underline")&&(n=Kn(n,"u")),{element:n}}exportJSON(){return {detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?V$3[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?U$5[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=qi(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=G$4[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){Vr();let n=t,r=e;const i=Tr(),s=this.getTextContent(),o=this.__key;if("string"==typeof s){const t=s.length;void 0===n&&(n=t),void 0===r&&(r=t);}else n=0,r=0;if(!lr(i))return Sr(o,n,o,r,"text","text");{const t=Zi();t!==i.anchor.key&&t!==i.focus.key||Yi(o),i.setTextNodeRange(this,n,this,r);}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const i=this.getWritable(),s=i.__text,o=n.length;let l=t;l<0&&(l=o+l,l<0&&(l=0));const c=Tr();if(r&&lr(c)){const e=t+o;c.setTextNodeRange(i,e,i,e);}const a=s.slice(0,l)+n+s.slice(l+e);return i.__text=a,i}canInsertTextBefore(){return !0}canInsertTextAfter(){return !0}splitText(...t){Vr();const e=this.getLatest(),n=e.getTextContent();if(""===n)return [];const r=e.__key,i=Zi(),s=n.length;t.sort(((t,e)=>t-e)),t.push(s);const o=[],l=t.length;for(let e=0,r=0;e<s&&r<=l;r++){const i=t[r];i>e&&(o.push(n.slice(e,i)),e=i);}const c=o.length;if(1===c)return [e];const a=o[0],u=e.getParent();let f;const d=e.getFormat(),h=e.getStyle(),g=e.__detail;let _=!1,p=null,m=null;const y=Tr();if(lr(y)){const[t,e]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===t.type&&t.key===r&&(p=t),"text"===e.type&&e.key===r&&(m=e);}e.isSegmented()?(f=Qn(a),f.__format=d,f.__style=h,f.__detail=g,_=!0):(f=e.getWritable(),f.__text=a);const x=[f];for(let t=1;t<c;t++){const e=Qn(o[t]);e.__format=d,e.__style=h,e.__detail=g;const n=e.__key;i===r&&Yi(n),x.push(e);}const S=p?p.offset:null,v=m?m.offset:null;let C=0;for(const t of x){if(!p&&!m)break;const e=C+t.getTextContentSize();if(null!==p&&null!==S&&S<=e&&S>=C&&(p.set(t.getKey(),S-C,"text"),S<e&&(p=null)),null!==m&&null!==v&&v<=e&&v>=C){m.set(t.getKey(),v-C,"text");break}C=e;}if(null!==u){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&Xi(e);null!==n&&Xi(n);}(this);const t=u.getWritable(),e=this.getIndexWithinParent();_?(t.splice(e,0,x),this.remove()):t.splice(e,1,x),lr(y)&&Nr(y,u,e,c-1);}return x}mergeWithSibling(e){const n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t$2(50);const r=this.__key,i=e.__key,s=this.__text,o=s.length;Zi()===i&&Yi(r);const l=Tr();if(lr(l)){const t=l.anchor,s=l.focus;null!==t&&t.key===i&&Fr(t,n,r,e,o),null!==s&&s.key===i&&Fr(s,n,r,e,o);}const c=e.__text,a=n?c+s:s+c;this.setTextContent(a);const u=this.getWritable();return e.remove(),u}isTextEntity(){return !1}}function Jn(t){return {forChild:Yn(t.style),node:null}}function jn(t){const e=t,n="normal"===e.style.fontWeight;return {forChild:Yn(e.style,n?void 0:"bold"),node:null}}const $n=new WeakMap;function Vn(t){if(!eo(t))return !1;if("PRE"===t.nodeName)return !0;const e=t.style.whiteSpace;return "string"==typeof e&&e.startsWith("pre")}function Un(e){const n=e;null===e.parentElement&&t$2(129);let r=n.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=$n.get(n))&&!Vn(n);)r.push(n),n=n.parentNode;const i=void 0===e?n:e;for(let t=0;t<r.length;t++)$n.set(r[t],i);return i}(n)){const t=r.split(/(\r?\n|\t)/),e=[],n=t.length;for(let r=0;r<n;r++){const n=t[r];"\n"===n||"\r\n"===n?e.push(An()):"\t"===n?e.push(tr()):""!==n&&e.push(Qn(n));}return {node:e}}if(r=r.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===r)return {node:null};if(" "===r[0]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!1));){const n=t.textContent||"";if(n.length>0){/[ \t\n]$/.test(n)&&(r=r.slice(1)),e=!1;break}}e&&(r=r.slice(1));}if(" "===r[r.length-1]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!0));){if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){e=!1;break}}e&&(r=r.slice(0,r.length-1));}return ""===r?{node:null}:{node:Qn(r)}}function qn(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t;}if(n=t,eo(n)){const t=n.style.display;if(""===t&&!io(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if($i(n))return n;if("BR"===n.nodeName)return null}}const Hn={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Gn(t){const e=Hn[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:Yn(t.style,e),node:null}}function Qn(t=""){return Us(new Rn(t))}function Xn(t){return t instanceof Rn}function Yn(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i="700"===n||"bold"===n,s=r.includes("line-through"),o="italic"===t.fontStyle,l=r.includes("underline"),c=t.verticalAlign;return t=>Xn(t)?(i&&!t.hasFormat("bold")&&t.toggleFormat("bold"),s&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),o&&!t.hasFormat("italic")&&t.toggleFormat("italic"),l&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==c||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==c||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class Zn extends Rn{static getType(){return "tab"}static clone(t){return new Zn(t.__key)}constructor(t){super("\t",t),this.__detail=2;}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),n=Ts(t.theme,"tab");if(void 0!==n){e.classList.add(...n);}return e}static importJSON(t){return tr().updateFromJSON(t)}setTextContent(e){return "\t"!==e&&""!==e&&t$2(126),super.setTextContent(e)}setDetail(e){return 2!==e&&t$2(127),this}setMode(e){return "normal"!==e&&t$2(128),this}canInsertTextBefore(){return !1}canInsertTextAfter(){return !1}}function tr(){return Us(new Zn)}function er(t){return t instanceof Zn}class nr{constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n;}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){if(this.key===t.key)return this.offset<t.offset;return Vo(sl(Qo(this,"next")),sl(Qo(t,"next")))<0}getNode(){const e=ts(this.key);return null===e&&t$2(20),e}set(t,e,n,r){const i=this._selection,s=this.key;r&&this.key===t&&this.offset===e&&this.type===n||(this.key=t,this.offset=e,this.type=n,$r()||(Zi()===s&&Yi(t),null!==i&&(i.setCachedNodes(null),i.dirty=!0)));}}function rr(t,e,n){return new nr(t,e,n)}function ir(t,e){let n=e.__key,r=t.offset,i="element";if(Xn(e)){i="text";const t=e.getTextContentSize();r>t&&(r=t);}else if(!di(e)){const t=e.getNextSibling();if(Xn(t))n=t.__key,r=0,i="text";else {const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1);}}t.set(n,r,i);}function sr(t,e){if(di(e)){const n=e.getLastDescendant();di(n)||Xn(n)?ir(t,n):ir(t,e);}else ir(t,e);}class or{constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1;}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t;}is(t){if(!ar(t))return !1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every((t=>n.has(t)))}isCollapsed(){return !1}isBackward(){return !1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null;}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null;}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null;}has(t){return this._nodes.has(t)}clone(){return new or(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),n=e.length,r=e[n-1];let i;if(Xn(r))i=r.select();else {const t=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(t,t);}i.insertNodes(t);for(let t=0;t<n;t++)e[t].remove();}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this._nodes,n=[];for(const t of e){const e=ts(t);null!==e&&n.push(e);}return $r()||(this._cachedNodes=n),n}getTextContent(){const t=this.getNodes();let e="";for(let n=0;n<t.length;n++)e+=t[n].getTextContent();return e}}function lr(t){return t instanceof cr}class cr{constructor(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1;}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t;}is(t){return !!lr(t)&&(this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=function(t){const e=[],[n,r]=t.getTextSlices();n&&e.push(n.caret.origin);const i=new Set,s=new Set;for(const n of t)if(Eo(n)){const{origin:t}=n;0===e.length?i.add(t):(s.add(t),e.push(t));}else {const{origin:t}=n;di(t)&&s.has(t)||e.push(t);}r&&e.push(r.caret.origin);if(No(t.focus)&&di(t.focus.origin)&&null===t.focus.getNodeAtCaret())for(let n=Do(t.focus.origin,"previous");Eo(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(e[e.length-1]);n=Bo(n))i.delete(n.origin),e.pop();for(;e.length>1;){const t=e[e.length-1];if(!di(t)||s.has(t)||t.isEmpty()||i.has(t))break;e.pop();}if(0===e.length&&t.isCollapsed()){const n=sl(t.anchor),r=sl(t.anchor.getFlipped()),i=t=>To(t)?t.origin:t.getNodeAtCaret(),s=i(n)||i(r)||(t.anchor.getNodeAtCaret()?n.origin:r.origin);e.push(s);}return e}(cl(tl(this),"next"));return $r()||(this._cachedNodes=e),e}setTextNodeRange(t,e,n,r){this.anchor.set(t.__key,e,"text"),this.focus.set(n.__key,r,"text");}getTextContent(){const t=this.getNodes();if(0===t.length)return "";const e=t[0],n=t[t.length-1],r=this.anchor,i=this.focus,s=r.isBefore(i),[o,l]=fr(this);let c="",a=!0;for(let u=0;u<t.length;u++){const f=t[u];if(di(f)&&!f.isInline())a||(c+="\n"),a=!f.isEmpty();else if(a=!1,Xn(f)){let t=f.getTextContent();f===e?f===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(t=o<l?t.slice(o,l):t.slice(l,o)):t=s?t.slice(o):t.slice(l):f===n&&(t=s?t.slice(0,l):t.slice(0,o)),c+=t;}else !_i(f)&&!On(f)||f===n&&this.isCollapsed()||(c+=f.getTextContent());}return c}applyDOMRange(t){const e=Hr(),n=e.getEditorState()._selection,r=yr(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;const[i,s]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),Ct$2(this);}clone(){const t=this.anchor,e=this.focus;return new cr(rr(t.key,t.offset,t.type),rr(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=qi(this.format,t,null),this.dirty=!0;}setStyle(t){this.style=t,this.dirty=!0;}hasFormat(t){const e=V$3[t];return !!(this.format&e)}insertRawText(t){const e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){const r=e[t];"\n"===r||"\r\n"===r?n.push(An()):"\t"===r?n.push(tr()):n.push(Qn(r));}this.insertNodes(n);}insertText(e){const n=this.anchor,r=this.focus,i=this.format,s=this.style;let o=n,l=r;!this.isCollapsed()&&r.isBefore(n)&&(o=r,l=n),"element"===o.type&&function(t,e,n,r){const i=t.getNode(),s=i.getChildAtIndex(t.offset),o=Qn(),l=mi(i)?Ti().append(o):o;o.setFormat(n),o.setStyle(r),null===s?i.append(l):s.insertBefore(l),t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text");}(o,l,i,s),"element"===l.type&&Xo(l,sl(Qo(l,"next")));const c=o.offset;let a=l.offset;const u=this.getNodes(),f=u.length;let d=u[0];Xn(d)||t$2(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let _=u[f-1];if(1===f&&"element"===l.type&&(a=h,l.set(o.key,a,"text")),this.isCollapsed()&&c===h&&(d.isSegmented()||d.isToken()||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Xn(t)&&t.canInsertTextBefore()&&!ji(t)||(t=Qn(),t.setFormat(i),t.setStyle(s),g.canInsertTextAfter()?d.insertAfter(t):g.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===c&&(d.isSegmented()||d.isToken()||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Xn(t)&&!ji(t)||(t=Qn(),t.setFormat(i),g.canInsertTextBefore()?d.insertBefore(t):g.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&c!==h){const t=Qn(d.getTextContent());t.setFormat(i),d.replace(t),d=t;}else if(!this.isCollapsed()&&""!==e){const t=_.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||di(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),mr(this.anchor,this.focus,null),void this.insertText(e)}if(1===f){if(d.isToken()){const t=Qn(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(c!==a||t===i&&n===s){if(er(d)){const t=Qn(e);return t.setFormat(i),t.setStyle(s),t.select(),void d.replace(t)}}else {if(""!==d.getTextContent()){const t=Qn(e);if(t.setFormat(i),t.setStyle(s),t.select(),0===c)d.insertBefore(t,!1);else {const[e]=d.splitText(c);e.insertAfter(t,!1);}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(i),d.setStyle(s);}const r=a-c;d=d.spliceText(c,r,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(d.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n));}else {const t=new Set([...d.getParentKeys(),..._.getParentKeys()]),n=di(d)?d:d.getParentOrThrow();let r=di(_)?_:_.getParentOrThrow(),i=_;if(!n.is(r)&&r.isInline())do{i=r,r=r.getParentOrThrow();}while(r.isInline());if("text"===l.type&&(0!==a||""===_.getTextContent())||"element"===l.type&&_.getIndexWithinParent()<a)if(Xn(_)&&!_.isToken()&&a!==_.getTextContentSize()){if(_.isSegmented()){const t=Qn(_.getTextContent());_.replace(t),_=t;}mi(l.getNode())||"text"!==l.type||(_=_.spliceText(0,a,"")),t.add(_.__key);}else {const t=_.getParentOrThrow();t.canBeEmpty()||1!==t.getChildrenSize()?_.remove():t.remove();}else t.add(_.__key);const s=r.getChildren(),o=new Set(u),g=n.is(r),p=n.isInline()&&null===d.getNextSibling()?n:d;for(let t=s.length-1;t>=0;t--){const e=s[t];if(e.is(d)||di(e)&&e.isParentOf(d))break;e.isAttached()&&(!o.has(e)||e.is(i)?g||p.insertAfter(e,!1):e.remove());}if(!g){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent();}}if(d.isToken())if(c===h)d.select();else {const t=Qn(e);t.select(),d.replace(t);}else d=d.spliceText(c,h-c,e,!0),""===d.getTextContent()?d.remove():d.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e<f;e++){const n=u[e],r=n.__key;t.has(r)||n.remove();}}}removeText(){const t=Tr()===this;Zo(this,il(tl(this))),t&&Tr()!==this&&cs(this);}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void Yi(null);const n=this.getNodes(),r=[];for(const t of n)Xn(t)&&r.push(t);const i=e=>{n.forEach((n=>{if(di(n)){const r=n.getFormatFlags(t,e);n.setTextFormat(r);}}));},s=r.length;if(0===s)return this.toggleFormat(t),Yi(null),void i(e);const o=this.anchor,l=this.focus,c=this.isBackward(),a=c?l:o,u=c?o:l;let f=0,d=r[0],h="element"===a.type?0:a.offset;if("text"===a.type&&h===d.getTextContentSize()&&(f=1,d=r[1],h=0),null==d)return;const g=d.getFormatFlags(t,e);i(g);const _=s-1;let p=r[_];const m="text"===u.type?u.offset:p.getTextContentSize();if(d.is(p)){if(h===m)return;if(ji(d)||0===h&&m===d.getTextContentSize())d.setFormat(g);else {const t=d.splitText(h,m),e=0===h?t[0]:t[1];e.setFormat(g),"text"===a.type&&a.set(e.__key,0,"text"),"text"===u.type&&u.set(e.__key,m-h,"text");}return void(this.format=g)}0===h||ji(d)||([,d]=d.splitText(h),h=0),d.setFormat(g);const y=p.getFormatFlags(t,g);m>0&&(m===p.getTextContentSize()||ji(p)||([p]=p.splitText(m)),p.setFormat(y));for(let e=f+1;e<_;e++){const n=r[e],i=n.getFormatFlags(t,y);n.setFormat(i);}"text"===a.type&&a.set(d.__key,h,"text"),"text"===u.type&&u.set(p.__key,m,"text"),this.format=g|y;}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const n=Tr();return lr(n)||t$2(134),n.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=lo(n,oo),i=e[e.length-1];if(di(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else {const t=Ir(this);r.splice(t,0,e),i.selectEnd();}return}if(!e.some((t=>(di(t)||_i(t))&&!t.isInline()))){di(r)||t$2(211,n.constructor.name,n.getType());const s=Ir(this);return r.splice(s,0,e),void i.selectEnd()}const s=function(t){const e=Ti();let n=null;for(let r=0;r<t.length;r++){const i=t[r],s=On(i);if(s||_i(i)&&i.isInline()||di(i)&&i.isInline()||Xn(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),e.append(n),s))continue;null!==n&&n.append(i);}else e.append(i),n=null;}return e}(e),o=s.getLastDescendant(),l=s.getChildren(),c=!di(r)||!r.isEmpty()?this.insertParagraph():null,a=l[l.length-1];let u=l[0];var f;di(f=u)&&oo(f)&&!f.isEmpty()&&di(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(di(r)||t$2(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=l[1]),u&&(null===r&&t$2(212,n.constructor.name,n.getType()),function(e,n,r){const i=n.getParentOrThrow().getLastChild();let s=n;const o=[n];for(;s!==i;)s.getNextSibling()||t$2(140),s=s.getNextSibling(),o.push(s);let l=e;for(const t of o)l=l.insertAfter(t);}(r,u));const d=lo(o,oo);c&&di(d)&&(c.canMergeWhenEmpty()||oo(a))&&(d.append(...c.getChildren()),c.remove()),di(r)&&r.isEmpty()&&r.remove(),o.selectEnd();const h=di(r)?r.getLastChild():null;On(h)&&d!==r&&h.remove();}insertParagraph(){if("root"===this.anchor.key){const t=Ti();return os().splice(this.anchor.offset,0,[t]),t.select(),t}const e=Ir(this),n=lo(this.anchor.getNode(),oo);di(n)||t$2(213);const r=n.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(t){const e=An();if(this.insertNodes([e]),t){const t=e.getParentOrThrow(),n=e.getIndexWithinParent();t.select(n,n);}}extract(){const t=this.getNodes(),e=t.length,n=e-1,r=this.anchor,i=this.focus;let s=t[0],o=t[n];const[l,c]=fr(this);if(0===e)return [];if(1===e){if(Xn(s)&&!this.isCollapsed()){const t=l>c?c:l,e=l>c?l:c,n=s.splitText(t,e),r=0===t?n[0]:n[1];return null!=r?[r]:[]}return [s]}const a=r.isBefore(i);if(Xn(s)){const e=a?l:c;e===s.getTextContentSize()?t.shift():0!==e&&([,s]=s.splitText(e),t[0]=s);}if(Xn(o)){const e=o.getTextContent().length,r=a?c:l;0===r?t.pop():r!==e&&([o]=o.splitText(r),t[n]=o);}return t}modify(t,e,n){if(zr(this,t,e,n))return;const r="move"===t,i=Hr(),s=Xs(Rs(i));if(!s)return;const o=i._blockCursorElement,l=i._rootElement,c=this.focus.getNode();if(null===l||null===o||!di(c)||c.isInline()||c.canBeEmpty()||Qs(o,i,l),this.dirty){let t=Os(i,this.anchor.key),e=Os(i,this.focus.key);"text"===this.anchor.type&&(t=Ui(t)),"text"===this.focus.type&&(e=Ui(e)),t&&e&&Lr(s,t,this.anchor.offset,e,this.focus.offset);}if(function(t,e,n,r){t.modify(e,n,r);}(s,t,e?"backward":"forward",n),s.rangeCount>0){const t=s.getRangeAt(0),n=this.anchor.getNode(),i=mi(n)?n:js(n);if(this.applyDOMRange(t),this.dirty=!0,!r){const n=this.getNodes(),r=[];let o=!1;for(let t=0;t<n.length;t++){const e=n[t];Ws(e,i)?r.push(e):o=!0;}if(o&&r.length>0)if(e){const t=r[0];di(t)?t.selectStart():t.getParentOrThrow().selectStart();}else {const t=r[r.length-1];di(t)?t.selectEnd():t.getParentOrThrow().selectEnd();}s.anchorNode===t.startContainer&&s.anchorOffset===t.startOffset||function(t){const e=t.focus,n=t.anchor,r=n.key,i=n.offset,s=n.type;n.set(e.key,e.offset,e.type,!0),e.set(r,i,s,!0);}(this);}}"lineboundary"===n&&zr(this,t,e,n,"decorators");}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&di(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(di(n)&&n.isShadowRoot())return !0}return !1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let n=e.getNode();if(this.forwardDeletion(e,n,t))return;const r=Jo(Qo(e,t?"previous":"next"));if(r.getTextSlices().every((t=>null===t||0===t.distance))){let t={type:"initial"};for(const e of r.iterNodeCarets("shadowRoot"))if(Eo(e))if(e.origin.isInline());else {if(e.origin.isShadowRoot()){if("merge-block"===t.type)break;if(di(r.anchor.origin)&&r.anchor.origin.isEmpty()){const t=sl(e);Zo(this,jo(t,t)),r.anchor.origin.remove();}return}"merge-next-block"!==t.type&&"merge-block"!==t.type||(t={block:t.block,caret:e,type:"merge-block"});}else {if("merge-block"===t.type)break;if(No(e)){if(di(e.origin)){if(e.origin.isInline()){if(!e.origin.isParentOf(r.anchor.origin))break}else t={block:e.origin,type:"merge-next-block"};continue}if(_i(e.origin)){if(e.origin.isIsolated());else if("merge-next-block"===t.type&&(e.origin.isKeyboardSelectable()||!e.origin.isInline())&&di(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const t=Cr();t.add(e.origin.getKey()),cs(t);}else e.origin.remove();return}break}}if("merge-block"===t.type){const{caret:e,block:n}=t;return Zo(this,jo(!e.origin.isEmpty()&&n.isEmpty()?el(Ao(n,e.direction)):r.anchor,e)),this.removeText()}}const i=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===e.offset&&dr(this,e.getNode()))return}else {const r="text"===i.type?i.getNode():null;if(n="text"===e.type?e.getNode():null,null!==r&&r.isSegmented()){const e=i.offset,s=r.getTextContentSize();if(r.is(n)||t&&e!==s||!t&&0!==e)return void gr(r,t,e)}else if(null!==n&&n.isSegmented()){const i=e.offset,s=n.getTextContentSize();if(n.is(r)||t&&0!==i||!t&&i!==s)return void gr(n,t,i)}!function(t,e){const n=t.anchor,r=t.focus,i=n.getNode(),s=r.getNode();if(i===s&&"text"===n.type&&"text"===r.type){const t=n.offset,s=r.offset,o=t<s,l=o?t:s,c=o?s:t,a=c-1;if(l!==a){(function(t){return !(fs(t)||hr(t))})(i.getTextContent().slice(l,c))&&(e?r.set(r.key,a,r.type):n.set(n.key,a,n.type));}}}(this,t);}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const t=this.anchor.getNode();t.isEmpty()&&mi(t.getParent())&&null===t.getPreviousSibling()&&dr(this,t);}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText();}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,n=e.getNode();if(this.forwardDeletion(e,n,t))return;this.modify("extend",t,"word");}this.removeText();}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return [this.anchor,this.focus]}}function ar(t){return t instanceof or}function ur(t){const e=t.offset;if("text"===t.type)return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function fr(t){const e=t.getStartEndPoints();if(null===e)return [0,0];const[n,r]=e;return "element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[ur(n),ur(r)]}function dr(t,e){for(let n=e;n;n=n.getParent()){if(di(n)){if(n.collapseAtStart(t))return !0;if($s(n))break}if(n.getPreviousSibling())break}return !1}const hr=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch(t){}return ()=>!1})();function gr(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),s=i.length;let o=0,l=0;for(let t=0;t<s;t++){const r=t===s-1;if(l=o,o+=i[t].length,e&&o===n||o>n||r){i.splice(t,1),r&&(l=void 0);break}}const c=i.join("").trim();""===c?r.remove():(r.setTextContent(c),r.select(l,l));}function _r(e,n,r,i){let s,o=n;if(eo(e)){let l=!1;const c=e.childNodes,a=c.length,u=i._blockCursorElement;o===a&&(l=!0,o=a-1);let f=c[o],d=!1;if(f===u)f=c[o+1],d=!0;else if(null!==u){const t=u.parentNode;if(e===t){n>Array.prototype.indexOf.call(t.children,u)&&o--;}}if(s=as(f),Xn(s))o=us(s,l);else {let c=as(e);if(null===c)return null;if(di(c)){const a=i.getElementByKey(c.getKey());null===a&&t$2(214);const u=c.getDOMSlot(a);[c,o]=u.resolveChildIndex(c,a,e,n),di(c)||t$2(215),l&&o>=c.getChildrenSize()&&(o=Math.max(0,c.getChildrenSize()-1));let f=c.getChildAtIndex(o);if(di(f)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(f,0,r)){const t=l?f.getLastDescendant():f.getFirstDescendant();null===t?c=f:(f=t,c=di(f)?f:f.getParentOrThrow()),o=0;}Xn(f)?(s=f,c=null,o=us(f,l)):f!==c&&l&&!d&&(di(c)||t$2(216),o=Math.min(c.getChildrenSize(),o+1));}else {const t=c.getIndexWithinParent();o=0===n&&_i(c)&&as(e)===c?t:t+1,c=c.getParentOrThrow();}if(di(c))return rr(c.__key,o,"element")}}else s=as(e);return Xn(s)?rr(s.__key,o,"text"):null}function pr(t,e,n){const r=t.offset,i=t.getNode();if(0===r){const r=i.getPreviousSibling(),s=i.getParent();if(e){if((n||!e)&&null===r&&di(s)&&s.isInline()){const e=s.getPreviousSibling();Xn(e)&&t.set(e.__key,e.getTextContent().length,"text");}}else di(r)&&!n&&r.isInline()?t.set(r.__key,r.getChildrenSize(),"element"):Xn(r)&&t.set(r.__key,r.getTextContent().length,"text");}else if(r===i.getTextContent().length){const r=i.getNextSibling(),s=i.getParent();if(e&&di(r)&&r.isInline())t.set(r.__key,0,"element");else if((n||e)&&null===r&&di(s)&&s.isInline()&&!s.canInsertTextAfter()){const e=s.getNextSibling();Xn(e)&&t.set(e.__key,0,"text");}}}function mr(t,e,n){if("text"===t.type&&"text"===e.type){const r=t.isBefore(e),i=t.is(e);pr(t,r,i),pr(e,!r,i),i&&e.set(t.key,t.offset,t.type);const s=Hr();if(s.isComposing()&&s._compositionKey!==t.key&&lr(n)){const r=n.anchor,i=n.focus;t.set(r.key,r.offset,r.type,!0),e.set(i.key,i.offset,i.type,!0);}}}function yr(t,e,n,r,i,s){if(null===t||null===n||!Wi(i,t,n))return null;const o=_r(t,e,lr(s)?s.anchor:null,i);if(null===o)return null;const l=_r(n,r,lr(s)?s.focus:null,i);if(null===l)return null;if("element"===o.type&&"element"===l.type){const e=as(t),r=as(n);if(_i(e)&&_i(r))return null}return mr(o,l,s),[o,l]}function xr(t){return di(t)&&!t.isInline()}function Sr(t,e,n,r,i,s){const o=qr(),l=new cr(rr(t,e,i),rr(n,r,s),0,"");return l.dirty=!0,o._selection=l,l}function vr(){const t=rr("root",0,"element"),e=rr("root",0,"element");return new cr(t,e,0,"")}function Cr(){return new or(new Set)}function kr(t,e){return br(null,t,e,null)}function br(t,e,n,r){const i=n._window;if(null===i)return null;const s=r||i.event,o=s?s.type:void 0,l="selectionchange"===o,c=!tt$2&&(l||"beforeinput"===o||"compositionstart"===o||"compositionend"===o||"click"===o&&s&&3===s.detail||"drop"===o||void 0===o);let a,u,f,d;if(lr(t)&&!c)return t.clone();if(null===e)return null;if(a=e.anchorNode,u=e.focusNode,f=e.anchorOffset,d=e.focusOffset,l&&lr(t)&&!Wi(n,a,u))return t.clone();const h=yr(a,f,u,d,n,t);if(null===h)return null;const[g,_]=h;return new cr(g,_,lr(t)?t.format:0,lr(t)?t.style:"")}function Tr(){return qr()._selection}function wr(){return Hr()._editorState._selection}function Nr(t,e,n,r=1){const i=t.anchor,s=t.focus,o=i.getNode(),l=s.getNode();if(!e.is(o)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const e=i.offset;if(n<=e&&r>0||n<e&&r<0){const n=Math.max(0,e+r);i.set(c,n,"element"),s.set(c,n,"element"),Er(t);}}else {const o=t.isBackward(),l=o?s:i,a=l.getNode(),u=o?i:s,f=u.getNode();if(e.is(a)){const t=l.offset;(n<=t&&r>0||n<t&&r<0)&&l.set(c,Math.max(0,t+r),"element");}if(e.is(f)){const t=u.offset;(n<=t&&r>0||n<t&&r<0)&&u.set(c,Math.max(0,t+r),"element");}}Er(t);}function Er(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,s=e.getNode(),o=r.getNode();if(t.isCollapsed()){if(!di(s))return;const t=s.getChildrenSize(),i=n>=t,o=i?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(Xn(o)){let t=0;i&&(t=o.getTextContentSize()),e.set(o.__key,t,"text"),r.set(o.__key,t,"text");}}else {if(di(s)){const t=s.getChildrenSize(),r=n>=t,i=r?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(Xn(i)){let t=0;r&&(t=i.getTextContentSize()),e.set(i.__key,t,"text");}}if(di(o)){const t=o.getChildrenSize(),e=i>=t,n=e?o.getChildAtIndex(t-1):o.getChildAtIndex(i);if(Xn(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text");}}}}function Pr(t,e,n,r,i){let s=null,o=0,l=null;null!==r?(s=r.__key,Xn(r)?(o=r.getTextContentSize(),l="text"):di(r)&&(o=r.getChildrenSize(),l="element")):null!==i&&(s=i.__key,Xn(i)?l="text":di(i)&&(l="element")),null!==s&&null!==l?t.set(s,o,l):(o=e.getIndexWithinParent(),-1===o&&(o=n.getChildrenSize()),t.set(n.__key,o,"element"));}function Fr(t,e,n,r,i){"text"===t.type?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element");}function Lr(t,e,n,r,i){try{t.setBaseAndExtent(e,n,r,i);}catch(t){}}function Ar(t,e,n,r,i,s,o){const l=r.anchorNode,c=r.focusNode,a=r.anchorOffset,u=r.focusOffset,f=document.activeElement;if(i.has("collaboration")&&f!==s||null!==f&&Bi(f))return;if(!lr(e))return void(null!==t&&Wi(n,l,c)&&r.removeAllRanges());const d=e.anchor,h=e.focus,g=d.key,_=h.key,p=Os(n,g),m=Os(n,_),y=d.offset,x=h.offset,S=e.format,v=e.style,C=e.isCollapsed();let k=p,b=m,T=!1;if("text"===d.type){k=Ui(p);const t=d.getNode();T=t.getFormat()!==S||t.getStyle()!==v;}else lr(t)&&"text"===t.anchor.type&&(T=!0);var w,N,E,P,F;if(("text"===h.type&&(b=Ui(m)),null!==k&&null!==b)&&(C&&(null===t||T||lr(t)&&(t.format!==S||t.style!==v))&&(w=S,N=v,E=y,P=g,F=performance.now(),gn=[w,N,E,P,F]),a!==y||u!==x||l!==k||c!==b||"Range"===r.type&&C||(null!==f&&s.contains(f)||s.focus({preventScroll:!0}),"element"===d.type))){if(Lr(r,k,y,b,x),!i.has("skip-scroll-into-view")&&e.isCollapsed()&&null!==s&&s===document.activeElement){const t=lr(e)&&"element"===e.anchor.type?k.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==t){let e;if(t instanceof Text){const n=document.createRange();n.selectNode(t),e=n.getBoundingClientRect();}else e=t.getBoundingClientRect();!function(t,e,n){const r=Is(n),i=Ks(r);if(null===r||null===i)return;let{top:s,bottom:o}=e,l=0,c=0,a=n;for(;null!==a;){const e=a===r.body;if(e)l=0,c=Rs(t).innerHeight;else {const t=a.getBoundingClientRect();l=t.top,c=t.bottom;}let n=0;if(s<l?n=-(l-s):o>c&&(n=o-c),0!==n)if(e)i.scrollBy(0,n);else {const t=a.scrollTop;a.scrollTop+=n;const e=a.scrollTop-t;s-=e,o-=e;}if(e)break;a=Ms(a);}}(n,e,s);}}ln=!0;}}function Or(t){let e=Tr()||wr();null===e&&(e=os().selectEnd()),e.insertNodes(t);}function Mr(){const t=Tr();return null===t?"":t.getTextContent()}function Ir(e){let n=e;e.isCollapsed()||n.removeText();const r=Tr();lr(r)&&(n=r),lr(n)||t$2(161);const i=n.anchor;let s=i.getNode(),o=i.offset;for(;!oo(s);){const t=s;if([s,o]=Dr(s,o),t.is(s))break}return o}function Dr(t,e){const n=t.getParent();if(!n){const t=Ti();return os().append(t),t.select(),[os(),0]}if(Xn(t)){const r=t.splitText(e);if(0===r.length)return [n,t.getIndexWithinParent()];const i=0===e?0:1;return [n,r[0].getIndexWithinParent()+i]}if(!di(t)||0===e)return [n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new cr(rr(t.__key,e,"element"),rr(t.__key,e,"element"),0,""),i=t.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings());}return [n,t.getIndexWithinParent()+1]}function zr(t,e,n,r,i="decorators-and-blocks"){if("move"===e&&"character"===r&&!t.isCollapsed()){const[e,r]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return r.set(e.key,e.offset,e.type),!0}const s=Qo(t.focus,n?"previous":"next"),o="lineboundary"===r,l="move"===e;let c=s,a="decorators-and-blocks"===i;if(!ol(c)){for(const t of c){a=!1;const{origin:e}=t;if(!_i(e)||e.isIsolated()||(c=t,!o||!e.isInline()))break}if(a)for(const t of Jo(s).iterNodeCarets("extend"===e?"shadowRoot":"root")){if(Eo(t))t.origin.isInline()||(c=t);else {if(di(t.origin))continue;_i(t.origin)&&!t.origin.isInline()&&(c=t);}break}}if(c===s)return !1;if(l&&!o&&_i(c.origin)&&c.origin.isKeyboardSelectable()){const t=Cr();return t.add(c.origin.getKey()),cs(t),!0}return c=sl(c),l&&Xo(t.anchor,c),Xo(t.focus,c),a||!o}let Br=null,Wr=null,Kr=!1,Rr=!1,Jr=0;const jr={characterData:!0,childList:!0,subtree:!0};function $r(){return Kr||null!==Br&&Br._readOnly}function Vr(){Kr&&t$2(13);}function Ur(){Jr>99&&t$2(14);}function qr(){return null===Br&&t$2(195,Gr()),Br}function Hr(){return null===Wr&&t$2(196,Gr()),Wr}function Gr(){let t=0;const e=new Set,n=Mi.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const i=Ji(r);if(Ki(i))t++;else if(i){let t=String(i.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t);}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function Qr(){return Wr}function Xr(e,n,r){const i=n.__type,s=function(e,n){const r=e._nodes.get(n);void 0===r&&t$2(30,n);return r}(e,i);let o=r.get(i);void 0===o&&(o=Array.from(s.transforms),r.set(i,o));const l=o.length;for(let t=0;t<l&&(o[t](n),n.isAttached());t++);}function Yr(t,e){return void 0!==t&&t.__key!==e&&t.isAttached()}function Zr(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const t of r)n.add(t);}function ti(t){return ei(t,Hr()._nodes)}function ei(e,n){const r=e.type,i=n.get(r);void 0===i&&t$2(17,r);const s=i.klass;e.type!==s.getType()&&t$2(18,s.name);const o=s.importJSON(e),l=e.children;if(di(o)&&Array.isArray(l))for(let t=0;t<l.length;t++){const e=ei(l[t],n);o.append(e);}return o}function ni(t,e,n){const r=Br,i=Kr,s=Wr;Br=e,Kr=!0,Wr=t;try{return n()}finally{Br=r,Kr=i,Wr=s;}}function ri(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||null===r;if(null===n)return;const s=t._editorState,o=s._selection,l=n._selection,c=t._dirtyType!==m$6,a=Br,u=Kr,f=Wr,h=t._updating,g=t._observer;let _=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&null!==g){Wr=t,Br=n,Kr=!1,t._updating=!0;try{const e=t._dirtyType,r=t._dirtyElements,i=t._dirtyLeaves;g.disconnect(),_=ie(s,n,t,e,r,i);}catch(e){if(e instanceof Error&&t._onError(e),Rr)throw e;return Ai(t,null,r,n),at$1(t),t._dirtyType=x$8,Rr=!0,ri(t,s),void(Rr=!1)}finally{g.observe(r,jr),t._updating=h,Br=a,Kr=u,Wr=f;}}n._readOnly||(n._readOnly=!0);const p=t._dirtyLeaves,y=t._dirtyElements,S=t._normalizedNodes,v=t._updateTags,C=t._deferred;c&&(t._dirtyType=m$6,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(t,e){const n=t._decorators;let r=t._pendingDecorators||n;const i=e._nodeMap;let s;for(s in r)i.has(s)||(r===n&&(r=is(t)),delete r[s]);}(t,n);const k=i?null:Xs(Rs(t));if(t._editable&&null!==k&&(c||null===l||l.dirty)&&null!==r&&!v.has("skip-dom-selection")){Wr=t,Br=n;try{if(null!==g&&g.disconnect(),c||null===l||l.dirty){const e=t._blockCursorElement;null!==e&&Qs(e,t,r),Ar(o,l,t,k,v,r);}!function(t,e,n){let r=t._blockCursorElement;if(lr(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){const i=n.anchor,s=i.getNode(),o=i.offset;let l=!1,c=null;if(o===s.getChildrenSize()){Gs(s.getChildAtIndex(o-1))&&(l=!0);}else {const e=s.getChildAtIndex(o);if(null!==e&&Gs(e)){const n=e.getPreviousSibling();(null===n||Gs(n))&&(l=!0,c=t.getElementByKey(e.__key));}}if(l){const n=t.getElementByKey(s.__key);return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=d$5(r);r=e.blockCursor=t;}void 0!==r&&n.classList.add(...r);}return n}(t._config)),e.style.caretColor="transparent",void(null===c?n.appendChild(r):n.insertBefore(r,c))}}null!==r&&Qs(r,t,e);}(t,r,l);}finally{null!==g&&g.observe(r,jr),Wr=f,Br=a;}}null!==_&&function(t,e,n,r,i){const s=Array.from(t._listeners.mutation),o=s.length;for(let t=0;t<o;t++){const[o,l]=s[t],c=e.get(l);void 0!==c&&o(c,{dirtyLeaves:r,prevEditorState:i,updateTags:n});}}(t,_,v,p,s),lr(l)||null===l||null!==o&&o.is(l)||t.dispatchCommand(le,void 0);const b=t._pendingDecorators;null!==b&&(t._decorators=b,t._pendingDecorators=null,ii("decorator",t,!0,b)),function(t,e,n){const r=ss(e),i=ss(n);r!==i&&ii("textcontent",t,!0,i);}(t,e||s,n),ii("update",t,!0,{dirtyElements:y,dirtyLeaves:p,editorState:n,normalizedNodes:S,prevEditorState:e||s,tags:v}),function(t,e){if(t._deferred=[],0!==e.length){const n=t._updating;t._updating=!0;try{for(let t=0;t<e.length;t++)e[t]();}finally{t._updating=n;}}}(t,C),function(t){const e=t._updates;if(0!==e.length){const n=e.shift();if(n){const[e,r]=n;li(t,e,r);}}}(t);}function ii(t,e,n,...r){const i=e._updating;e._updating=n;try{const n=Array.from(e._listeners[t]);for(let t=0;t<n.length;t++)n[t].apply(null,r);}finally{e._updating=i;}}function si(t,e,n){if(!1===t._updating||Wr!==t){let r=!1;return t.update((()=>{r=si(t,e,n);})),r}const r=ds(t);for(let i=4;i>=0;i--)for(let s=0;s<r.length;s++){const o=r[s]._commands.get(e);if(void 0!==o){const e=o[i];if(void 0!==e){const r=Array.from(e),i=r.length;for(let e=0;e<i;e++)if(!0===r[e](n,t))return !0}}}return !1}function oi(e,n){const r=e._updates;let i=n||!1;for(;0!==r.length;){const n=r.shift();if(n){const[r,s]=n;let o;if(void 0!==s){if(o=s.onUpdate,s.skipTransforms&&(i=!0),s.discrete){const n=e._pendingEditorState;null===n&&t$2(191),n._flushSync=!0;}o&&e._deferred.push(o),Zr(e,s.tag);}r();}}return i}function li(e,n,r){const i=e._updateTags;let s,o=!1,l=!1;void 0!==r&&(s=r.onUpdate,Zr(e,r.tag),o=r.skipTransforms||!1,l=r.discrete||!1),s&&e._deferred.push(s);const c=e._editorState;let a=e._pendingEditorState,u=!1;(null===a||a._readOnly)&&(a=e._pendingEditorState=yi(a||c),u=!0),a._flushSync=l;const f=Br,d=Kr,h=Wr,g=e._updating;Br=a,Kr=!1,e._updating=!0,Wr=e;const _=e._headless||null===e.getRootElement();try{u&&(_?null!==c._selection&&(a._selection=c._selection.clone()):a._selection=function(t,e){const n=t.getEditorState()._selection,r=Xs(Rs(t));return lr(n)||null==n?br(n,r,t,e):n.clone()}(e,r&&r.event||null));const i=e._compositionKey;n(),o=oi(e,o),function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(lr(r)){const t=r.anchor,e=r.focus;let i;if("text"===t.type&&(i=t.getNode(),i.selectionTransform(n,r)),"text"===e.type){const t=e.getNode();i!==t&&t.selectionTransform(n,r);}}}(a,e),e._dirtyType!==m$6&&(o?function(t,e){const n=e._dirtyLeaves,r=t._nodeMap;for(const t of n){const e=r.get(t);Xn(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&vt$2(e);}}(a,e):function(t,e){const n=e._dirtyLeaves,r=e._dirtyElements,i=t._nodeMap,s=Zi(),o=new Map;let l=n,c=l.size,a=r,u=a.size;for(;c>0||u>0;){if(c>0){e._dirtyLeaves=new Set;for(const t of l){const r=i.get(t);Xn(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&vt$2(r),void 0!==r&&Yr(r,s)&&Xr(e,r,o),n.add(t);}if(l=e._dirtyLeaves,c=l.size,c>0){Jr++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(const t of a){const n=t[0],l=t[1];if("root"!==n&&!l)continue;const c=i.get(n);void 0!==c&&Yr(c,s)&&Xr(e,c,o),r.set(n,l);}l=e._dirtyLeaves,c=l.size,a=e._dirtyElements,u=a.size,Jr++;}e._dirtyLeaves=n,e._dirtyElements=r;}(a,e),oi(e),function(t,e,n,r){const i=t._nodeMap,s=e._nodeMap,o=[];for(const[t]of r){const e=s.get(t);void 0!==e&&(e.isAttached()||(di(e)&&Y$3(e,t,i,s,o,r),i.has(t)||r.delete(t),o.push(t)));}for(const t of o)s.delete(t);for(const t of n){const e=s.get(t);void 0===e||e.isAttached()||(i.has(t)||n.delete(t),s.delete(t));}}(c,a,e._dirtyLeaves,e._dirtyElements));i!==e._compositionKey&&(a._flushSync=!0);const s=a._selection;if(lr(s)){const e=a._nodeMap,n=s.anchor.key,r=s.focus.key;void 0!==e.get(n)&&void 0!==e.get(r)||t$2(19);}else ar(s)&&0===s._nodes.size&&(a._selection=null);}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=c,e._dirtyType=x$8,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void ri(e)}finally{Br=f,Kr=d,Wr=h,e._updating=g,Jr=0;}const p=e._dirtyType!==m$6||e._deferred.length>0||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return !0}else if(null!==n)return !0;return !1}(a,e);p?a._flushSync?(a._flushSync=!1,ri(e)):u&&zi((()=>{ri(e);})):(a._flushSync=!1,u&&(i.clear(),e._deferred=[],e._pendingEditorState=null));}function ci(t,e,n){t._updating?Wr===t?e():t._updates.push([e,n]):li(t,e,n);}class ai{constructor(t,e,n){this.element=t,this.before=e||null,this.after=n||null;}withBefore(t){return new ai(this.element,t,this.after)}withAfter(t){return new ai(this.element,this.before,t)}withElement(t){return new ai(t,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t$2(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t$2(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t$2(224),this.element.replaceChild(e,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(null===t)this.removeManagedLineBreak();else {const e="decorator"===t&&(l$4||o$4);this.insertManagedLineBreak(e);}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,n="IMG"===t.nodeName?t.nextSibling:null;n&&e.removeChild(n),e.removeChild(t),e.__lexicalLineBreak=void 0;}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak();}const n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),t){const t=document.createElement("img");t.setAttribute("data-lexical-linebreak","true"),t.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",t.alt="",n.insertBefore(t,i),n.__lexicalLineBreak=t;}else n.__lexicalLineBreak=i;}getFirstChildOffset(){let t=0;for(let e=this.after;null!==e;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,n,r){if(n===this.element){const e=this.getFirstChildOffset();return [t,Math.min(e+t.getChildrenSize(),Math.max(e,r))]}const i=ui(e,n);i.push(r);const s=ui(e,this.element);let o=t.getIndexWithinParent();for(let t=0;t<s.length;t++){const e=i[t],n=s[t];if(void 0===e||e<n)break;if(e>n){o+=1;break}}return [t.getParentOrThrow(),o]}}function ui(e,n){const r=[];let i=n;for(;i!==e&&null!==i;i=n.parentNode){let t=0;for(let e=i.previousSibling;null!==e;e=e.previousSibling)t++;r.push(t);}return i!==e&&t$2(225),r.reverse()}class fi extends Pn{constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle="";}afterCloneFrom(t){super.afterCloneFrom(t),this.__first=t.__first,this.__last=t.__last,this.__size=t.__size,this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle;}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return H$4[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const t=Hr()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];let e=this.getFirstChild();for(;null!==e;){if(Xn(e)&&t.push(e),di(e)){const n=e.getAllTextNodes();t.push(...n);}e=e.getNextSibling();}return t}getFirstDescendant(){let t=this.getFirstChild();for(;di(t);){const e=t.getFirstChild();if(null===e)break;t=e;}return t}getLastDescendant(){let t=this.getLastChild();for(;di(t);){const e=t.getLastChild();if(null===e)break;t=e;}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return di(t)&&t.getLastDescendant()||t||null}const r=e[t];return di(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:ts(t)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&t$2(45,this.__key),e}getLastChild(){const t=this.getLatest().__last;return null===t?null:ts(t)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&t$2(96,this.__key),e}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++;}return null}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--;}return null}getTextContent(){let t="";const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContent(),di(i)&&r!==n-1&&!i.isInline()&&(t+=W$3);}return t}getTextContentSize(){let t=0;const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContentSize(),di(i)&&r!==n-1&&!i.isInline()&&(t+=W$3.length);}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(""!==t){const e=q$4[t];return !!(this.getFormat()&e)}return !1}hasTextFormat(t){const e=V$3[t];return !!(this.getTextFormat()&e)}getFormatFlags(t,e){return qi(this.getLatest().__textFormat,t,e)}getTextStyle(){return this.getLatest().__textStyle}select(t,e){Vr();const n=Tr();let r=t,i=e;const s=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){const t=this.getFirstChild();if(Xn(t)||di(t))return t.select(0,0)}else if(!(void 0!==t&&t!==s||void 0!==e&&e!==s)){const t=this.getLastChild();if(Xn(t)||di(t))return t.select()}void 0===r&&(r=s),void 0===i&&(i=s);const o=this.__key;return lr(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,i,"element"),n.dirty=!0,n):Sr(o,r,o,i,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach((t=>t.remove())),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t?q$4[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}setIndent(t){return this.getWritable().__indent=t,this}splice(e,n,r){const i=r.length,s=this.getChildrenSize(),o=this.getWritable();e+n<=s||t$2(226,String(e),String(n),String(s));const l=o.__key,c=[],a=[],u=this.getChildAtIndex(e+n);let f=null,d=s-n+i;if(0!==e)if(e===s)f=this.getLastChild();else {const t=this.getChildAtIndex(e);null!==t&&(f=t.getPreviousSibling());}if(n>0){let e=null===f?this.getFirstChild():f.getNextSibling();for(let r=0;r<n;r++){null===e&&t$2(100);const n=e.getNextSibling(),r=e.__key;Qi(e.getWritable()),a.push(r),e=n;}}let h=f;for(let e=0;e<i;e++){const n=r[e];null!==h&&n.is(h)&&(f=h=h.getPreviousSibling());const i=n.getWritable();i.__parent===l&&d--,Qi(i);const s=n.__key;if(null===h)o.__first=s,i.__prev=null;else {const t=h.getWritable();t.__next=s,i.__prev=t.__key;}n.__key===l&&t$2(76),i.__parent=l,c.push(s),h=n;}if(e+n===s){if(null!==h){h.getWritable().__next=null,o.__last=h.__key;}}else if(null!==u){const t=u.getWritable();if(null!==h){const e=h.getWritable();t.__prev=h.__key,e.__next=u.__key;}else t.__prev=null;}if(o.__size=d,a.length){const t=Tr();if(lr(t)){const e=new Set(a),n=new Set(c),{anchor:r,focus:i}=t;hi(r,e,n)&&Pr(r,r.getNode(),this,f,u),hi(i,e,n)&&Pr(i,i.getNode(),this,f,u),0!==d||this.canBeEmpty()||$s(this)||this.remove();}}return o}getDOMSlot(t){return new ai(t)}exportDOM(t){const{element:e}=super.exportDOM(t);if(eo(e)){const t=this.getIndent();t>0&&(e.style.paddingInlineStart=40*t+"px");const n=this.getDirection();n&&(e.dir=n);}return {element:e}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},e=this.getTextFormat(),n=this.getTextStyle();return 0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,e){return null}canIndent(){return !0}collapseAtStart(t){return !1}excludeFromCopy(t){return !1}canReplaceWith(t){return !0}canInsertAfter(t){return !0}canBeEmpty(){return !0}canInsertTextBefore(){return !0}canInsertTextAfter(){return !0}isInline(){return !1}isShadowRoot(){return !1}canMergeWith(t){return !1}extractWithChild(t,e,n){return !1}canMergeWhenEmpty(){return !1}reconcileObservedMutation(t,e){const n=this.getDOMSlot(t);let r=n.getFirstChild();for(let t=this.getFirstChild();t;t=t.getNextSibling()){const i=e.getElementByKey(t.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling);}}}function di(t){return t instanceof fi}function hi(t,e,n){let r=t.getNode();for(;r;){const t=r.__key;if(e.has(t)&&!n.has(t))return !0;r=r.getParent();}return !1}class gi extends Pn{decorate(e,n){t$2(47);}isIsolated(){return !1}isInline(){return !0}isKeyboardSelectable(){return !0}}function _i(t){return t instanceof gi}class pi extends fi{static getType(){return "root"}static clone(){return new pi}constructor(){super("root"),this.__cachedText=null;}getTopLevelElementOrThrow(){t$2(51);}getTextContent(){const t=this.__cachedText;return !$r()&&Hr()._dirtyType!==m$6||null===t?super.getTextContent():t}remove(){t$2(52);}replace(e){t$2(53);}insertBefore(e){t$2(54);}insertAfter(e){t$2(55);}updateDOM(t,e){return !1}append(...e){for(let n=0;n<e.length;n++){const r=e[n];di(r)||_i(r)||t$2(56);}return super.append(...e)}static importJSON(t){return os().updateFromJSON(t)}collapseAtStart(){return !0}}function mi(t){return t instanceof pi}function yi(t){return new vi(new Map(t._nodeMap))}function xi(){return new vi(new Map([["root",new pi]]))}function Si(e){const n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t$2(130,r.name),di(e)){const i=n.children;Array.isArray(i)||t$2(59,r.name);const s=e.getChildren();for(let t=0;t<s.length;t++){const e=Si(s[t]);i.push(e);}}return n}class vi{constructor(t,e){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1;}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(t,e){return ni(e&&e.editor||null,this,t)}clone(t){const e=new vi(this._nodeMap,void 0===t?this._selection:t);return e._readOnly=!0,e}toJSON(){return ni(null,this,(()=>({root:Si(os())})))}}class Ci extends fi{static getType(){return "artificial"}createDOM(t){return document.createElement("div")}}class ki extends fi{static getType(){return "paragraph"}static clone(t){return new ki(t.__key)}createDOM(t){const e=document.createElement("p"),n=Ts(t.theme,"paragraph");if(void 0!==n){e.classList.add(...n);}return e}updateDOM(t,e,n){return !1}static importDOM(){return {p:t=>({conversion:bi,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(eo(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();e.style.textAlign=t;}return {element:e}}static importJSON(t){return Ti().updateFromJSON(t)}exportJSON(){return {...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(t,e){const n=Ti();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||Xn(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return !1}}function bi(t){const e=Ti();return t.style&&(e.setFormat(t.style.textAlign),go(t,e)),{node:e}}function Ti(){return Us(new ki)}function wi(t){return t instanceof ki}const Ni=0,Ei=1,Pi=2,Fi=3,Li=4;function Ai(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=xi(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=m$6,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;null!==s&&(s.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",i.set("root",n));}function Oi(t){const e=t||{},n=Qr(),r=e.theme||{},i=void 0===t?n:e.parentEditor||null,s=e.disableEvents||!1,o=xi(),l=e.namespace||(null!==i?i._config.namespace:hs()),c=e.editorState,a=[pi,Rn,Fn,Zn,ki,Ci,...e.nodes||[]],{onError:u,html:f}=e,d=void 0===e.editable||e.editable;let h;if(void 0===t&&null!==n)h=n._nodes;else {h=new Map;for(let t=0;t<a.length;t++){let e=a[t],n=null,r=null;if("function"!=typeof e){const t=e;e=t.replace,n=t.with,r=t.withKlass||null;}const i=e.getType(),s=e.transform(),o=new Set;null!==s&&o.add(s),h.set(i,{exportDOM:f&&f.export?f.export.get(e):void 0,klass:e,replace:n,replaceWithKlass:r,transforms:o});}}const g=new Mi(o,i,h,{disableEvents:s,namespace:l,theme:r},u||console.error,function(t,e){const n=new Map,r=new Set,i=t=>{Object.keys(t).forEach((e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e]);}));};return t.forEach((t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&i(n);})),e&&i(e),n}(h,f?f.import:void 0),d);return void 0!==c&&(g._pendingEditorState=c,g._dirtyType=x$8),g}class Mi{constructor(t,e,n,r,i,s,o){this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=m$6,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=hs(),this._onError=i,this._htmlConversions=s,this._editable=o,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null;}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){const e=this._listeners.update;return e.add(t),()=>{e.delete(t);}}registerEditableListener(t){const e=this._listeners.editable;return e.add(t),()=>{e.delete(t);}}registerDecoratorListener(t){const e=this._listeners.decorator;return e.add(t),()=>{e.delete(t);}}registerTextContentListener(t){const e=this._listeners.textcontent;return e.add(t),()=>{e.delete(t);}}registerRootListener(t){const e=this._listeners.root;return t(this._rootElement,null),e.add(t),()=>{t(null,this._rootElement),e.delete(t);}}registerCommand(e,n,r){void 0===r&&t$2(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);void 0===s&&t$2(36,String(e));const o=s[r];return o.add(n),()=>{o.delete(n),s.every((t=>0===t.size))&&i.delete(e);}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;i.set(e,r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(e,r),()=>{i.delete(e);}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return void 0===n&&t$2(37,e.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=fo(n).get(e.getType());if(!r)return;const i=new Map;for(const t of r.keys())i.set(t,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])});}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],i=n.replaceWithKlass;if(null!=i){const t=this.registerNodeTransformToKlass(i,e);r.push(t);}return function(t,e){const n=fo(t.getEditorState()),r=[];for(const t of e){const e=n.get(t);e&&r.push(e);}if(0===r.length)return;t.update((()=>{for(const t of r)for(const e of t.keys()){const t=ts(e);t&&t.markDirty();}}),null===t._pendingEditorState?{tag:"history-merge"}:void 0);}(this,r.map((t=>t.klass.getType()))),()=>{r.forEach((t=>t.transforms.delete(e)));}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return Ls(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=Ts(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,Ai(this,e,t,r),null!==e&&(this._config.disableEvents||Nn(e),null!=n&&e.classList.remove(...n)),null!==t){const e=Ks(t),r=t.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=e,this._dirtyType=x$8,at$1(this),this._updateTags.add("history-merge"),ri(this),this._config.disableEvents||function(t,e){const n=t.ownerDocument,r=on.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",bn),on.set(n,(r||0)+1),t.__lexicalEditor=e;const i=Cn(t);for(let n=0;n<tn.length;n++){const[r,s]=tn[n],o="function"==typeof s?t=>{wn(t)||(Tn(t),(e.isEditable()||"click"===r)&&s(t,e));}:t=>{if(wn(t))return;Tn(t);const n=e.isEditable();switch(r){case"cut":return n&&Ls(e,je,t);case"copy":return Ls(e,Je,t);case"paste":return n&&Ls(e,ge,t);case"dragstart":return n&&Ls(e,We,t);case"dragover":return n&&Ls(e,Ke,t);case"dragend":return n&&Ls(e,Re,t);case"focus":return n&&Ls(e,Ge,t);case"blur":return n&&Ls(e,Qe,t);case"drop":return n&&Ls(e,ze,t)}};t.addEventListener(r,o),i.push((()=>{t.removeEventListener(r,o);}));}}(t,this),null!=n&&t.classList.add(...n);}else this._window=null,this._updateTags.add("history-merge"),ri(this);ii("root",this,!1,t,e);}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t$2(38);let r=e;r._readOnly&&(r=yi(e),r._selection=e._selection?e._selection.clone():null),ct$1(this);const i=this._pendingEditorState,s=this._updateTags,o=void 0!==n?n.tag:null;null===i||i.isEmpty()||(null!=o&&s.add(o),ri(this)),this._pendingEditorState=r,this._dirtyType=x$8,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&s.add(o),this._updating||ri(this);}parseEditorState(t,e){return function(t,e,n){const r=xi(),i=Br,s=Kr,o=Wr,l=e._dirtyElements,c=e._dirtyLeaves,a=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,Br=r,Kr=!1,Wr=e;try{const i=e._nodes;ei(t.root,i),n&&n(),r._readOnly=!0;}catch(t){t instanceof Error&&e._onError(t);}finally{e._dirtyElements=l,e._dirtyLeaves=c,e._cloneNotNeeded=a,e._dirtyType=u,Br=i,Kr=s,Wr=o;}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(t){return ri(this),this.getEditorState().read(t,{editor:this})}update(t,e){!function(t,e,n){t._updating?t._updates.push([e,n]):li(t,e,n);}(this,t,e);}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),ci(this,(()=>{const r=Tr(),i=os();null!==r?r.dirty=!0:0!==i.getChildrenSize()&&("rootStart"===e.defaultSelection?i.selectStart():i.selectEnd()),zs("focus"),Bs((()=>{n.removeAttribute("autocapitalize"),t&&t();}));})),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"));}blur(){const t=this._rootElement;null!==t&&t.blur();const e=Xs(this._window);null!==e&&e.removeAllRanges();}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,ii("editable",this,!0,t));}toJSON(){return {editorState:this._editorState.toJSON()}}}Mi.version="0.27.2+prod.esm";let Ii=1;function Di(){Ii=1;}const zi="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t);};function Bi(t){const e=document.activeElement;if(!eo(e))return !1;const n=e.nodeName;return _i(rs(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==Ji(e))}function Wi(t,e,n){const r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!Bi(e)&&Ri(e)===t}catch(t){return !1}}function Ki(t){return t instanceof Mi}function Ri(t){let e=t;for(;null!=e;){const t=Ji(e);if(Ki(t))return t;e=Ms(e);}return null}function Ji(t){return t?t.__lexicalEditor:null}function ji(t){return t.isToken()||t.isSegmented()}function $i(t){return no(t)&&t.nodeType===g$7}function Vi(t){return no(t)&&t.nodeType===_$6}function Ui(t){let e=t;for(;null!=e;){if($i(e))return e;e=e.firstChild;}return null}function qi(t,e,n){const r=V$3[e];if(null!==n&&(t&r)==(n&r))return t;let i=t^r;return "subscript"===e?i&=~V$3.superscript:"superscript"===e?i&=~V$3.subscript:"lowercase"===e?(i&=~V$3.uppercase,i&=~V$3.capitalize):"uppercase"===e?(i&=~V$3.lowercase,i&=~V$3.capitalize):"capitalize"===e&&(i&=~V$3.lowercase,i&=~V$3.uppercase),i}function Hi(t){return Xn(t)||On(t)||_i(t)}function Gi(t,e){if(null!=e)return void(t.__key=e);Vr(),Ur();const n=Hr(),r=qr(),i=""+Ii++;r._nodeMap.set(i,t),di(t)?n._dirtyElements.set(i,!0):n._dirtyLeaves.add(i),n._cloneNotNeeded.add(i),n._dirtyType=y$6,t.__key=i;}function Qi(t){const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling();if(null===i)if(null!==s){const t=s.getWritable();r.__first=s.__key,t.__prev=null;}else r.__first=null;else {const t=i.getWritable();if(null!==s){const e=s.getWritable();e.__prev=t.__key,t.__next=e.__key;}else t.__next=null;n.__prev=null;}if(null===s)if(null!==i){const t=i.getWritable();r.__last=i.__key,t.__next=null;}else r.__last=null;else {const t=s.getWritable();if(null!==i){const e=i.getWritable();e.__next=t.__key,t.__prev=e.__key;}else t.__prev=null;n.__next=null;}r.__size--,n.__parent=null;}}function Xi(t){Ur();const e=t.getLatest(),n=e.__parent,r=qr(),i=Hr(),s=r._nodeMap,o=i._dirtyElements;null!==n&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=t.__parent;}}(n,s,o);const l=e.__key;i._dirtyType=y$6,di(t)?o.set(l,!0):i._dirtyLeaves.add(l);}function Yi(t){Vr();const e=Hr(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=ts(n);null!==t&&t.getWritable();}if(null!==t){const e=ts(t);null!==e&&e.getWritable();}}}function Zi(){if($r())return null;return Hr()._compositionKey}function ts(t,e){const n=(e||qr())._nodeMap.get(t);return void 0===n?null:n}function es(t,e){const n=ns(t,Hr());return void 0!==n?ts(n,e):null}function ns(t,e){return t[`__lexicalKey_${e._key}`]}function rs(t,e){let n=t;for(;null!=n;){const t=es(n,e);if(null!==t)return t;n=Ms(n);}return null}function is(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function ss(t){return t.read((()=>os().getTextContent()))}function os(){return ls(qr())}function ls(t){return t._nodeMap.get("root")}function cs(t){Vr();const e=qr();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t;}function as(t){const e=Hr(),n=function(t,e){let n=t;for(;null!=n;){const t=ns(n,e);if(void 0!==t)return t;n=Ms(n);}return null}(t,e);if(null===n){return t===e.getRootElement()?ts("root"):null}return ts(n)}function us(t,e){return e?t.getTextContentSize():0}function fs(t){return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function ds(t){const e=[];let n=t;for(;null!==n;)e.push(n),n=n._parentEditor;return e}function hs(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function gs(t){return $i(t)?t.nodeValue:null}function _s(t,e,n){const r=Xs(Rs(e));if(null===r)return;const i=r.anchorNode;let{anchorOffset:s,focusOffset:o}=r;if(null!==i){let e=gs(i);const r=rs(i);if(null!==e&&Xn(r)){if(e===B$4&&n){const t=n.length;e=n,s=t,o=t;}null!==e&&ps(r,e,s,o,t);}}}function ps(t,e,n,r,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const c=s.isComposing();let a=e;(c||i)&&e[e.length-1]===B$4&&(a=e.slice(0,-1));const u=s.getTextContent();if(i||a!==u){if(""===a){if(Yi(null),o$4||l$4||f$5)s.remove();else {const t=Hr();setTimeout((()=>{t.update((()=>{s.isAttached()&&s.remove();}));}),20);}return}const e=s.getParent(),i=wr(),u=s.getTextContentSize(),d=Zi(),h=s.getKey();if(s.isToken()||null!==d&&h===d&&!c||lr(i)&&(null!==e&&!e.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===t.__key&&0===i.anchor.offset&&!s.canInsertTextBefore()&&!c||i.focus.key===t.__key&&i.focus.offset===u&&!s.canInsertTextAfter()&&!c))return void s.markDirty();const g=Tr();if(!lr(g)||null===n||null===r)return void s.setTextContent(a);if(g.setTextNodeRange(s,n,s,r),s.isSegmented()){const t=Qn(s.getTextContent());s.replace(t),s=t;}s.setTextContent(a);}}}function ms(t){return "ArrowLeft"===t}function ys(t){return "ArrowRight"===t}function xs(t,e){return r$1?t:e}function Ss(t){return "Enter"===t}function vs(t){return "Backspace"===t}function Cs(t){return "Delete"===t}function ks(t,e,n){return "a"===t.toLowerCase()&&xs(e,n)}function bs(t){const e=os();if(lr(t)){const e=t.anchor,n=t.focus,r=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Ct$2(t),t}{const t=e.select(0,e.getChildrenSize());return cs(Ct$2(t)),t}}function Ts(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const i=t[e];if("string"==typeof i){const t=d$5(i);return n[e]=t,t}return i}function ws(e,n,r,i,s){if(0===r.size)return;const o=i.__type,l=i.__key,c=n.get(o);void 0===c&&t$2(33,o);const a=c.klass;let u=e.get(a);void 0===u&&(u=new Map,e.set(a,u));const f=u.get(l),d="destroyed"===f&&"created"===s;(void 0===f||d)&&u.set(l,d?"updated":s);}function Ns(t){const e=t.getType(),n=qr();if(n._readOnly){const t=fo(n).get(e);return t?Array.from(t.values()):[]}const r=n._nodeMap,i=[];for(const[,n]of r)n instanceof t&&n.__type===e&&n.isAttached()&&i.push(n);return i}function Es(t,e,n){const r=t.getParent();let i=n,s=t;return null!==r&&(e&&0===n?(i=s.getIndexWithinParent(),s=r):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=r)),s.getChildAtIndex(e?i-1:i)}function Ps(t,e){const n=t.offset;if("element"===t.type){return Es(t.getNode(),e,n)}{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?Es(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function Fs(t){const e=Rs(t).event,n=e&&e.inputType;return "insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Ls(t,e,n){return si(t,e,n)}function As(t){return !mi(t)&&!t.isLastChild()&&!t.isInline()}function Os(e,n){const r=e._keyToDOMMap.get(n);return void 0===r&&t$2(75,n),r}function Ms(t){const e=t.assignedSlot||t.parentElement;return ro(e)?e.host:e}function Is(t){return Vi(t)?t:eo(t)?t.ownerDocument:null}function Ds(t){return Hr()._updateTags.has(t)}function zs(t){Vr();Hr()._updateTags.add(t);}function Bs(t){Vr();Hr()._deferred.push(t);}function Ws(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return !0;n=n.getParent();}return !1}function Ks(t){const e=Is(t);return e?e.defaultView:null}function Rs(e){const n=e._window;return null===n&&t$2(78),n}function Js(t){return di(t)&&t.isInline()||_i(t)&&t.isInline()}function js(t){let e=t.getParentOrThrow();for(;null!==e;){if($s(e))return e;e=e.getParentOrThrow();}return e}function $s(t){return mi(t)||di(t)&&t.isShadowRoot()}function Vs(t){const e=t.constructor.clone(t);return Gi(e,null),e}function Us(e){const n=Hr(),r=e.constructor.getType(),i=n._nodes.get(r);void 0===i&&t$2(200,e.constructor.name,r);const{replace:s,replaceWithKlass:o}=i;if(null!==s){const n=s(e),i=n.constructor;return null!==o?n instanceof o||t$2(201,o.name,o.getType(),i.name,i.getType(),e.constructor.name,r):n instanceof e.constructor&&i!==e.constructor||t$2(202,i.name,i.getType(),e.constructor.name,r),n.__key===e.__key&&t$2(203,e.constructor.name,r,i.name,i.getType()),n}return e}function qs(e,n){!mi(e.getParent())||di(n)||_i(n)||t$2(99);}function Hs(e){const n=ts(e);return null===n&&t$2(63,e),n}function Gs(t){return (_i(t)||di(t)&&!t.canBeEmpty())&&!t.isInline()}function Qs(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t);}function Xs(t){return e$3?(t||window).getSelection():null}function Ys(t){const e=Ks(t);return e?e.getSelection():null}function Zs(e,n){let r=e.getChildAtIndex(n);null==r&&(r=e),$s(e)&&t$2(102);const i=e=>{const n=e.getParentOrThrow(),s=$s(n),o=e!==r||s?Vs(e):e;if(s)return di(e)&&di(o)||t$2(133),e.insertAfter(o),[e,o,o];{const[t,r,s]=i(n),l=e.getNextSiblings();return s.append(o,...l),[t,r,o]}},[s,o]=i(r);return [s,o]}function to(t){return eo(t)&&"A"===t.tagName}function eo(t){return no(t)&&t.nodeType===h$6}function no(t){return "object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType}function ro(t){return no(t)&&t.nodeType===p$4}function io(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==t.nodeName.match(e)}function so(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==t.nodeName.match(e)}function oo(t){if(_i(t)&&!t.isInline())return !0;if(!di(t)||$s(t))return !1;const e=t.getFirstChild(),n=null===e||On(e)||Xn(e)||e.isInline();return !t.isInline()&&!1!==t.canBeEmpty()&&n}function lo(t,e){let n=t;for(;null!==n&&null!==n.getParent()&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}function co(){return Hr()}const ao=new WeakMap,uo=new Map;function fo(e){if(!e._readOnly&&e.isEmpty())return uo;e._readOnly||t$2(192);let n=ao.get(e);return n||(n=function(t){const e=new Map;for(const[n,r]of t._nodeMap){const t=r.__type;let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r);}return e}(e),ao.set(e,n)),n}function ho(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function go(t,e){const n=(parseInt(t.style.paddingInlineStart,10)||0)/40;e.setIndent(n);}function _o(t){t.__lexicalUnmanaged=!0;}function po(t){return !0===t.__lexicalUnmanaged}const mo={next:"previous",previous:"next"};class yo{constructor(t){this.origin=t;}[Symbol.iterator](){return $o({hasNext:No,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return Ao(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Ao(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const n=this.getNodeAtCaret();return t.is(this.origin)||t.is(n)||(null===n?this.insert(t):n.replace(t,e)),this}splice(e,n,r="next"){const i=r===this.direction?n:Array.from(n).reverse();let s=this;const o=this.getParentAtCaret(),l=new Map;for(let t=s.getAdjacentCaret();null!==t&&l.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();l.set(e.getKey(),e);}for(const e of i){if(l.size>0){const n=s.getNodeAtCaret();if(n)if(l.delete(n.getKey()),l.delete(e.getKey()),n.is(e)||s.origin.is(e));else {const t=e.getParent();t&&t.is(o)&&e.remove(),n.replace(e);}else null===n&&t$2(263,Array.from(l).join(" "));}else s.insert(e);s=Ao(e,this.direction);}for(const t of l.values())t.remove();return this}}class xo extends yo{type="child";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Do(t,this.direction)}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=vo(this.direction);return Ao(this.getNodeAtCaret(),t)||Do(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof xo&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const So={root:mi,shadowRoot:$s};function vo(t){return mo[t]}function Co(t,e="root"){return So[e](t)?null:t}class ko extends yo{type="sibling";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Ao(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return di(this.origin)?Do(this.origin,this.direction):null}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=vo(this.direction);return Ao(this.getNodeAtCaret(),t)||Do(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof ko&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return (t instanceof ko||t instanceof bo)&&this.direction===t.direction&&this.origin.is(t.origin)}}class bo extends yo{type="text";constructor(t,e){super(t),this.offset=e;}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Oo(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){return Oo(this.origin,vo(this.direction),this.offset)}isSamePointCaret(t){return t instanceof bo&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return (t instanceof ko||t instanceof bo)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Ao(this.origin,this.direction)}}function To(t){return t instanceof bo}function wo(t){return t instanceof yo}function No(t){return t instanceof ko}function Eo(t){return t instanceof xo}const Po={next:class extends bo{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends bo{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},Fo={next:class extends ko{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends ko{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},Lo={next:class extends xo{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends xo{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function Ao(t,e){return t?new Fo[e](t):null}function Oo(t,e,n){return t?new Po[e](t,Mo(t,n)):null}function Mo(e,n){const r=e.getTextContentSize(),i="next"===n?r:"previous"===n?0:n;return i>=0&&i<=r||t$2(274,String(n),String(r)),i}function Io(t,e){return new Ko(t,e)}function Do(t,e){return di(t)?new Lo[e](t):null}function zo(t){return t&&t.getChildCaret()||t}function Bo(t){return t&&zo(t.getAdjacentCaret())}class Wo{type="node-caret-range";constructor(t,e,n){this.anchor=t,this.focus=e,this.direction=n;}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new Wo(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=t=>{const e=this[t].getLatest();return To(e)?function(t,e){const{direction:n,origin:r}=t,i=Mo(r,"focus"===e?vo(n):n);return Io(t,i-t.offset)}(e,t):null},e=t("anchor"),n=t("focus");if(e&&n){const{caret:t}=e,{caret:r}=n;if(t.isSameNodeCaret(r))return [Io(t,r.offset-t.offset),null]}return [e,n]}iterNodeCarets(t="root"){const e=To(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=To(n),i=e=>e.isSameNodeCaret(n)?null:Bo(e)||e.getParentCaret(t);return $o({hasNext:t=>null!==t&&!(r&&n.isSameNodeCaret(t)),initial:e.isSameNodeCaret(n)?null:i(e),map:t=>t,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Ko{type="slice";constructor(t,e){this.caret=t,this.distance=e;}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,n=e+t;return n<e?[n,e]:[e,n]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[n,r]=this.getSliceIndices(),i=t.getTextContent();return Oo(t.setTextContent(i.slice(0,n)+i.slice(r)),e,n)}}function Ro(t){return t instanceof Ko}function Jo(t){return jo(t,Ao(os(),t.direction))}function jo(e,n){return e.direction!==n.direction&&t$2(265),new Wo(e,n,e.direction)}function $o(t){const{initial:e,hasNext:n,step:r,map:i}=t;let s=e;return {[Symbol.iterator](){return this},next(){if(!n(s))return {done:!0,value:void 0};const t={done:!1,value:i(s)};return s=r(s),t}}}function Vo(e,n){const r=Go(e.origin,n.origin);switch(null===r&&t$2(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{const t="text"===e.type,r="text"===n.type;return t&&r?function(t,e){return Math.sign(t-e)}(e.offset,n.offset):e.type===n.type?0:t?-1:r?1:"child"===e.type?-1:1}case"ancestor":return "child"===e.type?-1:1;case"descendant":return "child"===n.type?1:-1;case"branch":return Uo(r)}}function Uo(t){const{a:e,b:n}=t,r=e.__key,i=n.__key;let s=e,o=n;for(;s&&o;s=s.getNextSibling(),o=o.getNextSibling()){if(s.__key===i)return -1;if(o.__key===r)return 1}return null===s?1:-1}function qo(t,e){return e.is(t)}function Ho(t){return di(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Go(e,n){if(e.is(n))return {commonAncestor:e,type:"same"};const r=new Map;for(let[t,n]=Ho(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,s]=Ho(n);i;s=i,i=i.getParent()){const o=r.get(i);if(void 0!==o)return null===o?(qo(e,i)||t$2(276),{commonAncestor:i,type:"ancestor"}):null===s?(qo(n,i)||t$2(277),{commonAncestor:i,type:"descendant"}):((di(o)||qo(e,o))&&(di(s)||qo(n,s))&&i.is(o.getParent())&&i.is(s.getParent())||t$2(278),{a:o,b:s,commonAncestor:i,type:"branch"})}return null}function Qo(e,n){const{type:r,key:i,offset:s}=e,o=Hs(e.key);return "text"===r?(Xn(o)||t$2(266,o.getType(),i),Oo(o,n,s)):(di(o)||t$2(267,o.getType(),i),al(o,e.offset,n))}function Xo(e,n){const{origin:r,direction:i}=n,s="next"===i;To(n)?e.set(r.getKey(),n.offset,"text"):No(n)?Xn(r)?e.set(r.getKey(),Mo(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+(s?1:0),"element"):(Eo(n)&&di(r)||t$2(268),e.set(r.getKey(),s?0:r.getChildrenSize(),"element"));}function Yo(t){const e=Tr(),n=lr(e)?e:vr();return Zo(n,t),cs(n),n}function Zo(t,e){Xo(t.anchor,e.anchor),Xo(t.focus,e.focus);}function tl(t){const{anchor:e,focus:n}=t,r=Qo(e,"next"),i=Qo(n,"next"),s=Vo(r,i)<=0?"next":"previous";return jo(ll(r,s),ll(i,s))}function el(t){const{direction:e,origin:n}=t,r=Ao(n,vo(e)).getNodeAtCaret();return r?Ao(r,e):Do(n.getParentOrThrow(),e)}function nl(t,e="root"){const n=[t];for(let r=Eo(t)?t.getParentCaret(e):t.getSiblingCaret();null!==r;r=r.getParentCaret(e))n.push(el(r));return n}function rl(t){return !!t&&t.origin.isAttached()}function il(e,n="removeEmptySlices"){if(e.isCollapsed())return e;const r="root",i="next";let s=n;const o=cl(e,i),l=nl(o.anchor,r),c=nl(o.focus.getFlipped(),r),a=new Set,u=[];for(const t of o.iterNodeCarets(r))if(Eo(t))a.add(t.origin.getKey());else if(No(t)){const{origin:e}=t;di(e)&&!a.has(e.getKey())||u.push(e);}for(const t of u)t.remove();for(const t of o.getTextSlices()){if(!t)continue;const{origin:e}=t.caret,n=e.getTextContentSize(),r=el(Ao(e,i)),o=e.getMode();if(Math.abs(t.distance)===n&&"removeEmptySlices"===s||"token"===o&&0!==t.distance)r.remove();else if(0!==t.distance){s="removeEmptySlices";let e=t.removeTextSlice();const n=t.caret.origin;if("segmented"===o){const t=e.origin,n=Qn(t.getTextContent()).setStyle(t.getStyle()).setFormat(t.getFormat());r.replaceOrInsert(n),e=Oo(n,i,e.offset);}n.is(l[0].origin)&&(l[0]=e),n.is(c[0].origin)&&(c[0]=e.getFlipped());}}let f,d;for(const t of l)if(rl(t)){f=sl(t);break}for(const t of c)if(rl(t)){d=sl(t);break}const h=function(t,e,n){if(!t||!e)return null;const r=t.getParentAtCaret(),i=e.getParentAtCaret();if(!r||!i)return null;const s=r.getParents().reverse();s.push(r);const o=i.getParents().reverse();o.push(i);const l=Math.min(s.length,o.length);let c;for(c=0;c<l&&s[c]===o[c];c++);const a=(t,e)=>{let n;for(let r=c;r<t.length;r++){const i=t[r];if($s(i))return;!n&&e(i)&&(n=i);}return n},u=a(s,oo),f=u&&a(o,(t=>n.has(t.getKey())&&oo(t)));return u&&f?[u,f]:null}(f,d,a);if(h){const[t,e]=h;Do(t,"previous").splice(0,e.getChildren()),e.remove();}const g=[f,d,...l,...c].find(rl);if(g){const t=ll(sl(g),e.direction);return jo(t,t)}t$2(269,JSON.stringify(l.map((t=>t.origin.__key))));}function sl(t){const e=function(t){let e=t;for(;Eo(e);){const t=Bo(e);if(!Eo(t))break;e=t;}return e}(t.getLatest()),{direction:n}=e;if(Xn(e.origin))return To(e)?e:Oo(e.origin,n,n);const r=e.getAdjacentCaret();return No(r)&&Xn(r.origin)?Oo(r.origin,n,vo(n)):e}function ol(t){return To(t)&&t.offset!==Mo(t.origin,t.direction)}function ll(t,e){return t.direction===e?t:t.getFlipped()}function cl(t,e){return t.direction===e?t:jo(ll(t.focus,e),ll(t.anchor,e))}function al(t,e,n){let r=Do(t,"next");for(let t=0;t<e;t++){const t=r.getAdjacentCaret();if(null===t)break;r=t;}return ll(r,n)}function ul(t,e="root"){let n=0,r=t,i=Bo(r);for(;null===i;){if(n--,i=r.getParentCaret(e),!i)return null;r=i,i=Bo(r);}return i&&[i,n]}
94405
+ function t$2(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const e$3="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,n$5=e$3&&"documentMode"in document?document.documentMode:null,r$1=e$3&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),i$1=e$3&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s$1=!(!e$3||!("InputEvent"in window)||n$5)&&"getTargetRanges"in new window.InputEvent("input"),o$4=e$3&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l$4=e$3&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c$5=e$3&&/Android/.test(navigator.userAgent),a$5=e$3&&/^(?=.*Chrome).*/i.test(navigator.userAgent),u$4=e$3&&c$5&&a$5,f$5=e$3&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!a$5;function d$5(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}const h$6=1,g$7=3,_$6=9,p$4=11,m$6=0,y$6=1,x$8=2,S$4=0,v$5=1,C$6=2,k$8=1,b$8=2,T$3=4,w$6=8,N$7=16,E$7=32,P$5=64,F$4=128,L$5=1792|(112|(3|T$3|w$6)|F$4),A$4=1,O$6=2,M$5=3,I$5=4,D$6=5,z$4=6,B$4=o$4||l$4||f$5?" ":"​",W$3="\n\n",K$3=i$1?" ":B$4,R$5="֑-߿יִ-﷽ﹰ-ﻼ",J$3="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",j$3=new RegExp("^[^"+J$3+"]*["+R$5+"]"),$$3=new RegExp("^[^"+R$5+"]*["+J$3+"]"),V$3={bold:1,capitalize:1024,code:16,highlight:F$4,italic:2,lowercase:256,strikethrough:T$3,subscript:32,superscript:64,underline:w$6,uppercase:512},U$5={directionless:1,unmergeable:2},q$4={center:O$6,end:z$4,justify:I$5,left:A$4,right:M$5,start:D$6},H$4={[O$6]:"center",[z$4]:"end",[I$5]:"justify",[A$4]:"left",[M$5]:"right",[D$6]:"start"},G$4={normal:0,segmented:2,token:1},Q$3={[S$4]:"normal",[C$6]:"segmented",[v$5]:"token"},X$3="$";function Y$3(t,e,n,r,i,s){let o=t.getFirstChild();for(;null!==o;){const t=o.__key;o.__parent===e&&(di(o)&&Y$3(o,t,n,r,i,s),n.has(t)||s.delete(t),i.push(t)),o=o.getNextSibling();}}const Z$2=100;let tt$2=!1,et$2=0;function nt$2(t){et$2=t.timeStamp;}function rt$2(t,e,n){const r="BR"===t.nodeName,i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&void 0!==ns(t,n)}function it$2(t,e,n){const r=Xs(Rs(n));let i=null,s=null;null!==r&&r.anchorNode===t&&(i=r.anchorOffset,s=r.focusOffset);const o=t.nodeValue;null!==o&&ps(e,o,i,s,!1);}function st$2(t,e,n){if(lr(t)){const e=t.anchor.getNode();if(e.is(n)&&t.format!==e.getFormat())return !1}return $i(e)&&n.isAttached()}function ot$1(t,e,n,r){for(let i=t;i&&!po(i);i=Ms(i)){const t=ns(i,e);if(void 0!==t){const e=ts(t,n);if(e)return _i(e)||!eo(i)?void 0:[i,e]}else if(i===r)return [r,ls(n)]}}function lt$2(t,e,n){tt$2=!0;const r=performance.now()-et$2>Z$2;try{ci(t,(()=>{const s=Tr()||function(t){return t.getEditorState().read((()=>{const t=Tr();return null!==t?t.clone():null}))}(t),o=new Map,l=t.getRootElement(),c=t._editorState,a=t._blockCursorElement;let u=!1,f="";for(let n=0;n<e.length;n++){const d=e[n],h=d.type,g=d.target,_=ot$1(g,t,c,l);if(!_)continue;const[p,m]=_;if("characterData"===h)r&&Xn(m)&&$i(g)&&st$2(s,g,m)&&it$2(g,m,t);else if("childList"===h){u=!0;const e=d.addedNodes;for(let n=0;n<e.length;n++){const r=e[n],s=es(r),o=r.parentNode;if(null!=o&&r!==a&&null===s&&!rt$2(r,o,t)){if(i$1){const t=(eo(r)?r.innerText:null)||r.nodeValue;t&&(f+=t);}o.removeChild(r);}}const n=d.removedNodes,r=n.length;if(r>0){let e=0;for(let i=0;i<r;i++){const r=n[i];(rt$2(r,g,t)||a===r)&&(g.appendChild(r),e++);}r!==e&&o.set(p,m);}}}if(o.size>0)for(const[e,n]of o)n.reconcileObservedMutation(e,t);const d=n.takeRecords();if(d.length>0){for(let e=0;e<d.length;e++){const n=d[e],r=n.addedNodes,i=n.target;for(let e=0;e<r.length;e++){const n=r[e],s=n.parentNode;null==s||"BR"!==n.nodeName||rt$2(n,i,t)||s.removeChild(n);}}n.takeRecords();}null!==s&&(u&&cs(s),i$1&&Fs(t)&&s.insertRawText(f));}));}finally{tt$2=!1;}}function ct$1(t){const e=t._observer;if(null!==e){lt$2(t,e.takeRecords(),e);}}function at$1(t){!function(t){0===et$2&&Rs(t).addEventListener("textInput",nt$2,!0);}(t),t._observer=new MutationObserver(((e,n)=>{lt$2(t,e,n);}));}function ut$1(t){return t}class ft$2{constructor(t,e){this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||ut$1).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0);}}function dt$2(t,e){return new ft$2(t,e)}function ht$2(t,e,n){const r=gt$2(t,n,"direct"),i=gt$2(e,n,"direct");return n.isEqual(r,i)?null:[r,i]}function gt$2(t,e,n="latest"){const r=("latest"===n?t.getLatest():t).__state;return r?r.getValue(e):e.defaultValue}function _t$2(t,e,n){let r;if(Vr(),"function"==typeof n){const i=t.getLatest(),s=gt$2(i,e);if(r=n(s),e.isEqual(s,r))return i}else r=n;const i=t.getWritable();return yt$2(i).updateFromKnown(e,r),i}class pt$2{constructor(t,e=new Map,n=void 0,r=new Map,i=void 0){this.node=t,this.sharedConfigMap=e,this.unknownState=n,this.knownState=r;const s=void 0!==i?i:function(t,e,n){let r=n.size;if(e)for(const i in e){const e=t.get(i);e&&n.has(e)||r++;}return r}(e,n,r);this.size=s;}getValue(t){const e=this.knownState.get(t);if(void 0!==e)return e;this.sharedConfigMap.set(t.key,t);let n=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const e=this.unknownState[t.key];void 0!==e&&(n=t.parse(e)),this.updateFromKnown(t,n);}return n}getInternalState(){return [this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState};for(const[e,n]of this.knownState)e.isEqual(n,e.defaultValue)?delete t[e.key]:t[e.key]=e.unparse(n);return mt$2(t)?{[X$3]:t}:{}}getWritable(t){if(this.node===t)return this;const e=new Map(this.knownState),n=mt$2(r=this.unknownState)&&{...r};var r;if(n)for(const t of e.keys())delete n[t.key];return new pt$2(t,this.sharedConfigMap,mt$2(n),e,this.size)}updateFromKnown(t,e){const n=t.key;this.sharedConfigMap.set(n,t);const{knownState:r,unknownState:i}=this;r.has(t)||i&&n in i||this.size++,r.set(t,e);}updateFromUnknown(t,e){const n=this.sharedConfigMap.get(t);n?this.updateFromKnown(n,n.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e);}updateFromJSON(t){const{knownState:e}=this;for(const t of e.keys())e.set(t,t.defaultValue);if(this.size=e.size,this.unknownState={},t)for(const[e,n]of Object.entries(t))this.updateFromUnknown(e,n);this.unknownState=mt$2(this.unknownState);}}function mt$2(t){if(t)for(const e in t)return t}function yt$2(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new pt$2(e);return e.__state=n,n}function xt$2(t,e){const n=t.__mode,r=t.__format,i=t.__style,s=e.__mode,o=e.__format,l=e.__style,c=t.__state,a=e.__state;return (null===n||n===s)&&(null===r||r===o)&&(null===i||i===l)&&(null===t.__state||c===a||function(t,e){if(t===e)return !0;if(t&&e&&t.size!==e.size)return !1;const n=new Set,r=(t,e)=>{for(const[r,i]of t.knownState){if(n.has(r.key))continue;n.add(r.key);const t=e?e.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return !0}return !1},i=(t,e)=>{const{unknownState:r}=t,i=e?e.unknownState:void 0;if(r)for(const[t,e]of Object.entries(r))if(!n.has(t)&&(n.add(t),e!==(i?i[t]:void 0)))return !0;return !1};return !(t&&r(t,e)||e&&r(e,t)||t&&i(t,e)||e&&i(e,t))}(c,a))}function St$2(t,e){const n=t.mergeWithSibling(e),r=Hr()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function vt$2(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&Xn(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(xt$2(e,r)){r=St$2(e,r);break}break}e.remove();}for(;null!==(n=r.getNextSibling())&&Xn(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(xt$2(r,n)){r=St$2(r,n);break}break}n.remove();}}else r.remove();}function Ct$2(t){return kt$1(t.anchor),kt$1(t.focus),t}function kt$1(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),Xn(r)){t.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!di(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element",!0);}}let bt$1,Tt$2,wt$2,Nt$2,Et$2,Pt$2,Ft$1,Lt$1,At$2,Ot$2,Mt$1="",It$1="",Dt$1=null,zt="",Bt$1="",Wt=!1,Kt=!1,Rt$1=null;function Jt(t,e){const n=Ft$1.get(t);if(null!==e){const n=se(t);n.parentNode===e&&e.removeChild(n);}if(Lt$1.has(t)||Tt$2._keyToDOMMap.delete(t),di(n)){const t=te(n,Ft$1);jt(t,0,t.length-1,null);}void 0!==n&&ws(Ot$2,wt$2,Nt$2,n,"destroyed");}function jt(t,e,n,r){let i=e;for(;i<=n;++i){const e=t[i];void 0!==e&&Jt(e,r);}}function $t(t,e){t.setProperty("text-align",e);}const Vt="40px";function Ut(t,e){const n=bt$1.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n);}const r=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||Vt;t.style.setProperty("padding-inline-start",0===e?"":`calc(${e} * ${r})`);}function qt(t,e){const n=t.style;0===e?$t(n,""):e===A$4?$t(n,"left"):e===O$6?$t(n,"center"):e===M$5?$t(n,"right"):e===I$5?$t(n,"justify"):e===D$6?$t(n,"start"):e===z$4&&$t(n,"end");}function Ht(e,n){const r=Lt$1.get(e);void 0===r&&t$2(60);const i=r.createDOM(bt$1,Tt$2);if(function(t,e,n){const r=n._keyToDOMMap;((function(t,e,n){const r=`__lexicalKey_${e._key}`;t[r]=n;}))(e,n,t),r.set(t,e);}(e,i,Tt$2),Xn(r)?i.setAttribute("data-lexical-text","true"):_i(r)&&i.setAttribute("data-lexical-decorator","true"),di(r)){const t=r.__indent,e=r.__size;if(0!==t&&Ut(i,t),0!==e){const t=e-1;!function(t,e,n,r){const i=It$1;It$1="",Gt(t,n,0,e,n.getDOMSlot(r)),Yt(n,r),It$1=i;}(te(r,Lt$1),t,r,i);}const n=r.__format;0!==n&&qt(i,n),r.isInline()||Xt(null,r,i),As(r)&&(Mt$1+=W$3,Bt$1+=W$3);}else {const t=r.getTextContent();if(_i(r)){const t=r.decorate(Tt$2,bt$1);null!==t&&ne(e,t),i.contentEditable="false";}else Xn(r)&&(r.isDirectionless()||(It$1+=t));Mt$1+=t,Bt$1+=t;}return null!==n&&n.insertChild(i),ws(Ot$2,wt$2,Nt$2,r,"created"),i}function Gt(t,e,n,r,i){const s=Mt$1;Mt$1="";let o=n;for(;o<=r;++o){Ht(t[o],i);const e=Lt$1.get(t[o]);null!==e&&Xn(e)&&(null===Dt$1&&(Dt$1=e.getFormat()),""===zt&&(zt=e.getStyle()));}As(e)&&(Mt$1+=W$3);i.element.__lexicalTextContent=Mt$1,Mt$1=s+Mt$1;}function Qt(t,e){if(t){const n=t.__last;if(n){const t=e.get(n);if(t)return On(t)?"line-break":_i(t)&&t.isInline()?"decorator":null}return "empty"}return null}function Xt(t,e,n){const r=Qt(t,Ft$1),i=Qt(e,Lt$1);r!==i&&e.getDOMSlot(n).setManagedLineBreak(i);}function Yt(t,e){const n=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(n!==It$1||r!==Rt$1){const n=""===It$1,i=n?Rt$1:function(t){if(j$3.test(t))return "rtl";if($$3.test(t))return "ltr";return null}(It$1);if(i!==r){const s=e.classList,o=bt$1.theme;let l=null!==r?o[r]:void 0,c=null!==i?o[i]:void 0;if(void 0!==l){if("string"==typeof l){const t=d$5(l);l=o[r]=t;}s.remove(...l);}if(null===i||n&&"ltr"===i)e.removeAttribute("dir");else {if(void 0!==c){if("string"==typeof c){const t=d$5(c);c=o[i]=t;}void 0!==c&&s.add(...c);}e.dir=i;}if(!Kt){t.getWritable().__dir=i;}}Rt$1=i,e.__lexicalDirTextContent=It$1,e.__lexicalDir=i;}}function Zt(e,n,r){const i=It$1;var s;It$1="",Dt$1=null,zt="",function(e,n,r){const i=Mt$1,s=e.__size,o=n.__size;Mt$1="";const l=r.element;if(1===s&&1===o){const t=e.__first,r=n.__first;if(t===r)ee(t,l);else {const e=se(t),n=Ht(r,null);try{l.replaceChild(n,e);}catch(i){if("object"==typeof i&&null!=i){const s=`${i.toString()} Parent: ${l.tagName}, new child: {tag: ${n.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${t}}.`;throw new Error(s)}throw i}Jt(t,null);}const i=Lt$1.get(r);Xn(i)&&(null===Dt$1&&(Dt$1=i.getFormat()),""===zt&&(zt=i.getStyle()));}else {const i=te(e,Ft$1),c=te(n,Lt$1);if(i.length!==s&&t$2(227),c.length!==o&&t$2(228),0===s)0!==o&&Gt(c,n,0,o-1,r);else if(0===o){if(0!==s){const t=null==r.after&&null==r.before&&null==r.element.__lexicalLineBreak;jt(i,0,s-1,t?null:l),t&&(l.textContent="");}}else !function(t,e,n,r,i,s){const o=r-1,l=i-1;let c,a,u=s.getFirstChild(),f=0,d=0;for(;f<=o&&d<=l;){const t=e[f],r=n[d];if(t===r)u=re(ee(r,s.element)),f++,d++;else {void 0===c&&(c=new Set(e)),void 0===a&&(a=new Set(n));const i=a.has(t),o=c.has(r);if(i)if(o){const t=Os(Tt$2,r);t===u?u=re(ee(r,s.element)):(s.withBefore(u).insertChild(t),ee(r,s.element)),f++,d++;}else Ht(r,s.withBefore(u)),d++;else u=re(se(t)),Jt(t,s.element),f++;}const i=Lt$1.get(r);null!==i&&Xn(i)&&(null===Dt$1&&(Dt$1=i.getFormat()),""===zt&&(zt=i.getStyle()));}const h=f>o,g=d>l;if(h&&!g){const e=n[l+1],r=void 0===e?null:Tt$2.getElementByKey(e);Gt(n,t,d,l,s.withBefore(r));}else g&&!h&&jt(e,f,o,s.element);}(n,i,c,s,o,r);}As(n)&&(Mt$1+=W$3);l.__lexicalTextContent=Mt$1,Mt$1=i+Mt$1;}(e,n,n.getDOMSlot(r)),Yt(n,r),s=n,null==Dt$1||Dt$1===s.__textFormat||Kt||s.setTextFormat(Dt$1),function(t){""===zt||zt===t.__textStyle||Kt||t.setTextStyle(zt);}(n),It$1=i;}function te(e,n){const r=[];let i=e.__first;for(;null!==i;){const e=n.get(i);void 0===e&&t$2(101),r.push(i),i=e.__next;}return r}function ee(e,n){const r=Ft$1.get(e);let i=Lt$1.get(e);void 0!==r&&void 0!==i||t$2(61);const s=Wt||Pt$2.has(e)||Et$2.has(e),o=Os(Tt$2,e);if(r===i&&!s){if(di(r)){const t=o.__lexicalTextContent;void 0!==t&&(Mt$1+=t,Bt$1+=t);const e=o.__lexicalDirTextContent;void 0!==e&&(It$1+=e);}else {const t=r.getTextContent();Xn(r)&&!r.isDirectionless()&&(It$1+=t),Bt$1+=t,Mt$1+=t;}return o}if(r!==i&&s&&ws(Ot$2,wt$2,Nt$2,i,"updated"),i.updateDOM(r,o,bt$1)){const r=Ht(e,null);return null===n&&t$2(62),n.replaceChild(r,o),Jt(e,null),r}if(di(r)&&di(i)){const t=i.__indent;t!==r.__indent&&Ut(o,t);const e=i.__format;e!==r.__format&&qt(o,e),s&&(Zt(r,i,o),mi(i)||i.isInline()||Xt(r,i,o)),As(i)&&(Mt$1+=W$3,Bt$1+=W$3);}else {const t=i.getTextContent();if(_i(i)){const t=i.decorate(Tt$2,bt$1);null!==t&&ne(e,t);}else Xn(i)&&!i.isDirectionless()&&(It$1+=t);Mt$1+=t,Bt$1+=t;}if(!Kt&&mi(i)&&i.__cachedText!==Bt$1){const t=i.getWritable();t.__cachedText=Bt$1,i=t;}return o}function ne(t,e){let n=Tt$2._pendingDecorators;const r=Tt$2._decorators;if(null===n){if(r[t]===e)return;n=is(Tt$2);}n[t]=e;}function re(t){let e=t.nextSibling;return null!==e&&e===Tt$2._blockCursorElement&&(e=e.nextSibling),e}function ie(t,e,n,r,i,s){Mt$1="",Bt$1="",It$1="",Wt=r===x$8,Rt$1=null,Tt$2=n,bt$1=n._config,wt$2=n._nodes,Nt$2=Tt$2._listeners.mutation,Et$2=i,Pt$2=s,Ft$1=t._nodeMap,Lt$1=e._nodeMap,Kt=e._readOnly,At$2=new Map(n._keyToDOMMap);const o=new Map;return Ot$2=o,ee("root",null),Tt$2=void 0,wt$2=void 0,Et$2=void 0,Pt$2=void 0,Ft$1=void 0,Lt$1=void 0,bt$1=void 0,At$2=void 0,Ot$2=void 0,o}function se(e){const n=At$2.get(e);return void 0===n&&t$2(75,e),n}function oe(t){return {}}const le={},ce={},ae={},ue={},fe={},de={},he={},ge={},_e={},pe={},me={},ye={},xe={},Se={},ve={},Ce={},ke={},be={},Te={},we={},Ne={},Ee={},Pe={},Fe={},Le={},Ae={},Oe={},Me={},Ie={},De={},ze={},Be={},We={},Ke={},Re={},Je={},je={},$e={},Ve={},Ue={},qe={},He={},Ge={},Qe={},Xe={},Ye=Object.freeze({}),Ze=30,tn=[["keydown",function(t,e){if(en=t.timeStamp,nn=t.key,e.isComposing())return;const{key:n,shiftKey:s,ctrlKey:o,metaKey:l,altKey:c}=t;if(Ls(e,ve,t))return;if(null==n)return;if(fn&&vs(nn))return ci(e,(()=>{vn(e,dn);})),fn=!1,void(dn="");if(function(t,e,n,r){return ys(t)&&!e&&!r&&!n}(n,o,c,l))Ls(e,Ce,t);else if(function(t,e,n,r,i){return ys(t)&&!r&&!n&&(e||i)}(n,o,s,c,l))Ls(e,ke,t);else if(function(t,e,n,r){return ms(t)&&!e&&!r&&!n}(n,o,c,l))Ls(e,be,t);else if(function(t,e,n,r,i){return ms(t)&&!r&&!n&&(e||i)}(n,o,s,c,l))Ls(e,Te,t);else if(function(t,e,n){return function(t){return "ArrowUp"===t}(t)&&!e&&!n}(n,o,l))Ls(e,we,t);else if(function(t,e,n){return function(t){return "ArrowDown"===t}(t)&&!e&&!n}(n,o,l))Ls(e,Ne,t);else if(function(t,e){return Ss(t)&&e}(n,s))an=!0,Ls(e,Ee,t);else if(function(t){return " "===t}(n))Ls(e,Pe,t);else if(function(t,e){return r$1&&e&&"o"===t.toLowerCase()}(n,o))t.preventDefault(),an=!0,Ls(e,fe,!0);else if(function(t,e){return Ss(t)&&!e}(n,s))an=!1,Ls(e,Ee,t);else if(function(t,e,n,i){if(r$1)return !e&&!n&&(vs(t)||"h"===t.toLowerCase()&&i);if(i||e||n)return !1;return vs(t)}(n,c,l,o))vs(n)?Ls(e,Fe,t):(t.preventDefault(),Ls(e,ue,!0));else if(function(t){return "Escape"===t}(n))Ls(e,Le,t);else if(function(t,e,n,i,s){if(r$1)return !(n||i||s)&&(Cs(t)||"d"===t.toLowerCase()&&e);if(e||i||s)return !1;return Cs(t)}(n,o,s,c,l))Cs(n)?Ls(e,Ae,t):(t.preventDefault(),Ls(e,ue,!1));else if(function(t,e,n){return vs(t)&&(r$1?e:n)}(n,c,o))t.preventDefault(),Ls(e,pe,!0);else if(function(t,e,n){return Cs(t)&&(r$1?e:n)}(n,c,o))t.preventDefault(),Ls(e,pe,!1);else if(function(t,e){return r$1&&e&&vs(t)}(n,l))t.preventDefault(),Ls(e,me,!0);else if(function(t,e){return r$1&&e&&Cs(t)}(n,l))t.preventDefault(),Ls(e,me,!1);else if(function(t,e,n,r){return "b"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"bold");else if(function(t,e,n,r){return "u"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"underline");else if(function(t,e,n,r){return "i"===t.toLowerCase()&&!e&&xs(n,r)}(n,c,l,o))t.preventDefault(),Ls(e,ye,"italic");else if(function(t,e,n,r){return "Tab"===t&&!e&&!n&&!r}(n,c,o,l))Ls(e,Oe,t);else if(function(t,e,n,r){return "z"===t.toLowerCase()&&!e&&xs(n,r)}(n,s,l,o))t.preventDefault(),Ls(e,xe,void 0);else if(function(t,e,n,i){if(r$1)return "z"===t.toLowerCase()&&n&&e;return "y"===t.toLowerCase()&&i||"z"===t.toLowerCase()&&i&&e}(n,s,l,o))t.preventDefault(),Ls(e,Se,void 0);else {const c=e._editorState._selection;null===c||lr(c)?!i$1&&ks(n,l,o)&&(t.preventDefault(),Ls(e,$e,t)):!function(t,e,n,i){if(e)return !1;if("c"===t.toLowerCase())return r$1?n:i;return !1}(n,s,l,o)?!function(t,e,n,i){if(e)return !1;if("x"===t.toLowerCase())return r$1?n:i;return !1}(n,s,l,o)?ks(n,l,o)&&(t.preventDefault(),Ls(e,$e,t)):(t.preventDefault(),Ls(e,je,t)):(t.preventDefault(),Ls(e,Je,t));}(function(t,e,n,r){return t||e||n||r})(o,s,c,l)&&Ls(e,Xe,t);}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;no(n)&&"touch"!==r&&0===t.button&&ci(e,(()=>{_i(rs(n))||(cn$1=!0);}));}],["compositionstart",function(t,e){ci(e,(()=>{const n=Tr();if(lr(n)&&!e.isComposing()){const r=n.anchor,i=n.anchor.getNode();Yi(r.key),(t.timeStamp<en+Ze||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||Xn(i)&&i.getStyle()!==n.style)&&Ls(e,he,K$3);}}));}],["compositionend",function(t,e){i$1?un=!0:l$4||!o$4&&!f$5?ci(e,(()=>{vn(e,t.data);})):(fn=!0,dn=t.data);}],["input",function(t,e){t.stopPropagation(),ci(e,(()=>{const n=Tr(),r=t.data,c=Sn(t);if(null!=r&&lr(n)&&_n(n,c,r,t.timeStamp,!1)){un&&(vn(e,r),un=!1);const c=n.anchor.getNode(),a=Xs(Rs(e));if(null===a)return;const u=n.isBackward(),d=u?n.anchor.offset:n.focus.offset,h=u?n.focus.offset:n.anchor.offset;s$1&&!n.isCollapsed()&&Xn(c)&&null!==a.anchorNode&&c.getTextContent().slice(0,d)+r+c.getTextContent().slice(d+h)===gs(a.anchorNode)||Ls(e,he,r);const g=r.length;i$1&&g>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=g),o$4||l$4||f$5||!e.isComposing()||(en=0,Yi(null));}else {_s(!1,e,null!==r?r:void 0),un&&(vn(e,r||void 0),un=!1);}!function(){Vr();const t=Hr();ct$1(t);}();}),{event:t}),sn=null;}],["click",function(t,e){ci(e,(()=>{const n=Tr(),r=Xs(Rs(e)),i=wr();if(r)if(lr(n)){const e=n.anchor,s=e.getNode();if("element"===e.type&&0===e.offset&&n.isCollapsed()&&!mi(s)&&1===os().getChildrenSize()&&s.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===t.detail&&!n.isCollapsed()){if(s!==n.focus.getNode()){const t=function(t,e){let n=t;for(;n!==os()&&null!=n;){if(e(n))return n;n=n.getParent();}return null}(s,(t=>di(t)&&!t.isInline()));di(t)&&t.select(0);}}}else if("touch"===t.pointerType){const n=r.anchorNode;if(eo(n)||$i(n)){cs(br(i,r,e,t));}}Ls(e,ae,t);}));}],["cut",Ye],["copy",Ye],["dragstart",Ye],["dragover",Ye],["dragend",Ye],["paste",Ye],["focus",Ye],["blur",Ye],["drop",Ye]];s$1&&tn.push(["beforeinput",(e,n)=>function(e,n){const r=e.inputType,s=Sn(e);if("deleteCompositionText"===r||i$1&&Fs(n))return;if("insertCompositionText"===r)return;ci(n,(()=>{const i=Tr();if("deleteContentBackward"===r){if(null===i){const t=wr();if(!lr(t))return;cs(t.clone());}if(lr(i)){const r=i.anchor.key===i.focus.key;if(o=e.timeStamp,"MediaLast"===nn&&o<en+Ze&&n.isComposing()&&r){if(Yi(null),en=0,setTimeout((()=>{ci(n,(()=>{Yi(null);}));}),Ze),lr(i)){const e=i.anchor.getNode();e.markDirty(),Xn(e)||t$2(142),xn(i,e);}}else {Yi(null),e.preventDefault();const t=i.anchor.getNode(),s=t.getTextContent(),o=t.canInsertTextAfter(),l=0===i.anchor.offset&&i.focus.offset===s.length;let c=u$4&&r&&!l&&o;if(c&&i.isCollapsed()&&(c=!_i(Ps(i.anchor,!0))),!c){Ls(n,ue,!0);const t=Tr();u$4&&lr(t)&&t.isCollapsed()&&(hn=t,setTimeout((()=>hn=null)));}}return}}var o;if(!lr(i))return;const c=e.data;null!==sn&&_s(!1,n,sn),i.dirty&&null===sn||!i.isCollapsed()||mi(i.anchor.getNode())||null===s||i.applyDOMRange(s),sn=null;const a=i.anchor,f=i.focus,d=a.getNode(),h=f.getNode();if("insertText"!==r&&"insertTranspose"!==r)switch(e.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ls(n,he,e);break;case"insertFromComposition":Yi(null),Ls(n,he,e);break;case"insertLineBreak":Yi(null),Ls(n,fe,!1);break;case"insertParagraph":Yi(null),an&&!l$4?(an=!1,Ls(n,fe,!1)):Ls(n,de,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ls(n,ge,e);break;case"deleteByComposition":(function(t,e){return t!==e||di(t)||di(e)||!t.isToken()||!e.isToken()})(d,h)&&Ls(n,_e,e);break;case"deleteByDrag":case"deleteByCut":Ls(n,_e,e);break;case"deleteContent":Ls(n,ue,!1);break;case"deleteWordBackward":Ls(n,pe,!0);break;case"deleteWordForward":Ls(n,pe,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ls(n,me,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ls(n,me,!1);break;case"formatStrikeThrough":Ls(n,ye,"strikethrough");break;case"formatBold":Ls(n,ye,"bold");break;case"formatItalic":Ls(n,ye,"italic");break;case"formatUnderline":Ls(n,ye,"underline");break;case"historyUndo":Ls(n,xe,void 0);break;case"historyRedo":Ls(n,Se,void 0);}else {if("\n"===c)e.preventDefault(),Ls(n,fe,!1);else if(c===W$3)e.preventDefault(),Ls(n,de,void 0);else if(null==c&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),i.insertRawText(t);}else null!=c&&_n(i,s,c,e.timeStamp,!0)?(e.preventDefault(),Ls(n,he,c)):sn=c;rn=e.timeStamp;}}));}(e,n)]);let en=0,nn=null,rn=0,sn=null;const on=new WeakMap;let ln=!1,cn$1=!1,an=!1,un=!1,fn=!1,dn="",hn=null,gn=[0,"",0,"root",0];function _n(t,e,n,r,i){const o=t.anchor,l=t.focus,c=o.getNode(),a=Hr(),u=Xs(Rs(a)),f=null!==u?u.anchorNode:null,d=o.key,h=a.getElementByKey(d),g=n.length;return d!==l.key||!Xn(c)||(!i&&(!s$1||rn<r+50)||c.isDirty()&&g<2||fs(n))&&o.offset!==l.offset&&!c.isComposing()||ji(c)||c.isDirty()&&g>1||(i||!s$1)&&null!==h&&!c.isComposing()&&f!==Ui(h)||null!==u&&null!==e&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||c.getFormat()!==t.format||c.getStyle()!==t.style||function(t,e){if(e.isSegmented())return !0;if(!t.isCollapsed())return !1;const n=t.anchor.offset,r=e.getParentOrThrow(),i=e.isToken();return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||i||function(t){const e=t.getPreviousSibling();return (Xn(e)||di(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||i)}(t,c)}function pn(t,e){return $i(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length}function mn(e,n,r){const{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:l}=e;ln&&(ln=!1,pn(i,s)&&pn(o,l)&&!hn)||ci(n,(()=>{if(!r)return void cs(null);if(!Wi(n,i,o))return;let c=Tr();if(hn&&lr(c)&&c.isCollapsed()){const t=c.anchor,e=hn.anchor;(t.key===e.key&&t.offset===e.offset+1||1===t.offset&&e.getNode().is(t.getNode().getPreviousSibling()))&&(c=hn.clone(),cs(c));}if(hn=null,lr(c)){const r=c.anchor,i=r.getNode();if(c.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(c.dirty=!0);const s=Rs(n).event,o=s?s.timeStamp:performance.now(),[l,a,u,f,d]=gn,h=os(),g=!1===n.isComposing()&&""===h.getTextContent();if(o<d+200&&r.offset===u&&r.key===f)yn(c,l,a);else if("text"===r.type)Xn(i)||t$2(141),xn(c,i);else if("element"===r.type&&!g){di(i)||t$2(259);const e=r.getNode();e.isEmpty()?function(t,e){const n=e.getTextFormat(),r=e.getTextStyle();yn(t,n,r);}(c,e):yn(c,0,"");}}else {const t=r.key,e=c.focus.key,n=c.getNodes(),i=n.length,o=c.isBackward(),a=o?l:s,u=o?s:l,f=o?e:t,d=o?t:e;let h=L$5,g=!1;for(let t=0;t<i;t++){const e=n[t],r=e.getTextContentSize();if(Xn(e)&&0!==r&&!(0===t&&e.__key===f&&a===r||t===i-1&&e.__key===d&&0===u)&&(g=!0,h&=e.getFormat(),0===h))break}c.format=g?h:0;}}Ls(n,le,void 0);}));}function yn(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0);}function xn(t,e){yn(t,e.getFormat(),e.getStyle());}function Sn(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return 0===e.length?null:e[0]}function vn(t,e){const n=t._compositionKey;if(Yi(null),null!==n&&null!=e){if(""===e){const e=ts(n),r=Ui(t.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&Xn(e)&&ps(e,r.nodeValue,null,null,!0))}if("\n"===e[e.length-1]){const e=Tr();if(lr(e)){const n=e.focus;return e.anchor.set(n.key,n.offset,n.type),void Ls(t,Ee,null)}}}_s(!0,t,e);}function Cn(t){let e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e}const kn=new Map;function bn(t){const e=Ys(t.target);if(null===e)return;const n=Ri(e.anchorNode);if(null===n)return;cn$1&&(cn$1=!1,ci(n,(()=>{const r=wr(),i=e.anchorNode;if(eo(i)||$i(i)){cs(br(r,e,n,t));}})));const r=ds(n),i=r[r.length-1],s=i._key,o=kn.get(s),l=o||i;l!==n&&mn(e,l,!1),mn(e,n,!0),n!==i?kn.set(s,n):o&&kn.delete(s);}function Tn(t){t._lexicalHandled=!0;}function wn(t){return !0===t._lexicalHandled}function Nn(e){const n=e.ownerDocument,r=on.get(n);void 0===r&&t$2(162);const i=r-1;i>=0||t$2(164),on.set(n,i),0===i&&n.removeEventListener("selectionchange",bn);const s=Ji(e);Ki(s)?(!function(t){if(null!==t._parentEditor){const e=ds(t),n=e[e.length-1]._key;kn.get(n)===t&&kn.delete(n);}else kn.delete(t._key);}(s),e.__lexicalEditor=null):s&&t$2(198);const o=Cn(e);for(let t=0;t<o.length;t++)o[t]();e.__lexicalEventHandles=[];}function En(t,e,n){Vr();const r=t.__key,i=t.getParent();if(null===i)return;const s=function(t){const e=Tr();if(!lr(e)||!di(t))return e;const{anchor:n,focus:r}=e,i=n.getNode(),s=r.getNode();Ws(i,t)&&n.set(t.__key,0,"element");Ws(s,t)&&r.set(t.__key,0,"element");return e}(t);let o=!1;if(lr(s)&&e){const e=s.anchor,n=s.focus;e.key===r&&(Pr(e,t,i,t.getPreviousSibling(),t.getNextSibling()),o=!0),n.key===r&&(Pr(n,t,i,t.getPreviousSibling(),t.getNextSibling()),o=!0);}else ar(s)&&e&&t.isSelected()&&t.selectPrevious();if(lr(s)&&e&&!o){const e=t.getIndexWithinParent();Qi(t),Nr(s,i,e,-1);}else Qi(t);n||$s(i)||i.canBeEmpty()||!i.isEmpty()||En(i,e),e&&mi(i)&&i.isEmpty()&&i.selectEnd();}class Pn{static getType(){t$2(64,this.name);}static clone(e){t$2(65,this.name);}afterCloneFrom(t){this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state;}constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),Gi(this,t);}getType(){return this.__type}isInline(){t$2(137,this.constructor.name);}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return !0;const e=ts(t);if(null===e)break;t=e.__parent;}return !1}isSelected(t){const e=t||Tr();if(null==e)return !1;const n=e.getNodes().some((t=>t.__key===this.__key));if(Xn(this))return n;if(lr(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return !1;const t=this.getParent();if(_i(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor;if(t.is(n.getNode())&&n.offset===t.getChildrenSize()&&this.is(t.getLastChild()))return !1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return -1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling();}return -1}getParent(){const t=this.getLatest().__parent;return null===t?null:ts(t)}getParentOrThrow(){const e=this.getParent();return null===e&&t$2(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const n=e.getParent();if($s(n))return di(e)||e===this&&_i(e)||t$2(194),e;e=n;}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&t$2(67,this.__key),e}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:ts(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:ts(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=di(this)?this:this.getParent(),n=di(t)?t:t.getParent(),r=e&&n?Go(e,n):null;return r?r.commonAncestor:null}is(t){return null!=t&&this.__key===t.__key}isBefore(e){const n=Go(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===Uo(n):("same"!==n.type&&"ancestor"!==n.type&&t$2(279),!1)))}isParentOf(t){const e=Go(this,t);return null!==e&&"ancestor"===e.type}getNodesBetween(e){const n=this.isBefore(e),r=[],i=new Set;let s=this;for(;null!==s;){const o=s.__key;if(i.has(o)||(i.add(o),r.push(s)),s===e)break;const l=di(s)?n?s.getFirstChild():s.getLastChild():null;if(null!==l){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(null!==c){s=c;continue}const a=s.getParentOrThrow();if(i.has(a.__key)||r.push(a),a===e)break;let u=null,f=a;do{if(null===f&&t$2(68),u=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),null===f)break;null!==u||i.has(f.__key)||r.push(f);}while(null===u);s=u;}return n||r.reverse(),r}isDirty(){const t=Hr()._dirtyLeaves;return null!==t&&t.has(this.__key)}getLatest(){const e=ts(this.__key);return null===e&&t$2(113),e}getWritable(){Vr();const t=qr(),e=Hr(),n=t._nodeMap,r=this.__key,i=this.getLatest(),s=e._cloneNotNeeded,o=Tr();if(null!==o&&o.setCachedNodes(null),s.has(r))return Xi(i),i;const l=ho(i);return s.add(r),Xi(l),n.set(r,l),l}getTextContent(){return ""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t$2(70);}updateDOM(e,n,r){t$2(71);}exportDOM(t){return {element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return {type:this.__type,version:1,...t}}static importJSON(e){t$2(18,this.name);}updateFromJSON(t){return function(t,e){const n=t.getWritable();return (e||n.__state)&&yt$2(t).updateFromJSON(e),n}(this,t.$)}static transform(){return null}remove(t){En(this,!0,t);}replace(e,n){Vr();let r=Tr();null!==r&&(r=r.clone()),qs(this,e);const i=this.getLatest(),s=this.__key,o=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),a=c.__size;Qi(l);const u=i.getPreviousSibling(),f=i.getNextSibling(),d=i.__prev,h=i.__next,g=i.__parent;if(En(i,!1,!0),null===u)c.__first=o;else {u.getWritable().__next=o;}if(l.__prev=d,null===f)c.__last=o;else {f.getWritable().__prev=o;}if(l.__next=h,l.__parent=g,c.__size=a,n&&(di(this)&&di(l)||t$2(139),this.getChildren().forEach((t=>{l.append(t);}))),lr(r)){cs(r);const t=r.anchor,e=r.focus;t.key===s&&sr(t,l),e.key===s&&sr(e,l);}return Zi()===s&&Yi(o),l}insertAfter(t,e=!0){Vr(),qs(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.getParent(),s=Tr();let o=!1,l=!1;if(null!==i){const e=t.getIndexWithinParent();if(Qi(r),lr(s)){const t=i.__key,n=s.anchor,r=s.focus;o="element"===n.type&&n.key===t&&n.offset===e+1,l="element"===r.type&&r.key===t&&r.offset===e+1;}}const c=this.getNextSibling(),a=this.getParentOrThrow().getWritable(),u=r.__key,f=n.__next;if(null===c)a.__last=u;else {c.getWritable().__prev=u;}if(a.__size++,n.__next=u,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,e&&lr(s)){const t=this.getIndexWithinParent();Nr(s,a,t+1);const e=a.__key;o&&s.anchor.set(e,t+2,"element"),l&&s.focus.set(e,t+2,"element");}return t}insertBefore(t,e=!0){Vr(),qs(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.__key;Qi(r);const s=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),l=n.__prev,c=this.getIndexWithinParent();if(null===s)o.__first=i;else {s.getWritable().__next=i;}o.__size++,n.__prev=i,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const a=Tr();if(e&&lr(a)){Nr(a,this.getParentOrThrow(),c);}return t}isParentRequired(){return !1}createParentElementNode(){return Ti()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){Vr();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(di(n))return n.select();if(!Xn(n)){const t=n.getIndexWithinParent()+1;return r.select(t,t)}return n.select(t,e)}selectNext(t,e){Vr();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(di(n))return n.select(0,0);if(!Xn(n)){const t=n.getIndexWithinParent();return r.select(t,t)}return n.select(t,e)}markDirty(){this.getWritable();}reconcileObservedMutation(t,e){this.markDirty();}}class Fn extends Pn{static getType(){return "linebreak"}static clone(t){return new Fn(t.__key)}constructor(t){super(t);}getTextContent(){return "\n"}createDOM(){return document.createElement("br")}updateDOM(){return !1}isInline(){return !0}static importDOM(){return {br:t=>function(t){const e=t.parentElement;if(null!==e&&so(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Mn(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&Mn(n))return !0}}return !1}(t)||function(t){const e=t.parentElement;if(null!==e&&so(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Mn(n))return !1;const r=e.lastChild;if(r===t||r.previousSibling===t&&Mn(r))return !0}return !1}(t)?null:{conversion:Ln,priority:0}}}static importJSON(t){return An().updateFromJSON(t)}}function Ln(t){return {node:An()}}function An(){return Us(new Fn)}function On(t){return t instanceof Fn}function Mn(t){return $i(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function In(t,e){return 16&e?"code":e&F$4?"mark":32&e?"sub":64&e?"sup":null}function Dn(t,e){return 1&e?"strong":2&e?"em":"span"}function zn(t,e,n,r,i){const s=r.classList;let o=Ts(i,"base");void 0!==o&&s.add(...o),o=Ts(i,"underlineStrikethrough");let l=!1;const c=e&w$6&&e&T$3;void 0!==o&&(n&w$6&&n&T$3?(l=!0,c||s.add(...o)):c&&s.remove(...o));for(const t in V$3){const r=V$3[t];if(o=Ts(i,t),void 0!==o)if(n&r){if(l&&("underline"===t||"strikethrough"===t)){e&r&&s.remove(...o);continue}e&r&&(!c||"underline"!==t)&&"strikethrough"!==t||s.add(...o);}else e&r&&s.remove(...o);}}function Bn(t,e,n){const r=e.firstChild,s=n.isComposing(),o=t+(s?B$4:"");if(null==r)e.textContent=o;else {const t=r.nodeValue;if(t!==o)if(s||i$1){const[e,n,i]=function(t,e){const n=t.length,r=e.length;let i=0,s=0;for(;i<n&&i<r&&t[i]===e[i];)i++;for(;s+i<n&&s+i<r&&t[n-s-1]===e[r-s-1];)s++;return [i,n-i-s,e.slice(i,r-s)]}(t,o);0!==n&&r.deleteData(e,n),r.insertData(e,i);}else r.nodeValue=o;}}function Wn(t,e,n,r,i,s){Bn(i,t,e);const o=s.theme.text;void 0!==o&&zn(0,0,r,t,o);}function Kn(t,e){const n=document.createElement(e);return n.appendChild(t),n}class Rn extends Pn{static getType(){return "text"}static clone(t){return new Rn(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail;}constructor(t="",e){super(e),this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0;}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return Q$3[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Zi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return !!(1&this.getLatest().__detail)}isUnmergeable(){return !!(2&this.getLatest().__detail)}hasFormat(t){const e=V$3[t];return !!(this.getFormat()&e)}isSimpleText(){return "text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(t,e){return qi(this.getLatest().__format,t,e)}canHaveFormat(){return !0}isInline(){return !0}createDOM(t,e){const n=this.__format,r=In(0,n),i=Dn(0,n),s=null===r?i:r,o=document.createElement(s);let l=o;this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(i),o.appendChild(l));Wn(l,this,0,n,this.__text,t);const c=this.__style;return ""!==c&&(o.style.cssText=c),o}updateDOM(e,n,r){const i=this.__text,s=e.__format,o=this.__format,l=In(0,s),c=In(0,o),a=Dn(0,s),u=Dn(0,o);if((null===l?a:l)!==(null===c?u:c))return !0;if(l===c&&a!==u){const e=n.firstChild;null==e&&t$2(48);const s=document.createElement(u);return Wn(s,this,0,o,i,r),n.replaceChild(s,e),!1}let f=n;null!==c&&null!==l&&(f=n.firstChild,null==f&&t$2(49)),Bn(i,f,this);const d=r.theme.text;void 0!==d&&s!==o&&zn(0,s,o,f,d);const h=e.__style,g=this.__style;return h!==g&&(n.style.cssText=g),!1}static importDOM(){return {"#text":()=>({conversion:Un,priority:0}),b:()=>({conversion:jn,priority:0}),code:()=>({conversion:Gn,priority:0}),em:()=>({conversion:Gn,priority:0}),i:()=>({conversion:Gn,priority:0}),mark:()=>({conversion:Gn,priority:0}),s:()=>({conversion:Gn,priority:0}),span:()=>({conversion:Jn,priority:0}),strong:()=>({conversion:Gn,priority:0}),sub:()=>({conversion:Gn,priority:0}),sup:()=>({conversion:Gn,priority:0}),u:()=>({conversion:Gn,priority:0})}}static importJSON(t){return Qn().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return eo(n)||t$2(132),n.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(n=Kn(n,"b")),this.hasFormat("italic")&&(n=Kn(n,"i")),this.hasFormat("strikethrough")&&(n=Kn(n,"s")),this.hasFormat("underline")&&(n=Kn(n,"u")),{element:n}}exportJSON(){return {detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?V$3[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?U$5[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=qi(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=G$4[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){Vr();let n=t,r=e;const i=Tr(),s=this.getTextContent(),o=this.__key;if("string"==typeof s){const t=s.length;void 0===n&&(n=t),void 0===r&&(r=t);}else n=0,r=0;if(!lr(i))return Sr(o,n,o,r,"text","text");{const t=Zi();t!==i.anchor.key&&t!==i.focus.key||Yi(o),i.setTextNodeRange(this,n,this,r);}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const i=this.getWritable(),s=i.__text,o=n.length;let l=t;l<0&&(l=o+l,l<0&&(l=0));const c=Tr();if(r&&lr(c)){const e=t+o;c.setTextNodeRange(i,e,i,e);}const a=s.slice(0,l)+n+s.slice(l+e);return i.__text=a,i}canInsertTextBefore(){return !0}canInsertTextAfter(){return !0}splitText(...t){Vr();const e=this.getLatest(),n=e.getTextContent();if(""===n)return [];const r=e.__key,i=Zi(),s=n.length;t.sort(((t,e)=>t-e)),t.push(s);const o=[],l=t.length;for(let e=0,r=0;e<s&&r<=l;r++){const i=t[r];i>e&&(o.push(n.slice(e,i)),e=i);}const c=o.length;if(1===c)return [e];const a=o[0],u=e.getParent();let f;const d=e.getFormat(),h=e.getStyle(),g=e.__detail;let _=!1,p=null,m=null;const y=Tr();if(lr(y)){const[t,e]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===t.type&&t.key===r&&(p=t),"text"===e.type&&e.key===r&&(m=e);}e.isSegmented()?(f=Qn(a),f.__format=d,f.__style=h,f.__detail=g,_=!0):(f=e.getWritable(),f.__text=a);const x=[f];for(let t=1;t<c;t++){const e=Qn(o[t]);e.__format=d,e.__style=h,e.__detail=g;const n=e.__key;i===r&&Yi(n),x.push(e);}const S=p?p.offset:null,v=m?m.offset:null;let C=0;for(const t of x){if(!p&&!m)break;const e=C+t.getTextContentSize();if(null!==p&&null!==S&&S<=e&&S>=C&&(p.set(t.getKey(),S-C,"text"),S<e&&(p=null)),null!==m&&null!==v&&v<=e&&v>=C){m.set(t.getKey(),v-C,"text");break}C=e;}if(null!==u){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&Xi(e);null!==n&&Xi(n);}(this);const t=u.getWritable(),e=this.getIndexWithinParent();_?(t.splice(e,0,x),this.remove()):t.splice(e,1,x),lr(y)&&Nr(y,u,e,c-1);}return x}mergeWithSibling(e){const n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t$2(50);const r=this.__key,i=e.__key,s=this.__text,o=s.length;Zi()===i&&Yi(r);const l=Tr();if(lr(l)){const t=l.anchor,s=l.focus;null!==t&&t.key===i&&Fr(t,n,r,e,o),null!==s&&s.key===i&&Fr(s,n,r,e,o);}const c=e.__text,a=n?c+s:s+c;this.setTextContent(a);const u=this.getWritable();return e.remove(),u}isTextEntity(){return !1}}function Jn(t){return {forChild:Yn(t.style),node:null}}function jn(t){const e=t,n="normal"===e.style.fontWeight;return {forChild:Yn(e.style,n?void 0:"bold"),node:null}}const $n=new WeakMap;function Vn(t){if(!eo(t))return !1;if("PRE"===t.nodeName)return !0;const e=t.style.whiteSpace;return "string"==typeof e&&e.startsWith("pre")}function Un(e){const n=e;null===e.parentElement&&t$2(129);let r=n.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=$n.get(n))&&!Vn(n);)r.push(n),n=n.parentNode;const i=void 0===e?n:e;for(let t=0;t<r.length;t++)$n.set(r[t],i);return i}(n)){const t=r.split(/(\r?\n|\t)/),e=[],n=t.length;for(let r=0;r<n;r++){const n=t[r];"\n"===n||"\r\n"===n?e.push(An()):"\t"===n?e.push(tr()):""!==n&&e.push(Qn(n));}return {node:e}}if(r=r.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===r)return {node:null};if(" "===r[0]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!1));){const n=t.textContent||"";if(n.length>0){/[ \t\n]$/.test(n)&&(r=r.slice(1)),e=!1;break}}e&&(r=r.slice(1));}if(" "===r[r.length-1]){let t=n,e=!0;for(;null!==t&&null!==(t=qn(t,!0));){if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){e=!1;break}}e&&(r=r.slice(0,r.length-1));}return ""===r?{node:null}:{node:Qn(r)}}function qn(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t;}if(n=t,eo(n)){const t=n.style.display;if(""===t&&!io(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if($i(n))return n;if("BR"===n.nodeName)return null}}const Hn={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Gn(t){const e=Hn[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:Yn(t.style,e),node:null}}function Qn(t=""){return Us(new Rn(t))}function Xn(t){return t instanceof Rn}function Yn(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i="700"===n||"bold"===n,s=r.includes("line-through"),o="italic"===t.fontStyle,l=r.includes("underline"),c=t.verticalAlign;return t=>Xn(t)?(i&&!t.hasFormat("bold")&&t.toggleFormat("bold"),s&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),o&&!t.hasFormat("italic")&&t.toggleFormat("italic"),l&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==c||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==c||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class Zn extends Rn{static getType(){return "tab"}static clone(t){return new Zn(t.__key)}constructor(t){super("\t",t),this.__detail=2;}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),n=Ts(t.theme,"tab");if(void 0!==n){e.classList.add(...n);}return e}static importJSON(t){return tr().updateFromJSON(t)}setTextContent(e){return "\t"!==e&&""!==e&&t$2(126),super.setTextContent(e)}setDetail(e){return 2!==e&&t$2(127),this}setMode(e){return "normal"!==e&&t$2(128),this}canInsertTextBefore(){return !1}canInsertTextAfter(){return !1}}function tr(){return Us(new Zn)}function er(t){return t instanceof Zn}class nr{constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n;}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){if(this.key===t.key)return this.offset<t.offset;return Vo(sl(Qo(this,"next")),sl(Qo(t,"next")))<0}getNode(){const e=ts(this.key);return null===e&&t$2(20),e}set(t,e,n,r){const i=this._selection,s=this.key;r&&this.key===t&&this.offset===e&&this.type===n||(this.key=t,this.offset=e,this.type=n,$r()||(Zi()===s&&Yi(t),null!==i&&(i.setCachedNodes(null),i.dirty=!0)));}}function rr(t,e,n){return new nr(t,e,n)}function ir(t,e){let n=e.__key,r=t.offset,i="element";if(Xn(e)){i="text";const t=e.getTextContentSize();r>t&&(r=t);}else if(!di(e)){const t=e.getNextSibling();if(Xn(t))n=t.__key,r=0,i="text";else {const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1);}}t.set(n,r,i);}function sr(t,e){if(di(e)){const n=e.getLastDescendant();di(n)||Xn(n)?ir(t,n):ir(t,e);}else ir(t,e);}class or{constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1;}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t;}is(t){if(!ar(t))return !1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every((t=>n.has(t)))}isCollapsed(){return !1}isBackward(){return !1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null;}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null;}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null;}has(t){return this._nodes.has(t)}clone(){return new or(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),n=e.length,r=e[n-1];let i;if(Xn(r))i=r.select();else {const t=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(t,t);}i.insertNodes(t);for(let t=0;t<n;t++)e[t].remove();}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this._nodes,n=[];for(const t of e){const e=ts(t);null!==e&&n.push(e);}return $r()||(this._cachedNodes=n),n}getTextContent(){const t=this.getNodes();let e="";for(let n=0;n<t.length;n++)e+=t[n].getTextContent();return e}}function lr(t){return t instanceof cr}class cr{constructor(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1;}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t;}is(t){return !!lr(t)&&(this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=function(t){const e=[],[n,r]=t.getTextSlices();n&&e.push(n.caret.origin);const i=new Set,s=new Set;for(const n of t)if(Eo(n)){const{origin:t}=n;0===e.length?i.add(t):(s.add(t),e.push(t));}else {const{origin:t}=n;di(t)&&s.has(t)||e.push(t);}r&&e.push(r.caret.origin);if(No(t.focus)&&di(t.focus.origin)&&null===t.focus.getNodeAtCaret())for(let n=Do(t.focus.origin,"previous");Eo(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(e[e.length-1]);n=Bo(n))i.delete(n.origin),e.pop();for(;e.length>1;){const t=e[e.length-1];if(!di(t)||s.has(t)||t.isEmpty()||i.has(t))break;e.pop();}if(0===e.length&&t.isCollapsed()){const n=sl(t.anchor),r=sl(t.anchor.getFlipped()),i=t=>To(t)?t.origin:t.getNodeAtCaret(),s=i(n)||i(r)||(t.anchor.getNodeAtCaret()?n.origin:r.origin);e.push(s);}return e}(cl(tl(this),"next"));return $r()||(this._cachedNodes=e),e}setTextNodeRange(t,e,n,r){this.anchor.set(t.__key,e,"text"),this.focus.set(n.__key,r,"text");}getTextContent(){const t=this.getNodes();if(0===t.length)return "";const e=t[0],n=t[t.length-1],r=this.anchor,i=this.focus,s=r.isBefore(i),[o,l]=fr(this);let c="",a=!0;for(let u=0;u<t.length;u++){const f=t[u];if(di(f)&&!f.isInline())a||(c+="\n"),a=!f.isEmpty();else if(a=!1,Xn(f)){let t=f.getTextContent();f===e?f===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(t=o<l?t.slice(o,l):t.slice(l,o)):t=s?t.slice(o):t.slice(l):f===n&&(t=s?t.slice(0,l):t.slice(0,o)),c+=t;}else !_i(f)&&!On(f)||f===n&&this.isCollapsed()||(c+=f.getTextContent());}return c}applyDOMRange(t){const e=Hr(),n=e.getEditorState()._selection,r=yr(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;const[i,s]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),Ct$2(this);}clone(){const t=this.anchor,e=this.focus;return new cr(rr(t.key,t.offset,t.type),rr(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=qi(this.format,t,null),this.dirty=!0;}setStyle(t){this.style=t,this.dirty=!0;}hasFormat(t){const e=V$3[t];return !!(this.format&e)}insertRawText(t){const e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){const r=e[t];"\n"===r||"\r\n"===r?n.push(An()):"\t"===r?n.push(tr()):n.push(Qn(r));}this.insertNodes(n);}insertText(e){const n=this.anchor,r=this.focus,i=this.format,s=this.style;let o=n,l=r;!this.isCollapsed()&&r.isBefore(n)&&(o=r,l=n),"element"===o.type&&function(t,e,n,r){const i=t.getNode(),s=i.getChildAtIndex(t.offset),o=Qn(),l=mi(i)?Ti().append(o):o;o.setFormat(n),o.setStyle(r),null===s?i.append(l):s.insertBefore(l),t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text");}(o,l,i,s),"element"===l.type&&Xo(l,sl(Qo(l,"next")));const c=o.offset;let a=l.offset;const u=this.getNodes(),f=u.length;let d=u[0];Xn(d)||t$2(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let _=u[f-1];if(1===f&&"element"===l.type&&(a=h,l.set(o.key,a,"text")),this.isCollapsed()&&c===h&&(d.isSegmented()||d.isToken()||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Xn(t)&&t.canInsertTextBefore()&&!ji(t)||(t=Qn(),t.setFormat(i),t.setStyle(s),g.canInsertTextAfter()?d.insertAfter(t):g.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===c&&(d.isSegmented()||d.isToken()||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Xn(t)&&!ji(t)||(t=Qn(),t.setFormat(i),g.canInsertTextBefore()?d.insertBefore(t):g.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&c!==h){const t=Qn(d.getTextContent());t.setFormat(i),d.replace(t),d=t;}else if(!this.isCollapsed()&&""!==e){const t=_.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||di(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),mr(this.anchor,this.focus,null),void this.insertText(e)}if(1===f){if(d.isToken()){const t=Qn(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(c!==a||t===i&&n===s){if(er(d)){const t=Qn(e);return t.setFormat(i),t.setStyle(s),t.select(),void d.replace(t)}}else {if(""!==d.getTextContent()){const t=Qn(e);if(t.setFormat(i),t.setStyle(s),t.select(),0===c)d.insertBefore(t,!1);else {const[e]=d.splitText(c);e.insertAfter(t,!1);}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(i),d.setStyle(s);}const r=a-c;d=d.spliceText(c,r,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(d.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n));}else {const t=new Set([...d.getParentKeys(),..._.getParentKeys()]),n=di(d)?d:d.getParentOrThrow();let r=di(_)?_:_.getParentOrThrow(),i=_;if(!n.is(r)&&r.isInline())do{i=r,r=r.getParentOrThrow();}while(r.isInline());if("text"===l.type&&(0!==a||""===_.getTextContent())||"element"===l.type&&_.getIndexWithinParent()<a)if(Xn(_)&&!_.isToken()&&a!==_.getTextContentSize()){if(_.isSegmented()){const t=Qn(_.getTextContent());_.replace(t),_=t;}mi(l.getNode())||"text"!==l.type||(_=_.spliceText(0,a,"")),t.add(_.__key);}else {const t=_.getParentOrThrow();t.canBeEmpty()||1!==t.getChildrenSize()?_.remove():t.remove();}else t.add(_.__key);const s=r.getChildren(),o=new Set(u),g=n.is(r),p=n.isInline()&&null===d.getNextSibling()?n:d;for(let t=s.length-1;t>=0;t--){const e=s[t];if(e.is(d)||di(e)&&e.isParentOf(d))break;e.isAttached()&&(!o.has(e)||e.is(i)?g||p.insertAfter(e,!1):e.remove());}if(!g){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent();}}if(d.isToken())if(c===h)d.select();else {const t=Qn(e);t.select(),d.replace(t);}else d=d.spliceText(c,h-c,e,!0),""===d.getTextContent()?d.remove():d.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e<f;e++){const n=u[e],r=n.__key;t.has(r)||n.remove();}}}removeText(){const t=Tr()===this;Zo(this,il(tl(this))),t&&Tr()!==this&&cs(this);}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void Yi(null);const n=this.getNodes(),r=[];for(const t of n)Xn(t)&&r.push(t);const i=e=>{n.forEach((n=>{if(di(n)){const r=n.getFormatFlags(t,e);n.setTextFormat(r);}}));},s=r.length;if(0===s)return this.toggleFormat(t),Yi(null),void i(e);const o=this.anchor,l=this.focus,c=this.isBackward(),a=c?l:o,u=c?o:l;let f=0,d=r[0],h="element"===a.type?0:a.offset;if("text"===a.type&&h===d.getTextContentSize()&&(f=1,d=r[1],h=0),null==d)return;const g=d.getFormatFlags(t,e);i(g);const _=s-1;let p=r[_];const m="text"===u.type?u.offset:p.getTextContentSize();if(d.is(p)){if(h===m)return;if(ji(d)||0===h&&m===d.getTextContentSize())d.setFormat(g);else {const t=d.splitText(h,m),e=0===h?t[0]:t[1];e.setFormat(g),"text"===a.type&&a.set(e.__key,0,"text"),"text"===u.type&&u.set(e.__key,m-h,"text");}return void(this.format=g)}0===h||ji(d)||([,d]=d.splitText(h),h=0),d.setFormat(g);const y=p.getFormatFlags(t,g);m>0&&(m===p.getTextContentSize()||ji(p)||([p]=p.splitText(m)),p.setFormat(y));for(let e=f+1;e<_;e++){const n=r[e],i=n.getFormatFlags(t,y);n.setFormat(i);}"text"===a.type&&a.set(d.__key,h,"text"),"text"===u.type&&u.set(p.__key,m,"text"),this.format=g|y;}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const n=Tr();return lr(n)||t$2(134),n.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=lo(n,oo),i=e[e.length-1];if(di(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else {const t=Ir(this);r.splice(t,0,e),i.selectEnd();}return}if(!e.some((t=>(di(t)||_i(t))&&!t.isInline()))){di(r)||t$2(211,n.constructor.name,n.getType());const s=Ir(this);return r.splice(s,0,e),void i.selectEnd()}const s=function(t){const e=Ti();let n=null;for(let r=0;r<t.length;r++){const i=t[r],s=On(i);if(s||_i(i)&&i.isInline()||di(i)&&i.isInline()||Xn(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),e.append(n),s))continue;null!==n&&n.append(i);}else e.append(i),n=null;}return e}(e),o=s.getLastDescendant(),l=s.getChildren(),c=!di(r)||!r.isEmpty()?this.insertParagraph():null,a=l[l.length-1];let u=l[0];var f;di(f=u)&&oo(f)&&!f.isEmpty()&&di(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(di(r)||t$2(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=l[1]),u&&(null===r&&t$2(212,n.constructor.name,n.getType()),function(e,n,r){const i=n.getParentOrThrow().getLastChild();let s=n;const o=[n];for(;s!==i;)s.getNextSibling()||t$2(140),s=s.getNextSibling(),o.push(s);let l=e;for(const t of o)l=l.insertAfter(t);}(r,u));const d=lo(o,oo);c&&di(d)&&(c.canMergeWhenEmpty()||oo(a))&&(d.append(...c.getChildren()),c.remove()),di(r)&&r.isEmpty()&&r.remove(),o.selectEnd();const h=di(r)?r.getLastChild():null;On(h)&&d!==r&&h.remove();}insertParagraph(){if("root"===this.anchor.key){const t=Ti();return os().splice(this.anchor.offset,0,[t]),t.select(),t}const e=Ir(this),n=lo(this.anchor.getNode(),oo);di(n)||t$2(213);const r=n.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(t){const e=An();if(this.insertNodes([e]),t){const t=e.getParentOrThrow(),n=e.getIndexWithinParent();t.select(n,n);}}extract(){const t=this.getNodes(),e=t.length,n=e-1,r=this.anchor,i=this.focus;let s=t[0],o=t[n];const[l,c]=fr(this);if(0===e)return [];if(1===e){if(Xn(s)&&!this.isCollapsed()){const t=l>c?c:l,e=l>c?l:c,n=s.splitText(t,e),r=0===t?n[0]:n[1];return null!=r?[r]:[]}return [s]}const a=r.isBefore(i);if(Xn(s)){const e=a?l:c;e===s.getTextContentSize()?t.shift():0!==e&&([,s]=s.splitText(e),t[0]=s);}if(Xn(o)){const e=o.getTextContent().length,r=a?c:l;0===r?t.pop():r!==e&&([o]=o.splitText(r),t[n]=o);}return t}modify(t,e,n){if(zr(this,t,e,n))return;const r="move"===t,i=Hr(),s=Xs(Rs(i));if(!s)return;const o=i._blockCursorElement,l=i._rootElement,c=this.focus.getNode();if(null===l||null===o||!di(c)||c.isInline()||c.canBeEmpty()||Qs(o,i,l),this.dirty){let t=Os(i,this.anchor.key),e=Os(i,this.focus.key);"text"===this.anchor.type&&(t=Ui(t)),"text"===this.focus.type&&(e=Ui(e)),t&&e&&Lr(s,t,this.anchor.offset,e,this.focus.offset);}if(function(t,e,n,r){t.modify(e,n,r);}(s,t,e?"backward":"forward",n),s.rangeCount>0){const t=s.getRangeAt(0),n=this.anchor.getNode(),i=mi(n)?n:js(n);if(this.applyDOMRange(t),this.dirty=!0,!r){const n=this.getNodes(),r=[];let o=!1;for(let t=0;t<n.length;t++){const e=n[t];Ws(e,i)?r.push(e):o=!0;}if(o&&r.length>0)if(e){const t=r[0];di(t)?t.selectStart():t.getParentOrThrow().selectStart();}else {const t=r[r.length-1];di(t)?t.selectEnd():t.getParentOrThrow().selectEnd();}s.anchorNode===t.startContainer&&s.anchorOffset===t.startOffset||function(t){const e=t.focus,n=t.anchor,r=n.key,i=n.offset,s=n.type;n.set(e.key,e.offset,e.type,!0),e.set(r,i,s,!0);}(this);}}"lineboundary"===n&&zr(this,t,e,n,"decorators");}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&di(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(di(n)&&n.isShadowRoot())return !0}return !1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let n=e.getNode();if(this.forwardDeletion(e,n,t))return;const r=Jo(Qo(e,t?"previous":"next"));if(r.getTextSlices().every((t=>null===t||0===t.distance))){let t={type:"initial"};for(const e of r.iterNodeCarets("shadowRoot"))if(Eo(e))if(e.origin.isInline());else {if(e.origin.isShadowRoot()){if("merge-block"===t.type)break;if(di(r.anchor.origin)&&r.anchor.origin.isEmpty()){const t=sl(e);Zo(this,jo(t,t)),r.anchor.origin.remove();}return}"merge-next-block"!==t.type&&"merge-block"!==t.type||(t={block:t.block,caret:e,type:"merge-block"});}else {if("merge-block"===t.type)break;if(No(e)){if(di(e.origin)){if(e.origin.isInline()){if(!e.origin.isParentOf(r.anchor.origin))break}else t={block:e.origin,type:"merge-next-block"};continue}if(_i(e.origin)){if(e.origin.isIsolated());else if("merge-next-block"===t.type&&(e.origin.isKeyboardSelectable()||!e.origin.isInline())&&di(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const t=Cr();t.add(e.origin.getKey()),cs(t);}else e.origin.remove();return}break}}if("merge-block"===t.type){const{caret:e,block:n}=t;return Zo(this,jo(!e.origin.isEmpty()&&n.isEmpty()?el(Ao(n,e.direction)):r.anchor,e)),this.removeText()}}const i=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===e.offset&&dr(this,e.getNode()))return}else {const r="text"===i.type?i.getNode():null;if(n="text"===e.type?e.getNode():null,null!==r&&r.isSegmented()){const e=i.offset,s=r.getTextContentSize();if(r.is(n)||t&&e!==s||!t&&0!==e)return void gr(r,t,e)}else if(null!==n&&n.isSegmented()){const i=e.offset,s=n.getTextContentSize();if(n.is(r)||t&&0!==i||!t&&i!==s)return void gr(n,t,i)}!function(t,e){const n=t.anchor,r=t.focus,i=n.getNode(),s=r.getNode();if(i===s&&"text"===n.type&&"text"===r.type){const t=n.offset,s=r.offset,o=t<s,l=o?t:s,c=o?s:t,a=c-1;if(l!==a){(function(t){return !(fs(t)||hr(t))})(i.getTextContent().slice(l,c))&&(e?r.set(r.key,a,r.type):n.set(n.key,a,n.type));}}}(this,t);}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const t=this.anchor.getNode();t.isEmpty()&&mi(t.getParent())&&null===t.getPreviousSibling()&&dr(this,t);}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText();}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,n=e.getNode();if(this.forwardDeletion(e,n,t))return;this.modify("extend",t,"word");}this.removeText();}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return [this.anchor,this.focus]}}function ar(t){return t instanceof or}function ur(t){const e=t.offset;if("text"===t.type)return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function fr(t){const e=t.getStartEndPoints();if(null===e)return [0,0];const[n,r]=e;return "element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[ur(n),ur(r)]}function dr(t,e){for(let n=e;n;n=n.getParent()){if(di(n)){if(n.collapseAtStart(t))return !0;if($s(n))break}if(n.getPreviousSibling())break}return !1}const hr=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch(t){}return ()=>!1})();function gr(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),s=i.length;let o=0,l=0;for(let t=0;t<s;t++){const r=t===s-1;if(l=o,o+=i[t].length,e&&o===n||o>n||r){i.splice(t,1),r&&(l=void 0);break}}const c=i.join("").trim();""===c?r.remove():(r.setTextContent(c),r.select(l,l));}function _r(e,n,r,i){let s,o=n;if(eo(e)){let l=!1;const c=e.childNodes,a=c.length,u=i._blockCursorElement;o===a&&(l=!0,o=a-1);let f=c[o],d=!1;if(f===u)f=c[o+1],d=!0;else if(null!==u){const t=u.parentNode;if(e===t){n>Array.prototype.indexOf.call(t.children,u)&&o--;}}if(s=as(f),Xn(s))o=us(s,l);else {let c=as(e);if(null===c)return null;if(di(c)){const a=i.getElementByKey(c.getKey());null===a&&t$2(214);const u=c.getDOMSlot(a);[c,o]=u.resolveChildIndex(c,a,e,n),di(c)||t$2(215),l&&o>=c.getChildrenSize()&&(o=Math.max(0,c.getChildrenSize()-1));let f=c.getChildAtIndex(o);if(di(f)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(f,0,r)){const t=l?f.getLastDescendant():f.getFirstDescendant();null===t?c=f:(f=t,c=di(f)?f:f.getParentOrThrow()),o=0;}Xn(f)?(s=f,c=null,o=us(f,l)):f!==c&&l&&!d&&(di(c)||t$2(216),o=Math.min(c.getChildrenSize(),o+1));}else {const t=c.getIndexWithinParent();o=0===n&&_i(c)&&as(e)===c?t:t+1,c=c.getParentOrThrow();}if(di(c))return rr(c.__key,o,"element")}}else s=as(e);return Xn(s)?rr(s.__key,o,"text"):null}function pr(t,e,n){const r=t.offset,i=t.getNode();if(0===r){const r=i.getPreviousSibling(),s=i.getParent();if(e){if((n||!e)&&null===r&&di(s)&&s.isInline()){const e=s.getPreviousSibling();Xn(e)&&t.set(e.__key,e.getTextContent().length,"text");}}else di(r)&&!n&&r.isInline()?t.set(r.__key,r.getChildrenSize(),"element"):Xn(r)&&t.set(r.__key,r.getTextContent().length,"text");}else if(r===i.getTextContent().length){const r=i.getNextSibling(),s=i.getParent();if(e&&di(r)&&r.isInline())t.set(r.__key,0,"element");else if((n||e)&&null===r&&di(s)&&s.isInline()&&!s.canInsertTextAfter()){const e=s.getNextSibling();Xn(e)&&t.set(e.__key,0,"text");}}}function mr(t,e,n){if("text"===t.type&&"text"===e.type){const r=t.isBefore(e),i=t.is(e);pr(t,r,i),pr(e,!r,i),i&&e.set(t.key,t.offset,t.type);const s=Hr();if(s.isComposing()&&s._compositionKey!==t.key&&lr(n)){const r=n.anchor,i=n.focus;t.set(r.key,r.offset,r.type,!0),e.set(i.key,i.offset,i.type,!0);}}}function yr(t,e,n,r,i,s){if(null===t||null===n||!Wi(i,t,n))return null;const o=_r(t,e,lr(s)?s.anchor:null,i);if(null===o)return null;const l=_r(n,r,lr(s)?s.focus:null,i);if(null===l)return null;if("element"===o.type&&"element"===l.type){const e=as(t),r=as(n);if(_i(e)&&_i(r))return null}return mr(o,l,s),[o,l]}function xr(t){return di(t)&&!t.isInline()}function Sr(t,e,n,r,i,s){const o=qr(),l=new cr(rr(t,e,i),rr(n,r,s),0,"");return l.dirty=!0,o._selection=l,l}function vr(){const t=rr("root",0,"element"),e=rr("root",0,"element");return new cr(t,e,0,"")}function Cr(){return new or(new Set)}function kr(t,e){return br(null,t,e,null)}function br(t,e,n,r){const i=n._window;if(null===i)return null;const s=r||i.event,o=s?s.type:void 0,l="selectionchange"===o,c=!tt$2&&(l||"beforeinput"===o||"compositionstart"===o||"compositionend"===o||"click"===o&&s&&3===s.detail||"drop"===o||void 0===o);let a,u,f,d;if(lr(t)&&!c)return t.clone();if(null===e)return null;if(a=e.anchorNode,u=e.focusNode,f=e.anchorOffset,d=e.focusOffset,l&&lr(t)&&!Wi(n,a,u))return t.clone();const h=yr(a,f,u,d,n,t);if(null===h)return null;const[g,_]=h;return new cr(g,_,lr(t)?t.format:0,lr(t)?t.style:"")}function Tr(){return qr()._selection}function wr(){return Hr()._editorState._selection}function Nr(t,e,n,r=1){const i=t.anchor,s=t.focus,o=i.getNode(),l=s.getNode();if(!e.is(o)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const e=i.offset;if(n<=e&&r>0||n<e&&r<0){const n=Math.max(0,e+r);i.set(c,n,"element"),s.set(c,n,"element"),Er(t);}}else {const o=t.isBackward(),l=o?s:i,a=l.getNode(),u=o?i:s,f=u.getNode();if(e.is(a)){const t=l.offset;(n<=t&&r>0||n<t&&r<0)&&l.set(c,Math.max(0,t+r),"element");}if(e.is(f)){const t=u.offset;(n<=t&&r>0||n<t&&r<0)&&u.set(c,Math.max(0,t+r),"element");}}Er(t);}function Er(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,s=e.getNode(),o=r.getNode();if(t.isCollapsed()){if(!di(s))return;const t=s.getChildrenSize(),i=n>=t,o=i?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(Xn(o)){let t=0;i&&(t=o.getTextContentSize()),e.set(o.__key,t,"text"),r.set(o.__key,t,"text");}}else {if(di(s)){const t=s.getChildrenSize(),r=n>=t,i=r?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(Xn(i)){let t=0;r&&(t=i.getTextContentSize()),e.set(i.__key,t,"text");}}if(di(o)){const t=o.getChildrenSize(),e=i>=t,n=e?o.getChildAtIndex(t-1):o.getChildAtIndex(i);if(Xn(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text");}}}}function Pr(t,e,n,r,i){let s=null,o=0,l=null;null!==r?(s=r.__key,Xn(r)?(o=r.getTextContentSize(),l="text"):di(r)&&(o=r.getChildrenSize(),l="element")):null!==i&&(s=i.__key,Xn(i)?l="text":di(i)&&(l="element")),null!==s&&null!==l?t.set(s,o,l):(o=e.getIndexWithinParent(),-1===o&&(o=n.getChildrenSize()),t.set(n.__key,o,"element"));}function Fr(t,e,n,r,i){"text"===t.type?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element");}function Lr(t,e,n,r,i){try{t.setBaseAndExtent(e,n,r,i);}catch(t){}}function Ar(t,e,n,r,i,s,o){const l=r.anchorNode,c=r.focusNode,a=r.anchorOffset,u=r.focusOffset,f=document.activeElement;if(i.has("collaboration")&&f!==s||null!==f&&Bi(f))return;if(!lr(e))return void(null!==t&&Wi(n,l,c)&&r.removeAllRanges());const d=e.anchor,h=e.focus,g=d.key,_=h.key,p=Os(n,g),m=Os(n,_),y=d.offset,x=h.offset,S=e.format,v=e.style,C=e.isCollapsed();let k=p,b=m,T=!1;if("text"===d.type){k=Ui(p);const t=d.getNode();T=t.getFormat()!==S||t.getStyle()!==v;}else lr(t)&&"text"===t.anchor.type&&(T=!0);var w,N,E,P,F;if(("text"===h.type&&(b=Ui(m)),null!==k&&null!==b)&&(C&&(null===t||T||lr(t)&&(t.format!==S||t.style!==v))&&(w=S,N=v,E=y,P=g,F=performance.now(),gn=[w,N,E,P,F]),a!==y||u!==x||l!==k||c!==b||"Range"===r.type&&C||(null!==f&&s.contains(f)||s.focus({preventScroll:!0}),"element"===d.type))){if(Lr(r,k,y,b,x),!i.has("skip-scroll-into-view")&&e.isCollapsed()&&null!==s&&s===document.activeElement){const t=lr(e)&&"element"===e.anchor.type?k.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==t){let e;if(t instanceof Text){const n=document.createRange();n.selectNode(t),e=n.getBoundingClientRect();}else e=t.getBoundingClientRect();!function(t,e,n){const r=Is(n),i=Ks(r);if(null===r||null===i)return;let{top:s,bottom:o}=e,l=0,c=0,a=n;for(;null!==a;){const e=a===r.body;if(e)l=0,c=Rs(t).innerHeight;else {const t=a.getBoundingClientRect();l=t.top,c=t.bottom;}let n=0;if(s<l?n=-(l-s):o>c&&(n=o-c),0!==n)if(e)i.scrollBy(0,n);else {const t=a.scrollTop;a.scrollTop+=n;const e=a.scrollTop-t;s-=e,o-=e;}if(e)break;a=Ms(a);}}(n,e,s);}}ln=!0;}}function Or(t){let e=Tr()||wr();null===e&&(e=os().selectEnd()),e.insertNodes(t);}function Mr(){const t=Tr();return null===t?"":t.getTextContent()}function Ir(e){let n=e;e.isCollapsed()||n.removeText();const r=Tr();lr(r)&&(n=r),lr(n)||t$2(161);const i=n.anchor;let s=i.getNode(),o=i.offset;for(;!oo(s);){const t=s;if([s,o]=Dr(s,o),t.is(s))break}return o}function Dr(t,e){const n=t.getParent();if(!n){const t=Ti();return os().append(t),t.select(),[os(),0]}if(Xn(t)){const r=t.splitText(e);if(0===r.length)return [n,t.getIndexWithinParent()];const i=0===e?0:1;return [n,r[0].getIndexWithinParent()+i]}if(!di(t)||0===e)return [n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new cr(rr(t.__key,e,"element"),rr(t.__key,e,"element"),0,""),i=t.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings());}return [n,t.getIndexWithinParent()+1]}function zr(t,e,n,r,i="decorators-and-blocks"){if("move"===e&&"character"===r&&!t.isCollapsed()){const[e,r]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return r.set(e.key,e.offset,e.type),!0}const s=Qo(t.focus,n?"previous":"next"),o="lineboundary"===r,l="move"===e;let c=s,a="decorators-and-blocks"===i;if(!ol(c)){for(const t of c){a=!1;const{origin:e}=t;if(!_i(e)||e.isIsolated()||(c=t,!o||!e.isInline()))break}if(a)for(const t of Jo(s).iterNodeCarets("extend"===e?"shadowRoot":"root")){if(Eo(t))t.origin.isInline()||(c=t);else {if(di(t.origin))continue;_i(t.origin)&&!t.origin.isInline()&&(c=t);}break}}if(c===s)return !1;if(l&&!o&&_i(c.origin)&&c.origin.isKeyboardSelectable()){const t=Cr();return t.add(c.origin.getKey()),cs(t),!0}return c=sl(c),l&&Xo(t.anchor,c),Xo(t.focus,c),a||!o}let Br=null,Wr=null,Kr=!1,Rr=!1,Jr=0;const jr={characterData:!0,childList:!0,subtree:!0};function $r(){return Kr||null!==Br&&Br._readOnly}function Vr(){Kr&&t$2(13);}function Ur(){Jr>99&&t$2(14);}function qr(){return null===Br&&t$2(195,Gr()),Br}function Hr(){return null===Wr&&t$2(196,Gr()),Wr}function Gr(){let t=0;const e=new Set,n=Mi.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const i=Ji(r);if(Ki(i))t++;else if(i){let t=String(i.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t);}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function Qr(){return Wr}function Xr(e,n,r){const i=n.__type,s=function(e,n){const r=e._nodes.get(n);void 0===r&&t$2(30,n);return r}(e,i);let o=r.get(i);void 0===o&&(o=Array.from(s.transforms),r.set(i,o));const l=o.length;for(let t=0;t<l&&(o[t](n),n.isAttached());t++);}function Yr(t,e){return void 0!==t&&t.__key!==e&&t.isAttached()}function Zr(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const t of r)n.add(t);}function ti(t){return ei(t,Hr()._nodes)}function ei(e,n){const r=e.type,i=n.get(r);void 0===i&&t$2(17,r);const s=i.klass;e.type!==s.getType()&&t$2(18,s.name);const o=s.importJSON(e),l=e.children;if(di(o)&&Array.isArray(l))for(let t=0;t<l.length;t++){const e=ei(l[t],n);o.append(e);}return o}function ni(t,e,n){const r=Br,i=Kr,s=Wr;Br=e,Kr=!0,Wr=t;try{return n()}finally{Br=r,Kr=i,Wr=s;}}function ri(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||null===r;if(null===n)return;const s=t._editorState,o=s._selection,l=n._selection,c=t._dirtyType!==m$6,a=Br,u=Kr,f=Wr,h=t._updating,g=t._observer;let _=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&null!==g){Wr=t,Br=n,Kr=!1,t._updating=!0;try{const e=t._dirtyType,r=t._dirtyElements,i=t._dirtyLeaves;g.disconnect(),_=ie(s,n,t,e,r,i);}catch(e){if(e instanceof Error&&t._onError(e),Rr)throw e;return Ai(t,null,r,n),at$1(t),t._dirtyType=x$8,Rr=!0,ri(t,s),void(Rr=!1)}finally{g.observe(r,jr),t._updating=h,Br=a,Kr=u,Wr=f;}}n._readOnly||(n._readOnly=!0);const p=t._dirtyLeaves,y=t._dirtyElements,S=t._normalizedNodes,v=t._updateTags,C=t._deferred;c&&(t._dirtyType=m$6,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(t,e){const n=t._decorators;let r=t._pendingDecorators||n;const i=e._nodeMap;let s;for(s in r)i.has(s)||(r===n&&(r=is(t)),delete r[s]);}(t,n);const k=i?null:Xs(Rs(t));if(t._editable&&null!==k&&(c||null===l||l.dirty)&&null!==r&&!v.has("skip-dom-selection")){Wr=t,Br=n;try{if(null!==g&&g.disconnect(),c||null===l||l.dirty){const e=t._blockCursorElement;null!==e&&Qs(e,t,r),Ar(o,l,t,k,v,r);}!function(t,e,n){let r=t._blockCursorElement;if(lr(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){const i=n.anchor,s=i.getNode(),o=i.offset;let l=!1,c=null;if(o===s.getChildrenSize()){Gs(s.getChildAtIndex(o-1))&&(l=!0);}else {const e=s.getChildAtIndex(o);if(null!==e&&Gs(e)){const n=e.getPreviousSibling();(null===n||Gs(n))&&(l=!0,c=t.getElementByKey(e.__key));}}if(l){const n=t.getElementByKey(s.__key);return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=d$5(r);r=e.blockCursor=t;}void 0!==r&&n.classList.add(...r);}return n}(t._config)),e.style.caretColor="transparent",void(null===c?n.appendChild(r):n.insertBefore(r,c))}}null!==r&&Qs(r,t,e);}(t,r,l);}finally{null!==g&&g.observe(r,jr),Wr=f,Br=a;}}null!==_&&function(t,e,n,r,i){const s=Array.from(t._listeners.mutation),o=s.length;for(let t=0;t<o;t++){const[o,l]=s[t],c=e.get(l);void 0!==c&&o(c,{dirtyLeaves:r,prevEditorState:i,updateTags:n});}}(t,_,v,p,s),lr(l)||null===l||null!==o&&o.is(l)||t.dispatchCommand(le,void 0);const b=t._pendingDecorators;null!==b&&(t._decorators=b,t._pendingDecorators=null,ii("decorator",t,!0,b)),function(t,e,n){const r=ss(e),i=ss(n);r!==i&&ii("textcontent",t,!0,i);}(t,e||s,n),ii("update",t,!0,{dirtyElements:y,dirtyLeaves:p,editorState:n,normalizedNodes:S,prevEditorState:e||s,tags:v}),function(t,e){if(t._deferred=[],0!==e.length){const n=t._updating;t._updating=!0;try{for(let t=0;t<e.length;t++)e[t]();}finally{t._updating=n;}}}(t,C),function(t){const e=t._updates;if(0!==e.length){const n=e.shift();if(n){const[e,r]=n;li(t,e,r);}}}(t);}function ii(t,e,n,...r){const i=e._updating;e._updating=n;try{const n=Array.from(e._listeners[t]);for(let t=0;t<n.length;t++)n[t].apply(null,r);}finally{e._updating=i;}}function si(t,e,n){if(!1===t._updating||Wr!==t){let r=!1;return t.update((()=>{r=si(t,e,n);})),r}const r=ds(t);for(let i=4;i>=0;i--)for(let s=0;s<r.length;s++){const o=r[s]._commands.get(e);if(void 0!==o){const e=o[i];if(void 0!==e){const r=Array.from(e),i=r.length;for(let e=0;e<i;e++)if(!0===r[e](n,t))return !0}}}return !1}function oi(e,n){const r=e._updates;let i=n||!1;for(;0!==r.length;){const n=r.shift();if(n){const[r,s]=n;let o;if(void 0!==s){if(o=s.onUpdate,s.skipTransforms&&(i=!0),s.discrete){const n=e._pendingEditorState;null===n&&t$2(191),n._flushSync=!0;}o&&e._deferred.push(o),Zr(e,s.tag);}r();}}return i}function li(e,n,r){const i=e._updateTags;let s,o=!1,l=!1;void 0!==r&&(s=r.onUpdate,Zr(e,r.tag),o=r.skipTransforms||!1,l=r.discrete||!1),s&&e._deferred.push(s);const c=e._editorState;let a=e._pendingEditorState,u=!1;(null===a||a._readOnly)&&(a=e._pendingEditorState=yi(a||c),u=!0),a._flushSync=l;const f=Br,d=Kr,h=Wr,g=e._updating;Br=a,Kr=!1,e._updating=!0,Wr=e;const _=e._headless||null===e.getRootElement();try{u&&(_?null!==c._selection&&(a._selection=c._selection.clone()):a._selection=function(t,e){const n=t.getEditorState()._selection,r=Xs(Rs(t));return lr(n)||null==n?br(n,r,t,e):n.clone()}(e,r&&r.event||null));const i=e._compositionKey;n(),o=oi(e,o),function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(lr(r)){const t=r.anchor,e=r.focus;let i;if("text"===t.type&&(i=t.getNode(),i.selectionTransform(n,r)),"text"===e.type){const t=e.getNode();i!==t&&t.selectionTransform(n,r);}}}(a,e),e._dirtyType!==m$6&&(o?function(t,e){const n=e._dirtyLeaves,r=t._nodeMap;for(const t of n){const e=r.get(t);Xn(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&vt$2(e);}}(a,e):function(t,e){const n=e._dirtyLeaves,r=e._dirtyElements,i=t._nodeMap,s=Zi(),o=new Map;let l=n,c=l.size,a=r,u=a.size;for(;c>0||u>0;){if(c>0){e._dirtyLeaves=new Set;for(const t of l){const r=i.get(t);Xn(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&vt$2(r),void 0!==r&&Yr(r,s)&&Xr(e,r,o),n.add(t);}if(l=e._dirtyLeaves,c=l.size,c>0){Jr++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(const t of a){const n=t[0],l=t[1];if("root"!==n&&!l)continue;const c=i.get(n);void 0!==c&&Yr(c,s)&&Xr(e,c,o),r.set(n,l);}l=e._dirtyLeaves,c=l.size,a=e._dirtyElements,u=a.size,Jr++;}e._dirtyLeaves=n,e._dirtyElements=r;}(a,e),oi(e),function(t,e,n,r){const i=t._nodeMap,s=e._nodeMap,o=[];for(const[t]of r){const e=s.get(t);void 0!==e&&(e.isAttached()||(di(e)&&Y$3(e,t,i,s,o,r),i.has(t)||r.delete(t),o.push(t)));}for(const t of o)s.delete(t);for(const t of n){const e=s.get(t);void 0===e||e.isAttached()||(i.has(t)||n.delete(t),s.delete(t));}}(c,a,e._dirtyLeaves,e._dirtyElements));i!==e._compositionKey&&(a._flushSync=!0);const s=a._selection;if(lr(s)){const e=a._nodeMap,n=s.anchor.key,r=s.focus.key;void 0!==e.get(n)&&void 0!==e.get(r)||t$2(19);}else ar(s)&&0===s._nodes.size&&(a._selection=null);}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=c,e._dirtyType=x$8,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void ri(e)}finally{Br=f,Kr=d,Wr=h,e._updating=g,Jr=0;}const p=e._dirtyType!==m$6||e._deferred.length>0||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return !0}else if(null!==n)return !0;return !1}(a,e);p?a._flushSync?(a._flushSync=!1,ri(e)):u&&zi((()=>{ri(e);})):(a._flushSync=!1,u&&(i.clear(),e._deferred=[],e._pendingEditorState=null));}function ci(t,e,n){t._updating?Wr===t?e():t._updates.push([e,n]):li(t,e,n);}class ai{constructor(t,e,n){this.element=t,this.before=e||null,this.after=n||null;}withBefore(t){return new ai(this.element,t,this.after)}withAfter(t){return new ai(this.element,this.before,t)}withElement(t){return new ai(t,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t$2(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t$2(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t$2(224),this.element.replaceChild(e,n),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(null===t)this.removeManagedLineBreak();else {const e="decorator"===t&&(l$4||o$4);this.insertManagedLineBreak(e);}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,n="IMG"===t.nodeName?t.nextSibling:null;n&&e.removeChild(n),e.removeChild(t),e.__lexicalLineBreak=void 0;}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak();}const n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),t){const t=document.createElement("img");t.setAttribute("data-lexical-linebreak","true"),t.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",t.alt="",n.insertBefore(t,i),n.__lexicalLineBreak=t;}else n.__lexicalLineBreak=i;}getFirstChildOffset(){let t=0;for(let e=this.after;null!==e;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,n,r){if(n===this.element){const e=this.getFirstChildOffset();return [t,Math.min(e+t.getChildrenSize(),Math.max(e,r))]}const i=ui(e,n);i.push(r);const s=ui(e,this.element);let o=t.getIndexWithinParent();for(let t=0;t<s.length;t++){const e=i[t],n=s[t];if(void 0===e||e<n)break;if(e>n){o+=1;break}}return [t.getParentOrThrow(),o]}}function ui(e,n){const r=[];let i=n;for(;i!==e&&null!==i;i=n.parentNode){let t=0;for(let e=i.previousSibling;null!==e;e=e.previousSibling)t++;r.push(t);}return i!==e&&t$2(225),r.reverse()}class fi extends Pn{constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle="";}afterCloneFrom(t){super.afterCloneFrom(t),this.__first=t.__first,this.__last=t.__last,this.__size=t.__size,this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle;}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return H$4[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const t=Hr()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];let e=this.getFirstChild();for(;null!==e;){if(Xn(e)&&t.push(e),di(e)){const n=e.getAllTextNodes();t.push(...n);}e=e.getNextSibling();}return t}getFirstDescendant(){let t=this.getFirstChild();for(;di(t);){const e=t.getFirstChild();if(null===e)break;t=e;}return t}getLastDescendant(){let t=this.getLastChild();for(;di(t);){const e=t.getLastChild();if(null===e)break;t=e;}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return di(t)&&t.getLastDescendant()||t||null}const r=e[t];return di(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:ts(t)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&t$2(45,this.__key),e}getLastChild(){const t=this.getLatest().__last;return null===t?null:ts(t)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&t$2(96,this.__key),e}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++;}return null}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--;}return null}getTextContent(){let t="";const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContent(),di(i)&&r!==n-1&&!i.isInline()&&(t+=W$3);}return t}getTextContentSize(){let t=0;const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContentSize(),di(i)&&r!==n-1&&!i.isInline()&&(t+=W$3.length);}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(""!==t){const e=q$4[t];return !!(this.getFormat()&e)}return !1}hasTextFormat(t){const e=V$3[t];return !!(this.getTextFormat()&e)}getFormatFlags(t,e){return qi(this.getLatest().__textFormat,t,e)}getTextStyle(){return this.getLatest().__textStyle}select(t,e){Vr();const n=Tr();let r=t,i=e;const s=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){const t=this.getFirstChild();if(Xn(t)||di(t))return t.select(0,0)}else if(!(void 0!==t&&t!==s||void 0!==e&&e!==s)){const t=this.getLastChild();if(Xn(t)||di(t))return t.select()}void 0===r&&(r=s),void 0===i&&(i=s);const o=this.__key;return lr(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,i,"element"),n.dirty=!0,n):Sr(o,r,o,i,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach((t=>t.remove())),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t?q$4[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}setIndent(t){return this.getWritable().__indent=t,this}splice(e,n,r){const i=r.length,s=this.getChildrenSize(),o=this.getWritable();e+n<=s||t$2(226,String(e),String(n),String(s));const l=o.__key,c=[],a=[],u=this.getChildAtIndex(e+n);let f=null,d=s-n+i;if(0!==e)if(e===s)f=this.getLastChild();else {const t=this.getChildAtIndex(e);null!==t&&(f=t.getPreviousSibling());}if(n>0){let e=null===f?this.getFirstChild():f.getNextSibling();for(let r=0;r<n;r++){null===e&&t$2(100);const n=e.getNextSibling(),r=e.__key;Qi(e.getWritable()),a.push(r),e=n;}}let h=f;for(let e=0;e<i;e++){const n=r[e];null!==h&&n.is(h)&&(f=h=h.getPreviousSibling());const i=n.getWritable();i.__parent===l&&d--,Qi(i);const s=n.__key;if(null===h)o.__first=s,i.__prev=null;else {const t=h.getWritable();t.__next=s,i.__prev=t.__key;}n.__key===l&&t$2(76),i.__parent=l,c.push(s),h=n;}if(e+n===s){if(null!==h){h.getWritable().__next=null,o.__last=h.__key;}}else if(null!==u){const t=u.getWritable();if(null!==h){const e=h.getWritable();t.__prev=h.__key,e.__next=u.__key;}else t.__prev=null;}if(o.__size=d,a.length){const t=Tr();if(lr(t)){const e=new Set(a),n=new Set(c),{anchor:r,focus:i}=t;hi(r,e,n)&&Pr(r,r.getNode(),this,f,u),hi(i,e,n)&&Pr(i,i.getNode(),this,f,u),0!==d||this.canBeEmpty()||$s(this)||this.remove();}}return o}getDOMSlot(t){return new ai(t)}exportDOM(t){const{element:e}=super.exportDOM(t);if(eo(e)){const t=this.getIndent();t>0&&(e.style.paddingInlineStart=40*t+"px");const n=this.getDirection();n&&(e.dir=n);}return {element:e}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},e=this.getTextFormat(),n=this.getTextStyle();return 0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,e){return null}canIndent(){return !0}collapseAtStart(t){return !1}excludeFromCopy(t){return !1}canReplaceWith(t){return !0}canInsertAfter(t){return !0}canBeEmpty(){return !0}canInsertTextBefore(){return !0}canInsertTextAfter(){return !0}isInline(){return !1}isShadowRoot(){return !1}canMergeWith(t){return !1}extractWithChild(t,e,n){return !1}canMergeWhenEmpty(){return !1}reconcileObservedMutation(t,e){const n=this.getDOMSlot(t);let r=n.getFirstChild();for(let t=this.getFirstChild();t;t=t.getNextSibling()){const i=e.getElementByKey(t.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling);}}}function di(t){return t instanceof fi}function hi(t,e,n){let r=t.getNode();for(;r;){const t=r.__key;if(e.has(t)&&!n.has(t))return !0;r=r.getParent();}return !1}class gi extends Pn{decorate(e,n){t$2(47);}isIsolated(){return !1}isInline(){return !0}isKeyboardSelectable(){return !0}}function _i(t){return t instanceof gi}class pi extends fi{static getType(){return "root"}static clone(){return new pi}constructor(){super("root"),this.__cachedText=null;}getTopLevelElementOrThrow(){t$2(51);}getTextContent(){const t=this.__cachedText;return !$r()&&Hr()._dirtyType!==m$6||null===t?super.getTextContent():t}remove(){t$2(52);}replace(e){t$2(53);}insertBefore(e){t$2(54);}insertAfter(e){t$2(55);}updateDOM(t,e){return !1}append(...e){for(let n=0;n<e.length;n++){const r=e[n];di(r)||_i(r)||t$2(56);}return super.append(...e)}static importJSON(t){return os().updateFromJSON(t)}collapseAtStart(){return !0}}function mi(t){return t instanceof pi}function yi(t){return new vi(new Map(t._nodeMap))}function xi(){return new vi(new Map([["root",new pi]]))}function Si(e){const n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t$2(130,r.name),di(e)){const i=n.children;Array.isArray(i)||t$2(59,r.name);const s=e.getChildren();for(let t=0;t<s.length;t++){const e=Si(s[t]);i.push(e);}}return n}class vi{constructor(t,e){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1;}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(t,e){return ni(e&&e.editor||null,this,t)}clone(t){const e=new vi(this._nodeMap,void 0===t?this._selection:t);return e._readOnly=!0,e}toJSON(){return ni(null,this,(()=>({root:Si(os())})))}}class Ci extends fi{static getType(){return "artificial"}createDOM(t){return document.createElement("div")}}class ki extends fi{static getType(){return "paragraph"}static clone(t){return new ki(t.__key)}createDOM(t){const e=document.createElement("p"),n=Ts(t.theme,"paragraph");if(void 0!==n){e.classList.add(...n);}return e}updateDOM(t,e,n){return !1}static importDOM(){return {p:t=>({conversion:bi,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(eo(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();e.style.textAlign=t;}return {element:e}}static importJSON(t){return Ti().updateFromJSON(t)}exportJSON(){return {...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(t,e){const n=Ti();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||Xn(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return !1}}function bi(t){const e=Ti();return t.style&&(e.setFormat(t.style.textAlign),go(t,e)),{node:e}}function Ti(){return Us(new ki)}function wi(t){return t instanceof ki}const Ni=0,Ei=1,Pi=2,Fi=3,Li=4;function Ai(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=xi(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=m$6,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;null!==s&&(s.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",i.set("root",n));}function Oi(t){const e=t||{},n=Qr(),r=e.theme||{},i=void 0===t?n:e.parentEditor||null,s=e.disableEvents||!1,o=xi(),l=e.namespace||(null!==i?i._config.namespace:hs()),c=e.editorState,a=[pi,Rn,Fn,Zn,ki,Ci,...e.nodes||[]],{onError:u,html:f}=e,d=void 0===e.editable||e.editable;let h;if(void 0===t&&null!==n)h=n._nodes;else {h=new Map;for(let t=0;t<a.length;t++){let e=a[t],n=null,r=null;if("function"!=typeof e){const t=e;e=t.replace,n=t.with,r=t.withKlass||null;}const i=e.getType(),s=e.transform(),o=new Set;null!==s&&o.add(s),h.set(i,{exportDOM:f&&f.export?f.export.get(e):void 0,klass:e,replace:n,replaceWithKlass:r,transforms:o});}}const g=new Mi(o,i,h,{disableEvents:s,namespace:l,theme:r},u||console.error,function(t,e){const n=new Map,r=new Set,i=t=>{Object.keys(t).forEach((e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e]);}));};return t.forEach((t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&i(n);})),e&&i(e),n}(h,f?f.import:void 0),d);return void 0!==c&&(g._pendingEditorState=c,g._dirtyType=x$8),g}class Mi{constructor(t,e,n,r,i,s,o){this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=m$6,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=hs(),this._onError=i,this._htmlConversions=s,this._editable=o,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null;}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){const e=this._listeners.update;return e.add(t),()=>{e.delete(t);}}registerEditableListener(t){const e=this._listeners.editable;return e.add(t),()=>{e.delete(t);}}registerDecoratorListener(t){const e=this._listeners.decorator;return e.add(t),()=>{e.delete(t);}}registerTextContentListener(t){const e=this._listeners.textcontent;return e.add(t),()=>{e.delete(t);}}registerRootListener(t){const e=this._listeners.root;return t(this._rootElement,null),e.add(t),()=>{t(null,this._rootElement),e.delete(t);}}registerCommand(e,n,r){void 0===r&&t$2(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);void 0===s&&t$2(36,String(e));const o=s[r];return o.add(n),()=>{o.delete(n),s.every((t=>0===t.size))&&i.delete(e);}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;i.set(e,r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(e,r),()=>{i.delete(e);}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return void 0===n&&t$2(37,e.name),n}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=fo(n).get(e.getType());if(!r)return;const i=new Map;for(const t of r.keys())i.set(t,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])});}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],i=n.replaceWithKlass;if(null!=i){const t=this.registerNodeTransformToKlass(i,e);r.push(t);}return function(t,e){const n=fo(t.getEditorState()),r=[];for(const t of e){const e=n.get(t);e&&r.push(e);}if(0===r.length)return;t.update((()=>{for(const t of r)for(const e of t.keys()){const t=ts(e);t&&t.markDirty();}}),null===t._pendingEditorState?{tag:"history-merge"}:void 0);}(this,r.map((t=>t.klass.getType()))),()=>{r.forEach((t=>t.transforms.delete(e)));}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return Ls(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=Ts(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,Ai(this,e,t,r),null!==e&&(this._config.disableEvents||Nn(e),null!=n&&e.classList.remove(...n)),null!==t){const e=Ks(t),r=t.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=e,this._dirtyType=x$8,at$1(this),this._updateTags.add("history-merge"),ri(this),this._config.disableEvents||function(t,e){const n=t.ownerDocument,r=on.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",bn),on.set(n,(r||0)+1),t.__lexicalEditor=e;const i=Cn(t);for(let n=0;n<tn.length;n++){const[r,s]=tn[n],o="function"==typeof s?t=>{wn(t)||(Tn(t),(e.isEditable()||"click"===r)&&s(t,e));}:t=>{if(wn(t))return;Tn(t);const n=e.isEditable();switch(r){case"cut":return n&&Ls(e,je,t);case"copy":return Ls(e,Je,t);case"paste":return n&&Ls(e,ge,t);case"dragstart":return n&&Ls(e,We,t);case"dragover":return n&&Ls(e,Ke,t);case"dragend":return n&&Ls(e,Re,t);case"focus":return n&&Ls(e,Ge,t);case"blur":return n&&Ls(e,Qe,t);case"drop":return n&&Ls(e,ze,t)}};t.addEventListener(r,o),i.push((()=>{t.removeEventListener(r,o);}));}}(t,this),null!=n&&t.classList.add(...n);}else this._window=null,this._updateTags.add("history-merge"),ri(this);ii("root",this,!1,t,e);}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t$2(38);let r=e;r._readOnly&&(r=yi(e),r._selection=e._selection?e._selection.clone():null),ct$1(this);const i=this._pendingEditorState,s=this._updateTags,o=void 0!==n?n.tag:null;null===i||i.isEmpty()||(null!=o&&s.add(o),ri(this)),this._pendingEditorState=r,this._dirtyType=x$8,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&s.add(o),this._updating||ri(this);}parseEditorState(t,e){return function(t,e,n){const r=xi(),i=Br,s=Kr,o=Wr,l=e._dirtyElements,c=e._dirtyLeaves,a=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,Br=r,Kr=!1,Wr=e;try{const i=e._nodes;ei(t.root,i),n&&n(),r._readOnly=!0;}catch(t){t instanceof Error&&e._onError(t);}finally{e._dirtyElements=l,e._dirtyLeaves=c,e._cloneNotNeeded=a,e._dirtyType=u,Br=i,Kr=s,Wr=o;}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(t){return ri(this),this.getEditorState().read(t,{editor:this})}update(t,e){!function(t,e,n){t._updating?t._updates.push([e,n]):li(t,e,n);}(this,t,e);}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),ci(this,(()=>{const r=Tr(),i=os();null!==r?r.dirty=!0:0!==i.getChildrenSize()&&("rootStart"===e.defaultSelection?i.selectStart():i.selectEnd()),zs("focus"),Bs((()=>{n.removeAttribute("autocapitalize"),t&&t();}));})),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"));}blur(){const t=this._rootElement;null!==t&&t.blur();const e=Xs(this._window);null!==e&&e.removeAllRanges();}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,ii("editable",this,!0,t));}toJSON(){return {editorState:this._editorState.toJSON()}}}Mi.version="0.27.2+prod.esm";let Ii=1;function Di(){Ii=1;}const zi="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t);};function Bi(t){const e=document.activeElement;if(!eo(e))return !1;const n=e.nodeName;return _i(rs(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==Ji(e))}function Wi(t,e,n){const r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!Bi(e)&&Ri(e)===t}catch(t){return !1}}function Ki(t){return t instanceof Mi}function Ri(t){let e=t;for(;null!=e;){const t=Ji(e);if(Ki(t))return t;e=Ms(e);}return null}function Ji(t){return t?t.__lexicalEditor:null}function ji(t){return t.isToken()||t.isSegmented()}function $i(t){return no(t)&&t.nodeType===g$7}function Vi(t){return no(t)&&t.nodeType===_$6}function Ui(t){let e=t;for(;null!=e;){if($i(e))return e;e=e.firstChild;}return null}function qi(t,e,n){const r=V$3[e];if(null!==n&&(t&r)==(n&r))return t;let i=t^r;return "subscript"===e?i&=~V$3.superscript:"superscript"===e?i&=~V$3.subscript:"lowercase"===e?(i&=~V$3.uppercase,i&=~V$3.capitalize):"uppercase"===e?(i&=~V$3.lowercase,i&=~V$3.capitalize):"capitalize"===e&&(i&=~V$3.lowercase,i&=~V$3.uppercase),i}function Hi(t){return Xn(t)||On(t)||_i(t)}function Gi(t,e){if(null!=e)return void(t.__key=e);Vr(),Ur();const n=Hr(),r=qr(),i=""+Ii++;r._nodeMap.set(i,t),di(t)?n._dirtyElements.set(i,!0):n._dirtyLeaves.add(i),n._cloneNotNeeded.add(i),n._dirtyType=y$6,t.__key=i;}function Qi(t){const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling();if(null===i)if(null!==s){const t=s.getWritable();r.__first=s.__key,t.__prev=null;}else r.__first=null;else {const t=i.getWritable();if(null!==s){const e=s.getWritable();e.__prev=t.__key,t.__next=e.__key;}else t.__next=null;n.__prev=null;}if(null===s)if(null!==i){const t=i.getWritable();r.__last=i.__key,t.__next=null;}else r.__last=null;else {const t=s.getWritable();if(null!==i){const e=i.getWritable();e.__next=t.__key,t.__prev=e.__key;}else t.__prev=null;n.__next=null;}r.__size--,n.__parent=null;}}function Xi(t){Ur();const e=t.getLatest(),n=e.__parent,r=qr(),i=Hr(),s=r._nodeMap,o=i._dirtyElements;null!==n&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=t.__parent;}}(n,s,o);const l=e.__key;i._dirtyType=y$6,di(t)?o.set(l,!0):i._dirtyLeaves.add(l);}function Yi(t){Vr();const e=Hr(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=ts(n);null!==t&&t.getWritable();}if(null!==t){const e=ts(t);null!==e&&e.getWritable();}}}function Zi(){if($r())return null;return Hr()._compositionKey}function ts(t,e){const n=(e||qr())._nodeMap.get(t);return void 0===n?null:n}function es(t,e){const n=ns(t,Hr());return void 0!==n?ts(n,e):null}function ns(t,e){return t[`__lexicalKey_${e._key}`]}function rs(t,e){let n=t;for(;null!=n;){const t=es(n,e);if(null!==t)return t;n=Ms(n);}return null}function is(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function ss(t){return t.read((()=>os().getTextContent()))}function os(){return ls(qr())}function ls(t){return t._nodeMap.get("root")}function cs(t){Vr();const e=qr();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t;}function as(t){const e=Hr(),n=function(t,e){let n=t;for(;null!=n;){const t=ns(n,e);if(void 0!==t)return t;n=Ms(n);}return null}(t,e);if(null===n){return t===e.getRootElement()?ts("root"):null}return ts(n)}function us(t,e){return e?t.getTextContentSize():0}function fs(t){return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function ds(t){const e=[];let n=t;for(;null!==n;)e.push(n),n=n._parentEditor;return e}function hs(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function gs(t){return $i(t)?t.nodeValue:null}function _s(t,e,n){const r=Xs(Rs(e));if(null===r)return;const i=r.anchorNode;let{anchorOffset:s,focusOffset:o}=r;if(null!==i){let e=gs(i);const r=rs(i);if(null!==e&&Xn(r)){if(e===B$4&&n){const t=n.length;e=n,s=t,o=t;}null!==e&&ps(r,e,s,o,t);}}}function ps(t,e,n,r,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const c=s.isComposing();let a=e;(c||i)&&e[e.length-1]===B$4&&(a=e.slice(0,-1));const u=s.getTextContent();if(i||a!==u){if(""===a){if(Yi(null),o$4||l$4||f$5)s.remove();else {const t=Hr();setTimeout((()=>{t.update((()=>{s.isAttached()&&s.remove();}));}),20);}return}const e=s.getParent(),i=wr(),u=s.getTextContentSize(),d=Zi(),h=s.getKey();if(s.isToken()||null!==d&&h===d&&!c||lr(i)&&(null!==e&&!e.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===t.__key&&0===i.anchor.offset&&!s.canInsertTextBefore()&&!c||i.focus.key===t.__key&&i.focus.offset===u&&!s.canInsertTextAfter()&&!c))return void s.markDirty();const g=Tr();if(!lr(g)||null===n||null===r)return void s.setTextContent(a);if(g.setTextNodeRange(s,n,s,r),s.isSegmented()){const t=Qn(s.getTextContent());s.replace(t),s=t;}s.setTextContent(a);}}}function ms(t){return "ArrowLeft"===t}function ys(t){return "ArrowRight"===t}function xs(t,e){return r$1?t:e}function Ss(t){return "Enter"===t}function vs(t){return "Backspace"===t}function Cs(t){return "Delete"===t}function ks(t,e,n){return "a"===t.toLowerCase()&&xs(e,n)}function bs(t){const e=os();if(lr(t)){const e=t.anchor,n=t.focus,r=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Ct$2(t),t}{const t=e.select(0,e.getChildrenSize());return cs(Ct$2(t)),t}}function Ts(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const i=t[e];if("string"==typeof i){const t=d$5(i);return n[e]=t,t}return i}function ws(e,n,r,i,s){if(0===r.size)return;const o=i.__type,l=i.__key,c=n.get(o);void 0===c&&t$2(33,o);const a=c.klass;let u=e.get(a);void 0===u&&(u=new Map,e.set(a,u));const f=u.get(l),d="destroyed"===f&&"created"===s;(void 0===f||d)&&u.set(l,d?"updated":s);}function Ns(t){const e=t.getType(),n=qr();if(n._readOnly){const t=fo(n).get(e);return t?Array.from(t.values()):[]}const r=n._nodeMap,i=[];for(const[,n]of r)n instanceof t&&n.__type===e&&n.isAttached()&&i.push(n);return i}function Es(t,e,n){const r=t.getParent();let i=n,s=t;return null!==r&&(e&&0===n?(i=s.getIndexWithinParent(),s=r):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=r)),s.getChildAtIndex(e?i-1:i)}function Ps(t,e){const n=t.offset;if("element"===t.type){return Es(t.getNode(),e,n)}{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?Es(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function Fs(t){const e=Rs(t).event,n=e&&e.inputType;return "insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Ls(t,e,n){return si(t,e,n)}function As(t){return !mi(t)&&!t.isLastChild()&&!t.isInline()}function Os(e,n){const r=e._keyToDOMMap.get(n);return void 0===r&&t$2(75,n),r}function Ms(t){const e=t.assignedSlot||t.parentElement;return ro(e)?e.host:e}function Is(t){return Vi(t)?t:eo(t)?t.ownerDocument:null}function Ds(t){return Hr()._updateTags.has(t)}function zs(t){Vr();Hr()._updateTags.add(t);}function Bs(t){Vr();Hr()._deferred.push(t);}function Ws(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return !0;n=n.getParent();}return !1}function Ks(t){const e=Is(t);return e?e.defaultView:null}function Rs(e){const n=e._window;return null===n&&t$2(78),n}function Js(t){return di(t)&&t.isInline()||_i(t)&&t.isInline()}function js(t){let e=t.getParentOrThrow();for(;null!==e;){if($s(e))return e;e=e.getParentOrThrow();}return e}function $s(t){return mi(t)||di(t)&&t.isShadowRoot()}function Vs(t){const e=t.constructor.clone(t);return Gi(e,null),e}function Us(e){const n=Hr(),r=e.constructor.getType(),i=n._nodes.get(r);void 0===i&&t$2(200,e.constructor.name,r);const{replace:s,replaceWithKlass:o}=i;if(null!==s){const n=s(e),i=n.constructor;return null!==o?n instanceof o||t$2(201,o.name,o.getType(),i.name,i.getType(),e.constructor.name,r):n instanceof e.constructor&&i!==e.constructor||t$2(202,i.name,i.getType(),e.constructor.name,r),n.__key===e.__key&&t$2(203,e.constructor.name,r,i.name,i.getType()),n}return e}function qs(e,n){!mi(e.getParent())||di(n)||_i(n)||t$2(99);}function Hs(e){const n=ts(e);return null===n&&t$2(63,e),n}function Gs(t){return (_i(t)||di(t)&&!t.canBeEmpty())&&!t.isInline()}function Qs(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t);}function Xs(t){return e$3?(t||window).getSelection():null}function Ys(t){const e=Ks(t);return e?e.getSelection():null}function Zs(e,n){let r=e.getChildAtIndex(n);null==r&&(r=e),$s(e)&&t$2(102);const i=e=>{const n=e.getParentOrThrow(),s=$s(n),o=e!==r||s?Vs(e):e;if(s)return di(e)&&di(o)||t$2(133),e.insertAfter(o),[e,o,o];{const[t,r,s]=i(n),l=e.getNextSiblings();return s.append(o,...l),[t,r,o]}},[s,o]=i(r);return [s,o]}function to(t){return eo(t)&&"A"===t.tagName}function eo(t){return no(t)&&t.nodeType===h$6}function no(t){return "object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType}function ro(t){return no(t)&&t.nodeType===p$4}function io(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==t.nodeName.match(e)}function so(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==t.nodeName.match(e)}function oo(t){if(_i(t)&&!t.isInline())return !0;if(!di(t)||$s(t))return !1;const e=t.getFirstChild(),n=null===e||On(e)||Xn(e)||e.isInline();return !t.isInline()&&!1!==t.canBeEmpty()&&n}function lo(t,e){let n=t;for(;null!==n&&null!==n.getParent()&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}function co(){return Hr()}const ao=new WeakMap,uo=new Map;function fo(e){if(!e._readOnly&&e.isEmpty())return uo;e._readOnly||t$2(192);let n=ao.get(e);return n||(n=function(t){const e=new Map;for(const[n,r]of t._nodeMap){const t=r.__type;let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r);}return e}(e),ao.set(e,n)),n}function ho(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function go(t,e){const n=(parseInt(t.style.paddingInlineStart,10)||0)/40;e.setIndent(n);}function _o(t){t.__lexicalUnmanaged=!0;}function po(t){return !0===t.__lexicalUnmanaged}const mo={next:"previous",previous:"next"};class yo{constructor(t){this.origin=t;}[Symbol.iterator](){return $o({hasNext:No,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return Ao(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Ao(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const n=this.getNodeAtCaret();return t.is(this.origin)||t.is(n)||(null===n?this.insert(t):n.replace(t,e)),this}splice(e,n,r="next"){const i=r===this.direction?n:Array.from(n).reverse();let s=this;const o=this.getParentAtCaret(),l=new Map;for(let t=s.getAdjacentCaret();null!==t&&l.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();l.set(e.getKey(),e);}for(const e of i){if(l.size>0){const n=s.getNodeAtCaret();if(n)if(l.delete(n.getKey()),l.delete(e.getKey()),n.is(e)||s.origin.is(e));else {const t=e.getParent();t&&t.is(o)&&e.remove(),n.replace(e);}else null===n&&t$2(263,Array.from(l).join(" "));}else s.insert(e);s=Ao(e,this.direction);}for(const t of l.values())t.remove();return this}}class xo extends yo{type="child";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Do(t,this.direction)}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=vo(this.direction);return Ao(this.getNodeAtCaret(),t)||Do(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof xo&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const So={root:mi,shadowRoot:$s};function vo(t){return mo[t]}function Co(t,e="root"){return So[e](t)?null:t}class ko extends yo{type="sibling";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Ao(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return di(this.origin)?Do(this.origin,this.direction):null}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=vo(this.direction);return Ao(this.getNodeAtCaret(),t)||Do(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof ko&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return (t instanceof ko||t instanceof bo)&&this.direction===t.direction&&this.origin.is(t.origin)}}class bo extends yo{type="text";constructor(t,e){super(t),this.offset=e;}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Oo(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return Ao(Co(this.getParentAtCaret(),t),this.direction)}getFlipped(){return Oo(this.origin,vo(this.direction),this.offset)}isSamePointCaret(t){return t instanceof bo&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return (t instanceof ko||t instanceof bo)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Ao(this.origin,this.direction)}}function To(t){return t instanceof bo}function wo(t){return t instanceof yo}function No(t){return t instanceof ko}function Eo(t){return t instanceof xo}const Po={next:class extends bo{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends bo{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},Fo={next:class extends ko{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends ko{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},Lo={next:class extends xo{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends xo{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function Ao(t,e){return t?new Fo[e](t):null}function Oo(t,e,n){return t?new Po[e](t,Mo(t,n)):null}function Mo(e,n){const r=e.getTextContentSize(),i="next"===n?r:"previous"===n?0:n;return i>=0&&i<=r||t$2(274,String(n),String(r)),i}function Io(t,e){return new Ko(t,e)}function Do(t,e){return di(t)?new Lo[e](t):null}function zo(t){return t&&t.getChildCaret()||t}function Bo(t){return t&&zo(t.getAdjacentCaret())}class Wo{type="node-caret-range";constructor(t,e,n){this.anchor=t,this.focus=e,this.direction=n;}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new Wo(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=t=>{const e=this[t].getLatest();return To(e)?function(t,e){const{direction:n,origin:r}=t,i=Mo(r,"focus"===e?vo(n):n);return Io(t,i-t.offset)}(e,t):null},e=t("anchor"),n=t("focus");if(e&&n){const{caret:t}=e,{caret:r}=n;if(t.isSameNodeCaret(r))return [Io(t,r.offset-t.offset),null]}return [e,n]}iterNodeCarets(t="root"){const e=To(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=To(n),i=e=>e.isSameNodeCaret(n)?null:Bo(e)||e.getParentCaret(t);return $o({hasNext:t=>null!==t&&!(r&&n.isSameNodeCaret(t)),initial:e.isSameNodeCaret(n)?null:i(e),map:t=>t,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Ko{type="slice";constructor(t,e){this.caret=t,this.distance=e;}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,n=e+t;return n<e?[n,e]:[e,n]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[n,r]=this.getSliceIndices(),i=t.getTextContent();return Oo(t.setTextContent(i.slice(0,n)+i.slice(r)),e,n)}}function Ro(t){return t instanceof Ko}function Jo(t){return jo(t,Ao(os(),t.direction))}function jo(e,n){return e.direction!==n.direction&&t$2(265),new Wo(e,n,e.direction)}function $o(t){const{initial:e,hasNext:n,step:r,map:i}=t;let s=e;return {[Symbol.iterator](){return this},next(){if(!n(s))return {done:!0,value:void 0};const t={done:!1,value:i(s)};return s=r(s),t}}}function Vo(e,n){const r=Go(e.origin,n.origin);switch(null===r&&t$2(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{const t="text"===e.type,r="text"===n.type;return t&&r?function(t,e){return Math.sign(t-e)}(e.offset,n.offset):e.type===n.type?0:t?-1:r?1:"child"===e.type?-1:1}case"ancestor":return "child"===e.type?-1:1;case"descendant":return "child"===n.type?1:-1;case"branch":return Uo(r)}}function Uo(t){const{a:e,b:n}=t,r=e.__key,i=n.__key;let s=e,o=n;for(;s&&o;s=s.getNextSibling(),o=o.getNextSibling()){if(s.__key===i)return -1;if(o.__key===r)return 1}return null===s?1:-1}function qo(t,e){return e.is(t)}function Ho(t){return di(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Go(e,n){if(e.is(n))return {commonAncestor:e,type:"same"};const r=new Map;for(let[t,n]=Ho(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,s]=Ho(n);i;s=i,i=i.getParent()){const o=r.get(i);if(void 0!==o)return null===o?(qo(e,i)||t$2(276),{commonAncestor:i,type:"ancestor"}):null===s?(qo(n,i)||t$2(277),{commonAncestor:i,type:"descendant"}):((di(o)||qo(e,o))&&(di(s)||qo(n,s))&&i.is(o.getParent())&&i.is(s.getParent())||t$2(278),{a:o,b:s,commonAncestor:i,type:"branch"})}return null}function Qo(e,n){const{type:r,key:i,offset:s}=e,o=Hs(e.key);return "text"===r?(Xn(o)||t$2(266,o.getType(),i),Oo(o,n,s)):(di(o)||t$2(267,o.getType(),i),al(o,e.offset,n))}function Xo(e,n){const{origin:r,direction:i}=n,s="next"===i;To(n)?e.set(r.getKey(),n.offset,"text"):No(n)?Xn(r)?e.set(r.getKey(),Mo(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+(s?1:0),"element"):(Eo(n)&&di(r)||t$2(268),e.set(r.getKey(),s?0:r.getChildrenSize(),"element"));}function Yo(t){const e=Tr(),n=lr(e)?e:vr();return Zo(n,t),cs(n),n}function Zo(t,e){Xo(t.anchor,e.anchor),Xo(t.focus,e.focus);}function tl(t){const{anchor:e,focus:n}=t,r=Qo(e,"next"),i=Qo(n,"next"),s=Vo(r,i)<=0?"next":"previous";return jo(ll(r,s),ll(i,s))}function el(t){const{direction:e,origin:n}=t,r=Ao(n,vo(e)).getNodeAtCaret();return r?Ao(r,e):Do(n.getParentOrThrow(),e)}function nl(t,e="root"){const n=[t];for(let r=Eo(t)?t.getParentCaret(e):t.getSiblingCaret();null!==r;r=r.getParentCaret(e))n.push(el(r));return n}function rl(t){return !!t&&t.origin.isAttached()}function il(e,n="removeEmptySlices"){if(e.isCollapsed())return e;const r="root",i="next";let s=n;const o=cl(e,i),l=nl(o.anchor,r),c=nl(o.focus.getFlipped(),r),a=new Set,u=[];for(const t of o.iterNodeCarets(r))if(Eo(t))a.add(t.origin.getKey());else if(No(t)){const{origin:e}=t;di(e)&&!a.has(e.getKey())||u.push(e);}for(const t of u)t.remove();for(const t of o.getTextSlices()){if(!t)continue;const{origin:e}=t.caret,n=e.getTextContentSize(),r=el(Ao(e,i)),o=e.getMode();if(Math.abs(t.distance)===n&&"removeEmptySlices"===s||"token"===o&&0!==t.distance)r.remove();else if(0!==t.distance){s="removeEmptySlices";let e=t.removeTextSlice();const n=t.caret.origin;if("segmented"===o){const t=e.origin,n=Qn(t.getTextContent()).setStyle(t.getStyle()).setFormat(t.getFormat());r.replaceOrInsert(n),e=Oo(n,i,e.offset);}n.is(l[0].origin)&&(l[0]=e),n.is(c[0].origin)&&(c[0]=e.getFlipped());}}let f,d;for(const t of l)if(rl(t)){f=sl(t);break}for(const t of c)if(rl(t)){d=sl(t);break}const h=function(t,e,n){if(!t||!e)return null;const r=t.getParentAtCaret(),i=e.getParentAtCaret();if(!r||!i)return null;const s=r.getParents().reverse();s.push(r);const o=i.getParents().reverse();o.push(i);const l=Math.min(s.length,o.length);let c;for(c=0;c<l&&s[c]===o[c];c++);const a=(t,e)=>{let n;for(let r=c;r<t.length;r++){const i=t[r];if($s(i))return;!n&&e(i)&&(n=i);}return n},u=a(s,oo),f=u&&a(o,(t=>n.has(t.getKey())&&oo(t)));return u&&f?[u,f]:null}(f,d,a);if(h){const[t,e]=h;Do(t,"previous").splice(0,e.getChildren()),e.remove();}const g=[f,d,...l,...c].find(rl);if(g){const t=ll(sl(g),e.direction);return jo(t,t)}t$2(269,JSON.stringify(l.map((t=>t.origin.__key))));}function sl(t){const e=function(t){let e=t;for(;Eo(e);){const t=Bo(e);if(!Eo(t))break;e=t;}return e}(t.getLatest()),{direction:n}=e;if(Xn(e.origin))return To(e)?e:Oo(e.origin,n,n);const r=e.getAdjacentCaret();return No(r)&&Xn(r.origin)?Oo(r.origin,n,vo(n)):e}function ol(t){return To(t)&&t.offset!==Mo(t.origin,t.direction)}function ll(t,e){return t.direction===e?t:t.getFlipped()}function cl(t,e){return t.direction===e?t:jo(ll(t.focus,e),ll(t.anchor,e))}function al(t,e,n){let r=Do(t,"next");for(let t=0;t<e;t++){const t=r.getAdjacentCaret();if(null===t)break;r=t;}return ll(r,n)}function ul(t,e="root"){let n=0,r=t,i=Bo(r);for(;null===i;){if(n--,i=r.getParentCaret(e),!i)return null;r=i,i=Bo(r);}return i&&[i,n]}
94406
94406
 
94407
94407
  var modProd$p = /*#__PURE__*/Object.freeze({
94408
94408
  __proto__: null,
@@ -142114,27 +142114,3231 @@ var hoverAnimations = {
142114
142114
  softLift: "\n hover:-translate-y-0.5 \n hover:shadow-md\n ",
142115
142115
  };
142116
142116
 
142117
+ /**
142118
+ * Concatenates two arrays faster than the array spread operator.
142119
+ */
142120
+ const concatArrays = (array1, array2) => {
142121
+ // Pre-allocate for better V8 optimization
142122
+ const combinedArray = new Array(array1.length + array2.length);
142123
+ for (let i = 0; i < array1.length; i++) {
142124
+ combinedArray[i] = array1[i];
142125
+ }
142126
+ for (let i = 0; i < array2.length; i++) {
142127
+ combinedArray[array1.length + i] = array2[i];
142128
+ }
142129
+ return combinedArray;
142130
+ };
142131
+
142132
+ // Factory function ensures consistent object shapes
142133
+ const createClassValidatorObject = (classGroupId, validator) => ({
142134
+ classGroupId,
142135
+ validator
142136
+ });
142137
+ // Factory ensures consistent ClassPartObject shape
142138
+ const createClassPartObject = (nextPart = new Map(), validators = null, classGroupId) => ({
142139
+ nextPart,
142140
+ validators,
142141
+ classGroupId
142142
+ });
142143
+ const CLASS_PART_SEPARATOR = '-';
142144
+ const EMPTY_CONFLICTS = [];
142145
+ // I use two dots here because one dot is used as prefix for class groups in plugins
142146
+ const ARBITRARY_PROPERTY_PREFIX = 'arbitrary..';
142147
+ const createClassGroupUtils = config => {
142148
+ const classMap = createClassMap(config);
142149
+ const {
142150
+ conflictingClassGroups,
142151
+ conflictingClassGroupModifiers
142152
+ } = config;
142153
+ const getClassGroupId = className => {
142154
+ if (className.startsWith('[') && className.endsWith(']')) {
142155
+ return getGroupIdForArbitraryProperty(className);
142156
+ }
142157
+ const classParts = className.split(CLASS_PART_SEPARATOR);
142158
+ // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and skip it.
142159
+ const startIndex = classParts[0] === '' && classParts.length > 1 ? 1 : 0;
142160
+ return getGroupRecursive(classParts, startIndex, classMap);
142161
+ };
142162
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
142163
+ if (hasPostfixModifier) {
142164
+ const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
142165
+ const baseConflicts = conflictingClassGroups[classGroupId];
142166
+ if (modifierConflicts) {
142167
+ if (baseConflicts) {
142168
+ // Merge base conflicts with modifier conflicts
142169
+ return concatArrays(baseConflicts, modifierConflicts);
142170
+ }
142171
+ // Only modifier conflicts
142172
+ return modifierConflicts;
142173
+ }
142174
+ // Fall back to without postfix if no modifier conflicts
142175
+ return baseConflicts || EMPTY_CONFLICTS;
142176
+ }
142177
+ return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
142178
+ };
142179
+ return {
142180
+ getClassGroupId,
142181
+ getConflictingClassGroupIds
142182
+ };
142183
+ };
142184
+ const getGroupRecursive = (classParts, startIndex, classPartObject) => {
142185
+ const classPathsLength = classParts.length - startIndex;
142186
+ if (classPathsLength === 0) {
142187
+ return classPartObject.classGroupId;
142188
+ }
142189
+ const currentClassPart = classParts[startIndex];
142190
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
142191
+ if (nextClassPartObject) {
142192
+ const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
142193
+ if (result) return result;
142194
+ }
142195
+ const validators = classPartObject.validators;
142196
+ if (validators === null) {
142197
+ return undefined;
142198
+ }
142199
+ // Build classRest string efficiently by joining from startIndex onwards
142200
+ const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
142201
+ const validatorsLength = validators.length;
142202
+ for (let i = 0; i < validatorsLength; i++) {
142203
+ const validatorObj = validators[i];
142204
+ if (validatorObj.validator(classRest)) {
142205
+ return validatorObj.classGroupId;
142206
+ }
142207
+ }
142208
+ return undefined;
142209
+ };
142210
+ /**
142211
+ * Get the class group ID for an arbitrary property.
142212
+ *
142213
+ * @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
142214
+ */
142215
+ const getGroupIdForArbitraryProperty = className => className.slice(1, -1).indexOf(':') === -1 ? undefined : (() => {
142216
+ const content = className.slice(1, -1);
142217
+ const colonIndex = content.indexOf(':');
142218
+ const property = content.slice(0, colonIndex);
142219
+ return property ? ARBITRARY_PROPERTY_PREFIX + property : undefined;
142220
+ })();
142221
+ /**
142222
+ * Exported for testing only
142223
+ */
142224
+ const createClassMap = config => {
142225
+ const {
142226
+ theme,
142227
+ classGroups
142228
+ } = config;
142229
+ return processClassGroups(classGroups, theme);
142230
+ };
142231
+ // Split into separate functions to maintain monomorphic call sites
142232
+ const processClassGroups = (classGroups, theme) => {
142233
+ const classMap = createClassPartObject();
142234
+ for (const classGroupId in classGroups) {
142235
+ const group = classGroups[classGroupId];
142236
+ processClassesRecursively(group, classMap, classGroupId, theme);
142237
+ }
142238
+ return classMap;
142239
+ };
142240
+ const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
142241
+ const len = classGroup.length;
142242
+ for (let i = 0; i < len; i++) {
142243
+ const classDefinition = classGroup[i];
142244
+ processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
142245
+ }
142246
+ };
142247
+ // Split into separate functions for each type to maintain monomorphic call sites
142248
+ const processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
142249
+ if (typeof classDefinition === 'string') {
142250
+ processStringDefinition(classDefinition, classPartObject, classGroupId);
142251
+ return;
142252
+ }
142253
+ if (typeof classDefinition === 'function') {
142254
+ processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
142255
+ return;
142256
+ }
142257
+ processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
142258
+ };
142259
+ const processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
142260
+ const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
142261
+ classPartObjectToEdit.classGroupId = classGroupId;
142262
+ };
142263
+ const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
142264
+ if (isThemeGetter(classDefinition)) {
142265
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
142266
+ return;
142267
+ }
142268
+ if (classPartObject.validators === null) {
142269
+ classPartObject.validators = [];
142270
+ }
142271
+ classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
142272
+ };
142273
+ const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
142274
+ const entries = Object.entries(classDefinition);
142275
+ const len = entries.length;
142276
+ for (let i = 0; i < len; i++) {
142277
+ const [key, value] = entries[i];
142278
+ processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
142279
+ }
142280
+ };
142281
+ const getPart = (classPartObject, path) => {
142282
+ let current = classPartObject;
142283
+ const parts = path.split(CLASS_PART_SEPARATOR);
142284
+ const len = parts.length;
142285
+ for (let i = 0; i < len; i++) {
142286
+ const part = parts[i];
142287
+ let next = current.nextPart.get(part);
142288
+ if (!next) {
142289
+ next = createClassPartObject();
142290
+ current.nextPart.set(part, next);
142291
+ }
142292
+ current = next;
142293
+ }
142294
+ return current;
142295
+ };
142296
+ // Type guard maintains monomorphic check
142297
+ const isThemeGetter = func => 'isThemeGetter' in func && func.isThemeGetter === true;
142298
+
142299
+ // LRU cache implementation using plain objects for simplicity
142300
+ const createLruCache = maxCacheSize => {
142301
+ if (maxCacheSize < 1) {
142302
+ return {
142303
+ get: () => undefined,
142304
+ set: () => {}
142305
+ };
142306
+ }
142307
+ let cacheSize = 0;
142308
+ let cache = Object.create(null);
142309
+ let previousCache = Object.create(null);
142310
+ const update = (key, value) => {
142311
+ cache[key] = value;
142312
+ cacheSize++;
142313
+ if (cacheSize > maxCacheSize) {
142314
+ cacheSize = 0;
142315
+ previousCache = cache;
142316
+ cache = Object.create(null);
142317
+ }
142318
+ };
142319
+ return {
142320
+ get(key) {
142321
+ let value = cache[key];
142322
+ if (value !== undefined) {
142323
+ return value;
142324
+ }
142325
+ if ((value = previousCache[key]) !== undefined) {
142326
+ update(key, value);
142327
+ return value;
142328
+ }
142329
+ },
142330
+ set(key, value) {
142331
+ if (key in cache) {
142332
+ cache[key] = value;
142333
+ } else {
142334
+ update(key, value);
142335
+ }
142336
+ }
142337
+ };
142338
+ };
142339
+ const IMPORTANT_MODIFIER = '!';
142340
+ const MODIFIER_SEPARATOR = ':';
142341
+ const EMPTY_MODIFIERS = [];
142342
+ // Pre-allocated result object shape for consistency
142343
+ const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
142344
+ modifiers,
142345
+ hasImportantModifier,
142346
+ baseClassName,
142347
+ maybePostfixModifierPosition,
142348
+ isExternal
142349
+ });
142350
+ const createParseClassName = config => {
142351
+ const {
142352
+ prefix,
142353
+ experimentalParseClassName
142354
+ } = config;
142355
+ /**
142356
+ * Parse class name into parts.
142357
+ *
142358
+ * Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
142359
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
142360
+ */
142361
+ let parseClassName = className => {
142362
+ // Use simple array with push for better performance
142363
+ const modifiers = [];
142364
+ let bracketDepth = 0;
142365
+ let parenDepth = 0;
142366
+ let modifierStart = 0;
142367
+ let postfixModifierPosition;
142368
+ const len = className.length;
142369
+ for (let index = 0; index < len; index++) {
142370
+ const currentCharacter = className[index];
142371
+ if (bracketDepth === 0 && parenDepth === 0) {
142372
+ if (currentCharacter === MODIFIER_SEPARATOR) {
142373
+ modifiers.push(className.slice(modifierStart, index));
142374
+ modifierStart = index + 1;
142375
+ continue;
142376
+ }
142377
+ if (currentCharacter === '/') {
142378
+ postfixModifierPosition = index;
142379
+ continue;
142380
+ }
142381
+ }
142382
+ if (currentCharacter === '[') bracketDepth++;else if (currentCharacter === ']') bracketDepth--;else if (currentCharacter === '(') parenDepth++;else if (currentCharacter === ')') parenDepth--;
142383
+ }
142384
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
142385
+ // Inline important modifier check
142386
+ let baseClassName = baseClassNameWithImportantModifier;
142387
+ let hasImportantModifier = false;
142388
+ if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
142389
+ baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
142390
+ hasImportantModifier = true;
142391
+ } else if (
142392
+ /**
142393
+ * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
142394
+ * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
142395
+ */
142396
+ baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
142397
+ baseClassName = baseClassNameWithImportantModifier.slice(1);
142398
+ hasImportantModifier = true;
142399
+ }
142400
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
142401
+ return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
142402
+ };
142403
+ if (prefix) {
142404
+ const fullPrefix = prefix + MODIFIER_SEPARATOR;
142405
+ const parseClassNameOriginal = parseClassName;
142406
+ parseClassName = className => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, undefined, true);
142407
+ }
142408
+ if (experimentalParseClassName) {
142409
+ const parseClassNameOriginal = parseClassName;
142410
+ parseClassName = className => experimentalParseClassName({
142411
+ className,
142412
+ parseClassName: parseClassNameOriginal
142413
+ });
142414
+ }
142415
+ return parseClassName;
142416
+ };
142417
+
142418
+ /**
142419
+ * Sorts modifiers according to following schema:
142420
+ * - Predefined modifiers are sorted alphabetically
142421
+ * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
142422
+ */
142423
+ const createSortModifiers = config => {
142424
+ // Pre-compute weights for all known modifiers for O(1) comparison
142425
+ const modifierWeights = new Map();
142426
+ // Assign weights to sensitive modifiers (highest priority, but preserve order)
142427
+ config.orderSensitiveModifiers.forEach((mod, index) => {
142428
+ modifierWeights.set(mod, 1000000 + index); // High weights for sensitive mods
142429
+ });
142430
+ return modifiers => {
142431
+ const result = [];
142432
+ let currentSegment = [];
142433
+ // Process modifiers in one pass
142434
+ for (let i = 0; i < modifiers.length; i++) {
142435
+ const modifier = modifiers[i];
142436
+ // Check if modifier is sensitive (starts with '[' or in orderSensitiveModifiers)
142437
+ const isArbitrary = modifier[0] === '[';
142438
+ const isOrderSensitive = modifierWeights.has(modifier);
142439
+ if (isArbitrary || isOrderSensitive) {
142440
+ // Sort and flush current segment alphabetically
142441
+ if (currentSegment.length > 0) {
142442
+ currentSegment.sort();
142443
+ result.push(...currentSegment);
142444
+ currentSegment = [];
142445
+ }
142446
+ result.push(modifier);
142447
+ } else {
142448
+ // Regular modifier - add to current segment for batch sorting
142449
+ currentSegment.push(modifier);
142450
+ }
142451
+ }
142452
+ // Sort and add any remaining segment items
142453
+ if (currentSegment.length > 0) {
142454
+ currentSegment.sort();
142455
+ result.push(...currentSegment);
142456
+ }
142457
+ return result;
142458
+ };
142459
+ };
142460
+ const createConfigUtils = config => ({
142461
+ cache: createLruCache(config.cacheSize),
142462
+ parseClassName: createParseClassName(config),
142463
+ sortModifiers: createSortModifiers(config),
142464
+ ...createClassGroupUtils(config)
142465
+ });
142466
+ const SPLIT_CLASSES_REGEX = /\s+/;
142467
+ const mergeClassList = (classList, configUtils) => {
142468
+ const {
142469
+ parseClassName,
142470
+ getClassGroupId,
142471
+ getConflictingClassGroupIds,
142472
+ sortModifiers
142473
+ } = configUtils;
142474
+ /**
142475
+ * Set of classGroupIds in following format:
142476
+ * `{importantModifier}{variantModifiers}{classGroupId}`
142477
+ * @example 'float'
142478
+ * @example 'hover:focus:bg-color'
142479
+ * @example 'md:!pr'
142480
+ */
142481
+ const classGroupsInConflict = [];
142482
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
142483
+ let result = '';
142484
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
142485
+ const originalClassName = classNames[index];
142486
+ const {
142487
+ isExternal,
142488
+ modifiers,
142489
+ hasImportantModifier,
142490
+ baseClassName,
142491
+ maybePostfixModifierPosition
142492
+ } = parseClassName(originalClassName);
142493
+ if (isExternal) {
142494
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
142495
+ continue;
142496
+ }
142497
+ let hasPostfixModifier = !!maybePostfixModifierPosition;
142498
+ let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
142499
+ if (!classGroupId) {
142500
+ if (!hasPostfixModifier) {
142501
+ // Not a Tailwind class
142502
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
142503
+ continue;
142504
+ }
142505
+ classGroupId = getClassGroupId(baseClassName);
142506
+ if (!classGroupId) {
142507
+ // Not a Tailwind class
142508
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
142509
+ continue;
142510
+ }
142511
+ hasPostfixModifier = false;
142512
+ }
142513
+ // Fast path: skip sorting for empty or single modifier
142514
+ const variantModifier = modifiers.length === 0 ? '' : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(':');
142515
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
142516
+ const classId = modifierId + classGroupId;
142517
+ if (classGroupsInConflict.indexOf(classId) > -1) {
142518
+ // Tailwind class omitted due to conflict
142519
+ continue;
142520
+ }
142521
+ classGroupsInConflict.push(classId);
142522
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
142523
+ for (let i = 0; i < conflictGroups.length; ++i) {
142524
+ const group = conflictGroups[i];
142525
+ classGroupsInConflict.push(modifierId + group);
142526
+ }
142527
+ // Tailwind class not in conflict
142528
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
142529
+ }
142530
+ return result;
142531
+ };
142532
+
142533
+ /**
142534
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
142535
+ *
142536
+ * Specifically:
142537
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
142538
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
142539
+ *
142540
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
142541
+ */
142542
+ const twJoin = (...classLists) => {
142543
+ let index = 0;
142544
+ let argument;
142545
+ let resolvedValue;
142546
+ let string = '';
142547
+ while (index < classLists.length) {
142548
+ if (argument = classLists[index++]) {
142549
+ if (resolvedValue = toValue(argument)) {
142550
+ string && (string += ' ');
142551
+ string += resolvedValue;
142552
+ }
142553
+ }
142554
+ }
142555
+ return string;
142556
+ };
142557
+ const toValue = mix => {
142558
+ // Fast path for strings
142559
+ if (typeof mix === 'string') {
142560
+ return mix;
142561
+ }
142562
+ let resolvedValue;
142563
+ let string = '';
142564
+ for (let k = 0; k < mix.length; k++) {
142565
+ if (mix[k]) {
142566
+ if (resolvedValue = toValue(mix[k])) {
142567
+ string && (string += ' ');
142568
+ string += resolvedValue;
142569
+ }
142570
+ }
142571
+ }
142572
+ return string;
142573
+ };
142574
+ const createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
142575
+ let configUtils;
142576
+ let cacheGet;
142577
+ let cacheSet;
142578
+ let functionToCall;
142579
+ const initTailwindMerge = classList => {
142580
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
142581
+ configUtils = createConfigUtils(config);
142582
+ cacheGet = configUtils.cache.get;
142583
+ cacheSet = configUtils.cache.set;
142584
+ functionToCall = tailwindMerge;
142585
+ return tailwindMerge(classList);
142586
+ };
142587
+ const tailwindMerge = classList => {
142588
+ const cachedResult = cacheGet(classList);
142589
+ if (cachedResult) {
142590
+ return cachedResult;
142591
+ }
142592
+ const result = mergeClassList(classList, configUtils);
142593
+ cacheSet(classList, result);
142594
+ return result;
142595
+ };
142596
+ functionToCall = initTailwindMerge;
142597
+ return (...args) => functionToCall(twJoin(...args));
142598
+ };
142599
+ const fallbackThemeArr = [];
142600
+ const fromTheme = key => {
142601
+ const themeGetter = theme => theme[key] || fallbackThemeArr;
142602
+ themeGetter.isThemeGetter = true;
142603
+ return themeGetter;
142604
+ };
142605
+ const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
142606
+ const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
142607
+ const fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
142608
+ const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
142609
+ const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
142610
+ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
142611
+ // Shadow always begins with x and y offset separated by underscore optionally prepended by inset
142612
+ const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
142613
+ const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
142614
+ const isFraction = value => fractionRegex.test(value);
142615
+ const isNumber = value => !!value && !Number.isNaN(Number(value));
142616
+ const isInteger = value => !!value && Number.isInteger(Number(value));
142617
+ const isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));
142618
+ const isTshirtSize = value => tshirtUnitRegex.test(value);
142619
+ const isAny = () => true;
142620
+ const isLengthOnly = value =>
142621
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
142622
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
142623
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
142624
+ lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
142625
+ const isNever = () => false;
142626
+ const isShadow = value => shadowRegex.test(value);
142627
+ const isImage = value => imageRegex.test(value);
142628
+ const isAnyNonArbitrary = value => !isArbitraryValue(value) && !isArbitraryVariable(value);
142629
+ const isArbitrarySize = value => getIsArbitraryValue(value, isLabelSize, isNever);
142630
+ const isArbitraryValue = value => arbitraryValueRegex.test(value);
142631
+ const isArbitraryLength = value => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
142632
+ const isArbitraryNumber = value => getIsArbitraryValue(value, isLabelNumber, isNumber);
142633
+ const isArbitraryWeight = value => getIsArbitraryValue(value, isLabelWeight, isAny);
142634
+ const isArbitraryFamilyName = value => getIsArbitraryValue(value, isLabelFamilyName, isNever);
142635
+ const isArbitraryPosition = value => getIsArbitraryValue(value, isLabelPosition, isNever);
142636
+ const isArbitraryImage = value => getIsArbitraryValue(value, isLabelImage, isImage);
142637
+ const isArbitraryShadow = value => getIsArbitraryValue(value, isLabelShadow, isShadow);
142638
+ const isArbitraryVariable = value => arbitraryVariableRegex.test(value);
142639
+ const isArbitraryVariableLength = value => getIsArbitraryVariable(value, isLabelLength);
142640
+ const isArbitraryVariableFamilyName = value => getIsArbitraryVariable(value, isLabelFamilyName);
142641
+ const isArbitraryVariablePosition = value => getIsArbitraryVariable(value, isLabelPosition);
142642
+ const isArbitraryVariableSize = value => getIsArbitraryVariable(value, isLabelSize);
142643
+ const isArbitraryVariableImage = value => getIsArbitraryVariable(value, isLabelImage);
142644
+ const isArbitraryVariableShadow = value => getIsArbitraryVariable(value, isLabelShadow, true);
142645
+ const isArbitraryVariableWeight = value => getIsArbitraryVariable(value, isLabelWeight, true);
142646
+ // Helpers
142647
+ const getIsArbitraryValue = (value, testLabel, testValue) => {
142648
+ const result = arbitraryValueRegex.exec(value);
142649
+ if (result) {
142650
+ if (result[1]) {
142651
+ return testLabel(result[1]);
142652
+ }
142653
+ return testValue(result[2]);
142654
+ }
142655
+ return false;
142656
+ };
142657
+ const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
142658
+ const result = arbitraryVariableRegex.exec(value);
142659
+ if (result) {
142660
+ if (result[1]) {
142661
+ return testLabel(result[1]);
142662
+ }
142663
+ return shouldMatchNoLabel;
142664
+ }
142665
+ return false;
142666
+ };
142667
+ // Labels
142668
+ const isLabelPosition = label => label === 'position' || label === 'percentage';
142669
+ const isLabelImage = label => label === 'image' || label === 'url';
142670
+ const isLabelSize = label => label === 'length' || label === 'size' || label === 'bg-size';
142671
+ const isLabelLength = label => label === 'length';
142672
+ const isLabelNumber = label => label === 'number';
142673
+ const isLabelFamilyName = label => label === 'family-name';
142674
+ const isLabelWeight = label => label === 'number' || label === 'weight';
142675
+ const isLabelShadow = label => label === 'shadow';
142676
+ const getDefaultConfig = () => {
142677
+ /**
142678
+ * Theme getters for theme variable namespaces
142679
+ * @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
142680
+ */
142681
+ /***/
142682
+ const themeColor = fromTheme('color');
142683
+ const themeFont = fromTheme('font');
142684
+ const themeText = fromTheme('text');
142685
+ const themeFontWeight = fromTheme('font-weight');
142686
+ const themeTracking = fromTheme('tracking');
142687
+ const themeLeading = fromTheme('leading');
142688
+ const themeBreakpoint = fromTheme('breakpoint');
142689
+ const themeContainer = fromTheme('container');
142690
+ const themeSpacing = fromTheme('spacing');
142691
+ const themeRadius = fromTheme('radius');
142692
+ const themeShadow = fromTheme('shadow');
142693
+ const themeInsetShadow = fromTheme('inset-shadow');
142694
+ const themeTextShadow = fromTheme('text-shadow');
142695
+ const themeDropShadow = fromTheme('drop-shadow');
142696
+ const themeBlur = fromTheme('blur');
142697
+ const themePerspective = fromTheme('perspective');
142698
+ const themeAspect = fromTheme('aspect');
142699
+ const themeEase = fromTheme('ease');
142700
+ const themeAnimate = fromTheme('animate');
142701
+ /**
142702
+ * Helpers to avoid repeating the same scales
142703
+ *
142704
+ * We use functions that create a new array every time they're called instead of static arrays.
142705
+ * This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
142706
+ */
142707
+ /***/
142708
+ const scaleBreak = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
142709
+ const scalePosition = () => ['center', 'top', 'bottom', 'left', 'right', 'top-left',
142710
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
142711
+ 'left-top', 'top-right',
142712
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
142713
+ 'right-top', 'bottom-right',
142714
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
142715
+ 'right-bottom', 'bottom-left',
142716
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
142717
+ 'left-bottom'];
142718
+ const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
142719
+ const scaleOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
142720
+ const scaleOverscroll = () => ['auto', 'contain', 'none'];
142721
+ const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
142722
+ const scaleInset = () => [isFraction, 'full', 'auto', ...scaleUnambiguousSpacing()];
142723
+ const scaleGridTemplateColsRows = () => [isInteger, 'none', 'subgrid', isArbitraryVariable, isArbitraryValue];
142724
+ const scaleGridColRowStartAndEnd = () => ['auto', {
142725
+ span: ['full', isInteger, isArbitraryVariable, isArbitraryValue]
142726
+ }, isInteger, isArbitraryVariable, isArbitraryValue];
142727
+ const scaleGridColRowStartOrEnd = () => [isInteger, 'auto', isArbitraryVariable, isArbitraryValue];
142728
+ const scaleGridAutoColsRows = () => ['auto', 'min', 'max', 'fr', isArbitraryVariable, isArbitraryValue];
142729
+ const scaleAlignPrimaryAxis = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch', 'baseline', 'center-safe', 'end-safe'];
142730
+ const scaleAlignSecondaryAxis = () => ['start', 'end', 'center', 'stretch', 'center-safe', 'end-safe'];
142731
+ const scaleMargin = () => ['auto', ...scaleUnambiguousSpacing()];
142732
+ const scaleSizing = () => [isFraction, 'auto', 'full', 'dvw', 'dvh', 'lvw', 'lvh', 'svw', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
142733
+ const scaleSizingInline = () => [isFraction, 'screen', 'full', 'dvw', 'lvw', 'svw', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
142734
+ const scaleSizingBlock = () => [isFraction, 'screen', 'full', 'lh', 'dvh', 'lvh', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
142735
+ const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
142736
+ const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
142737
+ position: [isArbitraryVariable, isArbitraryValue]
142738
+ }];
142739
+ const scaleBgRepeat = () => ['no-repeat', {
142740
+ repeat: ['', 'x', 'y', 'space', 'round']
142741
+ }];
142742
+ const scaleBgSize = () => ['auto', 'cover', 'contain', isArbitraryVariableSize, isArbitrarySize, {
142743
+ size: [isArbitraryVariable, isArbitraryValue]
142744
+ }];
142745
+ const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
142746
+ const scaleRadius = () => [
142747
+ // Deprecated since Tailwind CSS v4.0.0
142748
+ '', 'none', 'full', themeRadius, isArbitraryVariable, isArbitraryValue];
142749
+ const scaleBorderWidth = () => ['', isNumber, isArbitraryVariableLength, isArbitraryLength];
142750
+ const scaleLineStyle = () => ['solid', 'dashed', 'dotted', 'double'];
142751
+ const scaleBlendMode = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];
142752
+ const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
142753
+ const scaleBlur = () => [
142754
+ // Deprecated since Tailwind CSS v4.0.0
142755
+ '', 'none', themeBlur, isArbitraryVariable, isArbitraryValue];
142756
+ const scaleRotate = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
142757
+ const scaleScale = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
142758
+ const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
142759
+ const scaleTranslate = () => [isFraction, 'full', ...scaleUnambiguousSpacing()];
142760
+ return {
142761
+ cacheSize: 500,
142762
+ theme: {
142763
+ animate: ['spin', 'ping', 'pulse', 'bounce'],
142764
+ aspect: ['video'],
142765
+ blur: [isTshirtSize],
142766
+ breakpoint: [isTshirtSize],
142767
+ color: [isAny],
142768
+ container: [isTshirtSize],
142769
+ 'drop-shadow': [isTshirtSize],
142770
+ ease: ['in', 'out', 'in-out'],
142771
+ font: [isAnyNonArbitrary],
142772
+ 'font-weight': ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black'],
142773
+ 'inset-shadow': [isTshirtSize],
142774
+ leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose'],
142775
+ perspective: ['dramatic', 'near', 'normal', 'midrange', 'distant', 'none'],
142776
+ radius: [isTshirtSize],
142777
+ shadow: [isTshirtSize],
142778
+ spacing: ['px', isNumber],
142779
+ text: [isTshirtSize],
142780
+ 'text-shadow': [isTshirtSize],
142781
+ tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest']
142782
+ },
142783
+ classGroups: {
142784
+ // --------------
142785
+ // --- Layout ---
142786
+ // --------------
142787
+ /**
142788
+ * Aspect Ratio
142789
+ * @see https://tailwindcss.com/docs/aspect-ratio
142790
+ */
142791
+ aspect: [{
142792
+ aspect: ['auto', 'square', isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
142793
+ }],
142794
+ /**
142795
+ * Container
142796
+ * @see https://tailwindcss.com/docs/container
142797
+ * @deprecated since Tailwind CSS v4.0.0
142798
+ */
142799
+ container: ['container'],
142800
+ /**
142801
+ * Columns
142802
+ * @see https://tailwindcss.com/docs/columns
142803
+ */
142804
+ columns: [{
142805
+ columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
142806
+ }],
142807
+ /**
142808
+ * Break After
142809
+ * @see https://tailwindcss.com/docs/break-after
142810
+ */
142811
+ 'break-after': [{
142812
+ 'break-after': scaleBreak()
142813
+ }],
142814
+ /**
142815
+ * Break Before
142816
+ * @see https://tailwindcss.com/docs/break-before
142817
+ */
142818
+ 'break-before': [{
142819
+ 'break-before': scaleBreak()
142820
+ }],
142821
+ /**
142822
+ * Break Inside
142823
+ * @see https://tailwindcss.com/docs/break-inside
142824
+ */
142825
+ 'break-inside': [{
142826
+ 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']
142827
+ }],
142828
+ /**
142829
+ * Box Decoration Break
142830
+ * @see https://tailwindcss.com/docs/box-decoration-break
142831
+ */
142832
+ 'box-decoration': [{
142833
+ 'box-decoration': ['slice', 'clone']
142834
+ }],
142835
+ /**
142836
+ * Box Sizing
142837
+ * @see https://tailwindcss.com/docs/box-sizing
142838
+ */
142839
+ box: [{
142840
+ box: ['border', 'content']
142841
+ }],
142842
+ /**
142843
+ * Display
142844
+ * @see https://tailwindcss.com/docs/display
142845
+ */
142846
+ display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],
142847
+ /**
142848
+ * Screen Reader Only
142849
+ * @see https://tailwindcss.com/docs/display#screen-reader-only
142850
+ */
142851
+ sr: ['sr-only', 'not-sr-only'],
142852
+ /**
142853
+ * Floats
142854
+ * @see https://tailwindcss.com/docs/float
142855
+ */
142856
+ float: [{
142857
+ float: ['right', 'left', 'none', 'start', 'end']
142858
+ }],
142859
+ /**
142860
+ * Clear
142861
+ * @see https://tailwindcss.com/docs/clear
142862
+ */
142863
+ clear: [{
142864
+ clear: ['left', 'right', 'both', 'none', 'start', 'end']
142865
+ }],
142866
+ /**
142867
+ * Isolation
142868
+ * @see https://tailwindcss.com/docs/isolation
142869
+ */
142870
+ isolation: ['isolate', 'isolation-auto'],
142871
+ /**
142872
+ * Object Fit
142873
+ * @see https://tailwindcss.com/docs/object-fit
142874
+ */
142875
+ 'object-fit': [{
142876
+ object: ['contain', 'cover', 'fill', 'none', 'scale-down']
142877
+ }],
142878
+ /**
142879
+ * Object Position
142880
+ * @see https://tailwindcss.com/docs/object-position
142881
+ */
142882
+ 'object-position': [{
142883
+ object: scalePositionWithArbitrary()
142884
+ }],
142885
+ /**
142886
+ * Overflow
142887
+ * @see https://tailwindcss.com/docs/overflow
142888
+ */
142889
+ overflow: [{
142890
+ overflow: scaleOverflow()
142891
+ }],
142892
+ /**
142893
+ * Overflow X
142894
+ * @see https://tailwindcss.com/docs/overflow
142895
+ */
142896
+ 'overflow-x': [{
142897
+ 'overflow-x': scaleOverflow()
142898
+ }],
142899
+ /**
142900
+ * Overflow Y
142901
+ * @see https://tailwindcss.com/docs/overflow
142902
+ */
142903
+ 'overflow-y': [{
142904
+ 'overflow-y': scaleOverflow()
142905
+ }],
142906
+ /**
142907
+ * Overscroll Behavior
142908
+ * @see https://tailwindcss.com/docs/overscroll-behavior
142909
+ */
142910
+ overscroll: [{
142911
+ overscroll: scaleOverscroll()
142912
+ }],
142913
+ /**
142914
+ * Overscroll Behavior X
142915
+ * @see https://tailwindcss.com/docs/overscroll-behavior
142916
+ */
142917
+ 'overscroll-x': [{
142918
+ 'overscroll-x': scaleOverscroll()
142919
+ }],
142920
+ /**
142921
+ * Overscroll Behavior Y
142922
+ * @see https://tailwindcss.com/docs/overscroll-behavior
142923
+ */
142924
+ 'overscroll-y': [{
142925
+ 'overscroll-y': scaleOverscroll()
142926
+ }],
142927
+ /**
142928
+ * Position
142929
+ * @see https://tailwindcss.com/docs/position
142930
+ */
142931
+ position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],
142932
+ /**
142933
+ * Inset
142934
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
142935
+ */
142936
+ inset: [{
142937
+ inset: scaleInset()
142938
+ }],
142939
+ /**
142940
+ * Inset Inline
142941
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
142942
+ */
142943
+ 'inset-x': [{
142944
+ 'inset-x': scaleInset()
142945
+ }],
142946
+ /**
142947
+ * Inset Block
142948
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
142949
+ */
142950
+ 'inset-y': [{
142951
+ 'inset-y': scaleInset()
142952
+ }],
142953
+ /**
142954
+ * Inset Inline Start
142955
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
142956
+ * @todo class group will be renamed to `inset-s` in next major release
142957
+ */
142958
+ start: [{
142959
+ 'inset-s': scaleInset(),
142960
+ /**
142961
+ * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
142962
+ * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
142963
+ */
142964
+ start: scaleInset()
142965
+ }],
142966
+ /**
142967
+ * Inset Inline End
142968
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
142969
+ * @todo class group will be renamed to `inset-e` in next major release
142970
+ */
142971
+ end: [{
142972
+ 'inset-e': scaleInset(),
142973
+ /**
142974
+ * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
142975
+ * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
142976
+ */
142977
+ end: scaleInset()
142978
+ }],
142979
+ /**
142980
+ * Inset Block Start
142981
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
142982
+ */
142983
+ 'inset-bs': [{
142984
+ 'inset-bs': scaleInset()
142985
+ }],
142986
+ /**
142987
+ * Inset Block End
142988
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
142989
+ */
142990
+ 'inset-be': [{
142991
+ 'inset-be': scaleInset()
142992
+ }],
142993
+ /**
142994
+ * Top
142995
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
142996
+ */
142997
+ top: [{
142998
+ top: scaleInset()
142999
+ }],
143000
+ /**
143001
+ * Right
143002
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
143003
+ */
143004
+ right: [{
143005
+ right: scaleInset()
143006
+ }],
143007
+ /**
143008
+ * Bottom
143009
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
143010
+ */
143011
+ bottom: [{
143012
+ bottom: scaleInset()
143013
+ }],
143014
+ /**
143015
+ * Left
143016
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
143017
+ */
143018
+ left: [{
143019
+ left: scaleInset()
143020
+ }],
143021
+ /**
143022
+ * Visibility
143023
+ * @see https://tailwindcss.com/docs/visibility
143024
+ */
143025
+ visibility: ['visible', 'invisible', 'collapse'],
143026
+ /**
143027
+ * Z-Index
143028
+ * @see https://tailwindcss.com/docs/z-index
143029
+ */
143030
+ z: [{
143031
+ z: [isInteger, 'auto', isArbitraryVariable, isArbitraryValue]
143032
+ }],
143033
+ // ------------------------
143034
+ // --- Flexbox and Grid ---
143035
+ // ------------------------
143036
+ /**
143037
+ * Flex Basis
143038
+ * @see https://tailwindcss.com/docs/flex-basis
143039
+ */
143040
+ basis: [{
143041
+ basis: [isFraction, 'full', 'auto', themeContainer, ...scaleUnambiguousSpacing()]
143042
+ }],
143043
+ /**
143044
+ * Flex Direction
143045
+ * @see https://tailwindcss.com/docs/flex-direction
143046
+ */
143047
+ 'flex-direction': [{
143048
+ flex: ['row', 'row-reverse', 'col', 'col-reverse']
143049
+ }],
143050
+ /**
143051
+ * Flex Wrap
143052
+ * @see https://tailwindcss.com/docs/flex-wrap
143053
+ */
143054
+ 'flex-wrap': [{
143055
+ flex: ['nowrap', 'wrap', 'wrap-reverse']
143056
+ }],
143057
+ /**
143058
+ * Flex
143059
+ * @see https://tailwindcss.com/docs/flex
143060
+ */
143061
+ flex: [{
143062
+ flex: [isNumber, isFraction, 'auto', 'initial', 'none', isArbitraryValue]
143063
+ }],
143064
+ /**
143065
+ * Flex Grow
143066
+ * @see https://tailwindcss.com/docs/flex-grow
143067
+ */
143068
+ grow: [{
143069
+ grow: ['', isNumber, isArbitraryVariable, isArbitraryValue]
143070
+ }],
143071
+ /**
143072
+ * Flex Shrink
143073
+ * @see https://tailwindcss.com/docs/flex-shrink
143074
+ */
143075
+ shrink: [{
143076
+ shrink: ['', isNumber, isArbitraryVariable, isArbitraryValue]
143077
+ }],
143078
+ /**
143079
+ * Order
143080
+ * @see https://tailwindcss.com/docs/order
143081
+ */
143082
+ order: [{
143083
+ order: [isInteger, 'first', 'last', 'none', isArbitraryVariable, isArbitraryValue]
143084
+ }],
143085
+ /**
143086
+ * Grid Template Columns
143087
+ * @see https://tailwindcss.com/docs/grid-template-columns
143088
+ */
143089
+ 'grid-cols': [{
143090
+ 'grid-cols': scaleGridTemplateColsRows()
143091
+ }],
143092
+ /**
143093
+ * Grid Column Start / End
143094
+ * @see https://tailwindcss.com/docs/grid-column
143095
+ */
143096
+ 'col-start-end': [{
143097
+ col: scaleGridColRowStartAndEnd()
143098
+ }],
143099
+ /**
143100
+ * Grid Column Start
143101
+ * @see https://tailwindcss.com/docs/grid-column
143102
+ */
143103
+ 'col-start': [{
143104
+ 'col-start': scaleGridColRowStartOrEnd()
143105
+ }],
143106
+ /**
143107
+ * Grid Column End
143108
+ * @see https://tailwindcss.com/docs/grid-column
143109
+ */
143110
+ 'col-end': [{
143111
+ 'col-end': scaleGridColRowStartOrEnd()
143112
+ }],
143113
+ /**
143114
+ * Grid Template Rows
143115
+ * @see https://tailwindcss.com/docs/grid-template-rows
143116
+ */
143117
+ 'grid-rows': [{
143118
+ 'grid-rows': scaleGridTemplateColsRows()
143119
+ }],
143120
+ /**
143121
+ * Grid Row Start / End
143122
+ * @see https://tailwindcss.com/docs/grid-row
143123
+ */
143124
+ 'row-start-end': [{
143125
+ row: scaleGridColRowStartAndEnd()
143126
+ }],
143127
+ /**
143128
+ * Grid Row Start
143129
+ * @see https://tailwindcss.com/docs/grid-row
143130
+ */
143131
+ 'row-start': [{
143132
+ 'row-start': scaleGridColRowStartOrEnd()
143133
+ }],
143134
+ /**
143135
+ * Grid Row End
143136
+ * @see https://tailwindcss.com/docs/grid-row
143137
+ */
143138
+ 'row-end': [{
143139
+ 'row-end': scaleGridColRowStartOrEnd()
143140
+ }],
143141
+ /**
143142
+ * Grid Auto Flow
143143
+ * @see https://tailwindcss.com/docs/grid-auto-flow
143144
+ */
143145
+ 'grid-flow': [{
143146
+ 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']
143147
+ }],
143148
+ /**
143149
+ * Grid Auto Columns
143150
+ * @see https://tailwindcss.com/docs/grid-auto-columns
143151
+ */
143152
+ 'auto-cols': [{
143153
+ 'auto-cols': scaleGridAutoColsRows()
143154
+ }],
143155
+ /**
143156
+ * Grid Auto Rows
143157
+ * @see https://tailwindcss.com/docs/grid-auto-rows
143158
+ */
143159
+ 'auto-rows': [{
143160
+ 'auto-rows': scaleGridAutoColsRows()
143161
+ }],
143162
+ /**
143163
+ * Gap
143164
+ * @see https://tailwindcss.com/docs/gap
143165
+ */
143166
+ gap: [{
143167
+ gap: scaleUnambiguousSpacing()
143168
+ }],
143169
+ /**
143170
+ * Gap X
143171
+ * @see https://tailwindcss.com/docs/gap
143172
+ */
143173
+ 'gap-x': [{
143174
+ 'gap-x': scaleUnambiguousSpacing()
143175
+ }],
143176
+ /**
143177
+ * Gap Y
143178
+ * @see https://tailwindcss.com/docs/gap
143179
+ */
143180
+ 'gap-y': [{
143181
+ 'gap-y': scaleUnambiguousSpacing()
143182
+ }],
143183
+ /**
143184
+ * Justify Content
143185
+ * @see https://tailwindcss.com/docs/justify-content
143186
+ */
143187
+ 'justify-content': [{
143188
+ justify: [...scaleAlignPrimaryAxis(), 'normal']
143189
+ }],
143190
+ /**
143191
+ * Justify Items
143192
+ * @see https://tailwindcss.com/docs/justify-items
143193
+ */
143194
+ 'justify-items': [{
143195
+ 'justify-items': [...scaleAlignSecondaryAxis(), 'normal']
143196
+ }],
143197
+ /**
143198
+ * Justify Self
143199
+ * @see https://tailwindcss.com/docs/justify-self
143200
+ */
143201
+ 'justify-self': [{
143202
+ 'justify-self': ['auto', ...scaleAlignSecondaryAxis()]
143203
+ }],
143204
+ /**
143205
+ * Align Content
143206
+ * @see https://tailwindcss.com/docs/align-content
143207
+ */
143208
+ 'align-content': [{
143209
+ content: ['normal', ...scaleAlignPrimaryAxis()]
143210
+ }],
143211
+ /**
143212
+ * Align Items
143213
+ * @see https://tailwindcss.com/docs/align-items
143214
+ */
143215
+ 'align-items': [{
143216
+ items: [...scaleAlignSecondaryAxis(), {
143217
+ baseline: ['', 'last']
143218
+ }]
143219
+ }],
143220
+ /**
143221
+ * Align Self
143222
+ * @see https://tailwindcss.com/docs/align-self
143223
+ */
143224
+ 'align-self': [{
143225
+ self: ['auto', ...scaleAlignSecondaryAxis(), {
143226
+ baseline: ['', 'last']
143227
+ }]
143228
+ }],
143229
+ /**
143230
+ * Place Content
143231
+ * @see https://tailwindcss.com/docs/place-content
143232
+ */
143233
+ 'place-content': [{
143234
+ 'place-content': scaleAlignPrimaryAxis()
143235
+ }],
143236
+ /**
143237
+ * Place Items
143238
+ * @see https://tailwindcss.com/docs/place-items
143239
+ */
143240
+ 'place-items': [{
143241
+ 'place-items': [...scaleAlignSecondaryAxis(), 'baseline']
143242
+ }],
143243
+ /**
143244
+ * Place Self
143245
+ * @see https://tailwindcss.com/docs/place-self
143246
+ */
143247
+ 'place-self': [{
143248
+ 'place-self': ['auto', ...scaleAlignSecondaryAxis()]
143249
+ }],
143250
+ // Spacing
143251
+ /**
143252
+ * Padding
143253
+ * @see https://tailwindcss.com/docs/padding
143254
+ */
143255
+ p: [{
143256
+ p: scaleUnambiguousSpacing()
143257
+ }],
143258
+ /**
143259
+ * Padding Inline
143260
+ * @see https://tailwindcss.com/docs/padding
143261
+ */
143262
+ px: [{
143263
+ px: scaleUnambiguousSpacing()
143264
+ }],
143265
+ /**
143266
+ * Padding Block
143267
+ * @see https://tailwindcss.com/docs/padding
143268
+ */
143269
+ py: [{
143270
+ py: scaleUnambiguousSpacing()
143271
+ }],
143272
+ /**
143273
+ * Padding Inline Start
143274
+ * @see https://tailwindcss.com/docs/padding
143275
+ */
143276
+ ps: [{
143277
+ ps: scaleUnambiguousSpacing()
143278
+ }],
143279
+ /**
143280
+ * Padding Inline End
143281
+ * @see https://tailwindcss.com/docs/padding
143282
+ */
143283
+ pe: [{
143284
+ pe: scaleUnambiguousSpacing()
143285
+ }],
143286
+ /**
143287
+ * Padding Block Start
143288
+ * @see https://tailwindcss.com/docs/padding
143289
+ */
143290
+ pbs: [{
143291
+ pbs: scaleUnambiguousSpacing()
143292
+ }],
143293
+ /**
143294
+ * Padding Block End
143295
+ * @see https://tailwindcss.com/docs/padding
143296
+ */
143297
+ pbe: [{
143298
+ pbe: scaleUnambiguousSpacing()
143299
+ }],
143300
+ /**
143301
+ * Padding Top
143302
+ * @see https://tailwindcss.com/docs/padding
143303
+ */
143304
+ pt: [{
143305
+ pt: scaleUnambiguousSpacing()
143306
+ }],
143307
+ /**
143308
+ * Padding Right
143309
+ * @see https://tailwindcss.com/docs/padding
143310
+ */
143311
+ pr: [{
143312
+ pr: scaleUnambiguousSpacing()
143313
+ }],
143314
+ /**
143315
+ * Padding Bottom
143316
+ * @see https://tailwindcss.com/docs/padding
143317
+ */
143318
+ pb: [{
143319
+ pb: scaleUnambiguousSpacing()
143320
+ }],
143321
+ /**
143322
+ * Padding Left
143323
+ * @see https://tailwindcss.com/docs/padding
143324
+ */
143325
+ pl: [{
143326
+ pl: scaleUnambiguousSpacing()
143327
+ }],
143328
+ /**
143329
+ * Margin
143330
+ * @see https://tailwindcss.com/docs/margin
143331
+ */
143332
+ m: [{
143333
+ m: scaleMargin()
143334
+ }],
143335
+ /**
143336
+ * Margin Inline
143337
+ * @see https://tailwindcss.com/docs/margin
143338
+ */
143339
+ mx: [{
143340
+ mx: scaleMargin()
143341
+ }],
143342
+ /**
143343
+ * Margin Block
143344
+ * @see https://tailwindcss.com/docs/margin
143345
+ */
143346
+ my: [{
143347
+ my: scaleMargin()
143348
+ }],
143349
+ /**
143350
+ * Margin Inline Start
143351
+ * @see https://tailwindcss.com/docs/margin
143352
+ */
143353
+ ms: [{
143354
+ ms: scaleMargin()
143355
+ }],
143356
+ /**
143357
+ * Margin Inline End
143358
+ * @see https://tailwindcss.com/docs/margin
143359
+ */
143360
+ me: [{
143361
+ me: scaleMargin()
143362
+ }],
143363
+ /**
143364
+ * Margin Block Start
143365
+ * @see https://tailwindcss.com/docs/margin
143366
+ */
143367
+ mbs: [{
143368
+ mbs: scaleMargin()
143369
+ }],
143370
+ /**
143371
+ * Margin Block End
143372
+ * @see https://tailwindcss.com/docs/margin
143373
+ */
143374
+ mbe: [{
143375
+ mbe: scaleMargin()
143376
+ }],
143377
+ /**
143378
+ * Margin Top
143379
+ * @see https://tailwindcss.com/docs/margin
143380
+ */
143381
+ mt: [{
143382
+ mt: scaleMargin()
143383
+ }],
143384
+ /**
143385
+ * Margin Right
143386
+ * @see https://tailwindcss.com/docs/margin
143387
+ */
143388
+ mr: [{
143389
+ mr: scaleMargin()
143390
+ }],
143391
+ /**
143392
+ * Margin Bottom
143393
+ * @see https://tailwindcss.com/docs/margin
143394
+ */
143395
+ mb: [{
143396
+ mb: scaleMargin()
143397
+ }],
143398
+ /**
143399
+ * Margin Left
143400
+ * @see https://tailwindcss.com/docs/margin
143401
+ */
143402
+ ml: [{
143403
+ ml: scaleMargin()
143404
+ }],
143405
+ /**
143406
+ * Space Between X
143407
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
143408
+ */
143409
+ 'space-x': [{
143410
+ 'space-x': scaleUnambiguousSpacing()
143411
+ }],
143412
+ /**
143413
+ * Space Between X Reverse
143414
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
143415
+ */
143416
+ 'space-x-reverse': ['space-x-reverse'],
143417
+ /**
143418
+ * Space Between Y
143419
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
143420
+ */
143421
+ 'space-y': [{
143422
+ 'space-y': scaleUnambiguousSpacing()
143423
+ }],
143424
+ /**
143425
+ * Space Between Y Reverse
143426
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
143427
+ */
143428
+ 'space-y-reverse': ['space-y-reverse'],
143429
+ // --------------
143430
+ // --- Sizing ---
143431
+ // --------------
143432
+ /**
143433
+ * Size
143434
+ * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
143435
+ */
143436
+ size: [{
143437
+ size: scaleSizing()
143438
+ }],
143439
+ /**
143440
+ * Inline Size
143441
+ * @see https://tailwindcss.com/docs/width
143442
+ */
143443
+ 'inline-size': [{
143444
+ inline: ['auto', ...scaleSizingInline()]
143445
+ }],
143446
+ /**
143447
+ * Min-Inline Size
143448
+ * @see https://tailwindcss.com/docs/min-width
143449
+ */
143450
+ 'min-inline-size': [{
143451
+ 'min-inline': ['auto', ...scaleSizingInline()]
143452
+ }],
143453
+ /**
143454
+ * Max-Inline Size
143455
+ * @see https://tailwindcss.com/docs/max-width
143456
+ */
143457
+ 'max-inline-size': [{
143458
+ 'max-inline': ['none', ...scaleSizingInline()]
143459
+ }],
143460
+ /**
143461
+ * Block Size
143462
+ * @see https://tailwindcss.com/docs/height
143463
+ */
143464
+ 'block-size': [{
143465
+ block: ['auto', ...scaleSizingBlock()]
143466
+ }],
143467
+ /**
143468
+ * Min-Block Size
143469
+ * @see https://tailwindcss.com/docs/min-height
143470
+ */
143471
+ 'min-block-size': [{
143472
+ 'min-block': ['auto', ...scaleSizingBlock()]
143473
+ }],
143474
+ /**
143475
+ * Max-Block Size
143476
+ * @see https://tailwindcss.com/docs/max-height
143477
+ */
143478
+ 'max-block-size': [{
143479
+ 'max-block': ['none', ...scaleSizingBlock()]
143480
+ }],
143481
+ /**
143482
+ * Width
143483
+ * @see https://tailwindcss.com/docs/width
143484
+ */
143485
+ w: [{
143486
+ w: [themeContainer, 'screen', ...scaleSizing()]
143487
+ }],
143488
+ /**
143489
+ * Min-Width
143490
+ * @see https://tailwindcss.com/docs/min-width
143491
+ */
143492
+ 'min-w': [{
143493
+ 'min-w': [themeContainer, 'screen', /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
143494
+ 'none', ...scaleSizing()]
143495
+ }],
143496
+ /**
143497
+ * Max-Width
143498
+ * @see https://tailwindcss.com/docs/max-width
143499
+ */
143500
+ 'max-w': [{
143501
+ 'max-w': [themeContainer, 'screen', 'none', /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
143502
+ 'prose', /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
143503
+ {
143504
+ screen: [themeBreakpoint]
143505
+ }, ...scaleSizing()]
143506
+ }],
143507
+ /**
143508
+ * Height
143509
+ * @see https://tailwindcss.com/docs/height
143510
+ */
143511
+ h: [{
143512
+ h: ['screen', 'lh', ...scaleSizing()]
143513
+ }],
143514
+ /**
143515
+ * Min-Height
143516
+ * @see https://tailwindcss.com/docs/min-height
143517
+ */
143518
+ 'min-h': [{
143519
+ 'min-h': ['screen', 'lh', 'none', ...scaleSizing()]
143520
+ }],
143521
+ /**
143522
+ * Max-Height
143523
+ * @see https://tailwindcss.com/docs/max-height
143524
+ */
143525
+ 'max-h': [{
143526
+ 'max-h': ['screen', 'lh', ...scaleSizing()]
143527
+ }],
143528
+ // ------------------
143529
+ // --- Typography ---
143530
+ // ------------------
143531
+ /**
143532
+ * Font Size
143533
+ * @see https://tailwindcss.com/docs/font-size
143534
+ */
143535
+ 'font-size': [{
143536
+ text: ['base', themeText, isArbitraryVariableLength, isArbitraryLength]
143537
+ }],
143538
+ /**
143539
+ * Font Smoothing
143540
+ * @see https://tailwindcss.com/docs/font-smoothing
143541
+ */
143542
+ 'font-smoothing': ['antialiased', 'subpixel-antialiased'],
143543
+ /**
143544
+ * Font Style
143545
+ * @see https://tailwindcss.com/docs/font-style
143546
+ */
143547
+ 'font-style': ['italic', 'not-italic'],
143548
+ /**
143549
+ * Font Weight
143550
+ * @see https://tailwindcss.com/docs/font-weight
143551
+ */
143552
+ 'font-weight': [{
143553
+ font: [themeFontWeight, isArbitraryVariableWeight, isArbitraryWeight]
143554
+ }],
143555
+ /**
143556
+ * Font Stretch
143557
+ * @see https://tailwindcss.com/docs/font-stretch
143558
+ */
143559
+ 'font-stretch': [{
143560
+ 'font-stretch': ['ultra-condensed', 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', 'expanded', 'extra-expanded', 'ultra-expanded', isPercent, isArbitraryValue]
143561
+ }],
143562
+ /**
143563
+ * Font Family
143564
+ * @see https://tailwindcss.com/docs/font-family
143565
+ */
143566
+ 'font-family': [{
143567
+ font: [isArbitraryVariableFamilyName, isArbitraryFamilyName, themeFont]
143568
+ }],
143569
+ /**
143570
+ * Font Feature Settings
143571
+ * @see https://tailwindcss.com/docs/font-feature-settings
143572
+ */
143573
+ 'font-features': [{
143574
+ 'font-features': [isArbitraryValue]
143575
+ }],
143576
+ /**
143577
+ * Font Variant Numeric
143578
+ * @see https://tailwindcss.com/docs/font-variant-numeric
143579
+ */
143580
+ 'fvn-normal': ['normal-nums'],
143581
+ /**
143582
+ * Font Variant Numeric
143583
+ * @see https://tailwindcss.com/docs/font-variant-numeric
143584
+ */
143585
+ 'fvn-ordinal': ['ordinal'],
143586
+ /**
143587
+ * Font Variant Numeric
143588
+ * @see https://tailwindcss.com/docs/font-variant-numeric
143589
+ */
143590
+ 'fvn-slashed-zero': ['slashed-zero'],
143591
+ /**
143592
+ * Font Variant Numeric
143593
+ * @see https://tailwindcss.com/docs/font-variant-numeric
143594
+ */
143595
+ 'fvn-figure': ['lining-nums', 'oldstyle-nums'],
143596
+ /**
143597
+ * Font Variant Numeric
143598
+ * @see https://tailwindcss.com/docs/font-variant-numeric
143599
+ */
143600
+ 'fvn-spacing': ['proportional-nums', 'tabular-nums'],
143601
+ /**
143602
+ * Font Variant Numeric
143603
+ * @see https://tailwindcss.com/docs/font-variant-numeric
143604
+ */
143605
+ 'fvn-fraction': ['diagonal-fractions', 'stacked-fractions'],
143606
+ /**
143607
+ * Letter Spacing
143608
+ * @see https://tailwindcss.com/docs/letter-spacing
143609
+ */
143610
+ tracking: [{
143611
+ tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
143612
+ }],
143613
+ /**
143614
+ * Line Clamp
143615
+ * @see https://tailwindcss.com/docs/line-clamp
143616
+ */
143617
+ 'line-clamp': [{
143618
+ 'line-clamp': [isNumber, 'none', isArbitraryVariable, isArbitraryNumber]
143619
+ }],
143620
+ /**
143621
+ * Line Height
143622
+ * @see https://tailwindcss.com/docs/line-height
143623
+ */
143624
+ leading: [{
143625
+ leading: [/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
143626
+ themeLeading, ...scaleUnambiguousSpacing()]
143627
+ }],
143628
+ /**
143629
+ * List Style Image
143630
+ * @see https://tailwindcss.com/docs/list-style-image
143631
+ */
143632
+ 'list-image': [{
143633
+ 'list-image': ['none', isArbitraryVariable, isArbitraryValue]
143634
+ }],
143635
+ /**
143636
+ * List Style Position
143637
+ * @see https://tailwindcss.com/docs/list-style-position
143638
+ */
143639
+ 'list-style-position': [{
143640
+ list: ['inside', 'outside']
143641
+ }],
143642
+ /**
143643
+ * List Style Type
143644
+ * @see https://tailwindcss.com/docs/list-style-type
143645
+ */
143646
+ 'list-style-type': [{
143647
+ list: ['disc', 'decimal', 'none', isArbitraryVariable, isArbitraryValue]
143648
+ }],
143649
+ /**
143650
+ * Text Alignment
143651
+ * @see https://tailwindcss.com/docs/text-align
143652
+ */
143653
+ 'text-alignment': [{
143654
+ text: ['left', 'center', 'right', 'justify', 'start', 'end']
143655
+ }],
143656
+ /**
143657
+ * Placeholder Color
143658
+ * @deprecated since Tailwind CSS v3.0.0
143659
+ * @see https://v3.tailwindcss.com/docs/placeholder-color
143660
+ */
143661
+ 'placeholder-color': [{
143662
+ placeholder: scaleColor()
143663
+ }],
143664
+ /**
143665
+ * Text Color
143666
+ * @see https://tailwindcss.com/docs/text-color
143667
+ */
143668
+ 'text-color': [{
143669
+ text: scaleColor()
143670
+ }],
143671
+ /**
143672
+ * Text Decoration
143673
+ * @see https://tailwindcss.com/docs/text-decoration
143674
+ */
143675
+ 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],
143676
+ /**
143677
+ * Text Decoration Style
143678
+ * @see https://tailwindcss.com/docs/text-decoration-style
143679
+ */
143680
+ 'text-decoration-style': [{
143681
+ decoration: [...scaleLineStyle(), 'wavy']
143682
+ }],
143683
+ /**
143684
+ * Text Decoration Thickness
143685
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
143686
+ */
143687
+ 'text-decoration-thickness': [{
143688
+ decoration: [isNumber, 'from-font', 'auto', isArbitraryVariable, isArbitraryLength]
143689
+ }],
143690
+ /**
143691
+ * Text Decoration Color
143692
+ * @see https://tailwindcss.com/docs/text-decoration-color
143693
+ */
143694
+ 'text-decoration-color': [{
143695
+ decoration: scaleColor()
143696
+ }],
143697
+ /**
143698
+ * Text Underline Offset
143699
+ * @see https://tailwindcss.com/docs/text-underline-offset
143700
+ */
143701
+ 'underline-offset': [{
143702
+ 'underline-offset': [isNumber, 'auto', isArbitraryVariable, isArbitraryValue]
143703
+ }],
143704
+ /**
143705
+ * Text Transform
143706
+ * @see https://tailwindcss.com/docs/text-transform
143707
+ */
143708
+ 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],
143709
+ /**
143710
+ * Text Overflow
143711
+ * @see https://tailwindcss.com/docs/text-overflow
143712
+ */
143713
+ 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
143714
+ /**
143715
+ * Text Wrap
143716
+ * @see https://tailwindcss.com/docs/text-wrap
143717
+ */
143718
+ 'text-wrap': [{
143719
+ text: ['wrap', 'nowrap', 'balance', 'pretty']
143720
+ }],
143721
+ /**
143722
+ * Text Indent
143723
+ * @see https://tailwindcss.com/docs/text-indent
143724
+ */
143725
+ indent: [{
143726
+ indent: scaleUnambiguousSpacing()
143727
+ }],
143728
+ /**
143729
+ * Vertical Alignment
143730
+ * @see https://tailwindcss.com/docs/vertical-align
143731
+ */
143732
+ 'vertical-align': [{
143733
+ align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryVariable, isArbitraryValue]
143734
+ }],
143735
+ /**
143736
+ * Whitespace
143737
+ * @see https://tailwindcss.com/docs/whitespace
143738
+ */
143739
+ whitespace: [{
143740
+ whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']
143741
+ }],
143742
+ /**
143743
+ * Word Break
143744
+ * @see https://tailwindcss.com/docs/word-break
143745
+ */
143746
+ break: [{
143747
+ break: ['normal', 'words', 'all', 'keep']
143748
+ }],
143749
+ /**
143750
+ * Overflow Wrap
143751
+ * @see https://tailwindcss.com/docs/overflow-wrap
143752
+ */
143753
+ wrap: [{
143754
+ wrap: ['break-word', 'anywhere', 'normal']
143755
+ }],
143756
+ /**
143757
+ * Hyphens
143758
+ * @see https://tailwindcss.com/docs/hyphens
143759
+ */
143760
+ hyphens: [{
143761
+ hyphens: ['none', 'manual', 'auto']
143762
+ }],
143763
+ /**
143764
+ * Content
143765
+ * @see https://tailwindcss.com/docs/content
143766
+ */
143767
+ content: [{
143768
+ content: ['none', isArbitraryVariable, isArbitraryValue]
143769
+ }],
143770
+ // -------------------
143771
+ // --- Backgrounds ---
143772
+ // -------------------
143773
+ /**
143774
+ * Background Attachment
143775
+ * @see https://tailwindcss.com/docs/background-attachment
143776
+ */
143777
+ 'bg-attachment': [{
143778
+ bg: ['fixed', 'local', 'scroll']
143779
+ }],
143780
+ /**
143781
+ * Background Clip
143782
+ * @see https://tailwindcss.com/docs/background-clip
143783
+ */
143784
+ 'bg-clip': [{
143785
+ 'bg-clip': ['border', 'padding', 'content', 'text']
143786
+ }],
143787
+ /**
143788
+ * Background Origin
143789
+ * @see https://tailwindcss.com/docs/background-origin
143790
+ */
143791
+ 'bg-origin': [{
143792
+ 'bg-origin': ['border', 'padding', 'content']
143793
+ }],
143794
+ /**
143795
+ * Background Position
143796
+ * @see https://tailwindcss.com/docs/background-position
143797
+ */
143798
+ 'bg-position': [{
143799
+ bg: scaleBgPosition()
143800
+ }],
143801
+ /**
143802
+ * Background Repeat
143803
+ * @see https://tailwindcss.com/docs/background-repeat
143804
+ */
143805
+ 'bg-repeat': [{
143806
+ bg: scaleBgRepeat()
143807
+ }],
143808
+ /**
143809
+ * Background Size
143810
+ * @see https://tailwindcss.com/docs/background-size
143811
+ */
143812
+ 'bg-size': [{
143813
+ bg: scaleBgSize()
143814
+ }],
143815
+ /**
143816
+ * Background Image
143817
+ * @see https://tailwindcss.com/docs/background-image
143818
+ */
143819
+ 'bg-image': [{
143820
+ bg: ['none', {
143821
+ linear: [{
143822
+ to: ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
143823
+ }, isInteger, isArbitraryVariable, isArbitraryValue],
143824
+ radial: ['', isArbitraryVariable, isArbitraryValue],
143825
+ conic: [isInteger, isArbitraryVariable, isArbitraryValue]
143826
+ }, isArbitraryVariableImage, isArbitraryImage]
143827
+ }],
143828
+ /**
143829
+ * Background Color
143830
+ * @see https://tailwindcss.com/docs/background-color
143831
+ */
143832
+ 'bg-color': [{
143833
+ bg: scaleColor()
143834
+ }],
143835
+ /**
143836
+ * Gradient Color Stops From Position
143837
+ * @see https://tailwindcss.com/docs/gradient-color-stops
143838
+ */
143839
+ 'gradient-from-pos': [{
143840
+ from: scaleGradientStopPosition()
143841
+ }],
143842
+ /**
143843
+ * Gradient Color Stops Via Position
143844
+ * @see https://tailwindcss.com/docs/gradient-color-stops
143845
+ */
143846
+ 'gradient-via-pos': [{
143847
+ via: scaleGradientStopPosition()
143848
+ }],
143849
+ /**
143850
+ * Gradient Color Stops To Position
143851
+ * @see https://tailwindcss.com/docs/gradient-color-stops
143852
+ */
143853
+ 'gradient-to-pos': [{
143854
+ to: scaleGradientStopPosition()
143855
+ }],
143856
+ /**
143857
+ * Gradient Color Stops From
143858
+ * @see https://tailwindcss.com/docs/gradient-color-stops
143859
+ */
143860
+ 'gradient-from': [{
143861
+ from: scaleColor()
143862
+ }],
143863
+ /**
143864
+ * Gradient Color Stops Via
143865
+ * @see https://tailwindcss.com/docs/gradient-color-stops
143866
+ */
143867
+ 'gradient-via': [{
143868
+ via: scaleColor()
143869
+ }],
143870
+ /**
143871
+ * Gradient Color Stops To
143872
+ * @see https://tailwindcss.com/docs/gradient-color-stops
143873
+ */
143874
+ 'gradient-to': [{
143875
+ to: scaleColor()
143876
+ }],
143877
+ // ---------------
143878
+ // --- Borders ---
143879
+ // ---------------
143880
+ /**
143881
+ * Border Radius
143882
+ * @see https://tailwindcss.com/docs/border-radius
143883
+ */
143884
+ rounded: [{
143885
+ rounded: scaleRadius()
143886
+ }],
143887
+ /**
143888
+ * Border Radius Start
143889
+ * @see https://tailwindcss.com/docs/border-radius
143890
+ */
143891
+ 'rounded-s': [{
143892
+ 'rounded-s': scaleRadius()
143893
+ }],
143894
+ /**
143895
+ * Border Radius End
143896
+ * @see https://tailwindcss.com/docs/border-radius
143897
+ */
143898
+ 'rounded-e': [{
143899
+ 'rounded-e': scaleRadius()
143900
+ }],
143901
+ /**
143902
+ * Border Radius Top
143903
+ * @see https://tailwindcss.com/docs/border-radius
143904
+ */
143905
+ 'rounded-t': [{
143906
+ 'rounded-t': scaleRadius()
143907
+ }],
143908
+ /**
143909
+ * Border Radius Right
143910
+ * @see https://tailwindcss.com/docs/border-radius
143911
+ */
143912
+ 'rounded-r': [{
143913
+ 'rounded-r': scaleRadius()
143914
+ }],
143915
+ /**
143916
+ * Border Radius Bottom
143917
+ * @see https://tailwindcss.com/docs/border-radius
143918
+ */
143919
+ 'rounded-b': [{
143920
+ 'rounded-b': scaleRadius()
143921
+ }],
143922
+ /**
143923
+ * Border Radius Left
143924
+ * @see https://tailwindcss.com/docs/border-radius
143925
+ */
143926
+ 'rounded-l': [{
143927
+ 'rounded-l': scaleRadius()
143928
+ }],
143929
+ /**
143930
+ * Border Radius Start Start
143931
+ * @see https://tailwindcss.com/docs/border-radius
143932
+ */
143933
+ 'rounded-ss': [{
143934
+ 'rounded-ss': scaleRadius()
143935
+ }],
143936
+ /**
143937
+ * Border Radius Start End
143938
+ * @see https://tailwindcss.com/docs/border-radius
143939
+ */
143940
+ 'rounded-se': [{
143941
+ 'rounded-se': scaleRadius()
143942
+ }],
143943
+ /**
143944
+ * Border Radius End End
143945
+ * @see https://tailwindcss.com/docs/border-radius
143946
+ */
143947
+ 'rounded-ee': [{
143948
+ 'rounded-ee': scaleRadius()
143949
+ }],
143950
+ /**
143951
+ * Border Radius End Start
143952
+ * @see https://tailwindcss.com/docs/border-radius
143953
+ */
143954
+ 'rounded-es': [{
143955
+ 'rounded-es': scaleRadius()
143956
+ }],
143957
+ /**
143958
+ * Border Radius Top Left
143959
+ * @see https://tailwindcss.com/docs/border-radius
143960
+ */
143961
+ 'rounded-tl': [{
143962
+ 'rounded-tl': scaleRadius()
143963
+ }],
143964
+ /**
143965
+ * Border Radius Top Right
143966
+ * @see https://tailwindcss.com/docs/border-radius
143967
+ */
143968
+ 'rounded-tr': [{
143969
+ 'rounded-tr': scaleRadius()
143970
+ }],
143971
+ /**
143972
+ * Border Radius Bottom Right
143973
+ * @see https://tailwindcss.com/docs/border-radius
143974
+ */
143975
+ 'rounded-br': [{
143976
+ 'rounded-br': scaleRadius()
143977
+ }],
143978
+ /**
143979
+ * Border Radius Bottom Left
143980
+ * @see https://tailwindcss.com/docs/border-radius
143981
+ */
143982
+ 'rounded-bl': [{
143983
+ 'rounded-bl': scaleRadius()
143984
+ }],
143985
+ /**
143986
+ * Border Width
143987
+ * @see https://tailwindcss.com/docs/border-width
143988
+ */
143989
+ 'border-w': [{
143990
+ border: scaleBorderWidth()
143991
+ }],
143992
+ /**
143993
+ * Border Width Inline
143994
+ * @see https://tailwindcss.com/docs/border-width
143995
+ */
143996
+ 'border-w-x': [{
143997
+ 'border-x': scaleBorderWidth()
143998
+ }],
143999
+ /**
144000
+ * Border Width Block
144001
+ * @see https://tailwindcss.com/docs/border-width
144002
+ */
144003
+ 'border-w-y': [{
144004
+ 'border-y': scaleBorderWidth()
144005
+ }],
144006
+ /**
144007
+ * Border Width Inline Start
144008
+ * @see https://tailwindcss.com/docs/border-width
144009
+ */
144010
+ 'border-w-s': [{
144011
+ 'border-s': scaleBorderWidth()
144012
+ }],
144013
+ /**
144014
+ * Border Width Inline End
144015
+ * @see https://tailwindcss.com/docs/border-width
144016
+ */
144017
+ 'border-w-e': [{
144018
+ 'border-e': scaleBorderWidth()
144019
+ }],
144020
+ /**
144021
+ * Border Width Block Start
144022
+ * @see https://tailwindcss.com/docs/border-width
144023
+ */
144024
+ 'border-w-bs': [{
144025
+ 'border-bs': scaleBorderWidth()
144026
+ }],
144027
+ /**
144028
+ * Border Width Block End
144029
+ * @see https://tailwindcss.com/docs/border-width
144030
+ */
144031
+ 'border-w-be': [{
144032
+ 'border-be': scaleBorderWidth()
144033
+ }],
144034
+ /**
144035
+ * Border Width Top
144036
+ * @see https://tailwindcss.com/docs/border-width
144037
+ */
144038
+ 'border-w-t': [{
144039
+ 'border-t': scaleBorderWidth()
144040
+ }],
144041
+ /**
144042
+ * Border Width Right
144043
+ * @see https://tailwindcss.com/docs/border-width
144044
+ */
144045
+ 'border-w-r': [{
144046
+ 'border-r': scaleBorderWidth()
144047
+ }],
144048
+ /**
144049
+ * Border Width Bottom
144050
+ * @see https://tailwindcss.com/docs/border-width
144051
+ */
144052
+ 'border-w-b': [{
144053
+ 'border-b': scaleBorderWidth()
144054
+ }],
144055
+ /**
144056
+ * Border Width Left
144057
+ * @see https://tailwindcss.com/docs/border-width
144058
+ */
144059
+ 'border-w-l': [{
144060
+ 'border-l': scaleBorderWidth()
144061
+ }],
144062
+ /**
144063
+ * Divide Width X
144064
+ * @see https://tailwindcss.com/docs/border-width#between-children
144065
+ */
144066
+ 'divide-x': [{
144067
+ 'divide-x': scaleBorderWidth()
144068
+ }],
144069
+ /**
144070
+ * Divide Width X Reverse
144071
+ * @see https://tailwindcss.com/docs/border-width#between-children
144072
+ */
144073
+ 'divide-x-reverse': ['divide-x-reverse'],
144074
+ /**
144075
+ * Divide Width Y
144076
+ * @see https://tailwindcss.com/docs/border-width#between-children
144077
+ */
144078
+ 'divide-y': [{
144079
+ 'divide-y': scaleBorderWidth()
144080
+ }],
144081
+ /**
144082
+ * Divide Width Y Reverse
144083
+ * @see https://tailwindcss.com/docs/border-width#between-children
144084
+ */
144085
+ 'divide-y-reverse': ['divide-y-reverse'],
144086
+ /**
144087
+ * Border Style
144088
+ * @see https://tailwindcss.com/docs/border-style
144089
+ */
144090
+ 'border-style': [{
144091
+ border: [...scaleLineStyle(), 'hidden', 'none']
144092
+ }],
144093
+ /**
144094
+ * Divide Style
144095
+ * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
144096
+ */
144097
+ 'divide-style': [{
144098
+ divide: [...scaleLineStyle(), 'hidden', 'none']
144099
+ }],
144100
+ /**
144101
+ * Border Color
144102
+ * @see https://tailwindcss.com/docs/border-color
144103
+ */
144104
+ 'border-color': [{
144105
+ border: scaleColor()
144106
+ }],
144107
+ /**
144108
+ * Border Color Inline
144109
+ * @see https://tailwindcss.com/docs/border-color
144110
+ */
144111
+ 'border-color-x': [{
144112
+ 'border-x': scaleColor()
144113
+ }],
144114
+ /**
144115
+ * Border Color Block
144116
+ * @see https://tailwindcss.com/docs/border-color
144117
+ */
144118
+ 'border-color-y': [{
144119
+ 'border-y': scaleColor()
144120
+ }],
144121
+ /**
144122
+ * Border Color Inline Start
144123
+ * @see https://tailwindcss.com/docs/border-color
144124
+ */
144125
+ 'border-color-s': [{
144126
+ 'border-s': scaleColor()
144127
+ }],
144128
+ /**
144129
+ * Border Color Inline End
144130
+ * @see https://tailwindcss.com/docs/border-color
144131
+ */
144132
+ 'border-color-e': [{
144133
+ 'border-e': scaleColor()
144134
+ }],
144135
+ /**
144136
+ * Border Color Block Start
144137
+ * @see https://tailwindcss.com/docs/border-color
144138
+ */
144139
+ 'border-color-bs': [{
144140
+ 'border-bs': scaleColor()
144141
+ }],
144142
+ /**
144143
+ * Border Color Block End
144144
+ * @see https://tailwindcss.com/docs/border-color
144145
+ */
144146
+ 'border-color-be': [{
144147
+ 'border-be': scaleColor()
144148
+ }],
144149
+ /**
144150
+ * Border Color Top
144151
+ * @see https://tailwindcss.com/docs/border-color
144152
+ */
144153
+ 'border-color-t': [{
144154
+ 'border-t': scaleColor()
144155
+ }],
144156
+ /**
144157
+ * Border Color Right
144158
+ * @see https://tailwindcss.com/docs/border-color
144159
+ */
144160
+ 'border-color-r': [{
144161
+ 'border-r': scaleColor()
144162
+ }],
144163
+ /**
144164
+ * Border Color Bottom
144165
+ * @see https://tailwindcss.com/docs/border-color
144166
+ */
144167
+ 'border-color-b': [{
144168
+ 'border-b': scaleColor()
144169
+ }],
144170
+ /**
144171
+ * Border Color Left
144172
+ * @see https://tailwindcss.com/docs/border-color
144173
+ */
144174
+ 'border-color-l': [{
144175
+ 'border-l': scaleColor()
144176
+ }],
144177
+ /**
144178
+ * Divide Color
144179
+ * @see https://tailwindcss.com/docs/divide-color
144180
+ */
144181
+ 'divide-color': [{
144182
+ divide: scaleColor()
144183
+ }],
144184
+ /**
144185
+ * Outline Style
144186
+ * @see https://tailwindcss.com/docs/outline-style
144187
+ */
144188
+ 'outline-style': [{
144189
+ outline: [...scaleLineStyle(), 'none', 'hidden']
144190
+ }],
144191
+ /**
144192
+ * Outline Offset
144193
+ * @see https://tailwindcss.com/docs/outline-offset
144194
+ */
144195
+ 'outline-offset': [{
144196
+ 'outline-offset': [isNumber, isArbitraryVariable, isArbitraryValue]
144197
+ }],
144198
+ /**
144199
+ * Outline Width
144200
+ * @see https://tailwindcss.com/docs/outline-width
144201
+ */
144202
+ 'outline-w': [{
144203
+ outline: ['', isNumber, isArbitraryVariableLength, isArbitraryLength]
144204
+ }],
144205
+ /**
144206
+ * Outline Color
144207
+ * @see https://tailwindcss.com/docs/outline-color
144208
+ */
144209
+ 'outline-color': [{
144210
+ outline: scaleColor()
144211
+ }],
144212
+ // ---------------
144213
+ // --- Effects ---
144214
+ // ---------------
144215
+ /**
144216
+ * Box Shadow
144217
+ * @see https://tailwindcss.com/docs/box-shadow
144218
+ */
144219
+ shadow: [{
144220
+ shadow: [
144221
+ // Deprecated since Tailwind CSS v4.0.0
144222
+ '', 'none', themeShadow, isArbitraryVariableShadow, isArbitraryShadow]
144223
+ }],
144224
+ /**
144225
+ * Box Shadow Color
144226
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
144227
+ */
144228
+ 'shadow-color': [{
144229
+ shadow: scaleColor()
144230
+ }],
144231
+ /**
144232
+ * Inset Box Shadow
144233
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
144234
+ */
144235
+ 'inset-shadow': [{
144236
+ 'inset-shadow': ['none', themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
144237
+ }],
144238
+ /**
144239
+ * Inset Box Shadow Color
144240
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
144241
+ */
144242
+ 'inset-shadow-color': [{
144243
+ 'inset-shadow': scaleColor()
144244
+ }],
144245
+ /**
144246
+ * Ring Width
144247
+ * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
144248
+ */
144249
+ 'ring-w': [{
144250
+ ring: scaleBorderWidth()
144251
+ }],
144252
+ /**
144253
+ * Ring Width Inset
144254
+ * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
144255
+ * @deprecated since Tailwind CSS v4.0.0
144256
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
144257
+ */
144258
+ 'ring-w-inset': ['ring-inset'],
144259
+ /**
144260
+ * Ring Color
144261
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
144262
+ */
144263
+ 'ring-color': [{
144264
+ ring: scaleColor()
144265
+ }],
144266
+ /**
144267
+ * Ring Offset Width
144268
+ * @see https://v3.tailwindcss.com/docs/ring-offset-width
144269
+ * @deprecated since Tailwind CSS v4.0.0
144270
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
144271
+ */
144272
+ 'ring-offset-w': [{
144273
+ 'ring-offset': [isNumber, isArbitraryLength]
144274
+ }],
144275
+ /**
144276
+ * Ring Offset Color
144277
+ * @see https://v3.tailwindcss.com/docs/ring-offset-color
144278
+ * @deprecated since Tailwind CSS v4.0.0
144279
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
144280
+ */
144281
+ 'ring-offset-color': [{
144282
+ 'ring-offset': scaleColor()
144283
+ }],
144284
+ /**
144285
+ * Inset Ring Width
144286
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
144287
+ */
144288
+ 'inset-ring-w': [{
144289
+ 'inset-ring': scaleBorderWidth()
144290
+ }],
144291
+ /**
144292
+ * Inset Ring Color
144293
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
144294
+ */
144295
+ 'inset-ring-color': [{
144296
+ 'inset-ring': scaleColor()
144297
+ }],
144298
+ /**
144299
+ * Text Shadow
144300
+ * @see https://tailwindcss.com/docs/text-shadow
144301
+ */
144302
+ 'text-shadow': [{
144303
+ 'text-shadow': ['none', themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
144304
+ }],
144305
+ /**
144306
+ * Text Shadow Color
144307
+ * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
144308
+ */
144309
+ 'text-shadow-color': [{
144310
+ 'text-shadow': scaleColor()
144311
+ }],
144312
+ /**
144313
+ * Opacity
144314
+ * @see https://tailwindcss.com/docs/opacity
144315
+ */
144316
+ opacity: [{
144317
+ opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
144318
+ }],
144319
+ /**
144320
+ * Mix Blend Mode
144321
+ * @see https://tailwindcss.com/docs/mix-blend-mode
144322
+ */
144323
+ 'mix-blend': [{
144324
+ 'mix-blend': [...scaleBlendMode(), 'plus-darker', 'plus-lighter']
144325
+ }],
144326
+ /**
144327
+ * Background Blend Mode
144328
+ * @see https://tailwindcss.com/docs/background-blend-mode
144329
+ */
144330
+ 'bg-blend': [{
144331
+ 'bg-blend': scaleBlendMode()
144332
+ }],
144333
+ /**
144334
+ * Mask Clip
144335
+ * @see https://tailwindcss.com/docs/mask-clip
144336
+ */
144337
+ 'mask-clip': [{
144338
+ 'mask-clip': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
144339
+ }, 'mask-no-clip'],
144340
+ /**
144341
+ * Mask Composite
144342
+ * @see https://tailwindcss.com/docs/mask-composite
144343
+ */
144344
+ 'mask-composite': [{
144345
+ mask: ['add', 'subtract', 'intersect', 'exclude']
144346
+ }],
144347
+ /**
144348
+ * Mask Image
144349
+ * @see https://tailwindcss.com/docs/mask-image
144350
+ */
144351
+ 'mask-image-linear-pos': [{
144352
+ 'mask-linear': [isNumber]
144353
+ }],
144354
+ 'mask-image-linear-from-pos': [{
144355
+ 'mask-linear-from': scaleMaskImagePosition()
144356
+ }],
144357
+ 'mask-image-linear-to-pos': [{
144358
+ 'mask-linear-to': scaleMaskImagePosition()
144359
+ }],
144360
+ 'mask-image-linear-from-color': [{
144361
+ 'mask-linear-from': scaleColor()
144362
+ }],
144363
+ 'mask-image-linear-to-color': [{
144364
+ 'mask-linear-to': scaleColor()
144365
+ }],
144366
+ 'mask-image-t-from-pos': [{
144367
+ 'mask-t-from': scaleMaskImagePosition()
144368
+ }],
144369
+ 'mask-image-t-to-pos': [{
144370
+ 'mask-t-to': scaleMaskImagePosition()
144371
+ }],
144372
+ 'mask-image-t-from-color': [{
144373
+ 'mask-t-from': scaleColor()
144374
+ }],
144375
+ 'mask-image-t-to-color': [{
144376
+ 'mask-t-to': scaleColor()
144377
+ }],
144378
+ 'mask-image-r-from-pos': [{
144379
+ 'mask-r-from': scaleMaskImagePosition()
144380
+ }],
144381
+ 'mask-image-r-to-pos': [{
144382
+ 'mask-r-to': scaleMaskImagePosition()
144383
+ }],
144384
+ 'mask-image-r-from-color': [{
144385
+ 'mask-r-from': scaleColor()
144386
+ }],
144387
+ 'mask-image-r-to-color': [{
144388
+ 'mask-r-to': scaleColor()
144389
+ }],
144390
+ 'mask-image-b-from-pos': [{
144391
+ 'mask-b-from': scaleMaskImagePosition()
144392
+ }],
144393
+ 'mask-image-b-to-pos': [{
144394
+ 'mask-b-to': scaleMaskImagePosition()
144395
+ }],
144396
+ 'mask-image-b-from-color': [{
144397
+ 'mask-b-from': scaleColor()
144398
+ }],
144399
+ 'mask-image-b-to-color': [{
144400
+ 'mask-b-to': scaleColor()
144401
+ }],
144402
+ 'mask-image-l-from-pos': [{
144403
+ 'mask-l-from': scaleMaskImagePosition()
144404
+ }],
144405
+ 'mask-image-l-to-pos': [{
144406
+ 'mask-l-to': scaleMaskImagePosition()
144407
+ }],
144408
+ 'mask-image-l-from-color': [{
144409
+ 'mask-l-from': scaleColor()
144410
+ }],
144411
+ 'mask-image-l-to-color': [{
144412
+ 'mask-l-to': scaleColor()
144413
+ }],
144414
+ 'mask-image-x-from-pos': [{
144415
+ 'mask-x-from': scaleMaskImagePosition()
144416
+ }],
144417
+ 'mask-image-x-to-pos': [{
144418
+ 'mask-x-to': scaleMaskImagePosition()
144419
+ }],
144420
+ 'mask-image-x-from-color': [{
144421
+ 'mask-x-from': scaleColor()
144422
+ }],
144423
+ 'mask-image-x-to-color': [{
144424
+ 'mask-x-to': scaleColor()
144425
+ }],
144426
+ 'mask-image-y-from-pos': [{
144427
+ 'mask-y-from': scaleMaskImagePosition()
144428
+ }],
144429
+ 'mask-image-y-to-pos': [{
144430
+ 'mask-y-to': scaleMaskImagePosition()
144431
+ }],
144432
+ 'mask-image-y-from-color': [{
144433
+ 'mask-y-from': scaleColor()
144434
+ }],
144435
+ 'mask-image-y-to-color': [{
144436
+ 'mask-y-to': scaleColor()
144437
+ }],
144438
+ 'mask-image-radial': [{
144439
+ 'mask-radial': [isArbitraryVariable, isArbitraryValue]
144440
+ }],
144441
+ 'mask-image-radial-from-pos': [{
144442
+ 'mask-radial-from': scaleMaskImagePosition()
144443
+ }],
144444
+ 'mask-image-radial-to-pos': [{
144445
+ 'mask-radial-to': scaleMaskImagePosition()
144446
+ }],
144447
+ 'mask-image-radial-from-color': [{
144448
+ 'mask-radial-from': scaleColor()
144449
+ }],
144450
+ 'mask-image-radial-to-color': [{
144451
+ 'mask-radial-to': scaleColor()
144452
+ }],
144453
+ 'mask-image-radial-shape': [{
144454
+ 'mask-radial': ['circle', 'ellipse']
144455
+ }],
144456
+ 'mask-image-radial-size': [{
144457
+ 'mask-radial': [{
144458
+ closest: ['side', 'corner'],
144459
+ farthest: ['side', 'corner']
144460
+ }]
144461
+ }],
144462
+ 'mask-image-radial-pos': [{
144463
+ 'mask-radial-at': scalePosition()
144464
+ }],
144465
+ 'mask-image-conic-pos': [{
144466
+ 'mask-conic': [isNumber]
144467
+ }],
144468
+ 'mask-image-conic-from-pos': [{
144469
+ 'mask-conic-from': scaleMaskImagePosition()
144470
+ }],
144471
+ 'mask-image-conic-to-pos': [{
144472
+ 'mask-conic-to': scaleMaskImagePosition()
144473
+ }],
144474
+ 'mask-image-conic-from-color': [{
144475
+ 'mask-conic-from': scaleColor()
144476
+ }],
144477
+ 'mask-image-conic-to-color': [{
144478
+ 'mask-conic-to': scaleColor()
144479
+ }],
144480
+ /**
144481
+ * Mask Mode
144482
+ * @see https://tailwindcss.com/docs/mask-mode
144483
+ */
144484
+ 'mask-mode': [{
144485
+ mask: ['alpha', 'luminance', 'match']
144486
+ }],
144487
+ /**
144488
+ * Mask Origin
144489
+ * @see https://tailwindcss.com/docs/mask-origin
144490
+ */
144491
+ 'mask-origin': [{
144492
+ 'mask-origin': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
144493
+ }],
144494
+ /**
144495
+ * Mask Position
144496
+ * @see https://tailwindcss.com/docs/mask-position
144497
+ */
144498
+ 'mask-position': [{
144499
+ mask: scaleBgPosition()
144500
+ }],
144501
+ /**
144502
+ * Mask Repeat
144503
+ * @see https://tailwindcss.com/docs/mask-repeat
144504
+ */
144505
+ 'mask-repeat': [{
144506
+ mask: scaleBgRepeat()
144507
+ }],
144508
+ /**
144509
+ * Mask Size
144510
+ * @see https://tailwindcss.com/docs/mask-size
144511
+ */
144512
+ 'mask-size': [{
144513
+ mask: scaleBgSize()
144514
+ }],
144515
+ /**
144516
+ * Mask Type
144517
+ * @see https://tailwindcss.com/docs/mask-type
144518
+ */
144519
+ 'mask-type': [{
144520
+ 'mask-type': ['alpha', 'luminance']
144521
+ }],
144522
+ /**
144523
+ * Mask Image
144524
+ * @see https://tailwindcss.com/docs/mask-image
144525
+ */
144526
+ 'mask-image': [{
144527
+ mask: ['none', isArbitraryVariable, isArbitraryValue]
144528
+ }],
144529
+ // ---------------
144530
+ // --- Filters ---
144531
+ // ---------------
144532
+ /**
144533
+ * Filter
144534
+ * @see https://tailwindcss.com/docs/filter
144535
+ */
144536
+ filter: [{
144537
+ filter: [
144538
+ // Deprecated since Tailwind CSS v3.0.0
144539
+ '', 'none', isArbitraryVariable, isArbitraryValue]
144540
+ }],
144541
+ /**
144542
+ * Blur
144543
+ * @see https://tailwindcss.com/docs/blur
144544
+ */
144545
+ blur: [{
144546
+ blur: scaleBlur()
144547
+ }],
144548
+ /**
144549
+ * Brightness
144550
+ * @see https://tailwindcss.com/docs/brightness
144551
+ */
144552
+ brightness: [{
144553
+ brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
144554
+ }],
144555
+ /**
144556
+ * Contrast
144557
+ * @see https://tailwindcss.com/docs/contrast
144558
+ */
144559
+ contrast: [{
144560
+ contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
144561
+ }],
144562
+ /**
144563
+ * Drop Shadow
144564
+ * @see https://tailwindcss.com/docs/drop-shadow
144565
+ */
144566
+ 'drop-shadow': [{
144567
+ 'drop-shadow': [
144568
+ // Deprecated since Tailwind CSS v4.0.0
144569
+ '', 'none', themeDropShadow, isArbitraryVariableShadow, isArbitraryShadow]
144570
+ }],
144571
+ /**
144572
+ * Drop Shadow Color
144573
+ * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
144574
+ */
144575
+ 'drop-shadow-color': [{
144576
+ 'drop-shadow': scaleColor()
144577
+ }],
144578
+ /**
144579
+ * Grayscale
144580
+ * @see https://tailwindcss.com/docs/grayscale
144581
+ */
144582
+ grayscale: [{
144583
+ grayscale: ['', isNumber, isArbitraryVariable, isArbitraryValue]
144584
+ }],
144585
+ /**
144586
+ * Hue Rotate
144587
+ * @see https://tailwindcss.com/docs/hue-rotate
144588
+ */
144589
+ 'hue-rotate': [{
144590
+ 'hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue]
144591
+ }],
144592
+ /**
144593
+ * Invert
144594
+ * @see https://tailwindcss.com/docs/invert
144595
+ */
144596
+ invert: [{
144597
+ invert: ['', isNumber, isArbitraryVariable, isArbitraryValue]
144598
+ }],
144599
+ /**
144600
+ * Saturate
144601
+ * @see https://tailwindcss.com/docs/saturate
144602
+ */
144603
+ saturate: [{
144604
+ saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
144605
+ }],
144606
+ /**
144607
+ * Sepia
144608
+ * @see https://tailwindcss.com/docs/sepia
144609
+ */
144610
+ sepia: [{
144611
+ sepia: ['', isNumber, isArbitraryVariable, isArbitraryValue]
144612
+ }],
144613
+ /**
144614
+ * Backdrop Filter
144615
+ * @see https://tailwindcss.com/docs/backdrop-filter
144616
+ */
144617
+ 'backdrop-filter': [{
144618
+ 'backdrop-filter': [
144619
+ // Deprecated since Tailwind CSS v3.0.0
144620
+ '', 'none', isArbitraryVariable, isArbitraryValue]
144621
+ }],
144622
+ /**
144623
+ * Backdrop Blur
144624
+ * @see https://tailwindcss.com/docs/backdrop-blur
144625
+ */
144626
+ 'backdrop-blur': [{
144627
+ 'backdrop-blur': scaleBlur()
144628
+ }],
144629
+ /**
144630
+ * Backdrop Brightness
144631
+ * @see https://tailwindcss.com/docs/backdrop-brightness
144632
+ */
144633
+ 'backdrop-brightness': [{
144634
+ 'backdrop-brightness': [isNumber, isArbitraryVariable, isArbitraryValue]
144635
+ }],
144636
+ /**
144637
+ * Backdrop Contrast
144638
+ * @see https://tailwindcss.com/docs/backdrop-contrast
144639
+ */
144640
+ 'backdrop-contrast': [{
144641
+ 'backdrop-contrast': [isNumber, isArbitraryVariable, isArbitraryValue]
144642
+ }],
144643
+ /**
144644
+ * Backdrop Grayscale
144645
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
144646
+ */
144647
+ 'backdrop-grayscale': [{
144648
+ 'backdrop-grayscale': ['', isNumber, isArbitraryVariable, isArbitraryValue]
144649
+ }],
144650
+ /**
144651
+ * Backdrop Hue Rotate
144652
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
144653
+ */
144654
+ 'backdrop-hue-rotate': [{
144655
+ 'backdrop-hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue]
144656
+ }],
144657
+ /**
144658
+ * Backdrop Invert
144659
+ * @see https://tailwindcss.com/docs/backdrop-invert
144660
+ */
144661
+ 'backdrop-invert': [{
144662
+ 'backdrop-invert': ['', isNumber, isArbitraryVariable, isArbitraryValue]
144663
+ }],
144664
+ /**
144665
+ * Backdrop Opacity
144666
+ * @see https://tailwindcss.com/docs/backdrop-opacity
144667
+ */
144668
+ 'backdrop-opacity': [{
144669
+ 'backdrop-opacity': [isNumber, isArbitraryVariable, isArbitraryValue]
144670
+ }],
144671
+ /**
144672
+ * Backdrop Saturate
144673
+ * @see https://tailwindcss.com/docs/backdrop-saturate
144674
+ */
144675
+ 'backdrop-saturate': [{
144676
+ 'backdrop-saturate': [isNumber, isArbitraryVariable, isArbitraryValue]
144677
+ }],
144678
+ /**
144679
+ * Backdrop Sepia
144680
+ * @see https://tailwindcss.com/docs/backdrop-sepia
144681
+ */
144682
+ 'backdrop-sepia': [{
144683
+ 'backdrop-sepia': ['', isNumber, isArbitraryVariable, isArbitraryValue]
144684
+ }],
144685
+ // --------------
144686
+ // --- Tables ---
144687
+ // --------------
144688
+ /**
144689
+ * Border Collapse
144690
+ * @see https://tailwindcss.com/docs/border-collapse
144691
+ */
144692
+ 'border-collapse': [{
144693
+ border: ['collapse', 'separate']
144694
+ }],
144695
+ /**
144696
+ * Border Spacing
144697
+ * @see https://tailwindcss.com/docs/border-spacing
144698
+ */
144699
+ 'border-spacing': [{
144700
+ 'border-spacing': scaleUnambiguousSpacing()
144701
+ }],
144702
+ /**
144703
+ * Border Spacing X
144704
+ * @see https://tailwindcss.com/docs/border-spacing
144705
+ */
144706
+ 'border-spacing-x': [{
144707
+ 'border-spacing-x': scaleUnambiguousSpacing()
144708
+ }],
144709
+ /**
144710
+ * Border Spacing Y
144711
+ * @see https://tailwindcss.com/docs/border-spacing
144712
+ */
144713
+ 'border-spacing-y': [{
144714
+ 'border-spacing-y': scaleUnambiguousSpacing()
144715
+ }],
144716
+ /**
144717
+ * Table Layout
144718
+ * @see https://tailwindcss.com/docs/table-layout
144719
+ */
144720
+ 'table-layout': [{
144721
+ table: ['auto', 'fixed']
144722
+ }],
144723
+ /**
144724
+ * Caption Side
144725
+ * @see https://tailwindcss.com/docs/caption-side
144726
+ */
144727
+ caption: [{
144728
+ caption: ['top', 'bottom']
144729
+ }],
144730
+ // ---------------------------------
144731
+ // --- Transitions and Animation ---
144732
+ // ---------------------------------
144733
+ /**
144734
+ * Transition Property
144735
+ * @see https://tailwindcss.com/docs/transition-property
144736
+ */
144737
+ transition: [{
144738
+ transition: ['', 'all', 'colors', 'opacity', 'shadow', 'transform', 'none', isArbitraryVariable, isArbitraryValue]
144739
+ }],
144740
+ /**
144741
+ * Transition Behavior
144742
+ * @see https://tailwindcss.com/docs/transition-behavior
144743
+ */
144744
+ 'transition-behavior': [{
144745
+ transition: ['normal', 'discrete']
144746
+ }],
144747
+ /**
144748
+ * Transition Duration
144749
+ * @see https://tailwindcss.com/docs/transition-duration
144750
+ */
144751
+ duration: [{
144752
+ duration: [isNumber, 'initial', isArbitraryVariable, isArbitraryValue]
144753
+ }],
144754
+ /**
144755
+ * Transition Timing Function
144756
+ * @see https://tailwindcss.com/docs/transition-timing-function
144757
+ */
144758
+ ease: [{
144759
+ ease: ['linear', 'initial', themeEase, isArbitraryVariable, isArbitraryValue]
144760
+ }],
144761
+ /**
144762
+ * Transition Delay
144763
+ * @see https://tailwindcss.com/docs/transition-delay
144764
+ */
144765
+ delay: [{
144766
+ delay: [isNumber, isArbitraryVariable, isArbitraryValue]
144767
+ }],
144768
+ /**
144769
+ * Animation
144770
+ * @see https://tailwindcss.com/docs/animation
144771
+ */
144772
+ animate: [{
144773
+ animate: ['none', themeAnimate, isArbitraryVariable, isArbitraryValue]
144774
+ }],
144775
+ // ------------------
144776
+ // --- Transforms ---
144777
+ // ------------------
144778
+ /**
144779
+ * Backface Visibility
144780
+ * @see https://tailwindcss.com/docs/backface-visibility
144781
+ */
144782
+ backface: [{
144783
+ backface: ['hidden', 'visible']
144784
+ }],
144785
+ /**
144786
+ * Perspective
144787
+ * @see https://tailwindcss.com/docs/perspective
144788
+ */
144789
+ perspective: [{
144790
+ perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
144791
+ }],
144792
+ /**
144793
+ * Perspective Origin
144794
+ * @see https://tailwindcss.com/docs/perspective-origin
144795
+ */
144796
+ 'perspective-origin': [{
144797
+ 'perspective-origin': scalePositionWithArbitrary()
144798
+ }],
144799
+ /**
144800
+ * Rotate
144801
+ * @see https://tailwindcss.com/docs/rotate
144802
+ */
144803
+ rotate: [{
144804
+ rotate: scaleRotate()
144805
+ }],
144806
+ /**
144807
+ * Rotate X
144808
+ * @see https://tailwindcss.com/docs/rotate
144809
+ */
144810
+ 'rotate-x': [{
144811
+ 'rotate-x': scaleRotate()
144812
+ }],
144813
+ /**
144814
+ * Rotate Y
144815
+ * @see https://tailwindcss.com/docs/rotate
144816
+ */
144817
+ 'rotate-y': [{
144818
+ 'rotate-y': scaleRotate()
144819
+ }],
144820
+ /**
144821
+ * Rotate Z
144822
+ * @see https://tailwindcss.com/docs/rotate
144823
+ */
144824
+ 'rotate-z': [{
144825
+ 'rotate-z': scaleRotate()
144826
+ }],
144827
+ /**
144828
+ * Scale
144829
+ * @see https://tailwindcss.com/docs/scale
144830
+ */
144831
+ scale: [{
144832
+ scale: scaleScale()
144833
+ }],
144834
+ /**
144835
+ * Scale X
144836
+ * @see https://tailwindcss.com/docs/scale
144837
+ */
144838
+ 'scale-x': [{
144839
+ 'scale-x': scaleScale()
144840
+ }],
144841
+ /**
144842
+ * Scale Y
144843
+ * @see https://tailwindcss.com/docs/scale
144844
+ */
144845
+ 'scale-y': [{
144846
+ 'scale-y': scaleScale()
144847
+ }],
144848
+ /**
144849
+ * Scale Z
144850
+ * @see https://tailwindcss.com/docs/scale
144851
+ */
144852
+ 'scale-z': [{
144853
+ 'scale-z': scaleScale()
144854
+ }],
144855
+ /**
144856
+ * Scale 3D
144857
+ * @see https://tailwindcss.com/docs/scale
144858
+ */
144859
+ 'scale-3d': ['scale-3d'],
144860
+ /**
144861
+ * Skew
144862
+ * @see https://tailwindcss.com/docs/skew
144863
+ */
144864
+ skew: [{
144865
+ skew: scaleSkew()
144866
+ }],
144867
+ /**
144868
+ * Skew X
144869
+ * @see https://tailwindcss.com/docs/skew
144870
+ */
144871
+ 'skew-x': [{
144872
+ 'skew-x': scaleSkew()
144873
+ }],
144874
+ /**
144875
+ * Skew Y
144876
+ * @see https://tailwindcss.com/docs/skew
144877
+ */
144878
+ 'skew-y': [{
144879
+ 'skew-y': scaleSkew()
144880
+ }],
144881
+ /**
144882
+ * Transform
144883
+ * @see https://tailwindcss.com/docs/transform
144884
+ */
144885
+ transform: [{
144886
+ transform: [isArbitraryVariable, isArbitraryValue, '', 'none', 'gpu', 'cpu']
144887
+ }],
144888
+ /**
144889
+ * Transform Origin
144890
+ * @see https://tailwindcss.com/docs/transform-origin
144891
+ */
144892
+ 'transform-origin': [{
144893
+ origin: scalePositionWithArbitrary()
144894
+ }],
144895
+ /**
144896
+ * Transform Style
144897
+ * @see https://tailwindcss.com/docs/transform-style
144898
+ */
144899
+ 'transform-style': [{
144900
+ transform: ['3d', 'flat']
144901
+ }],
144902
+ /**
144903
+ * Translate
144904
+ * @see https://tailwindcss.com/docs/translate
144905
+ */
144906
+ translate: [{
144907
+ translate: scaleTranslate()
144908
+ }],
144909
+ /**
144910
+ * Translate X
144911
+ * @see https://tailwindcss.com/docs/translate
144912
+ */
144913
+ 'translate-x': [{
144914
+ 'translate-x': scaleTranslate()
144915
+ }],
144916
+ /**
144917
+ * Translate Y
144918
+ * @see https://tailwindcss.com/docs/translate
144919
+ */
144920
+ 'translate-y': [{
144921
+ 'translate-y': scaleTranslate()
144922
+ }],
144923
+ /**
144924
+ * Translate Z
144925
+ * @see https://tailwindcss.com/docs/translate
144926
+ */
144927
+ 'translate-z': [{
144928
+ 'translate-z': scaleTranslate()
144929
+ }],
144930
+ /**
144931
+ * Translate None
144932
+ * @see https://tailwindcss.com/docs/translate
144933
+ */
144934
+ 'translate-none': ['translate-none'],
144935
+ // ---------------------
144936
+ // --- Interactivity ---
144937
+ // ---------------------
144938
+ /**
144939
+ * Accent Color
144940
+ * @see https://tailwindcss.com/docs/accent-color
144941
+ */
144942
+ accent: [{
144943
+ accent: scaleColor()
144944
+ }],
144945
+ /**
144946
+ * Appearance
144947
+ * @see https://tailwindcss.com/docs/appearance
144948
+ */
144949
+ appearance: [{
144950
+ appearance: ['none', 'auto']
144951
+ }],
144952
+ /**
144953
+ * Caret Color
144954
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
144955
+ */
144956
+ 'caret-color': [{
144957
+ caret: scaleColor()
144958
+ }],
144959
+ /**
144960
+ * Color Scheme
144961
+ * @see https://tailwindcss.com/docs/color-scheme
144962
+ */
144963
+ 'color-scheme': [{
144964
+ scheme: ['normal', 'dark', 'light', 'light-dark', 'only-dark', 'only-light']
144965
+ }],
144966
+ /**
144967
+ * Cursor
144968
+ * @see https://tailwindcss.com/docs/cursor
144969
+ */
144970
+ cursor: [{
144971
+ cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryVariable, isArbitraryValue]
144972
+ }],
144973
+ /**
144974
+ * Field Sizing
144975
+ * @see https://tailwindcss.com/docs/field-sizing
144976
+ */
144977
+ 'field-sizing': [{
144978
+ 'field-sizing': ['fixed', 'content']
144979
+ }],
144980
+ /**
144981
+ * Pointer Events
144982
+ * @see https://tailwindcss.com/docs/pointer-events
144983
+ */
144984
+ 'pointer-events': [{
144985
+ 'pointer-events': ['auto', 'none']
144986
+ }],
144987
+ /**
144988
+ * Resize
144989
+ * @see https://tailwindcss.com/docs/resize
144990
+ */
144991
+ resize: [{
144992
+ resize: ['none', '', 'y', 'x']
144993
+ }],
144994
+ /**
144995
+ * Scroll Behavior
144996
+ * @see https://tailwindcss.com/docs/scroll-behavior
144997
+ */
144998
+ 'scroll-behavior': [{
144999
+ scroll: ['auto', 'smooth']
145000
+ }],
145001
+ /**
145002
+ * Scroll Margin
145003
+ * @see https://tailwindcss.com/docs/scroll-margin
145004
+ */
145005
+ 'scroll-m': [{
145006
+ 'scroll-m': scaleUnambiguousSpacing()
145007
+ }],
145008
+ /**
145009
+ * Scroll Margin Inline
145010
+ * @see https://tailwindcss.com/docs/scroll-margin
145011
+ */
145012
+ 'scroll-mx': [{
145013
+ 'scroll-mx': scaleUnambiguousSpacing()
145014
+ }],
145015
+ /**
145016
+ * Scroll Margin Block
145017
+ * @see https://tailwindcss.com/docs/scroll-margin
145018
+ */
145019
+ 'scroll-my': [{
145020
+ 'scroll-my': scaleUnambiguousSpacing()
145021
+ }],
145022
+ /**
145023
+ * Scroll Margin Inline Start
145024
+ * @see https://tailwindcss.com/docs/scroll-margin
145025
+ */
145026
+ 'scroll-ms': [{
145027
+ 'scroll-ms': scaleUnambiguousSpacing()
145028
+ }],
145029
+ /**
145030
+ * Scroll Margin Inline End
145031
+ * @see https://tailwindcss.com/docs/scroll-margin
145032
+ */
145033
+ 'scroll-me': [{
145034
+ 'scroll-me': scaleUnambiguousSpacing()
145035
+ }],
145036
+ /**
145037
+ * Scroll Margin Block Start
145038
+ * @see https://tailwindcss.com/docs/scroll-margin
145039
+ */
145040
+ 'scroll-mbs': [{
145041
+ 'scroll-mbs': scaleUnambiguousSpacing()
145042
+ }],
145043
+ /**
145044
+ * Scroll Margin Block End
145045
+ * @see https://tailwindcss.com/docs/scroll-margin
145046
+ */
145047
+ 'scroll-mbe': [{
145048
+ 'scroll-mbe': scaleUnambiguousSpacing()
145049
+ }],
145050
+ /**
145051
+ * Scroll Margin Top
145052
+ * @see https://tailwindcss.com/docs/scroll-margin
145053
+ */
145054
+ 'scroll-mt': [{
145055
+ 'scroll-mt': scaleUnambiguousSpacing()
145056
+ }],
145057
+ /**
145058
+ * Scroll Margin Right
145059
+ * @see https://tailwindcss.com/docs/scroll-margin
145060
+ */
145061
+ 'scroll-mr': [{
145062
+ 'scroll-mr': scaleUnambiguousSpacing()
145063
+ }],
145064
+ /**
145065
+ * Scroll Margin Bottom
145066
+ * @see https://tailwindcss.com/docs/scroll-margin
145067
+ */
145068
+ 'scroll-mb': [{
145069
+ 'scroll-mb': scaleUnambiguousSpacing()
145070
+ }],
145071
+ /**
145072
+ * Scroll Margin Left
145073
+ * @see https://tailwindcss.com/docs/scroll-margin
145074
+ */
145075
+ 'scroll-ml': [{
145076
+ 'scroll-ml': scaleUnambiguousSpacing()
145077
+ }],
145078
+ /**
145079
+ * Scroll Padding
145080
+ * @see https://tailwindcss.com/docs/scroll-padding
145081
+ */
145082
+ 'scroll-p': [{
145083
+ 'scroll-p': scaleUnambiguousSpacing()
145084
+ }],
145085
+ /**
145086
+ * Scroll Padding Inline
145087
+ * @see https://tailwindcss.com/docs/scroll-padding
145088
+ */
145089
+ 'scroll-px': [{
145090
+ 'scroll-px': scaleUnambiguousSpacing()
145091
+ }],
145092
+ /**
145093
+ * Scroll Padding Block
145094
+ * @see https://tailwindcss.com/docs/scroll-padding
145095
+ */
145096
+ 'scroll-py': [{
145097
+ 'scroll-py': scaleUnambiguousSpacing()
145098
+ }],
145099
+ /**
145100
+ * Scroll Padding Inline Start
145101
+ * @see https://tailwindcss.com/docs/scroll-padding
145102
+ */
145103
+ 'scroll-ps': [{
145104
+ 'scroll-ps': scaleUnambiguousSpacing()
145105
+ }],
145106
+ /**
145107
+ * Scroll Padding Inline End
145108
+ * @see https://tailwindcss.com/docs/scroll-padding
145109
+ */
145110
+ 'scroll-pe': [{
145111
+ 'scroll-pe': scaleUnambiguousSpacing()
145112
+ }],
145113
+ /**
145114
+ * Scroll Padding Block Start
145115
+ * @see https://tailwindcss.com/docs/scroll-padding
145116
+ */
145117
+ 'scroll-pbs': [{
145118
+ 'scroll-pbs': scaleUnambiguousSpacing()
145119
+ }],
145120
+ /**
145121
+ * Scroll Padding Block End
145122
+ * @see https://tailwindcss.com/docs/scroll-padding
145123
+ */
145124
+ 'scroll-pbe': [{
145125
+ 'scroll-pbe': scaleUnambiguousSpacing()
145126
+ }],
145127
+ /**
145128
+ * Scroll Padding Top
145129
+ * @see https://tailwindcss.com/docs/scroll-padding
145130
+ */
145131
+ 'scroll-pt': [{
145132
+ 'scroll-pt': scaleUnambiguousSpacing()
145133
+ }],
145134
+ /**
145135
+ * Scroll Padding Right
145136
+ * @see https://tailwindcss.com/docs/scroll-padding
145137
+ */
145138
+ 'scroll-pr': [{
145139
+ 'scroll-pr': scaleUnambiguousSpacing()
145140
+ }],
145141
+ /**
145142
+ * Scroll Padding Bottom
145143
+ * @see https://tailwindcss.com/docs/scroll-padding
145144
+ */
145145
+ 'scroll-pb': [{
145146
+ 'scroll-pb': scaleUnambiguousSpacing()
145147
+ }],
145148
+ /**
145149
+ * Scroll Padding Left
145150
+ * @see https://tailwindcss.com/docs/scroll-padding
145151
+ */
145152
+ 'scroll-pl': [{
145153
+ 'scroll-pl': scaleUnambiguousSpacing()
145154
+ }],
145155
+ /**
145156
+ * Scroll Snap Align
145157
+ * @see https://tailwindcss.com/docs/scroll-snap-align
145158
+ */
145159
+ 'snap-align': [{
145160
+ snap: ['start', 'end', 'center', 'align-none']
145161
+ }],
145162
+ /**
145163
+ * Scroll Snap Stop
145164
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
145165
+ */
145166
+ 'snap-stop': [{
145167
+ snap: ['normal', 'always']
145168
+ }],
145169
+ /**
145170
+ * Scroll Snap Type
145171
+ * @see https://tailwindcss.com/docs/scroll-snap-type
145172
+ */
145173
+ 'snap-type': [{
145174
+ snap: ['none', 'x', 'y', 'both']
145175
+ }],
145176
+ /**
145177
+ * Scroll Snap Type Strictness
145178
+ * @see https://tailwindcss.com/docs/scroll-snap-type
145179
+ */
145180
+ 'snap-strictness': [{
145181
+ snap: ['mandatory', 'proximity']
145182
+ }],
145183
+ /**
145184
+ * Touch Action
145185
+ * @see https://tailwindcss.com/docs/touch-action
145186
+ */
145187
+ touch: [{
145188
+ touch: ['auto', 'none', 'manipulation']
145189
+ }],
145190
+ /**
145191
+ * Touch Action X
145192
+ * @see https://tailwindcss.com/docs/touch-action
145193
+ */
145194
+ 'touch-x': [{
145195
+ 'touch-pan': ['x', 'left', 'right']
145196
+ }],
145197
+ /**
145198
+ * Touch Action Y
145199
+ * @see https://tailwindcss.com/docs/touch-action
145200
+ */
145201
+ 'touch-y': [{
145202
+ 'touch-pan': ['y', 'up', 'down']
145203
+ }],
145204
+ /**
145205
+ * Touch Action Pinch Zoom
145206
+ * @see https://tailwindcss.com/docs/touch-action
145207
+ */
145208
+ 'touch-pz': ['touch-pinch-zoom'],
145209
+ /**
145210
+ * User Select
145211
+ * @see https://tailwindcss.com/docs/user-select
145212
+ */
145213
+ select: [{
145214
+ select: ['none', 'text', 'all', 'auto']
145215
+ }],
145216
+ /**
145217
+ * Will Change
145218
+ * @see https://tailwindcss.com/docs/will-change
145219
+ */
145220
+ 'will-change': [{
145221
+ 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryVariable, isArbitraryValue]
145222
+ }],
145223
+ // -----------
145224
+ // --- SVG ---
145225
+ // -----------
145226
+ /**
145227
+ * Fill
145228
+ * @see https://tailwindcss.com/docs/fill
145229
+ */
145230
+ fill: [{
145231
+ fill: ['none', ...scaleColor()]
145232
+ }],
145233
+ /**
145234
+ * Stroke Width
145235
+ * @see https://tailwindcss.com/docs/stroke-width
145236
+ */
145237
+ 'stroke-w': [{
145238
+ stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
145239
+ }],
145240
+ /**
145241
+ * Stroke
145242
+ * @see https://tailwindcss.com/docs/stroke
145243
+ */
145244
+ stroke: [{
145245
+ stroke: ['none', ...scaleColor()]
145246
+ }],
145247
+ // ---------------------
145248
+ // --- Accessibility ---
145249
+ // ---------------------
145250
+ /**
145251
+ * Forced Color Adjust
145252
+ * @see https://tailwindcss.com/docs/forced-color-adjust
145253
+ */
145254
+ 'forced-color-adjust': [{
145255
+ 'forced-color-adjust': ['auto', 'none']
145256
+ }]
145257
+ },
145258
+ conflictingClassGroups: {
145259
+ overflow: ['overflow-x', 'overflow-y'],
145260
+ overscroll: ['overscroll-x', 'overscroll-y'],
145261
+ inset: ['inset-x', 'inset-y', 'inset-bs', 'inset-be', 'start', 'end', 'top', 'right', 'bottom', 'left'],
145262
+ 'inset-x': ['right', 'left'],
145263
+ 'inset-y': ['top', 'bottom'],
145264
+ flex: ['basis', 'grow', 'shrink'],
145265
+ gap: ['gap-x', 'gap-y'],
145266
+ p: ['px', 'py', 'ps', 'pe', 'pbs', 'pbe', 'pt', 'pr', 'pb', 'pl'],
145267
+ px: ['pr', 'pl'],
145268
+ py: ['pt', 'pb'],
145269
+ m: ['mx', 'my', 'ms', 'me', 'mbs', 'mbe', 'mt', 'mr', 'mb', 'ml'],
145270
+ mx: ['mr', 'ml'],
145271
+ my: ['mt', 'mb'],
145272
+ size: ['w', 'h'],
145273
+ 'font-size': ['leading'],
145274
+ 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
145275
+ 'fvn-ordinal': ['fvn-normal'],
145276
+ 'fvn-slashed-zero': ['fvn-normal'],
145277
+ 'fvn-figure': ['fvn-normal'],
145278
+ 'fvn-spacing': ['fvn-normal'],
145279
+ 'fvn-fraction': ['fvn-normal'],
145280
+ 'line-clamp': ['display', 'overflow'],
145281
+ rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],
145282
+ 'rounded-s': ['rounded-ss', 'rounded-es'],
145283
+ 'rounded-e': ['rounded-se', 'rounded-ee'],
145284
+ 'rounded-t': ['rounded-tl', 'rounded-tr'],
145285
+ 'rounded-r': ['rounded-tr', 'rounded-br'],
145286
+ 'rounded-b': ['rounded-br', 'rounded-bl'],
145287
+ 'rounded-l': ['rounded-tl', 'rounded-bl'],
145288
+ 'border-spacing': ['border-spacing-x', 'border-spacing-y'],
145289
+ 'border-w': ['border-w-x', 'border-w-y', 'border-w-s', 'border-w-e', 'border-w-bs', 'border-w-be', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
145290
+ 'border-w-x': ['border-w-r', 'border-w-l'],
145291
+ 'border-w-y': ['border-w-t', 'border-w-b'],
145292
+ 'border-color': ['border-color-x', 'border-color-y', 'border-color-s', 'border-color-e', 'border-color-bs', 'border-color-be', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
145293
+ 'border-color-x': ['border-color-r', 'border-color-l'],
145294
+ 'border-color-y': ['border-color-t', 'border-color-b'],
145295
+ translate: ['translate-x', 'translate-y', 'translate-none'],
145296
+ 'translate-none': ['translate', 'translate-x', 'translate-y', 'translate-z'],
145297
+ 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mbs', 'scroll-mbe', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
145298
+ 'scroll-mx': ['scroll-mr', 'scroll-ml'],
145299
+ 'scroll-my': ['scroll-mt', 'scroll-mb'],
145300
+ 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pbs', 'scroll-pbe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
145301
+ 'scroll-px': ['scroll-pr', 'scroll-pl'],
145302
+ 'scroll-py': ['scroll-pt', 'scroll-pb'],
145303
+ touch: ['touch-x', 'touch-y', 'touch-pz'],
145304
+ 'touch-x': ['touch'],
145305
+ 'touch-y': ['touch'],
145306
+ 'touch-pz': ['touch']
145307
+ },
145308
+ conflictingClassGroupModifiers: {
145309
+ 'font-size': ['leading']
145310
+ },
145311
+ orderSensitiveModifiers: ['*', '**', 'after', 'backdrop', 'before', 'details-content', 'file', 'first-letter', 'first-line', 'marker', 'placeholder', 'selection']
145312
+ };
145313
+ };
145314
+ const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
145315
+
145316
+ function cn() {
145317
+ var inputs = [];
145318
+ for (var _i = 0; _i < arguments.length; _i++) {
145319
+ inputs[_i] = arguments[_i];
145320
+ }
145321
+ return twMerge(clsx(inputs));
145322
+ }
145323
+
142117
145324
  function Card(_a) {
142118
- var _b, _c;
142119
- var _d, _e, _f;
142120
- var children = _a.children, className = _a.className, _g = _a.bgVariant, bgVariant = _g === void 0 ? "default" : _g, _h = _a.borderVariant, borderVariant = _h === void 0 ? "default" : _h, _j = _a.interactive, interactive = _j === void 0 ? false : _j, _k = _a.ghost, ghost = _k === void 0 ? false : _k, shape = _a.shape, _l = _a.hoverAnimation, hoverAnimation = _l === void 0 ? "lift" : _l;
145325
+ var _b, _c, _d;
145326
+ var children = _a.children, styles = _a.styles, _e = _a.bgVariant, bgVariant = _e === void 0 ? "default" : _e, _f = _a.borderVariant, borderVariant = _f === void 0 ? "default" : _f, _g = _a.interactive, interactive = _g === void 0 ? false : _g, _h = _a.ghost, ghost = _h === void 0 ? false : _h, shape = _a.shape, _j = _a.hoverAnimation, hoverAnimation = _j === void 0 ? "lift" : _j;
142121
145327
  var eui = useEUIConfig();
142122
- var resolvedShape = (_f = shape !== null && shape !== void 0 ? shape : (_e = (_d = eui === null || eui === void 0 ? void 0 : eui.config) === null || _d === void 0 ? void 0 : _d.global) === null || _e === void 0 ? void 0 : _e.shape) !== null && _f !== void 0 ? _f : "softRoundedSquare";
142123
- return (jsxs("div", __assign$1({ className: classnames(
145328
+ var resolvedShape = (_d = shape !== null && shape !== void 0 ? shape : (_c = (_b = eui === null || eui === void 0 ? void 0 : eui.config) === null || _b === void 0 ? void 0 : _b.global) === null || _c === void 0 ? void 0 : _c.shape) !== null && _d !== void 0 ? _d : "softRoundedSquare";
145329
+ return (jsxs("div", __assign$1({ className: cn(
142124
145330
  // Base
142125
- "relative border backdrop-blur-md transition-all duration-300 overflow-hidden",
145331
+ "relative border backdrop-blur-md transition-all duration-300 overflow-hidden p-3",
142126
145332
  // Shape
142127
- shapes[resolvedShape], (_b = {},
142128
- _b[cardBgVariants[bgVariant]] = !ghost,
142129
- _b["bg-transparent"] = ghost,
142130
- _b),
145333
+ shapes[resolvedShape],
145334
+ // Background
145335
+ !ghost ? cardBgVariants[bgVariant] : "bg-transparent",
142131
145336
  // Border
142132
- cardBorderVariants[borderVariant], (_c = {
142133
- "cursor-pointer": interactive
142134
- },
142135
- _c[cardHoverBorderVariants[borderVariant]] = interactive,
142136
- _c[hoverAnimations[hoverAnimation]] = interactive,
142137
- _c), className) }, { children: [jsx("div", { className: "pointer-events-none absolute inset-0 rounded-inherit ring-1 ring-inset ring-white/10" }), interactive && hoverAnimation === "glow" && (jsx("div", { className: "absolute inset-0 opacity-0 hover:opacity-100 transition duration-300 bg-gradient-to-r from-white/5 via-transparent to-white/5 rounded-inherit" })), children] })));
145337
+ cardBorderVariants[borderVariant],
145338
+ // Interactive
145339
+ interactive && "cursor-pointer", interactive && cardHoverBorderVariants[borderVariant], interactive && hoverAnimations[hoverAnimation],
145340
+ // Override (always last)
145341
+ styles) }, { children: [jsx("div", { className: "pointer-events-none absolute inset-0 rounded-inherit ring-1 ring-inset ring-white/10" }), interactive && hoverAnimation === "glow" && (jsx("div", { className: "absolute inset-0 opacity-0 hover:opacity-100 transition duration-300 bg-gradient-to-r from-white/5 via-transparent to-white/5 rounded-inherit" })), children] })));
142138
145342
  }
142139
145343
 
142140
145344
  function CardHeader(_a) {
@@ -142457,4 +145661,4 @@ function EUIDevLayout(_a) {
142457
145661
  } }, { children: jsx(GenericLayout, { children: jsxs(Layout, { children: [header, jsx(Content$2, __assign$1({ styles: "pt-[60px]" }, { children: jsx(ContentArea, __assign$1({ enablePadding: true }, { children: children })) })), footer] }) }) })));
142458
145662
  }
142459
145663
 
142460
- export { Accordion, AsyncComponentWrapper, Avatar, Backdrop, Badge, BarChart, BoxNav, BoxNavItem, Brand, Breadcrumb, BreadcrumbItem, Button$2 as Button, Card, CardContent, CardFooter, CardHeader, Chapter, Checkbox, Chip, CloudinaryImage, CloudinaryProvider, CloudinaryVideo, Content$2 as Content, ContentArea, DateSelector, DefaultLayout, Drawer, DrawerToggler, EUIDevLayout, EUIProvider, Flag, Flex, FlexCol, FlexRow, Footer, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse, GenericLayout, GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid, Header, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout, Image$1 as Image, ImageInput, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Layout, LineChart, Link, List, ListItem, MarkdownEditor, MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal, MotionSurface, MultiImageInput, Paragraph, PieChart, PriceTag, ProgressBar, Quote, Radio, RouteTab, RouteTabs, Section, Select$2 as Select, ShapeSwitch, ShowMore, Sidebar, SidebarLayout, SidemenuLayout, Skeleton, Slider, StarRating, StarRatingDistribution, StarRatingInput, Switch, Table, Tag, Tags, TextArea, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, Toast, Tooltip$1 as Tooltip, Transition$1 as Transition, TransitionDropdown, TransitionFadeIn, Typography, UnderConstructionBanner, ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideoPlayer, createForceLayout, createGridLayout, createTreeLayout, getCurrencySymbol, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme, useDrawer, useEUIConfig, useIsMobile, useModal, useTheme };
145664
+ export { Accordion, AsyncComponentWrapper, Avatar, Backdrop, Badge, BarChart, BoxNav, BoxNavItem, Brand, Breadcrumb, BreadcrumbItem, Button$2 as Button, Card, CardContent, CardFooter, CardHeader, Chapter, Checkbox, Chip, CloudinaryImage, CloudinaryProvider, CloudinaryVideo, Content$2 as Content, ContentArea, DateSelector, DefaultLayout, Drawer, DrawerToggler, EUIDevLayout, EUIProvider, Flag, Flex, FlexCol, FlexRow, Footer, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemContext, FooterNavItemTitle, Form, FormResponse, GenericLayout, GlowWrapper, Graph, GraphEdge, GraphNode, GraphRenderer, Grid, Header, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemContext, HeaderNavItemTitle, HomeLayout, Image$1 as Image, ImageInput, Info, Input, InputFile, InputLabel, InputList, InputListGroup, InputResponse, Layout, LineChart, Link, List, ListItem, MarkdownEditor, MarkdownViewer, Menu, MenuGroup, MenuItem, MenuItemTitle, Modal, MotionSurface, MultiImageInput, Paragraph, PieChart, PriceTag, ProgressBar, Quote, Radio, RouteTab, RouteTabs, Section, Select$2 as Select, ShapeSwitch, ShowMore, Sidebar, SidebarLayout, SidemenuLayout, Skeleton, Slider, StarRating, StarRatingDistribution, StarRatingInput, Switch, Table, Tag, Tags, TextArea, ThemeContext, ThemeProvider, ThemeSwitch, TitleBanner, Toast, Tooltip$1 as Tooltip, Transition$1 as Transition, TransitionDropdown, TransitionFadeIn, Typography, UnderConstructionBanner, ValueBadge, WorldMap, WorldMapCountryTable, YoutubeVideoPlayer, cn, createForceLayout, createGridLayout, createTreeLayout, getCurrencySymbol, resolveWithGlobal, sendToast, useClickOutside, useCloudinaryConfig, useCurrentTheme, useDrawer, useEUIConfig, useIsMobile, useModal, useTheme };