@solibo/solibo-ui 0.2.9 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/assets/index10.css +1 -1
  3. package/dist/assets/index11.css +1 -1
  4. package/dist/assets/index12.css +1 -1
  5. package/dist/assets/index13.css +1 -1
  6. package/dist/assets/index14.css +1 -1
  7. package/dist/assets/index15.css +1 -1
  8. package/dist/assets/index16.css +1 -1
  9. package/dist/assets/index17.css +1 -1
  10. package/dist/assets/index18.css +1 -0
  11. package/dist/assets/index4.css +1 -1
  12. package/dist/assets/index5.css +1 -1
  13. package/dist/assets/index6.css +1 -1
  14. package/dist/assets/index7.css +1 -1
  15. package/dist/assets/index8.css +0 -1
  16. package/dist/assets/index9.css +1 -0
  17. package/dist/classix-5H4IWnMA.cjs +2 -0
  18. package/dist/classix-5H4IWnMA.cjs.map +1 -0
  19. package/dist/classix-DG18itHa.js +9 -0
  20. package/dist/classix-DG18itHa.js.map +1 -0
  21. package/dist/components/accordion/index.cjs +1 -1
  22. package/dist/components/accordion/index.cjs.map +1 -1
  23. package/dist/components/accordion/index.js +30 -12
  24. package/dist/components/accordion/index.js.map +1 -1
  25. package/dist/components/aside/index.cjs +1 -1
  26. package/dist/components/aside/index.cjs.map +1 -1
  27. package/dist/components/aside/index.js +10 -10
  28. package/dist/components/aside/index.js.map +1 -1
  29. package/dist/components/banner/index.cjs +1 -1
  30. package/dist/components/banner/index.cjs.map +1 -1
  31. package/dist/components/banner/index.js +12 -12
  32. package/dist/components/branding/index.cjs +1 -1
  33. package/dist/components/branding/index.cjs.map +1 -1
  34. package/dist/components/branding/index.js +3 -3
  35. package/dist/components/button/index.cjs +1 -1
  36. package/dist/components/button/index.cjs.map +1 -1
  37. package/dist/components/button/index.js +33 -25
  38. package/dist/components/button/index.js.map +1 -1
  39. package/dist/components/card/index.cjs +2 -0
  40. package/dist/components/card/index.cjs.map +1 -0
  41. package/dist/components/card/index.js +32 -0
  42. package/dist/components/card/index.js.map +1 -0
  43. package/dist/components/component/index.cjs +1 -1
  44. package/dist/components/component/index.js +2 -2
  45. package/dist/components/dialog/index.cjs +1 -1
  46. package/dist/components/dialog/index.cjs.map +1 -1
  47. package/dist/components/dialog/index.js +51 -24
  48. package/dist/components/dialog/index.js.map +1 -1
  49. package/dist/components/dropdown/index.cjs +1 -1
  50. package/dist/components/dropdown/index.js +2 -2
  51. package/dist/components/editor/index.cjs +57 -3
  52. package/dist/components/editor/index.cjs.map +1 -1
  53. package/dist/components/editor/index.js +11257 -984
  54. package/dist/components/editor/index.js.map +1 -1
  55. package/dist/components/figure/index.cjs +1 -1
  56. package/dist/components/figure/index.js +2 -2
  57. package/dist/components/header/index.cjs +1 -1
  58. package/dist/components/header/index.cjs.map +1 -1
  59. package/dist/components/header/index.js +3 -3
  60. package/dist/components/header/index.js.map +1 -1
  61. package/dist/components/icon/index.cjs +1 -1
  62. package/dist/components/icon/index.cjs.map +1 -1
  63. package/dist/components/icon/index.js +20 -19
  64. package/dist/components/icon/index.js.map +1 -1
  65. package/dist/components/input/index.cjs +1 -1
  66. package/dist/components/input/index.cjs.map +1 -1
  67. package/dist/components/input/index.js +3 -3
  68. package/dist/components/link/index.cjs +1 -1
  69. package/dist/components/link/index.cjs.map +1 -1
  70. package/dist/components/link/index.js +10 -10
  71. package/dist/components/list/index.cjs +1 -1
  72. package/dist/components/list/index.cjs.map +1 -1
  73. package/dist/components/list/index.js +4 -4
  74. package/dist/components/nav/index.cjs +1 -1
  75. package/dist/components/nav/index.cjs.map +1 -1
  76. package/dist/components/nav/index.js +2 -2
  77. package/dist/index.cjs +1 -1
  78. package/dist/index.d.ts +25 -3
  79. package/dist/index.js +32 -29
  80. package/dist/index.js.map +1 -1
  81. package/dist/jsx-runtime-BJcCX4ED.cjs +23 -0
  82. package/dist/jsx-runtime-BJcCX4ED.cjs.map +1 -0
  83. package/dist/{jsx-runtime-CgJvvRaT.js → jsx-runtime-CDbhiqmm.js} +110 -112
  84. package/dist/jsx-runtime-CDbhiqmm.js.map +1 -0
  85. package/package.json +5 -5
  86. package/dist/jsx-runtime-CgJvvRaT.js.map +0 -1
  87. package/dist/jsx-runtime-wx6f5G-9.cjs +0 -23
  88. package/dist/jsx-runtime-wx6f5G-9.cjs.map +0 -1
@@ -1,4 +1,58 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index7.css');const R=require("../../jsx-runtime-wx6f5G-9.cjs"),W=require("@lexical/html"),O=require("@lexical/link"),y=require("@lexical/list"),m=require("react"),M=require("@lexical/utils"),r=require("lexical"),oe=require("react-dom"),Ie=require("sanitize-html"),j=require("classix"),Y=require("../button/index.cjs"),K=require("../icon/index.cjs"),ve=require("../input/index.cjs");function ye(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const V=ye(m);function we(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Le=we(function(e){const t=new URLSearchParams;t.append("code",e);for(let n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const _e=m.createContext(null);function be(e,t){return{getTheme:function(){return t??null}}}function A(){const e=m.useContext(_e);return e==null&&Le(8),e}function Pe({defaultSelection:e}){const[t]=A();return m.useEffect(()=>{t.focus(()=>{const n=document.activeElement,o=t.getRootElement();o===null||n!==null&&o.contains(n)||o.focus({preventScroll:!0})},{defaultSelection:e})},[e,t]),null}function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ke=je(function(e){const t=new URLSearchParams;t.append("code",e);for(let n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function Ce(e,t){for(let n=0;n<t.length;n++){const o=t[n](e);if(o)return o}return null}const Ye=/[.,;\s]/;function G(e){return Ye.test(e)}function Oe(e){return G(e[e.length-1])}function X(e){return G(e[0])}function xe(e){let t=e.getPreviousSibling();return r.$isElementNode(t)&&(t=t.getLastDescendant()),t===null||r.$isLineBreakNode(t)||r.$isTextNode(t)&&Oe(t.getTextContent())}function Me(e){let t=e.getNextSibling();return r.$isElementNode(t)&&(t=t.getFirstDescendant()),t===null||r.$isLineBreakNode(t)||r.$isTextNode(t)&&X(t.getTextContent())}function Ke(e,t,n,o){return(e>0?G(n[e-1]):xe(o[0]))?t<n.length?G(n[t]):Me(o[o.length-1]):!1}function Ue(e,t,n){const o=[],l=[],i=[];let s=0,a=0;const c=[...e];for(;c.length>0;){const u=c[0],d=u.getTextContent().length,f=a;a+d<=t?(o.push(u),s+=d):f>=n?i.push(u):l.push(u),a+=d,c.shift()}return[s,o,l,i]}function Fe(e,t,n,o){const l=O.$createAutoLinkNode(o.url,o.attributes);if(e.length===1){let i,s=e[0];t===0?[i,s]=s.splitText(n):[,i,s]=s.splitText(t,n);const a=r.$createTextNode(o.text);return a.setFormat(i.getFormat()),a.setDetail(i.getDetail()),a.setStyle(i.getStyle()),l.append(a),i.replace(l),s}if(e.length>1){const i=e[0];let s,a=i.getTextContent().length;t===0?s=i:[,s]=i.splitText(t);const c=[];let u;for(let E=1;E<e.length;E++){const p=e[E],h=p.getTextContent().length,_=a;if(_<n)if(a+h<=n)c.push(p);else{const[N,C]=p.splitText(n-_);c.push(N),u=C}a+=h}const d=r.$getSelection(),f=d?d.getNodes().find(r.$isTextNode):void 0,g=r.$createTextNode(s.getTextContent());return g.setFormat(s.getFormat()),g.setDetail(s.getDetail()),g.setStyle(s.getStyle()),l.append(g,...c),f&&f===s&&(r.$isRangeSelection(d)?g.select(d.anchor.offset,d.focus.offset):r.$isNodeSelection(d)&&g.select(0,g.getTextContent().length)),s.replace(l),u}}function J(e,t,n){const o=e.getChildren(),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(!r.$isTextNode(u)||!u.isSimpleText())return z(e),void n(null,e.getURL())}const i=e.getTextContent(),s=Ce(i,t);if(s===null||s.text!==i||!xe(e)||!Me(e))return z(e),void n(null,e.getURL());const a=e.getURL();if(a!==s.url&&(e.setURL(s.url),n(s.url,a)),s.attributes){const c=e.getRel();c!==s.attributes.rel&&(e.setRel(s.attributes.rel||null),n(s.attributes.rel||null,c));const u=e.getTarget();u!==s.attributes.target&&(e.setTarget(s.attributes.target||null),n(s.attributes.target||null,u))}}function z(e){const t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map(n=>n.getLatest())}function Be(e,t,n){m.useEffect(()=>{e.hasNodes([O.AutoLinkNode])||ke(77);const o=(l,i)=>{n&&n(l,i)};return M.mergeRegister(e.registerNodeTransform(r.TextNode,l=>{const i=l.getParentOrThrow(),s=l.getPreviousSibling();if(O.$isAutoLinkNode(i)&&!i.getIsUnlinked())J(i,t,o);else if(!O.$isLinkNode(i)){if(l.isSimpleText()&&(X(l.getTextContent())||!O.$isAutoLinkNode(s))){const a=function(c){const u=[c];let d=c.getNextSibling();for(;d!==null&&r.$isTextNode(d)&&d.isSimpleText()&&(u.push(d),!/[\s]/.test(d.getTextContent()));)d=d.getNextSibling();return u}(l);(function(c,u,d){let f=[...c];const g=f.map(_=>_.getTextContent()).join("");let E,p=g,h=0;for(;(E=Ce(p,u))&&E!==null;){const _=E.index,N=_+E.length;if(Ke(h+_,h+N,g,f)){const[C,,x,$]=Ue(f,h+_,h+N),S=Fe(x,h+_-C,h+N-C,E);f=S?[S,...$]:$,d(E.url,null),h=0}else h+=N;p=p.substring(N)}})(a,t,o)}(function(a,c,u){const d=a.getPreviousSibling(),f=a.getNextSibling(),g=a.getTextContent();var E;!O.$isAutoLinkNode(d)||d.getIsUnlinked()||X(g)&&(E=g,!(d.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(E):/^\.[a-zA-Z0-9]{1,}/.test(E)))||(d.append(a),J(d,c,u),u(null,d.getURL())),!O.$isAutoLinkNode(f)||f.getIsUnlinked()||Oe(g)||(z(f),J(f,c,u),u(null,f.getURL()))})(l,t,o)}}),e.registerCommand(O.TOGGLE_LINK_COMMAND,l=>{const i=r.$getSelection();return l!==null||!r.$isRangeSelection(i)||i.extract().forEach(s=>{const a=s.getParent();if(O.$isAutoLinkNode(a))return a.setIsUnlinked(!a.getIsUnlinked()),a.markDirty(),!0}),!1},r.COMMAND_PRIORITY_LOW))},[e,t,n])}function qe({matchers:e,onChange:t}){const[n]=A();return Be(n,e,t),null}const $e=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ze=$e?m.useLayoutEffect:m.useEffect,U={tag:"history-merge"};function Ge({initialConfig:e,children:t}){const n=m.useMemo(()=>{const{theme:o,namespace:l,nodes:i,onError:s,editorState:a,html:c}=e,u=be(null,o),d=r.createEditor({editable:e.editable,html:c,namespace:l,nodes:i,onError:f=>s(f,d),theme:o});return function(f,g){if(g!==null){if(g===void 0)f.update(()=>{const E=r.$getRoot();if(E.isEmpty()){const p=r.$createParagraphNode();E.append(p);const h=$e?document.activeElement:null;(r.$getSelection()!==null||h!==null&&h===f.getRootElement())&&p.select()}},U);else if(g!==null)switch(typeof g){case"string":{const E=f.parseEditorState(g);f.setEditorState(E,U);break}case"object":f.setEditorState(g,U);break;case"function":f.update(()=>{r.$getRoot().isEmpty()&&g(f)},U)}}}(d,a),[d,u]},[]);return ze(()=>{const o=e.editable,[l]=n;l.setEditable(o===void 0||o)},[]),R.jsxRuntimeExports.jsx(_e.Provider,{value:n,children:t})}function He(){return r.$getRoot().getTextContent()}function We(e,t=!0){if(e)return!1;let n=He();return t&&(n=n.trim()),n===""}function Ve(e){if(!We(e,!1))return!1;const t=r.$getRoot().getChildren(),n=t.length;if(n>1)return!1;for(let o=0;o<n;o++){const l=t[o];if(r.$isDecoratorNode(l))return!1;if(r.$isElementNode(l)){if(!r.$isParagraphNode(l)||l.__indent!==0)return!1;const i=l.getChildren(),s=i.length;for(let a=0;a<s;a++){const c=i[o];if(!r.$isTextNode(c))return!1}}}return!0}function De(e){return()=>Ve(e)}function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Je(function(e){const t=new URLSearchParams;t.append("code",e);for(let n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Te=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?m.useLayoutEffect:m.useEffect;function Xe({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:o,ariaDescribedBy:l,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:a,ariaLabel:c,ariaLabelledBy:u,ariaMultiline:d,ariaOwns:f,ariaRequired:g,autoCapitalize:E,className:p,id:h,role:_="textbox",spellCheck:N=!0,style:C,tabIndex:x,"data-testid":$,...S},v){const[D,L]=m.useState(e.isEditable()),ne=m.useCallback(w=>{w&&w.ownerDocument&&w.ownerDocument.defaultView?e.setRootElement(w):e.setRootElement(null)},[e]),Ae=m.useMemo(()=>function(...w){return re=>{w.forEach(k=>{typeof k=="function"?k(re):k!=null&&(k.current=re)})}}(v,ne),[ne,v]);return Te(()=>(L(e.isEditable()),e.registerEditableListener(w=>{L(w)})),[e]),R.jsxRuntimeExports.jsx("div",{"aria-activedescendant":D?t:void 0,"aria-autocomplete":D?n:"none","aria-controls":D?o:void 0,"aria-describedby":l,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":D&&_==="combobox"?!!s:void 0,...a!=null?{"aria-invalid":a}:{},"aria-label":c,"aria-labelledby":u,"aria-multiline":d,"aria-owns":D?f:void 0,"aria-readonly":!D||void 0,"aria-required":g,autoCapitalize:E,className:p,contentEditable:D,"data-testid":$,id:h,ref:Ae,role:D?_:void 0,spellCheck:N,style:C,tabIndex:x,...S})}const Ze=m.forwardRef(Xe);function ie(e){return e.getEditorState().read(De(e.isComposing()))}const Qe=m.forwardRef(et);function et(e,t){const{placeholder:n,...o}=e,[l]=A();return R.jsxRuntimeExports.jsxs(R.jsxRuntimeExports.Fragment,{children:[R.jsxRuntimeExports.jsx(Ze,{editor:l,...o,ref:t}),n!=null&&R.jsxRuntimeExports.jsx(tt,{editor:l,content:n})]})}function tt({content:e,editor:t}){const n=function(s){const[a,c]=m.useState(()=>ie(s));return Te(()=>{function u(){const d=ie(s);c(d)}return u(),M.mergeRegister(s.registerUpdateListener(()=>{u()}),s.registerEditableListener(()=>{u()}))},[s]),a}(t),[o,l]=m.useState(t.isEditable());if(m.useLayoutEffect(()=>(l(t.isEditable()),t.registerEditableListener(s=>{l(s)})),[t]),!n)return null;let i=null;return typeof e=="function"?i=e(o):e!==null&&(i=e),i===null?null:R.jsxRuntimeExports.jsx("div",{"aria-hidden":!0,children:i})}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Z(e,t)}var se={error:null},nt=function(e){var t,n;function o(){for(var i,s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];return(i=e.call.apply(e,[this].concat(a))||this).state=se,i.resetErrorBoundary=function(){for(var u,d=arguments.length,f=new Array(d),g=0;g<d;g++)f[g]=arguments[g];i.props.onReset==null||(u=i.props).onReset.apply(u,f),i.reset()},i}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,Z(t,n),o.getDerivedStateFromError=function(i){return{error:i}};var l=o.prototype;return l.reset=function(){this.setState(se)},l.componentDidCatch=function(i,s){var a,c;(a=(c=this.props).onError)==null||a.call(c,i,s)},l.componentDidUpdate=function(i,s){var a,c,u,d,f=this.state.error,g=this.props.resetKeys;f!==null&&s.error!==null&&((u=i.resetKeys)===void 0&&(u=[]),(d=g)===void 0&&(d=[]),u.length!==d.length||u.some(function(E,p){return!Object.is(E,d[p])}))&&((a=(c=this.props).onResetKeysChange)==null||a.call(c,i.resetKeys,g),this.reset())},l.render=function(){var i=this.state.error,s=this.props,a=s.fallbackRender,c=s.FallbackComponent,u=s.fallback;if(i!==null){var d={error:i,resetErrorBoundary:this.resetErrorBoundary};if(V.isValidElement(u))return u;if(typeof a=="function")return a(d);if(c)return V.createElement(c,d);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},o}(V.Component);function rt({children:e,onError:t}){return R.jsxRuntimeExports.jsx(nt,{fallback:R.jsxRuntimeExports.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const F=0,Q=1,ee=2,I=0,ot=1,le=2,it=3,st=4;function lt(e,t,n,o,l){if(e===null||n.size===0&&o.size===0&&!l)return I;const i=t._selection,s=e._selection;if(l)return ot;if(!(r.$isRangeSelection(i)&&r.$isRangeSelection(s)&&s.isCollapsed()&&i.isCollapsed()))return I;const a=function(N,C,x){const $=N._nodeMap,S=[];for(const v of C){const D=$.get(v);D!==void 0&&S.push(D)}for(const[v,D]of x){if(!D)continue;const L=$.get(v);L===void 0||r.$isRootNode(L)||S.push(L)}return S}(t,n,o);if(a.length===0)return I;if(a.length>1){const N=t._nodeMap,C=N.get(i.anchor.key),x=N.get(s.anchor.key);return C&&x&&!e._nodeMap.has(C.__key)&&r.$isTextNode(C)&&C.__text.length===1&&i.anchor.offset===1?le:I}const c=a[0],u=e._nodeMap.get(c.__key);if(!r.$isTextNode(u)||!r.$isTextNode(c)||u.__mode!==c.__mode)return I;const d=u.__text,f=c.__text;if(d===f)return I;const g=i.anchor,E=s.anchor;if(g.key!==E.key||g.type!=="text")return I;const p=g.offset,h=E.offset,_=f.length-d.length;return _===1&&h===p-1?le:_===-1&&h===p+1?it:_===-1&&h===p?st:I}function at(e,t){let n=Date.now(),o=I;return(l,i,s,a,c,u)=>{const d=Date.now();if(u.has("historic"))return o=I,n=d,ee;const f=lt(l,i,a,c,e.isComposing()),g=(()=>{const E=s===null||s.editor===e,p=u.has("history-push");if(!p&&E&&u.has("history-merge"))return F;if(l===null)return Q;const h=i._selection;return a.size>0||c.size>0?p===!1&&f!==I&&f===o&&d<n+t&&E||a.size===1&&function(_,N,C){const x=N._nodeMap.get(_),$=C._nodeMap.get(_),S=N._selection,v=C._selection;return!(r.$isRangeSelection(S)&&r.$isRangeSelection(v)&&S.anchor.type==="element"&&S.focus.type==="element"&&v.anchor.type==="text"&&v.focus.type==="text"||!r.$isTextNode(x)||!r.$isTextNode($)||x.__parent!==$.__parent)&&JSON.stringify(N.read(()=>x.exportJSON()))===JSON.stringify(C.read(()=>$.exportJSON()))}(Array.from(a)[0],l,i)?F:Q:h!==null?F:ee})();return n=d,o=f,g}}function ae(e){e.undoStack=[],e.redoStack=[],e.current=null}function ct(e,t,n){const o=at(e,n);return M.mergeRegister(e.registerCommand(r.UNDO_COMMAND,()=>(function(i,s){const a=s.redoStack,c=s.undoStack;if(c.length!==0){const u=s.current,d=c.pop();u!==null&&(a.push(u),i.dispatchCommand(r.CAN_REDO_COMMAND,!0)),c.length===0&&i.dispatchCommand(r.CAN_UNDO_COMMAND,!1),s.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(e,t),!0),r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.REDO_COMMAND,()=>(function(i,s){const a=s.redoStack,c=s.undoStack;if(a.length!==0){const u=s.current;u!==null&&(c.push(u),i.dispatchCommand(r.CAN_UNDO_COMMAND,!0));const d=a.pop();a.length===0&&i.dispatchCommand(r.CAN_REDO_COMMAND,!1),s.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(e,t),!0),r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.CLEAR_EDITOR_COMMAND,()=>(ae(t),!1),r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.CLEAR_HISTORY_COMMAND,()=>(ae(t),e.dispatchCommand(r.CAN_REDO_COMMAND,!1),e.dispatchCommand(r.CAN_UNDO_COMMAND,!1),!0),r.COMMAND_PRIORITY_EDITOR),e.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:u})=>{const d=t.current,f=t.redoStack,g=t.undoStack,E=d===null?null:d.editorState;if(d!==null&&i===E)return;const p=o(s,i,d,a,c,u);if(p===Q)f.length!==0&&(t.redoStack=[],e.dispatchCommand(r.CAN_REDO_COMMAND,!1)),d!==null&&(g.push({...d}),e.dispatchCommand(r.CAN_UNDO_COMMAND,!0));else if(p===ee)return;t.current={editor:e,editorState:i}}))}function ut(){return{current:null,redoStack:[],undoStack:[]}}function dt({delay:e,externalHistoryState:t}){const[n]=A();return function(o,l,i=1e3){const s=m.useMemo(()=>l||ut(),[l]);m.useEffect(()=>ct(o,s,i),[i,o,s])}(n,t,e),null}function ft({validateUrl:e,attributes:t}){const[n]=A();return m.useEffect(()=>{if(!n.hasNodes([O.LinkNode]))throw new Error("LinkPlugin: LinkNode not registered on editor");return M.mergeRegister(n.registerCommand(O.TOGGLE_LINK_COMMAND,o=>{if(o===null)return O.$toggleLink(o),!0;if(typeof o=="string")return!(e!==void 0&&!e(o))&&(O.$toggleLink(o,t),!0);{const{url:l,target:i,rel:s,title:a}=o;return O.$toggleLink(l,{...t,rel:s,target:i,title:a}),!0}},r.COMMAND_PRIORITY_LOW),e!==void 0?n.registerCommand(r.PASTE_COMMAND,o=>{const l=r.$getSelection();if(!r.$isRangeSelection(l)||l.isCollapsed()||!M.objectKlassEquals(o,ClipboardEvent))return!1;const i=o;if(i.clipboardData===null)return!1;const s=i.clipboardData.getData("text");return!!e(s)&&!l.getNodes().some(a=>r.$isElementNode(a))&&(n.dispatchCommand(O.TOGGLE_LINK_COMMAND,{...t,url:s}),o.preventDefault(),!0)},r.COMMAND_PRIORITY_LOW):()=>{})},[n,e,t]),null}function gt(){const[e]=A();return m.useEffect(()=>{if(!e.hasNodes([y.ListNode,y.ListItemNode]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[e]),function(t){m.useEffect(()=>y.registerList(t),[t])}(e),null}const mt=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?m.useLayoutEffect:m.useEffect;function pt({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){const[o]=A();return mt(()=>{if(n)return o.registerUpdateListener(({editorState:l,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:c})=>{t&&i.size===0&&s.size===0||e&&c.has("history-merge")||a.isEmpty()||n(l,o,c)})},[o,e,t,n]),null}const Et=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?m.useLayoutEffect:m.useEffect;function ht(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Rt(){return function(e){const[t]=A(),n=m.useMemo(()=>e(t),[t,e]),[o,l]=m.useState(()=>n.initialValueFn()),i=m.useRef(o);return Et(()=>{const{initialValueFn:s,subscribe:a}=n,c=s();return i.current!==c&&(i.current=c,l(c)),a(u=>{i.current=u,l(u)})},[n,e]),o}(ht)}function Nt(e){const t=window.location.origin,n=o=>{if(o.origin!==t)return;const l=e.getRootElement();if(document.activeElement!==l)return;const i=o.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const a=s.payload;if(a&&a.functionId==="makeChanges"){const c=a.args;if(c){const[u,d,f,g,E,p]=c;e.update(()=>{const h=r.$getSelection();if(r.$isRangeSelection(h)){const _=h.anchor;let N=_.getNode(),C=0,x=0;if(r.$isTextNode(N)&&u>=0&&d>=0&&(C=u,x=u+d,h.setTextNodeRange(N,C,N,x)),C===x&&f===""||(h.insertRawText(f),N=_.getNode()),r.$isTextNode(N)){C=g,x=g+E;const $=N.getTextContentSize();C=C>$?$:C,x=x>$?$:x,h.setTextNodeRange(N,C,N,x)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function _t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}_t(function(e){const t=new URLSearchParams;t.append("code",e);for(let n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Ct=new Map;function Ot(e){const t={};if(!e)return t;const n=e.split(";");for(const o of n)if(o!==""){const[l,i]=o.split(/:([^]+)/);l&&i&&(t[l.trim()]=i.trim())}return t}function xt(e,t){const n=e.getStartEndPoints();if(t.isSelected(e)&&!t.isSegmented()&&!t.isToken()&&n!==null){const[o,l]=n,i=e.isBackward(),s=o.getNode(),a=l.getNode(),c=t.is(s),u=t.is(a);if(c||u){const[d,f]=r.$getCharacterOffsets(e),g=s.is(a),E=t.is(i?a:s),p=t.is(i?s:a);let h,_=0;return g?(_=d>f?f:d,h=d>f?d:f):E?(_=i?f:d,h=void 0):p&&(_=0,h=i?d:f),t.__text=t.__text.slice(_,h),t}}return t}function Mt(e){const t=e.getStyle(),n=Ot(t);Ct.set(t,n)}function ce(e,t){const n=r.$getAdjacentNode(e.focus,t);return r.$isDecoratorNode(n)&&!n.isIsolated()||r.$isElementNode(n)&&!n.isInline()&&!n.canBeEmpty()}function $t(e,t,n,o){e.modify(t?"extend":"move",n,o)}function Dt(e){const t=e.anchor.getNode();return(r.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function ue(e,t,n){const o=Dt(e);$t(e,t,n?!o:o,"character")}function Tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H=Tt(function(e){const t=new URLSearchParams;t.append("code",e);for(let n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function St(e,t=r.$getSelection()){return t==null&&H(166),r.$isRangeSelection(t)&&t.isCollapsed()||t.getNodes().length===0?"":W.$generateHtmlFromNodes(e,t)}function At(e,t=r.$getSelection()){return t==null&&H(166),r.$isRangeSelection(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(It(e,t))}function de(e,t,n){const o=e.getData("application/x-lexical-editor");if(o)try{const s=JSON.parse(o);if(s.namespace===n._config.namespace&&Array.isArray(s.nodes))return fe(n,vt(s.nodes),t)}catch{}const l=e.getData("text/html");if(l)try{const s=new DOMParser().parseFromString(function(a){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:c=>c}).createHTML(a):a}(l),"text/html");return fe(n,W.$generateNodesFromDOM(n,s),t)}catch{}const i=e.getData("text/plain")||e.getData("text/uri-list");if(i!=null)if(r.$isRangeSelection(t)){const s=i.split(/(\r?\n|\t)/);s[s.length-1]===""&&s.pop();for(let a=0;a<s.length;a++){const c=r.$getSelection();if(r.$isRangeSelection(c)){const u=s[a];u===`
2
- `||u===`\r
3
- `?c.insertParagraph():u===" "?c.insertNodes([r.$createTabNode()]):c.insertText(u)}}}else t.insertRawText(i)}function fe(e,t,n){e.dispatchCommand(r.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,{nodes:t,selection:n})||n.insertNodes(t)}function Se(e,t,n,o=[]){let l=t===null||n.isSelected(t);const i=r.$isElementNode(n)&&n.excludeFromCopy("html");let s=n;if(t!==null){let u=r.$cloneWithProperties(n);u=r.$isTextNode(u)&&t!==null?xt(t,u):u,s=u}const a=r.$isElementNode(s)?s.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&H(58,f.name),r.$isElementNode(u)){const g=d.children;Array.isArray(g)||H(59,f.name)}return d}(s);if(r.$isTextNode(s)){const u=s.__text;u.length>0?c.text=u:l=!1}for(let u=0;u<a.length;u++){const d=a[u],f=Se(e,t,d,c.children);!l&&r.$isElementNode(n)&&f&&n.extractWithChild(d,t,"clone")&&(l=!0)}if(l&&!i)o.push(c);else if(Array.isArray(c.children))for(let u=0;u<c.children.length;u++){const d=c.children[u];o.push(d)}return l}function It(e,t){const n=[],o=r.$getRoot().getChildren();for(let l=0;l<o.length;l++)Se(e,t,o[l],n);return{namespace:e._config.namespace,nodes:n}}function vt(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n],l=r.$parseSerializedNode(o);r.$isTextNode(l)&&Mt(l),t.push(l)}return t}let b=null;async function ge(e,t,n){if(b!==null)return!1;if(t!==null)return new Promise((c,u)=>{e.update(()=>{c(me(e,t,n))})});const o=e.getRootElement(),l=e._window==null?window.document:e._window.document,i=r.getDOMSelection(e._window);if(o===null||i===null)return!1;const s=l.createElement("span");s.style.cssText="position: fixed; top: -1000px;",s.append(l.createTextNode("#")),o.append(s);const a=new Range;return a.setStart(s,0),a.setEnd(s,1),i.removeAllRanges(),i.addRange(a),new Promise((c,u)=>{const d=e.registerCommand(r.COPY_COMMAND,f=>(M.objectKlassEquals(f,ClipboardEvent)&&(d(),b!==null&&(window.clearTimeout(b),b=null),c(me(e,f,n))),!0),r.COMMAND_PRIORITY_CRITICAL);b=window.setTimeout(()=>{d(),b=null,c(!1)},50),l.execCommand("copy"),s.remove()})}function me(e,t,n){if(n===void 0){const l=r.getDOMSelection(e._window);if(!l)return!1;const i=l.anchorNode,s=l.focusNode;if(i!==null&&s!==null&&!r.isSelectionWithinEditor(e,i,s))return!1;const a=r.$getSelection();if(a===null)return!1;n=wt(a)}t.preventDefault();const o=t.clipboardData;return o!==null&&(Lt(o,n),!0)}const yt=[["text/html",St],["application/x-lexical-editor",At]];function wt(e=r.$getSelection()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=r.$getEditor();for(const[o,l]of yt){const i=l(n,e);i!==null&&(t[o]=i)}}return t}function Lt(e,t){for(const n in t){const o=t[n];o!==void 0&&e.setData(n,o)}}function pe(e,t){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(e,t);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(e,t);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const P=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,bt=P&&"documentMode"in document?document.documentMode:null,Pt=!(!P||!("InputEvent"in window)||bt)&&"getTargetRanges"in new window.InputEvent("input"),jt=P&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Ee=P&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,kt=P&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Yt=P&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!kt,he=r.createCommand("DRAG_DROP_PASTE_FILE");function B(e){let t=null;if(M.objectKlassEquals(e,DragEvent)?t=e.dataTransfer:M.objectKlassEquals(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];const n=t.types,o=n.includes("Files"),l=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(t.files),l]}function Re(e){const t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;const n=new Set,o=t.getNodes();for(let l=0;l<o.length;l++){const i=o[l],s=i.getKey();if(n.has(s))continue;const a=M.$findMatchingParent(i,u=>r.$isElementNode(u)&&!u.isInline());if(a===null)continue;const c=a.getKey();a.canIndent()&&!n.has(c)&&(n.add(c),e(a))}return n.size>0}function q(e){const t=r.$getNearestNodeFromDOMNode(e);return r.$isDecoratorNode(t)}function Kt(e){return M.mergeRegister(e.registerCommand(r.CLICK_COMMAND,t=>{const n=r.$getSelection();return!!r.$isNodeSelection(n)&&(n.clear(),!0)},0),e.registerCommand(r.DELETE_CHARACTER_COMMAND,t=>{const n=r.$getSelection();return!!r.$isRangeSelection(n)&&(n.deleteCharacter(t),!0)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.DELETE_WORD_COMMAND,t=>{const n=r.$getSelection();return!!r.$isRangeSelection(n)&&(n.deleteWord(t),!0)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.DELETE_LINE_COMMAND,t=>{const n=r.$getSelection();return!!r.$isRangeSelection(n)&&(n.deleteLine(t),!0)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.CONTROLLED_TEXT_INSERTION_COMMAND,t=>{const n=r.$getSelection();if(typeof t=="string")n!==null&&n.insertText(t);else{if(n===null)return!1;const o=t.dataTransfer;if(o!=null)de(o,n,e);else if(r.$isRangeSelection(n)){const l=t.data;return l&&n.insertText(l),!0}}return!0},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.REMOVE_TEXT_COMMAND,()=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.removeText(),!0)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.FORMAT_TEXT_COMMAND,t=>{const n=r.$getSelection();return!!r.$isRangeSelection(n)&&(n.formatText(t),!0)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.FORMAT_ELEMENT_COMMAND,t=>{const n=r.$getSelection();if(!r.$isRangeSelection(n)&&!r.$isNodeSelection(n))return!1;const o=n.getNodes();for(const l of o){const i=M.$findMatchingParent(l,s=>r.$isElementNode(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.INSERT_LINE_BREAK_COMMAND,t=>{const n=r.$getSelection();return!!r.$isRangeSelection(n)&&(n.insertLineBreak(t),!0)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.INSERT_PARAGRAPH_COMMAND,()=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.insertParagraph(),!0)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.INSERT_TAB_COMMAND,()=>(r.$insertNodes([r.$createTabNode()]),!0),r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.INDENT_CONTENT_COMMAND,()=>Re(t=>{const n=t.getIndent();t.setIndent(n+1)}),r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.OUTDENT_CONTENT_COMMAND,()=>Re(t=>{const n=t.getIndent();n>0&&t.setIndent(n-1)}),r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.KEY_ARROW_UP_COMMAND,t=>{const n=r.$getSelection();if(r.$isNodeSelection(n)&&!q(t.target)){const o=n.getNodes();if(o.length>0)return o[0].selectPrevious(),!0}else if(r.$isRangeSelection(n)){const o=r.$getAdjacentNode(n.focus,!0);if(!t.shiftKey&&r.$isDecoratorNode(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),t.preventDefault(),!0}return!1},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.KEY_ARROW_DOWN_COMMAND,t=>{const n=r.$getSelection();if(r.$isNodeSelection(n)){const o=n.getNodes();if(o.length>0)return o[0].selectNext(0,0),!0}else if(r.$isRangeSelection(n)){if(function(l){const i=l.focus;return i.key==="root"&&i.offset===r.$getRoot().getChildrenSize()}(n))return t.preventDefault(),!0;const o=r.$getAdjacentNode(n.focus,!1);if(!t.shiftKey&&r.$isDecoratorNode(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),t.preventDefault(),!0}return!1},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.KEY_ARROW_LEFT_COMMAND,t=>{const n=r.$getSelection();if(r.$isNodeSelection(n)){const o=n.getNodes();if(o.length>0)return t.preventDefault(),o[0].selectPrevious(),!0}if(!r.$isRangeSelection(n))return!1;if(ce(n,!0)){const o=t.shiftKey;return t.preventDefault(),ue(n,o,!0),!0}return!1},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.KEY_ARROW_RIGHT_COMMAND,t=>{const n=r.$getSelection();if(r.$isNodeSelection(n)&&!q(t.target)){const l=n.getNodes();if(l.length>0)return t.preventDefault(),l[0].selectNext(0,0),!0}if(!r.$isRangeSelection(n))return!1;const o=t.shiftKey;return!!ce(n,!1)&&(t.preventDefault(),ue(n,o,!1),!0)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.KEY_BACKSPACE_COMMAND,t=>{if(q(t.target))return!1;const n=r.$getSelection();if(!r.$isRangeSelection(n))return!1;const{anchor:o}=n,l=o.getNode();return n.isCollapsed()&&o.offset===0&&!r.$isRootNode(l)&&M.$getNearestBlockElementAncestorOrThrow(l).getIndent()>0?(t.preventDefault(),e.dispatchCommand(r.OUTDENT_CONTENT_COMMAND,void 0)):(!Ee||navigator.language!=="ko-KR")&&(t.preventDefault(),e.dispatchCommand(r.DELETE_CHARACTER_COMMAND,!0))},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.KEY_DELETE_COMMAND,t=>{if(q(t.target))return!1;const n=r.$getSelection();return!!r.$isRangeSelection(n)&&(t.preventDefault(),e.dispatchCommand(r.DELETE_CHARACTER_COMMAND,!1))},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.KEY_ENTER_COMMAND,t=>{const n=r.$getSelection();if(!r.$isRangeSelection(n))return!1;if(t!==null){if((Ee||jt||Yt)&&Pt)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(r.INSERT_LINE_BREAK_COMMAND,!1)}return e.dispatchCommand(r.INSERT_PARAGRAPH_COMMAND,void 0)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.KEY_ESCAPE_COMMAND,()=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(e.blur(),!0)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.DROP_COMMAND,t=>{const[,n]=B(t);if(n.length>0){const l=pe(t.clientX,t.clientY);if(l!==null){const{offset:i,node:s}=l,a=r.$getNearestNodeFromDOMNode(s);if(a!==null){const c=r.$createRangeSelection();if(r.$isTextNode(a))c.anchor.set(a.getKey(),i,"text"),c.focus.set(a.getKey(),i,"text");else{const d=a.getParentOrThrow().getKey(),f=a.getIndexWithinParent()+1;c.anchor.set(d,f,"element"),c.focus.set(d,f,"element")}const u=r.$normalizeSelection__EXPERIMENTAL(c);r.$setSelection(u)}e.dispatchCommand(he,n)}return t.preventDefault(),!0}const o=r.$getSelection();return!!r.$isRangeSelection(o)},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.DRAGSTART_COMMAND,t=>{const[n]=B(t),o=r.$getSelection();return!(n&&!r.$isRangeSelection(o))},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.DRAGOVER_COMMAND,t=>{const[n]=B(t),o=r.$getSelection();if(n&&!r.$isRangeSelection(o))return!1;const l=pe(t.clientX,t.clientY);if(l!==null){const i=r.$getNearestNodeFromDOMNode(l.node);r.$isDecoratorNode(i)&&t.preventDefault()}return!0},r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.SELECT_ALL_COMMAND,()=>(r.$selectAll(),!0),r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.COPY_COMMAND,t=>(ge(e,M.objectKlassEquals(t,ClipboardEvent)?t:null),!0),r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.CUT_COMMAND,t=>(async function(n,o){await ge(o,M.objectKlassEquals(n,ClipboardEvent)?n:null),o.update(()=>{const l=r.$getSelection();r.$isRangeSelection(l)?l.removeText():r.$isNodeSelection(l)&&l.getNodes().forEach(i=>i.remove())})}(t,e),!0),r.COMMAND_PRIORITY_EDITOR),e.registerCommand(r.PASTE_COMMAND,t=>{const[,n,o]=B(t);return n.length>0&&!o?(e.dispatchCommand(he,n),!0):r.isSelectionCapturedInDecoratorInput(t.target)?!1:r.$getSelection()!==null&&(function(l,i){l.preventDefault(),i.update(()=>{const s=r.$getSelection(),a=M.objectKlassEquals(l,InputEvent)||M.objectKlassEquals(l,KeyboardEvent)?null:l.clipboardData;a!=null&&s!==null&&de(a,s,i)},{tag:"paste"})}(t,e),!0)},r.COMMAND_PRIORITY_EDITOR))}const te=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?m.useLayoutEffect:m.useEffect;function Ne(e){return e.getEditorState().read(De(e.isComposing()))}function Ut({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[o]=A(),l=function(i,s){const[a,c]=m.useState(()=>i.getDecorators());return te(()=>i.registerDecoratorListener(u=>{oe.flushSync(()=>{c(u)})}),[i]),m.useEffect(()=>{c(i.getDecorators())},[i]),m.useMemo(()=>{const u=[],d=Object.keys(a);for(let f=0;f<d.length;f++){const g=d[f],E=R.jsxRuntimeExports.jsx(s,{onError:h=>i._onError(h),children:R.jsxRuntimeExports.jsx(m.Suspense,{fallback:null,children:a[g]})}),p=i.getElementByKey(g);p!==null&&u.push(oe.createPortal(E,p,g))}return u},[s,a,i])}(o,n);return function(i){te(()=>M.mergeRegister(Kt(i),Nt(i)),[i])}(o),R.jsxRuntimeExports.jsxs(R.jsxRuntimeExports.Fragment,{children:[e,R.jsxRuntimeExports.jsx(Ft,{content:t}),l]})}function Ft({content:e}){const[t]=A(),n=function(l){const[i,s]=m.useState(()=>Ne(l));return te(()=>{function a(){const c=Ne(l);s(c)}return a(),M.mergeRegister(l.registerUpdateListener(()=>{a()}),l.registerEditableListener(()=>{a()}))},[l]),i}(t),o=Rt();return n?typeof e=="function"?e(o):e:null}const Bt="_editor_17n1f_1",qt="_toolbar_17n1f_11",zt="_active_17n1f_32",Gt="_bold_17n1f_37",Ht="_italic_17n1f_41",Wt="_link_17n1f_45",Vt="_list_17n1f_51",Jt="_paragraph_17n1f_52",T={editor:Bt,toolbar:qt,active:zt,bold:Gt,italic:Ht,link:Wt,list:Vt,paragraph:Jt},Xt=()=>{const[e]=A(),[t,n]=m.useState(!1),[o,l]=m.useState(!1),[i,s]=m.useState(!1),[a,c]=m.useState(!1),[u,d]=m.useState(""),f=m.useRef(null),g=()=>{e.dispatchCommand(O.TOGGLE_LINK_COMMAND,{url:u,target:"_blank"})},E=m.useCallback(()=>{const p=r.$getSelection();if(r.$isRangeSelection(p)){const h=p.getNodes();n(p.hasFormat("bold")),l(p.hasFormat("italic")),h.every(_=>{const N=_.getParent();c(y.$isListNode(N)||y.$isListItemNode(N)),O.$isLinkNode(N)?(s(!0),d(N.getURL())):(s(!1),d(""))})}},[]);return m.useEffect(()=>M.mergeRegister(e.registerUpdateListener(({editorState:p})=>{p.read(()=>{E()})})),[e,E]),R.jsxRuntimeExports.jsxs("div",{className:T.toolbar,children:[R.jsxRuntimeExports.jsx(Y.Button,{className:j(t&&T.active),onClick:()=>{e.dispatchCommand(r.FORMAT_TEXT_COMMAND,"bold")},title:"Bold",variant:"minimal",children:R.jsxRuntimeExports.jsx(K.Icon,{name:"bold"})}),R.jsxRuntimeExports.jsx(Y.Button,{className:j(o&&T.active),onClick:()=>{e.dispatchCommand(r.FORMAT_TEXT_COMMAND,"italic")},title:"Italic",variant:"minimal",children:R.jsxRuntimeExports.jsx(K.Icon,{name:"italic"})}),R.jsxRuntimeExports.jsx(Y.Button,{className:j(a&&T.active),onClick:()=>{a?e.dispatchCommand(y.REMOVE_LIST_COMMAND,void 0):e.dispatchCommand(y.INSERT_UNORDERED_LIST_COMMAND,void 0)},title:"List",variant:"minimal",children:R.jsxRuntimeExports.jsx(K.Icon,{name:"list"})}),R.jsxRuntimeExports.jsx(Y.Button,{className:j(i&&T.active),onClick:()=>{i?e.dispatchCommand(O.TOGGLE_LINK_COMMAND,null):(e.dispatchCommand(O.TOGGLE_LINK_COMMAND,{url:"https://"}),setTimeout(()=>f.current.focus(),0))},title:"Link",variant:"minimal",children:R.jsxRuntimeExports.jsx(K.Icon,{name:"link"})}),R.jsxRuntimeExports.jsx(ve.Input,{className:j(i&&T.active),onBlur:()=>g(),onChange:p=>d(p.target.value),onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),g())},ref:f,value:u})]})},Zt=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,Qt=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,en=[e=>{const t=Zt.exec(e);return t!=null&&t.length?{index:t.index,length:t[0].length,text:t[0],url:`mailto:${t[0]}`}:null},e=>{const t=Qt.exec(e);return t!=null&&t.length?{index:t.index,length:t[0].length,text:t[0],url:t[0].startsWith("http")?t[0]:`https://${t[0]}`}:null}];function tn(e){try{const t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function nn({content:e}){const[t]=A();return m.useEffect(()=>{t.update(()=>{const o=new DOMParser().parseFromString(e??"","text/html"),l=W.$generateNodesFromDOM(t,o);r.$getRoot().clear().select(),r.$insertNodes(l),r.$setSelection(null)})},[]),null}const rn=({autofocus:e=!1,autolink:t=!1,content:n,onChange:o})=>{const l={namespace:"Editor",theme:{link:T.link,list:{ol:T.list,ul:T.list},paragraph:T.paragraph,text:{bold:T.bold,italic:T.italic}},onError(i){throw i},nodes:[O.AutoLinkNode,O.LinkNode,y.ListNode,y.ListItemNode]};return R.jsxRuntimeExports.jsx("div",{className:T.editor,children:R.jsxRuntimeExports.jsxs(Ge,{initialConfig:l,children:[R.jsxRuntimeExports.jsx(Xt,{}),R.jsxRuntimeExports.jsx(Ut,{contentEditable:R.jsxRuntimeExports.jsx(Qe,{}),ErrorBoundary:rt}),e&&R.jsxRuntimeExports.jsx(Pe,{}),t&&R.jsxRuntimeExports.jsx(qe,{matchers:en}),R.jsxRuntimeExports.jsx(dt,{}),n&&R.jsxRuntimeExports.jsx(nn,{content:n}),R.jsxRuntimeExports.jsx(ft,{validateUrl:tn}),R.jsxRuntimeExports.jsx(gt,{}),o&&R.jsxRuntimeExports.jsx(pt,{onChange:(i,s)=>{i.read(()=>{const a=W.$generateHtmlFromNodes(s,null),c=Ie(a,{allowedTags:["a","b","br","i","li","ol","p","ul"]});o(c)})}})]})})};exports.Editor=rn;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index6.css');const V=require("../../jsx-runtime-BJcCX4ED.cjs"),U=require("react"),Ms=require("react-dom"),dn=require("../../classix-5H4IWnMA.cjs"),cr=require("../button/index.cjs"),fr=require("../icon/index.cjs"),o0=require("../input/index.cjs");function a0(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Du=a0(U);var q=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function c0(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var u=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:function(){return n[r]}})}),t}function Wn(n){return{}}const ji={},f0={},va={},Nt={},Jt={},An={},Xt={},fu={},Qu={},On={},Pn={},Ue={},qi={},Ui={},d0={},wa={},h0={},Sa={},p0={},Ta={},Ea={},Br={},g0={},Ca={},Na={},ka={},m0={},b0={},y0={},Rs={},Aa={},x0={},Oa={},Pa={},_0={},du={},zi={},Yu={},v0={},w0={},dr={},hr={},S0={},T0={},E0={},Re=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,C0=Re&&"documentMode"in document?document.documentMode:null,Ae=Re&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ht=Re&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),$r=!(!Re||!("InputEvent"in window)||C0)&&"getTargetRanges"in new window.InputEvent("input"),hu=Re&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Hn=Re&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,N0=Re&&/Android/.test(navigator.userAgent),Ia=Re&&/^(?=.*Chrome).*/i.test(navigator.userAgent),k0=Re&&N0&&Ia,Wi=Re&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Ia,Vn=1,mt=3,At=0,La=1,Yt=2,A0=0,O0=1,P0=2,Fr=4,jr=8,Hi=128,I0=112|(3|Fr|jr)|Hi,Vi=1,Gi=2,Ki=3,Ji=4,Xi=5,Zi=6,pu=hu||Hn||Wi?" ":"​",Ze=`
2
+
3
+ `,L0=ht?" ":pu,Da="֑-߿יִ-﷽ﹰ-ﻼ",Ma="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",D0=new RegExp("^[^"+Ma+"]*["+Da+"]"),M0=new RegExp("^[^"+Da+"]*["+Ma+"]"),Ot={bold:1,code:16,highlight:Hi,italic:2,strikethrough:Fr,subscript:32,superscript:64,underline:jr},R0={directionless:1,unmergeable:2},Bs={center:Gi,end:Zi,justify:Ji,left:Vi,right:Ki,start:Xi},B0={[Gi]:"center",[Zi]:"end",[Ji]:"justify",[Vi]:"left",[Ki]:"right",[Xi]:"start"},$0={normal:0,segmented:2,token:1},F0={[A0]:"normal",[P0]:"segmented",[O0]:"token"};function j0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var L=j0(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function qr(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const q0=100;let ei=!1,Qi=0;function U0(n){Qi=n.timeStamp}function Mu(n,e,t){const r=n.nodeName==="BR",u=e.__lexicalLineBreak;return u&&(n===u||r&&n.previousSibling===u)||r&&mu(n,t)!==void 0}function z0(n,e,t){const r=Ne(t._window);let u=null,i=null;r!==null&&r.anchorNode===n&&(u=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&rs(e,s,u,i,!1)}function W0(n,e,t){if(I(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return e.nodeType===mt&&t.isAttached()}function H0(n,e,t,r){for(let u=n;u&&!sf(u);u=Kn(u)){const i=mu(u,e);if(i!==void 0){const s=fe(i,t);if(s)return te(s)?void 0:[u,s]}else if(u===r)return[r,Wa(t)]}}function Ra(n,e,t){ei=!0;const r=performance.now()-Qi>q0;try{Te(n,()=>{const u=$()||function(c){return c.getEditorState().read(()=>{const d=$();return d!==null?d.clone():null})}(n),i=new Map,s=n.getRootElement(),o=n._editorState,a=n._blockCursorElement;let l=!1,f="";for(let c=0;c<e.length;c++){const d=e[c],p=d.type,m=d.target,g=H0(m,n,o,s);if(!g)continue;const[y,b]=g;if(p==="characterData")r&&M(b)&&W0(u,m,b)&&z0(m,b,n);else if(p==="childList"){l=!0;const _=d.addedNodes;for(let S=0;S<_.length;S++){const P=_[S],E=Ua(P),D=P.parentNode;if(D!=null&&P!==a&&E===null&&!Mu(P,D,n)){if(ht){const j=P.innerText||P.nodeValue;j&&(f+=j)}D.removeChild(P)}}const w=d.removedNodes,T=w.length;if(T>0){let S=0;for(let P=0;P<T;P++){const E=w[P];(Mu(E,m,n)||a===E)&&(m.appendChild(E),S++)}T!==S&&i.set(y,b)}}}if(i.size>0)for(const[c,d]of i)d.reconcileObservedMutation(c,n);const h=t.takeRecords();if(h.length>0){for(let c=0;c<h.length;c++){const d=h[c],p=d.addedNodes,m=d.target;for(let g=0;g<p.length;g++){const y=p[g],b=y.parentNode;b==null||y.nodeName!=="BR"||Mu(y,m,n)||b.removeChild(y)}}t.takeRecords()}u!==null&&(l&&(u.dirty=!0,Me(u)),ht&&Ka(n)&&u.insertRawText(f))})}finally{ei=!1}}function Ba(n){const e=n._observer;e!==null&&Ra(n,e.takeRecords(),e)}function $a(n){(function(e){Qi===0&&yu(e).addEventListener("textInput",U0,!0)})(n),n._observer=new MutationObserver((e,t)=>{Ra(n,e,t)})}function $s(n,e){const t=n.__mode,r=n.__format,u=n.__style,i=e.__mode,s=e.__format,o=e.__style;return!(t!==null&&t!==i||r!==null&&r!==s||u!==null&&u!==o)}function Fs(n,e){const t=n.mergeWithSibling(e),r=ue()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function js(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&M(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if($s(e,r)){r=Fs(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&M(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if($s(r,t)){r=Fs(r,t);break}break}t.remove()}}else r.remove()}function Fa(n){return qs(n.anchor),qs(n.focus),n}function qs(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,u;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),u=!0):(r=e.getChildAtIndex(t),u=!1),M(r)){n.set(r.__key,u?r.getTextContentSize():0,"text");break}if(!C(r))break;n.set(r.__key,u?r.getChildrenSize():0,"element")}}let V0=1;const G0=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function Yi(n){const e=document.activeElement;if(e===null)return!1;const t=e.nodeName;return te(en(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&gu(e)==null)}function Gn(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!Yi(e)&&ja(e)===n}catch{return!1}}function es(n){return n instanceof Su}function ja(n){let e=n;for(;e!=null;){const t=gu(e);if(es(t))return t;e=Kn(e)}return null}function gu(n){return n?n.__lexicalEditor:null}function St(n){return n.isToken()||n.isSegmented()}function K0(n){return n.nodeType===mt}function Ur(n){let e=n;for(;e!=null;){if(K0(e))return e;e=e.firstChild}return null}function zr(n,e,t){const r=Ot[e];if(t!==null&&(n&r)==(t&r))return n;let u=n^r;return e==="subscript"?u&=-65:e==="superscript"&&(u&=-33),u}function qa(n){return M(n)||pt(n)||te(n)}function J0(n,e){if(e!=null)return void(n.__key=e);ye(),gl();const t=ue(),r=tt(),u=""+V0++;r._nodeMap.set(u,n),C(n)?t._dirtyElements.set(u,!0):t._dirtyLeaves.add(u),t._cloneNotNeeded.add(u),t._dirtyType=La,n.__key=u}function kt(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),u=n.getPreviousSibling(),i=n.getNextSibling();if(u===null)if(i!==null){const s=i.getWritable();r.__first=i.__key,s.__prev=null}else r.__first=null;else{const s=u.getWritable();if(i!==null){const o=i.getWritable();o.__prev=s.__key,s.__next=o.__key}else s.__next=null;t.__prev=null}if(i===null)if(u!==null){const s=u.getWritable();r.__last=u.__key,s.__next=null}else r.__last=null;else{const s=i.getWritable();if(u!==null){const o=u.getWritable();o.__next=s.__key,s.__prev=o.__key}else s.__prev=null;t.__next=null}r.__size--,t.__parent=null}}function Wr(n){gl();const e=n.getLatest(),t=e.__parent,r=tt(),u=ue(),i=r._nodeMap,s=u._dirtyElements;t!==null&&function(a,l,f){let h=a;for(;h!==null;){if(f.has(h))return;const c=l.get(h);if(c===void 0)break;f.set(h,!1),h=c.__parent}}(t,i,s);const o=e.__key;u._dirtyType=La,C(n)?s.set(o,!0):u._dirtyLeaves.add(o)}function ce(n){ye();const e=ue(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=fe(t);r!==null&&r.getWritable()}if(n!==null){const r=fe(n);r!==null&&r.getWritable()}}}function lt(){return Yn()?null:ue()._compositionKey}function fe(n,e){const t=(e||tt())._nodeMap.get(n);return t===void 0?null:t}function Ua(n,e){const t=mu(n,ue());return t!==void 0?fe(t,e):null}function mu(n,e){return n[`__lexicalKey_${e._key}`]}function en(n,e){let t=n;for(;t!=null;){const r=Ua(t,e);if(r!==null)return r;t=Kn(t)}return null}function za(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function Us(n){return n.read(()=>ie().getTextContent())}function ie(){return Wa(tt())}function Wa(n){return n._nodeMap.get("root")}function Me(n){ye();const e=tt();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function Gt(n){const e=ue(),t=function(r,u){let i=r;for(;i!=null;){const s=mu(i,u);if(s!==void 0)return s;i=Kn(i)}return null}(n,e);return t===null?n===e.getRootElement()?fe("root"):null:fe(t)}function zs(n,e){return e?n.getTextContentSize():0}function Ha(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function ts(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Va(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Ga(n){return n.nodeType===mt?n.nodeValue:null}function ns(n,e,t){const r=Ne(e._window);if(r===null)return;const u=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(u!==null){let o=Ga(u);const a=en(u);if(o!==null&&M(a)){if(o===pu&&t){const l=t.length;o=t,i=l,s=l}o!==null&&rs(a,o,i,s,n)}}}function rs(n,e,t,r,u){let i=n;if(i.isAttached()&&(u||!i.isDirty())){const s=i.isComposing();let o=e;(s||u)&&e[e.length-1]===pu&&(o=e.slice(0,-1));const a=i.getTextContent();if(u||o!==a){if(o===""){if(ce(null),hu||Hn||Wi)i.remove();else{const m=ue();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=Qn(),h=i.getTextContentSize(),c=lt(),d=i.getKey();if(i.isToken()||c!==null&&d===c&&!s||I(f)&&(l!==null&&!l.canInsertTextBefore()&&f.anchor.offset===0||f.anchor.key===n.__key&&f.anchor.offset===0&&!i.canInsertTextBefore()&&!s||f.focus.key===n.__key&&f.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=$();if(!I(p)||t===null||r===null)return void i.setTextContent(o);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=se(i.getTextContent());i.replace(m),i=m}i.setTextContent(o)}}}function X0(n,e){if(e.isSegmented())return!0;if(!n.isCollapsed())return!1;const t=n.anchor.offset,r=e.getParentOrThrow(),u=e.isToken();return t===0?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||u||function(i){const s=i.getPreviousSibling();return(M(s)||C(s)&&s.isInline())&&!s.canInsertTextAfter()}(e):t===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||u)}function Ws(n){return n==="ArrowLeft"}function Hs(n){return n==="ArrowRight"}function _n(n,e){return Ae?n:e}function Vs(n){return n==="Enter"}function hn(n){return n==="Backspace"}function pn(n){return n==="Delete"}function Gs(n,e,t){return n.toLowerCase()==="a"&&_n(e,t)}function Z0(){const n=ie();Me(Fa(n.select(0,n.getChildrenSize())))}function wn(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const u=n[e];if(typeof u=="string"){const i=qr(u);return t[e]=i,i}return u}function us(n,e,t,r,u){if(t.size===0)return;const i=r.__type,s=r.__key,o=e.get(i);o===void 0&&L(33,i);const a=o.klass;let l=n.get(a);l===void 0&&(l=new Map,n.set(a,l));const f=l.get(s),h=f==="destroyed"&&u==="created";(f===void 0||h)&&l.set(s,h?"updated":u)}function Ks(n,e,t){const r=n.getParent();let u=t,i=n;return r!==null&&(e&&t===0?(u=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(u=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?u-1:u)}function In(n,e){const t=n.offset;if(n.type==="element")return Ks(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const u=e?r.getPreviousSibling():r.getNextSibling();return u===null?Ks(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):u}}return null}function Ka(n){const e=yu(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function R(n,e,t){return yl(n,e,t)}function bu(n){return!he(n)&&!n.isLastChild()&&!n.isInline()}function Hr(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&L(75,e),t}function Kn(n){const e=n.assignedSlot||n.parentElement;return e!==null&&e.nodeType===11?e.host:e}function Sn(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function yu(n){const e=n._window;return e===null&&L(78),e}function Q0(n){let e=n.getParentOrThrow();for(;e!==null;){if(Qe(e))return e;e=e.getParentOrThrow()}return e}function Qe(n){return he(n)||C(n)&&n.isShadowRoot()}function bt(n){const e=ue(),t=n.constructor.getType(),r=e._nodes.get(t);r===void 0&&L(200,n.constructor.name,t);const{replace:u,replaceWithKlass:i}=r;if(u!==null){const s=u(n),o=s.constructor;return i!==null?s instanceof i||L(201,i.name,i.getType(),o.name,o.getType(),n.constructor.name,t):s instanceof n.constructor&&o!==n.constructor||L(202,o.name,o.getType(),n.constructor.name,t),s.__key===n.__key&&L(203,n.constructor.name,t,o.name,o.getType()),s}return n}function Ru(n,e){!he(n.getParent())||C(e)||te(e)||L(99)}function Bu(n){return(te(n)||C(n)&&!n.canBeEmpty())&&!n.isInline()}function is(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function Y0(n,e,t){let r=n._blockCursorElement;if(I(t)&&t.isCollapsed()&&t.anchor.type==="element"&&e.contains(document.activeElement)){const u=t.anchor,i=u.getNode(),s=u.offset;let o=!1,a=null;if(s===i.getChildrenSize())Bu(i.getChildAtIndex(s-1))&&(o=!0);else{const l=i.getChildAtIndex(s);if(l!==null&&Bu(l)){const f=l.getPreviousSibling();(f===null||Bu(f))&&(o=!0,a=n.getElementByKey(l.__key))}}if(o){const l=n.getElementByKey(i.__key);return r===null&&(n._blockCursorElement=r=function(f){const h=f.theme,c=document.createElement("div");c.contentEditable="false",c.setAttribute("data-lexical-cursor","true");let d=h.blockCursor;if(d!==void 0){if(typeof d=="string"){const p=qr(d);d=h.blockCursor=p}d!==void 0&&c.classList.add(...d)}return c}(n._config)),e.style.caretColor="transparent",void(a===null?l.appendChild(r):l.insertBefore(r,a))}}r!==null&&is(r,n,e)}function Ne(n){return Re?(n||window).getSelection():null}function ef(n){return Rt(n)&&n.tagName==="A"}function Rt(n){return n.nodeType===1}function Js(n){return n.nodeType===11}function ti(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function Vr(n){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 n.nodeName.match(e)!==null}function ot(n){if(te(n)&&!n.isInline())return!0;if(!C(n)||Qe(n))return!1;const e=n.getFirstChild(),t=e===null||pt(e)||M(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function gn(n,e){let t=n;for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function tf(){return ue()}const Xs=new WeakMap,nf=new Map;function rf(n){if(!n._readOnly&&n.isEmpty())return nf;n._readOnly||L(192);let e=Xs.get(n);if(!e){e=new Map,Xs.set(n,e);for(const[t,r]of n._nodeMap){const u=r.__type;let i=e.get(u);i||(i=new Map,e.set(u,i)),i.set(t,r)}}return e}function ss(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function uf(n,e){const t=(parseInt(n.style.paddingInlineStart,10)||0)/40;e.setIndent(t)}function sf(n){return n.__lexicalUnmanaged===!0}function Ja(n,e,t,r,u,i){let s=n.getFirstChild();for(;s!==null;){const o=s.__key;s.__parent===e&&(C(s)&&Ja(s,o,t,r,u,i),t.has(o)||i.delete(o),u.push(o)),s=s.getNextSibling()}}let gt,pe,Ln,xu,ni,ri,Pt,De,ui,Dn,oe="",de="",Fe=null,Oe="",Xe="",Xa=!1,Mn=!1,Or=null;function Gr(n,e){const t=Pt.get(n);if(e!==null){const r=oi(n);r.parentNode===e&&e.removeChild(r)}if(De.has(n)||pe._keyToDOMMap.delete(n),C(t)){const r=Jr(t,Pt);ii(r,0,r.length-1,null)}t!==void 0&&us(Dn,Ln,xu,t,"destroyed")}function ii(n,e,t,r){let u=e;for(;u<=t;++u){const i=n[u];i!==void 0&&Gr(i,r)}}function wt(n,e){n.setProperty("text-align",e)}const of="40px";function Za(n,e){const t=gt.theme.indent;if(typeof t=="string"){const u=n.classList.contains(t);e>0&&!u?n.classList.add(t):e<1&&u&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||of;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function Qa(n,e){const t=n.style;e===0?wt(t,""):e===Vi?wt(t,"left"):e===Gi?wt(t,"center"):e===Ki?wt(t,"right"):e===Ji?wt(t,"justify"):e===Xi?wt(t,"start"):e===Zi&&wt(t,"end")}function Kr(n,e){const t=De.get(n);t===void 0&&L(60);const r=t.createDOM(gt,pe);if(function(u,i,s){const o=s._keyToDOMMap;(function(a,l,f){a[`__lexicalKey_${l._key}`]=f})(i,s,u),o.set(u,i)}(n,r,pe),M(t)?r.setAttribute("data-lexical-text","true"):te(t)&&r.setAttribute("data-lexical-decorator","true"),C(t)){const u=t.__indent,i=t.__size;if(u!==0&&Za(r,u),i!==0){const o=i-1;(function(a,l,f,h){const c=de;de="",si(a,f,0,l,f.getDOMSlot(h)),el(f,h),de=c})(Jr(t,De),o,t,r)}const s=t.__format;s!==0&&Qa(r,s),t.isInline()||Ya(null,t,r),bu(t)&&(oe+=Ze,Xe+=Ze)}else{const u=t.getTextContent();if(te(t)){const i=t.decorate(pe,gt);i!==null&&tl(n,i),r.contentEditable="false"}else M(t)&&(t.isDirectionless()||(de+=u));oe+=u,Xe+=u}return e!==null&&e.insertChild(r),us(Dn,Ln,xu,t,"created"),r}function si(n,e,t,r,u){const i=oe;oe="";let s=t;for(;s<=r;++s){Kr(n[s],u);const o=De.get(n[s]);o!==null&&M(o)&&(Fe===null&&(Fe=o.getFormat()),Oe===""&&(Oe=o.getStyle()))}bu(e)&&(oe+=Ze),u.element.__lexicalTextContent=oe,oe=i+oe}function Zs(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return pt(r)?"line-break":te(r)&&r.isInline()?"decorator":null}return"empty"}return null}function Ya(n,e,t){const r=Zs(n,Pt),u=Zs(e,De);r!==u&&e.getDOMSlot(t).setManagedLineBreak(u)}function el(n,e){const t=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(t!==de||r!==Or){const i=de==="",s=i?Or:(u=de,D0.test(u)?"rtl":M0.test(u)?"ltr":null);if(s!==r){const o=e.classList,a=gt.theme;let l=r!==null?a[r]:void 0,f=s!==null?a[s]:void 0;if(l!==void 0){if(typeof l=="string"){const h=qr(l);l=a[r]=h}o.remove(...l)}if(s===null||i&&s==="ltr")e.removeAttribute("dir");else{if(f!==void 0){if(typeof f=="string"){const h=qr(f);f=a[s]=h}f!==void 0&&o.add(...f)}e.dir=s}Mn||(n.getWritable().__dir=s)}Or=s,e.__lexicalDirTextContent=de,e.__lexicalDir=s}var u}function af(n,e,t){const r=de;var u;de="",Fe=null,Oe="",function(i,s,o){const a=oe,l=i.__size,f=s.__size;oe="";const h=o.element;if(l===1&&f===1){const c=i.__first,d=s.__first;if(c===d)vn(c,h);else{const m=oi(c),g=Kr(d,null);try{h.replaceChild(g,m)}catch(y){if(typeof y=="object"&&y!=null){const b=`${y.toString()} Parent: ${h.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${m.tagName}, key: ${c}}.`;throw new Error(b)}throw y}Gr(c,null)}const p=De.get(d);M(p)&&(Fe===null&&(Fe=p.getFormat()),Oe===""&&(Oe=p.getStyle()))}else{const c=Jr(i,Pt),d=Jr(s,De);if(c.length!==l&&L(227),d.length!==f&&L(228),l===0)f!==0&&si(d,s,0,f-1,o);else if(f===0){if(l!==0){const p=o.after==null&&o.before==null&&o.element.__lexicalLineBreak==null;ii(c,0,l-1,p?null:h),p&&(h.textContent="")}}else(function(p,m,g,y,b,_){const w=y-1,T=b-1;let S,P,E=_.getFirstChild(),D=0,j=0;for(;D<=w&&j<=T;){const A=m[D],B=g[j];if(A===B)E=$u(vn(B,_.element)),D++,j++;else{S===void 0&&(S=new Set(m)),P===void 0&&(P=new Set(g));const O=P.has(A),k=S.has(B);if(O)if(k){const F=Hr(pe,B);F===E?E=$u(vn(B,_.element)):(_.withBefore(E).insertChild(F),vn(B,_.element)),D++,j++}else Kr(B,_.withBefore(E)),j++;else E=$u(oi(A)),Gr(A,_.element),D++}const x=De.get(B);x!==null&&M(x)&&(Fe===null&&(Fe=x.getFormat()),Oe===""&&(Oe=x.getStyle()))}const v=D>w,N=j>T;if(v&&!N){const A=g[T+1],B=A===void 0?null:pe.getElementByKey(A);si(g,p,j,T,_.withBefore(B))}else N&&!v&&ii(m,D,w,_.element)})(s,c,d,l,f,o)}bu(s)&&(oe+=Ze),h.__lexicalTextContent=oe,oe=a+oe}(n,e,e.getDOMSlot(t)),el(e,t),tn(u=e)&&Fe!=null&&Fe!==u.__textFormat&&!Mn&&(u.setTextFormat(Fe),u.setTextStyle(Oe)),function(i){tn(i)&&Oe!==""&&Oe!==i.__textStyle&&!Mn&&i.setTextStyle(Oe)}(e),de=r}function Jr(n,e){const t=[];let r=n.__first;for(;r!==null;){const u=e.get(r);u===void 0&&L(101),t.push(r),r=u.__next}return t}function vn(n,e){const t=Pt.get(n);let r=De.get(n);t!==void 0&&r!==void 0||L(61);const u=Xa||ri.has(n)||ni.has(n),i=Hr(pe,n);if(t===r&&!u){if(C(t)){const s=i.__lexicalTextContent;s!==void 0&&(oe+=s,Xe+=s);const o=i.__lexicalDirTextContent;o!==void 0&&(de+=o)}else{const s=t.getTextContent();M(t)&&!t.isDirectionless()&&(de+=s),Xe+=s,oe+=s}return i}if(t!==r&&u&&us(Dn,Ln,xu,r,"updated"),r.updateDOM(t,i,gt)){const s=Kr(n,null);return e===null&&L(62),e.replaceChild(s,i),Gr(n,null),s}if(C(t)&&C(r)){const s=r.__indent;s!==t.__indent&&Za(i,s);const o=r.__format;o!==t.__format&&Qa(i,o),u&&(af(t,r,i),he(r)||r.isInline()||Ya(t,r,i)),bu(r)&&(oe+=Ze,Xe+=Ze)}else{const s=r.getTextContent();if(te(r)){const o=r.decorate(pe,gt);o!==null&&tl(n,o)}else M(r)&&!r.isDirectionless()&&(de+=s);oe+=s,Xe+=s}if(!Mn&&he(r)&&r.__cachedText!==Xe){const s=r.getWritable();s.__cachedText=Xe,r=s}return i}function tl(n,e){let t=pe._pendingDecorators;const r=pe._decorators;if(t===null){if(r[n]===e)return;t=za(pe)}t[n]=e}function $u(n){let e=n.nextSibling;return e!==null&&e===pe._blockCursorElement&&(e=e.nextSibling),e}function lf(n,e,t,r,u,i){oe="",Xe="",de="",Xa=r===Yt,Or=null,pe=t,gt=t._config,Ln=t._nodes,xu=pe._listeners.mutation,ni=u,ri=i,Pt=n._nodeMap,De=e._nodeMap,Mn=e._readOnly,ui=new Map(t._keyToDOMMap);const s=new Map;return Dn=s,vn("root",null),pe=void 0,Ln=void 0,ni=void 0,ri=void 0,Pt=void 0,De=void 0,gt=void 0,ui=void 0,Dn=void 0,s}function oi(n){const e=ui.get(n);return e===void 0&&L(75,n),e}const Ve=Object.freeze({}),ai=30,li=[["keydown",function(n,e){if(Tn=n.timeStamp,nl=n.key,e.isComposing())return;const{key:t,shiftKey:r,ctrlKey:u,metaKey:i,altKey:s}=n;if(!R(e,d0,n)&&t!=null){if(function(o,a,l,f){return Hs(o)&&!a&&!f&&!l}(t,u,s,i))R(e,wa,n);else if(function(o,a,l,f,h){return Hs(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))R(e,h0,n);else if(function(o,a,l,f){return Ws(o)&&!a&&!f&&!l}(t,u,s,i))R(e,Sa,n);else if(function(o,a,l,f,h){return Ws(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))R(e,p0,n);else if(function(o,a,l){return function(f){return f==="ArrowUp"}(o)&&!a&&!l}(t,u,i))R(e,Ta,n);else if(function(o,a,l){return function(f){return f==="ArrowDown"}(o)&&!a&&!l}(t,u,i))R(e,Ea,n);else if(function(o,a){return Vs(o)&&a}(t,r))En=!0,R(e,Br,n);else if(function(o){return o===" "}(t))R(e,g0,n);else if(function(o,a){return Ae&&a&&o.toLowerCase()==="o"}(t,u))n.preventDefault(),En=!0,R(e,Jt,!0);else if(function(o,a){return Vs(o)&&!a}(t,r))En=!1,R(e,Br,n);else if(function(o,a,l,f){return Ae?!a&&!l&&(hn(o)||o.toLowerCase()==="h"&&f):!(f||a||l)&&hn(o)}(t,s,i,u))hn(t)?R(e,Ca,n):(n.preventDefault(),R(e,Nt,!0));else if(function(o){return o==="Escape"}(t))R(e,Na,n);else if(function(o,a,l,f,h){return Ae?!(l||f||h)&&(pn(o)||o.toLowerCase()==="d"&&a):!(a||f||h)&&pn(o)}(t,u,r,s,i))pn(t)?R(e,ka,n):(n.preventDefault(),R(e,Nt,!1));else if(function(o,a,l){return hn(o)&&(Ae?a:l)}(t,s,u))n.preventDefault(),R(e,On,!0);else if(function(o,a,l){return pn(o)&&(Ae?a:l)}(t,s,u))n.preventDefault(),R(e,On,!1);else if(function(o,a){return Ae&&a&&hn(o)}(t,i))n.preventDefault(),R(e,Pn,!0);else if(function(o,a){return Ae&&a&&pn(o)}(t,i))n.preventDefault(),R(e,Pn,!1);else if(function(o,a,l,f){return o.toLowerCase()==="b"&&!a&&_n(l,f)}(t,s,i,u))n.preventDefault(),R(e,Ue,"bold");else if(function(o,a,l,f){return o.toLowerCase()==="u"&&!a&&_n(l,f)}(t,s,i,u))n.preventDefault(),R(e,Ue,"underline");else if(function(o,a,l,f){return o.toLowerCase()==="i"&&!a&&_n(l,f)}(t,s,i,u))n.preventDefault(),R(e,Ue,"italic");else if(function(o,a,l,f){return o==="Tab"&&!a&&!l&&!f}(t,s,u,i))R(e,m0,n);else if(function(o,a,l,f){return o.toLowerCase()==="z"&&!a&&_n(l,f)}(t,r,i,u))n.preventDefault(),R(e,qi,void 0);else if(function(o,a,l,f){return Ae?o.toLowerCase()==="z"&&l&&a:o.toLowerCase()==="y"&&f||o.toLowerCase()==="z"&&f&&a}(t,r,i,u))n.preventDefault(),R(e,Ui,void 0);else{const o=e._editorState._selection;o===null||I(o)?!ht&&Gs(t,i,u)&&(n.preventDefault(),R(e,Yu,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="c"&&(Ae?f:h)}(t,r,i,u)?(n.preventDefault(),R(e,du,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="x"&&(Ae?f:h)}(t,r,i,u)?(n.preventDefault(),R(e,zi,n)):Gs(t,i,u)&&(n.preventDefault(),R(e,Yu,n))}(function(o,a,l,f){return o||a||l||f})(u,r,s,i)&&R(e,E0,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;t instanceof Node&&r!=="touch"&&Te(e,()=>{te(en(t))||(fi=!0)})}],["compositionstart",function(n,e){Te(e,()=>{const t=$();if(I(t)&&!e.isComposing()){const r=t.anchor,u=t.anchor.getNode();ce(r.key),(n.timeStamp<Tn+ai||r.type==="element"||!t.isCollapsed()||u.getFormat()!==t.format||M(u)&&u.getStyle()!==t.style)&&R(e,Xt,L0)}})}],["compositionend",function(n,e){ht?mn=!0:Te(e,()=>{Fu(e,n.data)})}],["input",function(n,e){n.stopPropagation(),Te(e,()=>{const t=$(),r=n.data,u=sl(n);if(r!=null&&I(t)&&il(t,u,r,n.timeStamp,!1)){mn&&(Fu(e,r),mn=!1);const i=t.anchor.getNode(),s=Ne(e._window);if(s===null)return;const o=t.isBackward(),a=o?t.anchor.offset:t.focus.offset,l=o?t.focus.offset:t.anchor.offset;$r&&!t.isCollapsed()&&M(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+l)===Ga(s.anchorNode)||R(e,Xt,r);const f=r.length;ht&&f>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=f),hu||Hn||Wi||!e.isComposing()||(Tn=0,ce(null))}else ns(!1,e,r!==null?r:void 0),mn&&(Fu(e,r||void 0),mn=!1);ye(),Ba(ue())}),Wt=null}],["click",function(n,e){Te(e,()=>{const t=$(),r=Ne(e._window),u=Qn();if(r){if(I(t)){const i=t.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!he(s)&&ie().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&u!==null&&t.is(u)?(r.removeAllRanges(),t.dirty=!0):n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()&&(C(s)?s.select(0):s.getParentOrThrow().select(0))}else if(n.pointerType==="touch"){const i=r.anchorNode;if(i!==null){const s=i.nodeType;(s===Vn||s===mt)&&Me(as(u,r,e,n))}}}R(e,va,n)})}],["cut",Ve],["copy",Ve],["dragstart",Ve],["dragover",Ve],["dragend",Ve],["paste",Ve],["focus",Ve],["blur",Ve],["drop",Ve]];$r&&li.push(["beforeinput",(n,e)=>function(t,r){const u=t.inputType,i=sl(t);u==="deleteCompositionText"||ht&&Ka(r)||u!=="insertCompositionText"&&Te(r,()=>{const s=$();if(u==="deleteContentBackward"){if(s===null){const d=Qn();if(!I(d))return;Me(d.clone())}if(I(s)){const d=s.anchor.key===s.focus.key;if(o=t.timeStamp,nl==="MediaLast"&&o<Tn+ai&&r.isComposing()&&d){if(ce(null),Tn=0,setTimeout(()=>{Te(r,()=>{ce(null)})},ai),I(s)){const p=s.anchor.getNode();p.markDirty(),s.format=p.getFormat(),M(p)||L(142),s.style=p.getStyle()}}else{ce(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),g=p.canInsertTextAfter(),y=s.anchor.offset===0&&s.focus.offset===m.length;k0&&d&&!y&&g||R(r,Nt,!0)}return}}var o;if(!I(s))return;const a=t.data;Wt!==null&&ns(!1,r,Wt),s.dirty&&Wt===null||!s.isCollapsed()||he(s.anchor.getNode())||i===null||s.applyDOMRange(i),Wt=null;const l=s.anchor,f=s.focus,h=l.getNode(),c=f.getNode();if(u!=="insertText"&&u!=="insertTranspose")switch(t.preventDefault(),u){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":R(r,Xt,t);break;case"insertFromComposition":ce(null),R(r,Xt,t);break;case"insertLineBreak":ce(null),R(r,Jt,!1);break;case"insertParagraph":ce(null),En&&!Hn?(En=!1,R(r,Jt,!1)):R(r,An,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":R(r,fu,t);break;case"deleteByComposition":(function(d,p){return d!==p||C(d)||C(p)||!d.isToken()||!p.isToken()})(h,c)&&R(r,Qu,t);break;case"deleteByDrag":case"deleteByCut":R(r,Qu,t);break;case"deleteContent":R(r,Nt,!1);break;case"deleteWordBackward":R(r,On,!0);break;case"deleteWordForward":R(r,On,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":R(r,Pn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":R(r,Pn,!1);break;case"formatStrikeThrough":R(r,Ue,"strikethrough");break;case"formatBold":R(r,Ue,"bold");break;case"formatItalic":R(r,Ue,"italic");break;case"formatUnderline":R(r,Ue,"underline");break;case"historyUndo":R(r,qi,void 0);break;case"historyRedo":R(r,Ui,void 0)}else{if(a===`
4
+ `)t.preventDefault(),R(r,Jt,!1);else if(a===Ze)t.preventDefault(),R(r,An,void 0);else if(a==null&&t.dataTransfer){const d=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(d)}else a!=null&&il(s,i,a,t.timeStamp,!0)?(t.preventDefault(),R(r,Xt,a)):Wt=a;rl=t.timeStamp}})}(n,e)]);let Tn=0,nl=null,rl=0,Wt=null;const Xr=new WeakMap;let ci=!1,fi=!1,En=!1,mn=!1,ul=[0,"",0,"root",0];function il(n,e,t,r,u){const i=n.anchor,s=n.focus,o=i.getNode(),a=ue(),l=Ne(a._window),f=l!==null?l.anchorNode:null,h=i.key,c=a.getElementByKey(h),d=t.length;return h!==s.key||!M(o)||(!u&&(!$r||rl<r+50)||o.isDirty()&&d<2||Ha(t))&&i.offset!==s.offset&&!o.isComposing()||St(o)||o.isDirty()&&d>1||(u||!$r)&&c!==null&&!o.isComposing()&&f!==Ur(c)||l!==null&&e!==null&&(!e.collapsed||e.startContainer!==l.anchorNode||e.startOffset!==l.anchorOffset)||o.getFormat()!==n.format||o.getStyle()!==n.style||X0(n,o)}function Qs(n,e){return n!==null&&n.nodeValue!==null&&n.nodeType===mt&&e!==0&&e!==n.nodeValue.length}function Ys(n,e,t){const{anchorNode:r,anchorOffset:u,focusNode:i,focusOffset:s}=n;ci&&(ci=!1,Qs(r,u)&&Qs(i,s))||Te(e,()=>{if(!t)return void Me(null);if(!Gn(e,r,i))return;const o=$();if(I(o)){const a=o.anchor,l=a.getNode();if(o.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(o.dirty=!0);const f=yu(e).event,h=f?f.timeStamp:performance.now(),[c,d,p,m,g]=ul,y=ie(),b=e.isComposing()===!1&&y.getTextContent()==="";if(h<g+200&&a.offset===p&&a.key===m)o.format=c,o.style=d;else if(a.type==="text")M(l)||L(141),o.format=l.getFormat(),o.style=l.getStyle();else if(a.type==="element"&&!b){const _=a.getNode();o.style="",_ instanceof an&&_.getChildrenSize()===0?(o.format=_.getTextFormat(),o.style=_.getTextStyle()):o.format=0}}else{const f=a.key,h=o.focus.key,c=o.getNodes(),d=c.length,p=o.isBackward(),m=p?s:u,g=p?u:s,y=p?h:f,b=p?f:h;let _=I0,w=!1;for(let T=0;T<d;T++){const S=c[T],P=S.getTextContentSize();if(M(S)&&P!==0&&!(T===0&&S.__key===y&&m===P||T===d-1&&S.__key===b&&g===0)&&(w=!0,_&=S.getFormat(),_===0))break}o.format=w?_:0}}R(e,ji,void 0)})}function sl(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function Fu(n,e){const t=n._compositionKey;if(ce(null),t!==null&&e!=null){if(e===""){const r=fe(t),u=Ur(n.getElementByKey(t));return void(u!==null&&u.nodeValue!==null&&M(r)&&rs(r,u.nodeValue,null,null,!0))}if(e[e.length-1]===`
5
+ `){const r=$();if(I(r)){const u=r.focus;return r.anchor.set(u.key,u.offset,u.type),void R(n,Br,null)}}}ns(!0,n,e)}function ol(n){let e=n.__lexicalEventHandles;return e===void 0&&(e=[],n.__lexicalEventHandles=e),e}const Zt=new Map;function al(n){const e=n.target,t=Ne(e==null?null:e.nodeType===9?e.defaultView:e.ownerDocument.defaultView);if(t===null)return;const r=ja(t.anchorNode);if(r===null)return;fi&&(fi=!1,Te(r,()=>{const l=Qn(),f=t.anchorNode;if(f===null)return;const h=f.nodeType;h!==Vn&&h!==mt||Me(as(l,t,r,n))}));const u=ts(r),i=u[u.length-1],s=i._key,o=Zt.get(s),a=o||i;a!==r&&Ys(t,a,!1),Ys(t,r,!0),r!==i?Zt.set(s,r):o&&Zt.delete(s)}function eo(n){n._lexicalHandled=!0}function to(n){return n._lexicalHandled===!0}function cf(n){const e=n.ownerDocument,t=Xr.get(e);t===void 0&&L(162);const r=t-1;r>=0||L(164),Xr.set(e,r),r===0&&e.removeEventListener("selectionchange",al);const u=gu(n);es(u)?(function(s){if(s._parentEditor!==null){const o=ts(s),a=o[o.length-1]._key;Zt.get(a)===s&&Zt.delete(a)}else Zt.delete(s._key)}(u),n.__lexicalEditor=null):u&&L(198);const i=ol(n);for(let s=0;s<i.length;s++)i[s]();n.__lexicalEventHandles=[]}function di(n,e,t){ye();const r=n.__key,u=n.getParent();if(u===null)return;const i=function(o){const a=$();if(!I(a)||!C(o))return a;const{anchor:l,focus:f}=a,h=l.getNode(),c=f.getNode();return Sn(h,o)&&l.set(o.__key,0,"element"),Sn(c,o)&&f.set(o.__key,0,"element"),a}(n);let s=!1;if(I(i)&&e){const o=i.anchor,a=i.focus;o.key===r&&(Qr(o,n,u,n.getPreviousSibling(),n.getNextSibling()),s=!0),a.key===r&&(Qr(a,n,u,n.getPreviousSibling(),n.getNextSibling()),s=!0)}else Ie(i)&&e&&n.isSelected()&&n.selectPrevious();if(I(i)&&e&&!s){const o=n.getIndexWithinParent();kt(n),Zr(i,u,o,-1)}else kt(n);t||Qe(u)||u.canBeEmpty()||!u.isEmpty()||di(u,e),e&&he(u)&&u.isEmpty()&&u.selectEnd()}class _u{static getType(){L(64,this.name)}static clone(e){L(65,this.name)}afterCloneFrom(e){this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,J0(this,e)}getType(){return this.__type}isInline(){L(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const t=fe(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){const t=e||$();if(t==null)return!1;const r=t.getNodes().some(u=>u.__key===this.__key);if(M(this))return r;if(I(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const u=this.getParent();if(te(this)&&this.isInline()&&u){const i=t.isBackward()?t.focus:t.anchor,s=i.getNode();if(i.offset===s.getChildrenSize()&&s.is(u)&&s.getLastChildOrThrow().is(this))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),r=0;for(;t!==null;){if(this.is(t))return r;r++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:fe(e)}getParentOrThrow(){const e=this.getParent();return e===null&&L(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const t=e.getParent();if(Qe(t))return C(e)||e===this&&te(e)||L(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&L(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:fe(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(t===null)return e;let r=t.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:fe(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=this.getParents(),r=e.getParents();C(this)&&t.unshift(this),C(e)&&r.unshift(e);const u=t.length,i=r.length;if(u===0||i===0||t[u-1]!==r[i-1])return null;const s=new Set(r);for(let o=0;o<u;o++){const a=t[o];if(s.has(a))return a}return null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;const t=this.getCommonAncestor(e);let r=0,u=0,i=this;for(;;){const s=i.getParentOrThrow();if(s===t){r=i.getIndexWithinParent();break}i=s}for(i=e;;){const s=i.getParentOrThrow();if(s===t){u=i.getIndexWithinParent();break}i=s}return r<u}isParentOf(e){const t=this.__key;if(t===e.__key)return!1;let r=e;for(;r!==null;){if(r.__key===t)return!0;r=r.getParent()}return!1}getNodesBetween(e){const t=this.isBefore(e),r=[],u=new Set;let i=this;for(;i!==null;){const s=i.__key;if(u.has(s)||(u.add(s),r.push(i)),i===e)break;const o=C(i)?t?i.getFirstChild():i.getLastChild():null;if(o!==null){i=o;continue}const a=t?i.getNextSibling():i.getPreviousSibling();if(a!==null){i=a;continue}const l=i.getParentOrThrow();if(u.has(l.__key)||r.push(l),l===e)break;let f=null,h=l;do{if(h===null&&L(68),f=t?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;f!==null||u.has(h.__key)||r.push(h)}while(f===null);i=f}return t||r.reverse(),r}isDirty(){const e=ue()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){const e=fe(this.__key);return e===null&&L(113),e}getWritable(){ye();const e=tt(),t=ue(),r=e._nodeMap,u=this.__key,i=this.getLatest(),s=t._cloneNotNeeded,o=$();if(o!==null&&o.setCachedNodes(null),s.has(u))return Wr(i),i;const a=ss(i);return s.add(u),Wr(a),r.set(u,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){L(70)}updateDOM(e,t,r){L(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){L(72)}static importJSON(e){L(18,this.name)}static transform(){return null}remove(e){di(this,!0,e)}replace(e,t){ye();let r=$();r!==null&&(r=r.clone()),Ru(this,e);const u=this.getLatest(),i=this.__key,s=e.__key,o=e.getWritable(),a=this.getParentOrThrow().getWritable(),l=a.__size;kt(o);const f=u.getPreviousSibling(),h=u.getNextSibling(),c=u.__prev,d=u.__next,p=u.__parent;if(di(u,!1,!0),f===null?a.__first=s:f.getWritable().__next=s,o.__prev=c,h===null?a.__last=s:h.getWritable().__prev=s,o.__next=d,o.__parent=p,a.__size=l,t&&(C(this)&&C(o)||L(139),this.getChildren().forEach(m=>{o.append(m)})),I(r)){Me(r);const m=r.anchor,g=r.focus;m.key===i&&io(m,o),g.key===i&&io(g,o)}return lt()===i&&ce(s),o}insertAfter(e,t=!0){ye(),Ru(this,e);const r=this.getWritable(),u=e.getWritable(),i=u.getParent(),s=$();let o=!1,a=!1;if(i!==null){const d=e.getIndexWithinParent();if(kt(u),I(s)){const p=i.__key,m=s.anchor,g=s.focus;o=m.type==="element"&&m.key===p&&m.offset===d+1,a=g.type==="element"&&g.key===p&&g.offset===d+1}}const l=this.getNextSibling(),f=this.getParentOrThrow().getWritable(),h=u.__key,c=r.__next;if(l===null?f.__last=h:l.getWritable().__prev=h,f.__size++,r.__next=h,u.__next=c,u.__prev=r.__key,u.__parent=r.__parent,t&&I(s)){const d=this.getIndexWithinParent();Zr(s,f,d+1);const p=f.__key;o&&s.anchor.set(p,d+2,"element"),a&&s.focus.set(p,d+2,"element")}return e}insertBefore(e,t=!0){ye(),Ru(this,e);const r=this.getWritable(),u=e.getWritable(),i=u.__key;kt(u);const s=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),a=r.__prev,l=this.getIndexWithinParent();s===null?o.__first=i:s.getWritable().__next=i,o.__size++,r.__prev=i,u.__prev=a,u.__next=r.__key,u.__parent=r.__parent;const f=$();return t&&I(f)&&Zr(f,this.getParentOrThrow(),l),e}isParentRequired(){return!1}createParentElementNode(){return Ee()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){ye();const r=this.getPreviousSibling(),u=this.getParentOrThrow();if(r===null)return u.select(0,0);if(C(r))return r.select();if(!M(r)){const i=r.getIndexWithinParent()+1;return u.select(i,i)}return r.select(e,t)}selectNext(e,t){ye();const r=this.getNextSibling(),u=this.getParentOrThrow();if(r===null)return u.select();if(C(r))return r.select(0,0);if(!M(r)){const i=r.getIndexWithinParent();return u.select(i,i)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}class Jn extends _u{static getType(){return"linebreak"}static clone(e){return new Jn(e.__key)}constructor(e){super(e)}getTextContent(){return`
6
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>function(t){const r=t.parentElement;if(r!==null&&Vr(r)){const u=r.firstChild;if(u===t||u.nextSibling===t&&pr(u)){const i=r.lastChild;if(i===t||i.previousSibling===t&&pr(i))return!0}}return!1}(e)||function(t){const r=t.parentElement;if(r!==null&&Vr(r)){const u=r.firstChild;if(u===t||u.nextSibling===t&&pr(u))return!1;const i=r.lastChild;if(i===t||i.previousSibling===t&&pr(i))return!0}return!1}(e)?null:{conversion:ff,priority:0}}}static importJSON(e){return It()}exportJSON(){return{type:"linebreak",version:1}}}function ff(n){return{node:It()}}function It(){return bt(new Jn)}function pt(n){return n instanceof Jn}function pr(n){return n.nodeType===mt&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function ju(n,e){return 16&e?"code":e&Hi?"mark":32&e?"sub":64&e?"sup":null}function qu(n,e){return 1&e?"strong":2&e?"em":"span"}function ll(n,e,t,r,u){const i=r.classList;let s=wn(u,"base");s!==void 0&&i.add(...s),s=wn(u,"underlineStrikethrough");let o=!1;const a=e&jr&&e&Fr;s!==void 0&&(t&jr&&t&Fr?(o=!0,a||i.add(...s)):a&&i.remove(...s));for(const l in Ot){const f=Ot[l];if(s=wn(u,l),s!==void 0)if(t&f){if(o&&(l==="underline"||l==="strikethrough")){e&f&&i.remove(...s);continue}e&f&&(!a||l!=="underline")&&l!=="strikethrough"||i.add(...s)}else e&f&&i.remove(...s)}}function cl(n,e,t){const r=e.firstChild,u=t.isComposing(),i=n+(u?pu:"");if(r==null)e.textContent=i;else{const s=r.nodeValue;if(s!==i)if(u||ht){const[o,a,l]=function(f,h){const c=f.length,d=h.length;let p=0,m=0;for(;p<c&&p<d&&f[p]===h[p];)p++;for(;m+p<c&&m+p<d&&f[c-m-1]===h[d-m-1];)m++;return[p,c-p-m,h.slice(p,d-m)]}(s,i);a!==0&&r.deleteData(o,a),r.insertData(o,l)}else r.nodeValue=i}}function no(n,e,t,r,u,i){cl(u,n,e);const s=i.theme.text;s!==void 0&&ll(0,0,r,n,s)}function gr(n,e){const t=document.createElement(e);return t.appendChild(n),t}class Bt extends _u{static getType(){return"text"}static clone(e){return new Bt(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e,t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return F0[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===lt()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=Ot[e];return!!(this.getFormat()&t)}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return zr(this.getLatest().__format,e,t)}canHaveFormat(){return!0}createDOM(e,t){const r=this.__format,u=ju(0,r),i=qu(0,r),s=u===null?i:u,o=document.createElement(s);let a=o;this.hasFormat("code")&&o.setAttribute("spellcheck","false"),u!==null&&(a=document.createElement(i),o.appendChild(a)),no(a,this,0,r,this.__text,e);const l=this.__style;return l!==""&&(o.style.cssText=l),o}updateDOM(e,t,r){const u=this.__text,i=e.__format,s=this.__format,o=ju(0,i),a=ju(0,s),l=qu(0,i),f=qu(0,s);if((o===null?l:o)!==(a===null?f:a))return!0;if(o===a&&l!==f){const m=t.firstChild;m==null&&L(48);const g=document.createElement(f);return no(g,this,0,s,u,r),t.replaceChild(g,m),!1}let h=t;a!==null&&o!==null&&(h=t.firstChild,h==null&&L(49)),cl(u,h,this);const c=r.theme.text;c!==void 0&&i!==s&&ll(0,i,s,h,c);const d=e.__style,p=this.__style;return d!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:gf,priority:0}),b:()=>({conversion:hf,priority:0}),code:()=>({conversion:st,priority:0}),em:()=>({conversion:st,priority:0}),i:()=>({conversion:st,priority:0}),s:()=>({conversion:st,priority:0}),span:()=>({conversion:df,priority:0}),strong:()=>({conversion:st,priority:0}),sub:()=>({conversion:st,priority:0}),sup:()=>({conversion:st,priority:0}),u:()=>({conversion:st,priority:0})}}static importJSON(e){const t=se(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){let{element:t}=super.exportDOM(e);return t!==null&&Rt(t)||L(132),t.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(t=gr(t,"b")),this.hasFormat("italic")&&(t=gr(t,"i")),this.hasFormat("strikethrough")&&(t=gr(t,"s")),this.hasFormat("underline")&&(t=gr(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format=typeof e=="string"?Ot[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail=typeof e=="string"?R0[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=zr(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=$0[e];if(this.__mode===t)return this;const r=this.getWritable();return r.__mode=t,r}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){ye();let r=e,u=t;const i=$(),s=this.getTextContent(),o=this.__key;if(typeof s=="string"){const a=s.length;r===void 0&&(r=a),u===void 0&&(u=a)}else r=0,u=0;if(!I(i))return hl(o,r,o,u,"text","text");{const a=lt();a!==i.anchor.key&&a!==i.focus.key||ce(o),i.setTextNodeRange(this,r,this,u)}return i}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,r,u){const i=this.getWritable(),s=i.__text,o=r.length;let a=e;a<0&&(a=o+a,a<0&&(a=0));const l=$();if(u&&I(l)){const h=e+o;l.setTextNodeRange(i,h,i,h)}const f=s.slice(0,a)+r+s.slice(a+t);return i.__text=f,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){ye();const t=this.getLatest(),r=t.getTextContent(),u=t.__key,i=lt(),s=new Set(e),o=[],a=r.length;let l="";for(let T=0;T<a;T++)l!==""&&s.has(T)&&(o.push(l),l=""),l+=r[T];l!==""&&o.push(l);const f=o.length;if(f===0)return[];if(o[0]===r)return[t];const h=o[0],c=t.getParent();let d;const p=t.getFormat(),m=t.getStyle(),g=t.__detail;let y=!1;t.isSegmented()?(d=se(h),d.__format=p,d.__style=m,d.__detail=g,y=!0):(d=t.getWritable(),d.__text=h);const b=$(),_=[d];let w=h.length;for(let T=1;T<f;T++){const S=o[T],P=S.length,E=se(S).getWritable();E.__format=p,E.__style=m,E.__detail=g;const D=E.__key,j=w+P;if(I(b)){const v=b.anchor,N=b.focus;v.key===u&&v.type==="text"&&v.offset>w&&v.offset<=j&&(v.key=D,v.offset-=w,b.dirty=!0),N.key===u&&N.type==="text"&&N.offset>w&&N.offset<=j&&(N.key=D,N.offset-=w,b.dirty=!0)}i===u&&ce(D),w=j,_.push(E)}if(c!==null){(function(P){const E=P.getPreviousSibling(),D=P.getNextSibling();E!==null&&Wr(E),D!==null&&Wr(D)})(this);const T=c.getWritable(),S=this.getIndexWithinParent();y?(T.splice(S,0,_),this.remove()):T.splice(S,1,_),I(b)&&Zr(b,c,S,f-1)}return _}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||L(50);const r=this.__key,u=e.__key,i=this.__text,s=i.length;lt()===u&&ce(r);const o=$();if(I(o)){const h=o.anchor,c=o.focus;h!==null&&h.key===u&&(ho(h,t,r,e,s),o.dirty=!0),c!==null&&c.key===u&&(ho(c,t,r,e,s),o.dirty=!0)}const a=e.__text,l=t?a+i:i+a;this.setTextContent(l);const f=this.getWritable();return e.remove(),f}isTextEntity(){return!1}}function df(n){return{forChild:os(n.style),node:null}}function hf(n){const e=n,t=e.style.fontWeight==="normal";return{forChild:os(e.style,t?void 0:"bold"),node:null}}const ro=new WeakMap;function pf(n){return n.nodeName==="PRE"||n.nodeType===Vn&&n.style!==void 0&&n.style.whiteSpace!==void 0&&n.style.whiteSpace.startsWith("pre")}function gf(n){const e=n;n.parentElement===null&&L(129);let t=e.textContent||"";if(function(r){let u,i=r.parentNode;const s=[r];for(;i!==null&&(u=ro.get(i))===void 0&&!pf(i);)s.push(i),i=i.parentNode;const o=u===void 0?i:u;for(let a=0;a<s.length;a++)ro.set(s[a],o);return o}(e)!==null){const r=t.split(/(\r?\n|\t)/),u=[],i=r.length;for(let s=0;s<i;s++){const o=r[s];o===`
7
+ `||o===`\r
8
+ `?u.push(It()):o===" "?u.push(Zn()):o!==""&&u.push(se(o))}return{node:u}}if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let r=e,u=!0;for(;r!==null&&(r=uo(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(t=t.slice(1)),u=!1;break}}u&&(t=t.slice(1))}if(t[t.length-1]===" "){let r=e,u=!0;for(;r!==null&&(r=uo(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){u=!1;break}u&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:se(t)}}function uo(n,e){let t=n;for(;;){let r;for(;(r=e?t.nextSibling:t.previousSibling)===null;){const i=t.parentElement;if(i===null)return null;t=i}if(t=r,t.nodeType===Vn){const i=t.style.display;if(i===""&&!ti(t)||i!==""&&!i.startsWith("inline"))return null}let u=t;for(;(u=e?t.firstChild:t.lastChild)!==null;)t=u;if(t.nodeType===mt)return t;if(t.nodeName==="BR")return null}}const mf={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function st(n){const e=mf[n.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:os(n.style,e),node:null}}function se(n=""){return bt(new Bt(n))}function M(n){return n instanceof Bt}function os(n,e){const t=n.fontWeight,r=n.textDecoration.split(" "),u=t==="700"||t==="bold",i=r.includes("line-through"),s=n.fontStyle==="italic",o=r.includes("underline"),a=n.verticalAlign;return l=>(M(l)&&(u&&!l.hasFormat("bold")&&l.toggleFormat("bold"),i&&!l.hasFormat("strikethrough")&&l.toggleFormat("strikethrough"),s&&!l.hasFormat("italic")&&l.toggleFormat("italic"),o&&!l.hasFormat("underline")&&l.toggleFormat("underline"),a!=="sub"||l.hasFormat("subscript")||l.toggleFormat("subscript"),a!=="super"||l.hasFormat("superscript")||l.toggleFormat("superscript"),e&&!l.hasFormat(e)&&l.toggleFormat(e)),l)}class Xn extends Bt{static getType(){return"tab"}static clone(e){return new Xn(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}static importJSON(e){const t=Zn();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(e){L(126)}setDetail(e){L(127)}setMode(e){L(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Zn(){return bt(new Xn)}function bf(n){return n instanceof Xn}class yf{constructor(e,t,r){this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),r=e.getNode();const u=this.offset,i=e.offset;if(C(t)){const s=t.getDescendantByIndex(u);t=s??t}if(C(r)){const s=r.getDescendantByIndex(i);r=s??r}return t===r?u<i:t.isBefore(r)}getNode(){const e=fe(this.key);return e===null&&L(20),e}set(e,t,r){const u=this._selection,i=this.key;this.key=e,this.offset=t,this.type=r,Yn()||(lt()===i&&ce(e),u!==null&&(u.setCachedNodes(null),u.dirty=!0))}}function We(n,e,t){return new yf(n,e,t)}function Uu(n,e){let t=e.__key,r=n.offset,u="element";if(M(e)){u="text";const i=e.getTextContentSize();r>i&&(r=i)}else if(!C(e)){const i=e.getNextSibling();if(M(i))t=i.__key,r=0,u="text";else{const s=e.getParent();s&&(t=s.__key,r=e.getIndexWithinParent()+1)}}n.set(t,r,u)}function io(n,e){if(C(e)){const t=e.getLastDescendant();C(t)||M(t)?Uu(n,t):Uu(n,e)}else Uu(n,e)}function at(n,e,t,r){n.key=e,n.offset=t,n.type=r}class vu{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Ie(e))return!1;const t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(u=>r.has(u))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new vu(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),r=t.length,u=t[r-1];let i;if(M(u))i=u.select();else{const s=u.getIndexWithinParent()+1;i=u.getParentOrThrow().select(s,s)}i.insertNodes(e);for(let s=0;s<r;s++)t[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this._nodes,r=[];for(const u of t){const i=fe(u);i!==null&&r.push(i)}return Yn()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}}function I(n){return n instanceof yt}class yt{constructor(e,t,r,u){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=u,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!I(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this.anchor,r=this.focus,u=t.isBefore(r),i=u?t:r,s=u?r:t;let o=i.getNode(),a=s.getNode();const l=i.offset,f=s.offset;if(C(o)){const c=o.getDescendantByIndex(l);o=c??o}if(C(a)){let c=a.getDescendantByIndex(f);c!==null&&c!==o&&a.getChildAtIndex(f)===c&&(c=c.getPreviousSibling()),a=c??a}let h;return h=o.is(a)?C(o)&&o.getChildrenSize()>0?[]:[o]:o.getNodesBetween(a),Yn()||(this._cachedNodes=h),h}setTextNodeRange(e,t,r,u){at(this.anchor,e.__key,t,"text"),at(this.focus,r.__key,u,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const t=e[0],r=e[e.length-1],u=this.anchor,i=this.focus,s=u.isBefore(i),[o,a]=hi(this);let l="",f=!0;for(let h=0;h<e.length;h++){const c=e[h];if(C(c)&&!c.isInline())f||(l+=`
9
+ `),f=!c.isEmpty();else if(f=!1,M(c)){let d=c.getTextContent();c===t?c===r?u.type==="element"&&i.type==="element"&&i.offset!==u.offset||(d=o<a?d.slice(o,a):d.slice(a,o)):d=s?d.slice(o):d.slice(a):c===r&&(d=s?d.slice(0,a):d.slice(0,o)),l+=d}else!te(c)&&!pt(c)||c===r&&this.isCollapsed()||(l+=c.getTextContent())}return l}applyDOMRange(e){const t=ue(),r=t.getEditorState()._selection,u=dl(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(u===null)return;const[i,s]=u;at(this.anchor,i.key,i.offset,i.type),at(this.focus,s.key,s.offset,s.type),this._cachedNodes=null}clone(){const e=this.anchor,t=this.focus;return new yt(We(e.key,e.offset,e.type),We(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=zr(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=Ot[e];return!!(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),r=[],u=t.length;for(let i=0;i<u;i++){const s=t[i];s===`
10
+ `||s===`\r
11
+ `?r.push(It()):s===" "?r.push(Zn()):r.push(se(s))}this.insertNodes(r)}insertText(e){const t=this.anchor,r=this.focus,u=this.format,i=this.style;let s=t,o=r;!this.isCollapsed()&&r.isBefore(t)&&(s=r,o=t),s.type==="element"&&function(g,y,b,_){const w=g.getNode(),T=w.getChildAtIndex(g.offset),S=se(),P=he(w)?Ee().append(S):S;S.setFormat(b),S.setStyle(_),T===null?w.append(P):T.insertBefore(P),g.is(y)&&y.set(S.__key,0,"text"),g.set(S.__key,0,"text")}(s,o,u,i);const a=s.offset;let l=o.offset;const f=this.getNodes(),h=f.length;let c=f[0];M(c)||L(26);const d=c.getTextContent().length,p=c.getParentOrThrow();let m=f[h-1];if(h===1&&o.type==="element"&&(l=d,o.set(s.key,l,"text")),this.isCollapsed()&&a===d&&(c.isSegmented()||c.isToken()||!c.canInsertTextAfter()||!p.canInsertTextAfter()&&c.getNextSibling()===null)){let g=c.getNextSibling();if(M(g)&&g.canInsertTextBefore()&&!St(g)||(g=se(),g.setFormat(u),g.setStyle(i),p.canInsertTextAfter()?c.insertAfter(g):p.insertAfter(g)),g.select(0,0),c=g,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&a===0&&(c.isSegmented()||c.isToken()||!c.canInsertTextBefore()||!p.canInsertTextBefore()&&c.getPreviousSibling()===null)){let g=c.getPreviousSibling();if(M(g)&&!St(g)||(g=se(),g.setFormat(u),p.canInsertTextBefore()?c.insertBefore(g):p.insertBefore(g)),g.select(),c=g,e!=="")return void this.insertText(e)}else if(c.isSegmented()&&a!==d){const g=se(c.getTextContent());g.setFormat(u),c.replace(g),c=g}else if(!this.isCollapsed()&&e!==""){const g=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||C(g)&&(!g.canInsertTextBefore()||!g.canInsertTextAfter()))return this.insertText(""),fl(this.anchor,this.focus,null),void this.insertText(e)}if(h===1){if(c.isToken()){const _=se(e);return _.select(),void c.replace(_)}const g=c.getFormat(),y=c.getStyle();if(a!==l||g===u&&y===i){if(bf(c)){const _=se(e);return _.setFormat(u),_.setStyle(i),_.select(),void c.replace(_)}}else{if(c.getTextContent()!==""){const _=se(e);if(_.setFormat(u),_.setStyle(i),_.select(),a===0)c.insertBefore(_,!1);else{const[w]=c.splitText(a);w.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}c.setFormat(u),c.setStyle(i)}const b=l-a;c=c.spliceText(a,b,e,!0),c.getTextContent()===""?c.remove():this.anchor.type==="text"&&(c.isComposing()?this.anchor.offset-=e.length:(this.format=g,this.style=y))}else{const g=new Set([...c.getParentKeys(),...m.getParentKeys()]),y=C(c)?c:c.getParentOrThrow();let b=C(m)?m:m.getParentOrThrow(),_=m;if(!y.is(b)&&b.isInline())do _=b,b=b.getParentOrThrow();while(b.isInline());if(o.type==="text"&&(l!==0||m.getTextContent()==="")||o.type==="element"&&m.getIndexWithinParent()<l)if(M(m)&&!m.isToken()&&l!==m.getTextContentSize()){if(m.isSegmented()){const E=se(m.getTextContent());m.replace(E),m=E}he(o.getNode())||o.type!=="text"||(m=m.spliceText(0,l,"")),g.add(m.__key)}else{const E=m.getParentOrThrow();E.canBeEmpty()||E.getChildrenSize()!==1?m.remove():E.remove()}else g.add(m.__key);const w=b.getChildren(),T=new Set(f),S=y.is(b),P=y.isInline()&&c.getNextSibling()===null?y:c;for(let E=w.length-1;E>=0;E--){const D=w[E];if(D.is(c)||C(D)&&D.isParentOf(c))break;D.isAttached()&&(!T.has(D)||D.is(_)?S||P.insertAfter(D,!1):D.remove())}if(!S){let E=b,D=null;for(;E!==null;){const j=E.getChildren(),v=j.length;(v===0||j[v-1].is(D))&&(g.delete(E.__key),D=E),E=E.getParent()}}if(c.isToken())if(a===d)c.select();else{const E=se(e);E.select(),c.replace(E)}else c=c.spliceText(a,d-a,e,!0),c.getTextContent()===""?c.remove():c.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let E=1;E<h;E++){const D=f[E],j=D.__key;g.has(j)||D.remove()}}}removeText(){if(this.isCollapsed())return;const{anchor:e,focus:t}=this,r=this.getNodes(),u=this.isBackward()?t:e,i=this.isBackward()?e:t;let s=u.getNode(),o=i.getNode();const a=gn(s,ot),l=gn(o,ot);M(s)&&s.isToken()&&u.offset<s.getTextContentSize()&&(u.offset=0),i.offset>0&&M(o)&&o.isToken()&&(i.offset=o.getTextContentSize()),r.forEach(h=>{Sn(s,h)||Sn(o,h)||h.getKey()===s.getKey()||h.getKey()===o.getKey()||h.remove()});const f=(h,c)=>{if(h.getTextContent()==="")h.remove();else if(c!==0&&St(h)){const d=se(h.getTextContent());return d.setFormat(h.getFormat()),d.setStyle(h.getStyle()),h.replace(d)}};if(s===o&&M(s)){const h=Math.abs(t.offset-e.offset);return s.spliceText(u.offset,h,"",!0),void f(s,h)}if(M(s)){const h=s.getTextContentSize()-u.offset;s.spliceText(u.offset,h,""),s=f(s,h)||s}M(o)&&(o.spliceText(0,i.offset,""),o=f(o,i.offset)||o),s.isAttached()&&M(s)?s.selectEnd():o.isAttached()&&M(o)&&o.selectStart(),C(a)&&C(l)&&a!==l&&(a.append(...l.getChildren()),l.remove(),i.set(u.key,u.offset,u.type))}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void ce(null);const r=this.getNodes(),u=[];for(const w of r)M(w)&&u.push(w);const i=w=>{r.forEach(T=>{if(tn(T)){const S=T.getFormatFlags(e,w);T.setTextFormat(S)}})},s=u.length;if(s===0)return this.toggleFormat(e),ce(null),void i(t);const o=this.anchor,a=this.focus,l=this.isBackward(),f=l?a:o,h=l?o:a;let c=0,d=u[0],p=f.type==="element"?0:f.offset;if(f.type==="text"&&p===d.getTextContentSize()&&(c=1,d=u[1],p=0),d==null)return;const m=d.getFormatFlags(e,t);i(m);const g=s-1;let y=u[g];const b=h.type==="text"?h.offset:y.getTextContentSize();if(d.is(y)){if(p===b)return;if(St(d)||p===0&&b===d.getTextContentSize())d.setFormat(m);else{const w=d.splitText(p,b),T=p===0?w[0]:w[1];T.setFormat(m),f.type==="text"&&f.set(T.__key,0,"text"),h.type==="text"&&h.set(T.__key,b-p,"text")}return void(this.format=m)}p===0||St(d)||([,d]=d.splitText(p),p=0),d.setFormat(m);const _=y.getFormatFlags(e,m);b>0&&(b===y.getTextContentSize()||St(y)||([y]=y.splitText(b)),y.setFormat(_));for(let w=c+1;w<g;w++){const T=u[w],S=T.getFormatFlags(e,_);T.setFormat(S)}f.type==="text"&&f.set(d.__key,p,"text"),h.type==="text"&&h.set(y.__key,b,"text"),this.format=m|_}insertNodes(e){if(e.length===0)return;if(this.anchor.key==="root"){this.insertParagraph();const p=$();return I(p)||L(134),p.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),r=gn(t,ot),u=e[e.length-1];if(C(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const p=zu(this);r.splice(p,0,e),u.selectEnd()}return}if(!e.some(p=>(C(p)||te(p))&&!p.isInline())){C(r)||L(211,t.constructor.name,t.getType());const p=zu(this);return r.splice(p,0,e),void u.selectEnd()}const i=function(p){const m=Ee();let g=null;for(let y=0;y<p.length;y++){const b=p[y],_=pt(b);if(_||te(b)&&b.isInline()||C(b)&&b.isInline()||M(b)||b.isParentRequired()){if(g===null&&(g=b.createParentElementNode(),m.append(g),_))continue;g!==null&&g.append(b)}else m.append(b),g=null}return m}(e),s=i.getLastDescendant(),o=i.getChildren(),a=!C(r)||!r.isEmpty()?this.insertParagraph():null,l=o[o.length-1];let f=o[0];var h;C(h=f)&&ot(h)&&!h.isEmpty()&&C(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(C(r)||L(211,t.constructor.name,t.getType()),r.append(...f.getChildren()),f=o[1]),f&&(r===null&&L(212,t.constructor.name,t.getType()),function(p,m,g){const y=m.getParentOrThrow().getLastChild();let b=m;const _=[m];for(;b!==y;)b.getNextSibling()||L(140),b=b.getNextSibling(),_.push(b);let w=p;for(const T of _)w=w.insertAfter(T)}(r,f));const c=gn(s,ot);a&&C(c)&&(a.canMergeWhenEmpty()||ot(l))&&(c.append(...a.getChildren()),a.remove()),C(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const d=C(r)?r.getLastChild():null;pt(d)&&c!==r&&d.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Ee();return ie().splice(this.anchor.offset,0,[s]),s.select(),s}const e=zu(this),t=gn(this.anchor.getNode(),ot);C(t)||L(213);const r=t.getChildAtIndex(e),u=r?[r,...r.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...u),i.selectStart(),i):null}insertLineBreak(e){const t=It();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),u=t.getIndexWithinParent();r.select(u,u)}}extract(){const e=this.getNodes(),t=e.length,r=t-1,u=this.anchor,i=this.focus;let s=e[0],o=e[r];const[a,l]=hi(this);if(t===0)return[];if(t===1){if(M(s)&&!this.isCollapsed()){const h=a>l?l:a,c=a>l?a:l,d=s.splitText(h,c),p=h===0?d[0]:d[1];return p!=null?[p]:[]}return[s]}const f=u.isBefore(i);if(M(s)){const h=f?a:l;h===s.getTextContentSize()?e.shift():h!==0&&([,s]=s.splitText(h),e[0]=s)}if(M(o)){const h=o.getTextContent().length,c=f?l:a;c===0?e.pop():c!==h&&([o]=o.splitText(c),e[r]=o)}return e}modify(e,t,r){const u=this.focus,i=this.anchor,s=e==="move",o=In(u,t);if(te(o)&&!o.isIsolated()){if(s&&o.isKeyboardSelectable()){const d=co();return d.add(o.__key),void Me(d)}const c=t?o.getPreviousSibling():o.getNextSibling();if(M(c)){const d=c.__key,p=t?c.getTextContent().length:0;return u.set(d,p,"text"),void(s&&i.set(d,p,"text"))}{const d=o.getParentOrThrow();let p,m;return C(c)?(m=c.__key,p=t?c.getChildrenSize():0):(p=o.getIndexWithinParent(),m=d.__key,t||p++),u.set(m,p,"element"),void(s&&i.set(m,p,"element"))}}const a=ue(),l=Ne(a._window);if(!l)return;const f=a._blockCursorElement,h=a._rootElement;if(h===null||f===null||!C(o)||o.isInline()||o.canBeEmpty()||is(f,a,h),function(c,d,p,m){c.modify(d,p,m)}(l,e,t?"backward":"forward",r),l.rangeCount>0){const c=l.getRangeAt(0),d=this.anchor.getNode(),p=he(d)?d:Q0(d);if(this.applyDOMRange(c),this.dirty=!0,!s){const m=this.getNodes(),g=[];let y=!1;for(let b=0;b<m.length;b++){const _=m[b];Sn(_,p)?g.push(_):y=!0}if(y&&g.length>0)if(t){const b=g[0];C(b)?b.selectStart():b.getParentOrThrow().selectStart()}else{const b=g[g.length-1];C(b)?b.selectEnd():b.getParentOrThrow().selectEnd()}l.anchorNode===c.startContainer&&l.anchorOffset===c.startOffset||function(b){const _=b.focus,w=b.anchor,T=w.key,S=w.offset,P=w.type;at(w,_.key,_.offset,_.type),at(_,T,S,P),b._cachedNodes=null}(this)}}}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&C(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const u=t.getParent(),i=t.getNextSibling()||(u===null?null:u.getNextSibling());if(C(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let u=r.getNode();if(this.forwardDeletion(r,u,e))return;const i=this.focus,s=In(i,e);if(te(s)&&!s.isIsolated()){if(s.isKeyboardSelectable()&&C(u)&&u.getChildrenSize()===0){u.remove();const o=co();o.add(s.__key),Me(o)}else s.remove(),ue().dispatchCommand(ji,void 0);return}if(!e&&C(s)&&C(u)&&u.isEmpty())return u.remove(),void s.selectStart();if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&(r.type==="element"?r.getNode():r.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const o=i.type==="text"?i.getNode():null;if(u=r.type==="text"?r.getNode():null,o!==null&&o.isSegmented()){const a=i.offset,l=o.getTextContentSize();if(o.is(u)||e&&a!==l||!e&&a!==0)return void oo(o,e,a)}else if(u!==null&&u.isSegmented()){const a=r.offset,l=u.getTextContentSize();if(u.is(o)||e&&a!==0||!e&&a!==l)return void oo(u,e,a)}(function(a,l){const f=a.anchor,h=a.focus,c=f.getNode(),d=h.getNode();if(c===d&&f.type==="text"&&h.type==="text"){const p=f.offset,m=h.offset,g=p<m,y=g?p:m,b=g?m:p,_=b-1;y!==_&&(Ha(c.getTextContent().slice(y,b))||(l?h.offset=_:f.offset=_))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&he(r.getParent())&&r.getIndexWithinParent()===0&&r.collapseAtStart(this)}}deleteLine(e){if(this.isCollapsed()){const t=this.anchor.type==="element";if(t&&this.insertText(" "),this.modify("extend",e,"lineboundary"),this.isCollapsed()&&this.anchor.offset===0&&this.modify("extend",e,"character"),t){const r=e?this.anchor:this.focus;r.set(r.key,r.offset+1,r.type)}}this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Ie(n){return n instanceof vu}function so(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function hi(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[so(t),so(r)]}function oo(n,e,t){const r=n,u=r.getTextContent().split(/(?=\s)/g),i=u.length;let s=0,o=0;for(let l=0;l<i;l++){const f=l===i-1;if(o=s,s+=u[l].length,e&&s===t||s>t||f){u.splice(l,1),f&&(o=void 0);break}}const a=u.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(o,o))}function ao(n,e,t,r){let u,i=e;if(n.nodeType===Vn){let s=!1;const o=n.childNodes,a=o.length,l=r._blockCursorElement;i===a&&(s=!0,i=a-1);let f=o[i],h=!1;if(f===l)f=o[i+1],h=!0;else if(l!==null){const c=l.parentNode;n===c&&e>Array.prototype.indexOf.call(c.children,l)&&i--}if(u=Gt(f),M(u))i=zs(u,s);else{let c=Gt(n);if(c===null)return null;if(C(c)){const d=r.getElementByKey(c.getKey());d===null&&L(214),[c,i]=c.getDOMSlot(d).resolveChildIndex(c,d,n,e),C(c)||L(215),s&&i>=c.getChildrenSize()&&(i=Math.max(0,c.getChildrenSize()-1));let m=c.getChildAtIndex(i);if(C(m)&&function(g,y,b){const _=g.getParent();return b===null||_===null||!_.canBeEmpty()||_!==b.getNode()}(m,0,t)){const g=s?m.getLastDescendant():m.getFirstDescendant();g===null?c=m:(m=g,c=C(m)?m:m.getParentOrThrow()),i=0}M(m)?(u=m,c=null,i=zs(m,s)):m!==c&&s&&!h&&(C(c)||L(216),i=Math.min(c.getChildrenSize(),i+1))}else{const d=c.getIndexWithinParent();i=e===0&&te(c)&&Gt(n)===c?d:d+1,c=c.getParentOrThrow()}if(C(c))return We(c.__key,i,"element")}}else u=Gt(n);return M(u)?We(u.__key,i,"text"):null}function lo(n,e,t){const r=n.offset,u=n.getNode();if(r===0){const i=u.getPreviousSibling(),s=u.getParent();if(e){if((t||!e)&&i===null&&C(s)&&s.isInline()){const o=s.getPreviousSibling();M(o)&&(n.key=o.__key,n.offset=o.getTextContent().length)}}else C(i)&&!t&&i.isInline()?(n.key=i.__key,n.offset=i.getChildrenSize(),n.type="element"):M(i)&&(n.key=i.__key,n.offset=i.getTextContent().length)}else if(r===u.getTextContent().length){const i=u.getNextSibling(),s=u.getParent();if(e&&C(i)&&i.isInline())n.key=i.__key,n.offset=0,n.type="element";else if((t||e)&&i===null&&C(s)&&s.isInline()&&!s.canInsertTextAfter()){const o=s.getNextSibling();M(o)&&(n.key=o.__key,n.offset=0)}}}function fl(n,e,t){if(n.type==="text"&&e.type==="text"){const r=n.isBefore(e),u=n.is(e);lo(n,r,u),lo(e,!r,u),u&&(e.key=n.key,e.offset=n.offset,e.type=n.type);const i=ue();if(i.isComposing()&&i._compositionKey!==n.key&&I(t)){const s=t.anchor,o=t.focus;at(n,s.key,s.offset,s.type),at(e,o.key,o.offset,o.type)}}}function dl(n,e,t,r,u,i){if(n===null||t===null||!Gn(u,n,t))return null;const s=ao(n,e,I(i)?i.anchor:null,u);if(s===null)return null;const o=ao(t,r,I(i)?i.focus:null,u);if(o===null)return null;if(s.type==="element"&&o.type==="element"){const a=Gt(n),l=Gt(t);if(te(a)&&te(l))return null}return fl(s,o,i),[s,o]}function pi(n){return C(n)&&!n.isInline()}function hl(n,e,t,r,u,i){const s=tt(),o=new yt(We(n,e,u),We(t,r,i),0,"");return o.dirty=!0,s._selection=o,o}function xf(){const n=We("root",0,"element"),e=We("root",0,"element");return new yt(n,e,0,"")}function co(){return new vu(new Set)}function as(n,e,t,r){const u=t._window;if(u===null)return null;const i=r||u.event,s=i?i.type:void 0,o=s==="selectionchange",a=!ei&&(o||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let l,f,h,c;if(I(n)&&!a)return n.clone();if(e===null)return null;if(l=e.anchorNode,f=e.focusNode,h=e.anchorOffset,c=e.focusOffset,o&&I(n)&&!Gn(t,l,f))return n.clone();const d=dl(l,h,f,c,t,n);if(d===null)return null;const[p,m]=d;return new yt(p,m,I(n)?n.format:0,I(n)?n.style:"")}function $(){return tt()._selection}function Qn(){return ue()._editorState._selection}function Zr(n,e,t,r=1){const u=n.anchor,i=n.focus,s=u.getNode(),o=i.getNode();if(!e.is(s)&&!e.is(o))return;const a=e.__key;if(n.isCollapsed()){const l=u.offset;if(t<=l&&r>0||t<l&&r<0){const f=Math.max(0,l+r);u.set(a,f,"element"),i.set(a,f,"element"),fo(n)}}else{const l=n.isBackward(),f=l?i:u,h=f.getNode(),c=l?u:i,d=c.getNode();if(e.is(h)){const p=f.offset;(t<=p&&r>0||t<p&&r<0)&&f.set(a,Math.max(0,p+r),"element")}if(e.is(d)){const p=c.offset;(t<=p&&r>0||t<p&&r<0)&&c.set(a,Math.max(0,p+r),"element")}}fo(n)}function fo(n){const e=n.anchor,t=e.offset,r=n.focus,u=r.offset,i=e.getNode(),s=r.getNode();if(n.isCollapsed()){if(!C(i))return;const o=i.getChildrenSize(),a=t>=o,l=a?i.getChildAtIndex(o-1):i.getChildAtIndex(t);if(M(l)){let f=0;a&&(f=l.getTextContentSize()),e.set(l.__key,f,"text"),r.set(l.__key,f,"text")}}else{if(C(i)){const o=i.getChildrenSize(),a=t>=o,l=a?i.getChildAtIndex(o-1):i.getChildAtIndex(t);if(M(l)){let f=0;a&&(f=l.getTextContentSize()),e.set(l.__key,f,"text")}}if(C(s)){const o=s.getChildrenSize(),a=u>=o,l=a?s.getChildAtIndex(o-1):s.getChildAtIndex(u);if(M(l)){let f=0;a&&(f=l.getTextContentSize()),r.set(l.__key,f,"text")}}}}function Qr(n,e,t,r,u){let i=null,s=0,o=null;r!==null?(i=r.__key,M(r)?(s=r.getTextContentSize(),o="text"):C(r)&&(s=r.getChildrenSize(),o="element")):u!==null&&(i=u.__key,M(u)?o="text":C(u)&&(o="element")),i!==null&&o!==null?n.set(i,s,o):(s=e.getIndexWithinParent(),s===-1&&(s=t.getChildrenSize()),n.set(t.__key,s,"element"))}function ho(n,e,t,r,u){n.type==="text"?(n.key=t,e||(n.offset+=u)):n.offset>r.getIndexWithinParent()&&(n.offset-=1)}function _f(n,e,t,r,u,i,s){const o=r.anchorNode,a=r.focusNode,l=r.anchorOffset,f=r.focusOffset,h=document.activeElement;if(u.has("collaboration")&&h!==i||h!==null&&Yi(h))return;if(!I(e))return void(n!==null&&Gn(t,o,a)&&r.removeAllRanges());const c=e.anchor,d=e.focus,p=c.key,m=d.key,g=Hr(t,p),y=Hr(t,m),b=c.offset,_=d.offset,w=e.format,T=e.style,S=e.isCollapsed();let P=g,E=y,D=!1;if(c.type==="text"){P=Ur(g);const x=c.getNode();D=x.getFormat()!==w||x.getStyle()!==T}else I(n)&&n.anchor.type==="text"&&(D=!0);var j,v,N,A,B;if(d.type==="text"&&(E=Ur(y)),P!==null&&E!==null&&(S&&(n===null||D||I(n)&&(n.format!==w||n.style!==T))&&(j=w,v=T,N=b,A=p,B=performance.now(),ul=[j,v,N,A,B]),l!==b||f!==_||o!==P||a!==E||r.type==="Range"&&S||(h!==null&&i.contains(h)||i.focus({preventScroll:!0}),c.type==="element"))){try{r.setBaseAndExtent(P,b,E,_)}catch{}if(!u.has("skip-scroll-into-view")&&e.isCollapsed()&&i!==null&&i===document.activeElement){const x=e instanceof yt&&e.anchor.type==="element"?P.childNodes[b]||null:r.rangeCount>0?r.getRangeAt(0):null;if(x!==null){let O;if(x instanceof Text){const k=document.createRange();k.selectNode(x),O=k.getBoundingClientRect()}else O=x.getBoundingClientRect();(function(k,F,Y){const ne=Y.ownerDocument,qt=ne.defaultView;if(qt===null)return;let{top:lr,bottom:X}=F,G=0,it=0,W=Y;for(;W!==null;){const J=W===ne.body;if(J)G=0,it=yu(k).innerHeight;else{const ge=W.getBoundingClientRect();G=ge.top,it=ge.bottom}let we=0;if(lr<G?we=-(G-lr):X>it&&(we=X-it),we!==0)if(J)qt.scrollBy(0,we);else{const ge=W.scrollTop;W.scrollTop+=we;const me=W.scrollTop-ge;lr-=me,X-=me}if(J)break;W=Kn(W)}})(t,O,i)}}ci=!0}}function pl(n){let e=$()||Qn();e===null&&(e=ie().selectEnd()),e.insertNodes(n)}function zu(n){let e=n;n.isCollapsed()||e.removeText();const t=$();I(t)&&(e=t),I(e)||L(161);const r=e.anchor;let u=r.getNode(),i=r.offset;for(;!ot(u);)[u,i]=vf(u,i);return i}function vf(n,e){const t=n.getParent();if(!t){const u=Ee();return ie().append(u),u.select(),[ie(),0]}if(M(n)){const u=n.splitText(e);if(u.length===0)return[t,n.getIndexWithinParent()];const i=e===0?0:1;return[t,u[0].getIndexWithinParent()+i]}if(!C(n)||e===0)return[t,n.getIndexWithinParent()];const r=n.getChildAtIndex(e);if(r){const u=new yt(We(n.__key,e,"element"),We(n.__key,e,"element"),0,""),i=n.insertNewAfter(u);i&&i.append(r,...r.getNextSiblings())}return[t,n.getIndexWithinParent()+1]}let ae=null,le=null,xe=!1,Wu=!1,Pr=0;const po={characterData:!0,childList:!0,subtree:!0};function Yn(){return xe||ae!==null&&ae._readOnly}function ye(){xe&&L(13)}function gl(){Pr>99&&L(14)}function tt(){return ae===null&&L(195,ml()),ae}function ue(){return le===null&&L(196,ml()),le}function ml(){let n=0;const e=new Set,t=Su.version;if(typeof window<"u")for(const u of document.querySelectorAll("[contenteditable]")){const i=gu(u);if(es(i))n++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===t&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function wf(){return le}function go(n,e,t){const r=e.__type,u=function(o,a){const l=o._nodes.get(a);return l===void 0&&L(30,a),l}(n,r);let i=t.get(r);i===void 0&&(i=Array.from(u.transforms),t.set(r,i));const s=i.length;for(let o=0;o<s&&(i[o](e),e.isAttached());o++);}function mo(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function bl(n,e){if(!e)return;const t=n._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const u of r)t.add(u)}function Sf(n){return ls(n,ue()._nodes)}function ls(n,e){const t=n.type,r=e.get(t);r===void 0&&L(17,t);const u=r.klass;n.type!==u.getType()&&L(18,u.name);const i=u.importJSON(n),s=n.children;if(C(i)&&Array.isArray(s))for(let o=0;o<s.length;o++){const a=ls(s[o],e);i.append(a)}return i}function bo(n,e,t){const r=ae,u=xe,i=le;ae=e,xe=!0,le=n;try{return t()}finally{ae=r,xe=u,le=i}}function ct(n,e){const t=n._pendingEditorState,r=n._rootElement,u=n._headless||r===null;if(t===null)return;const i=n._editorState,s=i._selection,o=t._selection,a=n._dirtyType!==At,l=ae,f=xe,h=le,c=n._updating,d=n._observer;let p=null;if(n._pendingEditorState=null,n._editorState=t,!u&&a&&d!==null){le=n,ae=t,xe=!1,n._updating=!0;try{const S=n._dirtyType,P=n._dirtyElements,E=n._dirtyLeaves;d.disconnect(),p=lf(i,t,n,S,P,E)}catch(S){if(S instanceof Error&&n._onError(S),Wu)throw S;return wl(n,null,r,t),$a(n),n._dirtyType=Yt,Wu=!0,ct(n,i),void(Wu=!1)}finally{d.observe(r,po),n._updating=c,ae=l,xe=f,le=h}}t._readOnly||(t._readOnly=!0);const m=n._dirtyLeaves,g=n._dirtyElements,y=n._normalizedNodes,b=n._updateTags,_=n._deferred;a&&(n._dirtyType=At,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),function(S,P){const E=S._decorators;let D=S._pendingDecorators||E;const j=P._nodeMap;let v;for(v in D)j.has(v)||(D===E&&(D=za(S)),delete D[v])}(n,t);const w=u?null:Ne(n._window);if(n._editable&&w!==null&&(a||o===null||o.dirty)){le=n,ae=t;try{if(d!==null&&d.disconnect(),a||o===null||o.dirty){const S=n._blockCursorElement;S!==null&&is(S,n,r),_f(s,o,n,w,b,r)}Y0(n,r,o),d!==null&&d.observe(r,po)}finally{le=h,ae=l}}p!==null&&function(S,P,E,D,j){const v=Array.from(S._listeners.mutation),N=v.length;for(let A=0;A<N;A++){const[B,x]=v[A],O=P.get(x);O!==void 0&&B(O,{dirtyLeaves:D,prevEditorState:j,updateTags:E})}}(n,p,b,m,i),I(o)||o===null||s!==null&&s.is(o)||n.dispatchCommand(ji,void 0);const T=n._pendingDecorators;T!==null&&(n._decorators=T,n._pendingDecorators=null,Cn("decorator",n,!0,T)),function(S,P,E){const D=Us(P),j=Us(E);D!==j&&Cn("textcontent",S,!0,j)}(n,e||i,t),Cn("update",n,!0,{dirtyElements:g,dirtyLeaves:m,editorState:t,normalizedNodes:y,prevEditorState:e||i,tags:b}),function(S,P){if(S._deferred=[],P.length!==0){const E=S._updating;S._updating=!0;try{for(let D=0;D<P.length;D++)P[D]()}finally{S._updating=E}}}(n,_),function(S){const P=S._updates;if(P.length!==0){const E=P.shift();if(E){const[D,j]=E;xl(S,D,j)}}}(n)}function Cn(n,e,t,...r){const u=e._updating;e._updating=t;try{const i=Array.from(e._listeners[n]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{e._updating=u}}function yl(n,e,t){if(n._updating===!1||le!==n){let u=!1;return n.update(()=>{u=yl(n,e,t)}),u}const r=ts(n);for(let u=4;u>=0;u--)for(let i=0;i<r.length;i++){const s=r[i]._commands.get(e);if(s!==void 0){const o=s[u];if(o!==void 0){const a=Array.from(o),l=a.length;for(let f=0;f<l;f++)if(a[f](t,n)===!0)return!0}}}return!1}function yo(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const u=t.shift();if(u){const[i,s]=u;let o;if(s!==void 0){if(o=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete){const a=n._pendingEditorState;a===null&&L(191),a._flushSync=!0}o&&n._deferred.push(o),bl(n,s.tag)}i()}}return r}function xl(n,e,t){const r=n._updateTags;let u,i=!1,s=!1;t!==void 0&&(u=t.onUpdate,bl(n,t.tag),i=t.skipTransforms||!1,s=t.discrete||!1),u&&n._deferred.push(u);const o=n._editorState;let a=n._pendingEditorState,l=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=_l(a||o),l=!0),a._flushSync=s;const f=ae,h=xe,c=le,d=n._updating;ae=a,xe=!1,n._updating=!0,le=n;try{l&&(n._headless?o._selection!==null&&(a._selection=o._selection.clone()):a._selection=function(y){const b=y.getEditorState()._selection,_=Ne(y._window);return I(b)||b==null?as(b,_,y,null):b.clone()}(n));const m=n._compositionKey;e(),i=yo(n,i),function(y,b){const _=b.getEditorState()._selection,w=y._selection;if(I(w)){const T=w.anchor,S=w.focus;let P;if(T.type==="text"&&(P=T.getNode(),P.selectionTransform(_,w)),S.type==="text"){const E=S.getNode();P!==E&&E.selectionTransform(_,w)}}}(a,n),n._dirtyType!==At&&(i?function(y,b){const _=b._dirtyLeaves,w=y._nodeMap;for(const T of _){const S=w.get(T);M(S)&&S.isAttached()&&S.isSimpleText()&&!S.isUnmergeable()&&js(S)}}(a,n):function(y,b){const _=b._dirtyLeaves,w=b._dirtyElements,T=y._nodeMap,S=lt(),P=new Map;let E=_,D=E.size,j=w,v=j.size;for(;D>0||v>0;){if(D>0){b._dirtyLeaves=new Set;for(const N of E){const A=T.get(N);M(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&js(A),A!==void 0&&mo(A,S)&&go(b,A,P),_.add(N)}if(E=b._dirtyLeaves,D=E.size,D>0){Pr++;continue}}b._dirtyLeaves=new Set,b._dirtyElements=new Map;for(const N of j){const A=N[0],B=N[1];if(A!=="root"&&!B)continue;const x=T.get(A);x!==void 0&&mo(x,S)&&go(b,x,P),w.set(A,B)}E=b._dirtyLeaves,D=E.size,j=b._dirtyElements,v=j.size,Pr++}b._dirtyLeaves=_,b._dirtyElements=w}(a,n),yo(n),function(y,b,_,w){const T=y._nodeMap,S=b._nodeMap,P=[];for(const[E]of w){const D=S.get(E);D!==void 0&&(D.isAttached()||(C(D)&&Ja(D,E,T,S,P,w),T.has(E)||w.delete(E),P.push(E)))}for(const E of P)S.delete(E);for(const E of _){const D=S.get(E);D===void 0||D.isAttached()||(T.has(E)||_.delete(E),S.delete(E))}}(o,a,n._dirtyLeaves,n._dirtyElements)),m!==n._compositionKey&&(a._flushSync=!0);const g=a._selection;if(I(g)){const y=a._nodeMap,b=g.anchor.key,_=g.focus.key;y.get(b)!==void 0&&y.get(_)!==void 0||L(19)}else Ie(g)&&g._nodes.size===0&&(a._selection=null)}catch(m){return m instanceof Error&&n._onError(m),n._pendingEditorState=o,n._dirtyType=Yt,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void ct(n)}finally{ae=f,xe=h,le=c,n._updating=d,Pr=0}n._dirtyType!==At||function(m,g){const y=g.getEditorState()._selection,b=m._selection;if(b!==null){if(b.dirty||!b.is(y))return!0}else if(y!==null)return!0;return!1}(a,n)?a._flushSync?(a._flushSync=!1,ct(n)):l&&G0(()=>{ct(n)}):(a._flushSync=!1,l&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function Te(n,e,t){n._updating?n._updates.push([e,t]):xl(n,e,t)}class Nn{constructor(e,t,r){this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new Nn(this.element,e,this.after)}withAfter(e){return new Nn(this.element,this.before,e)}withElement(e){return new Nn(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return t!==null&&t.parentElement!==this.element&&L(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&L(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&L(224),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const t=e==="decorator"&&(Hn||hu);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===(t.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,u=this.before,i=document.createElement("br");if(r.insertBefore(i,u),e){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,u){if(r===this.element){const a=this.getFirstChildOffset();return[e,Math.min(a+e.getChildrenSize(),Math.max(a,u))]}const i=xo(t,r);i.push(u);const s=xo(t,this.element);let o=e.getIndexWithinParent();for(let a=0;a<s.length;a++){const l=i[a],f=s[a];if(l===void 0||l<f)break;if(l>f){o+=1;break}}return[e.getParentOrThrow(),o]}}function xo(n,e){const t=[];let r=e;for(;r!==n&&r!==null;r=e.parentNode){let u=0;for(let i=r.previousSibling;i!==null;i=r.previousSibling)u++;t.push(u)}return r!==n&&L(225),t.reverse()}class $t extends _u{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return B0[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const e=ue()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;t!==null;){if(M(t)&&e.push(t),C(t)){const r=t.getAllTextNodes();e.push(...r)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;C(e);){const t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;C(e);){const t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),r=t.length;if(e>=r){const i=t[r-1];return C(i)&&i.getLastDescendant()||i||null}const u=t[e];return C(u)&&u.getFirstDescendant()||u||null}getFirstChild(){const e=this.getLatest().__first;return e===null?null:fe(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return e===null&&L(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return e===null?null:fe(e)}getLastChildOrThrow(){const e=this.getLastChild();return e===null&&L(96,this.__key),e}getChildAtIndex(e){const t=this.getChildrenSize();let r,u;if(e<t/2){for(r=this.getFirstChild(),u=0;r!==null&&u<=e;){if(u===e)return r;r=r.getNextSibling(),u++}return null}for(r=this.getLastChild(),u=t-1;r!==null&&u>=e;){if(u===e)return r;r=r.getPreviousSibling(),u--}return null}getTextContent(){let e="";const t=this.getChildren(),r=t.length;for(let u=0;u<r;u++){const i=t[u];e+=i.getTextContent(),C(i)&&u!==r-1&&!i.isInline()&&(e+=Ze)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),r=t.length;for(let u=0;u<r;u++){const i=t[u];e+=i.getTextContentSize(),C(i)&&u!==r-1&&!i.isInline()&&(e+=Ze.length)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){if(e!==""){const t=Bs[e];return!!(this.getFormat()&t)}return!1}select(e,t){ye();const r=$();let u=e,i=t;const s=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){const a=this.getFirstChild();if(M(a)||C(a))return a.select(0,0)}else if(!(e!==void 0&&e!==s||t!==void 0&&t!==s)){const a=this.getLastChild();if(M(a)||C(a))return a.select()}}u===void 0&&(u=s),i===void 0&&(i=s);const o=this.__key;return I(r)?(r.anchor.set(o,u,"element"),r.focus.set(o,i,"element"),r.dirty=!0,r):hl(o,u,o,i,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(t=>t.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=e!==""?Bs[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,r){const u=r.length,i=this.getChildrenSize(),s=this.getWritable();e+t<=i||L(226,String(e),String(t),String(i));const o=s.__key,a=[],l=[],f=this.getChildAtIndex(e+t);let h=null,c=i-t+u;if(e!==0)if(e===i)h=this.getLastChild();else{const p=this.getChildAtIndex(e);p!==null&&(h=p.getPreviousSibling())}if(t>0){let p=h===null?this.getFirstChild():h.getNextSibling();for(let m=0;m<t;m++){p===null&&L(100);const g=p.getNextSibling(),y=p.__key;kt(p.getWritable()),l.push(y),p=g}}let d=h;for(let p=0;p<u;p++){const m=r[p];d!==null&&m.is(d)&&(h=d=d.getPreviousSibling());const g=m.getWritable();g.__parent===o&&c--,kt(g);const y=m.__key;if(d===null)s.__first=y,g.__prev=null;else{const b=d.getWritable();b.__next=y,g.__prev=b.__key}m.__key===o&&L(76),g.__parent=o,a.push(y),d=m}if(e+t===i)d!==null&&(d.getWritable().__next=null,s.__last=d.__key);else if(f!==null){const p=f.getWritable();if(d!==null){const m=d.getWritable();p.__prev=d.__key,m.__next=f.__key}else p.__prev=null}if(s.__size=c,l.length){const p=$();if(I(p)){const m=new Set(l),g=new Set(a),{anchor:y,focus:b}=p;_o(y,m,g)&&Qr(y,y.getNode(),this,h,f),_o(b,m,g)&&Qr(b,b.getNode(),this,h,f),c!==0||this.canBeEmpty()||Qe(this)||this.remove()}}return s}getDOMSlot(e){return new Nn(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&Rt(t)){const r=this.getIndent();r>0&&(t.style.paddingInlineStart=40*r+"px")}return{element:t}}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const r=this.getDOMSlot(e);let u=r.getFirstChild();for(let i=this.getFirstChild();i;i=i.getNextSibling()){const s=t.getElementByKey(i.getKey());s!==null&&(u==null?(r.insertChild(s),u=s):u!==s&&r.replaceChild(s,u),u=u.nextSibling)}}}function C(n){return n instanceof $t}function _o(n,e,t){let r=n.getNode();for(;r;){const u=r.__key;if(e.has(u)&&!t.has(u))return!0;r=r.getParent()}return!1}class Tf extends _u{constructor(e){super(e)}decorate(e,t){L(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function te(n){return n instanceof Tf}class er extends $t{static getType(){return"root"}static clone(){return new er}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){L(51)}getTextContent(){const e=this.__cachedText;return!Yn()&&ue()._dirtyType!==At||e===null?super.getTextContent():e}remove(){L(52)}replace(e){L(53)}insertBefore(e){L(54)}insertAfter(e){L(55)}updateDOM(e,t){return!1}append(...e){for(let t=0;t<e.length;t++){const r=e[t];C(r)||te(r)||L(56)}return super.append(...e)}static importJSON(e){const t=ie();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function he(n){return n instanceof er}function _l(n){return new wu(new Map(n._nodeMap))}function cs(){return new wu(new Map([["root",new er]]))}function vl(n){const e=n.exportJSON(),t=n.constructor;if(e.type!==t.getType()&&L(130,t.name),C(n)){const r=e.children;Array.isArray(r)||L(59,t.name);const u=n.getChildren();for(let i=0;i<u.length;i++){const s=vl(u[i]);r.push(s)}}return e}class wu{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return bo(t&&t.editor||null,this,e)}clone(e){const t=new wu(this._nodeMap,e===void 0?this._selection:e);return t._readOnly=!0,t}toJSON(){return bo(null,this,()=>({root:vl(ie())}))}}class fs extends $t{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class an extends $t{constructor(e){super(e),this.__textFormat=0,this.__textStyle=""}static getType(){return"paragraph"}getTextFormat(){return this.getLatest().__textFormat}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}hasTextFormat(e){const t=Ot[e];return!!(this.getTextFormat()&t)}getFormatFlags(e,t){return zr(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}static clone(e){return new an(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}createDOM(e){const t=document.createElement("p"),r=wn(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:Ef,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&Rt(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();t.style.textAlign=r;const u=this.getDirection();u&&(t.dir=u)}return{element:t}}static importJSON(e){const t=Ee();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t.setTextFormat(e.textFormat),t}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle(),type:"paragraph",version:1}}insertNewAfter(e,t){const r=Ee();r.setTextFormat(e.format),r.setTextStyle(e.style);const u=this.getDirection();return r.setDirection(u),r.setFormat(this.getFormatType()),r.setStyle(this.getTextStyle()),this.insertAfter(r,t),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||M(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Ef(n){const e=Ee();return n.style&&(e.setFormat(n.style.textAlign),uf(n,e)),{node:e}}function Ee(){return bt(new an)}function tn(n){return n instanceof an}const Z=0,Ct=1,Cf=4;function wl(n,e,t,r){const u=n._keyToDOMMap;u.clear(),n._editorState=cs(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=At,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const i=n._observer;i!==null&&(i.disconnect(),n._observer=null),e!==null&&(e.textContent=""),t!==null&&(t.textContent="",u.set("root",t))}function Nf(n){const e=n||{},t=wf(),r=e.theme||{},u=n===void 0?t:e.parentEditor||null,i=e.disableEvents||!1,s=cs(),o=e.namespace||(u!==null?u._config.namespace:Va()),a=e.editorState,l=[er,Bt,Jn,Xn,an,fs,...e.nodes||[]],{onError:f,html:h}=e,c=e.editable===void 0||e.editable;let d;if(n===void 0&&t!==null)d=t._nodes;else{d=new Map;for(let m=0;m<l.length;m++){let g=l[m],y=null,b=null;if(typeof g!="function"){const S=g;g=S.replace,y=S.with,b=S.withKlass||null}const _=g.getType(),w=g.transform(),T=new Set;w!==null&&T.add(w),d.set(_,{exportDOM:h&&h.export?h.export.get(g):void 0,klass:g,replace:y,replaceWithKlass:b,transforms:T})}}const p=new Su(s,u,d,{disableEvents:i,namespace:o,theme:r},f||console.error,function(m,g){const y=new Map,b=new Set,_=w=>{Object.keys(w).forEach(T=>{let S=y.get(T);S===void 0&&(S=[],y.set(T,S)),S.push(w[T])})};return m.forEach(w=>{const T=w.klass.importDOM;if(T==null||b.has(T))return;b.add(T);const S=T.call(w.klass);S!==null&&_(S)}),g&&_(g),y}(d,h?h.import:void 0),c);return a!==void 0&&(p._pendingEditorState=a,p._dirtyType=Yt),p}class Su{constructor(e,t,r,u,i,s,o){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=u,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=At,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=Va(),this._onError=i,this._htmlConversions=s,this._editable=o,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){r===void 0&&L(35);const u=this._commands;u.has(e)||u.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=u.get(e);i===void 0&&L(36,String(e));const s=i[r];return s.add(t),()=>{s.delete(t),i.every(o=>o.size===0)&&u.delete(e)}}registerMutationListener(e,t,r){const u=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;i.set(t,u);const s=r&&r.skipInitialization;return s!==void 0&&s||this.initializeMutationListener(t,u),()=>{i.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&L(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,u=rf(r).get(t.getType());if(!u)return;const i=new Map;for(const s of u.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),u=[r],i=r.replaceWithKlass;if(i!=null){const a=this.registerNodeTransformToKlass(i,t);u.push(a)}var s,o;return s=this,o=e.getType(),Te(s,()=>{const a=tt();if(a.isEmpty())return;if(o==="root")return void ie().markDirty();const l=a._nodeMap;for(const[,f]of l)f.markDirty()},s._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{u.forEach(a=>a.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return R(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=wn(this._config.theme,"root"),u=this._pendingEditorState||this._editorState;if(this._rootElement=e,wl(this,t,e,u),t!==null&&(this._config.disableEvents||cf(t),r!=null&&t.classList.remove(...r)),e!==null){const i=function(o){const a=o.ownerDocument;return a&&a.defaultView||null}(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=Yt,$a(this),this._updateTags.add("history-merge"),ct(this),this._config.disableEvents||function(o,a){const l=o.ownerDocument,f=Xr.get(l);(f===void 0||f<1)&&l.addEventListener("selectionchange",al),Xr.set(l,(f||0)+1),o.__lexicalEditor=a;const h=ol(o);for(let c=0;c<li.length;c++){const[d,p]=li[c],m=typeof p=="function"?g=>{to(g)||(eo(g),(a.isEditable()||d==="click")&&p(g,a))}:g=>{if(to(g))return;eo(g);const y=a.isEditable();switch(d){case"cut":return y&&R(a,zi,g);case"copy":return R(a,du,g);case"paste":return y&&R(a,fu,g);case"dragstart":return y&&R(a,Oa,g);case"dragover":return y&&R(a,Pa,g);case"dragend":return y&&R(a,_0,g);case"focus":return y&&R(a,S0,g);case"blur":return y&&R(a,T0,g);case"drop":return y&&R(a,Aa,g)}};o.addEventListener(d,m),h.push(()=>{o.removeEventListener(d,m)})}}(e,this),r!=null&&e.classList.add(...r)}else this._editorState=u,this._pendingEditorState=null,this._window=null;Cn("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&L(38);let r=e;r._readOnly&&(r=_l(e),r._selection=e._selection?e._selection.clone():null),Ba(this);const u=this._pendingEditorState,i=this._updateTags,s=t!==void 0?t.tag:null;u===null||u.isEmpty()||(s!=null&&i.add(s),ct(this)),this._pendingEditorState=r,this._dirtyType=Yt,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||ct(this)}parseEditorState(e,t){return function(r,u,i){const s=cs(),o=ae,a=xe,l=le,f=u._dirtyElements,h=u._dirtyLeaves,c=u._cloneNotNeeded,d=u._dirtyType;u._dirtyElements=new Map,u._dirtyLeaves=new Set,u._cloneNotNeeded=new Set,u._dirtyType=0,ae=s,xe=!1,le=u;try{const p=u._nodes;ls(r.root,p),i&&i(),s._readOnly=!0}catch(p){p instanceof Error&&u._onError(p)}finally{u._dirtyElements=f,u._dirtyLeaves=h,u._cloneNotNeeded=c,u._dirtyType=d,ae=o,xe=a,le=l}return s}(typeof e=="string"?JSON.parse(e):e,this,t)}read(e){return ct(this),this.getEditorState().read(e,{editor:this})}update(e,t){Te(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Te(this,()=>{const u=$(),i=ie();u!==null?u.dirty=!0:i.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?i.selectStart():i.selectEnd())},{onUpdate:()=>{r.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=Ne(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Cn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}Su.version="0.21.0+prod.esm";function kf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}kf(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Af=new Map;function Of(n){const e={};if(!n)return e;const t=n.split(";");for(const r of t)if(r!==""){const[u,i]=r.split(/:([^]+)/);u&&i&&(e[u.trim()]=i.trim())}return e}function Sl(n,e){const t=n.getStartEndPoints();if(e.isSelected(n)&&!e.isSegmented()&&!e.isToken()&&t!==null){const[r,u]=t,i=n.isBackward(),s=r.getNode(),o=u.getNode(),a=e.is(s),l=e.is(o);if(a||l){const[f,h]=hi(n),c=s.is(o),d=e.is(i?o:s),p=e.is(i?s:o);let m,g=0;return c?(g=f>h?h:f,m=f>h?f:h):d?(g=i?h:f,m=void 0):p&&(g=0,m=i?f:h),e.__text=e.__text.slice(g,m),e}}return e}function Pf(n){const e=n.getStyle(),t=Of(e);Af.set(e,t)}function vo(n,e){const t=In(n.focus,e);return te(t)&&!t.isIsolated()||C(t)&&!t.isInline()&&!t.canBeEmpty()}function If(n,e,t,r){n.modify(e?"extend":"move",t,r)}function Lf(n){const e=n.anchor.getNode();return(he(e)?e:e.getParentOrThrow()).getDirection()==="rtl"}function wo(n,e,t){const r=Lf(n);If(n,e,t?!r:r,"character")}function Df(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Mf=Df(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Tl=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Rf=Tl&&"documentMode"in document?document.documentMode:null;!(!Tl||!("InputEvent"in window)||Rf)&&"getTargetRanges"in new window.InputEvent("input");function El(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}function nt(...n){return()=>{for(let e=n.length-1;e>=0;e--)n[e]();n.length=0}}function ds(n,...e){const t=El(...e);t.length>0&&n.classList.add(...t)}function Cl(n,...e){const t=El(...e);t.length>0&&n.classList.remove(...t)}function Bf(n,e){let t=n;for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null}function $f(n){const e=Tu(n,t=>C(t)&&!t.isInline());return C(e)||Mf(4,n.__key),e}const Tu=(n,e)=>{let t=n;for(;t!==ie()&&t!=null;){if(e(t))return t;t=t.getParent()}return null};function ft(n,e){return n!==null&&Object.getPrototypeOf(n).constructor.name===e.name}function Nl(n,e){const t=e.body?e.body.childNodes:[];let r=[];const u=[];for(let i=0;i<t.length;i++){const s=t[i];if(!Ol.has(s.nodeName)){const o=Pl(s,n,u,!1);o!==null&&(r=r.concat(o))}}return function(i){for(const s of i)s.getNextSibling()instanceof fs&&s.insertAfter(It());for(const s of i){const o=s.getChildren();for(const a of o)s.insertBefore(a);s.remove()}}(u),r}function kl(n,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const t=document.createElement("div"),r=ie().getChildren();for(let u=0;u<r.length;u++)Al(n,r[u],t,e);return t.innerHTML}function Al(n,e,t,r=null){let u=r===null||e.isSelected(r);const i=C(e)&&e.excludeFromCopy("html");let s=e;if(r!==null){let d=ss(e);d=M(d)&&r!==null?Sl(r,d):d,s=d}const o=C(s)?s.getChildren():[],a=n._nodes.get(s.getType());let l;l=a&&a.exportDOM!==void 0?a.exportDOM(n,s):s.exportDOM(n);const{element:f,after:h}=l;if(!f)return!1;const c=document.createDocumentFragment();for(let d=0;d<o.length;d++){const p=o[d],m=Al(n,p,c,r);!u&&C(e)&&m&&e.extractWithChild(p,r,"html")&&(u=!0)}if(u&&!i){if((Rt(f)||Js(f))&&f.append(c),t.append(f),h){const d=h.call(s,f);d&&(Js(f)?f.replaceChildren(d):f.replaceWith(d))}}else t.append(c);return u}const Ol=new Set(["STYLE","SCRIPT"]);function Pl(n,e,t,r,u=new Map,i){let s=[];if(Ol.has(n.nodeName))return s;let o=null;const a=function(p,m){const{nodeName:g}=p,y=m._htmlConversions.get(g.toLowerCase());let b=null;if(y!==void 0)for(const _ of y){const w=_(p);w!==null&&(b===null||(b.priority||0)<=(w.priority||0))&&(b=w)}return b!==null?b.conversion:null}(n,e),l=a?a(n):null;let f=null;if(l!==null){f=l.after;const p=l.node;if(o=Array.isArray(p)?p[p.length-1]:p,o!==null){for(const[,m]of u)if(o=m(o,i),!o)break;o&&s.push(...Array.isArray(p)?p:[o])}l.forChild!=null&&u.set(n.nodeName,l.forChild)}const h=n.childNodes;let c=[];const d=(o==null||!Qe(o))&&(o!=null&&pi(o)||r);for(let p=0;p<h.length;p++)c.push(...Pl(h[p],e,t,d,new Map(u),o));return f!=null&&(c=f(c)),Vr(n)&&(c=Ff(n,c,d?()=>{const p=new fs;return t.push(p),p}:Ee)),o==null?c.length>0?s=s.concat(c):Vr(n)&&function(p){return p.nextSibling==null||p.previousSibling==null?!1:ti(p.nextSibling)&&ti(p.previousSibling)}(n)&&(s=s.concat(It())):C(o)&&o.append(...c),s}function Ff(n,e,t){const r=n.style.textAlign,u=[];let i=[];for(let s=0;s<e.length;s++){const o=e[s];if(pi(o))r&&!o.getFormat()&&o.setFormat(r),u.push(o);else if(i.push(o),s===e.length-1||s<e.length-1&&pi(e[s+1])){const a=t();a.setFormat(r),a.append(...i),u.push(a),i=[]}}return u}const jf=new Set(["http:","https:","mailto:","sms:","tel:"]);let tr=class Il extends $t{static getType(){return"link"}static clone(e){return new Il(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},r){super(r);const{target:u=null,rel:i=null,title:s=null}=t;this.__url=e,this.__target=u,this.__rel=i,this.__title=s}createDOM(e){const t=document.createElement("a");return t.href=this.sanitizeUrl(this.__url),this.__target!==null&&(t.target=this.__target),this.__rel!==null&&(t.rel=this.__rel),this.__title!==null&&(t.title=this.__title),ds(t,e.theme.link),t}updateDOM(e,t,r){if(t instanceof HTMLAnchorElement){const u=this.__url,i=this.__target,s=this.__rel,o=this.__title;u!==e.__url&&(t.href=u),i!==e.__target&&(i?t.target=i:t.removeAttribute("target")),s!==e.__rel&&(s?t.rel=s:t.removeAttribute("rel")),o!==e.__title&&(o?t.title=o:t.removeAttribute("title"))}return!1}static importDOM(){return{a:e=>({conversion:qf,priority:1})}}static importJSON(e){const t=Yr(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{const t=new URL(e);if(!jf.has(t.protocol))return"about:blank"}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,t=!0){const r=Yr(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,t),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,r){if(!I(t))return!1;const u=t.anchor.getNode(),i=t.focus.getNode();return this.isParentOf(u)&&this.isParentOf(i)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}};function qf(n){let e=null;if(ef(n)){const t=n.textContent;(t!==null&&t!==""||n.children.length>0)&&(e=Yr(n.getAttribute("href")||"",{rel:n.getAttribute("rel"),target:n.getAttribute("target"),title:n.getAttribute("title")}))}return{node:e}}function Yr(n,e){return bt(new tr(n,e))}function Tt(n){return n instanceof tr}let Eu=class Ll extends tr{constructor(e,t={},r){super(e,t,r),this.__isUnlinked=t.isUnlinked!==void 0&&t.isUnlinked!==null&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new Ll(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,r){return super.updateDOM(e,t,r)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){const t=gi(e.url,{isUnlinked:e.isUnlinked,rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked,type:"autolink",version:1}}insertNewAfter(e,t=!0){const r=this.getParentOrThrow().insertNewAfter(e,t);if(C(r)){const u=gi(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(u),u}return null}};function gi(n,e){return bt(new Eu(n,e))}function Ht(n){return n instanceof Eu}const Qt=Wn();function Hu(n,e={}){const{target:t,title:r}=e,u=e.rel===void 0?"noreferrer":e.rel,i=$();if(!I(i))return;const s=i.extract();if(n===null)s.forEach(o=>{const a=Tu(o,l=>!Ht(l)&&Tt(l));if(a){const l=a.getChildren();for(let f=0;f<l.length;f++)a.insertBefore(l[f]);a.remove()}});else{if(s.length===1){const l=function(f,h){let c=f;for(;c!==null&&c.getParent()!==null&&!h(c);)c=c.getParentOrThrow();return h(c)?c:null}(s[0],Tt);if(l!==null)return l.setURL(n),t!==void 0&&l.setTarget(t),u!==null&&l.setRel(u),void(r!==void 0&&l.setTitle(r))}let o=null,a=null;s.forEach(l=>{const f=l.getParent();if(f!==a&&f!==null&&(!C(l)||l.isInline())){if(Tt(f))return a=f,f.setURL(n),t!==void 0&&f.setTarget(t),u!==null&&a.setRel(u),void(r!==void 0&&a.setTitle(r));if(f.is(o)||(o=f,a=Yr(n,{rel:u,target:t,title:r}),Tt(f)?l.getPreviousSibling()===null?f.insertBefore(a):f.insertAfter(a):l.insertBefore(a)),Tt(l)){if(l.is(a))return;if(a!==null){const h=l.getChildren();for(let c=0;c<h.length;c++)a.append(h[c])}l.remove()}else a!==null&&a.append(l)}})}}function Uf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var je=Uf(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function zf(n){let e=1,t=n.getParent();for(;t!=null;){if(re(t)){const r=t.getParent();if(K(r)){e++,t=r.getParent();continue}je(40)}return e}return e}function mi(n){let e=n.getParent();K(e)||je(40);let t=e;for(;t!==null;)t=t.getParent(),K(t)&&(e=t);return e}function Dl(n){let e=[];const t=n.getChildren().filter(re);for(let r=0;r<t.length;r++){const u=t[r],i=u.getFirstChild();K(i)?e=e.concat(Dl(i)):e.push(u)}return e}function qe(n){return re(n)&&K(n.getFirstChild())}function So(n){return Ce().append(n)}function Ml(n,e){return re(n)&&(e.length===0||e.length===1&&n.is(e[0])&&n.getChildrenSize()===0)}function To(n,e){n.update(()=>{const t=$();if(t!==null){const r=t.getNodes();if(I(t)){const i=t.getStartEndPoints();i===null&&je(143);const[s]=i,o=s.getNode(),a=o.getParent();if(Ml(o,r)){const l=_e(e);if(Qe(a)){o.replace(l);const f=Ce();C(o)&&(f.setFormat(o.getFormatType()),f.setIndent(o.getIndent())),l.append(f)}else if(re(o)){const f=o.getParentOrThrow();Lt(l,f.getChildren()),f.replace(l)}return}}const u=new Set;for(let i=0;i<r.length;i++){const s=r[i];if(!C(s)||!s.isEmpty()||re(s)||u.has(s.getKey())){if(qa(s)){let o=s.getParent();for(;o!=null;){const a=o.getKey();if(K(o)){if(!u.has(a)){const l=_e(e);Lt(l,o.getChildren()),o.replace(l),u.add(a)}break}{const l=o.getParent();if(Qe(l)&&!u.has(a)){u.add(a),Eo(o,e);break}o=l}}}}else Eo(s,e)}}})}function Lt(n,e){n.splice(n.getChildrenSize(),0,e)}function Eo(n,e){if(K(n))return n;const t=n.getPreviousSibling(),r=n.getNextSibling(),u=Ce();let i;if(Lt(u,n.getChildren()),K(t)&&e===t.getListType())t.append(u),K(r)&&e===r.getListType()&&(Lt(t,r.getChildren()),r.remove()),i=t;else if(K(r)&&e===r.getListType())r.getFirstChildOrThrow().insertBefore(u),i=r;else{const s=_e(e);s.append(u),n.replace(s),i=s}return u.setFormat(n.getFormatType()),u.setIndent(n.getIndent()),n.remove(),i}function hs(n,e){const t=n.getLastChild(),r=e.getFirstChild();t&&r&&qe(t)&&qe(r)&&(hs(t.getFirstChild(),r.getFirstChild()),r.remove());const u=e.getChildren();u.length>0&&n.append(...u),e.remove()}function Wf(n){n.update(()=>{const e=$();if(I(e)){const t=new Set,r=e.getNodes(),u=e.anchor.getNode();if(Ml(u,r))t.add(mi(u));else for(let i=0;i<r.length;i++){const s=r[i];if(qa(s)){const o=Bf(s,nr);o!=null&&t.add(mi(o))}}for(const i of t){let s=i;const o=Dl(i);for(const a of o){const l=Ee();Lt(l,a.getChildren()),s.insertAfter(l),s=l,a.__key===e.anchor.key&&e.anchor.set(l.getKey(),0,"element"),a.__key===e.focus.key&&e.focus.set(l.getKey(),0,"element"),a.remove()}i.remove()}}})}function Hf(n){const e=new Set;if(qe(n)||e.has(n.getKey()))return;const t=n.getParent(),r=n.getNextSibling(),u=n.getPreviousSibling();if(qe(r)&&qe(u)){const i=u.getFirstChild();if(K(i)){i.append(n);const s=r.getFirstChild();K(s)&&(Lt(i,s.getChildren()),r.remove(),e.add(r.getKey()))}}else if(qe(r)){const i=r.getFirstChild();if(K(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(n)}}else if(qe(u)){const i=u.getFirstChild();K(i)&&i.append(n)}else if(K(t)){const i=Ce(),s=_e(t.getListType());i.append(s),s.append(n),u?u.insertAfter(i):r?r.insertBefore(i):t.append(i)}}function Vf(n){if(qe(n))return;const e=n.getParent(),t=e?e.getParent():void 0;if(K(t?t.getParent():void 0)&&re(t)&&K(e)){const r=e?e.getFirstChild():void 0,u=e?e.getLastChild():void 0;if(n.is(r))t.insertBefore(n),e.isEmpty()&&t.remove();else if(n.is(u))t.insertAfter(n),e.isEmpty()&&t.remove();else{const i=e.getListType(),s=Ce(),o=_e(i);s.append(o),n.getPreviousSiblings().forEach(f=>o.append(f));const a=Ce(),l=_e(i);a.append(l),Lt(l,n.getNextSiblings()),t.insertBefore(s),t.insertAfter(a),t.replace(n)}}}function Gf(){const n=$();if(!I(n)||!n.isCollapsed())return!1;const e=n.anchor.getNode();if(!re(e)||e.getChildrenSize()!==0)return!1;const t=mi(e),r=e.getParent();K(r)||je(40);const u=r.getParent();let i;if(Qe(u))i=Ee(),t.insertAfter(i);else{if(!re(u))return!1;i=Ce(),u.insertAfter(i)}i.select();const s=e.getNextSiblings();if(s.length>0){const o=_e(r.getListType());if(tn(i))i.insertAfter(o);else{const a=Ce();a.append(o),i.insertAfter(a)}s.forEach(a=>{a.remove(),o.append(a)})}return function(o){let a=o;for(;a.getNextSibling()==null&&a.getPreviousSibling()==null;){const l=a.getParent();if(l==null||!re(a)&&!K(a))break;a=l}a.remove()}(e),!0}function eu(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}let nr=class Rl extends $t{static getType(){return"listitem"}static clone(e){return new Rl(e.__value,e.__checked,e.__key)}constructor(e,t,r){super(r),this.__value=e===void 0?1:e,this.__checked=t}createDOM(e){const t=document.createElement("li"),r=this.getParent();return K(r)&&r.getListType()==="check"&&No(t,this,null),t.value=this.__value,Co(t,e.theme,this),t}updateDOM(e,t,r){const u=this.getParent();return K(u)&&u.getListType()==="check"&&No(t,this,e),t.value=this.__value,Co(t,r.theme,this),!1}static transform(){return e=>{if(re(e)||je(144),e.__checked==null)return;const t=e.getParent();K(t)&&t.getListType()!=="check"&&e.getChecked()!=null&&e.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:Kf,priority:0})}}static importJSON(e){const t=Ce();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportDOM(e){const t=this.createDOM(e._config);return t.style.textAlign=this.getFormatType(),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let t=0;t<e.length;t++){const r=e[t];if(C(r)&&this.canMergeWith(r)){const u=r.getChildren();this.append(...u),r.remove()}else super.append(r)}return this}replace(e,t){if(re(e))return super.replace(e);this.setIndent(0);const r=this.getParentOrThrow();if(!K(r))return e;if(r.__first===this.getKey())r.insertBefore(e);else if(r.__last===this.getKey())r.insertAfter(e);else{const u=_e(r.getListType());let i=this.getNextSibling();for(;i;){const s=i;i=i.getNextSibling(),u.append(s)}r.insertAfter(e),e.insertAfter(u)}return t&&(C(e)||je(139),this.getChildren().forEach(u=>{e.append(u)})),this.remove(),r.getChildrenSize()===0&&r.remove(),e}insertAfter(e,t=!0){const r=this.getParentOrThrow();if(K(r)||je(39),re(e))return super.insertAfter(e,t);const u=this.getNextSiblings();if(r.insertAfter(e,t),u.length!==0){const i=_e(r.getListType());u.forEach(s=>i.append(s)),e.insertAfter(i,t)}return e}remove(e){const t=this.getPreviousSibling(),r=this.getNextSibling();super.remove(e),t&&r&&qe(t)&&qe(r)&&(hs(t.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(e,t=!0){const r=Ce(this.__checked==null&&void 0);return this.insertAfter(r,t),r}collapseAtStart(e){const t=Ee();this.getChildren().forEach(s=>t.append(s));const r=this.getParentOrThrow(),u=r.getParentOrThrow(),i=re(u);if(r.getChildrenSize()===1)if(i)r.remove(),u.select();else{r.insertBefore(t),r.remove();const s=e.anchor,o=e.focus,a=t.getKey();s.type==="element"&&s.getNode().is(this)&&s.set(a,s.offset,"element"),o.type==="element"&&o.getNode().is(this)&&o.set(a,o.offset,"element")}else r.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){const e=this.getLatest();let t;const r=this.getParent();return K(r)&&(t=r.getListType()),t==="check"?!!e.__checked:void 0}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){const e=this.getParent();if(e===null)return this.getLatest().__indent;let t=e.getParentOrThrow(),r=0;for(;re(t);)t=t.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(e){typeof e!="number"&&je(117),(e=Math.floor(e))>=0||je(199);let t=this.getIndent();for(;t!==e;)t<e?(Hf(this),t++):(Vf(this),t--);return this}canInsertAfter(e){return re(e)}canReplaceWith(e){return re(e)}canMergeWith(e){return tn(e)||re(e)}extractWithChild(e,t){if(!I(t))return!1;const r=t.anchor.getNode(),u=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(u)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return _e("bullet")}canMergeWhenEmpty(){return!0}};function Co(n,e,t){const r=[],u=[],i=e.list,s=i?i.listitem:void 0;let o;if(i&&i.nested&&(o=i.nested.listitem),s!==void 0&&r.push(...eu(s)),i){const a=t.getParent(),l=K(a)&&a.getListType()==="check",f=t.getChecked();l&&!f||u.push(i.listitemUnchecked),l&&f||u.push(i.listitemChecked),l&&r.push(f?i.listitemChecked:i.listitemUnchecked)}if(o!==void 0){const a=eu(o);t.getChildren().some(l=>K(l))?r.push(...a):u.push(...a)}u.length>0&&Cl(n,...u),r.length>0&&ds(n,...r)}function No(n,e,t,r){K(e.getFirstChild())?(n.removeAttribute("role"),n.removeAttribute("tabIndex"),n.removeAttribute("aria-checked")):(n.setAttribute("role","checkbox"),n.setAttribute("tabIndex","-1"),t&&e.__checked===t.__checked||n.setAttribute("aria-checked",e.getChecked()?"true":"false"))}function Kf(n){if(n.classList.contains("task-list-item")){for(const t of n.children)if(t.tagName==="INPUT")return Jf(t)}const e=n.getAttribute("aria-checked");return{node:Ce(e==="true"||e!=="false"&&void 0)}}function Jf(n){return n.getAttribute("type")!=="checkbox"?{node:null}:{node:Ce(n.hasAttribute("checked"))}}function Ce(n){return bt(new nr(void 0,n))}function re(n){return n instanceof nr}class ln extends $t{static getType(){return"list"}static clone(e){const t=e.__listType||Oo[e.__tag];return new ln(t,e.__start,e.__key)}constructor(e,t,r){super(r);const u=Oo[e]||e;this.__listType=u,this.__tag=u==="number"?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){const t=this.getWritable();t.__listType=e,t.__tag=e==="number"?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e,t){const r=this.__tag,u=document.createElement(r);return this.__start!==1&&u.setAttribute("start",String(this.__start)),u.__lexicalListType=this.__listType,ko(u,e.theme,this),u}updateDOM(e,t,r){return e.__tag!==this.__tag||(ko(t,r.theme,this),!1)}static transform(){return e=>{K(e)||je(163),function(t){const r=t.getNextSibling();K(r)&&t.getListType()===r.getListType()&&hs(t,r)}(e),function(t){const r=t.getListType()!=="check";let u=t.getStart();for(const i of t.getChildren())re(i)&&(i.getValue()!==u&&i.setValue(u),r&&i.getLatest().__checked!=null&&i.setChecked(void 0),K(i.getFirstChild())||u++)}(e)}}static importDOM(){return{ol:()=>({conversion:Ao,priority:0}),ul:()=>({conversion:Ao,priority:0})}}static importJSON(e){const t=_e(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){const t=this.createDOM(e._config,e);return t&&Rt(t)&&(this.__start!==1&&t.setAttribute("start",String(this.__start)),this.__listType==="check"&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let t=0;t<e.length;t++){const r=e[t];if(re(r))super.append(r);else{const u=Ce();if(K(r))u.append(r);else if(C(r))if(r.isInline())u.append(r);else{const i=se(r.getTextContent());u.append(i)}else u.append(r);super.append(u)}}return this}extractWithChild(e){return re(e)}}function ko(n,e,t){const r=[],u=[],i=e.list;if(i!==void 0){const s=i[`${t.__tag}Depth`]||[],o=zf(t)-1,a=o%s.length,l=s[a],f=i[t.__tag];let h;const c=i.nested,d=i.checklist;if(c!==void 0&&c.list&&(h=c.list),f!==void 0&&r.push(f),d!==void 0&&t.__listType==="check"&&r.push(d),l!==void 0){r.push(...eu(l));for(let p=0;p<s.length;p++)p!==a&&u.push(t.__tag+p)}if(h!==void 0){const p=eu(h);o>1?r.push(...p):u.push(...p)}}u.length>0&&Cl(n,...u),r.length>0&&ds(n,...r)}function Xf(n){const e=[];for(let t=0;t<n.length;t++){const r=n[t];if(re(r)){e.push(r);const u=r.getChildren();u.length>1&&u.forEach(i=>{K(i)&&e.push(So(i))})}else e.push(So(r))}return e}function Ao(n){const e=n.nodeName.toLowerCase();let t=null;return e==="ol"?t=_e("number",n.start):e==="ul"&&(t=function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list"))return!0;for(const u of r.childNodes)if(Rt(u)&&u.hasAttribute("aria-checked"))return!0;return!1}(n)?_e("check"):_e("bullet")),{after:Xf,node:t}}const Oo={ol:"number",ul:"bullet"};function _e(n,e=1){return bt(new ln(n,e))}function K(n){return n instanceof ln}const Bl=Wn(),Zf=Wn(),$l=Wn();function Qf(n){return nt(n.registerCommand(Zf,()=>(To(n,"number"),!0),Ct),n.registerCommand(Bl,()=>(To(n,"bullet"),!0),Ct),n.registerCommand($l,()=>(Wf(n),!0),Ct),n.registerCommand(An,()=>!!Gf(),Ct))}function Yf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ed=Yf(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Fl=U.createContext(null);function td(n,e){return{getTheme:function(){return e??null}}}function ke(){const n=U.useContext(Fl);return n==null&&ed(8),n}function nd({defaultSelection:n}){const[e]=ke();return U.useEffect(()=>{e.focus(()=>{const t=document.activeElement,r=e.getRootElement();r===null||t!==null&&r.contains(t)||r.focus({preventScroll:!0})},{defaultSelection:n})},[n,e]),null}function rd(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ud=rd(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function jl(n,e){for(let t=0;t<e.length;t++){const r=e[t](n);if(r)return r}return null}const id=/[.,;\s]/;function tu(n){return id.test(n)}function ql(n){return tu(n[n.length-1])}function bi(n){return tu(n[0])}function Ul(n){let e=n.getPreviousSibling();return C(e)&&(e=e.getLastDescendant()),e===null||pt(e)||M(e)&&ql(e.getTextContent())}function zl(n){let e=n.getNextSibling();return C(e)&&(e=e.getFirstDescendant()),e===null||pt(e)||M(e)&&bi(e.getTextContent())}function sd(n,e,t,r){return(n>0?tu(t[n-1]):Ul(r[0]))?e<t.length?tu(t[e]):zl(r[r.length-1]):!1}function od(n,e,t){const r=[],u=[],i=[];let s=0,o=0;const a=[...n];for(;a.length>0;){const l=a[0],f=l.getTextContent().length,h=o;o+f<=e?(r.push(l),s+=f):h>=t?i.push(l):u.push(l),o+=f,a.shift()}return[s,r,u,i]}function ad(n,e,t,r){const u=gi(r.url,r.attributes);if(n.length===1){let i,s=n[0];e===0?[i,s]=s.splitText(t):[,i,s]=s.splitText(e,t);const o=se(r.text);return o.setFormat(i.getFormat()),o.setDetail(i.getDetail()),o.setStyle(i.getStyle()),u.append(o),i.replace(u),s}if(n.length>1){const i=n[0];let s,o=i.getTextContent().length;e===0?s=i:[,s]=i.splitText(e);const a=[];let l;for(let d=1;d<n.length;d++){const p=n[d],m=p.getTextContent().length,g=o;if(g<t)if(o+m<=t)a.push(p);else{const[y,b]=p.splitText(t-g);a.push(y),l=b}o+=m}const f=$(),h=f?f.getNodes().find(M):void 0,c=se(s.getTextContent());return c.setFormat(s.getFormat()),c.setDetail(s.getDetail()),c.setStyle(s.getStyle()),u.append(c,...a),h&&h===s&&(I(f)?c.select(f.anchor.offset,f.focus.offset):Ie(f)&&c.select(0,c.getTextContent().length)),s.replace(u),l}}function Vu(n,e,t){const r=n.getChildren(),u=r.length;for(let a=0;a<u;a++){const l=r[a];if(!M(l)||!l.isSimpleText())return Ir(n),void t(null,n.getURL())}const i=n.getTextContent(),s=jl(i,e);if(s===null||s.text!==i||!Ul(n)||!zl(n))return Ir(n),void t(null,n.getURL());const o=n.getURL();if(o!==s.url&&(n.setURL(s.url),t(s.url,o)),s.attributes){const a=n.getRel();a!==s.attributes.rel&&(n.setRel(s.attributes.rel||null),t(s.attributes.rel||null,a));const l=n.getTarget();l!==s.attributes.target&&(n.setTarget(s.attributes.target||null),t(s.attributes.target||null,l))}}function Ir(n){const e=n.getChildren();for(let t=e.length-1;t>=0;t--)n.insertAfter(e[t]);return n.remove(),e.map(t=>t.getLatest())}function ld(n,e,t){U.useEffect(()=>{n.hasNodes([Eu])||ud(77);const r=(u,i)=>{t&&t(u,i)};return nt(n.registerNodeTransform(Bt,u=>{const i=u.getParentOrThrow(),s=u.getPreviousSibling();if(Ht(i)&&!i.getIsUnlinked())Vu(i,e,r);else if(!Tt(i)){if(u.isSimpleText()&&(bi(u.getTextContent())||!Ht(s))){const o=function(a){const l=[a];let f=a.getNextSibling();for(;f!==null&&M(f)&&f.isSimpleText()&&(l.push(f),!/[\s]/.test(f.getTextContent()));)f=f.getNextSibling();return l}(u);(function(a,l,f){let h=[...a];const c=h.map(g=>g.getTextContent()).join("");let d,p=c,m=0;for(;(d=jl(p,l))&&d!==null;){const g=d.index,y=g+d.length;if(sd(m+g,m+y,c,h)){const[b,,_,w]=od(h,m+g,m+y),T=ad(_,m+g-b,m+y-b,d);h=T?[T,...w]:w,f(d.url,null),m=0}else m+=y;p=p.substring(y)}})(o,e,r)}(function(o,a,l){const f=o.getPreviousSibling(),h=o.getNextSibling(),c=o.getTextContent();var d;!Ht(f)||f.getIsUnlinked()||bi(c)&&(d=c,!(f.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(d):/^\.[a-zA-Z0-9]{1,}/.test(d)))||(f.append(o),Vu(f,a,l),l(null,f.getURL())),!Ht(h)||h.getIsUnlinked()||ql(c)||(Ir(h),Vu(h,a,l),l(null,h.getURL()))})(u,e,r)}}),n.registerCommand(Qt,u=>{const i=$();return u!==null||!I(i)||i.extract().forEach(s=>{const o=s.getParent();if(Ht(o))return o.setIsUnlinked(!o.getIsUnlinked()),o.markDirty(),!0}),!1},Ct))},[n,e,t])}function cd({matchers:n,onChange:e}){const[t]=ke();return ld(t,n,e),null}const Wl=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,fd=Wl?U.useLayoutEffect:U.useEffect,mr={tag:"history-merge"};function dd({initialConfig:n,children:e}){const t=U.useMemo(()=>{const{theme:r,namespace:u,nodes:i,onError:s,editorState:o,html:a}=n,l=td(null,r),f=Nf({editable:n.editable,html:a,namespace:u,nodes:i,onError:h=>s(h,f),theme:r});return function(h,c){if(c!==null){if(c===void 0)h.update(()=>{const d=ie();if(d.isEmpty()){const p=Ee();d.append(p);const m=Wl?document.activeElement:null;($()!==null||m!==null&&m===h.getRootElement())&&p.select()}},mr);else if(c!==null)switch(typeof c){case"string":{const d=h.parseEditorState(c);h.setEditorState(d,mr);break}case"object":h.setEditorState(c,mr);break;case"function":h.update(()=>{ie().isEmpty()&&c(h)},mr)}}}(f,o),[f,l]},[]);return fd(()=>{const r=n.editable,[u]=t;u.setEditable(r===void 0||r)},[]),V.jsxRuntimeExports.jsx(Fl.Provider,{value:t,children:e})}function hd(){return ie().getTextContent()}function pd(n,e=!0){if(n)return!1;let t=hd();return e&&(t=t.trim()),t===""}function gd(n){if(!pd(n,!1))return!1;const e=ie().getChildren(),t=e.length;if(t>1)return!1;for(let r=0;r<t;r++){const u=e[r];if(te(u))return!1;if(C(u)){if(!tn(u)||u.__indent!==0)return!1;const i=u.getChildren(),s=i.length;for(let o=0;o<s;o++){const a=i[r];if(!M(a))return!1}}}return!0}function Hl(n){return()=>gd(n)}function md(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}md(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Vl=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?U.useLayoutEffect:U.useEffect;function bd({editor:n,ariaActiveDescendant:e,ariaAutoComplete:t,ariaControls:r,ariaDescribedBy:u,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:o,ariaLabel:a,ariaLabelledBy:l,ariaMultiline:f,ariaOwns:h,ariaRequired:c,autoCapitalize:d,className:p,id:m,role:g="textbox",spellCheck:y=!0,style:b,tabIndex:_,"data-testid":w,...T},S){const[P,E]=U.useState(n.isEditable()),D=U.useCallback(v=>{v&&v.ownerDocument&&v.ownerDocument.defaultView?n.setRootElement(v):n.setRootElement(null)},[n]),j=U.useMemo(()=>function(...v){return N=>{v.forEach(A=>{typeof A=="function"?A(N):A!=null&&(A.current=N)})}}(S,D),[D,S]);return Vl(()=>(E(n.isEditable()),n.registerEditableListener(v=>{E(v)})),[n]),V.jsxRuntimeExports.jsx("div",{"aria-activedescendant":P?e:void 0,"aria-autocomplete":P?t:"none","aria-controls":P?r:void 0,"aria-describedby":u,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":P&&g==="combobox"?!!s:void 0,...o!=null?{"aria-invalid":o}:{},"aria-label":a,"aria-labelledby":l,"aria-multiline":f,"aria-owns":P?h:void 0,"aria-readonly":!P||void 0,"aria-required":c,autoCapitalize:d,className:p,contentEditable:P,"data-testid":w,id:m,ref:j,role:P?g:void 0,spellCheck:y,style:b,tabIndex:_,...T})}const yd=U.forwardRef(bd);function Po(n){return n.getEditorState().read(Hl(n.isComposing()))}const xd=U.forwardRef(_d);function _d(n,e){const{placeholder:t,...r}=n,[u]=ke();return V.jsxRuntimeExports.jsxs(V.jsxRuntimeExports.Fragment,{children:[V.jsxRuntimeExports.jsx(yd,{editor:u,...r,ref:e}),t!=null&&V.jsxRuntimeExports.jsx(vd,{editor:u,content:t})]})}function vd({content:n,editor:e}){const t=function(s){const[o,a]=U.useState(()=>Po(s));return Vl(()=>{function l(){const f=Po(s);a(f)}return l(),nt(s.registerUpdateListener(()=>{l()}),s.registerEditableListener(()=>{l()}))},[s]),o}(e),[r,u]=U.useState(e.isEditable());if(U.useLayoutEffect(()=>(u(e.isEditable()),e.registerEditableListener(s=>{u(s)})),[e]),!t)return null;let i=null;return typeof n=="function"?i=n(r):n!==null&&(i=n),i===null?null:V.jsxRuntimeExports.jsx("div",{"aria-hidden":!0,children:i})}function yi(n,e){return yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},yi(n,e)}var Io={error:null},wd=function(n){var e,t;function r(){for(var i,s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];return(i=n.call.apply(n,[this].concat(o))||this).state=Io,i.resetErrorBoundary=function(){for(var l,f=arguments.length,h=new Array(f),c=0;c<f;c++)h[c]=arguments[c];i.props.onReset==null||(l=i.props).onReset.apply(l,h),i.reset()},i}t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,yi(e,t),r.getDerivedStateFromError=function(i){return{error:i}};var u=r.prototype;return u.reset=function(){this.setState(Io)},u.componentDidCatch=function(i,s){var o,a;(o=(a=this.props).onError)==null||o.call(a,i,s)},u.componentDidUpdate=function(i,s){var o,a,l,f,h=this.state.error,c=this.props.resetKeys;h!==null&&s.error!==null&&((l=i.resetKeys)===void 0&&(l=[]),(f=c)===void 0&&(f=[]),l.length!==f.length||l.some(function(d,p){return!Object.is(d,f[p])}))&&((o=(a=this.props).onResetKeysChange)==null||o.call(a,i.resetKeys,c),this.reset())},u.render=function(){var i=this.state.error,s=this.props,o=s.fallbackRender,a=s.FallbackComponent,l=s.fallback;if(i!==null){var f={error:i,resetErrorBoundary:this.resetErrorBoundary};if(Du.isValidElement(l))return l;if(typeof o=="function")return o(f);if(a)return Du.createElement(a,f);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},r}(Du.Component);function Sd({children:n,onError:e}){return V.jsxRuntimeExports.jsx(wd,{fallback:V.jsxRuntimeExports.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:e,children:n})}const br=0,xi=1,_i=2,Pe=0,Td=1,Lo=2,Ed=3,Cd=4;function Nd(n,e,t,r,u){if(n===null||t.size===0&&r.size===0&&!u)return Pe;const i=e._selection,s=n._selection;if(u)return Td;if(!(I(i)&&I(s)&&s.isCollapsed()&&i.isCollapsed()))return Pe;const o=function(y,b,_){const w=y._nodeMap,T=[];for(const S of b){const P=w.get(S);P!==void 0&&T.push(P)}for(const[S,P]of _){if(!P)continue;const E=w.get(S);E===void 0||he(E)||T.push(E)}return T}(e,t,r);if(o.length===0)return Pe;if(o.length>1){const y=e._nodeMap,b=y.get(i.anchor.key),_=y.get(s.anchor.key);return b&&_&&!n._nodeMap.has(b.__key)&&M(b)&&b.__text.length===1&&i.anchor.offset===1?Lo:Pe}const a=o[0],l=n._nodeMap.get(a.__key);if(!M(l)||!M(a)||l.__mode!==a.__mode)return Pe;const f=l.__text,h=a.__text;if(f===h)return Pe;const c=i.anchor,d=s.anchor;if(c.key!==d.key||c.type!=="text")return Pe;const p=c.offset,m=d.offset,g=h.length-f.length;return g===1&&m===p-1?Lo:g===-1&&m===p+1?Ed:g===-1&&m===p?Cd:Pe}function kd(n,e){let t=Date.now(),r=Pe;return(u,i,s,o,a,l)=>{const f=Date.now();if(l.has("historic"))return r=Pe,t=f,_i;const h=Nd(u,i,o,a,n.isComposing()),c=(()=>{const d=s===null||s.editor===n,p=l.has("history-push");if(!p&&d&&l.has("history-merge"))return br;if(u===null)return xi;const m=i._selection;return o.size>0||a.size>0?p===!1&&h!==Pe&&h===r&&f<t+e&&d||o.size===1&&function(g,y,b){const _=y._nodeMap.get(g),w=b._nodeMap.get(g),T=y._selection,S=b._selection;return!(I(T)&&I(S)&&T.anchor.type==="element"&&T.focus.type==="element"&&S.anchor.type==="text"&&S.focus.type==="text"||!M(_)||!M(w)||_.__parent!==w.__parent)&&JSON.stringify(y.read(()=>_.exportJSON()))===JSON.stringify(b.read(()=>w.exportJSON()))}(Array.from(o)[0],u,i)?br:xi:m!==null?br:_i})();return t=f,r=h,c}}function Do(n){n.undoStack=[],n.redoStack=[],n.current=null}function Ad(n,e,t){const r=kd(n,t);return nt(n.registerCommand(qi,()=>(function(i,s){const o=s.redoStack,a=s.undoStack;if(a.length!==0){const l=s.current,f=a.pop();l!==null&&(o.push(l),i.dispatchCommand(dr,!0)),a.length===0&&i.dispatchCommand(hr,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:"historic"})}}(n,e),!0),Z),n.registerCommand(Ui,()=>(function(i,s){const o=s.redoStack,a=s.undoStack;if(o.length!==0){const l=s.current;l!==null&&(a.push(l),i.dispatchCommand(hr,!0));const f=o.pop();o.length===0&&i.dispatchCommand(dr,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:"historic"})}}(n,e),!0),Z),n.registerCommand(v0,()=>(Do(e),!1),Z),n.registerCommand(w0,()=>(Do(e),n.dispatchCommand(dr,!1),n.dispatchCommand(hr,!1),!0),Z),n.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:o,dirtyElements:a,tags:l})=>{const f=e.current,h=e.redoStack,c=e.undoStack,d=f===null?null:f.editorState;if(f!==null&&i===d)return;const p=r(s,i,f,o,a,l);if(p===xi)h.length!==0&&(e.redoStack=[],n.dispatchCommand(dr,!1)),f!==null&&(c.push({...f}),n.dispatchCommand(hr,!0));else if(p===_i)return;e.current={editor:n,editorState:i}}))}function Od(){return{current:null,redoStack:[],undoStack:[]}}function Pd({delay:n,externalHistoryState:e}){const[t]=ke();return function(r,u,i=1e3){const s=U.useMemo(()=>u||Od(),[u]);U.useEffect(()=>Ad(r,s,i),[i,r,s])}(t,e,n),null}function Id({validateUrl:n,attributes:e}){const[t]=ke();return U.useEffect(()=>{if(!t.hasNodes([tr]))throw new Error("LinkPlugin: LinkNode not registered on editor");return nt(t.registerCommand(Qt,r=>{if(r===null)return Hu(r),!0;if(typeof r=="string")return!(n!==void 0&&!n(r))&&(Hu(r,e),!0);{const{url:u,target:i,rel:s,title:o}=r;return Hu(u,{...e,rel:s,target:i,title:o}),!0}},Ct),n!==void 0?t.registerCommand(fu,r=>{const u=$();if(!I(u)||u.isCollapsed()||!ft(r,ClipboardEvent))return!1;const i=r;if(i.clipboardData===null)return!1;const s=i.clipboardData.getData("text");return!!n(s)&&!u.getNodes().some(o=>C(o))&&(t.dispatchCommand(Qt,{...e,url:s}),r.preventDefault(),!0)},Ct):()=>{})},[t,n,e]),null}function Ld(){const[n]=ke();return U.useEffect(()=>{if(!n.hasNodes([ln,nr]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),function(e){U.useEffect(()=>Qf(e),[e])}(n),null}const Dd=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?U.useLayoutEffect:U.useEffect;function Md({ignoreHistoryMergeTagChange:n=!0,ignoreSelectionChange:e=!1,onChange:t}){const[r]=ke();return Dd(()=>{if(t)return r.registerUpdateListener(({editorState:u,dirtyElements:i,dirtyLeaves:s,prevEditorState:o,tags:a})=>{e&&i.size===0&&s.size===0||n&&a.has("history-merge")||o.isEmpty()||t(u,r,a)})},[r,n,e,t]),null}const Rd=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?U.useLayoutEffect:U.useEffect;function Bd(n){return{initialValueFn:()=>n.isEditable(),subscribe:e=>n.registerEditableListener(e)}}function $d(){return function(n){const[e]=ke(),t=U.useMemo(()=>n(e),[e,n]),[r,u]=U.useState(()=>t.initialValueFn()),i=U.useRef(r);return Rd(()=>{const{initialValueFn:s,subscribe:o}=t,a=s();return i.current!==a&&(i.current=a,u(a)),o(l=>{i.current=l,u(l)})},[t,n]),r}(Bd)}function Fd(n){const e=window.location.origin,t=r=>{if(r.origin!==e)return;const u=n.getRootElement();if(document.activeElement!==u)return;const i=r.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const o=s.payload;if(o&&o.functionId==="makeChanges"){const a=o.args;if(a){const[l,f,h,c,d,p]=a;n.update(()=>{const m=$();if(I(m)){const g=m.anchor;let y=g.getNode(),b=0,_=0;if(M(y)&&l>=0&&f>=0&&(b=l,_=l+f,m.setTextNodeRange(y,b,y,_)),b===_&&h===""||(m.insertRawText(h),y=g.getNode()),M(y)){b=c,_=c+d;const w=y.getTextContentSize();b=b>w?w:b,_=_>w?w:_,m.setTextNodeRange(y,b,y,_)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",t,!0),()=>{window.removeEventListener("message",t,!0)}}function jd(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var nu=jd(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function qd(n,e=$()){return e==null&&nu(166),I(e)&&e.isCollapsed()||e.getNodes().length===0?"":kl(n,e)}function Ud(n,e=$()){return e==null&&nu(166),I(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(zd(n,e))}function Mo(n,e,t){const r=n.getData("application/x-lexical-editor");if(r)try{const s=JSON.parse(r);if(s.namespace===t._config.namespace&&Array.isArray(s.nodes))return Ro(t,Wd(s.nodes),e)}catch{}const u=n.getData("text/html");if(u)try{const s=new DOMParser().parseFromString(function(o){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:a=>a}).createHTML(o):o}(u),"text/html");return Ro(t,Nl(t,s),e)}catch{}const i=n.getData("text/plain")||n.getData("text/uri-list");if(i!=null)if(I(e)){const s=i.split(/(\r?\n|\t)/);s[s.length-1]===""&&s.pop();for(let o=0;o<s.length;o++){const a=$();if(I(a)){const l=s[o];l===`
12
+ `||l===`\r
13
+ `?a.insertParagraph():l===" "?a.insertNodes([Zn()]):a.insertText(l)}}}else e.insertRawText(i)}function Ro(n,e,t){n.dispatchCommand(f0,{nodes:e,selection:t})||t.insertNodes(e)}function Gl(n,e,t,r=[]){let u=e===null||t.isSelected(e);const i=C(t)&&t.excludeFromCopy("html");let s=t;if(e!==null){let l=ss(t);l=M(l)&&e!==null?Sl(e,l):l,s=l}const o=C(s)?s.getChildren():[],a=function(l){const f=l.exportJSON(),h=l.constructor;if(f.type!==h.getType()&&nu(58,h.name),C(l)){const c=f.children;Array.isArray(c)||nu(59,h.name)}return f}(s);if(M(s)){const l=s.__text;l.length>0?a.text=l:u=!1}for(let l=0;l<o.length;l++){const f=o[l],h=Gl(n,e,f,a.children);!u&&C(t)&&h&&t.extractWithChild(f,e,"clone")&&(u=!0)}if(u&&!i)r.push(a);else if(Array.isArray(a.children))for(let l=0;l<a.children.length;l++){const f=a.children[l];r.push(f)}return u}function zd(n,e){const t=[],r=ie().getChildren();for(let u=0;u<r.length;u++)Gl(n,e,r[u],t);return{namespace:n._config.namespace,nodes:t}}function Wd(n){const e=[];for(let t=0;t<n.length;t++){const r=n[t],u=Sf(r);M(u)&&Pf(u),e.push(u)}return e}let Ut=null;async function Bo(n,e,t){if(Ut!==null)return!1;if(e!==null)return new Promise((a,l)=>{n.update(()=>{a($o(n,e,t))})});const r=n.getRootElement(),u=n._window==null?window.document:n._window.document,i=Ne(n._window);if(r===null||i===null)return!1;const s=u.createElement("span");s.style.cssText="position: fixed; top: -1000px;",s.append(u.createTextNode("#")),r.append(s);const o=new Range;return o.setStart(s,0),o.setEnd(s,1),i.removeAllRanges(),i.addRange(o),new Promise((a,l)=>{const f=n.registerCommand(du,h=>(ft(h,ClipboardEvent)&&(f(),Ut!==null&&(window.clearTimeout(Ut),Ut=null),a($o(n,h,t))),!0),Cf);Ut=window.setTimeout(()=>{f(),Ut=null,a(!1)},50),u.execCommand("copy"),s.remove()})}function $o(n,e,t){if(t===void 0){const u=Ne(n._window);if(!u)return!1;const i=u.anchorNode,s=u.focusNode;if(i!==null&&s!==null&&!Gn(n,i,s))return!1;const o=$();if(o===null)return!1;t=Vd(o)}e.preventDefault();const r=e.clipboardData;return r!==null&&(Gd(r,t),!0)}const Hd=[["text/html",qd],["application/x-lexical-editor",Ud]];function Vd(n=$()){const e={"text/plain":n?n.getTextContent():""};if(n){const t=tf();for(const[r,u]of Hd){const i=u(t,n);i!==null&&(e[r]=i)}}return e}function Gd(n,e){for(const t in e){const r=e[t];r!==void 0&&n.setData(t,r)}}function Fo(n,e){if(document.caretRangeFromPoint!==void 0){const t=document.caretRangeFromPoint(n,e);return t===null?null:{node:t.startContainer,offset:t.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const t=document.caretPositionFromPoint(n,e);return t===null?null:{node:t.offsetNode,offset:t.offset}}return null}const cn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Kd=cn&&"documentMode"in document?document.documentMode:null,Jd=!(!cn||!("InputEvent"in window)||Kd)&&"getTargetRanges"in new window.InputEvent("input"),Xd=cn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),jo=cn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Zd=cn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Qd=cn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Zd,qo=Wn();function yr(n){let e=null;if(ft(n,DragEvent)?e=n.dataTransfer:ft(n,ClipboardEvent)&&(e=n.clipboardData),e===null)return[!1,[],!1];const t=e.types,r=t.includes("Files"),u=t.includes("text/html")||t.includes("text/plain");return[r,Array.from(e.files),u]}function Uo(n){const e=$();if(!I(e))return!1;const t=new Set,r=e.getNodes();for(let u=0;u<r.length;u++){const i=r[u],s=i.getKey();if(t.has(s))continue;const o=Tu(i,l=>C(l)&&!l.isInline());if(o===null)continue;const a=o.getKey();o.canIndent()&&!t.has(a)&&(t.add(a),n(o))}return t.size>0}function xr(n){const e=en(n);return te(e)}function Yd(n){return nt(n.registerCommand(va,e=>{const t=$();return!!Ie(t)&&(t.clear(),!0)},0),n.registerCommand(Nt,e=>{const t=$();return!!I(t)&&(t.deleteCharacter(e),!0)},Z),n.registerCommand(On,e=>{const t=$();return!!I(t)&&(t.deleteWord(e),!0)},Z),n.registerCommand(Pn,e=>{const t=$();return!!I(t)&&(t.deleteLine(e),!0)},Z),n.registerCommand(Xt,e=>{const t=$();if(typeof e=="string")t!==null&&t.insertText(e);else{if(t===null)return!1;const r=e.dataTransfer;if(r!=null)Mo(r,t,n);else if(I(t)){const u=e.data;return u&&t.insertText(u),!0}}return!0},Z),n.registerCommand(Qu,()=>{const e=$();return!!I(e)&&(e.removeText(),!0)},Z),n.registerCommand(Ue,e=>{const t=$();return!!I(t)&&(t.formatText(e),!0)},Z),n.registerCommand(x0,e=>{const t=$();if(!I(t)&&!Ie(t))return!1;const r=t.getNodes();for(const u of r){const i=Tu(u,s=>C(s)&&!s.isInline());i!==null&&i.setFormat(e)}return!0},Z),n.registerCommand(Jt,e=>{const t=$();return!!I(t)&&(t.insertLineBreak(e),!0)},Z),n.registerCommand(An,()=>{const e=$();return!!I(e)&&(e.insertParagraph(),!0)},Z),n.registerCommand(b0,()=>(pl([Zn()]),!0),Z),n.registerCommand(y0,()=>Uo(e=>{const t=e.getIndent();e.setIndent(t+1)}),Z),n.registerCommand(Rs,()=>Uo(e=>{const t=e.getIndent();t>0&&e.setIndent(t-1)}),Z),n.registerCommand(Ta,e=>{const t=$();if(Ie(t)&&!xr(e.target)){const r=t.getNodes();if(r.length>0)return r[0].selectPrevious(),!0}else if(I(t)){const r=In(t.focus,!0);if(!e.shiftKey&&te(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),e.preventDefault(),!0}return!1},Z),n.registerCommand(Ea,e=>{const t=$();if(Ie(t)){const r=t.getNodes();if(r.length>0)return r[0].selectNext(0,0),!0}else if(I(t)){if(function(u){const i=u.focus;return i.key==="root"&&i.offset===ie().getChildrenSize()}(t))return e.preventDefault(),!0;const r=In(t.focus,!1);if(!e.shiftKey&&te(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),e.preventDefault(),!0}return!1},Z),n.registerCommand(Sa,e=>{const t=$();if(Ie(t)){const r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectPrevious(),!0}if(!I(t))return!1;if(vo(t,!0)){const r=e.shiftKey;return e.preventDefault(),wo(t,r,!0),!0}return!1},Z),n.registerCommand(wa,e=>{const t=$();if(Ie(t)&&!xr(e.target)){const u=t.getNodes();if(u.length>0)return e.preventDefault(),u[0].selectNext(0,0),!0}if(!I(t))return!1;const r=e.shiftKey;return!!vo(t,!1)&&(e.preventDefault(),wo(t,r,!1),!0)},Z),n.registerCommand(Ca,e=>{if(xr(e.target))return!1;const t=$();if(!I(t))return!1;const{anchor:r}=t,u=r.getNode();return t.isCollapsed()&&r.offset===0&&!he(u)&&$f(u).getIndent()>0?(e.preventDefault(),n.dispatchCommand(Rs,void 0)):(!jo||navigator.language!=="ko-KR")&&(e.preventDefault(),n.dispatchCommand(Nt,!0))},Z),n.registerCommand(ka,e=>{if(xr(e.target))return!1;const t=$();return!!I(t)&&(e.preventDefault(),n.dispatchCommand(Nt,!1))},Z),n.registerCommand(Br,e=>{const t=$();if(!I(t))return!1;if(e!==null){if((jo||Xd||Qd)&&Jd)return!1;if(e.preventDefault(),e.shiftKey)return n.dispatchCommand(Jt,!1)}return n.dispatchCommand(An,void 0)},Z),n.registerCommand(Na,()=>{const e=$();return!!I(e)&&(n.blur(),!0)},Z),n.registerCommand(Aa,e=>{const[,t]=yr(e);if(t.length>0){const u=Fo(e.clientX,e.clientY);if(u!==null){const{offset:i,node:s}=u,o=en(s);if(o!==null){const a=xf();if(M(o))a.anchor.set(o.getKey(),i,"text"),a.focus.set(o.getKey(),i,"text");else{const f=o.getParentOrThrow().getKey(),h=o.getIndexWithinParent()+1;a.anchor.set(f,h,"element"),a.focus.set(f,h,"element")}const l=Fa(a);Me(l)}n.dispatchCommand(qo,t)}return e.preventDefault(),!0}const r=$();return!!I(r)},Z),n.registerCommand(Oa,e=>{const[t]=yr(e),r=$();return!(t&&!I(r))},Z),n.registerCommand(Pa,e=>{const[t]=yr(e),r=$();if(t&&!I(r))return!1;const u=Fo(e.clientX,e.clientY);if(u!==null){const i=en(u.node);te(i)&&e.preventDefault()}return!0},Z),n.registerCommand(Yu,()=>(Z0(),!0),Z),n.registerCommand(du,e=>(Bo(n,ft(e,ClipboardEvent)?e:null),!0),Z),n.registerCommand(zi,e=>(async function(t,r){await Bo(r,ft(t,ClipboardEvent)?t:null),r.update(()=>{const u=$();I(u)?u.removeText():Ie(u)&&u.getNodes().forEach(i=>i.remove())})}(e,n),!0),Z),n.registerCommand(fu,e=>{const[,t,r]=yr(e);return t.length>0&&!r?(n.dispatchCommand(qo,t),!0):Yi(e.target)?!1:$()!==null&&(function(u,i){u.preventDefault(),i.update(()=>{const s=$(),o=ft(u,InputEvent)||ft(u,KeyboardEvent)?null:u.clipboardData;o!=null&&s!==null&&Mo(o,s,i)},{tag:"paste"})}(e,n),!0)},Z))}const vi=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?U.useLayoutEffect:U.useEffect;function zo(n){return n.getEditorState().read(Hl(n.isComposing()))}function eh({contentEditable:n,placeholder:e=null,ErrorBoundary:t}){const[r]=ke(),u=function(i,s){const[o,a]=U.useState(()=>i.getDecorators());return vi(()=>i.registerDecoratorListener(l=>{Ms.flushSync(()=>{a(l)})}),[i]),U.useEffect(()=>{a(i.getDecorators())},[i]),U.useMemo(()=>{const l=[],f=Object.keys(o);for(let h=0;h<f.length;h++){const c=f[h],d=V.jsxRuntimeExports.jsx(s,{onError:m=>i._onError(m),children:V.jsxRuntimeExports.jsx(U.Suspense,{fallback:null,children:o[c]})}),p=i.getElementByKey(c);p!==null&&l.push(Ms.createPortal(d,p,c))}return l},[s,o,i])}(r,t);return function(i){vi(()=>nt(Yd(i),Fd(i)),[i])}(r),V.jsxRuntimeExports.jsxs(V.jsxRuntimeExports.Fragment,{children:[n,V.jsxRuntimeExports.jsx(th,{content:e}),u]})}function th({content:n}){const[e]=ke(),t=function(u){const[i,s]=U.useState(()=>zo(u));return vi(()=>{function o(){const a=zo(u);s(a)}return o(),nt(u.registerUpdateListener(()=>{o()}),u.registerEditableListener(()=>{o()}))},[u]),i}(e),r=$d();return t?typeof n=="function"?n(r):n:null}var Kl={},Rn={},ps={},Bn={},gs={};Object.defineProperty(gs,"__esModule",{value:!0});gs.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(n){return n.charCodeAt(0)}));var ms={};Object.defineProperty(ms,"__esModule",{value:!0});ms.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(n){return n.charCodeAt(0)}));var wi={};(function(n){var e;Object.defineProperty(n,"__esModule",{value:!0}),n.replaceCodePoint=n.fromCodePoint=void 0;var t=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);n.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(i){var s="";return i>65535&&(i-=65536,s+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),s+=String.fromCharCode(i),s};function r(i){var s;return i>=55296&&i<=57343||i>1114111?65533:(s=t.get(i))!==null&&s!==void 0?s:i}n.replaceCodePoint=r;function u(i){return(0,n.fromCodePoint)(r(i))}n.default=u})(wi);(function(n){var e=q&&q.__createBinding||(Object.create?function(v,N,A,B){B===void 0&&(B=A);var x=Object.getOwnPropertyDescriptor(N,A);(!x||("get"in x?!N.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return N[A]}}),Object.defineProperty(v,B,x)}:function(v,N,A,B){B===void 0&&(B=A),v[B]=N[A]}),t=q&&q.__setModuleDefault||(Object.create?function(v,N){Object.defineProperty(v,"default",{enumerable:!0,value:N})}:function(v,N){v.default=N}),r=q&&q.__importStar||function(v){if(v&&v.__esModule)return v;var N={};if(v!=null)for(var A in v)A!=="default"&&Object.prototype.hasOwnProperty.call(v,A)&&e(N,v,A);return t(N,v),N},u=q&&q.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(n,"__esModule",{value:!0}),n.decodeXML=n.decodeHTMLStrict=n.decodeHTMLAttribute=n.decodeHTML=n.determineBranch=n.EntityDecoder=n.DecodingMode=n.BinTrieFlags=n.fromCodePoint=n.replaceCodePoint=n.decodeCodePoint=n.xmlDecodeTree=n.htmlDecodeTree=void 0;var i=u(gs);n.htmlDecodeTree=i.default;var s=u(ms);n.xmlDecodeTree=s.default;var o=r(wi);n.decodeCodePoint=o.default;var a=wi;Object.defineProperty(n,"replaceCodePoint",{enumerable:!0,get:function(){return a.replaceCodePoint}}),Object.defineProperty(n,"fromCodePoint",{enumerable:!0,get:function(){return a.fromCodePoint}});var l;(function(v){v[v.NUM=35]="NUM",v[v.SEMI=59]="SEMI",v[v.EQUALS=61]="EQUALS",v[v.ZERO=48]="ZERO",v[v.NINE=57]="NINE",v[v.LOWER_A=97]="LOWER_A",v[v.LOWER_F=102]="LOWER_F",v[v.LOWER_X=120]="LOWER_X",v[v.LOWER_Z=122]="LOWER_Z",v[v.UPPER_A=65]="UPPER_A",v[v.UPPER_F=70]="UPPER_F",v[v.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var f=32,h;(function(v){v[v.VALUE_LENGTH=49152]="VALUE_LENGTH",v[v.BRANCH_LENGTH=16256]="BRANCH_LENGTH",v[v.JUMP_TABLE=127]="JUMP_TABLE"})(h=n.BinTrieFlags||(n.BinTrieFlags={}));function c(v){return v>=l.ZERO&&v<=l.NINE}function d(v){return v>=l.UPPER_A&&v<=l.UPPER_F||v>=l.LOWER_A&&v<=l.LOWER_F}function p(v){return v>=l.UPPER_A&&v<=l.UPPER_Z||v>=l.LOWER_A&&v<=l.LOWER_Z||c(v)}function m(v){return v===l.EQUALS||p(v)}var g;(function(v){v[v.EntityStart=0]="EntityStart",v[v.NumericStart=1]="NumericStart",v[v.NumericDecimal=2]="NumericDecimal",v[v.NumericHex=3]="NumericHex",v[v.NamedEntity=4]="NamedEntity"})(g||(g={}));var y;(function(v){v[v.Legacy=0]="Legacy",v[v.Strict=1]="Strict",v[v.Attribute=2]="Attribute"})(y=n.DecodingMode||(n.DecodingMode={}));var b=function(){function v(N,A,B){this.decodeTree=N,this.emitCodePoint=A,this.errors=B,this.state=g.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=y.Strict}return v.prototype.startEntity=function(N){this.decodeMode=N,this.state=g.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},v.prototype.write=function(N,A){switch(this.state){case g.EntityStart:return N.charCodeAt(A)===l.NUM?(this.state=g.NumericStart,this.consumed+=1,this.stateNumericStart(N,A+1)):(this.state=g.NamedEntity,this.stateNamedEntity(N,A));case g.NumericStart:return this.stateNumericStart(N,A);case g.NumericDecimal:return this.stateNumericDecimal(N,A);case g.NumericHex:return this.stateNumericHex(N,A);case g.NamedEntity:return this.stateNamedEntity(N,A)}},v.prototype.stateNumericStart=function(N,A){return A>=N.length?-1:(N.charCodeAt(A)|f)===l.LOWER_X?(this.state=g.NumericHex,this.consumed+=1,this.stateNumericHex(N,A+1)):(this.state=g.NumericDecimal,this.stateNumericDecimal(N,A))},v.prototype.addToNumericResult=function(N,A,B,x){if(A!==B){var O=B-A;this.result=this.result*Math.pow(x,O)+parseInt(N.substr(A,O),x),this.consumed+=O}},v.prototype.stateNumericHex=function(N,A){for(var B=A;A<N.length;){var x=N.charCodeAt(A);if(c(x)||d(x))A+=1;else return this.addToNumericResult(N,B,A,16),this.emitNumericEntity(x,3)}return this.addToNumericResult(N,B,A,16),-1},v.prototype.stateNumericDecimal=function(N,A){for(var B=A;A<N.length;){var x=N.charCodeAt(A);if(c(x))A+=1;else return this.addToNumericResult(N,B,A,10),this.emitNumericEntity(x,2)}return this.addToNumericResult(N,B,A,10),-1},v.prototype.emitNumericEntity=function(N,A){var B;if(this.consumed<=A)return(B=this.errors)===null||B===void 0||B.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(N===l.SEMI)this.consumed+=1;else if(this.decodeMode===y.Strict)return 0;return this.emitCodePoint((0,o.replaceCodePoint)(this.result),this.consumed),this.errors&&(N!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},v.prototype.stateNamedEntity=function(N,A){for(var B=this.decodeTree,x=B[this.treeIndex],O=(x&h.VALUE_LENGTH)>>14;A<N.length;A++,this.excess++){var k=N.charCodeAt(A);if(this.treeIndex=w(B,x,this.treeIndex+Math.max(1,O),k),this.treeIndex<0)return this.result===0||this.decodeMode===y.Attribute&&(O===0||m(k))?0:this.emitNotTerminatedNamedEntity();if(x=B[this.treeIndex],O=(x&h.VALUE_LENGTH)>>14,O!==0){if(k===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==y.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},v.prototype.emitNotTerminatedNamedEntity=function(){var N,A=this,B=A.result,x=A.decodeTree,O=(x[B]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(B,O,this.consumed),(N=this.errors)===null||N===void 0||N.missingSemicolonAfterCharacterReference(),this.consumed},v.prototype.emitNamedEntityData=function(N,A,B){var x=this.decodeTree;return this.emitCodePoint(A===1?x[N]&~h.VALUE_LENGTH:x[N+1],B),A===3&&this.emitCodePoint(x[N+2],B),B},v.prototype.end=function(){var N;switch(this.state){case g.NamedEntity:return this.result!==0&&(this.decodeMode!==y.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case g.NumericDecimal:return this.emitNumericEntity(0,2);case g.NumericHex:return this.emitNumericEntity(0,3);case g.NumericStart:return(N=this.errors)===null||N===void 0||N.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case g.EntityStart:return 0}},v}();n.EntityDecoder=b;function _(v){var N="",A=new b(v,function(B){return N+=(0,o.fromCodePoint)(B)});return function(x,O){for(var k=0,F=0;(F=x.indexOf("&",F))>=0;){N+=x.slice(k,F),A.startEntity(O);var Y=A.write(x,F+1);if(Y<0){k=F+A.end();break}k=F+Y,F=Y===0?k+1:k}var ne=N+x.slice(k);return N="",ne}}function w(v,N,A,B){var x=(N&h.BRANCH_LENGTH)>>7,O=N&h.JUMP_TABLE;if(x===0)return O!==0&&B===O?A:-1;if(O){var k=B-O;return k<0||k>=x?-1:v[A+k]-1}for(var F=A,Y=F+x-1;F<=Y;){var ne=F+Y>>>1,qt=v[ne];if(qt<B)F=ne+1;else if(qt>B)Y=ne-1;else return v[ne+x]}return-1}n.determineBranch=w;var T=_(i.default),S=_(s.default);function P(v,N){return N===void 0&&(N=y.Legacy),T(v,N)}n.decodeHTML=P;function E(v){return T(v,y.Attribute)}n.decodeHTMLAttribute=E;function D(v){return T(v,y.Strict)}n.decodeHTMLStrict=D;function j(v){return S(v,y.Strict)}n.decodeXML=j})(Bn);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.QuoteType=void 0;var e=Bn,t;(function(c){c[c.Tab=9]="Tab",c[c.NewLine=10]="NewLine",c[c.FormFeed=12]="FormFeed",c[c.CarriageReturn=13]="CarriageReturn",c[c.Space=32]="Space",c[c.ExclamationMark=33]="ExclamationMark",c[c.Number=35]="Number",c[c.Amp=38]="Amp",c[c.SingleQuote=39]="SingleQuote",c[c.DoubleQuote=34]="DoubleQuote",c[c.Dash=45]="Dash",c[c.Slash=47]="Slash",c[c.Zero=48]="Zero",c[c.Nine=57]="Nine",c[c.Semi=59]="Semi",c[c.Lt=60]="Lt",c[c.Eq=61]="Eq",c[c.Gt=62]="Gt",c[c.Questionmark=63]="Questionmark",c[c.UpperA=65]="UpperA",c[c.LowerA=97]="LowerA",c[c.UpperF=70]="UpperF",c[c.LowerF=102]="LowerF",c[c.UpperZ=90]="UpperZ",c[c.LowerZ=122]="LowerZ",c[c.LowerX=120]="LowerX",c[c.OpeningSquareBracket=91]="OpeningSquareBracket"})(t||(t={}));var r;(function(c){c[c.Text=1]="Text",c[c.BeforeTagName=2]="BeforeTagName",c[c.InTagName=3]="InTagName",c[c.InSelfClosingTag=4]="InSelfClosingTag",c[c.BeforeClosingTagName=5]="BeforeClosingTagName",c[c.InClosingTagName=6]="InClosingTagName",c[c.AfterClosingTagName=7]="AfterClosingTagName",c[c.BeforeAttributeName=8]="BeforeAttributeName",c[c.InAttributeName=9]="InAttributeName",c[c.AfterAttributeName=10]="AfterAttributeName",c[c.BeforeAttributeValue=11]="BeforeAttributeValue",c[c.InAttributeValueDq=12]="InAttributeValueDq",c[c.InAttributeValueSq=13]="InAttributeValueSq",c[c.InAttributeValueNq=14]="InAttributeValueNq",c[c.BeforeDeclaration=15]="BeforeDeclaration",c[c.InDeclaration=16]="InDeclaration",c[c.InProcessingInstruction=17]="InProcessingInstruction",c[c.BeforeComment=18]="BeforeComment",c[c.CDATASequence=19]="CDATASequence",c[c.InSpecialComment=20]="InSpecialComment",c[c.InCommentLike=21]="InCommentLike",c[c.BeforeSpecialS=22]="BeforeSpecialS",c[c.SpecialStartSequence=23]="SpecialStartSequence",c[c.InSpecialTag=24]="InSpecialTag",c[c.BeforeEntity=25]="BeforeEntity",c[c.BeforeNumericEntity=26]="BeforeNumericEntity",c[c.InNamedEntity=27]="InNamedEntity",c[c.InNumericEntity=28]="InNumericEntity",c[c.InHexEntity=29]="InHexEntity"})(r||(r={}));function u(c){return c===t.Space||c===t.NewLine||c===t.Tab||c===t.FormFeed||c===t.CarriageReturn}function i(c){return c===t.Slash||c===t.Gt||u(c)}function s(c){return c>=t.Zero&&c<=t.Nine}function o(c){return c>=t.LowerA&&c<=t.LowerZ||c>=t.UpperA&&c<=t.UpperZ}function a(c){return c>=t.UpperA&&c<=t.UpperF||c>=t.LowerA&&c<=t.LowerF}var l;(function(c){c[c.NoValue=0]="NoValue",c[c.Unquoted=1]="Unquoted",c[c.Single=2]="Single",c[c.Double=3]="Double"})(l=n.QuoteType||(n.QuoteType={}));var f={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function c(d,p){var m=d.xmlMode,g=m===void 0?!1:m,y=d.decodeEntities,b=y===void 0?!0:y;this.cbs=p,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=g,this.decodeEntities=b,this.entityTrie=g?e.xmlDecodeTree:e.htmlDecodeTree}return c.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},c.prototype.write=function(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()},c.prototype.end=function(){this.running&&this.finish()},c.prototype.pause=function(){this.running=!1},c.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},c.prototype.getIndex=function(){return this.index},c.prototype.getSectionStart=function(){return this.sectionStart},c.prototype.stateText=function(d){d===t.Lt||!this.decodeEntities&&this.fastForwardTo(t.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&d===t.Amp&&(this.state=r.BeforeEntity)},c.prototype.stateSpecialStartSequence=function(d){var p=this.sequenceIndex===this.currentSequence.length,m=p?i(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!m)this.isSpecial=!1;else if(!p){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(d)},c.prototype.stateInSpecialTag=function(d){if(this.sequenceIndex===this.currentSequence.length){if(d===t.Gt||u(d)){var p=this.index-this.currentSequence.length;if(this.sectionStart<p){var m=this.index;this.index=p,this.cbs.ontext(this.sectionStart,p),this.index=m}this.isSpecial=!1,this.sectionStart=p+2,this.stateInClosingTagName(d);return}this.sequenceIndex=0}(d|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===f.TitleEnd?this.decodeEntities&&d===t.Amp&&(this.state=r.BeforeEntity):this.fastForwardTo(t.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(d===t.Lt)},c.prototype.stateCDATASequence=function(d){d===f.Cdata[this.sequenceIndex]?++this.sequenceIndex===f.Cdata.length&&(this.state=r.InCommentLike,this.currentSequence=f.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=r.InDeclaration,this.stateInDeclaration(d))},c.prototype.fastForwardTo=function(d){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===d)return!0;return this.index=this.buffer.length+this.offset-1,!1},c.prototype.stateInCommentLike=function(d){d===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=r.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):d!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},c.prototype.isTagStartChar=function(d){return this.xmlMode?!i(d):o(d)},c.prototype.startSpecial=function(d,p){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=p,this.state=r.SpecialStartSequence},c.prototype.stateBeforeTagName=function(d){if(d===t.ExclamationMark)this.state=r.BeforeDeclaration,this.sectionStart=this.index+1;else if(d===t.Questionmark)this.state=r.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(d)){var p=d|32;this.sectionStart=this.index,!this.xmlMode&&p===f.TitleEnd[2]?this.startSpecial(f.TitleEnd,3):this.state=!this.xmlMode&&p===f.ScriptEnd[2]?r.BeforeSpecialS:r.InTagName}else d===t.Slash?this.state=r.BeforeClosingTagName:(this.state=r.Text,this.stateText(d))},c.prototype.stateInTagName=function(d){i(d)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d))},c.prototype.stateBeforeClosingTagName=function(d){u(d)||(d===t.Gt?this.state=r.Text:(this.state=this.isTagStartChar(d)?r.InClosingTagName:r.InSpecialComment,this.sectionStart=this.index))},c.prototype.stateInClosingTagName=function(d){(d===t.Gt||u(d))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterClosingTagName,this.stateAfterClosingTagName(d))},c.prototype.stateAfterClosingTagName=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1)},c.prototype.stateBeforeAttributeName=function(d){d===t.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=r.InSpecialTag,this.sequenceIndex=0):this.state=r.Text,this.baseState=this.state,this.sectionStart=this.index+1):d===t.Slash?this.state=r.InSelfClosingTag:u(d)||(this.state=r.InAttributeName,this.sectionStart=this.index)},c.prototype.stateInSelfClosingTag=function(d){d===t.Gt?(this.cbs.onselfclosingtag(this.index),this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1,this.isSpecial=!1):u(d)||(this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d))},c.prototype.stateInAttributeName=function(d){(d===t.Eq||i(d))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterAttributeName,this.stateAfterAttributeName(d))},c.prototype.stateAfterAttributeName=function(d){d===t.Eq?this.state=r.BeforeAttributeValue:d===t.Slash||d===t.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d)):u(d)||(this.cbs.onattribend(l.NoValue,this.index),this.state=r.InAttributeName,this.sectionStart=this.index)},c.prototype.stateBeforeAttributeValue=function(d){d===t.DoubleQuote?(this.state=r.InAttributeValueDq,this.sectionStart=this.index+1):d===t.SingleQuote?(this.state=r.InAttributeValueSq,this.sectionStart=this.index+1):u(d)||(this.sectionStart=this.index,this.state=r.InAttributeValueNq,this.stateInAttributeValueNoQuotes(d))},c.prototype.handleInAttributeValue=function(d,p){d===p||!this.decodeEntities&&this.fastForwardTo(p)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(p===t.DoubleQuote?l.Double:l.Single,this.index),this.state=r.BeforeAttributeName):this.decodeEntities&&d===t.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},c.prototype.stateInAttributeValueDoubleQuotes=function(d){this.handleInAttributeValue(d,t.DoubleQuote)},c.prototype.stateInAttributeValueSingleQuotes=function(d){this.handleInAttributeValue(d,t.SingleQuote)},c.prototype.stateInAttributeValueNoQuotes=function(d){u(d)||d===t.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d)):this.decodeEntities&&d===t.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},c.prototype.stateBeforeDeclaration=function(d){d===t.OpeningSquareBracket?(this.state=r.CDATASequence,this.sequenceIndex=0):this.state=d===t.Dash?r.BeforeComment:r.InDeclaration},c.prototype.stateInDeclaration=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},c.prototype.stateInProcessingInstruction=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},c.prototype.stateBeforeComment=function(d){d===t.Dash?(this.state=r.InCommentLike,this.currentSequence=f.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=r.InDeclaration},c.prototype.stateInSpecialComment=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=r.Text,this.sectionStart=this.index+1)},c.prototype.stateBeforeSpecialS=function(d){var p=d|32;p===f.ScriptEnd[3]?this.startSpecial(f.ScriptEnd,4):p===f.StyleEnd[3]?this.startSpecial(f.StyleEnd,4):(this.state=r.InTagName,this.stateInTagName(d))},c.prototype.stateBeforeEntity=function(d){this.entityExcess=1,this.entityResult=0,d===t.Number?this.state=r.BeforeNumericEntity:d===t.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=r.InNamedEntity,this.stateInNamedEntity(d))},c.prototype.stateInNamedEntity=function(d){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,d),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var p=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(p){var m=(p>>14)-1;if(!this.allowLegacyEntity()&&d!==t.Semi)this.trieIndex+=m;else{var g=this.index-this.entityExcess+1;g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.entityResult=this.trieIndex,this.trieIndex+=m,this.entityExcess=0,this.sectionStart=this.index+1,m===0&&this.emitNamedEntity()}}},c.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var d=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(d){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},c.prototype.stateBeforeNumericEntity=function(d){(d|32)===t.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(d))},c.prototype.emitNumericEntity=function(d){var p=this.index-this.entityExcess-1,m=p+2+ +(this.state===r.InHexEntity);m!==this.index&&(p>this.sectionStart&&this.emitPartial(this.sectionStart,p),this.sectionStart=this.index+Number(d),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},c.prototype.stateInNumericEntity=function(d){d===t.Semi?this.emitNumericEntity(!0):s(d)?(this.entityResult=this.entityResult*10+(d-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},c.prototype.stateInHexEntity=function(d){d===t.Semi?this.emitNumericEntity(!0):s(d)?(this.entityResult=this.entityResult*16+(d-t.Zero),this.entityExcess++):a(d)?(this.entityResult=this.entityResult*16+((d|32)-t.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},c.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},c.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},c.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},c.prototype.parse=function(){for(;this.shouldContinue();){var d=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case r.Text:{this.stateText(d);break}case r.SpecialStartSequence:{this.stateSpecialStartSequence(d);break}case r.InSpecialTag:{this.stateInSpecialTag(d);break}case r.CDATASequence:{this.stateCDATASequence(d);break}case r.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(d);break}case r.InAttributeName:{this.stateInAttributeName(d);break}case r.InCommentLike:{this.stateInCommentLike(d);break}case r.InSpecialComment:{this.stateInSpecialComment(d);break}case r.BeforeAttributeName:{this.stateBeforeAttributeName(d);break}case r.InTagName:{this.stateInTagName(d);break}case r.InClosingTagName:{this.stateInClosingTagName(d);break}case r.BeforeTagName:{this.stateBeforeTagName(d);break}case r.AfterAttributeName:{this.stateAfterAttributeName(d);break}case r.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(d);break}case r.BeforeAttributeValue:{this.stateBeforeAttributeValue(d);break}case r.BeforeClosingTagName:{this.stateBeforeClosingTagName(d);break}case r.AfterClosingTagName:{this.stateAfterClosingTagName(d);break}case r.BeforeSpecialS:{this.stateBeforeSpecialS(d);break}case r.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(d);break}case r.InSelfClosingTag:{this.stateInSelfClosingTag(d);break}case r.InDeclaration:{this.stateInDeclaration(d);break}case r.BeforeDeclaration:{this.stateBeforeDeclaration(d);break}case r.BeforeComment:{this.stateBeforeComment(d);break}case r.InProcessingInstruction:{this.stateInProcessingInstruction(d);break}case r.InNamedEntity:{this.stateInNamedEntity(d);break}case r.BeforeEntity:{this.stateBeforeEntity(d);break}case r.InHexEntity:{this.stateInHexEntity(d);break}case r.InNumericEntity:{this.stateInNumericEntity(d);break}default:this.stateBeforeNumericEntity(d)}this.index++}this.cleanup()},c.prototype.finish=function(){this.state===r.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},c.prototype.handleTrailingData=function(){var d=this.buffer.length+this.offset;this.state===r.InCommentLike?this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,0):this.state===r.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InTagName||this.state===r.BeforeAttributeName||this.state===r.BeforeAttributeValue||this.state===r.AfterAttributeName||this.state===r.InAttributeName||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueDq||this.state===r.InAttributeValueNq||this.state===r.InClosingTagName||this.cbs.ontext(this.sectionStart,d)},c.prototype.emitPartial=function(d,p){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribdata(d,p):this.cbs.ontext(d,p)},c.prototype.emitCodePoint=function(d){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribentity(d):this.cbs.ontextentity(d)},c}();n.default=h})(ps);var nh=q&&q.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var u=Object.getOwnPropertyDescriptor(e,t);(!u||("get"in u?!e.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,u)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),rh=q&&q.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),uh=q&&q.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&nh(e,n,t);return rh(e,n),e};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.Parser=void 0;var _r=uh(ps),Wo=Bn,zt=new Set(["input","option","optgroup","select","button","datalist","textarea"]),ee=new Set(["p"]),Ho=new Set(["thead","tbody"]),Vo=new Set(["dd","dt"]),Go=new Set(["rt","rp"]),ih=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",ee],["h1",ee],["h2",ee],["h3",ee],["h4",ee],["h5",ee],["h6",ee],["select",zt],["input",zt],["output",zt],["button",zt],["datalist",zt],["textarea",zt],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Vo],["dt",Vo],["address",ee],["article",ee],["aside",ee],["blockquote",ee],["details",ee],["div",ee],["dl",ee],["fieldset",ee],["figcaption",ee],["figure",ee],["footer",ee],["form",ee],["header",ee],["hr",ee],["main",ee],["nav",ee],["ol",ee],["pre",ee],["section",ee],["table",ee],["ul",ee],["rt",Go],["rp",Go],["tbody",Ho],["tfoot",Ho]]),sh=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Ko=new Set(["math","svg"]),Jo=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),oh=/\s|\//,ah=function(){function n(e,t){t===void 0&&(t={});var r,u,i,s,o;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(r=t.lowerCaseTags)!==null&&r!==void 0?r:!t.xmlMode,this.lowerCaseAttributeNames=(u=t.lowerCaseAttributeNames)!==null&&u!==void 0?u:!t.xmlMode,this.tokenizer=new((i=t.Tokenizer)!==null&&i!==void 0?i:_r.default)(this.options,this),(o=(s=this.cbs).onparserinit)===null||o===void 0||o.call(s,this)}return n.prototype.ontext=function(e,t){var r,u,i=this.getSlice(e,t);this.endIndex=t-1,(u=(r=this.cbs).ontext)===null||u===void 0||u.call(r,i),this.startIndex=t},n.prototype.ontextentity=function(e){var t,r,u=this.tokenizer.getSectionStart();this.endIndex=u-1,(r=(t=this.cbs).ontext)===null||r===void 0||r.call(t,(0,Wo.fromCodePoint)(e)),this.startIndex=u},n.prototype.isVoidElement=function(e){return!this.options.xmlMode&&sh.has(e)},n.prototype.onopentagname=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)},n.prototype.emitOpenTag=function(e){var t,r,u,i;this.openTagStart=this.startIndex,this.tagname=e;var s=!this.options.xmlMode&&ih.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){var o=this.stack.pop();(r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,o,!0)}this.isVoidElement(e)||(this.stack.push(e),Ko.has(e)?this.foreignContext.push(!0):Jo.has(e)&&this.foreignContext.push(!1)),(i=(u=this.cbs).onopentagname)===null||i===void 0||i.call(u,e),this.cbs.onopentag&&(this.attribs={})},n.prototype.endOpenTag=function(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&((r=(t=this.cbs).onopentag)===null||r===void 0||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},n.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},n.prototype.onclosetag=function(e,t){var r,u,i,s,o,a;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(Ko.has(l)||Jo.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((u=(r=this.cbs).onopentagname)===null||u===void 0||u.call(r,"br"),(s=(i=this.cbs).onopentag)===null||s===void 0||s.call(i,"br",{},!0),(a=(o=this.cbs).onclosetag)===null||a===void 0||a.call(o,"br",!1));else{var f=this.stack.lastIndexOf(l);if(f!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-f;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=f;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},n.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},n.prototype.closeCurrentTag=function(e){var t,r,u=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===u&&((r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,u,!e),this.stack.pop())},n.prototype.onattribname=function(e,t){this.startIndex=e;var r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},n.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},n.prototype.onattribentity=function(e){this.attribvalue+=(0,Wo.fromCodePoint)(e)},n.prototype.onattribend=function(e,t){var r,u;this.endIndex=t,(u=(r=this.cbs).onattribute)===null||u===void 0||u.call(r,this.attribname,this.attribvalue,e===_r.QuoteType.Double?'"':e===_r.QuoteType.Single?"'":e===_r.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},n.prototype.getInstructionName=function(e){var t=e.search(oh),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},n.prototype.ondeclaration=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var u=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(u),"!".concat(r))}this.startIndex=t+1},n.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var u=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(u),"?".concat(r))}this.startIndex=t+1},n.prototype.oncomment=function(e,t,r){var u,i,s,o;this.endIndex=t,(i=(u=this.cbs).oncomment)===null||i===void 0||i.call(u,this.getSlice(e,t-r)),(o=(s=this.cbs).oncommentend)===null||o===void 0||o.call(s),this.startIndex=t+1},n.prototype.oncdata=function(e,t,r){var u,i,s,o,a,l,f,h,c,d;this.endIndex=t;var p=this.getSlice(e,t-r);this.options.xmlMode||this.options.recognizeCDATA?((i=(u=this.cbs).oncdatastart)===null||i===void 0||i.call(u),(o=(s=this.cbs).ontext)===null||o===void 0||o.call(s,p),(l=(a=this.cbs).oncdataend)===null||l===void 0||l.call(a)):((h=(f=this.cbs).oncomment)===null||h===void 0||h.call(f,"[CDATA[".concat(p,"]]")),(d=(c=this.cbs).oncommentend)===null||d===void 0||d.call(c)),this.startIndex=t+1},n.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(t=(e=this.cbs).onend)===null||t===void 0||t.call(e)},n.prototype.reset=function(){var e,t,r,u;(t=(e=this.cbs).onreset)===null||t===void 0||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(u=(r=this.cbs).onparserinit)===null||u===void 0||u.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},n.prototype.parseComplete=function(e){this.reset(),this.end(e)},n.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r},n.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},n.prototype.write=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},n.prototype.end=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},n.prototype.pause=function(){this.tokenizer.pause()},n.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},n.prototype.parseChunk=function(e){this.write(e)},n.prototype.done=function(e){this.end(e)},n}();Rn.Parser=ah;var Ye={},fn={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.Doctype=n.CDATA=n.Tag=n.Style=n.Script=n.Comment=n.Directive=n.Text=n.Root=n.isTag=n.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=n.ElementType||(n.ElementType={}));function t(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}n.isTag=t,n.Root=e.Root,n.Text=e.Text,n.Directive=e.Directive,n.Comment=e.Comment,n.Script=e.Script,n.Style=e.Style,n.Tag=e.Tag,n.CDATA=e.CDATA,n.Doctype=e.Doctype})(fn);var H={},xt=q&&q.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var i in u)Object.prototype.hasOwnProperty.call(u,i)&&(r[i]=u[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),kn=q&&q.__assign||function(){return kn=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u])}return n},kn.apply(this,arguments)};Object.defineProperty(H,"__esModule",{value:!0});H.cloneNode=H.hasChildren=H.isDocument=H.isDirective=H.isComment=H.isText=H.isCDATA=H.isTag=H.Element=H.Document=H.CDATA=H.NodeWithChildren=H.ProcessingInstruction=H.Comment=H.Text=H.DataNode=H.Node=void 0;var ve=fn,bs=function(){function n(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(n.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),n.prototype.cloneNode=function(e){return e===void 0&&(e=!1),ys(this,e)},n}();H.Node=bs;var Cu=function(n){xt(e,n);function e(t){var r=n.call(this)||this;return r.data=t,r}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),e}(bs);H.DataNode=Cu;var Jl=function(n){xt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=ve.ElementType.Text,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(Cu);H.Text=Jl;var Xl=function(n){xt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=ve.ElementType.Comment,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(Cu);H.Comment=Xl;var Zl=function(n){xt(e,n);function e(t,r){var u=n.call(this,r)||this;return u.name=t,u.type=ve.ElementType.Directive,u}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(Cu);H.ProcessingInstruction=Zl;var Nu=function(n){xt(e,n);function e(t){var r=n.call(this)||this;return r.children=t,r}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(bs);H.NodeWithChildren=Nu;var Ql=function(n){xt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=ve.ElementType.CDATA,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(Nu);H.CDATA=Ql;var Yl=function(n){xt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=ve.ElementType.Root,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(Nu);H.Document=Yl;var ec=function(n){xt(e,n);function e(t,r,u,i){u===void 0&&(u=[]),i===void 0&&(i=t==="script"?ve.ElementType.Script:t==="style"?ve.ElementType.Style:ve.ElementType.Tag);var s=n.call(this,u)||this;return s.name=t,s.attribs=r,s.type=i,s}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(r){var u,i;return{name:r,value:t.attribs[r],namespace:(u=t["x-attribsNamespace"])===null||u===void 0?void 0:u[r],prefix:(i=t["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),e}(Nu);H.Element=ec;function tc(n){return(0,ve.isTag)(n)}H.isTag=tc;function nc(n){return n.type===ve.ElementType.CDATA}H.isCDATA=nc;function rc(n){return n.type===ve.ElementType.Text}H.isText=rc;function uc(n){return n.type===ve.ElementType.Comment}H.isComment=uc;function ic(n){return n.type===ve.ElementType.Directive}H.isDirective=ic;function sc(n){return n.type===ve.ElementType.Root}H.isDocument=sc;function lh(n){return Object.prototype.hasOwnProperty.call(n,"children")}H.hasChildren=lh;function ys(n,e){e===void 0&&(e=!1);var t;if(rc(n))t=new Jl(n.data);else if(uc(n))t=new Xl(n.data);else if(tc(n)){var r=e?Gu(n.children):[],u=new ec(n.name,kn({},n.attribs),r);r.forEach(function(a){return a.parent=u}),n.namespace!=null&&(u.namespace=n.namespace),n["x-attribsNamespace"]&&(u["x-attribsNamespace"]=kn({},n["x-attribsNamespace"])),n["x-attribsPrefix"]&&(u["x-attribsPrefix"]=kn({},n["x-attribsPrefix"])),t=u}else if(nc(n)){var r=e?Gu(n.children):[],i=new Ql(r);r.forEach(function(l){return l.parent=i}),t=i}else if(sc(n)){var r=e?Gu(n.children):[],s=new Yl(r);r.forEach(function(l){return l.parent=s}),n["x-mode"]&&(s["x-mode"]=n["x-mode"]),t=s}else if(ic(n)){var o=new Zl(n.name,n.data);n["x-name"]!=null&&(o["x-name"]=n["x-name"],o["x-publicId"]=n["x-publicId"],o["x-systemId"]=n["x-systemId"]),t=o}else throw new Error("Not implemented yet: ".concat(n.type));return t.startIndex=n.startIndex,t.endIndex=n.endIndex,n.sourceCodeLocation!=null&&(t.sourceCodeLocation=n.sourceCodeLocation),t}H.cloneNode=ys;function Gu(n){for(var e=n.map(function(r){return ys(r,!0)}),t=1;t<e.length;t++)e[t].prev=e[t-1],e[t-1].next=e[t];return e}(function(n){var e=q&&q.__createBinding||(Object.create?function(o,a,l,f){f===void 0&&(f=l);var h=Object.getOwnPropertyDescriptor(a,l);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(o,f,h)}:function(o,a,l,f){f===void 0&&(f=l),o[f]=a[l]}),t=q&&q.__exportStar||function(o,a){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&e(a,o,l)};Object.defineProperty(n,"__esModule",{value:!0}),n.DomHandler=void 0;var r=fn,u=H;t(H,n);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function o(a,l,f){this.dom=[],this.root=new u.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(f=l,l=i),typeof a=="object"&&(l=a,a=void 0),this.callback=a??null,this.options=l??i,this.elementCB=f??null}return o.prototype.onparserinit=function(a){this.parser=a},o.prototype.onreset=function(){this.dom=[],this.root=new u.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},o.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},o.prototype.onerror=function(a){this.handleCallback(a)},o.prototype.onclosetag=function(){this.lastNode=null;var a=this.tagStack.pop();this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)},o.prototype.onopentag=function(a,l){var f=this.options.xmlMode?r.ElementType.Tag:void 0,h=new u.Element(a,l,void 0,f);this.addNode(h),this.tagStack.push(h)},o.prototype.ontext=function(a){var l=this.lastNode;if(l&&l.type===r.ElementType.Text)l.data+=a,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var f=new u.Text(a);this.addNode(f),this.lastNode=f}},o.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=a;return}var l=new u.Comment(a);this.addNode(l),this.lastNode=l},o.prototype.oncommentend=function(){this.lastNode=null},o.prototype.oncdatastart=function(){var a=new u.Text(""),l=new u.CDATA([a]);this.addNode(l),a.parent=l,this.lastNode=a},o.prototype.oncdataend=function(){this.lastNode=null},o.prototype.onprocessinginstruction=function(a,l){var f=new u.ProcessingInstruction(a,l);this.addNode(f)},o.prototype.handleCallback=function(a){if(typeof this.callback=="function")this.callback(a,this.dom);else if(a)throw a},o.prototype.addNode=function(a){var l=this.tagStack[this.tagStack.length-1],f=l.children[l.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),l.children.push(a),f&&(a.prev=f,f.next=a),a.parent=l,this.lastNode=null},o}();n.DomHandler=s,n.default=s})(Ye);var Lr={},_t={},rr={},oc={},Dt={},xs={};Object.defineProperty(xs,"__esModule",{value:!0});function vr(n){for(var e=1;e<n.length;e++)n[e][0]+=n[e-1][0]+1;return n}xs.default=new Map(vr([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(vr([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(vr([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(vr([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var ru={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.escapeText=n.escapeAttribute=n.escapeUTF8=n.escape=n.encodeXML=n.getCodePoint=n.xmlReplacer=void 0,n.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);n.getCodePoint=String.prototype.codePointAt!=null?function(u,i){return u.codePointAt(i)}:function(u,i){return(u.charCodeAt(i)&64512)===55296?(u.charCodeAt(i)-55296)*1024+u.charCodeAt(i+1)-56320+65536:u.charCodeAt(i)};function t(u){for(var i="",s=0,o;(o=n.xmlReplacer.exec(u))!==null;){var a=o.index,l=u.charCodeAt(a),f=e.get(l);f!==void 0?(i+=u.substring(s,a)+f,s=a+1):(i+="".concat(u.substring(s,a),"&#x").concat((0,n.getCodePoint)(u,a).toString(16),";"),s=n.xmlReplacer.lastIndex+=+((l&64512)===55296))}return i+u.substr(s)}n.encodeXML=t,n.escape=t;function r(u,i){return function(o){for(var a,l=0,f="";a=u.exec(o);)l!==a.index&&(f+=o.substring(l,a.index)),f+=i.get(a[0].charCodeAt(0)),l=a.index+1;return f+o.substring(l)}}n.escapeUTF8=r(/[&<>'"]/g,e),n.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),n.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(ru);var ch=q&&q.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.encodeNonAsciiHTML=Dt.encodeHTML=void 0;var fh=ch(xs),ac=ru,dh=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function hh(n){return lc(dh,n)}Dt.encodeHTML=hh;function ph(n){return lc(ac.xmlReplacer,n)}Dt.encodeNonAsciiHTML=ph;function lc(n,e){for(var t="",r=0,u;(u=n.exec(e))!==null;){var i=u.index;t+=e.substring(r,i);var s=e.charCodeAt(i),o=fh.default.get(s);if(typeof o=="object"){if(i+1<e.length){var a=e.charCodeAt(i+1),l=typeof o.n=="number"?o.n===a?o.o:void 0:o.n.get(a);if(l!==void 0){t+=l,r=n.lastIndex+=1;continue}}o=o.v}if(o!==void 0)t+=o,r=i+1;else{var f=(0,ac.getCodePoint)(e,i);t+="&#x".concat(f.toString(16),";"),r=n.lastIndex+=+(f!==s)}}return t+e.substr(r)}(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.decodeXMLStrict=n.decodeHTML5Strict=n.decodeHTML4Strict=n.decodeHTML5=n.decodeHTML4=n.decodeHTMLAttribute=n.decodeHTMLStrict=n.decodeHTML=n.decodeXML=n.DecodingMode=n.EntityDecoder=n.encodeHTML5=n.encodeHTML4=n.encodeNonAsciiHTML=n.encodeHTML=n.escapeText=n.escapeAttribute=n.escapeUTF8=n.escape=n.encodeXML=n.encode=n.decodeStrict=n.decode=n.EncodingMode=n.EntityLevel=void 0;var e=Bn,t=Dt,r=ru,u;(function(c){c[c.XML=0]="XML",c[c.HTML=1]="HTML"})(u=n.EntityLevel||(n.EntityLevel={}));var i;(function(c){c[c.UTF8=0]="UTF8",c[c.ASCII=1]="ASCII",c[c.Extensive=2]="Extensive",c[c.Attribute=3]="Attribute",c[c.Text=4]="Text"})(i=n.EncodingMode||(n.EncodingMode={}));function s(c,d){d===void 0&&(d=u.XML);var p=typeof d=="number"?d:d.level;if(p===u.HTML){var m=typeof d=="object"?d.mode:void 0;return(0,e.decodeHTML)(c,m)}return(0,e.decodeXML)(c)}n.decode=s;function o(c,d){var p;d===void 0&&(d=u.XML);var m=typeof d=="number"?{level:d}:d;return(p=m.mode)!==null&&p!==void 0||(m.mode=e.DecodingMode.Strict),s(c,m)}n.decodeStrict=o;function a(c,d){d===void 0&&(d=u.XML);var p=typeof d=="number"?{level:d}:d;return p.mode===i.UTF8?(0,r.escapeUTF8)(c):p.mode===i.Attribute?(0,r.escapeAttribute)(c):p.mode===i.Text?(0,r.escapeText)(c):p.level===u.HTML?p.mode===i.ASCII?(0,t.encodeNonAsciiHTML)(c):(0,t.encodeHTML)(c):(0,r.encodeXML)(c)}n.encode=a;var l=ru;Object.defineProperty(n,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(n,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(n,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(n,"escapeAttribute",{enumerable:!0,get:function(){return l.escapeAttribute}}),Object.defineProperty(n,"escapeText",{enumerable:!0,get:function(){return l.escapeText}});var f=Dt;Object.defineProperty(n,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(n,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(n,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(n,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var h=Bn;Object.defineProperty(n,"EntityDecoder",{enumerable:!0,get:function(){return h.EntityDecoder}}),Object.defineProperty(n,"DecodingMode",{enumerable:!0,get:function(){return h.DecodingMode}}),Object.defineProperty(n,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(n,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(n,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(n,"decodeHTMLAttribute",{enumerable:!0,get:function(){return h.decodeHTMLAttribute}}),Object.defineProperty(n,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(n,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(n,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(n,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(n,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(oc);var nn={};Object.defineProperty(nn,"__esModule",{value:!0});nn.attributeNames=nn.elementNames=void 0;nn.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(n){return[n.toLowerCase(),n]}));nn.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(n){return[n.toLowerCase(),n]}));var Kt=q&&q.__assign||function(){return Kt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u])}return n},Kt.apply(this,arguments)},gh=q&&q.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var u=Object.getOwnPropertyDescriptor(e,t);(!u||("get"in u?!e.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,u)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),mh=q&&q.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),bh=q&&q.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&gh(e,n,t);return mh(e,n),e};Object.defineProperty(rr,"__esModule",{value:!0});rr.render=void 0;var Ge=bh(fn),uu=oc,cc=nn,yh=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function xh(n){return n.replace(/"/g,"&quot;")}function _h(n,e){var t;if(n){var r=((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)===!1?xh:e.xmlMode||e.encodeEntities!=="utf8"?uu.encodeXML:uu.escapeAttribute;return Object.keys(n).map(function(u){var i,s,o=(i=n[u])!==null&&i!==void 0?i:"";return e.xmlMode==="foreign"&&(u=(s=cc.attributeNames.get(u))!==null&&s!==void 0?s:u),!e.emptyAttrs&&!e.xmlMode&&o===""?u:"".concat(u,'="').concat(r(o),'"')}).join(" ")}}var Xo=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function ku(n,e){e===void 0&&(e={});for(var t=("length"in n)?n:[n],r="",u=0;u<t.length;u++)r+=vh(t[u],e);return r}rr.render=ku;rr.default=ku;function vh(n,e){switch(n.type){case Ge.Root:return ku(n.children,e);case Ge.Doctype:case Ge.Directive:return Eh(n);case Ge.Comment:return kh(n);case Ge.CDATA:return Nh(n);case Ge.Script:case Ge.Style:case Ge.Tag:return Th(n,e);case Ge.Text:return Ch(n,e)}}var wh=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Sh=new Set(["svg","math"]);function Th(n,e){var t;e.xmlMode==="foreign"&&(n.name=(t=cc.elementNames.get(n.name))!==null&&t!==void 0?t:n.name,n.parent&&wh.has(n.parent.name)&&(e=Kt(Kt({},e),{xmlMode:!1}))),!e.xmlMode&&Sh.has(n.name)&&(e=Kt(Kt({},e),{xmlMode:"foreign"}));var r="<".concat(n.name),u=_h(n.attribs,e);return u&&(r+=" ".concat(u)),n.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Xo.has(n.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",n.children.length>0&&(r+=ku(n.children,e)),(e.xmlMode||!Xo.has(n.name))&&(r+="</".concat(n.name,">"))),r}function Eh(n){return"<".concat(n.data,">")}function Ch(n,e){var t,r=n.data||"";return((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)!==!1&&!(!e.xmlMode&&n.parent&&yh.has(n.parent.name))&&(r=e.xmlMode||e.encodeEntities!=="utf8"?(0,uu.encodeXML)(r):(0,uu.escapeText)(r)),r}function Nh(n){return"<![CDATA[".concat(n.children[0].data,"]]>")}function kh(n){return"<!--".concat(n.data,"-->")}var Ah=q&&q.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(_t,"__esModule",{value:!0});_t.getOuterHTML=fc;_t.getInnerHTML=Ih;_t.getText=Dr;_t.textContent=Si;_t.innerText=Ti;var ze=Ye,Oh=Ah(rr),Ph=fn;function fc(n,e){return(0,Oh.default)(n,e)}function Ih(n,e){return(0,ze.hasChildren)(n)?n.children.map(function(t){return fc(t,e)}).join(""):""}function Dr(n){return Array.isArray(n)?n.map(Dr).join(""):(0,ze.isTag)(n)?n.name==="br"?`
14
+ `:Dr(n.children):(0,ze.isCDATA)(n)?Dr(n.children):(0,ze.isText)(n)?n.data:""}function Si(n){return Array.isArray(n)?n.map(Si).join(""):(0,ze.hasChildren)(n)&&!(0,ze.isComment)(n)?Si(n.children):(0,ze.isText)(n)?n.data:""}function Ti(n){return Array.isArray(n)?n.map(Ti).join(""):(0,ze.hasChildren)(n)&&(n.type===Ph.ElementType.Tag||(0,ze.isCDATA)(n))?Ti(n.children):(0,ze.isText)(n)?n.data:""}var He={};Object.defineProperty(He,"__esModule",{value:!0});He.getChildren=dc;He.getParent=hc;He.getSiblings=Lh;He.getAttributeValue=Dh;He.hasAttrib=Mh;He.getName=Rh;He.nextElementSibling=Bh;He.prevElementSibling=$h;var _s=Ye;function dc(n){return(0,_s.hasChildren)(n)?n.children:[]}function hc(n){return n.parent||null}function Lh(n){var e,t,r=hc(n);if(r!=null)return dc(r);for(var u=[n],i=n.prev,s=n.next;i!=null;)u.unshift(i),e=i,i=e.prev;for(;s!=null;)u.push(s),t=s,s=t.next;return u}function Dh(n,e){var t;return(t=n.attribs)===null||t===void 0?void 0:t[e]}function Mh(n,e){return n.attribs!=null&&Object.prototype.hasOwnProperty.call(n.attribs,e)&&n.attribs[e]!=null}function Rh(n){return n.name}function Bh(n){for(var e,t=n.next;t!==null&&!(0,_s.isTag)(t);)e=t,t=e.next;return t}function $h(n){for(var e,t=n.prev;t!==null&&!(0,_s.isTag)(t);)e=t,t=e.prev;return t}var vt={};Object.defineProperty(vt,"__esModule",{value:!0});vt.removeElement=ur;vt.replaceElement=Fh;vt.appendChild=jh;vt.append=qh;vt.prependChild=Uh;vt.prepend=zh;function ur(n){if(n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),n.parent){var e=n.parent.children,t=e.lastIndexOf(n);t>=0&&e.splice(t,1)}n.next=null,n.prev=null,n.parent=null}function Fh(n,e){var t=e.prev=n.prev;t&&(t.next=e);var r=e.next=n.next;r&&(r.prev=e);var u=e.parent=n.parent;if(u){var i=u.children;i[i.lastIndexOf(n)]=e,n.parent=null}}function jh(n,e){if(ur(e),e.next=null,e.parent=n,n.children.push(e)>1){var t=n.children[n.children.length-2];t.next=e,e.prev=t}else e.prev=null}function qh(n,e){ur(e);var t=n.parent,r=n.next;if(e.next=r,e.prev=n,n.next=e,e.parent=t,r){if(r.prev=e,t){var u=t.children;u.splice(u.lastIndexOf(r),0,e)}}else t&&t.children.push(e)}function Uh(n,e){if(ur(e),e.parent=n,e.prev=null,n.children.unshift(e)!==1){var t=n.children[1];t.prev=e,e.next=t}else e.next=null}function zh(n,e){ur(e);var t=n.parent;if(t){var r=t.children;r.splice(r.indexOf(n),0,e)}n.prev&&(n.prev.next=e),e.parent=t,e.prev=n.prev,e.next=n,n.prev=e}var rt={};Object.defineProperty(rt,"__esModule",{value:!0});rt.filter=Wh;rt.find=pc;rt.findOneChild=Hh;rt.findOne=gc;rt.existsOne=mc;rt.findAll=Vh;var Mt=Ye;function Wh(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),pc(n,Array.isArray(e)?e:[e],t,r)}function pc(n,e,t,r){for(var u=[],i=[Array.isArray(e)?e:[e]],s=[0];;){if(s[0]>=i[0].length){if(s.length===1)return u;i.shift(),s.shift();continue}var o=i[0][s[0]++];if(n(o)&&(u.push(o),--r<=0))return u;t&&(0,Mt.hasChildren)(o)&&o.children.length>0&&(s.unshift(0),i.unshift(o.children))}}function Hh(n,e){return e.find(n)}function gc(n,e,t){t===void 0&&(t=!0);for(var r=Array.isArray(e)?e:[e],u=0;u<r.length;u++){var i=r[u];if((0,Mt.isTag)(i)&&n(i))return i;if(t&&(0,Mt.hasChildren)(i)&&i.children.length>0){var s=gc(n,i.children,!0);if(s)return s}}return null}function mc(n,e){return(Array.isArray(e)?e:[e]).some(function(t){return(0,Mt.isTag)(t)&&n(t)||(0,Mt.hasChildren)(t)&&mc(n,t.children)})}function Vh(n,e){for(var t=[],r=[Array.isArray(e)?e:[e]],u=[0];;){if(u[0]>=r[0].length){if(r.length===1)return t;r.shift(),u.shift();continue}var i=r[0][u[0]++];(0,Mt.isTag)(i)&&n(i)&&t.push(i),(0,Mt.hasChildren)(i)&&i.children.length>0&&(u.unshift(0),r.unshift(i.children))}}var ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.testElement=Kh;ut.getElements=Jh;ut.getElementById=Xh;ut.getElementsByTagName=Zh;ut.getElementsByClassName=Qh;ut.getElementsByTagType=Yh;var Et=Ye,ir=rt,iu={tag_name:function(n){return typeof n=="function"?function(e){return(0,Et.isTag)(e)&&n(e.name)}:n==="*"?Et.isTag:function(e){return(0,Et.isTag)(e)&&e.name===n}},tag_type:function(n){return typeof n=="function"?function(e){return n(e.type)}:function(e){return e.type===n}},tag_contains:function(n){return typeof n=="function"?function(e){return(0,Et.isText)(e)&&n(e.data)}:function(e){return(0,Et.isText)(e)&&e.data===n}}};function vs(n,e){return typeof e=="function"?function(t){return(0,Et.isTag)(t)&&e(t.attribs[n])}:function(t){return(0,Et.isTag)(t)&&t.attribs[n]===e}}function Gh(n,e){return function(t){return n(t)||e(t)}}function bc(n){var e=Object.keys(n).map(function(t){var r=n[t];return Object.prototype.hasOwnProperty.call(iu,t)?iu[t](r):vs(t,r)});return e.length===0?null:e.reduce(Gh)}function Kh(n,e){var t=bc(n);return t?t(e):!0}function Jh(n,e,t,r){r===void 0&&(r=1/0);var u=bc(n);return u?(0,ir.filter)(u,e,t,r):[]}function Xh(n,e,t){return t===void 0&&(t=!0),Array.isArray(e)||(e=[e]),(0,ir.findOne)(vs("id",n),e,t)}function Zh(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,ir.filter)(iu.tag_name(n),e,t,r)}function Qh(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,ir.filter)(vs("class",n),e,t,r)}function Yh(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,ir.filter)(iu.tag_type(n),e,t,r)}var Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.DocumentPosition=void 0;Ft.removeSubsets=ep;Ft.compareDocumentPosition=yc;Ft.uniqueSort=tp;var Zo=Ye;function ep(n){for(var e=n.length;--e>=0;){var t=n[e];if(e>0&&n.lastIndexOf(t,e-1)>=0){n.splice(e,1);continue}for(var r=t.parent;r;r=r.parent)if(n.includes(r)){n.splice(e,1);break}}return n}var Le;(function(n){n[n.DISCONNECTED=1]="DISCONNECTED",n[n.PRECEDING=2]="PRECEDING",n[n.FOLLOWING=4]="FOLLOWING",n[n.CONTAINS=8]="CONTAINS",n[n.CONTAINED_BY=16]="CONTAINED_BY"})(Le||(Ft.DocumentPosition=Le={}));function yc(n,e){var t=[],r=[];if(n===e)return 0;for(var u=(0,Zo.hasChildren)(n)?n:n.parent;u;)t.unshift(u),u=u.parent;for(u=(0,Zo.hasChildren)(e)?e:e.parent;u;)r.unshift(u),u=u.parent;for(var i=Math.min(t.length,r.length),s=0;s<i&&t[s]===r[s];)s++;if(s===0)return Le.DISCONNECTED;var o=t[s-1],a=o.children,l=t[s],f=r[s];return a.indexOf(l)>a.indexOf(f)?o===e?Le.FOLLOWING|Le.CONTAINED_BY:Le.FOLLOWING:o===n?Le.PRECEDING|Le.CONTAINS:Le.PRECEDING}function tp(n){return n=n.filter(function(e,t,r){return!r.includes(e,t+1)}),n.sort(function(e,t){var r=yc(e,t);return r&Le.PRECEDING?-1:r&Le.FOLLOWING?1:0}),n}var ws={};Object.defineProperty(ws,"__esModule",{value:!0});ws.getFeed=rp;var np=_t,sr=ut;function rp(n){var e=su(ap,n);return e?e.name==="feed"?up(e):ip(e):null}function up(n){var e,t=n.children,r={type:"atom",items:(0,sr.getElementsByTagName)("entry",t).map(function(s){var o,a=s.children,l={media:xc(a)};be(l,"id","id",a),be(l,"title","title",a);var f=(o=su("link",a))===null||o===void 0?void 0:o.attribs.href;f&&(l.link=f);var h=dt("summary",a)||dt("content",a);h&&(l.description=h);var c=dt("updated",a);return c&&(l.pubDate=new Date(c)),l})};be(r,"id","id",t),be(r,"title","title",t);var u=(e=su("link",t))===null||e===void 0?void 0:e.attribs.href;u&&(r.link=u),be(r,"description","subtitle",t);var i=dt("updated",t);return i&&(r.updated=new Date(i)),be(r,"author","email",t,!0),r}function ip(n){var e,t,r=(t=(e=su("channel",n.children))===null||e===void 0?void 0:e.children)!==null&&t!==void 0?t:[],u={type:n.name.substr(0,3),id:"",items:(0,sr.getElementsByTagName)("item",n.children).map(function(s){var o=s.children,a={media:xc(o)};be(a,"id","guid",o),be(a,"title","title",o),be(a,"link","link",o),be(a,"description","description",o);var l=dt("pubDate",o)||dt("dc:date",o);return l&&(a.pubDate=new Date(l)),a})};be(u,"title","title",r),be(u,"link","link",r),be(u,"description","description",r);var i=dt("lastBuildDate",r);return i&&(u.updated=new Date(i)),be(u,"author","managingEditor",r,!0),u}var sp=["url","type","lang"],op=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function xc(n){return(0,sr.getElementsByTagName)("media:content",n).map(function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},u=0,i=sp;u<i.length;u++){var s=i[u];t[s]&&(r[s]=t[s])}for(var o=0,a=op;o<a.length;o++){var s=a[o];t[s]&&(r[s]=parseInt(t[s],10))}return t.expression&&(r.expression=t.expression),r})}function su(n,e){return(0,sr.getElementsByTagName)(n,e,!0,1)[0]}function dt(n,e,t){return t===void 0&&(t=!1),(0,np.textContent)((0,sr.getElementsByTagName)(n,e,t,1)).trim()}function be(n,e,t,r,u){u===void 0&&(u=!1);var i=dt(t,r,u);i&&(n[e]=i)}function ap(n){return n==="rss"||n==="feed"||n==="rdf:RDF"}(function(n){var e=q&&q.__createBinding||(Object.create?function(u,i,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(u,o,a)}:function(u,i,s,o){o===void 0&&(o=s),u[o]=i[s]}),t=q&&q.__exportStar||function(u,i){for(var s in u)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,u,s)};Object.defineProperty(n,"__esModule",{value:!0}),n.hasChildren=n.isDocument=n.isComment=n.isText=n.isCDATA=n.isTag=void 0,t(_t,n),t(He,n),t(vt,n),t(rt,n),t(ut,n),t(Ft,n),t(ws,n);var r=Ye;Object.defineProperty(n,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(n,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(n,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(n,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(n,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(n,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})})(Lr);(function(n){var e=q&&q.__createBinding||(Object.create?function(y,b,_,w){w===void 0&&(w=_);var T=Object.getOwnPropertyDescriptor(b,_);(!T||("get"in T?!b.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return b[_]}}),Object.defineProperty(y,w,T)}:function(y,b,_,w){w===void 0&&(w=_),y[w]=b[_]}),t=q&&q.__setModuleDefault||(Object.create?function(y,b){Object.defineProperty(y,"default",{enumerable:!0,value:b})}:function(y,b){y.default=b}),r=q&&q.__importStar||function(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var _ in y)_!=="default"&&Object.prototype.hasOwnProperty.call(y,_)&&e(b,y,_);return t(b,y),b},u=q&&q.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(n,"__esModule",{value:!0}),n.DomUtils=n.parseFeed=n.getFeed=n.ElementType=n.Tokenizer=n.createDomStream=n.parseDOM=n.parseDocument=n.DefaultHandler=n.DomHandler=n.Parser=void 0;var i=Rn,s=Rn;Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return s.Parser}});var o=Ye,a=Ye;Object.defineProperty(n,"DomHandler",{enumerable:!0,get:function(){return a.DomHandler}}),Object.defineProperty(n,"DefaultHandler",{enumerable:!0,get:function(){return a.DomHandler}});function l(y,b){var _=new o.DomHandler(void 0,b);return new i.Parser(_,b).end(y),_.root}n.parseDocument=l;function f(y,b){return l(y,b).children}n.parseDOM=f;function h(y,b,_){var w=new o.DomHandler(y,b,_);return new i.Parser(w,b)}n.createDomStream=h;var c=ps;Object.defineProperty(n,"Tokenizer",{enumerable:!0,get:function(){return u(c).default}}),n.ElementType=r(fn);var d=Lr,p=Lr;Object.defineProperty(n,"getFeed",{enumerable:!0,get:function(){return p.getFeed}});var m={xmlMode:!0};function g(y,b){return b===void 0&&(b=m),(0,d.getFeed)(f(y,b))}n.parseFeed=g,n.DomUtils=r(Lr)})(Kl);var lp=n=>{if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});/*!
15
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
16
+ *
17
+ * Copyright (c) 2014-2017, Jon Schlinkert.
18
+ * Released under the MIT License.
19
+ */function Qo(n){return Object.prototype.toString.call(n)==="[object Object]"}function cp(n){var e,t;return Qo(n)===!1?!1:(e=n.constructor,e===void 0?!0:(t=e.prototype,!(Qo(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)))}Ss.isPlainObject=cp;var fp=function(e){return dp(e)&&!hp(e)};function dp(n){return!!n&&typeof n=="object"}function hp(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||mp(n)}var pp=typeof Symbol=="function"&&Symbol.for,gp=pp?Symbol.for("react.element"):60103;function mp(n){return n.$$typeof===gp}function bp(n){return Array.isArray(n)?[]:{}}function $n(n,e){return e.clone!==!1&&e.isMergeableObject(n)?rn(bp(n),n,e):n}function yp(n,e,t){return n.concat(e).map(function(r){return $n(r,t)})}function xp(n,e){if(!e.customMerge)return rn;var t=e.customMerge(n);return typeof t=="function"?t:rn}function _p(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function Yo(n){return Object.keys(n).concat(_p(n))}function _c(n,e){try{return e in n}catch{return!1}}function vp(n,e){return _c(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function wp(n,e,t){var r={};return t.isMergeableObject(n)&&Yo(n).forEach(function(u){r[u]=$n(n[u],t)}),Yo(e).forEach(function(u){vp(n,u)||(_c(n,u)&&t.isMergeableObject(e[u])?r[u]=xp(u,t)(n[u],e[u],t):r[u]=$n(e[u],t))}),r}function rn(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||yp,t.isMergeableObject=t.isMergeableObject||fp,t.cloneUnlessOtherwiseSpecified=$n;var r=Array.isArray(e),u=Array.isArray(n),i=r===u;return i?r?t.arrayMerge(n,e,t):wp(n,e,t):$n(e,t)}rn.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,u){return rn(r,u,t)},{})};var Sp=rn,Tp=Sp,vc={exports:{}};(function(n){(function(e,t){n.exports?n.exports=t():e.parseSrcset=t()})(q,function(){return function(e){function t(w){return w===" "||w===" "||w===`
20
+ `||w==="\f"||w==="\r"}function r(w){var T,S=w.exec(e.substring(g));if(S)return T=S[0],g+=T.length,T}for(var u=e.length,i=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,a=/[,]+$/,l=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,c,d,p,m,g=0,y=[];;){if(r(s),g>=u)return y;h=r(o),c=[],h.slice(-1)===","?(h=h.replace(a,""),_()):b()}function b(){for(r(i),d="",p="in descriptor";;){if(m=e.charAt(g),p==="in descriptor")if(t(m))d&&(c.push(d),d="",p="after descriptor");else if(m===","){g+=1,d&&c.push(d),_();return}else if(m==="(")d=d+m,p="in parens";else if(m===""){d&&c.push(d),_();return}else d=d+m;else if(p==="in parens")if(m===")")d=d+m,p="in descriptor";else if(m===""){c.push(d),_();return}else d=d+m;else if(p==="after descriptor"&&!t(m))if(m===""){_();return}else p="in descriptor",g-=1;g+=1}}function _(){var w=!1,T,S,P,E,D={},j,v,N,A,B;for(E=0;E<c.length;E++)j=c[E],v=j[j.length-1],N=j.substring(0,j.length-1),A=parseInt(N,10),B=parseFloat(N),l.test(N)&&v==="w"?((T||S)&&(w=!0),A===0?w=!0:T=A):f.test(N)&&v==="x"?((T||S||P)&&(w=!0),B<0?w=!0:S=B):l.test(N)&&v==="h"?((P||S)&&(w=!0),A===0?w=!0:P=A):w=!0;w?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+j+"'."):(D.url=h,T&&(D.w=T),S&&(D.d=S),P&&(D.h=P),y.push(D))}}})})(vc);var Ep=vc.exports,Ts={exports:{}},z=String,wc=function(){return{isColorSupported:!1,reset:z,bold:z,dim:z,italic:z,underline:z,inverse:z,hidden:z,strikethrough:z,black:z,red:z,green:z,yellow:z,blue:z,magenta:z,cyan:z,white:z,gray:z,bgBlack:z,bgRed:z,bgGreen:z,bgYellow:z,bgBlue:z,bgMagenta:z,bgCyan:z,bgWhite:z,blackBright:z,redBright:z,greenBright:z,yellowBright:z,blueBright:z,magentaBright:z,cyanBright:z,whiteBright:z,bgBlackBright:z,bgRedBright:z,bgGreenBright:z,bgYellowBright:z,bgBlueBright:z,bgMagentaBright:z,bgCyanBright:z,bgWhiteBright:z}};Ts.exports=wc();Ts.exports.createColors=wc;var Cp=Ts.exports;const Np={},kp=Object.freeze(Object.defineProperty({__proto__:null,default:Np},Symbol.toStringTag,{value:"Module"})),Be=c0(kp);let ea=Cp,ta=Be,Ei=class Sc extends Error{constructor(e,t,r,u,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),u&&(this.source=u),s&&(this.plugin=s),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Sc)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=ea.isColorSupported);let r=f=>f,u=f=>f,i=f=>f;if(e){let{bold:f,gray:h,red:c}=ea.createColors(!0);u=d=>f(c(d)),r=d=>h(d),ta&&(i=d=>ta(d))}let s=t.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,s.length),l=String(a).length;return s.slice(o,a).map((f,h)=>{let c=o+1+h,d=" "+(" "+c).slice(-l)+" | ";if(c===this.line){if(f.length>160){let m=20,g=Math.max(0,this.column-m),y=Math.max(this.column+m,this.endColumn+m),b=f.slice(g,y),_=r(d.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return u(">")+r(d)+i(b)+`
21
+ `+_+u("^")}let p=r(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+r(d)+i(f)+`
22
+ `+p+u("^")}return" "+r(d)+i(f)}).join(`
23
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
24
+
25
+ `+e+`
26
+ `),this.name+": "+this.message+e}};var Es=Ei;Ei.default=Ei;const na={after:`
27
+ `,beforeClose:`
28
+ `,beforeComment:`
29
+ `,beforeDecl:`
30
+ `,beforeOpen:" ",beforeRule:`
31
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ap(n){return n[0].toUpperCase()+n.slice(1)}let Ci=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,u=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:u&&(r+=" "),e.nodes)this.block(e,r+u);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+u+i,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let u=e.parent,i=0;for(;u&&u.type!=="root";)i+=1,u=u.parent;if(r.includes(`
32
+ `)){let s=this.raw(e,null,"indent");if(s.length)for(let o=0;o<i;o++)r+=s}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let u;e.nodes&&e.nodes.length?(this.body(e),u=this.raw(e,"after")):u=this.raw(e,"after","emptyBody"),u&&this.builder(u),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let u=0;u<e.nodes.length;u++){let i=e.nodes[u],s=this.raw(i,"before");s&&this.builder(s),this.stringify(i,t!==u||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),u=e.prop+r+this.rawValue(e,"value");e.important&&(u+=e.raws.important||" !important"),t&&(u+=";"),this.builder(u,e)}document(e){this.body(e)}raw(e,t,r){let u;if(r||(r=t),t&&(u=e.raws[t],typeof u<"u"))return u;let i=e.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===e||i&&i.type==="document"))return"";if(!i)return na[r];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[r]<"u")return s.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let o="raw"+Ap(r);this[o]?u=this[o](s,e):s.walk(a=>{if(u=a.raws[t],typeof u<"u")return!1})}return typeof u>"u"&&(u=na[r]),s.rawCache[r]=u,u}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
33
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(u=>{if(typeof u.raws.before<"u")return r=u.raws.before,r.includes(`
34
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(u=>{if(typeof u.raws.before<"u")return r=u.raws.before,r.includes(`
35
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
36
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let u=r.parent;if(u&&u!==e&&u.parent&&u.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(`
37
+ `);return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],u=e.raws[t];return u&&u.value===r?u.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Tc=Ci;Ci.default=Ci;let Op=Tc;function Ni(n,e){new Op(e).stringify(n)}var Au=Ni;Ni.default=Ni;var or={};or.isClean=Symbol("isClean");or.my=Symbol("my");let Pp=Es,Ip=Tc,Lp=Au,{isClean:bn,my:Dp}=or;function ki(n,e){let t=new n.constructor;for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r)||r==="proxyCache")continue;let u=n[r],i=typeof u;r==="parent"&&i==="object"?e&&(t[r]=e):r==="source"?t[r]=u:Array.isArray(u)?t[r]=u.map(s=>ki(s,t)):(i==="object"&&u!==null&&(u=ki(u)),t[r]=u)}return t}function Ke(n,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,u=0;for(let i=0;i<n.length;i++){if(r===e.line&&t===e.column){u=i;break}n[i]===`
38
+ `?(t=1,r+=1):t+=1}return u}let Ai=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[bn]=!1,this[Dp]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=ki(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:u}=this.rangeBy(t);return this.source.input.error(e,{column:u.column,line:u.line},{column:r.column,line:r.line},t)}return new Pp(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[bn]=!0}markDirty(){if(this[bn]){this[bn]=!1;let e=this;for(;e=e.parent;)e[bn]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(Ke(r,this.source.start),Ke(r,this.source.end)).indexOf(e.word);i!==-1&&(t=this.positionInside(i))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,u="document"in this.source.input?this.source.input.document:this.source.input.css,i=Ke(u,this.source.start),s=i+e;for(let o=i;o<s;o++)u[o]===`
39
+ `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Ke(t,this.source.start)},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Ke(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let s=t.slice(Ke(t,this.source.start),Ke(t,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s),u=this.positionInside(s+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:Ke(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?u={column:e.end.column,line:e.end.line,offset:Ke(t,e.end)}:typeof e.endIndex=="number"?u=this.positionInside(e.endIndex):e.index&&(u=this.positionInside(e.index+1));return(u.line<r.line||u.line===r.line&&u.column<=r.column)&&(u={column:r.column+1,line:r.line,offset:r.offset+1}),{end:u,start:r}}raw(e,t){return new Ip().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let u of e)u===this?r=!0:r?(this.parent.insertAfter(t,u),t=u):this.parent.insertBefore(t,u);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},u=t==null;t=t||new Map;let i=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let o=this[s];if(Array.isArray(o))r[s]=o.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof o=="object"&&o.toJSON)r[s]=o.toJSON(null,t);else if(s==="source"){if(o==null)continue;let a=t.get(o.input);a==null&&(a=i,t.set(o.input,i),i++),r[s]={end:o.end,inputId:a,start:o.start}}else r[s]=o}return u&&(r.inputs=[...t.keys()].map(s=>s.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Lp){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let u={node:this};for(let i in r)u[i]=r[i];return e.warn(t,u)}};var Ou=Ai;Ai.default=Ai;let Mp=Ou,Oi=class extends Mp{constructor(e){super(e),this.type="comment"}};var Pu=Oi;Oi.default=Oi;let Rp=Ou,Pi=class extends Rp{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var Iu=Pi;Pi.default=Pi;let Ec=Pu,Cc=Iu,Bp=Ou,{isClean:Nc,my:kc}=or,Cs,Ac,Oc,Ns;function Pc(n){return n.map(e=>(e.nodes&&(e.nodes=Pc(e.nodes)),delete e.source,e))}function Ic(n){if(n[Nc]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Ic(e)}let et=class Lc extends Bp{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let u of r)this.proxyOf.nodes.push(u)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,u;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],u=e(this.proxyOf.nodes[r],r),u!==!1);)this.indexes[t]+=1;return delete this.indexes[t],u}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(u=>typeof u=="function"?(i,s)=>u(i.toProxy(),s):u)):t==="every"||t==="some"?r=>e[t]((u,...i)=>r(u.toProxy(),...i)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),u=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of u)this.proxyOf.nodes.splice(r+1,0,s);let i;for(let s in this.indexes)i=this.indexes[s],r<i&&(this.indexes[s]=i+u.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),u=r===0?"prepend":!1,i=this.normalize(t,this.proxyOf.nodes[r],u).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<=s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Pc(Ac(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let u of e)u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let u of e)u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Cc(e)]}else if(e.selector||e.selectors)e=[new Ns(e)];else if(e.name)e=[new Cs(e)];else if(e.text)e=[new Ec(e)];else throw new Error("Unknown node type in node creation");return e.map(u=>(u[kc]||Lc.rebuild(u),u=u.proxyOf,u.parent&&u.parent.removeChild(u),u[Nc]&&Ic(u),u.raws||(u.raws={}),typeof u.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(u.raws.before=t.raws.before.replace(/\S/g,"")),u.parent=this.proxyOf,u))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let u of r)this.proxyOf.nodes.unshift(u);for(let u in this.indexes)this.indexes[u]=this.indexes[u]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(u=>{t.props&&!t.props.includes(u.prop)||t.fast&&!u.value.includes(t.fast)||(u.value=u.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let u;try{u=e(t,r)}catch(i){throw t.addToError(i)}return u!==!1&&t.walk&&(u=t.walk(e)),u})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,u)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,u)}):this.walk((r,u)=>{if(r.type==="atrule"&&r.name===e)return t(r,u)}):(t=e,this.walk((r,u)=>{if(r.type==="atrule")return t(r,u)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,u)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,u)}):this.walk((r,u)=>{if(r.type==="decl"&&r.prop===e)return t(r,u)}):(t=e,this.walk((r,u)=>{if(r.type==="decl")return t(r,u)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,u)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,u)}):this.walk((r,u)=>{if(r.type==="rule"&&r.selector===e)return t(r,u)}):(t=e,this.walk((r,u)=>{if(r.type==="rule")return t(r,u)}))}};et.registerParse=n=>{Ac=n};et.registerRule=n=>{Ns=n};et.registerAtRule=n=>{Cs=n};et.registerRoot=n=>{Oc=n};var jt=et;et.default=et;et.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Cs.prototype):n.type==="rule"?Object.setPrototypeOf(n,Ns.prototype):n.type==="decl"?Object.setPrototypeOf(n,Cc.prototype):n.type==="comment"?Object.setPrototypeOf(n,Ec.prototype):n.type==="root"&&Object.setPrototypeOf(n,Oc.prototype),n[kc]=!0,n.nodes&&n.nodes.forEach(e=>{et.rebuild(e)})};let Dc=jt,ou=class extends Dc{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var ks=ou;ou.default=ou;Dc.registerAtRule(ou);let $p=jt,Mc,Rc,Fn=class extends $p{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Mc(new Rc,this,e).stringify()}};Fn.registerLazyResult=n=>{Mc=n};Fn.registerProcessor=n=>{Rc=n};var As=Fn;Fn.default=Fn;let Fp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",jp=(n=21)=>{let e="",t=n|0;for(;t--;)e+=Fp[Math.random()*64|0];return e};var qp={nanoid:jp};let{existsSync:Up,readFileSync:zp}=Be,{dirname:Ku,join:Wp}=Be,{SourceMapConsumer:ra,SourceMapGenerator:ua}=Be;function Hp(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let Ii=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,u=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ku(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new ra(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/,s=e.match(u)||e.match(i);if(s)return decodeURIComponent(e.substr(s[0].length));let o=e.match(t)||e.match(r);if(o)return Hp(e.substr(o[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),u=e.indexOf("*/",r);r>-1&&u>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,u)))}loadFile(e){if(this.root=Ku(e),Up(e))return this.mapFile=e,zp(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let u=this.loadFile(r);if(!u)throw new Error("Unable to load previous source map: "+r.toString());return u}}else{if(t instanceof ra)return ua.fromSourceMap(t).toString();if(t instanceof ua)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=Wp(Ku(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Bc=Ii;Ii.default=Ii;let{nanoid:Vp}=qp,{isAbsolute:Li,resolve:Di}=Be,{SourceMapConsumer:Gp,SourceMapGenerator:Kp}=Be,{fileURLToPath:ia,pathToFileURL:wr}=Be,sa=Es,Jp=Bc,Ju=Be,Xu=Symbol("lineToIndexCache"),Xp=!!(Gp&&Kp),oa=!!(Di&&Li);function aa(n){if(n[Xu])return n[Xu];let e=n.css.split(`
40
+ `),t=new Array(e.length),r=0;for(let u=0,i=e.length;u<i;u++)t[u]=r,r+=e[u].length+1;return n[Xu]=t,t}let au=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!oa||/^\w+:\/\//.test(t.from)||Li(t.from)?this.file=t.from:this.file=Di(t.from)),oa&&Xp){let r=new Jp(this.css,t);if(r.text){this.map=r;let u=r.consumer().file;!this.file&&u&&(this.file=this.mapResolve(u))}}this.file||(this.id="<input css "+Vp(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,u={}){let i,s,o,a,l;if(t&&typeof t=="object"){let h=t,c=r;if(typeof h.offset=="number"){a=h.offset;let d=this.fromOffset(a);t=d.line,r=d.col}else t=h.line,r=h.column,a=this.fromLineAndColumn(t,r);if(typeof c.offset=="number"){o=c.offset;let d=this.fromOffset(o);s=d.line,i=d.col}else s=c.line,i=c.column,o=this.fromLineAndColumn(c.line,c.column)}else if(r)a=this.fromLineAndColumn(t,r);else{a=t;let h=this.fromOffset(a);t=h.line,r=h.col}let f=this.origin(t,r,s,i);return f?l=new sa(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,u.plugin):l=new sa(e,s===void 0?t:{column:r,line:t},s===void 0?r:{column:i,line:s},this.css,this.file,u.plugin),l.input={column:r,endColumn:i,endLine:s,endOffset:o,line:t,offset:a,source:this.css},this.file&&(wr&&(l.input.url=wr(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,t){return aa(this)[e-1]+t-1}fromOffset(e){let t=aa(this),r=t[t.length-1],u=0;if(e>=r)u=t.length-1;else{let i=t.length-2,s;for(;u<i;)if(s=u+(i-u>>1),e<t[s])i=s-1;else if(e>=t[s+1])u=s+1;else{u=s;break}}return{col:e-t[u]+1,line:u+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Di(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,u){if(!this.map)return!1;let i=this.map.consumer(),s=i.originalPositionFor({column:t,line:e});if(!s.source)return!1;let o;typeof r=="number"&&(o=i.originalPositionFor({column:u,line:r}));let a;Li(s.source)?a=wr(s.source):a=new URL(s.source,this.map.consumer().sourceRoot||wr(this.map.mapFile));let l={column:s.column,endColumn:o&&o.column,endLine:o&&o.line,line:s.line,url:a.toString()};if(a.protocol==="file:")if(ia)l.file=ia(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(s.source);return f&&(l.source=f),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Lu=au;au.default=au;Ju&&Ju.registerInput&&Ju.registerInput(au);let $c=jt,Fc,jc,un=class extends $c{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let u=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let i of u)i.raws.before=t.raws.before}return u}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Fc(new jc,this,e).stringify()}};un.registerLazyResult=n=>{Fc=n};un.registerProcessor=n=>{jc=n};var ar=un;un.default=un;$c.registerRoot(un);let jn={comma(n){return jn.split(n,[","],!0)},space(n){let e=[" ",`
41
+ `," "];return jn.split(n,e)},split(n,e,t){let r=[],u="",i=!1,s=0,o=!1,a="",l=!1;for(let f of n)l?l=!1:f==="\\"?l=!0:o?f===a&&(o=!1):f==='"'||f==="'"?(o=!0,a=f):f==="("?s+=1:f===")"?s>0&&(s-=1):s===0&&e.includes(f)&&(i=!0),i?(u!==""&&r.push(u.trim()),u="",i=!1):u+=f;return(t||u!=="")&&r.push(u.trim()),r}};var qc=jn;jn.default=jn;let Uc=jt,Zp=qc,lu=class extends Uc{get selectors(){return Zp.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Os=lu;lu.default=lu;Uc.registerRule(lu);let Qp=ks,Yp=Pu,e1=Iu,t1=Lu,n1=Bc,r1=ar,u1=Os;function qn(n,e){if(Array.isArray(n))return n.map(u=>qn(u));let{inputs:t,...r}=n;if(t){e=[];for(let u of t){let i={...u,__proto__:t1.prototype};i.map&&(i.map={...i.map,__proto__:n1.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=n.nodes.map(u=>qn(u,e))),r.source){let{inputId:u,...i}=r.source;r.source=i,u!=null&&(r.source.input=e[u])}if(r.type==="root")return new r1(r);if(r.type==="decl")return new e1(r);if(r.type==="rule")return new u1(r);if(r.type==="comment")return new Yp(r);if(r.type==="atrule")return new Qp(r);throw new Error("Unknown node type: "+n.type)}var i1=qn;qn.default=qn;let{dirname:Mr,relative:zc,resolve:Wc,sep:Hc}=Be,{SourceMapConsumer:Vc,SourceMapGenerator:Rr}=Be,{pathToFileURL:la}=Be,s1=Lu,o1=!!(Vc&&Rr),a1=!!(Mr&&Wc&&zc&&Hc),l1=class{constructor(e,t,r,u){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
42
+ `;this.css.includes(`\r
43
+ `)&&(t=`\r
44
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Mr(e.file),u;this.mapOpts.sourcesContent===!1?(u=new Vc(e.text),u.sourcesContent&&(u.sourcesContent=null)):u=e.consumer(),this.map.applySourceMap(u,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),a1&&o1&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Rr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Rr({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Rr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},i,s;this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&l!=="end"&&(u.generated.line=e,u.generated.column=t-1,a.source&&a.source.start?(u.source=this.sourcePath(a),u.original.line=a.source.start.line,u.original.column=a.source.start.column-1,this.map.addMapping(u)):(u.source=r,u.original.line=1,u.original.column=0,this.map.addMapping(u))),s=o.match(/\n/g),s?(e+=s.length,i=o.lastIndexOf(`
45
+ `),t=o.length-i):t+=o.length,a&&l!=="start"){let f=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==f.last||f.raws.semicolon)&&(a.source&&a.source.end?(u.source=this.sourcePath(a),u.original.line=a.source.end.line,u.original.column=a.source.end.column-1,u.generated.line=e,u.generated.column=t-2,this.map.addMapping(u)):(u.source=r,u.original.line=1,u.original.column=0,u.generated.line=e,u.generated.column=t-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Mr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Mr(Wc(r,this.mapOpts.annotation)));let u=zc(r,e);return this.memoizedPaths.set(e,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new s1(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let u=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(u,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(la){let r=la(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Hc==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Gc=l1;const Zu=39,ca=34,Sr=92,fa=47,Tr=10,yn=32,Er=12,Cr=9,Nr=13,c1=91,f1=93,d1=40,h1=41,p1=123,g1=125,m1=59,b1=42,y1=58,x1=64,kr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ar=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_1=/.[\r\n"'(/\\]/,da=/[\da-f]/i;var v1=function(e,t={}){let r=e.css.valueOf(),u=t.ignoreErrors,i,s,o,a,l,f,h,c,d,p,m=r.length,g=0,y=[],b=[];function _(){return g}function w(E){throw e.error("Unclosed "+E,g)}function T(){return b.length===0&&g>=m}function S(E){if(b.length)return b.pop();if(g>=m)return;let D=E?E.ignoreUnclosed:!1;switch(i=r.charCodeAt(g),i){case Tr:case yn:case Cr:case Nr:case Er:{a=g;do a+=1,i=r.charCodeAt(a);while(i===yn||i===Tr||i===Cr||i===Nr||i===Er);f=["space",r.slice(g,a)],g=a-1;break}case c1:case f1:case p1:case g1:case y1:case m1:case h1:{let j=String.fromCharCode(i);f=[j,j,g];break}case d1:{if(p=y.length?y.pop()[1]:"",d=r.charCodeAt(g+1),p==="url"&&d!==Zu&&d!==ca&&d!==yn&&d!==Tr&&d!==Cr&&d!==Er&&d!==Nr){a=g;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(u||D){a=g;break}else w("bracket");for(c=a;r.charCodeAt(c-1)===Sr;)c-=1,h=!h}while(h);f=["brackets",r.slice(g,a+1),g,a],g=a}else a=r.indexOf(")",g+1),s=r.slice(g,a+1),a===-1||_1.test(s)?f=["(","(",g]:(f=["brackets",s,g,a],g=a);break}case Zu:case ca:{l=i===Zu?"'":'"',a=g;do{if(h=!1,a=r.indexOf(l,a+1),a===-1)if(u||D){a=g+1;break}else w("string");for(c=a;r.charCodeAt(c-1)===Sr;)c-=1,h=!h}while(h);f=["string",r.slice(g,a+1),g,a],g=a;break}case x1:{kr.lastIndex=g+1,kr.test(r),kr.lastIndex===0?a=r.length-1:a=kr.lastIndex-2,f=["at-word",r.slice(g,a+1),g,a],g=a;break}case Sr:{for(a=g,o=!0;r.charCodeAt(a+1)===Sr;)a+=1,o=!o;if(i=r.charCodeAt(a+1),o&&i!==fa&&i!==yn&&i!==Tr&&i!==Cr&&i!==Nr&&i!==Er&&(a+=1,da.test(r.charAt(a)))){for(;da.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===yn&&(a+=1)}f=["word",r.slice(g,a+1),g,a],g=a;break}default:{i===fa&&r.charCodeAt(g+1)===b1?(a=r.indexOf("*/",g+2)+1,a===0&&(u||D?a=r.length:w("comment")),f=["comment",r.slice(g,a+1),g,a],g=a):(Ar.lastIndex=g+1,Ar.test(r),Ar.lastIndex===0?a=r.length-1:a=Ar.lastIndex-2,f=["word",r.slice(g,a+1),g,a],y.push(f),g=a);break}}return g++,f}function P(E){b.push(E)}return{back:P,endOfFile:T,nextToken:S,position:_}};let w1=ks,S1=Pu,T1=Iu,E1=ar,ha=Os,C1=v1;const pa={empty:!0,space:!0};function N1(n){for(let e=n.length-1;e>=0;e--){let t=n[e],r=t[3]||t[2];if(r)return r}}let k1=class{constructor(e){this.input=e,this.root=new E1,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new w1;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,u,i,s=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){o=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,u=a[i];u&&u[0]==="space";)u=a[--i];u&&(t.source.end=this.getPosition(u[3]||u[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),s&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),o&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,u;for(let i=t-1;i>=0&&(u=e[i],!(u[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",u[0]==="word"?u[3]+1:u[2])}colon(e){let t=0,r,u,i;for(let[s,o]of e.entries()){if(u=o,i=u[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!r)this.doubleColon(u);else{if(r[0]==="word"&&r[1]==="progid")continue;return s}r=u}return!1}comment(e){let t=new S1;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let u=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=u[2],t.raws.left=u[1],t.raws.right=u[3]}}createTokenizer(){this.tokenizer=C1(this.input)}decl(e,t){let r=new T1;this.init(r,e[0][2]);let u=e[e.length-1];for(u[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(u[3]||u[2]||N1(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(i=e[l],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,l);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),h="";for(let c=l;c>0;c--){let d=f[c][0];if(h.trim().startsWith("!")&&d!=="space")break;h=f.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(r.raws.between+=s.map(l=>l[1]).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new ha;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,u=!1,i=null,s=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),r==="("||r==="[")i||(i=l),s.push(r==="("?")":"]");else if(o&&u&&r==="{")i||(i=l),s.push("}");else if(s.length===0)if(r===";")if(u){this.decl(a,o);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(u=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(i),t&&u){if(!o)for(;a.length&&(l=a[a.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,u){let i,s,o=r.length,a="",l=!0,f,h;for(let c=0;c<o;c+=1)i=r[c],s=i[0],s==="space"&&c===o-1&&!u?l=!1:s==="comment"?(h=r[c-1]?r[c-1][0]:"empty",f=r[c+1]?r[c+1][0]:"empty",!pa[h]&&!pa[f]?a.slice(-1)===","?l=!1:a+=i[1]:l=!1):a+=i[1];if(!l){let c=r.reduce((d,p)=>d+p[1],"");e.raws[t]={raw:c,value:a}}e[t]=a}rule(e){e.pop();let t=new ha;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let u=t;u<e.length;u++)r+=e[u][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var A1=k1;let O1=jt,P1=Lu,I1=A1;function cu(n,e){let t=new P1(n,e),r=new I1(t);try{r.parse()}catch(u){throw process.env.NODE_ENV!=="production"&&u.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?u.message+=`
46
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?u.message+=`
47
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(u.message+=`
48
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),u}return r.root}var Ps=cu;cu.default=cu;O1.registerParse(cu);let Mi=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Kc=Mi;Mi.default=Mi;let L1=Kc,Ri=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new L1(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Is=Ri;Ri.default=Ri;let ga={};var Jc=function(e){ga[e]||(ga[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let D1=jt,M1=As,R1=Gc,B1=Ps,ma=Is,$1=ar,F1=Au,{isClean:$e,my:j1}=or,q1=Jc;const U1={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},z1={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},W1={Once:!0,postcssPlugin:!0,prepare:!0},sn=0;function xn(n){return typeof n=="object"&&typeof n.then=="function"}function Xc(n){let e=!1,t=U1[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,sn,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,sn,t+"Exit"]:[t,t+"Exit"]}function ba(n){let e;return n.type==="document"?e=["Document",sn,"DocumentExit"]:n.type==="root"?e=["Root",sn,"RootExit"]:e=Xc(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function Bi(n){return n[$e]=!1,n.nodes&&n.nodes.forEach(e=>Bi(e)),n}let $i={},on=class Zc{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let u;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))u=Bi(t);else if(t instanceof Zc||t instanceof ma)u=Bi(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let i=B1;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{u=i(t,r)}catch(s){this.processed=!0,this.error=s}u&&!u[j1]&&D1.rebuild(u)}this.result=new ma(e,u,r),this.helpers={...$i,postcss:$i,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=r.postcssPlugin,e.setMessage();else if(r.postcssVersion&&process.env.NODE_ENV!=="production"){let u=r.postcssPlugin,i=r.postcssVersion,s=this.result.processor.version,o=i.split("."),a=s.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+s+", but "+u+" uses "+i+". Perhaps this is the source of the error below.")}}catch(u){console&&console.error&&console.error(u)}return e}prepareVisitors(){this.listeners={};let e=(t,r,u)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,u])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!z1[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!W1[r])if(typeof t[r]=="object")for(let u in t[r])u==="*"?e(t,r,t[r][u]):e(t,r+"-"+u.toLowerCase(),t[r][u]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(xn(r))try{await r}catch(u){throw this.handleError(u)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[$e];){e[$e]=!0;let t=[ba(e)];for(;t.length>0;){let r=this.visitTick(t);if(xn(r))try{await r}catch(u){let i=t[t.length-1].node;throw this.handleError(u,i)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let u=e.nodes.map(i=>r(i,this.helpers));await Promise.all(u)}else await r(e,this.helpers)}catch(u){throw this.handleError(u)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return xn(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=F1;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let u=new R1(t,this.result.root,this.result.opts).generate();return this.result.css=u[0],this.result.map=u[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(xn(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[$e];)e[$e]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||q1("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,u]of e){this.result.lastPlugin=r;let i;try{i=u(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(xn(i))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:u}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(u.length>0&&t.visitorIndex<u.length){let[s,o]=u[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===u.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return o(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let s=t.iterator,o;for(;o=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!o[$e]){o[$e]=!0,e.push(ba(o));return}t.iterator=0,delete r.indexes[s]}let i=t.events;for(;t.eventIndex<i.length;){let s=i[t.eventIndex];if(t.eventIndex+=1,s===sn){r.nodes&&r.nodes.length&&(r[$e]=!0,t.iterator=r.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[$e]=!0;let t=Xc(e);for(let r of t)if(r===sn)e.nodes&&e.each(u=>{u[$e]||this.walkSync(u)});else{let u=this.listeners[r];if(u&&this.visitSync(u,e.toProxy()))return}}warnings(){return this.sync().warnings()}};on.registerPostcss=n=>{$i=n};var Qc=on;on.default=on;$1.registerLazyResult(on);M1.registerLazyResult(on);let H1=Gc,V1=Ps;const G1=Is;let K1=Au,J1=Jc,Fi=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=V1;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let u,i=K1;this.result=new G1(this._processor,u,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let o=new H1(i,u,this._opts,t);if(o.isMap()){let[a,l]=o.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||J1("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var X1=Fi;Fi.default=Fi;let Z1=As,Q1=Qc,Y1=X1,eg=ar,Un=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(typeof r=="object"&&(r.parse||r.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Y1(this,e,t):new Q1(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var tg=Un;Un.default=Un;eg.registerProcessor(Un);Z1.registerProcessor(Un);let Yc=ks,e0=Pu,ng=jt,rg=Es,t0=Iu,n0=As,ug=i1,ig=Lu,sg=Qc,og=qc,ag=Ou,lg=Ps,Ls=tg,cg=Is,r0=ar,u0=Os,fg=Au,dg=Kc;function Q(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Ls(n)}Q.plugin=function(e,t){let r=!1;function u(...s){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
49
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
50
+ https://www.w3ctech.com/topic/2226`));let o=t(...s);return o.postcssPlugin=e,o.postcssVersion=new Ls().version,o}let i;return Object.defineProperty(u,"postcss",{get(){return i||(i=u()),i}}),u.process=function(s,o,a){return Q([u(a)]).process(s,o)},u};Q.stringify=fg;Q.parse=lg;Q.fromJSON=ug;Q.list=og;Q.comment=n=>new e0(n);Q.atRule=n=>new Yc(n);Q.decl=n=>new t0(n);Q.rule=n=>new u0(n);Q.root=n=>new r0(n);Q.document=n=>new n0(n);Q.CssSyntaxError=rg;Q.Declaration=t0;Q.Container=ng;Q.Processor=Ls;Q.Document=n0;Q.Comment=e0;Q.Warning=dg;Q.AtRule=Yc;Q.Result=cg;Q.Input=ig;Q.Rule=u0;Q.Root=r0;Q.Node=ag;sg.registerPostcss(Q);var hg=Q;Q.default=Q;const pg=Kl,ya=lp,{isPlainObject:gg}=Ss,xa=Tp,mg=Ep,{parse:bg}=hg,yg=["img","audio","video","picture","svg","object","map","iframe","embed"],xg=["script","style"];function Vt(n,e){n&&Object.keys(n).forEach(function(t){e(n[t],t)})}function Je(n,e){return{}.hasOwnProperty.call(n,e)}function _a(n,e){const t=[];return Vt(n,function(r){e(r)&&t.push(r)}),t}function _g(n){for(const e in n)if(Je(n,e))return!1;return!0}function vg(n){return n.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var wg=zn;const Sg=/^[^\0\t\n\f\r /<=>]+$/;function zn(n,e,t){if(n==null)return"";typeof n=="number"&&(n=n.toString());let r="",u="";function i(x,O){const k=this;this.tag=x,this.attribs=O||{},this.tagPosition=r.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(g.length){const F=g[g.length-1];F.text+=k.text}},this.updateParentNodeMediaChildren=function(){g.length&&yg.includes(this.tag)&&g[g.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},zn.defaults,e),e.parser=Object.assign({},Tg,e.parser);const s=function(x){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(x)>-1};xg.forEach(function(x){s(x)&&!e.allowVulnerableTags&&console.warn(`
51
+
52
+ ⚠️ Your \`allowedTags\` option includes, \`${x}\`, which is inherently
53
+ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
54
+ Or, to disable this warning, add the \`allowVulnerableTags\` option
55
+ and ensure you are accounting for this risk.
56
+
57
+ `)});const o=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},Vt(e.allowedAttributes,function(x,O){a[O]=[];const k=[];x.forEach(function(F){typeof F=="string"&&F.indexOf("*")>=0?k.push(ya(F).replace(/\\\*/g,".*")):a[O].push(F)}),k.length&&(l[O]=new RegExp("^("+k.join("|")+")$"))}));const f={},h={},c={};Vt(e.allowedClasses,function(x,O){if(a&&(Je(a,O)||(a[O]=[]),a[O].push("class")),f[O]=x,Array.isArray(x)){const k=[];f[O]=[],c[O]=[],x.forEach(function(F){typeof F=="string"&&F.indexOf("*")>=0?k.push(ya(F).replace(/\\\*/g,".*")):F instanceof RegExp?c[O].push(F):f[O].push(F)}),k.length&&(h[O]=new RegExp("^("+k.join("|")+")$"))}});const d={};let p;Vt(e.transformTags,function(x,O){let k;typeof x=="function"?k=x:typeof x=="string"&&(k=zn.simpleTransform(x)),O==="*"?p=k:d[O]=k});let m,g,y,b,_,w,T=!1;P();const S=new pg.Parser({onopentag:function(x,O){if(e.onOpenTag&&e.onOpenTag(x,O),e.enforceHtmlBoundary&&x==="html"&&P(),_){w++;return}const k=new i(x,O);g.push(k);let F=!1;const Y=!!k.text;let ne;if(Je(d,x)&&(ne=d[x](x,O),k.attribs=O=ne.attribs,ne.text!==void 0&&(k.innerText=ne.text),x!==ne.tagName&&(k.name=x=ne.tagName,b[m]=ne.tagName)),p&&(ne=p(x,O),k.attribs=O=ne.attribs,x!==ne.tagName&&(k.name=x=ne.tagName,b[m]=ne.tagName)),(!s(x)||e.disallowedTagsMode==="recursiveEscape"&&!_g(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(F=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(x)!==-1&&(_=!0,w=1)),m++,F){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(k.innerText&&!Y){const X=E(k.innerText);e.textFilter?r+=e.textFilter(X,x):r+=X,T=!0}return}u=r,r=""}r+="<"+x,x==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(k.innerText=""),F&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Vt(O,function(X,G){r+=" "+G+'="'+E(X||"",!0)+'"'}):(!a||Je(a,x)||a["*"])&&Vt(O,function(X,G){if(!Sg.test(G)){delete k.attribs[G];return}if(X===""&&!e.allowedEmptyAttributes.includes(G)&&(e.nonBooleanAttributes.includes(G)||e.nonBooleanAttributes.includes("*"))){delete k.attribs[G];return}let it=!1;if(!a||Je(a,x)&&a[x].indexOf(G)!==-1||a["*"]&&a["*"].indexOf(G)!==-1||Je(l,x)&&l[x].test(G)||l["*"]&&l["*"].test(G))it=!0;else if(a&&a[x]){for(const W of a[x])if(gg(W)&&W.name&&W.name===G){it=!0;let J="";if(W.multiple===!0){const we=X.split(" ");for(const ge of we)W.values.indexOf(ge)!==-1&&(J===""?J=ge:J+=" "+ge)}else W.values.indexOf(X)>=0&&(J=X);X=J}}if(it){if(e.allowedSchemesAppliedToAttributes.indexOf(G)!==-1&&D(x,X)){delete k.attribs[G];return}if(x==="script"&&G==="src"){let W=!0;try{const J=j(X);if(e.allowedScriptHostnames||e.allowedScriptDomains){const we=(e.allowedScriptHostnames||[]).find(function(me){return me===J.url.hostname}),ge=(e.allowedScriptDomains||[]).find(function(me){return J.url.hostname===me||J.url.hostname.endsWith(`.${me}`)});W=we||ge}}catch{W=!1}if(!W){delete k.attribs[G];return}}if(x==="iframe"&&G==="src"){let W=!0;try{const J=j(X);if(J.isRelativeUrl)W=Je(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const we=(e.allowedIframeHostnames||[]).find(function(me){return me===J.url.hostname}),ge=(e.allowedIframeDomains||[]).find(function(me){return J.url.hostname===me||J.url.hostname.endsWith(`.${me}`)});W=we||ge}}catch{W=!1}if(!W){delete k.attribs[G];return}}if(G==="srcset")try{let W=mg(X);if(W.forEach(function(J){D("srcset",J.url)&&(J.evil=!0)}),W=_a(W,function(J){return!J.evil}),W.length)X=vg(_a(W,function(J){return!J.evil})),k.attribs[G]=X;else{delete k.attribs[G];return}}catch{delete k.attribs[G];return}if(G==="class"){const W=f[x],J=f["*"],we=h[x],ge=c[x],me=c["*"],i0=h["*"],Ds=[we,i0].concat(ge,me).filter(function(s0){return s0});if(W&&J?X=B(X,xa(W,J),Ds):X=B(X,W||J,Ds),!X.length){delete k.attribs[G];return}}if(G==="style"){if(e.parseStyleAttributes)try{const W=bg(x+" {"+X+"}",{map:!1}),J=v(W,e.allowedStyles);if(X=N(J),X.length===0){delete k.attribs[G];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+x+" {"+X+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete k.attribs[G];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+G,X&&X.length?r+='="'+E(X,!0)+'"':e.allowedEmptyAttributes.includes(G)&&(r+='=""')}else delete k.attribs[G]}),e.selfClosing.indexOf(x)!==-1?r+=" />":(r+=">",k.innerText&&!Y&&!e.textFilter&&(r+=E(k.innerText),T=!0)),F&&(r=u+E(r),u=""),k.openingTagLength=r.length-k.tagPosition},ontext:function(x){if(_)return;const O=g[g.length-1];let k;if(O&&(k=O.tag,x=O.innerText!==void 0?O.innerText:x),e.disallowedTagsMode==="completelyDiscard"&&!s(k))x="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(k==="script"||k==="style"))r+=x;else if(!T){const F=E(x,!1);e.textFilter?r+=e.textFilter(F,k):r+=F}if(g.length){const F=g[g.length-1];F.text+=x}},onclosetag:function(x,O){if(e.onCloseTag&&e.onCloseTag(x,O),_)if(w--,!w)_=!1;else return;const k=g.pop();if(!k)return;if(k.tag!==x){g.push(k);return}_=e.enforceHtmlBoundary?x==="html":!1,m--;const F=y[m];if(F){if(delete y[m],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){k.updateParentNodeText();return}u=r,r=""}if(b[m]&&(x=b[m],delete b[m]),e.exclusiveFilter){const Y=e.exclusiveFilter(k);if(Y==="excludeTag"){F&&(r=u,u=""),r=r.substring(0,k.tagPosition)+r.substring(k.tagPosition+k.openingTagLength);return}else if(Y){r=r.substring(0,k.tagPosition);return}}if(k.updateParentNodeMediaChildren(),k.updateParentNodeText(),e.selfClosing.indexOf(x)!==-1||O&&!s(x)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){F&&(r=u,u="");return}r+="</"+x+">",F&&(r=u+E(r),u=""),T=!1}},e.parser);return S.write(n),S.end(),r;function P(){r="",m=0,g=[],y={},b={},_=!1,w=0}function E(x,O){return typeof x!="string"&&(x=x+""),e.parser.decodeEntities&&(x=x.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(x=x.replace(/"/g,"&quot;"))),x=x.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(x=x.replace(/"/g,"&quot;")),x}function D(x,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const Y=O.indexOf("<!--");if(Y===-1)break;const ne=O.indexOf("-->",Y+4);if(ne===-1)break;O=O.substring(0,Y)+O.substring(ne+3)}const k=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!k)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const F=k[1].toLowerCase();return Je(e.allowedSchemesByTag,x)?e.allowedSchemesByTag[x].indexOf(F)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(F)===-1}function j(x){if(x=x.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),x.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let Y=0;Y<100;Y++)O+=`/${Y}`;const k=new URL(x,O);return{isRelativeUrl:k&&k.hostname==="relative-site"&&k.protocol==="relative:",url:k}}function v(x,O){if(!O)return x;const k=x.nodes[0];let F;return O[k.selector]&&O["*"]?F=xa(O[k.selector],O["*"]):F=O[k.selector]||O["*"],F&&(x.nodes[0].nodes=k.nodes.reduce(A(F),[])),x}function N(x){return x.nodes[0].nodes.reduce(function(O,k){return O.push(`${k.prop}:${k.value}${k.important?" !important":""}`),O},[]).join(";")}function A(x){return function(O,k){return Je(x,k.prop)&&x[k.prop].some(function(Y){return Y.test(k.value)})&&O.push(k),O}}function B(x,O,k){return O?(x=x.split(/\s+/),x.filter(function(F){return O.indexOf(F)!==-1||k.some(function(Y){return Y.test(F)})}).join(" ")):x}}const Tg={decodeEntities:!0};zn.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};zn.simpleTransform=function(n,e,t){return t=t===void 0?!0:t,e=e||{},function(r,u){let i;if(t)for(i in e)u[i]=e[i];else u=e;return{tagName:n,attribs:u}}};const Eg=l0(wg),Cg="_editor_17n1f_1",Ng="_toolbar_17n1f_11",kg="_active_17n1f_32",Ag="_bold_17n1f_37",Og="_italic_17n1f_41",Pg="_link_17n1f_45",Ig="_list_17n1f_51",Lg="_paragraph_17n1f_52",Se={editor:Cg,toolbar:Ng,active:kg,bold:Ag,italic:Og,link:Pg,list:Ig,paragraph:Lg},Dg=()=>{const[n]=ke(),[e,t]=U.useState(!1),[r,u]=U.useState(!1),[i,s]=U.useState(!1),[o,a]=U.useState(!1),[l,f]=U.useState(""),h=U.useRef(null),c=()=>{n.dispatchCommand(Qt,{url:l,target:"_blank"})},d=U.useCallback(()=>{const p=$();if(I(p)){const m=p.getNodes();t(p.hasFormat("bold")),u(p.hasFormat("italic")),m.every(g=>{const y=g.getParent();a(K(y)||re(y)),Tt(y)?(s(!0),f(y.getURL())):(s(!1),f(""))})}},[]);return U.useEffect(()=>nt(n.registerUpdateListener(({editorState:p})=>{p.read(()=>{d()})})),[n,d]),V.jsxRuntimeExports.jsxs("div",{className:Se.toolbar,children:[V.jsxRuntimeExports.jsx(cr.Button,{className:dn.t(e&&Se.active),onClick:()=>{n.dispatchCommand(Ue,"bold")},title:"Bold",variant:"minimal",children:V.jsxRuntimeExports.jsx(fr.Icon,{name:"bold"})}),V.jsxRuntimeExports.jsx(cr.Button,{className:dn.t(r&&Se.active),onClick:()=>{n.dispatchCommand(Ue,"italic")},title:"Italic",variant:"minimal",children:V.jsxRuntimeExports.jsx(fr.Icon,{name:"italic"})}),V.jsxRuntimeExports.jsx(cr.Button,{className:dn.t(o&&Se.active),onClick:()=>{o?n.dispatchCommand($l,void 0):n.dispatchCommand(Bl,void 0)},title:"List",variant:"minimal",children:V.jsxRuntimeExports.jsx(fr.Icon,{name:"list"})}),V.jsxRuntimeExports.jsx(cr.Button,{className:dn.t(i&&Se.active),onClick:()=>{i?n.dispatchCommand(Qt,null):(n.dispatchCommand(Qt,{url:"https://"}),setTimeout(()=>h.current.focus(),0))},title:"Link",variant:"minimal",children:V.jsxRuntimeExports.jsx(fr.Icon,{name:"link"})}),V.jsxRuntimeExports.jsx(o0.Input,{className:dn.t(i&&Se.active),onBlur:()=>c(),onChange:p=>f(p.target.value),onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),c())},ref:h,value:l})]})},Mg=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,Rg=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Bg=[n=>{const e=Mg.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:`mailto:${e[0]}`}:null},n=>{const e=Rg.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:e[0].startsWith("http")?e[0]:`https://${e[0]}`}:null}];function $g(n){try{const e=new URL(n);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}}function Fg({content:n}){const[e]=ke();return U.useEffect(()=>{e.update(()=>{const r=new DOMParser().parseFromString(n??"","text/html"),u=Nl(e,r);ie().clear().select(),pl(u),Me(null)})},[]),null}const jg=({autofocus:n=!1,autolink:e=!1,content:t,onChange:r})=>{const u={namespace:"Editor",theme:{link:Se.link,list:{ol:Se.list,ul:Se.list},paragraph:Se.paragraph,text:{bold:Se.bold,italic:Se.italic}},onError(i){throw i},nodes:[Eu,tr,ln,nr]};return V.jsxRuntimeExports.jsx("div",{className:Se.editor,children:V.jsxRuntimeExports.jsxs(dd,{initialConfig:u,children:[V.jsxRuntimeExports.jsx(Dg,{}),V.jsxRuntimeExports.jsx(eh,{contentEditable:V.jsxRuntimeExports.jsx(xd,{}),ErrorBoundary:Sd}),n&&V.jsxRuntimeExports.jsx(nd,{}),e&&V.jsxRuntimeExports.jsx(cd,{matchers:Bg}),V.jsxRuntimeExports.jsx(Pd,{}),t&&V.jsxRuntimeExports.jsx(Fg,{content:t}),V.jsxRuntimeExports.jsx(Id,{validateUrl:$g}),V.jsxRuntimeExports.jsx(Ld,{}),r&&V.jsxRuntimeExports.jsx(Md,{onChange:(i,s)=>{i.read(()=>{const o=kl(s,null),a=Eg(o,{allowedTags:["a","b","br","i","li","ol","p","ul"]});r(a)})}})]})})};exports.Editor=jg;
4
58
  //# sourceMappingURL=index.cjs.map