@muyichengshayu/promptx 0.2.18 → 0.2.19

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 (80) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/apps/web/dist/assets/{CodexSessionManagerDialog-D_72LIMv.js → CodexSessionManagerDialog-C5Cht229.js} +3 -3
  3. package/apps/web/dist/assets/{TaskDiffReviewDialog-CoQgN73y.js → TaskDiffReviewDialog-D2l8KtRI.js} +5 -5
  4. package/apps/web/dist/assets/{WorkbenchSettingsDialog-Bw-fcsXi.js → WorkbenchSettingsDialog-DGj-_tuL.js} +1 -1
  5. package/apps/web/dist/assets/WorkbenchView-ih1G4f79.js +58 -0
  6. package/apps/web/dist/assets/index-4LeM_JQe.js +2 -0
  7. package/apps/web/dist/assets/index-D9Ojj7Lp.css +1 -0
  8. package/apps/web/dist/assets/{vendor-markdown-9aQhqbjm.js → vendor-markdown-C2aIjAg9.js} +1 -1
  9. package/apps/web/dist/assets/{vendor-misc-u-M8sNMf.js → vendor-misc-DqxAnmp9.js} +30 -29
  10. package/apps/web/dist/assets/{vendor-router-Dn8q3tJM.js → vendor-router-4TN1NQvz.js} +1 -1
  11. package/apps/web/dist/assets/{vendor-shiki-core-1BqeTDsZ.js → vendor-shiki-core-UNANE_3B.js} +1 -1
  12. package/apps/web/dist/assets/vendor-shiki-lang-bash-OmlQ8O-f.js +1 -0
  13. package/apps/web/dist/assets/vendor-shiki-lang-c-Bf17QIO6.js +1 -0
  14. package/apps/web/dist/assets/vendor-shiki-lang-cpp-Dz7DCXQD.js +1 -0
  15. package/apps/web/dist/assets/vendor-shiki-lang-csharp-weekbih6.js +1 -0
  16. package/apps/web/dist/assets/vendor-shiki-lang-css-Cc89nYhT.js +1 -0
  17. package/apps/web/dist/assets/vendor-shiki-lang-diff-BKW5_WJa.js +1 -0
  18. package/apps/web/dist/assets/vendor-shiki-lang-dockerfile-DKFA3n9j.js +1 -0
  19. package/apps/web/dist/assets/vendor-shiki-lang-dotenv-BftIlyZY.js +1 -0
  20. package/apps/web/dist/assets/vendor-shiki-lang-fish-DTee4iUj.js +1 -0
  21. package/apps/web/dist/assets/vendor-shiki-lang-go-iEA7Y2np.js +1 -0
  22. package/apps/web/dist/assets/vendor-shiki-lang-html-fEXQcPZb.js +1 -0
  23. package/apps/web/dist/assets/vendor-shiki-lang-ini-BJNPDfrG.js +1 -0
  24. package/apps/web/dist/assets/vendor-shiki-lang-java-CZdBcwkx.js +1 -0
  25. package/apps/web/dist/assets/vendor-shiki-lang-javascript-5n6OdqL_.js +1 -0
  26. package/apps/web/dist/assets/vendor-shiki-lang-json-DkR7bRnH.js +1 -0
  27. package/apps/web/dist/assets/vendor-shiki-lang-less-DN-gfwMv.js +1 -0
  28. package/apps/web/dist/assets/vendor-shiki-lang-markdown-CgfEScgY.js +1 -0
  29. package/apps/web/dist/assets/vendor-shiki-lang-powershell-N9rELqmw.js +1 -0
  30. package/apps/web/dist/assets/vendor-shiki-lang-python-6ZggAICS.js +1 -0
  31. package/apps/web/dist/assets/vendor-shiki-lang-rust-BvkG5Wz9.js +1 -0
  32. package/apps/web/dist/assets/vendor-shiki-lang-sass-DFAXHETo.js +1 -0
  33. package/apps/web/dist/assets/vendor-shiki-lang-scss-ClLYCF3s.js +1 -0
  34. package/apps/web/dist/assets/vendor-shiki-lang-sql-CBrOCv6B.js +1 -0
  35. package/apps/web/dist/assets/vendor-shiki-lang-toml-C0vpllp6.js +1 -0
  36. package/apps/web/dist/assets/vendor-shiki-lang-tsx-DVg_XTuK.js +1 -0
  37. package/apps/web/dist/assets/vendor-shiki-lang-typescript-DV5oo9cD.js +1 -0
  38. package/apps/web/dist/assets/vendor-shiki-lang-vue-QYrDJbPe.js +1 -0
  39. package/apps/web/dist/assets/vendor-shiki-lang-xml-D4OZNqPk.js +1 -0
  40. package/apps/web/dist/assets/vendor-shiki-lang-yaml-BZu-v6Um.js +1 -0
  41. package/apps/web/dist/assets/vendor-shiki-theme-github-dark-default-DVxJvksW.js +1 -0
  42. package/apps/web/dist/assets/vendor-shiki-theme-github-light-BRz4x11q.js +1 -0
  43. package/apps/web/dist/assets/{vendor-tiptap-rwYdQb1L.js → vendor-tiptap-DLVi2vZE.js} +1 -1
  44. package/apps/web/dist/assets/{vendor-ui-BglsaDbv.js → vendor-ui-CnLXY_Zv.js} +31 -26
  45. package/apps/web/dist/index.html +4 -4
  46. package/package.json +1 -1
  47. package/apps/web/dist/assets/WorkbenchView-CsZnW4Q7.js +0 -58
  48. package/apps/web/dist/assets/index-Bt9T2IKp.js +0 -2
  49. package/apps/web/dist/assets/index-DaJU954y.css +0 -1
  50. package/apps/web/dist/assets/vendor-shiki-lang-bash-zsQu0xn-.js +0 -1
  51. package/apps/web/dist/assets/vendor-shiki-lang-c-BDF8vgks.js +0 -1
  52. package/apps/web/dist/assets/vendor-shiki-lang-cpp-DyDAaXl6.js +0 -1
  53. package/apps/web/dist/assets/vendor-shiki-lang-csharp-BWfTXJXw.js +0 -1
  54. package/apps/web/dist/assets/vendor-shiki-lang-css-DbAm1fUO.js +0 -1
  55. package/apps/web/dist/assets/vendor-shiki-lang-diff-DmGC1G26.js +0 -1
  56. package/apps/web/dist/assets/vendor-shiki-lang-dockerfile-3x-8396r.js +0 -1
  57. package/apps/web/dist/assets/vendor-shiki-lang-dotenv--IVOlX2Q.js +0 -1
  58. package/apps/web/dist/assets/vendor-shiki-lang-fish-Bpv3hhJP.js +0 -1
  59. package/apps/web/dist/assets/vendor-shiki-lang-go-CIGC59jP.js +0 -1
  60. package/apps/web/dist/assets/vendor-shiki-lang-html-Bt_TLLZN.js +0 -1
  61. package/apps/web/dist/assets/vendor-shiki-lang-ini-BIllfys4.js +0 -1
  62. package/apps/web/dist/assets/vendor-shiki-lang-java-CXxu9crF.js +0 -1
  63. package/apps/web/dist/assets/vendor-shiki-lang-javascript-Cha7GNZm.js +0 -1
  64. package/apps/web/dist/assets/vendor-shiki-lang-json-CCZCjDUh.js +0 -1
  65. package/apps/web/dist/assets/vendor-shiki-lang-less-DAToytC5.js +0 -1
  66. package/apps/web/dist/assets/vendor-shiki-lang-markdown-C6lwMXFp.js +0 -1
  67. package/apps/web/dist/assets/vendor-shiki-lang-powershell-lrpuM0ez.js +0 -1
  68. package/apps/web/dist/assets/vendor-shiki-lang-python-Bi9rmtY7.js +0 -1
  69. package/apps/web/dist/assets/vendor-shiki-lang-rust-GTGDbY6A.js +0 -1
  70. package/apps/web/dist/assets/vendor-shiki-lang-sass-DFtHupN8.js +0 -1
  71. package/apps/web/dist/assets/vendor-shiki-lang-scss-BrfBNyyi.js +0 -1
  72. package/apps/web/dist/assets/vendor-shiki-lang-sql-H6--iFN-.js +0 -1
  73. package/apps/web/dist/assets/vendor-shiki-lang-toml-aTteTWYL.js +0 -1
  74. package/apps/web/dist/assets/vendor-shiki-lang-tsx-DoKZm6AV.js +0 -1
  75. package/apps/web/dist/assets/vendor-shiki-lang-typescript-B5awnqri.js +0 -1
  76. package/apps/web/dist/assets/vendor-shiki-lang-vue-CnrgQ7Z5.js +0 -1
  77. package/apps/web/dist/assets/vendor-shiki-lang-xml-Bv-TNPJt.js +0 -1
  78. package/apps/web/dist/assets/vendor-shiki-lang-yaml-DpxUxQ6M.js +0 -1
  79. package/apps/web/dist/assets/vendor-shiki-theme-github-dark-default-DBX58552.js +0 -1
  80. package/apps/web/dist/assets/vendor-shiki-theme-github-light-RLAvZv0q.js +0 -1
@@ -1,34 +1,35 @@
1
- var im=Object.defineProperty;var um=Object.getPrototypeOf;var sm=Reflect.get;var Cc=t=>{throw TypeError(t)};var om=(t,e,n)=>e in t?im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var wc=(t,e,n)=>om(t,typeof e!="symbol"?e+"":e,n),ko=(t,e,n)=>e.has(t)||Cc("Cannot "+n);var Ge=(t,e,n)=>(ko(t,e,"read from private field"),n?n.call(t):e.get(t)),Qn=(t,e,n)=>e.has(t)?Cc("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Dt=(t,e,n,r)=>(ko(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Do=(t,e,n)=>(ko(t,e,"access private method"),n);var Ec=(t,e,n)=>sm(um(t),n,e);/**
1
+ var Mm=Object.defineProperty;var Fm=Object.getPrototypeOf;var Rm=Reflect.get;var Mc=t=>{throw TypeError(t)};var Im=(t,e,n)=>e in t?Mm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Fc=(t,e,n)=>Im(t,typeof e!="symbol"?e+"":e,n),Mo=(t,e,n)=>e.has(t)||Mc("Cannot "+n);var Ge=(t,e,n)=>(Mo(t,e,"read from private field"),n?n.call(t):e.get(t)),nr=(t,e,n)=>e.has(t)?Mc("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),_t=(t,e,n,r)=>(Mo(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Fo=(t,e,n)=>(Mo(t,e,"access private method"),n);var Rc=(t,e,n)=>Rm(Fm(t),n,e);/**
2
2
  * @vue/shared v3.5.30
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function ba(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const ae={},zr=[],Jt=()=>{},ih=()=>!1,Ks=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ya=t=>t.startsWith("onUpdate:"),Ae=Object.assign,xa=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},lm=Object.prototype.hasOwnProperty,re=(t,e)=>lm.call(t,e),$=Array.isArray,$r=t=>ou(t)==="[object Map]",ni=t=>ou(t)==="[object Set]",Sc=t=>ou(t)==="[object Date]",G=t=>typeof t=="function",ge=t=>typeof t=="string",Ot=t=>typeof t=="symbol",ue=t=>t!==null&&typeof t=="object",uh=t=>(ue(t)||G(t))&&G(t.then)&&G(t.catch),sh=Object.prototype.toString,ou=t=>sh.call(t),am=t=>ou(t).slice(8,-1),oh=t=>ou(t)==="[object Object]",Js=t=>ge(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ei=ba(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zs=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},cm=/-\w/g,Ze=Zs(t=>t.replace(cm,e=>e.slice(1).toUpperCase())),fm=/\B([A-Z])/g,Jn=Zs(t=>t.replace(fm,"-$1").toLowerCase()),Xs=Zs(t=>t.charAt(0).toUpperCase()+t.slice(1)),zu=Zs(t=>t?`on${Xs(t)}`:""),jt=(t,e)=>!Object.is(t,e),$u=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},lh=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},Ys=t=>{const e=parseFloat(t);return isNaN(e)?t:e},dm=t=>{const e=ge(t)?Number(t):NaN;return isNaN(e)?t:e};let kc;const Qs=()=>kc||(kc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ca(t){if($(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=ge(r)?gm(r):Ca(r);if(i)for(const u in i)e[u]=i[u]}return e}else if(ge(t)||ue(t))return t}const hm=/;(?![^(]*\))/g,pm=/:([^]+)/,mm=/\/\*[^]*?\*\//g;function gm(t){const e={};return t.replace(mm,"").split(hm).forEach(n=>{if(n){const r=n.split(pm);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function wa(t){let e="";if(ge(t))e=t;else if($(t))for(let n=0;n<t.length;n++){const r=wa(t[n]);r&&(e+=r+" ")}else if(ue(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const bm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ym=ba(bm);function ah(t){return!!t||t===""}function xm(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=jn(t[r],e[r]);return n}function jn(t,e){if(t===e)return!0;let n=Sc(t),r=Sc(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Ot(t),r=Ot(e),n||r)return t===e;if(n=$(t),r=$(e),n||r)return n&&r?xm(t,e):!1;if(n=ue(t),r=ue(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,u=Object.keys(e).length;if(i!==u)return!1;for(const s in t){const o=t.hasOwnProperty(s),l=e.hasOwnProperty(s);if(o&&!l||!o&&l||!jn(t[s],e[s]))return!1}}return String(t)===String(e)}function Ea(t,e){return t.findIndex(n=>jn(n,e))}const ch=t=>!!(t&&t.__v_isRef===!0),Cm=t=>ge(t)?t:t==null?"":$(t)||ue(t)&&(t.toString===sh||!G(t.toString))?ch(t)?Cm(t.value):JSON.stringify(t,fh,2):String(t),fh=(t,e)=>ch(e)?fh(t,e.value):$r(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],u)=>(n[Ao(r,u)+" =>"]=i,n),{})}:ni(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Ao(n))}:Ot(e)?Ao(e):ue(e)&&!$(e)&&!oh(e)?String(e):e,Ao=(t,e="")=>{var n;return Ot(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
5
+ **/function _a(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const ae={},qr=[],Xt=()=>{},Sh=()=>!1,to=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ta=t=>t.startsWith("onUpdate:"),Ae=Object.assign,Oa=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Pm=Object.prototype.hasOwnProperty,re=(t,e)=>Pm.call(t,e),z=Array.isArray,jr=t=>du(t)==="[object Map]",oi=t=>du(t)==="[object Set]",Ic=t=>du(t)==="[object Date]",G=t=>typeof t=="function",ge=t=>typeof t=="string",Mt=t=>typeof t=="symbol",ue=t=>t!==null&&typeof t=="object",kh=t=>(ue(t)||G(t))&&G(t.then)&&G(t.catch),Dh=Object.prototype.toString,du=t=>Dh.call(t),Lm=t=>du(t).slice(8,-1),Ah=t=>du(t)==="[object Object]",no=t=>ge(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,_i=_a(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ro=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Bm=/-\w/g,Ze=ro(t=>t.replace(Bm,e=>e.slice(1).toUpperCase())),$m=/\B([A-Z])/g,Yn=ro(t=>t.replace($m,"-$1").toLowerCase()),io=ro(t=>t.charAt(0).toUpperCase()+t.slice(1)),qu=ro(t=>t?`on${io(t)}`:""),Gt=(t,e)=>!Object.is(t,e),ju=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},_h=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},uo=t=>{const e=parseFloat(t);return isNaN(e)?t:e},zm=t=>{const e=ge(t)?Number(t):NaN;return isNaN(e)?t:e};let Pc;const so=()=>Pc||(Pc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Na(t){if(z(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=ge(r)?qm(r):Na(r);if(i)for(const u in i)e[u]=i[u]}return e}else if(ge(t)||ue(t))return t}const Vm=/;(?![^(]*\))/g,Um=/:([^]+)/,Hm=/\/\*[^]*?\*\//g;function qm(t){const e={};return t.replace(Hm,"").split(Vm).forEach(n=>{if(n){const r=n.split(Um);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function va(t){let e="";if(ge(t))e=t;else if(z(t))for(let n=0;n<t.length;n++){const r=va(t[n]);r&&(e+=r+" ")}else if(ue(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const jm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Wm=_a(jm);function Th(t){return!!t||t===""}function Gm(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Kn(t[r],e[r]);return n}function Kn(t,e){if(t===e)return!0;let n=Ic(t),r=Ic(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Mt(t),r=Mt(e),n||r)return t===e;if(n=z(t),r=z(e),n||r)return n&&r?Gm(t,e):!1;if(n=ue(t),r=ue(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,u=Object.keys(e).length;if(i!==u)return!1;for(const s in t){const o=t.hasOwnProperty(s),l=e.hasOwnProperty(s);if(o&&!l||!o&&l||!Kn(t[s],e[s]))return!1}}return String(t)===String(e)}function Ma(t,e){return t.findIndex(n=>Kn(n,e))}const Oh=t=>!!(t&&t.__v_isRef===!0),Km=t=>ge(t)?t:t==null?"":z(t)||ue(t)&&(t.toString===Dh||!G(t.toString))?Oh(t)?Km(t.value):JSON.stringify(t,Nh,2):String(t),Nh=(t,e)=>Oh(e)?Nh(t,e.value):jr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],u)=>(n[Ro(r,u)+" =>"]=i,n),{})}:oi(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Ro(n))}:Mt(e)?Ro(e):ue(e)&&!z(e)&&!Ah(e)?String(e):e,Ro=(t,e="")=>{var n;return Mt(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
6
6
  * @vue/reactivity v3.5.30
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let nt;class wm{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=nt,!e&&nt&&(this.index=(nt.scopes||(nt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=nt;try{return nt=this,e()}finally{nt=n}}}on(){++this._on===1&&(this.prevScope=nt,nt=this)}off(){this._on>0&&--this._on===0&&(nt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Em(){return nt}let he;const _o=new WeakSet;class dh{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,nt&&nt.active&&nt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_o.has(this)&&(_o.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ph(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dc(this),mh(this);const e=he,n=Tt;he=this,Tt=!0;try{return this.fn()}finally{gh(this),he=e,Tt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Da(e);this.deps=this.depsTail=void 0,Dc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_o.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){wl(this)&&this.run()}get dirty(){return wl(this)}}let hh=0,Si,ki;function ph(t,e=!1){if(t.flags|=8,e){t.next=ki,ki=t;return}t.next=Si,Si=t}function Sa(){hh++}function ka(){if(--hh>0)return;if(ki){let e=ki;for(ki=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Si;){let e=Si;for(Si=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function mh(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function gh(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Da(r),Sm(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function wl(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(bh(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function bh(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Vi)||(t.globalVersion=Vi,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!wl(t))))return;t.flags|=2;const e=t.dep,n=he,r=Tt;he=t,Tt=!0;try{mh(t);const i=t.fn(t._value);(e.version===0||jt(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{he=n,Tt=r,gh(t),t.flags&=-3}}function Da(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let u=n.computed.deps;u;u=u.nextDep)Da(u,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function Sm(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Tt=!0;const yh=[];function yn(){yh.push(Tt),Tt=!1}function xn(){const t=yh.pop();Tt=t===void 0?!0:t}function Dc(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=he;he=void 0;try{e()}finally{he=n}}}let Vi=0;class km{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class eo{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!he||!Tt||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new km(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,xh(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=r)}return n}trigger(e){this.version++,Vi++,this.notify(e)}notify(e){Sa();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ka()}}}function xh(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)xh(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Zu=new WeakMap,mr=Symbol(""),El=Symbol(""),Ui=Symbol("");function He(t,e,n){if(Tt&&he){let r=Zu.get(t);r||Zu.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new eo),i.map=r,i.key=n),i.track()}}function dn(t,e,n,r,i,u){const s=Zu.get(t);if(!s){Vi++;return}const o=l=>{l&&l.trigger()};if(Sa(),e==="clear")s.forEach(o);else{const l=$(t),a=l&&Js(n);if(l&&n==="length"){const c=Number(r);s.forEach((f,d)=>{(d==="length"||d===Ui||!Ot(d)&&d>=c)&&o(f)})}else switch((n!==void 0||s.has(void 0))&&o(s.get(n)),a&&o(s.get(Ui)),e){case"add":l?a&&o(s.get("length")):(o(s.get(mr)),$r(t)&&o(s.get(El)));break;case"delete":l||(o(s.get(mr)),$r(t)&&o(s.get(El)));break;case"set":$r(t)&&o(s.get(mr));break}}ka()}function Dm(t,e){const n=Zu.get(t);return n&&n.get(e)}function Tr(t){const e=ee(t);return e===t?e:(He(e,"iterate",Ui),ft(t)?e:e.map(vt))}function to(t){return He(t=ee(t),"iterate",Ui),t}function Ht(t,e){return Cn(t)?Jr(gr(t)?vt(e):e):vt(e)}const Am={__proto__:null,[Symbol.iterator](){return To(this,Symbol.iterator,t=>Ht(this,t))},concat(...t){return Tr(this).concat(...t.map(e=>$(e)?Tr(e):e))},entries(){return To(this,"entries",t=>(t[1]=Ht(this,t[1]),t))},every(t,e){return Qt(this,"every",t,e,void 0,arguments)},filter(t,e){return Qt(this,"filter",t,e,n=>n.map(r=>Ht(this,r)),arguments)},find(t,e){return Qt(this,"find",t,e,n=>Ht(this,n),arguments)},findIndex(t,e){return Qt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Qt(this,"findLast",t,e,n=>Ht(this,n),arguments)},findLastIndex(t,e){return Qt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Qt(this,"forEach",t,e,void 0,arguments)},includes(...t){return No(this,"includes",t)},indexOf(...t){return No(this,"indexOf",t)},join(t){return Tr(this).join(t)},lastIndexOf(...t){return No(this,"lastIndexOf",t)},map(t,e){return Qt(this,"map",t,e,void 0,arguments)},pop(){return ci(this,"pop")},push(...t){return ci(this,"push",t)},reduce(t,...e){return Ac(this,"reduce",t,e)},reduceRight(t,...e){return Ac(this,"reduceRight",t,e)},shift(){return ci(this,"shift")},some(t,e){return Qt(this,"some",t,e,void 0,arguments)},splice(...t){return ci(this,"splice",t)},toReversed(){return Tr(this).toReversed()},toSorted(t){return Tr(this).toSorted(t)},toSpliced(...t){return Tr(this).toSpliced(...t)},unshift(...t){return ci(this,"unshift",t)},values(){return To(this,"values",t=>Ht(this,t))}};function To(t,e,n){const r=to(t),i=r[e]();return r!==t&&!ft(t)&&(i._next=i.next,i.next=()=>{const u=i._next();return u.done||(u.value=n(u.value)),u}),i}const _m=Array.prototype;function Qt(t,e,n,r,i,u){const s=to(t),o=s!==t&&!ft(t),l=s[e];if(l!==_m[e]){const f=l.apply(t,u);return o?vt(f):f}let a=n;s!==t&&(o?a=function(f,d){return n.call(this,Ht(t,f),d,t)}:n.length>2&&(a=function(f,d){return n.call(this,f,d,t)}));const c=l.call(s,a,r);return o&&i?i(c):c}function Ac(t,e,n,r){const i=to(t),u=i!==t&&!ft(t);let s=n,o=!1;i!==t&&(u?(o=r.length===0,s=function(a,c,f){return o&&(o=!1,a=Ht(t,a)),n.call(this,a,Ht(t,c),f,t)}):n.length>3&&(s=function(a,c,f){return n.call(this,a,c,f,t)}));const l=i[e](s,...r);return o?Ht(t,l):l}function No(t,e,n){const r=ee(t);He(r,"iterate",Ui);const i=r[e](...n);return(i===-1||i===!1)&&no(n[0])?(n[0]=ee(n[0]),r[e](...n)):i}function ci(t,e,n=[]){yn(),Sa();const r=ee(t)[e].apply(t,n);return ka(),xn(),r}const Tm=ba("__proto__,__v_isRef,__isVue"),Ch=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Ot));function Nm(t){Ot(t)||(t=String(t));const e=ee(this);return He(e,"has",t),e.hasOwnProperty(t)}class wh{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,u=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return u;if(n==="__v_raw")return r===(i?u?zm:Dh:u?kh:Sh).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=$(e);if(!i){let l;if(s&&(l=Am[n]))return l;if(n==="hasOwnProperty")return Nm}const o=Reflect.get(e,n,ve(e)?e:r);if((Ot(n)?Ch.has(n):Tm(n))||(i||He(e,"get",n),u))return o;if(ve(o)){const l=s&&Js(n)?o:o.value;return i&&ue(l)?kl(l):l}return ue(o)?i?kl(o):_a(o):o}}class Eh extends wh{constructor(e=!1){super(!1,e)}set(e,n,r,i){let u=e[n];const s=$(e)&&Js(n);if(!this._isShallow){const a=Cn(u);if(!ft(r)&&!Cn(r)&&(u=ee(u),r=ee(r)),!s&&ve(u)&&!ve(r))return a||(u.value=r),!0}const o=s?Number(n)<e.length:re(e,n),l=Reflect.set(e,n,r,ve(e)?e:i);return e===ee(i)&&(o?jt(r,u)&&dn(e,"set",n,r):dn(e,"add",n,r)),l}deleteProperty(e,n){const r=re(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&dn(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!Ot(n)||!Ch.has(n))&&He(e,"has",n),r}ownKeys(e){return He(e,"iterate",$(e)?"length":mr),Reflect.ownKeys(e)}}class Om extends wh{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const vm=new Eh,Mm=new Om,Fm=new Eh(!0);const Sl=t=>t,wu=t=>Reflect.getPrototypeOf(t);function Im(t,e,n){return function(...r){const i=this.__v_raw,u=ee(i),s=$r(u),o=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,a=i[t](...r),c=n?Sl:e?Jr:vt;return!e&&He(u,"iterate",l?El:mr),Ae(Object.create(a),{next(){const{value:f,done:d}=a.next();return d?{value:f,done:d}:{value:o?[c(f[0]),c(f[1])]:c(f),done:d}}})}}function Eu(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Rm(t,e){const n={get(i){const u=this.__v_raw,s=ee(u),o=ee(i);t||(jt(i,o)&&He(s,"get",i),He(s,"get",o));const{has:l}=wu(s),a=e?Sl:t?Jr:vt;if(l.call(s,i))return a(u.get(i));if(l.call(s,o))return a(u.get(o));u!==s&&u.get(i)},get size(){const i=this.__v_raw;return!t&&He(ee(i),"iterate",mr),i.size},has(i){const u=this.__v_raw,s=ee(u),o=ee(i);return t||(jt(i,o)&&He(s,"has",i),He(s,"has",o)),i===o?u.has(i):u.has(i)||u.has(o)},forEach(i,u){const s=this,o=s.__v_raw,l=ee(o),a=e?Sl:t?Jr:vt;return!t&&He(l,"iterate",mr),o.forEach((c,f)=>i.call(u,a(c),a(f),s))}};return Ae(n,t?{add:Eu("add"),set:Eu("set"),delete:Eu("delete"),clear:Eu("clear")}:{add(i){const u=ee(this),s=wu(u),o=ee(i),l=!e&&!ft(i)&&!Cn(i)?o:i;return s.has.call(u,l)||jt(i,l)&&s.has.call(u,i)||jt(o,l)&&s.has.call(u,o)||(u.add(l),dn(u,"add",l,l)),this},set(i,u){!e&&!ft(u)&&!Cn(u)&&(u=ee(u));const s=ee(this),{has:o,get:l}=wu(s);let a=o.call(s,i);a||(i=ee(i),a=o.call(s,i));const c=l.call(s,i);return s.set(i,u),a?jt(u,c)&&dn(s,"set",i,u):dn(s,"add",i,u),this},delete(i){const u=ee(this),{has:s,get:o}=wu(u);let l=s.call(u,i);l||(i=ee(i),l=s.call(u,i)),o&&o.call(u,i);const a=u.delete(i);return l&&dn(u,"delete",i,void 0),a},clear(){const i=ee(this),u=i.size!==0,s=i.clear();return u&&dn(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Im(i,t,e)}),n}function Aa(t,e){const n=Rm(t,e);return(r,i,u)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(re(n,i)&&i in r?n:r,i,u)}const Pm={get:Aa(!1,!1)},Lm={get:Aa(!1,!0)},Bm={get:Aa(!0,!1)};const Sh=new WeakMap,kh=new WeakMap,Dh=new WeakMap,zm=new WeakMap;function $m(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vm(t){return t.__v_skip||!Object.isExtensible(t)?0:$m(am(t))}function _a(t){return Cn(t)?t:Ta(t,!1,vm,Pm,Sh)}function Um(t){return Ta(t,!1,Fm,Lm,kh)}function kl(t){return Ta(t,!0,Mm,Bm,Dh)}function Ta(t,e,n,r,i){if(!ue(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const u=Vm(t);if(u===0)return t;const s=i.get(t);if(s)return s;const o=new Proxy(t,u===2?r:n);return i.set(t,o),o}function gr(t){return Cn(t)?gr(t.__v_raw):!!(t&&t.__v_isReactive)}function Cn(t){return!!(t&&t.__v_isReadonly)}function ft(t){return!!(t&&t.__v_isShallow)}function no(t){return t?!!t.__v_raw:!1}function ee(t){const e=t&&t.__v_raw;return e?ee(e):t}function Hm(t){return!re(t,"__v_skip")&&Object.isExtensible(t)&&lh(t,"__v_skip",!0),t}const vt=t=>ue(t)?_a(t):t,Jr=t=>ue(t)?kl(t):t;function ve(t){return t?t.__v_isRef===!0:!1}function Oo(t){return Ah(t,!1)}function C8(t){return Ah(t,!0)}function Ah(t,e){return ve(t)?t:new qm(t,e)}class qm{constructor(e,n){this.dep=new eo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:ee(e),this._value=n?e:vt(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||ft(e)||Cn(e);e=r?e:ee(e),jt(e,n)&&(this._rawValue=e,this._value=r?e:vt(e),this.dep.trigger())}}function _h(t){return ve(t)?t.value:t}const jm={get:(t,e,n)=>e==="__v_raw"?t:_h(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return ve(i)&&!ve(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Th(t){return gr(t)?t:new Proxy(t,jm)}class Wm{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new eo,{get:r,set:i}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function w8(t){return new Wm(t)}function E8(t){const e=$(t)?new Array(t.length):{};for(const n in t)e[n]=Km(t,n);return e}class Gm{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ee(e);let i=!0,u=e;if(!$(e)||!Js(String(n)))do i=!no(u)||ft(u);while(i&&(u=u.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=_h(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&ve(this._raw[this._key])){const n=this._object[this._key];if(ve(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return Dm(this._raw,this._key)}}function Km(t,e,n){return new Gm(t,e,n)}class Jm{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new eo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return ph(this,!0),!0}get value(){const e=this.dep.track();return bh(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Zm(t,e,n=!1){let r,i;return G(t)?r=t:(r=t.get,i=t.set),new Jm(r,i,n)}const Su={},Xu=new WeakMap;let ur;function Xm(t,e=!1,n=ur){if(n){let r=Xu.get(n);r||Xu.set(n,r=[]),r.push(t)}}function Ym(t,e,n=ae){const{immediate:r,deep:i,once:u,scheduler:s,augmentJob:o,call:l}=n,a=N=>i?N:ft(N)||i===!1||i===0?hn(N,1):hn(N);let c,f,d,h,p=!1,m=!1;if(ve(t)?(f=()=>t.value,p=ft(t)):gr(t)?(f=()=>a(t),p=!0):$(t)?(m=!0,p=t.some(N=>gr(N)||ft(N)),f=()=>t.map(N=>{if(ve(N))return N.value;if(gr(N))return a(N);if(G(N))return l?l(N,2):N()})):G(t)?e?f=l?()=>l(t,2):t:f=()=>{if(d){yn();try{d()}finally{xn()}}const N=ur;ur=c;try{return l?l(t,3,[h]):t(h)}finally{ur=N}}:f=Jt,e&&i){const N=f,F=i===!0?1/0:i;f=()=>hn(N(),F)}const b=Em(),x=()=>{c.stop(),b&&b.active&&xa(b.effects,c)};if(u&&e){const N=e;e=(...F)=>{N(...F),x()}}let w=m?new Array(t.length).fill(Su):Su;const E=N=>{if(!(!(c.flags&1)||!c.dirty&&!N))if(e){const F=c.run();if(i||p||(m?F.some((j,R)=>jt(j,w[R])):jt(F,w))){d&&d();const j=ur;ur=c;try{const R=[F,w===Su?void 0:m&&w[0]===Su?[]:w,h];w=F,l?l(e,3,R):e(...R)}finally{ur=j}}}else c.run()};return o&&o(E),c=new dh(f),c.scheduler=s?()=>s(E,!1):E,h=N=>Xm(N,!1,c),d=c.onStop=()=>{const N=Xu.get(c);if(N){if(l)l(N,4);else for(const F of N)F();Xu.delete(c)}},e?r?E(!0):w=c.run():s?s(E.bind(null,!0),!0):c.run(),x.pause=c.pause.bind(c),x.resume=c.resume.bind(c),x.stop=x,x}function hn(t,e=1/0,n){if(e<=0||!ue(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,ve(t))hn(t.value,e,n);else if($(t))for(let r=0;r<t.length;r++)hn(t[r],e,n);else if(ni(t)||$r(t))t.forEach(r=>{hn(r,e,n)});else if(oh(t)){for(const r in t)hn(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&hn(t[r],e,n)}return t}/**
9
+ **/let nt;class Jm{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=nt,!e&&nt&&(this.index=(nt.scopes||(nt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=nt;try{return nt=this,e()}finally{nt=n}}}on(){++this._on===1&&(this.prevScope=nt,nt=this)}off(){this._on>0&&--this._on===0&&(nt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Zm(){return nt}let he;const Io=new WeakSet;class vh{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,nt&&nt.active&&nt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Io.has(this)&&(Io.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Fh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Lc(this),Rh(this);const e=he,n=Nt;he=this,Nt=!0;try{return this.fn()}finally{Ih(this),he=e,Nt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ia(e);this.deps=this.depsTail=void 0,Lc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Io.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nl(this)&&this.run()}get dirty(){return Nl(this)}}let Mh=0,Ti,Oi;function Fh(t,e=!1){if(t.flags|=8,e){t.next=Oi,Oi=t;return}t.next=Ti,Ti=t}function Fa(){Mh++}function Ra(){if(--Mh>0)return;if(Oi){let e=Oi;for(Oi=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Ti;){let e=Ti;for(Ti=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Rh(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Ih(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Ia(r),Xm(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function Nl(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Ph(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Ph(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Wi)||(t.globalVersion=Wi,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Nl(t))))return;t.flags|=2;const e=t.dep,n=he,r=Nt;he=t,Nt=!0;try{Rh(t);const i=t.fn(t._value);(e.version===0||Gt(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{he=n,Nt=r,Ih(t),t.flags&=-3}}function Ia(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let u=n.computed.deps;u;u=u.nextDep)Ia(u,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function Xm(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Nt=!0;const Lh=[];function Cn(){Lh.push(Nt),Nt=!1}function wn(){const t=Lh.pop();Nt=t===void 0?!0:t}function Lc(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=he;he=void 0;try{e()}finally{he=n}}}let Wi=0;class Ym{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class oo{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!he||!Nt||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new Ym(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,Bh(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=r)}return n}trigger(e){this.version++,Wi++,this.notify(e)}notify(e){Fa();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ra()}}}function Bh(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)Bh(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const ts=new WeakMap,yr=Symbol(""),vl=Symbol(""),Gi=Symbol("");function He(t,e,n){if(Nt&&he){let r=ts.get(t);r||ts.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new oo),i.map=r,i.key=n),i.track()}}function pn(t,e,n,r,i,u){const s=ts.get(t);if(!s){Wi++;return}const o=l=>{l&&l.trigger()};if(Fa(),e==="clear")s.forEach(o);else{const l=z(t),a=l&&no(n);if(l&&n==="length"){const c=Number(r);s.forEach((f,d)=>{(d==="length"||d===Gi||!Mt(d)&&d>=c)&&o(f)})}else switch((n!==void 0||s.has(void 0))&&o(s.get(n)),a&&o(s.get(Gi)),e){case"add":l?a&&o(s.get("length")):(o(s.get(yr)),jr(t)&&o(s.get(vl)));break;case"delete":l||(o(s.get(yr)),jr(t)&&o(s.get(vl)));break;case"set":jr(t)&&o(s.get(yr));break}}Ra()}function Qm(t,e){const n=ts.get(t);return n&&n.get(e)}function vr(t){const e=ee(t);return e===t?e:(He(e,"iterate",Gi),ht(t)?e:e.map(Ft))}function lo(t){return He(t=ee(t),"iterate",Gi),t}function jt(t,e){return En(t)?ei(xr(t)?Ft(e):e):Ft(e)}const eg={__proto__:null,[Symbol.iterator](){return Po(this,Symbol.iterator,t=>jt(this,t))},concat(...t){return vr(this).concat(...t.map(e=>z(e)?vr(e):e))},entries(){return Po(this,"entries",t=>(t[1]=jt(this,t[1]),t))},every(t,e){return tn(this,"every",t,e,void 0,arguments)},filter(t,e){return tn(this,"filter",t,e,n=>n.map(r=>jt(this,r)),arguments)},find(t,e){return tn(this,"find",t,e,n=>jt(this,n),arguments)},findIndex(t,e){return tn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return tn(this,"findLast",t,e,n=>jt(this,n),arguments)},findLastIndex(t,e){return tn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return tn(this,"forEach",t,e,void 0,arguments)},includes(...t){return Lo(this,"includes",t)},indexOf(...t){return Lo(this,"indexOf",t)},join(t){return vr(this).join(t)},lastIndexOf(...t){return Lo(this,"lastIndexOf",t)},map(t,e){return tn(this,"map",t,e,void 0,arguments)},pop(){return mi(this,"pop")},push(...t){return mi(this,"push",t)},reduce(t,...e){return Bc(this,"reduce",t,e)},reduceRight(t,...e){return Bc(this,"reduceRight",t,e)},shift(){return mi(this,"shift")},some(t,e){return tn(this,"some",t,e,void 0,arguments)},splice(...t){return mi(this,"splice",t)},toReversed(){return vr(this).toReversed()},toSorted(t){return vr(this).toSorted(t)},toSpliced(...t){return vr(this).toSpliced(...t)},unshift(...t){return mi(this,"unshift",t)},values(){return Po(this,"values",t=>jt(this,t))}};function Po(t,e,n){const r=lo(t),i=r[e]();return r!==t&&!ht(t)&&(i._next=i.next,i.next=()=>{const u=i._next();return u.done||(u.value=n(u.value)),u}),i}const tg=Array.prototype;function tn(t,e,n,r,i,u){const s=lo(t),o=s!==t&&!ht(t),l=s[e];if(l!==tg[e]){const f=l.apply(t,u);return o?Ft(f):f}let a=n;s!==t&&(o?a=function(f,d){return n.call(this,jt(t,f),d,t)}:n.length>2&&(a=function(f,d){return n.call(this,f,d,t)}));const c=l.call(s,a,r);return o&&i?i(c):c}function Bc(t,e,n,r){const i=lo(t),u=i!==t&&!ht(t);let s=n,o=!1;i!==t&&(u?(o=r.length===0,s=function(a,c,f){return o&&(o=!1,a=jt(t,a)),n.call(this,a,jt(t,c),f,t)}):n.length>3&&(s=function(a,c,f){return n.call(this,a,c,f,t)}));const l=i[e](s,...r);return o?jt(t,l):l}function Lo(t,e,n){const r=ee(t);He(r,"iterate",Gi);const i=r[e](...n);return(i===-1||i===!1)&&ao(n[0])?(n[0]=ee(n[0]),r[e](...n)):i}function mi(t,e,n=[]){Cn(),Fa();const r=ee(t)[e].apply(t,n);return Ra(),wn(),r}const ng=_a("__proto__,__v_isRef,__isVue"),$h=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Mt));function rg(t){Mt(t)||(t=String(t));const e=ee(this);return He(e,"has",t),e.hasOwnProperty(t)}class zh{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,u=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return u;if(n==="__v_raw")return r===(i?u?hg:qh:u?Hh:Uh).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=z(e);if(!i){let l;if(s&&(l=eg[n]))return l;if(n==="hasOwnProperty")return rg}const o=Reflect.get(e,n,ve(e)?e:r);if((Mt(n)?$h.has(n):ng(n))||(i||He(e,"get",n),u))return o;if(ve(o)){const l=s&&no(n)?o:o.value;return i&&ue(l)?Fl(l):l}return ue(o)?i?Fl(o):La(o):o}}class Vh extends zh{constructor(e=!1){super(!1,e)}set(e,n,r,i){let u=e[n];const s=z(e)&&no(n);if(!this._isShallow){const a=En(u);if(!ht(r)&&!En(r)&&(u=ee(u),r=ee(r)),!s&&ve(u)&&!ve(r))return a||(u.value=r),!0}const o=s?Number(n)<e.length:re(e,n),l=Reflect.set(e,n,r,ve(e)?e:i);return e===ee(i)&&(o?Gt(r,u)&&pn(e,"set",n,r):pn(e,"add",n,r)),l}deleteProperty(e,n){const r=re(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&pn(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!Mt(n)||!$h.has(n))&&He(e,"has",n),r}ownKeys(e){return He(e,"iterate",z(e)?"length":yr),Reflect.ownKeys(e)}}class ig extends zh{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const ug=new Vh,sg=new ig,og=new Vh(!0);const Ml=t=>t,Au=t=>Reflect.getPrototypeOf(t);function lg(t,e,n){return function(...r){const i=this.__v_raw,u=ee(i),s=jr(u),o=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,a=i[t](...r),c=n?Ml:e?ei:Ft;return!e&&He(u,"iterate",l?vl:yr),Ae(Object.create(a),{next(){const{value:f,done:d}=a.next();return d?{value:f,done:d}:{value:o?[c(f[0]),c(f[1])]:c(f),done:d}}})}}function _u(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function ag(t,e){const n={get(i){const u=this.__v_raw,s=ee(u),o=ee(i);t||(Gt(i,o)&&He(s,"get",i),He(s,"get",o));const{has:l}=Au(s),a=e?Ml:t?ei:Ft;if(l.call(s,i))return a(u.get(i));if(l.call(s,o))return a(u.get(o));u!==s&&u.get(i)},get size(){const i=this.__v_raw;return!t&&He(ee(i),"iterate",yr),i.size},has(i){const u=this.__v_raw,s=ee(u),o=ee(i);return t||(Gt(i,o)&&He(s,"has",i),He(s,"has",o)),i===o?u.has(i):u.has(i)||u.has(o)},forEach(i,u){const s=this,o=s.__v_raw,l=ee(o),a=e?Ml:t?ei:Ft;return!t&&He(l,"iterate",yr),o.forEach((c,f)=>i.call(u,a(c),a(f),s))}};return Ae(n,t?{add:_u("add"),set:_u("set"),delete:_u("delete"),clear:_u("clear")}:{add(i){const u=ee(this),s=Au(u),o=ee(i),l=!e&&!ht(i)&&!En(i)?o:i;return s.has.call(u,l)||Gt(i,l)&&s.has.call(u,i)||Gt(o,l)&&s.has.call(u,o)||(u.add(l),pn(u,"add",l,l)),this},set(i,u){!e&&!ht(u)&&!En(u)&&(u=ee(u));const s=ee(this),{has:o,get:l}=Au(s);let a=o.call(s,i);a||(i=ee(i),a=o.call(s,i));const c=l.call(s,i);return s.set(i,u),a?Gt(u,c)&&pn(s,"set",i,u):pn(s,"add",i,u),this},delete(i){const u=ee(this),{has:s,get:o}=Au(u);let l=s.call(u,i);l||(i=ee(i),l=s.call(u,i)),o&&o.call(u,i);const a=u.delete(i);return l&&pn(u,"delete",i,void 0),a},clear(){const i=ee(this),u=i.size!==0,s=i.clear();return u&&pn(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=lg(i,t,e)}),n}function Pa(t,e){const n=ag(t,e);return(r,i,u)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(re(n,i)&&i in r?n:r,i,u)}const cg={get:Pa(!1,!1)},fg={get:Pa(!1,!0)},dg={get:Pa(!0,!1)};const Uh=new WeakMap,Hh=new WeakMap,qh=new WeakMap,hg=new WeakMap;function pg(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mg(t){return t.__v_skip||!Object.isExtensible(t)?0:pg(Lm(t))}function La(t){return En(t)?t:Ba(t,!1,ug,cg,Uh)}function gg(t){return Ba(t,!1,og,fg,Hh)}function Fl(t){return Ba(t,!0,sg,dg,qh)}function Ba(t,e,n,r,i){if(!ue(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const u=mg(t);if(u===0)return t;const s=i.get(t);if(s)return s;const o=new Proxy(t,u===2?r:n);return i.set(t,o),o}function xr(t){return En(t)?xr(t.__v_raw):!!(t&&t.__v_isReactive)}function En(t){return!!(t&&t.__v_isReadonly)}function ht(t){return!!(t&&t.__v_isShallow)}function ao(t){return t?!!t.__v_raw:!1}function ee(t){const e=t&&t.__v_raw;return e?ee(e):t}function bg(t){return!re(t,"__v_skip")&&Object.isExtensible(t)&&_h(t,"__v_skip",!0),t}const Ft=t=>ue(t)?La(t):t,ei=t=>ue(t)?Fl(t):t;function ve(t){return t?t.__v_isRef===!0:!1}function Bo(t){return jh(t,!1)}function V8(t){return jh(t,!0)}function jh(t,e){return ve(t)?t:new yg(t,e)}class yg{constructor(e,n){this.dep=new oo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:ee(e),this._value=n?e:Ft(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||ht(e)||En(e);e=r?e:ee(e),Gt(e,n)&&(this._rawValue=e,this._value=r?e:Ft(e),this.dep.trigger())}}function Wh(t){return ve(t)?t.value:t}const xg={get:(t,e,n)=>e==="__v_raw"?t:Wh(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return ve(i)&&!ve(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Gh(t){return xr(t)?t:new Proxy(t,xg)}class Cg{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new oo,{get:r,set:i}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function U8(t){return new Cg(t)}function H8(t){const e=z(t)?new Array(t.length):{};for(const n in t)e[n]=Eg(t,n);return e}class wg{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ee(e);let i=!0,u=e;if(!z(e)||!no(String(n)))do i=!ao(u)||ht(u);while(i&&(u=u.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=Wh(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&ve(this._raw[this._key])){const n=this._object[this._key];if(ve(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return Qm(this._raw,this._key)}}function Eg(t,e,n){return new wg(t,e,n)}class Sg{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new oo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return Fh(this,!0),!0}get value(){const e=this.dep.track();return Ph(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function kg(t,e,n=!1){let r,i;return G(t)?r=t:(r=t.get,i=t.set),new Sg(r,i,n)}const Tu={},ns=new WeakMap;let lr;function Dg(t,e=!1,n=lr){if(n){let r=ns.get(n);r||ns.set(n,r=[]),r.push(t)}}function Ag(t,e,n=ae){const{immediate:r,deep:i,once:u,scheduler:s,augmentJob:o,call:l}=n,a=O=>i?O:ht(O)||i===!1||i===0?mn(O,1):mn(O);let c,f,d,h,p=!1,m=!1;if(ve(t)?(f=()=>t.value,p=ht(t)):xr(t)?(f=()=>a(t),p=!0):z(t)?(m=!0,p=t.some(O=>xr(O)||ht(O)),f=()=>t.map(O=>{if(ve(O))return O.value;if(xr(O))return a(O);if(G(O))return l?l(O,2):O()})):G(t)?e?f=l?()=>l(t,2):t:f=()=>{if(d){Cn();try{d()}finally{wn()}}const O=lr;lr=c;try{return l?l(t,3,[h]):t(h)}finally{lr=O}}:f=Xt,e&&i){const O=f,F=i===!0?1/0:i;f=()=>mn(O(),F)}const b=Zm(),x=()=>{c.stop(),b&&b.active&&Oa(b.effects,c)};if(u&&e){const O=e;e=(...F)=>{O(...F),x()}}let w=m?new Array(t.length).fill(Tu):Tu;const E=O=>{if(!(!(c.flags&1)||!c.dirty&&!O))if(e){const F=c.run();if(i||p||(m?F.some((j,I)=>Gt(j,w[I])):Gt(F,w))){d&&d();const j=lr;lr=c;try{const I=[F,w===Tu?void 0:m&&w[0]===Tu?[]:w,h];w=F,l?l(e,3,I):e(...I)}finally{lr=j}}}else c.run()};return o&&o(E),c=new vh(f),c.scheduler=s?()=>s(E,!1):E,h=O=>Dg(O,!1,c),d=c.onStop=()=>{const O=ns.get(c);if(O){if(l)l(O,4);else for(const F of O)F();ns.delete(c)}},e?r?E(!0):w=c.run():s?s(E.bind(null,!0),!0):c.run(),x.pause=c.pause.bind(c),x.resume=c.resume.bind(c),x.stop=x,x}function mn(t,e=1/0,n){if(e<=0||!ue(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,ve(t))mn(t.value,e,n);else if(z(t))for(let r=0;r<t.length;r++)mn(t[r],e,n);else if(oi(t)||jr(t))t.forEach(r=>{mn(r,e,n)});else if(Ah(t)){for(const r in t)mn(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&mn(t[r],e,n)}return t}/**
10
10
  * @vue/runtime-core v3.5.30
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/function lu(t,e,n,r){try{return r?t(...r):t()}catch(i){au(i,e,n)}}function Mt(t,e,n,r){if(G(t)){const i=lu(t,e,n,r);return i&&uh(i)&&i.catch(u=>{au(u,e,n)}),i}if($(t)){const i=[];for(let u=0;u<t.length;u++)i.push(Mt(t[u],e,n,r));return i}}function au(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:u,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||ae;if(e){let o=e.parent;const l=e.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](t,l,a)===!1)return}o=o.parent}if(u){yn(),lu(u,null,10,[t,l,a]),xn();return}}Qm(t,n,i,r,s)}function Qm(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const Je=[];let Bt=-1;const Vr=[];let _n=null,Fr=0;const Nh=Promise.resolve();let Yu=null;function Oh(t){const e=Yu||Nh;return t?e.then(this?t.bind(this):t):e}function eg(t){let e=Bt+1,n=Je.length;for(;e<n;){const r=e+n>>>1,i=Je[r],u=Hi(i);u<t||u===t&&i.flags&2?e=r+1:n=r}return e}function Na(t){if(!(t.flags&1)){const e=Hi(t),n=Je[Je.length-1];!n||!(t.flags&2)&&e>=Hi(n)?Je.push(t):Je.splice(eg(e),0,t),t.flags|=1,vh()}}function vh(){Yu||(Yu=Nh.then(Fh))}function tg(t){$(t)?Vr.push(...t):_n&&t.id===-1?_n.splice(Fr+1,0,t):t.flags&1||(Vr.push(t),t.flags|=1),vh()}function _c(t,e,n=Bt+1){for(;n<Je.length;n++){const r=Je[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;Je.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Mh(t){if(Vr.length){const e=[...new Set(Vr)].sort((n,r)=>Hi(n)-Hi(r));if(Vr.length=0,_n){_n.push(...e);return}for(_n=e,Fr=0;Fr<_n.length;Fr++){const n=_n[Fr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}_n=null,Fr=0}}const Hi=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Fh(t){try{for(Bt=0;Bt<Je.length;Bt++){const e=Je[Bt];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),lu(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Bt<Je.length;Bt++){const e=Je[Bt];e&&(e.flags&=-2)}Bt=-1,Je.length=0,Mh(),Yu=null,(Je.length||Vr.length)&&Fh()}}let Le=null,Ih=null;function Qu(t){const e=Le;return Le=t,Ih=t&&t.type.__scopeId||null,e}function ng(t,e=Le,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&ns(-1);const u=Qu(e);let s;try{s=t(...i)}finally{Qu(u),r._d&&ns(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function S8(t,e){if(Le===null)return t;const n=so(Le),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[u,s,o,l=ae]=e[i];u&&(G(u)&&(u={mounted:u,updated:u}),u.deep&&hn(s),r.push({dir:u,instance:n,value:s,oldValue:void 0,arg:o,modifiers:l}))}return t}function er(t,e,n,r){const i=t.dirs,u=e&&e.dirs;for(let s=0;s<i.length;s++){const o=i[s];u&&(o.oldValue=u[s].value);let l=o.dir[r];l&&(yn(),Mt(l,n,8,[t.el,o,t,e]),xn())}}function rg(t,e){if(Pe){let n=Pe.provides;const r=Pe.parent&&Pe.parent.provides;r===n&&(n=Pe.provides=Object.create(r)),n[t]=e}}function Vu(t,e,n=!1){const r=b0();if(r||Hr){let i=Hr?Hr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&G(e)?e.call(r&&r.proxy):e}}const ig=Symbol.for("v-scx"),ug=()=>Vu(ig);function k8(t,e){return Oa(t,null,e)}function vo(t,e,n){return Oa(t,e,n)}function Oa(t,e,n=ae){const{immediate:r,deep:i,flush:u,once:s}=n,o=Ae({},n),l=e&&r||!e&&u!=="post";let a;if(Zr){if(u==="sync"){const h=ug();a=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Jt,h.resume=Jt,h.pause=Jt,h}}const c=Pe;o.call=(h,p,m)=>Mt(h,c,p,m);let f=!1;u==="post"?o.scheduler=h=>{Ve(h,c&&c.suspense)}:u!=="sync"&&(f=!0,o.scheduler=(h,p)=>{p?h():Na(h)}),o.augmentJob=h=>{e&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Ym(t,e,o);return Zr&&(a?a.push(d):l&&d()),d}function sg(t,e,n){const r=this.proxy,i=ge(t)?t.includes(".")?Rh(r,t):()=>r[t]:t.bind(r,r);let u;G(e)?u=e:(u=e.handler,n=e);const s=fu(this),o=Oa(i,u.bind(r),n);return s(),o}function Rh(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const Ph=Symbol("_vte"),Lh=t=>t.__isTeleport,Di=t=>t&&(t.disabled||t.disabled===""),Tc=t=>t&&(t.defer||t.defer===""),Nc=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Oc=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Dl=(t,e)=>{const n=t&&t.to;return ge(n)?e?e(n):null:n},Bh={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,u,s,o,l,a){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:m,createComment:b}}=a,x=Di(e.props);let{shapeFlag:w,children:E,dynamicChildren:N}=e;if(t==null){const F=e.el=m(""),j=e.anchor=m("");h(F,n,r),h(j,n,r);const R=(P,J)=>{w&16&&c(E,P,J,i,u,s,o,l)},U=()=>{const P=e.target=Dl(e.props,p),J=Al(P,e,m,h);P&&(s!=="svg"&&Nc(P)?s="svg":s!=="mathml"&&Oc(P)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(P),x||(R(P,J),Uu(e,!1)))};x&&(R(n,j),Uu(e,!0)),Tc(e.props)?(e.el.__isMounted=!1,Ve(()=>{U(),delete e.el.__isMounted},u)):U()}else{if(Tc(e.props)&&t.el.__isMounted===!1){Ve(()=>{Bh.process(t,e,n,r,i,u,s,o,l,a)},u);return}e.el=t.el,e.targetStart=t.targetStart;const F=e.anchor=t.anchor,j=e.target=t.target,R=e.targetAnchor=t.targetAnchor,U=Di(t.props),P=U?n:j,J=U?F:R;if(s==="svg"||Nc(j)?s="svg":(s==="mathml"||Oc(j))&&(s="mathml"),N?(d(t.dynamicChildren,N,P,i,u,s,o),Ia(t,e,!0)):l||f(t,e,P,J,i,u,s,o,!1),x)U?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):ku(e,n,F,a,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const te=e.target=Dl(e.props,p);te&&ku(e,te,null,a,0)}else U&&ku(e,j,R,a,1);Uu(e,x)}},remove(t,e,n,{um:r,o:{remove:i}},u){const{shapeFlag:s,children:o,anchor:l,targetStart:a,targetAnchor:c,target:f,props:d}=t;if(f&&(i(a),i(c)),u&&i(l),s&16){const h=u||!Di(d);for(let p=0;p<o.length;p++){const m=o[p];r(m,e,n,h,!!m.dynamicChildren)}}},move:ku,hydrate:og};function ku(t,e,n,{o:{insert:r},m:i},u=2){u===0&&r(t.targetAnchor,e,n);const{el:s,anchor:o,shapeFlag:l,children:a,props:c}=t,f=u===2;if(f&&r(s,e,n),(!f||Di(c))&&l&16)for(let d=0;d<a.length;d++)i(a[d],e,n,2);f&&r(o,e,n)}function og(t,e,n,r,i,u,{o:{nextSibling:s,parentNode:o,querySelector:l,insert:a,createText:c}},f){function d(b,x){let w=x;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")e.targetStart=w;else if(w.data==="teleport anchor"){e.targetAnchor=w,b._lpa=e.targetAnchor&&s(e.targetAnchor);break}}w=s(w)}}function h(b,x){x.anchor=f(s(b),x,o(b),n,r,i,u)}const p=e.target=Dl(e.props,l),m=Di(e.props);if(p){const b=p._lpa||p.firstChild;e.shapeFlag&16&&(m?(h(t,e),d(p,b),e.targetAnchor||Al(p,e,c,a,o(t)===p?t:null)):(e.anchor=s(t),d(p,b),e.targetAnchor||Al(p,e,c,a),f(b&&s(b),e,p,n,r,i,u))),Uu(e,m)}else m&&e.shapeFlag&16&&(h(t,e),e.targetStart=t,e.targetAnchor=s(t));return e.anchor&&s(e.anchor)}const D8=Bh;function Uu(t,e){const n=t.ctx;if(n&&n.ut){let r,i;for(e?(r=t.el,i=t.anchor):(r=t.targetStart,i=t.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Al(t,e,n,r,i=null){const u=e.targetStart=n(""),s=e.targetAnchor=n("");return u[Ph]=s,t&&(r(u,t,i),r(s,t,i)),s}const Ut=Symbol("_leaveCb"),fi=Symbol("_enterCb");function lg(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jh(()=>{t.isMounted=!0}),Wh(()=>{t.isUnmounting=!0}),t}const dt=[Function,Array],zh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dt,onEnter:dt,onAfterEnter:dt,onEnterCancelled:dt,onBeforeLeave:dt,onLeave:dt,onAfterLeave:dt,onLeaveCancelled:dt,onBeforeAppear:dt,onAppear:dt,onAfterAppear:dt,onAppearCancelled:dt},$h=t=>{const e=t.subTree;return e.component?$h(e.component):e},ag={name:"BaseTransition",props:zh,setup(t,{slots:e}){const n=b0(),r=lg();return()=>{const i=e.default&&Hh(e.default(),!0);if(!i||!i.length)return;const u=Vh(i),s=ee(t),{mode:o}=s;if(r.isLeaving)return Mo(u);const l=vc(u);if(!l)return Mo(u);let a=_l(l,s,r,n,f=>a=f);l.type!==qe&&qi(l,a);let c=n.subTree&&vc(n.subTree);if(c&&c.type!==qe&&!sr(c,l)&&$h(n).type!==qe){let f=_l(c,s,r,n);if(qi(c,f),o==="out-in"&&l.type!==qe)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Mo(u);o==="in-out"&&l.type!==qe?f.delayLeave=(d,h,p)=>{const m=Uh(r,c);m[String(c.key)]=c,d[Ut]=()=>{h(),d[Ut]=void 0,delete a.delayedLeave,c=void 0},a.delayedLeave=()=>{p(),delete a.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return u}}};function Vh(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==qe){e=n;break}}return e}const cg=ag;function Uh(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function _l(t,e,n,r,i){const{appear:u,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:b,onAppear:x,onAfterAppear:w,onAppearCancelled:E}=e,N=String(t.key),F=Uh(n,t),j=(P,J)=>{P&&Mt(P,r,9,J)},R=(P,J)=>{const te=J[1];j(P,J),$(P)?P.every(L=>L.length<=1)&&te():P.length<=1&&te()},U={mode:s,persisted:o,beforeEnter(P){let J=l;if(!n.isMounted)if(u)J=b||l;else return;P[Ut]&&P[Ut](!0);const te=F[N];te&&sr(t,te)&&te.el[Ut]&&te.el[Ut](),j(J,[P])},enter(P){if(F[N]===t)return;let J=a,te=c,L=f;if(!n.isMounted)if(u)J=x||a,te=w||c,L=E||f;else return;let le=!1;P[fi]=Qe=>{le||(le=!0,Qe?j(L,[P]):j(te,[P]),U.delayedLeave&&U.delayedLeave(),P[fi]=void 0)};const Ce=P[fi].bind(null,!1);J?R(J,[P,Ce]):Ce()},leave(P,J){const te=String(t.key);if(P[fi]&&P[fi](!0),n.isUnmounting)return J();j(d,[P]);let L=!1;P[Ut]=Ce=>{L||(L=!0,J(),Ce?j(m,[P]):j(p,[P]),P[Ut]=void 0,F[te]===t&&delete F[te])};const le=P[Ut].bind(null,!1);F[te]=t,h?R(h,[P,le]):le()},clone(P){const J=_l(P,e,n,r,i);return i&&i(J),J}};return U}function Mo(t){if(cu(t))return t=Wn(t),t.children=null,t}function vc(t){if(!cu(t))return Lh(t.type)&&t.children?Vh(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&G(n.default))return n.default()}}function qi(t,e){t.shapeFlag&6&&t.component?(t.transition=e,qi(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Hh(t,e=!1,n){let r=[],i=0;for(let u=0;u<t.length;u++){let s=t[u];const o=n==null?s.key:String(n)+String(s.key!=null?s.key:u);s.type===lt?(s.patchFlag&128&&i++,r=r.concat(Hh(s.children,e,o))):(e||s.type!==qe)&&r.push(o!=null?Wn(s,{key:o}):s)}if(i>1)for(let u=0;u<r.length;u++)r[u].patchFlag=-2;return r}function fg(t,e){return G(t)?Ae({name:t.name},e,{setup:t}):t}function va(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Mc(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const es=new WeakMap;function Ai(t,e,n,r,i=!1){if($(t)){t.forEach((m,b)=>Ai(m,e&&($(e)?e[b]:e),n,r,i));return}if(Ur(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ai(t,e,n,r.component.subTree);return}const u=r.shapeFlag&4?so(r.component):r.el,s=i?null:u,{i:o,r:l}=t,a=e&&e.r,c=o.refs===ae?o.refs={}:o.refs,f=o.setupState,d=ee(f),h=f===ae?ih:m=>Mc(c,m)?!1:re(d,m),p=(m,b)=>!(b&&Mc(c,b));if(a!=null&&a!==l){if(Fc(e),ge(a))c[a]=null,h(a)&&(f[a]=null);else if(ve(a)){const m=e;p(a,m.k)&&(a.value=null),m.k&&(c[m.k]=null)}}if(G(l))lu(l,o,12,[s,c]);else{const m=ge(l),b=ve(l);if(m||b){const x=()=>{if(t.f){const w=m?h(l)?f[l]:c[l]:p()||!t.k?l.value:c[t.k];if(i)$(w)&&xa(w,u);else if($(w))w.includes(u)||w.push(u);else if(m)c[l]=[u],h(l)&&(f[l]=c[l]);else{const E=[u];p(l,t.k)&&(l.value=E),t.k&&(c[t.k]=E)}}else m?(c[l]=s,h(l)&&(f[l]=s)):b&&(p(l,t.k)&&(l.value=s),t.k&&(c[t.k]=s))};if(s){const w=()=>{x(),es.delete(t)};w.id=-1,es.set(t,w),Ve(w,n)}else Fc(t),x()}}}function Fc(t){const e=es.get(t);e&&(e.flags|=8,es.delete(t))}const Ic=t=>t.nodeType===8;Qs().requestIdleCallback;Qs().cancelIdleCallback;function dg(t,e){if(Ic(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(Ic(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const Ur=t=>!!t.type.__asyncLoader;function A8(t){G(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:u,timeout:s,suspensible:o=!0,onError:l}=t;let a=null,c,f=0;const d=()=>(f++,a=null,h()),h=()=>{let p;return a||(p=a=e().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((b,x)=>{l(m,()=>b(d()),()=>x(m),f+1)});throw m}).then(m=>p!==a&&a?a:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return fg({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,m,b){let x=!1;(m.bu||(m.bu=[])).push(()=>x=!0);const w=()=>{x||b()},E=u?()=>{const N=u(w,F=>dg(p,F));N&&(m.bum||(m.bum=[])).push(N)}:w;c?E():h().then(()=>!m.isUnmounted&&E())},get __asyncResolved(){return c},setup(){const p=Pe;if(va(p),c)return()=>Du(c,p);const m=E=>{a=null,au(E,p,13,!r)};if(o&&p.suspense||Zr)return h().then(E=>()=>Du(E,p)).catch(E=>(m(E),()=>r?Be(r,{error:E}):null));const b=Oo(!1),x=Oo(),w=Oo(!!i);return i&&setTimeout(()=>{w.value=!1},i),s!=null&&setTimeout(()=>{if(!b.value&&!x.value){const E=new Error(`Async component timed out after ${s}ms.`);m(E),x.value=E}},s),h().then(()=>{b.value=!0,p.parent&&cu(p.parent.vnode)&&p.parent.update()}).catch(E=>{m(E),x.value=E}),()=>{if(b.value&&c)return Du(c,p);if(x.value&&r)return Be(r,{error:x.value});if(n&&!w.value)return Du(n,p)}}})}function Du(t,e){const{ref:n,props:r,children:i,ce:u}=e.vnode,s=Be(t,r,i);return s.ref=n,s.ce=u,delete e.vnode.ce,s}const cu=t=>t.type.__isKeepAlive;function hg(t,e){qh(t,"a",e)}function pg(t,e){qh(t,"da",e)}function qh(t,e,n=Pe){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(ro(e,r,n),n){let i=n.parent;for(;i&&i.parent;)cu(i.parent.vnode)&&mg(r,e,n,i),i=i.parent}}function mg(t,e,n,r){const i=ro(e,t,r,!0);Gh(()=>{xa(r[e],i)},n)}function ro(t,e,n=Pe,r=!1){if(n){const i=n[t]||(n[t]=[]),u=e.__weh||(e.__weh=(...s)=>{yn();const o=fu(n),l=Mt(e,n,t,s);return o(),xn(),l});return r?i.unshift(u):i.push(u),u}}const wn=t=>(e,n=Pe)=>{(!Zr||t==="sp")&&ro(t,(...r)=>e(...r),n)},gg=wn("bm"),jh=wn("m"),bg=wn("bu"),yg=wn("u"),Wh=wn("bum"),Gh=wn("um"),xg=wn("sp"),Cg=wn("rtg"),wg=wn("rtc");function Eg(t,e=Pe){ro("ec",t,e)}const Kh="components";function _8(t,e){return Zh(Kh,t,!0,e)||t}const Jh=Symbol.for("v-ndc");function T8(t){return ge(t)?Zh(Kh,t,!1)||t:t||Jh}function Zh(t,e,n=!0,r=!1){const i=Le||Pe;if(i){const u=i.type;{const o=o2(u,!1);if(o&&(o===e||o===Ze(e)||o===Xs(Ze(e))))return u}const s=Rc(i[t]||u[t],e)||Rc(i.appContext[t],e);return!s&&r?u:s}}function Rc(t,e){return t&&(t[e]||t[Ze(e)]||t[Xs(Ze(e))])}function N8(t,e,n,r){let i;const u=n,s=$(t);if(s||ge(t)){const o=s&&gr(t);let l=!1,a=!1;o&&(l=!ft(t),a=Cn(t),t=to(t)),i=new Array(t.length);for(let c=0,f=t.length;c<f;c++)i[c]=e(l?a?Jr(vt(t[c])):vt(t[c]):t[c],c,void 0,u)}else if(typeof t=="number"){i=new Array(t);for(let o=0;o<t;o++)i[o]=e(o+1,o,void 0,u)}else if(ue(t))if(t[Symbol.iterator])i=Array.from(t,(o,l)=>e(o,l,void 0,u));else{const o=Object.keys(t);i=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const c=o[l];i[l]=e(t[c],c,l,u)}}else i=[];return i}function O8(t,e,n={},r,i){if(Le.ce||Le.parent&&Ur(Le.parent)&&Le.parent.ce){const a=Object.keys(n).length>0;return e!=="default"&&(n.name=e),Ml(),Fl(lt,null,[Be("slot",n,r&&r())],a?-2:64)}let u=t[e];u&&u._c&&(u._d=!1),Ml();const s=u&&Xh(u(n)),o=n.key||s&&s.key,l=Fl(lt,{key:(o&&!Ot(o)?o:`_${e}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&t._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),u&&u._c&&(u._d=!0),l}function Xh(t){return t.some(e=>Wi(e)?!(e.type===qe||e.type===lt&&!Xh(e.children)):!0)?t:null}function v8(t,e){const n={};for(const r in t)n[zu(r)]=t[r];return n}const Tl=t=>t?y0(t)?so(t):Tl(t.parent):null,_i=Ae(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Tl(t.parent),$root:t=>Tl(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Qh(t),$forceUpdate:t=>t.f||(t.f=()=>{Na(t.update)}),$nextTick:t=>t.n||(t.n=Oh.bind(t.proxy)),$watch:t=>sg.bind(t)}),Fo=(t,e)=>t!==ae&&!t.__isScriptSetup&&re(t,e),Sg={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:u,accessCache:s,type:o,appContext:l}=t;if(e[0]!=="$"){const d=s[e];if(d!==void 0)switch(d){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return u[e]}else{if(Fo(r,e))return s[e]=1,r[e];if(i!==ae&&re(i,e))return s[e]=2,i[e];if(re(u,e))return s[e]=3,u[e];if(n!==ae&&re(n,e))return s[e]=4,n[e];Nl&&(s[e]=0)}}const a=_i[e];let c,f;if(a)return e==="$attrs"&&He(t.attrs,"get",""),a(t);if((c=o.__cssModules)&&(c=c[e]))return c;if(n!==ae&&re(n,e))return s[e]=4,n[e];if(f=l.config.globalProperties,re(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:u}=t;return Fo(i,e)?(i[e]=n,!0):r!==ae&&re(r,e)?(r[e]=n,!0):re(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(u[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,props:u,type:s}},o){let l;return!!(n[o]||t!==ae&&o[0]!=="$"&&re(t,o)||Fo(e,o)||re(u,o)||re(r,o)||re(_i,o)||re(i.config.globalProperties,o)||(l=s.__cssModules)&&l[o])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:re(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Pc(t){return $(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Nl=!0;function kg(t){const e=Qh(t),n=t.proxy,r=t.ctx;Nl=!1,e.beforeCreate&&Lc(e.beforeCreate,t,"bc");const{data:i,computed:u,methods:s,watch:o,provide:l,inject:a,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:m,deactivated:b,beforeDestroy:x,beforeUnmount:w,destroyed:E,unmounted:N,render:F,renderTracked:j,renderTriggered:R,errorCaptured:U,serverPrefetch:P,expose:J,inheritAttrs:te,components:L,directives:le,filters:Ce}=e;if(a&&Dg(a,r,null),s)for(const se in s){const ce=s[se];G(ce)&&(r[se]=ce.bind(n))}if(i){const se=i.call(n,n);ue(se)&&(t.data=_a(se))}if(Nl=!0,u)for(const se in u){const ce=u[se],Xn=G(ce)?ce.bind(n,n):G(ce.get)?ce.get.bind(n,n):Jt,xu=!G(ce)&&G(ce.set)?ce.set.bind(n):Jt,Yn=a2({get:Xn,set:xu});Object.defineProperty(r,se,{enumerable:!0,configurable:!0,get:()=>Yn.value,set:Ft=>Yn.value=Ft})}if(o)for(const se in o)Yh(o[se],r,n,se);if(l){const se=G(l)?l.call(n):l;Reflect.ownKeys(se).forEach(ce=>{rg(ce,se[ce])})}c&&Lc(c,t,"c");function pe(se,ce){$(ce)?ce.forEach(Xn=>se(Xn.bind(n))):ce&&se(ce.bind(n))}if(pe(gg,f),pe(jh,d),pe(bg,h),pe(yg,p),pe(hg,m),pe(pg,b),pe(Eg,U),pe(wg,j),pe(Cg,R),pe(Wh,w),pe(Gh,N),pe(xg,P),$(J))if(J.length){const se=t.exposed||(t.exposed={});J.forEach(ce=>{Object.defineProperty(se,ce,{get:()=>n[ce],set:Xn=>n[ce]=Xn,enumerable:!0})})}else t.exposed||(t.exposed={});F&&t.render===Jt&&(t.render=F),te!=null&&(t.inheritAttrs=te),L&&(t.components=L),le&&(t.directives=le),P&&va(t)}function Dg(t,e,n=Jt){$(t)&&(t=Ol(t));for(const r in t){const i=t[r];let u;ue(i)?"default"in i?u=Vu(i.from||r,i.default,!0):u=Vu(i.from||r):u=Vu(i),ve(u)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>u.value,set:s=>u.value=s}):e[r]=u}}function Lc(t,e,n){Mt($(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function Yh(t,e,n,r){let i=r.includes(".")?Rh(n,r):()=>n[r];if(ge(t)){const u=e[t];G(u)&&vo(i,u)}else if(G(t))vo(i,t.bind(n));else if(ue(t))if($(t))t.forEach(u=>Yh(u,e,n,r));else{const u=G(t.handler)?t.handler.bind(n):e[t.handler];G(u)&&vo(i,u,t)}}function Qh(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:u,config:{optionMergeStrategies:s}}=t.appContext,o=u.get(e);let l;return o?l=o:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(a=>ts(l,a,s,!0)),ts(l,e,s)),ue(e)&&u.set(e,l),l}function ts(t,e,n,r=!1){const{mixins:i,extends:u}=e;u&&ts(t,u,n,!0),i&&i.forEach(s=>ts(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const o=Ag[s]||n&&n[s];t[s]=o?o(t[s],e[s]):e[s]}return t}const Ag={data:Bc,props:zc,emits:zc,methods:gi,computed:gi,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:gi,directives:gi,watch:Tg,provide:Bc,inject:_g};function Bc(t,e){return e?t?function(){return Ae(G(t)?t.call(this,this):t,G(e)?e.call(this,this):e)}:e:t}function _g(t,e){return gi(Ol(t),Ol(e))}function Ol(t){if($(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ke(t,e){return t?[...new Set([].concat(t,e))]:e}function gi(t,e){return t?Ae(Object.create(null),t,e):e}function zc(t,e){return t?$(t)&&$(e)?[...new Set([...t,...e])]:Ae(Object.create(null),Pc(t),Pc(e??{})):e}function Tg(t,e){if(!t)return e;if(!e)return t;const n=Ae(Object.create(null),t);for(const r in e)n[r]=Ke(t[r],e[r]);return n}function e0(){return{app:null,config:{isNativeTag:ih,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ng=0;function Og(t,e){return function(r,i=null){G(r)||(r=Ae({},r)),i!=null&&!ue(i)&&(i=null);const u=e0(),s=new WeakSet,o=[];let l=!1;const a=u.app={_uid:Ng++,_component:r,_props:i,_container:null,_context:u,_instance:null,version:f2,get config(){return u.config},set config(c){},use(c,...f){return s.has(c)||(c&&G(c.install)?(s.add(c),c.install(a,...f)):G(c)&&(s.add(c),c(a,...f))),a},mixin(c){return u.mixins.includes(c)||u.mixins.push(c),a},component(c,f){return f?(u.components[c]=f,a):u.components[c]},directive(c,f){return f?(u.directives[c]=f,a):u.directives[c]},mount(c,f,d){if(!l){const h=a._ceVNode||Be(r,i);return h.appContext=u,d===!0?d="svg":d===!1&&(d=void 0),t(h,c,d),l=!0,a._container=c,c.__vue_app__=a,so(h.component)}},onUnmount(c){o.push(c)},unmount(){l&&(Mt(o,a._instance,16),t(null,a._container),delete a._container.__vue_app__)},provide(c,f){return u.provides[c]=f,a},runWithContext(c){const f=Hr;Hr=a;try{return c()}finally{Hr=f}}};return a}}let Hr=null;const vg=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Ze(e)}Modifiers`]||t[`${Jn(e)}Modifiers`];function Mg(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||ae;let i=n;const u=e.startsWith("update:"),s=u&&vg(r,e.slice(7));s&&(s.trim&&(i=n.map(c=>ge(c)?c.trim():c)),s.number&&(i=n.map(Ys)));let o,l=r[o=zu(e)]||r[o=zu(Ze(e))];!l&&u&&(l=r[o=zu(Jn(e))]),l&&Mt(l,t,6,i);const a=r[o+"Once"];if(a){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Mt(a,t,6,i)}}const Fg=new WeakMap;function t0(t,e,n=!1){const r=n?Fg:e.emitsCache,i=r.get(t);if(i!==void 0)return i;const u=t.emits;let s={},o=!1;if(!G(t)){const l=a=>{const c=t0(a,e,!0);c&&(o=!0,Ae(s,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!u&&!o?(ue(t)&&r.set(t,null),null):($(u)?u.forEach(l=>s[l]=null):Ae(s,u),ue(t)&&r.set(t,s),s)}function io(t,e){return!t||!Ks(e)?!1:(e=e.slice(2).replace(/Once$/,""),re(t,e[0].toLowerCase()+e.slice(1))||re(t,Jn(e))||re(t,e))}function $c(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[u],slots:s,attrs:o,emit:l,render:a,renderCache:c,props:f,data:d,setupState:h,ctx:p,inheritAttrs:m}=t,b=Qu(t);let x,w;try{if(n.shapeFlag&4){const N=i||r,F=N;x=qt(a.call(F,N,c,f,h,d,p)),w=o}else{const N=e;x=qt(N.length>1?N(f,{attrs:o,slots:s,emit:l}):N(f,null)),w=e.props?o:Ig(o)}}catch(N){Ti.length=0,au(N,t,1),x=Be(qe)}let E=x;if(w&&m!==!1){const N=Object.keys(w),{shapeFlag:F}=E;N.length&&F&7&&(u&&N.some(ya)&&(w=Rg(w,u)),E=Wn(E,w,!1,!0))}return n.dirs&&(E=Wn(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&qi(E,n.transition),x=E,Qu(b),x}const Ig=t=>{let e;for(const n in t)(n==="class"||n==="style"||Ks(n))&&((e||(e={}))[n]=t[n]);return e},Rg=(t,e)=>{const n={};for(const r in t)(!ya(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Pg(t,e,n){const{props:r,children:i,component:u}=t,{props:s,children:o,patchFlag:l}=e,a=u.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Vc(r,s,a):!!s;if(l&8){const c=e.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(n0(s,r,d)&&!io(a,d))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?Vc(r,s,a):!0:!!s;return!1}function Vc(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const u=r[i];if(n0(e,t,u)&&!io(n,u))return!0}return!1}function n0(t,e,n){const r=t[n],i=e[n];return n==="style"&&ue(r)&&ue(i)?!jn(r,i):r!==i}function Lg({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const r0={},i0=()=>Object.create(r0),u0=t=>Object.getPrototypeOf(t)===r0;function Bg(t,e,n,r=!1){const i={},u=i0();t.propsDefaults=Object.create(null),s0(t,e,i,u);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:Um(i):t.type.props?t.props=i:t.props=u,t.attrs=u}function zg(t,e,n,r){const{props:i,attrs:u,vnode:{patchFlag:s}}=t,o=ee(i),[l]=t.propsOptions;let a=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=t.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(io(t.emitsOptions,d))continue;const h=e[d];if(l)if(re(u,d))h!==u[d]&&(u[d]=h,a=!0);else{const p=Ze(d);i[p]=vl(l,o,p,h,t,!1)}else h!==u[d]&&(u[d]=h,a=!0)}}}else{s0(t,e,i,u)&&(a=!0);let c;for(const f in o)(!e||!re(e,f)&&((c=Jn(f))===f||!re(e,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=vl(l,o,f,void 0,t,!0)):delete i[f]);if(u!==o)for(const f in u)(!e||!re(e,f))&&(delete u[f],a=!0)}a&&dn(t.attrs,"set","")}function s0(t,e,n,r){const[i,u]=t.propsOptions;let s=!1,o;if(e)for(let l in e){if(Ei(l))continue;const a=e[l];let c;i&&re(i,c=Ze(l))?!u||!u.includes(c)?n[c]=a:(o||(o={}))[c]=a:io(t.emitsOptions,l)||(!(l in r)||a!==r[l])&&(r[l]=a,s=!0)}if(u){const l=ee(n),a=o||ae;for(let c=0;c<u.length;c++){const f=u[c];n[f]=vl(i,l,f,a[f],t,!re(a,f))}}return s}function vl(t,e,n,r,i,u){const s=t[n];if(s!=null){const o=re(s,"default");if(o&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&G(l)){const{propsDefaults:a}=i;if(n in a)r=a[n];else{const c=fu(i);r=a[n]=l.call(null,e),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(u&&!o?r=!1:s[1]&&(r===""||r===Jn(n))&&(r=!0))}return r}const $g=new WeakMap;function o0(t,e,n=!1){const r=n?$g:e.propsCache,i=r.get(t);if(i)return i;const u=t.props,s={},o=[];let l=!1;if(!G(t)){const c=f=>{l=!0;const[d,h]=o0(f,e,!0);Ae(s,d),h&&o.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!u&&!l)return ue(t)&&r.set(t,zr),zr;if($(u))for(let c=0;c<u.length;c++){const f=Ze(u[c]);Uc(f)&&(s[f]=ae)}else if(u)for(const c in u){const f=Ze(c);if(Uc(f)){const d=u[c],h=s[f]=$(d)||G(d)?{type:d}:Ae({},d),p=h.type;let m=!1,b=!0;if($(p))for(let x=0;x<p.length;++x){const w=p[x],E=G(w)&&w.name;if(E==="Boolean"){m=!0;break}else E==="String"&&(b=!1)}else m=G(p)&&p.name==="Boolean";h[0]=m,h[1]=b,(m||re(h,"default"))&&o.push(f)}}const a=[s,o];return ue(t)&&r.set(t,a),a}function Uc(t){return t[0]!=="$"&&!Ei(t)}const Ma=t=>t==="_"||t==="_ctx"||t==="$stable",Fa=t=>$(t)?t.map(qt):[qt(t)],Vg=(t,e,n)=>{if(e._n)return e;const r=ng((...i)=>Fa(e(...i)),n);return r._c=!1,r},l0=(t,e,n)=>{const r=t._ctx;for(const i in t){if(Ma(i))continue;const u=t[i];if(G(u))e[i]=Vg(i,u,r);else if(u!=null){const s=Fa(u);e[i]=()=>s}}},a0=(t,e)=>{const n=Fa(e);t.slots.default=()=>n},c0=(t,e,n)=>{for(const r in e)(n||!Ma(r))&&(t[r]=e[r])},Ug=(t,e,n)=>{const r=t.slots=i0();if(t.vnode.shapeFlag&32){const i=e._;i?(c0(r,e,n),n&&lh(r,"_",i,!0)):l0(e,r)}else e&&a0(t,e)},Hg=(t,e,n)=>{const{vnode:r,slots:i}=t;let u=!0,s=ae;if(r.shapeFlag&32){const o=e._;o?n&&o===1?u=!1:c0(i,e,n):(u=!e.$stable,l0(e,i)),s=e}else e&&(a0(t,e),s={default:1});if(u)for(const o in i)!Ma(o)&&s[o]==null&&delete i[o]},Ve=Kg;function qg(t){return jg(t)}function jg(t,e){const n=Qs();n.__VUE__=!0;const{insert:r,remove:i,patchProp:u,createElement:s,createText:o,createComment:l,setText:a,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=Jt,insertStaticContent:p}=t,m=(g,y,C,A=null,S=null,k=null,I=void 0,M=null,v=!!y.dynamicChildren)=>{if(g===y)return;g&&!sr(g,y)&&(A=Cu(g),Ft(g,S,k,!0),g=null),y.patchFlag===-2&&(v=!1,y.dynamicChildren=null);const{type:D,ref:H,shapeFlag:B}=y;switch(D){case uo:b(g,y,C,A);break;case qe:x(g,y,C,A);break;case Ro:g==null&&w(y,C,A,I);break;case lt:L(g,y,C,A,S,k,I,M,v);break;default:B&1?F(g,y,C,A,S,k,I,M,v):B&6?le(g,y,C,A,S,k,I,M,v):(B&64||B&128)&&D.process(g,y,C,A,S,k,I,M,v,li)}H!=null&&S?Ai(H,g&&g.ref,k,y||g,!y):H==null&&g&&g.ref!=null&&Ai(g.ref,null,k,g,!0)},b=(g,y,C,A)=>{if(g==null)r(y.el=o(y.children),C,A);else{const S=y.el=g.el;y.children!==g.children&&a(S,y.children)}},x=(g,y,C,A)=>{g==null?r(y.el=l(y.children||""),C,A):y.el=g.el},w=(g,y,C,A)=>{[g.el,g.anchor]=p(g.children,y,C,A,g.el,g.anchor)},E=({el:g,anchor:y},C,A)=>{let S;for(;g&&g!==y;)S=d(g),r(g,C,A),g=S;r(y,C,A)},N=({el:g,anchor:y})=>{let C;for(;g&&g!==y;)C=d(g),i(g),g=C;i(y)},F=(g,y,C,A,S,k,I,M,v)=>{if(y.type==="svg"?I="svg":y.type==="math"&&(I="mathml"),g==null)j(y,C,A,S,k,I,M,v);else{const D=g.el&&g.el._isVueCE?g.el:null;try{D&&D._beginPatch(),P(g,y,S,k,I,M,v)}finally{D&&D._endPatch()}}},j=(g,y,C,A,S,k,I,M)=>{let v,D;const{props:H,shapeFlag:B,transition:V,dirs:W}=g;if(v=g.el=s(g.type,k,H&&H.is,H),B&8?c(v,g.children):B&16&&U(g.children,v,null,A,S,Io(g,k),I,M),W&&er(g,null,A,"created"),R(v,g,g.scopeId,I,A),H){for(const fe in H)fe!=="value"&&!Ei(fe)&&u(v,fe,null,H[fe],k,A);"value"in H&&u(v,"value",null,H.value,k),(D=H.onVnodeBeforeMount)&&Lt(D,A,g)}W&&er(g,null,A,"beforeMount");const Y=Wg(S,V);Y&&V.beforeEnter(v),r(v,y,C),((D=H&&H.onVnodeMounted)||Y||W)&&Ve(()=>{D&&Lt(D,A,g),Y&&V.enter(v),W&&er(g,null,A,"mounted")},S)},R=(g,y,C,A,S)=>{if(C&&h(g,C),A)for(let k=0;k<A.length;k++)h(g,A[k]);if(S){let k=S.subTree;if(y===k||h0(k.type)&&(k.ssContent===y||k.ssFallback===y)){const I=S.vnode;R(g,I,I.scopeId,I.slotScopeIds,S.parent)}}},U=(g,y,C,A,S,k,I,M,v=0)=>{for(let D=v;D<g.length;D++){const H=g[D]=M?cn(g[D]):qt(g[D]);m(null,H,y,C,A,S,k,I,M)}},P=(g,y,C,A,S,k,I)=>{const M=y.el=g.el;let{patchFlag:v,dynamicChildren:D,dirs:H}=y;v|=g.patchFlag&16;const B=g.props||ae,V=y.props||ae;let W;if(C&&tr(C,!1),(W=V.onVnodeBeforeUpdate)&&Lt(W,C,y,g),H&&er(y,g,C,"beforeUpdate"),C&&tr(C,!0),(B.innerHTML&&V.innerHTML==null||B.textContent&&V.textContent==null)&&c(M,""),D?J(g.dynamicChildren,D,M,C,A,Io(y,S),k):I||ce(g,y,M,null,C,A,Io(y,S),k,!1),v>0){if(v&16)te(M,B,V,C,S);else if(v&2&&B.class!==V.class&&u(M,"class",null,V.class,S),v&4&&u(M,"style",B.style,V.style,S),v&8){const Y=y.dynamicProps;for(let fe=0;fe<Y.length;fe++){const oe=Y[fe],et=B[oe],tt=V[oe];(tt!==et||oe==="value")&&u(M,oe,et,tt,S,C)}}v&1&&g.children!==y.children&&c(M,y.children)}else!I&&D==null&&te(M,B,V,C,S);((W=V.onVnodeUpdated)||H)&&Ve(()=>{W&&Lt(W,C,y,g),H&&er(y,g,C,"updated")},A)},J=(g,y,C,A,S,k,I)=>{for(let M=0;M<y.length;M++){const v=g[M],D=y[M],H=v.el&&(v.type===lt||!sr(v,D)||v.shapeFlag&198)?f(v.el):C;m(v,D,H,null,A,S,k,I,!0)}},te=(g,y,C,A,S)=>{if(y!==C){if(y!==ae)for(const k in y)!Ei(k)&&!(k in C)&&u(g,k,y[k],null,S,A);for(const k in C){if(Ei(k))continue;const I=C[k],M=y[k];I!==M&&k!=="value"&&u(g,k,M,I,S,A)}"value"in C&&u(g,"value",y.value,C.value,S)}},L=(g,y,C,A,S,k,I,M,v)=>{const D=y.el=g?g.el:o(""),H=y.anchor=g?g.anchor:o("");let{patchFlag:B,dynamicChildren:V,slotScopeIds:W}=y;W&&(M=M?M.concat(W):W),g==null?(r(D,C,A),r(H,C,A),U(y.children||[],C,H,S,k,I,M,v)):B>0&&B&64&&V&&g.dynamicChildren&&g.dynamicChildren.length===V.length?(J(g.dynamicChildren,V,C,S,k,I,M),(y.key!=null||S&&y===S.subTree)&&Ia(g,y,!0)):ce(g,y,C,H,S,k,I,M,v)},le=(g,y,C,A,S,k,I,M,v)=>{y.slotScopeIds=M,g==null?y.shapeFlag&512?S.ctx.activate(y,C,A,I,v):Ce(y,C,A,S,k,I,v):Qe(g,y,v)},Ce=(g,y,C,A,S,k,I)=>{const M=g.component=n2(g,A,S);if(cu(g)&&(M.ctx.renderer=li),r2(M,!1,I),M.asyncDep){if(S&&S.registerDep(M,pe,I),!g.el){const v=M.subTree=Be(qe);x(null,v,y,C),g.placeholder=v.el}}else pe(M,g,y,C,S,k,I)},Qe=(g,y,C)=>{const A=y.component=g.component;if(Pg(g,y,C))if(A.asyncDep&&!A.asyncResolved){se(A,y,C);return}else A.next=y,A.update();else y.el=g.el,A.vnode=y},pe=(g,y,C,A,S,k,I)=>{const M=()=>{if(g.isMounted){let{next:B,bu:V,u:W,parent:Y,vnode:fe}=g;{const Rt=f0(g);if(Rt){B&&(B.el=fe.el,se(g,B,I)),Rt.asyncDep.then(()=>{Ve(()=>{g.isUnmounted||D()},S)});return}}let oe=B,et;tr(g,!1),B?(B.el=fe.el,se(g,B,I)):B=fe,V&&$u(V),(et=B.props&&B.props.onVnodeBeforeUpdate)&&Lt(et,Y,B,fe),tr(g,!0);const tt=$c(g),It=g.subTree;g.subTree=tt,m(It,tt,f(It.el),Cu(It),g,S,k),B.el=tt.el,oe===null&&Lg(g,tt.el),W&&Ve(W,S),(et=B.props&&B.props.onVnodeUpdated)&&Ve(()=>Lt(et,Y,B,fe),S)}else{let B;const{el:V,props:W}=y,{bm:Y,m:fe,parent:oe,root:et,type:tt}=g,It=Ur(y);tr(g,!1),Y&&$u(Y),!It&&(B=W&&W.onVnodeBeforeMount)&&Lt(B,oe,y),tr(g,!0);{et.ce&&et.ce._hasShadowRoot()&&et.ce._injectChildStyle(tt,g.parent?g.parent.type:void 0);const Rt=g.subTree=$c(g);m(null,Rt,C,A,g,S,k),y.el=Rt.el}if(fe&&Ve(fe,S),!It&&(B=W&&W.onVnodeMounted)){const Rt=y;Ve(()=>Lt(B,oe,Rt),S)}(y.shapeFlag&256||oe&&Ur(oe.vnode)&&oe.vnode.shapeFlag&256)&&g.a&&Ve(g.a,S),g.isMounted=!0,y=C=A=null}};g.scope.on();const v=g.effect=new dh(M);g.scope.off();const D=g.update=v.run.bind(v),H=g.job=v.runIfDirty.bind(v);H.i=g,H.id=g.uid,v.scheduler=()=>Na(H),tr(g,!0),D()},se=(g,y,C)=>{y.component=g;const A=g.vnode.props;g.vnode=y,g.next=null,zg(g,y.props,A,C),Hg(g,y.children,C),yn(),_c(g),xn()},ce=(g,y,C,A,S,k,I,M,v=!1)=>{const D=g&&g.children,H=g?g.shapeFlag:0,B=y.children,{patchFlag:V,shapeFlag:W}=y;if(V>0){if(V&128){xu(D,B,C,A,S,k,I,M,v);return}else if(V&256){Xn(D,B,C,A,S,k,I,M,v);return}}W&8?(H&16&&oi(D,S,k),B!==D&&c(C,B)):H&16?W&16?xu(D,B,C,A,S,k,I,M,v):oi(D,S,k,!0):(H&8&&c(C,""),W&16&&U(B,C,A,S,k,I,M,v))},Xn=(g,y,C,A,S,k,I,M,v)=>{g=g||zr,y=y||zr;const D=g.length,H=y.length,B=Math.min(D,H);let V;for(V=0;V<B;V++){const W=y[V]=v?cn(y[V]):qt(y[V]);m(g[V],W,C,null,S,k,I,M,v)}D>H?oi(g,S,k,!0,!1,B):U(y,C,A,S,k,I,M,v,B)},xu=(g,y,C,A,S,k,I,M,v)=>{let D=0;const H=y.length;let B=g.length-1,V=H-1;for(;D<=B&&D<=V;){const W=g[D],Y=y[D]=v?cn(y[D]):qt(y[D]);if(sr(W,Y))m(W,Y,C,null,S,k,I,M,v);else break;D++}for(;D<=B&&D<=V;){const W=g[B],Y=y[V]=v?cn(y[V]):qt(y[V]);if(sr(W,Y))m(W,Y,C,null,S,k,I,M,v);else break;B--,V--}if(D>B){if(D<=V){const W=V+1,Y=W<H?y[W].el:A;for(;D<=V;)m(null,y[D]=v?cn(y[D]):qt(y[D]),C,Y,S,k,I,M,v),D++}}else if(D>V)for(;D<=B;)Ft(g[D],S,k,!0),D++;else{const W=D,Y=D,fe=new Map;for(D=Y;D<=V;D++){const st=y[D]=v?cn(y[D]):qt(y[D]);st.key!=null&&fe.set(st.key,D)}let oe,et=0;const tt=V-Y+1;let It=!1,Rt=0;const ai=new Array(tt);for(D=0;D<tt;D++)ai[D]=0;for(D=W;D<=B;D++){const st=g[D];if(et>=tt){Ft(st,S,k,!0);continue}let Pt;if(st.key!=null)Pt=fe.get(st.key);else for(oe=Y;oe<=V;oe++)if(ai[oe-Y]===0&&sr(st,y[oe])){Pt=oe;break}Pt===void 0?Ft(st,S,k,!0):(ai[Pt-Y]=D+1,Pt>=Rt?Rt=Pt:It=!0,m(st,y[Pt],C,null,S,k,I,M,v),et++)}const bc=It?Gg(ai):zr;for(oe=bc.length-1,D=tt-1;D>=0;D--){const st=Y+D,Pt=y[st],yc=y[st+1],xc=st+1<H?yc.el||d0(yc):A;ai[D]===0?m(null,Pt,C,xc,S,k,I,M,v):It&&(oe<0||D!==bc[oe]?Yn(Pt,C,xc,2):oe--)}}},Yn=(g,y,C,A,S=null)=>{const{el:k,type:I,transition:M,children:v,shapeFlag:D}=g;if(D&6){Yn(g.component.subTree,y,C,A);return}if(D&128){g.suspense.move(y,C,A);return}if(D&64){I.move(g,y,C,li);return}if(I===lt){r(k,y,C);for(let B=0;B<v.length;B++)Yn(v[B],y,C,A);r(g.anchor,y,C);return}if(I===Ro){E(g,y,C);return}if(A!==2&&D&1&&M)if(A===0)M.beforeEnter(k),r(k,y,C),Ve(()=>M.enter(k),S);else{const{leave:B,delayLeave:V,afterLeave:W}=M,Y=()=>{g.ctx.isUnmounted?i(k):r(k,y,C)},fe=()=>{k._isLeaving&&k[Ut](!0),B(k,()=>{Y(),W&&W()})};V?V(k,Y,fe):fe()}else r(k,y,C)},Ft=(g,y,C,A=!1,S=!1)=>{const{type:k,props:I,ref:M,children:v,dynamicChildren:D,shapeFlag:H,patchFlag:B,dirs:V,cacheIndex:W}=g;if(B===-2&&(S=!1),M!=null&&(yn(),Ai(M,null,C,g,!0),xn()),W!=null&&(y.renderCache[W]=void 0),H&256){y.ctx.deactivate(g);return}const Y=H&1&&V,fe=!Ur(g);let oe;if(fe&&(oe=I&&I.onVnodeBeforeUnmount)&&Lt(oe,y,g),H&6)rm(g.component,C,A);else{if(H&128){g.suspense.unmount(C,A);return}Y&&er(g,null,y,"beforeUnmount"),H&64?g.type.remove(g,y,C,li,A):D&&!D.hasOnce&&(k!==lt||B>0&&B&64)?oi(D,y,C,!1,!0):(k===lt&&B&384||!S&&H&16)&&oi(v,y,C),A&&mc(g)}(fe&&(oe=I&&I.onVnodeUnmounted)||Y)&&Ve(()=>{oe&&Lt(oe,y,g),Y&&er(g,null,y,"unmounted")},C)},mc=g=>{const{type:y,el:C,anchor:A,transition:S}=g;if(y===lt){nm(C,A);return}if(y===Ro){N(g);return}const k=()=>{i(C),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(g.shapeFlag&1&&S&&!S.persisted){const{leave:I,delayLeave:M}=S,v=()=>I(C,k);M?M(g.el,k,v):v()}else k()},nm=(g,y)=>{let C;for(;g!==y;)C=d(g),i(g),g=C;i(y)},rm=(g,y,C)=>{const{bum:A,scope:S,job:k,subTree:I,um:M,m:v,a:D}=g;Hc(v),Hc(D),A&&$u(A),S.stop(),k&&(k.flags|=8,Ft(I,g,y,C)),M&&Ve(M,y),Ve(()=>{g.isUnmounted=!0},y)},oi=(g,y,C,A=!1,S=!1,k=0)=>{for(let I=k;I<g.length;I++)Ft(g[I],y,C,A,S)},Cu=g=>{if(g.shapeFlag&6)return Cu(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const y=d(g.anchor||g.el),C=y&&y[Ph];return C?d(C):y};let So=!1;const gc=(g,y,C)=>{let A;g==null?y._vnode&&(Ft(y._vnode,null,null,!0),A=y._vnode.component):m(y._vnode||null,g,y,null,null,null,C),y._vnode=g,So||(So=!0,_c(A),Mh(),So=!1)},li={p:m,um:Ft,m:Yn,r:mc,mt:Ce,mc:U,pc:ce,pbc:J,n:Cu,o:t};return{render:gc,hydrate:void 0,createApp:Og(gc)}}function Io({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function tr({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Wg(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Ia(t,e,n=!1){const r=t.children,i=e.children;if($(r)&&$(i))for(let u=0;u<r.length;u++){const s=r[u];let o=i[u];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[u]=cn(i[u]),o.el=s.el),!n&&o.patchFlag!==-2&&Ia(s,o)),o.type===uo&&(o.patchFlag===-1&&(o=i[u]=cn(o)),o.el=s.el),o.type===qe&&!o.el&&(o.el=s.el)}}function Gg(t){const e=t.slice(),n=[0];let r,i,u,s,o;const l=t.length;for(r=0;r<l;r++){const a=t[r];if(a!==0){if(i=n[n.length-1],t[i]<a){e[r]=i,n.push(r);continue}for(u=0,s=n.length-1;u<s;)o=u+s>>1,t[n[o]]<a?u=o+1:s=o;a<t[n[u]]&&(u>0&&(e[r]=n[u-1]),n[u]=r)}}for(u=n.length,s=n[u-1];u-- >0;)n[u]=s,s=e[s];return n}function f0(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:f0(e)}function Hc(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function d0(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?d0(e.subTree):null}const h0=t=>t.__isSuspense;function Kg(t,e){e&&e.pendingBranch?$(t)?e.effects.push(...t):e.effects.push(t):tg(t)}const lt=Symbol.for("v-fgt"),uo=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),Ro=Symbol.for("v-stc"),Ti=[];let ct=null;function Ml(t=!1){Ti.push(ct=t?null:[])}function Jg(){Ti.pop(),ct=Ti[Ti.length-1]||null}let ji=1;function ns(t,e=!1){ji+=t,t<0&&ct&&e&&(ct.hasOnce=!0)}function p0(t){return t.dynamicChildren=ji>0?ct||zr:null,Jg(),ji>0&&ct&&ct.push(t),t}function M8(t,e,n,r,i,u){return p0(g0(t,e,n,r,i,u,!0))}function Fl(t,e,n,r,i){return p0(Be(t,e,n,r,i,!0))}function Wi(t){return t?t.__v_isVNode===!0:!1}function sr(t,e){return t.type===e.type&&t.key===e.key}const m0=({key:t})=>t??null,Hu=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ge(t)||ve(t)||G(t)?{i:Le,r:t,k:e,f:!!n}:t:null);function g0(t,e=null,n=null,r=0,i=null,u=t===lt?0:1,s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&m0(e),ref:e&&Hu(e),scopeId:Ih,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Le};return o?(Ra(l,n),u&128&&t.normalize(l)):n&&(l.shapeFlag|=ge(n)?8:16),ji>0&&!s&&ct&&(l.patchFlag>0||u&6)&&l.patchFlag!==32&&ct.push(l),l}const Be=Zg;function Zg(t,e=null,n=null,r=0,i=null,u=!1){if((!t||t===Jh)&&(t=qe),Wi(t)){const o=Wn(t,e,!0);return n&&Ra(o,n),ji>0&&!u&&ct&&(o.shapeFlag&6?ct[ct.indexOf(t)]=o:ct.push(o)),o.patchFlag=-2,o}if(l2(t)&&(t=t.__vccOpts),e){e=Xg(e);let{class:o,style:l}=e;o&&!ge(o)&&(e.class=wa(o)),ue(l)&&(no(l)&&!$(l)&&(l=Ae({},l)),e.style=Ca(l))}const s=ge(t)?1:h0(t)?128:Lh(t)?64:ue(t)?4:G(t)?2:0;return g0(t,e,n,r,i,s,u,!0)}function Xg(t){return t?no(t)||u0(t)?Ae({},t):t:null}function Wn(t,e,n=!1,r=!1){const{props:i,ref:u,patchFlag:s,children:o,transition:l}=t,a=e?Qg(i||{},e):i,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&m0(a),ref:e&&e.ref?n&&u?$(u)?u.concat(Hu(e)):[u,Hu(e)]:Hu(e):u,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==lt?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Wn(t.ssContent),ssFallback:t.ssFallback&&Wn(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&qi(c,l.clone(c)),c}function Yg(t=" ",e=0){return Be(uo,null,t,e)}function F8(t="",e=!1){return e?(Ml(),Fl(qe,null,t)):Be(qe,null,t)}function qt(t){return t==null||typeof t=="boolean"?Be(qe):$(t)?Be(lt,null,t.slice()):Wi(t)?cn(t):Be(uo,null,String(t))}function cn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Wn(t)}function Ra(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if($(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Ra(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!u0(e)?e._ctx=Le:i===3&&Le&&(Le.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else G(e)?(e={default:e,_ctx:Le},n=32):(e=String(e),r&64?(n=16,e=[Yg(e)]):n=8);t.children=e,t.shapeFlag|=n}function Qg(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=wa([e.class,r.class]));else if(i==="style")e.style=Ca([e.style,r.style]);else if(Ks(i)){const u=e[i],s=r[i];s&&u!==s&&!($(u)&&u.includes(s))&&(e[i]=u?[].concat(u,s):s)}else i!==""&&(e[i]=r[i])}return e}function Lt(t,e,n,r=null){Mt(t,e,7,[n,r])}const e2=e0();let t2=0;function n2(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||e2,u={uid:t2++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new wm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:o0(r,i),emitsOptions:t0(r,i),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:r.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=e?e.root:u,u.emit=Mg.bind(null,u),t.ce&&t.ce(u),u}let Pe=null;const b0=()=>Pe||Le;let rs,Il;{const t=Qs(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),u=>{i.length>1?i.forEach(s=>s(u)):i[0](u)}};rs=e("__VUE_INSTANCE_SETTERS__",n=>Pe=n),Il=e("__VUE_SSR_SETTERS__",n=>Zr=n)}const fu=t=>{const e=Pe;return rs(t),t.scope.on(),()=>{t.scope.off(),rs(e)}},qc=()=>{Pe&&Pe.scope.off(),rs(null)};function y0(t){return t.vnode.shapeFlag&4}let Zr=!1;function r2(t,e=!1,n=!1){e&&Il(e);const{props:r,children:i}=t.vnode,u=y0(t);Bg(t,r,u,e),Ug(t,i,n||e);const s=u?i2(t,e):void 0;return e&&Il(!1),s}function i2(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Sg);const{setup:r}=n;if(r){yn();const i=t.setupContext=r.length>1?s2(t):null,u=fu(t),s=lu(r,t,0,[t.props,i]),o=uh(s);if(xn(),u(),(o||t.sp)&&!Ur(t)&&va(t),o){if(s.then(qc,qc),e)return s.then(l=>{jc(t,l)}).catch(l=>{au(l,t,0)});t.asyncDep=s}else jc(t,s)}else x0(t)}function jc(t,e,n){G(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ue(e)&&(t.setupState=Th(e)),x0(t)}function x0(t,e,n){const r=t.type;t.render||(t.render=r.render||Jt);{const i=fu(t);yn();try{kg(t)}finally{xn(),i()}}}const u2={get(t,e){return He(t,"get",""),t[e]}};function s2(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,u2),slots:t.slots,emit:t.emit,expose:e}}function so(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Th(Hm(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in _i)return _i[n](t)},has(e,n){return n in e||n in _i}})):t.proxy}function o2(t,e=!0){return G(t)?t.displayName||t.name:t.name||e&&t.__name}function l2(t){return G(t)&&"__vccOpts"in t}const a2=(t,e)=>Zm(t,e,Zr);function c2(t,e,n){try{ns(-1);const r=arguments.length;return r===2?ue(e)&&!$(e)?Wi(e)?Be(t,null,[e]):Be(t,e):Be(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wi(n)&&(n=[n]),Be(t,e,n))}finally{ns(1)}}const f2="3.5.30";/**
13
+ **/function hu(t,e,n,r){try{return r?t(...r):t()}catch(i){pu(i,e,n)}}function Rt(t,e,n,r){if(G(t)){const i=hu(t,e,n,r);return i&&kh(i)&&i.catch(u=>{pu(u,e,n)}),i}if(z(t)){const i=[];for(let u=0;u<t.length;u++)i.push(Rt(t[u],e,n,r));return i}}function pu(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:u,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||ae;if(e){let o=e.parent;const l=e.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](t,l,a)===!1)return}o=o.parent}if(u){Cn(),hu(u,null,10,[t,l,a]),wn();return}}_g(t,n,i,r,s)}function _g(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const Je=[];let zt=-1;const Wr=[];let On=null,Br=0;const Kh=Promise.resolve();let rs=null;function Jh(t){const e=rs||Kh;return t?e.then(this?t.bind(this):t):e}function Tg(t){let e=zt+1,n=Je.length;for(;e<n;){const r=e+n>>>1,i=Je[r],u=Ki(i);u<t||u===t&&i.flags&2?e=r+1:n=r}return e}function $a(t){if(!(t.flags&1)){const e=Ki(t),n=Je[Je.length-1];!n||!(t.flags&2)&&e>=Ki(n)?Je.push(t):Je.splice(Tg(e),0,t),t.flags|=1,Zh()}}function Zh(){rs||(rs=Kh.then(Yh))}function Og(t){z(t)?Wr.push(...t):On&&t.id===-1?On.splice(Br+1,0,t):t.flags&1||(Wr.push(t),t.flags|=1),Zh()}function $c(t,e,n=zt+1){for(;n<Je.length;n++){const r=Je[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;Je.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Xh(t){if(Wr.length){const e=[...new Set(Wr)].sort((n,r)=>Ki(n)-Ki(r));if(Wr.length=0,On){On.push(...e);return}for(On=e,Br=0;Br<On.length;Br++){const n=On[Br];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}On=null,Br=0}}const Ki=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Yh(t){try{for(zt=0;zt<Je.length;zt++){const e=Je[zt];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),hu(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;zt<Je.length;zt++){const e=Je[zt];e&&(e.flags&=-2)}zt=-1,Je.length=0,Xh(),rs=null,(Je.length||Wr.length)&&Yh()}}let Le=null,Qh=null;function is(t){const e=Le;return Le=t,Qh=t&&t.type.__scopeId||null,e}function Ng(t,e=Le,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&ls(-1);const u=is(e);let s;try{s=t(...i)}finally{is(u),r._d&&ls(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function q8(t,e){if(Le===null)return t;const n=po(Le),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[u,s,o,l=ae]=e[i];u&&(G(u)&&(u={mounted:u,updated:u}),u.deep&&mn(s),r.push({dir:u,instance:n,value:s,oldValue:void 0,arg:o,modifiers:l}))}return t}function rr(t,e,n,r){const i=t.dirs,u=e&&e.dirs;for(let s=0;s<i.length;s++){const o=i[s];u&&(o.oldValue=u[s].value);let l=o.dir[r];l&&(Cn(),Rt(l,n,8,[t.el,o,t,e]),wn())}}function vg(t,e){if(Pe){let n=Pe.provides;const r=Pe.parent&&Pe.parent.provides;r===n&&(n=Pe.provides=Object.create(r)),n[t]=e}}function Wu(t,e,n=!1){const r=P0();if(r||Kr){let i=Kr?Kr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&G(e)?e.call(r&&r.proxy):e}}const Mg=Symbol.for("v-scx"),Fg=()=>Wu(Mg);function j8(t,e){return za(t,null,e)}function $o(t,e,n){return za(t,e,n)}function za(t,e,n=ae){const{immediate:r,deep:i,flush:u,once:s}=n,o=Ae({},n),l=e&&r||!e&&u!=="post";let a;if(ti){if(u==="sync"){const h=Fg();a=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Xt,h.resume=Xt,h.pause=Xt,h}}const c=Pe;o.call=(h,p,m)=>Rt(h,c,p,m);let f=!1;u==="post"?o.scheduler=h=>{Ve(h,c&&c.suspense)}:u!=="sync"&&(f=!0,o.scheduler=(h,p)=>{p?h():$a(h)}),o.augmentJob=h=>{e&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Ag(t,e,o);return ti&&(a?a.push(d):l&&d()),d}function Rg(t,e,n){const r=this.proxy,i=ge(t)?t.includes(".")?e0(r,t):()=>r[t]:t.bind(r,r);let u;G(e)?u=e:(u=e.handler,n=e);const s=gu(this),o=za(i,u.bind(r),n);return s(),o}function e0(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const t0=Symbol("_vte"),n0=t=>t.__isTeleport,Ni=t=>t&&(t.disabled||t.disabled===""),zc=t=>t&&(t.defer||t.defer===""),Vc=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Uc=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Rl=(t,e)=>{const n=t&&t.to;return ge(n)?e?e(n):null:n},r0={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,u,s,o,l,a){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:m,createComment:b}}=a,x=Ni(e.props);let{shapeFlag:w,children:E,dynamicChildren:O}=e;if(t==null){const F=e.el=m(""),j=e.anchor=m("");h(F,n,r),h(j,n,r);const I=(P,J)=>{w&16&&c(E,P,J,i,u,s,o,l)},U=()=>{const P=e.target=Rl(e.props,p),J=Il(P,e,m,h);P&&(s!=="svg"&&Vc(P)?s="svg":s!=="mathml"&&Uc(P)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(P),x||(I(P,J),Gu(e,!1)))};x&&(I(n,j),Gu(e,!0)),zc(e.props)?(e.el.__isMounted=!1,Ve(()=>{U(),delete e.el.__isMounted},u)):U()}else{if(zc(e.props)&&t.el.__isMounted===!1){Ve(()=>{r0.process(t,e,n,r,i,u,s,o,l,a)},u);return}e.el=t.el,e.targetStart=t.targetStart;const F=e.anchor=t.anchor,j=e.target=t.target,I=e.targetAnchor=t.targetAnchor,U=Ni(t.props),P=U?n:j,J=U?F:I;if(s==="svg"||Vc(j)?s="svg":(s==="mathml"||Uc(j))&&(s="mathml"),O?(d(t.dynamicChildren,O,P,i,u,s,o),qa(t,e,!0)):l||f(t,e,P,J,i,u,s,o,!1),x)U?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Ou(e,n,F,a,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const te=e.target=Rl(e.props,p);te&&Ou(e,te,null,a,0)}else U&&Ou(e,j,I,a,1);Gu(e,x)}},remove(t,e,n,{um:r,o:{remove:i}},u){const{shapeFlag:s,children:o,anchor:l,targetStart:a,targetAnchor:c,target:f,props:d}=t;if(f&&(i(a),i(c)),u&&i(l),s&16){const h=u||!Ni(d);for(let p=0;p<o.length;p++){const m=o[p];r(m,e,n,h,!!m.dynamicChildren)}}},move:Ou,hydrate:Ig};function Ou(t,e,n,{o:{insert:r},m:i},u=2){u===0&&r(t.targetAnchor,e,n);const{el:s,anchor:o,shapeFlag:l,children:a,props:c}=t,f=u===2;if(f&&r(s,e,n),(!f||Ni(c))&&l&16)for(let d=0;d<a.length;d++)i(a[d],e,n,2);f&&r(o,e,n)}function Ig(t,e,n,r,i,u,{o:{nextSibling:s,parentNode:o,querySelector:l,insert:a,createText:c}},f){function d(b,x){let w=x;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")e.targetStart=w;else if(w.data==="teleport anchor"){e.targetAnchor=w,b._lpa=e.targetAnchor&&s(e.targetAnchor);break}}w=s(w)}}function h(b,x){x.anchor=f(s(b),x,o(b),n,r,i,u)}const p=e.target=Rl(e.props,l),m=Ni(e.props);if(p){const b=p._lpa||p.firstChild;e.shapeFlag&16&&(m?(h(t,e),d(p,b),e.targetAnchor||Il(p,e,c,a,o(t)===p?t:null)):(e.anchor=s(t),d(p,b),e.targetAnchor||Il(p,e,c,a),f(b&&s(b),e,p,n,r,i,u))),Gu(e,m)}else m&&e.shapeFlag&16&&(h(t,e),e.targetStart=t,e.targetAnchor=s(t));return e.anchor&&s(e.anchor)}const W8=r0;function Gu(t,e){const n=t.ctx;if(n&&n.ut){let r,i;for(e?(r=t.el,i=t.anchor):(r=t.targetStart,i=t.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Il(t,e,n,r,i=null){const u=e.targetStart=n(""),s=e.targetAnchor=n("");return u[t0]=s,t&&(r(u,t,i),r(s,t,i)),s}const qt=Symbol("_leaveCb"),gi=Symbol("_enterCb");function Pg(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return c0(()=>{t.isMounted=!0}),f0(()=>{t.isUnmounting=!0}),t}const pt=[Function,Array],i0={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pt,onEnter:pt,onAfterEnter:pt,onEnterCancelled:pt,onBeforeLeave:pt,onLeave:pt,onAfterLeave:pt,onLeaveCancelled:pt,onBeforeAppear:pt,onAppear:pt,onAfterAppear:pt,onAppearCancelled:pt},u0=t=>{const e=t.subTree;return e.component?u0(e.component):e},Lg={name:"BaseTransition",props:i0,setup(t,{slots:e}){const n=P0(),r=Pg();return()=>{const i=e.default&&l0(e.default(),!0);if(!i||!i.length)return;const u=s0(i),s=ee(t),{mode:o}=s;if(r.isLeaving)return zo(u);const l=Hc(u);if(!l)return zo(u);let a=Pl(l,s,r,n,f=>a=f);l.type!==qe&&Ji(l,a);let c=n.subTree&&Hc(n.subTree);if(c&&c.type!==qe&&!ar(c,l)&&u0(n).type!==qe){let f=Pl(c,s,r,n);if(Ji(c,f),o==="out-in"&&l.type!==qe)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},zo(u);o==="in-out"&&l.type!==qe?f.delayLeave=(d,h,p)=>{const m=o0(r,c);m[String(c.key)]=c,d[qt]=()=>{h(),d[qt]=void 0,delete a.delayedLeave,c=void 0},a.delayedLeave=()=>{p(),delete a.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return u}}};function s0(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==qe){e=n;break}}return e}const Bg=Lg;function o0(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Pl(t,e,n,r,i){const{appear:u,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:b,onAppear:x,onAfterAppear:w,onAppearCancelled:E}=e,O=String(t.key),F=o0(n,t),j=(P,J)=>{P&&Rt(P,r,9,J)},I=(P,J)=>{const te=J[1];j(P,J),z(P)?P.every(L=>L.length<=1)&&te():P.length<=1&&te()},U={mode:s,persisted:o,beforeEnter(P){let J=l;if(!n.isMounted)if(u)J=b||l;else return;P[qt]&&P[qt](!0);const te=F[O];te&&ar(t,te)&&te.el[qt]&&te.el[qt](),j(J,[P])},enter(P){if(F[O]===t)return;let J=a,te=c,L=f;if(!n.isMounted)if(u)J=x||a,te=w||c,L=E||f;else return;let le=!1;P[gi]=Qe=>{le||(le=!0,Qe?j(L,[P]):j(te,[P]),U.delayedLeave&&U.delayedLeave(),P[gi]=void 0)};const Ce=P[gi].bind(null,!1);J?I(J,[P,Ce]):Ce()},leave(P,J){const te=String(t.key);if(P[gi]&&P[gi](!0),n.isUnmounting)return J();j(d,[P]);let L=!1;P[qt]=Ce=>{L||(L=!0,J(),Ce?j(m,[P]):j(p,[P]),P[qt]=void 0,F[te]===t&&delete F[te])};const le=P[qt].bind(null,!1);F[te]=t,h?I(h,[P,le]):le()},clone(P){const J=Pl(P,e,n,r,i);return i&&i(J),J}};return U}function zo(t){if(mu(t))return t=Jn(t),t.children=null,t}function Hc(t){if(!mu(t))return n0(t.type)&&t.children?s0(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&G(n.default))return n.default()}}function Ji(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Ji(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function l0(t,e=!1,n){let r=[],i=0;for(let u=0;u<t.length;u++){let s=t[u];const o=n==null?s.key:String(n)+String(s.key!=null?s.key:u);s.type===ct?(s.patchFlag&128&&i++,r=r.concat(l0(s.children,e,o))):(e||s.type!==qe)&&r.push(o!=null?Jn(s,{key:o}):s)}if(i>1)for(let u=0;u<r.length;u++)r[u].patchFlag=-2;return r}function $g(t,e){return G(t)?Ae({name:t.name},e,{setup:t}):t}function Va(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function qc(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const us=new WeakMap;function vi(t,e,n,r,i=!1){if(z(t)){t.forEach((m,b)=>vi(m,e&&(z(e)?e[b]:e),n,r,i));return}if(Gr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&vi(t,e,n,r.component.subTree);return}const u=r.shapeFlag&4?po(r.component):r.el,s=i?null:u,{i:o,r:l}=t,a=e&&e.r,c=o.refs===ae?o.refs={}:o.refs,f=o.setupState,d=ee(f),h=f===ae?Sh:m=>qc(c,m)?!1:re(d,m),p=(m,b)=>!(b&&qc(c,b));if(a!=null&&a!==l){if(jc(e),ge(a))c[a]=null,h(a)&&(f[a]=null);else if(ve(a)){const m=e;p(a,m.k)&&(a.value=null),m.k&&(c[m.k]=null)}}if(G(l))hu(l,o,12,[s,c]);else{const m=ge(l),b=ve(l);if(m||b){const x=()=>{if(t.f){const w=m?h(l)?f[l]:c[l]:p()||!t.k?l.value:c[t.k];if(i)z(w)&&Oa(w,u);else if(z(w))w.includes(u)||w.push(u);else if(m)c[l]=[u],h(l)&&(f[l]=c[l]);else{const E=[u];p(l,t.k)&&(l.value=E),t.k&&(c[t.k]=E)}}else m?(c[l]=s,h(l)&&(f[l]=s)):b&&(p(l,t.k)&&(l.value=s),t.k&&(c[t.k]=s))};if(s){const w=()=>{x(),us.delete(t)};w.id=-1,us.set(t,w),Ve(w,n)}else jc(t),x()}}}function jc(t){const e=us.get(t);e&&(e.flags|=8,us.delete(t))}const Wc=t=>t.nodeType===8;so().requestIdleCallback;so().cancelIdleCallback;function zg(t,e){if(Wc(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(Wc(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const Gr=t=>!!t.type.__asyncLoader;function G8(t){G(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:u,timeout:s,suspensible:o=!0,onError:l}=t;let a=null,c,f=0;const d=()=>(f++,a=null,h()),h=()=>{let p;return a||(p=a=e().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((b,x)=>{l(m,()=>b(d()),()=>x(m),f+1)});throw m}).then(m=>p!==a&&a?a:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return $g({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,m,b){let x=!1;(m.bu||(m.bu=[])).push(()=>x=!0);const w=()=>{x||b()},E=u?()=>{const O=u(w,F=>zg(p,F));O&&(m.bum||(m.bum=[])).push(O)}:w;c?E():h().then(()=>!m.isUnmounted&&E())},get __asyncResolved(){return c},setup(){const p=Pe;if(Va(p),c)return()=>Nu(c,p);const m=E=>{a=null,pu(E,p,13,!r)};if(o&&p.suspense||ti)return h().then(E=>()=>Nu(E,p)).catch(E=>(m(E),()=>r?Be(r,{error:E}):null));const b=Bo(!1),x=Bo(),w=Bo(!!i);return i&&setTimeout(()=>{w.value=!1},i),s!=null&&setTimeout(()=>{if(!b.value&&!x.value){const E=new Error(`Async component timed out after ${s}ms.`);m(E),x.value=E}},s),h().then(()=>{b.value=!0,p.parent&&mu(p.parent.vnode)&&p.parent.update()}).catch(E=>{m(E),x.value=E}),()=>{if(b.value&&c)return Nu(c,p);if(x.value&&r)return Be(r,{error:x.value});if(n&&!w.value)return Nu(n,p)}}})}function Nu(t,e){const{ref:n,props:r,children:i,ce:u}=e.vnode,s=Be(t,r,i);return s.ref=n,s.ce=u,delete e.vnode.ce,s}const mu=t=>t.type.__isKeepAlive;function Vg(t,e){a0(t,"a",e)}function Ug(t,e){a0(t,"da",e)}function a0(t,e,n=Pe){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(co(e,r,n),n){let i=n.parent;for(;i&&i.parent;)mu(i.parent.vnode)&&Hg(r,e,n,i),i=i.parent}}function Hg(t,e,n,r){const i=co(e,t,r,!0);d0(()=>{Oa(r[e],i)},n)}function co(t,e,n=Pe,r=!1){if(n){const i=n[t]||(n[t]=[]),u=e.__weh||(e.__weh=(...s)=>{Cn();const o=gu(n),l=Rt(e,n,t,s);return o(),wn(),l});return r?i.unshift(u):i.push(u),u}}const Sn=t=>(e,n=Pe)=>{(!ti||t==="sp")&&co(t,(...r)=>e(...r),n)},qg=Sn("bm"),c0=Sn("m"),jg=Sn("bu"),Wg=Sn("u"),f0=Sn("bum"),d0=Sn("um"),Gg=Sn("sp"),Kg=Sn("rtg"),Jg=Sn("rtc");function Zg(t,e=Pe){co("ec",t,e)}const h0="components";function K8(t,e){return m0(h0,t,!0,e)||t}const p0=Symbol.for("v-ndc");function J8(t){return ge(t)?m0(h0,t,!1)||t:t||p0}function m0(t,e,n=!0,r=!1){const i=Le||Pe;if(i){const u=i.type;{const o=Ib(u,!1);if(o&&(o===e||o===Ze(e)||o===io(Ze(e))))return u}const s=Gc(i[t]||u[t],e)||Gc(i.appContext[t],e);return!s&&r?u:s}}function Gc(t,e){return t&&(t[e]||t[Ze(e)]||t[io(Ze(e))])}function Z8(t,e,n,r){let i;const u=n,s=z(t);if(s||ge(t)){const o=s&&xr(t);let l=!1,a=!1;o&&(l=!ht(t),a=En(t),t=lo(t)),i=new Array(t.length);for(let c=0,f=t.length;c<f;c++)i[c]=e(l?a?ei(Ft(t[c])):Ft(t[c]):t[c],c,void 0,u)}else if(typeof t=="number"){i=new Array(t);for(let o=0;o<t;o++)i[o]=e(o+1,o,void 0,u)}else if(ue(t))if(t[Symbol.iterator])i=Array.from(t,(o,l)=>e(o,l,void 0,u));else{const o=Object.keys(t);i=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const c=o[l];i[l]=e(t[c],c,l,u)}}else i=[];return i}function X8(t,e,n={},r,i){if(Le.ce||Le.parent&&Gr(Le.parent)&&Le.parent.ce){const a=Object.keys(n).length>0;return e!=="default"&&(n.name=e),Vl(),Ul(ct,null,[Be("slot",n,r&&r())],a?-2:64)}let u=t[e];u&&u._c&&(u._d=!1),Vl();const s=u&&g0(u(n)),o=n.key||s&&s.key,l=Ul(ct,{key:(o&&!Mt(o)?o:`_${e}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&t._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),u&&u._c&&(u._d=!0),l}function g0(t){return t.some(e=>Xi(e)?!(e.type===qe||e.type===ct&&!g0(e.children)):!0)?t:null}function Y8(t,e){const n={};for(const r in t)n[qu(r)]=t[r];return n}const Ll=t=>t?L0(t)?po(t):Ll(t.parent):null,Mi=Ae(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Ll(t.parent),$root:t=>Ll(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>y0(t),$forceUpdate:t=>t.f||(t.f=()=>{$a(t.update)}),$nextTick:t=>t.n||(t.n=Jh.bind(t.proxy)),$watch:t=>Rg.bind(t)}),Vo=(t,e)=>t!==ae&&!t.__isScriptSetup&&re(t,e),Xg={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:u,accessCache:s,type:o,appContext:l}=t;if(e[0]!=="$"){const d=s[e];if(d!==void 0)switch(d){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return u[e]}else{if(Vo(r,e))return s[e]=1,r[e];if(i!==ae&&re(i,e))return s[e]=2,i[e];if(re(u,e))return s[e]=3,u[e];if(n!==ae&&re(n,e))return s[e]=4,n[e];Bl&&(s[e]=0)}}const a=Mi[e];let c,f;if(a)return e==="$attrs"&&He(t.attrs,"get",""),a(t);if((c=o.__cssModules)&&(c=c[e]))return c;if(n!==ae&&re(n,e))return s[e]=4,n[e];if(f=l.config.globalProperties,re(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:u}=t;return Vo(i,e)?(i[e]=n,!0):r!==ae&&re(r,e)?(r[e]=n,!0):re(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(u[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,props:u,type:s}},o){let l;return!!(n[o]||t!==ae&&o[0]!=="$"&&re(t,o)||Vo(e,o)||re(u,o)||re(r,o)||re(Mi,o)||re(i.config.globalProperties,o)||(l=s.__cssModules)&&l[o])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:re(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Kc(t){return z(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Bl=!0;function Yg(t){const e=y0(t),n=t.proxy,r=t.ctx;Bl=!1,e.beforeCreate&&Jc(e.beforeCreate,t,"bc");const{data:i,computed:u,methods:s,watch:o,provide:l,inject:a,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:m,deactivated:b,beforeDestroy:x,beforeUnmount:w,destroyed:E,unmounted:O,render:F,renderTracked:j,renderTriggered:I,errorCaptured:U,serverPrefetch:P,expose:J,inheritAttrs:te,components:L,directives:le,filters:Ce}=e;if(a&&Qg(a,r,null),s)for(const se in s){const ce=s[se];G(ce)&&(r[se]=ce.bind(n))}if(i){const se=i.call(n,n);ue(se)&&(t.data=La(se))}if(Bl=!0,u)for(const se in u){const ce=u[se],er=G(ce)?ce.bind(n,n):G(ce.get)?ce.get.bind(n,n):Xt,ku=!G(ce)&&G(ce.set)?ce.set.bind(n):Xt,tr=Lb({get:er,set:ku});Object.defineProperty(r,se,{enumerable:!0,configurable:!0,get:()=>tr.value,set:It=>tr.value=It})}if(o)for(const se in o)b0(o[se],r,n,se);if(l){const se=G(l)?l.call(n):l;Reflect.ownKeys(se).forEach(ce=>{vg(ce,se[ce])})}c&&Jc(c,t,"c");function pe(se,ce){z(ce)?ce.forEach(er=>se(er.bind(n))):ce&&se(ce.bind(n))}if(pe(qg,f),pe(c0,d),pe(jg,h),pe(Wg,p),pe(Vg,m),pe(Ug,b),pe(Zg,U),pe(Jg,j),pe(Kg,I),pe(f0,w),pe(d0,O),pe(Gg,P),z(J))if(J.length){const se=t.exposed||(t.exposed={});J.forEach(ce=>{Object.defineProperty(se,ce,{get:()=>n[ce],set:er=>n[ce]=er,enumerable:!0})})}else t.exposed||(t.exposed={});F&&t.render===Xt&&(t.render=F),te!=null&&(t.inheritAttrs=te),L&&(t.components=L),le&&(t.directives=le),P&&Va(t)}function Qg(t,e,n=Xt){z(t)&&(t=$l(t));for(const r in t){const i=t[r];let u;ue(i)?"default"in i?u=Wu(i.from||r,i.default,!0):u=Wu(i.from||r):u=Wu(i),ve(u)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>u.value,set:s=>u.value=s}):e[r]=u}}function Jc(t,e,n){Rt(z(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function b0(t,e,n,r){let i=r.includes(".")?e0(n,r):()=>n[r];if(ge(t)){const u=e[t];G(u)&&$o(i,u)}else if(G(t))$o(i,t.bind(n));else if(ue(t))if(z(t))t.forEach(u=>b0(u,e,n,r));else{const u=G(t.handler)?t.handler.bind(n):e[t.handler];G(u)&&$o(i,u,t)}}function y0(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:u,config:{optionMergeStrategies:s}}=t.appContext,o=u.get(e);let l;return o?l=o:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(a=>ss(l,a,s,!0)),ss(l,e,s)),ue(e)&&u.set(e,l),l}function ss(t,e,n,r=!1){const{mixins:i,extends:u}=e;u&&ss(t,u,n,!0),i&&i.forEach(s=>ss(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const o=eb[s]||n&&n[s];t[s]=o?o(t[s],e[s]):e[s]}return t}const eb={data:Zc,props:Xc,emits:Xc,methods:wi,computed:wi,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:wi,directives:wi,watch:nb,provide:Zc,inject:tb};function Zc(t,e){return e?t?function(){return Ae(G(t)?t.call(this,this):t,G(e)?e.call(this,this):e)}:e:t}function tb(t,e){return wi($l(t),$l(e))}function $l(t){if(z(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ke(t,e){return t?[...new Set([].concat(t,e))]:e}function wi(t,e){return t?Ae(Object.create(null),t,e):e}function Xc(t,e){return t?z(t)&&z(e)?[...new Set([...t,...e])]:Ae(Object.create(null),Kc(t),Kc(e??{})):e}function nb(t,e){if(!t)return e;if(!e)return t;const n=Ae(Object.create(null),t);for(const r in e)n[r]=Ke(t[r],e[r]);return n}function x0(){return{app:null,config:{isNativeTag:Sh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let rb=0;function ib(t,e){return function(r,i=null){G(r)||(r=Ae({},r)),i!=null&&!ue(i)&&(i=null);const u=x0(),s=new WeakSet,o=[];let l=!1;const a=u.app={_uid:rb++,_component:r,_props:i,_container:null,_context:u,_instance:null,version:$b,get config(){return u.config},set config(c){},use(c,...f){return s.has(c)||(c&&G(c.install)?(s.add(c),c.install(a,...f)):G(c)&&(s.add(c),c(a,...f))),a},mixin(c){return u.mixins.includes(c)||u.mixins.push(c),a},component(c,f){return f?(u.components[c]=f,a):u.components[c]},directive(c,f){return f?(u.directives[c]=f,a):u.directives[c]},mount(c,f,d){if(!l){const h=a._ceVNode||Be(r,i);return h.appContext=u,d===!0?d="svg":d===!1&&(d=void 0),t(h,c,d),l=!0,a._container=c,c.__vue_app__=a,po(h.component)}},onUnmount(c){o.push(c)},unmount(){l&&(Rt(o,a._instance,16),t(null,a._container),delete a._container.__vue_app__)},provide(c,f){return u.provides[c]=f,a},runWithContext(c){const f=Kr;Kr=a;try{return c()}finally{Kr=f}}};return a}}let Kr=null;const ub=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Ze(e)}Modifiers`]||t[`${Yn(e)}Modifiers`];function sb(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||ae;let i=n;const u=e.startsWith("update:"),s=u&&ub(r,e.slice(7));s&&(s.trim&&(i=n.map(c=>ge(c)?c.trim():c)),s.number&&(i=n.map(uo)));let o,l=r[o=qu(e)]||r[o=qu(Ze(e))];!l&&u&&(l=r[o=qu(Yn(e))]),l&&Rt(l,t,6,i);const a=r[o+"Once"];if(a){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Rt(a,t,6,i)}}const ob=new WeakMap;function C0(t,e,n=!1){const r=n?ob:e.emitsCache,i=r.get(t);if(i!==void 0)return i;const u=t.emits;let s={},o=!1;if(!G(t)){const l=a=>{const c=C0(a,e,!0);c&&(o=!0,Ae(s,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!u&&!o?(ue(t)&&r.set(t,null),null):(z(u)?u.forEach(l=>s[l]=null):Ae(s,u),ue(t)&&r.set(t,s),s)}function fo(t,e){return!t||!to(e)?!1:(e=e.slice(2).replace(/Once$/,""),re(t,e[0].toLowerCase()+e.slice(1))||re(t,Yn(e))||re(t,e))}function Yc(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[u],slots:s,attrs:o,emit:l,render:a,renderCache:c,props:f,data:d,setupState:h,ctx:p,inheritAttrs:m}=t,b=is(t);let x,w;try{if(n.shapeFlag&4){const O=i||r,F=O;x=Wt(a.call(F,O,c,f,h,d,p)),w=o}else{const O=e;x=Wt(O.length>1?O(f,{attrs:o,slots:s,emit:l}):O(f,null)),w=e.props?o:lb(o)}}catch(O){Fi.length=0,pu(O,t,1),x=Be(qe)}let E=x;if(w&&m!==!1){const O=Object.keys(w),{shapeFlag:F}=E;O.length&&F&7&&(u&&O.some(Ta)&&(w=ab(w,u)),E=Jn(E,w,!1,!0))}return n.dirs&&(E=Jn(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Ji(E,n.transition),x=E,is(b),x}const lb=t=>{let e;for(const n in t)(n==="class"||n==="style"||to(n))&&((e||(e={}))[n]=t[n]);return e},ab=(t,e)=>{const n={};for(const r in t)(!Ta(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function cb(t,e,n){const{props:r,children:i,component:u}=t,{props:s,children:o,patchFlag:l}=e,a=u.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Qc(r,s,a):!!s;if(l&8){const c=e.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(w0(s,r,d)&&!fo(a,d))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?Qc(r,s,a):!0:!!s;return!1}function Qc(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const u=r[i];if(w0(e,t,u)&&!fo(n,u))return!0}return!1}function w0(t,e,n){const r=t[n],i=e[n];return n==="style"&&ue(r)&&ue(i)?!Kn(r,i):r!==i}function fb({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const E0={},S0=()=>Object.create(E0),k0=t=>Object.getPrototypeOf(t)===E0;function db(t,e,n,r=!1){const i={},u=S0();t.propsDefaults=Object.create(null),D0(t,e,i,u);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:gg(i):t.type.props?t.props=i:t.props=u,t.attrs=u}function hb(t,e,n,r){const{props:i,attrs:u,vnode:{patchFlag:s}}=t,o=ee(i),[l]=t.propsOptions;let a=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=t.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(fo(t.emitsOptions,d))continue;const h=e[d];if(l)if(re(u,d))h!==u[d]&&(u[d]=h,a=!0);else{const p=Ze(d);i[p]=zl(l,o,p,h,t,!1)}else h!==u[d]&&(u[d]=h,a=!0)}}}else{D0(t,e,i,u)&&(a=!0);let c;for(const f in o)(!e||!re(e,f)&&((c=Yn(f))===f||!re(e,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=zl(l,o,f,void 0,t,!0)):delete i[f]);if(u!==o)for(const f in u)(!e||!re(e,f))&&(delete u[f],a=!0)}a&&pn(t.attrs,"set","")}function D0(t,e,n,r){const[i,u]=t.propsOptions;let s=!1,o;if(e)for(let l in e){if(_i(l))continue;const a=e[l];let c;i&&re(i,c=Ze(l))?!u||!u.includes(c)?n[c]=a:(o||(o={}))[c]=a:fo(t.emitsOptions,l)||(!(l in r)||a!==r[l])&&(r[l]=a,s=!0)}if(u){const l=ee(n),a=o||ae;for(let c=0;c<u.length;c++){const f=u[c];n[f]=zl(i,l,f,a[f],t,!re(a,f))}}return s}function zl(t,e,n,r,i,u){const s=t[n];if(s!=null){const o=re(s,"default");if(o&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&G(l)){const{propsDefaults:a}=i;if(n in a)r=a[n];else{const c=gu(i);r=a[n]=l.call(null,e),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(u&&!o?r=!1:s[1]&&(r===""||r===Yn(n))&&(r=!0))}return r}const pb=new WeakMap;function A0(t,e,n=!1){const r=n?pb:e.propsCache,i=r.get(t);if(i)return i;const u=t.props,s={},o=[];let l=!1;if(!G(t)){const c=f=>{l=!0;const[d,h]=A0(f,e,!0);Ae(s,d),h&&o.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!u&&!l)return ue(t)&&r.set(t,qr),qr;if(z(u))for(let c=0;c<u.length;c++){const f=Ze(u[c]);ef(f)&&(s[f]=ae)}else if(u)for(const c in u){const f=Ze(c);if(ef(f)){const d=u[c],h=s[f]=z(d)||G(d)?{type:d}:Ae({},d),p=h.type;let m=!1,b=!0;if(z(p))for(let x=0;x<p.length;++x){const w=p[x],E=G(w)&&w.name;if(E==="Boolean"){m=!0;break}else E==="String"&&(b=!1)}else m=G(p)&&p.name==="Boolean";h[0]=m,h[1]=b,(m||re(h,"default"))&&o.push(f)}}const a=[s,o];return ue(t)&&r.set(t,a),a}function ef(t){return t[0]!=="$"&&!_i(t)}const Ua=t=>t==="_"||t==="_ctx"||t==="$stable",Ha=t=>z(t)?t.map(Wt):[Wt(t)],mb=(t,e,n)=>{if(e._n)return e;const r=Ng((...i)=>Ha(e(...i)),n);return r._c=!1,r},_0=(t,e,n)=>{const r=t._ctx;for(const i in t){if(Ua(i))continue;const u=t[i];if(G(u))e[i]=mb(i,u,r);else if(u!=null){const s=Ha(u);e[i]=()=>s}}},T0=(t,e)=>{const n=Ha(e);t.slots.default=()=>n},O0=(t,e,n)=>{for(const r in e)(n||!Ua(r))&&(t[r]=e[r])},gb=(t,e,n)=>{const r=t.slots=S0();if(t.vnode.shapeFlag&32){const i=e._;i?(O0(r,e,n),n&&_h(r,"_",i,!0)):_0(e,r)}else e&&T0(t,e)},bb=(t,e,n)=>{const{vnode:r,slots:i}=t;let u=!0,s=ae;if(r.shapeFlag&32){const o=e._;o?n&&o===1?u=!1:O0(i,e,n):(u=!e.$stable,_0(e,i)),s=e}else e&&(T0(t,e),s={default:1});if(u)for(const o in i)!Ua(o)&&s[o]==null&&delete i[o]},Ve=Eb;function yb(t){return xb(t)}function xb(t,e){const n=so();n.__VUE__=!0;const{insert:r,remove:i,patchProp:u,createElement:s,createText:o,createComment:l,setText:a,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=Xt,insertStaticContent:p}=t,m=(g,y,C,A=null,S=null,k=null,R=void 0,M=null,v=!!y.dynamicChildren)=>{if(g===y)return;g&&!ar(g,y)&&(A=Du(g),It(g,S,k,!0),g=null),y.patchFlag===-2&&(v=!1,y.dynamicChildren=null);const{type:D,ref:H,shapeFlag:B}=y;switch(D){case ho:b(g,y,C,A);break;case qe:x(g,y,C,A);break;case Ho:g==null&&w(y,C,A,R);break;case ct:L(g,y,C,A,S,k,R,M,v);break;default:B&1?F(g,y,C,A,S,k,R,M,v):B&6?le(g,y,C,A,S,k,R,M,v):(B&64||B&128)&&D.process(g,y,C,A,S,k,R,M,v,hi)}H!=null&&S?vi(H,g&&g.ref,k,y||g,!y):H==null&&g&&g.ref!=null&&vi(g.ref,null,k,g,!0)},b=(g,y,C,A)=>{if(g==null)r(y.el=o(y.children),C,A);else{const S=y.el=g.el;y.children!==g.children&&a(S,y.children)}},x=(g,y,C,A)=>{g==null?r(y.el=l(y.children||""),C,A):y.el=g.el},w=(g,y,C,A)=>{[g.el,g.anchor]=p(g.children,y,C,A,g.el,g.anchor)},E=({el:g,anchor:y},C,A)=>{let S;for(;g&&g!==y;)S=d(g),r(g,C,A),g=S;r(y,C,A)},O=({el:g,anchor:y})=>{let C;for(;g&&g!==y;)C=d(g),i(g),g=C;i(y)},F=(g,y,C,A,S,k,R,M,v)=>{if(y.type==="svg"?R="svg":y.type==="math"&&(R="mathml"),g==null)j(y,C,A,S,k,R,M,v);else{const D=g.el&&g.el._isVueCE?g.el:null;try{D&&D._beginPatch(),P(g,y,S,k,R,M,v)}finally{D&&D._endPatch()}}},j=(g,y,C,A,S,k,R,M)=>{let v,D;const{props:H,shapeFlag:B,transition:V,dirs:W}=g;if(v=g.el=s(g.type,k,H&&H.is,H),B&8?c(v,g.children):B&16&&U(g.children,v,null,A,S,Uo(g,k),R,M),W&&rr(g,null,A,"created"),I(v,g,g.scopeId,R,A),H){for(const fe in H)fe!=="value"&&!_i(fe)&&u(v,fe,null,H[fe],k,A);"value"in H&&u(v,"value",null,H.value,k),(D=H.onVnodeBeforeMount)&&$t(D,A,g)}W&&rr(g,null,A,"beforeMount");const Y=Cb(S,V);Y&&V.beforeEnter(v),r(v,y,C),((D=H&&H.onVnodeMounted)||Y||W)&&Ve(()=>{D&&$t(D,A,g),Y&&V.enter(v),W&&rr(g,null,A,"mounted")},S)},I=(g,y,C,A,S)=>{if(C&&h(g,C),A)for(let k=0;k<A.length;k++)h(g,A[k]);if(S){let k=S.subTree;if(y===k||M0(k.type)&&(k.ssContent===y||k.ssFallback===y)){const R=S.vnode;I(g,R,R.scopeId,R.slotScopeIds,S.parent)}}},U=(g,y,C,A,S,k,R,M,v=0)=>{for(let D=v;D<g.length;D++){const H=g[D]=M?dn(g[D]):Wt(g[D]);m(null,H,y,C,A,S,k,R,M)}},P=(g,y,C,A,S,k,R)=>{const M=y.el=g.el;let{patchFlag:v,dynamicChildren:D,dirs:H}=y;v|=g.patchFlag&16;const B=g.props||ae,V=y.props||ae;let W;if(C&&ir(C,!1),(W=V.onVnodeBeforeUpdate)&&$t(W,C,y,g),H&&rr(y,g,C,"beforeUpdate"),C&&ir(C,!0),(B.innerHTML&&V.innerHTML==null||B.textContent&&V.textContent==null)&&c(M,""),D?J(g.dynamicChildren,D,M,C,A,Uo(y,S),k):R||ce(g,y,M,null,C,A,Uo(y,S),k,!1),v>0){if(v&16)te(M,B,V,C,S);else if(v&2&&B.class!==V.class&&u(M,"class",null,V.class,S),v&4&&u(M,"style",B.style,V.style,S),v&8){const Y=y.dynamicProps;for(let fe=0;fe<Y.length;fe++){const oe=Y[fe],et=B[oe],tt=V[oe];(tt!==et||oe==="value")&&u(M,oe,et,tt,S,C)}}v&1&&g.children!==y.children&&c(M,y.children)}else!R&&D==null&&te(M,B,V,C,S);((W=V.onVnodeUpdated)||H)&&Ve(()=>{W&&$t(W,C,y,g),H&&rr(y,g,C,"updated")},A)},J=(g,y,C,A,S,k,R)=>{for(let M=0;M<y.length;M++){const v=g[M],D=y[M],H=v.el&&(v.type===ct||!ar(v,D)||v.shapeFlag&198)?f(v.el):C;m(v,D,H,null,A,S,k,R,!0)}},te=(g,y,C,A,S)=>{if(y!==C){if(y!==ae)for(const k in y)!_i(k)&&!(k in C)&&u(g,k,y[k],null,S,A);for(const k in C){if(_i(k))continue;const R=C[k],M=y[k];R!==M&&k!=="value"&&u(g,k,M,R,S,A)}"value"in C&&u(g,"value",y.value,C.value,S)}},L=(g,y,C,A,S,k,R,M,v)=>{const D=y.el=g?g.el:o(""),H=y.anchor=g?g.anchor:o("");let{patchFlag:B,dynamicChildren:V,slotScopeIds:W}=y;W&&(M=M?M.concat(W):W),g==null?(r(D,C,A),r(H,C,A),U(y.children||[],C,H,S,k,R,M,v)):B>0&&B&64&&V&&g.dynamicChildren&&g.dynamicChildren.length===V.length?(J(g.dynamicChildren,V,C,S,k,R,M),(y.key!=null||S&&y===S.subTree)&&qa(g,y,!0)):ce(g,y,C,H,S,k,R,M,v)},le=(g,y,C,A,S,k,R,M,v)=>{y.slotScopeIds=M,g==null?y.shapeFlag&512?S.ctx.activate(y,C,A,R,v):Ce(y,C,A,S,k,R,v):Qe(g,y,v)},Ce=(g,y,C,A,S,k,R)=>{const M=g.component=Nb(g,A,S);if(mu(g)&&(M.ctx.renderer=hi),vb(M,!1,R),M.asyncDep){if(S&&S.registerDep(M,pe,R),!g.el){const v=M.subTree=Be(qe);x(null,v,y,C),g.placeholder=v.el}}else pe(M,g,y,C,S,k,R)},Qe=(g,y,C)=>{const A=y.component=g.component;if(cb(g,y,C))if(A.asyncDep&&!A.asyncResolved){se(A,y,C);return}else A.next=y,A.update();else y.el=g.el,A.vnode=y},pe=(g,y,C,A,S,k,R)=>{const M=()=>{if(g.isMounted){let{next:B,bu:V,u:W,parent:Y,vnode:fe}=g;{const Lt=N0(g);if(Lt){B&&(B.el=fe.el,se(g,B,R)),Lt.asyncDep.then(()=>{Ve(()=>{g.isUnmounted||D()},S)});return}}let oe=B,et;ir(g,!1),B?(B.el=fe.el,se(g,B,R)):B=fe,V&&ju(V),(et=B.props&&B.props.onVnodeBeforeUpdate)&&$t(et,Y,B,fe),ir(g,!0);const tt=Yc(g),Pt=g.subTree;g.subTree=tt,m(Pt,tt,f(Pt.el),Du(Pt),g,S,k),B.el=tt.el,oe===null&&fb(g,tt.el),W&&Ve(W,S),(et=B.props&&B.props.onVnodeUpdated)&&Ve(()=>$t(et,Y,B,fe),S)}else{let B;const{el:V,props:W}=y,{bm:Y,m:fe,parent:oe,root:et,type:tt}=g,Pt=Gr(y);ir(g,!1),Y&&ju(Y),!Pt&&(B=W&&W.onVnodeBeforeMount)&&$t(B,oe,y),ir(g,!0);{et.ce&&et.ce._hasShadowRoot()&&et.ce._injectChildStyle(tt,g.parent?g.parent.type:void 0);const Lt=g.subTree=Yc(g);m(null,Lt,C,A,g,S,k),y.el=Lt.el}if(fe&&Ve(fe,S),!Pt&&(B=W&&W.onVnodeMounted)){const Lt=y;Ve(()=>$t(B,oe,Lt),S)}(y.shapeFlag&256||oe&&Gr(oe.vnode)&&oe.vnode.shapeFlag&256)&&g.a&&Ve(g.a,S),g.isMounted=!0,y=C=A=null}};g.scope.on();const v=g.effect=new vh(M);g.scope.off();const D=g.update=v.run.bind(v),H=g.job=v.runIfDirty.bind(v);H.i=g,H.id=g.uid,v.scheduler=()=>$a(H),ir(g,!0),D()},se=(g,y,C)=>{y.component=g;const A=g.vnode.props;g.vnode=y,g.next=null,hb(g,y.props,A,C),bb(g,y.children,C),Cn(),$c(g),wn()},ce=(g,y,C,A,S,k,R,M,v=!1)=>{const D=g&&g.children,H=g?g.shapeFlag:0,B=y.children,{patchFlag:V,shapeFlag:W}=y;if(V>0){if(V&128){ku(D,B,C,A,S,k,R,M,v);return}else if(V&256){er(D,B,C,A,S,k,R,M,v);return}}W&8?(H&16&&di(D,S,k),B!==D&&c(C,B)):H&16?W&16?ku(D,B,C,A,S,k,R,M,v):di(D,S,k,!0):(H&8&&c(C,""),W&16&&U(B,C,A,S,k,R,M,v))},er=(g,y,C,A,S,k,R,M,v)=>{g=g||qr,y=y||qr;const D=g.length,H=y.length,B=Math.min(D,H);let V;for(V=0;V<B;V++){const W=y[V]=v?dn(y[V]):Wt(y[V]);m(g[V],W,C,null,S,k,R,M,v)}D>H?di(g,S,k,!0,!1,B):U(y,C,A,S,k,R,M,v,B)},ku=(g,y,C,A,S,k,R,M,v)=>{let D=0;const H=y.length;let B=g.length-1,V=H-1;for(;D<=B&&D<=V;){const W=g[D],Y=y[D]=v?dn(y[D]):Wt(y[D]);if(ar(W,Y))m(W,Y,C,null,S,k,R,M,v);else break;D++}for(;D<=B&&D<=V;){const W=g[B],Y=y[V]=v?dn(y[V]):Wt(y[V]);if(ar(W,Y))m(W,Y,C,null,S,k,R,M,v);else break;B--,V--}if(D>B){if(D<=V){const W=V+1,Y=W<H?y[W].el:A;for(;D<=V;)m(null,y[D]=v?dn(y[D]):Wt(y[D]),C,Y,S,k,R,M,v),D++}}else if(D>V)for(;D<=B;)It(g[D],S,k,!0),D++;else{const W=D,Y=D,fe=new Map;for(D=Y;D<=V;D++){const ot=y[D]=v?dn(y[D]):Wt(y[D]);ot.key!=null&&fe.set(ot.key,D)}let oe,et=0;const tt=V-Y+1;let Pt=!1,Lt=0;const pi=new Array(tt);for(D=0;D<tt;D++)pi[D]=0;for(D=W;D<=B;D++){const ot=g[D];if(et>=tt){It(ot,S,k,!0);continue}let Bt;if(ot.key!=null)Bt=fe.get(ot.key);else for(oe=Y;oe<=V;oe++)if(pi[oe-Y]===0&&ar(ot,y[oe])){Bt=oe;break}Bt===void 0?It(ot,S,k,!0):(pi[Bt-Y]=D+1,Bt>=Lt?Lt=Bt:Pt=!0,m(ot,y[Bt],C,null,S,k,R,M,v),et++)}const Oc=Pt?wb(pi):qr;for(oe=Oc.length-1,D=tt-1;D>=0;D--){const ot=Y+D,Bt=y[ot],Nc=y[ot+1],vc=ot+1<H?Nc.el||v0(Nc):A;pi[D]===0?m(null,Bt,C,vc,S,k,R,M,v):Pt&&(oe<0||D!==Oc[oe]?tr(Bt,C,vc,2):oe--)}}},tr=(g,y,C,A,S=null)=>{const{el:k,type:R,transition:M,children:v,shapeFlag:D}=g;if(D&6){tr(g.component.subTree,y,C,A);return}if(D&128){g.suspense.move(y,C,A);return}if(D&64){R.move(g,y,C,hi);return}if(R===ct){r(k,y,C);for(let B=0;B<v.length;B++)tr(v[B],y,C,A);r(g.anchor,y,C);return}if(R===Ho){E(g,y,C);return}if(A!==2&&D&1&&M)if(A===0)M.beforeEnter(k),r(k,y,C),Ve(()=>M.enter(k),S);else{const{leave:B,delayLeave:V,afterLeave:W}=M,Y=()=>{g.ctx.isUnmounted?i(k):r(k,y,C)},fe=()=>{k._isLeaving&&k[qt](!0),B(k,()=>{Y(),W&&W()})};V?V(k,Y,fe):fe()}else r(k,y,C)},It=(g,y,C,A=!1,S=!1)=>{const{type:k,props:R,ref:M,children:v,dynamicChildren:D,shapeFlag:H,patchFlag:B,dirs:V,cacheIndex:W}=g;if(B===-2&&(S=!1),M!=null&&(Cn(),vi(M,null,C,g,!0),wn()),W!=null&&(y.renderCache[W]=void 0),H&256){y.ctx.deactivate(g);return}const Y=H&1&&V,fe=!Gr(g);let oe;if(fe&&(oe=R&&R.onVnodeBeforeUnmount)&&$t(oe,y,g),H&6)vm(g.component,C,A);else{if(H&128){g.suspense.unmount(C,A);return}Y&&rr(g,null,y,"beforeUnmount"),H&64?g.type.remove(g,y,C,hi,A):D&&!D.hasOnce&&(k!==ct||B>0&&B&64)?di(D,y,C,!1,!0):(k===ct&&B&384||!S&&H&16)&&di(v,y,C),A&&_c(g)}(fe&&(oe=R&&R.onVnodeUnmounted)||Y)&&Ve(()=>{oe&&$t(oe,y,g),Y&&rr(g,null,y,"unmounted")},C)},_c=g=>{const{type:y,el:C,anchor:A,transition:S}=g;if(y===ct){Nm(C,A);return}if(y===Ho){O(g);return}const k=()=>{i(C),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(g.shapeFlag&1&&S&&!S.persisted){const{leave:R,delayLeave:M}=S,v=()=>R(C,k);M?M(g.el,k,v):v()}else k()},Nm=(g,y)=>{let C;for(;g!==y;)C=d(g),i(g),g=C;i(y)},vm=(g,y,C)=>{const{bum:A,scope:S,job:k,subTree:R,um:M,m:v,a:D}=g;tf(v),tf(D),A&&ju(A),S.stop(),k&&(k.flags|=8,It(R,g,y,C)),M&&Ve(M,y),Ve(()=>{g.isUnmounted=!0},y)},di=(g,y,C,A=!1,S=!1,k=0)=>{for(let R=k;R<g.length;R++)It(g[R],y,C,A,S)},Du=g=>{if(g.shapeFlag&6)return Du(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const y=d(g.anchor||g.el),C=y&&y[t0];return C?d(C):y};let vo=!1;const Tc=(g,y,C)=>{let A;g==null?y._vnode&&(It(y._vnode,null,null,!0),A=y._vnode.component):m(y._vnode||null,g,y,null,null,null,C),y._vnode=g,vo||(vo=!0,$c(A),Xh(),vo=!1)},hi={p:m,um:It,m:tr,r:_c,mt:Ce,mc:U,pc:ce,pbc:J,n:Du,o:t};return{render:Tc,hydrate:void 0,createApp:ib(Tc)}}function Uo({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function ir({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Cb(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function qa(t,e,n=!1){const r=t.children,i=e.children;if(z(r)&&z(i))for(let u=0;u<r.length;u++){const s=r[u];let o=i[u];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[u]=dn(i[u]),o.el=s.el),!n&&o.patchFlag!==-2&&qa(s,o)),o.type===ho&&(o.patchFlag===-1&&(o=i[u]=dn(o)),o.el=s.el),o.type===qe&&!o.el&&(o.el=s.el)}}function wb(t){const e=t.slice(),n=[0];let r,i,u,s,o;const l=t.length;for(r=0;r<l;r++){const a=t[r];if(a!==0){if(i=n[n.length-1],t[i]<a){e[r]=i,n.push(r);continue}for(u=0,s=n.length-1;u<s;)o=u+s>>1,t[n[o]]<a?u=o+1:s=o;a<t[n[u]]&&(u>0&&(e[r]=n[u-1]),n[u]=r)}}for(u=n.length,s=n[u-1];u-- >0;)n[u]=s,s=e[s];return n}function N0(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:N0(e)}function tf(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function v0(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?v0(e.subTree):null}const M0=t=>t.__isSuspense;function Eb(t,e){e&&e.pendingBranch?z(t)?e.effects.push(...t):e.effects.push(t):Og(t)}const ct=Symbol.for("v-fgt"),ho=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),Ho=Symbol.for("v-stc"),Fi=[];let dt=null;function Vl(t=!1){Fi.push(dt=t?null:[])}function Sb(){Fi.pop(),dt=Fi[Fi.length-1]||null}let Zi=1;function ls(t,e=!1){Zi+=t,t<0&&dt&&e&&(dt.hasOnce=!0)}function F0(t){return t.dynamicChildren=Zi>0?dt||qr:null,Sb(),Zi>0&&dt&&dt.push(t),t}function Q8(t,e,n,r,i,u){return F0(I0(t,e,n,r,i,u,!0))}function Ul(t,e,n,r,i){return F0(Be(t,e,n,r,i,!0))}function Xi(t){return t?t.__v_isVNode===!0:!1}function ar(t,e){return t.type===e.type&&t.key===e.key}const R0=({key:t})=>t??null,Ku=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ge(t)||ve(t)||G(t)?{i:Le,r:t,k:e,f:!!n}:t:null);function I0(t,e=null,n=null,r=0,i=null,u=t===ct?0:1,s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&R0(e),ref:e&&Ku(e),scopeId:Qh,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Le};return o?(ja(l,n),u&128&&t.normalize(l)):n&&(l.shapeFlag|=ge(n)?8:16),Zi>0&&!s&&dt&&(l.patchFlag>0||u&6)&&l.patchFlag!==32&&dt.push(l),l}const Be=kb;function kb(t,e=null,n=null,r=0,i=null,u=!1){if((!t||t===p0)&&(t=qe),Xi(t)){const o=Jn(t,e,!0);return n&&ja(o,n),Zi>0&&!u&&dt&&(o.shapeFlag&6?dt[dt.indexOf(t)]=o:dt.push(o)),o.patchFlag=-2,o}if(Pb(t)&&(t=t.__vccOpts),e){e=Db(e);let{class:o,style:l}=e;o&&!ge(o)&&(e.class=va(o)),ue(l)&&(ao(l)&&!z(l)&&(l=Ae({},l)),e.style=Na(l))}const s=ge(t)?1:M0(t)?128:n0(t)?64:ue(t)?4:G(t)?2:0;return I0(t,e,n,r,i,s,u,!0)}function Db(t){return t?ao(t)||k0(t)?Ae({},t):t:null}function Jn(t,e,n=!1,r=!1){const{props:i,ref:u,patchFlag:s,children:o,transition:l}=t,a=e?_b(i||{},e):i,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&R0(a),ref:e&&e.ref?n&&u?z(u)?u.concat(Ku(e)):[u,Ku(e)]:Ku(e):u,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ct?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Jn(t.ssContent),ssFallback:t.ssFallback&&Jn(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&Ji(c,l.clone(c)),c}function Ab(t=" ",e=0){return Be(ho,null,t,e)}function eE(t="",e=!1){return e?(Vl(),Ul(qe,null,t)):Be(qe,null,t)}function Wt(t){return t==null||typeof t=="boolean"?Be(qe):z(t)?Be(ct,null,t.slice()):Xi(t)?dn(t):Be(ho,null,String(t))}function dn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Jn(t)}function ja(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(z(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),ja(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!k0(e)?e._ctx=Le:i===3&&Le&&(Le.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else G(e)?(e={default:e,_ctx:Le},n=32):(e=String(e),r&64?(n=16,e=[Ab(e)]):n=8);t.children=e,t.shapeFlag|=n}function _b(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=va([e.class,r.class]));else if(i==="style")e.style=Na([e.style,r.style]);else if(to(i)){const u=e[i],s=r[i];s&&u!==s&&!(z(u)&&u.includes(s))&&(e[i]=u?[].concat(u,s):s)}else i!==""&&(e[i]=r[i])}return e}function $t(t,e,n,r=null){Rt(t,e,7,[n,r])}const Tb=x0();let Ob=0;function Nb(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||Tb,u={uid:Ob++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Jm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:A0(r,i),emitsOptions:C0(r,i),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:r.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=e?e.root:u,u.emit=sb.bind(null,u),t.ce&&t.ce(u),u}let Pe=null;const P0=()=>Pe||Le;let as,Hl;{const t=so(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),u=>{i.length>1?i.forEach(s=>s(u)):i[0](u)}};as=e("__VUE_INSTANCE_SETTERS__",n=>Pe=n),Hl=e("__VUE_SSR_SETTERS__",n=>ti=n)}const gu=t=>{const e=Pe;return as(t),t.scope.on(),()=>{t.scope.off(),as(e)}},nf=()=>{Pe&&Pe.scope.off(),as(null)};function L0(t){return t.vnode.shapeFlag&4}let ti=!1;function vb(t,e=!1,n=!1){e&&Hl(e);const{props:r,children:i}=t.vnode,u=L0(t);db(t,r,u,e),gb(t,i,n||e);const s=u?Mb(t,e):void 0;return e&&Hl(!1),s}function Mb(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Xg);const{setup:r}=n;if(r){Cn();const i=t.setupContext=r.length>1?Rb(t):null,u=gu(t),s=hu(r,t,0,[t.props,i]),o=kh(s);if(wn(),u(),(o||t.sp)&&!Gr(t)&&Va(t),o){if(s.then(nf,nf),e)return s.then(l=>{rf(t,l)}).catch(l=>{pu(l,t,0)});t.asyncDep=s}else rf(t,s)}else B0(t)}function rf(t,e,n){G(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ue(e)&&(t.setupState=Gh(e)),B0(t)}function B0(t,e,n){const r=t.type;t.render||(t.render=r.render||Xt);{const i=gu(t);Cn();try{Yg(t)}finally{wn(),i()}}}const Fb={get(t,e){return He(t,"get",""),t[e]}};function Rb(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Fb),slots:t.slots,emit:t.emit,expose:e}}function po(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Gh(bg(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Mi)return Mi[n](t)},has(e,n){return n in e||n in Mi}})):t.proxy}function Ib(t,e=!0){return G(t)?t.displayName||t.name:t.name||e&&t.__name}function Pb(t){return G(t)&&"__vccOpts"in t}const Lb=(t,e)=>kg(t,e,ti);function Bb(t,e,n){try{ls(-1);const r=arguments.length;return r===2?ue(e)&&!z(e)?Xi(e)?Be(t,null,[e]):Be(t,e):Be(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Xi(n)&&(n=[n]),Be(t,e,n))}finally{ls(1)}}const $b="3.5.30";/**
14
14
  * @vue/runtime-dom v3.5.30
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/let Rl;const Wc=typeof window<"u"&&window.trustedTypes;if(Wc)try{Rl=Wc.createPolicy("vue",{createHTML:t=>t})}catch{}const C0=Rl?t=>Rl.createHTML(t):t=>t,d2="http://www.w3.org/2000/svg",h2="http://www.w3.org/1998/Math/MathML",ln=typeof document<"u"?document:null,Gc=ln&&ln.createElement("template"),p2={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?ln.createElementNS(d2,t):e==="mathml"?ln.createElementNS(h2,t):n?ln.createElement(t,{is:n}):ln.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>ln.createTextNode(t),createComment:t=>ln.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ln.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,u){const s=n?n.previousSibling:e.lastChild;if(i&&(i===u||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===u||!(i=i.nextSibling)););else{Gc.innerHTML=C0(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const o=Gc.content;if(r==="svg"||r==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},En="transition",di="animation",Gi=Symbol("_vtc"),w0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},m2=Ae({},zh,w0),g2=t=>(t.displayName="Transition",t.props=m2,t),I8=g2((t,{slots:e})=>c2(cg,b2(t),e)),nr=(t,e=[])=>{$(t)?t.forEach(n=>n(...e)):t&&t(...e)},Kc=t=>t?$(t)?t.some(e=>e.length>1):t.length>1:!1;function b2(t){const e={};for(const L in t)L in w0||(e[L]=t[L]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:u=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=u,appearActiveClass:a=s,appearToClass:c=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=y2(i),m=p&&p[0],b=p&&p[1],{onBeforeEnter:x,onEnter:w,onEnterCancelled:E,onLeave:N,onLeaveCancelled:F,onBeforeAppear:j=x,onAppear:R=w,onAppearCancelled:U=E}=e,P=(L,le,Ce,Qe)=>{L._enterCancelled=Qe,rr(L,le?c:o),rr(L,le?a:s),Ce&&Ce()},J=(L,le)=>{L._isLeaving=!1,rr(L,f),rr(L,h),rr(L,d),le&&le()},te=L=>(le,Ce)=>{const Qe=L?R:w,pe=()=>P(le,L,Ce);nr(Qe,[le,pe]),Jc(()=>{rr(le,L?l:u),en(le,L?c:o),Kc(Qe)||Zc(le,r,m,pe)})};return Ae(e,{onBeforeEnter(L){nr(x,[L]),en(L,u),en(L,s)},onBeforeAppear(L){nr(j,[L]),en(L,l),en(L,a)},onEnter:te(!1),onAppear:te(!0),onLeave(L,le){L._isLeaving=!0;const Ce=()=>J(L,le);en(L,f),L._enterCancelled?(en(L,d),Qc(L)):(Qc(L),en(L,d)),Jc(()=>{L._isLeaving&&(rr(L,f),en(L,h),Kc(N)||Zc(L,r,b,Ce))}),nr(N,[L,Ce])},onEnterCancelled(L){P(L,!1,void 0,!0),nr(E,[L])},onAppearCancelled(L){P(L,!0,void 0,!0),nr(U,[L])},onLeaveCancelled(L){J(L),nr(F,[L])}})}function y2(t){if(t==null)return null;if(ue(t))return[Po(t.enter),Po(t.leave)];{const e=Po(t);return[e,e]}}function Po(t){return dm(t)}function en(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Gi]||(t[Gi]=new Set)).add(e)}function rr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Gi];n&&(n.delete(e),n.size||(t[Gi]=void 0))}function Jc(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let x2=0;function Zc(t,e,n,r){const i=t._endId=++x2,u=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(u,n);const{type:s,timeout:o,propCount:l}=C2(t,e);if(!s)return r();const a=s+"end";let c=0;const f=()=>{t.removeEventListener(a,d),u()},d=h=>{h.target===t&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},o+1),t.addEventListener(a,d)}function C2(t,e){const n=window.getComputedStyle(t),r=p=>(n[p]||"").split(", "),i=r(`${En}Delay`),u=r(`${En}Duration`),s=Xc(i,u),o=r(`${di}Delay`),l=r(`${di}Duration`),a=Xc(o,l);let c=null,f=0,d=0;e===En?s>0&&(c=En,f=s,d=u.length):e===di?a>0&&(c=di,f=a,d=l.length):(f=Math.max(s,a),c=f>0?s>a?En:di:null,d=c?c===En?u.length:l.length:0);const h=c===En&&/\b(?:transform|all)(?:,|$)/.test(r(`${En}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function Xc(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>Yc(n)+Yc(t[r])))}function Yc(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Qc(t){return(t?t.ownerDocument:document).body.offsetHeight}function w2(t,e,n){const r=t[Gi];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const is=Symbol("_vod"),E0=Symbol("_vsh"),R8={name:"show",beforeMount(t,{value:e},{transition:n}){t[is]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):hi(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),hi(t,!0),r.enter(t)):r.leave(t,()=>{hi(t,!1)}):hi(t,e))},beforeUnmount(t,{value:e}){hi(t,e)}};function hi(t,e){t.style.display=e?t[is]:"none",t[E0]=!e}const E2=Symbol(""),S2=/(?:^|;)\s*display\s*:/;function k2(t,e,n){const r=t.style,i=ge(n);let u=!1;if(n&&!i){if(e)if(ge(e))for(const s of e.split(";")){const o=s.slice(0,s.indexOf(":")).trim();n[o]==null&&qu(r,o,"")}else for(const s in e)n[s]==null&&qu(r,s,"");for(const s in n)s==="display"&&(u=!0),qu(r,s,n[s])}else if(i){if(e!==n){const s=r[E2];s&&(n+=";"+s),r.cssText=n,u=S2.test(n)}}else e&&t.removeAttribute("style");is in t&&(t[is]=u?r.display:"",t[E0]&&(r.display="none"))}const ef=/\s*!important$/;function qu(t,e,n){if($(n))n.forEach(r=>qu(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=D2(t,e);ef.test(n)?t.setProperty(Jn(r),n.replace(ef,""),"important"):t[r]=n}}const tf=["Webkit","Moz","ms"],Lo={};function D2(t,e){const n=Lo[e];if(n)return n;let r=Ze(e);if(r!=="filter"&&r in t)return Lo[e]=r;r=Xs(r);for(let i=0;i<tf.length;i++){const u=tf[i]+r;if(u in t)return Lo[e]=u}return e}const nf="http://www.w3.org/1999/xlink";function rf(t,e,n,r,i,u=ym(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(nf,e.slice(6,e.length)):t.setAttributeNS(nf,e,n):n==null||u&&!ah(n)?t.removeAttribute(e):t.setAttribute(e,u?"":Ot(n)?String(n):n)}function uf(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?C0(n):n);return}const u=t.tagName;if(e==="value"&&u!=="PROGRESS"&&!u.includes("-")){const o=u==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const o=typeof t[e];o==="boolean"?n=ah(n):n==null&&o==="string"?(n="",s=!0):o==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(i||e)}function pn(t,e,n,r){t.addEventListener(e,n,r)}function A2(t,e,n,r){t.removeEventListener(e,n,r)}const sf=Symbol("_vei");function _2(t,e,n,r,i=null){const u=t[sf]||(t[sf]={}),s=u[e];if(r&&s)s.value=r;else{const[o,l]=T2(e);if(r){const a=u[e]=v2(r,i);pn(t,o,a,l)}else s&&(A2(t,o,s,l),u[e]=void 0)}}const of=/(?:Once|Passive|Capture)$/;function T2(t){let e;if(of.test(t)){e={};let r;for(;r=t.match(of);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Jn(t.slice(2)),e]}let Bo=0;const N2=Promise.resolve(),O2=()=>Bo||(N2.then(()=>Bo=0),Bo=Date.now());function v2(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mt(M2(r,n.value),e,5,[r])};return n.value=t,n.attached=O2(),n}function M2(t,e){if($(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const lf=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,F2=(t,e,n,r,i,u)=>{const s=i==="svg";e==="class"?w2(t,r,s):e==="style"?k2(t,n,r):Ks(e)?ya(e)||_2(t,e,n,r,u):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):I2(t,e,r,s))?(uf(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&rf(t,e,r,s,u,e!=="value")):t._isVueCE&&(R2(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!ge(r)))?uf(t,Ze(e),r,u,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),rf(t,e,r,s))};function I2(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&lf(e)&&G(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return lf(e)&&ge(n)?!1:e in t}function R2(t,e){const n=t._def.props;if(!n)return!1;const r=Ze(e);return Array.isArray(n)?n.some(i=>Ze(i)===r):Object.keys(n).some(i=>Ze(i)===r)}const Gn=t=>{const e=t.props["onUpdate:modelValue"]||!1;return $(e)?n=>$u(e,n):e};function P2(t){t.target.composing=!0}function af(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ct=Symbol("_assign");function cf(t,e,n){return e&&(t=t.trim()),n&&(t=Ys(t)),t}const ff={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[Ct]=Gn(i);const u=r||i.props&&i.props.type==="number";pn(t,e?"change":"input",s=>{s.target.composing||t[Ct](cf(t.value,n,u))}),(n||u)&&pn(t,"change",()=>{t.value=cf(t.value,n,u)}),e||(pn(t,"compositionstart",P2),pn(t,"compositionend",af),pn(t,"change",af))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:u}},s){if(t[Ct]=Gn(s),t.composing)return;const o=(u||t.type==="number")&&!/^0\d/.test(t.value)?Ys(t.value):t.value,l=e??"";o!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===l)||(t.value=l))}},L2={deep:!0,created(t,e,n){t[Ct]=Gn(n),pn(t,"change",()=>{const r=t._modelValue,i=Xr(t),u=t.checked,s=t[Ct];if($(r)){const o=Ea(r,i),l=o!==-1;if(u&&!l)s(r.concat(i));else if(!u&&l){const a=[...r];a.splice(o,1),s(a)}}else if(ni(r)){const o=new Set(r);u?o.add(i):o.delete(i),s(o)}else s(S0(t,u))})},mounted:df,beforeUpdate(t,e,n){t[Ct]=Gn(n),df(t,e,n)}};function df(t,{value:e,oldValue:n},r){t._modelValue=e;let i;if($(e))i=Ea(e,r.props.value)>-1;else if(ni(e))i=e.has(r.props.value);else{if(e===n)return;i=jn(e,S0(t,!0))}t.checked!==i&&(t.checked=i)}const B2={created(t,{value:e},n){t.checked=jn(e,n.props.value),t[Ct]=Gn(n),pn(t,"change",()=>{t[Ct](Xr(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[Ct]=Gn(r),e!==n&&(t.checked=jn(e,r.props.value))}},z2={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=ni(e);pn(t,"change",()=>{const u=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?Ys(Xr(s)):Xr(s));t[Ct](t.multiple?i?new Set(u):u:u[0]),t._assigning=!0,Oh(()=>{t._assigning=!1})}),t[Ct]=Gn(r)},mounted(t,{value:e}){hf(t,e)},beforeUpdate(t,e,n){t[Ct]=Gn(n)},updated(t,{value:e}){t._assigning||hf(t,e)}};function hf(t,e){const n=t.multiple,r=$(e);if(!(n&&!r&&!ni(e))){for(let i=0,u=t.options.length;i<u;i++){const s=t.options[i],o=Xr(s);if(n)if(r){const l=typeof o;l==="string"||l==="number"?s.selected=e.some(a=>String(a)===String(o)):s.selected=Ea(e,o)>-1}else s.selected=e.has(o);else if(jn(Xr(s),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Xr(t){return"_value"in t?t._value:t.value}function S0(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const P8={created(t,e,n){Au(t,e,n,null,"created")},mounted(t,e,n){Au(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){Au(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){Au(t,e,n,r,"updated")}};function $2(t,e){switch(t){case"SELECT":return z2;case"TEXTAREA":return ff;default:switch(e){case"checkbox":return L2;case"radio":return B2;default:return ff}}}function Au(t,e,n,r,i){const s=$2(t.tagName,n.props&&n.props.type)[i];s&&s(t,e,n,r)}const V2=["ctrl","shift","alt","meta"],U2={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>V2.some(n=>t[`${n}Key`]&&!e.includes(n))},L8=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...u)=>{for(let s=0;s<e.length;s++){const o=U2[e[s]];if(o&&o(i,e))return}return t(i,...u)})},H2={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},B8=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const u=Jn(i.key);if(e.some(s=>s===u||H2[s]===u))return t(i)})},q2=Ae({patchProp:F2},p2);let pf;function k0(){return pf||(pf=qg(q2))}const z8=(...t)=>{k0().render(...t)},$8=(...t)=>{const e=k0().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=W2(r);if(!i)return;const u=e._component;!G(u)&&!u.render&&!u.template&&(u.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,j2(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e};function j2(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function W2(t){return ge(t)?document.querySelector(t):t}const mf={};function G2(t){let e=mf[t];if(e)return e;e=mf[t]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);e.push(r)}for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return e}function oo(t,e){typeof e!="string"&&(e=oo.defaultChars);const n=G2(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(r){let i="";for(let u=0,s=r.length;u<s;u+=3){const o=parseInt(r.slice(u+1,u+3),16);if(o<128){i+=n[o];continue}if((o&224)===192&&u+3<s){const l=parseInt(r.slice(u+4,u+6),16);if((l&192)===128){const a=o<<6&1984|l&63;a<128?i+="��":i+=String.fromCharCode(a),u+=3;continue}}if((o&240)===224&&u+6<s){const l=parseInt(r.slice(u+4,u+6),16),a=parseInt(r.slice(u+7,u+9),16);if((l&192)===128&&(a&192)===128){const c=o<<12&61440|l<<6&4032|a&63;c<2048||c>=55296&&c<=57343?i+="���":i+=String.fromCharCode(c),u+=6;continue}}if((o&248)===240&&u+9<s){const l=parseInt(r.slice(u+4,u+6),16),a=parseInt(r.slice(u+7,u+9),16),c=parseInt(r.slice(u+10,u+12),16);if((l&192)===128&&(a&192)===128&&(c&192)===128){let f=o<<18&1835008|l<<12&258048|a<<6&4032|c&63;f<65536||f>1114111?i+="����":(f-=65536,i+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),u+=9;continue}}i+="�"}return i})}oo.defaultChars=";/?:@&=+$,#";oo.componentChars="";const gf={};function K2(t){let e=gf[t];if(e)return e;e=gf[t]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?e.push(r):e.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<t.length;n++)e[t.charCodeAt(n)]=t[n];return e}function lo(t,e,n){typeof e!="string"&&(n=e,e=lo.defaultChars),typeof n>"u"&&(n=!0);const r=K2(e);let i="";for(let u=0,s=t.length;u<s;u++){const o=t.charCodeAt(u);if(n&&o===37&&u+2<s&&/^[0-9a-f]{2}$/i.test(t.slice(u+1,u+3))){i+=t.slice(u,u+3),u+=2;continue}if(o<128){i+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&u+1<s){const l=t.charCodeAt(u+1);if(l>=56320&&l<=57343){i+=encodeURIComponent(t[u]+t[u+1]),u++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(t[u])}return i}lo.defaultChars=";/?:@&=+$,-_.!~*'()#";lo.componentChars="-_.!~*'()";function J2(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function us(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Z2=/^([a-z0-9.+-]+:)/i,X2=/:[0-9]*$/,Y2=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Q2=["<",">",'"',"`"," ","\r",`
18
- `," "],eb=["{","}","|","\\","^","`"].concat(Q2),tb=["'"].concat(eb),bf=["%","/","?",";","#"].concat(tb),yf=["/","?","#"],nb=255,xf=/^[+a-z0-9A-Z_-]{0,63}$/,rb=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Cf={javascript:!0,"javascript:":!0},wf={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ib(t,e){if(t&&t instanceof us)return t;const n=new us;return n.parse(t,e),n}us.prototype.parse=function(t,e){let n,r,i,u=t;if(u=u.trim(),!e&&t.split("#").length===1){const a=Y2.exec(u);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}let s=Z2.exec(u);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,u=u.substr(s.length)),(e||s||u.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=u.substr(0,2)==="//",i&&!(s&&Cf[s])&&(u=u.substr(2),this.slashes=!0)),!Cf[s]&&(i||s&&!wf[s])){let a=-1;for(let p=0;p<yf.length;p++)r=u.indexOf(yf[p]),r!==-1&&(a===-1||r<a)&&(a=r);let c,f;a===-1?f=u.lastIndexOf("@"):f=u.lastIndexOf("@",a),f!==-1&&(c=u.slice(0,f),u=u.slice(f+1),this.auth=c),a=-1;for(let p=0;p<bf.length;p++)r=u.indexOf(bf[p]),r!==-1&&(a===-1||r<a)&&(a=r);a===-1&&(a=u.length),u[a-1]===":"&&a--;const d=u.slice(0,a);u=u.slice(a),this.parseHost(d),this.hostname=this.hostname||"";const h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){const p=this.hostname.split(/\./);for(let m=0,b=p.length;m<b;m++){const x=p[m];if(x&&!x.match(xf)){let w="";for(let E=0,N=x.length;E<N;E++)x.charCodeAt(E)>127?w+="x":w+=x[E];if(!w.match(xf)){const E=p.slice(0,m),N=p.slice(m+1),F=x.match(rb);F&&(E.push(F[1]),N.unshift(F[2])),N.length&&(u=N.join(".")+u),this.hostname=E.join(".");break}}}}this.hostname.length>nb&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=u.indexOf("#");o!==-1&&(this.hash=u.substr(o),u=u.slice(0,o));const l=u.indexOf("?");return l!==-1&&(this.search=u.substr(l),u=u.slice(0,l)),u&&(this.pathname=u),wf[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};us.prototype.parseHost=function(t){let e=X2.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const V8=Object.freeze(Object.defineProperty({__proto__:null,decode:oo,encode:lo,format:J2,parse:ib},Symbol.toStringTag,{value:"Module"})),D0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,A0=/[\0-\x1F\x7F-\x9F]/,ub=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,_0=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,sb=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,T0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,U8=Object.freeze(Object.defineProperty({__proto__:null,Any:D0,Cc:A0,Cf:ub,P:_0,S:sb,Z:T0},Symbol.toStringTag,{value:"Module"})),ob=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(t=>t.charCodeAt(0))),lb=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var zo;const ab=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]]),cb=(zo=String.fromCodePoint)!==null&&zo!==void 0?zo:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function fb(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=ab.get(t))!==null&&e!==void 0?e:t}var Ne;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Ne||(Ne={}));const db=32;var Ln;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Ln||(Ln={}));function Pl(t){return t>=Ne.ZERO&&t<=Ne.NINE}function hb(t){return t>=Ne.UPPER_A&&t<=Ne.UPPER_F||t>=Ne.LOWER_A&&t<=Ne.LOWER_F}function pb(t){return t>=Ne.UPPER_A&&t<=Ne.UPPER_Z||t>=Ne.LOWER_A&&t<=Ne.LOWER_Z||Pl(t)}function mb(t){return t===Ne.EQUALS||pb(t)}var Te;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Te||(Te={}));var Mn;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Mn||(Mn={}));class gb{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Te.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Mn.Strict}startEntity(e){this.decodeMode=e,this.state=Te.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Te.EntityStart:return e.charCodeAt(n)===Ne.NUM?(this.state=Te.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Te.NamedEntity,this.stateNamedEntity(e,n));case Te.NumericStart:return this.stateNumericStart(e,n);case Te.NumericDecimal:return this.stateNumericDecimal(e,n);case Te.NumericHex:return this.stateNumericHex(e,n);case Te.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|db)===Ne.LOWER_X?(this.state=Te.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Te.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,i){if(n!==r){const u=r-n;this.result=this.result*Math.pow(i,u)+parseInt(e.substr(n,u),i),this.consumed+=u}}stateNumericHex(e,n){const r=n;for(;n<e.length;){const i=e.charCodeAt(n);if(Pl(i)||hb(i))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){const r=n;for(;n<e.length;){const i=e.charCodeAt(n);if(Pl(i))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(e,r,n,10),-1}emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ne.SEMI)this.consumed+=1;else if(this.decodeMode===Mn.Strict)return 0;return this.emitCodePoint(fb(this.result),this.consumed),this.errors&&(e!==Ne.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:r}=this;let i=r[this.treeIndex],u=(i&Ln.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const s=e.charCodeAt(n);if(this.treeIndex=bb(r,i,this.treeIndex+Math.max(1,u),s),this.treeIndex<0)return this.result===0||this.decodeMode===Mn.Attribute&&(u===0||mb(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],u=(i&Ln.VALUE_LENGTH)>>14,u!==0){if(s===Ne.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Mn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,i=(r[n]&Ln.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[e]&~Ln.VALUE_LENGTH:i[e+1],r),n===3&&this.emitCodePoint(i[e+2],r),r}end(){var e;switch(this.state){case Te.NamedEntity:return this.result!==0&&(this.decodeMode!==Mn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Te.NumericDecimal:return this.emitNumericEntity(0,2);case Te.NumericHex:return this.emitNumericEntity(0,3);case Te.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Te.EntityStart:return 0}}}function N0(t){let e="";const n=new gb(t,r=>e+=cb(r));return function(i,u){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){e+=i.slice(s,o),n.startEntity(u);const a=n.write(i,o+1);if(a<0){s=o+n.end();break}s=o+a,o=a===0?s+1:s}const l=e+i.slice(s);return e="",l}}function bb(t,e,n,r){const i=(e&Ln.BRANCH_LENGTH)>>7,u=e&Ln.JUMP_TABLE;if(i===0)return u!==0&&r===u?n:-1;if(u){const l=r-u;return l<0||l>=i?-1:t[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,a=t[l];if(a<r)s=l+1;else if(a>r)o=l-1;else return t[l+i]}return-1}const yb=N0(ob);N0(lb);function H8(t,e=Mn.Legacy){return yb(t,e)}function xb(t){const e={};t=t||{},e.src_Any=D0.source,e.src_Cc=A0.source,e.src_Z=T0.source,e.src_P=_0.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function Ll(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function ao(t){return Object.prototype.toString.call(t)}function Cb(t){return ao(t)==="[object String]"}function wb(t){return ao(t)==="[object Object]"}function Eb(t){return ao(t)==="[object RegExp]"}function Ef(t){return ao(t)==="[object Function]"}function Sb(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const O0={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function kb(t){return Object.keys(t||{}).reduce(function(e,n){return e||O0.hasOwnProperty(n)},!1)}const Db={"http:":{validate:function(t,e,n){const r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Ab="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",_b="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Tb(t){t.__index__=-1,t.__text_cache__=""}function Nb(t){return function(e,n){const r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Sf(){return function(t,e){e.normalize(t)}}function ss(t){const e=t.re=xb(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Ab),n.push(e.src_xn),e.src_tlds=n.join("|");function r(o){return o.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");const i=[];t.__compiled__={};function u(o,l){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+l)}Object.keys(t.__schemas__).forEach(function(o){const l=t.__schemas__[o];if(l===null)return;const a={validate:null,link:null};if(t.__compiled__[o]=a,wb(l)){Eb(l.validate)?a.validate=Nb(l.validate):Ef(l.validate)?a.validate=l.validate:u(o,l),Ef(l.normalize)?a.normalize=l.normalize:l.normalize?u(o,l):a.normalize=Sf();return}if(Cb(l)){i.push(o);return}u(o,l)}),i.forEach(function(o){t.__compiled__[t.__schemas__[o]]&&(t.__compiled__[o].validate=t.__compiled__[t.__schemas__[o]].validate,t.__compiled__[o].normalize=t.__compiled__[t.__schemas__[o]].normalize)}),t.__compiled__[""]={validate:null,normalize:Sf()};const s=Object.keys(t.__compiled__).filter(function(o){return o.length>0&&t.__compiled__[o]}).map(Sb).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Tb(t)}function Ob(t,e){const n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function Bl(t,e){const n=new Ob(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function kt(t,e){if(!(this instanceof kt))return new kt(t,e);e||kb(t)&&(e=t,t={}),this.__opts__=Ll({},O0,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Ll({},Db,t),this.__compiled__={},this.__tlds__=_b,this.__tlds_replaced__=!1,this.re={},ss(this)}kt.prototype.add=function(e,n){return this.__schemas__[e]=n,ss(this),this};kt.prototype.set=function(e){return this.__opts__=Ll(this.__opts__,e),this};kt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,r,i,u,s,o,l,a,c;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(u=this.testSchemaAt(e,n[2],l.lastIndex),u){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=e.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,o=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o))),this.__index__>=0};kt.prototype.pretest=function(e){return this.re.pretest.test(e)};kt.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0};kt.prototype.match=function(e){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(Bl(this,r)),r=this.__last_index__);let i=r?e.slice(r):e;for(;this.test(i);)n.push(Bl(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};kt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,Bl(this,0)):null};kt.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,u){return r!==u[i-1]}).reverse(),ss(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ss(this),this)};kt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};kt.prototype.onCompile=function(){};const qr=2147483647,Wt=36,Pa=1,Ki=26,vb=38,Mb=700,v0=72,M0=128,F0="-",Fb=/^xn--/,Ib=/[^\0-\x7F]/,Rb=/[\x2E\u3002\uFF0E\uFF61]/g,Pb={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$o=Wt-Pa,Gt=Math.floor,Vo=String.fromCharCode;function Tn(t){throw new RangeError(Pb[t])}function Lb(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function I0(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(Rb,".");const i=t.split("."),u=Lb(i,e).join(".");return r+u}function R0(t){const e=[];let n=0;const r=t.length;for(;n<r;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const u=t.charCodeAt(n++);(u&64512)==56320?e.push(((i&1023)<<10)+(u&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const Bb=t=>String.fromCodePoint(...t),zb=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Wt},kf=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},P0=function(t,e,n){let r=0;for(t=n?Gt(t/Mb):t>>1,t+=Gt(t/e);t>$o*Ki>>1;r+=Wt)t=Gt(t/$o);return Gt(r+($o+1)*t/(t+vb))},L0=function(t){const e=[],n=t.length;let r=0,i=M0,u=v0,s=t.lastIndexOf(F0);s<0&&(s=0);for(let o=0;o<s;++o)t.charCodeAt(o)>=128&&Tn("not-basic"),e.push(t.charCodeAt(o));for(let o=s>0?s+1:0;o<n;){const l=r;for(let c=1,f=Wt;;f+=Wt){o>=n&&Tn("invalid-input");const d=zb(t.charCodeAt(o++));d>=Wt&&Tn("invalid-input"),d>Gt((qr-r)/c)&&Tn("overflow"),r+=d*c;const h=f<=u?Pa:f>=u+Ki?Ki:f-u;if(d<h)break;const p=Wt-h;c>Gt(qr/p)&&Tn("overflow"),c*=p}const a=e.length+1;u=P0(r-l,a,l==0),Gt(r/a)>qr-i&&Tn("overflow"),i+=Gt(r/a),r%=a,e.splice(r++,0,i)}return String.fromCodePoint(...e)},B0=function(t){const e=[];t=R0(t);const n=t.length;let r=M0,i=0,u=v0;for(const l of t)l<128&&e.push(Vo(l));const s=e.length;let o=s;for(s&&e.push(F0);o<n;){let l=qr;for(const c of t)c>=r&&c<l&&(l=c);const a=o+1;l-r>Gt((qr-i)/a)&&Tn("overflow"),i+=(l-r)*a,r=l;for(const c of t)if(c<r&&++i>qr&&Tn("overflow"),c===r){let f=i;for(let d=Wt;;d+=Wt){const h=d<=u?Pa:d>=u+Ki?Ki:d-u;if(f<h)break;const p=f-h,m=Wt-h;e.push(Vo(kf(h+p%m,0))),f=Gt(p/m)}e.push(Vo(kf(f,0))),u=P0(i,a,o===s),i=0,++o}++i,++r}return e.join("")},$b=function(t){return I0(t,function(e){return Fb.test(e)?L0(e.slice(4).toLowerCase()):e})},Vb=function(t){return I0(t,function(e){return Ib.test(e)?"xn--"+B0(e):e})},q8={version:"2.3.1",ucs2:{decode:R0,encode:Bb},decode:L0,encode:B0,toASCII:Vb,toUnicode:$b};function Fe(t){this.content=t}Fe.prototype={constructor:Fe,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),u=r.content.slice();return i==-1?u.push(n||t,e):(u[i+1]=e,n&&(u[i]=n)),new Fe(u)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Fe(n)},addToStart:function(t,e){return new Fe([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Fe(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),u=r.find(t);return i.splice(u==-1?i.length:u,0,e,n),new Fe(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Fe.from(t),t.size?new Fe(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Fe.from(t),t.size?new Fe(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Fe.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};Fe.from=function(t){if(t instanceof Fe)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Fe(e)};function z0(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),u=e.child(r);if(i==u){n+=i.nodeSize;continue}if(!i.sameMarkup(u))return n;if(i.isText&&i.text!=u.text){for(let s=0;i.text[s]==u.text[s];s++)n++;return n}if(i.content.size||u.content.size){let s=z0(i.content,u.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function $0(t,e,n,r){for(let i=t.childCount,u=e.childCount;;){if(i==0||u==0)return i==u?null:{a:n,b:r};let s=t.child(--i),o=e.child(--u),l=s.nodeSize;if(s==o){n-=l,r-=l;continue}if(!s.sameMarkup(o))return{a:n,b:r};if(s.isText&&s.text!=o.text){let a=0,c=Math.min(s.text.length,o.text.length);for(;a<c&&s.text[s.text.length-a-1]==o.text[o.text.length-a-1];)a++,n--,r--;return{a:n,b:r}}if(s.content.size||o.content.size){let a=$0(s.content,o.content,n-1,r-1);if(a)return a}n-=l,r-=l}}class T{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,u){for(let s=0,o=0;o<n;s++){let l=this.content[s],a=o+l.nodeSize;if(a>e&&r(l,i+o,u||null,s)!==!1&&l.content.size){let c=o+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),r,i+c)}o=a}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let u="",s=!0;return this.nodesBetween(e,n,(o,l)=>{let a=o.isText?o.text.slice(Math.max(e,l)-l,n-l):o.isLeaf?i?typeof i=="function"?i(o):i:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&a||o.isTextblock)&&r&&(s?s=!1:u+=r),u+=a},0),u}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),u=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),u=1);u<e.content.length;u++)i.push(e.content[u]);return new T(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let u=0,s=0;s<n;u++){let o=this.content[u],l=s+o.nodeSize;l>e&&((s<e||l>n)&&(o.isText?o=o.cut(Math.max(0,e-s),Math.min(o.text.length,n-s)):o=o.cut(Math.max(0,e-s-1),Math.min(o.content.size,n-s-1))),r.push(o),i+=o.nodeSize),s=l}return new T(r,i)}cutByIndex(e,n){return e==n?T.empty:e==0&&n==this.content.length?this:new T(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),u=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new T(i,u)}addToStart(e){return new T([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new T(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return z0(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return $0(this,e,n,r)}findIndex(e){if(e==0)return _u(0,e);if(e==this.size)return _u(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),u=r+i.nodeSize;if(u>=e)return u==e?_u(n+1,u):_u(n,r);r=u}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return T.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new T(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return T.empty;let n,r=0;for(let i=0;i<e.length;i++){let u=e[i];r+=u.nodeSize,i&&u.isText&&e[i-1].sameMarkup(u)?(n||(n=e.slice(0,i)),n[n.length-1]=u.withText(n[n.length-1].text+u.text)):n&&n.push(u)}return new T(n||e,r)}static from(e){if(!e)return T.empty;if(e instanceof T)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new T([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}T.empty=new T([],0);const Uo={index:0,offset:0};function _u(t,e){return Uo.index=t,Uo.offset=e,Uo}function ls(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!ls(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!ls(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}class ie{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let u=e[i];if(this.eq(u))return e;if(this.type.excludes(u.type))n||(n=e.slice(0,i));else{if(u.type.excludes(this.type))return e;!r&&u.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(u)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ls(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return ie.none;if(e instanceof ie)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}}ie.none=[];class as extends Error{}class z{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=U0(this.content,e+this.openStart,n);return r&&new z(r,this.openStart,this.openEnd)}removeBetween(e,n){return new z(V0(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return z.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new z(T.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let u=e.firstChild;u&&!u.isLeaf&&(n||!u.type.spec.isolating);u=u.firstChild)r++;for(let u=e.lastChild;u&&!u.isLeaf&&(n||!u.type.spec.isolating);u=u.lastChild)i++;return new z(e,r,i)}}z.empty=new z(T.empty,0,0);function V0(t,e,n){let{index:r,offset:i}=t.findIndex(e),u=t.maybeChild(r),{index:s,offset:o}=t.findIndex(n);if(i==e||u.isText){if(o!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,u.copy(V0(u.content,e-i-1,n-i-1)))}function U0(t,e,n,r){let{index:i,offset:u}=t.findIndex(e),s=t.maybeChild(i);if(u==e||s.isText)return r&&!r.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let o=U0(s.content,e-u-1,n,s);return o&&t.replaceChild(i,s.copy(o))}function Ub(t,e,n){if(n.openStart>t.depth)throw new as("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new as("Inconsistent open depths");return H0(t,e,n,0)}function H0(t,e,n,r){let i=t.index(r),u=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let s=H0(t,e,n,r+1);return u.copy(u.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,o=s.content;return yr(s,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}else{let{start:s,end:o}=Hb(n,t);return yr(u,j0(t,s,o,e,r))}else return yr(u,cs(t,e,r))}function q0(t,e){if(!e.type.compatibleContent(t.type))throw new as("Cannot join "+e.type.name+" onto "+t.type.name)}function zl(t,e,n){let r=t.node(n);return q0(r,e.node(n)),r}function br(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ni(t,e,n,r){let i=(e||t).node(n),u=0,s=e?e.index(n):i.childCount;t&&(u=t.index(n),t.depth>n?u++:t.textOffset&&(br(t.nodeAfter,r),u++));for(let o=u;o<s;o++)br(i.child(o),r);e&&e.depth==n&&e.textOffset&&br(e.nodeBefore,r)}function yr(t,e){return t.type.checkContent(e),t.copy(e)}function j0(t,e,n,r,i){let u=t.depth>i&&zl(t,e,i+1),s=r.depth>i&&zl(n,r,i+1),o=[];return Ni(null,t,i,o),u&&s&&e.index(i)==n.index(i)?(q0(u,s),br(yr(u,j0(t,e,n,r,i+1)),o)):(u&&br(yr(u,cs(t,e,i+1)),o),Ni(e,n,i,o),s&&br(yr(s,cs(n,r,i+1)),o)),Ni(r,null,i,o),new T(o)}function cs(t,e,n){let r=[];if(Ni(null,t,n,r),t.depth>n){let i=zl(t,e,n+1);br(yr(i,cs(t,e,n+1)),r)}return Ni(e,null,n,r),new T(r)}function Hb(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let u=n-1;u>=0;u--)i=e.node(u).copy(T.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Ji{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let u=0;u<e;u++)i+=r.child(u).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return ie.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let o=r;r=i,i=o}let u=r.marks;for(var s=0;s<u.length;s++)u[s].type.spec.inclusive===!1&&(!i||!u[s].isInSet(i.marks))&&(u=u[s--].removeFromSet(u));return u}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var u=0;u<r.length;u++)r[u].type.spec.inclusive===!1&&(!i||!r[u].isInSet(i.marks))&&(r=r[u--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new fs(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,u=n;for(let s=e;;){let{index:o,offset:l}=s.content.findIndex(u),a=u-l;if(r.push(s,o,i+l),!a||(s=s.child(o),s.isText))break;u=a-1,i+=l+1}return new Ji(n,r,u)}static resolveCached(e,n){let r=Df.get(e);if(r)for(let u=0;u<r.elts.length;u++){let s=r.elts[u];if(s.pos==n)return s}else Df.set(e,r=new qb);let i=r.elts[r.i]=Ji.resolve(e,n);return r.i=(r.i+1)%jb,i}}class qb{constructor(){this.elts=[],this.i=0}}const jb=12,Df=new WeakMap;class fs{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Wb=Object.create(null);class Zt{constructor(e,n,r,i=ie.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||T.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&ls(this.attrs,n||e.defaultAttrs||Wb)&&ie.sameSet(this.marks,r||ie.none)}copy(e=null){return e==this.content?this:new Zt(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Zt(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return z.empty;let i=this.resolve(e),u=this.resolve(n),s=r?0:i.sharedDepth(n),o=i.start(s),a=i.node(s).content.cut(i.pos-o,u.pos-o);return new z(a,i.depth-s,u.depth-s)}replace(e,n,r){return Ub(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return Ji.resolveCached(this,e)}resolveNoCache(e){return Ji.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,u=>(r.isInSet(u.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),W0(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=T.empty,i=0,u=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,u),o=s&&s.matchFragment(this.content,n);if(!o||!o.validEnd)return!1;for(let l=i;l<u;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let u=this.contentMatchAt(e).matchType(r),s=u&&u.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=ie.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!ie.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=T.fromJSON(e,n.content),u=e.nodeType(n.type).create(n.attrs,i,r);return u.type.checkAttrs(u.attrs),u}}Zt.prototype.text=void 0;class ds extends Zt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):W0(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ds(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ds(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function W0(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Er{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Gb(e,n);if(r.next==null)return Er.empty;let i=G0(r);r.next&&r.err("Unexpected trailing text");let u=ey(Qb(i));return ty(u,r),u}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let u=n;i&&u<r;u++)i=i.matchType(e.child(u).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function u(s,o){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return T.from(o.map(a=>a.createAndFill()));for(let a=0;a<s.next.length;a++){let{type:c,next:f}=s.next[a];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(f)==-1){i.push(f);let d=u(f,o.concat(c));if(d)return d}}return null}return u(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),u=i.match;if(u.matchType(e)){let s=[];for(let o=i;o.type;o=o.via)s.push(o.type);return s.reverse()}for(let s=0;s<u.next.length;s++){let{type:o,next:l}=u.next[s];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in n)&&(!i.type||l.validEnd)&&(r.push({match:o.contentMatch,type:o,via:i}),n[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let u=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)u+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return u}).join(`
19
- `)}}Er.empty=new Er(!0);class Gb{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function G0(t){let e=[];do e.push(Kb(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Kb(t){let e=[];do e.push(Jb(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Jb(t){let e=Yb(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=Zb(t,e);else break;return e}function Af(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Zb(t,e){let n=Af(t),r=n;return t.eat(",")&&(t.next!="}"?r=Af(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function Xb(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let u in n){let s=n[u];s.isInGroup(e)&&i.push(s)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function Yb(t){if(t.eat("(")){let e=G0(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=Xb(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Qb(t){let e=[[]];return i(u(t,0),n()),e;function n(){return e.push([])-1}function r(s,o,l){let a={term:l,to:o};return e[s].push(a),a}function i(s,o){s.forEach(l=>l.to=o)}function u(s,o){if(s.type=="choice")return s.exprs.reduce((l,a)=>l.concat(u(a,o)),[]);if(s.type=="seq")for(let l=0;;l++){let a=u(s.exprs[l],o);if(l==s.exprs.length-1)return a;i(a,o=n())}else if(s.type=="star"){let l=n();return r(o,l),i(u(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return i(u(s.expr,o),l),i(u(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(o)].concat(u(s.expr,o));if(s.type=="range"){let l=o;for(let a=0;a<s.min;a++){let c=n();i(u(s.expr,l),c),l=c}if(s.max==-1)i(u(s.expr,l),l);else for(let a=s.min;a<s.max;a++){let c=n();r(l,c),i(u(s.expr,l),c),l=c}return[r(l)]}else{if(s.type=="name")return[r(o,void 0,s.value)];throw new Error("Unknown expr type")}}}}function K0(t,e){return e-t}function _f(t,e){let n=[];return r(e),n.sort(K0);function r(i){let u=t[i];if(u.length==1&&!u[0].term)return r(u[0].to);n.push(i);for(let s=0;s<u.length;s++){let{term:o,to:l}=u[s];!o&&n.indexOf(l)==-1&&r(l)}}}function ey(t){let e=Object.create(null);return n(_f(t,0));function n(r){let i=[];r.forEach(s=>{t[s].forEach(({term:o,to:l})=>{if(!o)return;let a;for(let c=0;c<i.length;c++)i[c][0]==o&&(a=i[c][1]);_f(t,l).forEach(c=>{a||i.push([o,a=[]]),a.indexOf(c)==-1&&a.push(c)})})});let u=e[r.join(",")]=new Er(r.indexOf(t.length-1)>-1);for(let s=0;s<i.length;s++){let o=i[s][1].sort(K0);u.next.push({type:i[s][0],next:e[o.join(",")]||n(o)})}return u}}function ty(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],u=!i.validEnd,s=[];for(let o=0;o<i.next.length;o++){let{type:l,next:a}=i.next[o];s.push(l.name),u&&!(l.isText||l.hasRequiredAttrs())&&(u=!1),r.indexOf(a)==-1&&r.push(a)}u&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function J0(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Z0(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let u=t[r];if(u.hasDefault)i=u.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function X0(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in t){let u=t[i];u.validate&&u.validate(e[i])}}function Y0(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new ry(t,r,e[r]);return n}let Tf=class Q0{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Y0(e,r.attrs),this.defaultAttrs=J0(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Er.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Z0(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Zt(this,this.computeAttrs(e),T.from(n),ie.setFrom(r))}createChecked(e=null,n,r){return n=T.from(n),this.checkContent(n),new Zt(this,this.computeAttrs(e),n,ie.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=T.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let i=this.contentMatch.matchFragment(n),u=i&&i.fillBefore(T.empty,!0);return u?new Zt(this,e,n.append(u),ie.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){X0(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:ie.none:e}static compile(e,n){let r=Object.create(null);e.forEach((u,s)=>r[u]=new Q0(u,n,s));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let u in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function ny(t,e,n){let r=n.split("|");return i=>{let u=i===null?"null":typeof i;if(r.indexOf(u)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${u}`)}}class ry{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?ny(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class co{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=Y0(e,i.attrs),this.excluded=null;let u=J0(this.attrs);this.instance=u?new ie(this,u):null}create(e=null){return!e&&this.instance?this.instance:new ie(this,Z0(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((u,s)=>r[u]=new co(u,i++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){X0(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}let j8=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=Fe.from(e.nodes),n.marks=Fe.from(e.marks||{}),this.nodes=Tf.compile(this.spec.nodes,this),this.marks=co.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let u=this.nodes[i],s=u.spec.content||"",o=u.spec.marks;if(u.contentMatch=r[s]||(r[s]=Er.parse(s,this.nodes)),u.inlineContent=u.contentMatch.inlineContent,u.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!u.isInline||!u.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=u}u.markSet=o=="_"?null:o?Nf(this,o.split(" ")):o==""||!u.inlineContent?[]:null}for(let i in this.marks){let u=this.marks[i],s=u.spec.excludes;u.excluded=s==null?[u]:s==""?[]:Nf(this,s.split(" "))}this.nodeFromJSON=i=>Zt.fromJSON(this,i),this.markFromJSON=i=>ie.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Tf){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new ds(r,r.defaultAttrs,e,ie.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function Nf(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],u=t.marks[i],s=u;if(u)n.push(u);else for(let o in t.marks){let l=t.marks[o];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function iy(t){return t.tag!=null}function uy(t){return t.style!=null}class Zi{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(iy(i))this.tags.push(i);else if(uy(i)){let u=/[^=]*/.exec(i.style)[0];r.indexOf(u)<0&&r.push(u),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let u=e.nodes[i.node];return u.contentMatch.matchType(u)})}parse(e,n={}){let r=new vf(this,n,!1);return r.addAll(e,ie.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new vf(this,n,!0);return r.addAll(e,ie.none,n.from,n.to),z.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let u=this.tags[i];if(ly(e,u.tag)&&(u.namespace===void 0||e.namespaceURI==u.namespace)&&(!u.context||n.matchesContext(u.context))){if(u.getAttrs){let s=u.getAttrs(e);if(s===!1)continue;u.attrs=s||void 0}return u}}}matchStyle(e,n,r,i){for(let u=i?this.styles.indexOf(i)+1:0;u<this.styles.length;u++){let s=this.styles[u],o=s.style;if(!(o.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||o.length>e.length&&(o.charCodeAt(e.length)!=61||o.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function r(i){let u=i.priority==null?50:i.priority,s=0;for(;s<n.length;s++){let o=n[s];if((o.priority==null?50:o.priority)<u)break}n.splice(s,0,i)}for(let i in e.marks){let u=e.marks[i].spec.parseDOM;u&&u.forEach(s=>{r(s=Mf(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in e.nodes){let u=e.nodes[i].spec.parseDOM;u&&u.forEach(s=>{r(s=Mf(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Zi(e,Zi.schemaRules(e)))}}const ep={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},sy={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},tp={ol:!0,ul:!0},Xi=1,$l=2,Oi=4;function Of(t,e,n){return e!=null?(e?Xi:0)|(e==="full"?$l:0):t&&t.whitespace=="pre"?Xi|$l:n&~Oi}class Tu{constructor(e,n,r,i,u,s){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=ie.none,this.match=u||(s&Oi?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(T.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Xi)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let u=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=u.withText(u.text.slice(0,u.text.length-i[0].length))}}let n=T.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(T.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ep.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class vf{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,u,s=Of(null,n.preserveWhitespace,0)|(r?Oi:0);i?u=new Tu(i.type,i.attrs,ie.none,!0,n.topMatch||i.type.contentMatch,s):r?u=new Tu(null,null,ie.none,!0,null,s):u=new Tu(e.schema.topNodeType,null,ie.none,!0,null,s),this.nodes=[u],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,u=i.options&$l?"full":this.localPreserveWS||(i.options&Xi)>0,{schema:s}=this.parser;if(u==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(u)if(u==="full")r=r.replace(/\r\n?/g,`
20
- `);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let o=r.split(/\r?\n|\r/);for(let l=0;l<o.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),o[l]&&this.insertNode(s.text(o[l]),n,!/\S/.test(o[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=i.content[i.content.length-1],l=e.previousSibling;(!o||l&&l.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,u=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),o;tp.hasOwnProperty(s)&&this.parser.normalizeLists&&oy(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));e:if(l?l.ignore:sy.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let a,c=this.needsBlock;if(ep.hasOwnProperty(s))u.content.length&&u.content[0].isInline&&this.open&&(this.open--,u=this.top),a=!0,u.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let f=l&&l.skip?n:this.readStyles(e,n);f&&this.addAll(e,f),a&&this.sync(u),this.needsBlock=c}else{let a=this.readStyles(e,n);a&&this.addElementByRule(e,l,a,l.consuming===!1?o:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
21
- `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let u=this.parser.matchedStyles[i],s=r.getPropertyValue(u);if(s)for(let o=void 0;;){let l=this.parser.matchStyle(u,s,this,o);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(a=>!l.clearMark(a)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)o=l;else break}}return n}addElementByRule(e,n,r,i){let u,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(s,n.attrs||null,r,n.preserveWhitespace);l&&(u=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let o=this.top;if(s&&s.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}u&&this.sync(o)&&this.open--}addAll(e,n,r,i){let u=r||0;for(let s=r?e.childNodes[r]:e.firstChild,o=i==null?null:e.childNodes[i];s!=o;s=s.nextSibling,++u)this.findAtPoint(e,u),this.addDOM(s,n);this.findAtPoint(e,u)}findPlace(e,n,r){let i,u;for(let s=this.open,o=0;s>=0;s--){let l=this.nodes[s],a=l.findWrapping(e);if(a&&(!i||i.length>a.length+o)&&(i=a,u=l,!a.length))break;if(l.solid){if(r)break;o+=2}}if(!i)return null;this.sync(u);for(let s=0;s<i.length;s++)n=this.enterInner(i[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let u=this.textblockFromContext();u&&(n=this.enterInner(u,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let u=this.top;u.match&&(u.match=u.match.matchType(e.type));let s=ie.none;for(let o of i.concat(e.marks))(u.type?u.type.allowsMarkType(o.type):Ff(o.type,e.type))&&(s=o.addToSet(s));return u.content.push(e.mark(s)),!0}return!1}enter(e,n,r,i){let u=this.findPlace(e.create(n),r,!1);return u&&(u=this.enterInner(e,n,r,!0,i)),u}enterInner(e,n,r,i=!1,u){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let o=Of(e,u,s.options);s.options&Oi&&s.content.length==0&&(o|=Oi);let l=ie.none;return r=r.filter(a=>(s.type?s.type.allowsMarkType(a.type):Ff(a.type,e))?(l=a.addToSet(l),!1):!0),this.nodes.push(new Tu(e,n,l,i,null,o)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Xi)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),u=-(r?r.depth+1:0)+(i?0:1),s=(o,l)=>{for(;o>=0;o--){let a=n[o];if(a==""){if(o==n.length-1||o==0)continue;for(;l>=u;l--)if(s(o-1,l))return!0;return!1}else{let c=l>0||l==0&&i?this.nodes[l].type:r&&l>=u?r.node(l-u).type:null;if(!c||c.name!=a&&!c.isInGroup(a))return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function oy(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&tp.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function ly(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Mf(t){let e={};for(let n in t)e[n]=t[n];return e}function Ff(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let u=[],s=o=>{u.push(o);for(let l=0;l<o.edgeCount;l++){let{type:a,next:c}=o.edge(l);if(a==e||u.indexOf(c)<0&&s(c))return!0}};if(s(i.contentMatch))return!0}}class ri{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Ho(n).createDocumentFragment());let i=r,u=[];return e.forEach(s=>{if(u.length||s.marks.length){let o=0,l=0;for(;o<u.length&&l<s.marks.length;){let a=s.marks[l];if(!this.marks[a.type.name]){l++;continue}if(!a.eq(u[o][0])||a.type.spec.spanning===!1)break;o++,l++}for(;o<u.length;)i=u.pop()[1];for(;l<s.marks.length;){let a=s.marks[l++],c=this.serializeMark(a,s.isInline,n);c&&(u.push([a,i]),i.appendChild(c.dom),i=c.contentDOM||c.dom)}}i.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:i}=ju(Ho(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let u=this.serializeMark(e.marks[i],e.isInline,n);u&&((u.contentDOM||u.dom).appendChild(r),r=u.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&ju(Ho(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return ju(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ri(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=If(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return If(e.marks)}}function If(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Ho(t){return t.document||window.document}const Rf=new WeakMap;function ay(t){let e=Rf.get(t);return e===void 0&&Rf.set(t,e=cy(t)),e}function cy(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function ju(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let i=e[0],u;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(u=ay(r))&&u.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let o,l=n?t.createElementNS(n,i):t.createElement(i),a=e[1],c=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){c=2;for(let f in a)if(a[f]!=null){let d=f.indexOf(" ");d>0?l.setAttributeNS(f.slice(0,d),f.slice(d+1),a[f]):f=="style"&&l.style?l.style.cssText=a[f]:l.setAttribute(f,a[f])}}for(let f=c;f<e.length;f++){let d=e[f];if(d===0){if(f<e.length-1||f>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:p}=ju(t,d,n,r);if(l.appendChild(h),p){if(o)throw new RangeError("Multiple content holes");o=p}}}return{dom:l,contentDOM:o}}const np=65535,rp=Math.pow(2,16);function fy(t,e){return t+e*rp}function Pf(t){return t&np}function dy(t){return(t-(t&np))/rp}const ip=1,up=2,Wu=4,sp=8;class Vl{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&sp)>0}get deletedBefore(){return(this.delInfo&(ip|Wu))>0}get deletedAfter(){return(this.delInfo&(up|Wu))>0}get deletedAcross(){return(this.delInfo&Wu)>0}}class at{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&at.empty)return at.empty}recover(e){let n=0,r=Pf(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+dy(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,u=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?i:0);if(l>e)break;let a=this.ranges[o+u],c=this.ranges[o+s],f=l+a;if(e<=f){let d=a?e==l?-1:e==f?1:n:n,h=l+i+(d<0?0:c);if(r)return h;let p=e==(n<0?l:f)?null:fy(o/3,e-l),m=e==l?up:e==f?ip:Wu;return(n<0?e!=l:e!=f)&&(m|=sp),new Vl(h,m,p)}i+=c-a}return r?e+i:new Vl(e+i,0,null)}touches(e,n){let r=0,i=Pf(n),u=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?r:0);if(l>e)break;let a=this.ranges[o+u],c=l+a;if(e<=c&&o==i*3)return!0;r+=this.ranges[o+s]-a}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,u=0;i<this.ranges.length;i+=3){let s=this.ranges[i],o=s-(this.inverted?u:0),l=s+(this.inverted?0:u),a=this.ranges[i+n],c=this.ranges[i+r];e(o,o+a,l,l+c),u+=c-a}}invert(){return new at(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?at.empty:new at(e<0?[0,-e,0]:[0,0,e])}}at.empty=new at([]);class Yi{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new Yi(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new Yi;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let u=this.from;u<this.to;u++){let s=this._maps[u],o=s.mapResult(e,n);if(o.recover!=null){let l=this.getMirror(u);if(l!=null&&l>u&&l<this.to){u=l,e=this._maps[l].recover(o.recover);continue}}i|=o.delInfo,e=o.pos}return r?e:new Vl(e,i,null)}}const qo=Object.create(null);class We{getMap(){return at.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=qo[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in qo)throw new RangeError("Duplicate use of step JSON ID "+e);return qo[e]=n,n.prototype.jsonID=e,n}}class Ee{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Ee(e,null)}static fail(e){return new Ee(null,e)}static fromReplace(e,n,r,i){try{return Ee.ok(e.replace(n,r,i))}catch(u){if(u instanceof as)return Ee.fail(u.message);throw u}}}function La(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let u=t.child(i);u.content.size&&(u=u.copy(La(u.content,e,u))),u.isInline&&(u=e(u,n,i)),r.push(u)}return T.fromArray(r)}class Bn extends We{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),u=new z(La(n.content,(s,o)=>!s.isAtom||!o.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return Ee.fromReplace(e,this.from,this.to,u)}invert(){return new Kt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Bn(n.pos,r.pos,this.mark)}merge(e){return e instanceof Bn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Bn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Bn(n.from,n.to,e.markFromJSON(n.mark))}}We.jsonID("addMark",Bn);class Kt extends We{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new z(La(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return Ee.fromReplace(e,this.from,this.to,r)}invert(){return new Bn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Kt(n.pos,r.pos,this.mark)}merge(e){return e instanceof Kt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Kt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Kt(n.from,n.to,e.markFromJSON(n.mark))}}We.jsonID("removeMark",Kt);class zn extends We{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ee.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Ee.fromReplace(e,this.pos,this.pos+1,new z(T.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new zn(this.pos,n.marks[i]);return new zn(this.pos,this.mark)}}return new Sr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new zn(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new zn(n.pos,e.markFromJSON(n.mark))}}We.jsonID("addNodeMark",zn);class Sr extends We{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ee.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Ee.fromReplace(e,this.pos,this.pos+1,new z(T.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new zn(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Sr(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Sr(n.pos,e.markFromJSON(n.mark))}}We.jsonID("removeNodeMark",Sr);class ke extends We{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&Ul(e,this.from,this.to)?Ee.fail("Structure replace would overwrite content"):Ee.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new at([this.from,this.to-this.from,this.slice.size])}invert(e){return new ke(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&ke.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new ke(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof ke)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?z.empty:new z(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ke(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?z.empty:new z(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ke(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ke(n.from,n.to,z.fromJSON(e,n.slice),!!n.structure)}}ke.MAP_BIAS=1;We.jsonID("replace",ke);class $e extends We{constructor(e,n,r,i,u,s,o=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=u,this.insert=s,this.structure=o}apply(e){if(this.structure&&(Ul(e,this.from,this.gapFrom)||Ul(e,this.gapTo,this.to)))return Ee.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Ee.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Ee.fromReplace(e,this.from,this.to,r):Ee.fail("Content does not fit in gap")}getMap(){return new at([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new $e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),u=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||u>r.pos?null:new $e(n.pos,r.pos,i,u,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new $e(n.from,n.to,n.gapFrom,n.gapTo,z.fromJSON(e,n.slice),n.insert,!!n.structure)}}We.jsonID("replaceAround",$e);function Ul(t,e,n){let r=t.resolve(e),i=n-e,u=r.depth;for(;i>0&&u>0&&r.indexAfter(u)==r.node(u).childCount;)u--,i--;if(i>0){let s=r.node(u).maybeChild(r.indexAfter(u));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function hy(t,e,n,r){let i=[],u=[],s,o;t.doc.nodesBetween(e,n,(l,a,c)=>{if(!l.isInline)return;let f=l.marks;if(!r.isInSet(f)&&c.type.allowsMarkType(r.type)){let d=Math.max(a,e),h=Math.min(a+l.nodeSize,n),p=r.addToSet(f);for(let m=0;m<f.length;m++)f[m].isInSet(p)||(s&&s.to==d&&s.mark.eq(f[m])?s.to=h:i.push(s=new Kt(d,h,f[m])));o&&o.to==d?o.to=h:u.push(o=new Bn(d,h,r))}}),i.forEach(l=>t.step(l)),u.forEach(l=>t.step(l))}function py(t,e,n,r){let i=[],u=0;t.doc.nodesBetween(e,n,(s,o)=>{if(!s.isInline)return;u++;let l=null;if(r instanceof co){let a=s.marks,c;for(;c=r.isInSet(a);)(l||(l=[])).push(c),a=c.removeFromSet(a)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let a=Math.min(o+s.nodeSize,n);for(let c=0;c<l.length;c++){let f=l[c],d;for(let h=0;h<i.length;h++){let p=i[h];p.step==u-1&&f.eq(i[h].style)&&(d=p)}d?(d.to=a,d.step=u):i.push({style:f,from:Math.max(o,e),to:a,step:u})}}}),i.forEach(s=>t.step(new Kt(s.from,s.to,s.style)))}function Ba(t,e,n,r=n.contentMatch,i=!0){let u=t.doc.nodeAt(e),s=[],o=e+1;for(let l=0;l<u.childCount;l++){let a=u.child(l),c=o+a.nodeSize,f=r.matchType(a.type);if(!f)s.push(new ke(o,c,z.empty));else{r=f;for(let d=0;d<a.marks.length;d++)n.allowsMarkType(a.marks[d].type)||t.step(new Kt(o,c,a.marks[d]));if(i&&a.isText&&n.whitespace!="pre"){let d,h=/\r?\n|\r/g,p;for(;d=h.exec(a.text);)p||(p=new z(T.from(n.schema.text(" ",n.allowedMarks(a.marks))),0,0)),s.push(new ke(o+d.index,o+d.index+d[0].length,p))}}o=c}if(!r.validEnd){let l=r.fillBefore(T.empty,!0);t.replace(o,o,new z(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function my(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function du(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,u=0;;--r){let s=t.$from.node(r),o=t.$from.index(r)+i,l=t.$to.indexAfter(r)-u;if(r<t.depth&&s.canReplace(o,l,n))return r;if(r==0||s.type.spec.isolating||!my(s,o,l))break;o&&(i=1),l<s.childCount&&(u=1)}return null}function gy(t,e,n){let{$from:r,$to:i,depth:u}=e,s=r.before(u+1),o=i.after(u+1),l=s,a=o,c=T.empty,f=0;for(let p=u,m=!1;p>n;p--)m||r.index(p)>0?(m=!0,c=T.from(r.node(p).copy(c)),f++):l--;let d=T.empty,h=0;for(let p=u,m=!1;p>n;p--)m||i.after(p+1)<i.end(p)?(m=!0,d=T.from(i.node(p).copy(d)),h++):a++;t.step(new $e(l,a,s,o,new z(c.append(d),f,h),c.size-f,!0))}function op(t,e,n=null,r=t){let i=by(t,e),u=i&&yy(r,e);return u?i.map(Lf).concat({type:e,attrs:n}).concat(u.map(Lf)):null}function Lf(t){return{type:t,attrs:null}}function by(t,e){let{parent:n,startIndex:r,endIndex:i}=t,u=n.contentMatchAt(r).findWrapping(e);if(!u)return null;let s=u.length?u[0]:e;return n.canReplaceWith(r,i,s)?u:null}function yy(t,e){let{parent:n,startIndex:r,endIndex:i}=t,u=n.child(r),s=e.contentMatch.findWrapping(u.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let a=r;l&&a<i;a++)l=l.matchType(n.child(a).type);return!l||!l.validEnd?null:s}function xy(t,e,n){let r=T.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let o=n[s].type.contentMatch.matchFragment(r);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=T.from(n[s].type.create(n[s].attrs,r))}let i=e.start,u=e.end;t.step(new $e(i,u,i,u,new z(r,0,0),n.length,!0))}function Cy(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let u=t.steps.length;t.doc.nodesBetween(e,n,(s,o)=>{let l=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,l)&&wy(t.doc,t.mapping.slice(u).map(o),r)){let a=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?a=!1:!h&&p&&(a=!0)}a===!1&&ap(t,s,o,u),Ba(t,t.mapping.slice(u).map(o,1),r,void 0,a===null);let c=t.mapping.slice(u),f=c.map(o,1),d=c.map(o+s.nodeSize,1);return t.step(new $e(f,d,f+1,d-1,new z(T.from(r.create(l,null,s.marks)),0,0),1,!0)),a===!0&&lp(t,s,o,u),!1}})}function lp(t,e,n,r){e.forEach((i,u)=>{if(i.isText){let s,o=/\r?\n|\r/g;for(;s=o.exec(i.text);){let l=t.mapping.slice(r).map(n+1+u+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function ap(t,e,n,r){e.forEach((i,u)=>{if(i.type==i.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+u);t.replaceWith(s,s+1,e.type.schema.text(`
22
- `))}})}function wy(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function Ey(t,e,n,r,i){let u=t.doc.nodeAt(e);if(!u)throw new RangeError("No node at given position");n||(n=u.type);let s=n.create(r,null,i||u.marks);if(u.isLeaf)return t.replaceWith(e,e+u.nodeSize,s);if(!n.validContent(u.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new $e(e,e+u.nodeSize,e+1,e+u.nodeSize-1,new z(T.from(s),0,0),1,!0))}function vi(t,e,n=1,r){let i=t.resolve(e),u=i.depth-n,s=r&&r[r.length-1]||i.parent;if(u<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let a=i.depth-1,c=n-2;a>u;a--,c--){let f=i.node(a),d=i.index(a);if(f.type.spec.isolating)return!1;let h=f.content.cutByIndex(d,f.childCount),p=r&&r[c+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[c]||f;if(!f.canReplace(d+1,f.childCount)||!m.type.validContent(h))return!1}let o=i.indexAfter(u),l=r&&r[0];return i.node(u).canReplaceWith(o,o,l?l.type:i.node(u+1).type)}function Sy(t,e,n=1,r){let i=t.doc.resolve(e),u=T.empty,s=T.empty;for(let o=i.depth,l=i.depth-n,a=n-1;o>l;o--,a--){u=T.from(i.node(o).copy(u));let c=r&&r[a];s=T.from(c?c.type.create(c.attrs,s):i.node(o).copy(s))}t.step(new ke(e,e,new z(u.append(s),n,n),!0))}function hu(t,e){let n=t.resolve(e),r=n.index();return cp(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function ky(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i<e.childCount;i++){let u=e.child(i),s=u.type==r?t.type.schema.nodes.text:u.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(u.marks))return!1}return n.validEnd}function cp(t,e){return!!(t&&e&&!t.isLeaf&&ky(t,e))}function fp(t,e,n=-1){let r=t.resolve(e);for(let i=r.depth;;i--){let u,s,o=r.index(i);if(i==r.depth?(u=r.nodeBefore,s=r.nodeAfter):n>0?(u=r.node(i+1),o++,s=r.node(i).maybeChild(o)):(u=r.node(i).maybeChild(o-1),s=r.node(i+1)),u&&!u.isTextblock&&cp(u,s)&&r.node(i).canReplace(o,o+1))return e;if(i==0)break;e=n<0?r.before(i):r.after(i)}}function Dy(t,e,n){let r=null,{linebreakReplacement:i}=t.doc.type.schema,u=t.doc.resolve(e-n),s=u.node().type;if(i&&s.inlineContent){let c=s.whitespace=="pre",f=!!s.contentMatch.matchType(i);c&&!f?r=!1:!c&&f&&(r=!0)}let o=t.steps.length;if(r===!1){let c=t.doc.resolve(e+n);ap(t,c.node(),c.before(),o)}s.inlineContent&&Ba(t,e+n-1,s,u.node().contentMatchAt(u.index()),r==null);let l=t.mapping.slice(o),a=l.map(e-n);if(t.step(new ke(a,l.map(e+n,-1),z.empty,!0)),r===!0){let c=t.doc.resolve(a);lp(t,c.node(),c.before(),t.steps.length)}return t}function Ay(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let u=r.index(i);if(r.node(i).canReplaceWith(u,u,n))return r.before(i+1);if(u>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let u=r.indexAfter(i);if(r.node(i).canReplaceWith(u,u,n))return r.after(i+1);if(u<r.node(i).childCount)return null}return null}function dp(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let u=0;u<n.openStart;u++)i=i.firstChild.content;for(let u=1;u<=(n.openStart==0&&n.size?2:1);u++)for(let s=r.depth;s>=0;s--){let o=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,l=r.index(s)+(o>0?1:0),a=r.node(s),c=!1;if(u==1)c=a.canReplace(l,l,i);else{let f=a.contentMatchAt(l).findWrapping(i.firstChild.type);c=f&&a.canReplaceWith(l,l,f[0])}if(c)return o==0?r.pos:o<0?r.before(s+1):r.after(s+1)}return null}function fo(t,e,n=e,r=z.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),u=t.resolve(n);return hp(i,u,r)?new ke(e,n,r):new _y(i,u,r).fit()}function hp(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class _y{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=T.empty;for(let i=0;i<=e.depth;i++){let u=e.node(i);this.frontier.push({type:u.type,match:u.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=T.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let a=this.findFittable();a?this.placeNodes(a):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let u=this.placed,s=r.depth,o=i.depth;for(;s&&o&&u.childCount==1;)u=u.firstChild.content,s--,o--;let l=new z(u,s,o);return e>-1?new $e(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new ke(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let u=n.firstChild;if(n.childCount>1&&(i=0),u.type.spec.isolating&&i<=r){e=r;break}n=u.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,u=null;r?(u=jo(this.unplaced.content,r-1).firstChild,i=u.content):i=this.unplaced.content;let s=i.firstChild;for(let o=this.depth;o>=0;o--){let{type:l,match:a}=this.frontier[o],c,f=null;if(n==1&&(s?a.matchType(s.type)||(f=a.fillBefore(T.from(s),!1)):u&&l.compatibleContent(u.type)))return{sliceDepth:r,frontierDepth:o,parent:u,inject:f};if(n==2&&s&&(c=a.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:o,parent:u,wrap:c};if(u&&a.matchType(u.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=jo(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new z(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=jo(e,n);if(i.childCount<=1&&n>0){let u=e.size-n<=n+i.size;this.unplaced=new z(bi(e,n-1,1),n-1,u?n-1:r)}else this.unplaced=new z(bi(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:u}){for(;this.depth>n;)this.closeFrontierNode();if(u)for(let m=0;m<u.length;m++)this.openFrontierNode(u[m]);let s=this.unplaced,o=r?r.content:s.content,l=s.openStart-e,a=0,c=[],{match:f,type:d}=this.frontier[n];if(i){for(let m=0;m<i.childCount;m++)c.push(i.child(m));f=f.matchFragment(i)}let h=o.size+e-(s.content.size-s.openEnd);for(;a<o.childCount;){let m=o.child(a),b=f.matchType(m.type);if(!b)break;a++,(a>1||l==0||m.content.size)&&(f=b,c.push(pp(m.mark(d.allowedMarks(m.marks)),a==1?l:0,a==o.childCount?h:-1)))}let p=a==o.childCount;p||(h=-1),this.placed=yi(this.placed,n,T.from(c)),this.frontier[n].match=f,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,b=o;m<h;m++){let x=b.lastChild;this.frontier.push({type:x.type,match:x.contentMatchAt(x.childCount)}),b=x.content}this.unplaced=p?e==0?z.empty:new z(bi(s.content,e-1,1),e-1,h<0?s.openEnd:e-1):new z(bi(s.content,e,a),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Wo(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],u=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=Wo(e,n,i,r,u);if(s){for(let o=n-1;o>=0;o--){let{match:l,type:a}=this.frontier[o],c=Wo(e,o,a,l,!0);if(!c||c.childCount)continue e}return{depth:n,fit:s,move:u?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=yi(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),u=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,u)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=yi(this.placed,this.depth,T.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(T.empty,!0);n.childCount&&(this.placed=yi(this.placed,this.frontier.length,n))}}function bi(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(bi(t.firstChild.content,e-1,n)))}function yi(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(yi(t.lastChild.content,e-1,n)))}function jo(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function pp(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,pp(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(T.empty,!0)))),t.copy(r)}function Wo(t,e,n,r,i){let u=t.node(e),s=i?t.indexAfter(e):t.index(e);if(s==u.childCount&&!n.compatibleContent(u.type))return null;let o=r.fillBefore(u.content,!0,s);return o&&!Ty(n,u.content,s)?o:null}function Ty(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function Ny(t){return t.spec.defining||t.spec.definingForContent}function Oy(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let i=t.doc.resolve(e),u=t.doc.resolve(n);if(hp(i,u,r))return t.step(new ke(e,n,r));let s=gp(i,u);s[s.length-1]==0&&s.pop();let o=-(i.depth+1);s.unshift(o);for(let d=i.depth,h=i.pos-1;d>0;d--,h--){let p=i.node(d).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(d)>-1?o=d:i.before(d)==h&&s.splice(1,0,-d)}let l=s.indexOf(o),a=[],c=r.openStart;for(let d=r.content,h=0;;h++){let p=d.firstChild;if(a.push(p),h==r.openStart)break;d=p.content}for(let d=c-1;d>=0;d--){let h=a[d],p=Ny(h.type);if(p&&!h.sameMarkup(i.node(Math.abs(o)-1)))c=d;else if(p||!h.type.isTextblock)break}for(let d=r.openStart;d>=0;d--){let h=(d+c+1)%(r.openStart+1),p=a[h];if(p)for(let m=0;m<s.length;m++){let b=s[(m+l)%s.length],x=!0;b<0&&(x=!1,b=-b);let w=i.node(b-1),E=i.index(b-1);if(w.canReplaceWith(E,E,p.type,p.marks))return t.replace(i.before(b),x?u.after(b):n,new z(mp(r.content,0,r.openStart,h),h,r.openEnd))}}let f=t.steps.length;for(let d=s.length-1;d>=0&&(t.replace(e,n,r),!(t.steps.length>f));d--){let h=s[d];h<0||(e=i.before(h),n=u.after(h))}}function mp(t,e,n,r,i){if(e<n){let u=t.firstChild;t=t.replaceChild(0,u.copy(mp(u.content,e+1,n,r,u)))}if(e>r){let u=i.contentMatchAt(0),s=u.fillBefore(t).append(t);t=s.append(u.matchFragment(s).fillBefore(T.empty,!0))}return t}function vy(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=Ay(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new z(T.from(r),0,0))}function My(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let s=r.sharedDepth(n),o=!1;for(let l=r.depth;l>s;l--)r.node(l).type.spec.isolating&&(o=!0);for(let l=i.depth;l>s;l--)i.node(l).type.spec.isolating&&(o=!0);if(!o){for(let l=r.depth;l>0&&e==r.start(l);l--)e=r.before(l);for(let l=i.depth;l>0&&n==i.start(l);l--)n=i.before(l);r=t.doc.resolve(e),i=t.doc.resolve(n)}}let u=gp(r,i);for(let s=0;s<u.length;s++){let o=u[s],l=s==u.length-1;if(l&&o==0||r.node(o).type.contentMatch.validEnd)return t.delete(r.start(o),i.end(o));if(o>0&&(l||r.node(o-1).canReplace(r.index(o-1),i.indexAfter(o-1))))return t.delete(r.before(o),i.after(o))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&i.end(s)-n!=i.depth-s&&r.start(s-1)==i.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),i.index(s-1)))return t.delete(r.before(s),n);t.delete(e,n)}function gp(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let u=t.start(i);if(u<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(u==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==u-1)&&n.push(i)}return n}class jr extends We{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ee.fail("No node at attribute step's position");let r=Object.create(null);for(let u in n.attrs)r[u]=n.attrs[u];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Ee.fromReplace(e,this.pos,this.pos+1,new z(T.from(i),0,n.isLeaf?0:1))}getMap(){return at.empty}invert(e){return new jr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new jr(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new jr(n.pos,n.attr,n.value)}}We.jsonID("attr",jr);class Qi extends We{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Ee.ok(r)}getMap(){return at.empty}invert(e){return new Qi(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Qi(n.attr,n.value)}}We.jsonID("docAttr",Qi);let Yr=class extends Error{};Yr=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};Yr.prototype=Object.create(Error.prototype);Yr.prototype.constructor=Yr;Yr.prototype.name="TransformError";class Fy{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Yi}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Yr(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];r&&(e=i.map(e,1),n=i.map(n,-1)),i.forEach((u,s,o,l)=>{e=Math.min(e,o),n=Math.max(n,l)})}return e==1e9?null:{from:e,to:n}}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=z.empty){let i=fo(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new z(T.from(r),0,0))}delete(e,n){return this.replace(e,n,z.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return Oy(this,e,n,r),this}replaceRangeWith(e,n,r){return vy(this,e,n,r),this}deleteRange(e,n){return My(this,e,n),this}lift(e,n){return gy(this,e,n),this}join(e,n=1){return Dy(this,e,n),this}wrap(e,n){return xy(this,e,n),this}setBlockType(e,n=e,r,i=null){return Cy(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return Ey(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new jr(e,n,r)),this}setDocAttribute(e,n){return this.step(new Qi(e,n)),this}addNodeMark(e,n){return this.step(new zn(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof ie)n.isInSet(r.marks)&&this.step(new Sr(e,n));else{let i=r.marks,u,s=[];for(;u=n.isInSet(i);)s.push(new Sr(e,u)),i=u.removeFromSet(i);for(let o=s.length-1;o>=0;o--)this.step(s[o])}return this}split(e,n=1,r){return Sy(this,e,n,r),this}addMark(e,n,r){return hy(this,e,n,r),this}removeMark(e,n,r){return py(this,e,n,r),this}clearIncompatible(e,n,r){return Ba(this,e,n,r),this}}const Go=Object.create(null);class Q{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new Iy(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=z.empty){let r=n.content.lastChild,i=null;for(let o=0;o<n.openEnd;o++)i=r,r=r.lastChild;let u=e.steps.length,s=this.ranges;for(let o=0;o<s.length;o++){let{$from:l,$to:a}=s[o],c=e.mapping.slice(u);e.replaceRange(c.map(l.pos),c.map(a.pos),o?z.empty:n),o==0&&$f(e,u,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,i=this.ranges;for(let u=0;u<i.length;u++){let{$from:s,$to:o}=i[u],l=e.mapping.slice(r),a=l.map(s.pos),c=l.map(o.pos);u?e.deleteRange(a,c):(e.replaceRangeWith(a,c,n),$f(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let i=e.parent.inlineContent?new ne(e):Ir(e.node(0),e.parent,e.pos,e.index(),n,r);if(i)return i;for(let u=e.depth-1;u>=0;u--){let s=n<0?Ir(e.node(0),e.node(u),e.before(u+1),e.index(u),n,r):Ir(e.node(0),e.node(u),e.after(u+1),e.index(u)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new wt(e.node(0))}static atStart(e){return Ir(e,e,0,0,1)||new wt(e)}static atEnd(e){return Ir(e,e,e.content.size,e.childCount,-1)||new wt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Go[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Go)throw new RangeError("Duplicate use of selection JSON ID "+e);return Go[e]=n,n.prototype.jsonID=e,n}getBookmark(){return ne.between(this.$anchor,this.$head).getBookmark()}}Q.prototype.visible=!0;class Iy{constructor(e,n){this.$from=e,this.$to=n}}let Bf=!1;function zf(t){!Bf&&!t.parent.inlineContent&&(Bf=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class ne extends Q{constructor(e,n=e){zf(e),zf(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return Q.near(r);let i=e.resolve(n.map(this.anchor));return new ne(i.parent.inlineContent?i:r,r)}replace(e,n=z.empty){if(super.replace(e,n),n==z.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof ne&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new ho(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new ne(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let u=Q.findFrom(n,r,!0)||Q.findFrom(n,-r,!0);if(u)n=u.$head;else return Q.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(Q.findFrom(e,-r,!0)||Q.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=i<0&&(e=n))),new ne(e,n)}}Q.jsonID("text",ne);class ho{constructor(e,n){this.anchor=e,this.head=n}map(e){return new ho(e.map(this.anchor),e.map(this.head))}resolve(e){return ne.between(e.resolve(this.anchor),e.resolve(this.head))}}class q extends Q{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),u=e.resolve(i);return r?Q.near(u):new q(u)}content(){return new z(T.from(this.node),0,0)}eq(e){return e instanceof q&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new za(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new q(e.resolve(n.anchor))}static create(e,n){return new q(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}q.prototype.visible=!1;Q.jsonID("node",q);class za{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new ho(r,r):new za(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&q.isSelectable(r)?new q(n):Q.near(n)}}class wt extends Q{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=z.empty){if(n==z.empty){e.delete(0,e.doc.content.size);let r=Q.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new wt(e)}map(e){return new wt(e)}eq(e){return e instanceof wt}getBookmark(){return Ry}}Q.jsonID("all",wt);const Ry={map(){return this},resolve(t){return new wt(t)}};function Ir(t,e,n,r,i,u=!1){if(e.inlineContent)return ne.create(t,n);for(let s=r-(i>0?0:1);i>0?s<e.childCount:s>=0;s+=i){let o=e.child(s);if(o.isAtom){if(!u&&q.isSelectable(o))return q.create(t,n-(i<0?o.nodeSize:0))}else{let l=Ir(t,o,n+i,i<0?o.childCount:0,i,u);if(l)return l}n+=o.nodeSize*i}return null}function $f(t,e,n){let r=t.steps.length-1;if(r<e)return;let i=t.steps[r];if(!(i instanceof ke||i instanceof $e))return;let u=t.mapping.maps[r],s;u.forEach((o,l,a,c)=>{s==null&&(s=c)}),t.setSelection(Q.near(t.doc.resolve(s),n))}const Vf=1,Nu=2,Uf=4;class Py extends Fy{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Vf)&~Nu,this.storedMarks=null,this}get selectionSet(){return(this.updated&Vf)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Nu,this}ensureMarks(e){return ie.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Nu)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Nu,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||ie.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),!e)return this.deleteRange(n,r);let u=this.storedMarks;if(!u){let s=this.doc.resolve(n);u=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,u)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(Q.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Uf,this}get scrolledIntoView(){return(this.updated&Uf)>0}}function Hf(t,e){return!e||!t?t:t.bind(e)}class xi{constructor(e,n,r){this.name=e,this.init=Hf(n.init,r),this.apply=Hf(n.apply,r)}}const Ly=[new xi("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new xi("selection",{init(t,e){return t.selection||Q.atStart(e.doc)},apply(t){return t.selection}}),new xi("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new xi("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Ko{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Ly.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new xi(r.key,r.spec.state,r))})}}class Ci{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),i=null;for(;;){let u=!1;for(let s=0;s<this.config.plugins.length;s++){let o=this.config.plugins[s];if(o.spec.appendTransaction){let l=i?i[s].n:0,a=i?i[s].state:this,c=l<n.length&&o.spec.appendTransaction.call(o,l?n.slice(l):n,a,r);if(c&&r.filterTransaction(c,s)){if(c.setMeta("appendedTransaction",e),!i){i=[];for(let f=0;f<this.config.plugins.length;f++)i.push(f<s?{state:r,n:n.length}:{state:this,n:0})}n.push(c),r=r.applyInner(c),u=!0}i&&(i[s]={state:r,n:n.length})}}if(!u)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Ci(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let u=r[i];n[u.name]=u.apply(e,this[u.name],this,n)}return n}get tr(){return new Py(this)}static create(e){let n=new Ko(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Ci(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(e,r);return r}reconfigure(e){let n=new Ko(this.schema,e.plugins),r=n.fields,i=new Ci(n);for(let u=0;u<r.length;u++){let s=r[u].name;i[s]=this.hasOwnProperty(s)?this[s]:r[u].init(e,i)}return i}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],u=i.spec.state;u&&u.toJSON&&(n[r]=u.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new Ko(e.schema,e.plugins),u=new Ci(i);return i.fields.forEach(s=>{if(s.name=="doc")u.doc=Zt.fromJSON(e.schema,n.doc);else if(s.name=="selection")u.selection=Q.fromJSON(u.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(u.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let o in r){let l=r[o],a=l.spec.state;if(l.key==s.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(n,o)){u[s.name]=a.fromJSON.call(l,e,n[o],u);return}}u[s.name]=s.init(e,u)}}),u}}function bp(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=bp(i,e,{})),n[r]=i}return n}class po{constructor(e){this.spec=e,this.props={},e.props&&bp(e.props,this,this.props),this.key=e.key?e.key.key:yp("plugin")}getState(e){return e[this.key]}}const Jo=Object.create(null);function yp(t){return t in Jo?t+"$"+ ++Jo[t]:(Jo[t]=0,t+"$")}class xp{constructor(e="key"){this.key=yp(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Cp=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function wp(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const By=(t,e,n)=>{let r=wp(t,n);if(!r)return!1;let i=$a(r);if(!i){let s=r.blockRange(),o=s&&du(s);return o==null?!1:(e&&e(t.tr.lift(s,o).scrollIntoView()),!0)}let u=i.nodeBefore;if(kp(t,i,e,-1))return!0;if(r.parent.content.size==0&&(Qr(u,"end")||q.isSelectable(u)))for(let s=r.depth;;s--){let o=fo(t.doc,r.before(s),r.after(s),z.empty);if(o&&o.slice.size<o.to-o.from){if(e){let l=t.tr.step(o);l.setSelection(Qr(u,"end")?Q.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):q.create(l.doc,i.pos-u.nodeSize)),e(l.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return u.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-u.nodeSize,i.pos).scrollIntoView()),!0):!1},G8=(t,e,n)=>{let r=wp(t,n);if(!r)return!1;let i=$a(r);return i?Ep(t,i,e):!1},K8=(t,e,n)=>{let r=Sp(t,n);if(!r)return!1;let i=Va(r);return i?Ep(t,i,e):!1};function Ep(t,e,n){let r=e.nodeBefore,i=r,u=e.pos-1;for(;!i.isTextblock;u--){if(i.type.spec.isolating)return!1;let c=i.lastChild;if(!c)return!1;i=c}let s=e.nodeAfter,o=s,l=e.pos+1;for(;!o.isTextblock;l++){if(o.type.spec.isolating)return!1;let c=o.firstChild;if(!c)return!1;o=c}let a=fo(t.doc,u,l,z.empty);if(!a||a.from!=u||a instanceof ke&&a.slice.size>=l-u)return!1;if(n){let c=t.tr.step(a);c.setSelection(ne.create(c.doc,u)),n(c.scrollIntoView())}return!0}function Qr(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const zy=(t,e,n)=>{let{$head:r,empty:i}=t.selection,u=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;u=$a(r)}let s=u&&u.nodeBefore;return!s||!q.isSelectable(s)?!1:(e&&e(t.tr.setSelection(q.create(t.doc,u.pos-s.nodeSize)).scrollIntoView()),!0)};function $a(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Sp(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const $y=(t,e,n)=>{let r=Sp(t,n);if(!r)return!1;let i=Va(r);if(!i)return!1;let u=i.nodeAfter;if(kp(t,i,e,1))return!0;if(r.parent.content.size==0&&(Qr(u,"start")||q.isSelectable(u))){let s=fo(t.doc,r.before(),r.after(),z.empty);if(s&&s.slice.size<s.to-s.from){if(e){let o=t.tr.step(s);o.setSelection(Qr(u,"start")?Q.findFrom(o.doc.resolve(o.mapping.map(i.pos)),1):q.create(o.doc,o.mapping.map(i.pos))),e(o.scrollIntoView())}return!0}}return u.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos,i.pos+u.nodeSize).scrollIntoView()),!0):!1},Vy=(t,e,n)=>{let{$head:r,empty:i}=t.selection,u=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;u=Va(r)}let s=u&&u.nodeAfter;return!s||!q.isSelectable(s)?!1:(e&&e(t.tr.setSelection(q.create(t.doc,u.pos)).scrollIntoView()),!0)};function Va(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const J8=(t,e)=>{let n=t.selection,r=n instanceof q,i;if(r){if(n.node.isTextblock||!hu(t.doc,n.from))return!1;i=n.from}else if(i=fp(t.doc,n.from,-1),i==null)return!1;if(e){let u=t.tr.join(i);r&&u.setSelection(q.create(u.doc,i-t.doc.resolve(i).nodeBefore.nodeSize)),e(u.scrollIntoView())}return!0},Z8=(t,e)=>{let n=t.selection,r;if(n instanceof q){if(n.node.isTextblock||!hu(t.doc,n.to))return!1;r=n.to}else if(r=fp(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},X8=(t,e)=>{let{$from:n,$to:r}=t.selection,i=n.blockRange(r),u=i&&du(i);return u==null?!1:(e&&e(t.tr.lift(i,u).scrollIntoView()),!0)},Uy=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
23
- `).scrollIntoView()),!0)};function Ua(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const Y8=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),u=n.indexAfter(-1),s=Ua(i.contentMatchAt(u));if(!s||!i.canReplaceWith(u,u,s))return!1;if(e){let o=n.after(),l=t.tr.replaceWith(o,o,s.createAndFill());l.setSelection(Q.near(l.doc.resolve(o),1)),e(l.scrollIntoView())}return!0},Hy=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof wt||r.parent.inlineContent||i.parent.inlineContent)return!1;let u=Ua(i.parent.contentMatchAt(i.indexAfter()));if(!u||!u.isTextblock)return!1;if(e){let s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=t.tr.insert(s,u.createAndFill());o.setSelection(ne.create(o.doc,s+1)),e(o.scrollIntoView())}return!0},qy=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let u=n.before();if(vi(t.doc,u))return e&&e(t.tr.split(u).scrollIntoView()),!0}let r=n.blockRange(),i=r&&du(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function jy(t){return(e,n)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof q&&e.selection.node.isBlock)return!r.parentOffset||!vi(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let u=[],s,o,l=!1,a=!1;for(let h=r.depth;;h--)if(r.node(h).isBlock){l=r.end(h)==r.pos+(r.depth-h),a=r.start(h)==r.pos-(r.depth-h),o=Ua(r.node(h-1).contentMatchAt(r.indexAfter(h-1))),u.unshift(l&&o?{type:o}:null),s=h;break}else{if(h==1)return!1;u.unshift(null)}let c=e.tr;(e.selection instanceof ne||e.selection instanceof wt)&&c.deleteSelection();let f=c.mapping.map(r.pos),d=vi(c.doc,f,u.length,u);if(d||(u[0]=o?{type:o}:null,d=vi(c.doc,f,u.length,u)),!d)return!1;if(c.split(f,u.length,u),!l&&a&&r.node(s).type!=o){let h=c.mapping.map(r.before(s)),p=c.doc.resolve(h);o&&r.node(s-1).canReplaceWith(p.index(),p.index()+1,o)&&c.setNodeMarkup(c.mapping.map(r.before(s)),o)}return n&&n(c.scrollIntoView()),!0}}const Wy=jy(),Q8=(t,e)=>{let{$from:n,to:r}=t.selection,i,u=n.sharedDepth(r);return u==0?!1:(i=n.before(u),e&&e(t.tr.setSelection(q.create(t.doc,i))),!0)};function Gy(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,u=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(u-1,u)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(u,u+1)||!(i.isTextblock||hu(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function kp(t,e,n,r){let i=e.nodeBefore,u=e.nodeAfter,s,o,l=i.type.spec.isolating||u.type.spec.isolating;if(!l&&Gy(t,e,n))return!0;let a=!l&&e.parent.canReplace(e.index(),e.index()+1);if(a&&(s=(o=i.contentMatchAt(i.childCount)).findWrapping(u.type))&&o.matchType(s[0]||u.type).validEnd){if(n){let h=e.pos+u.nodeSize,p=T.empty;for(let x=s.length-1;x>=0;x--)p=T.from(s[x].create(null,p));p=T.from(i.copy(p));let m=t.tr.step(new $e(e.pos-1,h,e.pos,h,new z(p,1,0),s.length,!0)),b=m.doc.resolve(h+2*s.length);b.nodeAfter&&b.nodeAfter.type==i.type&&hu(m.doc,b.pos)&&m.join(b.pos),n(m.scrollIntoView())}return!0}let c=u.type.spec.isolating||r>0&&l?null:Q.findFrom(e,1),f=c&&c.$from.blockRange(c.$to),d=f&&du(f);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(f,d).scrollIntoView()),!0;if(a&&Qr(u,"start",!0)&&Qr(i,"end")){let h=i,p=[];for(;p.push(h),!h.isTextblock;)h=h.lastChild;let m=u,b=1;for(;!m.isTextblock;m=m.firstChild)b++;if(h.canReplace(h.childCount,h.childCount,m.content)){if(n){let x=T.empty;for(let E=p.length-1;E>=0;E--)x=T.from(p[E].copy(x));let w=t.tr.step(new $e(e.pos-p.length,e.pos+u.nodeSize,e.pos+b,e.pos+u.nodeSize-b,new z(x,p.length,0),0,!0));n(w.scrollIntoView())}return!0}}return!1}function Dp(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,u=i.depth;for(;i.node(u).isInline;){if(!u)return!1;u--}return i.node(u).isTextblock?(n&&n(e.tr.setSelection(ne.create(e.doc,t<0?i.start(u):i.end(u)))),!0):!1}}const ew=Dp(-1),tw=Dp(1);function nw(t,e=null){return function(n,r){let{$from:i,$to:u}=n.selection,s=i.blockRange(u),o=s&&op(s,t,e);return o?(r&&r(n.tr.wrap(s,o).scrollIntoView()),!0):!1}}function rw(t,e=null){return function(n,r){let i=!1;for(let u=0;u<n.selection.ranges.length&&!i;u++){let{$from:{pos:s},$to:{pos:o}}=n.selection.ranges[u];n.doc.nodesBetween(s,o,(l,a)=>{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)i=!0;else{let c=n.doc.resolve(a),f=c.index();i=c.parent.canReplaceWith(f,f+1,t)}})}if(!i)return!1;if(r){let u=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:o},$to:{pos:l}}=n.selection.ranges[s];u.setBlockType(o,l,t,e)}r(u.scrollIntoView())}return!0}}function Ha(...t){return function(e,n,r){for(let i=0;i<t.length;i++)if(t[i](e,n,r))return!0;return!1}}Ha(Cp,By,zy);Ha(Cp,$y,Vy);Ha(Uy,Hy,qy,Wy);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function iw(t,e=null){return function(n,r){let{$from:i,$to:u}=n.selection,s=i.blockRange(u);if(!s)return!1;let o=r?n.tr:null;return Ky(o,s,t,e)?(r&&r(o.scrollIntoView()),!0):!1}}function Ky(t,e,n,r=null){let i=!1,u=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=s.resolve(e.start-2);u=new fs(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new fs(e.$from,s.resolve(e.$to.end(e.depth)),e.depth)),i=!0}let o=op(u,n,r,e);return o?(t&&Jy(t,e,o,i,n),!0):!1}function Jy(t,e,n,r,i){let u=T.empty;for(let c=n.length-1;c>=0;c--)u=T.from(n[c].type.create(n[c].attrs,u));t.step(new $e(e.start-(r?2:0),e.end,e.start,e.end,new z(u,0,0),n.length,!0));let s=0;for(let c=0;c<n.length;c++)n[c].type==i&&(s=c+1);let o=n.length-s,l=e.start+n.length-(r?2:0),a=e.parent;for(let c=e.startIndex,f=e.endIndex,d=!0;c<f;c++,d=!1)!d&&vi(t.doc,l,o)&&(t.split(l,o),l+=2*o),l+=a.child(c).nodeSize;return t}function uw(t){return function(e,n){let{$from:r,$to:i}=e.selection,u=r.blockRange(i,s=>s.childCount>0&&s.firstChild.type==t);return u?n?r.node(u.depth-1).type==t?Zy(e,n,t,u):Xy(e,n,u):!0:!1}}function Zy(t,e,n,r){let i=t.tr,u=r.end,s=r.$to.end(r.depth);u<s&&(i.step(new $e(u-1,s,u,s,new z(T.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new fs(i.doc.resolve(r.$from.pos),i.doc.resolve(s),r.depth));const o=du(r);if(o==null)return!1;i.lift(r,o);let l=i.doc.resolve(i.mapping.map(u,-1)-1);return hu(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos),e(i.scrollIntoView()),!0}function Xy(t,e,n){let r=t.tr,i=n.parent;for(let h=n.end,p=n.endIndex-1,m=n.startIndex;p>m;p--)h-=i.child(p).nodeSize,r.delete(h-1,h+1);let u=r.doc.resolve(n.start),s=u.nodeAfter;if(r.mapping.map(n.end)!=n.start+u.nodeAfter.nodeSize)return!1;let o=n.startIndex==0,l=n.endIndex==i.childCount,a=u.node(-1),c=u.index(-1);if(!a.canReplace(c+(o?0:1),c+1,s.content.append(l?T.empty:T.from(i))))return!1;let f=u.pos,d=f+s.nodeSize;return r.step(new $e(f-(o?1:0),d+(l?1:0),f+1,d-1,new z((o?T.empty:T.from(i.copy(T.empty))).append(l?T.empty:T.from(i.copy(T.empty))),o?0:1,l?0:1),o?0:1)),e(r.scrollIntoView()),!0}function sw(t){return function(e,n){let{$from:r,$to:i}=e.selection,u=r.blockRange(i,a=>a.childCount>0&&a.firstChild.type==t);if(!u)return!1;let s=u.startIndex;if(s==0)return!1;let o=u.parent,l=o.child(s-1);if(l.type!=t)return!1;if(n){let a=l.lastChild&&l.lastChild.type==o.type,c=T.from(a?t.create():null),f=new z(T.from(t.create(null,T.from(o.type.create(null,c)))),a?3:1,0),d=u.start,h=u.end;n(e.tr.step(new $e(d-(a?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}const Ie=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},ei=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Hl=null;const an=function(t,e,n){let r=Hl||(Hl=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},Yy=function(){Hl=null},kr=function(t,e,n,r){return n&&(qf(t,e,n,r,-1)||qf(t,e,n,r,1))},Qy=/^(img|br|input|textarea|hr)$/i;function qf(t,e,n,r,i){for(var u;;){if(t==n&&e==r)return!0;if(e==(i<0?0:gt(t))){let s=t.parentNode;if(!s||s.nodeType!=1||pu(t)||Qy.test(t.nodeName)||t.contentEditable=="false")return!1;e=Ie(t)+(i<0?0:1),t=s}else if(t.nodeType==1){let s=t.childNodes[e+(i<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((u=s.pmViewDesc)===null||u===void 0)&&u.ignoreForSelection)e+=i;else return!1;else t=s,e=i<0?gt(t):0}else return!1}}function gt(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function e3(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=gt(t)}else if(t.parentNode&&!pu(t))e=Ie(t),t=t.parentNode;else return null}}function t3(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!pu(t))e=Ie(t)+1,t=t.parentNode;else return null}}function n3(t,e,n){for(let r=e==0,i=e==gt(t);r||i;){if(t==n)return!0;let u=Ie(t);if(t=t.parentNode,!t)return!1;r=r&&u==0,i=i&&u==gt(t)}}function pu(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const mo=function(t){return t.focusNode&&kr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function or(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function r3(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function i3(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(gt(r.offsetNode),r.offset)}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(gt(r.startContainer),r.startOffset)}}}const Xt=typeof navigator<"u"?navigator:null,jf=typeof document<"u"?document:null,Zn=Xt&&Xt.userAgent||"",ql=/Edge\/(\d+)/.exec(Zn),Ap=/MSIE \d/.exec(Zn),jl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zn),it=!!(Ap||jl||ql),Vn=Ap?document.documentMode:jl?+jl[1]:ql?+ql[1]:0,Et=!it&&/gecko\/(\d+)/i.test(Zn);Et&&+(/Firefox\/(\d+)/.exec(Zn)||[0,0])[1];const Wl=!it&&/Chrome\/(\d+)/.exec(Zn),ze=!!Wl,_p=Wl?+Wl[1]:0,je=!it&&!!Xt&&/Apple Computer/.test(Xt.vendor),ti=je&&(/Mobile\/\w+/.test(Zn)||!!Xt&&Xt.maxTouchPoints>2),mt=ti||(Xt?/Mac/.test(Xt.platform):!1),Tp=Xt?/Win/.test(Xt.platform):!1,mn=/Android \d/.test(Zn),mu=!!jf&&"webkitFontSmoothing"in jf.documentElement.style,u3=mu?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function s3(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function tn(t,e){return typeof t=="number"?t:t[e]}function o3(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function Wf(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,u=t.dom.ownerDocument;for(let s=n||t.dom;s;){if(s.nodeType!=1){s=ei(s);continue}let o=s,l=o==u.body,a=l?s3(u):o3(o),c=0,f=0;if(e.top<a.top+tn(r,"top")?f=-(a.top-e.top+tn(i,"top")):e.bottom>a.bottom-tn(r,"bottom")&&(f=e.bottom-e.top>a.bottom-a.top?e.top+tn(i,"top")-a.top:e.bottom-a.bottom+tn(i,"bottom")),e.left<a.left+tn(r,"left")?c=-(a.left-e.left+tn(i,"left")):e.right>a.right-tn(r,"right")&&(c=e.right-a.right+tn(i,"right")),c||f)if(l)u.defaultView.scrollBy(c,f);else{let h=o.scrollLeft,p=o.scrollTop;f&&(o.scrollTop+=f),c&&(o.scrollLeft+=c);let m=o.scrollLeft-h,b=o.scrollTop-p;e={left:e.left-m,top:e.top-b,right:e.right-m,bottom:e.bottom-b}}let d=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(d))break;s=d=="absolute"?s.offsetParent:ei(s)}}function l3(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let u=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let o=t.root.elementFromPoint(u,s);if(!o||o==t.dom||!t.dom.contains(o))continue;let l=o.getBoundingClientRect();if(l.top>=n-20){r=o,i=l.top;break}}return{refDOM:r,refTop:i,stack:Np(t.dom)}}function Np(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=ei(r));return e}function a3({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;Op(n,r==0?0:r-e)}function Op(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:i,left:u}=t[n];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=u&&(r.scrollLeft=u)}}let Nr=null;function c3(t){if(t.setActive)return t.setActive();if(Nr)return t.focus(Nr);let e=Np(t);t.focus(Nr==null?{get preventScroll(){return Nr={preventScroll:!0},!0}}:void 0),Nr||(Nr=!1,Op(e,0))}function vp(t,e){let n,r=2e8,i,u=0,s=e.top,o=e.top,l,a;for(let c=t.firstChild,f=0;c;c=c.nextSibling,f++){let d;if(c.nodeType==1)d=c.getClientRects();else if(c.nodeType==3)d=an(c).getClientRects();else continue;for(let h=0;h<d.length;h++){let p=d[h];if(p.top<=s&&p.bottom>=o){s=Math.max(p.bottom,s),o=Math.min(p.top,o);let m=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(m<r){n=c,r=m,i=m&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,c.nodeType==1&&m&&(u=f+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=c,a={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(u=f+1)}}return!n&&l&&(n=l,i=a,r=0),n&&n.nodeType==3?f3(n,i):!n||r&&n.nodeType==1?{node:t,offset:u}:vp(n,i)}function f3(t,e){let n=t.nodeValue.length,r=document.createRange(),i;for(let u=0;u<n;u++){r.setEnd(t,u+1),r.setStart(t,u);let s=kn(r,1);if(s.top!=s.bottom&&qa(e,s)){i={node:t,offset:u+(e.left>=(s.left+s.right)/2?1:0)};break}}return r.detach(),i||{node:t,offset:0}}function qa(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function d3(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function h3(t,e,n){let{node:r,offset:i}=vp(e,n),u=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();u=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,i,u)}function p3(t,e,n,r){let i=-1;for(let u=e,s=!1;u!=t.dom;){let o=t.docView.nearestDesc(u,!0),l;if(!o)return null;if(o.dom.nodeType==1&&(o.node.isBlock&&o.parent||!o.contentDOM)&&((l=o.dom.getBoundingClientRect()).width||l.height)&&(o.node.isBlock&&o.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(o.dom.nodeName)&&(!s&&l.left>r.left||l.top>r.top?i=o.posBefore:(!s&&l.right<r.left||l.bottom<r.top)&&(i=o.posAfter),s=!0),!o.contentDOM&&i<0&&!o.node.isText))return(o.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?o.posBefore:o.posAfter;u=o.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,n,-1)}function Mp(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),u=i;;){let s=t.childNodes[u];if(s.nodeType==1){let o=s.getClientRects();for(let l=0;l<o.length;l++){let a=o[l];if(qa(e,a))return Mp(s,e,a)}}if((u=(u+1)%r)==i)break}return t}function m3(t,e){let n=t.dom.ownerDocument,r,i=0,u=i3(n,e.left,e.top);u&&({node:r,offset:i}=u);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),o;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let a=t.dom.getBoundingClientRect();if(!qa(e,a)||(s=Mp(t.dom,e,a),!s))return null}if(je)for(let a=s;r&&a;a=ei(a))a.draggable&&(r=void 0);if(s=d3(s,e),r){if(Et&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let c=r.childNodes[i],f;c.nodeName=="IMG"&&(f=c.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&i++}let a;mu&&i&&r.nodeType==1&&(a=r.childNodes[i-1]).nodeType==1&&a.contentEditable=="false"&&a.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?o=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(o=p3(t,r,i,e))}o==null&&(o=h3(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:o,inside:l?l.posAtStart-l.border:-1}}function Gf(t){return t.top<t.bottom||t.left<t.right}function kn(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(Gf(r))return r}return Array.prototype.find.call(n,Gf)||t.getBoundingClientRect()}const g3=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Fp(t,e,n){let{node:r,offset:i,atom:u}=t.docView.domFromPos(e,n<0?-1:1),s=mu||Et;if(r.nodeType==3)if(s&&(g3.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let l=kn(an(r,i,i),n);if(Et&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let a=kn(an(r,i-1,i-1),-1);if(a.top==l.top){let c=kn(an(r,i,i+1),-1);if(c.top!=l.top)return pi(c,c.left<a.left)}}return l}else{let l=i,a=i,c=n<0?1:-1;return n<0&&!i?(a++,c=-1):n>=0&&i==r.nodeValue.length?(l--,c=1):n<0?l--:a++,pi(kn(an(r,l,a),c),c<0)}if(!t.state.doc.resolve(e-(u||0)).parent.inlineContent){if(u==null&&i&&(n<0||i==gt(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return Zo(l.getBoundingClientRect(),!1)}if(u==null&&i<gt(r)){let l=r.childNodes[i];if(l.nodeType==1)return Zo(l.getBoundingClientRect(),!0)}return Zo(r.getBoundingClientRect(),n>=0)}if(u==null&&i&&(n<0||i==gt(r))){let l=r.childNodes[i-1],a=l.nodeType==3?an(l,gt(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(a)return pi(kn(a,1),!1)}if(u==null&&i<gt(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let a=l?l.nodeType==3?an(l,0,s?0:1):l.nodeType==1?l:null:null;if(a)return pi(kn(a,-1),!0)}return pi(kn(r.nodeType==3?an(r):r,-n),n>=0)}function pi(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function Zo(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function Ip(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function b3(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return Ip(t,e,()=>{let{node:u}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let o=t.docView.nearestDesc(u,!0);if(!o)break;if(o.node.isBlock){u=o.contentDOM||o.dom;break}u=o.dom.parentNode}let s=Fp(t,i.pos,1);for(let o=u.firstChild;o;o=o.nextSibling){let l;if(o.nodeType==1)l=o.getClientRects();else if(o.nodeType==3)l=an(o,0,o.nodeValue.length).getClientRects();else continue;for(let a=0;a<l.length;a++){let c=l[a];if(c.bottom>c.top+1&&(n=="up"?s.top-c.top>(c.bottom-s.top)*2:c.bottom-s.bottom>(s.bottom-c.top)*2))return!1}}return!0})}const y3=/[\u0590-\u08ac]/;function x3(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,u=!i,s=i==r.parent.content.size,o=t.domSelection();return o?!y3.test(r.parent.textContent)||!o.modify?n=="left"||n=="backward"?u:s:Ip(t,e,()=>{let{focusNode:l,focusOffset:a,anchorNode:c,anchorOffset:f}=t.domSelectionRange(),d=o.caretBidiLevel;o.modify("move",n,"character");let h=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:p,focusOffset:m}=t.domSelectionRange(),b=p&&!h.contains(p.nodeType==1?p:p.parentNode)||l==p&&a==m;try{o.collapse(c,f),l&&(l!=c||a!=f)&&o.extend&&o.extend(l,a)}catch{}return d!=null&&(o.caretBidiLevel=d),b}):r.pos==r.start()||r.pos==r.end()}let Kf=null,Jf=null,Zf=!1;function C3(t,e,n){return Kf==e&&Jf==n?Zf:(Kf=e,Jf=n,Zf=n=="up"||n=="down"?b3(t,e,n):x3(t,e,n))}const St=0,Xf=1,ar=2,Yt=3;class gu{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=St,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==e)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let u,s;if(e==this.contentDOM)u=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;u=e.previousSibling}for(;u&&!((s=u.pmViewDesc)&&s.parent==this);)u=u.previousSibling;return u?this.posBeforeChild(s)+s.size:this.posAtStart}else{let u,s;if(e==this.contentDOM)u=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;u=e.nextSibling}for(;u&&!((s=u.pmViewDesc)&&s.parent==this);)u=u.nextSibling;return u?this.posBeforeChild(s):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=n>Ie(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let u=e;;u=u.parentNode){if(u==this.dom){i=!1;break}if(u.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let u=e;;u=u.parentNode){if(u==this.dom){i=!0;break}if(u.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let u=this.getDesc(i),s;if(u&&(!n||u.node))if(r&&(s=u.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return u}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let u=this.getDesc(i);if(u)return u.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],u=r+i.size;if(r==e&&u!=r){for(;!i.border&&i.children.length;)for(let s=0;s<i.children.length;s++){let o=i.children[s];if(o.size){i=o;break}}return i}if(e<u)return i.descAt(e-r-i.border);r=u}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let u=0;r<this.children.length;r++){let s=this.children[r],o=u+s.size;if(o>e||s instanceof Pp){i=e-u;break}u=o}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let u;r&&!(u=this.children[r-1]).size&&u instanceof Rp&&u.side>=0;r--);if(n<=0){let u,s=!0;for(;u=r?this.children[r-1]:null,!(!u||u.dom.parentNode==this.contentDOM);r--,s=!1);return u&&n&&s&&!u.border&&!u.domAtom?u.domFromPos(u.size,n):{node:this.contentDOM,offset:u?Ie(u.dom)+1:0}}else{let u,s=!0;for(;u=r<this.children.length?this.children[r]:null,!(!u||u.dom.parentNode==this.contentDOM);r++,s=!1);return u&&s&&!u.border&&!u.domAtom?u.domFromPos(0,n):{node:this.contentDOM,offset:u?Ie(u.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,u=-1;for(let s=r,o=0;;o++){let l=this.children[o],a=s+l.size;if(i==-1&&e<=a){let c=s+l.border;if(e>=c&&n<=a-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,c);e=s;for(let f=o;f>0;f--){let d=this.children[f-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){i=Ie(d.dom)+1;break}e-=d.size}i==-1&&(i=0)}if(i>-1&&(a>n||o==this.children.length-1)){n=a;for(let c=o+1;c<this.children.length;c++){let f=this.children[c];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){u=Ie(f.dom);break}n+=f.size}u==-1&&(u=this.contentDOM.childNodes.length);break}s=a}return{node:this.contentDOM,from:e,to:n,fromOffset:i,toOffset:u}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,i=!1){let u=Math.min(e,n),s=Math.max(e,n);for(let h=0,p=0;h<this.children.length;h++){let m=this.children[h],b=p+m.size;if(u>p&&s<b)return m.setSelection(e-p-m.border,n-p-m.border,r,i);p=b}let o=this.domFromPos(e,e?-1:1),l=n==e?o:this.domFromPos(n,n?-1:1),a=r.root.getSelection(),c=r.domSelectionRange(),f=!1;if((Et||je)&&e==n){let{node:h,offset:p}=o;if(h.nodeType==3){if(f=!!(p&&h.nodeValue[p-1]==`
24
- `),f&&p==h.nodeValue.length)for(let m=h,b;m;m=m.parentNode){if(b=m.nextSibling){b.nodeName=="BR"&&(o=l={node:b.parentNode,offset:Ie(b)+1});break}let x=m.pmViewDesc;if(x&&x.node&&x.node.isBlock)break}}else{let m=h.childNodes[p-1];f=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Et&&c.focusNode&&c.focusNode!=l.node&&c.focusNode.nodeType==1){let h=c.focusNode.childNodes[c.focusOffset];h&&h.contentEditable=="false"&&(i=!0)}if(!(i||f&&je)&&kr(o.node,o.offset,c.anchorNode,c.anchorOffset)&&kr(l.node,l.offset,c.focusNode,c.focusOffset))return;let d=!1;if((a.extend||e==n)&&!(f&&Et)){a.collapse(o.node,o.offset);try{e!=n&&a.extend(l.node,l.offset),d=!0}catch{}}if(!d){if(e>n){let p=o;o=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(o.node,o.offset),a.removeAllRanges(),a.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i<this.children.length;i++){let u=this.children[i],s=r+u.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let o=r+u.border,l=s-u.border;if(e>=o&&n<=l){this.dirty=e==r||n==s?ar:Xf,e==o&&n==l&&(u.contentLost||u.dom.parentNode!=this.contentDOM)?u.dirty=Yt:u.markDirty(e-o,n-o);return}else u.dirty=u.dom==u.contentDOM&&u.dom.parentNode==this.contentDOM&&!u.children.length?ar:Yt}r=s}this.dirty=ar}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?ar:Xf;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Rp extends gu{constructor(e,n,r,i){let u,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!u)return i;if(u.parent)return u.parent.posBeforeChild(u)})),!n.type.spec.raw){if(s.nodeType!=1){let o=document.createElement("span");o.appendChild(s),s=o}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,u=this}matchesWidget(e){return this.dirty==St&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class w3 extends gu{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Dr extends gu{constructor(e,n,r,i,u){super(e,[],r,i),this.mark=n,this.spec=u}static create(e,n,r,i){let u=i.nodeViews[n.type.name],s=u&&u(n,i,r);return(!s||!s.dom)&&(s=ri.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Dr(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Yt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Yt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=St){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=St}}slice(e,n,r){let i=Dr.create(this.parent,this.mark,!0,r),u=this.children,s=this.size;n<s&&(u=Kl(u,n,s,r)),e>0&&(u=Kl(u,0,e,r));for(let o=0;o<u.length;o++)u[o].parent=i;return i.children=u,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Un extends gu{constructor(e,n,r,i,u,s,o,l,a){super(e,[],u,s),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=o}static create(e,n,r,i,u,s){let o=u.nodeViews[n.type.name],l,a=o&&o(n,u,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,i),c=a&&a.dom,f=a&&a.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:f}=ri.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!f&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let d=c;return c=zp(c,r,n),a?l=new E3(e,n,r,i,c,f||null,d,a,u,s+1):n.isText?new go(e,n,r,i,c,d,u):new Un(e,n,r,i,c,f||null,d,u,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>T.empty)}return e}matchesNode(e,n,r){return this.dirty==St&&e.eq(this.node)&&hs(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,i=n,u=e.composing?this.localCompositionInfo(e,n):null,s=u&&u.pos>-1?u:null,o=u&&u.pos<0,l=new k3(this,s&&s.node,e);_3(this.node,this.innerDeco,(a,c,f)=>{a.spec.marks?l.syncToMarks(a.spec.marks,r,e,c):a.type.side>=0&&!f&&l.syncToMarks(c==this.node.childCount?ie.none:this.node.child(c).marks,r,e,c),l.placeWidget(a,e,i)},(a,c,f,d)=>{l.syncToMarks(a.marks,r,e,d);let h;l.findNodeMatch(a,c,f,d)||o&&e.state.selection.from>i&&e.state.selection.to<i+a.nodeSize&&(h=l.findIndexWithChild(u.node))>-1&&l.updateNodeAt(a,c,f,h,e)||l.updateNextNode(a,c,f,e,d,i)||l.addNode(a,c,f,e,i),i+=a.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==ar)&&(s&&this.protectLocalComposition(e,s),Lp(this.contentDOM,this.children,e),ti&&T3(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof ne)||r<n||i>n+this.node.content.size)return null;let u=e.input.compositionNode;if(!u||!this.dom.contains(u.parentNode))return null;if(this.node.inlineContent){let s=u.nodeValue,o=N3(this.node.content,s,r-n,i-n);return o<0?null:{node:u,pos:o,text:s}}else return{node:u,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let u=n;for(;u.parentNode!=this.contentDOM;u=u.parentNode){for(;u.previousSibling;)u.parentNode.removeChild(u.previousSibling);for(;u.nextSibling;)u.parentNode.removeChild(u.nextSibling);u.pmViewDesc&&(u.pmViewDesc=void 0)}let s=new w3(this,u,n,i);e.input.compositionNodes.push(s),this.children=Kl(this.children,r,r+i.length,e,s)}update(e,n,r,i){return this.dirty==Yt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=St}updateOuterDeco(e){if(hs(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Bp(this.dom,this.nodeDOM,Gl(this.outerDeco,this.node,n),Gl(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Yf(t,e,n,r,i){zp(r,e,t);let u=new Un(void 0,t,e,n,r,r,r,i,0);return u.contentDOM&&u.updateChildren(i,0),u}class go extends Un{constructor(e,n,r,i,u,s,o){super(e,n,r,i,u,null,s,o,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==Yt||this.dirty!=St&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=St||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=St,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),u=document.createTextNode(i.text);return new go(this.parent,i,this.outerDeco,this.innerDeco,u,u,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Yt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Pp extends gu{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==St&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class E3 extends Un{constructor(e,n,r,i,u,s,o,l,a,c){super(e,n,r,i,u,s,o,a,c),this.spec=l}update(e,n,r,i){if(this.dirty==Yt)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let u=this.spec.update(e,n,r);return u&&this.updateInner(e,n,r,i),u}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Lp(t,e,n){let r=t.firstChild,i=!1;for(let u=0;u<e.length;u++){let s=e[u],o=s.dom;if(o.parentNode==t){for(;o!=r;)r=Qf(r),i=!0;r=r.nextSibling}else i=!0,t.insertBefore(o,r);if(s instanceof Dr){let l=r?r.previousSibling:t.lastChild;Lp(s.contentDOM,s.children,n),r=l?l.nextSibling:t.firstChild}}for(;r;)r=Qf(r),i=!0;i&&n.trackWrites==t&&(n.trackWrites=null)}const Mi=function(t){t&&(this.nodeName=t)};Mi.prototype=Object.create(null);const cr=[new Mi];function Gl(t,e,n){if(t.length==0)return cr;let r=n?cr[0]:new Mi,i=[r];for(let u=0;u<t.length;u++){let s=t[u].type.attrs;if(s){s.nodeName&&i.push(r=new Mi(s.nodeName));for(let o in s){let l=s[o];l!=null&&(n&&i.length==1&&i.push(r=new Mi(e.isInline?"span":"div")),o=="class"?r.class=(r.class?r.class+" ":"")+l:o=="style"?r.style=(r.style?r.style+";":"")+l:o!="nodeName"&&(r[o]=l))}}}return i}function Bp(t,e,n,r){if(n==cr&&r==cr)return e;let i=e;for(let u=0;u<r.length;u++){let s=r[u],o=n[u];if(u){let l;o&&o.nodeName==s.nodeName&&i!=t&&(l=i.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(i),o=cr[0]),i=l}S3(i,o||cr[0],s)}return i}function S3(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let u=0;u<r.length;u++)i.indexOf(r[u])==-1&&t.classList.remove(r[u]);for(let u=0;u<i.length;u++)r.indexOf(i[u])==-1&&t.classList.add(i[u]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(e.style);)t.style.removeProperty(i[1])}n.style&&(t.style.cssText+=n.style)}}function zp(t,e,n){return Bp(t,t,cr,Gl(e,n,t.nodeType!=1))}function hs(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function Qf(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class k3{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=D3(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r,i){let u=0,s=this.stack.length>>1,o=Math.min(s,e.length);for(;u<o&&(u==s-1?this.top:this.stack[u+1<<1]).matchesMark(e[u])&&e[u].type.spec.spanning!==!1;)u++;for(;u<s;)this.destroyRest(),this.top.dirty=St,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let l=-1,a=this.top.children.length;i<this.preMatch.index&&(a=Math.min(this.index+3,a));for(let c=this.index;c<a;c++){let f=this.top.children[c];if(f.matchesMark(e[s])&&!this.isLocked(f.dom)){l=c;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let c=Dr.create(this.top,e[s],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,r,i){let u=-1,s;if(i>=this.preMatch.index&&(s=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))u=this.top.children.indexOf(s,this.index);else for(let o=this.index,l=Math.min(this.top.children.length,o+5);o<l;o++){let a=this.top.children[o];if(a.matchesNode(e,n,r)&&!this.preMatch.matched.has(a)){u=o;break}}return u<0?!1:(this.destroyBetween(this.index,u),this.index++,!0)}updateNodeAt(e,n,r,i,u){let s=this.top.children[i];return s.dirty==Yt&&s.dom==s.contentDOM&&(s.dirty=ar),s.update(e,n,r,u)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}e=n}}updateNextNode(e,n,r,i,u,s){for(let o=this.index;o<this.top.children.length;o++){let l=this.top.children[o];if(l instanceof Un){let a=this.preMatch.matched.get(l);if(a!=null&&a!=u)return!1;let c=l.dom,f,d=this.isLocked(c)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Yt&&hs(n,l.outerDeco));if(!d&&l.update(e,n,r,i))return this.destroyBetween(this.index,o),l.dom!=c&&(this.changed=!0),this.index++,!0;if(!d&&(f=this.recreateWrapper(l,e,n,r,i,s)))return this.destroyBetween(this.index,o),this.top.children[this.index]=f,f.contentDOM&&(f.dirty=ar,f.updateChildren(i,s+1),f.dirty=St),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,i,u,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!hs(r,e.outerDeco)||!i.eq(e.innerDeco))return null;let o=Un.create(this.top,n,r,i,u,s);if(o.contentDOM){o.children=e.children,e.children=[];for(let l of o.children)l.parent=o}return e.destroy(),o}addNode(e,n,r,i,u){let s=Un.create(this.top,e,n,r,i,u);s.contentDOM&&s.updateChildren(i,u+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(e)&&(e==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let u=new Rp(this.top,e,n,r);this.top.children.splice(this.index++,0,u),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Dr;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof go)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((je||ze)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new Pp(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function D3(t,e){let n=e,r=n.children.length,i=t.childCount,u=new Map,s=[];e:for(;i>0;){let o;for(;;)if(r){let a=n.children[r-1];if(a instanceof Dr)n=a,r=a.children.length;else{o=a,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=o.node;if(l){if(l!=t.child(i-1))break;--i,u.set(o,i),s.push(o)}}return{index:i,matched:u,matches:s.reverse()}}function A3(t,e){return t.type.side-e.type.side}function _3(t,e,n,r){let i=e.locals(t),u=0;if(i.length==0){for(let a=0;a<t.childCount;a++){let c=t.child(a);r(c,i,e.forChild(u,c),a),u+=c.nodeSize}return}let s=0,o=[],l=null;for(let a=0;;){let c,f;for(;s<i.length&&i[s].to==u;){let b=i[s++];b.widget&&(c?(f||(f=[c])).push(b):c=b)}if(c)if(f){f.sort(A3);for(let b=0;b<f.length;b++)n(f[b],a,!!l)}else n(c,a,!!l);let d,h;if(l)h=-1,d=l,l=null;else if(a<t.childCount)h=a,d=t.child(a++);else break;for(let b=0;b<o.length;b++)o[b].to<=u&&o.splice(b--,1);for(;s<i.length&&i[s].from<=u&&i[s].to>u;)o.push(i[s++]);let p=u+d.nodeSize;if(d.isText){let b=p;s<i.length&&i[s].from<b&&(b=i[s].from);for(let x=0;x<o.length;x++)o[x].to<b&&(b=o[x].to);b<p&&(l=d.cut(b-u),d=d.cut(0,b-u),p=b,h=-1)}else for(;s<i.length&&i[s].to<p;)s++;let m=d.isInline&&!d.isLeaf?o.filter(b=>!b.inline):o.slice();r(d,m,e.forChild(u,d),h),u=p}}function T3(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function N3(t,e,n,r){for(let i=0,u=0;i<t.childCount&&u<=r;){let s=t.child(i++),o=u;if(u+=s.nodeSize,!s.isText)continue;let l=s.text;for(;i<t.childCount;){let a=t.child(i++);if(u+=a.nodeSize,!a.isText)break;l+=a.text}if(u>=n){if(u>=r&&l.slice(r-e.length-o,r-o)==e)return r-e.length;let a=o<r?l.lastIndexOf(e,r-o-1):-1;if(a>=0&&a+e.length+o>=n)return o+a;if(n==r&&l.length>=r+e.length-o&&l.slice(r-o,r-o+e.length)==e)return r}}return-1}function Kl(t,e,n,r,i){let u=[];for(let s=0,o=0;s<t.length;s++){let l=t[s],a=o,c=o+=l.size;a>=n||c<=e?u.push(l):(a<e&&u.push(l.slice(0,e-a,r)),i&&(u.push(i),i=void 0),c>n&&u.push(l.slice(n-a,l.size,r)))}return u}function ja(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),u=i&&i.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let o=r.resolve(s),l,a;if(mo(n)){for(l=s;i&&!i.node;)i=i.parent;let f=i.node;if(i&&f.isAtom&&q.isSelectable(f)&&i.parent&&!(f.isInline&&n3(n.focusNode,n.focusOffset,i.dom))){let d=i.posBefore;a=new q(s==d?o:r.resolve(d))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let f=s,d=s;for(let h=0;h<n.rangeCount;h++){let p=n.getRangeAt(h);f=Math.min(f,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),d=Math.max(d,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(f<0)return null;[l,s]=d==t.state.selection.anchor?[d,f]:[f,d],o=r.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let c=r.resolve(l);if(!a){let f=e=="pointer"||t.state.selection.head<o.pos&&!u?1:-1;a=Wa(t,c,o,f)}return a}function $p(t){return t.editable?t.hasFocus():Up(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function bn(t,e=!1){let n=t.state.selection;if(Vp(t,n),!!$p(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&ze){let r=t.domSelectionRange(),i=t.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&kr(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)v3(t);else{let{anchor:r,head:i}=n,u,s;ed&&!(n instanceof ne)&&(n.$from.parent.inlineContent||(u=td(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=td(t,n.to))),t.docView.setSelection(r,i,t,e),ed&&(u&&nd(u),s&&nd(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&O3(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const ed=je||ze&&_p<63;function td(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),i=r<n.childNodes.length?n.childNodes[r]:null,u=r?n.childNodes[r-1]:null;if(je&&i&&i.contentEditable=="false")return Xo(i);if((!i||i.contentEditable=="false")&&(!u||u.contentEditable=="false")){if(i)return Xo(i);if(u)return Xo(u)}}function Xo(t){return t.contentEditable="true",je&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function nd(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function O3(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!$p(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function v3(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.collapse(n.parentNode,Ie(n)+1):e.collapse(n,0),!r&&!t.state.selection.visible&&it&&Vn<=11&&(n.disabled=!0,n.disabled=!1)}function Vp(t,e){if(e instanceof q){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(rd(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else rd(t)}function rd(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Wa(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||ne.between(e,n,r)}function id(t){return t.editable&&!t.hasFocus()?!1:Up(t)}function Up(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function M3(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return kr(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Jl(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),u=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return u&&Q.findFrom(u,e)}function Nn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function ud(t,e,n){let r=t.state.selection;if(r instanceof ne)if(n.indexOf("s")>-1){let{$head:i}=r,u=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!u||u.isText||!u.isLeaf)return!1;let s=t.state.doc.resolve(i.pos+u.nodeSize*(e<0?-1:1));return Nn(t,new ne(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=Jl(t.state,e);return i&&i instanceof q?Nn(t,i):!1}else if(!(mt&&n.indexOf("m")>-1)){let i=r.$head,u=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,s;if(!u||u.isText)return!1;let o=e<0?i.pos-u.nodeSize:i.pos;return u.isAtom||(s=t.docView.descAt(o))&&!s.contentDOM?q.isSelectable(u)?Nn(t,new q(e<0?t.state.doc.resolve(i.pos-u.nodeSize):i)):mu?Nn(t,new ne(t.state.doc.resolve(e<0?o:o+u.nodeSize))):!1:!1}}else return!1;else{if(r instanceof q&&r.node.isInline)return Nn(t,new ne(e>0?r.$to:r.$from));{let i=Jl(t.state,e);return i?Nn(t,i):!1}}}function ps(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Fi(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Or(t,e){return e<0?F3(t):I3(t)}function F3(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,u,s=!1;for(Et&&n.nodeType==1&&r<ps(n)&&Fi(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let o=n.childNodes[r-1];if(Fi(o,-1))i=n,u=--r;else if(o.nodeType==3)n=o,r=n.nodeValue.length;else break}}else{if(Hp(n))break;{let o=n.previousSibling;for(;o&&Fi(o,-1);)i=n.parentNode,u=Ie(o),o=o.previousSibling;if(o)n=o,r=ps(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Zl(t,n,r):i&&Zl(t,i,u)}function I3(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=ps(n),u,s;for(;;)if(r<i){if(n.nodeType!=1)break;let o=n.childNodes[r];if(Fi(o,1))u=n,s=++r;else break}else{if(Hp(n))break;{let o=n.nextSibling;for(;o&&Fi(o,1);)u=o.parentNode,s=Ie(o)+1,o=o.nextSibling;if(o)n=o,r=0,i=ps(n);else{if(n=n.parentNode,n==t.dom)break;r=i=0}}}u&&Zl(t,u,s)}function Hp(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function R3(t,e){for(;t&&e==t.childNodes.length&&!pu(t);)e=Ie(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function P3(t,e){for(;t&&!e&&!pu(t);)e=Ie(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Zl(t,e,n){if(e.nodeType!=3){let u,s;(s=R3(e,n))?(e=s,n=0):(u=P3(e,n))&&(e=u,n=u.nodeValue.length)}let r=t.domSelection();if(!r)return;if(mo(r)){let u=document.createRange();u.setEnd(e,n),u.setStart(e,n),r.removeAllRanges(),r.addRange(u)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:i}=t;setTimeout(()=>{t.state==i&&bn(t)},50)}function sd(t,e){let n=t.state.doc.resolve(e);if(!(ze||Tp)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let u=t.coordsAtPos(e-1),s=(u.top+u.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(u.left-i.left)>1)return u.left<i.left?"ltr":"rtl"}if(e<n.end()){let u=t.coordsAtPos(e+1),s=(u.top+u.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(u.left-i.left)>1)return u.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function od(t,e,n){let r=t.state.selection;if(r instanceof ne&&!r.empty||n.indexOf("s")>-1||mt&&n.indexOf("m")>-1)return!1;let{$from:i,$to:u}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Jl(t.state,e);if(s&&s instanceof q)return Nn(t,s)}if(!i.parent.inlineContent){let s=e<0?i:u,o=r instanceof wt?Q.near(s,e):Q.findFrom(s,e);return o?Nn(t,o):!1}return!1}function ld(t,e){if(!(t.state.selection instanceof ne))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let u=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(u&&!u.isText){let s=t.state.tr;return e<0?s.delete(n.pos-u.nodeSize,n.pos):s.delete(n.pos,n.pos+u.nodeSize),t.dispatch(s),!0}return!1}function ad(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function L3(t){if(!je||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;ad(t,r,"true"),setTimeout(()=>ad(t,r,"false"),20)}return!1}function B3(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function z3(t,e){let n=e.keyCode,r=B3(e);if(n==8||mt&&n==72&&r=="c")return ld(t,-1)||Or(t,-1);if(n==46&&!e.shiftKey||mt&&n==68&&r=="c")return ld(t,1)||Or(t,1);if(n==13||n==27)return!0;if(n==37||mt&&n==66&&r=="c"){let i=n==37?sd(t,t.state.selection.from)=="ltr"?-1:1:-1;return ud(t,i,r)||Or(t,i)}else if(n==39||mt&&n==70&&r=="c"){let i=n==39?sd(t,t.state.selection.from)=="ltr"?1:-1:1;return ud(t,i,r)||Or(t,i)}else{if(n==38||mt&&n==80&&r=="c")return od(t,-1,r)||Or(t,-1);if(n==40||mt&&n==78&&r=="c")return L3(t)||od(t,1,r)||Or(t,1);if(r==(mt?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Ga(t,e){t.someProp("transformCopied",h=>{e=h(e,t)});let n=[],{content:r,openStart:i,openEnd:u}=e;for(;i>1&&u>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,u--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let s=t.someProp("clipboardSerializer")||ri.fromSchema(t.state.schema),o=Jp(),l=o.createElement("div");l.appendChild(s.serializeFragment(r,{document:o}));let a=l.firstChild,c,f=0;for(;a&&a.nodeType==1&&(c=Kp[a.nodeName.toLowerCase()]);){for(let h=c.length-1;h>=0;h--){let p=o.createElement(c[h]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),f++}a=l.firstChild}a&&a.nodeType==1&&a.setAttribute("data-pm-slice",`${i} ${u}${f?` -${f}`:""} ${JSON.stringify(n)}`);let d=t.someProp("clipboardTextSerializer",h=>h(e,t))||e.content.textBetween(0,e.content.size,`
17
+ **/let ql;const uf=typeof window<"u"&&window.trustedTypes;if(uf)try{ql=uf.createPolicy("vue",{createHTML:t=>t})}catch{}const $0=ql?t=>ql.createHTML(t):t=>t,zb="http://www.w3.org/2000/svg",Vb="http://www.w3.org/1998/Math/MathML",cn=typeof document<"u"?document:null,sf=cn&&cn.createElement("template"),Ub={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?cn.createElementNS(zb,t):e==="mathml"?cn.createElementNS(Vb,t):n?cn.createElement(t,{is:n}):cn.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>cn.createTextNode(t),createComment:t=>cn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>cn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,u){const s=n?n.previousSibling:e.lastChild;if(i&&(i===u||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===u||!(i=i.nextSibling)););else{sf.innerHTML=$0(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const o=sf.content;if(r==="svg"||r==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},kn="transition",bi="animation",Yi=Symbol("_vtc"),z0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Hb=Ae({},i0,z0),qb=t=>(t.displayName="Transition",t.props=Hb,t),tE=qb((t,{slots:e})=>Bb(Bg,jb(t),e)),ur=(t,e=[])=>{z(t)?t.forEach(n=>n(...e)):t&&t(...e)},of=t=>t?z(t)?t.some(e=>e.length>1):t.length>1:!1;function jb(t){const e={};for(const L in t)L in z0||(e[L]=t[L]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:u=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=u,appearActiveClass:a=s,appearToClass:c=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=Wb(i),m=p&&p[0],b=p&&p[1],{onBeforeEnter:x,onEnter:w,onEnterCancelled:E,onLeave:O,onLeaveCancelled:F,onBeforeAppear:j=x,onAppear:I=w,onAppearCancelled:U=E}=e,P=(L,le,Ce,Qe)=>{L._enterCancelled=Qe,sr(L,le?c:o),sr(L,le?a:s),Ce&&Ce()},J=(L,le)=>{L._isLeaving=!1,sr(L,f),sr(L,h),sr(L,d),le&&le()},te=L=>(le,Ce)=>{const Qe=L?I:w,pe=()=>P(le,L,Ce);ur(Qe,[le,pe]),lf(()=>{sr(le,L?l:u),nn(le,L?c:o),of(Qe)||af(le,r,m,pe)})};return Ae(e,{onBeforeEnter(L){ur(x,[L]),nn(L,u),nn(L,s)},onBeforeAppear(L){ur(j,[L]),nn(L,l),nn(L,a)},onEnter:te(!1),onAppear:te(!0),onLeave(L,le){L._isLeaving=!0;const Ce=()=>J(L,le);nn(L,f),L._enterCancelled?(nn(L,d),df(L)):(df(L),nn(L,d)),lf(()=>{L._isLeaving&&(sr(L,f),nn(L,h),of(O)||af(L,r,b,Ce))}),ur(O,[L,Ce])},onEnterCancelled(L){P(L,!1,void 0,!0),ur(E,[L])},onAppearCancelled(L){P(L,!0,void 0,!0),ur(U,[L])},onLeaveCancelled(L){J(L),ur(F,[L])}})}function Wb(t){if(t==null)return null;if(ue(t))return[qo(t.enter),qo(t.leave)];{const e=qo(t);return[e,e]}}function qo(t){return zm(t)}function nn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Yi]||(t[Yi]=new Set)).add(e)}function sr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Yi];n&&(n.delete(e),n.size||(t[Yi]=void 0))}function lf(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Gb=0;function af(t,e,n,r){const i=t._endId=++Gb,u=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(u,n);const{type:s,timeout:o,propCount:l}=Kb(t,e);if(!s)return r();const a=s+"end";let c=0;const f=()=>{t.removeEventListener(a,d),u()},d=h=>{h.target===t&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},o+1),t.addEventListener(a,d)}function Kb(t,e){const n=window.getComputedStyle(t),r=p=>(n[p]||"").split(", "),i=r(`${kn}Delay`),u=r(`${kn}Duration`),s=cf(i,u),o=r(`${bi}Delay`),l=r(`${bi}Duration`),a=cf(o,l);let c=null,f=0,d=0;e===kn?s>0&&(c=kn,f=s,d=u.length):e===bi?a>0&&(c=bi,f=a,d=l.length):(f=Math.max(s,a),c=f>0?s>a?kn:bi:null,d=c?c===kn?u.length:l.length:0);const h=c===kn&&/\b(?:transform|all)(?:,|$)/.test(r(`${kn}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function cf(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>ff(n)+ff(t[r])))}function ff(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function df(t){return(t?t.ownerDocument:document).body.offsetHeight}function Jb(t,e,n){const r=t[Yi];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const cs=Symbol("_vod"),V0=Symbol("_vsh"),nE={name:"show",beforeMount(t,{value:e},{transition:n}){t[cs]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):yi(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),yi(t,!0),r.enter(t)):r.leave(t,()=>{yi(t,!1)}):yi(t,e))},beforeUnmount(t,{value:e}){yi(t,e)}};function yi(t,e){t.style.display=e?t[cs]:"none",t[V0]=!e}const Zb=Symbol(""),Xb=/(?:^|;)\s*display\s*:/;function Yb(t,e,n){const r=t.style,i=ge(n);let u=!1;if(n&&!i){if(e)if(ge(e))for(const s of e.split(";")){const o=s.slice(0,s.indexOf(":")).trim();n[o]==null&&Ju(r,o,"")}else for(const s in e)n[s]==null&&Ju(r,s,"");for(const s in n)s==="display"&&(u=!0),Ju(r,s,n[s])}else if(i){if(e!==n){const s=r[Zb];s&&(n+=";"+s),r.cssText=n,u=Xb.test(n)}}else e&&t.removeAttribute("style");cs in t&&(t[cs]=u?r.display:"",t[V0]&&(r.display="none"))}const hf=/\s*!important$/;function Ju(t,e,n){if(z(n))n.forEach(r=>Ju(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Qb(t,e);hf.test(n)?t.setProperty(Yn(r),n.replace(hf,""),"important"):t[r]=n}}const pf=["Webkit","Moz","ms"],jo={};function Qb(t,e){const n=jo[e];if(n)return n;let r=Ze(e);if(r!=="filter"&&r in t)return jo[e]=r;r=io(r);for(let i=0;i<pf.length;i++){const u=pf[i]+r;if(u in t)return jo[e]=u}return e}const mf="http://www.w3.org/1999/xlink";function gf(t,e,n,r,i,u=Wm(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(mf,e.slice(6,e.length)):t.setAttributeNS(mf,e,n):n==null||u&&!Th(n)?t.removeAttribute(e):t.setAttribute(e,u?"":Mt(n)?String(n):n)}function bf(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?$0(n):n);return}const u=t.tagName;if(e==="value"&&u!=="PROGRESS"&&!u.includes("-")){const o=u==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const o=typeof t[e];o==="boolean"?n=Th(n):n==null&&o==="string"?(n="",s=!0):o==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(i||e)}function gn(t,e,n,r){t.addEventListener(e,n,r)}function e2(t,e,n,r){t.removeEventListener(e,n,r)}const yf=Symbol("_vei");function t2(t,e,n,r,i=null){const u=t[yf]||(t[yf]={}),s=u[e];if(r&&s)s.value=r;else{const[o,l]=n2(e);if(r){const a=u[e]=u2(r,i);gn(t,o,a,l)}else s&&(e2(t,o,s,l),u[e]=void 0)}}const xf=/(?:Once|Passive|Capture)$/;function n2(t){let e;if(xf.test(t)){e={};let r;for(;r=t.match(xf);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Yn(t.slice(2)),e]}let Wo=0;const r2=Promise.resolve(),i2=()=>Wo||(r2.then(()=>Wo=0),Wo=Date.now());function u2(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Rt(s2(r,n.value),e,5,[r])};return n.value=t,n.attached=i2(),n}function s2(t,e){if(z(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const Cf=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,o2=(t,e,n,r,i,u)=>{const s=i==="svg";e==="class"?Jb(t,r,s):e==="style"?Yb(t,n,r):to(e)?Ta(e)||t2(t,e,n,r,u):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):l2(t,e,r,s))?(bf(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&gf(t,e,r,s,u,e!=="value")):t._isVueCE&&(a2(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!ge(r)))?bf(t,Ze(e),r,u,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),gf(t,e,r,s))};function l2(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Cf(e)&&G(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Cf(e)&&ge(n)?!1:e in t}function a2(t,e){const n=t._def.props;if(!n)return!1;const r=Ze(e);return Array.isArray(n)?n.some(i=>Ze(i)===r):Object.keys(n).some(i=>Ze(i)===r)}const Zn=t=>{const e=t.props["onUpdate:modelValue"]||!1;return z(e)?n=>ju(e,n):e};function c2(t){t.target.composing=!0}function wf(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Et=Symbol("_assign");function Ef(t,e,n){return e&&(t=t.trim()),n&&(t=uo(t)),t}const Sf={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[Et]=Zn(i);const u=r||i.props&&i.props.type==="number";gn(t,e?"change":"input",s=>{s.target.composing||t[Et](Ef(t.value,n,u))}),(n||u)&&gn(t,"change",()=>{t.value=Ef(t.value,n,u)}),e||(gn(t,"compositionstart",c2),gn(t,"compositionend",wf),gn(t,"change",wf))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:u}},s){if(t[Et]=Zn(s),t.composing)return;const o=(u||t.type==="number")&&!/^0\d/.test(t.value)?uo(t.value):t.value,l=e??"";o!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===l)||(t.value=l))}},f2={deep:!0,created(t,e,n){t[Et]=Zn(n),gn(t,"change",()=>{const r=t._modelValue,i=ni(t),u=t.checked,s=t[Et];if(z(r)){const o=Ma(r,i),l=o!==-1;if(u&&!l)s(r.concat(i));else if(!u&&l){const a=[...r];a.splice(o,1),s(a)}}else if(oi(r)){const o=new Set(r);u?o.add(i):o.delete(i),s(o)}else s(U0(t,u))})},mounted:kf,beforeUpdate(t,e,n){t[Et]=Zn(n),kf(t,e,n)}};function kf(t,{value:e,oldValue:n},r){t._modelValue=e;let i;if(z(e))i=Ma(e,r.props.value)>-1;else if(oi(e))i=e.has(r.props.value);else{if(e===n)return;i=Kn(e,U0(t,!0))}t.checked!==i&&(t.checked=i)}const d2={created(t,{value:e},n){t.checked=Kn(e,n.props.value),t[Et]=Zn(n),gn(t,"change",()=>{t[Et](ni(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[Et]=Zn(r),e!==n&&(t.checked=Kn(e,r.props.value))}},h2={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=oi(e);gn(t,"change",()=>{const u=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?uo(ni(s)):ni(s));t[Et](t.multiple?i?new Set(u):u:u[0]),t._assigning=!0,Jh(()=>{t._assigning=!1})}),t[Et]=Zn(r)},mounted(t,{value:e}){Df(t,e)},beforeUpdate(t,e,n){t[Et]=Zn(n)},updated(t,{value:e}){t._assigning||Df(t,e)}};function Df(t,e){const n=t.multiple,r=z(e);if(!(n&&!r&&!oi(e))){for(let i=0,u=t.options.length;i<u;i++){const s=t.options[i],o=ni(s);if(n)if(r){const l=typeof o;l==="string"||l==="number"?s.selected=e.some(a=>String(a)===String(o)):s.selected=Ma(e,o)>-1}else s.selected=e.has(o);else if(Kn(ni(s),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function ni(t){return"_value"in t?t._value:t.value}function U0(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const rE={created(t,e,n){vu(t,e,n,null,"created")},mounted(t,e,n){vu(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){vu(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){vu(t,e,n,r,"updated")}};function p2(t,e){switch(t){case"SELECT":return h2;case"TEXTAREA":return Sf;default:switch(e){case"checkbox":return f2;case"radio":return d2;default:return Sf}}}function vu(t,e,n,r,i){const s=p2(t.tagName,n.props&&n.props.type)[i];s&&s(t,e,n,r)}const m2=["ctrl","shift","alt","meta"],g2={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>m2.some(n=>t[`${n}Key`]&&!e.includes(n))},iE=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...u)=>{for(let s=0;s<e.length;s++){const o=g2[e[s]];if(o&&o(i,e))return}return t(i,...u)})},b2={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},uE=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const u=Yn(i.key);if(e.some(s=>s===u||b2[s]===u))return t(i)})},y2=Ae({patchProp:o2},Ub);let Af;function H0(){return Af||(Af=yb(y2))}const sE=(...t)=>{H0().render(...t)},oE=(...t)=>{const e=H0().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=C2(r);if(!i)return;const u=e._component;!G(u)&&!u.render&&!u.template&&(u.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,x2(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e};function x2(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function C2(t){return ge(t)?document.querySelector(t):t}function w2(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),e&&(r.href=e),i.href=t,i.href}const E2=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function Hn(t){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(t[n]);return e}let Mr=null;function q0(t={}){return Mr||(t.includeStyleProperties?(Mr=t.includeStyleProperties,Mr):(Mr=Hn(window.getComputedStyle(document.documentElement)),Mr))}function fs(t,e){const r=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(e);return r?parseFloat(r.replace("px","")):0}function S2(t){const e=fs(t,"border-left-width"),n=fs(t,"border-right-width");return t.clientWidth+e+n}function k2(t){const e=fs(t,"border-top-width"),n=fs(t,"border-bottom-width");return t.clientHeight+e+n}function j0(t,e={}){const n=e.width||S2(t),r=e.height||k2(t);return{width:n,height:r}}function D2(){let t,e;try{e=process}catch{}const n=e&&e.env?e.env.devicePixelRatio:null;return n&&(t=parseInt(n,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}const lt=16384;function A2(t){(t.width>lt||t.height>lt)&&(t.width>lt&&t.height>lt?t.width>t.height?(t.height*=lt/t.width,t.width=lt):(t.width*=lt/t.height,t.height=lt):t.width>lt?(t.height*=lt/t.width,t.width=lt):(t.width*=lt/t.height,t.height=lt))}function _2(t,e={}){return t.toBlob?new Promise(n=>{t.toBlob(n,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(n=>{const r=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=r.length,u=new Uint8Array(i);for(let s=0;s<i;s+=1)u[s]=r.charCodeAt(s);n(new Blob([u],{type:e.type?e.type:"image/png"}))})}function ds(t){return new Promise((e,n)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>e(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}async function T2(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function O2(t,e,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),u=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${e} ${n}`),u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("externalResourcesRequired","true"),i.appendChild(u),u.appendChild(t),T2(i)}const it=(t,e)=>{if(t instanceof e)return!0;const n=Object.getPrototypeOf(t);return n===null?!1:n.constructor.name===e.name||it(n,e)};function N2(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function v2(t,e){return q0(e).map(n=>{const r=t.getPropertyValue(n),i=t.getPropertyPriority(n);return`${n}: ${r}${i?" !important":""};`}).join(" ")}function M2(t,e,n,r){const i=`.${t}:${e}`,u=n.cssText?N2(n):v2(n,r);return document.createTextNode(`${i}{${u}}`)}function _f(t,e,n,r){const i=window.getComputedStyle(t,n),u=i.getPropertyValue("content");if(u===""||u==="none")return;const s=E2();try{e.className=`${e.className} ${s}`}catch{return}const o=document.createElement("style");o.appendChild(M2(s,n,i,r)),e.appendChild(o)}function F2(t,e,n){_f(t,e,":before",n),_f(t,e,":after",n)}const Tf="application/font-woff",Of="image/jpeg",R2={woff:Tf,woff2:Tf,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Of,jpeg:Of,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function I2(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function Wa(t){const e=I2(t).toLowerCase();return R2[e]||""}function P2(t){return t.split(/,/)[1]}function jl(t){return t.search(/^(data:)/)!==-1}function L2(t,e){return`data:${e};base64,${t}`}async function W0(t,e,n){const r=await fetch(t,e);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((u,s)=>{const o=new FileReader;o.onerror=s,o.onloadend=()=>{try{u(n({res:r,result:o.result}))}catch(l){s(l)}},o.readAsDataURL(i)})}const Go={};function B2(t,e,n){let r=t.replace(/\?.*/,"");return n&&(r=t),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),e?`[${e}]${r}`:r}async function Ga(t,e,n){const r=B2(t,e,n.includeQueryParams);if(Go[r]!=null)return Go[r];n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let i;try{const u=await W0(t,n.fetchRequestInit,({res:s,result:o})=>(e||(e=s.headers.get("Content-Type")||""),P2(o)));i=L2(u,e)}catch(u){i=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${t}`;u&&(s=typeof u=="string"?u:u.message),s&&console.warn(s)}return Go[r]=i,i}async function $2(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):ds(e)}async function z2(t,e){if(t.currentSrc){const u=document.createElement("canvas"),s=u.getContext("2d");u.width=t.clientWidth,u.height=t.clientHeight,s==null||s.drawImage(t,0,0,u.width,u.height);const o=u.toDataURL();return ds(o)}const n=t.poster,r=Wa(n),i=await Ga(n,r,e);return ds(i)}async function V2(t,e){var n;try{if(!((n=t==null?void 0:t.contentDocument)===null||n===void 0)&&n.body)return await mo(t.contentDocument.body,e,!0)}catch{}return t.cloneNode(!1)}async function U2(t,e){return it(t,HTMLCanvasElement)?$2(t):it(t,HTMLVideoElement)?z2(t,e):it(t,HTMLIFrameElement)?V2(t,e):t.cloneNode(G0(t))}const H2=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT",G0=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SVG";async function q2(t,e,n){var r,i;if(G0(e))return e;let u=[];return H2(t)&&t.assignedNodes?u=Hn(t.assignedNodes()):it(t,HTMLIFrameElement)&&(!((r=t.contentDocument)===null||r===void 0)&&r.body)?u=Hn(t.contentDocument.body.childNodes):u=Hn(((i=t.shadowRoot)!==null&&i!==void 0?i:t).childNodes),u.length===0||it(t,HTMLVideoElement)||await u.reduce((s,o)=>s.then(()=>mo(o,n)).then(l=>{l&&e.appendChild(l)}),Promise.resolve()),e}function j2(t,e,n){const r=e.style;if(!r)return;const i=window.getComputedStyle(t);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):q0(n).forEach(u=>{let s=i.getPropertyValue(u);u==="font-size"&&s.endsWith("px")&&(s=`${Math.floor(parseFloat(s.substring(0,s.length-2)))-.1}px`),it(t,HTMLIFrameElement)&&u==="display"&&s==="inline"&&(s="block"),u==="d"&&e.getAttribute("d")&&(s=`path(${e.getAttribute("d")})`),r.setProperty(u,s,i.getPropertyPriority(u))})}function W2(t,e){it(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),it(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function G2(t,e){if(it(t,HTMLSelectElement)){const n=e,r=Array.from(n.children).find(i=>t.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function K2(t,e,n){return it(e,Element)&&(j2(t,e,n),F2(t,e,n),W2(t,e),G2(t,e)),e}async function J2(t,e){const n=t.querySelectorAll?t.querySelectorAll("use"):[];if(n.length===0)return t;const r={};for(let u=0;u<n.length;u++){const o=n[u].getAttribute("xlink:href");if(o){const l=t.querySelector(o),a=document.querySelector(o);!l&&a&&!r[o]&&(r[o]=await mo(a,e,!0))}}const i=Object.values(r);if(i.length){const u="http://www.w3.org/1999/xhtml",s=document.createElementNS(u,"svg");s.setAttribute("xmlns",u),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const o=document.createElementNS(u,"defs");s.appendChild(o);for(let l=0;l<i.length;l++)o.appendChild(i[l]);t.appendChild(s)}return t}async function mo(t,e,n){return!n&&e.filter&&!e.filter(t)?null:Promise.resolve(t).then(r=>U2(r,e)).then(r=>q2(t,r,e)).then(r=>K2(t,r,e)).then(r=>J2(r,e))}const K0=/url\((['"]?)([^'"]+?)\1\)/g,Z2=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,X2=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Y2(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function Q2(t){const e=[];return t.replace(K0,(n,r,i)=>(e.push(i),n)),e.filter(n=>!jl(n))}async function ey(t,e,n,r,i){try{const u=n?w2(e,n):e,s=Wa(e);let o;return i||(o=await Ga(u,s,r)),t.replace(Y2(e),`$1${o}$3`)}catch{}return t}function ty(t,{preferredFontFormat:e}){return e?t.replace(X2,n=>{for(;;){const[r,,i]=Z2.exec(n)||[];if(!i)return"";if(i===e)return`src: ${r};`}}):t}function J0(t){return t.search(K0)!==-1}async function Z0(t,e,n){if(!J0(t))return t;const r=ty(t,n);return Q2(r).reduce((u,s)=>u.then(o=>ey(o,s,e,n)),Promise.resolve(r))}async function Fr(t,e,n){var r;const i=(r=e.style)===null||r===void 0?void 0:r.getPropertyValue(t);if(i){const u=await Z0(i,null,n);return e.style.setProperty(t,u,e.style.getPropertyPriority(t)),!0}return!1}async function ny(t,e){await Fr("background",t,e)||await Fr("background-image",t,e),await Fr("mask",t,e)||await Fr("-webkit-mask",t,e)||await Fr("mask-image",t,e)||await Fr("-webkit-mask-image",t,e)}async function ry(t,e){const n=it(t,HTMLImageElement);if(!(n&&!jl(t.src))&&!(it(t,SVGImageElement)&&!jl(t.href.baseVal)))return;const r=n?t.src:t.href.baseVal,i=await Ga(r,Wa(r),e);await new Promise((u,s)=>{t.onload=u,t.onerror=e.onImageErrorHandler?(...l)=>{try{u(e.onImageErrorHandler(...l))}catch(a){s(a)}}:s;const o=t;o.decode&&(o.decode=u),o.loading==="lazy"&&(o.loading="eager"),n?(t.srcset="",t.src=i):t.href.baseVal=i})}async function iy(t,e){const r=Hn(t.childNodes).map(i=>X0(i,e));await Promise.all(r).then(()=>t)}async function X0(t,e){it(t,Element)&&(await ny(t,e),await ry(t,e),await iy(t,e))}function uy(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const r=e.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),t}const Nf={};async function vf(t){let e=Nf[t];if(e!=null)return e;const r=await(await fetch(t)).text();return e={url:t,cssText:r},Nf[t]=e,e}async function Mf(t,e){let n=t.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,u=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let o=s.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,t.url).href),W0(o,e.fetchRequestInit,({result:l})=>(n=n.replace(s,`url(${l})`),[s,l]))});return Promise.all(u).then(()=>n)}function Ff(t){if(t==null)return[];const e=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=t.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(r);if(l===null)break;e.push(l[0])}r=r.replace(i,"");const u=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(s,"gi");for(;;){let l=u.exec(r);if(l===null){if(l=o.exec(r),l===null)break;u.lastIndex=o.lastIndex}else o.lastIndex=u.lastIndex;e.push(l[0])}return e}async function sy(t,e){const n=[],r=[];return t.forEach(i=>{if("cssRules"in i)try{Hn(i.cssRules||[]).forEach((u,s)=>{if(u.type===CSSRule.IMPORT_RULE){let o=s+1;const l=u.href,a=vf(l).then(c=>Mf(c,e)).then(c=>Ff(c).forEach(f=>{try{i.insertRule(f,f.startsWith("@import")?o+=1:i.cssRules.length)}catch(d){console.error("Error inserting rule from remote css",{rule:f,error:d})}})).catch(c=>{console.error("Error loading remote css",c.toString())});r.push(a)}})}catch(u){const s=t.find(o=>o.href==null)||document.styleSheets[0];i.href!=null&&r.push(vf(i.href).then(o=>Mf(o,e)).then(o=>Ff(o).forEach(l=>{s.insertRule(l,s.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",u)}}),Promise.all(r).then(()=>(t.forEach(i=>{if("cssRules"in i)try{Hn(i.cssRules||[]).forEach(u=>{n.push(u)})}catch(u){console.error(`Error while reading CSS rules from ${i.href}`,u)}}),n))}function oy(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>J0(e.style.getPropertyValue("src")))}async function ly(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Hn(t.ownerDocument.styleSheets),r=await sy(n,e);return oy(r)}function Y0(t){return t.trim().replace(/["']/g,"")}function ay(t){const e=new Set;function n(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(u=>{e.add(Y0(u))}),Array.from(r.children).forEach(u=>{u instanceof HTMLElement&&n(u)})}return n(t),e}async function cy(t,e){const n=await ly(t,e),r=ay(t);return(await Promise.all(n.filter(u=>r.has(Y0(u.style.fontFamily))).map(u=>{const s=u.parentStyleSheet?u.parentStyleSheet.href:null;return Z0(u.cssText,s,e)}))).join(`
18
+ `)}async function fy(t,e){const n=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await cy(t,e);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}}async function dy(t,e={}){const{width:n,height:r}=j0(t,e),i=await mo(t,e,!0);return await fy(i,e),await X0(i,e),uy(i,e),await O2(i,n,r)}async function hy(t,e={}){const{width:n,height:r}=j0(t,e),i=await dy(t,e),u=await ds(i),s=document.createElement("canvas"),o=s.getContext("2d"),l=e.pixelRatio||D2(),a=e.canvasWidth||n,c=e.canvasHeight||r;return s.width=a*l,s.height=c*l,e.skipAutoScale||A2(s),s.style.width=`${a}`,s.style.height=`${c}`,e.backgroundColor&&(o.fillStyle=e.backgroundColor,o.fillRect(0,0,s.width,s.height)),o.drawImage(u,0,0,s.width,s.height),s}async function lE(t,e={}){const n=await hy(t,e);return await _2(n)}const Rf={};function py(t){let e=Rf[t];if(e)return e;e=Rf[t]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);e.push(r)}for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return e}function go(t,e){typeof e!="string"&&(e=go.defaultChars);const n=py(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(r){let i="";for(let u=0,s=r.length;u<s;u+=3){const o=parseInt(r.slice(u+1,u+3),16);if(o<128){i+=n[o];continue}if((o&224)===192&&u+3<s){const l=parseInt(r.slice(u+4,u+6),16);if((l&192)===128){const a=o<<6&1984|l&63;a<128?i+="��":i+=String.fromCharCode(a),u+=3;continue}}if((o&240)===224&&u+6<s){const l=parseInt(r.slice(u+4,u+6),16),a=parseInt(r.slice(u+7,u+9),16);if((l&192)===128&&(a&192)===128){const c=o<<12&61440|l<<6&4032|a&63;c<2048||c>=55296&&c<=57343?i+="���":i+=String.fromCharCode(c),u+=6;continue}}if((o&248)===240&&u+9<s){const l=parseInt(r.slice(u+4,u+6),16),a=parseInt(r.slice(u+7,u+9),16),c=parseInt(r.slice(u+10,u+12),16);if((l&192)===128&&(a&192)===128&&(c&192)===128){let f=o<<18&1835008|l<<12&258048|a<<6&4032|c&63;f<65536||f>1114111?i+="����":(f-=65536,i+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),u+=9;continue}}i+="�"}return i})}go.defaultChars=";/?:@&=+$,#";go.componentChars="";const If={};function my(t){let e=If[t];if(e)return e;e=If[t]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?e.push(r):e.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<t.length;n++)e[t.charCodeAt(n)]=t[n];return e}function bo(t,e,n){typeof e!="string"&&(n=e,e=bo.defaultChars),typeof n>"u"&&(n=!0);const r=my(e);let i="";for(let u=0,s=t.length;u<s;u++){const o=t.charCodeAt(u);if(n&&o===37&&u+2<s&&/^[0-9a-f]{2}$/i.test(t.slice(u+1,u+3))){i+=t.slice(u,u+3),u+=2;continue}if(o<128){i+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&u+1<s){const l=t.charCodeAt(u+1);if(l>=56320&&l<=57343){i+=encodeURIComponent(t[u]+t[u+1]),u++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(t[u])}return i}bo.defaultChars=";/?:@&=+$,-_.!~*'()#";bo.componentChars="-_.!~*'()";function gy(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function hs(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const by=/^([a-z0-9.+-]+:)/i,yy=/:[0-9]*$/,xy=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Cy=["<",">",'"',"`"," ","\r",`
19
+ `," "],wy=["{","}","|","\\","^","`"].concat(Cy),Ey=["'"].concat(wy),Pf=["%","/","?",";","#"].concat(Ey),Lf=["/","?","#"],Sy=255,Bf=/^[+a-z0-9A-Z_-]{0,63}$/,ky=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,$f={javascript:!0,"javascript:":!0},zf={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Dy(t,e){if(t&&t instanceof hs)return t;const n=new hs;return n.parse(t,e),n}hs.prototype.parse=function(t,e){let n,r,i,u=t;if(u=u.trim(),!e&&t.split("#").length===1){const a=xy.exec(u);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}let s=by.exec(u);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,u=u.substr(s.length)),(e||s||u.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=u.substr(0,2)==="//",i&&!(s&&$f[s])&&(u=u.substr(2),this.slashes=!0)),!$f[s]&&(i||s&&!zf[s])){let a=-1;for(let p=0;p<Lf.length;p++)r=u.indexOf(Lf[p]),r!==-1&&(a===-1||r<a)&&(a=r);let c,f;a===-1?f=u.lastIndexOf("@"):f=u.lastIndexOf("@",a),f!==-1&&(c=u.slice(0,f),u=u.slice(f+1),this.auth=c),a=-1;for(let p=0;p<Pf.length;p++)r=u.indexOf(Pf[p]),r!==-1&&(a===-1||r<a)&&(a=r);a===-1&&(a=u.length),u[a-1]===":"&&a--;const d=u.slice(0,a);u=u.slice(a),this.parseHost(d),this.hostname=this.hostname||"";const h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){const p=this.hostname.split(/\./);for(let m=0,b=p.length;m<b;m++){const x=p[m];if(x&&!x.match(Bf)){let w="";for(let E=0,O=x.length;E<O;E++)x.charCodeAt(E)>127?w+="x":w+=x[E];if(!w.match(Bf)){const E=p.slice(0,m),O=p.slice(m+1),F=x.match(ky);F&&(E.push(F[1]),O.unshift(F[2])),O.length&&(u=O.join(".")+u),this.hostname=E.join(".");break}}}}this.hostname.length>Sy&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=u.indexOf("#");o!==-1&&(this.hash=u.substr(o),u=u.slice(0,o));const l=u.indexOf("?");return l!==-1&&(this.search=u.substr(l),u=u.slice(0,l)),u&&(this.pathname=u),zf[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};hs.prototype.parseHost=function(t){let e=yy.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const aE=Object.freeze(Object.defineProperty({__proto__:null,decode:go,encode:bo,format:gy,parse:Dy},Symbol.toStringTag,{value:"Module"})),Q0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ep=/[\0-\x1F\x7F-\x9F]/,Ay=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,tp=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,_y=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,np=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,cE=Object.freeze(Object.defineProperty({__proto__:null,Any:Q0,Cc:ep,Cf:Ay,P:tp,S:_y,Z:np},Symbol.toStringTag,{value:"Module"})),Ty=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(t=>t.charCodeAt(0))),Oy=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var Ko;const Ny=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]]),vy=(Ko=String.fromCodePoint)!==null&&Ko!==void 0?Ko:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function My(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=Ny.get(t))!==null&&e!==void 0?e:t}var Oe;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Oe||(Oe={}));const Fy=32;var $n;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})($n||($n={}));function Wl(t){return t>=Oe.ZERO&&t<=Oe.NINE}function Ry(t){return t>=Oe.UPPER_A&&t<=Oe.UPPER_F||t>=Oe.LOWER_A&&t<=Oe.LOWER_F}function Iy(t){return t>=Oe.UPPER_A&&t<=Oe.UPPER_Z||t>=Oe.LOWER_A&&t<=Oe.LOWER_Z||Wl(t)}function Py(t){return t===Oe.EQUALS||Iy(t)}var Te;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Te||(Te={}));var Rn;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Rn||(Rn={}));class Ly{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Te.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Rn.Strict}startEntity(e){this.decodeMode=e,this.state=Te.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Te.EntityStart:return e.charCodeAt(n)===Oe.NUM?(this.state=Te.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Te.NamedEntity,this.stateNamedEntity(e,n));case Te.NumericStart:return this.stateNumericStart(e,n);case Te.NumericDecimal:return this.stateNumericDecimal(e,n);case Te.NumericHex:return this.stateNumericHex(e,n);case Te.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|Fy)===Oe.LOWER_X?(this.state=Te.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Te.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,i){if(n!==r){const u=r-n;this.result=this.result*Math.pow(i,u)+parseInt(e.substr(n,u),i),this.consumed+=u}}stateNumericHex(e,n){const r=n;for(;n<e.length;){const i=e.charCodeAt(n);if(Wl(i)||Ry(i))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){const r=n;for(;n<e.length;){const i=e.charCodeAt(n);if(Wl(i))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(e,r,n,10),-1}emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Oe.SEMI)this.consumed+=1;else if(this.decodeMode===Rn.Strict)return 0;return this.emitCodePoint(My(this.result),this.consumed),this.errors&&(e!==Oe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:r}=this;let i=r[this.treeIndex],u=(i&$n.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const s=e.charCodeAt(n);if(this.treeIndex=By(r,i,this.treeIndex+Math.max(1,u),s),this.treeIndex<0)return this.result===0||this.decodeMode===Rn.Attribute&&(u===0||Py(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],u=(i&$n.VALUE_LENGTH)>>14,u!==0){if(s===Oe.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Rn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,i=(r[n]&$n.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[e]&~$n.VALUE_LENGTH:i[e+1],r),n===3&&this.emitCodePoint(i[e+2],r),r}end(){var e;switch(this.state){case Te.NamedEntity:return this.result!==0&&(this.decodeMode!==Rn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Te.NumericDecimal:return this.emitNumericEntity(0,2);case Te.NumericHex:return this.emitNumericEntity(0,3);case Te.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Te.EntityStart:return 0}}}function rp(t){let e="";const n=new Ly(t,r=>e+=vy(r));return function(i,u){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){e+=i.slice(s,o),n.startEntity(u);const a=n.write(i,o+1);if(a<0){s=o+n.end();break}s=o+a,o=a===0?s+1:s}const l=e+i.slice(s);return e="",l}}function By(t,e,n,r){const i=(e&$n.BRANCH_LENGTH)>>7,u=e&$n.JUMP_TABLE;if(i===0)return u!==0&&r===u?n:-1;if(u){const l=r-u;return l<0||l>=i?-1:t[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,a=t[l];if(a<r)s=l+1;else if(a>r)o=l-1;else return t[l+i]}return-1}const $y=rp(Ty);rp(Oy);function fE(t,e=Rn.Legacy){return $y(t,e)}function zy(t){const e={};t=t||{},e.src_Any=Q0.source,e.src_Cc=ep.source,e.src_Z=np.source,e.src_P=tp.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function Gl(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function yo(t){return Object.prototype.toString.call(t)}function Vy(t){return yo(t)==="[object String]"}function Uy(t){return yo(t)==="[object Object]"}function Hy(t){return yo(t)==="[object RegExp]"}function Vf(t){return yo(t)==="[object Function]"}function qy(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ip={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function jy(t){return Object.keys(t||{}).reduce(function(e,n){return e||ip.hasOwnProperty(n)},!1)}const Wy={"http:":{validate:function(t,e,n){const r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Gy="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Ky="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Jy(t){t.__index__=-1,t.__text_cache__=""}function Zy(t){return function(e,n){const r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Uf(){return function(t,e){e.normalize(t)}}function ps(t){const e=t.re=zy(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Gy),n.push(e.src_xn),e.src_tlds=n.join("|");function r(o){return o.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");const i=[];t.__compiled__={};function u(o,l){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+l)}Object.keys(t.__schemas__).forEach(function(o){const l=t.__schemas__[o];if(l===null)return;const a={validate:null,link:null};if(t.__compiled__[o]=a,Uy(l)){Hy(l.validate)?a.validate=Zy(l.validate):Vf(l.validate)?a.validate=l.validate:u(o,l),Vf(l.normalize)?a.normalize=l.normalize:l.normalize?u(o,l):a.normalize=Uf();return}if(Vy(l)){i.push(o);return}u(o,l)}),i.forEach(function(o){t.__compiled__[t.__schemas__[o]]&&(t.__compiled__[o].validate=t.__compiled__[t.__schemas__[o]].validate,t.__compiled__[o].normalize=t.__compiled__[t.__schemas__[o]].normalize)}),t.__compiled__[""]={validate:null,normalize:Uf()};const s=Object.keys(t.__compiled__).filter(function(o){return o.length>0&&t.__compiled__[o]}).map(qy).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Jy(t)}function Xy(t,e){const n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function Kl(t,e){const n=new Xy(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function At(t,e){if(!(this instanceof At))return new At(t,e);e||jy(t)&&(e=t,t={}),this.__opts__=Gl({},ip,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Gl({},Wy,t),this.__compiled__={},this.__tlds__=Ky,this.__tlds_replaced__=!1,this.re={},ps(this)}At.prototype.add=function(e,n){return this.__schemas__[e]=n,ps(this),this};At.prototype.set=function(e){return this.__opts__=Gl(this.__opts__,e),this};At.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,r,i,u,s,o,l,a,c;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(u=this.testSchemaAt(e,n[2],l.lastIndex),u){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=e.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,o=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o))),this.__index__>=0};At.prototype.pretest=function(e){return this.re.pretest.test(e)};At.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0};At.prototype.match=function(e){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(Kl(this,r)),r=this.__last_index__);let i=r?e.slice(r):e;for(;this.test(i);)n.push(Kl(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};At.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,Kl(this,0)):null};At.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,u){return r!==u[i-1]}).reverse(),ps(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ps(this),this)};At.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};At.prototype.onCompile=function(){};const Jr=2147483647,Kt=36,Ka=1,Qi=26,Yy=38,Qy=700,up=72,sp=128,op="-",e3=/^xn--/,t3=/[^\0-\x7F]/,n3=/[\x2E\u3002\uFF0E\uFF61]/g,r3={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Jo=Kt-Ka,Jt=Math.floor,Zo=String.fromCharCode;function Nn(t){throw new RangeError(r3[t])}function i3(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function lp(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(n3,".");const i=t.split("."),u=i3(i,e).join(".");return r+u}function ap(t){const e=[];let n=0;const r=t.length;for(;n<r;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const u=t.charCodeAt(n++);(u&64512)==56320?e.push(((i&1023)<<10)+(u&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const u3=t=>String.fromCodePoint(...t),s3=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Kt},Hf=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},cp=function(t,e,n){let r=0;for(t=n?Jt(t/Qy):t>>1,t+=Jt(t/e);t>Jo*Qi>>1;r+=Kt)t=Jt(t/Jo);return Jt(r+(Jo+1)*t/(t+Yy))},fp=function(t){const e=[],n=t.length;let r=0,i=sp,u=up,s=t.lastIndexOf(op);s<0&&(s=0);for(let o=0;o<s;++o)t.charCodeAt(o)>=128&&Nn("not-basic"),e.push(t.charCodeAt(o));for(let o=s>0?s+1:0;o<n;){const l=r;for(let c=1,f=Kt;;f+=Kt){o>=n&&Nn("invalid-input");const d=s3(t.charCodeAt(o++));d>=Kt&&Nn("invalid-input"),d>Jt((Jr-r)/c)&&Nn("overflow"),r+=d*c;const h=f<=u?Ka:f>=u+Qi?Qi:f-u;if(d<h)break;const p=Kt-h;c>Jt(Jr/p)&&Nn("overflow"),c*=p}const a=e.length+1;u=cp(r-l,a,l==0),Jt(r/a)>Jr-i&&Nn("overflow"),i+=Jt(r/a),r%=a,e.splice(r++,0,i)}return String.fromCodePoint(...e)},dp=function(t){const e=[];t=ap(t);const n=t.length;let r=sp,i=0,u=up;for(const l of t)l<128&&e.push(Zo(l));const s=e.length;let o=s;for(s&&e.push(op);o<n;){let l=Jr;for(const c of t)c>=r&&c<l&&(l=c);const a=o+1;l-r>Jt((Jr-i)/a)&&Nn("overflow"),i+=(l-r)*a,r=l;for(const c of t)if(c<r&&++i>Jr&&Nn("overflow"),c===r){let f=i;for(let d=Kt;;d+=Kt){const h=d<=u?Ka:d>=u+Qi?Qi:d-u;if(f<h)break;const p=f-h,m=Kt-h;e.push(Zo(Hf(h+p%m,0))),f=Jt(p/m)}e.push(Zo(Hf(f,0))),u=cp(i,a,o===s),i=0,++o}++i,++r}return e.join("")},o3=function(t){return lp(t,function(e){return e3.test(e)?fp(e.slice(4).toLowerCase()):e})},l3=function(t){return lp(t,function(e){return t3.test(e)?"xn--"+dp(e):e})},dE={version:"2.3.1",ucs2:{decode:ap,encode:u3},decode:fp,encode:dp,toASCII:l3,toUnicode:o3};function Fe(t){this.content=t}Fe.prototype={constructor:Fe,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),u=r.content.slice();return i==-1?u.push(n||t,e):(u[i+1]=e,n&&(u[i]=n)),new Fe(u)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Fe(n)},addToStart:function(t,e){return new Fe([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Fe(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),u=r.find(t);return i.splice(u==-1?i.length:u,0,e,n),new Fe(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Fe.from(t),t.size?new Fe(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Fe.from(t),t.size?new Fe(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Fe.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};Fe.from=function(t){if(t instanceof Fe)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Fe(e)};function hp(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),u=e.child(r);if(i==u){n+=i.nodeSize;continue}if(!i.sameMarkup(u))return n;if(i.isText&&i.text!=u.text){for(let s=0;i.text[s]==u.text[s];s++)n++;return n}if(i.content.size||u.content.size){let s=hp(i.content,u.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function pp(t,e,n,r){for(let i=t.childCount,u=e.childCount;;){if(i==0||u==0)return i==u?null:{a:n,b:r};let s=t.child(--i),o=e.child(--u),l=s.nodeSize;if(s==o){n-=l,r-=l;continue}if(!s.sameMarkup(o))return{a:n,b:r};if(s.isText&&s.text!=o.text){let a=0,c=Math.min(s.text.length,o.text.length);for(;a<c&&s.text[s.text.length-a-1]==o.text[o.text.length-a-1];)a++,n--,r--;return{a:n,b:r}}if(s.content.size||o.content.size){let a=pp(s.content,o.content,n-1,r-1);if(a)return a}n-=l,r-=l}}class T{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,u){for(let s=0,o=0;o<n;s++){let l=this.content[s],a=o+l.nodeSize;if(a>e&&r(l,i+o,u||null,s)!==!1&&l.content.size){let c=o+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),r,i+c)}o=a}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let u="",s=!0;return this.nodesBetween(e,n,(o,l)=>{let a=o.isText?o.text.slice(Math.max(e,l)-l,n-l):o.isLeaf?i?typeof i=="function"?i(o):i:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&a||o.isTextblock)&&r&&(s?s=!1:u+=r),u+=a},0),u}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),u=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),u=1);u<e.content.length;u++)i.push(e.content[u]);return new T(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let u=0,s=0;s<n;u++){let o=this.content[u],l=s+o.nodeSize;l>e&&((s<e||l>n)&&(o.isText?o=o.cut(Math.max(0,e-s),Math.min(o.text.length,n-s)):o=o.cut(Math.max(0,e-s-1),Math.min(o.content.size,n-s-1))),r.push(o),i+=o.nodeSize),s=l}return new T(r,i)}cutByIndex(e,n){return e==n?T.empty:e==0&&n==this.content.length?this:new T(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),u=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new T(i,u)}addToStart(e){return new T([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new T(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return hp(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return pp(this,e,n,r)}findIndex(e){if(e==0)return Mu(0,e);if(e==this.size)return Mu(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),u=r+i.nodeSize;if(u>=e)return u==e?Mu(n+1,u):Mu(n,r);r=u}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return T.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new T(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return T.empty;let n,r=0;for(let i=0;i<e.length;i++){let u=e[i];r+=u.nodeSize,i&&u.isText&&e[i-1].sameMarkup(u)?(n||(n=e.slice(0,i)),n[n.length-1]=u.withText(n[n.length-1].text+u.text)):n&&n.push(u)}return new T(n||e,r)}static from(e){if(!e)return T.empty;if(e instanceof T)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new T([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}T.empty=new T([],0);const Xo={index:0,offset:0};function Mu(t,e){return Xo.index=t,Xo.offset=e,Xo}function ms(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!ms(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!ms(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}class ie{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let u=e[i];if(this.eq(u))return e;if(this.type.excludes(u.type))n||(n=e.slice(0,i));else{if(u.type.excludes(this.type))return e;!r&&u.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(u)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ms(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return ie.none;if(e instanceof ie)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}}ie.none=[];class gs extends Error{}class ${constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=gp(this.content,e+this.openStart,n);return r&&new $(r,this.openStart,this.openEnd)}removeBetween(e,n){return new $(mp(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return $.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new $(T.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let u=e.firstChild;u&&!u.isLeaf&&(n||!u.type.spec.isolating);u=u.firstChild)r++;for(let u=e.lastChild;u&&!u.isLeaf&&(n||!u.type.spec.isolating);u=u.lastChild)i++;return new $(e,r,i)}}$.empty=new $(T.empty,0,0);function mp(t,e,n){let{index:r,offset:i}=t.findIndex(e),u=t.maybeChild(r),{index:s,offset:o}=t.findIndex(n);if(i==e||u.isText){if(o!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,u.copy(mp(u.content,e-i-1,n-i-1)))}function gp(t,e,n,r){let{index:i,offset:u}=t.findIndex(e),s=t.maybeChild(i);if(u==e||s.isText)return r&&!r.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let o=gp(s.content,e-u-1,n,s);return o&&t.replaceChild(i,s.copy(o))}function a3(t,e,n){if(n.openStart>t.depth)throw new gs("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new gs("Inconsistent open depths");return bp(t,e,n,0)}function bp(t,e,n,r){let i=t.index(r),u=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let s=bp(t,e,n,r+1);return u.copy(u.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,o=s.content;return wr(s,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}else{let{start:s,end:o}=c3(n,t);return wr(u,xp(t,s,o,e,r))}else return wr(u,bs(t,e,r))}function yp(t,e){if(!e.type.compatibleContent(t.type))throw new gs("Cannot join "+e.type.name+" onto "+t.type.name)}function Jl(t,e,n){let r=t.node(n);return yp(r,e.node(n)),r}function Cr(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ri(t,e,n,r){let i=(e||t).node(n),u=0,s=e?e.index(n):i.childCount;t&&(u=t.index(n),t.depth>n?u++:t.textOffset&&(Cr(t.nodeAfter,r),u++));for(let o=u;o<s;o++)Cr(i.child(o),r);e&&e.depth==n&&e.textOffset&&Cr(e.nodeBefore,r)}function wr(t,e){return t.type.checkContent(e),t.copy(e)}function xp(t,e,n,r,i){let u=t.depth>i&&Jl(t,e,i+1),s=r.depth>i&&Jl(n,r,i+1),o=[];return Ri(null,t,i,o),u&&s&&e.index(i)==n.index(i)?(yp(u,s),Cr(wr(u,xp(t,e,n,r,i+1)),o)):(u&&Cr(wr(u,bs(t,e,i+1)),o),Ri(e,n,i,o),s&&Cr(wr(s,bs(n,r,i+1)),o)),Ri(r,null,i,o),new T(o)}function bs(t,e,n){let r=[];if(Ri(null,t,n,r),t.depth>n){let i=Jl(t,e,n+1);Cr(wr(i,bs(t,e,n+1)),r)}return Ri(e,null,n,r),new T(r)}function c3(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let u=n-1;u>=0;u--)i=e.node(u).copy(T.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class eu{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let u=0;u<e;u++)i+=r.child(u).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return ie.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let o=r;r=i,i=o}let u=r.marks;for(var s=0;s<u.length;s++)u[s].type.spec.inclusive===!1&&(!i||!u[s].isInSet(i.marks))&&(u=u[s--].removeFromSet(u));return u}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var u=0;u<r.length;u++)r[u].type.spec.inclusive===!1&&(!i||!r[u].isInSet(i.marks))&&(r=r[u--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new ys(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,u=n;for(let s=e;;){let{index:o,offset:l}=s.content.findIndex(u),a=u-l;if(r.push(s,o,i+l),!a||(s=s.child(o),s.isText))break;u=a-1,i+=l+1}return new eu(n,r,u)}static resolveCached(e,n){let r=qf.get(e);if(r)for(let u=0;u<r.elts.length;u++){let s=r.elts[u];if(s.pos==n)return s}else qf.set(e,r=new f3);let i=r.elts[r.i]=eu.resolve(e,n);return r.i=(r.i+1)%d3,i}}class f3{constructor(){this.elts=[],this.i=0}}const d3=12,qf=new WeakMap;class ys{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const h3=Object.create(null);class Yt{constructor(e,n,r,i=ie.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||T.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&ms(this.attrs,n||e.defaultAttrs||h3)&&ie.sameSet(this.marks,r||ie.none)}copy(e=null){return e==this.content?this:new Yt(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Yt(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return $.empty;let i=this.resolve(e),u=this.resolve(n),s=r?0:i.sharedDepth(n),o=i.start(s),a=i.node(s).content.cut(i.pos-o,u.pos-o);return new $(a,i.depth-s,u.depth-s)}replace(e,n,r){return a3(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return eu.resolveCached(this,e)}resolveNoCache(e){return eu.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,u=>(r.isInSet(u.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Cp(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=T.empty,i=0,u=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,u),o=s&&s.matchFragment(this.content,n);if(!o||!o.validEnd)return!1;for(let l=i;l<u;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let u=this.contentMatchAt(e).matchType(r),s=u&&u.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=ie.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!ie.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=T.fromJSON(e,n.content),u=e.nodeType(n.type).create(n.attrs,i,r);return u.type.checkAttrs(u.attrs),u}}Yt.prototype.text=void 0;class xs extends Yt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Cp(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new xs(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new xs(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Cp(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Dr{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new p3(e,n);if(r.next==null)return Dr.empty;let i=wp(r);r.next&&r.err("Unexpected trailing text");let u=w3(C3(i));return E3(u,r),u}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let u=n;i&&u<r;u++)i=i.matchType(e.child(u).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function u(s,o){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return T.from(o.map(a=>a.createAndFill()));for(let a=0;a<s.next.length;a++){let{type:c,next:f}=s.next[a];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(f)==-1){i.push(f);let d=u(f,o.concat(c));if(d)return d}}return null}return u(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),u=i.match;if(u.matchType(e)){let s=[];for(let o=i;o.type;o=o.via)s.push(o.type);return s.reverse()}for(let s=0;s<u.next.length;s++){let{type:o,next:l}=u.next[s];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in n)&&(!i.type||l.validEnd)&&(r.push({match:o.contentMatch,type:o,via:i}),n[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let u=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)u+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return u}).join(`
20
+ `)}}Dr.empty=new Dr(!0);class p3{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function wp(t){let e=[];do e.push(m3(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function m3(t){let e=[];do e.push(g3(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function g3(t){let e=x3(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=b3(t,e);else break;return e}function jf(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function b3(t,e){let n=jf(t),r=n;return t.eat(",")&&(t.next!="}"?r=jf(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function y3(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let u in n){let s=n[u];s.isInGroup(e)&&i.push(s)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function x3(t){if(t.eat("(")){let e=wp(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=y3(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function C3(t){let e=[[]];return i(u(t,0),n()),e;function n(){return e.push([])-1}function r(s,o,l){let a={term:l,to:o};return e[s].push(a),a}function i(s,o){s.forEach(l=>l.to=o)}function u(s,o){if(s.type=="choice")return s.exprs.reduce((l,a)=>l.concat(u(a,o)),[]);if(s.type=="seq")for(let l=0;;l++){let a=u(s.exprs[l],o);if(l==s.exprs.length-1)return a;i(a,o=n())}else if(s.type=="star"){let l=n();return r(o,l),i(u(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return i(u(s.expr,o),l),i(u(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(o)].concat(u(s.expr,o));if(s.type=="range"){let l=o;for(let a=0;a<s.min;a++){let c=n();i(u(s.expr,l),c),l=c}if(s.max==-1)i(u(s.expr,l),l);else for(let a=s.min;a<s.max;a++){let c=n();r(l,c),i(u(s.expr,l),c),l=c}return[r(l)]}else{if(s.type=="name")return[r(o,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Ep(t,e){return e-t}function Wf(t,e){let n=[];return r(e),n.sort(Ep);function r(i){let u=t[i];if(u.length==1&&!u[0].term)return r(u[0].to);n.push(i);for(let s=0;s<u.length;s++){let{term:o,to:l}=u[s];!o&&n.indexOf(l)==-1&&r(l)}}}function w3(t){let e=Object.create(null);return n(Wf(t,0));function n(r){let i=[];r.forEach(s=>{t[s].forEach(({term:o,to:l})=>{if(!o)return;let a;for(let c=0;c<i.length;c++)i[c][0]==o&&(a=i[c][1]);Wf(t,l).forEach(c=>{a||i.push([o,a=[]]),a.indexOf(c)==-1&&a.push(c)})})});let u=e[r.join(",")]=new Dr(r.indexOf(t.length-1)>-1);for(let s=0;s<i.length;s++){let o=i[s][1].sort(Ep);u.next.push({type:i[s][0],next:e[o.join(",")]||n(o)})}return u}}function E3(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],u=!i.validEnd,s=[];for(let o=0;o<i.next.length;o++){let{type:l,next:a}=i.next[o];s.push(l.name),u&&!(l.isText||l.hasRequiredAttrs())&&(u=!1),r.indexOf(a)==-1&&r.push(a)}u&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Sp(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function kp(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let u=t[r];if(u.hasDefault)i=u.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function Dp(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in t){let u=t[i];u.validate&&u.validate(e[i])}}function Ap(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new k3(t,r,e[r]);return n}let Gf=class _p{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Ap(e,r.attrs),this.defaultAttrs=Sp(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Dr.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:kp(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Yt(this,this.computeAttrs(e),T.from(n),ie.setFrom(r))}createChecked(e=null,n,r){return n=T.from(n),this.checkContent(n),new Yt(this,this.computeAttrs(e),n,ie.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=T.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let i=this.contentMatch.matchFragment(n),u=i&&i.fillBefore(T.empty,!0);return u?new Yt(this,e,n.append(u),ie.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Dp(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:ie.none:e}static compile(e,n){let r=Object.create(null);e.forEach((u,s)=>r[u]=new _p(u,n,s));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let u in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function S3(t,e,n){let r=n.split("|");return i=>{let u=i===null?"null":typeof i;if(r.indexOf(u)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${u}`)}}class k3{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?S3(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class xo{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=Ap(e,i.attrs),this.excluded=null;let u=Sp(this.attrs);this.instance=u?new ie(this,u):null}create(e=null){return!e&&this.instance?this.instance:new ie(this,kp(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((u,s)=>r[u]=new xo(u,i++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){Dp(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}let hE=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=Fe.from(e.nodes),n.marks=Fe.from(e.marks||{}),this.nodes=Gf.compile(this.spec.nodes,this),this.marks=xo.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let u=this.nodes[i],s=u.spec.content||"",o=u.spec.marks;if(u.contentMatch=r[s]||(r[s]=Dr.parse(s,this.nodes)),u.inlineContent=u.contentMatch.inlineContent,u.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!u.isInline||!u.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=u}u.markSet=o=="_"?null:o?Kf(this,o.split(" ")):o==""||!u.inlineContent?[]:null}for(let i in this.marks){let u=this.marks[i],s=u.spec.excludes;u.excluded=s==null?[u]:s==""?[]:Kf(this,s.split(" "))}this.nodeFromJSON=i=>Yt.fromJSON(this,i),this.markFromJSON=i=>ie.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Gf){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new xs(r,r.defaultAttrs,e,ie.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function Kf(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],u=t.marks[i],s=u;if(u)n.push(u);else for(let o in t.marks){let l=t.marks[o];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function D3(t){return t.tag!=null}function A3(t){return t.style!=null}class tu{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(D3(i))this.tags.push(i);else if(A3(i)){let u=/[^=]*/.exec(i.style)[0];r.indexOf(u)<0&&r.push(u),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let u=e.nodes[i.node];return u.contentMatch.matchType(u)})}parse(e,n={}){let r=new Zf(this,n,!1);return r.addAll(e,ie.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new Zf(this,n,!0);return r.addAll(e,ie.none,n.from,n.to),$.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let u=this.tags[i];if(O3(e,u.tag)&&(u.namespace===void 0||e.namespaceURI==u.namespace)&&(!u.context||n.matchesContext(u.context))){if(u.getAttrs){let s=u.getAttrs(e);if(s===!1)continue;u.attrs=s||void 0}return u}}}matchStyle(e,n,r,i){for(let u=i?this.styles.indexOf(i)+1:0;u<this.styles.length;u++){let s=this.styles[u],o=s.style;if(!(o.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||o.length>e.length&&(o.charCodeAt(e.length)!=61||o.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function r(i){let u=i.priority==null?50:i.priority,s=0;for(;s<n.length;s++){let o=n[s];if((o.priority==null?50:o.priority)<u)break}n.splice(s,0,i)}for(let i in e.marks){let u=e.marks[i].spec.parseDOM;u&&u.forEach(s=>{r(s=Xf(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in e.nodes){let u=e.nodes[i].spec.parseDOM;u&&u.forEach(s=>{r(s=Xf(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new tu(e,tu.schemaRules(e)))}}const Tp={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},_3={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Op={ol:!0,ul:!0},nu=1,Zl=2,Ii=4;function Jf(t,e,n){return e!=null?(e?nu:0)|(e==="full"?Zl:0):t&&t.whitespace=="pre"?nu|Zl:n&~Ii}class Fu{constructor(e,n,r,i,u,s){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=ie.none,this.match=u||(s&Ii?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(T.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&nu)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let u=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=u.withText(u.text.slice(0,u.text.length-i[0].length))}}let n=T.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(T.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Tp.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Zf{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,u,s=Jf(null,n.preserveWhitespace,0)|(r?Ii:0);i?u=new Fu(i.type,i.attrs,ie.none,!0,n.topMatch||i.type.contentMatch,s):r?u=new Fu(null,null,ie.none,!0,null,s):u=new Fu(e.schema.topNodeType,null,ie.none,!0,null,s),this.nodes=[u],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,u=i.options&Zl?"full":this.localPreserveWS||(i.options&nu)>0,{schema:s}=this.parser;if(u==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(u)if(u==="full")r=r.replace(/\r\n?/g,`
21
+ `);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let o=r.split(/\r?\n|\r/);for(let l=0;l<o.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),o[l]&&this.insertNode(s.text(o[l]),n,!/\S/.test(o[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=i.content[i.content.length-1],l=e.previousSibling;(!o||l&&l.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,u=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),o;Op.hasOwnProperty(s)&&this.parser.normalizeLists&&T3(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));e:if(l?l.ignore:_3.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let a,c=this.needsBlock;if(Tp.hasOwnProperty(s))u.content.length&&u.content[0].isInline&&this.open&&(this.open--,u=this.top),a=!0,u.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let f=l&&l.skip?n:this.readStyles(e,n);f&&this.addAll(e,f),a&&this.sync(u),this.needsBlock=c}else{let a=this.readStyles(e,n);a&&this.addElementByRule(e,l,a,l.consuming===!1?o:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
22
+ `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let u=this.parser.matchedStyles[i],s=r.getPropertyValue(u);if(s)for(let o=void 0;;){let l=this.parser.matchStyle(u,s,this,o);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(a=>!l.clearMark(a)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)o=l;else break}}return n}addElementByRule(e,n,r,i){let u,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(s,n.attrs||null,r,n.preserveWhitespace);l&&(u=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let o=this.top;if(s&&s.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}u&&this.sync(o)&&this.open--}addAll(e,n,r,i){let u=r||0;for(let s=r?e.childNodes[r]:e.firstChild,o=i==null?null:e.childNodes[i];s!=o;s=s.nextSibling,++u)this.findAtPoint(e,u),this.addDOM(s,n);this.findAtPoint(e,u)}findPlace(e,n,r){let i,u;for(let s=this.open,o=0;s>=0;s--){let l=this.nodes[s],a=l.findWrapping(e);if(a&&(!i||i.length>a.length+o)&&(i=a,u=l,!a.length))break;if(l.solid){if(r)break;o+=2}}if(!i)return null;this.sync(u);for(let s=0;s<i.length;s++)n=this.enterInner(i[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let u=this.textblockFromContext();u&&(n=this.enterInner(u,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let u=this.top;u.match&&(u.match=u.match.matchType(e.type));let s=ie.none;for(let o of i.concat(e.marks))(u.type?u.type.allowsMarkType(o.type):Yf(o.type,e.type))&&(s=o.addToSet(s));return u.content.push(e.mark(s)),!0}return!1}enter(e,n,r,i){let u=this.findPlace(e.create(n),r,!1);return u&&(u=this.enterInner(e,n,r,!0,i)),u}enterInner(e,n,r,i=!1,u){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let o=Jf(e,u,s.options);s.options&Ii&&s.content.length==0&&(o|=Ii);let l=ie.none;return r=r.filter(a=>(s.type?s.type.allowsMarkType(a.type):Yf(a.type,e))?(l=a.addToSet(l),!1):!0),this.nodes.push(new Fu(e,n,l,i,null,o)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=nu)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),u=-(r?r.depth+1:0)+(i?0:1),s=(o,l)=>{for(;o>=0;o--){let a=n[o];if(a==""){if(o==n.length-1||o==0)continue;for(;l>=u;l--)if(s(o-1,l))return!0;return!1}else{let c=l>0||l==0&&i?this.nodes[l].type:r&&l>=u?r.node(l-u).type:null;if(!c||c.name!=a&&!c.isInGroup(a))return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function T3(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Op.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function O3(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Xf(t){let e={};for(let n in t)e[n]=t[n];return e}function Yf(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let u=[],s=o=>{u.push(o);for(let l=0;l<o.edgeCount;l++){let{type:a,next:c}=o.edge(l);if(a==e||u.indexOf(c)<0&&s(c))return!0}};if(s(i.contentMatch))return!0}}class li{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Yo(n).createDocumentFragment());let i=r,u=[];return e.forEach(s=>{if(u.length||s.marks.length){let o=0,l=0;for(;o<u.length&&l<s.marks.length;){let a=s.marks[l];if(!this.marks[a.type.name]){l++;continue}if(!a.eq(u[o][0])||a.type.spec.spanning===!1)break;o++,l++}for(;o<u.length;)i=u.pop()[1];for(;l<s.marks.length;){let a=s.marks[l++],c=this.serializeMark(a,s.isInline,n);c&&(u.push([a,i]),i.appendChild(c.dom),i=c.contentDOM||c.dom)}}i.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:i}=Zu(Yo(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let u=this.serializeMark(e.marks[i],e.isInline,n);u&&((u.contentDOM||u.dom).appendChild(r),r=u.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Zu(Yo(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return Zu(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new li(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Qf(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Qf(e.marks)}}function Qf(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Yo(t){return t.document||window.document}const ed=new WeakMap;function N3(t){let e=ed.get(t);return e===void 0&&ed.set(t,e=v3(t)),e}function v3(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function Zu(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let i=e[0],u;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(u=N3(r))&&u.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let o,l=n?t.createElementNS(n,i):t.createElement(i),a=e[1],c=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){c=2;for(let f in a)if(a[f]!=null){let d=f.indexOf(" ");d>0?l.setAttributeNS(f.slice(0,d),f.slice(d+1),a[f]):f=="style"&&l.style?l.style.cssText=a[f]:l.setAttribute(f,a[f])}}for(let f=c;f<e.length;f++){let d=e[f];if(d===0){if(f<e.length-1||f>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:p}=Zu(t,d,n,r);if(l.appendChild(h),p){if(o)throw new RangeError("Multiple content holes");o=p}}}return{dom:l,contentDOM:o}}const Np=65535,vp=Math.pow(2,16);function M3(t,e){return t+e*vp}function td(t){return t&Np}function F3(t){return(t-(t&Np))/vp}const Mp=1,Fp=2,Xu=4,Rp=8;class Xl{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Rp)>0}get deletedBefore(){return(this.delInfo&(Mp|Xu))>0}get deletedAfter(){return(this.delInfo&(Fp|Xu))>0}get deletedAcross(){return(this.delInfo&Xu)>0}}class ft{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&ft.empty)return ft.empty}recover(e){let n=0,r=td(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+F3(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,u=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?i:0);if(l>e)break;let a=this.ranges[o+u],c=this.ranges[o+s],f=l+a;if(e<=f){let d=a?e==l?-1:e==f?1:n:n,h=l+i+(d<0?0:c);if(r)return h;let p=e==(n<0?l:f)?null:M3(o/3,e-l),m=e==l?Fp:e==f?Mp:Xu;return(n<0?e!=l:e!=f)&&(m|=Rp),new Xl(h,m,p)}i+=c-a}return r?e+i:new Xl(e+i,0,null)}touches(e,n){let r=0,i=td(n),u=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?r:0);if(l>e)break;let a=this.ranges[o+u],c=l+a;if(e<=c&&o==i*3)return!0;r+=this.ranges[o+s]-a}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,u=0;i<this.ranges.length;i+=3){let s=this.ranges[i],o=s-(this.inverted?u:0),l=s+(this.inverted?0:u),a=this.ranges[i+n],c=this.ranges[i+r];e(o,o+a,l,l+c),u+=c-a}}invert(){return new ft(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?ft.empty:new ft(e<0?[0,-e,0]:[0,0,e])}}ft.empty=new ft([]);class ru{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new ru(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new ru;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let u=this.from;u<this.to;u++){let s=this._maps[u],o=s.mapResult(e,n);if(o.recover!=null){let l=this.getMirror(u);if(l!=null&&l>u&&l<this.to){u=l,e=this._maps[l].recover(o.recover);continue}}i|=o.delInfo,e=o.pos}return r?e:new Xl(e,i,null)}}const Qo=Object.create(null);class We{getMap(){return ft.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Qo[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Qo)throw new RangeError("Duplicate use of step JSON ID "+e);return Qo[e]=n,n.prototype.jsonID=e,n}}class Ee{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Ee(e,null)}static fail(e){return new Ee(null,e)}static fromReplace(e,n,r,i){try{return Ee.ok(e.replace(n,r,i))}catch(u){if(u instanceof gs)return Ee.fail(u.message);throw u}}}function Ja(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let u=t.child(i);u.content.size&&(u=u.copy(Ja(u.content,e,u))),u.isInline&&(u=e(u,n,i)),r.push(u)}return T.fromArray(r)}class zn extends We{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),u=new $(Ja(n.content,(s,o)=>!s.isAtom||!o.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return Ee.fromReplace(e,this.from,this.to,u)}invert(){return new Zt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new zn(n.pos,r.pos,this.mark)}merge(e){return e instanceof zn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new zn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new zn(n.from,n.to,e.markFromJSON(n.mark))}}We.jsonID("addMark",zn);class Zt extends We{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new $(Ja(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return Ee.fromReplace(e,this.from,this.to,r)}invert(){return new zn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Zt(n.pos,r.pos,this.mark)}merge(e){return e instanceof Zt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Zt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Zt(n.from,n.to,e.markFromJSON(n.mark))}}We.jsonID("removeMark",Zt);class Vn extends We{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ee.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Ee.fromReplace(e,this.pos,this.pos+1,new $(T.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new Vn(this.pos,n.marks[i]);return new Vn(this.pos,this.mark)}}return new Ar(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Vn(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Vn(n.pos,e.markFromJSON(n.mark))}}We.jsonID("addNodeMark",Vn);class Ar extends We{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ee.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Ee.fromReplace(e,this.pos,this.pos+1,new $(T.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Vn(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ar(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ar(n.pos,e.markFromJSON(n.mark))}}We.jsonID("removeNodeMark",Ar);class ke extends We{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&Yl(e,this.from,this.to)?Ee.fail("Structure replace would overwrite content"):Ee.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new ft([this.from,this.to-this.from,this.slice.size])}invert(e){return new ke(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&ke.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new ke(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof ke)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?$.empty:new $(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ke(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?$.empty:new $(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ke(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ke(n.from,n.to,$.fromJSON(e,n.slice),!!n.structure)}}ke.MAP_BIAS=1;We.jsonID("replace",ke);class ze extends We{constructor(e,n,r,i,u,s,o=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=u,this.insert=s,this.structure=o}apply(e){if(this.structure&&(Yl(e,this.from,this.gapFrom)||Yl(e,this.gapTo,this.to)))return Ee.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Ee.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Ee.fromReplace(e,this.from,this.to,r):Ee.fail("Content does not fit in gap")}getMap(){return new ft([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new ze(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),u=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||u>r.pos?null:new ze(n.pos,r.pos,i,u,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ze(n.from,n.to,n.gapFrom,n.gapTo,$.fromJSON(e,n.slice),n.insert,!!n.structure)}}We.jsonID("replaceAround",ze);function Yl(t,e,n){let r=t.resolve(e),i=n-e,u=r.depth;for(;i>0&&u>0&&r.indexAfter(u)==r.node(u).childCount;)u--,i--;if(i>0){let s=r.node(u).maybeChild(r.indexAfter(u));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function R3(t,e,n,r){let i=[],u=[],s,o;t.doc.nodesBetween(e,n,(l,a,c)=>{if(!l.isInline)return;let f=l.marks;if(!r.isInSet(f)&&c.type.allowsMarkType(r.type)){let d=Math.max(a,e),h=Math.min(a+l.nodeSize,n),p=r.addToSet(f);for(let m=0;m<f.length;m++)f[m].isInSet(p)||(s&&s.to==d&&s.mark.eq(f[m])?s.to=h:i.push(s=new Zt(d,h,f[m])));o&&o.to==d?o.to=h:u.push(o=new zn(d,h,r))}}),i.forEach(l=>t.step(l)),u.forEach(l=>t.step(l))}function I3(t,e,n,r){let i=[],u=0;t.doc.nodesBetween(e,n,(s,o)=>{if(!s.isInline)return;u++;let l=null;if(r instanceof xo){let a=s.marks,c;for(;c=r.isInSet(a);)(l||(l=[])).push(c),a=c.removeFromSet(a)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let a=Math.min(o+s.nodeSize,n);for(let c=0;c<l.length;c++){let f=l[c],d;for(let h=0;h<i.length;h++){let p=i[h];p.step==u-1&&f.eq(i[h].style)&&(d=p)}d?(d.to=a,d.step=u):i.push({style:f,from:Math.max(o,e),to:a,step:u})}}}),i.forEach(s=>t.step(new Zt(s.from,s.to,s.style)))}function Za(t,e,n,r=n.contentMatch,i=!0){let u=t.doc.nodeAt(e),s=[],o=e+1;for(let l=0;l<u.childCount;l++){let a=u.child(l),c=o+a.nodeSize,f=r.matchType(a.type);if(!f)s.push(new ke(o,c,$.empty));else{r=f;for(let d=0;d<a.marks.length;d++)n.allowsMarkType(a.marks[d].type)||t.step(new Zt(o,c,a.marks[d]));if(i&&a.isText&&n.whitespace!="pre"){let d,h=/\r?\n|\r/g,p;for(;d=h.exec(a.text);)p||(p=new $(T.from(n.schema.text(" ",n.allowedMarks(a.marks))),0,0)),s.push(new ke(o+d.index,o+d.index+d[0].length,p))}}o=c}if(!r.validEnd){let l=r.fillBefore(T.empty,!0);t.replace(o,o,new $(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function P3(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function bu(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,u=0;;--r){let s=t.$from.node(r),o=t.$from.index(r)+i,l=t.$to.indexAfter(r)-u;if(r<t.depth&&s.canReplace(o,l,n))return r;if(r==0||s.type.spec.isolating||!P3(s,o,l))break;o&&(i=1),l<s.childCount&&(u=1)}return null}function L3(t,e,n){let{$from:r,$to:i,depth:u}=e,s=r.before(u+1),o=i.after(u+1),l=s,a=o,c=T.empty,f=0;for(let p=u,m=!1;p>n;p--)m||r.index(p)>0?(m=!0,c=T.from(r.node(p).copy(c)),f++):l--;let d=T.empty,h=0;for(let p=u,m=!1;p>n;p--)m||i.after(p+1)<i.end(p)?(m=!0,d=T.from(i.node(p).copy(d)),h++):a++;t.step(new ze(l,a,s,o,new $(c.append(d),f,h),c.size-f,!0))}function Ip(t,e,n=null,r=t){let i=B3(t,e),u=i&&$3(r,e);return u?i.map(nd).concat({type:e,attrs:n}).concat(u.map(nd)):null}function nd(t){return{type:t,attrs:null}}function B3(t,e){let{parent:n,startIndex:r,endIndex:i}=t,u=n.contentMatchAt(r).findWrapping(e);if(!u)return null;let s=u.length?u[0]:e;return n.canReplaceWith(r,i,s)?u:null}function $3(t,e){let{parent:n,startIndex:r,endIndex:i}=t,u=n.child(r),s=e.contentMatch.findWrapping(u.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let a=r;l&&a<i;a++)l=l.matchType(n.child(a).type);return!l||!l.validEnd?null:s}function z3(t,e,n){let r=T.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let o=n[s].type.contentMatch.matchFragment(r);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=T.from(n[s].type.create(n[s].attrs,r))}let i=e.start,u=e.end;t.step(new ze(i,u,i,u,new $(r,0,0),n.length,!0))}function V3(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let u=t.steps.length;t.doc.nodesBetween(e,n,(s,o)=>{let l=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,l)&&U3(t.doc,t.mapping.slice(u).map(o),r)){let a=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?a=!1:!h&&p&&(a=!0)}a===!1&&Lp(t,s,o,u),Za(t,t.mapping.slice(u).map(o,1),r,void 0,a===null);let c=t.mapping.slice(u),f=c.map(o,1),d=c.map(o+s.nodeSize,1);return t.step(new ze(f,d,f+1,d-1,new $(T.from(r.create(l,null,s.marks)),0,0),1,!0)),a===!0&&Pp(t,s,o,u),!1}})}function Pp(t,e,n,r){e.forEach((i,u)=>{if(i.isText){let s,o=/\r?\n|\r/g;for(;s=o.exec(i.text);){let l=t.mapping.slice(r).map(n+1+u+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function Lp(t,e,n,r){e.forEach((i,u)=>{if(i.type==i.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+u);t.replaceWith(s,s+1,e.type.schema.text(`
23
+ `))}})}function U3(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function H3(t,e,n,r,i){let u=t.doc.nodeAt(e);if(!u)throw new RangeError("No node at given position");n||(n=u.type);let s=n.create(r,null,i||u.marks);if(u.isLeaf)return t.replaceWith(e,e+u.nodeSize,s);if(!n.validContent(u.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new ze(e,e+u.nodeSize,e+1,e+u.nodeSize-1,new $(T.from(s),0,0),1,!0))}function Pi(t,e,n=1,r){let i=t.resolve(e),u=i.depth-n,s=r&&r[r.length-1]||i.parent;if(u<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let a=i.depth-1,c=n-2;a>u;a--,c--){let f=i.node(a),d=i.index(a);if(f.type.spec.isolating)return!1;let h=f.content.cutByIndex(d,f.childCount),p=r&&r[c+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[c]||f;if(!f.canReplace(d+1,f.childCount)||!m.type.validContent(h))return!1}let o=i.indexAfter(u),l=r&&r[0];return i.node(u).canReplaceWith(o,o,l?l.type:i.node(u+1).type)}function q3(t,e,n=1,r){let i=t.doc.resolve(e),u=T.empty,s=T.empty;for(let o=i.depth,l=i.depth-n,a=n-1;o>l;o--,a--){u=T.from(i.node(o).copy(u));let c=r&&r[a];s=T.from(c?c.type.create(c.attrs,s):i.node(o).copy(s))}t.step(new ke(e,e,new $(u.append(s),n,n),!0))}function yu(t,e){let n=t.resolve(e),r=n.index();return Bp(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function j3(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i<e.childCount;i++){let u=e.child(i),s=u.type==r?t.type.schema.nodes.text:u.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(u.marks))return!1}return n.validEnd}function Bp(t,e){return!!(t&&e&&!t.isLeaf&&j3(t,e))}function $p(t,e,n=-1){let r=t.resolve(e);for(let i=r.depth;;i--){let u,s,o=r.index(i);if(i==r.depth?(u=r.nodeBefore,s=r.nodeAfter):n>0?(u=r.node(i+1),o++,s=r.node(i).maybeChild(o)):(u=r.node(i).maybeChild(o-1),s=r.node(i+1)),u&&!u.isTextblock&&Bp(u,s)&&r.node(i).canReplace(o,o+1))return e;if(i==0)break;e=n<0?r.before(i):r.after(i)}}function W3(t,e,n){let r=null,{linebreakReplacement:i}=t.doc.type.schema,u=t.doc.resolve(e-n),s=u.node().type;if(i&&s.inlineContent){let c=s.whitespace=="pre",f=!!s.contentMatch.matchType(i);c&&!f?r=!1:!c&&f&&(r=!0)}let o=t.steps.length;if(r===!1){let c=t.doc.resolve(e+n);Lp(t,c.node(),c.before(),o)}s.inlineContent&&Za(t,e+n-1,s,u.node().contentMatchAt(u.index()),r==null);let l=t.mapping.slice(o),a=l.map(e-n);if(t.step(new ke(a,l.map(e+n,-1),$.empty,!0)),r===!0){let c=t.doc.resolve(a);Pp(t,c.node(),c.before(),t.steps.length)}return t}function G3(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let u=r.index(i);if(r.node(i).canReplaceWith(u,u,n))return r.before(i+1);if(u>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let u=r.indexAfter(i);if(r.node(i).canReplaceWith(u,u,n))return r.after(i+1);if(u<r.node(i).childCount)return null}return null}function zp(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let u=0;u<n.openStart;u++)i=i.firstChild.content;for(let u=1;u<=(n.openStart==0&&n.size?2:1);u++)for(let s=r.depth;s>=0;s--){let o=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,l=r.index(s)+(o>0?1:0),a=r.node(s),c=!1;if(u==1)c=a.canReplace(l,l,i);else{let f=a.contentMatchAt(l).findWrapping(i.firstChild.type);c=f&&a.canReplaceWith(l,l,f[0])}if(c)return o==0?r.pos:o<0?r.before(s+1):r.after(s+1)}return null}function Co(t,e,n=e,r=$.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),u=t.resolve(n);return Vp(i,u,r)?new ke(e,n,r):new K3(i,u,r).fit()}function Vp(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class K3{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=T.empty;for(let i=0;i<=e.depth;i++){let u=e.node(i);this.frontier.push({type:u.type,match:u.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=T.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let a=this.findFittable();a?this.placeNodes(a):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let u=this.placed,s=r.depth,o=i.depth;for(;s&&o&&u.childCount==1;)u=u.firstChild.content,s--,o--;let l=new $(u,s,o);return e>-1?new ze(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new ke(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let u=n.firstChild;if(n.childCount>1&&(i=0),u.type.spec.isolating&&i<=r){e=r;break}n=u.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,u=null;r?(u=el(this.unplaced.content,r-1).firstChild,i=u.content):i=this.unplaced.content;let s=i.firstChild;for(let o=this.depth;o>=0;o--){let{type:l,match:a}=this.frontier[o],c,f=null;if(n==1&&(s?a.matchType(s.type)||(f=a.fillBefore(T.from(s),!1)):u&&l.compatibleContent(u.type)))return{sliceDepth:r,frontierDepth:o,parent:u,inject:f};if(n==2&&s&&(c=a.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:o,parent:u,wrap:c};if(u&&a.matchType(u.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=el(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new $(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=el(e,n);if(i.childCount<=1&&n>0){let u=e.size-n<=n+i.size;this.unplaced=new $(Ei(e,n-1,1),n-1,u?n-1:r)}else this.unplaced=new $(Ei(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:u}){for(;this.depth>n;)this.closeFrontierNode();if(u)for(let m=0;m<u.length;m++)this.openFrontierNode(u[m]);let s=this.unplaced,o=r?r.content:s.content,l=s.openStart-e,a=0,c=[],{match:f,type:d}=this.frontier[n];if(i){for(let m=0;m<i.childCount;m++)c.push(i.child(m));f=f.matchFragment(i)}let h=o.size+e-(s.content.size-s.openEnd);for(;a<o.childCount;){let m=o.child(a),b=f.matchType(m.type);if(!b)break;a++,(a>1||l==0||m.content.size)&&(f=b,c.push(Up(m.mark(d.allowedMarks(m.marks)),a==1?l:0,a==o.childCount?h:-1)))}let p=a==o.childCount;p||(h=-1),this.placed=Si(this.placed,n,T.from(c)),this.frontier[n].match=f,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,b=o;m<h;m++){let x=b.lastChild;this.frontier.push({type:x.type,match:x.contentMatchAt(x.childCount)}),b=x.content}this.unplaced=p?e==0?$.empty:new $(Ei(s.content,e-1,1),e-1,h<0?s.openEnd:e-1):new $(Ei(s.content,e,a),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!tl(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],u=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=tl(e,n,i,r,u);if(s){for(let o=n-1;o>=0;o--){let{match:l,type:a}=this.frontier[o],c=tl(e,o,a,l,!0);if(!c||c.childCount)continue e}return{depth:n,fit:s,move:u?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Si(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),u=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,u)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Si(this.placed,this.depth,T.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(T.empty,!0);n.childCount&&(this.placed=Si(this.placed,this.frontier.length,n))}}function Ei(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Ei(t.firstChild.content,e-1,n)))}function Si(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Si(t.lastChild.content,e-1,n)))}function el(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function Up(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,Up(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(T.empty,!0)))),t.copy(r)}function tl(t,e,n,r,i){let u=t.node(e),s=i?t.indexAfter(e):t.index(e);if(s==u.childCount&&!n.compatibleContent(u.type))return null;let o=r.fillBefore(u.content,!0,s);return o&&!J3(n,u.content,s)?o:null}function J3(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function Z3(t){return t.spec.defining||t.spec.definingForContent}function X3(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let i=t.doc.resolve(e),u=t.doc.resolve(n);if(Vp(i,u,r))return t.step(new ke(e,n,r));let s=qp(i,u);s[s.length-1]==0&&s.pop();let o=-(i.depth+1);s.unshift(o);for(let d=i.depth,h=i.pos-1;d>0;d--,h--){let p=i.node(d).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(d)>-1?o=d:i.before(d)==h&&s.splice(1,0,-d)}let l=s.indexOf(o),a=[],c=r.openStart;for(let d=r.content,h=0;;h++){let p=d.firstChild;if(a.push(p),h==r.openStart)break;d=p.content}for(let d=c-1;d>=0;d--){let h=a[d],p=Z3(h.type);if(p&&!h.sameMarkup(i.node(Math.abs(o)-1)))c=d;else if(p||!h.type.isTextblock)break}for(let d=r.openStart;d>=0;d--){let h=(d+c+1)%(r.openStart+1),p=a[h];if(p)for(let m=0;m<s.length;m++){let b=s[(m+l)%s.length],x=!0;b<0&&(x=!1,b=-b);let w=i.node(b-1),E=i.index(b-1);if(w.canReplaceWith(E,E,p.type,p.marks))return t.replace(i.before(b),x?u.after(b):n,new $(Hp(r.content,0,r.openStart,h),h,r.openEnd))}}let f=t.steps.length;for(let d=s.length-1;d>=0&&(t.replace(e,n,r),!(t.steps.length>f));d--){let h=s[d];h<0||(e=i.before(h),n=u.after(h))}}function Hp(t,e,n,r,i){if(e<n){let u=t.firstChild;t=t.replaceChild(0,u.copy(Hp(u.content,e+1,n,r,u)))}if(e>r){let u=i.contentMatchAt(0),s=u.fillBefore(t).append(t);t=s.append(u.matchFragment(s).fillBefore(T.empty,!0))}return t}function Y3(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=G3(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new $(T.from(r),0,0))}function Q3(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let s=r.sharedDepth(n),o=!1;for(let l=r.depth;l>s;l--)r.node(l).type.spec.isolating&&(o=!0);for(let l=i.depth;l>s;l--)i.node(l).type.spec.isolating&&(o=!0);if(!o){for(let l=r.depth;l>0&&e==r.start(l);l--)e=r.before(l);for(let l=i.depth;l>0&&n==i.start(l);l--)n=i.before(l);r=t.doc.resolve(e),i=t.doc.resolve(n)}}let u=qp(r,i);for(let s=0;s<u.length;s++){let o=u[s],l=s==u.length-1;if(l&&o==0||r.node(o).type.contentMatch.validEnd)return t.delete(r.start(o),i.end(o));if(o>0&&(l||r.node(o-1).canReplace(r.index(o-1),i.indexAfter(o-1))))return t.delete(r.before(o),i.after(o))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&i.end(s)-n!=i.depth-s&&r.start(s-1)==i.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),i.index(s-1)))return t.delete(r.before(s),n);t.delete(e,n)}function qp(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let u=t.start(i);if(u<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(u==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==u-1)&&n.push(i)}return n}class Zr extends We{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ee.fail("No node at attribute step's position");let r=Object.create(null);for(let u in n.attrs)r[u]=n.attrs[u];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Ee.fromReplace(e,this.pos,this.pos+1,new $(T.from(i),0,n.isLeaf?0:1))}getMap(){return ft.empty}invert(e){return new Zr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Zr(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Zr(n.pos,n.attr,n.value)}}We.jsonID("attr",Zr);class iu extends We{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Ee.ok(r)}getMap(){return ft.empty}invert(e){return new iu(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new iu(n.attr,n.value)}}We.jsonID("docAttr",iu);let ri=class extends Error{};ri=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};ri.prototype=Object.create(Error.prototype);ri.prototype.constructor=ri;ri.prototype.name="TransformError";class ex{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ru}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ri(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];r&&(e=i.map(e,1),n=i.map(n,-1)),i.forEach((u,s,o,l)=>{e=Math.min(e,o),n=Math.max(n,l)})}return e==1e9?null:{from:e,to:n}}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=$.empty){let i=Co(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new $(T.from(r),0,0))}delete(e,n){return this.replace(e,n,$.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return X3(this,e,n,r),this}replaceRangeWith(e,n,r){return Y3(this,e,n,r),this}deleteRange(e,n){return Q3(this,e,n),this}lift(e,n){return L3(this,e,n),this}join(e,n=1){return W3(this,e,n),this}wrap(e,n){return z3(this,e,n),this}setBlockType(e,n=e,r,i=null){return V3(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return H3(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new Zr(e,n,r)),this}setDocAttribute(e,n){return this.step(new iu(e,n)),this}addNodeMark(e,n){return this.step(new Vn(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof ie)n.isInSet(r.marks)&&this.step(new Ar(e,n));else{let i=r.marks,u,s=[];for(;u=n.isInSet(i);)s.push(new Ar(e,u)),i=u.removeFromSet(i);for(let o=s.length-1;o>=0;o--)this.step(s[o])}return this}split(e,n=1,r){return q3(this,e,n,r),this}addMark(e,n,r){return R3(this,e,n,r),this}removeMark(e,n,r){return I3(this,e,n,r),this}clearIncompatible(e,n,r){return Za(this,e,n,r),this}}const nl=Object.create(null);class Q{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new tx(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=$.empty){let r=n.content.lastChild,i=null;for(let o=0;o<n.openEnd;o++)i=r,r=r.lastChild;let u=e.steps.length,s=this.ranges;for(let o=0;o<s.length;o++){let{$from:l,$to:a}=s[o],c=e.mapping.slice(u);e.replaceRange(c.map(l.pos),c.map(a.pos),o?$.empty:n),o==0&&ud(e,u,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,i=this.ranges;for(let u=0;u<i.length;u++){let{$from:s,$to:o}=i[u],l=e.mapping.slice(r),a=l.map(s.pos),c=l.map(o.pos);u?e.deleteRange(a,c):(e.replaceRangeWith(a,c,n),ud(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let i=e.parent.inlineContent?new ne(e):$r(e.node(0),e.parent,e.pos,e.index(),n,r);if(i)return i;for(let u=e.depth-1;u>=0;u--){let s=n<0?$r(e.node(0),e.node(u),e.before(u+1),e.index(u),n,r):$r(e.node(0),e.node(u),e.after(u+1),e.index(u)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new St(e.node(0))}static atStart(e){return $r(e,e,0,0,1)||new St(e)}static atEnd(e){return $r(e,e,e.content.size,e.childCount,-1)||new St(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=nl[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in nl)throw new RangeError("Duplicate use of selection JSON ID "+e);return nl[e]=n,n.prototype.jsonID=e,n}getBookmark(){return ne.between(this.$anchor,this.$head).getBookmark()}}Q.prototype.visible=!0;class tx{constructor(e,n){this.$from=e,this.$to=n}}let rd=!1;function id(t){!rd&&!t.parent.inlineContent&&(rd=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class ne extends Q{constructor(e,n=e){id(e),id(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return Q.near(r);let i=e.resolve(n.map(this.anchor));return new ne(i.parent.inlineContent?i:r,r)}replace(e,n=$.empty){if(super.replace(e,n),n==$.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof ne&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new wo(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new ne(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let u=Q.findFrom(n,r,!0)||Q.findFrom(n,-r,!0);if(u)n=u.$head;else return Q.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(Q.findFrom(e,-r,!0)||Q.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=i<0&&(e=n))),new ne(e,n)}}Q.jsonID("text",ne);class wo{constructor(e,n){this.anchor=e,this.head=n}map(e){return new wo(e.map(this.anchor),e.map(this.head))}resolve(e){return ne.between(e.resolve(this.anchor),e.resolve(this.head))}}class q extends Q{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),u=e.resolve(i);return r?Q.near(u):new q(u)}content(){return new $(T.from(this.node),0,0)}eq(e){return e instanceof q&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Xa(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new q(e.resolve(n.anchor))}static create(e,n){return new q(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}q.prototype.visible=!1;Q.jsonID("node",q);class Xa{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new wo(r,r):new Xa(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&q.isSelectable(r)?new q(n):Q.near(n)}}class St extends Q{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=$.empty){if(n==$.empty){e.delete(0,e.doc.content.size);let r=Q.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new St(e)}map(e){return new St(e)}eq(e){return e instanceof St}getBookmark(){return nx}}Q.jsonID("all",St);const nx={map(){return this},resolve(t){return new St(t)}};function $r(t,e,n,r,i,u=!1){if(e.inlineContent)return ne.create(t,n);for(let s=r-(i>0?0:1);i>0?s<e.childCount:s>=0;s+=i){let o=e.child(s);if(o.isAtom){if(!u&&q.isSelectable(o))return q.create(t,n-(i<0?o.nodeSize:0))}else{let l=$r(t,o,n+i,i<0?o.childCount:0,i,u);if(l)return l}n+=o.nodeSize*i}return null}function ud(t,e,n){let r=t.steps.length-1;if(r<e)return;let i=t.steps[r];if(!(i instanceof ke||i instanceof ze))return;let u=t.mapping.maps[r],s;u.forEach((o,l,a,c)=>{s==null&&(s=c)}),t.setSelection(Q.near(t.doc.resolve(s),n))}const sd=1,Ru=2,od=4;class rx extends ex{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|sd)&~Ru,this.storedMarks=null,this}get selectionSet(){return(this.updated&sd)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Ru,this}ensureMarks(e){return ie.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ru)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Ru,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||ie.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),!e)return this.deleteRange(n,r);let u=this.storedMarks;if(!u){let s=this.doc.resolve(n);u=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,u)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(Q.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=od,this}get scrolledIntoView(){return(this.updated&od)>0}}function ld(t,e){return!e||!t?t:t.bind(e)}class ki{constructor(e,n,r){this.name=e,this.init=ld(n.init,r),this.apply=ld(n.apply,r)}}const ix=[new ki("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new ki("selection",{init(t,e){return t.selection||Q.atStart(e.doc)},apply(t){return t.selection}}),new ki("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new ki("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class rl{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=ix.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new ki(r.key,r.spec.state,r))})}}class Di{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),i=null;for(;;){let u=!1;for(let s=0;s<this.config.plugins.length;s++){let o=this.config.plugins[s];if(o.spec.appendTransaction){let l=i?i[s].n:0,a=i?i[s].state:this,c=l<n.length&&o.spec.appendTransaction.call(o,l?n.slice(l):n,a,r);if(c&&r.filterTransaction(c,s)){if(c.setMeta("appendedTransaction",e),!i){i=[];for(let f=0;f<this.config.plugins.length;f++)i.push(f<s?{state:r,n:n.length}:{state:this,n:0})}n.push(c),r=r.applyInner(c),u=!0}i&&(i[s]={state:r,n:n.length})}}if(!u)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Di(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let u=r[i];n[u.name]=u.apply(e,this[u.name],this,n)}return n}get tr(){return new rx(this)}static create(e){let n=new rl(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Di(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(e,r);return r}reconfigure(e){let n=new rl(this.schema,e.plugins),r=n.fields,i=new Di(n);for(let u=0;u<r.length;u++){let s=r[u].name;i[s]=this.hasOwnProperty(s)?this[s]:r[u].init(e,i)}return i}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],u=i.spec.state;u&&u.toJSON&&(n[r]=u.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new rl(e.schema,e.plugins),u=new Di(i);return i.fields.forEach(s=>{if(s.name=="doc")u.doc=Yt.fromJSON(e.schema,n.doc);else if(s.name=="selection")u.selection=Q.fromJSON(u.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(u.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let o in r){let l=r[o],a=l.spec.state;if(l.key==s.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(n,o)){u[s.name]=a.fromJSON.call(l,e,n[o],u);return}}u[s.name]=s.init(e,u)}}),u}}function jp(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=jp(i,e,{})),n[r]=i}return n}class Eo{constructor(e){this.spec=e,this.props={},e.props&&jp(e.props,this,this.props),this.key=e.key?e.key.key:Wp("plugin")}getState(e){return e[this.key]}}const il=Object.create(null);function Wp(t){return t in il?t+"$"+ ++il[t]:(il[t]=0,t+"$")}class Gp{constructor(e="key"){this.key=Wp(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Kp=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Jp(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const ux=(t,e,n)=>{let r=Jp(t,n);if(!r)return!1;let i=Ya(r);if(!i){let s=r.blockRange(),o=s&&bu(s);return o==null?!1:(e&&e(t.tr.lift(s,o).scrollIntoView()),!0)}let u=i.nodeBefore;if(Yp(t,i,e,-1))return!0;if(r.parent.content.size==0&&(ii(u,"end")||q.isSelectable(u)))for(let s=r.depth;;s--){let o=Co(t.doc,r.before(s),r.after(s),$.empty);if(o&&o.slice.size<o.to-o.from){if(e){let l=t.tr.step(o);l.setSelection(ii(u,"end")?Q.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):q.create(l.doc,i.pos-u.nodeSize)),e(l.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return u.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-u.nodeSize,i.pos).scrollIntoView()),!0):!1},mE=(t,e,n)=>{let r=Jp(t,n);if(!r)return!1;let i=Ya(r);return i?Zp(t,i,e):!1},gE=(t,e,n)=>{let r=Xp(t,n);if(!r)return!1;let i=Qa(r);return i?Zp(t,i,e):!1};function Zp(t,e,n){let r=e.nodeBefore,i=r,u=e.pos-1;for(;!i.isTextblock;u--){if(i.type.spec.isolating)return!1;let c=i.lastChild;if(!c)return!1;i=c}let s=e.nodeAfter,o=s,l=e.pos+1;for(;!o.isTextblock;l++){if(o.type.spec.isolating)return!1;let c=o.firstChild;if(!c)return!1;o=c}let a=Co(t.doc,u,l,$.empty);if(!a||a.from!=u||a instanceof ke&&a.slice.size>=l-u)return!1;if(n){let c=t.tr.step(a);c.setSelection(ne.create(c.doc,u)),n(c.scrollIntoView())}return!0}function ii(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const sx=(t,e,n)=>{let{$head:r,empty:i}=t.selection,u=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;u=Ya(r)}let s=u&&u.nodeBefore;return!s||!q.isSelectable(s)?!1:(e&&e(t.tr.setSelection(q.create(t.doc,u.pos-s.nodeSize)).scrollIntoView()),!0)};function Ya(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Xp(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const ox=(t,e,n)=>{let r=Xp(t,n);if(!r)return!1;let i=Qa(r);if(!i)return!1;let u=i.nodeAfter;if(Yp(t,i,e,1))return!0;if(r.parent.content.size==0&&(ii(u,"start")||q.isSelectable(u))){let s=Co(t.doc,r.before(),r.after(),$.empty);if(s&&s.slice.size<s.to-s.from){if(e){let o=t.tr.step(s);o.setSelection(ii(u,"start")?Q.findFrom(o.doc.resolve(o.mapping.map(i.pos)),1):q.create(o.doc,o.mapping.map(i.pos))),e(o.scrollIntoView())}return!0}}return u.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos,i.pos+u.nodeSize).scrollIntoView()),!0):!1},lx=(t,e,n)=>{let{$head:r,empty:i}=t.selection,u=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;u=Qa(r)}let s=u&&u.nodeAfter;return!s||!q.isSelectable(s)?!1:(e&&e(t.tr.setSelection(q.create(t.doc,u.pos)).scrollIntoView()),!0)};function Qa(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const bE=(t,e)=>{let n=t.selection,r=n instanceof q,i;if(r){if(n.node.isTextblock||!yu(t.doc,n.from))return!1;i=n.from}else if(i=$p(t.doc,n.from,-1),i==null)return!1;if(e){let u=t.tr.join(i);r&&u.setSelection(q.create(u.doc,i-t.doc.resolve(i).nodeBefore.nodeSize)),e(u.scrollIntoView())}return!0},yE=(t,e)=>{let n=t.selection,r;if(n instanceof q){if(n.node.isTextblock||!yu(t.doc,n.to))return!1;r=n.to}else if(r=$p(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},xE=(t,e)=>{let{$from:n,$to:r}=t.selection,i=n.blockRange(r),u=i&&bu(i);return u==null?!1:(e&&e(t.tr.lift(i,u).scrollIntoView()),!0)},ax=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
24
+ `).scrollIntoView()),!0)};function ec(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const CE=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),u=n.indexAfter(-1),s=ec(i.contentMatchAt(u));if(!s||!i.canReplaceWith(u,u,s))return!1;if(e){let o=n.after(),l=t.tr.replaceWith(o,o,s.createAndFill());l.setSelection(Q.near(l.doc.resolve(o),1)),e(l.scrollIntoView())}return!0},cx=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof St||r.parent.inlineContent||i.parent.inlineContent)return!1;let u=ec(i.parent.contentMatchAt(i.indexAfter()));if(!u||!u.isTextblock)return!1;if(e){let s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=t.tr.insert(s,u.createAndFill());o.setSelection(ne.create(o.doc,s+1)),e(o.scrollIntoView())}return!0},fx=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let u=n.before();if(Pi(t.doc,u))return e&&e(t.tr.split(u).scrollIntoView()),!0}let r=n.blockRange(),i=r&&bu(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function dx(t){return(e,n)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof q&&e.selection.node.isBlock)return!r.parentOffset||!Pi(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let u=[],s,o,l=!1,a=!1;for(let h=r.depth;;h--)if(r.node(h).isBlock){l=r.end(h)==r.pos+(r.depth-h),a=r.start(h)==r.pos-(r.depth-h),o=ec(r.node(h-1).contentMatchAt(r.indexAfter(h-1))),u.unshift(l&&o?{type:o}:null),s=h;break}else{if(h==1)return!1;u.unshift(null)}let c=e.tr;(e.selection instanceof ne||e.selection instanceof St)&&c.deleteSelection();let f=c.mapping.map(r.pos),d=Pi(c.doc,f,u.length,u);if(d||(u[0]=o?{type:o}:null,d=Pi(c.doc,f,u.length,u)),!d)return!1;if(c.split(f,u.length,u),!l&&a&&r.node(s).type!=o){let h=c.mapping.map(r.before(s)),p=c.doc.resolve(h);o&&r.node(s-1).canReplaceWith(p.index(),p.index()+1,o)&&c.setNodeMarkup(c.mapping.map(r.before(s)),o)}return n&&n(c.scrollIntoView()),!0}}const hx=dx(),wE=(t,e)=>{let{$from:n,to:r}=t.selection,i,u=n.sharedDepth(r);return u==0?!1:(i=n.before(u),e&&e(t.tr.setSelection(q.create(t.doc,i))),!0)};function px(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,u=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(u-1,u)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(u,u+1)||!(i.isTextblock||yu(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function Yp(t,e,n,r){let i=e.nodeBefore,u=e.nodeAfter,s,o,l=i.type.spec.isolating||u.type.spec.isolating;if(!l&&px(t,e,n))return!0;let a=!l&&e.parent.canReplace(e.index(),e.index()+1);if(a&&(s=(o=i.contentMatchAt(i.childCount)).findWrapping(u.type))&&o.matchType(s[0]||u.type).validEnd){if(n){let h=e.pos+u.nodeSize,p=T.empty;for(let x=s.length-1;x>=0;x--)p=T.from(s[x].create(null,p));p=T.from(i.copy(p));let m=t.tr.step(new ze(e.pos-1,h,e.pos,h,new $(p,1,0),s.length,!0)),b=m.doc.resolve(h+2*s.length);b.nodeAfter&&b.nodeAfter.type==i.type&&yu(m.doc,b.pos)&&m.join(b.pos),n(m.scrollIntoView())}return!0}let c=u.type.spec.isolating||r>0&&l?null:Q.findFrom(e,1),f=c&&c.$from.blockRange(c.$to),d=f&&bu(f);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(f,d).scrollIntoView()),!0;if(a&&ii(u,"start",!0)&&ii(i,"end")){let h=i,p=[];for(;p.push(h),!h.isTextblock;)h=h.lastChild;let m=u,b=1;for(;!m.isTextblock;m=m.firstChild)b++;if(h.canReplace(h.childCount,h.childCount,m.content)){if(n){let x=T.empty;for(let E=p.length-1;E>=0;E--)x=T.from(p[E].copy(x));let w=t.tr.step(new ze(e.pos-p.length,e.pos+u.nodeSize,e.pos+b,e.pos+u.nodeSize-b,new $(x,p.length,0),0,!0));n(w.scrollIntoView())}return!0}}return!1}function Qp(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,u=i.depth;for(;i.node(u).isInline;){if(!u)return!1;u--}return i.node(u).isTextblock?(n&&n(e.tr.setSelection(ne.create(e.doc,t<0?i.start(u):i.end(u)))),!0):!1}}const EE=Qp(-1),SE=Qp(1);function kE(t,e=null){return function(n,r){let{$from:i,$to:u}=n.selection,s=i.blockRange(u),o=s&&Ip(s,t,e);return o?(r&&r(n.tr.wrap(s,o).scrollIntoView()),!0):!1}}function DE(t,e=null){return function(n,r){let i=!1;for(let u=0;u<n.selection.ranges.length&&!i;u++){let{$from:{pos:s},$to:{pos:o}}=n.selection.ranges[u];n.doc.nodesBetween(s,o,(l,a)=>{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)i=!0;else{let c=n.doc.resolve(a),f=c.index();i=c.parent.canReplaceWith(f,f+1,t)}})}if(!i)return!1;if(r){let u=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:o},$to:{pos:l}}=n.selection.ranges[s];u.setBlockType(o,l,t,e)}r(u.scrollIntoView())}return!0}}function tc(...t){return function(e,n,r){for(let i=0;i<t.length;i++)if(t[i](e,n,r))return!0;return!1}}tc(Kp,ux,sx);tc(Kp,ox,lx);tc(ax,cx,fx,hx);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function AE(t,e=null){return function(n,r){let{$from:i,$to:u}=n.selection,s=i.blockRange(u);if(!s)return!1;let o=r?n.tr:null;return mx(o,s,t,e)?(r&&r(o.scrollIntoView()),!0):!1}}function mx(t,e,n,r=null){let i=!1,u=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=s.resolve(e.start-2);u=new ys(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new ys(e.$from,s.resolve(e.$to.end(e.depth)),e.depth)),i=!0}let o=Ip(u,n,r,e);return o?(t&&gx(t,e,o,i,n),!0):!1}function gx(t,e,n,r,i){let u=T.empty;for(let c=n.length-1;c>=0;c--)u=T.from(n[c].type.create(n[c].attrs,u));t.step(new ze(e.start-(r?2:0),e.end,e.start,e.end,new $(u,0,0),n.length,!0));let s=0;for(let c=0;c<n.length;c++)n[c].type==i&&(s=c+1);let o=n.length-s,l=e.start+n.length-(r?2:0),a=e.parent;for(let c=e.startIndex,f=e.endIndex,d=!0;c<f;c++,d=!1)!d&&Pi(t.doc,l,o)&&(t.split(l,o),l+=2*o),l+=a.child(c).nodeSize;return t}function _E(t){return function(e,n){let{$from:r,$to:i}=e.selection,u=r.blockRange(i,s=>s.childCount>0&&s.firstChild.type==t);return u?n?r.node(u.depth-1).type==t?bx(e,n,t,u):yx(e,n,u):!0:!1}}function bx(t,e,n,r){let i=t.tr,u=r.end,s=r.$to.end(r.depth);u<s&&(i.step(new ze(u-1,s,u,s,new $(T.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new ys(i.doc.resolve(r.$from.pos),i.doc.resolve(s),r.depth));const o=bu(r);if(o==null)return!1;i.lift(r,o);let l=i.doc.resolve(i.mapping.map(u,-1)-1);return yu(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos),e(i.scrollIntoView()),!0}function yx(t,e,n){let r=t.tr,i=n.parent;for(let h=n.end,p=n.endIndex-1,m=n.startIndex;p>m;p--)h-=i.child(p).nodeSize,r.delete(h-1,h+1);let u=r.doc.resolve(n.start),s=u.nodeAfter;if(r.mapping.map(n.end)!=n.start+u.nodeAfter.nodeSize)return!1;let o=n.startIndex==0,l=n.endIndex==i.childCount,a=u.node(-1),c=u.index(-1);if(!a.canReplace(c+(o?0:1),c+1,s.content.append(l?T.empty:T.from(i))))return!1;let f=u.pos,d=f+s.nodeSize;return r.step(new ze(f-(o?1:0),d+(l?1:0),f+1,d-1,new $((o?T.empty:T.from(i.copy(T.empty))).append(l?T.empty:T.from(i.copy(T.empty))),o?0:1,l?0:1),o?0:1)),e(r.scrollIntoView()),!0}function TE(t){return function(e,n){let{$from:r,$to:i}=e.selection,u=r.blockRange(i,a=>a.childCount>0&&a.firstChild.type==t);if(!u)return!1;let s=u.startIndex;if(s==0)return!1;let o=u.parent,l=o.child(s-1);if(l.type!=t)return!1;if(n){let a=l.lastChild&&l.lastChild.type==o.type,c=T.from(a?t.create():null),f=new $(T.from(t.create(null,T.from(o.type.create(null,c)))),a?3:1,0),d=u.start,h=u.end;n(e.tr.step(new ze(d-(a?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}const Re=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},ui=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Ql=null;const fn=function(t,e,n){let r=Ql||(Ql=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},xx=function(){Ql=null},_r=function(t,e,n,r){return n&&(ad(t,e,n,r,-1)||ad(t,e,n,r,1))},Cx=/^(img|br|input|textarea|hr)$/i;function ad(t,e,n,r,i){for(var u;;){if(t==n&&e==r)return!0;if(e==(i<0?0:yt(t))){let s=t.parentNode;if(!s||s.nodeType!=1||xu(t)||Cx.test(t.nodeName)||t.contentEditable=="false")return!1;e=Re(t)+(i<0?0:1),t=s}else if(t.nodeType==1){let s=t.childNodes[e+(i<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((u=s.pmViewDesc)===null||u===void 0)&&u.ignoreForSelection)e+=i;else return!1;else t=s,e=i<0?yt(t):0}else return!1}}function yt(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function wx(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=yt(t)}else if(t.parentNode&&!xu(t))e=Re(t),t=t.parentNode;else return null}}function Ex(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!xu(t))e=Re(t)+1,t=t.parentNode;else return null}}function Sx(t,e,n){for(let r=e==0,i=e==yt(t);r||i;){if(t==n)return!0;let u=Re(t);if(t=t.parentNode,!t)return!1;r=r&&u==0,i=i&&u==yt(t)}}function xu(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const So=function(t){return t.focusNode&&_r(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function cr(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function kx(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Dx(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(yt(r.offsetNode),r.offset)}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(yt(r.startContainer),r.startOffset)}}}const Qt=typeof navigator<"u"?navigator:null,cd=typeof document<"u"?document:null,Qn=Qt&&Qt.userAgent||"",ea=/Edge\/(\d+)/.exec(Qn),e1=/MSIE \d/.exec(Qn),ta=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qn),ut=!!(e1||ta||ea),qn=e1?document.documentMode:ta?+ta[1]:ea?+ea[1]:0,kt=!ut&&/gecko\/(\d+)/i.test(Qn);kt&&+(/Firefox\/(\d+)/.exec(Qn)||[0,0])[1];const na=!ut&&/Chrome\/(\d+)/.exec(Qn),$e=!!na,t1=na?+na[1]:0,je=!ut&&!!Qt&&/Apple Computer/.test(Qt.vendor),si=je&&(/Mobile\/\w+/.test(Qn)||!!Qt&&Qt.maxTouchPoints>2),bt=si||(Qt?/Mac/.test(Qt.platform):!1),n1=Qt?/Win/.test(Qt.platform):!1,bn=/Android \d/.test(Qn),Cu=!!cd&&"webkitFontSmoothing"in cd.documentElement.style,Ax=Cu?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function _x(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function rn(t,e){return typeof t=="number"?t:t[e]}function Tx(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function fd(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,u=t.dom.ownerDocument;for(let s=n||t.dom;s;){if(s.nodeType!=1){s=ui(s);continue}let o=s,l=o==u.body,a=l?_x(u):Tx(o),c=0,f=0;if(e.top<a.top+rn(r,"top")?f=-(a.top-e.top+rn(i,"top")):e.bottom>a.bottom-rn(r,"bottom")&&(f=e.bottom-e.top>a.bottom-a.top?e.top+rn(i,"top")-a.top:e.bottom-a.bottom+rn(i,"bottom")),e.left<a.left+rn(r,"left")?c=-(a.left-e.left+rn(i,"left")):e.right>a.right-rn(r,"right")&&(c=e.right-a.right+rn(i,"right")),c||f)if(l)u.defaultView.scrollBy(c,f);else{let h=o.scrollLeft,p=o.scrollTop;f&&(o.scrollTop+=f),c&&(o.scrollLeft+=c);let m=o.scrollLeft-h,b=o.scrollTop-p;e={left:e.left-m,top:e.top-b,right:e.right-m,bottom:e.bottom-b}}let d=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(d))break;s=d=="absolute"?s.offsetParent:ui(s)}}function Ox(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let u=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let o=t.root.elementFromPoint(u,s);if(!o||o==t.dom||!t.dom.contains(o))continue;let l=o.getBoundingClientRect();if(l.top>=n-20){r=o,i=l.top;break}}return{refDOM:r,refTop:i,stack:r1(t.dom)}}function r1(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=ui(r));return e}function Nx({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;i1(n,r==0?0:r-e)}function i1(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:i,left:u}=t[n];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=u&&(r.scrollLeft=u)}}let Rr=null;function vx(t){if(t.setActive)return t.setActive();if(Rr)return t.focus(Rr);let e=r1(t);t.focus(Rr==null?{get preventScroll(){return Rr={preventScroll:!0},!0}}:void 0),Rr||(Rr=!1,i1(e,0))}function u1(t,e){let n,r=2e8,i,u=0,s=e.top,o=e.top,l,a;for(let c=t.firstChild,f=0;c;c=c.nextSibling,f++){let d;if(c.nodeType==1)d=c.getClientRects();else if(c.nodeType==3)d=fn(c).getClientRects();else continue;for(let h=0;h<d.length;h++){let p=d[h];if(p.top<=s&&p.bottom>=o){s=Math.max(p.bottom,s),o=Math.min(p.top,o);let m=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(m<r){n=c,r=m,i=m&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,c.nodeType==1&&m&&(u=f+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=c,a={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(u=f+1)}}return!n&&l&&(n=l,i=a,r=0),n&&n.nodeType==3?Mx(n,i):!n||r&&n.nodeType==1?{node:t,offset:u}:u1(n,i)}function Mx(t,e){let n=t.nodeValue.length,r=document.createRange(),i;for(let u=0;u<n;u++){r.setEnd(t,u+1),r.setStart(t,u);let s=An(r,1);if(s.top!=s.bottom&&nc(e,s)){i={node:t,offset:u+(e.left>=(s.left+s.right)/2?1:0)};break}}return r.detach(),i||{node:t,offset:0}}function nc(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function Fx(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function Rx(t,e,n){let{node:r,offset:i}=u1(e,n),u=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();u=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,i,u)}function Ix(t,e,n,r){let i=-1;for(let u=e,s=!1;u!=t.dom;){let o=t.docView.nearestDesc(u,!0),l;if(!o)return null;if(o.dom.nodeType==1&&(o.node.isBlock&&o.parent||!o.contentDOM)&&((l=o.dom.getBoundingClientRect()).width||l.height)&&(o.node.isBlock&&o.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(o.dom.nodeName)&&(!s&&l.left>r.left||l.top>r.top?i=o.posBefore:(!s&&l.right<r.left||l.bottom<r.top)&&(i=o.posAfter),s=!0),!o.contentDOM&&i<0&&!o.node.isText))return(o.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?o.posBefore:o.posAfter;u=o.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,n,-1)}function s1(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),u=i;;){let s=t.childNodes[u];if(s.nodeType==1){let o=s.getClientRects();for(let l=0;l<o.length;l++){let a=o[l];if(nc(e,a))return s1(s,e,a)}}if((u=(u+1)%r)==i)break}return t}function Px(t,e){let n=t.dom.ownerDocument,r,i=0,u=Dx(n,e.left,e.top);u&&({node:r,offset:i}=u);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),o;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let a=t.dom.getBoundingClientRect();if(!nc(e,a)||(s=s1(t.dom,e,a),!s))return null}if(je)for(let a=s;r&&a;a=ui(a))a.draggable&&(r=void 0);if(s=Fx(s,e),r){if(kt&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let c=r.childNodes[i],f;c.nodeName=="IMG"&&(f=c.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&i++}let a;Cu&&i&&r.nodeType==1&&(a=r.childNodes[i-1]).nodeType==1&&a.contentEditable=="false"&&a.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?o=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(o=Ix(t,r,i,e))}o==null&&(o=Rx(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:o,inside:l?l.posAtStart-l.border:-1}}function dd(t){return t.top<t.bottom||t.left<t.right}function An(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(dd(r))return r}return Array.prototype.find.call(n,dd)||t.getBoundingClientRect()}const Lx=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function o1(t,e,n){let{node:r,offset:i,atom:u}=t.docView.domFromPos(e,n<0?-1:1),s=Cu||kt;if(r.nodeType==3)if(s&&(Lx.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let l=An(fn(r,i,i),n);if(kt&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let a=An(fn(r,i-1,i-1),-1);if(a.top==l.top){let c=An(fn(r,i,i+1),-1);if(c.top!=l.top)return xi(c,c.left<a.left)}}return l}else{let l=i,a=i,c=n<0?1:-1;return n<0&&!i?(a++,c=-1):n>=0&&i==r.nodeValue.length?(l--,c=1):n<0?l--:a++,xi(An(fn(r,l,a),c),c<0)}if(!t.state.doc.resolve(e-(u||0)).parent.inlineContent){if(u==null&&i&&(n<0||i==yt(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return ul(l.getBoundingClientRect(),!1)}if(u==null&&i<yt(r)){let l=r.childNodes[i];if(l.nodeType==1)return ul(l.getBoundingClientRect(),!0)}return ul(r.getBoundingClientRect(),n>=0)}if(u==null&&i&&(n<0||i==yt(r))){let l=r.childNodes[i-1],a=l.nodeType==3?fn(l,yt(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(a)return xi(An(a,1),!1)}if(u==null&&i<yt(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let a=l?l.nodeType==3?fn(l,0,s?0:1):l.nodeType==1?l:null:null;if(a)return xi(An(a,-1),!0)}return xi(An(r.nodeType==3?fn(r):r,-n),n>=0)}function xi(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function ul(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function l1(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function Bx(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return l1(t,e,()=>{let{node:u}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let o=t.docView.nearestDesc(u,!0);if(!o)break;if(o.node.isBlock){u=o.contentDOM||o.dom;break}u=o.dom.parentNode}let s=o1(t,i.pos,1);for(let o=u.firstChild;o;o=o.nextSibling){let l;if(o.nodeType==1)l=o.getClientRects();else if(o.nodeType==3)l=fn(o,0,o.nodeValue.length).getClientRects();else continue;for(let a=0;a<l.length;a++){let c=l[a];if(c.bottom>c.top+1&&(n=="up"?s.top-c.top>(c.bottom-s.top)*2:c.bottom-s.bottom>(s.bottom-c.top)*2))return!1}}return!0})}const $x=/[\u0590-\u08ac]/;function zx(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,u=!i,s=i==r.parent.content.size,o=t.domSelection();return o?!$x.test(r.parent.textContent)||!o.modify?n=="left"||n=="backward"?u:s:l1(t,e,()=>{let{focusNode:l,focusOffset:a,anchorNode:c,anchorOffset:f}=t.domSelectionRange(),d=o.caretBidiLevel;o.modify("move",n,"character");let h=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:p,focusOffset:m}=t.domSelectionRange(),b=p&&!h.contains(p.nodeType==1?p:p.parentNode)||l==p&&a==m;try{o.collapse(c,f),l&&(l!=c||a!=f)&&o.extend&&o.extend(l,a)}catch{}return d!=null&&(o.caretBidiLevel=d),b}):r.pos==r.start()||r.pos==r.end()}let hd=null,pd=null,md=!1;function Vx(t,e,n){return hd==e&&pd==n?md:(hd=e,pd=n,md=n=="up"||n=="down"?Bx(t,e,n):zx(t,e,n))}const Dt=0,gd=1,dr=2,en=3;class wu{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Dt,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==e)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let u,s;if(e==this.contentDOM)u=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;u=e.previousSibling}for(;u&&!((s=u.pmViewDesc)&&s.parent==this);)u=u.previousSibling;return u?this.posBeforeChild(s)+s.size:this.posAtStart}else{let u,s;if(e==this.contentDOM)u=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;u=e.nextSibling}for(;u&&!((s=u.pmViewDesc)&&s.parent==this);)u=u.nextSibling;return u?this.posBeforeChild(s):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=n>Re(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let u=e;;u=u.parentNode){if(u==this.dom){i=!1;break}if(u.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let u=e;;u=u.parentNode){if(u==this.dom){i=!0;break}if(u.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let u=this.getDesc(i),s;if(u&&(!n||u.node))if(r&&(s=u.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return u}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let u=this.getDesc(i);if(u)return u.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],u=r+i.size;if(r==e&&u!=r){for(;!i.border&&i.children.length;)for(let s=0;s<i.children.length;s++){let o=i.children[s];if(o.size){i=o;break}}return i}if(e<u)return i.descAt(e-r-i.border);r=u}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let u=0;r<this.children.length;r++){let s=this.children[r],o=u+s.size;if(o>e||s instanceof c1){i=e-u;break}u=o}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let u;r&&!(u=this.children[r-1]).size&&u instanceof a1&&u.side>=0;r--);if(n<=0){let u,s=!0;for(;u=r?this.children[r-1]:null,!(!u||u.dom.parentNode==this.contentDOM);r--,s=!1);return u&&n&&s&&!u.border&&!u.domAtom?u.domFromPos(u.size,n):{node:this.contentDOM,offset:u?Re(u.dom)+1:0}}else{let u,s=!0;for(;u=r<this.children.length?this.children[r]:null,!(!u||u.dom.parentNode==this.contentDOM);r++,s=!1);return u&&s&&!u.border&&!u.domAtom?u.domFromPos(0,n):{node:this.contentDOM,offset:u?Re(u.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,u=-1;for(let s=r,o=0;;o++){let l=this.children[o],a=s+l.size;if(i==-1&&e<=a){let c=s+l.border;if(e>=c&&n<=a-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,c);e=s;for(let f=o;f>0;f--){let d=this.children[f-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){i=Re(d.dom)+1;break}e-=d.size}i==-1&&(i=0)}if(i>-1&&(a>n||o==this.children.length-1)){n=a;for(let c=o+1;c<this.children.length;c++){let f=this.children[c];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){u=Re(f.dom);break}n+=f.size}u==-1&&(u=this.contentDOM.childNodes.length);break}s=a}return{node:this.contentDOM,from:e,to:n,fromOffset:i,toOffset:u}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,i=!1){let u=Math.min(e,n),s=Math.max(e,n);for(let h=0,p=0;h<this.children.length;h++){let m=this.children[h],b=p+m.size;if(u>p&&s<b)return m.setSelection(e-p-m.border,n-p-m.border,r,i);p=b}let o=this.domFromPos(e,e?-1:1),l=n==e?o:this.domFromPos(n,n?-1:1),a=r.root.getSelection(),c=r.domSelectionRange(),f=!1;if((kt||je)&&e==n){let{node:h,offset:p}=o;if(h.nodeType==3){if(f=!!(p&&h.nodeValue[p-1]==`
25
+ `),f&&p==h.nodeValue.length)for(let m=h,b;m;m=m.parentNode){if(b=m.nextSibling){b.nodeName=="BR"&&(o=l={node:b.parentNode,offset:Re(b)+1});break}let x=m.pmViewDesc;if(x&&x.node&&x.node.isBlock)break}}else{let m=h.childNodes[p-1];f=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(kt&&c.focusNode&&c.focusNode!=l.node&&c.focusNode.nodeType==1){let h=c.focusNode.childNodes[c.focusOffset];h&&h.contentEditable=="false"&&(i=!0)}if(!(i||f&&je)&&_r(o.node,o.offset,c.anchorNode,c.anchorOffset)&&_r(l.node,l.offset,c.focusNode,c.focusOffset))return;let d=!1;if((a.extend||e==n)&&!(f&&kt)){a.collapse(o.node,o.offset);try{e!=n&&a.extend(l.node,l.offset),d=!0}catch{}}if(!d){if(e>n){let p=o;o=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(o.node,o.offset),a.removeAllRanges(),a.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i<this.children.length;i++){let u=this.children[i],s=r+u.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let o=r+u.border,l=s-u.border;if(e>=o&&n<=l){this.dirty=e==r||n==s?dr:gd,e==o&&n==l&&(u.contentLost||u.dom.parentNode!=this.contentDOM)?u.dirty=en:u.markDirty(e-o,n-o);return}else u.dirty=u.dom==u.contentDOM&&u.dom.parentNode==this.contentDOM&&!u.children.length?dr:en}r=s}this.dirty=dr}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?dr:gd;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class a1 extends wu{constructor(e,n,r,i){let u,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!u)return i;if(u.parent)return u.parent.posBeforeChild(u)})),!n.type.spec.raw){if(s.nodeType!=1){let o=document.createElement("span");o.appendChild(s),s=o}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,u=this}matchesWidget(e){return this.dirty==Dt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class Ux extends wu{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Tr extends wu{constructor(e,n,r,i,u){super(e,[],r,i),this.mark=n,this.spec=u}static create(e,n,r,i){let u=i.nodeViews[n.type.name],s=u&&u(n,i,r);return(!s||!s.dom)&&(s=li.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Tr(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&en||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=en&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Dt){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Dt}}slice(e,n,r){let i=Tr.create(this.parent,this.mark,!0,r),u=this.children,s=this.size;n<s&&(u=ia(u,n,s,r)),e>0&&(u=ia(u,0,e,r));for(let o=0;o<u.length;o++)u[o].parent=i;return i.children=u,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class jn extends wu{constructor(e,n,r,i,u,s,o,l,a){super(e,[],u,s),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=o}static create(e,n,r,i,u,s){let o=u.nodeViews[n.type.name],l,a=o&&o(n,u,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,i),c=a&&a.dom,f=a&&a.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:f}=li.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!f&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let d=c;return c=h1(c,r,n),a?l=new Hx(e,n,r,i,c,f||null,d,a,u,s+1):n.isText?new ko(e,n,r,i,c,d,u):new jn(e,n,r,i,c,f||null,d,u,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>T.empty)}return e}matchesNode(e,n,r){return this.dirty==Dt&&e.eq(this.node)&&Cs(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,i=n,u=e.composing?this.localCompositionInfo(e,n):null,s=u&&u.pos>-1?u:null,o=u&&u.pos<0,l=new jx(this,s&&s.node,e);Kx(this.node,this.innerDeco,(a,c,f)=>{a.spec.marks?l.syncToMarks(a.spec.marks,r,e,c):a.type.side>=0&&!f&&l.syncToMarks(c==this.node.childCount?ie.none:this.node.child(c).marks,r,e,c),l.placeWidget(a,e,i)},(a,c,f,d)=>{l.syncToMarks(a.marks,r,e,d);let h;l.findNodeMatch(a,c,f,d)||o&&e.state.selection.from>i&&e.state.selection.to<i+a.nodeSize&&(h=l.findIndexWithChild(u.node))>-1&&l.updateNodeAt(a,c,f,h,e)||l.updateNextNode(a,c,f,e,d,i)||l.addNode(a,c,f,e,i),i+=a.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==dr)&&(s&&this.protectLocalComposition(e,s),f1(this.contentDOM,this.children,e),si&&Jx(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof ne)||r<n||i>n+this.node.content.size)return null;let u=e.input.compositionNode;if(!u||!this.dom.contains(u.parentNode))return null;if(this.node.inlineContent){let s=u.nodeValue,o=Zx(this.node.content,s,r-n,i-n);return o<0?null:{node:u,pos:o,text:s}}else return{node:u,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let u=n;for(;u.parentNode!=this.contentDOM;u=u.parentNode){for(;u.previousSibling;)u.parentNode.removeChild(u.previousSibling);for(;u.nextSibling;)u.parentNode.removeChild(u.nextSibling);u.pmViewDesc&&(u.pmViewDesc=void 0)}let s=new Ux(this,u,n,i);e.input.compositionNodes.push(s),this.children=ia(this.children,r,r+i.length,e,s)}update(e,n,r,i){return this.dirty==en||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Dt}updateOuterDeco(e){if(Cs(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=d1(this.dom,this.nodeDOM,ra(this.outerDeco,this.node,n),ra(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function bd(t,e,n,r,i){h1(r,e,t);let u=new jn(void 0,t,e,n,r,r,r,i,0);return u.contentDOM&&u.updateChildren(i,0),u}class ko extends jn{constructor(e,n,r,i,u,s,o){super(e,n,r,i,u,null,s,o,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==en||this.dirty!=Dt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Dt||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=Dt,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),u=document.createTextNode(i.text);return new ko(this.parent,i,this.outerDeco,this.innerDeco,u,u,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=en)}get domAtom(){return!1}isText(e){return this.node.text==e}}class c1 extends wu{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Dt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Hx extends jn{constructor(e,n,r,i,u,s,o,l,a,c){super(e,n,r,i,u,s,o,a,c),this.spec=l}update(e,n,r,i){if(this.dirty==en)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let u=this.spec.update(e,n,r);return u&&this.updateInner(e,n,r,i),u}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function f1(t,e,n){let r=t.firstChild,i=!1;for(let u=0;u<e.length;u++){let s=e[u],o=s.dom;if(o.parentNode==t){for(;o!=r;)r=yd(r),i=!0;r=r.nextSibling}else i=!0,t.insertBefore(o,r);if(s instanceof Tr){let l=r?r.previousSibling:t.lastChild;f1(s.contentDOM,s.children,n),r=l?l.nextSibling:t.firstChild}}for(;r;)r=yd(r),i=!0;i&&n.trackWrites==t&&(n.trackWrites=null)}const Li=function(t){t&&(this.nodeName=t)};Li.prototype=Object.create(null);const hr=[new Li];function ra(t,e,n){if(t.length==0)return hr;let r=n?hr[0]:new Li,i=[r];for(let u=0;u<t.length;u++){let s=t[u].type.attrs;if(s){s.nodeName&&i.push(r=new Li(s.nodeName));for(let o in s){let l=s[o];l!=null&&(n&&i.length==1&&i.push(r=new Li(e.isInline?"span":"div")),o=="class"?r.class=(r.class?r.class+" ":"")+l:o=="style"?r.style=(r.style?r.style+";":"")+l:o!="nodeName"&&(r[o]=l))}}}return i}function d1(t,e,n,r){if(n==hr&&r==hr)return e;let i=e;for(let u=0;u<r.length;u++){let s=r[u],o=n[u];if(u){let l;o&&o.nodeName==s.nodeName&&i!=t&&(l=i.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(i),o=hr[0]),i=l}qx(i,o||hr[0],s)}return i}function qx(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let u=0;u<r.length;u++)i.indexOf(r[u])==-1&&t.classList.remove(r[u]);for(let u=0;u<i.length;u++)r.indexOf(i[u])==-1&&t.classList.add(i[u]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(e.style);)t.style.removeProperty(i[1])}n.style&&(t.style.cssText+=n.style)}}function h1(t,e,n){return d1(t,t,hr,ra(e,n,t.nodeType!=1))}function Cs(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function yd(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class jx{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Wx(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r,i){let u=0,s=this.stack.length>>1,o=Math.min(s,e.length);for(;u<o&&(u==s-1?this.top:this.stack[u+1<<1]).matchesMark(e[u])&&e[u].type.spec.spanning!==!1;)u++;for(;u<s;)this.destroyRest(),this.top.dirty=Dt,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let l=-1,a=this.top.children.length;i<this.preMatch.index&&(a=Math.min(this.index+3,a));for(let c=this.index;c<a;c++){let f=this.top.children[c];if(f.matchesMark(e[s])&&!this.isLocked(f.dom)){l=c;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let c=Tr.create(this.top,e[s],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,r,i){let u=-1,s;if(i>=this.preMatch.index&&(s=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))u=this.top.children.indexOf(s,this.index);else for(let o=this.index,l=Math.min(this.top.children.length,o+5);o<l;o++){let a=this.top.children[o];if(a.matchesNode(e,n,r)&&!this.preMatch.matched.has(a)){u=o;break}}return u<0?!1:(this.destroyBetween(this.index,u),this.index++,!0)}updateNodeAt(e,n,r,i,u){let s=this.top.children[i];return s.dirty==en&&s.dom==s.contentDOM&&(s.dirty=dr),s.update(e,n,r,u)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}e=n}}updateNextNode(e,n,r,i,u,s){for(let o=this.index;o<this.top.children.length;o++){let l=this.top.children[o];if(l instanceof jn){let a=this.preMatch.matched.get(l);if(a!=null&&a!=u)return!1;let c=l.dom,f,d=this.isLocked(c)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=en&&Cs(n,l.outerDeco));if(!d&&l.update(e,n,r,i))return this.destroyBetween(this.index,o),l.dom!=c&&(this.changed=!0),this.index++,!0;if(!d&&(f=this.recreateWrapper(l,e,n,r,i,s)))return this.destroyBetween(this.index,o),this.top.children[this.index]=f,f.contentDOM&&(f.dirty=dr,f.updateChildren(i,s+1),f.dirty=Dt),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,i,u,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!Cs(r,e.outerDeco)||!i.eq(e.innerDeco))return null;let o=jn.create(this.top,n,r,i,u,s);if(o.contentDOM){o.children=e.children,e.children=[];for(let l of o.children)l.parent=o}return e.destroy(),o}addNode(e,n,r,i,u){let s=jn.create(this.top,e,n,r,i,u);s.contentDOM&&s.updateChildren(i,u+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(e)&&(e==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let u=new a1(this.top,e,n,r);this.top.children.splice(this.index++,0,u),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Tr;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof ko)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((je||$e)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new c1(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Wx(t,e){let n=e,r=n.children.length,i=t.childCount,u=new Map,s=[];e:for(;i>0;){let o;for(;;)if(r){let a=n.children[r-1];if(a instanceof Tr)n=a,r=a.children.length;else{o=a,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=o.node;if(l){if(l!=t.child(i-1))break;--i,u.set(o,i),s.push(o)}}return{index:i,matched:u,matches:s.reverse()}}function Gx(t,e){return t.type.side-e.type.side}function Kx(t,e,n,r){let i=e.locals(t),u=0;if(i.length==0){for(let a=0;a<t.childCount;a++){let c=t.child(a);r(c,i,e.forChild(u,c),a),u+=c.nodeSize}return}let s=0,o=[],l=null;for(let a=0;;){let c,f;for(;s<i.length&&i[s].to==u;){let b=i[s++];b.widget&&(c?(f||(f=[c])).push(b):c=b)}if(c)if(f){f.sort(Gx);for(let b=0;b<f.length;b++)n(f[b],a,!!l)}else n(c,a,!!l);let d,h;if(l)h=-1,d=l,l=null;else if(a<t.childCount)h=a,d=t.child(a++);else break;for(let b=0;b<o.length;b++)o[b].to<=u&&o.splice(b--,1);for(;s<i.length&&i[s].from<=u&&i[s].to>u;)o.push(i[s++]);let p=u+d.nodeSize;if(d.isText){let b=p;s<i.length&&i[s].from<b&&(b=i[s].from);for(let x=0;x<o.length;x++)o[x].to<b&&(b=o[x].to);b<p&&(l=d.cut(b-u),d=d.cut(0,b-u),p=b,h=-1)}else for(;s<i.length&&i[s].to<p;)s++;let m=d.isInline&&!d.isLeaf?o.filter(b=>!b.inline):o.slice();r(d,m,e.forChild(u,d),h),u=p}}function Jx(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function Zx(t,e,n,r){for(let i=0,u=0;i<t.childCount&&u<=r;){let s=t.child(i++),o=u;if(u+=s.nodeSize,!s.isText)continue;let l=s.text;for(;i<t.childCount;){let a=t.child(i++);if(u+=a.nodeSize,!a.isText)break;l+=a.text}if(u>=n){if(u>=r&&l.slice(r-e.length-o,r-o)==e)return r-e.length;let a=o<r?l.lastIndexOf(e,r-o-1):-1;if(a>=0&&a+e.length+o>=n)return o+a;if(n==r&&l.length>=r+e.length-o&&l.slice(r-o,r-o+e.length)==e)return r}}return-1}function ia(t,e,n,r,i){let u=[];for(let s=0,o=0;s<t.length;s++){let l=t[s],a=o,c=o+=l.size;a>=n||c<=e?u.push(l):(a<e&&u.push(l.slice(0,e-a,r)),i&&(u.push(i),i=void 0),c>n&&u.push(l.slice(n-a,l.size,r)))}return u}function rc(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),u=i&&i.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let o=r.resolve(s),l,a;if(So(n)){for(l=s;i&&!i.node;)i=i.parent;let f=i.node;if(i&&f.isAtom&&q.isSelectable(f)&&i.parent&&!(f.isInline&&Sx(n.focusNode,n.focusOffset,i.dom))){let d=i.posBefore;a=new q(s==d?o:r.resolve(d))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let f=s,d=s;for(let h=0;h<n.rangeCount;h++){let p=n.getRangeAt(h);f=Math.min(f,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),d=Math.max(d,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(f<0)return null;[l,s]=d==t.state.selection.anchor?[d,f]:[f,d],o=r.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let c=r.resolve(l);if(!a){let f=e=="pointer"||t.state.selection.head<o.pos&&!u?1:-1;a=ic(t,c,o,f)}return a}function p1(t){return t.editable?t.hasFocus():g1(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function xn(t,e=!1){let n=t.state.selection;if(m1(t,n),!!p1(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&$e){let r=t.domSelectionRange(),i=t.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&_r(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)Yx(t);else{let{anchor:r,head:i}=n,u,s;xd&&!(n instanceof ne)&&(n.$from.parent.inlineContent||(u=Cd(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Cd(t,n.to))),t.docView.setSelection(r,i,t,e),xd&&(u&&wd(u),s&&wd(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Xx(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const xd=je||$e&&t1<63;function Cd(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),i=r<n.childNodes.length?n.childNodes[r]:null,u=r?n.childNodes[r-1]:null;if(je&&i&&i.contentEditable=="false")return sl(i);if((!i||i.contentEditable=="false")&&(!u||u.contentEditable=="false")){if(i)return sl(i);if(u)return sl(u)}}function sl(t){return t.contentEditable="true",je&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function wd(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function Xx(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!p1(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function Yx(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.collapse(n.parentNode,Re(n)+1):e.collapse(n,0),!r&&!t.state.selection.visible&&ut&&qn<=11&&(n.disabled=!0,n.disabled=!1)}function m1(t,e){if(e instanceof q){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Ed(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Ed(t)}function Ed(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function ic(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||ne.between(e,n,r)}function Sd(t){return t.editable&&!t.hasFocus()?!1:g1(t)}function g1(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function Qx(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return _r(e.node,e.offset,n.anchorNode,n.anchorOffset)}function ua(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),u=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return u&&Q.findFrom(u,e)}function vn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function kd(t,e,n){let r=t.state.selection;if(r instanceof ne)if(n.indexOf("s")>-1){let{$head:i}=r,u=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!u||u.isText||!u.isLeaf)return!1;let s=t.state.doc.resolve(i.pos+u.nodeSize*(e<0?-1:1));return vn(t,new ne(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=ua(t.state,e);return i&&i instanceof q?vn(t,i):!1}else if(!(bt&&n.indexOf("m")>-1)){let i=r.$head,u=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,s;if(!u||u.isText)return!1;let o=e<0?i.pos-u.nodeSize:i.pos;return u.isAtom||(s=t.docView.descAt(o))&&!s.contentDOM?q.isSelectable(u)?vn(t,new q(e<0?t.state.doc.resolve(i.pos-u.nodeSize):i)):Cu?vn(t,new ne(t.state.doc.resolve(e<0?o:o+u.nodeSize))):!1:!1}}else return!1;else{if(r instanceof q&&r.node.isInline)return vn(t,new ne(e>0?r.$to:r.$from));{let i=ua(t.state,e);return i?vn(t,i):!1}}}function ws(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Bi(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Ir(t,e){return e<0?e6(t):t6(t)}function e6(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,u,s=!1;for(kt&&n.nodeType==1&&r<ws(n)&&Bi(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let o=n.childNodes[r-1];if(Bi(o,-1))i=n,u=--r;else if(o.nodeType==3)n=o,r=n.nodeValue.length;else break}}else{if(b1(n))break;{let o=n.previousSibling;for(;o&&Bi(o,-1);)i=n.parentNode,u=Re(o),o=o.previousSibling;if(o)n=o,r=ws(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?sa(t,n,r):i&&sa(t,i,u)}function t6(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=ws(n),u,s;for(;;)if(r<i){if(n.nodeType!=1)break;let o=n.childNodes[r];if(Bi(o,1))u=n,s=++r;else break}else{if(b1(n))break;{let o=n.nextSibling;for(;o&&Bi(o,1);)u=o.parentNode,s=Re(o)+1,o=o.nextSibling;if(o)n=o,r=0,i=ws(n);else{if(n=n.parentNode,n==t.dom)break;r=i=0}}}u&&sa(t,u,s)}function b1(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function n6(t,e){for(;t&&e==t.childNodes.length&&!xu(t);)e=Re(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function r6(t,e){for(;t&&!e&&!xu(t);)e=Re(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function sa(t,e,n){if(e.nodeType!=3){let u,s;(s=n6(e,n))?(e=s,n=0):(u=r6(e,n))&&(e=u,n=u.nodeValue.length)}let r=t.domSelection();if(!r)return;if(So(r)){let u=document.createRange();u.setEnd(e,n),u.setStart(e,n),r.removeAllRanges(),r.addRange(u)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:i}=t;setTimeout(()=>{t.state==i&&xn(t)},50)}function Dd(t,e){let n=t.state.doc.resolve(e);if(!($e||n1)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let u=t.coordsAtPos(e-1),s=(u.top+u.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(u.left-i.left)>1)return u.left<i.left?"ltr":"rtl"}if(e<n.end()){let u=t.coordsAtPos(e+1),s=(u.top+u.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(u.left-i.left)>1)return u.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Ad(t,e,n){let r=t.state.selection;if(r instanceof ne&&!r.empty||n.indexOf("s")>-1||bt&&n.indexOf("m")>-1)return!1;let{$from:i,$to:u}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=ua(t.state,e);if(s&&s instanceof q)return vn(t,s)}if(!i.parent.inlineContent){let s=e<0?i:u,o=r instanceof St?Q.near(s,e):Q.findFrom(s,e);return o?vn(t,o):!1}return!1}function _d(t,e){if(!(t.state.selection instanceof ne))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let u=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(u&&!u.isText){let s=t.state.tr;return e<0?s.delete(n.pos-u.nodeSize,n.pos):s.delete(n.pos,n.pos+u.nodeSize),t.dispatch(s),!0}return!1}function Td(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function i6(t){if(!je||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Td(t,r,"true"),setTimeout(()=>Td(t,r,"false"),20)}return!1}function u6(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function s6(t,e){let n=e.keyCode,r=u6(e);if(n==8||bt&&n==72&&r=="c")return _d(t,-1)||Ir(t,-1);if(n==46&&!e.shiftKey||bt&&n==68&&r=="c")return _d(t,1)||Ir(t,1);if(n==13||n==27)return!0;if(n==37||bt&&n==66&&r=="c"){let i=n==37?Dd(t,t.state.selection.from)=="ltr"?-1:1:-1;return kd(t,i,r)||Ir(t,i)}else if(n==39||bt&&n==70&&r=="c"){let i=n==39?Dd(t,t.state.selection.from)=="ltr"?1:-1:1;return kd(t,i,r)||Ir(t,i)}else{if(n==38||bt&&n==80&&r=="c")return Ad(t,-1,r)||Ir(t,-1);if(n==40||bt&&n==78&&r=="c")return i6(t)||Ad(t,1,r)||Ir(t,1);if(r==(bt?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function uc(t,e){t.someProp("transformCopied",h=>{e=h(e,t)});let n=[],{content:r,openStart:i,openEnd:u}=e;for(;i>1&&u>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,u--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let s=t.someProp("clipboardSerializer")||li.fromSchema(t.state.schema),o=S1(),l=o.createElement("div");l.appendChild(s.serializeFragment(r,{document:o}));let a=l.firstChild,c,f=0;for(;a&&a.nodeType==1&&(c=E1[a.nodeName.toLowerCase()]);){for(let h=c.length-1;h>=0;h--){let p=o.createElement(c[h]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),f++}a=l.firstChild}a&&a.nodeType==1&&a.setAttribute("data-pm-slice",`${i} ${u}${f?` -${f}`:""} ${JSON.stringify(n)}`);let d=t.someProp("clipboardTextSerializer",h=>h(e,t))||e.content.textBetween(0,e.content.size,`
25
26
 
26
- `);return{dom:l,text:d,slice:e}}function qp(t,e,n,r,i){let u=i.parent.type.spec.code,s,o;if(!n&&!e)return null;let l=!!e&&(r||u||!n);if(l){if(t.someProp("transformPastedText",d=>{e=d(e,u||r,t)}),u)return o=new z(T.from(t.state.schema.text(e.replace(/\r\n?/g,`
27
- `))),0,0),t.someProp("transformPasted",d=>{o=d(o,t,!0)}),o;let f=t.someProp("clipboardTextParser",d=>d(e,i,r,t));if(f)o=f;else{let d=i.marks(),{schema:h}=t.state,p=ri.fromSchema(h);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let b=s.appendChild(document.createElement("p"));m&&b.appendChild(p.serializeNode(h.text(m,d)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=H3(n),mu&&q3(s);let a=s&&s.querySelector("[data-pm-slice]"),c=a&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(a.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let f=+c[3];f>0;f--){let d=s.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;s=d}if(o||(o=(t.someProp("clipboardParser")||t.someProp("domParser")||Zi.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!$3.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)o=j3(cd(o,+c[1],+c[2]),c[4]);else if(o=z.maxOpen(V3(o.content,i),!0),o.openStart||o.openEnd){let f=0,d=0;for(let h=o.content.firstChild;f<o.openStart&&!h.type.spec.isolating;f++,h=h.firstChild);for(let h=o.content.lastChild;d<o.openEnd&&!h.type.spec.isolating;d++,h=h.lastChild);o=cd(o,f,d)}return t.someProp("transformPasted",f=>{o=f(o,t,l)}),o}const $3=/^(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)$/i;function V3(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),u,s=[];if(t.forEach(o=>{if(!s)return;let l=i.findWrapping(o.type),a;if(!l)return s=null;if(a=s.length&&u.length&&Wp(l,u,o,s[s.length-1],0))s[s.length-1]=a;else{s.length&&(s[s.length-1]=Gp(s[s.length-1],u.length));let c=jp(o,l);s.push(c),i=i.matchType(c.type),u=l}}),s)return T.from(s)}return t}function jp(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,T.from(t));return t}function Wp(t,e,n,r,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let u=Wp(t,e,n,r.lastChild,i+1);if(u)return r.copy(r.content.replaceChild(r.childCount-1,u));if(r.contentMatchAt(r.childCount).matchType(i==t.length-1?n.type:t[i+1]))return r.copy(r.content.append(T.from(jp(n,t,i+1))))}}function Gp(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Gp(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(T.empty,!0);return t.copy(n.append(r))}function Xl(t,e,n,r,i,u){let s=e<0?t.firstChild:t.lastChild,o=s.content;return t.childCount>1&&(u=0),i<r-1&&(o=Xl(o,e,n,r,i+1,u)),i>=n&&(o=e<0?s.contentMatchAt(0).fillBefore(o,u<=i).append(o):o.append(s.contentMatchAt(s.childCount).fillBefore(T.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(o))}function cd(t,e,n){return e<t.openStart&&(t=new z(Xl(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new z(Xl(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Kp={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let fd=null;function Jp(){return fd||(fd=document.implementation.createHTMLDocument("title"))}let Yo=null;function U3(t){let e=window.trustedTypes;return e?(Yo||(Yo=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Yo.createHTML(t)):t}function H3(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Jp().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&Kp[r[1].toLowerCase()])&&(t=i.map(u=>"<"+u+">").join("")+t+i.map(u=>"</"+u+">").reverse().join("")),n.innerHTML=U3(t),i)for(let u=0;u<i.length;u++)n=n.querySelector(i[u])||n;return n}function q3(t){let e=t.querySelectorAll(ze?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function j3(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:i,openStart:u,openEnd:s}=t;for(let o=r.length-2;o>=0;o-=2){let l=n.nodes[r[o]];if(!l||l.hasRequiredAttrs())break;i=T.from(l.create(r[o+1],i)),u++,s++}return new z(i,u,s)}const Xe={},Ye={},W3={touchstart:!0,touchmove:!0};class G3{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function K3(t){for(let e in Xe){let n=Xe[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{Z3(t,r)&&!Ka(t,r)&&(t.editable||!(r.type in Ye))&&n(t,r)},W3[e]?{passive:!0}:void 0)}je&&t.dom.addEventListener("input",()=>null),Yl(t)}function $n(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function J3(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Yl(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Ka(t,r))})}function Ka(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function Z3(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function X3(t,e){!Ka(t,e)&&Xe[e.type]&&(t.editable||!(e.type in Ye))&&Xe[e.type](t,e)}Ye.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Xp(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(mn&&ze&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ti&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,or(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||z3(t,n)?n.preventDefault():$n(t,"key")};Ye.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Ye.keypress=(t,e)=>{let n=e;if(Xp(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||mt&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof ne)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),u=()=>t.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,i,u))&&t.dispatch(u()),n.preventDefault()}};function bo(t){return{left:t.clientX,top:t.clientY}}function Y3(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Ja(t,e,n,r,i){if(r==-1)return!1;let u=t.state.doc.resolve(r);for(let s=u.depth+1;s>0;s--)if(t.someProp(e,o=>s>u.depth?o(t,n,u.nodeAfter,u.before(s),i,!0):o(t,n,u.node(s),u.before(s),i,!1)))return!0;return!1}function Wr(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function Q3(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&q.isSelectable(r)?(Wr(t,new q(n)),!0):!1}function ex(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof q&&(r=n.node);let u=t.state.doc.resolve(e);for(let s=u.depth+1;s>0;s--){let o=s>u.depth?u.nodeAfter:u.node(s);if(q.isSelectable(o)){r&&n.$from.depth>0&&s>=n.$from.depth&&u.before(n.$from.depth+1)==n.$from.pos?i=u.before(n.$from.depth):i=u.before(s);break}}return i!=null?(Wr(t,q.create(t.state.doc,i)),!0):!1}function tx(t,e,n,r,i){return Ja(t,"handleClickOn",e,n,r)||t.someProp("handleClick",u=>u(t,e,r))||(i?ex(t,n):Q3(t,n))}function nx(t,e,n,r){return Ja(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function rx(t,e,n,r){return Ja(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||ix(t,n,r)}function ix(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(Wr(t,ne.create(r,0,r.content.size)),!0):!1;let i=r.resolve(e);for(let u=i.depth+1;u>0;u--){let s=u>i.depth?i.nodeAfter:i.node(u),o=i.before(u);if(s.inlineContent)Wr(t,ne.create(r,o+1,o+1+s.content.size));else if(q.isSelectable(s))Wr(t,q.create(r,o));else continue;return!0}}function Za(t){return ms(t)}const Zp=mt?"metaKey":"ctrlKey";Xe.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Za(t),i=Date.now(),u="singleClick";i-t.input.lastClick.time<500&&Y3(n,t.input.lastClick)&&!n[Zp]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?u="doubleClick":t.input.lastClick.type=="doubleClick"&&(u="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:u,button:n.button};let s=t.posAtCoords(bo(n));s&&(u=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new ux(t,s,n,!!r)):(u=="doubleClick"?nx:rx)(t,s.pos,s.inside,n)?n.preventDefault():$n(t,"pointer"))};class ux{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[Zp],this.allowDefault=r.shiftKey;let u,s;if(n.inside>-1)u=e.state.doc.nodeAt(n.inside),s=n.inside;else{let c=e.state.doc.resolve(n.pos);u=c.parent,s=c.depth?c.before():0}const o=i?null:r.target,l=o?e.docView.nearestDesc(o,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:a}=e.state;r.button==0&&(u.type.spec.draggable&&u.type.spec.selectable!==!1||a instanceof q&&a.from<=s&&a.to>s)&&(this.mightDrag={node:u,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Et&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),$n(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>bn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(bo(e))),this.updateAllowDefault(e),this.allowDefault||!n?$n(this.view,"pointer"):tx(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||je&&this.mightDrag&&!this.mightDrag.node.isAtom||ze&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Wr(this.view,Q.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):$n(this.view,"pointer")}move(e){this.updateAllowDefault(e),$n(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Xe.touchstart=t=>{t.input.lastTouch=Date.now(),Za(t),$n(t,"pointer")};Xe.touchmove=t=>{t.input.lastTouch=Date.now(),$n(t,"pointer")};Xe.contextmenu=t=>Za(t);function Xp(t,e){return t.composing?!0:je&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const sx=mn?5e3:-1;Ye.compositionstart=Ye.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof ne&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||ze&&Tp&&ox(t)))t.markCursor=t.state.storedMarks||n.marks(),ms(t,!0),t.markCursor=null;else if(ms(t,!e.selection.empty),Et&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,u=r.focusOffset;i&&i.nodeType==1&&u!=0;){let s=u<0?i.lastChild:i.childNodes[u-1];if(!s)break;if(s.nodeType==3){let o=t.domSelection();o&&o.collapse(s,s.nodeValue.length);break}else i=s,u=-1}}t.input.composing=!0}Yp(t,sx)};function ox(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}Ye.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Yp(t,20))};function Yp(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>ms(t),e))}function Qp(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=ax());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function lx(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=e3(e.focusNode,e.focusOffset),r=t3(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,u=t.domObserver.lastChangedTextNode;if(n==u||r==u)return u;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function ax(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function ms(t,e=!1){if(!(mn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Qp(t),e||t.docView&&t.docView.dirty){let n=ja(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function cx(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const eu=it&&Vn<15||ti&&u3<604;Xe.copy=Ye.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let u=eu?null:n.clipboardData,s=r.content(),{dom:o,text:l}=Ga(t,s);u?(n.preventDefault(),u.clearData(),u.setData("text/html",o.innerHTML),u.setData("text/plain",l)):cx(t,o),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function fx(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function dx(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?tu(t,r.value,null,i,e):tu(t,r.textContent,r.innerHTML,i,e)},50)}function tu(t,e,n,r,i){let u=qp(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,i,u||z.empty)))return!0;if(!u)return!1;let s=fx(u),o=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(u);return t.dispatch(o.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function e1(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ye.paste=(t,e)=>{let n=e;if(t.composing&&!mn)return;let r=eu?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&tu(t,e1(r),r.getData("text/html"),i,n)?n.preventDefault():dx(t,n)};class t1{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const hx=mt?"altKey":"ctrlKey";function n1(t,e){let n;return t.someProp("dragCopies",r=>{n=n||r(e)}),n!=null?!n:!e[hx]}Xe.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,u=i.empty?null:t.posAtCoords(bo(n)),s;if(!(u&&u.pos>=i.from&&u.pos<=(i instanceof q?i.to-1:i.to))){if(r&&r.mightDrag)s=q.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=t.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=t.docView&&(s=q.create(t.state.doc,f.posBefore))}}let o=(s||t.state.selection).content(),{dom:l,text:a,slice:c}=Ga(t,o);(!n.dataTransfer.files.length||!ze||_p>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(eu?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",eu||n.dataTransfer.setData("text/plain",a),t.dragging=new t1(c,n1(t,n),s)};Xe.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Ye.dragover=Ye.dragenter=(t,e)=>e.preventDefault();Ye.drop=(t,e)=>{try{px(t,e,t.dragging)}finally{t.dragging=null}};function px(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(bo(e));if(!r)return;let i=t.state.doc.resolve(r.pos),u=n&&n.slice;u?t.someProp("transformPasted",h=>{u=h(u,t,!1)}):u=qp(t,e1(e.dataTransfer),eu?null:e.dataTransfer.getData("text/html"),!1,i);let s=!!(n&&n1(t,e));if(t.someProp("handleDrop",h=>h(t,e,u||z.empty,s))){e.preventDefault();return}if(!u)return;e.preventDefault();let o=u?dp(t.state.doc,i.pos,u):i.pos;o==null&&(o=i.pos);let l=t.state.tr;if(s){let{node:h}=n;h?h.replace(l):l.deleteSelection()}let a=l.mapping.map(o),c=u.openStart==0&&u.openEnd==0&&u.content.childCount==1,f=l.doc;if(c?l.replaceRangeWith(a,a,u.content.firstChild):l.replaceRange(a,a,u),l.doc.eq(f))return;let d=l.doc.resolve(a);if(c&&q.isSelectable(u.content.firstChild)&&d.nodeAfter&&d.nodeAfter.sameMarkup(u.content.firstChild))l.setSelection(new q(d));else{let h=l.mapping.map(o);l.mapping.maps[l.mapping.maps.length-1].forEach((p,m,b,x)=>h=x),l.setSelection(Wa(t,d,l.doc.resolve(h)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))}Xe.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&bn(t)},20))};Xe.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Xe.beforeinput=(t,e)=>{if(ze&&mn&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",u=>u(t,or(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in Ye)Xe[t]=Ye[t];function nu(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class gs{constructor(e,n){this.toDOM=e,this.spec=n||xr,this.side=this.spec.side||0}map(e,n,r,i){let{pos:u,deleted:s}=e.mapResult(n.from+i,this.side<0?-1:1);return s?null:new yt(u-r,u-r,this)}valid(){return!0}eq(e){return this==e||e instanceof gs&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&nu(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Hn{constructor(e,n){this.attrs=e,this.spec=n||xr}map(e,n,r,i){let u=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return u>=s?null:new yt(u,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Hn&&nu(this.attrs,e.attrs)&&nu(this.spec,e.spec)}static is(e){return e.type instanceof Hn}destroy(){}}class Xa{constructor(e,n){this.attrs=e,this.spec=n||xr}map(e,n,r,i){let u=e.mapResult(n.from+i,1);if(u.deleted)return null;let s=e.mapResult(n.to+i,-1);return s.deleted||s.pos<=u.pos?null:new yt(u.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:i}=e.content.findIndex(n.from),u;return i==n.from&&!(u=e.child(r)).isText&&i+u.nodeSize==n.to}eq(e){return this==e||e instanceof Xa&&nu(this.attrs,e.attrs)&&nu(this.spec,e.spec)}destroy(){}}class yt{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new yt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new yt(e,e,new gs(n,r))}static inline(e,n,r,i){return new yt(e,n,new Hn(r,i))}static node(e,n,r,i){return new yt(e,n,new Xa(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof Hn}get widget(){return this.type instanceof gs}}const Rr=[],xr={};class De{constructor(e,n){this.local=e.length?e:Rr,this.children=n.length?n:Rr}static create(e,n){return n.length?bs(n,e,0,xr):Ue}find(e,n,r){let i=[];return this.findInner(e??0,n??1e9,i,0,r),i}findInner(e,n,r,i,u){for(let s=0;s<this.local.length;s++){let o=this.local[s];o.from<=n&&o.to>=e&&(!u||u(o.spec))&&r.push(o.copy(o.from+i,o.to+i))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let o=this.children[s]+1;this.children[s+2].findInner(e-o,n-o,r,i+o,u)}}map(e,n,r){return this==Ue||e.maps.length==0?this:this.mapInner(e,n,0,0,r||xr)}mapInner(e,n,r,i,u){let s;for(let o=0;o<this.local.length;o++){let l=this.local[o].map(e,r,i);l&&l.type.valid(n,l)?(s||(s=[])).push(l):u.onRemove&&u.onRemove(this.local[o].spec)}return this.children.length?mx(this.children,s||[],e,n,r,i,u):s?new De(s.sort(Cr),Rr):Ue}add(e,n){return n.length?this==Ue?De.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let i,u=0;e.forEach((o,l)=>{let a=l+r,c;if(c=i1(n,o,a)){for(i||(i=this.children.slice());u<i.length&&i[u]<l;)u+=3;i[u]==l?i[u+2]=i[u+2].addInner(o,c,a+1):i.splice(u,0,l,l+o.nodeSize,bs(c,o,a+1,xr)),u+=3}});let s=r1(u?u1(n):n,-r);for(let o=0;o<s.length;o++)s[o].type.valid(e,s[o])||s.splice(o--,1);return new De(s.length?this.local.concat(s).sort(Cr):this.local,i||this.children)}remove(e){return e.length==0||this==Ue?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,i=this.local;for(let u=0;u<r.length;u+=3){let s,o=r[u]+n,l=r[u+1]+n;for(let c=0,f;c<e.length;c++)(f=e[c])&&f.from>o&&f.to<l&&(e[c]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let a=r[u+2].removeInner(s,o+1);a!=Ue?r[u+2]=a:(r.splice(u,3),u-=3)}if(i.length){for(let u=0,s;u<e.length;u++)if(s=e[u])for(let o=0;o<i.length;o++)i[o].eq(s,n)&&(i==this.local&&(i=this.local.slice()),i.splice(o--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new De(i,r):Ue}forChild(e,n){if(this==Ue)return this;if(n.isLeaf)return De.empty;let r,i;for(let o=0;o<this.children.length;o+=3)if(this.children[o]>=e){this.children[o]==e&&(r=this.children[o+2]);break}let u=e+1,s=u+n.content.size;for(let o=0;o<this.local.length;o++){let l=this.local[o];if(l.from<s&&l.to>u&&l.type instanceof Hn){let a=Math.max(u,l.from)-u,c=Math.min(s,l.to)-u;a<c&&(i||(i=[])).push(l.copy(a,c))}}if(i){let o=new De(i.sort(Cr),Rr);return r?new Fn([o,r]):o}return r||Ue}eq(e){if(this==e)return!0;if(!(e instanceof De)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return Ya(this.localsInner(e))}localsInner(e){if(this==Ue)return Rr;if(e.inlineContent||!this.local.some(Hn.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Hn||n.push(this.local[r]);return n}forEachSet(e){e(this)}}De.empty=new De([],[]);De.removeOverlap=Ya;const Ue=De.empty;class Fn{constructor(e){this.members=e}map(e,n){const r=this.members.map(i=>i.map(e,n,xr));return Fn.from(r)}forChild(e,n){if(n.isLeaf)return De.empty;let r=[];for(let i=0;i<this.members.length;i++){let u=this.members[i].forChild(e,n);u!=Ue&&(u instanceof Fn?r=r.concat(u.members):r.push(u))}return Fn.from(r)}eq(e){if(!(e instanceof Fn)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let i=0;i<this.members.length;i++){let u=this.members[i].localsInner(e);if(u.length)if(!n)n=u;else{r&&(n=n.slice(),r=!1);for(let s=0;s<u.length;s++)n.push(u[s])}}return n?Ya(r?n:n.sort(Cr)):Rr}static from(e){switch(e.length){case 0:return Ue;case 1:return e[0];default:return new Fn(e.every(n=>n instanceof De)?e:e.reduce((n,r)=>n.concat(r instanceof De?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function mx(t,e,n,r,i,u,s){let o=t.slice();for(let a=0,c=u;a<n.maps.length;a++){let f=0;n.maps[a].forEach((d,h,p,m)=>{let b=m-p-(h-d);for(let x=0;x<o.length;x+=3){let w=o[x+1];if(w<0||d>w+c-f)continue;let E=o[x]+c-f;h>=E?o[x+1]=d<=E?-2:-1:d>=c&&b&&(o[x]+=b,o[x+1]+=b)}f+=b}),c=n.maps[a].map(c,-1)}let l=!1;for(let a=0;a<o.length;a+=3)if(o[a+1]<0){if(o[a+1]==-2){l=!0,o[a+1]=-1;continue}let c=n.map(t[a]+u),f=c-i;if(f<0||f>=r.content.size){l=!0;continue}let d=n.map(t[a+1]+u,-1),h=d-i,{index:p,offset:m}=r.content.findIndex(f),b=r.maybeChild(p);if(b&&m==f&&m+b.nodeSize==h){let x=o[a+2].mapInner(n,b,c+1,t[a]+u+1,s);x!=Ue?(o[a]=f,o[a+1]=h,o[a+2]=x):(o[a+1]=-2,l=!0)}else l=!0}if(l){let a=gx(o,t,e,n,i,u,s),c=bs(a,r,0,s);e=c.local;for(let f=0;f<o.length;f+=3)o[f+1]<0&&(o.splice(f,3),f-=3);for(let f=0,d=0;f<c.children.length;f+=3){let h=c.children[f];for(;d<o.length&&o[d]<h;)d+=3;o.splice(d,0,c.children[f],c.children[f+1],c.children[f+2])}}return new De(e.sort(Cr),o)}function r1(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let i=t[r];n.push(new yt(i.from+e,i.to+e,i.type))}return n}function gx(t,e,n,r,i,u,s){function o(l,a){for(let c=0;c<l.local.length;c++){let f=l.local[c].map(r,i,a);f?n.push(f):s.onRemove&&s.onRemove(l.local[c].spec)}for(let c=0;c<l.children.length;c+=3)o(l.children[c+2],l.children[c]+a+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&o(t[l+2],e[l]+u+1);return n}function i1(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,i=null;for(let u=0,s;u<t.length;u++)(s=t[u])&&s.from>n&&s.to<r&&((i||(i=[])).push(s),t[u]=null);return i}function u1(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function bs(t,e,n,r){let i=[],u=!1;e.forEach((o,l)=>{let a=i1(t,o,l+n);if(a){u=!0;let c=bs(a,o,n+l+1,r);c!=Ue&&i.push(l,l+o.nodeSize,c)}});let s=r1(u?u1(t):t,-n).sort(Cr);for(let o=0;o<s.length;o++)s[o].type.valid(e,s[o])||(r.onRemove&&r.onRemove(s[o].spec),s.splice(o--,1));return s.length||i.length?new De(s,i):Ue}function Cr(t,e){return t.from-e.from||t.to-e.to}function Ya(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let i=n+1;i<e.length;i++){let u=e[i];if(u.from==r.from){u.to!=r.to&&(e==t&&(e=t.slice()),e[i]=u.copy(u.from,r.to),dd(e,i+1,u.copy(r.to,u.to)));continue}else{u.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,u.from),dd(e,i,r.copy(u.from,r.to)));break}}}return e}function dd(t,e,n){for(;e<t.length&&Cr(n,t[e])>0;)e++;t.splice(e,0,n)}function Qo(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Ue&&e.push(r)}),t.cursorWrapper&&e.push(De.create(t.state.doc,[t.cursorWrapper.deco])),Fn.from(e)}const bx={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},yx=it&&Vn<=11;class xx{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Cx{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new xx,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);it&&Vn<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():je&&e.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),yx&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,bx)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(id(this.view)){if(this.suppressingSelectionUpdates)return bn(this.view);if(it&&Vn<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&kr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let u=e.focusNode;u;u=ei(u))n.add(u);for(let u=e.anchorNode;u;u=ei(u))if(n.has(u)){r=u;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&id(e)&&!this.ignoreSelectionChange(r),u=-1,s=-1,o=!1,l=[];if(e.editable)for(let c=0;c<n.length;c++){let f=this.registerMutation(n[c],l);f&&(u=u<0?f.from:Math.min(f.from,u),s=s<0?f.to:Math.max(f.to,s),f.typeOver&&(o=!0))}if(l.some(c=>c.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let c of l)if(c.nodeName=="BR"&&c.parentNode){let f=c.nextSibling;for(;f&&f.nodeType==1;){if(f.contentEditable=="false"){c.parentNode.removeChild(c);break}f=f.firstChild}}}else if(Et&&l.length){let c=l.filter(f=>f.nodeName=="BR");if(c.length==2){let[f,d]=c;f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let d of c){let h=d.parentNode;h&&h.nodeName=="LI"&&(!f||Sx(e,f)!=h)&&d.remove()}}}let a=null;u<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&mo(r)&&(a=ja(e))&&a.eq(Q.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,bn(e),this.currentSelection.set(r),e.scrollToSelection()):(u>-1||i)&&(u>-1&&(e.docView.markDirty(u,s),wx(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,kx(e,l)),this.handleDOMChange(u,s,o,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||bn(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let c=0;c<e.addedNodes.length;c++){let f=e.addedNodes[c];n.push(f),f.nodeType==3&&(this.lastChangedTextNode=f)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let i=e.previousSibling,u=e.nextSibling;if(it&&Vn<=11&&e.addedNodes.length)for(let c=0;c<e.addedNodes.length;c++){let{previousSibling:f,nextSibling:d}=e.addedNodes[c];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(i=f),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(u=d)}let s=i&&i.parentNode==e.target?Ie(i)+1:0,o=r.localPosFromDOM(e.target,s,-1),l=u&&u.parentNode==e.target?Ie(u):e.target.childNodes.length,a=r.localPosFromDOM(e.target,l,1);return{from:o,to:a}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let hd=new WeakMap,pd=!1;function wx(t){if(!hd.has(t)&&(hd.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Et,pd)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),pd=!0}}function md(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,u=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return kr(s.node,s.offset,i,u)&&([n,r,i,u]=[i,u,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:u}}function Ex(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return md(t,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?md(t,n):null}function Sx(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function kx(t,e){var n;let{focusNode:r,focusOffset:i}=t.domSelectionRange();for(let u of e)if(((n=u.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=u.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let o=s;for(;;){let l=o.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;o=l}o.insertBefore(u,o.firstChild),r==u&&t.domSelection().collapse(u,i)}else u.parentNode.removeChild(u)}}function Dx(t,e,n){let{node:r,fromOffset:i,toOffset:u,from:s,to:o}=t.docView.parseRange(e,n),l=t.domSelectionRange(),a,c=l.anchorNode;if(c&&t.dom.contains(c.nodeType==1?c:c.parentNode)&&(a=[{node:c,offset:l.anchorOffset}],mo(l)||a.push({node:l.focusNode,offset:l.focusOffset})),ze&&t.input.lastKeyCode===8)for(let b=u;b>i;b--){let x=r.childNodes[b-1],w=x.pmViewDesc;if(x.nodeName=="BR"&&!w){u=b;break}if(!w||w.size)break}let f=t.state.doc,d=t.someProp("domParser")||Zi.fromSchema(t.state.schema),h=f.resolve(s),p=null,m=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:u,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:a,ruleFromNode:Ax,context:h});if(a&&a[0].pos!=null){let b=a[0].pos,x=a[1]&&a[1].pos;x==null&&(x=b),p={anchor:b+s,head:x+s}}return{doc:m,sel:p,from:s,to:o}}function Ax(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(je&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||je&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const _x=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Tx(t,e,n,r,i){let u=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let R=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,U=ja(t,R);if(U&&!t.state.selection.eq(U)){if(ze&&mn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",J=>J(t,or(13,"Enter"))))return;let P=t.state.tr.setSelection(U);R=="pointer"?P.setMeta("pointer",!0):R=="key"&&P.scrollIntoView(),u&&P.setMeta("composition",u),t.dispatch(P)}return}let s=t.state.doc.resolve(e),o=s.sharedDepth(n);e=s.before(o+1),n=t.state.doc.resolve(n).after(o+1);let l=t.state.selection,a=Dx(t,e,n),c=t.state.doc,f=c.slice(a.from,a.to),d,h;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(d=t.state.selection.to,h="end"):(d=t.state.selection.from,h="start"),t.input.lastKeyCode=null;let p=vx(f.content,a.doc.content,a.from,d,h);if(p&&t.input.domChangeCount++,(ti&&t.input.lastIOSEnter>Date.now()-225||mn)&&i.some(R=>R.nodeType==1&&!_x.test(R.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",R=>R(t,or(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof ne&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(a.sel&&a.sel.anchor!=a.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(a.sel){let R=gd(t,t.state.doc,a.sel);if(R&&!R.eq(t.state.selection)){let U=t.state.tr.setSelection(R);u&&U.setMeta("composition",u),t.dispatch(U)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof ne&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=a.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=a.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),it&&Vn<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>a.from&&a.doc.textBetween(p.start-a.from-1,p.start-a.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=a.doc.resolveNoCache(p.start-a.from),b=a.doc.resolveNoCache(p.endB-a.from),x=c.resolve(p.start),w=m.sameParent(b)&&m.parent.inlineContent&&x.end()>=p.endA;if((ti&&t.input.lastIOSEnter>Date.now()-225&&(!w||i.some(R=>R.nodeName=="DIV"||R.nodeName=="P"))||!w&&m.pos<a.doc.content.size&&(!m.sameParent(b)||!m.parent.inlineContent)&&m.pos<b.pos&&!/\S/.test(a.doc.textBetween(m.pos,b.pos,"","")))&&t.someProp("handleKeyDown",R=>R(t,or(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&Ox(c,p.start,p.endA,m,b)&&t.someProp("handleKeyDown",R=>R(t,or(8,"Backspace")))){mn&&ze&&t.domObserver.suppressSelectionUpdates();return}ze&&p.endB==p.start&&(t.input.lastChromeDelete=Date.now()),mn&&!w&&m.start()!=b.start()&&b.parentOffset==0&&m.depth==b.depth&&a.sel&&a.sel.anchor==a.sel.head&&a.sel.head==p.endA&&(p.endB-=2,b=a.doc.resolveNoCache(p.endB-a.from),setTimeout(()=>{t.someProp("handleKeyDown",function(R){return R(t,or(13,"Enter"))})},20));let E=p.start,N=p.endA,F=R=>{let U=R||t.state.tr.replace(E,N,a.doc.slice(p.start-a.from,p.endB-a.from));if(a.sel){let P=gd(t,U.doc,a.sel);P&&!(ze&&t.composing&&P.empty&&(p.start!=p.endB||t.input.lastChromeDelete<Date.now()-100)&&(P.head==E||P.head==U.mapping.map(N)-1)||it&&P.empty&&P.head==E)&&U.setSelection(P)}return u&&U.setMeta("composition",u),U.scrollIntoView()},j;if(w)if(m.pos==b.pos){it&&Vn<=11&&m.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>bn(t),20));let R=F(t.state.tr.delete(E,N)),U=c.resolve(p.start).marksAcross(c.resolve(p.endA));U&&R.ensureMarks(U),t.dispatch(R)}else if(p.endA==p.endB&&(j=Nx(m.parent.content.cut(m.parentOffset,b.parentOffset),x.parent.content.cut(x.parentOffset,p.endA-x.start())))){let R=F(t.state.tr);j.type=="add"?R.addMark(E,N,j.mark):R.removeMark(E,N,j.mark),t.dispatch(R)}else if(m.parent.child(m.index()).isText&&m.index()==b.index()-(b.textOffset?0:1)){let R=m.parent.textBetween(m.parentOffset,b.parentOffset),U=()=>F(t.state.tr.insertText(R,E,N));t.someProp("handleTextInput",P=>P(t,E,N,R,U))||t.dispatch(U())}else t.dispatch(F());else t.dispatch(F())}function gd(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Wa(t,e.resolve(n.anchor),e.resolve(n.head))}function Nx(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,u=r,s,o,l;for(let c=0;c<r.length;c++)i=r[c].removeFromSet(i);for(let c=0;c<n.length;c++)u=n[c].removeFromSet(u);if(i.length==1&&u.length==0)o=i[0],s="add",l=c=>c.mark(o.addToSet(c.marks));else if(i.length==0&&u.length==1)o=u[0],s="remove",l=c=>c.mark(o.removeFromSet(c.marks));else return null;let a=[];for(let c=0;c<e.childCount;c++)a.push(l(e.child(c)));if(T.from(a).eq(t))return{mark:o,type:s}}function Ox(t,e,n,r,i){if(n-e<=i.pos-r.pos||el(r,!0,!1)<i.pos)return!1;let u=t.resolve(e);if(!r.parent.isTextblock){let o=u.nodeAfter;return o!=null&&n==e+o.nodeSize}if(u.parentOffset<u.parent.content.size||!u.parent.isTextblock)return!1;let s=t.resolve(el(u,!0,!0));return!s.parent.isTextblock||s.pos>n||el(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function el(t,e,n){let r=t.depth,i=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let u=t.node(r).maybeChild(t.indexAfter(r));for(;u&&!u.isLeaf;)u=u.firstChild,i++}return i}function vx(t,e,n,r,i){let u=t.findDiffStart(e,n);if(u==null)return null;let{a:s,b:o}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let l=Math.max(0,u-Math.min(s,o));r-=s+l-u}if(s<u&&t.size<e.size){let l=r<=u&&r>=s?u-r:0;u-=l,u&&u<e.size&&bd(e.textBetween(u-1,u+1))&&(u+=l?1:-1),o=u+(o-s),s=u}else if(o<u){let l=r<=u&&r>=o?u-r:0;u-=l,u&&u<t.size&&bd(t.textBetween(u-1,u+1))&&(u+=l?1:-1),s=u+(s-o),o=u}return{start:u,endA:s,endB:o}}function bd(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class Mx{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new G3,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Ed),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Cd(this),xd(this),this.nodeViews=wd(this),this.docView=Yf(this.state.doc,yd(this),Qo(this),this.dom,this),this.domObserver=new Cx(this,(r,i,u,s)=>Tx(this,r,i,u,s)),this.domObserver.start(),K3(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Yl(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Ed),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,u=!1,s=!1;e.storedMarks&&this.composing&&(Qp(this),s=!0),this.state=e;let o=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(o||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=wd(this);Ix(h,this.nodeViews)&&(this.nodeViews=h,u=!0)}(o||n.handleDOMEvents!=this._props.handleDOMEvents)&&Yl(this),this.editable=Cd(this),xd(this);let l=Qo(this),a=yd(this),c=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",f=u||!this.docView.matchesNode(e.doc,a,l);(f||!e.selection.eq(i.selection))&&(s=!0);let d=c=="preserve"&&s&&this.dom.style.overflowAnchor==null&&l3(this);if(s){this.domObserver.stop();let h=f&&(it||ze)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&Fx(i.selection,e.selection);if(f){let p=ze?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=lx(this)),(u||!this.docView.update(e.doc,a,l,this))&&(this.docView.updateOuterDeco(a),this.docView.destroy(),this.docView=Yf(e.doc,a,l,this.dom,this)),p&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&M3(this))?bn(this,h):(Vp(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():d&&a3(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof q){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Wf(this,n.getBoundingClientRect(),e)}else Wf(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let u=r.from+(this.state.doc.content.size-n.doc.content.size);(u>0&&u<this.state.doc.content.size&&this.state.doc.nodeAt(u))==r.node&&(i=u)}this.dragging=new t1(e.slice,e.move,i<0?void 0:q.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let s=0;s<this.directPlugins.length;s++){let o=this.directPlugins[s].props[e];if(o!=null&&(i=n?n(o):o))return i}let u=this.state.plugins;if(u)for(let s=0;s<u.length;s++){let o=u[s].props[e];if(o!=null&&(i=n?n(o):o))return i}}hasFocus(){if(it){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&c3(this.dom),bn(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return m3(this,e)}coordsAtPos(e,n=1){return Fp(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return C3(this,n||this.state,e)}pasteHTML(e,n){return tu(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return tu(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Ga(this,e)}destroy(){this.docView&&(J3(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Qo(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Yy())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return X3(this,e)}domSelectionRange(){let e=this.domSelection();return e?je&&this.root.nodeType===11&&r3(this.dom.ownerDocument)==this.dom&&Ex(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}Mx.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function yd(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[yt.node(0,t.state.doc.content.size,e)]}function xd(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:yt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Cd(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Fx(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function wd(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function Ix(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function Ed(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Kn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ys={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Rx=typeof navigator<"u"&&/Mac/.test(navigator.platform),Px=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Re=0;Re<10;Re++)Kn[48+Re]=Kn[96+Re]=String(Re);for(var Re=1;Re<=24;Re++)Kn[Re+111]="F"+Re;for(var Re=65;Re<=90;Re++)Kn[Re]=String.fromCharCode(Re+32),ys[Re]=String.fromCharCode(Re);for(var tl in Kn)ys.hasOwnProperty(tl)||(ys[tl]=Kn[tl]);function Lx(t){var e=Rx&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Px&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?ys:Kn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Bx=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),zx=typeof navigator<"u"&&/Win/.test(navigator.platform);function $x(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,u,s;for(let o=0;o<e.length-1;o++){let l=e[o];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))u=!0;else if(/^mod$/i.test(l))Bx?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),s&&(n="Meta-"+n),u&&(n="Shift-"+n),n}function Vx(t){let e=Object.create(null);for(let n in t)e[$x(n)]=t[n];return e}function nl(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function ow(t){return new po({props:{handleKeyDown:s1(t)}})}function s1(t){let e=Vx(t);return function(n,r){let i=Lx(r),u,s=e[nl(i,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let o=e[nl(i,r,!1)];if(o&&o(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(zx&&r.ctrlKey&&r.altKey)&&(u=Kn[r.keyCode])&&u!=i){let o=e[nl(u,r)];if(o&&o(n.state,n.dispatch,n))return!0}}return!1}}const Ux="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Hx="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Ql="numeric",ea="ascii",ta="alpha",Ii="asciinumeric",wi="alphanumeric",na="domain",o1="emoji",qx="scheme",jx="slashscheme",rl="whitespace";function Wx(t,e){return t in e||(e[t]=[]),e[t]}function fr(t,e,n){e[Ql]&&(e[Ii]=!0,e[wi]=!0),e[ea]&&(e[Ii]=!0,e[ta]=!0),e[Ii]&&(e[wi]=!0),e[ta]&&(e[wi]=!0),e[wi]&&(e[na]=!0),e[o1]&&(e[na]=!0);for(const r in e){const i=Wx(r,n);i.indexOf(t)<0&&i.push(t)}}function Gx(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function rt(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}rt.groups={};rt.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const i=e.jr[r][0],u=e.jr[r][1];if(u&&i.test(t))return u}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let i=0;i<t.length;i++)this.tt(t[i],e,n,r)},tr(t,e,n,r){r=r||rt.groups;let i;return e&&e.j?i=e:(i=new rt(e),n&&r&&fr(e,n,r)),this.jr.push([t,i]),i},ts(t,e,n,r){let i=this;const u=t.length;if(!u)return i;for(let s=0;s<u-1;s++)i=i.tt(t[s]);return i.tt(t[u-1],e,n,r)},tt(t,e,n,r){r=r||rt.groups;const i=this;if(e&&e.j)return i.j[t]=e,e;const u=e;let s,o=i.go(t);if(o?(s=new rt,Object.assign(s.j,o.j),s.jr.push.apply(s.jr,o.jr),s.jd=o.jd,s.t=o.t):s=new rt,u){if(r)if(s.t&&typeof s.t=="string"){const l=Object.assign(Gx(s.t,r),n);fr(u,l,r)}else n&&fr(u,n,r);s.t=u}return i.j[t]=s,s}};const X=(t,e,n,r,i)=>t.ta(e,n,r,i),be=(t,e,n,r,i)=>t.tr(e,n,r,i),Sd=(t,e,n,r,i)=>t.ts(e,n,r,i),_=(t,e,n,r,i)=>t.tt(e,n,r,i),on="WORD",ra="UWORD",l1="ASCIINUMERICAL",a1="ALPHANUMERICAL",ru="LOCALHOST",ia="TLD",ua="UTLD",Gu="SCHEME",Pr="SLASH_SCHEME",Qa="NUM",sa="WS",ec="NL",Ri="OPENBRACE",Pi="CLOSEBRACE",xs="OPENBRACKET",Cs="CLOSEBRACKET",ws="OPENPAREN",Es="CLOSEPAREN",Ss="OPENANGLEBRACKET",ks="CLOSEANGLEBRACKET",Ds="FULLWIDTHLEFTPAREN",As="FULLWIDTHRIGHTPAREN",_s="LEFTCORNERBRACKET",Ts="RIGHTCORNERBRACKET",Ns="LEFTWHITECORNERBRACKET",Os="RIGHTWHITECORNERBRACKET",vs="FULLWIDTHLESSTHAN",Ms="FULLWIDTHGREATERTHAN",Fs="AMPERSAND",Is="APOSTROPHE",Rs="ASTERISK",On="AT",Ps="BACKSLASH",Ls="BACKTICK",Bs="CARET",In="COLON",tc="COMMA",zs="DOLLAR",zt="DOT",$s="EQUALS",nc="EXCLAMATION",pt="HYPHEN",Li="PERCENT",Vs="PIPE",Us="PLUS",Hs="POUND",Bi="QUERY",rc="QUOTE",c1="FULLWIDTHMIDDLEDOT",ic="SEMI",$t="SLASH",zi="TILDE",qs="UNDERSCORE",f1="EMOJI",js="SYM";var d1=Object.freeze({__proto__:null,ALPHANUMERICAL:a1,AMPERSAND:Fs,APOSTROPHE:Is,ASCIINUMERICAL:l1,ASTERISK:Rs,AT:On,BACKSLASH:Ps,BACKTICK:Ls,CARET:Bs,CLOSEANGLEBRACKET:ks,CLOSEBRACE:Pi,CLOSEBRACKET:Cs,CLOSEPAREN:Es,COLON:In,COMMA:tc,DOLLAR:zs,DOT:zt,EMOJI:f1,EQUALS:$s,EXCLAMATION:nc,FULLWIDTHGREATERTHAN:Ms,FULLWIDTHLEFTPAREN:Ds,FULLWIDTHLESSTHAN:vs,FULLWIDTHMIDDLEDOT:c1,FULLWIDTHRIGHTPAREN:As,HYPHEN:pt,LEFTCORNERBRACKET:_s,LEFTWHITECORNERBRACKET:Ns,LOCALHOST:ru,NL:ec,NUM:Qa,OPENANGLEBRACKET:Ss,OPENBRACE:Ri,OPENBRACKET:xs,OPENPAREN:ws,PERCENT:Li,PIPE:Vs,PLUS:Us,POUND:Hs,QUERY:Bi,QUOTE:rc,RIGHTCORNERBRACKET:Ts,RIGHTWHITECORNERBRACKET:Os,SCHEME:Gu,SEMI:ic,SLASH:$t,SLASH_SCHEME:Pr,SYM:js,TILDE:zi,TLD:ia,UNDERSCORE:qs,UTLD:ua,UWORD:ra,WORD:on,WS:sa});const nn=/[a-z]/,mi=new RegExp("\\p{L}","u"),il=new RegExp("\\p{Emoji}","u"),rn=/\d/,ul=/\s/,kd="\r",sl=`
28
- `,Kx="️",Jx="‍",ol="";let Ou=null,vu=null;function Zx(t=[]){const e={};rt.groups=e;const n=new rt;Ou==null&&(Ou=Dd(Ux)),vu==null&&(vu=Dd(Hx)),_(n,"'",Is),_(n,"{",Ri),_(n,"}",Pi),_(n,"[",xs),_(n,"]",Cs),_(n,"(",ws),_(n,")",Es),_(n,"<",Ss),_(n,">",ks),_(n,"(",Ds),_(n,")",As),_(n,"「",_s),_(n,"」",Ts),_(n,"『",Ns),_(n,"』",Os),_(n,"<",vs),_(n,">",Ms),_(n,"&",Fs),_(n,"*",Rs),_(n,"@",On),_(n,"`",Ls),_(n,"^",Bs),_(n,":",In),_(n,",",tc),_(n,"$",zs),_(n,".",zt),_(n,"=",$s),_(n,"!",nc),_(n,"-",pt),_(n,"%",Li),_(n,"|",Vs),_(n,"+",Us),_(n,"#",Hs),_(n,"?",Bi),_(n,'"',rc),_(n,"/",$t),_(n,";",ic),_(n,"~",zi),_(n,"_",qs),_(n,"\\",Ps),_(n,"・",c1);const r=be(n,rn,Qa,{[Ql]:!0});be(r,rn,r);const i=be(r,nn,l1,{[Ii]:!0}),u=be(r,mi,a1,{[wi]:!0}),s=be(n,nn,on,{[ea]:!0});be(s,rn,i),be(s,nn,s),be(i,rn,i),be(i,nn,i);const o=be(n,mi,ra,{[ta]:!0});be(o,nn),be(o,rn,u),be(o,mi,o),be(u,rn,u),be(u,nn),be(u,mi,u);const l=_(n,sl,ec,{[rl]:!0}),a=_(n,kd,sa,{[rl]:!0}),c=be(n,ul,sa,{[rl]:!0});_(n,ol,c),_(a,sl,l),_(a,ol,c),be(a,ul,c),_(c,kd),_(c,sl),be(c,ul,c),_(c,ol,c);const f=be(n,il,f1,{[o1]:!0});_(f,"#"),be(f,il,f),_(f,Kx,f);const d=_(f,Jx);_(d,"#"),be(d,il,f);const h=[[nn,s],[rn,i]],p=[[nn,null],[mi,o],[rn,u]];for(let m=0;m<Ou.length;m++)Sn(n,Ou[m],ia,on,h);for(let m=0;m<vu.length;m++)Sn(n,vu[m],ua,ra,p);fr(ia,{tld:!0,ascii:!0},e),fr(ua,{utld:!0,alpha:!0},e),Sn(n,"file",Gu,on,h),Sn(n,"mailto",Gu,on,h),Sn(n,"http",Pr,on,h),Sn(n,"https",Pr,on,h),Sn(n,"ftp",Pr,on,h),Sn(n,"ftps",Pr,on,h),fr(Gu,{scheme:!0,ascii:!0},e),fr(Pr,{slashscheme:!0,ascii:!0},e),t=t.sort((m,b)=>m[0]>b[0]?1:-1);for(let m=0;m<t.length;m++){const b=t[m][0],w=t[m][1]?{[qx]:!0}:{[jx]:!0};b.indexOf("-")>=0?w[na]=!0:nn.test(b)?rn.test(b)?w[Ii]=!0:w[ea]=!0:w[Ql]=!0,Sd(n,b,b,w)}return Sd(n,"localhost",ru,{ascii:!0}),n.jd=new rt(js),{start:n,tokens:Object.assign({groups:e},d1)}}function h1(t,e){const n=Xx(e.replace(/[A-Z]/g,o=>o.toLowerCase())),r=n.length,i=[];let u=0,s=0;for(;s<r;){let o=t,l=null,a=0,c=null,f=-1,d=-1;for(;s<r&&(l=o.go(n[s]));)o=l,o.accepts()?(f=0,d=0,c=o):f>=0&&(f+=n[s].length,d++),a+=n[s].length,u+=n[s].length,s++;u-=f,s-=d,a-=f,i.push({t:c.t,v:e.slice(u-a,u),s:u-a,e:u})}return i}function Xx(t){const e=[],n=t.length;let r=0;for(;r<n;){let i=t.charCodeAt(r),u,s=i<55296||i>56319||r+1===n||(u=t.charCodeAt(r+1))<56320||u>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Sn(t,e,n,r,i){let u;const s=e.length;for(let o=0;o<s-1;o++){const l=e[o];t.j[l]?u=t.j[l]:(u=new rt(r),u.jr=i.slice(),t.j[l]=u),t=u}return u=new rt(n),u.jr=i.slice(),t.j[e[s-1]]=u,u}function Dd(t){const e=[],n=[];let r=0,i="0123456789";for(;r<t.length;){let u=0;for(;i.indexOf(t[r+u])>=0;)u++;if(u>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+u),10);s>0;s--)n.pop();r+=u}else n.push(t[r]),r++}return e}const iu={defaultProtocol:"http",events:null,format:Ad,formatHref:Ad,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function uc(t,e=null){let n=Object.assign({},iu);t&&(n=Object.assign(n,t instanceof uc?t.o:t));const r=n.ignoreTags,i=[];for(let u=0;u<r.length;u++)i.push(r[u].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=i}uc.prototype={o:iu,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let i=this.o[t];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:iu[t],typeof i=="function"&&r&&(i=i(e,n))):typeof i=="function"&&r&&(i=i(e,n.t,n)),i)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function Ad(t){return t}function p1(t,e){this.t="token",this.v=t,this.tk=e}p1.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=iu.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),i=t.get("tagName",n,e),u=this.toFormattedString(t),s={},o=t.get("className",n,e),l=t.get("target",n,e),a=t.get("rel",n,e),c=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return s.href=r,o&&(s.class=o),l&&(s.target=l),a&&(s.rel=a),c&&Object.assign(s,c),{tagName:i,attributes:s,content:u,eventListeners:f}}};function yo(t,e){class n extends p1{constructor(i,u){super(i,u),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const _d=yo("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Td=yo("text"),Yx=yo("nl"),Mu=yo("url",{isLink:!0,toHref(t=iu.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==ru&&t[1].t===In}}),ht=t=>new rt(t);function Qx({groups:t}){const e=t.domain.concat([Fs,Rs,On,Ps,Ls,Bs,zs,$s,pt,Qa,Li,Vs,Us,Hs,$t,js,zi,qs]),n=[Is,In,tc,zt,nc,Li,Bi,rc,ic,Ss,ks,Ri,Pi,Cs,xs,ws,Es,Ds,As,_s,Ts,Ns,Os,vs,Ms],r=[Fs,Is,Rs,Ps,Ls,Bs,zs,$s,pt,Ri,Pi,Li,Vs,Us,Hs,Bi,$t,js,zi,qs],i=ht(),u=_(i,zi);X(u,r,u),X(u,t.domain,u);const s=ht(),o=ht(),l=ht();X(i,t.domain,s),X(i,t.scheme,o),X(i,t.slashscheme,l),X(s,r,u),X(s,t.domain,s);const a=_(s,On);_(u,On,a),_(o,On,a),_(l,On,a);const c=_(u,zt);X(c,r,u),X(c,t.domain,u);const f=ht();X(a,t.domain,f),X(f,t.domain,f);const d=_(f,zt);X(d,t.domain,f);const h=ht(_d);X(d,t.tld,h),X(d,t.utld,h),_(a,ru,h);const p=_(f,pt);_(p,pt,p),X(p,t.domain,f),X(h,t.domain,f),_(h,zt,d),_(h,pt,p);const m=_(h,In);X(m,t.numeric,_d);const b=_(s,pt),x=_(s,zt);_(b,pt,b),X(b,t.domain,s),X(x,r,u),X(x,t.domain,s);const w=ht(Mu);X(x,t.tld,w),X(x,t.utld,w),X(w,t.domain,s),X(w,r,u),_(w,zt,x),_(w,pt,b),_(w,On,a);const E=_(w,In),N=ht(Mu);X(E,t.numeric,N);const F=ht(Mu),j=ht();X(F,e,F),X(F,n,j),X(j,e,F),X(j,n,j),_(w,$t,F),_(N,$t,F);const R=_(o,In),U=_(l,In),P=_(U,$t),J=_(P,$t);X(o,t.domain,s),_(o,zt,x),_(o,pt,b),X(l,t.domain,s),_(l,zt,x),_(l,pt,b),X(R,t.domain,F),_(R,$t,F),_(R,Bi,F),X(J,t.domain,F),X(J,e,F),_(J,$t,F);const te=[[Ri,Pi],[xs,Cs],[ws,Es],[Ss,ks],[Ds,As],[_s,Ts],[Ns,Os],[vs,Ms]];for(let L=0;L<te.length;L++){const[le,Ce]=te[L],Qe=_(F,le);_(j,le,Qe),_(Qe,Ce,F);const pe=ht(Mu);X(Qe,e,pe);const se=ht();X(Qe,n),X(pe,e,pe),X(pe,n,se),X(se,e,pe),X(se,n,se),_(pe,Ce,F),_(se,Ce,F)}return _(i,ru,w),_(i,ec,Yx),{start:i,tokens:d1}}function e6(t,e,n){let r=n.length,i=0,u=[],s=[];for(;i<r;){let o=t,l=null,a=null,c=0,f=null,d=-1;for(;i<r&&!(l=o.go(n[i].t));)s.push(n[i++]);for(;i<r&&(a=l||o.go(n[i].t));)l=null,o=a,o.accepts()?(d=0,f=o):d>=0&&d++,i++,c++;if(d<0)i-=c,i<r&&(s.push(n[i]),i++);else{s.length>0&&(u.push(ll(Td,e,s)),s=[]),i-=d,c-=d;const h=f.t,p=n.slice(i-c,i);u.push(ll(h,e,p))}}return s.length>0&&u.push(ll(Td,e,s)),u}function ll(t,e,n){const r=n[0].s,i=n[n.length-1].e,u=e.slice(r,i);return new t(u,n)}const t6=typeof console<"u"&&console&&console.warn||(()=>{}),n6="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",me={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function lw(){return rt.groups={},me.scanner=null,me.parser=null,me.tokenQueue=[],me.pluginQueue=[],me.customSchemes=[],me.initialized=!1,me}function aw(t,e=!1){if(me.initialized&&t6(`linkifyjs: already initialized - will not register custom scheme "${t}" ${n6}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
27
+ `);return{dom:l,text:d,slice:e}}function y1(t,e,n,r,i){let u=i.parent.type.spec.code,s,o;if(!n&&!e)return null;let l=!!e&&(r||u||!n);if(l){if(t.someProp("transformPastedText",d=>{e=d(e,u||r,t)}),u)return o=new $(T.from(t.state.schema.text(e.replace(/\r\n?/g,`
28
+ `))),0,0),t.someProp("transformPasted",d=>{o=d(o,t,!0)}),o;let f=t.someProp("clipboardTextParser",d=>d(e,i,r,t));if(f)o=f;else{let d=i.marks(),{schema:h}=t.state,p=li.fromSchema(h);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let b=s.appendChild(document.createElement("p"));m&&b.appendChild(p.serializeNode(h.text(m,d)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=c6(n),Cu&&f6(s);let a=s&&s.querySelector("[data-pm-slice]"),c=a&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(a.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let f=+c[3];f>0;f--){let d=s.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;s=d}if(o||(o=(t.someProp("clipboardParser")||t.someProp("domParser")||tu.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!o6.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)o=d6(Od(o,+c[1],+c[2]),c[4]);else if(o=$.maxOpen(l6(o.content,i),!0),o.openStart||o.openEnd){let f=0,d=0;for(let h=o.content.firstChild;f<o.openStart&&!h.type.spec.isolating;f++,h=h.firstChild);for(let h=o.content.lastChild;d<o.openEnd&&!h.type.spec.isolating;d++,h=h.lastChild);o=Od(o,f,d)}return t.someProp("transformPasted",f=>{o=f(o,t,l)}),o}const o6=/^(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)$/i;function l6(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),u,s=[];if(t.forEach(o=>{if(!s)return;let l=i.findWrapping(o.type),a;if(!l)return s=null;if(a=s.length&&u.length&&C1(l,u,o,s[s.length-1],0))s[s.length-1]=a;else{s.length&&(s[s.length-1]=w1(s[s.length-1],u.length));let c=x1(o,l);s.push(c),i=i.matchType(c.type),u=l}}),s)return T.from(s)}return t}function x1(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,T.from(t));return t}function C1(t,e,n,r,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let u=C1(t,e,n,r.lastChild,i+1);if(u)return r.copy(r.content.replaceChild(r.childCount-1,u));if(r.contentMatchAt(r.childCount).matchType(i==t.length-1?n.type:t[i+1]))return r.copy(r.content.append(T.from(x1(n,t,i+1))))}}function w1(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,w1(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(T.empty,!0);return t.copy(n.append(r))}function oa(t,e,n,r,i,u){let s=e<0?t.firstChild:t.lastChild,o=s.content;return t.childCount>1&&(u=0),i<r-1&&(o=oa(o,e,n,r,i+1,u)),i>=n&&(o=e<0?s.contentMatchAt(0).fillBefore(o,u<=i).append(o):o.append(s.contentMatchAt(s.childCount).fillBefore(T.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(o))}function Od(t,e,n){return e<t.openStart&&(t=new $(oa(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new $(oa(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const E1={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Nd=null;function S1(){return Nd||(Nd=document.implementation.createHTMLDocument("title"))}let ol=null;function a6(t){let e=window.trustedTypes;return e?(ol||(ol=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),ol.createHTML(t)):t}function c6(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=S1().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&E1[r[1].toLowerCase()])&&(t=i.map(u=>"<"+u+">").join("")+t+i.map(u=>"</"+u+">").reverse().join("")),n.innerHTML=a6(t),i)for(let u=0;u<i.length;u++)n=n.querySelector(i[u])||n;return n}function f6(t){let e=t.querySelectorAll($e?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function d6(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:i,openStart:u,openEnd:s}=t;for(let o=r.length-2;o>=0;o-=2){let l=n.nodes[r[o]];if(!l||l.hasRequiredAttrs())break;i=T.from(l.create(r[o+1],i)),u++,s++}return new $(i,u,s)}const Xe={},Ye={},h6={touchstart:!0,touchmove:!0};class p6{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function m6(t){for(let e in Xe){let n=Xe[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{b6(t,r)&&!sc(t,r)&&(t.editable||!(r.type in Ye))&&n(t,r)},h6[e]?{passive:!0}:void 0)}je&&t.dom.addEventListener("input",()=>null),la(t)}function Un(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function g6(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function la(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>sc(t,r))})}function sc(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function b6(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function y6(t,e){!sc(t,e)&&Xe[e.type]&&(t.editable||!(e.type in Ye))&&Xe[e.type](t,e)}Ye.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!D1(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(bn&&$e&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),si&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,cr(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||s6(t,n)?n.preventDefault():Un(t,"key")};Ye.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Ye.keypress=(t,e)=>{let n=e;if(D1(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||bt&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof ne)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),u=()=>t.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,i,u))&&t.dispatch(u()),n.preventDefault()}};function Do(t){return{left:t.clientX,top:t.clientY}}function x6(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function oc(t,e,n,r,i){if(r==-1)return!1;let u=t.state.doc.resolve(r);for(let s=u.depth+1;s>0;s--)if(t.someProp(e,o=>s>u.depth?o(t,n,u.nodeAfter,u.before(s),i,!0):o(t,n,u.node(s),u.before(s),i,!1)))return!0;return!1}function Xr(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function C6(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&q.isSelectable(r)?(Xr(t,new q(n)),!0):!1}function w6(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof q&&(r=n.node);let u=t.state.doc.resolve(e);for(let s=u.depth+1;s>0;s--){let o=s>u.depth?u.nodeAfter:u.node(s);if(q.isSelectable(o)){r&&n.$from.depth>0&&s>=n.$from.depth&&u.before(n.$from.depth+1)==n.$from.pos?i=u.before(n.$from.depth):i=u.before(s);break}}return i!=null?(Xr(t,q.create(t.state.doc,i)),!0):!1}function E6(t,e,n,r,i){return oc(t,"handleClickOn",e,n,r)||t.someProp("handleClick",u=>u(t,e,r))||(i?w6(t,n):C6(t,n))}function S6(t,e,n,r){return oc(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function k6(t,e,n,r){return oc(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||D6(t,n,r)}function D6(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(Xr(t,ne.create(r,0,r.content.size)),!0):!1;let i=r.resolve(e);for(let u=i.depth+1;u>0;u--){let s=u>i.depth?i.nodeAfter:i.node(u),o=i.before(u);if(s.inlineContent)Xr(t,ne.create(r,o+1,o+1+s.content.size));else if(q.isSelectable(s))Xr(t,q.create(r,o));else continue;return!0}}function lc(t){return Es(t)}const k1=bt?"metaKey":"ctrlKey";Xe.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=lc(t),i=Date.now(),u="singleClick";i-t.input.lastClick.time<500&&x6(n,t.input.lastClick)&&!n[k1]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?u="doubleClick":t.input.lastClick.type=="doubleClick"&&(u="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:u,button:n.button};let s=t.posAtCoords(Do(n));s&&(u=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new A6(t,s,n,!!r)):(u=="doubleClick"?S6:k6)(t,s.pos,s.inside,n)?n.preventDefault():Un(t,"pointer"))};class A6{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[k1],this.allowDefault=r.shiftKey;let u,s;if(n.inside>-1)u=e.state.doc.nodeAt(n.inside),s=n.inside;else{let c=e.state.doc.resolve(n.pos);u=c.parent,s=c.depth?c.before():0}const o=i?null:r.target,l=o?e.docView.nearestDesc(o,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:a}=e.state;r.button==0&&(u.type.spec.draggable&&u.type.spec.selectable!==!1||a instanceof q&&a.from<=s&&a.to>s)&&(this.mightDrag={node:u,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&kt&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Un(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>xn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Do(e))),this.updateAllowDefault(e),this.allowDefault||!n?Un(this.view,"pointer"):E6(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||je&&this.mightDrag&&!this.mightDrag.node.isAtom||$e&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Xr(this.view,Q.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):Un(this.view,"pointer")}move(e){this.updateAllowDefault(e),Un(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Xe.touchstart=t=>{t.input.lastTouch=Date.now(),lc(t),Un(t,"pointer")};Xe.touchmove=t=>{t.input.lastTouch=Date.now(),Un(t,"pointer")};Xe.contextmenu=t=>lc(t);function D1(t,e){return t.composing?!0:je&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const _6=bn?5e3:-1;Ye.compositionstart=Ye.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof ne&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||$e&&n1&&T6(t)))t.markCursor=t.state.storedMarks||n.marks(),Es(t,!0),t.markCursor=null;else if(Es(t,!e.selection.empty),kt&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,u=r.focusOffset;i&&i.nodeType==1&&u!=0;){let s=u<0?i.lastChild:i.childNodes[u-1];if(!s)break;if(s.nodeType==3){let o=t.domSelection();o&&o.collapse(s,s.nodeValue.length);break}else i=s,u=-1}}t.input.composing=!0}A1(t,_6)};function T6(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}Ye.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,A1(t,20))};function A1(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Es(t),e))}function _1(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=N6());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function O6(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=wx(e.focusNode,e.focusOffset),r=Ex(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,u=t.domObserver.lastChangedTextNode;if(n==u||r==u)return u;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function N6(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Es(t,e=!1){if(!(bn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),_1(t),e||t.docView&&t.docView.dirty){let n=rc(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function v6(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const uu=ut&&qn<15||si&&Ax<604;Xe.copy=Ye.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let u=uu?null:n.clipboardData,s=r.content(),{dom:o,text:l}=uc(t,s);u?(n.preventDefault(),u.clearData(),u.setData("text/html",o.innerHTML),u.setData("text/plain",l)):v6(t,o),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function M6(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function F6(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?su(t,r.value,null,i,e):su(t,r.textContent,r.innerHTML,i,e)},50)}function su(t,e,n,r,i){let u=y1(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,i,u||$.empty)))return!0;if(!u)return!1;let s=M6(u),o=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(u);return t.dispatch(o.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function T1(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ye.paste=(t,e)=>{let n=e;if(t.composing&&!bn)return;let r=uu?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&su(t,T1(r),r.getData("text/html"),i,n)?n.preventDefault():F6(t,n)};class O1{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const R6=bt?"altKey":"ctrlKey";function N1(t,e){let n;return t.someProp("dragCopies",r=>{n=n||r(e)}),n!=null?!n:!e[R6]}Xe.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,u=i.empty?null:t.posAtCoords(Do(n)),s;if(!(u&&u.pos>=i.from&&u.pos<=(i instanceof q?i.to-1:i.to))){if(r&&r.mightDrag)s=q.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=t.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=t.docView&&(s=q.create(t.state.doc,f.posBefore))}}let o=(s||t.state.selection).content(),{dom:l,text:a,slice:c}=uc(t,o);(!n.dataTransfer.files.length||!$e||t1>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(uu?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",uu||n.dataTransfer.setData("text/plain",a),t.dragging=new O1(c,N1(t,n),s)};Xe.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Ye.dragover=Ye.dragenter=(t,e)=>e.preventDefault();Ye.drop=(t,e)=>{try{I6(t,e,t.dragging)}finally{t.dragging=null}};function I6(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(Do(e));if(!r)return;let i=t.state.doc.resolve(r.pos),u=n&&n.slice;u?t.someProp("transformPasted",h=>{u=h(u,t,!1)}):u=y1(t,T1(e.dataTransfer),uu?null:e.dataTransfer.getData("text/html"),!1,i);let s=!!(n&&N1(t,e));if(t.someProp("handleDrop",h=>h(t,e,u||$.empty,s))){e.preventDefault();return}if(!u)return;e.preventDefault();let o=u?zp(t.state.doc,i.pos,u):i.pos;o==null&&(o=i.pos);let l=t.state.tr;if(s){let{node:h}=n;h?h.replace(l):l.deleteSelection()}let a=l.mapping.map(o),c=u.openStart==0&&u.openEnd==0&&u.content.childCount==1,f=l.doc;if(c?l.replaceRangeWith(a,a,u.content.firstChild):l.replaceRange(a,a,u),l.doc.eq(f))return;let d=l.doc.resolve(a);if(c&&q.isSelectable(u.content.firstChild)&&d.nodeAfter&&d.nodeAfter.sameMarkup(u.content.firstChild))l.setSelection(new q(d));else{let h=l.mapping.map(o);l.mapping.maps[l.mapping.maps.length-1].forEach((p,m,b,x)=>h=x),l.setSelection(ic(t,d,l.doc.resolve(h)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))}Xe.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&xn(t)},20))};Xe.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Xe.beforeinput=(t,e)=>{if($e&&bn&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",u=>u(t,cr(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in Ye)Xe[t]=Ye[t];function ou(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Ss{constructor(e,n){this.toDOM=e,this.spec=n||Er,this.side=this.spec.side||0}map(e,n,r,i){let{pos:u,deleted:s}=e.mapResult(n.from+i,this.side<0?-1:1);return s?null:new Ct(u-r,u-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Ss&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&ou(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Wn{constructor(e,n){this.attrs=e,this.spec=n||Er}map(e,n,r,i){let u=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return u>=s?null:new Ct(u,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Wn&&ou(this.attrs,e.attrs)&&ou(this.spec,e.spec)}static is(e){return e.type instanceof Wn}destroy(){}}class ac{constructor(e,n){this.attrs=e,this.spec=n||Er}map(e,n,r,i){let u=e.mapResult(n.from+i,1);if(u.deleted)return null;let s=e.mapResult(n.to+i,-1);return s.deleted||s.pos<=u.pos?null:new Ct(u.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:i}=e.content.findIndex(n.from),u;return i==n.from&&!(u=e.child(r)).isText&&i+u.nodeSize==n.to}eq(e){return this==e||e instanceof ac&&ou(this.attrs,e.attrs)&&ou(this.spec,e.spec)}destroy(){}}class Ct{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new Ct(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new Ct(e,e,new Ss(n,r))}static inline(e,n,r,i){return new Ct(e,n,new Wn(r,i))}static node(e,n,r,i){return new Ct(e,n,new ac(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof Wn}get widget(){return this.type instanceof Ss}}const zr=[],Er={};class De{constructor(e,n){this.local=e.length?e:zr,this.children=n.length?n:zr}static create(e,n){return n.length?ks(n,e,0,Er):Ue}find(e,n,r){let i=[];return this.findInner(e??0,n??1e9,i,0,r),i}findInner(e,n,r,i,u){for(let s=0;s<this.local.length;s++){let o=this.local[s];o.from<=n&&o.to>=e&&(!u||u(o.spec))&&r.push(o.copy(o.from+i,o.to+i))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let o=this.children[s]+1;this.children[s+2].findInner(e-o,n-o,r,i+o,u)}}map(e,n,r){return this==Ue||e.maps.length==0?this:this.mapInner(e,n,0,0,r||Er)}mapInner(e,n,r,i,u){let s;for(let o=0;o<this.local.length;o++){let l=this.local[o].map(e,r,i);l&&l.type.valid(n,l)?(s||(s=[])).push(l):u.onRemove&&u.onRemove(this.local[o].spec)}return this.children.length?P6(this.children,s||[],e,n,r,i,u):s?new De(s.sort(Sr),zr):Ue}add(e,n){return n.length?this==Ue?De.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let i,u=0;e.forEach((o,l)=>{let a=l+r,c;if(c=M1(n,o,a)){for(i||(i=this.children.slice());u<i.length&&i[u]<l;)u+=3;i[u]==l?i[u+2]=i[u+2].addInner(o,c,a+1):i.splice(u,0,l,l+o.nodeSize,ks(c,o,a+1,Er)),u+=3}});let s=v1(u?F1(n):n,-r);for(let o=0;o<s.length;o++)s[o].type.valid(e,s[o])||s.splice(o--,1);return new De(s.length?this.local.concat(s).sort(Sr):this.local,i||this.children)}remove(e){return e.length==0||this==Ue?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,i=this.local;for(let u=0;u<r.length;u+=3){let s,o=r[u]+n,l=r[u+1]+n;for(let c=0,f;c<e.length;c++)(f=e[c])&&f.from>o&&f.to<l&&(e[c]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let a=r[u+2].removeInner(s,o+1);a!=Ue?r[u+2]=a:(r.splice(u,3),u-=3)}if(i.length){for(let u=0,s;u<e.length;u++)if(s=e[u])for(let o=0;o<i.length;o++)i[o].eq(s,n)&&(i==this.local&&(i=this.local.slice()),i.splice(o--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new De(i,r):Ue}forChild(e,n){if(this==Ue)return this;if(n.isLeaf)return De.empty;let r,i;for(let o=0;o<this.children.length;o+=3)if(this.children[o]>=e){this.children[o]==e&&(r=this.children[o+2]);break}let u=e+1,s=u+n.content.size;for(let o=0;o<this.local.length;o++){let l=this.local[o];if(l.from<s&&l.to>u&&l.type instanceof Wn){let a=Math.max(u,l.from)-u,c=Math.min(s,l.to)-u;a<c&&(i||(i=[])).push(l.copy(a,c))}}if(i){let o=new De(i.sort(Sr),zr);return r?new In([o,r]):o}return r||Ue}eq(e){if(this==e)return!0;if(!(e instanceof De)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return cc(this.localsInner(e))}localsInner(e){if(this==Ue)return zr;if(e.inlineContent||!this.local.some(Wn.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Wn||n.push(this.local[r]);return n}forEachSet(e){e(this)}}De.empty=new De([],[]);De.removeOverlap=cc;const Ue=De.empty;class In{constructor(e){this.members=e}map(e,n){const r=this.members.map(i=>i.map(e,n,Er));return In.from(r)}forChild(e,n){if(n.isLeaf)return De.empty;let r=[];for(let i=0;i<this.members.length;i++){let u=this.members[i].forChild(e,n);u!=Ue&&(u instanceof In?r=r.concat(u.members):r.push(u))}return In.from(r)}eq(e){if(!(e instanceof In)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let i=0;i<this.members.length;i++){let u=this.members[i].localsInner(e);if(u.length)if(!n)n=u;else{r&&(n=n.slice(),r=!1);for(let s=0;s<u.length;s++)n.push(u[s])}}return n?cc(r?n:n.sort(Sr)):zr}static from(e){switch(e.length){case 0:return Ue;case 1:return e[0];default:return new In(e.every(n=>n instanceof De)?e:e.reduce((n,r)=>n.concat(r instanceof De?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function P6(t,e,n,r,i,u,s){let o=t.slice();for(let a=0,c=u;a<n.maps.length;a++){let f=0;n.maps[a].forEach((d,h,p,m)=>{let b=m-p-(h-d);for(let x=0;x<o.length;x+=3){let w=o[x+1];if(w<0||d>w+c-f)continue;let E=o[x]+c-f;h>=E?o[x+1]=d<=E?-2:-1:d>=c&&b&&(o[x]+=b,o[x+1]+=b)}f+=b}),c=n.maps[a].map(c,-1)}let l=!1;for(let a=0;a<o.length;a+=3)if(o[a+1]<0){if(o[a+1]==-2){l=!0,o[a+1]=-1;continue}let c=n.map(t[a]+u),f=c-i;if(f<0||f>=r.content.size){l=!0;continue}let d=n.map(t[a+1]+u,-1),h=d-i,{index:p,offset:m}=r.content.findIndex(f),b=r.maybeChild(p);if(b&&m==f&&m+b.nodeSize==h){let x=o[a+2].mapInner(n,b,c+1,t[a]+u+1,s);x!=Ue?(o[a]=f,o[a+1]=h,o[a+2]=x):(o[a+1]=-2,l=!0)}else l=!0}if(l){let a=L6(o,t,e,n,i,u,s),c=ks(a,r,0,s);e=c.local;for(let f=0;f<o.length;f+=3)o[f+1]<0&&(o.splice(f,3),f-=3);for(let f=0,d=0;f<c.children.length;f+=3){let h=c.children[f];for(;d<o.length&&o[d]<h;)d+=3;o.splice(d,0,c.children[f],c.children[f+1],c.children[f+2])}}return new De(e.sort(Sr),o)}function v1(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let i=t[r];n.push(new Ct(i.from+e,i.to+e,i.type))}return n}function L6(t,e,n,r,i,u,s){function o(l,a){for(let c=0;c<l.local.length;c++){let f=l.local[c].map(r,i,a);f?n.push(f):s.onRemove&&s.onRemove(l.local[c].spec)}for(let c=0;c<l.children.length;c+=3)o(l.children[c+2],l.children[c]+a+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&o(t[l+2],e[l]+u+1);return n}function M1(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,i=null;for(let u=0,s;u<t.length;u++)(s=t[u])&&s.from>n&&s.to<r&&((i||(i=[])).push(s),t[u]=null);return i}function F1(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function ks(t,e,n,r){let i=[],u=!1;e.forEach((o,l)=>{let a=M1(t,o,l+n);if(a){u=!0;let c=ks(a,o,n+l+1,r);c!=Ue&&i.push(l,l+o.nodeSize,c)}});let s=v1(u?F1(t):t,-n).sort(Sr);for(let o=0;o<s.length;o++)s[o].type.valid(e,s[o])||(r.onRemove&&r.onRemove(s[o].spec),s.splice(o--,1));return s.length||i.length?new De(s,i):Ue}function Sr(t,e){return t.from-e.from||t.to-e.to}function cc(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let i=n+1;i<e.length;i++){let u=e[i];if(u.from==r.from){u.to!=r.to&&(e==t&&(e=t.slice()),e[i]=u.copy(u.from,r.to),vd(e,i+1,u.copy(r.to,u.to)));continue}else{u.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,u.from),vd(e,i,r.copy(u.from,r.to)));break}}}return e}function vd(t,e,n){for(;e<t.length&&Sr(n,t[e])>0;)e++;t.splice(e,0,n)}function ll(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Ue&&e.push(r)}),t.cursorWrapper&&e.push(De.create(t.state.doc,[t.cursorWrapper.deco])),In.from(e)}const B6={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},$6=ut&&qn<=11;class z6{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class V6{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new z6,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);ut&&qn<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():je&&e.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),$6&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,B6)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Sd(this.view)){if(this.suppressingSelectionUpdates)return xn(this.view);if(ut&&qn<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&_r(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let u=e.focusNode;u;u=ui(u))n.add(u);for(let u=e.anchorNode;u;u=ui(u))if(n.has(u)){r=u;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Sd(e)&&!this.ignoreSelectionChange(r),u=-1,s=-1,o=!1,l=[];if(e.editable)for(let c=0;c<n.length;c++){let f=this.registerMutation(n[c],l);f&&(u=u<0?f.from:Math.min(f.from,u),s=s<0?f.to:Math.max(f.to,s),f.typeOver&&(o=!0))}if(l.some(c=>c.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let c of l)if(c.nodeName=="BR"&&c.parentNode){let f=c.nextSibling;for(;f&&f.nodeType==1;){if(f.contentEditable=="false"){c.parentNode.removeChild(c);break}f=f.firstChild}}}else if(kt&&l.length){let c=l.filter(f=>f.nodeName=="BR");if(c.length==2){let[f,d]=c;f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let d of c){let h=d.parentNode;h&&h.nodeName=="LI"&&(!f||q6(e,f)!=h)&&d.remove()}}}let a=null;u<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&So(r)&&(a=rc(e))&&a.eq(Q.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,xn(e),this.currentSelection.set(r),e.scrollToSelection()):(u>-1||i)&&(u>-1&&(e.docView.markDirty(u,s),U6(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,j6(e,l)),this.handleDOMChange(u,s,o,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||xn(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let c=0;c<e.addedNodes.length;c++){let f=e.addedNodes[c];n.push(f),f.nodeType==3&&(this.lastChangedTextNode=f)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let i=e.previousSibling,u=e.nextSibling;if(ut&&qn<=11&&e.addedNodes.length)for(let c=0;c<e.addedNodes.length;c++){let{previousSibling:f,nextSibling:d}=e.addedNodes[c];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(i=f),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(u=d)}let s=i&&i.parentNode==e.target?Re(i)+1:0,o=r.localPosFromDOM(e.target,s,-1),l=u&&u.parentNode==e.target?Re(u):e.target.childNodes.length,a=r.localPosFromDOM(e.target,l,1);return{from:o,to:a}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Md=new WeakMap,Fd=!1;function U6(t){if(!Md.has(t)&&(Md.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=kt,Fd)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Fd=!0}}function Rd(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,u=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return _r(s.node,s.offset,i,u)&&([n,r,i,u]=[i,u,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:u}}function H6(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return Rd(t,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?Rd(t,n):null}function q6(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function j6(t,e){var n;let{focusNode:r,focusOffset:i}=t.domSelectionRange();for(let u of e)if(((n=u.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=u.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let o=s;for(;;){let l=o.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;o=l}o.insertBefore(u,o.firstChild),r==u&&t.domSelection().collapse(u,i)}else u.parentNode.removeChild(u)}}function W6(t,e,n){let{node:r,fromOffset:i,toOffset:u,from:s,to:o}=t.docView.parseRange(e,n),l=t.domSelectionRange(),a,c=l.anchorNode;if(c&&t.dom.contains(c.nodeType==1?c:c.parentNode)&&(a=[{node:c,offset:l.anchorOffset}],So(l)||a.push({node:l.focusNode,offset:l.focusOffset})),$e&&t.input.lastKeyCode===8)for(let b=u;b>i;b--){let x=r.childNodes[b-1],w=x.pmViewDesc;if(x.nodeName=="BR"&&!w){u=b;break}if(!w||w.size)break}let f=t.state.doc,d=t.someProp("domParser")||tu.fromSchema(t.state.schema),h=f.resolve(s),p=null,m=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:u,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:a,ruleFromNode:G6,context:h});if(a&&a[0].pos!=null){let b=a[0].pos,x=a[1]&&a[1].pos;x==null&&(x=b),p={anchor:b+s,head:x+s}}return{doc:m,sel:p,from:s,to:o}}function G6(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(je&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||je&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const K6=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function J6(t,e,n,r,i){let u=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let I=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,U=rc(t,I);if(U&&!t.state.selection.eq(U)){if($e&&bn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",J=>J(t,cr(13,"Enter"))))return;let P=t.state.tr.setSelection(U);I=="pointer"?P.setMeta("pointer",!0):I=="key"&&P.scrollIntoView(),u&&P.setMeta("composition",u),t.dispatch(P)}return}let s=t.state.doc.resolve(e),o=s.sharedDepth(n);e=s.before(o+1),n=t.state.doc.resolve(n).after(o+1);let l=t.state.selection,a=W6(t,e,n),c=t.state.doc,f=c.slice(a.from,a.to),d,h;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(d=t.state.selection.to,h="end"):(d=t.state.selection.from,h="start"),t.input.lastKeyCode=null;let p=Y6(f.content,a.doc.content,a.from,d,h);if(p&&t.input.domChangeCount++,(si&&t.input.lastIOSEnter>Date.now()-225||bn)&&i.some(I=>I.nodeType==1&&!K6.test(I.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",I=>I(t,cr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof ne&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(a.sel&&a.sel.anchor!=a.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(a.sel){let I=Id(t,t.state.doc,a.sel);if(I&&!I.eq(t.state.selection)){let U=t.state.tr.setSelection(I);u&&U.setMeta("composition",u),t.dispatch(U)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof ne&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=a.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=a.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),ut&&qn<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>a.from&&a.doc.textBetween(p.start-a.from-1,p.start-a.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=a.doc.resolveNoCache(p.start-a.from),b=a.doc.resolveNoCache(p.endB-a.from),x=c.resolve(p.start),w=m.sameParent(b)&&m.parent.inlineContent&&x.end()>=p.endA;if((si&&t.input.lastIOSEnter>Date.now()-225&&(!w||i.some(I=>I.nodeName=="DIV"||I.nodeName=="P"))||!w&&m.pos<a.doc.content.size&&(!m.sameParent(b)||!m.parent.inlineContent)&&m.pos<b.pos&&!/\S/.test(a.doc.textBetween(m.pos,b.pos,"","")))&&t.someProp("handleKeyDown",I=>I(t,cr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&X6(c,p.start,p.endA,m,b)&&t.someProp("handleKeyDown",I=>I(t,cr(8,"Backspace")))){bn&&$e&&t.domObserver.suppressSelectionUpdates();return}$e&&p.endB==p.start&&(t.input.lastChromeDelete=Date.now()),bn&&!w&&m.start()!=b.start()&&b.parentOffset==0&&m.depth==b.depth&&a.sel&&a.sel.anchor==a.sel.head&&a.sel.head==p.endA&&(p.endB-=2,b=a.doc.resolveNoCache(p.endB-a.from),setTimeout(()=>{t.someProp("handleKeyDown",function(I){return I(t,cr(13,"Enter"))})},20));let E=p.start,O=p.endA,F=I=>{let U=I||t.state.tr.replace(E,O,a.doc.slice(p.start-a.from,p.endB-a.from));if(a.sel){let P=Id(t,U.doc,a.sel);P&&!($e&&t.composing&&P.empty&&(p.start!=p.endB||t.input.lastChromeDelete<Date.now()-100)&&(P.head==E||P.head==U.mapping.map(O)-1)||ut&&P.empty&&P.head==E)&&U.setSelection(P)}return u&&U.setMeta("composition",u),U.scrollIntoView()},j;if(w)if(m.pos==b.pos){ut&&qn<=11&&m.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>xn(t),20));let I=F(t.state.tr.delete(E,O)),U=c.resolve(p.start).marksAcross(c.resolve(p.endA));U&&I.ensureMarks(U),t.dispatch(I)}else if(p.endA==p.endB&&(j=Z6(m.parent.content.cut(m.parentOffset,b.parentOffset),x.parent.content.cut(x.parentOffset,p.endA-x.start())))){let I=F(t.state.tr);j.type=="add"?I.addMark(E,O,j.mark):I.removeMark(E,O,j.mark),t.dispatch(I)}else if(m.parent.child(m.index()).isText&&m.index()==b.index()-(b.textOffset?0:1)){let I=m.parent.textBetween(m.parentOffset,b.parentOffset),U=()=>F(t.state.tr.insertText(I,E,O));t.someProp("handleTextInput",P=>P(t,E,O,I,U))||t.dispatch(U())}else t.dispatch(F());else t.dispatch(F())}function Id(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:ic(t,e.resolve(n.anchor),e.resolve(n.head))}function Z6(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,u=r,s,o,l;for(let c=0;c<r.length;c++)i=r[c].removeFromSet(i);for(let c=0;c<n.length;c++)u=n[c].removeFromSet(u);if(i.length==1&&u.length==0)o=i[0],s="add",l=c=>c.mark(o.addToSet(c.marks));else if(i.length==0&&u.length==1)o=u[0],s="remove",l=c=>c.mark(o.removeFromSet(c.marks));else return null;let a=[];for(let c=0;c<e.childCount;c++)a.push(l(e.child(c)));if(T.from(a).eq(t))return{mark:o,type:s}}function X6(t,e,n,r,i){if(n-e<=i.pos-r.pos||al(r,!0,!1)<i.pos)return!1;let u=t.resolve(e);if(!r.parent.isTextblock){let o=u.nodeAfter;return o!=null&&n==e+o.nodeSize}if(u.parentOffset<u.parent.content.size||!u.parent.isTextblock)return!1;let s=t.resolve(al(u,!0,!0));return!s.parent.isTextblock||s.pos>n||al(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function al(t,e,n){let r=t.depth,i=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let u=t.node(r).maybeChild(t.indexAfter(r));for(;u&&!u.isLeaf;)u=u.firstChild,i++}return i}function Y6(t,e,n,r,i){let u=t.findDiffStart(e,n);if(u==null)return null;let{a:s,b:o}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let l=Math.max(0,u-Math.min(s,o));r-=s+l-u}if(s<u&&t.size<e.size){let l=r<=u&&r>=s?u-r:0;u-=l,u&&u<e.size&&Pd(e.textBetween(u-1,u+1))&&(u+=l?1:-1),o=u+(o-s),s=u}else if(o<u){let l=r<=u&&r>=o?u-r:0;u-=l,u&&u<t.size&&Pd(t.textBetween(u-1,u+1))&&(u+=l?1:-1),s=u+(s-o),o=u}return{start:u,endA:s,endB:o}}function Pd(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class Q6{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new p6,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Vd),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=$d(this),Bd(this),this.nodeViews=zd(this),this.docView=bd(this.state.doc,Ld(this),ll(this),this.dom,this),this.domObserver=new V6(this,(r,i,u,s)=>J6(this,r,i,u,s)),this.domObserver.start(),m6(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&la(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Vd),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,u=!1,s=!1;e.storedMarks&&this.composing&&(_1(this),s=!0),this.state=e;let o=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(o||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=zd(this);tC(h,this.nodeViews)&&(this.nodeViews=h,u=!0)}(o||n.handleDOMEvents!=this._props.handleDOMEvents)&&la(this),this.editable=$d(this),Bd(this);let l=ll(this),a=Ld(this),c=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",f=u||!this.docView.matchesNode(e.doc,a,l);(f||!e.selection.eq(i.selection))&&(s=!0);let d=c=="preserve"&&s&&this.dom.style.overflowAnchor==null&&Ox(this);if(s){this.domObserver.stop();let h=f&&(ut||$e)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&eC(i.selection,e.selection);if(f){let p=$e?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=O6(this)),(u||!this.docView.update(e.doc,a,l,this))&&(this.docView.updateOuterDeco(a),this.docView.destroy(),this.docView=bd(e.doc,a,l,this.dom,this)),p&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Qx(this))?xn(this,h):(m1(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():d&&Nx(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof q){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&fd(this,n.getBoundingClientRect(),e)}else fd(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let u=r.from+(this.state.doc.content.size-n.doc.content.size);(u>0&&u<this.state.doc.content.size&&this.state.doc.nodeAt(u))==r.node&&(i=u)}this.dragging=new O1(e.slice,e.move,i<0?void 0:q.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let s=0;s<this.directPlugins.length;s++){let o=this.directPlugins[s].props[e];if(o!=null&&(i=n?n(o):o))return i}let u=this.state.plugins;if(u)for(let s=0;s<u.length;s++){let o=u[s].props[e];if(o!=null&&(i=n?n(o):o))return i}}hasFocus(){if(ut){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&vx(this.dom),xn(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return Px(this,e)}coordsAtPos(e,n=1){return o1(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return Vx(this,n||this.state,e)}pasteHTML(e,n){return su(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return su(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return uc(this,e)}destroy(){this.docView&&(g6(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ll(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,xx())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return y6(this,e)}domSelectionRange(){let e=this.domSelection();return e?je&&this.root.nodeType===11&&kx(this.dom.ownerDocument)==this.dom&&H6(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}Q6.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function Ld(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[Ct.node(0,t.state.doc.content.size,e)]}function Bd(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Ct.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function $d(t){return!t.someProp("editable",e=>e(t.state)===!1)}function eC(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function zd(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function tC(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function Vd(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Xn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Ds={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},nC=typeof navigator<"u"&&/Mac/.test(navigator.platform),rC=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ie=0;Ie<10;Ie++)Xn[48+Ie]=Xn[96+Ie]=String(Ie);for(var Ie=1;Ie<=24;Ie++)Xn[Ie+111]="F"+Ie;for(var Ie=65;Ie<=90;Ie++)Xn[Ie]=String.fromCharCode(Ie+32),Ds[Ie]=String.fromCharCode(Ie);for(var cl in Xn)Ds.hasOwnProperty(cl)||(Ds[cl]=Xn[cl]);function iC(t){var e=nC&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||rC&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Ds:Xn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const uC=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),sC=typeof navigator<"u"&&/Win/.test(navigator.platform);function oC(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,u,s;for(let o=0;o<e.length-1;o++){let l=e[o];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))u=!0;else if(/^mod$/i.test(l))uC?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),s&&(n="Meta-"+n),u&&(n="Shift-"+n),n}function lC(t){let e=Object.create(null);for(let n in t)e[oC(n)]=t[n];return e}function fl(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function OE(t){return new Eo({props:{handleKeyDown:R1(t)}})}function R1(t){let e=lC(t);return function(n,r){let i=iC(r),u,s=e[fl(i,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let o=e[fl(i,r,!1)];if(o&&o(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(sC&&r.ctrlKey&&r.altKey)&&(u=Xn[r.keyCode])&&u!=i){let o=e[fl(u,r)];if(o&&o(n.state,n.dispatch,n))return!0}}return!1}}const aC="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",cC="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",aa="numeric",ca="ascii",fa="alpha",$i="asciinumeric",Ai="alphanumeric",da="domain",I1="emoji",fC="scheme",dC="slashscheme",dl="whitespace";function hC(t,e){return t in e||(e[t]=[]),e[t]}function pr(t,e,n){e[aa]&&(e[$i]=!0,e[Ai]=!0),e[ca]&&(e[$i]=!0,e[fa]=!0),e[$i]&&(e[Ai]=!0),e[fa]&&(e[Ai]=!0),e[Ai]&&(e[da]=!0),e[I1]&&(e[da]=!0);for(const r in e){const i=hC(r,n);i.indexOf(t)<0&&i.push(t)}}function pC(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function rt(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}rt.groups={};rt.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const i=e.jr[r][0],u=e.jr[r][1];if(u&&i.test(t))return u}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let i=0;i<t.length;i++)this.tt(t[i],e,n,r)},tr(t,e,n,r){r=r||rt.groups;let i;return e&&e.j?i=e:(i=new rt(e),n&&r&&pr(e,n,r)),this.jr.push([t,i]),i},ts(t,e,n,r){let i=this;const u=t.length;if(!u)return i;for(let s=0;s<u-1;s++)i=i.tt(t[s]);return i.tt(t[u-1],e,n,r)},tt(t,e,n,r){r=r||rt.groups;const i=this;if(e&&e.j)return i.j[t]=e,e;const u=e;let s,o=i.go(t);if(o?(s=new rt,Object.assign(s.j,o.j),s.jr.push.apply(s.jr,o.jr),s.jd=o.jd,s.t=o.t):s=new rt,u){if(r)if(s.t&&typeof s.t=="string"){const l=Object.assign(pC(s.t,r),n);pr(u,l,r)}else n&&pr(u,n,r);s.t=u}return i.j[t]=s,s}};const X=(t,e,n,r,i)=>t.ta(e,n,r,i),be=(t,e,n,r,i)=>t.tr(e,n,r,i),Ud=(t,e,n,r,i)=>t.ts(e,n,r,i),_=(t,e,n,r,i)=>t.tt(e,n,r,i),an="WORD",ha="UWORD",P1="ASCIINUMERICAL",L1="ALPHANUMERICAL",lu="LOCALHOST",pa="TLD",ma="UTLD",Yu="SCHEME",Vr="SLASH_SCHEME",fc="NUM",ga="WS",dc="NL",zi="OPENBRACE",Vi="CLOSEBRACE",As="OPENBRACKET",_s="CLOSEBRACKET",Ts="OPENPAREN",Os="CLOSEPAREN",Ns="OPENANGLEBRACKET",vs="CLOSEANGLEBRACKET",Ms="FULLWIDTHLEFTPAREN",Fs="FULLWIDTHRIGHTPAREN",Rs="LEFTCORNERBRACKET",Is="RIGHTCORNERBRACKET",Ps="LEFTWHITECORNERBRACKET",Ls="RIGHTWHITECORNERBRACKET",Bs="FULLWIDTHLESSTHAN",$s="FULLWIDTHGREATERTHAN",zs="AMPERSAND",Vs="APOSTROPHE",Us="ASTERISK",Mn="AT",Hs="BACKSLASH",qs="BACKTICK",js="CARET",Pn="COLON",hc="COMMA",Ws="DOLLAR",Vt="DOT",Gs="EQUALS",pc="EXCLAMATION",gt="HYPHEN",Ui="PERCENT",Ks="PIPE",Js="PLUS",Zs="POUND",Hi="QUERY",mc="QUOTE",B1="FULLWIDTHMIDDLEDOT",gc="SEMI",Ut="SLASH",qi="TILDE",Xs="UNDERSCORE",$1="EMOJI",Ys="SYM";var z1=Object.freeze({__proto__:null,ALPHANUMERICAL:L1,AMPERSAND:zs,APOSTROPHE:Vs,ASCIINUMERICAL:P1,ASTERISK:Us,AT:Mn,BACKSLASH:Hs,BACKTICK:qs,CARET:js,CLOSEANGLEBRACKET:vs,CLOSEBRACE:Vi,CLOSEBRACKET:_s,CLOSEPAREN:Os,COLON:Pn,COMMA:hc,DOLLAR:Ws,DOT:Vt,EMOJI:$1,EQUALS:Gs,EXCLAMATION:pc,FULLWIDTHGREATERTHAN:$s,FULLWIDTHLEFTPAREN:Ms,FULLWIDTHLESSTHAN:Bs,FULLWIDTHMIDDLEDOT:B1,FULLWIDTHRIGHTPAREN:Fs,HYPHEN:gt,LEFTCORNERBRACKET:Rs,LEFTWHITECORNERBRACKET:Ps,LOCALHOST:lu,NL:dc,NUM:fc,OPENANGLEBRACKET:Ns,OPENBRACE:zi,OPENBRACKET:As,OPENPAREN:Ts,PERCENT:Ui,PIPE:Ks,PLUS:Js,POUND:Zs,QUERY:Hi,QUOTE:mc,RIGHTCORNERBRACKET:Is,RIGHTWHITECORNERBRACKET:Ls,SCHEME:Yu,SEMI:gc,SLASH:Ut,SLASH_SCHEME:Vr,SYM:Ys,TILDE:qi,TLD:pa,UNDERSCORE:Xs,UTLD:ma,UWORD:ha,WORD:an,WS:ga});const un=/[a-z]/,Ci=new RegExp("\\p{L}","u"),hl=new RegExp("\\p{Emoji}","u"),sn=/\d/,pl=/\s/,Hd="\r",ml=`
29
+ `,mC="️",gC="‍",gl="";let Iu=null,Pu=null;function bC(t=[]){const e={};rt.groups=e;const n=new rt;Iu==null&&(Iu=qd(aC)),Pu==null&&(Pu=qd(cC)),_(n,"'",Vs),_(n,"{",zi),_(n,"}",Vi),_(n,"[",As),_(n,"]",_s),_(n,"(",Ts),_(n,")",Os),_(n,"<",Ns),_(n,">",vs),_(n,"(",Ms),_(n,")",Fs),_(n,"「",Rs),_(n,"」",Is),_(n,"『",Ps),_(n,"』",Ls),_(n,"<",Bs),_(n,">",$s),_(n,"&",zs),_(n,"*",Us),_(n,"@",Mn),_(n,"`",qs),_(n,"^",js),_(n,":",Pn),_(n,",",hc),_(n,"$",Ws),_(n,".",Vt),_(n,"=",Gs),_(n,"!",pc),_(n,"-",gt),_(n,"%",Ui),_(n,"|",Ks),_(n,"+",Js),_(n,"#",Zs),_(n,"?",Hi),_(n,'"',mc),_(n,"/",Ut),_(n,";",gc),_(n,"~",qi),_(n,"_",Xs),_(n,"\\",Hs),_(n,"・",B1);const r=be(n,sn,fc,{[aa]:!0});be(r,sn,r);const i=be(r,un,P1,{[$i]:!0}),u=be(r,Ci,L1,{[Ai]:!0}),s=be(n,un,an,{[ca]:!0});be(s,sn,i),be(s,un,s),be(i,sn,i),be(i,un,i);const o=be(n,Ci,ha,{[fa]:!0});be(o,un),be(o,sn,u),be(o,Ci,o),be(u,sn,u),be(u,un),be(u,Ci,u);const l=_(n,ml,dc,{[dl]:!0}),a=_(n,Hd,ga,{[dl]:!0}),c=be(n,pl,ga,{[dl]:!0});_(n,gl,c),_(a,ml,l),_(a,gl,c),be(a,pl,c),_(c,Hd),_(c,ml),be(c,pl,c),_(c,gl,c);const f=be(n,hl,$1,{[I1]:!0});_(f,"#"),be(f,hl,f),_(f,mC,f);const d=_(f,gC);_(d,"#"),be(d,hl,f);const h=[[un,s],[sn,i]],p=[[un,null],[Ci,o],[sn,u]];for(let m=0;m<Iu.length;m++)Dn(n,Iu[m],pa,an,h);for(let m=0;m<Pu.length;m++)Dn(n,Pu[m],ma,ha,p);pr(pa,{tld:!0,ascii:!0},e),pr(ma,{utld:!0,alpha:!0},e),Dn(n,"file",Yu,an,h),Dn(n,"mailto",Yu,an,h),Dn(n,"http",Vr,an,h),Dn(n,"https",Vr,an,h),Dn(n,"ftp",Vr,an,h),Dn(n,"ftps",Vr,an,h),pr(Yu,{scheme:!0,ascii:!0},e),pr(Vr,{slashscheme:!0,ascii:!0},e),t=t.sort((m,b)=>m[0]>b[0]?1:-1);for(let m=0;m<t.length;m++){const b=t[m][0],w=t[m][1]?{[fC]:!0}:{[dC]:!0};b.indexOf("-")>=0?w[da]=!0:un.test(b)?sn.test(b)?w[$i]=!0:w[ca]=!0:w[aa]=!0,Ud(n,b,b,w)}return Ud(n,"localhost",lu,{ascii:!0}),n.jd=new rt(Ys),{start:n,tokens:Object.assign({groups:e},z1)}}function V1(t,e){const n=yC(e.replace(/[A-Z]/g,o=>o.toLowerCase())),r=n.length,i=[];let u=0,s=0;for(;s<r;){let o=t,l=null,a=0,c=null,f=-1,d=-1;for(;s<r&&(l=o.go(n[s]));)o=l,o.accepts()?(f=0,d=0,c=o):f>=0&&(f+=n[s].length,d++),a+=n[s].length,u+=n[s].length,s++;u-=f,s-=d,a-=f,i.push({t:c.t,v:e.slice(u-a,u),s:u-a,e:u})}return i}function yC(t){const e=[],n=t.length;let r=0;for(;r<n;){let i=t.charCodeAt(r),u,s=i<55296||i>56319||r+1===n||(u=t.charCodeAt(r+1))<56320||u>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Dn(t,e,n,r,i){let u;const s=e.length;for(let o=0;o<s-1;o++){const l=e[o];t.j[l]?u=t.j[l]:(u=new rt(r),u.jr=i.slice(),t.j[l]=u),t=u}return u=new rt(n),u.jr=i.slice(),t.j[e[s-1]]=u,u}function qd(t){const e=[],n=[];let r=0,i="0123456789";for(;r<t.length;){let u=0;for(;i.indexOf(t[r+u])>=0;)u++;if(u>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+u),10);s>0;s--)n.pop();r+=u}else n.push(t[r]),r++}return e}const au={defaultProtocol:"http",events:null,format:jd,formatHref:jd,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function bc(t,e=null){let n=Object.assign({},au);t&&(n=Object.assign(n,t instanceof bc?t.o:t));const r=n.ignoreTags,i=[];for(let u=0;u<r.length;u++)i.push(r[u].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=i}bc.prototype={o:au,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let i=this.o[t];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:au[t],typeof i=="function"&&r&&(i=i(e,n))):typeof i=="function"&&r&&(i=i(e,n.t,n)),i)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function jd(t){return t}function U1(t,e){this.t="token",this.v=t,this.tk=e}U1.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=au.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),i=t.get("tagName",n,e),u=this.toFormattedString(t),s={},o=t.get("className",n,e),l=t.get("target",n,e),a=t.get("rel",n,e),c=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return s.href=r,o&&(s.class=o),l&&(s.target=l),a&&(s.rel=a),c&&Object.assign(s,c),{tagName:i,attributes:s,content:u,eventListeners:f}}};function Ao(t,e){class n extends U1{constructor(i,u){super(i,u),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const Wd=Ao("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Gd=Ao("text"),xC=Ao("nl"),Lu=Ao("url",{isLink:!0,toHref(t=au.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==lu&&t[1].t===Pn}}),mt=t=>new rt(t);function CC({groups:t}){const e=t.domain.concat([zs,Us,Mn,Hs,qs,js,Ws,Gs,gt,fc,Ui,Ks,Js,Zs,Ut,Ys,qi,Xs]),n=[Vs,Pn,hc,Vt,pc,Ui,Hi,mc,gc,Ns,vs,zi,Vi,_s,As,Ts,Os,Ms,Fs,Rs,Is,Ps,Ls,Bs,$s],r=[zs,Vs,Us,Hs,qs,js,Ws,Gs,gt,zi,Vi,Ui,Ks,Js,Zs,Hi,Ut,Ys,qi,Xs],i=mt(),u=_(i,qi);X(u,r,u),X(u,t.domain,u);const s=mt(),o=mt(),l=mt();X(i,t.domain,s),X(i,t.scheme,o),X(i,t.slashscheme,l),X(s,r,u),X(s,t.domain,s);const a=_(s,Mn);_(u,Mn,a),_(o,Mn,a),_(l,Mn,a);const c=_(u,Vt);X(c,r,u),X(c,t.domain,u);const f=mt();X(a,t.domain,f),X(f,t.domain,f);const d=_(f,Vt);X(d,t.domain,f);const h=mt(Wd);X(d,t.tld,h),X(d,t.utld,h),_(a,lu,h);const p=_(f,gt);_(p,gt,p),X(p,t.domain,f),X(h,t.domain,f),_(h,Vt,d),_(h,gt,p);const m=_(h,Pn);X(m,t.numeric,Wd);const b=_(s,gt),x=_(s,Vt);_(b,gt,b),X(b,t.domain,s),X(x,r,u),X(x,t.domain,s);const w=mt(Lu);X(x,t.tld,w),X(x,t.utld,w),X(w,t.domain,s),X(w,r,u),_(w,Vt,x),_(w,gt,b),_(w,Mn,a);const E=_(w,Pn),O=mt(Lu);X(E,t.numeric,O);const F=mt(Lu),j=mt();X(F,e,F),X(F,n,j),X(j,e,F),X(j,n,j),_(w,Ut,F),_(O,Ut,F);const I=_(o,Pn),U=_(l,Pn),P=_(U,Ut),J=_(P,Ut);X(o,t.domain,s),_(o,Vt,x),_(o,gt,b),X(l,t.domain,s),_(l,Vt,x),_(l,gt,b),X(I,t.domain,F),_(I,Ut,F),_(I,Hi,F),X(J,t.domain,F),X(J,e,F),_(J,Ut,F);const te=[[zi,Vi],[As,_s],[Ts,Os],[Ns,vs],[Ms,Fs],[Rs,Is],[Ps,Ls],[Bs,$s]];for(let L=0;L<te.length;L++){const[le,Ce]=te[L],Qe=_(F,le);_(j,le,Qe),_(Qe,Ce,F);const pe=mt(Lu);X(Qe,e,pe);const se=mt();X(Qe,n),X(pe,e,pe),X(pe,n,se),X(se,e,pe),X(se,n,se),_(pe,Ce,F),_(se,Ce,F)}return _(i,lu,w),_(i,dc,xC),{start:i,tokens:z1}}function wC(t,e,n){let r=n.length,i=0,u=[],s=[];for(;i<r;){let o=t,l=null,a=null,c=0,f=null,d=-1;for(;i<r&&!(l=o.go(n[i].t));)s.push(n[i++]);for(;i<r&&(a=l||o.go(n[i].t));)l=null,o=a,o.accepts()?(d=0,f=o):d>=0&&d++,i++,c++;if(d<0)i-=c,i<r&&(s.push(n[i]),i++);else{s.length>0&&(u.push(bl(Gd,e,s)),s=[]),i-=d,c-=d;const h=f.t,p=n.slice(i-c,i);u.push(bl(h,e,p))}}return s.length>0&&u.push(bl(Gd,e,s)),u}function bl(t,e,n){const r=n[0].s,i=n[n.length-1].e,u=e.slice(r,i);return new t(u,n)}const EC=typeof console<"u"&&console&&console.warn||(()=>{}),SC="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",me={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function NE(){return rt.groups={},me.scanner=null,me.parser=null,me.tokenQueue=[],me.pluginQueue=[],me.customSchemes=[],me.initialized=!1,me}function vE(t,e=!1){if(me.initialized&&EC(`linkifyjs: already initialized - will not register custom scheme "${t}" ${SC}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
29
30
  1. Must only contain digits, lowercase ASCII letters or "-"
30
31
  2. Cannot start or end with "-"
31
- 3. "-" cannot repeat`);me.customSchemes.push([t,e])}function r6(){me.scanner=Zx(me.customSchemes);for(let t=0;t<me.tokenQueue.length;t++)me.tokenQueue[t][1]({scanner:me.scanner});me.parser=Qx(me.scanner.tokens);for(let t=0;t<me.pluginQueue.length;t++)me.pluginQueue[t][1]({scanner:me.scanner,parser:me.parser});return me.initialized=!0,me}function m1(t){return me.initialized||r6(),e6(me.parser.start,t,h1(me.scanner.start,t))}m1.scan=h1;function cw(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new uc(n),i=m1(t),u=[];for(let s=0;s<i.length;s++){const o=i[s];o.isLink&&(!e||o.t===e)&&r.check(o)&&u.push(o.toFormattedObject(r))}return u}function fw(t={}){return new po({view(e){return new i6(e,t)}})}class i6{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let u=s=>{this[i](s)};return e.dom.addEventListener(i,u),{name:i,handler:u}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,i=this.editorView.dom,u=i.getBoundingClientRect(),s=u.width/i.offsetWidth,o=u.height/i.offsetHeight;if(n){let f=e.nodeBefore,d=e.nodeAfter;if(f||d){let h=this.editorView.nodeDOM(this.cursorPos-(f?f.nodeSize:0));if(h){let p=h.getBoundingClientRect(),m=f?p.bottom:p.top;f&&d&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let b=this.width/2*o;r={left:p.left,right:p.right,top:m-b,bottom:m+b}}}}if(!r){let f=this.editorView.coordsAtPos(this.cursorPos),d=this.width/2*s;r={left:f.left-d,right:f.left+d,top:f.top,bottom:f.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let a,c;if(!l||l==document.body&&getComputedStyle(l).position=="static")a=-pageXOffset,c=-pageYOffset;else{let f=l.getBoundingClientRect(),d=f.width/l.offsetWidth,h=f.height/l.offsetHeight;a=f.left-l.scrollLeft*d,c=f.top-l.scrollTop*h}this.element.style.left=(r.left-a)/s+"px",this.element.style.top=(r.top-c)/o+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/o+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,u=typeof i=="function"?i(this.editorView,n,e):i;if(n&&!u){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let o=dp(this.editorView.state.doc,s,this.editorView.dragging.slice);o!=null&&(s=o)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class ye extends Q{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return ye.valid(r)?new ye(r):Q.near(r)}content(){return z.empty}eq(e){return e instanceof ye&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ye(e.resolve(n.pos))}getBookmark(){return new sc(this.anchor)}static valid(e){let n=e.parent;if(n.inlineContent||!u6(e)||!s6(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&ye.valid(e))return e;let i=e.pos,u=null;for(let s=e.depth;;s--){let o=e.node(s);if(n>0?e.indexAfter(s)<o.childCount:e.index(s)>0){u=o.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;i+=n;let l=e.doc.resolve(i);if(ye.valid(l))return l}for(;;){let s=n>0?u.firstChild:u.lastChild;if(!s){if(u.isAtom&&!u.isText&&!q.isSelectable(u)){e=e.doc.resolve(i+u.nodeSize*n),r=!1;continue e}break}u=s,i+=n;let o=e.doc.resolve(i);if(ye.valid(o))return o}return null}}}ye.prototype.visible=!1;ye.findFrom=ye.findGapCursorFrom;Q.jsonID("gapcursor",ye);class sc{constructor(e){this.pos=e}map(e){return new sc(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ye.valid(n)?new ye(n):Q.near(n)}}function g1(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function u6(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||g1(i.type))return!0;if(i.inlineContent)return!1}}return!0}function s6(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||g1(i.type))return!0;if(i.inlineContent)return!1}}return!0}function dw(){return new po({props:{decorations:c6,createSelectionBetween(t,e,n){return e.pos==n.pos&&ye.valid(n)?new ye(n):null},handleClick:l6,handleKeyDown:o6,handleDOMEvents:{beforeinput:a6}}})}const o6=s1({ArrowLeft:Fu("horiz",-1),ArrowRight:Fu("horiz",1),ArrowUp:Fu("vert",-1),ArrowDown:Fu("vert",1)});function Fu(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,u){let s=r.selection,o=e>0?s.$to:s.$from,l=s.empty;if(s instanceof ne){if(!u.endOfTextblock(n)||o.depth==0)return!1;l=!1,o=r.doc.resolve(e>0?o.after():o.before())}let a=ye.findGapCursorFrom(o,e,l);return a?(i&&i(r.tr.setSelection(new ye(a))),!0):!1}}function l6(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!ye.valid(r))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&q.isSelectable(t.state.doc.nodeAt(i.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ye(r))),!0)}function a6(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ye))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let i=T.empty;for(let s=r.length-1;s>=0;s--)i=T.from(r[s].createAndFill(null,i));let u=t.state.tr.replace(n.pos,n.pos,new z(i,0,0));return u.setSelection(ne.near(u.doc.resolve(n.pos+1))),t.dispatch(u),!1}function c6(t){if(!(t.selection instanceof ye))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",De.create(t.doc,[yt.widget(t.selection.head,e,{key:"gapcursor"})])}var Ws=200,Me=function(){};Me.prototype.append=function(e){return e.length?(e=Me.from(e),!this.length&&e||e.length<Ws&&this.leafAppend(e)||this.length<Ws&&e.leafPrepend(this)||this.appendInner(e)):this};Me.prototype.prepend=function(e){return e.length?Me.from(e).append(this):this};Me.prototype.appendInner=function(e){return new f6(this,e)};Me.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Me.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};Me.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Me.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};Me.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(u,s){return i.push(e(u,s))},n,r),i};Me.from=function(e){return e instanceof Me?e:e&&e.length?new b1(e):Me.empty};var b1=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,u){return i==0&&u==this.length?this:new e(this.values.slice(i,u))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,u,s,o){for(var l=u;l<s;l++)if(i(this.values[l],o+l)===!1)return!1},e.prototype.forEachInvertedInner=function(i,u,s,o){for(var l=u-1;l>=s;l--)if(i(this.values[l],o+l)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=Ws)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=Ws)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Me);Me.empty=new b1([]);var f6=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,i,u,s){var o=this.left.length;if(i<o&&this.left.forEachInner(r,i,Math.min(u,o),s)===!1||u>o&&this.right.forEachInner(r,Math.max(i-o,0),Math.min(this.length,u)-o,s+o)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,u,s){var o=this.left.length;if(i>o&&this.right.forEachInvertedInner(r,i-o,Math.max(u,o)-o,s+o)===!1||u<o&&this.left.forEachInvertedInner(r,Math.min(i,o),u,s)===!1)return!1},e.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var u=this.left.length;return i<=u?this.left.slice(r,i):r>=u?this.right.slice(r-u,i-u):this.left.slice(r,u).append(this.right.slice(0,i-u))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(Me);const d6=500;class At{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,u;n&&(i=this.remapping(r,this.items.length),u=i.maps.length);let s=e.tr,o,l,a=[],c=[];return this.items.forEach((f,d)=>{if(!f.step){i||(i=this.remapping(r,d+1),u=i.maps.length),u--,c.push(f);return}if(i){c.push(new Vt(f.map));let h=f.step.map(i.slice(u)),p;h&&s.maybeStep(h).doc&&(p=s.mapping.maps[s.mapping.maps.length-1],a.push(new Vt(p,void 0,void 0,a.length+c.length))),u--,p&&i.appendMap(p,u)}else s.maybeStep(f.step);if(f.selection)return o=i?f.selection.map(i.slice(u)):f.selection,l=new At(this.items.slice(0,r).append(c.reverse().concat(a)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:o}}addTransform(e,n,r,i){let u=[],s=this.eventCount,o=this.items,l=!i&&o.length?o.get(o.length-1):null;for(let c=0;c<e.steps.length;c++){let f=e.steps[c].invert(e.docs[c]),d=new Vt(e.mapping.maps[c],f,n),h;(h=l&&l.merge(d))&&(d=h,c?u.pop():o=o.slice(0,o.length-1)),u.push(d),n&&(s++,n=void 0),i||(l=d)}let a=s-r.depth;return a>p6&&(o=h6(o,a),s-=a),new At(o.append(u),s)}remapping(e,n){let r=new Yi;return this.items.forEach((i,u)=>{let s=i.mirrorOffset!=null&&u-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new At(this.items.append(e.map(n=>new Vt(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),u=e.mapping,s=e.steps.length,o=this.eventCount;this.items.forEach(d=>{d.selection&&o--},i);let l=n;this.items.forEach(d=>{let h=u.getMirror(--l);if(h==null)return;s=Math.min(s,h);let p=u.maps[h];if(d.step){let m=e.steps[h].invert(e.docs[h]),b=d.selection&&d.selection.map(u.slice(l+1,h));b&&o++,r.push(new Vt(p,m,b))}else r.push(new Vt(p))},i);let a=[];for(let d=n;d<s;d++)a.push(new Vt(u.maps[d]));let c=this.items.slice(0,i).append(a).append(r),f=new At(c,o);return f.emptyItemCount()>d6&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],u=0;return this.items.forEach((s,o)=>{if(o>=e)i.push(s),s.selection&&u++;else if(s.step){let l=s.step.map(n.slice(r)),a=l&&l.getMap();if(r--,a&&n.appendMap(a,r),l){let c=s.selection&&s.selection.map(n.slice(r));c&&u++;let f=new Vt(a.invert(),l,c),d,h=i.length-1;(d=i.length&&i[h].merge(f))?i[h]=d:i.push(f)}}else s.map&&r--},this.items.length,0),new At(Me.from(i.reverse()),u)}}At.empty=new At(Me.empty,0);function h6(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}class Vt{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Vt(n.getMap().invert(),n,this.selection)}}}class vn{constructor(e,n,r,i,u){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=u}}const p6=20;function m6(t,e,n,r){let i=n.getMeta(wr),u;if(i)return i.historyState;n.getMeta(y6)&&(t=new vn(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(wr))return s.getMeta(wr).redo?new vn(t.done.addTransform(n,void 0,r,Ku(e)),t.undone,Nd(n.mapping.maps),t.prevTime,t.prevComposition):new vn(t.done,t.undone.addTransform(n,void 0,r,Ku(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let o=n.getMeta("composition"),l=t.prevTime==0||!s&&t.prevComposition!=o&&(t.prevTime<(n.time||0)-r.newGroupDelay||!g6(n,t.prevRanges)),a=s?al(t.prevRanges,n.mapping):Nd(n.mapping.maps);return new vn(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,Ku(e)),At.empty,a,n.time,o??t.prevComposition)}else return(u=n.getMeta("rebased"))?new vn(t.done.rebased(n,u),t.undone.rebased(n,u),al(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new vn(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),al(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function g6(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let u=0;u<e.length;u+=2)r<=e[u+1]&&i>=e[u]&&(n=!0)}),n}function Nd(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,i,u,s)=>e.push(u,s));return e}function al(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let i=e.map(t[r],1),u=e.map(t[r+1],-1);i<=u&&n.push(i,u)}return n}function b6(t,e,n){let r=Ku(e),i=wr.get(e).spec.config,u=(n?t.undone:t.done).popEvent(e,r);if(!u)return null;let s=u.selection.resolve(u.transform.doc),o=(n?t.done:t.undone).addTransform(u.transform,e.selection.getBookmark(),i,r),l=new vn(n?o:u.remaining,n?u.remaining:o,null,0,-1);return u.transform.setSelection(s).setMeta(wr,{redo:n,historyState:l})}let cl=!1,Od=null;function Ku(t){let e=t.plugins;if(Od!=e){cl=!1,Od=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){cl=!0;break}}return cl}const wr=new xp("history"),y6=new xp("closeHistory");function hw(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new po({key:wr,state:{init(){return new vn(At.empty,At.empty,null,0,-1)},apply(e,n,r){return m6(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,i=r=="historyUndo"?x6:r=="historyRedo"?C6:null;return!i||!e.editable?!1:(n.preventDefault(),i(e.state,e.dispatch))}}}})}function y1(t,e){return(n,r)=>{let i=wr.getState(n);if(!i||(t?i.undone:i.done).eventCount==0)return!1;if(r){let u=b6(i,n,t);u&&r(e?u.scrollIntoView():u)}return!0}}const x6=y1(!1,!0),C6=y1(!0,!0),w6=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class bu{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}bu.prototype.normal={};bu.prototype.property={};bu.prototype.space=void 0;function x1(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new bu(n,r,e)}function oa(t){return t.toLowerCase()}class ut{constructor(e,n){this.attribute=n,this.property=e}}ut.prototype.attribute="";ut.prototype.booleanish=!1;ut.prototype.boolean=!1;ut.prototype.commaOrSpaceSeparated=!1;ut.prototype.commaSeparated=!1;ut.prototype.defined=!1;ut.prototype.mustUseProperty=!1;ut.prototype.number=!1;ut.prototype.overloadedBoolean=!1;ut.prototype.property="";ut.prototype.spaceSeparated=!1;ut.prototype.space=void 0;let E6=0;const Z=_r(),we=_r(),la=_r(),O=_r(),de=_r(),Gr=_r(),ot=_r();function _r(){return 2**++E6}const aa=Object.freeze(Object.defineProperty({__proto__:null,boolean:Z,booleanish:we,commaOrSpaceSeparated:ot,commaSeparated:Gr,number:O,overloadedBoolean:la,spaceSeparated:de},Symbol.toStringTag,{value:"Module"})),fl=Object.keys(aa);class oc extends ut{constructor(e,n,r,i){let u=-1;if(super(e,n),vd(this,"space",i),typeof r=="number")for(;++u<fl.length;){const s=fl[u];vd(this,fl[u],(r&aa[s])===aa[s])}}}oc.prototype.defined=!0;function vd(t,e,n){n&&(t[e]=n)}function ii(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const u=new oc(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),e[r]=u,n[oa(r)]=r,n[oa(u.attribute)]=r}return new bu(e,n,t.space)}const C1=ii({properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:we,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:de,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:O,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:de,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:we,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function w1(t,e){return e in t?t[e]:e}function E1(t,e){return w1(t,e.toLowerCase())}const S6=ii({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gr,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:de,autoFocus:Z,autoPlay:Z,blocking:de,capture:null,charSet:null,checked:Z,cite:null,className:de,cols:O,colSpan:null,content:null,contentEditable:we,controls:Z,controlsList:de,coords:O|Gr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:la,draggable:we,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:de,height:O,hidden:la,high:O,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:de,itemRef:de,itemScope:Z,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Z,optimum:O,pattern:null,ping:de,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:de,required:Z,reversed:Z,rows:O,rowSpan:O,sandbox:de,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:we,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:we,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:we,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Z,disableRemotePlayback:Z,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:E1}),k6=ii({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ot,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:de,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Gr,g2:Gr,glyphName:Gr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:ot,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ot,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ot,rev:ot,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ot,requiredFeatures:ot,requiredFonts:ot,requiredFormats:ot,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:ot,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ot,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ot,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:w1}),S1=ii({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),k1=ii({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:E1}),D1=ii({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),D6=/[A-Z]/g,Md=/-[a-z]/g,A6=/^data[-\w.:]+$/i;function _6(t,e){const n=oa(e);let r=e,i=ut;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&A6.test(e)){if(e.charAt(4)==="-"){const u=e.slice(5).replace(Md,N6);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=e.slice(4);if(!Md.test(u)){let s=u.replace(D6,T6);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}i=oc}return new i(r,e)}function T6(t){return"-"+t.toLowerCase()}function N6(t){return t.charAt(1).toUpperCase()}const O6=x1([C1,S6,S1,k1,D1],"html"),A1=x1([C1,k6,S1,k1,D1],"svg"),Fd={}.hasOwnProperty;function v6(t,e){const n=e||{};function r(i,...u){let s=r.invalid;const o=r.handlers;if(i&&Fd.call(i,t)){const l=String(i[t]);s=Fd.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...u)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const M6=/["&'<>`]/g,F6=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I6=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,R6=/[|\\{}()[\]^$+*?.]/g,Id=new WeakMap;function P6(t,e){if(t=t.replace(e.subset?L6(e.subset):M6,r),e.subset||e.escapeOnly)return t;return t.replace(F6,n).replace(I6,r);function n(i,u,s){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(u+2),e)}function r(i,u,s){return e.format(i.charCodeAt(0),s.charCodeAt(u+1),e)}}function L6(t){let e=Id.get(t);return e||(e=B6(t),Id.set(t,e)),e}function B6(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(R6,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const z6=/[\dA-Fa-f]/;function $6(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!z6.test(String.fromCharCode(e))?r:r+";"}const V6=/\d/;function U6(t,e,n){const r="&#"+String(t);return n&&e&&!V6.test(String.fromCharCode(e))?r:r+";"}const H6=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],dl={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},q6=["cent","copy","divide","gt","lt","not","para","times"],_1={}.hasOwnProperty,ca={};let Iu;for(Iu in dl)_1.call(dl,Iu)&&(ca[dl[Iu]]=Iu);const j6=/[^\dA-Za-z]/;function W6(t,e,n,r){const i=String.fromCharCode(t);if(_1.call(ca,i)){const u=ca[i],s="&"+u;return n&&H6.includes(u)&&!q6.includes(u)&&(!r||e&&e!==61&&j6.test(String.fromCharCode(e)))?s:s+";"}return""}function G6(t,e,n){let r=$6(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=W6(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const u=U6(t,e,n.omitOptionalSemicolons);u.length<r.length&&(r=u)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Kr(t,e){return P6(t,Object.assign({format:G6},e))}const K6=/^>|^->|<!--|-->|--!>|<!-$/g,J6=[">"],Z6=["<",">"];function X6(t,e,n,r){return r.settings.bogusComments?"<?"+Kr(t.value,Object.assign({},r.settings.characterReferences,{subset:J6}))+">":"<!--"+t.value.replace(K6,i)+"-->";function i(u){return Kr(u,Object.assign({},r.settings.characterReferences,{subset:Z6}))}}function Y6(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Rd(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}function Q6(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function e4(t){return t.join(" ").trim()}const t4=/[ \t\n\f\r]/g;function lc(t){return typeof t=="object"?t.type==="text"?Pd(t.value):!1:Pd(t)}function Pd(t){return t.replace(t4,"")===""}const _e=N1(1),T1=N1(-1),n4=[];function N1(t){return e;function e(n,r,i){const u=n?n.children:n4;let s=(r||0)+t,o=u[s];if(!i)for(;o&&lc(o);)s+=t,o=u[s];return o}}const r4={}.hasOwnProperty;function O1(t){return e;function e(n,r,i){return r4.call(t,n.tagName)&&t[n.tagName](n,r,i)}}const ac=O1({body:u4,caption:hl,colgroup:hl,dd:a4,dt:l4,head:hl,html:i4,li:o4,optgroup:c4,option:f4,p:s4,rp:Ld,rt:Ld,tbody:h4,td:Bd,tfoot:p4,th:Bd,thead:d4,tr:m4});function hl(t,e,n){const r=_e(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&lc(r.value.charAt(0)))}function i4(t,e,n){const r=_e(n,e);return!r||r.type!=="comment"}function u4(t,e,n){const r=_e(n,e);return!r||r.type!=="comment"}function s4(t,e,n){const r=_e(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function o4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&r.tagName==="li"}function l4(t,e,n){const r=_e(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function a4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ld(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function c4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function f4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function d4(t,e,n){const r=_e(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function h4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function p4(t,e,n){return!_e(n,e)}function m4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function Bd(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const g4=O1({body:x4,colgroup:C4,head:y4,html:b4,tbody:w4});function b4(t){const e=_e(t,-1);return!e||e.type!=="comment"}function y4(t){const e=new Set;for(const r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const n=t.children[0];return!n||n.type==="element"}function x4(t){const e=_e(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&lc(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function C4(t,e,n){const r=T1(n,e),i=_e(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ac(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function w4(t,e,n){const r=T1(n,e),i=_e(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ac(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Ru={name:[[`
32
+ 3. "-" cannot repeat`);me.customSchemes.push([t,e])}function kC(){me.scanner=bC(me.customSchemes);for(let t=0;t<me.tokenQueue.length;t++)me.tokenQueue[t][1]({scanner:me.scanner});me.parser=CC(me.scanner.tokens);for(let t=0;t<me.pluginQueue.length;t++)me.pluginQueue[t][1]({scanner:me.scanner,parser:me.parser});return me.initialized=!0,me}function H1(t){return me.initialized||kC(),wC(me.parser.start,t,V1(me.scanner.start,t))}H1.scan=V1;function ME(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new bc(n),i=H1(t),u=[];for(let s=0;s<i.length;s++){const o=i[s];o.isLink&&(!e||o.t===e)&&r.check(o)&&u.push(o.toFormattedObject(r))}return u}function FE(t={}){return new Eo({view(e){return new DC(e,t)}})}class DC{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let u=s=>{this[i](s)};return e.dom.addEventListener(i,u),{name:i,handler:u}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,i=this.editorView.dom,u=i.getBoundingClientRect(),s=u.width/i.offsetWidth,o=u.height/i.offsetHeight;if(n){let f=e.nodeBefore,d=e.nodeAfter;if(f||d){let h=this.editorView.nodeDOM(this.cursorPos-(f?f.nodeSize:0));if(h){let p=h.getBoundingClientRect(),m=f?p.bottom:p.top;f&&d&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let b=this.width/2*o;r={left:p.left,right:p.right,top:m-b,bottom:m+b}}}}if(!r){let f=this.editorView.coordsAtPos(this.cursorPos),d=this.width/2*s;r={left:f.left-d,right:f.left+d,top:f.top,bottom:f.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let a,c;if(!l||l==document.body&&getComputedStyle(l).position=="static")a=-pageXOffset,c=-pageYOffset;else{let f=l.getBoundingClientRect(),d=f.width/l.offsetWidth,h=f.height/l.offsetHeight;a=f.left-l.scrollLeft*d,c=f.top-l.scrollTop*h}this.element.style.left=(r.left-a)/s+"px",this.element.style.top=(r.top-c)/o+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/o+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,u=typeof i=="function"?i(this.editorView,n,e):i;if(n&&!u){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let o=zp(this.editorView.state.doc,s,this.editorView.dragging.slice);o!=null&&(s=o)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class ye extends Q{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return ye.valid(r)?new ye(r):Q.near(r)}content(){return $.empty}eq(e){return e instanceof ye&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ye(e.resolve(n.pos))}getBookmark(){return new yc(this.anchor)}static valid(e){let n=e.parent;if(n.inlineContent||!AC(e)||!_C(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&ye.valid(e))return e;let i=e.pos,u=null;for(let s=e.depth;;s--){let o=e.node(s);if(n>0?e.indexAfter(s)<o.childCount:e.index(s)>0){u=o.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;i+=n;let l=e.doc.resolve(i);if(ye.valid(l))return l}for(;;){let s=n>0?u.firstChild:u.lastChild;if(!s){if(u.isAtom&&!u.isText&&!q.isSelectable(u)){e=e.doc.resolve(i+u.nodeSize*n),r=!1;continue e}break}u=s,i+=n;let o=e.doc.resolve(i);if(ye.valid(o))return o}return null}}}ye.prototype.visible=!1;ye.findFrom=ye.findGapCursorFrom;Q.jsonID("gapcursor",ye);class yc{constructor(e){this.pos=e}map(e){return new yc(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ye.valid(n)?new ye(n):Q.near(n)}}function q1(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function AC(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||q1(i.type))return!0;if(i.inlineContent)return!1}}return!0}function _C(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||q1(i.type))return!0;if(i.inlineContent)return!1}}return!0}function RE(){return new Eo({props:{decorations:vC,createSelectionBetween(t,e,n){return e.pos==n.pos&&ye.valid(n)?new ye(n):null},handleClick:OC,handleKeyDown:TC,handleDOMEvents:{beforeinput:NC}}})}const TC=R1({ArrowLeft:Bu("horiz",-1),ArrowRight:Bu("horiz",1),ArrowUp:Bu("vert",-1),ArrowDown:Bu("vert",1)});function Bu(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,u){let s=r.selection,o=e>0?s.$to:s.$from,l=s.empty;if(s instanceof ne){if(!u.endOfTextblock(n)||o.depth==0)return!1;l=!1,o=r.doc.resolve(e>0?o.after():o.before())}let a=ye.findGapCursorFrom(o,e,l);return a?(i&&i(r.tr.setSelection(new ye(a))),!0):!1}}function OC(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!ye.valid(r))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&q.isSelectable(t.state.doc.nodeAt(i.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ye(r))),!0)}function NC(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ye))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let i=T.empty;for(let s=r.length-1;s>=0;s--)i=T.from(r[s].createAndFill(null,i));let u=t.state.tr.replace(n.pos,n.pos,new $(i,0,0));return u.setSelection(ne.near(u.doc.resolve(n.pos+1))),t.dispatch(u),!1}function vC(t){if(!(t.selection instanceof ye))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",De.create(t.doc,[Ct.widget(t.selection.head,e,{key:"gapcursor"})])}var Qs=200,Me=function(){};Me.prototype.append=function(e){return e.length?(e=Me.from(e),!this.length&&e||e.length<Qs&&this.leafAppend(e)||this.length<Qs&&e.leafPrepend(this)||this.appendInner(e)):this};Me.prototype.prepend=function(e){return e.length?Me.from(e).append(this):this};Me.prototype.appendInner=function(e){return new MC(this,e)};Me.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Me.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};Me.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Me.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};Me.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(u,s){return i.push(e(u,s))},n,r),i};Me.from=function(e){return e instanceof Me?e:e&&e.length?new j1(e):Me.empty};var j1=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,u){return i==0&&u==this.length?this:new e(this.values.slice(i,u))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,u,s,o){for(var l=u;l<s;l++)if(i(this.values[l],o+l)===!1)return!1},e.prototype.forEachInvertedInner=function(i,u,s,o){for(var l=u-1;l>=s;l--)if(i(this.values[l],o+l)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=Qs)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=Qs)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Me);Me.empty=new j1([]);var MC=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,i,u,s){var o=this.left.length;if(i<o&&this.left.forEachInner(r,i,Math.min(u,o),s)===!1||u>o&&this.right.forEachInner(r,Math.max(i-o,0),Math.min(this.length,u)-o,s+o)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,u,s){var o=this.left.length;if(i>o&&this.right.forEachInvertedInner(r,i-o,Math.max(u,o)-o,s+o)===!1||u<o&&this.left.forEachInvertedInner(r,Math.min(i,o),u,s)===!1)return!1},e.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var u=this.left.length;return i<=u?this.left.slice(r,i):r>=u?this.right.slice(r-u,i-u):this.left.slice(r,u).append(this.right.slice(0,i-u))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(Me);const FC=500;class Tt{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,u;n&&(i=this.remapping(r,this.items.length),u=i.maps.length);let s=e.tr,o,l,a=[],c=[];return this.items.forEach((f,d)=>{if(!f.step){i||(i=this.remapping(r,d+1),u=i.maps.length),u--,c.push(f);return}if(i){c.push(new Ht(f.map));let h=f.step.map(i.slice(u)),p;h&&s.maybeStep(h).doc&&(p=s.mapping.maps[s.mapping.maps.length-1],a.push(new Ht(p,void 0,void 0,a.length+c.length))),u--,p&&i.appendMap(p,u)}else s.maybeStep(f.step);if(f.selection)return o=i?f.selection.map(i.slice(u)):f.selection,l=new Tt(this.items.slice(0,r).append(c.reverse().concat(a)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:o}}addTransform(e,n,r,i){let u=[],s=this.eventCount,o=this.items,l=!i&&o.length?o.get(o.length-1):null;for(let c=0;c<e.steps.length;c++){let f=e.steps[c].invert(e.docs[c]),d=new Ht(e.mapping.maps[c],f,n),h;(h=l&&l.merge(d))&&(d=h,c?u.pop():o=o.slice(0,o.length-1)),u.push(d),n&&(s++,n=void 0),i||(l=d)}let a=s-r.depth;return a>IC&&(o=RC(o,a),s-=a),new Tt(o.append(u),s)}remapping(e,n){let r=new ru;return this.items.forEach((i,u)=>{let s=i.mirrorOffset!=null&&u-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new Tt(this.items.append(e.map(n=>new Ht(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),u=e.mapping,s=e.steps.length,o=this.eventCount;this.items.forEach(d=>{d.selection&&o--},i);let l=n;this.items.forEach(d=>{let h=u.getMirror(--l);if(h==null)return;s=Math.min(s,h);let p=u.maps[h];if(d.step){let m=e.steps[h].invert(e.docs[h]),b=d.selection&&d.selection.map(u.slice(l+1,h));b&&o++,r.push(new Ht(p,m,b))}else r.push(new Ht(p))},i);let a=[];for(let d=n;d<s;d++)a.push(new Ht(u.maps[d]));let c=this.items.slice(0,i).append(a).append(r),f=new Tt(c,o);return f.emptyItemCount()>FC&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],u=0;return this.items.forEach((s,o)=>{if(o>=e)i.push(s),s.selection&&u++;else if(s.step){let l=s.step.map(n.slice(r)),a=l&&l.getMap();if(r--,a&&n.appendMap(a,r),l){let c=s.selection&&s.selection.map(n.slice(r));c&&u++;let f=new Ht(a.invert(),l,c),d,h=i.length-1;(d=i.length&&i[h].merge(f))?i[h]=d:i.push(f)}}else s.map&&r--},this.items.length,0),new Tt(Me.from(i.reverse()),u)}}Tt.empty=new Tt(Me.empty,0);function RC(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}class Ht{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Ht(n.getMap().invert(),n,this.selection)}}}class Fn{constructor(e,n,r,i,u){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=u}}const IC=20;function PC(t,e,n,r){let i=n.getMeta(kr),u;if(i)return i.historyState;n.getMeta($C)&&(t=new Fn(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(kr))return s.getMeta(kr).redo?new Fn(t.done.addTransform(n,void 0,r,Qu(e)),t.undone,Kd(n.mapping.maps),t.prevTime,t.prevComposition):new Fn(t.done,t.undone.addTransform(n,void 0,r,Qu(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let o=n.getMeta("composition"),l=t.prevTime==0||!s&&t.prevComposition!=o&&(t.prevTime<(n.time||0)-r.newGroupDelay||!LC(n,t.prevRanges)),a=s?yl(t.prevRanges,n.mapping):Kd(n.mapping.maps);return new Fn(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,Qu(e)),Tt.empty,a,n.time,o??t.prevComposition)}else return(u=n.getMeta("rebased"))?new Fn(t.done.rebased(n,u),t.undone.rebased(n,u),yl(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Fn(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),yl(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function LC(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let u=0;u<e.length;u+=2)r<=e[u+1]&&i>=e[u]&&(n=!0)}),n}function Kd(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,i,u,s)=>e.push(u,s));return e}function yl(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let i=e.map(t[r],1),u=e.map(t[r+1],-1);i<=u&&n.push(i,u)}return n}function BC(t,e,n){let r=Qu(e),i=kr.get(e).spec.config,u=(n?t.undone:t.done).popEvent(e,r);if(!u)return null;let s=u.selection.resolve(u.transform.doc),o=(n?t.done:t.undone).addTransform(u.transform,e.selection.getBookmark(),i,r),l=new Fn(n?o:u.remaining,n?u.remaining:o,null,0,-1);return u.transform.setSelection(s).setMeta(kr,{redo:n,historyState:l})}let xl=!1,Jd=null;function Qu(t){let e=t.plugins;if(Jd!=e){xl=!1,Jd=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){xl=!0;break}}return xl}const kr=new Gp("history"),$C=new Gp("closeHistory");function IE(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new Eo({key:kr,state:{init(){return new Fn(Tt.empty,Tt.empty,null,0,-1)},apply(e,n,r){return PC(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,i=r=="historyUndo"?zC:r=="historyRedo"?VC:null;return!i||!e.editable?!1:(n.preventDefault(),i(e.state,e.dispatch))}}}})}function W1(t,e){return(n,r)=>{let i=kr.getState(n);if(!i||(t?i.undone:i.done).eventCount==0)return!1;if(r){let u=BC(i,n,t);u&&r(e?u.scrollIntoView():u)}return!0}}const zC=W1(!1,!0),VC=W1(!0,!0),UC=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Eu{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}Eu.prototype.normal={};Eu.prototype.property={};Eu.prototype.space=void 0;function G1(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new Eu(n,r,e)}function ba(t){return t.toLowerCase()}class st{constructor(e,n){this.attribute=n,this.property=e}}st.prototype.attribute="";st.prototype.booleanish=!1;st.prototype.boolean=!1;st.prototype.commaOrSpaceSeparated=!1;st.prototype.commaSeparated=!1;st.prototype.defined=!1;st.prototype.mustUseProperty=!1;st.prototype.number=!1;st.prototype.overloadedBoolean=!1;st.prototype.property="";st.prototype.spaceSeparated=!1;st.prototype.space=void 0;let HC=0;const Z=Nr(),we=Nr(),ya=Nr(),N=Nr(),de=Nr(),Yr=Nr(),at=Nr();function Nr(){return 2**++HC}const xa=Object.freeze(Object.defineProperty({__proto__:null,boolean:Z,booleanish:we,commaOrSpaceSeparated:at,commaSeparated:Yr,number:N,overloadedBoolean:ya,spaceSeparated:de},Symbol.toStringTag,{value:"Module"})),Cl=Object.keys(xa);class xc extends st{constructor(e,n,r,i){let u=-1;if(super(e,n),Zd(this,"space",i),typeof r=="number")for(;++u<Cl.length;){const s=Cl[u];Zd(this,Cl[u],(r&xa[s])===xa[s])}}}xc.prototype.defined=!0;function Zd(t,e,n){n&&(t[e]=n)}function ai(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const u=new xc(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),e[r]=u,n[ba(r)]=r,n[ba(u.attribute)]=r}return new Eu(e,n,t.space)}const K1=ai({properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:we,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:de,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:N,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:de,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:we,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function J1(t,e){return e in t?t[e]:e}function Z1(t,e){return J1(t,e.toLowerCase())}const qC=ai({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yr,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:de,autoFocus:Z,autoPlay:Z,blocking:de,capture:null,charSet:null,checked:Z,cite:null,className:de,cols:N,colSpan:null,content:null,contentEditable:we,controls:Z,controlsList:de,coords:N|Yr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:ya,draggable:we,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:de,height:N,hidden:ya,high:N,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:de,itemRef:de,itemScope:Z,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Z,optimum:N,pattern:null,ping:de,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:de,required:Z,reversed:Z,rows:N,rowSpan:N,sandbox:de,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:we,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:we,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:we,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Z,disableRemotePlayback:Z,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:Z1}),jC=ai({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:at,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:de,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Yr,g2:Yr,glyphName:Yr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:at,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:N,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:at,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:at,rev:at,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:at,requiredFeatures:at,requiredFonts:at,requiredFormats:at,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:at,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:at,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:at,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:J1}),X1=ai({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),Y1=ai({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Z1}),Q1=ai({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),WC=/[A-Z]/g,Xd=/-[a-z]/g,GC=/^data[-\w.:]+$/i;function KC(t,e){const n=ba(e);let r=e,i=st;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&GC.test(e)){if(e.charAt(4)==="-"){const u=e.slice(5).replace(Xd,ZC);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=e.slice(4);if(!Xd.test(u)){let s=u.replace(WC,JC);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}i=xc}return new i(r,e)}function JC(t){return"-"+t.toLowerCase()}function ZC(t){return t.charAt(1).toUpperCase()}const XC=G1([K1,qC,X1,Y1,Q1],"html"),em=G1([K1,jC,X1,Y1,Q1],"svg"),Yd={}.hasOwnProperty;function YC(t,e){const n=e||{};function r(i,...u){let s=r.invalid;const o=r.handlers;if(i&&Yd.call(i,t)){const l=String(i[t]);s=Yd.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...u)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const QC=/["&'<>`]/g,e4=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t4=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n4=/[|\\{}()[\]^$+*?.]/g,Qd=new WeakMap;function r4(t,e){if(t=t.replace(e.subset?i4(e.subset):QC,r),e.subset||e.escapeOnly)return t;return t.replace(e4,n).replace(t4,r);function n(i,u,s){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(u+2),e)}function r(i,u,s){return e.format(i.charCodeAt(0),s.charCodeAt(u+1),e)}}function i4(t){let e=Qd.get(t);return e||(e=u4(t),Qd.set(t,e)),e}function u4(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(n4,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const s4=/[\dA-Fa-f]/;function o4(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!s4.test(String.fromCharCode(e))?r:r+";"}const l4=/\d/;function a4(t,e,n){const r="&#"+String(t);return n&&e&&!l4.test(String.fromCharCode(e))?r:r+";"}const c4=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],wl={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},f4=["cent","copy","divide","gt","lt","not","para","times"],tm={}.hasOwnProperty,Ca={};let $u;for($u in wl)tm.call(wl,$u)&&(Ca[wl[$u]]=$u);const d4=/[^\dA-Za-z]/;function h4(t,e,n,r){const i=String.fromCharCode(t);if(tm.call(Ca,i)){const u=Ca[i],s="&"+u;return n&&c4.includes(u)&&!f4.includes(u)&&(!r||e&&e!==61&&d4.test(String.fromCharCode(e)))?s:s+";"}return""}function p4(t,e,n){let r=o4(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=h4(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const u=a4(t,e,n.omitOptionalSemicolons);u.length<r.length&&(r=u)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Qr(t,e){return r4(t,Object.assign({format:p4},e))}const m4=/^>|^->|<!--|-->|--!>|<!-$/g,g4=[">"],b4=["<",">"];function y4(t,e,n,r){return r.settings.bogusComments?"<?"+Qr(t.value,Object.assign({},r.settings.characterReferences,{subset:g4}))+">":"<!--"+t.value.replace(m4,i)+"-->";function i(u){return Qr(u,Object.assign({},r.settings.characterReferences,{subset:b4}))}}function x4(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function eh(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}function C4(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function w4(t){return t.join(" ").trim()}const E4=/[ \t\n\f\r]/g;function Cc(t){return typeof t=="object"?t.type==="text"?th(t.value):!1:th(t)}function th(t){return t.replace(E4,"")===""}const _e=rm(1),nm=rm(-1),S4=[];function rm(t){return e;function e(n,r,i){const u=n?n.children:S4;let s=(r||0)+t,o=u[s];if(!i)for(;o&&Cc(o);)s+=t,o=u[s];return o}}const k4={}.hasOwnProperty;function im(t){return e;function e(n,r,i){return k4.call(t,n.tagName)&&t[n.tagName](n,r,i)}}const wc=im({body:A4,caption:El,colgroup:El,dd:N4,dt:O4,head:El,html:D4,li:T4,optgroup:v4,option:M4,p:_4,rp:nh,rt:nh,tbody:R4,td:rh,tfoot:I4,th:rh,thead:F4,tr:P4});function El(t,e,n){const r=_e(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Cc(r.value.charAt(0)))}function D4(t,e,n){const r=_e(n,e);return!r||r.type!=="comment"}function A4(t,e,n){const r=_e(n,e);return!r||r.type!=="comment"}function _4(t,e,n){const r=_e(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function T4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&r.tagName==="li"}function O4(t,e,n){const r=_e(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function N4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function nh(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function v4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function M4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function F4(t,e,n){const r=_e(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function R4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function I4(t,e,n){return!_e(n,e)}function P4(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function rh(t,e,n){const r=_e(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const L4=im({body:z4,colgroup:V4,head:$4,html:B4,tbody:U4});function B4(t){const e=_e(t,-1);return!e||e.type!=="comment"}function $4(t){const e=new Set;for(const r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const n=t.children[0];return!n||n.type==="element"}function z4(t){const e=_e(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Cc(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function V4(t,e,n){const r=nm(n,e),i=_e(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&wc(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function U4(t,e,n){const r=nm(n,e),i=_e(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&wc(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const zu={name:[[`
32
33
  \f\r &/=>`.split(""),`
33
34
  \f\r "&'/=>\``.split("")],[`\0
34
35
  \f\r "&'/<=>`.split(""),`\0
@@ -36,9 +37,9 @@ var im=Object.defineProperty;var um=Object.getPrototypeOf;var sm=Reflect.get;var
36
37
  \f\r &>`.split(""),`\0
37
38
  \f\r "&'<=>\``.split("")],[`\0
38
39
  \f\r "&'<=>\``.split(""),`\0
39
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function E4(t,e,n,r){const i=r.schema,u=i.space==="svg"?!1:r.settings.omitOptionalTags;let s=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const o=[];let l;i.space==="html"&&t.tagName==="svg"&&(r.schema=A1);const a=S4(r,t.properties),c=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,c&&(s=!1),(a||!u||!g4(t,e,n))&&(o.push("<",t.tagName,a?" "+a:""),s&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=a.charAt(a.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(c),!s&&(!u||!ac(t,e,n))&&o.push("</"+t.tagName+">"),o.join("")}function S4(t,e){const n=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const u=k4(t,i,e[i]);u&&n.push(u)}}for(;++r<n.length;){const u=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&u!=='"'&&u!=="'"&&(n[r]+=" ")}return n.join("")}function k4(t,e,n){const r=_6(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,u=t.settings.allowDangerousCharacters?0:1;let s=t.quote,o;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=Kr(r.attribute,Object.assign({},t.settings.characterReferences,{subset:Ru.name[i][u]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Q6:e4)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?l:(t.settings.preferUnquoted&&(o=Kr(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Ru.unquoted[i][u]}))),o!==n&&(t.settings.quoteSmart&&Rd(n,s)>Rd(n,t.alternative)&&(s=t.alternative),o=s+Kr(n,Object.assign({},t.settings.characterReferences,{subset:(s==="'"?Ru.single:Ru.double)[i][u],attribute:!0}))+s),l+(o&&"="+o))}const D4=["<","&"];function v1(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:Kr(t.value,Object.assign({},r.settings.characterReferences,{subset:D4}))}function A4(t,e,n,r){return r.settings.allowDangerousHtml?t.value:v1(t,e,n,r)}function _4(t,e,n,r){return r.all(t)}const T4=v6("type",{invalid:N4,unknown:O4,handlers:{comment:X6,doctype:Y6,element:E4,raw:A4,root:_4,text:v1}});function N4(t){throw new Error("Expected node, not `"+t+"`")}function O4(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const v4={},M4={},F4=[];function pw(t,e){const n=e||v4,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:I4,all:R4,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||w6,characterReferences:n.characterReferences||M4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?A1:O6,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function I4(t,e,n){return T4(t,e,n,this)}function R4(t){const e=[],n=t&&t.children||F4;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}function ui(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`);return t.codePointAt(0)}function P4(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}const cc=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Oe=String.raw;function si(t,e){if(t==null)throw new Error(e??"Value expected");return t}const M1=Oe`\[\^?`,F1=`c.? | C(?:-.?)?|${Oe`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Oe`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Oe`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Oe`o\{[^\}]*\}?`}|${Oe`\d{1,3}`}`,fc=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Pu=new RegExp(Oe`
40
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function H4(t,e,n,r){const i=r.schema,u=i.space==="svg"?!1:r.settings.omitOptionalTags;let s=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const o=[];let l;i.space==="html"&&t.tagName==="svg"&&(r.schema=em);const a=q4(r,t.properties),c=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,c&&(s=!1),(a||!u||!L4(t,e,n))&&(o.push("<",t.tagName,a?" "+a:""),s&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=a.charAt(a.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(c),!s&&(!u||!wc(t,e,n))&&o.push("</"+t.tagName+">"),o.join("")}function q4(t,e){const n=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const u=j4(t,i,e[i]);u&&n.push(u)}}for(;++r<n.length;){const u=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&u!=='"'&&u!=="'"&&(n[r]+=" ")}return n.join("")}function j4(t,e,n){const r=KC(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,u=t.settings.allowDangerousCharacters?0:1;let s=t.quote,o;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=Qr(r.attribute,Object.assign({},t.settings.characterReferences,{subset:zu.name[i][u]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?C4:w4)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?l:(t.settings.preferUnquoted&&(o=Qr(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:zu.unquoted[i][u]}))),o!==n&&(t.settings.quoteSmart&&eh(n,s)>eh(n,t.alternative)&&(s=t.alternative),o=s+Qr(n,Object.assign({},t.settings.characterReferences,{subset:(s==="'"?zu.single:zu.double)[i][u],attribute:!0}))+s),l+(o&&"="+o))}const W4=["<","&"];function um(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:Qr(t.value,Object.assign({},r.settings.characterReferences,{subset:W4}))}function G4(t,e,n,r){return r.settings.allowDangerousHtml?t.value:um(t,e,n,r)}function K4(t,e,n,r){return r.all(t)}const J4=YC("type",{invalid:Z4,unknown:X4,handlers:{comment:y4,doctype:x4,element:H4,raw:G4,root:K4,text:um}});function Z4(t){throw new Error("Expected node, not `"+t+"`")}function X4(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Y4={},Q4={},ew=[];function PE(t,e){const n=e||Y4,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:tw,all:nw,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||UC,characterReferences:n.characterReferences||Q4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?em:XC,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function tw(t,e,n){return J4(t,e,n,this)}function nw(t){const e=[],n=t&&t.children||ew;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}function ci(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`);return t.codePointAt(0)}function rw(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}const Ec=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Ne=String.raw;function fi(t,e){if(t==null)throw new Error(e??"Value expected");return t}const sm=Ne`\[\^?`,om=`c.? | C(?:-.?)?|${Ne`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Ne`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Ne`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Ne`o\{[^\}]*\}?`}|${Ne`\d{1,3}`}`,Sc=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Vu=new RegExp(Ne`
40
41
  \\ (?:
41
- ${F1}
42
+ ${om}
42
43
  | [gk]<[^>]*>?
43
44
  | [gk]'[^']*'?
44
45
  | .
@@ -55,20 +56,20 @@ var im=Object.defineProperty;var um=Object.getPrototypeOf;var sm=Reflect.get;var
55
56
  )?
56
57
  | \*[^\)]*\)?
57
58
  )?
58
- | (?:${fc.source})+
59
- | ${M1}
59
+ | (?:${Sc.source})+
60
+ | ${sm}
60
61
  | .
61
- `.replace(/\s+/g,""),"gsu"),pl=new RegExp(Oe`
62
+ `.replace(/\s+/g,""),"gsu"),Sl=new RegExp(Ne`
62
63
  \\ (?:
63
- ${F1}
64
+ ${om}
64
65
  | .
65
66
  )
66
67
  | \[:(?:\^?\p{Alpha}+|\^):\]
67
- | ${M1}
68
+ | ${sm}
68
69
  | &&
69
70
  | .
70
- `.replace(/\s+/g,""),"gsu");function L4(t,e={}){const n={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof t!="string")throw new Error("String expected as pattern");const r=nC(n.flags),i=[r.extended],u={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(f){i.push(f)},replaceCurrentModX(f){i[i.length-1]=f},singleline:n.rules.singleline};let s=[],o;for(Pu.lastIndex=0;o=Pu.exec(t);){const f=B4(u,t,o[0],Pu.lastIndex);f.tokens?s.push(...f.tokens):f.token&&s.push(f.token),f.lastIndex!==void 0&&(Pu.lastIndex=f.lastIndex)}const l=[];let a=0;s.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++a:f.raw==="("&&l.push(f)}),a||l.forEach((f,d)=>{f.kind="capturing",f.number=d+1});const c=a||l.length;return{tokens:s.map(f=>f.type==="EscapedNumber"?iC(f,c):f).flat(),flags:r}}function B4(t,e,n,r){const[i,u]=n;if(n==="["||n==="[^"){const s=z4(e,n,r);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(u))return{token:zd(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:J4(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:R1(n)}}if(u==="K")return{token:P1("keep",n)};if(u==="N"||u==="R")return{token:dr("newline",n,{negate:u==="N"})};if(u==="O")return{token:dr("any",n)};if(u==="X")return{token:dr("text_segment",n)};const s=I1(n,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(i==="("){if(u==="*")return{token:Q4(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(e[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:Y4(n,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,n==="("&&!t.captureGroup||n==="(?:")return{token:Lr("group",n)};if(n==="(?>")return{token:Lr("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Lr(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&t.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Lr("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Lr("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:W4(n)}}if(t.getCurrentModX()){if(n==="#"){const s=e.indexOf(`
71
- `,r);return{lastIndex:s===-1?e.length:s}}if(/^\s$/.test(n)){const s=/\s+/y;return s.lastIndex=r,{lastIndex:s.exec(e)?s.lastIndex:r}}}if(n===".")return{token:dr("dot",n)};if(n==="^"||n==="$"){const s=t.singleline?{"^":Oe`\A`,$:Oe`\Z`}[n]:n;return{token:zd(s,n)}}return n==="|"?{token:V4(n)}:fc.test(n)?{tokens:uC(n)}:{token:gn(ui(n),n)}}function z4(t,e,n){const r=[$d(e[1]==="^",e)];let i=1,u;for(pl.lastIndex=n;u=pl.exec(t);){const s=u[0];if(s[0]==="["&&s[1]!==":")i++,r.push($d(s[1]==="^",s));else if(s==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(gn(93,s));else if(i--,r.push(U4(s)),!i)break}else{const o=$4(s);Array.isArray(o)?r.push(...o):r.push(o)}}return{tokens:r,lastIndex:pl.lastIndex||t.length}}function $4(t){if(t[0]==="\\")return I1(t,{inCharClass:!0});if(t[0]==="["){const e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!cc.has(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return dr("posix",t,{value:e.groups.name,negate:!!e.groups.negate})}return t==="-"?H4(t):t==="&&"?q4(t):gn(ui(t),t)}function I1(t,{inCharClass:e}){const n=t[1];if(n==="c"||n==="C")return X4(t);if("dDhHsSwW".includes(n))return eC(t);if(t.startsWith(Oe`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return tC(t)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(t))try{const r=t.split(/\\x/).slice(1).map(s=>parseInt(s,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),u=new TextEncoder;return[...i].map(s=>{const o=[...u.encode(s)].map(l=>`\\x${l.toString(16)}`).join("");return gn(ui(s),o)})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return gn(rC(t),t);if(Vd.has(n))return gn(Vd.get(n),t);if(/\d/.test(n))return j4(e,t);if(t==="\\")throw new Error(Oe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return gn(t.codePointAt(1),t);throw new Error(`Unexpected escape "${t}"`)}function V4(t){return{type:"Alternator",raw:t}}function zd(t,e){return{type:"Assertion",kind:t,raw:e}}function R1(t){return{type:"Backreference",raw:t}}function gn(t,e){return{type:"Character",value:t,raw:e}}function U4(t){return{type:"CharacterClassClose",raw:t}}function H4(t){return{type:"CharacterClassHyphen",raw:t}}function q4(t){return{type:"CharacterClassIntersector",raw:t}}function $d(t,e){return{type:"CharacterClassOpen",negate:t,raw:e}}function dr(t,e,n={}){return{type:"CharacterSet",kind:t,...n,raw:e}}function P1(t,e,n={}){return t==="keep"?{type:"Directive",kind:t,raw:e}:{type:"Directive",kind:t,flags:si(n.flags),raw:e}}function j4(t,e){return{type:"EscapedNumber",inCharClass:t,raw:e}}function W4(t){return{type:"GroupClose",raw:t}}function Lr(t,e,n={}){return{type:"GroupOpen",kind:t,...n,raw:e}}function G4(t,e,n,r){return{type:"NamedCallout",kind:t,tag:e,arguments:n,raw:r}}function K4(t,e,n,r){return{type:"Quantifier",kind:t,min:e,max:n,raw:r}}function J4(t){return{type:"Subroutine",raw:t}}const Z4=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Vd=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function X4(t){const e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return gn(ui(e.toUpperCase())-64,t)}function Y4(t,e){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;r??(r="");const i=(e.getCurrentModX()||n.includes("x"))&&!r.includes("x"),u=Hd(n),s=Hd(r),o={};if(u&&(o.enable=u),s&&(o.disable=s),t.endsWith(")"))return e.replaceCurrentModX(i),P1("flags",t,{flags:o});if(t.endsWith(":"))return e.pushModX(i),e.numOpenGroups++,Lr("group",t,{...(u||s)&&{flags:o}});throw new Error(`Unexpected flag modifier "${t}"`)}function Q4(t){const e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(t);if(!e)throw new Error(`Incomplete or invalid named callout "${t}"`);const{name:n,tag:r,args:i}=e.groups;if(!n)throw new Error(`Invalid named callout "${t}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${t}"`);const u=i?i.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[s,o,l]=u,a=Z4.has(n)?n.toLowerCase():"custom";switch(a){case"fail":case"mismatch":case"skip":if(u.length>0)throw new Error(`Named callout arguments not allowed "${u}"`);break;case"error":if(u.length>1)throw new Error(`Named callout allows only one argument "${u}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!u.length||u.length>2)throw new Error(`Named callout must have one or two arguments "${u}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(u.length===2&&(typeof o=="number"||!/^[<>X]$/.test(o)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(u.length>1)throw new Error(`Named callout allows only one argument "${u}"`);if(u.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(u.length!==3)throw new Error(`Named callout must have three arguments "${u}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof o=="number"||!/^(?:[<>!=]=|[<>])$/.test(o))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${a}"`)}return G4(a,r??null,(i==null?void 0:i.split(","))??null,t)}function Ud(t){let e=null,n,r;if(t[0]==="{"){const{minStr:i,maxStr:u}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(t).groups,s=1e5;if(+i>s||u&&+u>s)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+i,r=u===void 0?+i:u===""?1/0:+u,n>r&&(e="possessive",[n,r]=[r,n]),t.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else n=t[0]==="+"?1:0,r=t[0]==="?"?1:1/0,e=t[1]==="+"?"possessive":t[1]==="?"?"lazy":"greedy";return K4(e,n,r,t)}function eC(t){const e=t[1].toLowerCase();return dr({d:"digit",h:"hex",s:"space",w:"word"}[e],t,{negate:t[1]!==e})}function tC(t){const{p:e,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups;return dr("property",t,{value:r,negate:e==="P"&&!n||e==="p"&&!!n})}function Hd(t){const e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function nC(t){const e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<t.length;n++){const r=t[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(t.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=t[n+2]==="g"?"grapheme":"word",n+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return e}function rC(t){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(t))throw new Error(`Incomplete or invalid escape "${t}"`);const e=t[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function iC(t,e){const{raw:n,inCharClass:r}=t,i=n.slice(1);if(!r&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=e))return[R1(n)];const u=[],s=i.match(/^[0-7]+|\d/g);for(let o=0;o<s.length;o++){const l=s[o];let a;if(o===0&&l!=="8"&&l!=="9"){if(a=parseInt(l,8),a>127)throw new Error(Oe`Octal encoded byte above 177 unsupported "${n}"`)}else a=ui(l);u.push(gn(a,(o===0?"\\":"")+l))}return u}function uC(t){const e=[],n=new RegExp(fc,"gy");let r;for(;r=n.exec(t);){const i=r[0];if(i[0]==="{"){const u=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(u){const{min:s,max:o}=u.groups;if(+s>+o&&i.endsWith("?")){n.lastIndex--,e.push(Ud(i.slice(0,-1)));continue}}}e.push(Ud(i))}return e}function L1(t,e){if(!Array.isArray(t.body))throw new Error("Expected node with body array");if(t.body.length!==1)return!1;const n=t.body[0];return!e||Object.keys(e).every(r=>e[r]===n[r])}function sC(t){return oC.has(t.type)}const oC=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function B1(t,e={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},r=L4(t,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(d,h)=>{const p=r.tokens[u.nextIndex];switch(u.parent=d,u.nextIndex++,p.type){case"Alternator":return Ar();case"Assertion":return lC(p);case"Backreference":return aC(p,u);case"Character":return xo(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return cC(p,u,h);case"CharacterClassOpen":return fC(p,u,h);case"CharacterSet":return dC(p,u);case"Directive":return yC(p.kind,{flags:p.flags});case"GroupOpen":return hC(p,u,h);case"NamedCallout":return CC(p.kind,p.tag,p.arguments);case"Quantifier":return pC(p,u);case"Subroutine":return mC(p,u);default:throw new Error(`Unexpected token type "${p.type}"`)}},u={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},s=EC(xC(r.flags));let o=s.body[0];for(;u.nextIndex<r.tokens.length;){const d=i(o,{});d.type==="Alternative"?(s.body.push(d),o=d):o.body.push(d)}const{capturingGroups:l,hasNumberedRef:a,namedGroupsByName:c,subroutines:f}=u;if(a&&c.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of f)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined");d&&(l[d-1].isSubroutined=!0)}else if(c.has(d)){if(c.get(d).length>1)throw new Error(Oe`Subroutine uses a duplicate group name "\g<${d}>"`);c.get(d)[0].isSubroutined=!0}else throw new Error(Oe`Subroutine uses a group name that's not defined "\g<${d}>"`);return s}function lC({kind:t}){return fa(si({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[t],`Unexpected assertion kind "${t}"`),{negate:t===Oe`\B`||t===Oe`\Y`})}function aC({raw:t},e){const n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),i=(u,s=!1)=>{const o=e.capturingGroups.length;let l=!1;if(u>o)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,da(s?o+1-u:u,{orphan:l})};if(n){const u=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(u)return i(+u.groups.num,!!u.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return da(r)}return i(+r)}function cC(t,e,n){const{tokens:r,walk:i}=e,u=e.parent,s=u.body.at(-1),o=r[e.nextIndex];if(!n.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&o&&o.type!=="CharacterClassOpen"&&o.type!=="CharacterClassClose"&&o.type!=="CharacterClassIntersector"){const l=i(u,{...n,isCheckingRangeEnd:!0});if(s.type==="Character"&&l.type==="Character")return u.body.pop(),bC(s,l);throw new Error("Invalid character class range")}return xo(ui("-"))}function fC({negate:t},e,n){const{tokens:r,walk:i}=e,u=r[e.nextIndex],s=[Ju()];let o=Wd(u);for(;o.type!=="CharacterClassClose";){if(o.type==="CharacterClassIntersector")s.push(Ju()),e.nextIndex++;else{const a=s.at(-1);a.body.push(i(a,n))}o=Wd(r[e.nextIndex],u)}const l=Ju({negate:t});return s.length===1?l.body=s[0].body:(l.kind="intersection",l.body=s.map(a=>a.body.length===1?a.body[0]:a)),e.nextIndex++,l}function dC({kind:t,negate:e,value:n},r){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:u,unicodePropertyMap:s}=r;if(t==="property"){const o=Co(n);if(cc.has(o)&&!(s!=null&&s.has(o)))t="posix",n=o;else return Br(n,{negate:e,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:u,unicodePropertyMap:s})}return t==="posix"?wC(n,{negate:e}):ha(t,{negate:e})}function hC(t,e,n){const{tokens:r,capturingGroups:i,namedGroupsByName:u,skipLookbehindValidation:s,walk:o}=e,l=SC(t),a=l.type==="AbsenceFunction",c=jd(l),f=c&&l.negate;if(l.type==="CapturingGroup"&&(i.push(l),l.name&&P4(u,l.name,[]).push(l)),a&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=Gd(r[e.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(Ar()),e.nextIndex++;else{const h=l.body.at(-1),p=o(h,{...n,isInAbsenceFunction:n.isInAbsenceFunction||a,isInLookbehind:n.isInLookbehind||c,isInNegLookbehind:n.isInNegLookbehind||f});if(h.body.push(p),(c||n.isInLookbehind)&&!s){const m="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(qd(p)||p.type==="CapturingGroup")throw new Error(m)}else if(qd(p)||jd(p)&&p.negate)throw new Error(m)}}d=Gd(r[e.nextIndex])}return e.nextIndex++,l}function pC({kind:t,min:e,max:n},r){const i=r.parent,u=i.body.at(-1);if(!u||!sC(u))throw new Error("Quantifier requires a repeatable token");const s=$1(t,e,n,u);return i.body.pop(),s}function mC({raw:t},e){const{capturingGroups:n,subroutines:r}=e;let i=t.slice(3,-1);const u=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(u){const o=+u.groups.num,l=n.length;if(e.hasNumberedRef=!0,i={"":o,"+":l+o,"-":l+1-o}[u.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const s=V1(i);return r.push(s),s}function gC(t,e){return{type:"AbsenceFunction",kind:t,body:yu(e==null?void 0:e.body)}}function Ar(t){return{type:"Alternative",body:U1(t==null?void 0:t.body)}}function fa(t,e){const n={type:"Assertion",kind:t};return(t==="word_boundary"||t==="text_segment_boundary")&&(n.negate=!!(e!=null&&e.negate)),n}function da(t,e){const n=!!(e!=null&&e.orphan);return{type:"Backreference",ref:t,...n&&{orphan:n}}}function z1(t,e){const n={name:void 0,isSubroutined:!1,...e};if(n.name!==void 0&&!kC(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:t,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:yu(e==null?void 0:e.body)}}function xo(t,e){const n={useLastValid:!1,...e};if(t>1114111){const r=t.toString(16);if(n.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:t}}function Ju(t){const e={kind:"union",negate:!1,...t};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:U1(t==null?void 0:t.body)}}function bC(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:t,max:e}}function ha(t,e){const n=!!(e!=null&&e.negate),r={type:"CharacterSet",kind:t};return(t==="digit"||t==="hex"||t==="newline"||t==="space"||t==="word")&&(r.negate=n),(t==="text_segment"||t==="newline"&&!n)&&(r.variableLength=!0),r}function yC(t,e={}){if(t==="keep")return{type:"Directive",kind:t};if(t==="flags")return{type:"Directive",kind:t,flags:si(e.flags)};throw new Error(`Unexpected directive kind "${t}"`)}function xC(t){return{type:"Flags",...t}}function _t(t){const e=t==null?void 0:t.atomic,n=t==null?void 0:t.flags;if(e&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...n&&{flags:n},body:yu(t==null?void 0:t.body)}}function lr(t){const e={behind:!1,negate:!1,...t};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:yu(t==null?void 0:t.body)}}function CC(t,e,n){return{type:"NamedCallout",kind:t,tag:e,arguments:n}}function wC(t,e){const n=!!(e!=null&&e.negate);if(!cc.has(t))throw new Error(`Invalid POSIX class "${t}"`);return{type:"CharacterSet",kind:"posix",value:t,negate:n}}function $1(t,e,n,r){if(e>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:t,min:e,max:n,body:r}}function EC(t,e){return{type:"Regex",body:yu(e==null?void 0:e.body),flags:t}}function V1(t){return{type:"Subroutine",ref:t}}function Br(t,e){var i;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e};let r=(i=n.unicodePropertyMap)==null?void 0:i.get(Co(t));if(!r){if(n.normalizeUnknownPropertyNames)r=DC(t);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Oe`Invalid Unicode property "\p{${t}}"`)}return{type:"CharacterSet",kind:"property",value:r??t,negate:n.negate}}function SC({flags:t,kind:e,name:n,negate:r,number:i}){switch(e){case"absence_repeater":return gC("repeater");case"atomic":return _t({atomic:!0});case"capturing":return z1(i,{name:n});case"group":return _t({flags:t});case"lookahead":case"lookbehind":return lr({behind:e==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${e}"`)}}function yu(t){if(t===void 0)t=[Ar()];else if(!Array.isArray(t)||!t.length||!t.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return t}function U1(t){if(t===void 0)t=[];else if(!Array.isArray(t)||!t.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return t}function qd(t){return t.type==="LookaroundAssertion"&&t.kind==="lookahead"}function jd(t){return t.type==="LookaroundAssertion"&&t.kind==="lookbehind"}function kC(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function DC(t){return t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function Co(t){return t.replace(/[- _]+/g,"").toLowerCase()}function Wd(t,e){return si(t,`${(e==null?void 0:e.type)==="Character"&&e.value===93?"Empty":"Unclosed"} character class`)}function Gd(t){return si(t,"Unclosed group")}function $i(t,e,n=null){function r(u,s){for(let o=0;o<u.length;o++){const l=i(u[o],s,o,u);o=Math.max(-1,o+l)}}function i(u,s=null,o=null,l=null){var x,w;let a=0,c=!1;const f={node:u,parent:s,key:o,container:l,root:t,remove(){Lu(l).splice(Math.max(0,vr(o)+a),1),a--,c=!0},removeAllNextSiblings(){return Lu(l).splice(vr(o)+1)},removeAllPrevSiblings(){const E=vr(o)+a;return a-=E,Lu(l).splice(0,Math.max(0,E))},replaceWith(E,N={}){const F=!!N.traverse;l?l[Math.max(0,vr(o)+a)]=E:si(s,"Can't replace root node")[o]=E,F&&i(E,s,o,l),c=!0},replaceWithMultiple(E,N={}){const F=!!N.traverse;if(Lu(l).splice(Math.max(0,vr(o)+a),1,...E),a+=E.length-1,F){let j=0;for(let R=0;R<E.length;R++)j+=i(E[R],s,vr(o)+R+j,l)}c=!0},skip(){c=!0}},{type:d}=u,h=e["*"],p=e[d],m=typeof h=="function"?h:h==null?void 0:h.enter,b=typeof p=="function"?p:p==null?void 0:p.enter;if(m==null||m(f,n),b==null||b(f,n),!c)switch(d){case"AbsenceFunction":case"CapturingGroup":case"Group":r(u.body,u);break;case"Alternative":case"CharacterClass":r(u.body,u);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(u.min,u,"min"),i(u.max,u,"max");break;case"LookaroundAssertion":r(u.body,u);break;case"Quantifier":i(u.body,u,"body");break;case"Regex":r(u.body,u),i(u.flags,u,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return(x=p==null?void 0:p.exit)==null||x.call(p,f,n),(w=h==null?void 0:h.exit)==null||w.call(h,f,n),a}return i(t),t}function Lu(t){if(!Array.isArray(t))throw new Error("Container expected");return t}function vr(t){if(typeof t!="number")throw new Error("Numeric key expected");return t}const AC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function _C(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function TC(t,e,n,r){return t.slice(0,e)+r+t.slice(e+n.length)}const xt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function dc(t,e,n,r){const i=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),u=[!1];let s=0,o="";for(const l of t.matchAll(i)){const{0:a,groups:{$skip:c}}=l;if(!c&&(!r||r===xt.DEFAULT==!s)){n instanceof Function?o+=n(l,{context:s?xt.CHAR_CLASS:xt.DEFAULT,negated:u[u.length-1]}):o+=n;continue}a[0]==="["?(s++,u.push(a[1]==="^")):a==="]"&&s&&(s--,u.pop()),o+=a}return o}function H1(t,e,n,r){dc(t,e,n,r)}function NC(t,e,n=0,r){if(!new RegExp(e,"su").test(t))return null;const i=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=n;let u=0,s;for(;s=i.exec(t);){const{0:o,groups:{$skip:l}}=s;if(!l&&(!r||r===xt.DEFAULT==!u))return s;o==="["?u++:o==="]"&&u&&u--,i.lastIndex==s.index&&i.lastIndex++}return null}function Bu(t,e,n){return!!NC(t,e,0,n)}function OC(t,e){const n=/\\?./gsu;n.lastIndex=e;let r=t.length,i=0,u=1,s;for(;s=n.exec(t);){const[o]=s;if(o==="[")i++;else if(i)o==="]"&&i--;else if(o==="(")u++;else if(o===")"&&(u--,!u)){r=s.index;break}}return t.slice(e,r)}const Kd=new RegExp(String.raw`(?<noncapturingStart>${AC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function vC(t,e){const n=(e==null?void 0:e.hiddenCaptures)??[];let r=(e==null?void 0:e.captureTransfers)??new Map;if(!/\(\?>/.test(t))return{pattern:t,captureTransfers:r,hiddenCaptures:n};const i="(?>",u="(?:(?=(",s=[0],o=[];let l=0,a=0,c=NaN,f;do{f=!1;let d=0,h=0,p=!1,m;for(Kd.lastIndex=Number.isNaN(c)?0:c+u.length;m=Kd.exec(t);){const{0:b,index:x,groups:{capturingStart:w,noncapturingStart:E}}=m;if(b==="[")d++;else if(d)b==="]"&&d--;else if(b===i&&!p)c=x,p=!0;else if(p&&E)h++;else if(w)p?h++:(l++,s.push(l+a));else if(b===")"&&p){if(!h){a++;const N=l+a;if(t=`${t.slice(0,c)}${u}${t.slice(c+i.length,x)}))<$$${N}>)${t.slice(x+1)}`,f=!0,o.push(N),_C(n,N),r.size){const F=new Map;r.forEach((j,R)=>{F.set(R>=N?R+1:R,j.map(U=>U>=N?U+1:U))}),r=F}break}h--}}}while(f);return n.push(...o),t=dc(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:h,wrappedBackrefNum:p}})=>{if(h){const m=+h;if(m>s.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${s[m]}`}return`\\${p}`},xt.DEFAULT),{pattern:t,captureTransfers:r,hiddenCaptures:n}}const q1=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,ml=new RegExp(String.raw`
71
+ `.replace(/\s+/g,""),"gsu");function iw(t,e={}){const n={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof t!="string")throw new Error("String expected as pattern");const r=Sw(n.flags),i=[r.extended],u={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(f){i.push(f)},replaceCurrentModX(f){i[i.length-1]=f},singleline:n.rules.singleline};let s=[],o;for(Vu.lastIndex=0;o=Vu.exec(t);){const f=uw(u,t,o[0],Vu.lastIndex);f.tokens?s.push(...f.tokens):f.token&&s.push(f.token),f.lastIndex!==void 0&&(Vu.lastIndex=f.lastIndex)}const l=[];let a=0;s.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++a:f.raw==="("&&l.push(f)}),a||l.forEach((f,d)=>{f.kind="capturing",f.number=d+1});const c=a||l.length;return{tokens:s.map(f=>f.type==="EscapedNumber"?Dw(f,c):f).flat(),flags:r}}function uw(t,e,n,r){const[i,u]=n;if(n==="["||n==="[^"){const s=sw(e,n,r);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(u))return{token:ih(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:gw(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:am(n)}}if(u==="K")return{token:cm("keep",n)};if(u==="N"||u==="R")return{token:mr("newline",n,{negate:u==="N"})};if(u==="O")return{token:mr("any",n)};if(u==="X")return{token:mr("text_segment",n)};const s=lm(n,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(i==="("){if(u==="*")return{token:Cw(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(e[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:xw(n,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,n==="("&&!t.captureGroup||n==="(?:")return{token:Ur("group",n)};if(n==="(?>")return{token:Ur("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Ur(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&t.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Ur("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Ur("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:hw(n)}}if(t.getCurrentModX()){if(n==="#"){const s=e.indexOf(`
72
+ `,r);return{lastIndex:s===-1?e.length:s}}if(/^\s$/.test(n)){const s=/\s+/y;return s.lastIndex=r,{lastIndex:s.exec(e)?s.lastIndex:r}}}if(n===".")return{token:mr("dot",n)};if(n==="^"||n==="$"){const s=t.singleline?{"^":Ne`\A`,$:Ne`\Z`}[n]:n;return{token:ih(s,n)}}return n==="|"?{token:lw(n)}:Sc.test(n)?{tokens:Aw(n)}:{token:yn(ci(n),n)}}function sw(t,e,n){const r=[uh(e[1]==="^",e)];let i=1,u;for(Sl.lastIndex=n;u=Sl.exec(t);){const s=u[0];if(s[0]==="["&&s[1]!==":")i++,r.push(uh(s[1]==="^",s));else if(s==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(yn(93,s));else if(i--,r.push(aw(s)),!i)break}else{const o=ow(s);Array.isArray(o)?r.push(...o):r.push(o)}}return{tokens:r,lastIndex:Sl.lastIndex||t.length}}function ow(t){if(t[0]==="\\")return lm(t,{inCharClass:!0});if(t[0]==="["){const e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!Ec.has(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return mr("posix",t,{value:e.groups.name,negate:!!e.groups.negate})}return t==="-"?cw(t):t==="&&"?fw(t):yn(ci(t),t)}function lm(t,{inCharClass:e}){const n=t[1];if(n==="c"||n==="C")return yw(t);if("dDhHsSwW".includes(n))return ww(t);if(t.startsWith(Ne`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return Ew(t)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(t))try{const r=t.split(/\\x/).slice(1).map(s=>parseInt(s,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),u=new TextEncoder;return[...i].map(s=>{const o=[...u.encode(s)].map(l=>`\\x${l.toString(16)}`).join("");return yn(ci(s),o)})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return yn(kw(t),t);if(sh.has(n))return yn(sh.get(n),t);if(/\d/.test(n))return dw(e,t);if(t==="\\")throw new Error(Ne`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return yn(t.codePointAt(1),t);throw new Error(`Unexpected escape "${t}"`)}function lw(t){return{type:"Alternator",raw:t}}function ih(t,e){return{type:"Assertion",kind:t,raw:e}}function am(t){return{type:"Backreference",raw:t}}function yn(t,e){return{type:"Character",value:t,raw:e}}function aw(t){return{type:"CharacterClassClose",raw:t}}function cw(t){return{type:"CharacterClassHyphen",raw:t}}function fw(t){return{type:"CharacterClassIntersector",raw:t}}function uh(t,e){return{type:"CharacterClassOpen",negate:t,raw:e}}function mr(t,e,n={}){return{type:"CharacterSet",kind:t,...n,raw:e}}function cm(t,e,n={}){return t==="keep"?{type:"Directive",kind:t,raw:e}:{type:"Directive",kind:t,flags:fi(n.flags),raw:e}}function dw(t,e){return{type:"EscapedNumber",inCharClass:t,raw:e}}function hw(t){return{type:"GroupClose",raw:t}}function Ur(t,e,n={}){return{type:"GroupOpen",kind:t,...n,raw:e}}function pw(t,e,n,r){return{type:"NamedCallout",kind:t,tag:e,arguments:n,raw:r}}function mw(t,e,n,r){return{type:"Quantifier",kind:t,min:e,max:n,raw:r}}function gw(t){return{type:"Subroutine",raw:t}}const bw=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),sh=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function yw(t){const e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return yn(ci(e.toUpperCase())-64,t)}function xw(t,e){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;r??(r="");const i=(e.getCurrentModX()||n.includes("x"))&&!r.includes("x"),u=lh(n),s=lh(r),o={};if(u&&(o.enable=u),s&&(o.disable=s),t.endsWith(")"))return e.replaceCurrentModX(i),cm("flags",t,{flags:o});if(t.endsWith(":"))return e.pushModX(i),e.numOpenGroups++,Ur("group",t,{...(u||s)&&{flags:o}});throw new Error(`Unexpected flag modifier "${t}"`)}function Cw(t){const e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(t);if(!e)throw new Error(`Incomplete or invalid named callout "${t}"`);const{name:n,tag:r,args:i}=e.groups;if(!n)throw new Error(`Invalid named callout "${t}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${t}"`);const u=i?i.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[s,o,l]=u,a=bw.has(n)?n.toLowerCase():"custom";switch(a){case"fail":case"mismatch":case"skip":if(u.length>0)throw new Error(`Named callout arguments not allowed "${u}"`);break;case"error":if(u.length>1)throw new Error(`Named callout allows only one argument "${u}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!u.length||u.length>2)throw new Error(`Named callout must have one or two arguments "${u}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(u.length===2&&(typeof o=="number"||!/^[<>X]$/.test(o)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(u.length>1)throw new Error(`Named callout allows only one argument "${u}"`);if(u.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(u.length!==3)throw new Error(`Named callout must have three arguments "${u}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof o=="number"||!/^(?:[<>!=]=|[<>])$/.test(o))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${a}"`)}return pw(a,r??null,(i==null?void 0:i.split(","))??null,t)}function oh(t){let e=null,n,r;if(t[0]==="{"){const{minStr:i,maxStr:u}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(t).groups,s=1e5;if(+i>s||u&&+u>s)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+i,r=u===void 0?+i:u===""?1/0:+u,n>r&&(e="possessive",[n,r]=[r,n]),t.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else n=t[0]==="+"?1:0,r=t[0]==="?"?1:1/0,e=t[1]==="+"?"possessive":t[1]==="?"?"lazy":"greedy";return mw(e,n,r,t)}function ww(t){const e=t[1].toLowerCase();return mr({d:"digit",h:"hex",s:"space",w:"word"}[e],t,{negate:t[1]!==e})}function Ew(t){const{p:e,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups;return mr("property",t,{value:r,negate:e==="P"&&!n||e==="p"&&!!n})}function lh(t){const e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function Sw(t){const e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<t.length;n++){const r=t[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(t.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=t[n+2]==="g"?"grapheme":"word",n+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return e}function kw(t){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(t))throw new Error(`Incomplete or invalid escape "${t}"`);const e=t[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function Dw(t,e){const{raw:n,inCharClass:r}=t,i=n.slice(1);if(!r&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=e))return[am(n)];const u=[],s=i.match(/^[0-7]+|\d/g);for(let o=0;o<s.length;o++){const l=s[o];let a;if(o===0&&l!=="8"&&l!=="9"){if(a=parseInt(l,8),a>127)throw new Error(Ne`Octal encoded byte above 177 unsupported "${n}"`)}else a=ci(l);u.push(yn(a,(o===0?"\\":"")+l))}return u}function Aw(t){const e=[],n=new RegExp(Sc,"gy");let r;for(;r=n.exec(t);){const i=r[0];if(i[0]==="{"){const u=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(u){const{min:s,max:o}=u.groups;if(+s>+o&&i.endsWith("?")){n.lastIndex--,e.push(oh(i.slice(0,-1)));continue}}}e.push(oh(i))}return e}function fm(t,e){if(!Array.isArray(t.body))throw new Error("Expected node with body array");if(t.body.length!==1)return!1;const n=t.body[0];return!e||Object.keys(e).every(r=>e[r]===n[r])}function _w(t){return Tw.has(t.type)}const Tw=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function dm(t,e={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},r=iw(t,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(d,h)=>{const p=r.tokens[u.nextIndex];switch(u.parent=d,u.nextIndex++,p.type){case"Alternator":return Or();case"Assertion":return Ow(p);case"Backreference":return Nw(p,u);case"Character":return _o(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return vw(p,u,h);case"CharacterClassOpen":return Mw(p,u,h);case"CharacterSet":return Fw(p,u);case"Directive":return $w(p.kind,{flags:p.flags});case"GroupOpen":return Rw(p,u,h);case"NamedCallout":return Vw(p.kind,p.tag,p.arguments);case"Quantifier":return Iw(p,u);case"Subroutine":return Pw(p,u);default:throw new Error(`Unexpected token type "${p.type}"`)}},u={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},s=Hw(zw(r.flags));let o=s.body[0];for(;u.nextIndex<r.tokens.length;){const d=i(o,{});d.type==="Alternative"?(s.body.push(d),o=d):o.body.push(d)}const{capturingGroups:l,hasNumberedRef:a,namedGroupsByName:c,subroutines:f}=u;if(a&&c.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of f)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined");d&&(l[d-1].isSubroutined=!0)}else if(c.has(d)){if(c.get(d).length>1)throw new Error(Ne`Subroutine uses a duplicate group name "\g<${d}>"`);c.get(d)[0].isSubroutined=!0}else throw new Error(Ne`Subroutine uses a group name that's not defined "\g<${d}>"`);return s}function Ow({kind:t}){return wa(fi({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[t],`Unexpected assertion kind "${t}"`),{negate:t===Ne`\B`||t===Ne`\Y`})}function Nw({raw:t},e){const n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),i=(u,s=!1)=>{const o=e.capturingGroups.length;let l=!1;if(u>o)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,Ea(s?o+1-u:u,{orphan:l})};if(n){const u=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(u)return i(+u.groups.num,!!u.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return Ea(r)}return i(+r)}function vw(t,e,n){const{tokens:r,walk:i}=e,u=e.parent,s=u.body.at(-1),o=r[e.nextIndex];if(!n.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&o&&o.type!=="CharacterClassOpen"&&o.type!=="CharacterClassClose"&&o.type!=="CharacterClassIntersector"){const l=i(u,{...n,isCheckingRangeEnd:!0});if(s.type==="Character"&&l.type==="Character")return u.body.pop(),Bw(s,l);throw new Error("Invalid character class range")}return _o(ci("-"))}function Mw({negate:t},e,n){const{tokens:r,walk:i}=e,u=r[e.nextIndex],s=[es()];let o=fh(u);for(;o.type!=="CharacterClassClose";){if(o.type==="CharacterClassIntersector")s.push(es()),e.nextIndex++;else{const a=s.at(-1);a.body.push(i(a,n))}o=fh(r[e.nextIndex],u)}const l=es({negate:t});return s.length===1?l.body=s[0].body:(l.kind="intersection",l.body=s.map(a=>a.body.length===1?a.body[0]:a)),e.nextIndex++,l}function Fw({kind:t,negate:e,value:n},r){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:u,unicodePropertyMap:s}=r;if(t==="property"){const o=To(n);if(Ec.has(o)&&!(s!=null&&s.has(o)))t="posix",n=o;else return Hr(n,{negate:e,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:u,unicodePropertyMap:s})}return t==="posix"?Uw(n,{negate:e}):Sa(t,{negate:e})}function Rw(t,e,n){const{tokens:r,capturingGroups:i,namedGroupsByName:u,skipLookbehindValidation:s,walk:o}=e,l=qw(t),a=l.type==="AbsenceFunction",c=ch(l),f=c&&l.negate;if(l.type==="CapturingGroup"&&(i.push(l),l.name&&rw(u,l.name,[]).push(l)),a&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=dh(r[e.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(Or()),e.nextIndex++;else{const h=l.body.at(-1),p=o(h,{...n,isInAbsenceFunction:n.isInAbsenceFunction||a,isInLookbehind:n.isInLookbehind||c,isInNegLookbehind:n.isInNegLookbehind||f});if(h.body.push(p),(c||n.isInLookbehind)&&!s){const m="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(ah(p)||p.type==="CapturingGroup")throw new Error(m)}else if(ah(p)||ch(p)&&p.negate)throw new Error(m)}}d=dh(r[e.nextIndex])}return e.nextIndex++,l}function Iw({kind:t,min:e,max:n},r){const i=r.parent,u=i.body.at(-1);if(!u||!_w(u))throw new Error("Quantifier requires a repeatable token");const s=pm(t,e,n,u);return i.body.pop(),s}function Pw({raw:t},e){const{capturingGroups:n,subroutines:r}=e;let i=t.slice(3,-1);const u=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(u){const o=+u.groups.num,l=n.length;if(e.hasNumberedRef=!0,i={"":o,"+":l+o,"-":l+1-o}[u.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const s=mm(i);return r.push(s),s}function Lw(t,e){return{type:"AbsenceFunction",kind:t,body:Su(e==null?void 0:e.body)}}function Or(t){return{type:"Alternative",body:gm(t==null?void 0:t.body)}}function wa(t,e){const n={type:"Assertion",kind:t};return(t==="word_boundary"||t==="text_segment_boundary")&&(n.negate=!!(e!=null&&e.negate)),n}function Ea(t,e){const n=!!(e!=null&&e.orphan);return{type:"Backreference",ref:t,...n&&{orphan:n}}}function hm(t,e){const n={name:void 0,isSubroutined:!1,...e};if(n.name!==void 0&&!jw(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:t,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Su(e==null?void 0:e.body)}}function _o(t,e){const n={useLastValid:!1,...e};if(t>1114111){const r=t.toString(16);if(n.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:t}}function es(t){const e={kind:"union",negate:!1,...t};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:gm(t==null?void 0:t.body)}}function Bw(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:t,max:e}}function Sa(t,e){const n=!!(e!=null&&e.negate),r={type:"CharacterSet",kind:t};return(t==="digit"||t==="hex"||t==="newline"||t==="space"||t==="word")&&(r.negate=n),(t==="text_segment"||t==="newline"&&!n)&&(r.variableLength=!0),r}function $w(t,e={}){if(t==="keep")return{type:"Directive",kind:t};if(t==="flags")return{type:"Directive",kind:t,flags:fi(e.flags)};throw new Error(`Unexpected directive kind "${t}"`)}function zw(t){return{type:"Flags",...t}}function Ot(t){const e=t==null?void 0:t.atomic,n=t==null?void 0:t.flags;if(e&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...n&&{flags:n},body:Su(t==null?void 0:t.body)}}function fr(t){const e={behind:!1,negate:!1,...t};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:Su(t==null?void 0:t.body)}}function Vw(t,e,n){return{type:"NamedCallout",kind:t,tag:e,arguments:n}}function Uw(t,e){const n=!!(e!=null&&e.negate);if(!Ec.has(t))throw new Error(`Invalid POSIX class "${t}"`);return{type:"CharacterSet",kind:"posix",value:t,negate:n}}function pm(t,e,n,r){if(e>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:t,min:e,max:n,body:r}}function Hw(t,e){return{type:"Regex",body:Su(e==null?void 0:e.body),flags:t}}function mm(t){return{type:"Subroutine",ref:t}}function Hr(t,e){var i;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e};let r=(i=n.unicodePropertyMap)==null?void 0:i.get(To(t));if(!r){if(n.normalizeUnknownPropertyNames)r=Ww(t);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Ne`Invalid Unicode property "\p{${t}}"`)}return{type:"CharacterSet",kind:"property",value:r??t,negate:n.negate}}function qw({flags:t,kind:e,name:n,negate:r,number:i}){switch(e){case"absence_repeater":return Lw("repeater");case"atomic":return Ot({atomic:!0});case"capturing":return hm(i,{name:n});case"group":return Ot({flags:t});case"lookahead":case"lookbehind":return fr({behind:e==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${e}"`)}}function Su(t){if(t===void 0)t=[Or()];else if(!Array.isArray(t)||!t.length||!t.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return t}function gm(t){if(t===void 0)t=[];else if(!Array.isArray(t)||!t.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return t}function ah(t){return t.type==="LookaroundAssertion"&&t.kind==="lookahead"}function ch(t){return t.type==="LookaroundAssertion"&&t.kind==="lookbehind"}function jw(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function Ww(t){return t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function To(t){return t.replace(/[- _]+/g,"").toLowerCase()}function fh(t,e){return fi(t,`${(e==null?void 0:e.type)==="Character"&&e.value===93?"Empty":"Unclosed"} character class`)}function dh(t){return fi(t,"Unclosed group")}function ji(t,e,n=null){function r(u,s){for(let o=0;o<u.length;o++){const l=i(u[o],s,o,u);o=Math.max(-1,o+l)}}function i(u,s=null,o=null,l=null){var x,w;let a=0,c=!1;const f={node:u,parent:s,key:o,container:l,root:t,remove(){Uu(l).splice(Math.max(0,Pr(o)+a),1),a--,c=!0},removeAllNextSiblings(){return Uu(l).splice(Pr(o)+1)},removeAllPrevSiblings(){const E=Pr(o)+a;return a-=E,Uu(l).splice(0,Math.max(0,E))},replaceWith(E,O={}){const F=!!O.traverse;l?l[Math.max(0,Pr(o)+a)]=E:fi(s,"Can't replace root node")[o]=E,F&&i(E,s,o,l),c=!0},replaceWithMultiple(E,O={}){const F=!!O.traverse;if(Uu(l).splice(Math.max(0,Pr(o)+a),1,...E),a+=E.length-1,F){let j=0;for(let I=0;I<E.length;I++)j+=i(E[I],s,Pr(o)+I+j,l)}c=!0},skip(){c=!0}},{type:d}=u,h=e["*"],p=e[d],m=typeof h=="function"?h:h==null?void 0:h.enter,b=typeof p=="function"?p:p==null?void 0:p.enter;if(m==null||m(f,n),b==null||b(f,n),!c)switch(d){case"AbsenceFunction":case"CapturingGroup":case"Group":r(u.body,u);break;case"Alternative":case"CharacterClass":r(u.body,u);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(u.min,u,"min"),i(u.max,u,"max");break;case"LookaroundAssertion":r(u.body,u);break;case"Quantifier":i(u.body,u,"body");break;case"Regex":r(u.body,u),i(u.flags,u,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return(x=p==null?void 0:p.exit)==null||x.call(p,f,n),(w=h==null?void 0:h.exit)==null||w.call(h,f,n),a}return i(t),t}function Uu(t){if(!Array.isArray(t))throw new Error("Container expected");return t}function Pr(t){if(typeof t!="number")throw new Error("Numeric key expected");return t}const Gw=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Kw(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function Jw(t,e,n,r){return t.slice(0,e)+r+t.slice(e+n.length)}const wt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function kc(t,e,n,r){const i=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),u=[!1];let s=0,o="";for(const l of t.matchAll(i)){const{0:a,groups:{$skip:c}}=l;if(!c&&(!r||r===wt.DEFAULT==!s)){n instanceof Function?o+=n(l,{context:s?wt.CHAR_CLASS:wt.DEFAULT,negated:u[u.length-1]}):o+=n;continue}a[0]==="["?(s++,u.push(a[1]==="^")):a==="]"&&s&&(s--,u.pop()),o+=a}return o}function bm(t,e,n,r){kc(t,e,n,r)}function Zw(t,e,n=0,r){if(!new RegExp(e,"su").test(t))return null;const i=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=n;let u=0,s;for(;s=i.exec(t);){const{0:o,groups:{$skip:l}}=s;if(!l&&(!r||r===wt.DEFAULT==!u))return s;o==="["?u++:o==="]"&&u&&u--,i.lastIndex==s.index&&i.lastIndex++}return null}function Hu(t,e,n){return!!Zw(t,e,0,n)}function Xw(t,e){const n=/\\?./gsu;n.lastIndex=e;let r=t.length,i=0,u=1,s;for(;s=n.exec(t);){const[o]=s;if(o==="[")i++;else if(i)o==="]"&&i--;else if(o==="(")u++;else if(o===")"&&(u--,!u)){r=s.index;break}}return t.slice(e,r)}const hh=new RegExp(String.raw`(?<noncapturingStart>${Gw})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Yw(t,e){const n=(e==null?void 0:e.hiddenCaptures)??[];let r=(e==null?void 0:e.captureTransfers)??new Map;if(!/\(\?>/.test(t))return{pattern:t,captureTransfers:r,hiddenCaptures:n};const i="(?>",u="(?:(?=(",s=[0],o=[];let l=0,a=0,c=NaN,f;do{f=!1;let d=0,h=0,p=!1,m;for(hh.lastIndex=Number.isNaN(c)?0:c+u.length;m=hh.exec(t);){const{0:b,index:x,groups:{capturingStart:w,noncapturingStart:E}}=m;if(b==="[")d++;else if(d)b==="]"&&d--;else if(b===i&&!p)c=x,p=!0;else if(p&&E)h++;else if(w)p?h++:(l++,s.push(l+a));else if(b===")"&&p){if(!h){a++;const O=l+a;if(t=`${t.slice(0,c)}${u}${t.slice(c+i.length,x)}))<$$${O}>)${t.slice(x+1)}`,f=!0,o.push(O),Kw(n,O),r.size){const F=new Map;r.forEach((j,I)=>{F.set(I>=O?I+1:I,j.map(U=>U>=O?U+1:U))}),r=F}break}h--}}}while(f);return n.push(...o),t=kc(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:h,wrappedBackrefNum:p}})=>{if(h){const m=+h;if(m>s.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${s[m]}`}return`\\${p}`},wt.DEFAULT),{pattern:t,captureTransfers:r,hiddenCaptures:n}}const ym=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,kl=new RegExp(String.raw`
72
73
  \\(?: \d+
73
74
  | c[A-Za-z]
74
75
  | [gk]<[^>]+>
@@ -81,9 +82,9 @@ var im=Object.defineProperty;var um=Object.getPrototypeOf;var sm=Reflect.get;var
81
82
  | [A-Za-z\-]+:
82
83
  | \(DEFINE\)
83
84
  ))?
84
- | (?<qBase>${q1})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
85
+ | (?<qBase>${ym})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
85
86
  | \\?.
86
- `.replace(/\s+/g,""),"gsu");function MC(t){if(!new RegExp(`${q1}\\+`).test(t))return{pattern:t};const e=[];let n=null,r=null,i="",u=0,s;for(ml.lastIndex=0;s=ml.exec(t);){const{0:o,index:l,groups:{qBase:a,qMod:c,invalidQ:f}}=s;if(o==="[")u||(r=l),u++;else if(o==="]")u?u--:r=null;else if(!u)if(c==="+"&&i&&!i.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${o}"`);let d=-1;if(/^\{\d+\}$/.test(a))t=TC(t,l+a.length,c,"");else{if(i===")"||i==="]"){const h=i===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,h)}(?>${t.slice(h,l)}${a})${t.slice(l+o.length)}`}else t=`${t.slice(0,l-i.length)}(?>${i}${a})${t.slice(l+o.length)}`;d+=4}ml.lastIndex+=d}else o[0]==="("?e.push(l):o===")"&&(n=e.length?e.pop():null);i=o}return{pattern:t}}const bt=String.raw,FC=bt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,pa=bt`\(\?R=(?<rDepth>[^\)]+)\)|${FC}`,wo=bt`\(\?<(?![=!])(?<captureName>[^>]+)>`,j1=bt`${wo}|(?<unnamed>\()(?!\?)`,ir=new RegExp(bt`${wo}|${pa}|\(\?|\\?.`,"gsu"),gl="Cannot use multiple overlapping recursions";function IC(t,e){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...e};let i=(e==null?void 0:e.captureTransfers)??new Map;if(!new RegExp(pa,"su").test(t))return{pattern:t,captureTransfers:i,hiddenCaptures:n};if(r==="plugin"&&Bu(t,bt`\(\?\(DEFINE\)`,xt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const u=[],s=Bu(t,bt`\\[1-9]`,xt.DEFAULT),o=new Map,l=[];let a=!1,c=0,f=0,d;for(ir.lastIndex=0;d=ir.exec(t);){const{0:h,groups:{captureName:p,rDepth:m,gRNameOrNum:b,gRDepth:x}}=d;if(h==="[")c++;else if(c)h==="]"&&c--;else if(m){if(Jd(m),a)throw new Error(gl);if(s)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const w=t.slice(0,d.index),E=t.slice(ir.lastIndex);if(Bu(E,pa,xt.DEFAULT))throw new Error(gl);const N=+m-1;t=Zd(w,E,N,!1,n,u,f),i=Yd(i,w,N,u.length,0,f);break}else if(b){Jd(x);let w=!1;for(const L of l)if(L.name===b||L.num===+b){if(w=!0,L.hasRecursedWithin)throw new Error(gl);break}if(!w)throw new Error(bt`Recursive \g cannot be used outside the referenced group "${r==="external"?b:bt`\g<${b}&R=${x}>`}"`);const E=o.get(b),N=OC(t,E);if(s&&Bu(N,bt`${wo}|\((?!\?)`,xt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const F=t.slice(E,d.index),j=N.slice(F.length+h.length),R=u.length,U=+x-1,P=Zd(F,j,U,!0,n,u,f);i=Yd(i,F,U,u.length-R,R,f);const J=t.slice(0,E),te=t.slice(E+N.length);t=`${J}${P}${te}`,ir.lastIndex+=P.length-h.length-F.length-j.length,l.forEach(L=>L.hasRecursedWithin=!0),a=!0}else if(p)f++,o.set(String(f),ir.lastIndex),o.set(p,ir.lastIndex),l.push({num:f,name:p});else if(h[0]==="("){const w=h==="(";w&&(f++,o.set(String(f),ir.lastIndex)),l.push(w?{num:f}:{})}else h===")"&&l.pop()}return n.push(...u),{pattern:t,captureTransfers:i,hiddenCaptures:n}}function Jd(t){const e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function Zd(t,e,n,r,i,u,s){const o=new Set;r&&H1(t+e,wo,({groups:{captureName:a}})=>{o.add(a)},xt.DEFAULT);const l=[n,r?o:null,i,u,s];return`${t}${Xd(`(?:${t}`,"forward",...l)}(?:)${Xd(`${e})`,"backward",...l)}${e}`}function Xd(t,e,n,r,i,u,s){const l=c=>e==="forward"?c+2:n-c+2-1;let a="";for(let c=0;c<n;c++){const f=l(c);a+=dc(t,bt`${j1}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:p,backref:m}})=>{if(m&&r&&!r.has(m))return d;const b=`_$${f}`;if(p||h){const x=s+u.length+1;return u.push(x),RC(i,x),p?d:`(?<${h}${b}>`}return bt`\k<${m}${b}>`},xt.DEFAULT)}return a}function RC(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function Yd(t,e,n,r,i,u){if(t.size&&r){let s=0;H1(e,j1,()=>s++,xt.DEFAULT);const o=u-s+i,l=new Map;return t.forEach((a,c)=>{const f=(r-s*n)/n,d=s*n,h=c>o+s?c+r:c,p=[];for(const m of a)if(m<=o)p.push(m);else if(m>o+s+f)p.push(m+r);else if(m<=o+s)for(let b=0;b<=n;b++)p.push(m+s*b);else for(let b=0;b<=n;b++)p.push(m+d+f*b);l.set(h,p)}),l}return t}var Se=String.fromCodePoint,K=String.raw,Nt={},Eo=globalThis.RegExp;Nt.flagGroups=(()=>{try{new Eo("(?i:)")}catch{return!1}return!0})();Nt.unicodeSets=(()=>{try{new Eo("[[]]","v")}catch{return!1}return!0})();Nt.bugFlagVLiteralHyphenIsRange=Nt.unicodeSets?(()=>{try{new Eo(K`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Nt.bugNestedClassIgnoresNegation=Nt.unicodeSets&&new Eo("[[^a]]","v").test("a");function Gs(t,{enable:e,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(e!=null&&e.dotAll||t.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(e!=null&&e.ignoreCase||t.ignoreCase)}}function uu(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}function ma(t,e){return Qd[t]>=Qd[e]}function PC(t,e){if(t==null)throw new Error(e??"Value expected");return t}var Qd={ES2025:2025,ES2024:2024,ES2018:2018},LC={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function W1(t={}){if({}.toString.call(t)!=="[object Object]")throw new Error("Unexpected options");if(t.target!==void 0&&!LC[t.target])throw new Error(`Unexpected target "${t.target}"`);const e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t.rules}};return e.target==="auto"&&(e.target=Nt.flagGroups?"ES2025":Nt.unicodeSets?"ES2024":"ES2018"),e}var BC="[ -\r ]",zC=new Set([Se(304),Se(305)]),un=K`[\p{L}\p{M}\p{N}\p{Pc}]`;function G1(t){if(zC.has(t))return[t];const e=new Set,n=t.toLowerCase(),r=n.toUpperCase(),i=UC.get(n),u=$C.get(n),s=VC.get(n);return[...r].length===1&&e.add(r),s&&e.add(s),i&&e.add(i),e.add(n),u&&e.add(u),[...e]}var hc=new Map(`C Other
87
+ `.replace(/\s+/g,""),"gsu");function Qw(t){if(!new RegExp(`${ym}\\+`).test(t))return{pattern:t};const e=[];let n=null,r=null,i="",u=0,s;for(kl.lastIndex=0;s=kl.exec(t);){const{0:o,index:l,groups:{qBase:a,qMod:c,invalidQ:f}}=s;if(o==="[")u||(r=l),u++;else if(o==="]")u?u--:r=null;else if(!u)if(c==="+"&&i&&!i.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${o}"`);let d=-1;if(/^\{\d+\}$/.test(a))t=Jw(t,l+a.length,c,"");else{if(i===")"||i==="]"){const h=i===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,h)}(?>${t.slice(h,l)}${a})${t.slice(l+o.length)}`}else t=`${t.slice(0,l-i.length)}(?>${i}${a})${t.slice(l+o.length)}`;d+=4}kl.lastIndex+=d}else o[0]==="("?e.push(l):o===")"&&(n=e.length?e.pop():null);i=o}return{pattern:t}}const xt=String.raw,e8=xt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,ka=xt`\(\?R=(?<rDepth>[^\)]+)\)|${e8}`,Oo=xt`\(\?<(?![=!])(?<captureName>[^>]+)>`,xm=xt`${Oo}|(?<unnamed>\()(?!\?)`,or=new RegExp(xt`${Oo}|${ka}|\(\?|\\?.`,"gsu"),Dl="Cannot use multiple overlapping recursions";function t8(t,e){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...e};let i=(e==null?void 0:e.captureTransfers)??new Map;if(!new RegExp(ka,"su").test(t))return{pattern:t,captureTransfers:i,hiddenCaptures:n};if(r==="plugin"&&Hu(t,xt`\(\?\(DEFINE\)`,wt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const u=[],s=Hu(t,xt`\\[1-9]`,wt.DEFAULT),o=new Map,l=[];let a=!1,c=0,f=0,d;for(or.lastIndex=0;d=or.exec(t);){const{0:h,groups:{captureName:p,rDepth:m,gRNameOrNum:b,gRDepth:x}}=d;if(h==="[")c++;else if(c)h==="]"&&c--;else if(m){if(ph(m),a)throw new Error(Dl);if(s)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const w=t.slice(0,d.index),E=t.slice(or.lastIndex);if(Hu(E,ka,wt.DEFAULT))throw new Error(Dl);const O=+m-1;t=mh(w,E,O,!1,n,u,f),i=bh(i,w,O,u.length,0,f);break}else if(b){ph(x);let w=!1;for(const L of l)if(L.name===b||L.num===+b){if(w=!0,L.hasRecursedWithin)throw new Error(Dl);break}if(!w)throw new Error(xt`Recursive \g cannot be used outside the referenced group "${r==="external"?b:xt`\g<${b}&R=${x}>`}"`);const E=o.get(b),O=Xw(t,E);if(s&&Hu(O,xt`${Oo}|\((?!\?)`,wt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const F=t.slice(E,d.index),j=O.slice(F.length+h.length),I=u.length,U=+x-1,P=mh(F,j,U,!0,n,u,f);i=bh(i,F,U,u.length-I,I,f);const J=t.slice(0,E),te=t.slice(E+O.length);t=`${J}${P}${te}`,or.lastIndex+=P.length-h.length-F.length-j.length,l.forEach(L=>L.hasRecursedWithin=!0),a=!0}else if(p)f++,o.set(String(f),or.lastIndex),o.set(p,or.lastIndex),l.push({num:f,name:p});else if(h[0]==="("){const w=h==="(";w&&(f++,o.set(String(f),or.lastIndex)),l.push(w?{num:f}:{})}else h===")"&&l.pop()}return n.push(...u),{pattern:t,captureTransfers:i,hiddenCaptures:n}}function ph(t){const e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function mh(t,e,n,r,i,u,s){const o=new Set;r&&bm(t+e,Oo,({groups:{captureName:a}})=>{o.add(a)},wt.DEFAULT);const l=[n,r?o:null,i,u,s];return`${t}${gh(`(?:${t}`,"forward",...l)}(?:)${gh(`${e})`,"backward",...l)}${e}`}function gh(t,e,n,r,i,u,s){const l=c=>e==="forward"?c+2:n-c+2-1;let a="";for(let c=0;c<n;c++){const f=l(c);a+=kc(t,xt`${xm}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:p,backref:m}})=>{if(m&&r&&!r.has(m))return d;const b=`_$${f}`;if(p||h){const x=s+u.length+1;return u.push(x),n8(i,x),p?d:`(?<${h}${b}>`}return xt`\k<${m}${b}>`},wt.DEFAULT)}return a}function n8(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function bh(t,e,n,r,i,u){if(t.size&&r){let s=0;bm(e,xm,()=>s++,wt.DEFAULT);const o=u-s+i,l=new Map;return t.forEach((a,c)=>{const f=(r-s*n)/n,d=s*n,h=c>o+s?c+r:c,p=[];for(const m of a)if(m<=o)p.push(m);else if(m>o+s+f)p.push(m+r);else if(m<=o+s)for(let b=0;b<=n;b++)p.push(m+s*b);else for(let b=0;b<=n;b++)p.push(m+d+f*b);l.set(h,p)}),l}return t}var Se=String.fromCodePoint,K=String.raw,vt={},No=globalThis.RegExp;vt.flagGroups=(()=>{try{new No("(?i:)")}catch{return!1}return!0})();vt.unicodeSets=(()=>{try{new No("[[]]","v")}catch{return!1}return!0})();vt.bugFlagVLiteralHyphenIsRange=vt.unicodeSets?(()=>{try{new No(K`[\d\-a]`,"v")}catch{return!0}return!1})():!1;vt.bugNestedClassIgnoresNegation=vt.unicodeSets&&new No("[[^a]]","v").test("a");function eo(t,{enable:e,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(e!=null&&e.dotAll||t.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(e!=null&&e.ignoreCase||t.ignoreCase)}}function cu(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}function Da(t,e){return yh[t]>=yh[e]}function r8(t,e){if(t==null)throw new Error(e??"Value expected");return t}var yh={ES2025:2025,ES2024:2024,ES2018:2018},i8={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Cm(t={}){if({}.toString.call(t)!=="[object Object]")throw new Error("Unexpected options");if(t.target!==void 0&&!i8[t.target])throw new Error(`Unexpected target "${t.target}"`);const e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t.rules}};return e.target==="auto"&&(e.target=vt.flagGroups?"ES2025":vt.unicodeSets?"ES2024":"ES2018"),e}var u8="[ -\r ]",s8=new Set([Se(304),Se(305)]),on=K`[\p{L}\p{M}\p{N}\p{Pc}]`;function wm(t){if(s8.has(t))return[t];const e=new Set,n=t.toLowerCase(),r=n.toUpperCase(),i=a8.get(n),u=o8.get(n),s=l8.get(n);return[...r].length===1&&e.add(r),s&&e.add(s),i&&e.add(i),e.add(n),u&&e.add(u),[...e]}var Dc=new Map(`C Other
87
88
  Cc Control cntrl
88
89
  Cf Format
89
90
  Cn Unassigned
@@ -173,7 +174,7 @@ Uppercase Upper
173
174
  Variation_Selector VS
174
175
  White_Space space
175
176
  XID_Continue XIDC
176
- XID_Start XIDS`.split(/\s/).map(t=>[Co(t),t])),$C=new Map([["s",Se(383)],[Se(383),"s"]]),VC=new Map([[Se(223),Se(7838)],[Se(107),Se(8490)],[Se(229),Se(8491)],[Se(969),Se(8486)]]),UC=new Map([Dn(453),Dn(456),Dn(459),Dn(498),...bl(8072,8079),...bl(8088,8095),...bl(8104,8111),Dn(8124),Dn(8140),Dn(8188)]),HC=new Map([["alnum",K`[\p{Alpha}\p{Nd}]`],["alpha",K`\p{Alpha}`],["ascii",K`\p{ASCII}`],["blank",K`[\p{Zs}\t]`],["cntrl",K`\p{Cc}`],["digit",K`\p{Nd}`],["graph",K`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",K`\p{Lower}`],["print",K`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",K`[\p{P}\p{S}]`],["space",K`\p{space}`],["upper",K`\p{Upper}`],["word",K`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",K`\p{AHex}`]]);function qC(t,e){const n=[];for(let r=t;r<=e;r++)n.push(r);return n}function Dn(t){const e=Se(t);return[e.toLowerCase(),e]}function bl(t,e){return qC(t,e).map(n=>Dn(n))}var K1=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function jC(t,e){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};J1(t);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ma(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};$i(t,WC,r);const i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},u={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};$i(t,GC,u);const s={groupsByName:u.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:u.reffedNodesByReferencer};return $i(t,KC,s),t._originMap=u.groupOriginByCopy,t._strategy=r.strategy,t}var WC={AbsenceFunction({node:t,parent:e,replaceWith:n}){const{body:r,kind:i}=t;if(i==="repeater"){const u=_t();u.body[0].body.push(lr({negate:!0,body:r}),Br("Any"));const s=_t();s.body[0].body.push($1("greedy",0,1/0,u)),n(xe(s,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:n},{flagDirectivesByAlt:r}){const i=t.body.filter(u=>u.kind==="flags");for(let u=n+1;u<e.body.length;u++){const s=e.body[u];uu(r,s,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){var n;if((n=e.get(t))!=null&&n.length){const r=X1(e.get(t));if(r){const i=_t({flags:r});i.body[0].body=t.body,t.body=[xe(i,t)]}}}},Assertion({node:t,parent:e,key:n,container:r,root:i,remove:u,replaceWith:s},o){const{kind:l,negate:a}=t,{asciiWordBoundaries:c,avoidSubclass:f,supportedGNodes:d,wordIsAscii:h}=o;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${a?"Y":"y"}"`);if(l==="line_end")s(xe(lr({body:[Ar({body:[fa("string_end")]}),Ar({body:[xo(10)]})]}),e));else if(l==="line_start")s(xe(sn(K`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(l==="search_start")if(d.has(t))i.flags.sticky=!0,u();else{const p=r[n-1];if(p&&e8(p))s(xe(lr({negate:!0}),e));else{if(f)throw new Error(K`Uses "\G" in a way that requires a subclass`);s(An(fa("string_start"),e)),o.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")s(xe(sn(K`(?=\n?\z)`),e));else if(l==="word_boundary"){if(!h&&!c){const p=`(?:(?<=${un})(?!${un})|(?<!${un})(?=${un}))`,m=`(?:(?<=${un})(?=${un})|(?<!${un})(?!${un}))`;s(xe(sn(a?m:p),e))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!xl(n)&&(n=yl(n,e),t.ref=n)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:n}){let{name:r}=t;r&&!xl(r)&&(r=yl(r,e),t.name=r),n.set(t.number,t),r&&n.set(r,t)},CharacterClassRange({node:t,parent:e,replaceWith:n}){if(e.kind==="intersection"){const r=Ju({body:[t]});n(xe(r,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:u,spaceIsAscii:s,wordIsAscii:o}){const{kind:l,negate:a,value:c}=t;if(u&&(l==="digit"||c==="digit")){n(An(ha("digit",{negate:a}),e));return}if(s&&(l==="space"||c==="space")){n(xe(Cl(sn(BC),a),e));return}if(o&&(l==="word"||c==="word")){n(An(ha("word",{negate:a}),e));return}if(l==="any")n(An(Br("Any"),e));else if(l==="digit")n(An(Br("Nd",{negate:a}),e));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(K`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=K`\p{RI}{2}|${f}(?:\u200D${f})*`;n(xe(sn(K`(?>\r\n|${i?K`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(l==="hex")n(An(Br("AHex",{negate:a}),e));else if(l==="newline")n(xe(sn(a?`[^
177
+ XID_Start XIDS`.split(/\s/).map(t=>[To(t),t])),o8=new Map([["s",Se(383)],[Se(383),"s"]]),l8=new Map([[Se(223),Se(7838)],[Se(107),Se(8490)],[Se(229),Se(8491)],[Se(969),Se(8486)]]),a8=new Map([_n(453),_n(456),_n(459),_n(498),...Al(8072,8079),...Al(8088,8095),...Al(8104,8111),_n(8124),_n(8140),_n(8188)]),c8=new Map([["alnum",K`[\p{Alpha}\p{Nd}]`],["alpha",K`\p{Alpha}`],["ascii",K`\p{ASCII}`],["blank",K`[\p{Zs}\t]`],["cntrl",K`\p{Cc}`],["digit",K`\p{Nd}`],["graph",K`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",K`\p{Lower}`],["print",K`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",K`[\p{P}\p{S}]`],["space",K`\p{space}`],["upper",K`\p{Upper}`],["word",K`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",K`\p{AHex}`]]);function f8(t,e){const n=[];for(let r=t;r<=e;r++)n.push(r);return n}function _n(t){const e=Se(t);return[e.toLowerCase(),e]}function Al(t,e){return f8(t,e).map(n=>_n(n))}var Em=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function d8(t,e){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};Sm(t);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Da(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};ji(t,h8,r);const i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},u={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};ji(t,p8,u);const s={groupsByName:u.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:u.reffedNodesByReferencer};return ji(t,m8,s),t._originMap=u.groupOriginByCopy,t._strategy=r.strategy,t}var h8={AbsenceFunction({node:t,parent:e,replaceWith:n}){const{body:r,kind:i}=t;if(i==="repeater"){const u=Ot();u.body[0].body.push(fr({negate:!0,body:r}),Hr("Any"));const s=Ot();s.body[0].body.push(pm("greedy",0,1/0,u)),n(xe(s,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:n},{flagDirectivesByAlt:r}){const i=t.body.filter(u=>u.kind==="flags");for(let u=n+1;u<e.body.length;u++){const s=e.body[u];cu(r,s,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){var n;if((n=e.get(t))!=null&&n.length){const r=Dm(e.get(t));if(r){const i=Ot({flags:r});i.body[0].body=t.body,t.body=[xe(i,t)]}}}},Assertion({node:t,parent:e,key:n,container:r,root:i,remove:u,replaceWith:s},o){const{kind:l,negate:a}=t,{asciiWordBoundaries:c,avoidSubclass:f,supportedGNodes:d,wordIsAscii:h}=o;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${a?"Y":"y"}"`);if(l==="line_end")s(xe(fr({body:[Or({body:[wa("string_end")]}),Or({body:[_o(10)]})]}),e));else if(l==="line_start")s(xe(ln(K`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(l==="search_start")if(d.has(t))i.flags.sticky=!0,u();else{const p=r[n-1];if(p&&w8(p))s(xe(fr({negate:!0}),e));else{if(f)throw new Error(K`Uses "\G" in a way that requires a subclass`);s(Tn(wa("string_start"),e)),o.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")s(xe(ln(K`(?=\n?\z)`),e));else if(l==="word_boundary"){if(!h&&!c){const p=`(?:(?<=${on})(?!${on})|(?<!${on})(?=${on}))`,m=`(?:(?<=${on})(?=${on})|(?<!${on})(?!${on}))`;s(xe(ln(a?m:p),e))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!Tl(n)&&(n=_l(n,e),t.ref=n)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:n}){let{name:r}=t;r&&!Tl(r)&&(r=_l(r,e),t.name=r),n.set(t.number,t),r&&n.set(r,t)},CharacterClassRange({node:t,parent:e,replaceWith:n}){if(e.kind==="intersection"){const r=es({body:[t]});n(xe(r,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:u,spaceIsAscii:s,wordIsAscii:o}){const{kind:l,negate:a,value:c}=t;if(u&&(l==="digit"||c==="digit")){n(Tn(Sa("digit",{negate:a}),e));return}if(s&&(l==="space"||c==="space")){n(xe(Ol(ln(u8),a),e));return}if(o&&(l==="word"||c==="word")){n(Tn(Sa("word",{negate:a}),e));return}if(l==="any")n(Tn(Hr("Any"),e));else if(l==="digit")n(Tn(Hr("Nd",{negate:a}),e));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(K`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=K`\p{RI}{2}|${f}(?:\u200D${f})*`;n(xe(ln(K`(?>\r\n|${i?K`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(l==="hex")n(Tn(Hr("AHex",{negate:a}),e));else if(l==="newline")n(xe(ln(a?`[^
177
178
  ]`:`(?>\r
178
179
  ?|[
179
- \v\f…\u2028\u2029])`),e));else if(l==="posix")if(!i&&(c==="graph"||c==="print")){if(r==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[c];a&&(f=`\0-${Se(f.codePointAt(0)-1)}${Se(f.codePointAt(2)+1)}-􏿿`),n(xe(sn(`[${f}]`),e))}else n(xe(Cl(sn(HC.get(c)),a),e));else if(l==="property")hc.has(Co(c))||(t.key="sc");else if(l==="space")n(An(Br("space",{negate:a}),e));else if(l==="word")n(xe(Cl(sn(un),a),e));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:t,parent:e,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:u,removeAllNextSiblings:s}){const{kind:o,flags:l}=t;if(o==="flags")if(!l.enable&&!l.disable)r();else{const a=_t({flags:l});a.body[0].body=s(),i(xe(a,e),{traverse:!0})}else if(o==="keep"){const a=n.body[0],f=n.body.length===1&&L1(a,{type:"Group"})&&a.body[0].body.length===1?a.body[0]:n;if(e.parent!==f||f.body.length>1)throw new Error(K`Uses "\K" in a way that's unsupported`);const d=lr({behind:!0});d.body[0].body=u(),i(xe(d,e))}else throw new Error(`Unexpected directive kind "${o}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete t[n]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:n}=t.flags;e!=null&&e.extended&&delete e.extended,n!=null&&n.extended&&delete n.extended,e!=null&&e.dotAll&&(n!=null&&n.dotAll)&&delete e.dotAll,e!=null&&e.ignoreCase&&(n!=null&&n.ignoreCase)&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,n&&!Object.keys(n).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){const{kind:n}=t;n==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:n}){const{kind:r}=t;if(r==="fail")n(xe(lr({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){const e=_t();e.body[0].body.push(t.body),t.body=xe(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){const n=[];let r=!1,i=!1;for(const u of t.body)if(u.body.length===1&&u.body[0].kind==="search_start")u.body.pop();else{const s=Q1(u.body);s?(r=!0,Array.isArray(s)?n.push(...s):n.push(s)):i=!0}r&&!i&&n.forEach(u=>e.add(u))},exit(t,{accuracy:e,passedLookbehind:n,strategy:r}){if(e==="strict"&&n&&r)throw new Error(K`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!xl(n)&&(n=yl(n,e),t.ref=n)}},GC={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:n}){const{orphan:r,ref:i}=t;r||n.set(t,[...e.get(i).map(({node:u})=>u)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:u,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:l}){const a=i.get(t);if(a&&o.has(t.number)){const f=An(eh(t.number),e);l.set(f,o.get(t.number)),n(f);return}o.set(t.number,t),s.set(t.number,[]),t.name&&uu(s,t.name,[]);const c=s.get(t.name??t.number);for(let f=0;f<c.length;f++){const d=c[f];if(a===d.node||a&&a===d.origin||t===d.origin){c.splice(f,1);break}}if(s.get(t.number).push({node:t,origin:a}),t.name&&s.get(t.name).push({node:t,origin:a}),t.name){const f=uu(u,t.name,new Map);let d=!1;if(a)d=!0;else for(const h of f.values())if(!h.hasDuplicateNameToRemove){d=!0;break}u.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:d})}},exit({node:t},{openRefs:e}){e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=Gs(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:n},r){const{isRecursive:i,ref:u}=t;if(i){let c=e;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===u||c.number===u)););r.reffedNodesByReferencer.set(t,c);return}const s=r.subroutineRefMap.get(u),o=u===0,l=o?eh(0):Z1(s,r.groupOriginByCopy,null);let a=l;if(!o){const c=X1(XC(s,d=>d.type==="Group"&&!!d.flags)),f=c?Gs(r.globalFlags,c):r.globalFlags;JC(f,r.currentFlags)||(a=_t({flags:YC(f)}),a.body[0].body.push(l))}n(xe(a,e),{traverse:!o})}},KC={Backreference({node:t,parent:e,replaceWith:n},r){if(t.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,t.ref);return}const u=r.reffedNodesByReferencer.get(t).filter(s=>ZC(s,t));if(!u.length)n(xe(lr({negate:!0}),e));else if(u.length>1){const s=_t({atomic:!0,body:u.reverse().map(o=>Ar({body:[da(o.number)]}))});n(xe(s,e))}else t.ref=u[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){const n=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let r=0;r<n;r++){const i=z1();t.body.at(-1).body.push(i)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function J1(t){$i(t,{"*"({node:e,parent:n}){e.parent=n}})}function JC(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function ZC(t,e){let n=e;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===t)return!1;const r=Y1(n.parent);for(const i of r){if(i===n)break;if(i===t||em(i,t))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Z1(t,e,n,r){const i=Array.isArray(t)?[]:{};for(const[u,s]of Object.entries(t))u==="parent"?i.parent=Array.isArray(n)?r:n:s&&typeof s=="object"?i[u]=Z1(s,e,i,n):(u==="type"&&s==="CapturingGroup"&&e.set(i,e.get(t)??t),i[u]=s);return i}function eh(t){const e=V1(t);return e.isRecursive=!0,e}function XC(t,e){const n=[];for(;t=t.parent;)(!e||e(t))&&n.push(t);return n}function yl(t,e){if(e.has(t))return e.get(t);const n=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,n),n}function X1(t){const e=["dotAll","ignoreCase"],n={enable:{},disable:{}};return t.forEach(({flags:r})=>{e.forEach(i=>{var u,s;(u=r.enable)!=null&&u[i]&&(delete n.disable[i],n.enable[i]=!0),(s=r.disable)!=null&&s[i]&&(n.disable[i]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function YC({dotAll:t,ignoreCase:e}){const n={};return(t||e)&&(n.enable={},t&&(n.enable.dotAll=!0),e&&(n.enable.ignoreCase=!0)),(!t||!e)&&(n.disable={},!t&&(n.disable.dotAll=!0),!e&&(n.disable.ignoreCase=!0)),n}function Y1(t){if(!t)throw new Error("Node expected");const{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function Q1(t){const e=t.find(n=>n.kind==="search_start"||t8(n,{negate:!1})||!QC(n));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){const n=[];for(const r of e.body){const i=Q1(r.body);if(!i)return null;Array.isArray(i)?n.push(...i):n.push(i)}return n}return null}function em(t,e){const n=Y1(t)??[];for(const r of n)if(r===e||em(r,e))return!0;return!1}function QC({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function e8(t){const e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function t8(t,e){const n={negate:null,...e};return t.type==="LookaroundAssertion"&&(n.negate===null||t.negate===n.negate)&&t.body.length===1&&L1(t.body[0],{type:"Assertion",kind:"search_start"})}function xl(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function sn(t,e){const r=B1(t,{...e,unicodePropertyMap:hc}).body;return r.length>1||r[0].body.length>1?_t({body:r}):r[0].body[0]}function Cl(t,e){return t.negate=e,t}function An(t,e){return t.parent=e,t}function xe(t,e){return J1(t),t.parent=e,t}function n8(t,e){const n=W1(e),r=ma(n.target,"ES2024"),i=ma(n.target,"ES2025"),u=n.rules.recursionLimit;if(!Number.isInteger(u)||u<2||u>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!i){const h=[t.flags.ignoreCase];$i(t,r8,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(p){h.push(p)},setHasCasedChar(){h.at(-1)?s=!0:o=!0}})}const l={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||s)&&!o)};let a=t;const c={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:a,originMap:t._originMap,recursionLimit:u,useAppliedIgnoreCase:!!(!i&&s&&o),useFlagMods:i,useFlagV:r,verbose:n.verbose};function f(h){return c.lastNode=a,a=h,PC(i8[h.type],`Unexpected node type "${h.type}"`)(h,c,f)}const d={pattern:t.body.map(f).join("|"),flags:f(t.flags),options:{...t.options}};return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],c.captureMap.forEach((h,p)=>{h.hidden&&d._hiddenCaptures.push(p),h.transferTo&&uu(d._captureTransfers,h.transferTo,[]).push(p)}),d}var r8={"*":{enter({node:t},e){if(nh(t)){const n=e.getCurrentModI();e.pushModI(t.flags?Gs({ignoreCase:n},t.flags).ignoreCase:n)}},exit({node:t},e){nh(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){pc(Se(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},n){e(),tm(t,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&K1.has(t.value)&&e.setHasCasedChar()}},i8={Alternative({body:t},e,n){return t.map(n).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?K`\B`:K`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,n){const{body:r,name:i,number:u}=t,s={ignoreCase:e.currentFlags.ignoreCase},o=e.originMap.get(t);return o&&(s.hidden=!0,u>o.number&&(s.transferTo=o.number)),e.captureMap.set(u,s),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:t},e){const n=Se(t),r=Mr(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(r!==n)return r;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&pc(n)){const i=G1(n);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return n},CharacterClass(t,e,n){const{kind:r,negate:i,parent:u}=t;let{body:s}=t;if(r==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Nt.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&s.some(rh)&&(s=[xo(45),...s.filter(a=>!rh(a))]);const o=()=>`[${i?"^":""}${s.map(n).join(r==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||Nt.bugNestedClassIgnoresNegation)&&!i){const c=s.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(c.length){const f=_t(),d=f.body[0];return f.parent=u,d.parent=f,s=s.filter(h=>!c.includes(h)),t.body=s,s.length?(t.parent=d,d.body.push(t)):f.body.pop(),c.forEach(h=>{const p=Ar({body:[h]});h.parent=p,p.parent=f,f.body.push(p)}),n(f)}}e.inCharClass=!0;const a=o();return e.inCharClass=!1,a}const l=s[0];if(r==="union"&&!i&&l&&((!e.useFlagV||!e.verbose)&&u.kind==="union"&&!(Nt.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&u.kind==="intersection"&&s.length===1&&l.type!=="CharacterClassRange"))return s.map(n).join("");if(!e.useFlagV&&u.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(t,e){const n=t.min.value,r=t.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},u=Mr(n,i),s=Mr(r,i),o=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const l=tm(t);a8(l).forEach(c=>{o.add(Array.isArray(c)?`${Mr(c[0],i)}-${Mr(c[1],i)}`:Mr(c,i))})}return`${u}-${s}${[...o].join("")}`},CharacterSet({kind:t,negate:e,value:n,key:r},i){if(t==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":K`[^\n]`;if(t==="digit")return e?K`\D`:K`\d`;if(t==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&K1.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${e?K`\P`:K`\p`}{${r?`${r}=`:""}${n}}`}if(t==="word")return e?K`\W`:K`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:n,parent:r},i,u){const s=i.currentFlags;n&&(i.currentFlags=Gs(s,n));const o=e.map(u).join("|"),l=!i.verbose&&e.length===1&&r.type!=="Quantifier"&&!t&&(!i.useFlagMods||!n)?o:`(?${c8(t,n,i.useFlagMods)}${o})`;return i.currentFlags=s,l},LookaroundAssertion({body:t,kind:e,negate:n},r,i){return`(?${`${e==="lookahead"?"":"<"}${n?"!":"="}`}${t.map(i).join("|")})`},Quantifier(t,e,n){return n(t.body)+f8(t)},Subroutine({isRecursive:t,ref:e},n){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return e===0?`(?R=${r})`:K`\g<${e}&R=${r}>`}},u8=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),s8=new Set(["-","\\","]","^","["]),o8=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),th=new Map([[9,K`\t`],[10,K`\n`],[11,K`\v`],[12,K`\f`],[13,K`\r`],[8232,K`\u2028`],[8233,K`\u2029`],[65279,K`\uFEFF`]]),l8=new RegExp("^\\p{Cased}$","u");function pc(t){return l8.test(t)}function tm(t,e){const n=!!(e!=null&&e.firstOnly),r=t.min.value,i=t.max.value,u=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return u;for(let s=r;s<=i;s++){const o=Se(s);if(!pc(o))continue;const l=G1(o).filter(a=>{const c=a.codePointAt(0);return c<r||c>i});if(l.length&&(u.push(...l),n))break}return u}function Mr(t,{escDigit:e,inCharClass:n,useFlagV:r}){if(th.has(t))return th.get(t);if(t<32||t>126&&t<160||t>262143||e&&d8(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const i=n?r?o8:s8:u8,u=Se(t);return(i.has(u)?"\\":"")+u}function a8(t){const e=t.map(i=>i.codePointAt(0)).sort((i,u)=>i-u),n=[];let r=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?r??(r=e[i]):r===null?n.push(e[i]):(n.push([r,e[i]]),r=null);return n}function c8(t,e,n){if(t)return">";let r="";if(e&&n){const{enable:i,disable:u}=e;r=(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")+(u?"-":"")+(u!=null&&u.ignoreCase?"i":"")+(u!=null&&u.dotAll?"s":"")}return`${r}:`}function f8({kind:t,max:e,min:n}){let r;return!n&&e===1?r="?":!n&&e===1/0?r="*":n===1&&e===1/0?r="+":n===e?r=`{${n}}`:r=`{${n},${e===1/0?"":e}}`,r+{greedy:"",lazy:"?",possessive:"+"}[t]}function nh({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function d8(t){return t>47&&t<58}function rh({type:t,value:e}){return t==="Character"&&e===45}var Rn,fn,hr,Pn,pr,su,ga,qn,h8=(qn=class extends RegExp{constructor(n,r,i){var e=(...yw)=>(super(...yw),Qn(this,su),Qn(this,Rn,new Map),Qn(this,fn,null),Qn(this,hr),Qn(this,Pn,null),Qn(this,pr,null),wc(this,"rawOptions",{}),this);const u=!!(i!=null&&i.lazyCompile);if(n instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");const s=n;e(s,r),Dt(this,hr,s.source),s instanceof qn&&(Dt(this,Rn,Ge(s,Rn)),Dt(this,Pn,Ge(s,Pn)),Dt(this,pr,Ge(s,pr)),this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...i};e(u?"":n,r),Dt(this,hr,n),Dt(this,Rn,m8(s.hiddenCaptures,s.transfers)),Dt(this,pr,s.strategy),this.rawOptions=i??{}}u||Dt(this,fn,this)}get source(){return Ge(this,hr)||"(?:)"}exec(n){if(!Ge(this,fn)){const{lazyCompile:u,...s}=this.rawOptions;Dt(this,fn,new qn(Ge(this,hr),this.flags,s))}const r=this.global||this.sticky,i=this.lastIndex;if(Ge(this,pr)==="clip_search"&&r&&i){this.lastIndex=0;const u=Do(this,su,ga).call(this,n.slice(i));return u&&(p8(u,i,n,this.hasIndices),this.lastIndex+=i),u}return Do(this,su,ga).call(this,n)}},Rn=new WeakMap,fn=new WeakMap,hr=new WeakMap,Pn=new WeakMap,pr=new WeakMap,su=new WeakSet,ga=function(n){Ge(this,fn).lastIndex=this.lastIndex;const r=Ec(qn.prototype,this,"exec").call(Ge(this,fn),n);if(this.lastIndex=Ge(this,fn).lastIndex,!r||!Ge(this,Rn).size)return r;const i=[...r];r.length=1;let u;this.hasIndices&&(u=[...r.indices],r.indices.length=1);const s=[0];for(let o=1;o<i.length;o++){const{hidden:l,transferTo:a}=Ge(this,Rn).get(o)??{};if(l?s.push(null):(s.push(r.length),r.push(i[o]),this.hasIndices&&r.indices.push(u[o])),a&&i[o]!==void 0){const c=s[a];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(r[c]=i[o],this.hasIndices&&(r.indices[c]=u[o]),r.groups){Ge(this,Pn)||Dt(this,Pn,g8(this.source));const f=Ge(this,Pn).get(a);f&&(r.groups[f]=i[o],this.hasIndices&&(r.indices.groups[f]=u[o]))}}}return r},qn);function p8(t,e,n,r){if(t.index+=e,t.input=n,r){const i=t.indices;for(let s=0;s<i.length;s++){const o=i[s];o&&(i[s]=[o[0]+e,o[1]+e])}const u=i.groups;u&&Object.keys(u).forEach(s=>{const o=u[s];o&&(u[s]=[o[0]+e,o[1]+e])})}}function m8(t,e){const n=new Map;for(const r of t)n.set(r,{hidden:!0});for(const[r,i]of e)for(const u of i)uu(n,u,{}).transferTo=r;return n}function g8(t){const e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,i=0,u;for(;u=e.exec(t);){const{0:s,groups:{capture:o,name:l}}=u;s==="["?r++:r?s==="]"&&r--:o&&(i++,l&&n.set(i,l))}return n}function mw(t,e){const n=b8(t,e);return n.options?new h8(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function b8(t,e){const n=W1(e),r=B1(t,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:hc}),i=jC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),u=n8(i,n),s=IC(u.pattern,{captureTransfers:u._captureTransfers,hiddenCaptures:u._hiddenCaptures,mode:"external"}),o=MC(s.pattern),l=vC(o.pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),a={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${u.flags}${u.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const c=l.hiddenCaptures.sort((p,m)=>p-m),f=Array.from(l.captureTransfers),d=i._strategy,h=a.pattern.length>=n.lazyCompileLength;(c.length||f.length||d||h)&&(a.options={...c.length&&{hiddenCaptures:c},...f.length&&{transfers:f},...d&&{strategy:d},...h&&{lazyCompile:h}})}return a}export{fp as $,op as A,hu as B,po as C,xp as D,Ci as E,Mx as F,ne as G,ow as H,ri as I,j8 as J,T as K,kt as L,Zt as M,q as N,Zi as O,_0 as P,du as Q,Kt as R,Q as S,Fy as T,Hy as U,Cp as V,Y8 as W,J8 as X,Z8 as Y,By as Z,$y as _,C8 as a,R8 as a$,G8 as a0,K8 as a1,X8 as a2,qy as a3,uw as a4,Uy as a5,wt as a6,zy as a7,Vy as a8,Q8 as a9,pw as aA,mw as aB,_8 as aC,Ml as aD,M8 as aE,g0 as aF,Be as aG,$8 as aH,Fl as aI,ng as aJ,L8 as aK,wa as aL,O8 as aM,F8 as aN,I8 as aO,D8 as aP,Cm as aQ,lt as aR,N8 as aS,T8 as aT,B8 as aU,Ca as aV,S8 as aW,ff as aX,L2 as aY,Yg as aZ,A8 as a_,tw as aa,ew as ab,rw as ac,sw as ad,vi as ae,z as af,nw as ag,iw as ah,ke as ai,$e as aj,Wh as ak,k8 as al,Hm as am,z8 as an,w8 as ao,cw as ap,aw as aq,m1 as ar,lw as as,fw as at,De as au,yt as av,dw as aw,hw as ax,C6 as ay,x6 as az,Oo as b,Qg as b0,v8 as b1,B2 as b2,P8 as b3,a2 as c,fg as d,Gh as e,ve as f,b0 as g,c2 as h,Vu as i,U8 as j,sb as k,H8 as l,V8 as m,Oh as n,jh as o,rg as p,ib as q,_a as r,Um as s,E8 as t,_h as u,q8 as v,vo as w,lo as x,J2 as y,oo as z};
180
+ \v\f…\u2028\u2029])`),e));else if(l==="posix")if(!i&&(c==="graph"||c==="print")){if(r==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[c];a&&(f=`\0-${Se(f.codePointAt(0)-1)}${Se(f.codePointAt(2)+1)}-􏿿`),n(xe(ln(`[${f}]`),e))}else n(xe(Ol(ln(c8.get(c)),a),e));else if(l==="property")Dc.has(To(c))||(t.key="sc");else if(l==="space")n(Tn(Hr("space",{negate:a}),e));else if(l==="word")n(xe(Ol(ln(on),a),e));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:t,parent:e,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:u,removeAllNextSiblings:s}){const{kind:o,flags:l}=t;if(o==="flags")if(!l.enable&&!l.disable)r();else{const a=Ot({flags:l});a.body[0].body=s(),i(xe(a,e),{traverse:!0})}else if(o==="keep"){const a=n.body[0],f=n.body.length===1&&fm(a,{type:"Group"})&&a.body[0].body.length===1?a.body[0]:n;if(e.parent!==f||f.body.length>1)throw new Error(K`Uses "\K" in a way that's unsupported`);const d=fr({behind:!0});d.body[0].body=u(),i(xe(d,e))}else throw new Error(`Unexpected directive kind "${o}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete t[n]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:n}=t.flags;e!=null&&e.extended&&delete e.extended,n!=null&&n.extended&&delete n.extended,e!=null&&e.dotAll&&(n!=null&&n.dotAll)&&delete e.dotAll,e!=null&&e.ignoreCase&&(n!=null&&n.ignoreCase)&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,n&&!Object.keys(n).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){const{kind:n}=t;n==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:n}){const{kind:r}=t;if(r==="fail")n(xe(fr({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){const e=Ot();e.body[0].body.push(t.body),t.body=xe(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){const n=[];let r=!1,i=!1;for(const u of t.body)if(u.body.length===1&&u.body[0].kind==="search_start")u.body.pop();else{const s=_m(u.body);s?(r=!0,Array.isArray(s)?n.push(...s):n.push(s)):i=!0}r&&!i&&n.forEach(u=>e.add(u))},exit(t,{accuracy:e,passedLookbehind:n,strategy:r}){if(e==="strict"&&n&&r)throw new Error(K`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!Tl(n)&&(n=_l(n,e),t.ref=n)}},p8={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:n}){const{orphan:r,ref:i}=t;r||n.set(t,[...e.get(i).map(({node:u})=>u)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:u,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:l}){const a=i.get(t);if(a&&o.has(t.number)){const f=Tn(xh(t.number),e);l.set(f,o.get(t.number)),n(f);return}o.set(t.number,t),s.set(t.number,[]),t.name&&cu(s,t.name,[]);const c=s.get(t.name??t.number);for(let f=0;f<c.length;f++){const d=c[f];if(a===d.node||a&&a===d.origin||t===d.origin){c.splice(f,1);break}}if(s.get(t.number).push({node:t,origin:a}),t.name&&s.get(t.name).push({node:t,origin:a}),t.name){const f=cu(u,t.name,new Map);let d=!1;if(a)d=!0;else for(const h of f.values())if(!h.hasDuplicateNameToRemove){d=!0;break}u.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:d})}},exit({node:t},{openRefs:e}){e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=eo(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:n},r){const{isRecursive:i,ref:u}=t;if(i){let c=e;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===u||c.number===u)););r.reffedNodesByReferencer.set(t,c);return}const s=r.subroutineRefMap.get(u),o=u===0,l=o?xh(0):km(s,r.groupOriginByCopy,null);let a=l;if(!o){const c=Dm(y8(s,d=>d.type==="Group"&&!!d.flags)),f=c?eo(r.globalFlags,c):r.globalFlags;g8(f,r.currentFlags)||(a=Ot({flags:x8(f)}),a.body[0].body.push(l))}n(xe(a,e),{traverse:!o})}},m8={Backreference({node:t,parent:e,replaceWith:n},r){if(t.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,t.ref);return}const u=r.reffedNodesByReferencer.get(t).filter(s=>b8(s,t));if(!u.length)n(xe(fr({negate:!0}),e));else if(u.length>1){const s=Ot({atomic:!0,body:u.reverse().map(o=>Or({body:[Ea(o.number)]}))});n(xe(s,e))}else t.ref=u[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){const n=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let r=0;r<n;r++){const i=hm();t.body.at(-1).body.push(i)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function Sm(t){ji(t,{"*"({node:e,parent:n}){e.parent=n}})}function g8(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function b8(t,e){let n=e;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===t)return!1;const r=Am(n.parent);for(const i of r){if(i===n)break;if(i===t||Tm(i,t))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function km(t,e,n,r){const i=Array.isArray(t)?[]:{};for(const[u,s]of Object.entries(t))u==="parent"?i.parent=Array.isArray(n)?r:n:s&&typeof s=="object"?i[u]=km(s,e,i,n):(u==="type"&&s==="CapturingGroup"&&e.set(i,e.get(t)??t),i[u]=s);return i}function xh(t){const e=mm(t);return e.isRecursive=!0,e}function y8(t,e){const n=[];for(;t=t.parent;)(!e||e(t))&&n.push(t);return n}function _l(t,e){if(e.has(t))return e.get(t);const n=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,n),n}function Dm(t){const e=["dotAll","ignoreCase"],n={enable:{},disable:{}};return t.forEach(({flags:r})=>{e.forEach(i=>{var u,s;(u=r.enable)!=null&&u[i]&&(delete n.disable[i],n.enable[i]=!0),(s=r.disable)!=null&&s[i]&&(n.disable[i]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function x8({dotAll:t,ignoreCase:e}){const n={};return(t||e)&&(n.enable={},t&&(n.enable.dotAll=!0),e&&(n.enable.ignoreCase=!0)),(!t||!e)&&(n.disable={},!t&&(n.disable.dotAll=!0),!e&&(n.disable.ignoreCase=!0)),n}function Am(t){if(!t)throw new Error("Node expected");const{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function _m(t){const e=t.find(n=>n.kind==="search_start"||E8(n,{negate:!1})||!C8(n));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){const n=[];for(const r of e.body){const i=_m(r.body);if(!i)return null;Array.isArray(i)?n.push(...i):n.push(i)}return n}return null}function Tm(t,e){const n=Am(t)??[];for(const r of n)if(r===e||Tm(r,e))return!0;return!1}function C8({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function w8(t){const e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function E8(t,e){const n={negate:null,...e};return t.type==="LookaroundAssertion"&&(n.negate===null||t.negate===n.negate)&&t.body.length===1&&fm(t.body[0],{type:"Assertion",kind:"search_start"})}function Tl(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function ln(t,e){const r=dm(t,{...e,unicodePropertyMap:Dc}).body;return r.length>1||r[0].body.length>1?Ot({body:r}):r[0].body[0]}function Ol(t,e){return t.negate=e,t}function Tn(t,e){return t.parent=e,t}function xe(t,e){return Sm(t),t.parent=e,t}function S8(t,e){const n=Cm(e),r=Da(n.target,"ES2024"),i=Da(n.target,"ES2025"),u=n.rules.recursionLimit;if(!Number.isInteger(u)||u<2||u>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!i){const h=[t.flags.ignoreCase];ji(t,k8,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(p){h.push(p)},setHasCasedChar(){h.at(-1)?s=!0:o=!0}})}const l={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||s)&&!o)};let a=t;const c={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:a,originMap:t._originMap,recursionLimit:u,useAppliedIgnoreCase:!!(!i&&s&&o),useFlagMods:i,useFlagV:r,verbose:n.verbose};function f(h){return c.lastNode=a,a=h,r8(D8[h.type],`Unexpected node type "${h.type}"`)(h,c,f)}const d={pattern:t.body.map(f).join("|"),flags:f(t.flags),options:{...t.options}};return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],c.captureMap.forEach((h,p)=>{h.hidden&&d._hiddenCaptures.push(p),h.transferTo&&cu(d._captureTransfers,h.transferTo,[]).push(p)}),d}var k8={"*":{enter({node:t},e){if(wh(t)){const n=e.getCurrentModI();e.pushModI(t.flags?eo({ignoreCase:n},t.flags).ignoreCase:n)}},exit({node:t},e){wh(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){Ac(Se(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},n){e(),Om(t,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&Em.has(t.value)&&e.setHasCasedChar()}},D8={Alternative({body:t},e,n){return t.map(n).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?K`\B`:K`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,n){const{body:r,name:i,number:u}=t,s={ignoreCase:e.currentFlags.ignoreCase},o=e.originMap.get(t);return o&&(s.hidden=!0,u>o.number&&(s.transferTo=o.number)),e.captureMap.set(u,s),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:t},e){const n=Se(t),r=Lr(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(r!==n)return r;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&Ac(n)){const i=wm(n);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return n},CharacterClass(t,e,n){const{kind:r,negate:i,parent:u}=t;let{body:s}=t;if(r==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");vt.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&s.some(Eh)&&(s=[_o(45),...s.filter(a=>!Eh(a))]);const o=()=>`[${i?"^":""}${s.map(n).join(r==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||vt.bugNestedClassIgnoresNegation)&&!i){const c=s.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(c.length){const f=Ot(),d=f.body[0];return f.parent=u,d.parent=f,s=s.filter(h=>!c.includes(h)),t.body=s,s.length?(t.parent=d,d.body.push(t)):f.body.pop(),c.forEach(h=>{const p=Or({body:[h]});h.parent=p,p.parent=f,f.body.push(p)}),n(f)}}e.inCharClass=!0;const a=o();return e.inCharClass=!1,a}const l=s[0];if(r==="union"&&!i&&l&&((!e.useFlagV||!e.verbose)&&u.kind==="union"&&!(vt.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&u.kind==="intersection"&&s.length===1&&l.type!=="CharacterClassRange"))return s.map(n).join("");if(!e.useFlagV&&u.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(t,e){const n=t.min.value,r=t.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},u=Lr(n,i),s=Lr(r,i),o=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const l=Om(t);N8(l).forEach(c=>{o.add(Array.isArray(c)?`${Lr(c[0],i)}-${Lr(c[1],i)}`:Lr(c,i))})}return`${u}-${s}${[...o].join("")}`},CharacterSet({kind:t,negate:e,value:n,key:r},i){if(t==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":K`[^\n]`;if(t==="digit")return e?K`\D`:K`\d`;if(t==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Em.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${e?K`\P`:K`\p`}{${r?`${r}=`:""}${n}}`}if(t==="word")return e?K`\W`:K`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:n,parent:r},i,u){const s=i.currentFlags;n&&(i.currentFlags=eo(s,n));const o=e.map(u).join("|"),l=!i.verbose&&e.length===1&&r.type!=="Quantifier"&&!t&&(!i.useFlagMods||!n)?o:`(?${v8(t,n,i.useFlagMods)}${o})`;return i.currentFlags=s,l},LookaroundAssertion({body:t,kind:e,negate:n},r,i){return`(?${`${e==="lookahead"?"":"<"}${n?"!":"="}`}${t.map(i).join("|")})`},Quantifier(t,e,n){return n(t.body)+M8(t)},Subroutine({isRecursive:t,ref:e},n){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return e===0?`(?R=${r})`:K`\g<${e}&R=${r}>`}},A8=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),_8=new Set(["-","\\","]","^","["]),T8=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Ch=new Map([[9,K`\t`],[10,K`\n`],[11,K`\v`],[12,K`\f`],[13,K`\r`],[8232,K`\u2028`],[8233,K`\u2029`],[65279,K`\uFEFF`]]),O8=new RegExp("^\\p{Cased}$","u");function Ac(t){return O8.test(t)}function Om(t,e){const n=!!(e!=null&&e.firstOnly),r=t.min.value,i=t.max.value,u=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return u;for(let s=r;s<=i;s++){const o=Se(s);if(!Ac(o))continue;const l=wm(o).filter(a=>{const c=a.codePointAt(0);return c<r||c>i});if(l.length&&(u.push(...l),n))break}return u}function Lr(t,{escDigit:e,inCharClass:n,useFlagV:r}){if(Ch.has(t))return Ch.get(t);if(t<32||t>126&&t<160||t>262143||e&&F8(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const i=n?r?T8:_8:A8,u=Se(t);return(i.has(u)?"\\":"")+u}function N8(t){const e=t.map(i=>i.codePointAt(0)).sort((i,u)=>i-u),n=[];let r=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?r??(r=e[i]):r===null?n.push(e[i]):(n.push([r,e[i]]),r=null);return n}function v8(t,e,n){if(t)return">";let r="";if(e&&n){const{enable:i,disable:u}=e;r=(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")+(u?"-":"")+(u!=null&&u.ignoreCase?"i":"")+(u!=null&&u.dotAll?"s":"")}return`${r}:`}function M8({kind:t,max:e,min:n}){let r;return!n&&e===1?r="?":!n&&e===1/0?r="*":n===1&&e===1/0?r="+":n===e?r=`{${n}}`:r=`{${n},${e===1/0?"":e}}`,r+{greedy:"",lazy:"?",possessive:"+"}[t]}function wh({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function F8(t){return t>47&&t<58}function Eh({type:t,value:e}){return t==="Character"&&e===45}var Ln,hn,gr,Bn,br,fu,Aa,Gn,R8=(Gn=class extends RegExp{constructor(n,r,i){var e=(...zE)=>(super(...zE),nr(this,fu),nr(this,Ln,new Map),nr(this,hn,null),nr(this,gr),nr(this,Bn,null),nr(this,br,null),Fc(this,"rawOptions",{}),this);const u=!!(i!=null&&i.lazyCompile);if(n instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");const s=n;e(s,r),_t(this,gr,s.source),s instanceof Gn&&(_t(this,Ln,Ge(s,Ln)),_t(this,Bn,Ge(s,Bn)),_t(this,br,Ge(s,br)),this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...i};e(u?"":n,r),_t(this,gr,n),_t(this,Ln,P8(s.hiddenCaptures,s.transfers)),_t(this,br,s.strategy),this.rawOptions=i??{}}u||_t(this,hn,this)}get source(){return Ge(this,gr)||"(?:)"}exec(n){if(!Ge(this,hn)){const{lazyCompile:u,...s}=this.rawOptions;_t(this,hn,new Gn(Ge(this,gr),this.flags,s))}const r=this.global||this.sticky,i=this.lastIndex;if(Ge(this,br)==="clip_search"&&r&&i){this.lastIndex=0;const u=Fo(this,fu,Aa).call(this,n.slice(i));return u&&(I8(u,i,n,this.hasIndices),this.lastIndex+=i),u}return Fo(this,fu,Aa).call(this,n)}},Ln=new WeakMap,hn=new WeakMap,gr=new WeakMap,Bn=new WeakMap,br=new WeakMap,fu=new WeakSet,Aa=function(n){Ge(this,hn).lastIndex=this.lastIndex;const r=Rc(Gn.prototype,this,"exec").call(Ge(this,hn),n);if(this.lastIndex=Ge(this,hn).lastIndex,!r||!Ge(this,Ln).size)return r;const i=[...r];r.length=1;let u;this.hasIndices&&(u=[...r.indices],r.indices.length=1);const s=[0];for(let o=1;o<i.length;o++){const{hidden:l,transferTo:a}=Ge(this,Ln).get(o)??{};if(l?s.push(null):(s.push(r.length),r.push(i[o]),this.hasIndices&&r.indices.push(u[o])),a&&i[o]!==void 0){const c=s[a];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(r[c]=i[o],this.hasIndices&&(r.indices[c]=u[o]),r.groups){Ge(this,Bn)||_t(this,Bn,L8(this.source));const f=Ge(this,Bn).get(a);f&&(r.groups[f]=i[o],this.hasIndices&&(r.indices.groups[f]=u[o]))}}}return r},Gn);function I8(t,e,n,r){if(t.index+=e,t.input=n,r){const i=t.indices;for(let s=0;s<i.length;s++){const o=i[s];o&&(i[s]=[o[0]+e,o[1]+e])}const u=i.groups;u&&Object.keys(u).forEach(s=>{const o=u[s];o&&(u[s]=[o[0]+e,o[1]+e])})}}function P8(t,e){const n=new Map;for(const r of t)n.set(r,{hidden:!0});for(const[r,i]of e)for(const u of i)cu(n,u,{}).transferTo=r;return n}function L8(t){const e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,i=0,u;for(;u=e.exec(t);){const{0:s,groups:{capture:o,name:l}}=u;s==="["?r++:r?s==="]"&&r--:o&&(i++,l&&n.set(i,l))}return n}function LE(t,e){const n=B8(t,e);return n.options?new R8(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function B8(t,e){const n=Cm(e),r=dm(t,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Dc}),i=d8(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),u=S8(i,n),s=t8(u.pattern,{captureTransfers:u._captureTransfers,hiddenCaptures:u._hiddenCaptures,mode:"external"}),o=Qw(s.pattern),l=Yw(o.pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),a={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${u.flags}${u.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const c=l.hiddenCaptures.sort((p,m)=>p-m),f=Array.from(l.captureTransfers),d=i._strategy,h=a.pattern.length>=n.lazyCompileLength;(c.length||f.length||d||h)&&(a.options={...c.length&&{hiddenCaptures:c},...f.length&&{transfers:f},...d&&{strategy:d},...h&&{lazyCompile:h}})}return a}export{$p as $,Ip as A,yu as B,Eo as C,Gp as D,Di as E,Q6 as F,ne as G,OE as H,li as I,hE as J,T as K,At as L,Yt as M,q as N,tu as O,tp as P,bu as Q,Zt as R,Q as S,ex as T,cx as U,Kp as V,CE as W,bE as X,yE as Y,ux as Z,ox as _,V8 as a,lE as a$,mE as a0,gE as a1,xE as a2,fx as a3,_E as a4,ax as a5,St as a6,sx as a7,lx as a8,wE as a9,PE as aA,LE as aB,K8 as aC,Vl as aD,Q8 as aE,I0 as aF,Be as aG,oE as aH,Ul as aI,Ng as aJ,iE as aK,va as aL,X8 as aM,eE as aN,tE as aO,W8 as aP,Km as aQ,ct as aR,Z8 as aS,J8 as aT,uE as aU,Na as aV,q8 as aW,Sf as aX,f2 as aY,Ab as aZ,G8 as a_,SE as aa,EE as ab,DE as ac,TE as ad,Pi as ae,$ as af,kE as ag,AE as ah,ke as ai,ze as aj,f0 as ak,j8 as al,bg as am,sE as an,U8 as ao,ME as ap,vE as aq,H1 as ar,NE as as,FE as at,De as au,Ct as av,RE as aw,IE as ax,VC as ay,zC as az,Bo as b,nE as b0,_b as b1,Y8 as b2,d2 as b3,rE as b4,Lb as c,$g as d,d0 as e,ve as f,P0 as g,Bb as h,Wu as i,cE as j,_y as k,fE as l,aE as m,Jh as n,c0 as o,vg as p,Dy as q,La as r,gg as s,H8 as t,Wh as u,dE as v,$o as w,bo as x,gy as y,go as z};