8 | function je(e){return"[object Object]"===Object.prototype.toString.call(e)}function Pe(e){var t,r;return!1!==je(e)&&(void 0===(t=e.constructor)||!1!==je(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}var _e=function e(t,r){for(var n in t){var u=t[n],o=r[n];if(Pe(u)&&Pe(o)){if(!e(u,o))return!1}else if(Array.isArray(u)&&Array.isArray(o)){if(u.length!==o.length)return!1;for(var i=0;i<u.length;i++)if(u[i]!==o[i])return!1}else if(u!==o)return!1}for(var a in r)if(void 0===t[a]&&void 0!==r[a])return!1;return!0},Se=D((function(e){e.exports=function(e,t){if(null==e)return{};var r,n,u={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(u[r]=e[r]);return u},e.exports.__esModule=!0,e.exports.default=e.exports}));l(Se);var ke=l(D((function(e){e.exports=function(e,t){if(null==e)return{};var r,n,u=Se(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u},e.exports.__esModule=!0,e.exports.default=e.exports}))),Ne=D((function(e){var t=A.default;function r(){e.exports=r=function(){return u},e.exports.__esModule=!0,e.exports.default=e.exports;var n,u={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",f=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function D(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{D({},"")}catch(n){D=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var u=t&&t.prototype instanceof B?t:B,o=Object.create(u.prototype),i=new S(n||[]);return a(o,"_invoke",{value:O(e,r,i)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}u.wrap=p;var v="suspendedStart",h="executing",C="completed",y={};function B(){}function A(){}function g(){}var m={};D(m,s,(function(){return this}));var E=Object.getPrototypeOf,F=E&&E(E(k([])));F&&F!==o&&i.call(F,s)&&(m=F);var b=g.prototype=B.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){D(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,r){function n(u,o,a,c){var s=d(e[u],e,o);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==t(l)&&i.call(l,"__await")?r.resolve(l.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):r.resolve(l).then((function(e){f.value=e,a(f)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}var u;a(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,u){n(e,t,r,u)}))}return u=u?u.then(o,o):o()}})}function O(e,t,r){var u=v;return function(o,i){if(u===h)throw new Error("Generator is already running");if(u===C){if("throw"===o)throw i;return{value:n,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=j(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(u===v)throw u=C,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);u=h;var s=d(e,t,r);if("normal"===s.type){if(u=r.done?C:"suspendedYield",s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(u=C,r.method="throw",r.arg=s.arg)}}}function j(e,t){var r=t.method,u=e.iterator[r];if(u===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,j(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(u,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,y;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,y):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function k(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var u=-1,o=function t(){for(;++u<e.length;)if(i.call(e,u))return t.value=e[u],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}throw new TypeError(t(e)+" is not iterable")}return A.prototype=g,a(b,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:A,configurable:!0}),A.displayName=D(g,l,"GeneratorFunction"),u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,D(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},w(x.prototype),D(x.prototype,f,(function(){return this})),u.AsyncIterator=x,u.async=function(e,t,r,n,o){void 0===o&&(o=Promise);var i=new x(p(e,t,r,n),o);return u.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(b),D(b,l,"Generator"),D(b,s,(function(){return this})),D(b,"toString",(function(){return"[object Generator]"})),u.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},u.values=k,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,u){return a.type="throw",a.arg=e,t.next=r,u&&(t.method="next",t.arg=n),!!u}for(var u=this.tryEntries.length-1;u>=0;--u){var o=this.tryEntries[u],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var u=n;break}}u&&("break"===e||"continue"===e)&&u.tryLoc<=t&&t<=u.finallyLoc&&(u=null);var o=u?u.completion:{};return o.type=e,o.arg=t,u?(this.method="next",this.next=u.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var u=n.arg;_(r)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),y}},u}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}));l(Ne);var Re=Ne(),Te=Re;try{regeneratorRuntime=Re}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=Re:Function("r","regeneratorRuntime = r")(Re)}var Ie=["anchor","focus"];function Me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ze={edges:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.reverse,n=void 0!==r&&r,u=e.anchor,o=e.focus;return ze.isBackward(e)===n?[u,o]:[o,u]},end:function(e){var t=ze.edges(e),r=x(t,2)[1];return r},equals:function(e,t){return ut.equals(e.anchor,t.anchor)&&ut.equals(e.focus,t.focus)},includes:function(e,t){if(ze.isRange(t)){if(ze.includes(e,t.anchor)||ze.includes(e,t.focus))return!0;var r=ze.edges(e),n=x(r,2),u=n[0],o=n[1],i=ze.edges(t),a=x(i,2),c=a[0],s=a[1];return ut.isBefore(u,c)&&ut.isAfter(o,s)}var f=ze.edges(e),l=x(f,2),D=l[0],p=l[1],d=!1,v=!1;return ut.isPoint(t)?(d=ut.compare(t,D)>=0,v=ut.compare(t,p)<=0):(d=B.compare(t,D.path)>=0,v=B.compare(t,p.path)<=0),d&&v},intersection:function(e,t){e.anchor,e.focus;var r=ke(e,Ie),n=ze.edges(e),u=x(n,2),o=u[0],i=u[1],a=ze.edges(t),c=x(a,2),s=c[0],f=c[1],l=ut.isBefore(o,s)?s:o,D=ut.isBefore(i,f)?i:f;return ut.isBefore(D,l)?null:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({anchor:l,focus:D},r)},isBackward:function(e){var t=e.anchor,r=e.focus;return ut.isAfter(t,r)},isCollapsed:function(e){var t=e.anchor,r=e.focus;return ut.equals(t,r)},isExpanded:function(e){return!ze.isCollapsed(e)},isForward:function(e){return!ze.isBackward(e)},isRange:function(e){return Pe(e)&&ut.isPoint(e.anchor)&&ut.isPoint(e.focus)},points:Te.mark((function e(t){return Te.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,[t.anchor,"anchor"];case 2:return e.next=4,[t.focus,"focus"];case 4:case"end":return e.stop()}}),e)})),start:function(e){var t=ze.edges(e),r=x(t,1)[0];return r},transform:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ge(e,(function(e){if(null===e)return null;var n,u,o=r.affinity,i=void 0===o?"inward":o;if("inward"===i){var a=ze.isCollapsed(e);ze.isForward(e)?(n="forward",u=a?n:"backward"):(n="backward",u=a?n:"forward")}else"outward"===i?ze.isForward(e)?(n="backward",u="forward"):(n="forward",u="backward"):(n=i,u=i);var c=ut.transform(e.anchor,t,{affinity:n}),s=ut.transform(e.focus,t,{affinity:u});if(!c||!s)return null;e.anchor=c,e.focus=s}))}},Le=function(e){return Pe(e)&&Je.isNodeList(e.children)&&!Qe.isEditor(e)},qe={isAncestor:function(e){return Pe(e)&&Je.isNodeList(e.children)},isElement:Le,isElementList:function(e){return Array.isArray(e)&&e.every((function(e){return qe.isElement(e)}))},isElementProps:function(e){return void 0!==e.children},isElementType:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Le(e)&&e[r]===t},matches:function(e,t){for(var r in t)if("children"!==r&&e[r]!==t[r])return!1;return!0}},Ve=["children"],$e=["text"];function Ue(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return We(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return We(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ge=new WeakMap,Je={ancestor:function(e,t){var r=Je.get(e,t);if(pt.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(it.stringify(r)));return r},ancestors:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Te.mark((function n(){var u,o,i,a,c;return Te.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:u=Ue(B.ancestors(t,r)),n.prev=1,u.s();case 3:if((o=u.n()).done){n.next=11;break}return i=o.value,a=Je.ancestor(e,i),c=[a,i],n.next=9,c;case 9:n.next=3;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(1),u.e(n.t0);case 16:return n.prev=16,u.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])}))()},child:function(e,t){if(pt.isText(e))throw new Error("Cannot get the child of a text node: ".concat(it.stringify(e)));var r=e.children[t];if(null==r)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(it.stringify(e)));return r},children:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Te.mark((function n(){var u,o,i,a,c,s,f;return Te.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:u=r.reverse,o=void 0!==u&&u,i=Je.ancestor(e,t),a=i.children,c=o?a.length-1:0;case 4:if(!(o?c>=0:c<a.length)){n.next=12;break}return s=Je.child(i,c),f=t.concat(c),n.next=9,[s,f];case 9:c=o?c-1:c+1,n.next=4;break;case 12:case"end":return n.stop()}}),n)}))()},common:function(e,t,r){var n=B.common(t,r);return[Je.get(e,n),n]},descendant:function(e,t){var r=Je.get(e,t);if(Qe.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(it.stringify(r)));return r},descendants:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.mark((function r(){var n,u,o,i,a;return Te.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=Ue(Je.nodes(e,t)),r.prev=1,n.s();case 3:if((u=n.n()).done){r.next=10;break}if(o=x(u.value,2),i=o[0],0===(a=o[1]).length){r.next=8;break}return r.next=8,[i,a];case 8:r.next=3;break;case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(1),n.e(r.t0);case 15:return r.prev=15,n.f(),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[1,12,15,18]])}))()},elements:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.mark((function r(){var n,u,o,i,a;return Te.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=Ue(Je.nodes(e,t)),r.prev=1,n.s();case 3:if((u=n.n()).done){r.next=10;break}if(o=x(u.value,2),i=o[0],a=o[1],!qe.isElement(i)){r.next=8;break}return r.next=8,[i,a];case 8:r.next=3;break;case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(1),n.e(r.t0);case 15:return r.prev=15,n.f(),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[1,12,15,18]])}))()},extractProps:function(e){return qe.isAncestor(e)?(e.children,ke(e,Ve)):(e.text,ke(e,$e))},first:function(e,t){for(var r=t.slice(),n=Je.get(e,r);n&&!pt.isText(n)&&0!==n.children.length;)n=n.children[0],r.push(0);return[n,r]},fragment:function(e,t){if(pt.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(it.stringify(e)));var r=ge({children:e.children},(function(e){var r,n=ze.edges(t),u=x(n,2),o=u[0],i=u[1],a=Je.nodes(e,{reverse:!0,pass:function(e){var r=x(e,2)[1];return!ze.includes(t,r)}}),c=Ue(a);try{for(c.s();!(r=c.n()).done;){var s=x(r.value,2)[1];if(!ze.includes(t,s)){var f=Je.parent(e,s),l=s[s.length-1];f.children.splice(l,1)}if(B.equals(s,i.path)){var D=Je.leaf(e,s);D.text=D.text.slice(0,i.offset)}if(B.equals(s,o.path)){var p=Je.leaf(e,s);p.text=p.text.slice(o.offset)}}}catch(e){c.e(e)}finally{c.f()}Qe.isEditor(e)&&(e.selection=null)}));return r.children},get:function(e,t){for(var r=e,n=0;n<t.length;n++){var u=t[n];if(pt.isText(r)||!r.children[u])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(it.stringify(e)));r=r.children[u]}return r},has:function(e,t){for(var r=e,n=0;n<t.length;n++){var u=t[n];if(pt.isText(r)||!r.children[u])return!1;r=r.children[u]}return!0},isNode:function(e){return pt.isText(e)||qe.isElement(e)||Qe.isEditor(e)},isNodeList:function(e){if(!Array.isArray(e))return!1;var t=Ge.get(e);if(void 0!==t)return t;var r=e.every((function(e){return Je.isNode(e)}));return Ge.set(e,r),r},last:function(e,t){for(var r=t.slice(),n=Je.get(e,r);n&&!pt.isText(n)&&0!==n.children.length;){var u=n.children.length-1;n=n.children[u],r.push(u)}return[n,r]},leaf:function(e,t){var r=Je.get(e,t);if(!pt.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(it.stringify(r)));return r},levels:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Te.mark((function n(){var u,o,i,a;return Te.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:u=Ue(B.levels(t,r)),n.prev=1,u.s();case 3:if((o=u.n()).done){n.next=10;break}return i=o.value,a=Je.get(e,i),n.next=8,[a,i];case 8:n.next=3;break;case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),u.e(n.t0);case 15:return n.prev=15,u.f(),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[1,12,15,18]])}))()},matches:function(e,t){return qe.isElement(e)&&qe.isElementProps(t)&&qe.matches(e,t)||pt.isText(e)&&pt.isTextProps(t)&&pt.matches(e,t)},nodes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.mark((function r(){var n,u,o,i,a,c,s,f,l,D,p,d;return Te.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=t.pass,u=t.reverse,o=void 0!==u&&u,i=t.from,a=void 0===i?[]:i,c=t.to,s=new Set,f=[],l=e;case 5:if(!c||!(o?B.isBefore(f,c):B.isAfter(f,c))){r.next=8;break}return r.abrupt("break",36);case 8:if(s.has(l)){r.next=11;break}return r.next=11,[l,f];case 11:if(s.has(l)||pt.isText(l)||0===l.children.length||null!=n&&!1!==n([l,f])){r.next=18;break}return s.add(l),D=o?l.children.length-1:0,B.isAncestor(f,a)&&(D=a[f.length]),f=f.concat(D),l=Je.get(e,f),r.abrupt("continue",5);case 18:if(0!==f.length){r.next=20;break}return r.abrupt("break",36);case 20:if(o){r.next=26;break}if(p=B.next(f),!Je.has(e,p)){r.next=26;break}return f=p,l=Je.get(e,f),r.abrupt("continue",5);case 26:if(!o||0===f[f.length-1]){r.next=31;break}return d=B.previous(f),f=d,l=Je.get(e,f),r.abrupt("continue",5);case 31:f=B.parent(f),l=Je.get(e,f),s.add(l),r.next=5;break;case 36:case"end":return r.stop()}}),r)}))()},parent:function(e,t){var r=B.parent(t),n=Je.get(e,r);if(pt.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:function(e){return pt.isText(e)?e.text:e.children.map(Je.string).join("")},texts:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.mark((function r(){var n,u,o,i,a;return Te.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=Ue(Je.nodes(e,t)),r.prev=1,n.s();case 3:if((u=n.n()).done){r.next=10;break}if(o=x(u.value,2),i=o[0],a=o[1],!pt.isText(i)){r.next=8;break}return r.next=8,[i,a];case 8:r.next=3;break;case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(1),n.e(r.t0);case 15:return r.prev=15,n.f(),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[1,12,15,18]])}))()}};function Ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ye={isNodeOperation:function(e){return Ye.isOperation(e)&&e.type.endsWith("_node")},isOperation:function(e){if(!Pe(e))return!1;switch(e.type){case"insert_node":case"remove_node":return B.isPath(e.path)&&Je.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&B.isPath(e.path);case"merge_node":return"number"==typeof e.position&&B.isPath(e.path)&&Pe(e.properties);case"move_node":return B.isPath(e.path)&&B.isPath(e.newPath);case"set_node":return B.isPath(e.path)&&Pe(e.properties)&&Pe(e.newProperties);case"set_selection":return null===e.properties&&ze.isRange(e.newProperties)||null===e.newProperties&&ze.isRange(e.properties)||Pe(e.properties)&&Pe(e.newProperties);case"split_node":return B.isPath(e.path)&&"number"==typeof e.position&&Pe(e.properties);default:return!1}},isOperationList:function(e){return Array.isArray(e)&&e.every((function(e){return Ye.isOperation(e)}))},isSelectionOperation:function(e){return Ye.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation:function(e){return Ye.isOperation(e)&&e.type.endsWith("_text")},inverse:function(e){switch(e.type){case"insert_node":return Ke(Ke({},e),{},{type:"remove_node"});case"insert_text":return Ke(Ke({},e),{},{type:"remove_text"});case"merge_node":return Ke(Ke({},e),{},{type:"split_node",path:B.previous(e.path)});case"move_node":var t=e.newPath,r=e.path;if(B.equals(t,r))return e;if(B.isSibling(r,t))return Ke(Ke({},e),{},{path:t,newPath:r});var n=B.transform(r,e),u=B.transform(B.next(r),e);return Ke(Ke({},e),{},{path:n,newPath:u});case"remove_node":return Ke(Ke({},e),{},{type:"insert_node"});case"remove_text":return Ke(Ke({},e),{},{type:"insert_text"});case"set_node":var o=e.properties,i=e.newProperties;return Ke(Ke({},e),{},{properties:i,newProperties:o});case"set_selection":var a=e.properties,c=e.newProperties;return Ke(Ke({},e),{},null==a?{properties:c,newProperties:null}:null==c?{properties:null,newProperties:a}:{properties:c,newProperties:a});case"split_node":return Ke(Ke({},e),{},{type:"merge_node",path:B.next(e.path)})}}},Xe=new WeakMap,He=function(e){var t=Xe.get(e);if(void 0!==t)return t;if(!Pe(e))return!1;var r="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||Pe(e.marks))&&(null===e.selection||ze.isRange(e.selection))&&Je.isNodeList(e.children)&&Ye.isOperationList(e.operations);return Xe.set(e,r),r},Qe={above:function(e,t){return e.above(t)},addMark:function(e,t,r){e.addMark(t,r)},after:function(e,t,r){return e.after(t,r)},before:function(e,t,r){return e.before(t,r)},deleteBackward:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.unit,n=void 0===r?"character":r;e.deleteBackward(n)},deleteForward:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.unit,n=void 0===r?"character":r;e.deleteForward(n)},deleteFragment:function(e,t){e.deleteFragment(t)},edges:function(e,t){return e.edges(t)},elementReadOnly:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:function(e,t){return e.end(t)},first:function(e,t){return e.first(t)},fragment:function(e,t){return e.fragment(t)},hasBlocks:function(e,t){return e.hasBlocks(t)},hasInlines:function(e,t){return e.hasInlines(t)},hasPath:function(e,t){return e.hasPath(t)},hasTexts:function(e,t){return e.hasTexts(t)},insertBreak:function(e){e.insertBreak()},insertFragment:function(e,t,r){e.insertFragment(t,r)},insertNode:function(e,t){e.insertNode(t)},insertSoftBreak:function(e){e.insertSoftBreak()},insertText:function(e,t){e.insertText(t)},isBlock:function(e,t){return e.isBlock(t)},isEdge:function(e,t,r){return e.isEdge(t,r)},isEditor:function(e){return He(e)},isElementReadOnly:function(e,t){return e.isElementReadOnly(t)},isEmpty:function(e,t){return e.isEmpty(t)},isEnd:function(e,t,r){return e.isEnd(t,r)},isInline:function(e,t){return e.isInline(t)},isNormalizing:function(e){return e.isNormalizing()},isSelectable:function(e,t){return e.isSelectable(t)},isStart:function(e,t,r){return e.isStart(t,r)},isVoid:function(e,t){return e.isVoid(t)},last:function(e,t){return e.last(t)},leaf:function(e,t,r){return e.leaf(t,r)},levels:function(e,t){return e.levels(t)},marks:function(e){return e.getMarks()},next:function(e,t){return e.next(t)},node:function(e,t,r){return e.node(t,r)},nodes:function(e,t){return e.nodes(t)},normalize:function(e,t){e.normalize(t)},parent:function(e,t,r){return e.parent(t,r)},path:function(e,t,r){return e.path(t,r)},pathRef:function(e,t,r){return e.pathRef(t,r)},pathRefs:function(e){return e.pathRefs()},point:function(e,t,r){return e.point(t,r)},pointRef:function(e,t,r){return e.pointRef(t,r)},pointRefs:function(e){return e.pointRefs()},positions:function(e,t){return e.positions(t)},previous:function(e,t){return e.previous(t)},range:function(e,t,r){return e.range(t,r)},rangeRef:function(e,t,r){return e.rangeRef(t,r)},rangeRefs:function(e){return e.rangeRefs()},removeMark:function(e,t){e.removeMark(t)},setNormalizing:function(e,t){e.setNormalizing(t)},start:function(e,t){return e.start(t)},string:function(e,t,r){return e.string(t,r)},unhangRange:function(e,t,r){return e.unhangRange(t,r)},void:function(e,t){return e.void(t)},withoutNormalizing:function(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:function(e,t,r){return e.shouldMergeNodesRemovePrevNode(t,r)}},et={isLocation:function(e){return B.isPath(e)||ut.isPoint(e)||ze.isRange(e)}},tt={isSpan:function(e){return Array.isArray(e)&&2===e.length&&e.every(B.isPath)}};function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ut={compare:function(e,t){var r=B.compare(e.path,t.path);return 0===r?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:function(e,t){return 1===ut.compare(e,t)},isBefore:function(e,t){return-1===ut.compare(e,t)},equals:function(e,t){return e.offset===t.offset&&B.equals(e.path,t.path)},isPoint:function(e){return Pe(e)&&"number"==typeof e.offset&&B.isPath(e.path)},transform:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ge(e,(function(e){if(null===e)return null;var n=r.affinity,u=void 0===n?"forward":n,o=e.path,i=e.offset;switch(t.type){case"insert_node":case"move_node":e.path=B.transform(o,t,r);break;case"insert_text":B.equals(t.path,o)&&(t.offset<i||t.offset===i&&"forward"===u)&&(e.offset+=t.text.length);break;case"merge_node":B.equals(t.path,o)&&(e.offset+=t.position),e.path=B.transform(o,t,r);break;case"remove_text":B.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(B.equals(t.path,o)||B.isAncestor(t.path,o))return null;e.path=B.transform(o,t,r);break;case"split_node":if(B.equals(t.path,o)){if(t.position===i&&null==u)return null;(t.position<i||t.position===i&&"forward"===u)&&(e.offset-=t.position,e.path=B.transform(o,t,nt(nt({},r),{},{affinity:"forward"})))}else e.path=B.transform(o,t,r)}}))}},ot=void 0,it={setScrubber:function(e){ot=e},stringify:function(e){return JSON.stringify(e,ot)}},at=["text"],ct=["anchor","focus"];function st(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ft(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ft(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var pt={equals:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.loose,u=void 0!==n&&n;function o(e){return e.text,ke(e,at)}return _e(u?o(e):e,u?o(t):t)},isText:function(e){return Pe(e)&&"string"==typeof e.text},isTextList:function(e){return Array.isArray(e)&&e.every((function(e){return pt.isText(e)}))},isTextProps:function(e){return void 0!==e.text},matches:function(e,t){for(var r in t)if("text"!==r&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations:function(e,t){var r,n=[Dt({},e)],u=st(t);try{for(u.s();!(r=u.n()).done;){var o,i=r.value,a=(i.anchor,i.focus,ke(i,ct)),c=ze.edges(i),s=x(c,2),f=s[0],l=s[1],D=[],p=0,d=f.offset,v=l.offset,h=st(n);try{for(h.s();!(o=h.n()).done;){var C=o.value,y=C.text.length,B=p;if(p+=y,d<=B&&p<=v)Object.assign(C,a),D.push(C);else if(d!==v&&(d===p||v===B)||d>p||v<B||v===B&&0!==B)D.push(C);else{var A=C,g=void 0,m=void 0;if(v<p){var E=v-B;m=Dt(Dt({},A),{},{text:A.text.slice(E)}),A=Dt(Dt({},A),{},{text:A.text.slice(0,E)})}if(d>B){var F=d-B;g=Dt(Dt({},A),{},{text:A.text.slice(0,F)}),A=Dt(Dt({},A),{},{text:A.text.slice(F)})}Object.assign(A,a),g&&D.push(g),D.push(A),m&&D.push(m)}}}catch(e){h.e(e)}finally{h.f()}n=D}}catch(e){u.e(e)}finally{u.f()}return n}},dt=function(e){return e.selection?e.selection:e.children.length>0?Qe.end(e,[]):[0]},vt=function(e,t){var r=Qe.node(e,t),n=x(r,1)[0];return function(e){return e===n}};function ht(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ct(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ct(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yt,Bt=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!r,u=r?wt(e):e,o=yt.None,i=yt.None,a=0,c=null,s=ht(u);try{for(s.s();!(t=s.n()).done;){var f=t.value,l=f.codePointAt(0);if(!l)break;var D=Mt(f,l),p=n?[i,D]:[D,o],d=x(p,2);if(o=d[0],i=d[1],zt(o,yt.ZWJ)&&zt(i,yt.ExtPict)&&!$t(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(zt(o,yt.RI)&&zt(i,yt.RI)&&!(c=null!==c?!c:!!n||Wt(e.substring(0,e.length-a))))break;if(o!==yt.None&&i!==yt.None&&qt(o,i))break;a+=f.length}}catch(e){s.e(e)}finally{s.f()}return a||1},At=/\s/,gt=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,mt=/['\u2018\u2019]/,Et=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,n=!1;e.length>0;){var u=Bt(e,t),o=Ft(e,u,t),i=x(o,2),a=i[0],c=i[1];if(bt(a,c,t))n=!0,r+=u;else{if(n)break;r+=u}e=c}return r},Ft=function(e,t,r){if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},bt=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(At.test(t))return!1;if(mt.test(t)){var u=Bt(r,n),o=Ft(r,u,n),i=x(o,2),a=i[0],c=i[1];if(e(a,c,n))return!0}return!gt.test(t)},wt=Te.mark((function e(t){var r,n,u,o;return Te.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.length-1,n=0;case 2:if(!(n<t.length)){e.next=16;break}if(u=t.charAt(r-n),!Ot(u.charCodeAt(0))){e.next=11;break}if(o=t.charAt(r-n-1),!xt(o.charCodeAt(0))){e.next=11;break}return e.next=9,o+u;case 9:return n++,e.abrupt("continue",13);case 11:return e.next=13,u;case 13:n++,e.next=2;break;case 16:case"end":return e.stop()}}),e)})),xt=function(e){return e>=55296&&e<=56319},Ot=function(e){return e>=56320&&e<=57343};!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(yt||(yt={}));var jt=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Pt=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,_t=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,St=/^[\u1100-\u115F\uA960-\uA97C]$/,kt=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Nt=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Rt=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Tt=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,It=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Mt=function(e,t){var r=yt.Any;return-1!==e.search(jt)&&(r|=yt.Extend),8205===t&&(r|=yt.ZWJ),t>=127462&&t<=127487&&(r|=yt.RI),-1!==e.search(Pt)&&(r|=yt.Prepend),-1!==e.search(_t)&&(r|=yt.SpacingMark),-1!==e.search(St)&&(r|=yt.L),-1!==e.search(kt)&&(r|=yt.V),-1!==e.search(Nt)&&(r|=yt.T),-1!==e.search(Rt)&&(r|=yt.LV),-1!==e.search(Tt)&&(r|=yt.LVT),-1!==e.search(It)&&(r|=yt.ExtPict),r};function zt(e,t){return 0!=(e&t)}var Lt=[[yt.L,yt.L|yt.V|yt.LV|yt.LVT],[yt.LV|yt.V,yt.V|yt.T],[yt.LVT|yt.T,yt.T],[yt.Any,yt.Extend|yt.ZWJ],[yt.Any,yt.SpacingMark],[yt.Prepend,yt.Any],[yt.ZWJ,yt.ExtPict],[yt.RI,yt.RI]];function qt(e,t){return-1===Lt.findIndex((function(r){return zt(e,r[0])&&zt(t,r[1])}))}var Vt=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,$t=function(e){return-1!==e.search(Vt)},Ut=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Wt=function(e){var t=e.match(Ut);return null!==t&&t[0].length/2%2==1},Gt={delete:function(e,t){e.delete(t)},insertFragment:function(e,t,r){e.insertFragment(t,r)},insertText:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Qe.withoutNormalizing(e,(function(){var n=r.voids,u=void 0!==n&&n,o=r.at,i=void 0===o?dt(e):o;if(B.isPath(i)&&(i=Qe.range(e,i)),ze.isRange(i))if(ze.isCollapsed(i))i=i.anchor;else{var a=ze.end(i);if(!u&&Qe.void(e,{at:a}))return;var c=ze.start(i),s=Qe.pointRef(e,c),f=Qe.pointRef(e,a);Kt.delete(e,{at:i,voids:u});var l=s.unref(),D=f.unref();i=l||D,Kt.setSelection(e,{anchor:i,focus:i})}if(!(!u&&Qe.void(e,{at:i})||Qe.elementReadOnly(e,{at:i}))){var p=i,d=p.path,v=p.offset;t.length>0&&e.apply({type:"insert_text",path:d,offset:v,text:t})}}))}};function Jt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Kt=Zt(Zt(Zt(Zt({},Oe),{insertNodes:function(e,t,r){e.insertNodes(t,r)},liftNodes:function(e,t){e.liftNodes(t)},mergeNodes:function(e,t){e.mergeNodes(t)},moveNodes:function(e,t){e.moveNodes(t)},removeNodes:function(e,t){e.removeNodes(t)},setNodes:function(e,t,r){e.setNodes(t,r)},splitNodes:function(e,t){e.splitNodes(t)},unsetNodes:function(e,t,r){e.unsetNodes(t,r)},unwrapNodes:function(e,t){e.unwrapNodes(t)},wrapNodes:function(e,t,r){e.wrapNodes(t,r)}}),{collapse:function(e,t){e.collapse(t)},deselect:function(e){e.deselect()},move:function(e,t){e.move(t)},select:function(e,t){e.select(t)},setPoint:function(e,t,r){e.setPoint(t,r)},setSelection:function(e,t){e.setSelection(t)}}),Gt),Yt=new WeakMap,Xt=function(e,t,r){var n=Yt.get(e)||!1;Yt.set(e,!0);try{t(),r()}finally{Yt.set(e,n)}};function Ht(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Qt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qt(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function er(e,t,r){var n,i,a=u.get(e)||[],c=o.get(e)||new Set,s=function(e){if(e){var t=e.join(",");i.has(t)||(i.add(t),n.push(e))}};if(r){n=[],i=new Set;var f,l=Ht(a);try{for(l.s();!(f=l.n()).done;){s(r(f.value))}}catch(e){l.e(e)}finally{l.f()}}else n=a,i=c;var D,p=Ht(t);try{for(p.s();!(D=p.n()).done;){s(D.value)}}catch(e){p.e(e)}finally{p.f()}u.set(e,n),o.set(e,i)}function tr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return rr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rr(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var nr=function(e,u){var o,a=tr(Qe.pathRefs(e));try{for(a.s();!(o=a.n()).done;){var c=o.value;t.transform(c,u)}}catch(e){a.e(e)}finally{a.f()}var s,f=tr(Qe.pointRefs(e));try{for(f.s();!(s=f.n()).done;){var l=s.value;r.transform(l,u)}}catch(e){f.e(e)}finally{f.f()}var D,p=tr(Qe.rangeRefs(e));try{for(p.s();!(D=p.n()).done;){var d=D.value;n.transform(d,u)}}catch(e){p.e(e)}finally{p.f()}if(!function(e){return Yt.get(e)||!1}(e)){var v=B.operationCanTransformPath(u)?function(e){return B.transform(e,u)}:void 0;er(e,e.getDirtyPaths(u),v)}Kt.transform(e,u),e.operations.push(u),Qe.normalize(e,{operation:u}),"set_selection"===u.type&&(e.marks=null),i.get(e)||(i.set(e,!0),Promise.resolve().then((function(){i.set(e,!1),e.onChange({operation:u}),e.operations=[]})))};function ur(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return or(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return or(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function or(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ir=function(e,t){switch(t.type){case"insert_text":case"remove_text":case"set_node":var r=t.path;return B.levels(r);case"insert_node":var n=t.node,u=t.path,o=B.levels(u),i=pt.isText(n)?[]:Array.from(Je.nodes(n),(function(e){var t=x(e,2)[1];return u.concat(t)}));return[].concat(y(o),y(i));case"merge_node":var a=t.path,c=B.ancestors(a),s=B.previous(a);return[].concat(y(c),[s]);case"move_node":var f=t.path,l=t.newPath;if(B.equals(f,l))return[];var D,p=[],d=[],v=ur(B.ancestors(f));try{for(v.s();!(D=v.n()).done;){var h=D.value,C=B.transform(h,t);p.push(C)}}catch(e){v.e(e)}finally{v.f()}var A,g=ur(B.ancestors(l));try{for(g.s();!(A=g.n()).done;){var m=A.value,E=B.transform(m,t);d.push(E)}}catch(e){g.e(e)}finally{g.f()}var F=d[d.length-1],b=l[l.length-1],w=F.concat(b);return[].concat(p,d,[w]);case"remove_node":var O=t.path,j=B.ancestors(O);return y(j);case"split_node":var P=t.path,_=B.levels(P),S=B.next(P);return[].concat(y(_),[S]);default:return[]}},ar=function(e){var t=e.selection;return t?Je.fragment(e,t):[]},cr=function(e,t){var r=x(t,2),n=r[0],u=r[1];if(!pt.isText(n))if(qe.isElement(n)&&0===n.children.length){Kt.insertNodes(e,{text:""},{at:u.concat(0),voids:!0})}else for(var o=!Qe.isEditor(n)&&(qe.isElement(n)&&(e.isInline(n)||0===n.children.length||pt.isText(n.children[0])||e.isInline(n.children[0]))),i=0,a=0;a<n.children.length;a++,i++){var c=Je.get(e,u);if(!pt.isText(c)){var s=c.children[i],f=c.children[i-1],l=a===n.children.length-1;if((pt.isText(s)||qe.isElement(s)&&e.isInline(s))!==o)Kt.removeNodes(e,{at:u.concat(i),voids:!0}),i--;else if(qe.isElement(s)){if(e.isInline(s))if(null!=f&&pt.isText(f)){if(l){Kt.insertNodes(e,{text:""},{at:u.concat(i+1),voids:!0}),i++}}else{Kt.insertNodes(e,{text:""},{at:u.concat(i),voids:!0}),i++}}else{if(!pt.isText(s)&&!("children"in s))s.children=[];null!=f&&pt.isText(f)&&(pt.equals(s,f,{loose:!0})?(Kt.mergeNodes(e,{at:u.concat(i),voids:!0}),i--):""===f.text?(Kt.removeNodes(e,{at:u.concat(i-1),voids:!0}),i--):""===s.text&&(Kt.removeNodes(e,{at:u.concat(i),voids:!0}),i--))}}}},sr=function(e,t){var r=t.iteration,n=42*t.initialDirtyPathsLength;if(r>n)throw new Error("Could not completely normalize the editor after ".concat(n," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0};function fr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return lr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lr(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Dr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.voids,n=void 0!==r&&r,u=t.mode,o=void 0===u?"lowest":u,i=t.at,a=void 0===i?e.selection:i,c=t.match;if(a){var s,f=Qe.path(e,a),l="lowest"===o,D=fr(Qe.levels(e,{at:f,voids:n,match:c,reverse:l}));try{for(D.s();!(s=D.n()).done;){var p=x(s.value,2),d=p[0],v=p[1];if(!pt.isText(d))if(ze.isRange(a)){if(B.isAncestor(v,a.anchor.path)&&B.isAncestor(v,a.focus.path))return[d,v]}else if(!B.equals(f,v))return[d,v]}}catch(e){D.e(e)}finally{D.f()}}};function pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vr=function(e,t,r){var n=e.selection;if(n){var u=function(t,r){if(!pt.isText(t))return!1;var n=Qe.parent(e,r),u=x(n,2),o=u[0];return u[1],!e.isVoid(o)||e.markableVoid(o)},o=ze.isExpanded(n),a=!1;if(!o){var c=Qe.node(e,n),s=x(c,2),f=s[0],l=s[1];if(f&&u(f,l)){var D=Qe.parent(e,l),p=x(D,1)[0];a=p&&e.markableVoid(p)}}if(o||a)Kt.setNodes(e,E({},t,r),{match:u,split:!0,voids:!0});else{var d=dr(dr({},Qe.marks(e)||{}),{},E({},t,r));e.marks=d,i.get(e)||e.onChange()}}};function hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hr(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Br(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Br(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ar=function(e,t){var r,n,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Qe.point(e,t,{edge:"end"}),i=Qe.end(e,[]),a={anchor:o,focus:i},c=u.distance,s=void 0===c?1:c,f=0,l=yr(Qe.positions(e,Cr(Cr({},u),{},{at:a})));try{for(l.s();!(n=l.n()).done;){var D=n.value;if(f>s)break;0!==f&&(r=D),f++}}catch(e){l.e(e)}finally{l.f()}return r};function gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Er(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fr(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var br=function(e,t){var r,n,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Qe.start(e,[]),i=Qe.point(e,t,{edge:"start"}),a={anchor:o,focus:i},c=u.distance,s=void 0===c?1:c,f=0,l=Er(Qe.positions(e,mr(mr({},u),{},{at:a,reverse:!0})));try{for(l.s();!(n=l.n()).done;){var D=n.value;if(f>s)break;0!==f&&(r=D),f++}}catch(e){l.e(e)}finally{l.f()}return r},wr=function(e,t){var r=e.selection;r&&ze.isCollapsed(r)&&Kt.delete(e,{unit:t,reverse:!0})},xr=function(e,t){var r=e.selection;r&&ze.isCollapsed(r)&&Kt.delete(e,{unit:t})},Or=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.direction,n=void 0===r?"forward":r,u=e.selection;u&&ze.isExpanded(u)&&Kt.delete(e,{reverse:"backward"===n})},jr=function(e,t){return[Qe.start(e,t),Qe.end(e,t)]};function Pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Sr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Qe.above(e,_r(_r({},t),{},{match:function(t){return qe.isElement(t)&&Qe.isElementReadOnly(e,t)}}))},kr=function(e,t){return Qe.point(e,t,{edge:"end"})},Nr=function(e,t){var r=Qe.path(e,t,{edge:"start"});return Qe.node(e,r)},Rr=function(e,t){var r=Qe.range(e,t);return Je.fragment(e,r)};function Tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Mr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Qe.above(e,Ir(Ir({},t),{},{match:function(t){return qe.isElement(t)&&Qe.isVoid(e,t)}}))},zr=function(e,t){return t.children.some((function(t){return qe.isElement(t)&&Qe.isBlock(e,t)}))},Lr=function(e,t){return t.children.some((function(t){return pt.isText(t)||Qe.isInline(e,t)}))},qr=function(e,t){return Je.has(e,t)},Vr=function(e,t){return t.children.every((function(e){return pt.isText(e)}))},$r=function(e){Kt.splitNodes(e,{always:!0})},Ur=function(e,t,r){Kt.insertNodes(e,t,r)},Wr=function(e){Kt.splitNodes(e,{always:!0})};function Gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zr=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.selection,u=e.marks;if(n){if(u){var o=Jr({text:t},u);Kt.insertNodes(e,o,{at:r.at,voids:r.voids})}else Kt.insertText(e,t,r);e.marks=null}},Kr=function(e,t){return!e.isInline(t)},Yr=function(e,t,r){return Qe.isStart(e,t,r)||Qe.isEnd(e,t,r)},Xr=function(e,t){var r=t.children,n=x(r,1)[0];return 0===r.length||1===r.length&&pt.isText(n)&&""===n.text&&!e.isVoid(t)},Hr=function(e,t,r){var n=Qe.end(e,r);return ut.equals(t,n)},Qr=function(e){var t=a.get(e);return void 0===t||t},en=function(e,t,r){if(0!==t.offset)return!1;var n=Qe.start(e,r);return ut.equals(t,n)},tn=function(e,t){var r=Qe.path(e,t,{edge:"end"});return Qe.node(e,r)},rn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Qe.path(e,t,r),u=Je.leaf(e,n);return[u,n]};function nn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return un(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return un(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function un(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.mark((function r(){var n,u,o,i,a,c,s,f,l,D,p,d,v,h;return Te.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t.at,u=void 0===n?e.selection:n,o=t.reverse,i=void 0!==o&&o,a=t.voids,c=void 0!==a&&a,null==(s=t.match)&&(s=function(){return!0}),u){r.next=5;break}return r.abrupt("return");case 5:f=[],l=Qe.path(e,u),D=nn(Je.levels(e,l)),r.prev=8,D.s();case 10:if((p=D.n()).done){r.next=19;break}if(d=x(p.value,2),v=d[0],h=d[1],s(v,h)){r.next=14;break}return r.abrupt("continue",17);case 14:if(f.push([v,h]),c||!qe.isElement(v)||!Qe.isVoid(e,v)){r.next=17;break}return r.abrupt("break",19);case 17:r.next=10;break;case 19:r.next=24;break;case 21:r.prev=21,r.t0=r.catch(8),D.e(r.t0);case 24:return r.prev=24,D.f(),r.finish(24);case 27:return i&&f.reverse(),r.delegateYield(f,"t1",29);case 29:case"end":return r.stop()}}),r,null,[[8,21,24,27]])}))()}var an=["text"],cn=["text"],sn=function(e){var t=e.marks,r=e.selection;if(!r)return null;var n=r.anchor,u=r.focus;if(t)return t;if(ze.isExpanded(r)){if(Qe.isEnd(e,n,n.path)){var o=Qe.after(e,n);o&&(n=o)}var i=Qe.nodes(e,{match:pt.isText,at:{anchor:n,focus:u}}),a=x(i,1)[0];if(a){var c=x(a,1)[0];return c.text,ke(c,an)}return{}}var s=n.path,f=Qe.leaf(e,s),l=x(f,1)[0];if(0===n.offset){var D=Qe.previous(e,{at:s,match:pt.isText});if(!Qe.above(e,{match:function(t){return qe.isElement(t)&&Qe.isVoid(e,t)&&e.markableVoid(t)}})){var p=Qe.above(e,{match:function(t){return qe.isElement(t)&&Qe.isBlock(e,t)}});if(D&&p){var d=x(D,2),v=d[0],h=d[1],C=x(p,2)[1];B.isAncestor(C,h)&&(l=v)}}}var y=l;return y.text,ke(y,cn)},fn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.mode,n=void 0===r?"lowest":r,u=t.voids,o=void 0!==u&&u,i=t.match,a=t.at,c=void 0===a?e.selection:a;if(c){var s=Qe.after(e,c,{voids:o});if(s){var f=Qe.last(e,[]),l=x(f,2),D=l[1],p=[s.path,D];if(B.isPath(c)&&0===c.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(B.isPath(c)){var d=Qe.parent(e,c),v=x(d,1),h=v[0];i=function(e){return h.children.includes(e)}}else i=function(){return!0};var C=Qe.nodes(e,{at:p,match:i,mode:n,voids:o}),y=x(C,1),A=y[0];return A}}},ln=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Qe.path(e,t,r),u=Je.get(e,n);return[u,n]};function Dn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return pn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pn(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.mark((function r(){var n,u,o,i,a,c,s,f,l,D,p,d,v,h,C,y,A,g,m,E,F,b,w,O,j,P,_;return Te.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t.at,u=void 0===n?e.selection:n,o=t.mode,i=void 0===o?"all":o,a=t.universal,c=void 0!==a&&a,s=t.reverse,f=void 0!==s&&s,l=t.voids,D=void 0!==l&&l,p=t.ignoreNonSelectable,d=void 0!==p&&p,(v=t.match)||(v=function(){return!0}),u){r.next=5;break}return r.abrupt("return");case 5:tt.isSpan(u)?(h=u[0],C=u[1]):(y=Qe.path(e,u,{edge:"start"}),A=Qe.path(e,u,{edge:"end"}),h=f?A:y,C=f?y:A),g=Je.nodes(e,{reverse:f,from:h,to:C,pass:function(t){var r=x(t,1)[0];return!!qe.isElement(r)&&(!(D||!Qe.isVoid(e,r)&&!Qe.isElementReadOnly(e,r))||!(!d||Qe.isSelectable(e,r)))}}),m=[],F=Dn(g),r.prev=9,F.s();case 11:if((b=F.n()).done){r.next=38;break}if(w=x(b.value,2),O=w[0],j=w[1],!d||!qe.isElement(O)||Qe.isSelectable(e,O)){r.next=15;break}return r.abrupt("continue",36);case 15:if(P=E&&0===B.compare(j,E[1]),"highest"!==i||!P){r.next=18;break}return r.abrupt("continue",36);case 18:if(v(O,j)){r.next=24;break}if(!c||P||!pt.isText(O)){r.next=23;break}return r.abrupt("return");case 23:return r.abrupt("continue",36);case 24:if("lowest"!==i||!P){r.next=27;break}return E=[O,j],r.abrupt("continue",36);case 27:if(!(_="lowest"===i?E:[O,j])){r.next=35;break}if(!c){r.next=33;break}m.push(_),r.next=35;break;case 33:return r.next=35,_;case 35:E=[O,j];case 36:r.next=11;break;case 38:r.next=43;break;case 40:r.prev=40,r.t0=r.catch(9),F.e(r.t0);case 43:return r.prev=43,F.f(),r.finish(43);case 46:if("lowest"!==i||!E){r.next=53;break}if(!c){r.next=51;break}m.push(E),r.next=53;break;case 51:return r.next=53,E;case 53:if(!c){r.next=55;break}return r.delegateYield(m,"t1",55);case 55:case"end":return r.stop()}}),r,null,[[9,40,43,46]])}))()}function vn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return hn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hn(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Cn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.force,n=void 0!==r&&r,i=t.operation,a=function(e){return u.get(e)||[]},c=function(e){return o.get(e)||new Set},s=function(e){var t=a(e).pop(),r=t.join(",");return c(e).delete(r),t};if(Qe.isNormalizing(e)){if(n){var f=Array.from(Je.nodes(e),(function(e){return x(e,2)[1]})),l=new Set(f.map((function(e){return e.join(",")})));u.set(e,f),o.set(e,l)}0!==a(e).length&&Qe.withoutNormalizing(e,(function(){var t,r=vn(a(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;if(Je.has(e,n)){var u=Qe.node(e,n),o=x(u,2),c=o[0];o[1];qe.isElement(c)&&0===c.children.length&&e.normalizeNode(u,{operation:i})}}}catch(e){r.e(e)}finally{r.f()}for(var f=a(e),l=f.length,D=0;0!==f.length;){if(!e.shouldNormalize({dirtyPaths:f,iteration:D,initialDirtyPathsLength:l,operation:i}))return;var p=s(e);if(Je.has(e,p)){var d=Qe.node(e,p);e.normalizeNode(d,{operation:i})}D++,f=a(e)}}))}},yn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Qe.path(e,t,r),u=B.parent(n),o=Qe.node(e,u);return o},Bn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.affinity,u=void 0===n?"forward":n,o={current:t,affinity:u,unref:function(){var t=o.current;return Qe.pathRefs(e).delete(o),o.current=null,t}},i=Qe.pathRefs(e);return i.add(o),o},An=function(e){var t=c.get(e);return t||(t=new Set,c.set(e,t)),t},gn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.depth,u=r.edge;if(B.isPath(t))if("start"===u){var o=Je.first(e,t),i=x(o,2),a=i[1];t=a}else if("end"===u){var c=Je.last(e,t),s=x(c,2),f=s[1];t=f}return ze.isRange(t)&&(t="start"===u?ze.start(t):"end"===u?ze.end(t):B.common(t.anchor.path,t.focus.path)),ut.isPoint(t)&&(t=t.path),null!=n&&(t=t.slice(0,n)),t},mn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.affinity,u=void 0===n?"forward":n,o={current:t,affinity:u,unref:function(){var t=o.current;return Qe.pointRefs(e).delete(o),o.current=null,t}},i=Qe.pointRefs(e);return i.add(o),o},En=function(e){var t=s.get(e);return t||(t=new Set,s.set(e,t)),t},Fn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.edge,u=void 0===n?"start":n;if(B.isPath(t)){var o;if("end"===u){var i=Je.last(e,t),a=x(i,2),c=a[1];o=c}else{var s=Je.first(e,t),f=x(s,2),l=f[1];o=l}var D=Je.get(e,o);if(!pt.isText(D))throw new Error("Cannot get the ".concat(u," point in the node at path [").concat(t,"] because it has no ").concat(u," text node."));return{path:o,offset:"end"===u?D.text.length:0}}if(ze.isRange(t)){var p=ze.edges(t),d=x(p,2),v=d[0],h=d[1];return"start"===u?v:h}return t};function bn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return wn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wn(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Te.mark((function r(){var n,u,o,i,a,c,s,f,l,D,p,d,v,h,C,y,A,g,m,E,F,b,w,O,j,P,_,S,k,N;return Te.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(N=function(e,t,r){return"character"===t?Bt(e,r):"word"===t?Et(e,r):"line"===t||"block"===t?e.length:1},n=t.at,u=void 0===n?e.selection:n,o=t.unit,i=void 0===o?"offset":o,a=t.reverse,c=void 0!==a&&a,s=t.voids,f=void 0!==s&&s,l=t.ignoreNonSelectable,D=void 0!==l&&l,u){r.next=4;break}return r.abrupt("return");case 4:p=Qe.range(e,u),d=ze.edges(p),v=x(d,2),h=v[0],C=v[1],y=c?C:h,A=!1,g="",m=0,E=0,F=0,b=bn(Qe.nodes(e,{at:u,reverse:c,voids:f,ignoreNonSelectable:D})),r.prev=13,b.s();case 15:if((w=b.n()).done){r.next=50;break}if(O=x(w.value,2),j=O[0],P=O[1],!qe.isElement(j)){r.next=25;break}if(f||!e.isVoid(j)&&!e.isElementReadOnly(j)){r.next=22;break}return r.next=21,Qe.start(e,P);case 21:return r.abrupt("continue",48);case 22:if(!e.isInline(j)){r.next=24;break}return r.abrupt("continue",48);case 24:Qe.hasInlines(e,j)&&(_=B.isAncestor(P,C.path)?C:Qe.end(e,P),S=B.isAncestor(P,h.path)?h:Qe.start(e,P),g=Qe.string(e,{anchor:S,focus:_},{voids:f}),A=!0);case 25:if(!pt.isText(j)){r.next=48;break}if((k=B.equals(P,y.path))?(E=c?y.offset:j.text.length-y.offset,F=y.offset):(E=j.text.length,F=c?E:0),!k&&!A&&"offset"!==i){r.next=32;break}return r.next=31,{path:P,offset:F};case 31:A=!1;case 32:if(0!==m){r.next=38;break}if(""!==g){r.next=36;break}return r.abrupt("break",48);case 36:m=N(g,i,c),g=Ft(g,m,c)[1];case 38:if(F=c?F-m:F+m,!((E-=m)<0)){r.next=43;break}return m=-E,r.abrupt("break",48);case 43:return m=0,r.next=46,{path:P,offset:F};case 46:r.next=32;break;case 48:r.next=15;break;case 50:r.next=55;break;case 52:r.prev=52,r.t0=r.catch(13),b.e(r.t0);case 55:return r.prev=55,b.f(),r.finish(55);case 58:case"end":return r.stop()}}),r,null,[[13,52,55,58]])}))()}var On=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.mode,n=void 0===r?"lowest":r,u=t.voids,o=void 0!==u&&u,i=t.match,a=t.at,c=void 0===a?e.selection:a;if(c){var s=Qe.before(e,c,{voids:o});if(s){var f=Qe.first(e,[]),l=x(f,2),D=l[1],p=[s.path,D];if(B.isPath(c)&&0===c.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(B.isPath(c)){var d=Qe.parent(e,c),v=x(d,1),h=v[0];i=function(e){return h.children.includes(e)}}else i=function(){return!0};var C=Qe.nodes(e,{reverse:!0,at:p,match:i,mode:n,voids:o}),y=x(C,1),A=y[0];return A}}},jn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.affinity,u=void 0===n?"forward":n,o={current:t,affinity:u,unref:function(){var t=o.current;return Qe.rangeRefs(e).delete(o),o.current=null,t}},i=Qe.rangeRefs(e);return i.add(o),o},Pn=function(e){var t=f.get(e);return t||(t=new Set,f.set(e,t)),t},_n=function(e,t,r){return ze.isRange(t)&&!r?t:{anchor:Qe.start(e,t),focus:Qe.end(e,r||t)}};function Sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var kn=function(e,t){var r=e.selection;if(r){var n=function(t,r){if(!pt.isText(t))return!1;var n=Qe.parent(e,r),u=x(n,2),o=u[0];return u[1],!e.isVoid(o)||e.markableVoid(o)},u=ze.isExpanded(r),o=!1;if(!u){var a=Qe.node(e,r),c=x(a,2),s=c[0],f=c[1];if(s&&n(s,f)){var l=Qe.parent(e,f),D=x(l,1)[0];o=D&&e.markableVoid(D)}}if(u||o)Kt.unsetNodes(e,t,{match:n,split:!0,voids:!0});else{var p=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},Qe.marks(e)||{});delete p[t],e.marks=p,i.get(e)||e.onChange()}}},Nn=function(e,t){a.set(e,t)},Rn=function(e,t){return Qe.point(e,t,{edge:"start"})};function Tn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return In(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return In(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function In(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Mn=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=n.voids,o=void 0!==u&&u,i=Qe.range(e,t),a=ze.edges(i),c=x(a,2),s=c[0],f=c[1],l="",D=Tn(Qe.nodes(e,{at:i,match:pt.isText,voids:o}));try{for(D.s();!(r=D.n()).done;){var p=x(r.value,2),d=p[0],v=p[1],h=d.text;B.equals(v,f.path)&&(h=h.slice(0,f.offset)),B.equals(v,s.path)&&(h=h.slice(s.offset)),l+=h}}catch(e){D.e(e)}finally{D.f()}return l};function zn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ln(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ln(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.voids,u=void 0!==n&&n,o=ze.edges(t),i=x(o,2),a=i[0],c=i[1];if(0!==a.offset||0!==c.offset||ze.isCollapsed(t)||B.hasPrevious(c.path))return t;var s,f=Qe.above(e,{at:c,match:function(t){return qe.isElement(t)&&Qe.isBlock(e,t)},voids:u}),l=f?f[1]:[],D=Qe.start(e,a),p={anchor:D,focus:c},d=!0,v=zn(Qe.nodes(e,{at:p,match:pt.isText,reverse:!0,voids:u}));try{for(v.s();!(s=v.n()).done;){var h=x(s.value,2),C=h[0],y=h[1];if(d)d=!1;else if(""!==C.text||B.isBefore(y,l)){c={path:y,offset:C.text.length};break}}}catch(e){v.e(e)}finally{v.f()}return{anchor:a,focus:c}},Vn=function(e,t){var r=Qe.isNormalizing(e);Qe.setNormalizing(e,!1);try{t()}finally{Qe.setNormalizing(e,r)}Qe.normalize(e)},$n=function(e,t,r){var n=x(t,2),u=n[0],o=n[1],i=x(r,2);return i[0],i[1],qe.isElement(u)&&Qe.isEmpty(e,u)||pt.isText(u)&&""===u.text&&0!==o[o.length-1]};function Un(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Wn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wn(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Gn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qe.withoutNormalizing(e,(function(){var r,n,u=t.reverse,o=void 0!==u&&u,i=t.unit,a=void 0===i?"character":i,c=t.distance,s=void 0===c?1:c,f=t.voids,l=void 0!==f&&f,D=t.at,p=void 0===D?e.selection:D,d=t.hanging,v=void 0!==d&&d;if(p){var h=!1;if(ze.isRange(p)&&ze.isCollapsed(p)&&(h=!0,p=p.anchor),ut.isPoint(p)){var C=Qe.void(e,{at:p,mode:"highest"});if(!l&&C){p=x(C,2)[1]}else{var y={unit:a,distance:s};p={anchor:p,focus:o?Qe.before(e,p,y)||Qe.start(e,[]):Qe.after(e,p,y)||Qe.end(e,[])},v=!0}}if(B.isPath(p))Kt.removeNodes(e,{at:p,voids:l});else if(!ze.isCollapsed(p)){if(!v){var A=ze.edges(p),g=x(A,2)[1],m=Qe.end(e,[]);ut.equals(g,m)||(p=Qe.unhangRange(e,p,{voids:l}))}var E=ze.edges(p),F=x(E,2),b=F[0],w=F[1],O=Qe.above(e,{match:function(t){return qe.isElement(t)&&Qe.isBlock(e,t)},at:b,voids:l}),j=Qe.above(e,{match:function(t){return qe.isElement(t)&&Qe.isBlock(e,t)},at:w,voids:l}),P=O&&j&&!B.equals(O[1],j[1]),_=B.equals(b.path,w.path),S=l?null:null!==(r=Qe.void(e,{at:b,mode:"highest"}))&&void 0!==r?r:Qe.elementReadOnly(e,{at:b,mode:"highest"}),k=l?null:null!==(n=Qe.void(e,{at:w,mode:"highest"}))&&void 0!==n?n:Qe.elementReadOnly(e,{at:w,mode:"highest"});if(S){var N=Qe.before(e,b);N&&O&&B.isAncestor(O[1],N.path)&&(b=N)}if(k){var R=Qe.after(e,w);R&&j&&B.isAncestor(j[1],R.path)&&(w=R)}var T,I,M=[],z=Un(Qe.nodes(e,{at:p,voids:l}));try{for(z.s();!(I=z.n()).done;){var L=I.value,q=x(L,2),V=q[0],$=q[1];T&&0===B.compare($,T)||(!l&&qe.isElement(V)&&(Qe.isVoid(e,V)||Qe.isElementReadOnly(e,V))||!B.isCommon($,b.path)&&!B.isCommon($,w.path))&&(M.push(L),T=$)}}catch(e){z.e(e)}finally{z.f()}var U=Array.from(M,(function(t){var r=x(t,2)[1];return Qe.pathRef(e,r)})),W=Qe.pointRef(e,b),G=Qe.pointRef(e,w),J="";if(!_&&!S){var Z=W.current,K=Qe.leaf(e,Z),Y=x(K,1)[0],X=Z.path,H=b.offset,Q=Y.text.slice(H);Q.length>0&&(e.apply({type:"remove_text",path:X,offset:H,text:Q}),J=Q)}if(U.reverse().map((function(e){return e.unref()})).filter((function(e){return null!==e})).forEach((function(t){return Kt.removeNodes(e,{at:t,voids:l})})),!k){var ee=G.current,te=Qe.leaf(e,ee),re=x(te,1)[0],ne=ee.path,ue=_?b.offset:0,oe=re.text.slice(ue,w.offset);oe.length>0&&(e.apply({type:"remove_text",path:ne,offset:ue,text:oe}),J=oe)}!_&&P&&G.current&&W.current&&Kt.mergeNodes(e,{at:G.current,hanging:!0,voids:l}),h&&o&&"character"===a&&J.length>1&&J.match(/[\u0E00-\u0E7F]+/)&&Kt.insertText(e,J.slice(0,J.length-s));var ie=W.unref(),ae=G.unref(),ce=o?ie||ae:ae||ie;null==t.at&&ce&&Kt.select(e,ce)}}}))};function Jn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Zn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zn(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Kn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Qe.withoutNormalizing(e,(function(){var n=r.hanging,u=void 0!==n&&n,o=r.voids,i=void 0!==o&&o,a=r.at,c=void 0===a?dt(e):a,s=r.batchDirty,f=void 0===s||s;if(t.length){if(ze.isRange(c))if(u||(c=Qe.unhangRange(e,c,{voids:i})),ze.isCollapsed(c))c=c.anchor;else{var l=ze.edges(c),D=x(l,2)[1];if(!i&&Qe.void(e,{at:D}))return;var p=Qe.pointRef(e,D);Kt.delete(e,{at:c}),c=p.unref()}else B.isPath(c)&&(c=Qe.start(e,c));if(i||!Qe.void(e,{at:c})){var d=Qe.above(e,{at:c,match:function(t){return qe.isElement(t)&&Qe.isInline(e,t)},mode:"highest",voids:i});if(d){var v=x(d,2)[1];if(Qe.isEnd(e,c,v))c=Qe.after(e,v);else if(Qe.isStart(e,c,v)){c=Qe.before(e,v)}}var h,C=Qe.above(e,{match:function(t){return qe.isElement(t)&&Qe.isBlock(e,t)},at:c,voids:i}),y=x(C,2)[1],A=Qe.isStart(e,c,y),g=Qe.isEnd(e,c,y),m=A&&g,E=!A||A&&g,F=!g,b=Je.first({children:t},[]),w=x(b,2)[1],O=Je.last({children:t},[]),j=x(O,2)[1],P=[],_=function(t){var r=x(t,2),n=r[0],u=r[1];return!(0===u.length)&&(!!m||!(E&&B.isAncestor(u,w)&&qe.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(F&&B.isAncestor(u,j)&&qe.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))},S=Jn(Je.nodes({children:t},{pass:_}));try{for(S.s();!(h=S.n()).done;){var k=h.value;_(k)&&P.push(k)}}catch(e){S.e(e)}finally{S.f()}for(var N=[],R=[],T=[],I=!0,M=!1,z=0,L=P;z<L.length;z++){var q=x(L[z],1)[0];qe.isElement(q)&&!e.isInline(q)?(I=!1,M=!0,R.push(q)):I?N.push(q):T.push(q)}var V=Qe.nodes(e,{at:c,match:function(t){return pt.isText(t)||Qe.isInline(e,t)},mode:"highest",voids:i}),$=x(V,1)[0],U=x($,2)[1],W=Qe.isStart(e,c,U),G=Qe.isEnd(e,c,U),J=Qe.pathRef(e,g&&!T.length?B.next(y):y),Z=Qe.pathRef(e,G?B.next(U):U);Kt.splitNodes(e,{at:c,match:function(t){return M?qe.isElement(t)&&Qe.isBlock(e,t):pt.isText(t)||Qe.isInline(e,t)},mode:M?"lowest":"highest",always:M&&(!A||N.length>0)&&(!g||T.length>0),voids:i});var K,Y=Qe.pathRef(e,!W||W&&G?B.next(U):U);if(Kt.insertNodes(e,N,{at:Y.current,match:function(t){return pt.isText(t)||Qe.isInline(e,t)},mode:"highest",voids:i,batchDirty:f}),m&&!N.length&&R.length&&!T.length&&Kt.delete(e,{at:y,voids:i}),Kt.insertNodes(e,R,{at:J.current,match:function(t){return qe.isElement(t)&&Qe.isBlock(e,t)},mode:"lowest",voids:i,batchDirty:f}),Kt.insertNodes(e,T,{at:Z.current,match:function(t){return pt.isText(t)||Qe.isInline(e,t)},mode:"highest",voids:i,batchDirty:f}),!r.at)if(T.length>0&&Z.current?K=B.previous(Z.current):R.length>0&&J.current?K=B.previous(J.current):Y.current&&(K=B.previous(Y.current)),K){var X=Qe.end(e,K);Kt.select(e,X)}Y.unref(),J.unref(),Z.unref()}}}))},Yn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.edge,n=void 0===r?"anchor":r,u=e.selection;if(u)if("anchor"===n)Kt.select(e,u.anchor);else if("focus"===n)Kt.select(e,u.focus);else if("start"===n){var o=ze.edges(u),i=x(o,1),a=i[0];Kt.select(e,a)}else if("end"===n){var c=ze.edges(u),s=x(c,2),f=s[1];Kt.select(e,f)}},Xn=function(e){var t=e.selection;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},Hn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.selection,n=t.distance,u=void 0===n?1:n,o=t.unit,i=void 0===o?"character":o,a=t.reverse,c=void 0!==a&&a,s=t.edge,f=void 0===s?null:s;if(r){"start"===f&&(f=ze.isBackward(r)?"focus":"anchor"),"end"===f&&(f=ze.isBackward(r)?"anchor":"focus");var l=r.anchor,D=r.focus,p={distance:u,unit:i,ignoreNonSelectable:!0},d={};if(null==f||"anchor"===f){var v=c?Qe.before(e,l,p):Qe.after(e,l,p);v&&(d.anchor=v)}if(null==f||"focus"===f){var h=c?Qe.before(e,D,p):Qe.after(e,D,p);h&&(d.focus=h)}Kt.setSelection(e,d)}},Qn=function(e,t){var r=e.selection;if(t=Qe.range(e,t),r)Kt.setSelection(e,t);else{if(!ze.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(it.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}};function eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ru=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.selection,u=r.edge,o=void 0===u?"both":u;if(n){"start"===o&&(o=ze.isBackward(n)?"focus":"anchor"),"end"===o&&(o=ze.isBackward(n)?"anchor":"focus");var i=n.anchor,a=n.focus,c="anchor"===o?i:a;Kt.setSelection(e,E({},"anchor"===o?"anchor":"focus",tu(tu({},c),t)))}},nu=function(e,t){var r=e.selection,n={},u={};if(r){for(var o in t)("anchor"===o&&null!=t.anchor&&!ut.equals(t.anchor,r.anchor)||"focus"===o&&null!=t.focus&&!ut.equals(t.focus,r.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==r[o])&&(n[o]=r[o],u[o]=t[o]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:u})}};function uu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ou(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ou(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var iu=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Qe.withoutNormalizing(e,(function(){var n=r.hanging,u=void 0!==n&&n,o=r.voids,i=void 0!==o&&o,a=r.mode,c=void 0===a?"lowest":a,s=r.batchDirty,f=void 0===s||s,l=r.at,D=r.match,p=r.select;if(Je.isNode(t)&&(t=[t]),0!==t.length){var d=x(t,1)[0];if(l||(l=dt(e),!1!==p&&(p=!0)),null==p&&(p=!1),ze.isRange(l))if(u||(l=Qe.unhangRange(e,l,{voids:i})),ze.isCollapsed(l))l=l.anchor;else{var v=ze.edges(l),h=x(v,2)[1],C=Qe.pointRef(e,h);Kt.delete(e,{at:l}),l=C.unref()}if(ut.isPoint(l)){null==D&&(D=pt.isText(d)?function(e){return pt.isText(e)}:e.isInline(d)?function(t){return pt.isText(t)||Qe.isInline(e,t)}:function(t){return qe.isElement(t)&&Qe.isBlock(e,t)});var A=Qe.nodes(e,{at:l.path,match:D,mode:c,voids:i}),g=x(A,1)[0];if(!g)return;var m=x(g,2)[1],E=Qe.pathRef(e,m),F=Qe.isEnd(e,l,m);Kt.splitNodes(e,{at:l,match:D,mode:c,voids:i});var b=E.unref();l=F?B.next(b):b}var w=B.parent(l),O=l[l.length-1];if(i||!Qe.void(e,{at:w})){if(f){var j=[],P=B.levels(w);Xt(e,(function(){var r,n=uu(t);try{var u=function(){var t=r.value,n=w.concat(O);O++;var u={type:"insert_node",path:n,node:t};e.apply(u),l=B.next(l),j.push(u),pt.isText?P.push.apply(P,y(Array.from(Je.nodes(t),(function(e){var t=x(e,2)[1];return n.concat(t)})))):P.push(n)};for(n.s();!(r=n.n()).done;)u()}catch(e){n.e(e)}finally{n.f()}}),(function(){er(e,P,(function(e){for(var t=e,r=0,n=j;r<n.length;r++){var u=n[r];if(B.operationCanTransformPath(u)&&!(t=B.transform(t,u)))return null}return t}))}))}else{var _,S=uu(t);try{for(S.s();!(_=S.n()).done;){var k=_.value,N=w.concat(O);O++,e.apply({type:"insert_node",path:N,node:k}),l=B.next(l)}}catch(e){S.e(e)}finally{S.f()}}if(l=B.previous(l),p){var R=Qe.end(e,l);R&&Kt.select(e,R)}}}}))},au=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qe.withoutNormalizing(e,(function(){var r=t.at,n=void 0===r?e.selection:r,u=t.mode,o=void 0===u?"lowest":u,i=t.voids,a=void 0!==i&&i,c=t.match;if(null==c&&(c=B.isPath(n)?vt(e,n):function(t){return qe.isElement(t)&&Qe.isBlock(e,t)}),n)for(var s=Qe.nodes(e,{at:n,match:c,mode:o,voids:a}),f=0,l=Array.from(s,(function(t){var r=x(t,2)[1];return Qe.pathRef(e,r)}));f<l.length;f++){var D=l[f].unref();if(D.length<2)throw new Error("Cannot lift node at a path [".concat(D,"] because it has a depth of less than `2`."));var p=Qe.node(e,B.parent(D)),d=x(p,2),v=d[0],h=d[1],C=D[D.length-1],y=v.children.length;if(1===y){var A=B.next(h);Kt.moveNodes(e,{at:D,to:A,voids:a}),Kt.removeNodes(e,{at:h,voids:a})}else if(0===C)Kt.moveNodes(e,{at:D,to:h,voids:a});else if(C===y-1){var g=B.next(h);Kt.moveNodes(e,{at:D,to:g,voids:a})}else{var m=B.next(D),E=B.next(h);Kt.splitNodes(e,{at:m,voids:a}),Kt.moveNodes(e,{at:D,to:E,voids:a})}}}))},cu=["text"],su=["children"],fu=function e(t,r){if(qe.isElement(r)){var n=r;return!!Qe.isVoid(t,r)||1===n.children.length&&e(t,n.children[0])}return!Qe.isEditor(r)},lu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qe.withoutNormalizing(e,(function(){var r=t.match,n=t.at,u=void 0===n?e.selection:n,o=t.hanging,i=void 0!==o&&o,a=t.voids,c=void 0!==a&&a,s=t.mode,f=void 0===s?"lowest":s;if(u){if(null==r)if(B.isPath(u)){var l=Qe.parent(e,u),D=x(l,1)[0];r=function(e){return D.children.includes(e)}}else r=function(t){return qe.isElement(t)&&Qe.isBlock(e,t)};if(!i&&ze.isRange(u)&&(u=Qe.unhangRange(e,u,{voids:c})),ze.isRange(u))if(ze.isCollapsed(u))u=u.anchor;else{var p=ze.edges(u),d=x(p,2)[1],v=Qe.pointRef(e,d);Kt.delete(e,{at:u}),u=v.unref(),null==t.at&&Kt.select(e,u)}var h=Qe.nodes(e,{at:u,match:r,voids:c,mode:f}),C=x(h,1)[0],y=Qe.previous(e,{at:u,match:r,voids:c,mode:f});if(C&&y){var A=x(C,2),g=A[0],m=A[1],E=x(y,2),F=E[0],b=E[1];if(0!==m.length&&0!==b.length){var w,O,j=B.next(b),P=B.common(m,b),_=B.isSibling(m,b),S=Array.from(Qe.levels(e,{at:m}),(function(e){return x(e,1)[0]})).slice(P.length).slice(0,-1),k=Qe.above(e,{at:m,mode:"highest",match:function(t){return S.includes(t)&&fu(e,t)}}),N=k&&Qe.pathRef(e,k[1]);if(pt.isText(g)&&pt.isText(F)){g.text;var R=ke(g,cu);O=F.text.length,w=R}else{if(!qe.isElement(g)||!qe.isElement(F))throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(it.stringify(g)," ").concat(it.stringify(F)));g.children;var T=ke(g,su);O=F.children.length,w=T}_||Kt.moveNodes(e,{at:m,to:j,voids:c}),N&&Kt.removeNodes(e,{at:N.current,voids:c}),Qe.shouldMergeNodesRemovePrevNode(e,y,C)?Kt.removeNodes(e,{at:b,voids:c}):e.apply({type:"merge_node",path:j,position:O,properties:w}),N&&N.unref()}}}}))},Du=function(e,t){Qe.withoutNormalizing(e,(function(){var r=t.to,n=t.at,u=void 0===n?e.selection:n,o=t.mode,i=void 0===o?"lowest":o,a=t.voids,c=void 0!==a&&a,s=t.match;if(u){null==s&&(s=B.isPath(u)?vt(e,u):function(t){return qe.isElement(t)&&Qe.isBlock(e,t)});for(var f=Qe.pathRef(e,r),l=Qe.nodes(e,{at:u,match:s,mode:i,voids:c}),D=0,p=Array.from(l,(function(t){var r=x(t,2)[1];return Qe.pathRef(e,r)}));D<p.length;D++){var d=p[D].unref(),v=f.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:v}),f.current&&B.isSibling(v,d)&&B.isAfter(v,d)&&(f.current=B.next(f.current))}f.unref()}}))},pu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qe.withoutNormalizing(e,(function(){var r=t.hanging,n=void 0!==r&&r,u=t.voids,o=void 0!==u&&u,i=t.mode,a=void 0===i?"lowest":i,c=t.at,s=void 0===c?e.selection:c,f=t.match;if(s){null==f&&(f=B.isPath(s)?vt(e,s):function(t){return qe.isElement(t)&&Qe.isBlock(e,t)}),!n&&ze.isRange(s)&&(s=Qe.unhangRange(e,s,{voids:o}));for(var l=Qe.nodes(e,{at:s,match:f,mode:a,voids:o}),D=0,p=Array.from(l,(function(t){var r=x(t,2)[1];return Qe.pathRef(e,r)}));D<p.length;D++){var d=p[D].unref();if(d){var v=Qe.node(e,d),h=x(v,1)[0];e.apply({type:"remove_node",path:d,node:h})}}}}))};function du(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return vu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vu(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function vu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var hu=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Qe.withoutNormalizing(e,(function(){var n=r.match,u=r.at,o=void 0===u?e.selection:u,i=r.compare,a=r.merge,c=r.hanging,s=void 0!==c&&c,f=r.mode,l=void 0===f?"lowest":f,D=r.split,p=void 0!==D&&D,d=r.voids,v=void 0!==d&&d;if(o){if(null==n&&(n=B.isPath(o)?vt(e,o):function(t){return qe.isElement(t)&&Qe.isBlock(e,t)}),!s&&ze.isRange(o)&&(o=Qe.unhangRange(e,o,{voids:v})),p&&ze.isRange(o)){if(ze.isCollapsed(o)&&Qe.leaf(e,o.anchor)[0].text.length>0)return;var h=Qe.rangeRef(e,o,{affinity:"inward"}),C=ze.edges(o),y=x(C,2),A=y[0],g=y[1],m="lowest"===l?"lowest":"highest",E=Qe.isEnd(e,g,g.path);Kt.splitNodes(e,{at:g,match:n,mode:m,voids:v,always:!E});var F=Qe.isStart(e,A,A.path);Kt.splitNodes(e,{at:A,match:n,mode:m,voids:v,always:!F}),o=h.unref(),null==r.at&&Kt.select(e,o)}i||(i=function(e,t){return e!==t});var b,w=du(Qe.nodes(e,{at:o,match:n,mode:l,voids:v}));try{for(w.s();!(b=w.n()).done;){var O=x(b.value,2),j=O[0],P=O[1],_={},S={};if(0!==P.length){var k=!1;for(var N in t)"children"!==N&&"text"!==N&&i(t[N],j[N])&&(k=!0,j.hasOwnProperty(N)&&(_[N]=j[N]),a?null!=t[N]&&(S[N]=a(j[N],t[N])):null!=t[N]&&(S[N]=t[N]));k&&e.apply({type:"set_node",path:P,properties:_,newProperties:S})}}}catch(e){w.e(e)}finally{w.f()}}}))};function Cu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return yu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yu(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Bu=function(e,t){if(ze.isCollapsed(t))return t.anchor;var r=ze.edges(t),n=x(r,2)[1],u=Qe.pointRef(e,n);return Kt.delete(e,{at:t}),u.unref()},Au=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qe.withoutNormalizing(e,(function(){var r=t.mode,n=void 0===r?"lowest":r,u=t.voids,o=void 0!==u&&u,i=t.match,a=t.at,c=void 0===a?e.selection:a,s=t.height,f=void 0===s?0:s,l=t.always,D=void 0!==l&&l;if(null==i&&(i=function(t){return qe.isElement(t)&&Qe.isBlock(e,t)}),ze.isRange(c)&&(c=Bu(e,c)),B.isPath(c)){var p=c,d=Qe.point(e,p),v=Qe.parent(e,p),h=x(v,1)[0];i=function(e){return e===h},f=d.path.length-p.length+1,c=d,D=!0}if(c){var C,y=Qe.pointRef(e,c,{affinity:"backward"});try{var A=Qe.nodes(e,{at:c,match:i,mode:n,voids:o}),g=x(A,1)[0];if(!g)return;var m=Qe.void(e,{at:c,mode:"highest"});if(!o&&m){var E=x(m,2),F=E[0],b=E[1];if(qe.isElement(F)&&e.isInline(F)){var w=Qe.after(e,b);if(!w){var O=B.next(b);Kt.insertNodes(e,{text:""},{at:O,voids:o}),w=Qe.point(e,O)}c=w,D=!0}f=c.path.length-b.length+1,D=!0}C=Qe.pointRef(e,c);var j,P=c.path.length-f,_=x(g,2)[1],S=c.path.slice(0,P),k=0===f?c.offset:c.path[P]+0,N=Cu(Qe.levels(e,{at:S,reverse:!0,voids:o}));try{for(N.s();!(j=N.n()).done;){var R=x(j.value,2),T=R[0],I=R[1],M=!1;if(I.length<_.length||0===I.length||!o&&qe.isElement(T)&&Qe.isVoid(e,T))break;var z=y.current,L=Qe.isEnd(e,z,I);if(D||!y||!Qe.isEdge(e,z,I)){M=!0;var q=Je.extractProps(T);e.apply({type:"split_node",path:I,position:k,properties:q})}k=I[I.length-1]+(M||L?1:0)}}catch(e){N.e(e)}finally{N.f()}if(null==t.at){var V=C.current||Qe.end(e,[]);Kt.select(e,V)}}finally{var $;y.unref(),null===($=C)||void 0===$||$.unref()}}}))};function gu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return mu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mu(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function mu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Eu=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var n,u={},o=gu(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;u[i]=null}}catch(e){o.e(e)}finally{o.f()}Kt.setNodes(e,u,r)};function Fu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return bu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bu(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,u=function(){};return{s:u,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var wu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qe.withoutNormalizing(e,(function(){var r=t.mode,n=void 0===r?"lowest":r,u=t.split,o=void 0!==u&&u,i=t.voids,a=void 0!==i&&i,c=t.at,s=void 0===c?e.selection:c,f=t.match;if(s){null==f&&(f=B.isPath(s)?vt(e,s):function(t){return qe.isElement(t)&&Qe.isBlock(e,t)}),B.isPath(s)&&(s=Qe.range(e,s));var l,D=ze.isRange(s)?Qe.rangeRef(e,s):null,p=Qe.nodes(e,{at:s,match:f,mode:n,voids:a}),d=Fu(Array.from(p,(function(t){var r=x(t,2)[1];return Qe.pathRef(e,r)})).reverse());try{var v=function(){var t=l.value.unref(),r=Qe.node(e,t),n=x(r,1)[0],u=Qe.range(e,t);o&&D&&(u=ze.intersection(D.current,u)),Kt.liftNodes(e,{at:u,match:function(e){return qe.isAncestor(n)&&n.children.includes(e)},voids:a})};for(d.s();!(l=d.n()).done;)v()}catch(e){d.e(e)}finally{d.f()}D&&D.unref()}}))};function xu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ou(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xu(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ju=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Qe.withoutNormalizing(e,(function(){var n=r.mode,u=void 0===n?"lowest":n,o=r.split,i=void 0!==o&&o,a=r.voids,c=void 0!==a&&a,s=r.match,f=r.at,l=void 0===f?e.selection:f;if(l){if(null==s&&(s=B.isPath(l)?vt(e,l):e.isInline(t)?function(t){return qe.isElement(t)&&Qe.isInline(e,t)||pt.isText(t)}:function(t){return qe.isElement(t)&&Qe.isBlock(e,t)}),i&&ze.isRange(l)){var D=ze.edges(l),p=x(D,2),d=p[0],v=p[1],h=Qe.rangeRef(e,l,{affinity:"inward"});Kt.splitNodes(e,{at:v,match:s,voids:c}),Kt.splitNodes(e,{at:d,match:s,voids:c}),l=h.unref(),null==r.at&&Kt.select(e,l)}for(var C=Array.from(Qe.nodes(e,{at:l,match:e.isInline(t)?function(t){return qe.isElement(t)&&Qe.isBlock(e,t)}:function(e){return Qe.isEditor(e)},mode:"lowest",voids:c})),y=function(){var r=x(g[A],2)[1],n=ze.isRange(l)?ze.intersection(l,Qe.range(e,r)):l;if(!n)return 0;var o=Array.from(Qe.nodes(e,{at:n,match:s,mode:u,voids:c}));if(o.length>0){var i=o[0],a=o[o.length-1],f=x(i,2)[1],D=x(a,2)[1];if(0===f.length&&0===D.length)return 0;var p=B.equals(f,D)?B.parent(f):B.common(f,D),d=Qe.range(e,f,D),v=Qe.node(e,p),h=x(v,1)[0],C=p.length+1,y=B.next(D.slice(0,C)),m=Ou(Ou({},t),{},{children:[]});Kt.insertNodes(e,m,{at:y,voids:c}),Kt.moveNodes(e,{at:d,match:function(e){return qe.isAncestor(h)&&h.children.includes(e)},to:y.concat(0),voids:c})}},A=0,g=C;A<g.length;A++)y()}}))};e.Editor=Qe,e.Element=qe,e.Location=et,e.Node=Je,e.Operation=Ye,e.Path=B,e.PathRef=t,e.Point=ut,e.PointRef=r,e.Range=ze,e.RangeRef=n,e.Scrubber=it,e.Span=tt,e.Text=pt,e.Transforms=Kt,e.above=Dr,e.addMark=vr,e.after=Ar,e.apply=nr,e.before=br,e.collapse=Yn,e.createEditor=function(){var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:function(){return!1},isInline:function(){return!1},isSelectable:function(){return!0},isVoid:function(){return!1},markableVoid:function(){return!1},onChange:function(){},apply:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return nr.apply(void 0,[e].concat(r))},addMark:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return vr.apply(void 0,[e].concat(r))},deleteBackward:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return wr.apply(void 0,[e].concat(r))},deleteForward:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return xr.apply(void 0,[e].concat(r))},deleteFragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Or.apply(void 0,[e].concat(r))},getFragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ar.apply(void 0,[e].concat(r))},insertBreak:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $r.apply(void 0,[e].concat(r))},insertSoftBreak:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Wr.apply(void 0,[e].concat(r))},insertFragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Kn.apply(void 0,[e].concat(r))},insertNode:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ur.apply(void 0,[e].concat(r))},insertText:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Zr.apply(void 0,[e].concat(r))},normalizeNode:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return cr.apply(void 0,[e].concat(r))},removeMark:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return kn.apply(void 0,[e].concat(r))},getDirtyPaths:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ir.apply(void 0,[e].concat(r))},shouldNormalize:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return sr.apply(void 0,[e].concat(r))},above:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Dr.apply(void 0,[e].concat(r))},after:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ar.apply(void 0,[e].concat(r))},before:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return br.apply(void 0,[e].concat(r))},collapse:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Yn.apply(void 0,[e].concat(r))},delete:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Gn.apply(void 0,[e].concat(r))},deselect:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Xn.apply(void 0,[e].concat(r))},edges:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return jr.apply(void 0,[e].concat(r))},elementReadOnly:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Sr.apply(void 0,[e].concat(r))},end:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return kr.apply(void 0,[e].concat(r))},first:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Nr.apply(void 0,[e].concat(r))},fragment:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Rr.apply(void 0,[e].concat(r))},getMarks:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return sn.apply(void 0,[e].concat(r))},hasBlocks:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zr.apply(void 0,[e].concat(r))},hasInlines:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Lr.apply(void 0,[e].concat(r))},hasPath:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return qr.apply(void 0,[e].concat(r))},hasTexts:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Vr.apply(void 0,[e].concat(r))},insertNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return iu.apply(void 0,[e].concat(r))},isBlock:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Kr.apply(void 0,[e].concat(r))},isEdge:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Yr.apply(void 0,[e].concat(r))},isEmpty:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Xr.apply(void 0,[e].concat(r))},isEnd:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Hr.apply(void 0,[e].concat(r))},isNormalizing:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Qr.apply(void 0,[e].concat(r))},isStart:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return en.apply(void 0,[e].concat(r))},last:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tn.apply(void 0,[e].concat(r))},leaf:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return rn.apply(void 0,[e].concat(r))},levels:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return on.apply(void 0,[e].concat(r))},liftNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return au.apply(void 0,[e].concat(r))},mergeNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return lu.apply(void 0,[e].concat(r))},move:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Hn.apply(void 0,[e].concat(r))},moveNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Du.apply(void 0,[e].concat(r))},next:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return fn.apply(void 0,[e].concat(r))},node:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ln.apply(void 0,[e].concat(r))},nodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return dn.apply(void 0,[e].concat(r))},normalize:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cn.apply(void 0,[e].concat(r))},parent:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return yn.apply(void 0,[e].concat(r))},path:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return gn.apply(void 0,[e].concat(r))},pathRef:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Bn.apply(void 0,[e].concat(r))},pathRefs:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return An.apply(void 0,[e].concat(r))},point:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Fn.apply(void 0,[e].concat(r))},pointRef:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return mn.apply(void 0,[e].concat(r))},pointRefs:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return En.apply(void 0,[e].concat(r))},positions:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return xn.apply(void 0,[e].concat(r))},previous:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return On.apply(void 0,[e].concat(r))},range:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _n.apply(void 0,[e].concat(r))},rangeRef:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return jn.apply(void 0,[e].concat(r))},rangeRefs:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Pn.apply(void 0,[e].concat(r))},removeNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return pu.apply(void 0,[e].concat(r))},select:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Qn.apply(void 0,[e].concat(r))},setNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return hu.apply(void 0,[e].concat(r))},setNormalizing:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Nn.apply(void 0,[e].concat(r))},setPoint:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ru.apply(void 0,[e].concat(r))},setSelection:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return nu.apply(void 0,[e].concat(r))},splitNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Au.apply(void 0,[e].concat(r))},start:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Rn.apply(void 0,[e].concat(r))},string:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Mn.apply(void 0,[e].concat(r))},unhangRange:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return qn.apply(void 0,[e].concat(r))},unsetNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Eu.apply(void 0,[e].concat(r))},unwrapNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return wu.apply(void 0,[e].concat(r))},void:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Mr.apply(void 0,[e].concat(r))},withoutNormalizing:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Vn.apply(void 0,[e].concat(r))},wrapNodes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ju.apply(void 0,[e].concat(r))},shouldMergeNodesRemovePrevNode:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $n.apply(void 0,[e].concat(r))}};return e},e.deleteBackward=wr,e.deleteForward=xr,e.deleteFragment=Or,e.deleteText=Gn,e.deselect=Xn,e.edges=jr,e.elementReadOnly=Sr,e.end=kr,e.first=Nr,e.fragment=Rr,e.getDirtyPaths=ir,e.getFragment=ar,e.getVoid=Mr,e.hasBlocks=zr,e.hasInlines=Lr,e.hasPath=qr,e.hasTexts=Vr,e.insertBreak=$r,e.insertFragment=Kn,e.insertNode=Ur,e.insertNodes=iu,e.insertSoftBreak=Wr,e.insertText=Zr,e.isBlock=Kr,e.isEdge=Yr,e.isEditor=He,e.isEmpty=Xr,e.isEnd=Hr,e.isNormalizing=Qr,e.isStart=en,e.last=tn,e.leaf=rn,e.levels=on,e.liftNodes=au,e.marks=sn,e.mergeNodes=lu,e.move=Hn,e.moveNodes=Du,e.next=fn,e.node=ln,e.nodes=dn,e.normalize=Cn,e.normalizeNode=cr,e.parent=yn,e.path=gn,e.pathRef=Bn,e.pathRefs=An,e.point=Fn,e.pointRef=mn,e.pointRefs=En,e.positions=xn,e.previous=On,e.range=_n,e.rangeRef=jn,e.rangeRefs=Pn,e.removeMark=kn,e.removeNodes=pu,e.select=Qn,e.setNodes=hu,e.setNormalizing=Nn,e.setPoint=ru,e.setSelection=nu,e.shouldMergeNodesRemovePrevNode=$n,e.shouldNormalize=sr,e.splitNodes=Au,e.start=Rn,e.string=Mn,e.unhangRange=qn,e.unsetNodes=Eu,e.unwrapNodes=wu,e.withoutNormalizing=Vn,e.wrapNodes=ju}));
|