/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[188],{10:function(t,e,n){"use strict";n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return M})),n.d(e,"c",(function(){return y})),n.d(e,"d",(function(){return j})),n.d(e,"e",(function(){return B})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return m}));var r=n(2),o=n(21);const l=Object.create(null);class c{constructor(t,e,n){this.$anchor=t,this.$head=e,this.ranges=n||[new h(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let i=0;i=0;r--){let o=e<0?S(t.node(0),t.node(r),t.before(r+1),t.index(r),e,n):S(t.node(0),t.node(r),t.after(r+1),t.index(r)+1,e,n);if(o)return o}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new x(t.node(0))}static atStart(t){return S(t,t,0,0,1)||new x(t)}static atEnd(t){return S(t,t,t.content.size,t.childCount,-1)||new x(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=l[e.type];if(!n)throw new RangeError(`No selection type ${e.type} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in l)throw new RangeError("Duplicate use of selection JSON ID "+t);return l[t]=e,e.prototype.jsonID=t,e}getBookmark(){return m.between(this.$anchor,this.$head).getBookmark()}}c.prototype.visible=!0;class h{constructor(t,e){this.$from=t,this.$to=e}}let d=!1;function f(t){d||t.parent.inlineContent||(d=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class m extends c{constructor(t,e=t){f(t),f(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let n=t.resolve(e.map(this.head));if(!n.parent.inlineContent)return c.near(n);let r=t.resolve(e.map(this.anchor));return new m(r.parent.inlineContent?r:n,n)}replace(tr,content=r.j.empty){if(super.replace(tr,content),content==r.j.empty){let t=this.$from.marksAcross(this.$to);t&&tr.ensureMarks(t)}}eq(t){return t instanceof m&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new v(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new m(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,head=e){let n=t.resolve(e);return new this(n,head==e?n:t.resolve(head))}static between(t,e,n){let r=t.pos-e.pos;if(n&&!r||(n=r>=0?1:-1),!e.parent.inlineContent){let t=c.findFrom(e,n,!0)||c.findFrom(e,-n,!0);if(!t)return c.near(e,n);e=t.$head}return t.parent.inlineContent||(0==r||(t=(c.findFrom(t,-n,!0)||c.findFrom(t,n,!0)).$anchor).posnew x(t)};function S(t,e,n,r,o,text=!1){if(e.inlineContent)return m.create(t,n);for(let i=r-(o>0?0:1);o>0?i=0;i+=o){let r=e.child(i);if(r.isAtom){if(!text&&y.isSelectable(r))return y.create(t,n-(o<0?r.nodeSize:0))}else{let e=S(t,r,n+o,o<0?r.childCount:0,o,text);if(e)return e}n+=r.nodeSize*o}return null}function _(tr,t,e){let n=tr.steps.length-1;if(n{null==r&&(r=o)})),tr.setSelection(c.near(tr.doc.resolve(r),e)))}class C extends o.d{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return r.d.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(mark){return this.ensureMarks(mark.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(mark){return this.ensureMarks(mark.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(time){return this.time=time,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection;return e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.d.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(text,t,e){let n=this.doc.type.schema;if(null==t)return text?this.replaceSelectionWith(n.text(text),!0):this.deleteSelection();{if(null==e&&(e=t),e=null==e?t:e,!text)return this.deleteRange(t,e);let r=this.storedMarks;if(!r){let n=this.doc.resolve(t);r=e==t?n.marks():n.marksAcross(this.doc.resolve(e))}return this.replaceRangeWith(t,e,n.text(text,r)),this.selection.empty||this.setSelection(c.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function O(t,e){return e&&t?t.bind(e):t}class E{constructor(t,desc,e){this.name=t,this.init=O(desc.init,e),this.apply=O(desc.apply,e)}}const A=[new E("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:tr=>tr.doc}),new E("selection",{init:(t,e)=>t.selection||c.atStart(e.doc),apply:tr=>tr.selection}),new E("storedMarks",{init:t=>t.storedMarks||null,apply:(tr,t,e,n)=>n.selection.$cursor?tr.storedMarks:null}),new E("scrollToSelection",{init:()=>0,apply:(tr,t)=>tr.scrolledIntoView?t+1:t})];class T{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=A.slice(),e&&e.forEach((t=>{if(this.pluginsByKey[t.key])throw new RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new E(t.key,t.spec.state,t))}))}}class M{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(tr){return this.applyTransaction(tr).state}filterTransaction(tr,t=-1){for(let i=0;it.toJSON()))),t&&"object"==typeof t)for(let n in t){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[n],o=r.spec.state;o&&o.toJSON&&(e[n]=o.toJSON.call(r,this[r.key]))}return e}static fromJSON(t,e,n){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let o=new T(t.schema,t.plugins),l=new M(o);return o.fields.forEach((o=>{if("doc"==o.name)l.doc=r.f.fromJSON(t.schema,e.doc);else if("selection"==o.name)l.selection=c.fromJSON(l.doc,e.selection);else if("storedMarks"==o.name)e.storedMarks&&(l.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let r in n){let c=n[r],h=c.spec.state;if(c.key==o.name&&h&&h.fromJSON&&Object.prototype.hasOwnProperty.call(e,r))return void(l[o.name]=h.fromJSON.call(c,t,e[r],l))}l[o.name]=o.init(t,l)}})),l}}function D(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):"handleDOMEvents"==r&&(o=D(o,e,{})),n[r]=o}return n}class j{constructor(t){this.spec=t,this.props={},t.props&&D(t.props,this,this.props),this.key=t.key?t.key.key:R("plugin")}getState(t){return t[this.key]}}const P=Object.create(null);function R(t){return t in P?t+"$"+ ++P[t]:(P[t]=0,t+"$")}class B{constructor(t="key"){this.key=R(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}},114:function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=r},131:function(t,e,n){"use strict";var r=n(663);t.exports.debounce=function(t,e,n){var r;return function(){var o=this,l=arguments,c=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||t.apply(o,l)}),e),c&&t.apply(o,l)}},t.exports.format=function(template){var t=Array.prototype.slice.call(arguments,1);return template.replace(/{(\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))},t.exports.isArray=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},t.exports.isEmpty=function(e){return t.exports.isArray(e)?!e.length:null==e||!String(e).trim().length},t.exports.isEqual=function(t,e){return r(t,e)},t.exports.isFunction=function(t){return"function"==typeof t},t.exports.isNaN=function(t){return/^\s*$/.test(t)||isNaN(t)},t.exports.isNull=function(t){return null===t},t.exports.isString=function(t){return"string"==typeof t||t instanceof String},t.exports.isUndefined=function(t){return void 0===t},t.exports.omit=function(t,e){var n={};for(var r in t)r!==e&&(n[r]=t[r]);return n},t.exports.templates=n(666),t.exports.mode="interactive"},132:function(t,e,n){"use strict";n.d(e,"a",(function(){return Ge})),n.d(e,"b",(function(){return Xe})),n.d(e,"c",(function(){return wn}));var r=n(10),o=n(2),l=n(21);const c=function(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e},h=function(t){let e=t.assignedSlot||t.parentNode;return e&&11==e.nodeType?e.host:e};let d=null;const f=function(t,e,n){let r=d||(d=document.createRange());return r.setEnd(t,null==n?t.nodeValue.length:n),r.setStart(t,e||0),r},m=function(t,e,n,r){return n&&(y(t,e,n,r,-1)||y(t,e,n,r,1))},v=/^(img|br|input|textarea|hr)$/i;function y(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:w(t))){let n=t.parentNode;if(!n||1!=n.nodeType||x(t)||v.test(t.nodeName)||"false"==t.contentEditable)return!1;e=c(t)+(o<0?0:1),t=n}else{if(1!=t.nodeType)return!1;if("false"==(t=t.childNodes[e+(o<0?-1:0)]).contentEditable)return!1;e=o<0?w(t):0}}}function w(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function x(t){let desc;for(let e=t;e&&!(desc=e.pmViewDesc);e=e.parentNode);return desc&&desc.node&&desc.node.isBlock&&(desc.dom==t||desc.contentDOM==t)}const k=function(t){return t.focusNode&&m(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function S(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}const nav="undefined"!=typeof navigator?navigator:null,_="undefined"!=typeof document?document:null,C=nav&&nav.userAgent||"",O=/Edge\/(\d+)/.exec(C),E=/MSIE \d/.exec(C),A=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(C),T=!!(E||A||O),M=E?document.documentMode:A?+A[1]:O?+O[1]:0,D=!T&&/gecko\/(\d+)/i.test(C);D&&(/Firefox\/(\d+)/.exec(C)||[0,0])[1];const j=!T&&/Chrome\/(\d+)/.exec(C),P=!!j,R=j?+j[1]:0,B=!T&&!!nav&&/Apple Computer/.test(nav.vendor),$=B&&(/Mobile\/\w+/.test(C)||!!nav&&nav.maxTouchPoints>2),N=$||!!nav&&/Mac/.test(nav.platform),L=!!nav&&/Win/.test(nav.platform),I=/Android \d/.test(C),F=!!_&&"webkitFontSmoothing"in _.documentElement.style,z=F?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function V(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function H(t,e){return"number"==typeof t?t:t[e]}function W(t){let rect=t.getBoundingClientRect(),e=rect.width/t.offsetWidth||1,n=rect.height/t.offsetHeight||1;return{left:rect.left,right:rect.left+t.clientWidth*e,top:rect.top,bottom:rect.top+t.clientHeight*n}}function U(view,rect,t){let e=view.someProp("scrollThreshold")||0,n=view.someProp("scrollMargin")||5,r=view.dom.ownerDocument;for(let o=t||view.dom;o;o=h(o)){if(1!=o.nodeType)continue;let t=o,l=t==r.body,c=l?V(r):W(t),h=0,d=0;if(rect.topc.bottom-H(e,"bottom")&&(d=rect.bottom-c.bottom+H(n,"bottom")),rect.leftc.right-H(e,"right")&&(h=rect.right-c.right+H(n,"right")),h||d)if(l)r.defaultView.scrollBy(h,d);else{let e=t.scrollLeft,n=t.scrollTop;d&&(t.scrollTop+=d),h&&(t.scrollLeft+=h);let r=t.scrollLeft-e,o=t.scrollTop-n;rect={left:rect.left-r,top:rect.top-o,right:rect.right-r,bottom:rect.bottom-o}}if(l)break}}function Y(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=h(r));return e}function G(t,e){for(let i=0;i=m){d=Math.max(rect.bottom,d),m=Math.min(rect.top,m);let t=rect.left>e.left?rect.left-e.left:rect.right=(rect.left+rect.right)/2?1:0));continue}}else rect.top>e.top&&!o&&rect.left<=e.left&&rect.right>=e.left&&(o=v,l={left:Math.max(rect.left,Math.min(rect.right,e.left)),top:rect.top});!n&&(e.left>=rect.right&&e.top>=rect.top||e.left>=rect.left&&e.top>=rect.bottom)&&(h=y+1)}}return!n&&o&&(n=o,r=l,c=0),n&&3==n.nodeType?function(t,e){let n=t.nodeValue.length,r=document.createRange();for(let i=0;i=(rect.left+rect.right)/2?1:0)}}return{node:t,offset:0}}(n,r):!n||c&&1==n.nodeType?{node:t,offset:h}:J(n,r)}function X(t,rect){return t.left>=rect.left-1&&t.left<=rect.right+1&&t.top>=rect.top-1&&t.top<=rect.bottom+1}function Z(element,t,e){let n=element.childNodes.length;if(n&&e.topt.top&&r++}e==view.dom&&r==e.childNodes.length-1&&1==e.lastChild.nodeType&&t.top>e.lastChild.getBoundingClientRect().bottom?l=view.state.doc.content.size:0!=r&&1==e.nodeType&&"BR"==e.childNodes[r-1].nodeName||(l=function(view,t,e,n){let r=-1;for(let e=t,o=!1;e!=view.dom;){let desc=view.docView.nearestDesc(e,!0);if(!desc)return null;if(1==desc.dom.nodeType&&(desc.node.isBlock&&desc.parent&&!o||!desc.contentDOM)){let rect=desc.dom.getBoundingClientRect();if(desc.node.isBlock&&desc.parent&&!o&&(o=!0,rect.left>n.left||rect.top>n.top?r=desc.posBefore:(rect.right-1?r:view.docView.posFromDOM(t,e,-1)}(view,e,r,t))}null==l&&(l=function(view,t,e){let{node:n,offset:r}=J(t,e),o=-1;if(1==n.nodeType&&!n.firstChild){let rect=n.getBoundingClientRect();o=rect.left!=rect.right&&e.left>(rect.left+rect.right)/2?1:-1}return view.docView.posFromDOM(n,r,o)}(view,c,t));let desc=view.docView.nearestDesc(c,!0);return{pos:l,inside:desc?desc.posAtStart-desc.border:-1}}function tt(rect){return rect.top=0&&r==n.nodeValue.length?(t--,l=1):e<0?t--:o++,ot(et(f(n,t,o),l),l<0)}{let rect=et(f(n,r,r),e);if(D&&r&&/\s/.test(n.nodeValue[r-1])&&r=0)}if(null==o&&r&&(e<0||r==w(n))){let t=n.childNodes[r-1],e=3==t.nodeType?f(t,w(t)-(l?0:1)):1!=t.nodeType||"BR"==t.nodeName&&t.nextSibling?null:t;if(e)return ot(et(e,1),!1)}if(null==o&&r=0)}function ot(rect,t){if(0==rect.width)return rect;let e=t?rect.left:rect.right;return{top:rect.top,bottom:rect.bottom,left:e,right:e}}function st(rect,t){if(0==rect.height)return rect;let e=t?rect.top:rect.bottom;return{top:e,bottom:e,left:rect.left,right:rect.right}}function at(view,t,e){let n=view.state,r=view.root.activeElement;n!=t&&view.updateState(t),r!=view.dom&&view.focus();try{return e()}finally{n!=t&&view.updateState(n),r!=view.dom&&r&&r.focus()}}const lt=/[\u0590-\u08ac]/;let ct=null,ut=null,ht=!1;function pt(view,t,e){return ct==t&&ut==e?ht:(ct=t,ut=e,ht="up"==e||"down"==e?function(view,t,e){let n=t.selection,r="up"==e?n.$from:n.$to;return at(view,t,(()=>{let{node:t}=view.docView.domFromPos(r.pos,"up"==e?-1:1);for(;;){let e=view.docView.nearestDesc(t,!0);if(!e)break;if(e.node.isBlock){t=e.contentDOM||e.dom;break}t=e.dom.parentNode}let n=it(view,r.pos,1);for(let r=t.firstChild;r;r=r.nextSibling){let t;if(1==r.nodeType)t=r.getClientRects();else{if(3!=r.nodeType)continue;t=f(r,0,r.nodeValue.length).getClientRects()}for(let i=0;ir.top+1&&("up"==e?n.top-r.top>2*(r.bottom-n.top):r.bottom-n.bottom>2*(n.bottom-r.top)))return!1}}return!0}))}(view,t,e):function(view,t,e){let{$head:n}=t.selection;if(!n.parent.isTextblock)return!1;let r=n.parentOffset,o=!r,l=r==n.parent.content.size,c=view.domSelection();return lt.test(n.parent.textContent)&&c.modify?at(view,t,(()=>{let{focusNode:t,focusOffset:r,anchorNode:o,anchorOffset:l}=view.domSelectionRange(),h=c.caretBidiLevel;c.modify("move",e,"character");let d=n.depth?view.docView.domAfterPos(n.before()):view.dom,{focusNode:f,focusOffset:m}=view.domSelectionRange(),v=f&&!d.contains(1==f.nodeType?f:f.parentNode)||t==f&&r==m;try{c.collapse(o,l),t&&(t!=o||r!=l)&&c.extend&&c.extend(t,r)}catch(t){}return null!=h&&(c.caretBidiLevel=h),v})):"left"==e||"backward"==e?o:l}(view,t,e))}class ft{constructor(t,e,n,r){this.parent=t,this.children=e,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(mark){return!1}matchesNode(t,e,n){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let i=0;ic(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let e=t;;e=e.parentNode){if(e==this.dom){r=!1;break}if(e.previousSibling)break}if(null==r&&e==t.childNodes.length)for(let e=t;;e=e.parentNode){if(e==this.dom){r=!0;break}if(e.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let n=!0,r=t;r;r=r.parentNode){let o,desc=this.getDesc(r);if(desc&&(!e||desc.node)){if(!n||!(o=desc.nodeDOM)||(1==o.nodeType?o.contains(1==t.nodeType?t:t.parentNode):o==t))return desc;n=!1}}}getDesc(t){let desc=t.pmViewDesc;for(let t=desc;t;t=t.parent)if(t==this)return desc}posFromDOM(t,e,n){for(let r=t;r;r=r.parentNode){let desc=this.getDesc(r);if(desc)return desc.localPosFromDOM(t,e,n)}return-1}descAt(t){for(let i=0,e=0;it||r instanceof xt){n=t-e;break}e=o}if(n)return this.children[i].domFromPos(n-this.children[i].border,e);for(let t;i&&!(t=this.children[i-1]).size&&t instanceof mt&&t.side>=0;i--);if(e<=0){let t,n=!0;for(;t=i?this.children[i-1]:null,t&&t.dom.parentNode!=this.contentDOM;i--,n=!1);return t&&e&&n&&!t.border&&!t.domAtom?t.domFromPos(t.size,e):{node:this.contentDOM,offset:t?c(t.dom)+1:0}}{let t,n=!0;for(;t=i=r&&e<=h-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,e,r);t=o;for(let e=i;e>0;e--){let r=this.children[e-1];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(1)){n=c(r.dom)+1;break}t-=r.size}-1==n&&(n=0)}if(n>-1&&(h>e||i==this.children.length-1)){e=h;for(let t=i+1;tl&&ohead){let t=l;l=h,h=t}let e=document.createRange();e.setEnd(h.node,h.offset),e.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(e)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let n=0,i=0;i=n:tn){let l=n+r.border,c=o-r.border;if(t>=l&&e<=c)return this.dirty=t==n||e==o?2:1,void(t!=l||e!=c||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(t-l,e-l):r.dirty=3);r.dirty=r.dom!=r.contentDOM||r.dom.parentNode!=this.contentDOM||r.children.length?3:2}n=o}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let n=1==t?2:1;e.dirtyr?r.parent?r.parent.posBeforeChild(r):void 0:n))),!e.type.spec.raw){if(1!=o.nodeType){let t=document.createElement("span");t.appendChild(o),o=t}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(t,[],o,null),this.widget=e,this.widget=e,r=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class gt extends ft{constructor(t,e,n,text){super(t,[],e,null),this.textDOM=n,this.text=text}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class vt extends ft{constructor(t,mark,e,n){super(t,[],e,n),this.mark=mark}static create(t,mark,e,view){let n=view.nodeViews[mark.type.name],r=n&&n(mark,view,e);return r&&r.dom||(r=o.b.renderSpec(document,mark.type.spec.toDOM(mark,e))),new vt(t,mark,r.dom,r.contentDOM||r.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(mark){return 3!=this.dirty&&this.mark.eq(mark)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let t=this.parent;for(;!t.node;)t=t.parent;t.dirty0&&(r=Rt(r,0,t,view));for(let i=0;ic?c.parent?c.parent.posBeforeChild(c):void 0:l),n,r),f=d&&d.dom,m=d&&d.contentDOM;if(e.isText)if(f){if(3!=f.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else f=document.createTextNode(e.text);else f||({dom:f,contentDOM:m}=o.b.renderSpec(document,e.type.spec.toDOM(e)));m||e.isText||"BR"==f.nodeName||(f.hasAttribute("contenteditable")||(f.contentEditable="false"),e.type.spec.draggable&&(f.draggable=!0));let v=f;return f=Tt(f,n,e),d?c=new kt(t,e,n,r,f,m||null,v,d,view,l+1):e.isText?new wt(t,e,n,r,f,v,view):new bt(t,e,n,r,f,m||null,v,view,l+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let i=this.children.length-1;i>=0;i--){let e=this.children[i];if(this.dom.contains(e.dom.parentNode)){t.contentElement=e.dom.parentNode;break}}t.contentElement||(t.getContent=()=>o.c.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,n){return 0==this.dirty&&t.eq(this.node)&&Mt(e,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(view,t){let e=this.node.inlineContent,n=t,r=view.composing?this.localCompositionInfo(view,t):null,l=r&&r.pos>-1?r:null,c=r&&r.pos<0,h=new jt(this,l&&l.node,view);!function(t,e,n,r){let o=e.locals(t),l=0;if(0==o.length){for(let i=0;il;)h.push(o[c++]);let y=l+m.nodeSize;if(m.isText){let t=y;c!t.inline)):h.slice(),e.forChild(l,m),v),l=y}}(this.node,this.innerDeco,((t,i,r)=>{t.spec.marks?h.syncToMarks(t.spec.marks,e,view):t.type.side>=0&&!r&&h.syncToMarks(i==this.node.childCount?o.d.none:this.node.child(i).marks,e,view),h.placeWidget(t,view,n)}),((t,o,l,i)=>{let d;h.syncToMarks(t.marks,e,view),h.findNodeMatch(t,o,l,i)||c&&view.state.selection.from>n&&view.state.selection.to-1&&h.updateNodeAt(t,o,l,d,view)||h.updateNextNode(t,o,l,view,i,n)||h.addNode(t,o,l,view,n),n+=t.nodeSize})),h.syncToMarks([],e,view),this.node.isTextblock&&h.addTextblockHacks(),h.destroyRest(),(h.changed||2==this.dirty)&&(l&&this.protectLocalComposition(view,l),St(this.contentDOM,this.children,view),$&&function(t){if("UL"==t.nodeName||"OL"==t.nodeName){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}(this.dom))}localCompositionInfo(view,t){let{from:e,to:n}=view.state.selection;if(!(view.state.selection instanceof r.h)||et+this.node.content.size)return null;let o=view.domSelectionRange(),l=function(t,e){for(;;){if(3==t.nodeType)return t;if(1==t.nodeType&&e>0){if(t.childNodes.length>e&&3==t.childNodes[e].nodeType)return t.childNodes[e];e=w(t=t.childNodes[e-1])}else{if(!(1==t.nodeType&&e=e){let t=l=0&&t+text.length+l>=e)return l+t;if(e==n&&c.length>=n+text.length-l&&c.slice(n-l,n-l+text.length)==text)return n}}return-1}(this.node.content,text,e-t,n-t);return r<0?null:{node:l,pos:r,text:text}}return{node:l,pos:-1,text:""}}protectLocalComposition(view,{node:t,pos:e,text:text}){if(this.getDesc(t))return;let n=t;for(;n.parentNode!=this.contentDOM;n=n.parentNode){for(;n.previousSibling;)n.parentNode.removeChild(n.previousSibling);for(;n.nextSibling;)n.parentNode.removeChild(n.nextSibling);n.pmViewDesc&&(n.pmViewDesc=void 0)}let desc=new gt(this,n,t,text);view.input.compositionNodes.push(desc),this.children=Rt(this.children,e,e+text.length,view,desc)}update(t,e,n,view){return!(3==this.dirty||!t.sameMarkup(this.node))&&(this.updateInner(t,e,n,view),!0)}updateInner(t,e,n,view){this.updateOuterDeco(e),this.node=t,this.innerDeco=n,this.contentDOM&&this.updateChildren(view,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(Mt(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Et(this.dom,this.nodeDOM,Ot(this.outerDeco,this.node,e),Ot(t,this.node,e)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function yt(t,e,n,r,view){Tt(r,e,t);let o=new bt(void 0,t,e,n,r,r,r,view,0);return o.contentDOM&&o.updateChildren(view,0),o}class wt extends bt{constructor(t,e,n,r,o,l,view){super(t,e,n,r,o,null,l,view,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,n,view){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node))&&(this.updateOuterDeco(e),0==this.dirty&&t.text==this.node.text||t.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=t.text,view.trackWrites==this.nodeDOM&&(view.trackWrites=null)),this.node=t,this.dirty=0,!0)}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,n){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,n)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,view){let n=this.node.cut(t,e),r=document.createTextNode(n.text);return new wt(this.parent,n,this.outerDeco,this.innerDeco,r,r,view)}markDirty(t,e){super.markDirty(t,e),this.dom==this.nodeDOM||0!=t&&e!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}}class xt extends ft{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class kt extends bt{constructor(t,e,n,r,o,l,c,h,view,d){super(t,e,n,r,o,l,c,view,d),this.spec=h}update(t,e,n,view){if(3==this.dirty)return!1;if(this.spec.update){let r=this.spec.update(t,e,n);return r&&this.updateInner(t,e,n,view),r}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,n,view)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,head,e,n){this.spec.setSelection?this.spec.setSelection(t,head,e):super.setSelection(t,head,e,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function St(t,e,view){let n=t.firstChild,r=!1;for(let i=0;i0;){let desc;for(;;)if(r){let t=n.children[r-1];if(!(t instanceof vt)){desc=t,r--;break}n=t,r=t.children.length}else{if(n==e)break t;r=n.parent.children.indexOf(n),n=n.parent}let h=desc.node;if(h){if(h!=t.child(o-1))break;--o,l.set(desc,o),c.push(desc)}}return{index:o,matched:l,matches:c.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let i=t;i>1,o=Math.min(r,t.length);for(;n-1)n>this.index&&(this.changed=!0,this.destroyBetween(this.index,n)),this.top=this.top.children[this.index];else{let n=vt.create(this.top,t[r],e,view);this.top.children.splice(this.index,0,n),this.top=n,this.changed=!0}this.index=0,r++}}findNodeMatch(t,e,n,r){let o,l=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(t,e,n))l=this.top.children.indexOf(o,this.index);else for(let i=this.index,r=Math.min(this.top.children.length,i+5);i=n||d<=e?o.push(c):(hn&&o.push(c.slice(n-h,c.size,view)))}return o}function Bt(view,t=null){let e=view.domSelectionRange(),n=view.state.doc;if(!e.focusNode)return null;let o=view.docView.nearestDesc(e.focusNode),l=o&&0==o.size,head=view.docView.posFromDOM(e.focusNode,e.focusOffset,1);if(head<0)return null;let h,d,f=n.resolve(head);if(k(e)){for(h=f;o&&!o.node;)o=o.parent;let t=o.node;if(o&&t.isAtom&&r.c.isSelectable(t)&&o.parent&&(!t.isInline||!function(t,e,n){for(let r=0==e,o=e==w(t);r||o;){if(t==n)return!0;let e=c(t);if(!(t=t.parentNode))return!1;r=r&&0==e,o=o&&e==w(t)}}(e.focusNode,e.focusOffset,o.dom))){let t=o.posBefore;d=new r.c(head==t?f:n.resolve(t))}}else{let t=view.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(t<0)return null;h=n.resolve(t)}if(!d){d=Wt(view,h,f,"pointer"==t||view.state.selection.head{e.anchorNode==n&&e.anchorOffset==r||(t.removeEventListener("selectionchange",view.input.hideSelectionGuard),setTimeout((()=>{$t(view)&&!view.state.selection.visible||view.dom.classList.remove("ProseMirror-hideselection")}),20))})}(view))}view.domObserver.setCurSelection(),view.domObserver.connectSelection()}}const Lt=B||P&&R<63;function It(view,t){let{node:e,offset:n}=view.docView.domFromPos(t,0),r=nn(view,t,e)))||r.h.between(t,e,n)}function qt(view){return!(view.editable&&!view.hasFocus())&&Ut(view)}function Ut(view){let t=view.domSelectionRange();if(!t.anchorNode)return!1;try{return view.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(view.editable||view.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(t){return!1}}function Yt(t,e){let{$anchor:n,$head:o}=t.selection,l=e>0?n.max(o):n.min(o),c=l.parent.inlineContent?l.depth?t.doc.resolve(e>0?l.after():l.before()):null:l;return c&&r.f.findFrom(c,e)}function Gt(view,t){return view.dispatch(view.state.tr.setSelection(t).scrollIntoView()),!0}function Kt(view,t,e){let n=view.state.selection;if(!(n instanceof r.h)){if(n instanceof r.c&&n.node.isInline)return Gt(view,new r.h(t>0?n.$to:n.$from));{let e=Yt(view.state,t);return!!e&&Gt(view,e)}}if(!n.empty||e.indexOf("s")>-1)return!1;if(view.endOfTextblock(t>0?"forward":"backward")){let e=Yt(view.state,t);return!!(e&&e instanceof r.c)&&Gt(view,e)}if(!(N&&e.indexOf("m")>-1)){let desc,e=n.$head,o=e.textOffset?null:t<0?e.nodeBefore:e.nodeAfter;if(!o||o.isText)return!1;let l=t<0?e.pos-o.nodeSize:e.pos;return!!(o.isAtom||(desc=view.docView.descAt(l))&&!desc.contentDOM)&&(r.c.isSelectable(o)?Gt(view,new r.c(t<0?view.state.doc.resolve(e.pos-o.nodeSize):e)):!!F&&Gt(view,new r.h(view.state.doc.resolve(t<0?l:l+o.nodeSize))))}}function Jt(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function Xt(t){let desc=t.pmViewDesc;return desc&&0==desc.size&&(t.nextSibling||"BR"!=t.nodeName)}function Zt(view,t){return t<0?function(view){let t=view.domSelectionRange(),e=t.focusNode,n=t.focusOffset;if(!e)return;let r,o,l=!1;D&&1==e.nodeType&&n0){if(1!=e.nodeType)break;{let t=e.childNodes[n-1];if(Xt(t))r=e,o=--n;else{if(3!=t.nodeType)break;e=t,n=e.nodeValue.length}}}else{if(te(e))break;{let t=e.previousSibling;for(;t&&Xt(t);)r=e.parentNode,o=c(t),t=t.previousSibling;if(t)e=t,n=Jt(e);else{if(e=e.parentNode,e==view.dom)break;n=0}}}l?ee(view,e,n):r&&ee(view,r,o)}(view):Qt(view)}function Qt(view){let t=view.domSelectionRange(),e=t.focusNode,n=t.focusOffset;if(!e)return;let r,o,l=Jt(e);for(;;)if(n{view.state==r&&Nt(view)}),50)}function ne(view,t){let e=view.state.doc.resolve(t);if(!P&&!L&&e.parent.inlineContent){let n=view.coordsAtPos(t);if(t>e.start()){let e=view.coordsAtPos(t-1),r=(e.top+e.bottom)/2;if(r>n.top&&r1)return e.leftn.top&&r1)return e.left>n.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(view.dom).direction?"rtl":"ltr"}function re(view,t,e){let n=view.state.selection;if(n instanceof r.h&&!n.empty||e.indexOf("s")>-1)return!1;if(N&&e.indexOf("m")>-1)return!1;let{$from:o,$to:l}=n;if(!o.parent.inlineContent||view.endOfTextblock(t<0?"up":"down")){let e=Yt(view.state,t);if(e&&e instanceof r.c)return Gt(view,e)}if(!o.parent.inlineContent){let e=t<0?o:l,c=n instanceof r.a?r.f.near(e,t):r.f.findFrom(e,t);return!!c&&Gt(view,c)}return!1}function ie(view,t){if(!(view.state.selection instanceof r.h))return!0;let{$head:e,$anchor:n,empty:o}=view.state.selection;if(!e.sameParent(n))return!0;if(!o)return!1;if(view.endOfTextblock(t>0?"forward":"backward"))return!0;let l=!e.textOffset&&(t<0?e.nodeBefore:e.nodeAfter);if(l&&!l.isText){let tr=view.state.tr;return t<0?tr.delete(e.pos-l.nodeSize,e.pos):tr.delete(e.pos,e.pos+l.nodeSize),view.dispatch(tr),!0}return!1}function oe(view,t,e){view.domObserver.stop(),t.contentEditable=e,view.domObserver.start()}function se(view,t){let code=t.keyCode,e=function(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}(t);if(8==code||N&&72==code&&"c"==e)return ie(view,-1)||Zt(view,-1);if(46==code&&!t.shiftKey||N&&68==code&&"c"==e)return ie(view,1)||Zt(view,1);if(13==code||27==code)return!0;if(37==code||N&&66==code&&"c"==e){let t=37==code?"ltr"==ne(view,view.state.selection.from)?-1:1:-1;return Kt(view,t,e)||Zt(view,t)}if(39==code||N&&70==code&&"c"==e){let t=39==code?"ltr"==ne(view,view.state.selection.from)?1:-1:1;return Kt(view,t,e)||Zt(view,t)}return 38==code||N&&80==code&&"c"==e?re(view,-1,e)||Zt(view,-1):40==code||N&&78==code&&"c"==e?function(view){if(!B||view.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:e}=view.domSelectionRange();if(t&&1==t.nodeType&&0==e&&t.firstChild&&"false"==t.firstChild.contentEditable){let e=t.firstChild;oe(view,e,"true"),setTimeout((()=>oe(view,e,"false")),20)}return!1}(view)||re(view,1,e)||Qt(view):e==(N?"m":"c")&&(66==code||73==code||89==code||90==code)}function ae(view,t){view.someProp("transformCopied",(e=>{t=e(t,view)}));let e=[],{content:content,openStart:n,openEnd:r}=t;for(;n>1&&r>1&&1==content.childCount&&1==content.firstChild.childCount;){n--,r--;let t=content.firstChild;e.push(t.type.name,t.attrs!=t.type.defaultAttrs?t.attrs:null),content=t.content}let l=view.someProp("clipboardSerializer")||o.b.fromSchema(view.state.schema),c=ve(),h=c.createElement("div");h.appendChild(l.serializeFragment(content,{document:c}));let d,f=h.firstChild,m=0;for(;f&&1==f.nodeType&&(d=me[f.nodeName.toLowerCase()]);){for(let i=d.length-1;i>=0;i--){let t=c.createElement(d[i]);for(;h.firstChild;)t.appendChild(h.firstChild);h.appendChild(t),m++}f=h.firstChild}return f&&1==f.nodeType&&f.setAttribute("data-pm-slice",`${n} ${r}${m?` -${m}`:""} ${JSON.stringify(e)}`),{dom:h,text:view.someProp("clipboardTextSerializer",(e=>e(t,view)))||t.content.textBetween(0,t.content.size,"\n\n")}}function le(view,text,html,t,e){let n,r,l=e.parent.type.spec.code;if(!html&&!text)return null;let c=text&&(t||l||!html);if(c){if(view.someProp("transformPastedText",(e=>{text=e(text,l||t,view)})),l)return text?new o.j(o.c.from(view.state.schema.text(text.replace(/\r\n?/g,"\n"))),0,0):o.j.empty;let c=view.someProp("clipboardTextParser",(n=>n(text,e,t,view)));if(c)r=c;else{let t=e.marks(),{schema:r}=view.state,l=o.b.fromSchema(r);n=document.createElement("div"),text.split(/(?:\r\n?|\n)+/).forEach((e=>{let p=n.appendChild(document.createElement("p"));e&&p.appendChild(l.serializeNode(r.text(e,t)))}))}}else view.someProp("transformPastedHTML",(t=>{html=t(html,view)})),n=function(html){let t=/^(\s*]*>)*/.exec(html);t&&(html=html.slice(t[0].length));let e,n=ve().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(html);(e=r&&me[r[1].toLowerCase()])&&(html=e.map((t=>"<"+t+">")).join("")+html+e.map((t=>"")).reverse().join(""));if(n.innerHTML=html,e)for(let i=0;i0;i--){let t=n.firstChild;for(;t&&1!=t.nodeType;)t=t.nextSibling;if(!t)break;n=t}if(!r){let t=view.someProp("clipboardParser")||view.someProp("domParser")||o.a.fromSchema(view.state.schema);r=t.parseSlice(n,{preserveWhitespace:!(!c&&!d),context:e,ruleFromNode:t=>"BR"!=t.nodeName||t.nextSibling||!t.parentNode||ce.test(t.parentNode.nodeName)?null:{ignore:!0}})}if(d)r=function(t,e){if(!t.size)return t;let n,r=t.content.firstChild.type.schema;try{n=JSON.parse(e)}catch(e){return t}let{content:content,openStart:l,openEnd:c}=t;for(let i=n.length-2;i>=0;i-=2){let t=r.nodes[n[i]];if(!t||t.hasRequiredAttrs())break;content=o.c.from(t.create(n[i+1],content)),l++,c++}return new o.j(content,l,c)}(fe(r,+d[1],+d[2]),d[4]);else if(r=o.j.maxOpen(function(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r,l=e.node(n).contentMatchAt(e.index(n)),c=[];if(t.forEach((t=>{if(!c)return;let e,n=l.findWrapping(t.type);if(!n)return c=null;if(e=c.length&&r.length&&he(n,r,t,c[c.length-1],0))c[c.length-1]=e;else{c.length&&(c[c.length-1]=de(c[c.length-1],r.length));let e=ue(t,n);c.push(e),l=l.matchType(e.type),r=n}})),c)return o.c.from(c)}return t}(r.content,e),!0),r.openStart||r.openEnd){let t=0,e=0;for(let e=r.content.firstChild;t{r=t(r,view)})),r}const ce=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function ue(t,e,n=0){for(let i=e.length-1;i>=n;i--)t=e[i].create(null,o.c.from(t));return t}function he(t,e,n,r,l){if(l1&&(c=0),l=n&&(d=e<0?h.contentMatchAt(0).fillBefore(d,c<=l).append(d):d.append(h.contentMatchAt(h.childCount).fillBefore(o.c.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,h.copy(d))}function fe(t,e,n){return e{for(let e in t)view.input.eventHandlers[e]||view.dom.addEventListener(e,view.input.eventHandlers[e]=t=>_e(view,t))}))}function _e(view,t){return view.someProp("handleDOMEvents",(e=>{let n=e[t.type];return!!n&&(n(view,t)||t.defaultPrevented)}))}function Ce(view,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target;e!=view.dom;e=e.parentNode)if(!e||11==e.nodeType||e.pmViewDesc&&e.pmViewDesc.stopEvent(t))return!1;return!0}function Oe(t){return{left:t.clientX,top:t.clientY}}function Ee(view,t,e,n,r){if(-1==n)return!1;let o=view.state.doc.resolve(n);for(let i=o.depth+1;i>0;i--)if(view.someProp(t,(t=>i>o.depth?t(view,e,o.nodeAfter,o.before(i),r,!0):t(view,e,o.node(i),o.before(i),r,!1))))return!0;return!1}function Ae(view,t,e){view.focused||view.focus();let tr=view.state.tr.setSelection(t);"pointer"==e&&tr.setMeta("pointer",!0),view.dispatch(tr)}function Te(view,t,e,n,o){return Ee(view,"handleClickOn",t,e,n)||view.someProp("handleClick",(e=>e(view,t,n)))||(o?function(view,t){if(-1==t)return!1;let e,n,o=view.state.selection;o instanceof r.c&&(e=o.node);let l=view.state.doc.resolve(t);for(let i=l.depth+1;i>0;i--){let t=i>l.depth?l.nodeAfter:l.node(i);if(r.c.isSelectable(t)){n=e&&o.$from.depth>0&&i>=o.$from.depth&&l.before(o.$from.depth+1)==o.$from.pos?l.before(o.$from.depth):l.before(i);break}}return null!=n&&(Ae(view,r.c.create(view.state.doc,n),"pointer"),!0)}(view,e):function(view,t){if(-1==t)return!1;let e=view.state.doc.resolve(t),n=e.nodeAfter;return!!(n&&n.isAtom&&r.c.isSelectable(n))&&(Ae(view,new r.c(e),"pointer"),!0)}(view,e))}function Me(view,t,e,n){return Ee(view,"handleDoubleClickOn",t,e,n)||view.someProp("handleDoubleClick",(e=>e(view,t,n)))}function De(view,t,e,n){return Ee(view,"handleTripleClickOn",t,e,n)||view.someProp("handleTripleClick",(e=>e(view,t,n)))||function(view,t,e){if(0!=e.button)return!1;let n=view.state.doc;if(-1==t)return!!n.inlineContent&&(Ae(view,r.h.create(n,0,n.content.size),"pointer"),!0);let o=n.resolve(t);for(let i=o.depth+1;i>0;i--){let t=i>o.depth?o.nodeAfter:o.node(i),e=o.before(i);if(t.inlineContent)Ae(view,r.h.create(n,e+1,e+1+t.content.size),"pointer");else{if(!r.c.isSelectable(t))continue;Ae(view,r.c.create(n,e),"pointer")}return!0}}(view,e,n)}function je(view){return Ie(view)}ye.keydown=(view,t)=>{let e=t;if(view.input.shiftKey=16==e.keyCode||e.shiftKey,!Be(view,e)&&(view.input.lastKeyCode=e.keyCode,view.input.lastKeyCodeTime=Date.now(),!I||!P||13!=e.keyCode))if(229!=e.keyCode&&view.domObserver.forceFlush(),!$||13!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey)view.someProp("handleKeyDown",(t=>t(view,e)))||se(view,e)?e.preventDefault():ke(view,"key");else{let t=Date.now();view.input.lastIOSEnter=t,view.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{view.input.lastIOSEnter==t&&(view.someProp("handleKeyDown",(t=>t(view,S(13,"Enter")))),view.input.lastIOSEnter=0)}),200)}},ye.keyup=(view,t)=>{16==t.keyCode&&(view.input.shiftKey=!1)},ye.keypress=(view,t)=>{let e=t;if(Be(view,e)||!e.charCode||e.ctrlKey&&!e.altKey||N&&e.metaKey)return;if(view.someProp("handleKeyPress",(t=>t(view,e))))return void e.preventDefault();let n=view.state.selection;if(!(n instanceof r.h&&n.$from.sameParent(n.$to))){let text=String.fromCharCode(e.charCode);/[\r\n]/.test(text)||view.someProp("handleTextInput",(t=>t(view,n.$from.pos,n.$to.pos,text)))||view.dispatch(view.state.tr.insertText(text).scrollIntoView()),e.preventDefault()}};const Pe=N?"metaKey":"ctrlKey";be.mousedown=(view,t)=>{let e=t;view.input.shiftKey=e.shiftKey;let n=je(view),r=Date.now(),o="singleClick";r-view.input.lastClick.time<500&&function(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}(e,view.input.lastClick)&&!e[Pe]&&("singleClick"==view.input.lastClick.type?o="doubleClick":"doubleClick"==view.input.lastClick.type&&(o="tripleClick")),view.input.lastClick={time:r,x:e.clientX,y:e.clientY,type:o};let l=view.posAtCoords(Oe(e));l&&("singleClick"==o?(view.input.mouseDown&&view.input.mouseDown.done(),view.input.mouseDown=new Re(view,l,e,!!n)):("doubleClick"==o?Me:De)(view,l.pos,l.inside,e)?e.preventDefault():ke(view,"pointer"))};class Re{constructor(view,t,e,n){let o,l;if(this.view=view,this.pos=t,this.event=e,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=view.state.doc,this.selectNode=!!e[Pe],this.allowDefault=e.shiftKey,t.inside>-1)o=view.state.doc.nodeAt(t.inside),l=t.inside;else{let e=view.state.doc.resolve(t.pos);o=e.parent,l=e.depth?e.before():0}const c=n?null:e.target,h=c?view.docView.nearestDesc(c,!0):null;this.target=h?h.dom:null;let{selection:d}=view.state;(0==e.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||d instanceof r.c&&d.from<=l&&d.to>l)&&(this.mightDrag={node:o,pos:l,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!D||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),view.root.addEventListener("mouseup",this.up=this.up.bind(this)),view.root.addEventListener("mousemove",this.move=this.move.bind(this)),ke(view,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>Nt(this.view))),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(Oe(t))),this.updateAllowDefault(t),this.allowDefault||!e?ke(this.view,"pointer"):Te(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||B&&this.mightDrag&&!this.mightDrag.node.isAtom||P&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(Ae(this.view,r.f.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):ke(this.view,"pointer")}move(t){this.updateAllowDefault(t),ke(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function Be(view,t){return!!view.composing||!!(B&&Math.abs(t.timeStamp-view.input.compositionEndedAt)<500)&&(view.input.compositionEndedAt=-2e8,!0)}be.touchstart=view=>{view.input.lastTouch=Date.now(),je(view),ke(view,"pointer")},be.touchmove=view=>{view.input.lastTouch=Date.now(),ke(view,"pointer")},be.contextmenu=view=>je(view);const $e=I?5e3:-1;function Ne(view,t){clearTimeout(view.input.composingTimeout),t>-1&&(view.input.composingTimeout=setTimeout((()=>Ie(view)),t))}function Le(view){for(view.composing&&(view.input.composing=!1,view.input.compositionEndedAt=function(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}());view.input.compositionNodes.length>0;)view.input.compositionNodes.pop().markParentsDirty()}function Ie(view,t=!1){if(!(I&&view.domObserver.flushingSoon>=0)){if(view.domObserver.forceFlush(),Le(view),t||view.docView&&view.docView.dirty){let t=Bt(view);return t&&!t.eq(view.state.selection)?view.dispatch(view.state.tr.setSelection(t)):view.updateState(view.state),!0}return!1}}ye.compositionstart=ye.compositionupdate=view=>{if(!view.composing){view.domObserver.flush();let{state:t}=view,e=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!e.textOffset&&e.parentOffset&&e.nodeBefore.marks.some((t=>!1===t.type.spec.inclusive))))view.markCursor=view.state.storedMarks||e.marks(),Ie(view,!0),view.markCursor=null;else if(Ie(view),D&&t.selection.empty&&e.parentOffset&&!e.textOffset&&e.nodeBefore.marks.length){let t=view.domSelectionRange();for(let e=t.focusNode,n=t.focusOffset;e&&1==e.nodeType&&0!=n;){let t=n<0?e.lastChild:e.childNodes[n-1];if(!t)break;if(3==t.nodeType){view.domSelection().collapse(t,t.nodeValue.length);break}e=t,n=-1}}view.input.composing=!0}Ne(view,$e)},ye.compositionend=(view,t)=>{view.composing&&(view.input.composing=!1,view.input.compositionEndedAt=t.timeStamp,view.input.compositionID++,Ne(view,20))};const Fe=T&&M<15||$&&z<604;function ze(view,text,html,t,e){let n=le(view,text,html,t,view.state.selection.$from);if(view.someProp("handlePaste",(t=>t(view,e,n||o.j.empty))))return!0;if(!n)return!1;let r=function(t){return 0==t.openStart&&0==t.openEnd&&1==t.content.childCount?t.content.firstChild:null}(n),tr=r?view.state.tr.replaceSelectionWith(r,t):view.state.tr.replaceSelection(n);return view.dispatch(tr.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}be.copy=ye.cut=(view,t)=>{let e=t,n=view.state.selection,r="cut"==e.type;if(n.empty)return;let data=Fe?null:e.clipboardData,o=n.content(),{dom:l,text:text}=ae(view,o);data?(e.preventDefault(),data.clearData(),data.setData("text/html",l.innerHTML),data.setData("text/plain",text)):function(view,t){if(!view.dom.parentNode)return;let e=view.dom.parentNode.appendChild(document.createElement("div"));e.appendChild(t),e.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),r=document.createRange();r.selectNodeContents(t),view.dom.blur(),n.removeAllRanges(),n.addRange(r),setTimeout((()=>{e.parentNode&&e.parentNode.removeChild(e),view.focus()}),50)}(view,l),r&&view.dispatch(view.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},ye.paste=(view,t)=>{let e=t;if(view.composing&&!I)return;let data=Fe?null:e.clipboardData,n=view.input.shiftKey&&45!=view.input.lastKeyCode;data&&ze(view,data.getData("text/plain"),data.getData("text/html"),n,e)?e.preventDefault():function(view,t){if(!view.dom.parentNode)return;let e=view.input.shiftKey||view.state.selection.$from.parent.type.spec.code,n=view.dom.parentNode.appendChild(document.createElement(e?"textarea":"div"));e||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let r=view.input.shiftKey&&45!=view.input.lastKeyCode;setTimeout((()=>{view.focus(),n.parentNode&&n.parentNode.removeChild(n),e?ze(view,n.value,null,r,t):ze(view,n.textContent,n.innerHTML,r,t)}),50)}(view,e)};class Ve{constructor(t,e){this.slice=t,this.move=e}}const He=N?"altKey":"ctrlKey";be.dragstart=(view,t)=>{let e=t,n=view.input.mouseDown;if(n&&n.done(),!e.dataTransfer)return;let o=view.state.selection,l=o.empty?null:view.posAtCoords(Oe(e));if(l&&l.pos>=o.from&&l.pos<=(o instanceof r.c?o.to-1:o.to));else if(n&&n.mightDrag)view.dispatch(view.state.tr.setSelection(r.c.create(view.state.doc,n.mightDrag.pos)));else if(e.target&&1==e.target.nodeType){let desc=view.docView.nearestDesc(e.target,!0);desc&&desc.node.type.spec.draggable&&desc!=view.docView&&view.dispatch(view.state.tr.setSelection(r.c.create(view.state.doc,desc.posBefore)))}let c=view.state.selection.content(),{dom:h,text:text}=ae(view,c);e.dataTransfer.clearData(),e.dataTransfer.setData(Fe?"Text":"text/html",h.innerHTML),e.dataTransfer.effectAllowed="copyMove",Fe||e.dataTransfer.setData("text/plain",text),view.dragging=new Ve(c,!e[He])},be.dragend=view=>{let t=view.dragging;window.setTimeout((()=>{view.dragging==t&&(view.dragging=null)}),50)},ye.dragover=ye.dragenter=(t,e)=>e.preventDefault(),ye.drop=(view,t)=>{let e=t,n=view.dragging;if(view.dragging=null,!e.dataTransfer)return;let c=view.posAtCoords(Oe(e));if(!c)return;let h=view.state.doc.resolve(c.pos),d=n&&n.slice;d?view.someProp("transformPasted",(t=>{d=t(d,view)})):d=le(view,e.dataTransfer.getData(Fe?"Text":"text/plain"),Fe?null:e.dataTransfer.getData("text/html"),!1,h);let f=!(!n||e[He]);if(view.someProp("handleDrop",(t=>t(view,e,d||o.j.empty,f))))return void e.preventDefault();if(!d)return;e.preventDefault();let m=d?Object(l.g)(view.state.doc,h.pos,d):h.pos;null==m&&(m=h.pos);let tr=view.state.tr;f&&tr.deleteSelection();let v=tr.mapping.map(m),y=0==d.openStart&&0==d.openEnd&&1==d.content.childCount,w=tr.doc;if(y?tr.replaceRangeWith(v,v,d.content.firstChild):tr.replaceRange(v,v,d),tr.doc.eq(w))return;let x=tr.doc.resolve(v);if(y&&r.c.isSelectable(d.content.firstChild)&&x.nodeAfter&&x.nodeAfter.sameMarkup(d.content.firstChild))tr.setSelection(new r.c(x));else{let t=tr.mapping.map(m);tr.mapping.maps[tr.mapping.maps.length-1].forEach(((e,n,r,o)=>t=o)),tr.setSelection(Wt(view,x,tr.doc.resolve(t)))}view.focus(),view.dispatch(tr.setMeta("uiEvent","drop"))},be.focus=view=>{view.input.lastFocus=Date.now(),view.focused||(view.domObserver.stop(),view.dom.classList.add("ProseMirror-focused"),view.domObserver.start(),view.focused=!0,setTimeout((()=>{view.docView&&view.hasFocus()&&!view.domObserver.currentSelection.eq(view.domSelectionRange())&&Nt(view)}),20))},be.blur=(view,t)=>{let e=t;view.focused&&(view.domObserver.stop(),view.dom.classList.remove("ProseMirror-focused"),view.domObserver.start(),e.relatedTarget&&view.dom.contains(e.relatedTarget)&&view.domObserver.currentSelection.clear(),view.focused=!1)},be.beforeinput=(view,t)=>{if(P&&I&&"deleteContentBackward"==t.inputType){view.domObserver.flushSoon();let{domChangeCount:t}=view.input;setTimeout((()=>{if(view.input.domChangeCount!=t)return;if(view.dom.blur(),view.focus(),view.someProp("handleKeyDown",(t=>t(view,S(8,"Backspace")))))return;let{$cursor:e}=view.state.selection;e&&e.pos>0&&view.dispatch(view.state.tr.delete(e.pos-1,e.pos).scrollIntoView())}),50)}};for(let t in ye)be[t]=ye[t];function We(a,b){if(a==b)return!0;for(let p in a)if(a[p]!==b[p])return!1;for(let p in b)if(!(p in a))return!1;return!0}class qe{constructor(t,e){this.toDOM=t,this.spec=e||Je,this.side=this.spec.side||0}map(t,span,e,n){let{pos:r,deleted:o}=t.mapResult(span.from+n,this.side<0?-1:1);return o?null:new Ge(r-e,r-e,this)}valid(){return!0}eq(t){return this==t||t instanceof qe&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&We(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ue{constructor(t,e){this.attrs=t,this.spec=e||Je}map(t,span,e,n){let r=t.map(span.from+n,this.spec.inclusiveStart?-1:1)-e,o=t.map(span.to+n,this.spec.inclusiveEnd?1:-1)-e;return r>=o?null:new Ge(r,o,this)}valid(t,span){return span.from=t&&(!o||o(span.spec))&&n.push(span.copy(span.from+r,span.to+r))}for(let i=0;it){let l=this.children[i]+1;this.children[i+2].findInner(t-l,e-l,n,r+l,o)}}map(t,e,n){return this==Ze||0==t.maps.length?this:this.mapInner(t,e,0,0,n||Je)}mapInner(t,e,n,r,o){let l;for(let i=0;i{let d=c-l-(r-n);for(let i=0;ic+t-e)continue;let f=h[i]+t-e;r>=f?h[i+1]=n<=f?-2:-1:l>=o&&d&&(h[i]+=d,h[i+1]+=d)}e+=d})),t=n.maps[i].map(t,-1)}let d=!1;for(let i=0;i=r.content.size){d=!0;continue}let m=n.map(t[i+1]+l,-1)-o,{index:v,offset:y}=r.content.findIndex(f),w=r.maybeChild(v);if(w&&y==f&&y+w.nodeSize==m){let r=h[i+2].mapInner(n,w,e+1,t[i]+l+1,c);r!=Ze?(h[i]=f,h[i+1]=m,h[i+2]=r):(h[i+1]=-2,d=!0)}else d=!0}if(d){let d=function(t,e,n,r,o,l,c){function h(t,e){for(let i=0;i{let c,h=l+n;if(c=en(e,t,h)){for(r||(r=this.children.slice());oo&&span.to=t){this.children[i]==t&&(n=this.children[i+2]);break}let o=t+1,l=o+e.content.size;for(let i=0;io&&t.type instanceof Ue){let e=Math.max(o,t.from)-o,n=Math.min(l,t.to)-o;en.map(t,e,Je)));return Qe.from(n)}forChild(t,e){if(e.isLeaf)return Xe.empty;let n=[];for(let i=0;it instanceof Xe))?t:t.reduce(((t,e)=>t.concat(e instanceof Xe?e:e.members)),[]))}}}function tn(t,e){if(!e||!t.length)return t;let n=[];for(let i=0;in&&span.to{let h=en(t,e,c+n);if(h){l=!0;let t=rn(h,e,n+c+1,r);t!=Ze&&o.push(c,c+e.nodeSize,t)}}));let c=tn(l?nn(t):t,-n).sort(on);for(let i=0;i0;)i++;t.splice(i,0,e)}function ln(view){let t=[];return view.someProp("decorations",(e=>{let n=e(view.state);n&&n!=Ze&&t.push(n)})),view.cursorWrapper&&t.push(Xe.create(view.state.doc,[view.cursorWrapper.deco])),Qe.from(t)}const cn={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},un=T&&M<=11;class hn{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class dn{constructor(view,t){this.view=view,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new hn,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver((t=>{for(let i=0;i"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length))?this.flushSoon():this.flush()})),un&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((()=>{this.flushingSoon=-1,this.flush()}),20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,cn)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let i=0;ithis.flush()),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout((()=>this.suppressingSelectionUpdates=!1),50)}onSelectionChange(){if(qt(this.view)){if(this.suppressingSelectionUpdates)return Nt(this.view);if(T&&M<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&m(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let e,n=new Set;for(let e=t.focusNode;e;e=h(e))n.add(e);for(let r=t.anchorNode;r;r=h(r))if(n.has(r)){e=r;break}let desc=e&&this.view.docView.nearestDesc(e);return desc&&desc.ignoreMutation({type:"selection",target:3==e.nodeType?e.parentNode:e})?(this.setCurSelection(),!0):void 0}flush(){let{view:view}=this;if(!view.docView||this.flushingSoon>-1)return;let t=this.observer?this.observer.takeRecords():[];this.queue.length&&(t=this.queue.concat(t),this.queue.length=0);let e=view.domSelectionRange(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(e)&&qt(view)&&!this.ignoreSelectionChange(e),o=-1,l=-1,c=!1,h=[];if(view.editable)for(let i=0;i1){let t=h.filter((t=>"BR"==t.nodeName));if(2==t.length){let a=t[0],b=t[1];a.parentNode&&a.parentNode.parentNode==b.parentNode?b.remove():a.remove()}}let d=null;o<0&&n&&view.input.lastFocus>Date.now()-200&&Math.max(view.input.lastTouch,view.input.lastClick.time)-1||n)&&(o>-1&&(view.docView.markDirty(o,l),function(view){if(pn.has(view))return;if(pn.set(view,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(view.dom).whiteSpace)){if(view.requiresGeckoHackNode=D,fn)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),fn=!0}}(view)),this.handleDOMChange(o,l,c,h),view.docView&&view.docView.dirty?view.updateState(view.state):this.currentSelection.eq(e)||Nt(view),this.currentSelection.set(e))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let desc=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(desc==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style")))return null;if(!desc||desc.ignoreMutation(t))return null;if("childList"==t.type){for(let i=0;iDate.now()-50?view.input.lastSelectionOrigin:null,e=Bt(view,t);if(e&&!view.state.selection.eq(e)){if(P&&I&&13===view.input.lastKeyCode&&Date.now()-100t(view,S(13,"Enter")))))return;let tr=view.state.tr.setSelection(e);"pointer"==t?tr.setMeta("pointer",!0):"key"==t&&tr.scrollIntoView(),view.composing&&tr.setMeta("composition",view.input.compositionID),view.dispatch(tr)}return}let c=view.state.doc.resolve(t),h=c.sharedDepth(e);t=c.before(h+1),e=view.state.doc.resolve(e).after(h+1);let d,f,m=view.state.selection,v=function(view,t,e){let n,{node:r,fromOffset:l,toOffset:c,from:h,to:d}=view.docView.parseRange(t,e),f=view.domSelectionRange(),m=f.anchorNode;if(m&&view.dom.contains(1==m.nodeType?m:m.parentNode)&&(n=[{node:m,offset:f.anchorOffset}],k(f)||n.push({node:f.focusNode,offset:f.focusOffset})),P&&8===view.input.lastKeyCode)for(let t=c;t>l;t--){let e=r.childNodes[t-1],desc=e.pmViewDesc;if("BR"==e.nodeName&&!desc){c=t;break}if(!desc||desc.size)break}let v=view.state.doc,y=view.someProp("domParser")||o.a.fromSchema(view.state.schema),w=v.resolve(h),x=null,S=y.parse(r,{topNode:w.parent,topMatch:w.parent.contentMatchAt(w.index()),topOpen:!0,from:l,to:c,preserveWhitespace:"pre"!=w.parent.type.whitespace||"full",findPositions:n,ruleFromNode:mn,context:w});if(n&&null!=n[0].pos){let t=n[0].pos,head=n[1]&&n[1].pos;null==head&&(head=t),x={anchor:t+h,head:head+h}}return{doc:S,sel:x,from:h,to:d}}(view,t,e),y=view.state.doc,w=y.slice(v.from,v.to);8===view.input.lastKeyCode&&Date.now()-100=o?r-e:0,l=r+(l-o),o=r}else if(l=l?r-e:0,o=r+(o-l),l=r}return{start:r,endA:o,endB:l}}(w.content,v.doc.content,v.from,d,f);if(($&&view.input.lastIOSEnter>Date.now()-225||I)&&l.some((t=>1==t.nodeType&&!gn.test(t.nodeName)))&&(!x||x.endA>=x.endB)&&view.someProp("handleKeyDown",(t=>t(view,S(13,"Enter")))))return void(view.input.lastIOSEnter=0);if(!x){if(!(n&&m instanceof r.h&&!m.empty&&m.$head.sameParent(m.$anchor))||view.composing||v.sel&&v.sel.anchor!=v.sel.head){if(v.sel){let t=bn(view,view.state.doc,v.sel);if(t&&!t.eq(view.state.selection)){let tr=view.state.tr.setSelection(t);view.composing&&tr.setMeta("composition",view.input.compositionID),view.dispatch(tr)}}return}x={start:m.from,endA:m.to,endB:m.to}}if(P&&view.cursorWrapper&&v.sel&&v.sel.anchor==view.cursorWrapper.deco.from&&v.sel.head==v.sel.anchor){let t=x.endB-x.start;v.sel={anchor:v.sel.anchor+t,head:v.sel.anchor+t}}view.input.domChangeCount++,view.state.selection.fromview.state.selection.from&&x.start<=view.state.selection.from+2&&view.state.selection.from>=v.from?x.start=view.state.selection.from:x.endA=view.state.selection.to-2&&view.state.selection.to<=v.to&&(x.endB+=view.state.selection.to-x.endA,x.endA=view.state.selection.to)),T&&M<=11&&x.endB==x.start+1&&x.endA==x.start&&x.start>v.from&&"  "==v.doc.textBetween(x.start-v.from-1,x.start-v.from+1)&&(x.start--,x.endA--,x.endB--);let _,C=v.doc.resolveNoCache(x.start-v.from),O=v.doc.resolveNoCache(x.endB-v.from),E=y.resolve(x.start),A=C.sameParent(O)&&C.parent.inlineContent&&E.end()>=x.endA;if(($&&view.input.lastIOSEnter>Date.now()-225&&(!A||l.some((t=>"DIV"==t.nodeName||"P"==t.nodeName)))||!A&&C.post(view,S(13,"Enter")))))return void(view.input.lastIOSEnter=0);if(view.state.selection.anchor>x.start&&function(t,e,n,r,o){if(!r.parent.isTextblock||n-e<=o.pos-r.pos||yn(r,!0,!1)n||yn(c,!0,!1)t(view,S(8,"Backspace")))))return void(I&&P&&view.domObserver.suppressSelectionUpdates());P&&I&&x.endB==x.start&&(view.input.lastAndroidDelete=Date.now()),I&&!A&&C.start()!=O.start()&&0==O.parentOffset&&C.depth==O.depth&&v.sel&&v.sel.anchor==v.sel.head&&v.sel.head==x.endA&&(x.endB-=2,O=v.doc.resolveNoCache(x.endB-v.from),setTimeout((()=>{view.someProp("handleKeyDown",(function(t){return t(view,S(13,"Enter"))}))}),20));let tr,D,j,R=x.start,B=x.endA;if(A)if(C.pos==O.pos)T&&M<=11&&0==C.parentOffset&&(view.domObserver.suppressSelectionUpdates(),setTimeout((()=>Nt(view)),20)),tr=view.state.tr.delete(R,B),D=y.resolve(x.start).marksAcross(y.resolve(x.endA));else if(x.endA==x.endB&&(j=function(t,e){let n,mark,r,l=t.firstChild.marks,c=e.firstChild.marks,h=l,d=c;for(let i=0;it.mark(mark.addToSet(t.marks));else{if(0!=h.length||1!=d.length)return null;mark=d[0],n="remove",r=t=>t.mark(mark.removeFromSet(t.marks))}let f=[];for(let i=0;it(view,R,B,text))))return;tr=view.state.tr.insertText(text,R,B)}if(tr||(tr=view.state.tr.replace(R,B,v.doc.slice(x.start-v.from,x.endB-v.from))),v.sel){let t=bn(view,tr.doc,v.sel);t&&!(P&&I&&view.composing&&t.empty&&(x.start!=x.endB||view.input.lastAndroidDeletet.content.size?null:Wt(view,t.resolve(e.anchor),t.resolve(e.head))}function yn(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let e=t.node(r).maybeChild(t.indexAfter(r));for(;e&&!e.isLeaf;)e=e.firstChild,o++}return o}class wn{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new xe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(Cn),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=Sn(this),kn(this),this.nodeViews=_n(this),this.docView=yt(this.state.doc,xn(this),ln(this),this.dom,this),this.domObserver=new dn(this,((t,e,n,r)=>vn(this,t,e,n,r))),this.domObserver.start(),function(view){for(let t in be){let e=be[t];view.dom.addEventListener(t,view.input.eventHandlers[t]=t=>{!Ce(view,t)||_e(view,t)||!view.editable&&t.type in ye||e(view,t)},we[t]?{passive:!0}:void 0)}B&&view.dom.addEventListener("input",(()=>null)),Se(view)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Se(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(Cn),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let t in this._props)e[t]=this._props[t];e.state=this.state;for(let n in t)e[n]=t[n];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){let n=this.state,r=!1,o=!1;t.storedMarks&&this.composing&&(Le(this),o=!0),this.state=t;let l=n.plugins!=t.plugins||this._props.plugins!=e.plugins;if(l||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let t=_n(this);(function(a,b){let t=0,e=0;for(let e in a){if(a[e]!=b[e])return!0;t++}for(let t in b)e++;return t!=e})(t,this.nodeViews)&&(this.nodeViews=t,r=!0)}(l||e.handleDOMEvents!=this._props.handleDOMEvents)&&Se(this),this.editable=Sn(this),kn(this);let c=ln(this),h=xn(this),d=n.plugins==t.plugins||n.doc.eq(t.doc)?t.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",f=r||!this.docView.matchesNode(t.doc,h,c);!f&&t.selection.eq(n.selection)||(o=!0);let v="preserve"==d&&o&&null==this.dom.style.overflowAnchor&&function(view){let t,e,rect=view.dom.getBoundingClientRect(),n=Math.max(0,rect.top);for(let r=(rect.left+rect.right)/2,o=n+1;o=n-20){t=l,e=c.top;break}}return{refDOM:t,refTop:e,stack:Y(view.dom)}}(this);if(o){this.domObserver.stop();let e=f&&(T||P)&&!this.composing&&!n.selection.empty&&!t.selection.empty&&function(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}(n.selection,t.selection);if(f){let n=P?this.trackWrites=this.domSelectionRange().focusNode:null;!r&&this.docView.update(t.doc,h,c,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=yt(t.doc,h,c,this.dom,this)),n&&!this.trackWrites&&(e=!0)}e||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(view){let t=view.docView.domFromPos(view.state.selection.anchor,0),e=view.domSelectionRange();return m(t.node,t.offset,e.anchorNode,e.anchorOffset)}(this))?Nt(this,e):(Vt(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),"reset"==d?this.dom.scrollTop=0:"to selection"==d?this.scrollToSelection():v&&function({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;G(n,0==r?0:r-e)}(v)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",(t=>t(this))));else if(this.state.selection instanceof r.c){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&U(this,e.getBoundingClientRect(),t)}else U(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let view;for(;view=this.pluginViews.pop();)view.destroy&&view.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let i=0;it.ownerDocument.getSelection()),this._root=t;return t||document}posAtCoords(t){return Q(this,t)}coordsAtPos(t,e=1){return it(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let desc=this.docView.descAt(t);return desc?desc.nodeDOM:null}posAtDOM(t,e,n=-1){let r=this.docView.posFromDOM(t,e,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,e){return pt(this,e||this.state,t)}pasteHTML(html,t){return ze(this,"",html,!1,t||new ClipboardEvent("paste"))}pasteText(text,t){return ze(this,text,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(!function(view){view.domObserver.stop();for(let t in view.input.eventHandlers)view.dom.removeEventListener(t,view.input.eventHandlers[t]);clearTimeout(view.input.composingTimeout),clearTimeout(view.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ln(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function(view,t){_e(view,t)||!be[t.type]||!view.editable&&t.type in ye||be[t.type](view,t)}(this,t)}dispatch(tr){let t=this._props.dispatchTransaction;t?t.call(this,tr):this.updateState(this.state.apply(tr))}domSelectionRange(){return B&&11===this.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom?function(view){let t;function e(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}view.dom.addEventListener("beforeinput",e,!0),document.execCommand("indent"),view.dom.removeEventListener("beforeinput",e,!0);let n=t.startContainer,r=t.startOffset,o=t.endContainer,l=t.endOffset,c=view.domAtPos(view.state.selection.anchor);return m(c.node,c.offset,o,l)&&([n,r,o,l]=[o,l,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:l}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function xn(view){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(view.editable),view.someProp("attributes",(e=>{if("function"==typeof e&&(e=e(view.state)),e)for(let n in e)"class"==n?t.class+=" "+e[n]:"style"==n?t.style=(t.style?t.style+";":"")+e[n]:t[n]||"contenteditable"==n||"nodeName"==n||(t[n]=String(e[n]))})),t.translate||(t.translate="no"),[Ge.node(0,view.state.doc.content.size,t)]}function kn(view){if(view.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),view.cursorWrapper={dom:t,deco:Ge.widget(view.state.selection.head,t,{raw:!0,marks:view.markCursor})}}else view.cursorWrapper=null}function Sn(view){return!view.someProp("editable",(t=>!1===t(view.state)))}function _n(view){let t=Object.create(null);function e(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return view.someProp("nodeViews",e),view.someProp("markViews",e),t}function Cn(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}},133:function(t,e,n){"use strict";var r={};r["login-auth"]=n(606),r["login-auth"]=r["login-auth"].default||r["login-auth"],r["verified-route"]=n(607),r["verified-route"]=r["verified-route"].default||r["verified-route"],e.a=r},135:function(t,e,n){"use strict";var r=n(132);n.d(e,"a",(function(){return r.a})),n.d(e,"b",(function(){return r.b})),n.d(e,"c",(function(){return r.c}))},137:function(t,e,n){"use strict";function r(t){this.message=t}r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,l="";o=e.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?l+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return l};function l(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(o(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return o(e)}}function c(t){this.message=t}function h(t,e){if("string"!=typeof t)throw new c("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(l(t.split(".")[n]))}catch(t){throw new c("Invalid token specified: "+t.message)}}c.prototype=new Error,c.prototype.name="InvalidTokenError";const a=h;a.default=h,a.InvalidTokenError=c,t.exports=a},142:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return h}));var r=n(7);const o=r.d.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",Object(r.s)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),l=r.c.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:element=>!!element.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=Object(r.m)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}}),c=/^\s*([-+*])\s$/,h=r.d.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:t}){return["ul",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(o.name,this.editor.getAttributes(l.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Object(r.w)({find:c,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Object(r.w)({find:c,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(l.name),editor:this.editor})),[t]}})},143:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return r}));const r=n(7).d.create({name:"doc",topNode:!0,content:"block+"})},144:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return o}));var r=n(7);const o=r.d.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",Object(r.s)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}})},145:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return o}));var r=n(7);const o=r.d.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})},146:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return r}));const r=n(7).d.create({name:"text",group:"inline"})},16:function(t,e,n){"use strict";var r=n(10);n.d(e,"a",(function(){return r.b})),n.d(e,"b",(function(){return r.c})),n.d(e,"c",(function(){return r.d})),n.d(e,"d",(function(){return r.e})),n.d(e,"e",(function(){return r.f})),n.d(e,"f",(function(){return r.h}))},170:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return o}));var r=n(7);const o=r.d.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}})))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Object(r.s)(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})})),{})},addInputRules(){return this.options.levels.map((t=>Object(r.v)({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}})))}})},172:function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return m}));for(var base={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},r={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),i=0;i<10;i++)base[48+i]=base[96+i]=String(i);for(i=1;i<=24;i++)base[i+111]="F"+i;for(i=65;i<=90;i++)base[i]=String.fromCharCode(i+32),r[i]=String.fromCharCode(i);for(var code in base)r.hasOwnProperty(code)||(r[code]=base[code]);var c=n(10);const h="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function d(t){let e,n,r,meta,o=t.split(/-(?!$)/),l=o[o.length-1];"Space"==l&&(l=" ");for(let i=0;i127)&&(e=base[t.keyCode])&&e!=n){let n=map[f(e,t)];if(n&&n(view.state,view.dispatch,view))return!0}}return!1}}},176:function(t,e,n){"use strict";function r(t){let e="";for(let i in t)t.hasOwnProperty(i)&&(e.length&&(e+="&"),e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return e}function o(t){let e={},n=t.split("&");for(let i=0,t=n.length;i0);return e}function d(){const t=h(+new Date);return t!==l?(c=0,l=t):t+"."+h(c++)}for(;i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}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,c=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){h=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(h)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(t){return t.components.default})).filter((function(t){return"function"==typeof t&&!t.options&&!t.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){d.unobserve(this.$el);var t,e=o(this.getPrefetchComponents());try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(t){e.e(t)}finally{e.f()}}}}}},191:function(t,e,n){"use strict";n.d(e,"a",(function(){return _e})),n.d(e,"b",(function(){return Ce}));var r=n(7),o=n(16);function l(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function c(t){return t instanceof l(t).Element||t instanceof Element}function h(t){return t instanceof l(t).HTMLElement||t instanceof HTMLElement}function d(t){return"undefined"!=typeof ShadowRoot&&(t instanceof l(t).ShadowRoot||t instanceof ShadowRoot)}var f=Math.max,m=Math.min,v=Math.round;function y(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function w(){return!/^((?!chrome|android).)*safari/i.test(y())}function x(element,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=element.getBoundingClientRect(),r=1,o=1;t&&h(element)&&(r=element.offsetWidth>0&&v(n.width)/element.offsetWidth||1,o=element.offsetHeight>0&&v(n.height)/element.offsetHeight||1);var d=(c(element)?l(element):window).visualViewport,f=!w()&&e,m=(n.left+(f&&d?d.offsetLeft:0))/r,y=(n.top+(f&&d?d.offsetTop:0))/o,x=n.width/r,k=n.height/o;return{width:x,height:k,top:y,right:m+x,bottom:y+k,left:m,x:m,y:y}}function k(t){var e=l(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function S(element){return element?(element.nodeName||"").toLowerCase():null}function _(element){return((c(element)?element.ownerDocument:element.document)||window.document).documentElement}function C(element){return x(_(element)).left+k(element).scrollLeft}function O(element){return l(element).getComputedStyle(element)}function E(element){var t=O(element),e=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+r+n)}function A(t,e,n){void 0===n&&(n=!1);var r,element,o=h(e),c=h(e)&&function(element){var rect=element.getBoundingClientRect(),t=v(rect.width)/element.offsetWidth||1,e=v(rect.height)/element.offsetHeight||1;return 1!==t||1!==e}(e),d=_(e),rect=x(t,c,n),f={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(o||!o&&!n)&&(("body"!==S(e)||E(d))&&(f=(r=e)!==l(r)&&h(r)?{scrollLeft:(element=r).scrollLeft,scrollTop:element.scrollTop}:k(r)),h(e)?((m=x(e,!0)).x+=e.clientLeft,m.y+=e.clientTop):d&&(m.x=C(d))),{x:rect.left+f.scrollLeft-m.x,y:rect.top+f.scrollTop-m.y,width:rect.width,height:rect.height}}function T(element){var t=x(element),e=element.offsetWidth,n=element.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:element.offsetLeft,y:element.offsetTop,width:e,height:n}}function M(element){return"html"===S(element)?element:element.assignedSlot||element.parentNode||(d(element)?element.host:null)||_(element)}function D(t){return["html","body","#document"].indexOf(S(t))>=0?t.ownerDocument.body:h(t)&&E(t)?t:D(M(t))}function j(element,t){var e;void 0===t&&(t=[]);var n=D(element),r=n===(null==(e=element.ownerDocument)?void 0:e.body),o=l(n),c=r?[o].concat(o.visualViewport||[],E(n)?n:[]):n,h=t.concat(c);return r?h:h.concat(j(M(c)))}function P(element){return["table","td","th"].indexOf(S(element))>=0}function R(element){return h(element)&&"fixed"!==O(element).position?element.offsetParent:null}function B(element){for(var t=l(element),e=R(element);e&&P(e)&&"static"===O(e).position;)e=R(e);return e&&("html"===S(e)||"body"===S(e)&&"static"===O(e).position)?t:e||function(element){var t=/firefox/i.test(y());if(/Trident/i.test(y())&&h(element)&&"fixed"===O(element).position)return null;var e=M(element);for(d(e)&&(e=e.host);h(e)&&["html","body"].indexOf(S(e))<0;){var n=O(e);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return e;e=e.parentNode}return null}(element)||t}var $="top",N="bottom",L="right",I="left",F="auto",z=[$,N,L,I],V="start",H="end",W="clippingParents",U="viewport",Y="popper",G="reference",K=z.reduce((function(t,e){return t.concat([e+"-"+V,e+"-"+H])}),[]),J=[].concat(z,[F]).reduce((function(t,e){return t.concat([e,e+"-"+V,e+"-"+H])}),[]),X=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Z(t){var map=new Map,e=new Set,n=[];function r(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var n=map.get(t);n&&r(n)}})),n.push(t)}return t.forEach((function(t){map.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||r(t)})),n}var Q={placement:"bottom",modifiers:[],strategy:"absolute"};function tt(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}function at(t){var e,n=t.reference,element=t.element,r=t.placement,o=r?it(r):null,l=r?ot(r):null,c=n.x+n.width/2-element.width/2,h=n.y+n.height/2-element.height/2;switch(o){case $:e={x:c,y:n.y-element.height};break;case N:e={x:c,y:n.y+n.height};break;case L:e={x:n.x+n.width,y:h};break;case I:e={x:n.x-element.width,y:h};break;default:e={x:n.x,y:n.y}}var d=o?st(o):null;if(null!=d){var f="y"===d?"height":"width";switch(l){case V:e[d]=e[d]-(n[f]/2-element[f]/2);break;case H:e[d]=e[d]+(n[f]/2-element[f]/2)}}return e}var lt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ct(t){var e,n=t.popper,r=t.popperRect,o=t.placement,c=t.variation,h=t.offsets,d=t.position,f=t.gpuAcceleration,m=t.adaptive,y=t.roundOffsets,w=t.isFixed,x=h.x,k=void 0===x?0:x,S=h.y,C=void 0===S?0:S,E="function"==typeof y?y({x:k,y:C}):{x:k,y:C};k=E.x,C=E.y;var A=h.hasOwnProperty("x"),T=h.hasOwnProperty("y"),M=I,D=$,j=window;if(m){var P=B(n),R="clientHeight",F="clientWidth";if(P===l(n)&&"static"!==O(P=_(n)).position&&"absolute"===d&&(R="scrollHeight",F="scrollWidth"),o===$||(o===I||o===L)&&c===H)D=N,C-=(w&&P===j&&j.visualViewport?j.visualViewport.height:P[R])-r.height,C*=f?1:-1;if(o===I||(o===$||o===N)&&c===H)M=L,k-=(w&&P===j&&j.visualViewport?j.visualViewport.width:P[F])-r.width,k*=f?1:-1}var z,V=Object.assign({position:d},m&<),W=!0===y?function(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:v(n*o)/o||0,y:v(r*o)/o||0}}({x:k,y:C},l(n)):{x:k,y:C};return k=W.x,C=W.y,f?Object.assign({},V,((z={})[D]=T?"0":"",z[M]=A?"0":"",z.transform=(j.devicePixelRatio||1)<=1?"translate("+k+"px, "+C+"px)":"translate3d("+k+"px, "+C+"px, 0)",z)):Object.assign({},V,((e={})[D]=T?C+"px":"",e[M]=A?k+"px":"",e.transform="",e))}var ut={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var style=e.styles[t]||{},n=e.attributes[t]||{},element=e.elements[t];h(element)&&S(element)&&(Object.assign(element.style,style),Object.keys(n).forEach((function(t){var e=n[t];!1===e?element.removeAttribute(t):element.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var element=e.elements[t],r=e.attributes[t]||{},style=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(style,t){return style[t]="",style}),{});h(element)&&S(element)&&(Object.assign(element.style,style),Object.keys(r).forEach((function(t){element.removeAttribute(t)})))}))}},requires:["computeStyles"]};var ht={left:"right",right:"left",bottom:"top",top:"bottom"};function pt(t){return t.replace(/left|right|bottom|top/g,(function(t){return ht[t]}))}var ft={start:"end",end:"start"};function mt(t){return t.replace(/start|end/g,(function(t){return ft[t]}))}function gt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&d(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vt(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function bt(element,t,e){return t===U?vt(function(element,t){var e=l(element),html=_(element),n=e.visualViewport,r=html.clientWidth,o=html.clientHeight,c=0,h=0;if(n){r=n.width,o=n.height;var d=w();(d||!d&&"fixed"===t)&&(c=n.offsetLeft,h=n.offsetTop)}return{width:r,height:o,x:c+C(element),y:h}}(element,e)):c(t)?function(element,t){var rect=x(element,!1,"fixed"===t);return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}(t,e):vt(function(element){var t,html=_(element),e=k(element),body=null==(t=element.ownerDocument)?void 0:t.body,n=f(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),r=f(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),o=-e.scrollLeft+C(element),l=-e.scrollTop;return"rtl"===O(body||html).direction&&(o+=f(html.clientWidth,body?body.clientWidth:0)-n),{width:n,height:r,x:o,y:l}}(_(element)))}function yt(element,t,e,n){var r="clippingParents"===t?function(element){var t=j(M(element)),e=["absolute","fixed"].indexOf(O(element).position)>=0&&h(element)?B(element):element;return c(e)?t.filter((function(t){return c(t)&>(t,e)&&"body"!==S(t)})):[]}(element):[].concat(t),o=[].concat(r,[e]),l=o[0],d=o.reduce((function(t,e){var rect=bt(element,e,n);return t.top=f(rect.top,t.top),t.right=m(rect.right,t.right),t.bottom=m(rect.bottom,t.bottom),t.left=f(rect.left,t.left),t}),bt(element,l,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function wt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function xt(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function kt(t,e){void 0===e&&(e={});var n=e,r=n.placement,o=void 0===r?t.placement:r,l=n.strategy,h=void 0===l?t.strategy:l,d=n.boundary,f=void 0===d?W:d,m=n.rootBoundary,v=void 0===m?U:m,y=n.elementContext,w=void 0===y?Y:y,k=n.altBoundary,S=void 0!==k&&k,C=n.padding,O=void 0===C?0:C,E=wt("number"!=typeof O?O:xt(O,z)),A=w===Y?G:Y,T=t.rects.popper,element=t.elements[S?A:w],M=yt(c(element)?element:element.contextElement||_(t.elements.popper),f,v,h),D=x(t.elements.reference),j=at({reference:D,element:T,strategy:"absolute",placement:o}),P=vt(Object.assign({},T,j)),R=w===Y?P:D,B={top:M.top-R.top+E.top,bottom:R.bottom-M.bottom+E.bottom,left:M.left-R.left+E.left,right:R.right-M.right+E.right},I=t.modifiersData.offset;if(w===Y&&I){var F=I[o];Object.keys(B).forEach((function(t){var e=[L,N].indexOf(t)>=0?1:-1,n=[$,N].indexOf(t)>=0?"y":"x";B[t]+=F[n]*e}))}return B}function St(t,e,n){return f(t,m(e,n))}function _t(t,rect,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-rect.height-e.y,right:t.right-rect.width+e.x,bottom:t.bottom-rect.height+e.y,left:t.left-rect.width-e.x}}function Ct(t){return[$,L,N,I].some((function(e){return t[e]>=0}))}var Ot=et({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,c=void 0===o||o,h=r.resize,d=void 0===h||h,f=l(e.elements.popper),m=[].concat(e.scrollParents.reference,e.scrollParents.popper);return c&&m.forEach((function(t){t.addEventListener("scroll",n.update,nt)})),d&&f.addEventListener("resize",n.update,nt),function(){c&&m.forEach((function(t){t.removeEventListener("scroll",n.update,nt)})),d&&f.removeEventListener("resize",n.update,nt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=at({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=void 0===r||r,l=n.adaptive,c=void 0===l||l,h=n.roundOffsets,d=void 0===h||h,f={placement:it(e.placement),variation:ot(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ct(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:d})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ct(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ut,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,o=n.offset,l=void 0===o?[0,0]:o,data=J.reduce((function(t,n){return t[n]=function(t,e,n){var r=it(t),o=[I,$].indexOf(r)>=0?-1:1,l="function"==typeof n?n(Object.assign({},e,{placement:t})):n,c=l[0],h=l[1];return c=c||0,h=(h||0)*o,[I,L].indexOf(r)>=0?{x:h,y:c}:{x:c,y:h}}(n,e.rects,l),t}),{}),c=data[e.placement],h=c.x,d=c.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=h,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=data}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,l=void 0===o||o,c=n.altAxis,h=void 0===c||c,d=n.fallbackPlacements,f=n.padding,m=n.boundary,v=n.rootBoundary,y=n.altBoundary,w=n.flipVariations,x=void 0===w||w,k=n.allowedAutoPlacements,S=e.options.placement,_=it(S),C=d||(_===S||!x?[pt(S)]:function(t){if(it(t)===F)return[];var e=pt(t);return[mt(t),e,mt(e)]}(S)),O=[S].concat(C).reduce((function(t,n){return t.concat(it(n)===F?function(t,e){void 0===e&&(e={});var n=e,r=n.placement,o=n.boundary,l=n.rootBoundary,c=n.padding,h=n.flipVariations,d=n.allowedAutoPlacements,f=void 0===d?J:d,m=ot(r),v=m?h?K:K.filter((function(t){return ot(t)===m})):z,y=v.filter((function(t){return f.indexOf(t)>=0}));0===y.length&&(y=v);var w=y.reduce((function(e,n){return e[n]=kt(t,{placement:n,boundary:o,rootBoundary:l,padding:c})[it(n)],e}),{});return Object.keys(w).sort((function(a,b){return w[a]-w[b]}))}(e,{placement:n,boundary:m,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:k}):n)}),[]),E=e.rects.reference,A=e.rects.popper,T=new Map,M=!0,D=O[0],i=0;i=0,H=B?"width":"height",W=kt(e,{placement:j,boundary:m,rootBoundary:v,altBoundary:y,padding:f}),U=B?R?L:I:R?N:$;E[H]>A[H]&&(U=pt(U));var Y=pt(U),G=[];if(l&&G.push(W[P]<=0),h&&G.push(W[U]<=0,W[Y]<=0),G.every((function(t){return t}))){D=j,M=!1;break}T.set(j,G)}if(M)for(var X=function(t){var e=O.find((function(e){var n=T.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return D=e,"break"},Z=x?3:1;Z>0;Z--){if("break"===X(Z))break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,l=void 0===o||o,c=n.altAxis,h=void 0!==c&&c,d=n.boundary,v=n.rootBoundary,y=n.altBoundary,w=n.padding,x=n.tether,k=void 0===x||x,S=n.tetherOffset,_=void 0===S?0:S,C=kt(e,{boundary:d,rootBoundary:v,padding:w,altBoundary:y}),O=it(e.placement),E=ot(e.placement),A=!E,M=st(O),D="x"===M?"y":"x",j=e.modifiersData.popperOffsets,P=e.rects.reference,R=e.rects.popper,F="function"==typeof _?_(Object.assign({},e.rects,{placement:e.placement})):_,z="number"==typeof F?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,data={x:0,y:0};if(j){if(l){var W,U="y"===M?$:I,Y="y"===M?N:L,G="y"===M?"height":"width",K=j[M],J=K+C[U],X=K-C[Y],Z=k?-R[G]/2:0,Q=E===V?P[G]:R[G],tt=E===V?-R[G]:-P[G],et=e.elements.arrow,nt=k&&et?T(et):{width:0,height:0},at=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},lt=at[U],ct=at[Y],ut=St(0,P[G],nt[G]),ht=A?P[G]/2-Z-ut-lt-z.mainAxis:Q-ut-lt-z.mainAxis,pt=A?-P[G]/2+Z+ut+ct+z.mainAxis:tt+ut+ct+z.mainAxis,ft=e.elements.arrow&&B(e.elements.arrow),mt=ft?"y"===M?ft.clientTop||0:ft.clientLeft||0:0,gt=null!=(W=null==H?void 0:H[M])?W:0,vt=K+pt-gt,bt=St(k?m(J,K+ht-gt-mt):J,K,k?f(X,vt):X);j[M]=bt,data[M]=bt-K}if(h){var yt,wt="x"===M?$:I,xt="x"===M?N:L,_t=j[D],Ct="y"===D?"height":"width",Ot=_t+C[wt],Et=_t-C[xt],At=-1!==[$,I].indexOf(O),Tt=null!=(yt=null==H?void 0:H[D])?yt:0,Mt=At?Ot:_t-P[Ct]-R[Ct]-Tt+z.altAxis,Dt=At?_t+P[Ct]+R[Ct]-Tt-z.altAxis:Et,jt=k&&At?function(t,e,n){var r=St(t,e,n);return r>n?n:r}(Mt,_t,Dt):St(k?Mt:Ot,_t,k?Dt:Et);j[D]=jt,data[D]=jt-_t}e.modifiersData[r]=data}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,o=t.options,l=n.elements.arrow,c=n.modifiersData.popperOffsets,h=it(n.placement),d=st(h),f=[I,L].indexOf(h)>=0?"height":"width";if(l&&c){var m=function(t,e){return wt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:xt(t,z))}(o.padding,n),v=T(l),y="y"===d?$:I,w="y"===d?N:L,x=n.rects.reference[f]+n.rects.reference[d]-c[d]-n.rects.popper[f],k=c[d]-n.rects.reference[d],S=B(l),_=S?"y"===d?S.clientHeight||0:S.clientWidth||0:0,C=x/2-k/2,O=m[y],E=_-v[f]-m[w],A=_/2-v[f]/2+C,M=St(O,A,E),D=d;n.modifiersData[r]=((e={})[D]=M,e.centerOffset=M-A,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&>(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,l=e.modifiersData.preventOverflow,c=kt(e,{elementContext:"reference"}),h=kt(e,{altBoundary:!0}),d=_t(c,r),f=_t(h,o,l),m=Ct(d),v=Ct(f);e.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:m,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":v})}}]}),Et="tippy-content",At="tippy-backdrop",Tt="tippy-arrow",Mt="tippy-svg-arrow",Dt={passive:!0,capture:!0},jt=function(){return document.body};function Pt(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function Rt(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function Bt(t,e){return"function"==typeof t?t.apply(void 0,e):t}function $t(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function Nt(t){return[].concat(t)}function Lt(t,e){-1===t.indexOf(e)&&t.push(e)}function It(t){return t.split("-")[0]}function Ft(t){return[].slice.call(t)}function zt(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function div(){return document.createElement("div")}function Vt(t){return["Element","Fragment"].some((function(e){return Rt(t,e)}))}function Ht(t){return Rt(t,"MouseEvent")}function Wt(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function qt(t){return Vt(t)?[t]:function(t){return Rt(t,"NodeList")}(t)?Ft(t):Array.isArray(t)?t:Ft(document.querySelectorAll(t))}function Ut(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function Yt(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function Gt(t){var e,element=Nt(t)[0];return null!=element&&null!=(e=element.ownerDocument)&&e.body?element.ownerDocument:document}function Kt(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}function Jt(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Xt={isTouch:!1},Zt=0;function Qt(){Xt.isTouch||(Xt.isTouch=!0,window.performance&&document.addEventListener("mousemove",te))}function te(){var t=performance.now();t-Zt<20&&(Xt.isTouch=!1,document.removeEventListener("mousemove",te)),Zt=t}function ee(){var t=document.activeElement;if(Wt(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var ne=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var re={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ie=Object.assign({appendTo:jt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},re,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),oe=Object.keys(ie);function se(t){var e=(t.plugins||[]).reduce((function(e,n){var r,o=n.name,l=n.defaultValue;o&&(e[o]=void 0!==t[o]?t[o]:null!=(r=ie[o])?r:l);return e}),{});return Object.assign({},t,e)}function ae(t,e){var n=Object.assign({},e,{content:Bt(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(se(Object.assign({},ie,{plugins:e}))):oe).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},ie.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}var le=function(){return"innerHTML"};function ce(element,html){element[le()]=html}function ue(t){var e=div();return!0===t?e.className=Tt:(e.className=Mt,Vt(t)?e.appendChild(t):ce(e,t)),e}function he(content,t){Vt(t.content)?(ce(content,""),content.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ce(content,t.content):content.textContent=t.content)}function de(t){var e=t.firstElementChild,n=Ft(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(Et)})),arrow:n.find((function(t){return t.classList.contains(Tt)||t.classList.contains(Mt)})),backdrop:n.find((function(t){return t.classList.contains(At)}))}}function pe(t){var e=div(),n=div();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var content=div();function r(n,r){var o=de(e),l=o.box,content=o.content,c=o.arrow;r.theme?l.setAttribute("data-theme",r.theme):l.removeAttribute("data-theme"),"string"==typeof r.animation?l.setAttribute("data-animation",r.animation):l.removeAttribute("data-animation"),r.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?l.setAttribute("role",r.role):l.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||he(content,t.props),r.arrow?c?n.arrow!==r.arrow&&(l.removeChild(c),l.appendChild(ue(r.arrow))):l.appendChild(ue(r.arrow)):c&&l.removeChild(c)}return content.className=Et,content.setAttribute("data-state","hidden"),he(content,t.props),e.appendChild(n),n.appendChild(content),r(t.props,t.props),{popper:e,onUpdate:r}}pe.$$tippy=!0;var fe=1,me=[],ge=[];function ve(t,e){var n,r,o,l,c,h,d,f,m=ae(t,Object.assign({},ie,se(zt(e)))),v=!1,y=!1,w=!1,x=!1,k=[],S=$t(et,m.interactiveDebounce),_=fe++,C=(f=m.plugins).filter((function(t,e){return f.indexOf(t)===e})),O={id:_,reference:t,popper:div(),popperInstance:null,props:m,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:C,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(e){0;if(O.state.isDestroyed)return;F("onBeforeUpdate",[O,e]),Q();var n=O.props,r=ae(t,Object.assign({},n,zt(e),{ignoreAttributes:!0}));O.props=r,Z(),n.interactiveDebounce!==r.interactiveDebounce&&(H(),S=$t(et,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Nt(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded");V(),I(),T&&T(n,r);O.popperInstance&&(st(),lt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));F("onAfterUpdate",[O,e])},setContent:function(content){O.setProps({content:content})},show:function(){0;var t=O.state.isVisible,e=O.state.isDestroyed,n=!O.state.isEnabled,r=Xt.isTouch&&!O.props.touch,o=Pt(O.props.duration,0,ie.duration);if(t||e||n||r)return;if(B().hasAttribute("disabled"))return;if(F("onShow",[O],!1),!1===O.props.onShow(O))return;O.state.isVisible=!0,R()&&(A.style.visibility="visible");I(),G(),O.state.isMounted||(A.style.transition="none");if(R()){var l=N();Ut([l.box,l.content],0)}h=function(){var t;if(O.state.isVisible&&!x){if(x=!0,A.offsetHeight,A.style.transition=O.props.moveTransition,R()&&O.props.animation){var e=N(),n=e.box,r=e.content;Ut([n,r],o),Yt([n,r],"visible")}z(),V(),Lt(ge,O),null==(t=O.popperInstance)||t.forceUpdate(),F("onMount",[O]),O.props.animation&&R()&&function(t,e){J(t,e)}(o,(function(){O.state.isShown=!0,F("onShown",[O])}))}},function(){var t,e=O.props.appendTo,n=B();t=O.props.interactive&&e===jt||"parent"===e?n.parentNode:Bt(e,[n]);t.contains(A)||t.appendChild(A);O.state.isMounted=!0,st(),!1}()},hide:function(){0;var t=!O.state.isVisible,e=O.state.isDestroyed,n=!O.state.isEnabled,r=Pt(O.props.duration,1,ie.duration);if(t||e||n)return;if(F("onHide",[O],!1),!1===O.props.onHide(O))return;O.state.isVisible=!1,O.state.isShown=!1,x=!1,v=!1,R()&&(A.style.visibility="hidden");if(H(),K(),I(!0),R()){var o=N(),l=o.box,content=o.content;O.props.animation&&(Ut([l,content],r),Yt([l,content],"hidden"))}z(),V(),O.props.animation?R()&&function(t,e){J(t,(function(){!O.state.isVisible&&A.parentNode&&A.parentNode.contains(A)&&e()}))}(r,O.unmount):O.unmount()},hideWithInteractivity:function(t){0;$().addEventListener("mousemove",S),Lt(me,S),S(t)},enable:function(){O.state.isEnabled=!0},disable:function(){O.hide(),O.state.isEnabled=!1},unmount:function(){0;O.state.isVisible&&O.hide();if(!O.state.isMounted)return;at(),lt().forEach((function(t){t._tippy.unmount()})),A.parentNode&&A.parentNode.removeChild(A);ge=ge.filter((function(i){return i!==O})),O.state.isMounted=!1,F("onHidden",[O])},destroy:function(){0;if(O.state.isDestroyed)return;O.clearDelayTimeouts(),O.unmount(),Q(),delete t._tippy,O.state.isDestroyed=!0,F("onDestroy",[O])}};if(!m.render)return O;var E=m.render(O),A=E.popper,T=E.onUpdate;A.setAttribute("data-tippy-root",""),A.id="tippy-"+O.id,O.popper=A,t._tippy=O,A._tippy=O;var M=C.map((function(t){return t.fn(O)})),D=t.hasAttribute("aria-expanded");return Z(),V(),I(),F("onCreate",[O]),m.showOnCreate&&ct(),A.addEventListener("mouseenter",(function(){O.props.interactive&&O.state.isVisible&&O.clearDelayTimeouts()})),A.addEventListener("mouseleave",(function(){O.props.interactive&&O.props.trigger.indexOf("mouseenter")>=0&&$().addEventListener("mousemove",S)})),O;function j(){var t=O.props.touch;return Array.isArray(t)?t:[t,0]}function P(){return"hold"===j()[0]}function R(){var t;return!(null==(t=O.props.render)||!t.$$tippy)}function B(){return d||t}function $(){var t=B().parentNode;return t?Gt(t):document}function N(){return de(A)}function L(t){return O.state.isMounted&&!O.state.isVisible||Xt.isTouch||l&&"focus"===l.type?0:Pt(O.props.delay,t?0:1,ie.delay)}function I(t){void 0===t&&(t=!1),A.style.pointerEvents=O.props.interactive&&!t?"":"none",A.style.zIndex=""+O.props.zIndex}function F(t,e,n){var r;(void 0===n&&(n=!0),M.forEach((function(n){n[t]&&n[t].apply(n,e)})),n)&&(r=O.props)[t].apply(r,e)}function z(){var e=O.props.aria;if(e.content){var n="aria-"+e.content,r=A.id;Nt(O.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(O.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var o=e&&e.replace(r,"").trim();o?t.setAttribute(n,o):t.removeAttribute(n)}}))}}function V(){!D&&O.props.aria.expanded&&Nt(O.props.triggerTarget||t).forEach((function(t){O.props.interactive?t.setAttribute("aria-expanded",O.state.isVisible&&t===B()?"true":"false"):t.removeAttribute("aria-expanded")}))}function H(){$().removeEventListener("mousemove",S),me=me.filter((function(t){return t!==S}))}function W(e){if(!Xt.isTouch||!w&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!O.props.interactive||!Jt(A,n)){if(Nt(O.props.triggerTarget||t).some((function(t){return Jt(t,n)}))){if(Xt.isTouch)return;if(O.state.isVisible&&O.props.trigger.indexOf("click")>=0)return}else F("onClickOutside",[O,e]);!0===O.props.hideOnClick&&(O.clearDelayTimeouts(),O.hide(),y=!0,setTimeout((function(){y=!1})),O.state.isMounted||K())}}}function U(){w=!0}function Y(){w=!1}function G(){var t=$();t.addEventListener("mousedown",W,!0),t.addEventListener("touchend",W,Dt),t.addEventListener("touchstart",Y,Dt),t.addEventListener("touchmove",U,Dt)}function K(){var t=$();t.removeEventListener("mousedown",W,!0),t.removeEventListener("touchend",W,Dt),t.removeEventListener("touchstart",Y,Dt),t.removeEventListener("touchmove",U,Dt)}function J(t,e){var n=N().box;function r(t){t.target===n&&(Kt(n,"remove",r),e())}if(0===t)return e();Kt(n,"remove",c),Kt(n,"add",r),c=r}function X(e,n,r){void 0===r&&(r=!1),Nt(O.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,r),k.push({node:t,eventType:e,handler:n,options:r})}))}function Z(){var t;P()&&(X("touchstart",tt,{passive:!0}),X("touchend",nt,{passive:!0})),(t=O.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(X(t,tt),t){case"mouseenter":X("mouseleave",nt);break;case"focus":X(ne?"focusout":"blur",it);break;case"focusin":X("focusout",it)}}))}function Q(){k.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,o=t.options;e.removeEventListener(n,r,o)})),k=[]}function tt(t){var e,n=!1;if(O.state.isEnabled&&!ot(t)&&!y){var r="focus"===(null==(e=l)?void 0:e.type);l=t,d=t.currentTarget,V(),!O.state.isVisible&&Ht(t)&&me.forEach((function(e){return e(t)})),"click"===t.type&&(O.props.trigger.indexOf("mouseenter")<0||v)&&!1!==O.props.hideOnClick&&O.state.isVisible?n=!0:ct(t),"click"===t.type&&(v=!n),n&&!r&&ut(t)}}function et(t){var e=t.target,n=B().contains(e)||A.contains(e);if("mousemove"!==t.type||!n){var r=lt().concat(A).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:m}:null})).filter(Boolean);(function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,o=t.popperState,l=t.props.interactiveBorder,c=It(o.placement),h=o.modifiersData.offset;if(!h)return!0;var d="bottom"===c?h.top.y:0,f="top"===c?h.bottom.y:0,m="right"===c?h.left.x:0,v="left"===c?h.right.x:0,y=e.top-r+d>l,w=r-e.bottom-f>l,x=e.left-n+m>l,k=n-e.right-v>l;return y||w||x||k}))})(r,t)&&(H(),ut(t))}}function nt(t){ot(t)||O.props.trigger.indexOf("click")>=0&&v||(O.props.interactive?O.hideWithInteractivity(t):ut(t))}function it(t){O.props.trigger.indexOf("focusin")<0&&t.target!==B()||O.props.interactive&&t.relatedTarget&&A.contains(t.relatedTarget)||ut(t)}function ot(t){return!!Xt.isTouch&&P()!==t.type.indexOf("touch")>=0}function st(){at();var e=O.props,n=e.popperOptions,r=e.placement,o=e.offset,l=e.getReferenceClientRect,c=e.moveTransition,d=R()?de(A).arrow:null,f=l?{getBoundingClientRect:l,contextElement:l.contextElement||B()}:t,m={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(R()){var n=N().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},v=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!c}},m];R()&&d&&v.push({name:"arrow",options:{element:d,padding:3}}),v.push.apply(v,(null==n?void 0:n.modifiers)||[]),O.popperInstance=Ot(f,A,Object.assign({},n,{placement:r,onFirstUpdate:h,modifiers:v}))}function at(){O.popperInstance&&(O.popperInstance.destroy(),O.popperInstance=null)}function lt(){return Ft(A.querySelectorAll("[data-tippy-root]"))}function ct(t){O.clearDelayTimeouts(),t&&F("onTrigger",[O,t]),G();var e=L(!0),r=j(),o=r[0],l=r[1];Xt.isTouch&&"hold"===o&&l&&(e=l),e?n=setTimeout((function(){O.show()}),e):O.show()}function ut(t){if(O.clearDelayTimeouts(),F("onUntrigger",[O,t]),O.state.isVisible){if(!(O.props.trigger.indexOf("mouseenter")>=0&&O.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&v)){var e=L(!1);e?r=setTimeout((function(){O.state.isVisible&&O.hide()}),e):o=requestAnimationFrame((function(){O.hide()}))}}else K()}}function be(t,e){void 0===e&&(e={});var n=ie.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",Qt,Dt),window.addEventListener("blur",ee);var r=Object.assign({},e,{plugins:n}),o=qt(t).reduce((function(t,e){var n=e&&ve(e,r);return n&&t.push(n),t}),[]);return Vt(t)?o[0]:o}be.defaultProps=ie,be.setDefaultProps=function(t){Object.keys(t).forEach((function(e){ie[e]=t[e]}))},be.currentInput=Xt;Object.assign({},ut,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}});be.setDefaultProps({render:pe});var ye=be;class we{constructor({editor:t,element:element,view:view,tippyOptions:e={},updateDelay:n=250,shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:view,state:t,from:e,to:n})=>{const{doc:o,selection:l}=t,{empty:c}=l,h=!o.textBetween(e,n).length&&Object(r.p)(t.selection),d=this.element.contains(document.activeElement);return!(!view.hasFocus()&&!d||c||h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout((()=>this.update(this.editor.view)))},this.blurHandler=({event:t})=>{var e;this.preventHide?this.preventHide=!1:(null==t?void 0:t.relatedTarget)&&(null===(e=this.element.parentNode)||void 0===e?void 0:e.contains(t.relatedTarget))||this.hide()},this.tippyBlurHandler=t=>{this.blurHandler({event:t})},this.handleDebouncedUpdate=(view,t)=>{const e=!(null==t?void 0:t.selection.eq(view.state.selection)),n=!(null==t?void 0:t.doc.eq(view.state.doc));(e||n)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout((()=>{this.updateHandler(view,e,n,t)}),this.updateDelay))},this.updateHandler=(view,t,e,n)=>{var o,l,c;const{state:h,composing:d}=view,{selection:f}=h;if(d||!t&&!e)return;this.createTooltip();const{ranges:m}=f,v=Math.min(...m.map((t=>t.$from.pos))),y=Math.max(...m.map((t=>t.$to.pos)));(null===(o=this.shouldShow)||void 0===o?void 0:o.call(this,{editor:this.editor,view:view,state:h,oldState:n,from:v,to:y}))?(null===(l=this.tippy)||void 0===l||l.setProps({getReferenceClientRect:(null===(c=this.tippyOptions)||void 0===c?void 0:c.getReferenceClientRect)||(()=>{if(Object(r.o)(h.selection)){let t=view.nodeDOM(v);const e=t.dataset.nodeViewWrapper?t:t.querySelector("[data-node-view-wrapper]");if(e&&(t=e.firstChild),t)return t.getBoundingClientRect()}return Object(r.u)(view,v,y)})}),this.show()):this.hide()},this.editor=t,this.element=element,this.view=view,this.updateDelay=n,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=e,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,e=!!t.parentElement;!this.tippy&&e&&(this.tippy=ye(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(view,t){const{state:e}=view,n=e.selection.$from.pos!==e.selection.$to.pos;if(this.updateDelay>0&&n)return void this.handleDebouncedUpdate(view,t);const r=!(null==t?void 0:t.selection.eq(view.state.selection)),o=!(null==t?void 0:t.doc.eq(view.state.doc));this.updateHandler(view,r,o,t)}show(){var t;null===(t=this.tippy)||void 0===t||t.show()}hide(){var t;null===(t=this.tippy)||void 0===t||t.hide()}destroy(){var t,e;(null===(t=this.tippy)||void 0===t?void 0:t.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(e=this.tippy)||void 0===e||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const xe=t=>new o.c({key:"string"==typeof t.pluginKey?new o.d(t.pluginKey):t.pluginKey,view:view=>new we({view:view,...t})});r.b.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[xe({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class ke{constructor({editor:t,element:element,view:view,tippyOptions:e={},shouldShow:n}){this.preventHide=!1,this.shouldShow=({view:view,state:t})=>{const{selection:e}=t,{$anchor:n,empty:r}=e,o=1===n.depth,l=n.parent.isTextblock&&!n.parent.type.spec.code&&!n.parent.textContent;return!!(view.hasFocus()&&r&&o&&l&&this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout((()=>this.update(this.editor.view)))},this.blurHandler=({event:t})=>{var e;this.preventHide?this.preventHide=!1:(null==t?void 0:t.relatedTarget)&&(null===(e=this.element.parentNode)||void 0===e?void 0:e.contains(t.relatedTarget))||this.hide()},this.tippyBlurHandler=t=>{this.blurHandler({event:t})},this.editor=t,this.element=element,this.view=view,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=e,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,e=!!t.parentElement;!this.tippy&&e&&(this.tippy=ye(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(view,t){var e,n,o;const{state:l}=view,{doc:c,selection:h}=l,{from:d,to:f}=h;if(t&&t.doc.eq(c)&&t.selection.eq(h))return;this.createTooltip();(null===(e=this.shouldShow)||void 0===e?void 0:e.call(this,{editor:this.editor,view:view,state:l,oldState:t}))?(null===(n=this.tippy)||void 0===n||n.setProps({getReferenceClientRect:(null===(o=this.tippyOptions)||void 0===o?void 0:o.getReferenceClientRect)||(()=>Object(r.u)(view,d,f))}),this.show()):this.hide()}show(){var t;null===(t=this.tippy)||void 0===t||t.show()}hide(){var t;null===(t=this.tippy)||void 0===t||t.hide()}destroy(){var t,e;(null===(t=this.tippy)||void 0===t?void 0:t.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(e=this.tippy)||void 0===e||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Se=t=>new o.c({key:"string"==typeof t.pluginKey?new o.d(t.pluginKey):t.pluginKey,view:view=>new ke({view:view,...t})});r.b.create({name:"floatingMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[Se({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});n(9);class _e extends r.a{constructor(){super(...arguments),this.contentComponent=null}}const Ce={name:"EditorContent",props:{editor:{default:null,type:Object}},watch:{editor:{immediate:!0,handler(t){t&&t.options.element&&this.$nextTick((()=>{const element=this.$el;element&&t.options.element.firstChild&&(element.append(...t.options.element.childNodes),t.contentComponent=this,t.setOptions({element:element}),t.createNodeViews())}))}}},render:t=>t("div"),beforeDestroy(){const{editor:t}=this;if(!t)return;if(t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null,!t.options.element.firstChild)return;const e=document.createElement("div");e.append(...t.options.element.childNodes),t.setOptions({element:e})}};Boolean;r.e},2:function(t,e,n){"use strict";function r(content){this.content=content}n.d(e,"a",(function(){return st})),n.d(e,"b",(function(){return vt})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return nt})),n.d(e,"f",(function(){return L})),n.d(e,"g",(function(){return $})),n.d(e,"h",(function(){return y})),n.d(e,"i",(function(){return it})),n.d(e,"j",(function(){return w})),r.prototype={constructor:r,find:function(t){for(var i=0;i>1}},r.from=function(t){if(t instanceof r)return t;var content=[];if(t)for(var e in t)content.push(e,t[e]);return new r(content)};var o=r;function l(a,b,t){for(let i=0;;i++){if(i==a.childCount||i==b.childCount)return a.childCount==b.childCount?null:t;let e=a.child(i),n=b.child(i);if(e!=n){if(!e.sameMarkup(n))return t;if(e.isText&&e.text!=n.text){for(let r=0;e.text[r]==n.text[r];r++)t++;return t}if(e.content.size||n.content.size){let r=l(e.content,n.content,t+1);if(null!=r)return r}t+=e.nodeSize}else t+=e.nodeSize}}function c(a,b,t,e){for(let n=a.childCount,r=b.childCount;;){if(0==n||0==r)return n==r?null:{a:t,b:e};let o=a.child(--n),l=b.child(--r),h=o.nodeSize;if(o!=l){if(!o.sameMarkup(l))return{a:t,b:e};if(o.isText&&o.text!=l.text){let n=0,r=Math.min(o.text.length,l.text.length);for(;nt&&!1!==n(c,r+l,o||null,i)&&c.content.size){let o=l+1;c.nodesBetween(Math.max(0,t-o),Math.min(c.content.size,e-o),n,r+o)}l=h}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,n,r){let text="",o=!0;return this.nodesBetween(t,e,((l,c)=>{l.isText?(text+=l.text.slice(Math.max(t,c)-c,e-c),o=!n):l.isLeaf?(r?text+="function"==typeof r?r(l):r:l.type.spec.leafText&&(text+=l.type.spec.leafText(l)),o=!n):!o&&l.isBlock&&(text+=n,o=!0)}),0),text}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,n=t.firstChild,content=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(content[content.length-1]=e.withText(e.text+n.text),i=1);it)for(let i=0,o=0;ot&&((oe)&&(l=l.isText?l.cut(Math.max(0,t-o),Math.min(l.text.length,e-o)):l.cut(Math.max(0,t-o-1),Math.min(l.content.size,e-o-1))),n.push(l),r+=l.nodeSize),o=c}return new h(n,r)}cutByIndex(t,e){return t==e?h.empty:0==t&&e==this.content.length?this:new h(this.content.slice(t,e))}replaceChild(t,e){let n=this.content[t];if(n==e)return this;let r=this.content.slice(),o=this.size+e.nodeSize-n.nodeSize;return r[t]=e,new h(r,o)}addToStart(t){return new h([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new h(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let i=0;ithis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let i=0,n=0;;i++){let r=n+this.child(i).nodeSize;if(r>=t)return r==t||e>0?f(i+1,r):f(i,n);n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((t=>t.toJSON())):null}static fromJSON(t,e){if(!e)return h.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new h(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return h.empty;let e,n=0;for(let i=0;ithis.type.rank&&(e||(e=t.slice(0,i)),e.push(this),n=!0),e&&e.push(r)}}return e||(e=t.slice()),n||e.push(this),e}removeFromSet(t){for(let i=0;ia.type.rank-b.type.rank)),e}}v.none=[];class y extends Error{}class w{constructor(content,t,e){this.content=content,this.openStart=t,this.openEnd=e}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let content=k(this.content,t+this.openStart,e);return content&&new w(content,this.openStart,this.openEnd)}removeBetween(t,e){return new w(x(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return w.empty;let n=e.openStart||0,r=e.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new w(h.fromJSON(t,e.content),n,r)}static maxOpen(t,e=!0){let n=0,r=0;for(let r=t.firstChild;r&&!r.isLeaf&&(e||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=t.lastChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.lastChild)r++;return new w(t,n,r)}}function x(content,t,e){let{index:n,offset:r}=content.findIndex(t),o=content.maybeChild(n),{index:l,offset:c}=content.findIndex(e);if(r==t||o.isText){if(c!=e&&!content.child(l).isText)throw new RangeError("Removing non-flat range");return content.cut(0,t).append(content.cut(e))}if(n!=l)throw new RangeError("Removing non-flat range");return content.replaceChild(n,o.copy(x(o.content,t-r-1,e-r-1)))}function k(content,t,e,n){let{index:r,offset:o}=content.findIndex(t),l=content.maybeChild(r);if(o==t||l.isText)return n&&!n.canReplace(r,r,e)?null:content.cut(0,t).append(e).append(content.cut(t));let c=k(l.content,t-o-1,e);return c&&content.replaceChild(r,l.copy(c))}function S(t,e,n){if(n.openStart>t.depth)throw new y("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new y("Inconsistent open depths");return _(t,e,n,0)}function _(t,e,n,r){let o=t.index(r),l=t.node(r);if(o==e.index(r)&&r=0;i--)r=e.node(i).copy(h.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}(n,t);return T(l,M(t,o,c,e,r))}{let r=t.parent,content=r.content;return T(r,content.cut(0,t.parentOffset).append(n.content).append(content.cut(e.parentOffset)))}}return T(l,D(t,e,r))}function C(main,sub){if(!sub.type.compatibleContent(main.type))throw new y("Cannot join "+sub.type.name+" onto "+main.type.name)}function O(t,e,n){let r=t.node(n);return C(r,e.node(n)),r}function E(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function A(t,e,n,r){let o=(e||t).node(n),l=0,c=e?e.index(n):o.childCount;t&&(l=t.index(n),t.depth>n?l++:t.textOffset&&(E(t.nodeAfter,r),l++));for(let i=l;io&&O(t,e,o+1),c=r.depth>o&&O(n,r,o+1),content=[];return A(null,t,o,content),l&&c&&e.index(o)==n.index(o)?(C(l,c),E(T(l,M(t,e,n,r,o+1)),content)):(l&&E(T(l,D(t,e,o+1)),content),A(e,n,o,content),c&&E(T(c,D(n,r,o+1)),content)),A(r,null,o,content),new h(content)}function D(t,e,n){let content=[];if(A(null,t,n,content),t.depth>n){E(T(O(t,e,n+1),D(t,e,n+1)),content)}return A(e,null,n,content),new h(content)}w.empty=new w(h.empty,0,0);class j{constructor(t,path,e){this.pos=t,this.path=path,this.parentOffset=e,this.depth=path.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=t.child(e);return n?t.child(e).cut(n):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let n=this.path[3*e],r=0==e?0:this.path[3*e-1]+1;for(let i=0;i0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new $(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let path=[],n=0,r=e;for(let e=t;;){let{index:t,offset:o}=e.content.findIndex(r),l=r-o;if(path.push(e,t,n+o),!l)break;if(e=e.child(t),e.isText)break;r=l-1,n+=o+1}return new j(e,path,r)}static resolveCached(t,e){for(let i=0;it&&this.nodesBetween(t,e,(t=>(n.isInSet(t.marks)&&(r=!0),!r))),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),F(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,n=h.empty,r=0,o=n.childCount){let l=this.contentMatchAt(t).matchFragment(n,r,o),c=l&&l.matchFragment(this.content,e);if(!c||!c.validEnd)return!1;for(let i=r;it.type.name))}`);this.content.forEach((t=>t.check()))}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map((t=>t.toJSON()))),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,n)}let content=h.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,content,n)}}L.prototype.text=void 0;class I extends L{constructor(t,e,content,n){if(super(t,e,null,n),!content)throw new RangeError("Empty text nodes are not allowed");this.text=content}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):F(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new I(this.type,this.attrs,this.text,t)}withText(text){return text==this.text?this:new I(this.type,this.attrs,text,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let base=super.toJSON();return base.text=this.text,base}}function F(t,e){for(let i=t.length-1;i>=0;i--)e=t[i].type.name+"("+e+")";return e}class z{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let n=new V(t,e);if(null==n.next)return z.empty;let r=H(n);n.next&&n.err("Unexpected trailing text");let o=function(t){let e=Object.create(null);return n(J(t,0));function n(r){let o=[];r.forEach((e=>{t[e].forEach((({term:e,to:n})=>{if(!e)return;let r;for(let i=0;i{r||o.push([e,r=[]]),-1==r.indexOf(t)&&r.push(t)}))}))}));let l=e[r.join(",")]=new z(r.indexOf(t.length-1)>-1);for(let i=0;it.to=e))}function l(t,e){if("choice"==t.type)return t.exprs.reduce(((t,n)=>t.concat(l(n,e))),[]);if("seq"!=t.type){if("star"==t.type){let c=n();return r(e,c),o(l(t.expr,c),c),[r(c)]}if("plus"==t.type){let c=n();return o(l(t.expr,e),c),o(l(t.expr,c),c),[r(c)]}if("opt"==t.type)return[r(e)].concat(l(t.expr,e));if("range"==t.type){let c=e;for(let i=0;it.createAndFill())));for(let i=0;i=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(n){t.push(n);for(let i=0;i{let n=i+(e.validEnd?"*":" ")+" ";for(let i=0;i"+t.indexOf(e.next[i].next);return n})).join("\n")}}z.empty=new z(!0);class V{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function H(t){let e=[];do{e.push(W(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function W(t){let e=[];do{e.push(U(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function U(t){let e=function(t){if(t.eat("(")){let e=H(t);return t.eat(")")||t.err("Missing closing paren"),e}if(!/\W/.test(t.next)){let e=function(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let t in n){let r=n[t];r.groups.indexOf(e)>-1&&o.push(r)}0==o.length&&t.err("No node type or group '"+e+"' found");return o}(t,t.next).map((e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e})));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}t.err("Unexpected token '"+t.next+"'")}(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else{if(!t.eat("{"))break;e=G(t,e)}return e}function Y(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function G(t,e){let n=Y(t),r=n;return t.eat(",")&&(r="}"!=t.next?Y(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function K(a,b){return b-a}function J(t,e){let n=[];return function e(r){let o=t[r];if(1==o.length&&!o[0].term)return e(o[0].to);n.push(r);for(let i=0;i-1}allowsMarks(t){if(null==this.markSet)return!0;for(let i=0;in[t]=new tt(t,e,r)));let r=e.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let t in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class et{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class nt{constructor(t,e,n,r){this.name=t,this.rank=e,this.schema=n,this.spec=r,this.attrs=Q(r.attrs),this.excluded=null;let o=X(this.attrs);this.instance=o?new v(this,o):null}create(t=null){return!t&&this.instance?this.instance:new v(this,Z(this.attrs,t))}static compile(t,e){let n=Object.create(null),r=0;return t.forEach(((t,o)=>n[t]=new nt(t,r++,e,o))),n}removeFromSet(t){for(var i=0;i-1}}class it{constructor(t){this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=o.from(t.nodes),e.marks=o.from(t.marks||{}),this.nodes=tt.compile(this.spec.nodes,this),this.marks=nt.compile(this.spec.marks,this);let n=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw new RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],r=e.spec.content||"",o=e.spec.marks;e.contentMatch=n[r]||(n[r]=z.parse(r,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.markSet="_"==o?null:o?ot(this,o.split(" ")):""!=o&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],n=e.spec.excludes;e.excluded=null==n?[e]:""==n?[]:ot(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,content,n){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof tt))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,content,n)}text(text,t){let e=this.nodes.text;return new I(e,e.defaultAttrs,text,v.setFrom(t))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return L.fromJSON(this,t)}markFromJSON(t){return v.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function ot(t,e){let n=[];for(let i=0;i-1)&&n.push(o=mark)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[i]+"'")}return n}class st{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach((t=>{t.tag?this.tags.push(t):t.style&&this.styles.push(t)})),this.normalizeLists=!this.tags.some((e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let n=t.nodes[e.node];return n.contentMatch.matchType(n)}))}parse(t,e={}){let n=new pt(this,e,!1);return n.addAll(t,e.from,e.to),n.finish()}parseSlice(t,e={}){let n=new pt(this,e,!0);return n.addAll(t,e.from,e.to),w.maxOpen(n.finish())}matchTag(t,e,n){for(let i=n?this.tags.indexOf(n)+1:0;it.length&&(61!=style.charCodeAt(t.length)||style.slice(t.length+1)!=e))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}static schemaRules(t){let e=[];function n(t){let n=null==t.priority?50:t.priority,i=0;for(;i{n(t=mt(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)}))}for(let e in t.nodes){let r=t.nodes[e].spec.parseDOM;r&&r.forEach((t=>{n(t=mt(t)),t.node||t.ignore||t.mark||(t.node=e)}))}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new st(t,st.schemaRules(t)))}}const at={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},lt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ct={ol:!0,ul:!0};function ut(t,e,base){return null!=e?(e?1:0)|("full"===e?2:0):t&&"pre"==t.whitespace?3:-5&base}class ht{constructor(t,e,n,r,o,l,c){this.type=t,this.attrs=e,this.marks=n,this.pendingMarks=r,this.solid=o,this.options=c,this.content=[],this.activeMarks=v.none,this.stashMarks=[],this.match=l||(4&c?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(h.from(t));if(!e){let e,n=this.type.contentMatch;return(e=n.findWrapping(t.type))?(this.match=n,e):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t,e=this.content[this.content.length-1];if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let text=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=text.withText(text.text.slice(0,text.text.length-t[0].length))}}let content=h.from(this.content);return!t&&this.match&&(content=content.append(this.match.fillBefore(h.empty,!0))),this.type?this.type.create(this.attrs,content,this.marks):content}popFromStashMark(mark){for(let i=this.stashMarks.length-1;i>=0;i--)if(mark.eq(this.stashMarks[i]))return this.stashMarks.splice(i,1)[0]}applyPending(t){for(let i=0,e=this.pendingMarks;i{o.clearMark(t)&&(n=t.addToSet(n))})):e=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(e),!1!==o.consuming)break;r=o}return[e,n]}addElementByRule(t,e,n){let r,o,mark;if(e.node)o=this.parser.schema.nodes[e.node],o.isLeaf?this.insertNode(o.create(e.attrs))||this.leafFallback(t):r=this.enter(o,e.attrs||null,e.preserveWhitespace);else{mark=this.parser.schema.marks[e.mark].create(e.attrs),this.addPendingMark(mark)}let l=this.top;if(o&&o.isLeaf)this.findInside(t);else if(n)this.addElement(t,n);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach((t=>this.insertNode(t)));else{let n=t;"string"==typeof e.contentElement?n=t.querySelector(e.contentElement):"function"==typeof e.contentElement?n=e.contentElement(t):e.contentElement&&(n=e.contentElement),this.findAround(t,n,!0),this.addAll(n)}r&&this.sync(l)&&this.open--,mark&&this.removePendingMark(mark,l)}addAll(t,e,n){let r=e||0;for(let o=e?t.childNodes[e]:t.firstChild,l=null==n?null:t.childNodes[n];o!=l;o=o.nextSibling,++r)this.findAtPoint(t,r),this.addDOM(o);this.findAtPoint(t,r)}findPlace(t){let e,n;for(let r=this.open;r>=0;r--){let o=this.nodes[r],l=o.findWrapping(t);if(l&&(!e||e.length>l.length)&&(e=l,n=o,!l.length))break;if(o.solid)break}if(!e)return!1;this.sync(n);for(let i=0;ithis.open){for(;i>this.open;i--)this.nodes[i-1].content.push(this.nodes[i].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let i=this.open;i>=0;i--)if(this.nodes[i]==t)return this.open=i,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let i=this.open;i>=0;i--){let content=this.nodes[i].content;for(let e=content.length-1;e>=0;e--)t+=content[e].nodeSize;i&&t++}return t}findAtPoint(t,e){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),option=this.options.context,n=!(this.isOpen||option&&option.parent.type!=this.nodes[0].type),r=-(option?option.depth+1:0)+(n?0:1),o=(i,t)=>{for(;i>=0;i--){let l=e[i];if(""==l){if(i==e.length-1||0==i)continue;for(;t>=r;t--)if(o(i-1,t))return!0;return!1}{let e=t>0||0==t&&n?this.nodes[t].type:option&&t>=r?option.node(t-r).type:null;if(!e||e.name!=l&&-1==e.groups.indexOf(l))return!1;t--}}return!0};return o(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}addPendingMark(mark){let t=function(mark,t){for(let i=0;i=0;e--){let n=this.nodes[e];if(n.pendingMarks.lastIndexOf(mark)>-1)n.pendingMarks=mark.removeFromSet(n.pendingMarks);else{n.activeMarks=mark.removeFromSet(n.activeMarks);let t=n.popFromStashMark(mark);t&&n.type&&n.type.allowsMarkType(t.type)&&(n.activeMarks=t.addToSet(n.activeMarks))}if(n==t)break}}}function ft(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function mt(t){let e={};for(let n in t)e[n]=t[n];return e}function gt(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let l=[],c=t=>{l.push(t);for(let i=0;i{if(o.length||t.marks.length){let n=0,l=0;for(;n=0;i--){let r=this.serializeMark(t.marks[i],t.isInline,e);r&&((r.contentDOM||r.dom).appendChild(n),n=r.dom)}return n}serializeMark(mark,t,e={}){let n=this.marks[mark.type.name];return n&&vt.renderSpec(yt(e),n(mark,t))}static renderSpec(t,e,n=null){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let r,o=e[0],l=o.indexOf(" ");l>0&&(n=o.slice(0,l),o=o.slice(l+1));let c=n?t.createElementNS(n,o):t.createElement(o),h=e[1],d=1;if(h&&"object"==typeof h&&null==h.nodeType&&!Array.isArray(h)){d=2;for(let t in h)if(null!=h[t]){let e=t.indexOf(" ");e>0?c.setAttributeNS(t.slice(0,e),t.slice(e+1),h[t]):c.setAttribute(t,h[t])}}for(let i=d;id)throw new RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}{let{dom:e,contentDOM:l}=vt.renderSpec(t,o,n);if(c.appendChild(e),l){if(r)throw new RangeError("Multiple content holes");r=l}}}return{dom:c,contentDOM:r}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new vt(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=bt(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return bt(t.marks)}}function bt(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function yt(t){return t.document||window.document}},21:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return C})),n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return J})),n.d(e,"e",(function(){return j})),n.d(e,"f",(function(){return D})),n.d(e,"g",(function(){return B})),n.d(e,"h",(function(){return T})),n.d(e,"i",(function(){return R})),n.d(e,"j",(function(){return A})),n.d(e,"k",(function(){return $}));var r=n(2);const o=Math.pow(2,16);function l(t){return 65535&t}class c{constructor(t,e,n){this.pos=t,this.delInfo=e,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class h{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&h.empty)return h.empty}recover(t){let e=0,n=l(t);if(!this.inverted)for(let i=0;it)break;let f=this.ranges[i+l],m=this.ranges[i+h],v=d+f;if(t<=v){let l=d+r+((f?t==d?-1:t==v?1:e:e)<0?0:m);if(n)return l;let h=t==(e<0?d:v)?null:i/3+(t-d)*o,del=t==d?2:t==v?1:4;return(e<0?t!=d:t!=v)&&(del|=8),new c(l,del,h)}r+=m-f}return n?t+r:new c(t+r,0,null)}touches(t,e){let n=0,r=l(e),o=this.inverted?2:1,c=this.inverted?1:2;for(let i=0;it)break;let l=this.ranges[i+o];if(t<=e+l&&i==3*r)return!0;n+=this.ranges[i+c]-l}return!1}forEach(t){let e=this.inverted?2:1,n=this.inverted?1:2;for(let i=0,r=0;i=0;i--){let n=t.getMirror(i);this.appendMap(t.maps[i].invert(),null!=n&&n>i?e-n-1:void 0)}}invert(){let t=new d;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let i=this.from;ii&&et.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t),o),e.openStart,e.openEnd);return v.fromReplace(t,this.from,this.to,l)}invert(){return new x(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new w(e.pos,n.pos,this.mark)}merge(t){return t instanceof w&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new w(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new w(e.from,e.to,t.markFromJSON(e.mark))}}m.jsonID("addMark",w);class x extends m{constructor(t,e,mark){super(),this.from=t,this.to=e,this.mark=mark}apply(t){let e=t.slice(this.from,this.to),n=new r.j(y(e.content,(t=>t.mark(this.mark.removeFromSet(t.marks))),t),e.openStart,e.openEnd);return v.fromReplace(t,this.from,this.to,n)}invert(){return new w(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new x(e.pos,n.pos,this.mark)}merge(t){return t instanceof x&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new x(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new x(e.from,e.to,t.markFromJSON(e.mark))}}m.jsonID("removeMark",x);class k extends m{constructor(t,mark){super(),this.pos=t,this.mark=mark}apply(t){let e=t.nodeAt(this.pos);if(!e)return v.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return v.fromReplace(t,this.pos,this.pos+1,new r.j(r.c.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let i=0;in.pos?null:new C(e.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new C(e.from,e.to,e.gapFrom,e.gapTo,r.j.fromJSON(t,e.slice),e.insert,!!e.structure)}}function O(t,e,n){let r=t.resolve(e),o=n-e,l=r.depth;for(;o>0&&l>0&&r.indexAfter(l)==r.node(l).childCount;)l--,o--;if(o>0){let t=r.node(l).maybeChild(r.indexAfter(l));for(;o>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,o--}}return!1}function E(t,e,n){return(0==e||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function A(t){let content=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let e=t.depth;;--e){let n=t.$from.node(e),r=t.$from.index(e),o=t.$to.indexAfter(e);if(ebase;t--,i--){let e=o.node(t),n=o.index(t);if(e.type.spec.isolating)return!1;let l=e.content.cutByIndex(n,e.childCount),c=r&&r[i+1];c&&(l=l.replaceChild(0,c.type.create(c.attrs)));let h=r&&r[i]||e;if(!e.canReplace(n+1,e.childCount)||!h.type.validContent(l))return!1}let c=o.indexAfter(base),h=r&&r[0];return o.node(base).canReplaceWith(c,c,h?h.type:o.node(base+1).type)}function j(t,e){let n=t.resolve(e),r=n.index();return P(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function P(a,b){return!(!a||!b||a.isLeaf||!a.canAppend(b))}function R(t,e,n=-1){let r=t.resolve(e);for(let t=r.depth;;t--){let o,l,c=r.index(t);if(t==r.depth?(o=r.nodeBefore,l=r.nodeAfter):n>0?(o=r.node(t+1),c++,l=r.node(t).maybeChild(c)):(o=r.node(t).maybeChild(c-1),l=r.node(t+1)),o&&!o.isTextblock&&P(o,l)&&r.node(t).canReplace(c,c+1))return e;if(0==t)break;e=n<0?r.before(t):r.after(t)}}function B(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let content=n.content;for(let i=0;i=0;e--){let n=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,o=r.index(e)+(n>0?1:0),l=r.node(e),c=!1;if(1==t)c=l.canReplace(o,o,content);else{let t=l.contentMatchAt(o).findWrapping(content.firstChild.type);c=t&&l.canReplaceWith(o,o,t[0])}if(c)return 0==n?r.pos:n<0?r.before(e+1):r.after(e+1)}return null}function $(t,e,n=e,o=r.j.empty){if(e==n&&!o.size)return null;let l=t.resolve(e),c=t.resolve(n);return N(l,c,o)?new _(e,n,o):new L(l,c,o).fit()}function N(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}m.jsonID("replaceAround",C);class L{constructor(t,e,n){this.$from=t,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=r.c.empty;for(let i=0;i<=t.depth;i++){let e=t.node(i);this.frontier.push({type:e.type,match:e.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=r.c.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(t<0?this.$to:n.doc.resolve(t));if(!o)return null;let content=this.placed,l=n.depth,c=o.depth;for(;l&&c&&1==content.childCount;)content=content.firstChild.content,l--,c--;let h=new r.j(content,l,c);return t>-1?new C(n.pos,t,this.$to.pos,this.$to.end(),h,e):h.size||n.pos!=this.$to.pos?new _(n.pos,o.pos,h):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,r=this.unplaced.openEnd;n1&&(r=0),o.type.spec.isolating&&r<=n){t=n;break}e=o.content}for(let e=1;e<=2;e++)for(let n=1==e?t:this.unplaced.openStart;n>=0;n--){let t,o=null;n?(o=z(this.unplaced.content,n-1).firstChild,t=o.content):t=this.unplaced.content;let l=t.firstChild;for(let t=this.depth;t>=0;t--){let c,{type:h,match:d}=this.frontier[t],f=null;if(1==e&&(l?d.matchType(l.type)||(f=d.fillBefore(r.c.from(l),!1)):o&&h.compatibleContent(o.type)))return{sliceDepth:n,frontierDepth:t,parent:o,inject:f};if(2==e&&l&&(c=d.findWrapping(l.type)))return{sliceDepth:n,frontierDepth:t,parent:o,wrap:c};if(o&&d.matchType(o.type))break}}}openMore(){let{content:content,openStart:t,openEnd:e}=this.unplaced,n=z(content,t);return!(!n.childCount||n.firstChild.isLeaf)&&(this.unplaced=new r.j(content,t+1,Math.max(e,n.size+t>=content.size-e?t+1:0)),!0)}dropNode(){let{content:content,openStart:t,openEnd:e}=this.unplaced,n=z(content,t);if(n.childCount<=1&&t>0){let o=content.size-t<=t+n.size;this.unplaced=new r.j(I(content,t-1,1),t-1,o?t-1:e)}else this.unplaced=new r.j(I(content,t,1),t,e)}placeNodes({sliceDepth:t,frontierDepth:e,parent:n,inject:o,wrap:l}){for(;this.depth>e;)this.closeFrontierNode();if(l)for(let i=0;i1||0==d||t.content.size)&&(v=e,m.push(V(t.mark(y.allowedMarks(t.marks)),1==f?d:0,f==h.childCount?w:-1)))}let x=f==h.childCount;x||(w=-1),this.placed=F(this.placed,e,r.c.from(m)),this.frontier[e].match=v,x&&w<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let i=0,t=h;i1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(t){t:for(let i=Math.min(this.depth,t.depth);i>=0;i--){let{match:e,type:n}=this.frontier[i],r=i=0;e--){let{match:n,type:r}=this.frontier[e],o=H(t,e,r,n,!0);if(!o||o.childCount)continue t}return{depth:i,fit:o,move:r?t.doc.resolve(t.after(i+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=F(this.placed,e.depth,e.fit)),t=e.move;for(let n=e.depth+1;n<=t.depth;n++){let e=t.node(n),r=e.type.contentMatch.fillBefore(e.content,!0,t.index(n));this.openFrontierNode(e.type,e.attrs,r)}return t}openFrontierNode(t,e=null,content){let n=this.frontier[this.depth];n.match=n.match.matchType(t),this.placed=F(this.placed,this.depth,r.c.from(t.create(e,content))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(r.c.empty,!0);t.childCount&&(this.placed=F(this.placed,this.frontier.length,t))}}function I(t,e,n){return 0==e?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(I(t.firstChild.content,e-1,n)))}function F(t,e,content){return 0==e?t.append(content):t.replaceChild(t.childCount-1,t.lastChild.copy(F(t.lastChild.content,e-1,content)))}function z(t,e){for(let i=0;i1&&(o=o.replaceChild(0,V(o.firstChild,e-1,1==o.childCount?n-1:0))),e>0&&(o=t.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(r.c.empty,!0)))),t.copy(o)}function H(t,e,n,r,o){let l=t.node(e),c=o?t.indexAfter(e):t.index(e);if(c==l.childCount&&!n.compatibleContent(l.type))return null;let h=r.fillBefore(l.content,!0,c);return h&&!function(t,e,n){for(let i=n;io){let e=l.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(r.c.empty,!0))}return t}function Y(t,e){let n=[];for(let r=Math.min(t.depth,e.depth);r>=0;r--){let o=t.start(r);if(oe.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(o==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==o-1)&&n.push(r)}return n}class G extends m{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return v.fail("No node at attribute step's position");let n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;let o=e.type.create(n,null,e.marks);return v.fromReplace(t,this.pos,this.pos+1,new r.j(r.c.from(o),0,e.isLeaf?0:1))}getMap(){return h.empty}invert(t){return new G(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new G(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new G(e.pos,e.attr,e.value)}}m.jsonID("attr",G);let K=class extends Error{};K=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},(K.prototype=Object.create(Error.prototype)).constructor=K,K.prototype.name="TransformError";class J{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new d}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new K(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,n=r.j.empty){let o=$(this.doc,t,e,n);return o&&this.step(o),this}replaceWith(t,e,content){return this.replace(t,e,new r.j(r.c.from(content),0,0))}delete(t,e){return this.replace(t,e,r.j.empty)}insert(t,content){return this.replaceWith(t,t,content)}replaceRange(t,e,n){return function(tr,t,e,n){if(!n.size)return tr.deleteRange(t,e);let o=tr.doc.resolve(t),l=tr.doc.resolve(e);if(N(o,l,n))return tr.step(new _(t,e,n));let c=Y(o,tr.doc.resolve(e));0==c[c.length-1]&&c.pop();let h=-(o.depth+1);c.unshift(h);for(let t=o.depth,e=o.pos-1;t>0;t--,e--){let n=o.node(t).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;c.indexOf(t)>-1?h=t:o.before(t)==e&&c.splice(1,0,-t)}let d=c.indexOf(h),f=[],m=n.openStart;for(let content=n.content,i=0;;i++){let t=content.firstChild;if(f.push(t),i==n.openStart)break;content=t.content}for(let t=m-1;t>=0;t--){let e=f[t].type,n=W(e);if(n&&o.node(d).type!=e)m=t;else if(n||!e.isTextblock)break}for(let t=n.openStart;t>=0;t--){let h=(t+m+1)%(n.openStart+1),v=f[h];if(v)for(let i=0;i=0&&(tr.replace(t,e,n),!(tr.steps.length>v));i--){let n=c[i];n<0||(t=o.before(n),e=l.after(n))}}(this,t,e,n),this}replaceRangeWith(t,e,n){return function(tr,t,e,n){if(!n.isInline&&t==e&&tr.doc.resolve(t).parent.content.size){let r=function(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(0==r.parentOffset)for(let t=r.depth-1;t>=0;t--){let e=r.index(t);if(r.node(t).canReplaceWith(e,e,n))return r.before(t+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let t=r.depth-1;t>=0;t--){let e=r.indexAfter(t);if(r.node(t).canReplaceWith(e,e,n))return r.after(t+1);if(e0&&(e||n.node(t-1).canReplace(n.index(t-1),r.indexAfter(t-1))))return tr.delete(n.before(t),r.after(t))}for(let o=1;o<=n.depth&&o<=r.depth;o++)if(t-n.start(o)==n.depth-o&&e>n.end(o)&&r.end(o)-e!=r.depth-o)return tr.delete(n.before(o),e);tr.delete(t,e)}(this,t,e),this}lift(t,e){return function(tr,t,e){let{$from:n,$to:o,depth:l}=t,c=n.before(l+1),h=o.after(l+1),d=c,f=h,m=r.c.empty,v=0;for(let t=l,o=!1;t>e;t--)o||n.index(t)>0?(o=!0,m=r.c.from(n.node(t).copy(m)),v++):d--;let y=r.c.empty,w=0;for(let t=l,n=!1;t>e;t--)n||o.after(t+1)=0;i--){if(content.size){let t=e[i].type.contentMatch.matchFragment(content);if(!t||!t.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}content=r.c.from(e[i].type.create(e[i].attrs,content))}let n=t.start,o=t.end;tr.step(new C(n,o,n,o,new r.j(content,0,0),e.length,!0))}(this,t,e),this}setBlockType(t,e=t,n,o=null){return function(tr,t,e,n,o){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let l=tr.steps.length;tr.doc.nodesBetween(t,e,((t,e)=>{if(t.isTextblock&&!t.hasMarkup(n,o)&&function(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(tr.doc,tr.mapping.slice(l).map(e),n)){tr.clearIncompatible(tr.mapping.slice(l).map(e,1),n);let c=tr.mapping.slice(l),h=c.map(e,1),d=c.map(e+t.nodeSize,1);return tr.step(new C(h,d,h+1,d-1,new r.j(r.c.from(n.create(o,null,t.marks)),0,0),1,!0)),!1}}))}(this,t,e,n,o),this}setNodeMarkup(t,e,n=null,o){return function(tr,t,e,n,o){let l=tr.doc.nodeAt(t);if(!l)throw new RangeError("No node at given position");e||(e=l.type);let c=e.create(n,null,o||l.marks);if(l.isLeaf)return tr.replaceWith(t,t+l.nodeSize,c);if(!e.validContent(l.content))throw new RangeError("Invalid content for node type "+e.name);tr.step(new C(t,t+l.nodeSize,t+1,t+l.nodeSize-1,new r.j(r.c.from(c),0,0),1,!0))}(this,t,e,n,o),this}setNodeAttribute(t,e,n){return this.step(new G(t,e,n)),this}addNodeMark(t,mark){return this.step(new k(t,mark)),this}removeNodeMark(t,mark){if(!(mark instanceof r.d)){let e=this.doc.nodeAt(t);if(!e)throw new RangeError("No node at position "+t);if(!(mark=mark.isInSet(e.marks)))return this}return this.step(new S(t,mark)),this}split(t,e=1,n){return function(tr,t,e=1,n){let o=tr.doc.resolve(t),l=r.c.empty,c=r.c.empty;for(let t=o.depth,h=o.depth-e,i=e-1;t>h;t--,i--){l=r.c.from(o.node(t).copy(l));let e=n&&n[i];c=r.c.from(e?e.type.create(e.attrs,c):o.node(t).copy(c))}tr.step(new _(t,t,new r.j(l.append(c),e,e),!0))}(this,t,e,n),this}addMark(t,e,mark){return function(tr,t,e,mark){let n,r,o=[],l=[];tr.doc.nodesBetween(t,e,((c,h,d)=>{if(!c.isInline)return;let f=c.marks;if(!mark.isInSet(f)&&d.type.allowsMarkType(mark.type)){let d=Math.max(h,t),m=Math.min(h+c.nodeSize,e),v=mark.addToSet(f);for(let i=0;itr.step(s))),l.forEach((s=>tr.step(s)))}(this,t,e,mark),this}removeMark(t,e,mark){return function(tr,t,e,mark){let n=[],o=0;tr.doc.nodesBetween(t,e,((l,c)=>{if(!l.isInline)return;o++;let h=null;if(mark instanceof r.e){let t,e=l.marks;for(;t=mark.isInSet(e);)(h||(h=[])).push(t),e=t.removeFromSet(e)}else mark?mark.isInSet(l.marks)&&(h=[mark]):h=l.marks;if(h&&h.length){let r=Math.min(c+l.nodeSize,e);for(let i=0;itr.step(new x(t.from,t.to,t.style))))}(this,t,e,mark),this}clearIncompatible(t,e,n){return function(tr,t,e,n=e.contentMatch){let o=tr.doc.nodeAt(t),l=[],c=t+1;for(let i=0;i=0;i--)tr.step(l[i])}(this,t,e,n),this}}},220:function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},239:function(t,e,n){(function(t){t.exports=function(){"use strict";var e,r;function o(){return e.apply(null,arguments)}function l(t){e=t}function c(input){return input instanceof Array||"[object Array]"===Object.prototype.toString.call(input)}function h(input){return null!=input&&"[object Object]"===Object.prototype.toString.call(input)}function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function f(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(d(t,e))return!1;return!0}function m(input){return void 0===input}function v(input){return"number"==typeof input||"[object Number]"===Object.prototype.toString.call(input)}function y(input){return input instanceof Date||"[object Date]"===Object.prototype.toString.call(input)}function map(t,e){var i,n=[],r=t.length;for(i=0;i>>0;for(i=0;i0)for(i=0;i=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},Y={};function G(t,e,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),t&&(Y[t]=o),e&&(Y[e[0]]=function(){return V(o.apply(this,arguments),e[1],e[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function K(input){return input.match(/\[[\s\S]/)?input.replace(/^\[|\]$/g,""):input.replace(/\\/g,"")}function J(t){var i,e,n=t.match(H);for(i=0,e=n.length;i=0&&W.test(t);)t=t.replace(W,n),W.lastIndex=0,i-=1;return t}var Q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function tt(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(H).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var et="Invalid date";function nt(){return this._invalidDate}var it="%d",ot=/\d{1,2}/;function st(t){return this._ordinal.replace("%d",t)}var at={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function lt(t,e,n,r){var output=this._relativeTime[n];return $(output)?output(t,e,n,r):output.replace(/%d/i,t)}function ct(t,output){var e=this._relativeTime[t>0?"future":"past"];return $(e)?e(output):e.replace(/%s/i,output)}var ut={};function ht(t,e){var n=t.toLowerCase();ut[n]=ut[n+"s"]=ut[e]=t}function pt(t){return"string"==typeof t?ut[t]||ut[t.toLowerCase()]:void 0}function ft(t){var e,n,r={};for(n in t)d(t,n)&&(e=pt(n))&&(r[e]=t[n]);return r}var mt={};function gt(t,e){mt[t]=e}function vt(t){var u,e=[];for(u in t)d(t,u)&&e.push({unit:u,priority:mt[u]});return e.sort((function(a,b){return a.priority-b.priority})),e}function bt(t){return t%4==0&&t%100!=0||t%400==0}function yt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function wt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=yt(e)),n}function xt(t,e){return function(n){return null!=n?(St(this,t,n),o.updateOffset(this,e),this):kt(this,t)}}function kt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function St(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&bt(t.year())&&1===t.month()&&29===t.date()?(n=wt(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ce(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function _t(t){return $(this[t=pt(t)])?this[t]():this}function Ct(t,e){if("object"==typeof t){var i,n=vt(t=ft(t)),r=n.length;for(i=0;i68?1900:2e3)};var Oe=xt("FullYear",!0);function Ee(){return bt(this.year())}function Ae(t,e,n,r,o,s,l){var c;return t<100&&t>=0?(c=new Date(t+400,e,n,r,o,s,l),isFinite(c.getFullYear())&&c.setFullYear(t)):c=new Date(t,e,n,r,o,s,l),c}function Te(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Me(t,e,n){var r=7+e-n;return-(7+Te(t,0,r).getUTCDay()-e)%7+r-1}function De(t,e,n,r,o){var l,c,h=1+7*(e-1)+(7+n-r)%7+Me(t,r,o);return h<=0?c=Ce(l=t-1)+h:h>Ce(t)?(l=t+1,c=h-Ce(t)):(l=t,c=h),{year:l,dayOfYear:c}}function je(t,e,n){var r,o,l=Me(t.year(),e,n),c=Math.floor((t.dayOfYear()-l-1)/7)+1;return c<1?r=c+Pe(o=t.year()-1,e,n):c>Pe(t.year(),e,n)?(r=c-Pe(t.year(),e,n),o=t.year()+1):(o=t.year(),r=c),{week:r,year:o}}function Pe(t,e,n){var r=Me(t,e,n),o=Me(t+1,e,n);return(Ce(t)-r+o)/7}function Re(t){return je(t,this._week.dow,this._week.doy).week}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),ht("week","w"),ht("isoWeek","W"),gt("week",5),gt("isoWeek",5),Wt("w",jt),Wt("ww",jt,At),Wt("W",jt),Wt("WW",jt,At),Jt(["w","ww","W","WW"],(function(input,t,e,n){t[n.substr(0,1)]=wt(input)}));var Be={dow:0,doy:6};function $e(){return this._week.dow}function Ne(){return this._week.doy}function Le(input){var t=this.localeData().week(this);return null==input?t:this.add(7*(input-t),"d")}function Ie(input){var t=je(this,1,4).week;return null==input?t:this.add(7*(input-t),"d")}function Fe(input,t){return"string"!=typeof input?input:isNaN(input)?"number"==typeof(input=t.weekdaysParse(input))?input:null:parseInt(input,10)}function ze(input,t){return"string"==typeof input?t.weekdaysParse(input)%7||7:isNaN(input)?null:input}function Ve(t,e){return t.slice(e,7).concat(t.slice(0,e))}G("d",0,"do","day"),G("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),G("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),G("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),ht("day","d"),ht("weekday","e"),ht("isoWeekday","E"),gt("day",11),gt("weekday",11),gt("isoWeekday",11),Wt("d",jt),Wt("e",jt),Wt("E",jt),Wt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Wt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Wt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Jt(["dd","ddd","dddd"],(function(input,t,e,n){var r=e._locale.weekdaysParse(input,n,e._strict);null!=r?t.d=r:S(e).invalidWeekday=input})),Jt(["d","e","E"],(function(input,t,e,n){t[n]=wt(input)}));var He="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=Ht,Ye=Ht,Ge=Ht;function Ke(t,e){var n=c(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ve(n,this._week.dow):t?n[t.day()]:n}function Je(t){return!0===t?Ve(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Xe(t){return!0===t?Ve(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ze(t,e,n){var i,r,o,l=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=x([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Zt.call(this._weekdaysParse,l))?r:null:"ddd"===e?-1!==(r=Zt.call(this._shortWeekdaysParse,l))?r:null:-1!==(r=Zt.call(this._minWeekdaysParse,l))?r:null:"dddd"===e?-1!==(r=Zt.call(this._weekdaysParse,l))||-1!==(r=Zt.call(this._shortWeekdaysParse,l))||-1!==(r=Zt.call(this._minWeekdaysParse,l))?r:null:"ddd"===e?-1!==(r=Zt.call(this._shortWeekdaysParse,l))||-1!==(r=Zt.call(this._weekdaysParse,l))||-1!==(r=Zt.call(this._minWeekdaysParse,l))?r:null:-1!==(r=Zt.call(this._minWeekdaysParse,l))||-1!==(r=Zt.call(this._weekdaysParse,l))||-1!==(r=Zt.call(this._shortWeekdaysParse,l))?r:null}function Qe(t,e,n){var i,r,o;if(this._weekdaysParseExact)return Ze.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=x([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function tn(input){if(!this.isValid())return null!=input?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=input?(input=Fe(input,this.localeData()),this.add(input-t,"d")):t}function en(input){if(!this.isValid())return null!=input?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==input?t:this.add(input-t,"d")}function nn(input){if(!this.isValid())return null!=input?this:NaN;if(null!=input){var t=ze(input,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function rn(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||an.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function on(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||an.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ye),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function sn(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||an.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function an(){function t(a,b){return b.length-a.length}var i,e,n,r,o,l=[],c=[],h=[],d=[];for(i=0;i<7;i++)e=x([2e3,1]).day(i),n=Yt(this.weekdaysMin(e,"")),r=Yt(this.weekdaysShort(e,"")),o=Yt(this.weekdays(e,"")),l.push(n),c.push(r),h.push(o),d.push(n),d.push(r),d.push(o);l.sort(t),c.sort(t),h.sort(t),d.sort(t),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+l.join("|")+")","i")}function ln(){return this.hours()%12||12}function cn(){return this.hours()||24}function un(t,e){G(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function hn(t,e){return e._meridiemParse}function dn(input){return"p"===(input+"").toLowerCase().charAt(0)}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,ln),G("k",["kk",2],0,cn),G("hmm",0,0,(function(){return""+ln.apply(this)+V(this.minutes(),2)})),G("hmmss",0,0,(function(){return""+ln.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)})),G("Hmm",0,0,(function(){return""+this.hours()+V(this.minutes(),2)})),G("Hmmss",0,0,(function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)})),un("a",!0),un("A",!1),ht("hour","h"),gt("hour",13),Wt("a",hn),Wt("A",hn),Wt("H",jt),Wt("h",jt),Wt("k",jt),Wt("HH",jt,At),Wt("hh",jt,At),Wt("kk",jt,At),Wt("hmm",Pt),Wt("hmmss",Rt),Wt("Hmm",Pt),Wt("Hmmss",Rt),Kt(["H","HH"],ne),Kt(["k","kk"],(function(input,t,e){var n=wt(input);t[ne]=24===n?0:n})),Kt(["a","A"],(function(input,t,e){e._isPm=e._locale.isPM(input),e._meridiem=input})),Kt(["h","hh"],(function(input,t,e){t[ne]=wt(input),S(e).bigHour=!0})),Kt("hmm",(function(input,t,e){var n=input.length-2;t[ne]=wt(input.substr(0,n)),t[re]=wt(input.substr(n)),S(e).bigHour=!0})),Kt("hmmss",(function(input,t,e){var n=input.length-4,r=input.length-2;t[ne]=wt(input.substr(0,n)),t[re]=wt(input.substr(n,2)),t[ie]=wt(input.substr(r)),S(e).bigHour=!0})),Kt("Hmm",(function(input,t,e){var n=input.length-2;t[ne]=wt(input.substr(0,n)),t[re]=wt(input.substr(n))})),Kt("Hmmss",(function(input,t,e){var n=input.length-4,r=input.length-2;t[ne]=wt(input.substr(0,n)),t[re]=wt(input.substr(n,2)),t[ie]=wt(input.substr(r))}));var pn=/[ap]\.?m?\.?/i,fn=xt("Hours",!0);function mn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var gn,vn={calendar:F,longDateFormat:Q,invalidDate:et,ordinal:it,dayOfMonthOrdinalParse:ot,relativeTime:at,months:ue,monthsShort:he,week:Be,weekdays:He,weekdaysMin:qe,weekdaysShort:We,meridiemParse:pn},bn={},yn={};function wn(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i0;){if(r=_n(o.slice(0,e).join("-")))return r;if(n&&n.length>=e&&wn(o,n)>=e-1)break;e--}i++}return gn}function Sn(t){return null!=t.match("^[^/\\\\]*$")}function _n(e){var r=null;if(void 0===bn[e]&&void 0!==t&&t&&t.exports&&Sn(e))try{r=gn._abbr,n(721)("./"+e),Cn(r)}catch(t){bn[e]=null}return bn[e]}function Cn(t,e){var data;return t&&((data=m(e)?An(t):On(t,e))?gn=data:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),gn._abbr}function On(t,e){if(null!==e){var n,r=vn;if(e.abbr=t,null!=bn[t])B("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=bn[t]._config;else if(null!=e.parentLocale)if(null!=bn[e.parentLocale])r=bn[e.parentLocale]._config;else{if(null==(n=_n(e.parentLocale)))return yn[e.parentLocale]||(yn[e.parentLocale]=[]),yn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return bn[t]=new I(L(r,e)),yn[t]&&yn[t].forEach((function(t){On(t.name,t.config)})),Cn(t),bn[t]}return delete bn[t],null}function En(t,e){if(null!=e){var n,r,o=vn;null!=bn[t]&&null!=bn[t].parentLocale?bn[t].set(L(bn[t]._config,e)):(null!=(r=_n(t))&&(o=r._config),e=L(o,e),null==r&&(e.abbr=t),(n=new I(e)).parentLocale=bn[t],bn[t]=n),Cn(t)}else null!=bn[t]&&(null!=bn[t].parentLocale?(bn[t]=bn[t].parentLocale,t===Cn()&&Cn(t)):null!=bn[t]&&delete bn[t]);return bn[t]}function An(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return gn;if(!c(t)){if(e=_n(t))return e;t=[t]}return kn(t)}function Tn(){return P(bn)}function Mn(t){var e,a=t._a;return a&&-2===S(t).overflow&&(e=a[te]<0||a[te]>11?te:a[ee]<1||a[ee]>ce(a[Qt],a[te])?ee:a[ne]<0||a[ne]>24||24===a[ne]&&(0!==a[re]||0!==a[ie]||0!==a[oe])?ne:a[re]<0||a[re]>59?re:a[ie]<0||a[ie]>59?ie:a[oe]<0||a[oe]>999?oe:-1,S(t)._overflowDayOfYear&&(eee)&&(e=ee),S(t)._overflowWeeks&&-1===e&&(e=se),S(t)._overflowWeekday&&-1===e&&(e=ae),S(t).overflow=e),t}var Dn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pn=/Z|[+-]\d\d(?::?\d\d)?/,Rn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Bn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$n=/^\/?Date\((-?\d+)/i,Nn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ln={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function In(t){var i,e,n,r,o,l,c=t._i,h=Dn.exec(c)||jn.exec(c),d=Rn.length,f=Bn.length;if(h){for(S(t).iso=!0,i=0,e=d;iCe(o)||0===t._dayOfYear)&&(S(t)._overflowDayOfYear=!0),e=Te(o,0,t._dayOfYear),t._a[te]=e.getUTCMonth(),t._a[ee]=e.getUTCDate()),i=0;i<3&&null==t._a[i];++i)t._a[i]=input[i]=n[i];for(;i<7;i++)t._a[i]=input[i]=null==t._a[i]?2===i?1:0:t._a[i];24===t._a[ne]&&0===t._a[re]&&0===t._a[ie]&&0===t._a[oe]&&(t._nextDay=!0,t._a[ne]=0),t._d=(t._useUTC?Te:Ae).apply(null,input),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ne]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(S(t).weekdayMismatch=!0)}}function Jn(t){var e,n,r,o,l,c,h,d,f;null!=(e=t._w).GG||null!=e.W||null!=e.E?(l=1,c=4,n=Yn(e.GG,t._a[Qt],je(sr(),1,4).year),r=Yn(e.W,1),((o=Yn(e.E,1))<1||o>7)&&(d=!0)):(l=t._locale._week.dow,c=t._locale._week.doy,f=je(sr(),l,c),n=Yn(e.gg,t._a[Qt],f.year),r=Yn(e.w,f.week),null!=e.d?((o=e.d)<0||o>6)&&(d=!0):null!=e.e?(o=e.e+l,(e.e<0||e.e>6)&&(d=!0)):o=l),r<1||r>Pe(n,l,c)?S(t)._overflowWeeks=!0:null!=d?S(t)._overflowWeekday=!0:(h=De(n,r,o,l,c),t._a[Qt]=h.year,t._dayOfYear=h.dayOfYear)}function Xn(t){if(t._f!==o.ISO_8601)if(t._f!==o.RFC_2822){t._a=[],S(t).empty=!0;var i,e,n,r,l,c,h,d=""+t._i,f=d.length,m=0;for(h=(n=Z(t._f,t._locale).match(H)||[]).length,i=0;i0&&S(t).unusedInput.push(l),d=d.slice(d.indexOf(e)+e.length),m+=e.length),Y[r]?(e?S(t).empty=!1:S(t).unusedTokens.push(r),Xt(r,e,t)):t._strict&&!e&&S(t).unusedTokens.push(r);S(t).charsLeftOver=f-m,d.length>0&&S(t).unusedInput.push(d),t._a[ne]<=12&&!0===S(t).bigHour&&t._a[ne]>0&&(S(t).bigHour=void 0),S(t).parsedDateParts=t._a.slice(0),S(t).meridiem=t._meridiem,t._a[ne]=Zn(t._locale,t._a[ne],t._meridiem),null!==(c=S(t).era)&&(t._a[Qt]=t._locale.erasConvertYear(c,t._a[Qt])),Kn(t),Mn(t)}else qn(t);else In(t)}function Zn(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function Qn(t){var e,n,r,i,o,l,c=!1,h=t._f.length;if(0===h)return S(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;ithis?this:t:C()}));function cr(t,e){var n,i;if(1===e.length&&c(e[0])&&(e=e[0]),!e.length)return sr();for(n=e[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Br(){if(!m(this._isDSTShifted))return this._isDSTShifted;var t,e={};return A(e,this),(e=rr(e))._a?(t=e._isUTC?x(e._a):sr(e._a),this._isDSTShifted=this.isValid()&&kr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $r(){return!!this.isValid()&&!this._isUTC}function Nr(){return!!this.isValid()&&this._isUTC}function Lr(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Ir=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Fr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zr(input,t){var e,n,r,o=input,l=null;return wr(input)?o={ms:input._milliseconds,d:input._days,M:input._months}:v(input)||!isNaN(+input)?(o={},t?o[t]=+input:o.milliseconds=+input):(l=Ir.exec(input))?(e="-"===l[1]?-1:1,o={y:0,d:wt(l[ee])*e,h:wt(l[ne])*e,m:wt(l[re])*e,s:wt(l[ie])*e,ms:wt(xr(1e3*l[oe]))*e}):(l=Fr.exec(input))?(e="-"===l[1]?-1:1,o={y:Vr(l[2],e),M:Vr(l[3],e),w:Vr(l[4],e),d:Vr(l[5],e),h:Vr(l[6],e),m:Vr(l[7],e),s:Vr(l[8],e)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Wr(sr(o.from),sr(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),n=new yr(o),wr(input)&&d(input,"_locale")&&(n._locale=input._locale),wr(input)&&d(input,"_isValid")&&(n._isValid=input._isValid),n}function Vr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Hr(base,t){var e={};return e.months=t.month()-base.month()+12*(t.year()-base.year()),base.clone().add(e.months,"M").isAfter(t)&&--e.months,e.milliseconds=+t-+base.clone().add(e.months,"M"),e}function Wr(base,t){var e;return base.isValid()&&t.isValid()?(t=Or(t,base),base.isBefore(t)?e=Hr(base,t):((e=Hr(t,base)).milliseconds=-e.milliseconds,e.months=-e.months),e):{milliseconds:0,months:0}}function qr(t,e){return function(n,r){var o;return null===r||isNaN(+r)||(B(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Ur(this,zr(n,r),t),this}}function Ur(t,e,n,r){var l=e._milliseconds,c=xr(e._days),h=xr(e._months);t.isValid()&&(r=null==r||r,h&&ye(t,kt(t,"Month")+h*n),c&&St(t,"Date",kt(t,"Date")+c*n),l&&t._d.setTime(t._d.valueOf()+l*n),r&&o.updateOffset(t,c||h))}zr.fn=yr.prototype,zr.invalid=vr;var Yr=qr(1,"add"),Gr=qr(-1,"subtract");function Kr(input){return"string"==typeof input||input instanceof String}function Jr(input){return M(input)||y(input)||Kr(input)||v(input)||Zr(input)||Xr(input)||null==input}function Xr(input){var i,t,e=h(input)&&!f(input),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=r.length;for(i=0;ie.valueOf():e.valueOf()9999?X(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):$(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",X(n,"Z")):X(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function fi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,o="moment",l="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",l="Z"),t="["+o+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=l+'[")]',this.format(t+e+n+r)}function mi(t){t||(t=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var output=X(this,t);return this.localeData().postformat(output)}function gi(time,t){return this.isValid()&&(M(time)&&time.isValid()||sr(time).isValid())?zr({to:this,from:time}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vi(t){return this.from(sr(),t)}function bi(time,t){return this.isValid()&&(M(time)&&time.isValid()||sr(time).isValid())?zr({from:this,to:time}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yi(t){return this.to(sr(),t)}function wi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=An(t))&&(this._locale=e),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var xi=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ki(){return this._locale}var Si=1e3,_i=60*Si,Ci=60*_i,Oi=3506328*Ci;function Ei(t,e){return(t%e+e)%e}function Ai(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-Oi:new Date(t,e,n).valueOf()}function Ti(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-Oi:Date.UTC(t,e,n)}function Mi(t){var time,e;if(void 0===(t=pt(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?Ti:Ai,t){case"year":time=e(this.year(),0,1);break;case"quarter":time=e(this.year(),this.month()-this.month()%3,1);break;case"month":time=e(this.year(),this.month(),1);break;case"week":time=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":time=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":time=e(this.year(),this.month(),this.date());break;case"hour":time=this._d.valueOf(),time-=Ei(time+(this._isUTC?0:this.utcOffset()*_i),Ci);break;case"minute":time=this._d.valueOf(),time-=Ei(time,_i);break;case"second":time=this._d.valueOf(),time-=Ei(time,Si)}return this._d.setTime(time),o.updateOffset(this,!0),this}function Di(t){var time,e;if(void 0===(t=pt(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?Ti:Ai,t){case"year":time=e(this.year()+1,0,1)-1;break;case"quarter":time=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":time=e(this.year(),this.month()+1,1)-1;break;case"week":time=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":time=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":time=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":time=this._d.valueOf(),time+=Ci-Ei(time+(this._isUTC?0:this.utcOffset()*_i),Ci)-1;break;case"minute":time=this._d.valueOf(),time+=_i-Ei(time,_i)-1;break;case"second":time=this._d.valueOf(),time+=Si-Ei(time,Si)-1}return this._d.setTime(time),o.updateOffset(this,!0),this}function ji(){return this._d.valueOf()-6e4*(this._offset||0)}function Pi(){return Math.floor(this.valueOf()/1e3)}function Ri(){return new Date(this.valueOf())}function Bi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function $i(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Ni(){return this.isValid()?this.toISOString():null}function Li(){return _(this)}function Ii(){return w({},S(this))}function Fi(){return S(this).overflow}function zi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Vi(t,e){var i,n,r,l=this._eras||An("en")._eras;for(i=0,n=l.length;i=0)return c[i]}function Wi(t,e){var n=t.since<=t.until?1:-1;return void 0===e?o(t.since).year():o(t.since).year()+(e-t.offset)*n}function qi(){var i,t,e,n=this.localeData().eras();for(i=0,t=n.length;i(o=Pe(input,n,r))&&(t=o),ho.call(this,input,t,e,n,r))}function ho(t,e,n,r,o){var l=De(t,e,n,r,o),c=Te(l.year,0,l.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}function po(input){return null==input?Math.ceil((this.month()+1)/3):this.month(3*(input-1)+this.month()%3)}G("N",0,0,"eraAbbr"),G("NN",0,0,"eraAbbr"),G("NNN",0,0,"eraAbbr"),G("NNNN",0,0,"eraName"),G("NNNNN",0,0,"eraNarrow"),G("y",["y",1],"yo","eraYear"),G("y",["yy",2],0,"eraYear"),G("y",["yyy",3],0,"eraYear"),G("y",["yyyy",4],0,"eraYear"),Wt("N",Zi),Wt("NN",Zi),Wt("NNN",Zi),Wt("NNNN",Qi),Wt("NNNNN",to),Kt(["N","NN","NNN","NNNN","NNNNN"],(function(input,t,e,n){var r=e._locale.erasParse(input,n,e._strict);r?S(e).era=r:S(e).invalidEra=input})),Wt("y",Lt),Wt("yy",Lt),Wt("yyy",Lt),Wt("yyyy",Lt),Wt("yo",eo),Kt(["y","yy","yyy","yyyy"],Qt),Kt(["yo"],(function(input,t,e,n){var r;e._locale._eraYearOrdinalRegex&&(r=input.match(e._locale._eraYearOrdinalRegex)),e._locale.eraYearOrdinalParse?t[Qt]=e._locale.eraYearOrdinalParse(input,r):t[Qt]=parseInt(input,10)})),G(0,["gg",2],0,(function(){return this.weekYear()%100})),G(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ro("gggg","weekYear"),ro("ggggg","weekYear"),ro("GGGG","isoWeekYear"),ro("GGGGG","isoWeekYear"),ht("weekYear","gg"),ht("isoWeekYear","GG"),gt("weekYear",1),gt("isoWeekYear",1),Wt("G",It),Wt("g",It),Wt("GG",jt,At),Wt("gg",jt,At),Wt("GGGG",$t,Mt),Wt("gggg",$t,Mt),Wt("GGGGG",Nt,Dt),Wt("ggggg",Nt,Dt),Jt(["gggg","ggggg","GGGG","GGGGG"],(function(input,t,e,n){t[n.substr(0,2)]=wt(input)})),Jt(["gg","GG"],(function(input,t,e,n){t[n]=o.parseTwoDigitYear(input)})),G("Q",0,"Qo","quarter"),ht("quarter","Q"),gt("quarter",7),Wt("Q",Et),Kt("Q",(function(input,t){t[te]=3*(wt(input)-1)})),G("D",["DD",2],"Do","date"),ht("date","D"),gt("date",9),Wt("D",jt),Wt("DD",jt,At),Wt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Kt(["D","DD"],ee),Kt("Do",(function(input,t){t[ee]=wt(input.match(jt)[0])}));var fo=xt("Date",!0);function mo(input){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==input?t:this.add(input-t,"d")}G("DDD",["DDDD",3],"DDDo","dayOfYear"),ht("dayOfYear","DDD"),gt("dayOfYear",4),Wt("DDD",Bt),Wt("DDDD",Tt),Kt(["DDD","DDDD"],(function(input,t,e){e._dayOfYear=wt(input)})),G("m",["mm",2],0,"minute"),ht("minute","m"),gt("minute",14),Wt("m",jt),Wt("mm",jt,At),Kt(["m","mm"],re);var go=xt("Minutes",!1);G("s",["ss",2],0,"second"),ht("second","s"),gt("second",15),Wt("s",jt),Wt("ss",jt,At),Kt(["s","ss"],ie);var vo,bo,yo=xt("Seconds",!1);for(G("S",0,0,(function(){return~~(this.millisecond()/100)})),G(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),G(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),G(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),G(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),G(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),G(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ht("millisecond","ms"),gt("millisecond",16),Wt("S",Bt,Et),Wt("SS",Bt,At),Wt("SSS",Bt,Tt),vo="SSSS";vo.length<=9;vo+="S")Wt(vo,Lt);function wo(input,t){t[oe]=wt(1e3*("0."+input))}for(vo="S";vo.length<=9;vo+="S")Kt(vo,wo);function xo(){return this._isUTC?"UTC":""}function ko(){return this._isUTC?"Coordinated Universal Time":""}bo=xt("Milliseconds",!1),G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var So=T.prototype;function _o(input){return sr(1e3*input)}function Co(){return sr.apply(null,arguments).parseZone()}function Oo(t){return t}So.add=Yr,So.calendar=ei,So.clone=ni,So.diff=ui,So.endOf=Di,So.format=mi,So.from=gi,So.fromNow=vi,So.to=bi,So.toNow=yi,So.get=_t,So.invalidAt=Fi,So.isAfter=ri,So.isBefore=ii,So.isBetween=oi,So.isSame=si,So.isSameOrAfter=ai,So.isSameOrBefore=ci,So.isValid=Li,So.lang=xi,So.locale=wi,So.localeData=ki,So.max=lr,So.min=ar,So.parsingFlags=Ii,So.set=Ct,So.startOf=Mi,So.subtract=Gr,So.toArray=Bi,So.toObject=$i,So.toDate=Ri,So.toISOString=pi,So.inspect=fi,"undefined"!=typeof Symbol&&null!=Symbol.for&&(So[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),So.toJSON=Ni,So.toString=di,So.unix=Pi,So.valueOf=ji,So.creationData=zi,So.eraName=qi,So.eraNarrow=Ui,So.eraAbbr=Yi,So.eraYear=Gi,So.year=Oe,So.isLeapYear=Ee,So.weekYear=io,So.isoWeekYear=oo,So.quarter=So.quarters=po,So.month=we,So.daysInMonth=xe,So.week=So.weeks=Le,So.isoWeek=So.isoWeeks=Ie,So.weeksInYear=lo,So.weeksInWeekYear=co,So.isoWeeksInYear=so,So.isoWeeksInISOWeekYear=ao,So.date=fo,So.day=So.days=tn,So.weekday=en,So.isoWeekday=nn,So.dayOfYear=mo,So.hour=So.hours=fn,So.minute=So.minutes=go,So.second=So.seconds=yo,So.millisecond=So.milliseconds=bo,So.utcOffset=Ar,So.utc=Mr,So.local=Dr,So.parseZone=jr,So.hasAlignedHourOffset=Pr,So.isDST=Rr,So.isLocal=$r,So.isUtcOffset=Nr,So.isUtc=Lr,So.isUTC=Lr,So.zoneAbbr=xo,So.zoneName=ko,So.dates=j("dates accessor is deprecated. Use date instead.",fo),So.months=j("months accessor is deprecated. Use month instead",we),So.years=j("years accessor is deprecated. Use year instead",Oe),So.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Tr),So.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Br);var Eo=I.prototype;function Ao(t,e,n,r){var o=An(),l=x().set(r,e);return o[n](l,t)}function To(t,e,n){if(v(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ao(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Ao(t,i,n,"month");return r}function Mo(t,e,n,r){"boolean"==typeof t?(v(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,v(e)&&(n=e,e=void 0),e=e||"");var i,o=An(),l=t?o._week.dow:0,c=[];if(null!=n)return Ao(e,(n+l)%7,r,"day");for(i=0;i<7;i++)c[i]=Ao(e,(i+l)%7,r,"day");return c}function Do(t,e){return To(t,e,"months")}function jo(t,e){return To(t,e,"monthsShort")}function Po(t,e,n){return Mo(t,e,n,"weekdays")}function Ro(t,e,n){return Mo(t,e,n,"weekdaysShort")}function Bo(t,e,n){return Mo(t,e,n,"weekdaysMin")}Eo.calendar=z,Eo.longDateFormat=tt,Eo.invalidDate=nt,Eo.ordinal=st,Eo.preparse=Oo,Eo.postformat=Oo,Eo.relativeTime=lt,Eo.pastFuture=ct,Eo.set=N,Eo.eras=Vi,Eo.erasParse=Hi,Eo.erasConvertYear=Wi,Eo.erasAbbrRegex=Ji,Eo.erasNameRegex=Ki,Eo.erasNarrowRegex=Xi,Eo.months=me,Eo.monthsShort=ge,Eo.monthsParse=be,Eo.monthsRegex=Se,Eo.monthsShortRegex=ke,Eo.week=Re,Eo.firstDayOfYear=Ne,Eo.firstDayOfWeek=$e,Eo.weekdays=Ke,Eo.weekdaysMin=Xe,Eo.weekdaysShort=Je,Eo.weekdaysParse=Qe,Eo.weekdaysRegex=rn,Eo.weekdaysShortRegex=on,Eo.weekdaysMinRegex=sn,Eo.isPM=dn,Eo.meridiem=mn,Cn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var b=t%10;return t+(1===wt(t%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}),o.lang=j("moment.lang is deprecated. Use moment.locale instead.",Cn),o.langData=j("moment.langData is deprecated. Use moment.localeData instead.",An);var $o=Math.abs;function No(){var data=this._data;return this._milliseconds=$o(this._milliseconds),this._days=$o(this._days),this._months=$o(this._months),data.milliseconds=$o(data.milliseconds),data.seconds=$o(data.seconds),data.minutes=$o(data.minutes),data.hours=$o(data.hours),data.months=$o(data.months),data.years=$o(data.years),this}function Lo(t,input,e,n){var r=zr(input,e);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Io(input,t){return Lo(this,input,t,1)}function Fo(input,t){return Lo(this,input,t,-1)}function zo(t){return t<0?Math.floor(t):Math.ceil(t)}function Vo(){var t,e,n,r,o,l=this._milliseconds,c=this._days,h=this._months,data=this._data;return l>=0&&c>=0&&h>=0||l<=0&&c<=0&&h<=0||(l+=864e5*zo(Wo(h)+c),c=0,h=0),data.milliseconds=l%1e3,t=yt(l/1e3),data.seconds=t%60,e=yt(t/60),data.minutes=e%60,n=yt(e/60),data.hours=n%24,c+=yt(n/24),h+=o=yt(Ho(c)),c-=zo(Wo(o)),r=yt(h/12),h%=12,data.days=c,data.months=h,data.years=r,this}function Ho(t){return 4800*t/146097}function Wo(t){return 146097*t/4800}function qo(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=pt(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Ho(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Wo(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Uo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*wt(this._months/12):NaN}function Yo(t){return function(){return this.as(t)}}var Go=Yo("ms"),Ko=Yo("s"),Jo=Yo("m"),Xo=Yo("h"),Zo=Yo("d"),Qo=Yo("w"),ts=Yo("M"),es=Yo("Q"),ns=Yo("y");function rs(){return zr(this)}function is(t){return t=pt(t),this.isValid()?this[t+"s"]():NaN}function os(t){return function(){return this.isValid()?this._data[t]:NaN}}var ss=os("milliseconds"),as=os("seconds"),ls=os("minutes"),cs=os("hours"),us=os("days"),hs=os("months"),ds=os("years");function ps(){return yt(this.days()/7)}var fs=Math.round,ms={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function gs(t,e,n,r,o){return o.relativeTime(e||1,!!n,t,r)}function vs(t,e,n,r){var o=zr(t).abs(),l=fs(o.as("s")),c=fs(o.as("m")),h=fs(o.as("h")),d=fs(o.as("d")),f=fs(o.as("M")),m=fs(o.as("w")),v=fs(o.as("y")),a=l<=n.ss&&["s",l]||l0,a[4]=r,gs.apply(null,a)}function bs(t){return void 0===t?fs:"function"==typeof t&&(fs=t,!0)}function ys(t,e){return void 0!==ms[t]&&(void 0===e?ms[t]:(ms[t]=e,"s"===t&&(ms.ss=e-1),!0))}function ws(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,output,r=!1,th=ms;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(th=Object.assign({},ms,e),null!=e.s&&null==e.ss&&(th.ss=e.s-1)),output=vs(this,!r,th,n=this.localeData()),r&&(output=n.pastFuture(+this,output)),n.postformat(output)}var xs=Math.abs;function ks(t){return(t>0)-(t<0)||+t}function Ss(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,s,r,o,l,c,h=xs(this._milliseconds)/1e3,d=xs(this._days),f=xs(this._months),m=this.asSeconds();return m?(t=yt(h/60),e=yt(t/60),h%=60,t%=60,n=yt(f/12),f%=12,s=h?h.toFixed(3).replace(/\.?0+$/,""):"",r=m<0?"-":"",o=ks(this._months)!==ks(m)?"-":"",l=ks(this._days)!==ks(m)?"-":"",c=ks(this._milliseconds)!==ks(m)?"-":"",r+"P"+(n?o+n+"Y":"")+(f?o+f+"M":"")+(d?l+d+"D":"")+(e||t||h?"T":"")+(e?c+e+"H":"")+(t?c+t+"M":"")+(h?c+s+"S":"")):"P0D"}var _s=yr.prototype;return _s.isValid=gr,_s.abs=No,_s.add=Io,_s.subtract=Fo,_s.as=qo,_s.asMilliseconds=Go,_s.asSeconds=Ko,_s.asMinutes=Jo,_s.asHours=Xo,_s.asDays=Zo,_s.asWeeks=Qo,_s.asMonths=ts,_s.asQuarters=es,_s.asYears=ns,_s.valueOf=Uo,_s._bubble=Vo,_s.clone=rs,_s.get=is,_s.milliseconds=ss,_s.seconds=as,_s.minutes=ls,_s.hours=cs,_s.days=us,_s.weeks=ps,_s.months=hs,_s.years=ds,_s.humanize=ws,_s.toISOString=Ss,_s.toString=Ss,_s.toJSON=Ss,_s.locale=wi,_s.localeData=ki,_s.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ss),_s.lang=xi,G("X",0,0,"unix"),G("x",0,0,"valueOf"),Wt("x",It),Wt("X",Vt),Kt("X",(function(input,t,e){e._d=new Date(1e3*parseFloat(input))})),Kt("x",(function(input,t,e){e._d=new Date(wt(input))})),o.version="2.29.4",l(sr),o.fn=So,o.min=ur,o.max=dr,o.now=pr,o.utc=x,o.unix=_o,o.months=Do,o.isDate=y,o.locale=Cn,o.invalid=C,o.duration=zr,o.isMoment=M,o.weekdays=Po,o.parseZone=Co,o.localeData=An,o.isDuration=wr,o.monthsShort=jo,o.weekdaysMin=Bo,o.defineLocale=On,o.updateLocale=En,o.locales=Tn,o.weekdaysShort=Ro,o.normalizeUnits=pt,o.relativeTimeRounding=bs,o.relativeTimeThreshold=ys,o.calendarFormat=ti,o.prototype=So,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(112)(t))},241:function(t,e,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=r},255:function(t,e,n){"use strict";var r=n(754);function o(t){return null!==t&&"object"===r(t)}function l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!o(e))return l(t,{},n,r);var c=Object.assign({},e);for(var h in t)if("__proto__"!==h&&"constructor"!==h){var d=t[h];null!=d&&(r&&r(c,h,d,n)||(Array.isArray(d)&&Array.isArray(c[h])?c[h]=c[h].concat(d):o(d)&&o(c[h])?c[h]=l(d,c[h],(n?"".concat(n,"."):"")+h.toString(),r):c[h]=d))}return c}function c(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r0?r:n)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(10));e.Avatar=r.default,e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n.n(r),i=n(41),s=n(11)(o.a,i.a,!1,null,null,null);e.default=s.exports},function(t,e){t.exports=function(t,e,n,r,o,i){var u,s=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(u=t,s=t.default);var l,c="function"==typeof s?s.options:s;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):r&&(l=r),l){var h=c.functional,p=h?c.render:c.beforeCreate;h?(c._injectStyles=l,c.render=function(t,e){return l.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,l):[l]}return{esModule:u,exports:s,options:c}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),i=function(t){for(var e=t.split(/[ -]/),n="",r=0;r3&&-1!==n.search(/[A-Z]/)&&(n=n.replace(/[a-z]+/g,"")),n.substr(0,3).toUpperCase()};e.default={name:"avatar",props:{username:{type:String},initials:{type:String},backgroundColor:{type:String},color:{type:String},customStyle:{type:Object},inline:{type:Boolean},size:{type:Number,default:50},src:{type:String},rounded:{type:Boolean,default:!0},lighten:{type:Number,default:80},parser:{type:Function,default:i,validator:function(t){return"string"==typeof t("John",i)}}},data:function(){return{backgroundColors:["#F44336","#FF4081","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFC107","#FF9800","#FF5722","#795548","#9E9E9E","#607D8B"],imgError:!1}},mounted:function(){this.isImage||this.$emit("avatar-initials",this.username,this.userInitial)},computed:{background:function(){if(!this.isImage)return this.backgroundColor||this.randomBackgroundColor(this.username.length,this.backgroundColors)},fontColor:function(){if(!this.isImage)return this.color||this.lightenColor(this.background,this.lighten)},isImage:function(){return!this.imgError&&Boolean(this.src)},style:function(){var t={display:this.inline?"inline-flex":"flex",width:this.size+"px",height:this.size+"px",borderRadius:this.rounded?"50%":0,lineHeight:this.size+Math.floor(this.size/20)+"px",fontWeight:"bold",alignItems:"center",justifyContent:"center",textAlign:"center",userSelect:"none"},e={background:"transparent url('"+this.src+"') no-repeat scroll 0% 0% / "+this.size+"px "+this.size+"px content-box border-box"},n={backgroundColor:this.background,font:Math.floor(this.size/2.5)+"px/"+this.size+"px Helvetica, Arial, sans-serif",color:this.fontColor},o=this.isImage?e:n;return(0,r.default)(t,o),t},userInitial:function(){return this.isImage?"":this.initials||this.parser(this.username,i)}},methods:{initial:i,onImgError:function(t){this.imgError=!0},randomBackgroundColor:function(t,e){return e[t%e.length]},lightenColor:function(t,e){var n=!1;"#"===t[0]&&(t=t.slice(1),n=!0);var r=parseInt(t,16),o=(r>>16)+e;o>255?o=255:o<0&&(o=0);var i=(r>>8&255)+e;i>255?i=255:i<0&&(i=0);var u=(255&r)+e;return u>255?u=255:u<0&&(u=0),(n?"#":"")+(u|i<<8|o<<16).toString(16)}}}},function(t,e,n){t.exports={default:n(14),__esModule:!0}},function(t,e,n){n(15),t.exports=n(4).Object.assign},function(t,e,n){var r=n(16);r(r.S+r.F,"Object",{assign:n(26)})},function(t,e,n){var r=n(0),o=n(4),i=n(17),u=n(19),s=function(t,e,n){var a,l,c,h=t&s.F,p=t&s.G,d=t&s.S,f=t&s.P,m=t&s.B,v=t&s.W,g=p?o:o[e]||(o[e]={}),y=g.prototype,w=p?r:d?r[e]:(r[e]||{}).prototype;for(a in p&&(n=e),n)(l=!h&&w&&void 0!==w[a])&&a in g||(c=l?w[a]:n[a],g[a]=p&&"function"!=typeof w[a]?n[a]:m&&l?i(c,r):v&&w[a]==c?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):f&&"function"==typeof c?i(Function.call,c):c,f&&((g.virtual||(g.virtual={}))[a]=c,t&s.R&&y&&!y[a]&&u(y,a,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(18);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(20),o=n(25);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(21),o=n(22),i=n(24),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(1);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(2)&&!n(3)((function(){return 7!=Object.defineProperty(n(23)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(1);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(27),o=n(38),i=n(39),u=n(40),s=n(6),a=Object.assign;t.exports=!a||n(3)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r}))?function(t,e){for(var n=u(t),a=arguments.length,l=1,c=o.f,h=i.f;a>l;)for(var p,d=s(arguments[l++]),f=c?r(d).concat(c(d)):r(d),m=f.length,v=0;m>v;)h.call(d,p=f[v++])&&(n[p]=d[p]);return n}:a},function(t,e,n){var r=n(28),o=n(37);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(29),o=n(5),i=n(31)(!1),u=n(34)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),a=0,l=[];for(n in s)n!=u&&r(s,n)&&l.push(n);for(;e.length>a;)r(s,n=e[a++])&&(~i(l,n)||l.push(n));return l}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(5),o=n(32),i=n(33);t.exports=function(t){return function(e,n,u){var s,a=r(e),l=o(a.length),c=i(u,l);if(t&&n!=n){for(;l>c;)if((s=a[c++])!=s)return!0}else for(;l>c;c++)if((t||c in a)&&a[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var r=n(8),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(8),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(35)("keys"),o=n(36);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-avatar--wrapper",style:[t.style,t.customStyle],attrs:{"aria-hidden":"true"}},[this.isImage?n("img",{staticStyle:{display:"none"},attrs:{src:this.src},on:{error:t.onImgError}}):t._e(),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!this.isImage,expression:"!this.isImage"}]},[t._v(t._s(t.userInitial))])])},i={render:r,staticRenderFns:[]};e.a=i}])},278:function(t,e,n){var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(object,t){return Object.prototype.hasOwnProperty.call(object,t)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VueSimpleProgress=void 0;var r,o=n(1),l=(r=o)&&r.__esModule?r:{default:r};"undefined"!=typeof window&&window.Vue&&Vue.component("vue-simple-progress",l.default),e.VueSimpleProgress=l.default,e.default=l.default},function(t,e,n){var r=n(2)(n(3),n(4),null,null);t.exports=r.exports},function(t,e){t.exports=function(t,e,n,r){var o,l=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(o=t,l=t.default);var h="function"==typeof l?l.options:l;if(e&&(h.render=e.render,h.staticRenderFns=e.staticRenderFns),n&&(h._scopeId=n),r){var d=Object.create(h.computed||null);Object.keys(r).forEach((function(t){var e=r[t];d[t]=function(){return e}})),h.computed=d}return{esModule:o,exports:l,options:h}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return!isNaN(parseFloat(t))&&isFinite(t)};e.default={props:{val:{default:0},max:{default:100},size:{default:3},"bg-color":{type:String,default:"#eee"},"bar-color":{type:String,default:"#2196f3"},"bar-transition":{type:String,default:"all 0.5s ease"},"bar-border-radius":{type:Number,default:0},spacing:{type:Number,default:4},text:{type:String,default:""},"text-align":{type:String,default:"center"},"text-position":{type:String,default:"bottom"},"font-size":{type:Number,default:13},"text-fg-color":{type:String,default:"#222"}},computed:{pct:function(){var t=this.val/this.max*100;return t=t.toFixed(2),Math.min(t,this.max)},size_px:function(){switch(this.size){case"tiny":return 2;case"small":return 4;case"medium":return 8;case"large":return 12;case"big":return 16;case"huge":return 32;case"massive":return 64}return r(this.size)?this.size:32},text_padding:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(this.size_px/8),3),12)}return r(this.spacing)?this.spacing:4},text_font_size:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(1.4*this.size_px),11),32)}return r(this.fontSize)?this.fontSize:13},progress_style:function(){var style={background:this.bgColor};return"middle"!=this.textPosition&&"inside"!=this.textPosition||(style.position="relative",style["min-height"]=this.size_px+"px",style["z-index"]="-2"),this.barBorderRadius>0&&(style["border-radius"]=this.barBorderRadius+"px"),style},bar_style:function(){var style={background:this.barColor,width:this.pct+"%",height:this.size_px+"px",transition:this.barTransition};return this.barBorderRadius>0&&(style["border-radius"]=this.barBorderRadius+"px"),"middle"!=this.textPosition&&"inside"!=this.textPosition||(style.position="absolute",style.top="0",style.height="100%",style["min-height"]=this.size_px+"px",style["z-index"]="-1"),style},text_style:function(){var style={color:this.textFgColor,"font-size":this.text_font_size+"px","text-align":this.textAlign};return"top"!=this.textPosition&&"middle"!=this.textPosition&&"inside"!=this.textPosition||(style["padding-bottom"]=this.text_padding+"px"),"bottom"!=this.textPosition&&"middle"!=this.textPosition&&"inside"!=this.textPosition||(style["padding-top"]=this.text_padding+"px"),style}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.text.length>0&&"top"==t.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:t.text_style},[t._v(t._s(t.text))]):t._e(),t._v(" "),n("div",{staticClass:"vue-simple-progress",style:t.progress_style},[t.text.length>0&&"middle"==t.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:t.text_style},[t._v(t._s(t.text))]):t._e(),t._v(" "),t.text.length>0&&"inside"==t.textPosition?n("div",{staticStyle:{position:"relative",left:"-9999px"},style:t.text_style},[t._v(t._s(t.text))]):t._e(),t._v(" "),n("div",{staticClass:"vue-simple-progress-bar",style:t.bar_style},[t.text.length>0&&"inside"==t.textPosition?n("div",{style:t.text_style},[t._v(t._s(t.text))]):t._e()])]),t._v(" "),t.text.length>0&&"bottom"==t.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:t.text_style},[t._v(t._s(t.text))]):t._e()])},staticRenderFns:[]}}]).default},t.exports=r()},287:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(7),o=n(16),l=n(135);const c=r.b.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new o.c({key:new o.d("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const c=t.type.createAndFill(),h=(null==c?void 0:c.sameMarkup(t))&&null===c.content.findDiffStart(t.content);return t.descendants(((t,e)=>{const n=r>=e&&r<=e+t.nodeSize,c=!t.isLeaf&&!t.childCount;if((n||!this.options.showOnlyCurrent)&&c){const r=[this.options.emptyNodeClass];h&&r.push(this.options.emptyEditorClass);const c=l.a.node(e,e+t.nodeSize,{class:r.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:e,hasAnchor:n}):this.options.placeholder});o.push(c)}return this.options.includeChildren})),l.b.create(t,o)}}})]}})},288:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(7);const o=r.c.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:style=>!!style.includes("underline")&&{}}],renderHTML({HTMLAttributes:t}){return["u",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}})},289:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=n(7).b.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:element=>element.style.textAlign||this.options.defaultAlignment,renderHTML:t=>t.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${t.textAlign}`}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>!!this.options.alignments.includes(t)&&this.options.types.every((n=>e.updateAttributes(n,{textAlign:t}))),unsetTextAlign:()=>({commands:t})=>this.options.types.every((e=>t.resetAttributes(e,"textAlign")))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}})},290:function(t,e,n){"use strict";n.d(e,"a",(function(){return Dt}));var r=n(7);const o=/^\s*>\s$/,l=r.d.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:t}){return["blockquote",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Object(r.w)({find:o,type:this.type})]}}),c=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,h=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,d=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,f=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,m=r.c.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!==t.style.fontWeight&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],renderHTML({HTMLAttributes:t}){return["strong",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Object(r.q)({find:c,type:this.type}),Object(r.q)({find:d,type:this.type})]},addPasteRules(){return[Object(r.r)({find:h,type:this.type}),Object(r.r)({find:f,type:this.type})]}});var v=n(142);const y=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,w=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,x=r.c.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:t}){return["code",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Object(r.q)({find:y,type:this.type})]},addPasteRules(){return[Object(r.r)({find:w,type:this.type})]}});var k=n(16);const S=/^```([a-z]+)?[\s\n]$/,_=/^~~~([a-z]+)?[\s\n]$/,C=r.d.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:element=>{var t;const{languageClassPrefix:e}=this.options,n=[...(null===(t=element.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter((t=>t.startsWith(e))).map((t=>t.replace(e,"")))[0];return n||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:t,HTMLAttributes:e}){return["pre",Object(r.s)(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=1===e.pos;return!(!t||e.parent.type.name!==this.name)&&(!(!n&&e.parent.textContent.length)&&this.editor.commands.clearNodes())},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;const l=r.parentOffset===r.parent.nodeSize-2,c=r.parent.textContent.endsWith("\n\n");return!(!l||!c)&&t.chain().command((({tr:tr})=>(tr.delete(r.pos-2,r.pos),!0))).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:o,empty:l}=n;if(!l||o.parent.type!==this.type)return!1;if(!(o.parentOffset===o.parent.nodeSize-2))return!1;const c=o.after();if(void 0===c)return!1;return!r.nodeAt(c)&&t.commands.exitCode()}}},addInputRules(){return[Object(r.v)({find:S,type:this.type,getAttributes:t=>({language:t[1]})}),Object(r.v)({find:_,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new k.c({key:new k.d("codeBlockVSCodeHandler"),props:{handlePaste:(view,t)=>{if(!t.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const text=t.clipboardData.getData("text/plain"),e=t.clipboardData.getData("vscode-editor-data"),n=e?JSON.parse(e):void 0,r=null==n?void 0:n.mode;if(!text||!r)return!1;const{tr:tr}=view.state;return tr.replaceSelectionWith(this.type.create({language:r})),tr.setSelection(k.f.near(tr.doc.resolve(Math.max(0,tr.selection.from-2)))),tr.insertText(text.replace(/\r\n?/g,"\n")),tr.setMeta("paste",!0),view.dispatch(tr),!0}}})]}});var O=n(143),E=n(10),A=n(21);function T(t={}){return new E.d({view:e=>new M(e,t)})}class M{constructor(t,e){var n;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=e.width)&&void 0!==n?n:1,this.color=!1===e.color?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map((e=>{let n=t=>{this[e](t)};return t.dom.addEventListener(e,n),{name:e,handler:n}}))}destroy(){this.handlers.forEach((({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e)))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let rect,t=this.editorView.state.doc.resolve(this.cursorPos),e=!t.parent.inlineContent;if(e){let e=t.nodeBefore,n=t.nodeAfter;if(e||n){let t=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(t){let r=t.getBoundingClientRect(),o=e?r.bottom:r.top;e&&n&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),rect={left:r.left,right:r.right,top:o-this.width/2,bottom:o+this.width/2}}}}if(!rect){let t=this.editorView.coordsAtPos(this.cursorPos);rect={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let n,r,o=this.editorView.dom.offsetParent;if(this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",e),this.element.classList.toggle("prosemirror-dropcursor-inline",!e),!o||o==document.body&&"static"==getComputedStyle(o).position)n=-pageXOffset,r=-pageYOffset;else{let rect=o.getBoundingClientRect();n=rect.left-o.scrollLeft,r=rect.top-o.scrollTop}this.element.style.left=rect.left-n+"px",this.element.style.top=rect.top-r+"px",this.element.style.width=rect.right-rect.left+"px",this.element.style.height=rect.bottom-rect.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,e,t):r;if(e&&!o){let t=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=Object(A.g)(this.editorView.state.doc,t,this.editorView.dragging.slice);null!=e&&(t=e)}this.setCursor(t),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){t.target!=this.editorView.dom&&this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}const D=r.b.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[T(this.options)]}});var j=n(172),P=n(2),R=n(132);class B extends E.f{constructor(t){super(t,t)}map(t,e){let n=t.resolve(e.map(this.head));return B.valid(n)?new B(n):E.f.near(n)}content(){return P.j.empty}eq(t){return t instanceof B&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new B(t.resolve(e.pos))}getBookmark(){return new $(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!function(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(0!=n)for(let t=r.child(n-1);;t=t.lastChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(t)||!function(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n!=r.childCount)for(let t=r.child(n);;t=t.firstChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(t))return!1;let n=e.type.spec.allowGapCursor;if(null!=n)return n;let r=e.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,e,n=!1){t:for(;;){if(!n&&B.valid(t))return t;let r=t.pos,o=null;for(let n=t.depth;;n--){let l=t.node(n);if(e>0?t.indexAfter(n)0){o=l.child(e>0?t.indexAfter(n):t.index(n)-1);break}if(0==n)return null;r+=e;let c=t.doc.resolve(r);if(B.valid(c))return c}for(;;){let l=e>0?o.firstChild:o.lastChild;if(!l){if(o.isAtom&&!o.isText&&!E.c.isSelectable(o)){t=t.doc.resolve(r+o.nodeSize*e),n=!1;continue t}break}o=l,r+=e;let c=t.doc.resolve(r);if(B.valid(c))return c}return null}}}B.prototype.visible=!1,B.findFrom=B.findGapCursorFrom,E.f.jsonID("gapcursor",B);class ${constructor(t){this.pos=t}map(t){return new $(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return B.valid(e)?new B(e):E.f.near(e)}}const N=Object(j.a)({ArrowLeft:L("horiz",-1),ArrowRight:L("horiz",1),ArrowUp:L("vert",-1),ArrowDown:L("vert",1)});function L(t,e){const n="vert"==t?e>0?"down":"up":e>0?"right":"left";return function(t,r,view){let o=t.selection,l=e>0?o.$to:o.$from,c=o.empty;if(o instanceof E.h){if(!view.endOfTextblock(n)||0==l.depth)return!1;c=!1,l=t.doc.resolve(e>0?l.after():l.before())}let h=B.findGapCursorFrom(l,e,c);return!!h&&(r&&r(t.tr.setSelection(new B(h))),!0)}}function I(view,t,e){if(!view||!view.editable)return!1;let n=view.state.doc.resolve(t);if(!B.valid(n))return!1;let r=view.posAtCoords({left:e.clientX,top:e.clientY});return!(r&&r.inside>-1&&E.c.isSelectable(view.state.doc.nodeAt(r.inside)))&&(view.dispatch(view.state.tr.setSelection(new B(n))),!0)}function F(view,t){if("insertCompositionText"!=t.inputType||!(view.state.selection instanceof B))return!1;let{$from:e}=view.state.selection,n=e.parent.contentMatchAt(e.index()).findWrapping(view.state.schema.nodes.text);if(!n)return!1;let r=P.c.empty;for(let i=n.length-1;i>=0;i--)r=P.c.from(n[i].createAndFill(null,r));let tr=view.state.tr.replace(e.pos,e.pos,new P.j(r,0,0));return tr.setSelection(E.h.near(tr.doc.resolve(e.pos+1))),view.dispatch(tr),!1}function z(t){if(!(t.selection instanceof B))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",R.b.create(t.doc,[R.a.widget(t.selection.head,e,{key:"gapcursor"})])}const V=r.b.create({name:"gapCursor",addProseMirrorPlugins:()=>[new E.d({props:{decorations:z,createSelectionBetween:(t,e,n)=>e.pos==n.pos&&B.valid(n)?new B(n):null,handleClick:I,handleKeyDown:N,handleDOMEvents:{beforeinput:F}}})],extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:null!==(e=Object(r.f)(Object(r.l)(t,"allowGapCursor",n)))&&void 0!==e?e:null}}}),H=r.d.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:t}){return["br",Object(r.s)(this.options.HTMLAttributes,t)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command((()=>{const{selection:t,storedMarks:o}=n;if(t.$from.parent.type.spec.isolating)return!1;const{keepMarks:l}=this.options,{splittableMarks:c}=r.extensionManager,h=o||t.$to.parentOffset&&t.$from.marks();return e().insertContent({type:this.name}).command((({tr:tr,dispatch:t})=>{if(t&&h&&l){const t=h.filter((mark=>c.includes(mark.type.name)));tr.ensureMarks(t)}return!0})).run()}))])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var W=n(170),U=200,Y=function(){};Y.prototype.append=function(t){return t.length?(t=Y.from(t),!this.length&&t||t.length=e?Y.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},Y.prototype.get=function(i){if(!(i<0||i>=this.length))return this.getInner(i)},Y.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},Y.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(e,i){return r.push(t(e,i))}),e,n),r},Y.from=function(t){return t instanceof Y?t:t&&t.length?new G(t):Y.empty};var G=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(t,e,n,r){for(var i=e;i=n;i--)if(!1===t(this.values[i],r+i))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=U)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=U)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Y);Y.empty=new G([]);var K=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(i){return io&&!1===this.right.forEachInner(t,Math.max(e-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},e.prototype.forEachInvertedInner=function(t,e,n,r){var o=this.left.length;return!(e>o&&!1===this.right.forEachInvertedInner(t,e-o,Math.max(n,o)-o,r+o))&&(!(n=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(Y),J=Y;class X{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}e&&(n=this.remapping(o,this.items.length),r=n.maps.length);let l,c,h=t.tr,d=[],f=[];return this.items.forEach(((t,i)=>{if(!t.step)return n||(n=this.remapping(o,i+1),r=n.maps.length),r--,void f.push(t);if(n){f.push(new Z(t.map));let map,e=t.step.map(n.slice(r));e&&h.maybeStep(e).doc&&(map=h.mapping.maps[h.mapping.maps.length-1],d.push(new Z(map,void 0,void 0,d.length+f.length))),r--,map&&n.appendMap(map,r)}else h.maybeStep(t.step);return t.selection?(l=n?t.selection.map(n.slice(r)):t.selection,c=new X(this.items.slice(0,o).append(f.reverse().concat(d)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:c,transform:h,selection:l}}addTransform(t,e,n,r){let o=[],l=this.eventCount,c=this.items,h=!r&&c.length?c.get(c.length-1):null;for(let i=0;itt&&(c=function(t,e){let n;return t.forEach(((t,i)=>{if(t.selection&&0==e--)return n=i,!1})),t.slice(n)}(c,d),l-=d),new X(c.append(o),l)}remapping(t,e){let n=new A.a;return this.items.forEach(((e,i)=>{let r=null!=e.mirrorOffset&&i-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,r)}),t,e),n}addMaps(t){return 0==this.eventCount?this:new X(this.items.append(t.map((map=>new Z(map)))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-e),o=t.mapping,l=t.steps.length,c=this.eventCount;this.items.forEach((t=>{t.selection&&c--}),r);let h=e;this.items.forEach((e=>{let r=o.getMirror(--h);if(null==r)return;l=Math.min(l,r);let map=o.maps[r];if(e.step){let l=t.steps[r].invert(t.docs[r]),d=e.selection&&e.selection.map(o.slice(h+1,r));d&&c++,n.push(new Z(map,l,d))}else n.push(new Z(map))}),r);let d=[];for(let i=e;i500&&(m=m.compress(this.items.length-n.length)),m}emptyItemCount(){let t=0;return this.items.forEach((e=>{e.step||t++})),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,r=[],o=0;return this.items.forEach(((l,i)=>{if(i>=t)r.push(l),l.selection&&o++;else if(l.step){let t=l.step.map(e.slice(n)),map=t&&t.getMap();if(n--,map&&e.appendMap(map,n),t){let c=l.selection&&l.selection.map(e.slice(n));c&&o++;let h,d=new Z(map.invert(),t,c),f=r.length-1;(h=r.length&&r[f].merge(d))?r[f]=h:r.push(d)}}else l.map&&n--}),this.items.length,0),new X(J.from(r.reverse()),o)}}X.empty=new X(J.empty,0);class Z{constructor(map,t,e,n){this.map=map,this.step=t,this.selection=e,this.mirrorOffset=n}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new Z(e.getMap().invert(),e,this.selection)}}}class Q{constructor(t,e,n,r,o){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=r,this.prevComposition=o}}const tt=20;function et(map){let t=[];return map.forEach(((e,n,r,o)=>t.push(r,o))),t}function nt(t,e){if(!t)return null;let n=[];for(let i=0;inew Q(X.empty,X.empty,null,0,-1),apply:(tr,e,n)=>function(t,e,tr,n){let r,o=tr.getMeta(lt);if(o)return o.historyState;tr.getMeta(ct)&&(t=new Q(t.done,t.undone,null,0,-1));let l=tr.getMeta("appendedTransaction");if(0==tr.steps.length)return t;if(l&&l.getMeta(lt))return l.getMeta(lt).redo?new Q(t.done.addTransform(tr,void 0,n,at(e)),t.undone,et(tr.mapping.maps[tr.steps.length-1]),t.prevTime,t.prevComposition):new Q(t.done,t.undone.addTransform(tr,void 0,n,at(e)),null,t.prevTime,t.prevComposition);if(!1===tr.getMeta("addToHistory")||l&&!1===l.getMeta("addToHistory"))return(r=tr.getMeta("rebased"))?new Q(t.done.rebased(tr,r),t.undone.rebased(tr,r),nt(t.prevRanges,tr.mapping),t.prevTime,t.prevComposition):new Q(t.done.addMaps(tr.mapping.maps),t.undone.addMaps(tr.mapping.maps),nt(t.prevRanges,tr.mapping),t.prevTime,t.prevComposition);{let r=tr.getMeta("composition"),o=0==t.prevTime||!l&&t.prevComposition!=r&&(t.prevTime<(tr.time||0)-n.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach(((t,r)=>{for(let i=0;i=e[i]&&(n=!0)})),n}(tr,t.prevRanges)),c=l?nt(t.prevRanges,tr.mapping):et(tr.mapping.maps[tr.steps.length-1]);return new Q(t.done.addTransform(tr,o?e.selection.getBookmark():void 0,n,at(e)),X.empty,c,tr.time,null==r?t.prevComposition:r)}}(e,n,tr,t)},config:t,props:{handleDOMEvents:{beforeinput(view,t){let e=t.inputType,n="historyUndo"==e?ht:"historyRedo"==e?pt:null;return!!n&&(t.preventDefault(),n(view.state,view.dispatch))}}}})}const ht=(t,e)=>{let n=lt.getState(t);return!(!n||0==n.done.eventCount)&&(e&&it(n,t,e,!1),!0)},pt=(t,e)=>{let n=lt.getState(t);return!(!n||0==n.undone.eventCount)&&(e&&it(n,t,e,!0),!0)};const ft=r.b.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>ht(t,e),redo:()=>({state:t,dispatch:e})=>pt(t,e)}),addProseMirrorPlugins(){return[ut(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),mt=r.d.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:t}){return["hr",Object(r.s)(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t})=>t().insertContent({type:this.name}).command((({tr:tr,dispatch:t})=>{var e;if(t){const{$to:t}=tr.selection,n=t.end();if(t.nodeAfter)tr.setSelection(k.f.create(tr.doc,t.pos));else{const r=null===(e=t.parent.type.contentMatch.defaultType)||void 0===e?void 0:e.create();r&&(tr.insert(n,r),tr.setSelection(k.f.create(tr.doc,n)))}tr.scrollIntoView()}return!0})).run()}},addInputRules(){return[Object(r.t)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),gt=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,vt=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,bt=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,yt=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,wt=r.c.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:t=>"normal"!==t.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:t}){return["em",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Object(r.q)({find:gt,type:this.type}),Object(r.q)({find:bt,type:this.type})]},addPasteRules(){return[Object(r.r)({find:vt,type:this.type}),Object(r.r)({find:yt,type:this.type})]}});var xt=n(144);const kt=r.d.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",Object(r.s)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),St=r.c.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:element=>!!element.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=Object(r.m)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}}),_t=/^(\d+)\.\s$/,Ct=r.d.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:element=>element.hasAttribute("start")?parseInt(element.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return 1===e?["ol",Object(r.s)(this.options.HTMLAttributes,n),0]:["ol",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(kt.name,this.editor.getAttributes(St.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Object(r.w)({find:_t,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Object(r.w)({find:_t,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(St.name)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}});var Ot=n(145);const Et=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,At=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,Tt=r.c.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:style=>!!style.includes("line-through")&&{}}],renderHTML({HTMLAttributes:t}){return["s",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Object(r.q)({find:Et,type:this.type})]},addPasteRules(){return[Object(r.r)({find:At,type:this.type})]}});var Mt=n(146);const Dt=r.b.create({name:"starterKit",addExtensions(){var t,e,n,r,o,c,h,d,f,y,w,k,S,_,E,A,T,M;const j=[];return!1!==this.options.blockquote&&j.push(l.configure(null===(t=this.options)||void 0===t?void 0:t.blockquote)),!1!==this.options.bold&&j.push(m.configure(null===(e=this.options)||void 0===e?void 0:e.bold)),!1!==this.options.bulletList&&j.push(v.a.configure(null===(n=this.options)||void 0===n?void 0:n.bulletList)),!1!==this.options.code&&j.push(x.configure(null===(r=this.options)||void 0===r?void 0:r.code)),!1!==this.options.codeBlock&&j.push(C.configure(null===(o=this.options)||void 0===o?void 0:o.codeBlock)),!1!==this.options.document&&j.push(O.a.configure(null===(c=this.options)||void 0===c?void 0:c.document)),!1!==this.options.dropcursor&&j.push(D.configure(null===(h=this.options)||void 0===h?void 0:h.dropcursor)),!1!==this.options.gapcursor&&j.push(V.configure(null===(d=this.options)||void 0===d?void 0:d.gapcursor)),!1!==this.options.hardBreak&&j.push(H.configure(null===(f=this.options)||void 0===f?void 0:f.hardBreak)),!1!==this.options.heading&&j.push(W.a.configure(null===(y=this.options)||void 0===y?void 0:y.heading)),!1!==this.options.history&&j.push(ft.configure(null===(w=this.options)||void 0===w?void 0:w.history)),!1!==this.options.horizontalRule&&j.push(mt.configure(null===(k=this.options)||void 0===k?void 0:k.horizontalRule)),!1!==this.options.italic&&j.push(wt.configure(null===(S=this.options)||void 0===S?void 0:S.italic)),!1!==this.options.listItem&&j.push(xt.a.configure(null===(_=this.options)||void 0===_?void 0:_.listItem)),!1!==this.options.orderedList&&j.push(Ct.configure(null===(E=this.options)||void 0===E?void 0:E.orderedList)),!1!==this.options.paragraph&&j.push(Ot.a.configure(null===(A=this.options)||void 0===A?void 0:A.paragraph)),!1!==this.options.strike&&j.push(Tt.configure(null===(T=this.options)||void 0===T?void 0:T.strike)),!1!==this.options.text&&j.push(Mt.a.configure(null===(M=this.options)||void 0===M?void 0:M.text)),j}})},292:function(t,e,n){"use strict";n.d(e,"a",(function(){return re}));var r=n(7);const o="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",l="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",c=(t,e)=>{for(const n in e)t[n]=e[n];return t},h="numeric",d="ascii",f="alpha",m="asciinumeric",v="alphanumeric",y="domain",w="emoji",x="scheme",k="slashscheme",S="whitespace";function _(t,e){return t in e||(e[t]=[]),e[t]}function C(t,e,n){e[h]&&(e[m]=!0,e[v]=!0),e[d]&&(e[m]=!0,e[f]=!0),e[m]&&(e[v]=!0),e[f]&&(e[v]=!0),e[v]&&(e[y]=!0),e[w]&&(e[y]=!0);for(const r in e){const e=_(r,n);e.indexOf(t)<0&&e.push(t)}}function O(t){void 0===t&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}O.groups={},O.prototype={accepts(){return!!this.t},go(input){const t=this,e=t.j[input];if(e)return e;for(let i=0;i=0&&(n[r]=!0);return n}(l.t,n),e);C(o,t,n)}else e&&C(o,e,n);l.t=o}return r.j[input]=l,l}};const E=(t,input,e,n,r)=>t.ta(input,e,n,r),A=(t,e,n,r,o)=>t.tr(e,n,r,o),T=(t,input,e,n,r)=>t.ts(input,e,n,r),M=(t,input,e,n,r)=>t.tt(input,e,n,r),D="WORD",j="UWORD",P="LOCALHOST",R="TLD",B="UTLD",$="SCHEME",N="SLASH_SCHEME",L="NUM",I="WS",F="NL",z="OPENBRACE",V="OPENBRACKET",H="OPENANGLEBRACKET",W="OPENPAREN",U="CLOSEBRACE",Y="CLOSEBRACKET",G="CLOSEANGLEBRACKET",K="CLOSEPAREN",J="AMPERSAND",X="APOSTROPHE",Z="ASTERISK",Q="AT",tt="BACKSLASH",et="BACKTICK",nt="CARET",it="COLON",ot="COMMA",st="DOLLAR",at="DOT",lt="EQUALS",ct="EXCLAMATION",ut="HYPHEN",ht="PERCENT",pt="PIPE",ft="PLUS",mt="POUND",gt="QUERY",vt="QUOTE",bt="SEMI",yt="SLASH",wt="TILDE",xt="UNDERSCORE",kt="EMOJI",St="SYM";var _t=Object.freeze({__proto__:null,WORD:D,UWORD:j,LOCALHOST:P,TLD:R,UTLD:B,SCHEME:$,SLASH_SCHEME:N,NUM:L,WS:I,NL:F,OPENBRACE:z,OPENBRACKET:V,OPENANGLEBRACKET:H,OPENPAREN:W,CLOSEBRACE:U,CLOSEBRACKET:Y,CLOSEANGLEBRACKET:G,CLOSEPAREN:K,AMPERSAND:J,APOSTROPHE:X,ASTERISK:Z,AT:Q,BACKSLASH:tt,BACKTICK:et,CARET:nt,COLON:it,COMMA:ot,DOLLAR:st,DOT:at,EQUALS:lt,EXCLAMATION:ct,HYPHEN:ut,PERCENT:ht,PIPE:pt,PLUS:ft,POUND:mt,QUERY:gt,QUOTE:vt,SEMI:bt,SLASH:yt,TILDE:wt,UNDERSCORE:xt,EMOJI:kt,SYM:St});const Ct=/[a-z]/,Ot=/\p{L}/u,Et=/\p{Emoji}/u,At=/\d/,Tt=/\s/;const Mt="\n",Dt="️",jt="‍";let Pt=null,Rt=null;function Bt(t,input,e,n,r){let o;const l=input.length;for(let i=0;i=0;)r++;if(r>0){e.push(n.join(""));for(let e=parseInt(t.substring(i,i+r),10);e>0;e--)n.pop();i+=r}else n.push(t[i]),i++}return e}const Nt={defaultProtocol:"http",events:null,format:It,formatHref:It,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Lt(t,e){void 0===e&&(e=null);let n=c({},Nt);t&&(n=c(n,t instanceof Lt?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;it,check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=null!=e;let option=this.o[t];return option?("object"==typeof option?(option=n.t in option?option[n.t]:Nt[t],"function"==typeof option&&r&&(option=option(e,n))):"function"==typeof option&&r&&(option=option(e,n.t,n)),option):option},getObj(t,e,n){let r=this.o[t];return"function"==typeof r&&null!=e&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function Ft(t,e){this.t="token",this.v=t,this.tk=e}function zt(t,e){class n extends Ft{constructor(e,n){super(e,n),this.t=t}}for(const p in e)n.prototype[p]=e[p];return n.t=t,n}Ft.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return void 0===t&&(t=Nt.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),content=this.toFormattedString(t),l={},h=t.get("className",n,e),d=t.get("target",n,e),f=t.get("rel",n,e),m=t.getObj("attributes",n,e),v=t.getObj("events",n,e);return l.href=r,h&&(l.class=h),d&&(l.target=d),f&&(l.rel=f),m&&c(l,m),{tagName:o,attributes:l,content:content,eventListeners:v}}};const Vt=zt("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ht=zt("text"),Wt=zt("nl"),qt=zt("url",{isLink:!0,toHref(t){return void 0===t&&(t=Nt.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==P&&t[1].t===it}});const Ut=t=>new O(t);function Yt(t,input,e){const n=e[0].s,r=e[e.length-1].e;return new t(input.slice(n,r),e)}const Gt="undefined"!=typeof console&&console&&console.warn||(()=>{}),Kt="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Jt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Xt(t,e){if(void 0===e&&(e=!1),Jt.initialized&&Gt(`linkifyjs: already initialized - will not register custom scheme "${t}" ${Kt}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat');Jt.customSchemes.push([t,e])}function Zt(){Jt.scanner=function(t){void 0===t&&(t=[]);const e={};O.groups=e;const n=new O;null==Pt&&(Pt=$t(o)),null==Rt&&(Rt=$t(l)),M(n,"'",X),M(n,"{",z),M(n,"[",V),M(n,"<",H),M(n,"(",W),M(n,"}",U),M(n,"]",Y),M(n,">",G),M(n,")",K),M(n,"&",J),M(n,"*",Z),M(n,"@",Q),M(n,"`",et),M(n,"^",nt),M(n,":",it),M(n,",",ot),M(n,"$",st),M(n,".",at),M(n,"=",lt),M(n,"!",ct),M(n,"-",ut),M(n,"%",ht),M(n,"|",pt),M(n,"+",ft),M(n,"#",mt),M(n,"?",gt),M(n,'"',vt),M(n,"/",yt),M(n,";",bt),M(n,"~",wt),M(n,"_",xt),M(n,"\\",tt);const r=A(n,At,L,{[h]:!0});A(r,At,r);const v=A(n,Ct,D,{[d]:!0});A(v,Ct,v);const _=A(n,Ot,j,{[f]:!0});A(_,Ct),A(_,Ot,_);const E=A(n,Tt,I,{[S]:!0});M(n,Mt,F,{[S]:!0}),M(E,Mt),A(E,Tt,E);const Nt=A(n,Et,kt,{[w]:!0});A(Nt,Et,Nt),M(Nt,Dt,Nt);const Lt=M(Nt,jt);A(Lt,Et,Nt);const It=[[Ct,v]],Ft=[[Ct,null],[Ot,_]];for(let i=0;ia[0]>b[0]?1:-1));for(let i=0;i=0?r[y]=!0:Ct.test(e)?At.test(e)?r[m]=!0:r[d]=!0:r[h]=!0,T(n,e,e,r)}return T(n,"localhost",P,{ascii:!0}),n.jd=new O(St),{start:n,tokens:c({groups:e},_t)}}(Jt.customSchemes);for(let i=0;i=0&&m++,cursor++,d++;if(m<0)cursor-=d,cursor0&&(r.push(Yt(Ht,input,o)),o=[]),cursor-=m,d-=m;const t=f.t,n=e.slice(cursor-d,cursor);r.push(Yt(t,input,n))}}return o.length>0&&r.push(Yt(Ht,input,o)),r}(Jt.parser.start,t,function(t,e){const n=function(t){const e=[],n=t.length;let r=0;for(;r56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?t[r]:t.slice(r,r+2);e.push(c),r+=c.length}return e}(e.replace(/[A-Z]/g,(t=>t.toLowerCase()))),r=n.length,o=[];let cursor=0,l=0;for(;l=0&&(m+=n[l].length,v++),d+=n[l].length,cursor+=n[l].length,l++;cursor-=m,l-=v,d-=m,o.push({t:f.t,v:e.slice(cursor-d,cursor),s:cursor-d,e:cursor})}return o}(Jt.scanner.start,t))}function te(t,e,n){if(void 0===e&&(e=null),void 0===n&&(n=null),e&&"object"==typeof e){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new Lt(n),o=Qt(t),l=[];for(let i=0;i{"string"!=typeof t?Xt(t.scheme,t.optionalSlashes):Xt(t)}))},onDestroy(){O.groups={},Jt.scanner=null,Jt.parser=null,Jt.tokenQueue=[],Jt.pluginQueue=[],Jt.customSchemes=[],Jt.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:t}){return["a",Object(r.s)(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Object(r.r)({find:text=>te(text).filter((link=>!this.options.validate||this.options.validate(link.value))).filter((link=>link.isLink)).map((link=>({text:link.value,index:link.start,data:link}))),type:this.type,getAttributes:t=>{var e;return{href:null===(e=t.data)||void 0===e?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];var e;return this.options.autolink&&t.push((e={type:this.type,validate:this.options.validate},new ne.c({key:new ne.d("autolink"),appendTransaction:(t,n,o)=>{const l=t.some((t=>t.docChanged))&&!n.doc.eq(o.doc),c=t.some((t=>t.getMeta("preventAutolink")));if(!l||c)return;const{tr:tr}=o,h=Object(r.g)(n.doc,[...t]),{mapping:d}=h;return Object(r.k)(h).forEach((({oldRange:t,newRange:l})=>{Object(r.n)(t.from,t.to,n.doc).filter((t=>t.mark.type===e.type)).forEach((t=>{const l=d.map(t.from),c=d.map(t.to),h=Object(r.n)(l,c,o.doc).filter((t=>t.mark.type===e.type));if(!h.length)return;const f=h[0],m=n.doc.textBetween(t.from,t.to,void 0," "),v=o.doc.textBetween(f.from,f.to,void 0," "),y=ee(m),w=ee(v);y&&!w&&tr.removeMark(f.from,f.to,e.type)}));const c=Object(r.h)(o.doc,l,(t=>t.isTextblock));let h,f;if(c.length>1?(h=c[0],f=o.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ")):c.length&&o.doc.textBetween(l.from,l.to," "," ").endsWith(" ")&&(h=c[0],f=o.doc.textBetween(h.pos,l.to,void 0," ")),h&&f){const t=f.split(" ").filter((s=>""!==s));if(t.length<=0)return!1;const n=t[t.length-1],r=h.pos+f.lastIndexOf(n);if(!n)return!1;te(n).filter((link=>link.isLink)).filter((link=>!e.validate||e.validate(link.value))).map((link=>({...link,from:r+link.start+1,to:r+link.end+1}))).forEach((link=>{tr.addMark(link.from,link.to,e.type.create({href:link.href}))}))}})),tr.steps.length?tr:void 0}}))),this.options.openOnClick&&t.push(function(t){return new ne.c({key:new ne.d("handleClickLink"),props:{handleClick:(view,e,n)=>{var o,l,c;if(0!==n.button)return!1;const h=Object(r.j)(view.state,t.type.name),link=null===(o=n.target)||void 0===o?void 0:o.closest("a"),d=null!==(l=null==link?void 0:link.href)&&void 0!==l?l:h.href,f=null!==(c=null==link?void 0:link.target)&&void 0!==c?c:h.target;return!(!link||!d||(window.open(d,f),0))}}})}({type:this.type})),this.options.linkOnPaste&&t.push(function(t){return new ne.c({key:new ne.d("handlePasteLink"),props:{handlePaste:(view,e,n)=>{const{state:r}=view,{selection:o}=r,{empty:l}=o;if(l)return!1;let c="";n.content.forEach((t=>{c+=t.textContent}));const link=te(c).find((t=>t.isLink&&t.value===c));return!(!c||!link||(t.editor.commands.setMark(t.type,{href:link.href}),0))}}})}({editor:this.editor,type:this.type})),t}})},336:function(t,e,n){"use strict";n.d(e,"a",(function(){return at}));var r={};n.r(r),n.d(r,"protocol",(function(){return G})),n.d(r,"PacketType",(function(){return K})),n.d(r,"Encoder",(function(){return J})),n.d(r,"Decoder",(function(){return Z}));var o=n(94),l=n(177),c=n(61);let h=!1;try{h="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}const d=h;var f=n(50);function m(t){const e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||d))return new XMLHttpRequest}catch(t){}if(!e)try{return new(f.a[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}var v=n(66),y=n(67);function w(){}const x=null!=new m({xdomain:!1}).responseType;class k extends o.a{constructor(t){if(super(t),this.polling=!1,"undefined"!=typeof location){const e="https:"===location.protocol;let n=location.port;n||(n=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port}const e=t&&t.forceBase64;this.supportsBinary=x&&!e,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const e=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",(function(){--t||e()}))),this.writable||(t++,this.once("drain",(function(){--t||e()})))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(data){Object(c.c)(data,this.socket.binaryType).forEach((t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,Object(c.f)(t,(data=>{this.doWrite(data,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=Object(l.a)()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new S(this.uri(),t)}doWrite(data,t){const e=this.request({method:"POST",data:data});e.on("success",t),e.on("error",((t,e)=>{this.onError("xhr post error",t,e)}))}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,e)=>{this.onError("xhr poll error",t,e)})),this.pollXhr=t}}class S extends v.a{constructor(t,e){super(),Object(y.b)(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.data=void 0!==e.data?e.data:null,this.create()}create(){var t;const e=Object(y.c)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;const n=this.xhr=new m(e);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}}catch(t){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{n.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this.opts.cookieJar)||void 0===t||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var t;3===n.readyState&&(null===(t=this.opts.cookieJar)||void 0===t||t.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(t){return void this.setTimeoutFn((()=>{this.onError(t)}),0)}"undefined"!=typeof document&&(this.index=S.requestsCount++,S.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=w,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete S.requests[this.index],this.xhr=null}}onLoad(){const data=this.xhr.responseText;null!==data&&(this.emitReserved("data",data),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(S.requestsCount=0,S.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",_);else if("function"==typeof addEventListener){const t="onpagehide"in f.a?"pagehide":"unload";addEventListener(t,_,!1)}function _(){for(let i in S.requests)S.requests.hasOwnProperty(i)&&S.requests[i].abort()}var C=n(505),O=n(58);function E(t,e){return"message"===t.type&&"string"!=typeof t.data&&e[0]>=48&&e[0]<=54}class A extends o.a{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((t=>{this.onError("webtransport error",t)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((t=>{const e=t.readable.getReader();let n;this.writer=t.writable.getWriter();const r=()=>{e.read().then((({done:t,value:e})=>{t||(n||1!==e.byteLength||54!==e[0]?(this.onPacket(Object(c.b)(e,n,"arraybuffer")),n=!1):n=!0,r())})).catch((t=>{}))};r();const o=this.query.sid?`0{"sid":"${this.query.sid}"}`:"0";this.writer.write((new TextEncoder).encode(o)).then((()=>this.onOpen()))}))})))}write(t){this.writable=!1;for(let i=0;i{E(e,data)&&this.writer.write(Uint8Array.of(54)),this.writer.write(data).then((()=>{n&&Object(O.c)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}))}}doClose(){var t;null===(t=this.transport)||void 0===t||t.close()}}const T={websocket:C.a,webtransport:A,polling:k};var M=n(176);const D=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,j=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function P(t){const e=t,b=t.indexOf("["),n=t.indexOf("]");-1!=b&&-1!=n&&(t=t.substring(0,b)+t.substring(b,n).replace(/:/g,";")+t.substring(n,t.length));let r=D.exec(t||""),o={},i=14;for(;i--;)o[j[i]]=r[i]||"";return-1!=b&&-1!=n&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(t,path){const e=/\/{2,9}/g,n=path.replace(e,"/").split("/");"/"!=path.slice(0,1)&&0!==path.length||n.splice(0,1);"/"==path.slice(-1)&&n.splice(n.length-1,1);return n}(0,o.path),o.queryKey=function(t,e){const data={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,n){e&&(data[e]=n)})),data}(0,o.query),o}class R extends v.a{constructor(t,e={}){super(),this.writeBuffer=[],t&&"object"==typeof t&&(e=t,t=null),t?(t=P(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=P(e.host).host),Object(y.b)(this,e),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=Object(M.a)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=c.g,e.transport=t,this.id&&(e.sid=this.id);const n=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new T[t](n)}open(){let t;if(this.opts.rememberUpgrade&&R.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(t=>this.onClose("transport close",t)))}probe(t){let e=this.createTransport(t),n=!1;R.priorWebsocketSuccess=!1;const r=()=>{n||(e.send([{type:"ping",data:"probe"}]),e.once("packet",(t=>{if(!n)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;R.priorWebsocketSuccess="websocket"===e.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(f(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}))}else{const t=new Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}})))};function o(){n||(n=!0,f(),e.close(),e=null)}const l=t=>{const n=new Error("probe error: "+t);n.transport=e.name,o(),this.emitReserved("upgradeError",n)};function c(){l("transport closed")}function h(){l("socket closed")}function d(t){e&&t.name!==e.name&&o()}const f=()=>{e.removeListener("open",r),e.removeListener("error",l),e.removeListener("close",c),this.off("close",h),this.off("upgrading",d)};e.once("open",r),e.once("error",l),e.once("close",c),this.once("close",h),this.once("upgrading",d),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{n||e.open()}),200):e.open()}onOpen(){if(this.readyState="open",R.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let i=0;const t=this.upgrades.length;for(;i{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let i=0;i0&&t>this.maxPayload)return this.writeBuffer.slice(0,i);t+=2}return this.writeBuffer}write(t,e,n){return this.sendPacket("message",t,e,n),this}send(t,e,n){return this.sendPacket("message",t,e,n),this}sendPacket(t,data,e,n){if("function"==typeof data&&(n=data,data=void 0),"function"==typeof e&&(n=e,e=null),"closing"===this.readyState||"closed"===this.readyState)return;(e=e||{}).compress=!1!==e.compress;const r={type:t,data:data,options:e};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),n&&this.once("flush",n),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},n=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():t()})):this.upgrading?n():t()),this}onError(t){R.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let i=0;const n=t.length;for(;i"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,N=Object.prototype.toString,L="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===N.call(Blob),I="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===N.call(File);function F(t){return B&&(t instanceof ArrayBuffer||$(t))||L&&t instanceof Blob||I&&t instanceof File}function z(t,e){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let i=0,e=t.length;i=0&&data.num{delete this.acks[t];for(let i=0;i{this.io.clearTimeoutFn(o),e.apply(this,[null,...t])}}emitWithAck(t,...e){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((r,o)=>{e.push(((t,e)=>n?t?o(t):r(e):r(t))),this.emit(t,...e)}))}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push(((t,...r)=>{if(n!==this._queue[0])return;return null!==t?n.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth((data=>{this._sendConnectPacket(data)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(data){this.packet({type:K.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},data):data})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case K.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case K.EVENT:case K.BINARY_EVENT:this.onevent(t);break;case K.ACK:case K.BINARY_ACK:this.onack(t);break;case K.DISCONNECT:this.ondisconnect();break;case K.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const n of e)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let n=!1;return function(...r){n||(n=!0,e.packet({type:K.ACK,id:t,data:r}))}}onack(t){const e=this.acks[t.id];"function"==typeof e&&(e.apply(this,t.data),delete this.acks[t.id])}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((t=>this.emitEvent(t))),this.receiveBuffer=[],this.sendBuffer.forEach((t=>{this.notifyOutgoingListeners(t),this.packet(t)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((t=>t())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:K.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let i=0;i0&&t.jitter<=1?t.jitter:0,this.attempts=0}it.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},it.prototype.reset=function(){this.attempts=0},it.prototype.setMin=function(t){this.ms=t},it.prototype.setMax=function(t){this.max=t},it.prototype.setJitter=function(t){this.jitter=t};class ot extends v.a{constructor(t,e){var n;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,Object(y.b)(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=e.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new it({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const o=e.parser||r;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new R(this.uri,this.opts);const e=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=tt(e,"open",(function(){n.onopen(),t&&t()})),o=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},l=tt(e,"error",o);if(!1!==this._timeout){const t=this._timeout,n=this.setTimeoutFn((()=>{r(),o(new Error("timeout")),e.close()}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(tt(t,"ping",this.onping.bind(this)),tt(t,"data",this.ondata.bind(this)),tt(t,"error",this.onerror.bind(this)),tt(t,"close",this.onclose.bind(this)),tt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(data){try{this.decoder.add(data)}catch(t){this.onclose("parse error",t)}}ondecoded(t){Object(O.c)((()=>{this.emitReserved("packet",t)}),this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new nt(this,t,e),this.nsps[t]=n),n}_destroy(t){const e=Object.keys(this.nsps);for(const t of e){if(this.nsps[t].active)return}this._close()}_packet(t){const e=this.encoder.encode(t);for(let i=0;it())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()})))}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const st={};function at(t,e){"object"==typeof t&&(e=t,t=void 0);const n=function(t,path="",e){let n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==e?e.protocol+"//"+t:"https://"+t),n=P(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const r=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+r+":"+n.port+path,n.href=n.protocol+"://"+r+(e&&e.port===n.port?"":":"+n.port),n}(t,(e=e||{}).path||"/socket.io"),source=n.source,r=n.id,path=n.path,o=st[r]&&path in st[r].nsps;let l;return e.forceNew||e["force new connection"]||!1===e.multiplex||o?l=new ot(source,e):(st[r]||(st[r]=new ot(source,e)),l=st[r]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(at,{Manager:ot,Socket:nt,io:at,connect:at})},37:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=t(e);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;ie.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r"']/g,st=RegExp(it.source),at=RegExp(ot.source),lt=/<%-([\s\S]+?)%>/g,ct=/<%([\s\S]+?)%>/g,ut=/<%=([\s\S]+?)%>/g,ht=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pt=/^\w*$/,ft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mt=/[\\^$.*+?()[\]{}|]/g,gt=RegExp(mt.source),vt=/^\s+/,bt=/\s/,yt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wt=/\{\n\/\* \[wrapped with (.+)\] \*/,xt=/,? & /,kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,St=/[()=,{}\[\]\/\s]/,_t=/\\(\\)?/g,Ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ot=/\w*$/,Et=/^[-+]0x[0-9a-f]+$/i,At=/^0b[01]+$/i,Tt=/^\[object .+?Constructor\]$/,Mt=/^0o[0-7]+$/i,Dt=/^(?:0|[1-9]\d*)$/,jt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pt=/($^)/,Rt=/['\n\r\u2028\u2029\\]/g,Bt="\\ud800-\\udfff",$t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Nt="\\u2700-\\u27bf",Lt="a-z\\xdf-\\xf6\\xf8-\\xff",It="A-Z\\xc0-\\xd6\\xd8-\\xde",Ft="\\ufe0e\\ufe0f",zt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vt="['’]",Ht="["+Bt+"]",Wt="["+zt+"]",qt="["+$t+"]",Ut="\\d+",Yt="["+Nt+"]",Gt="["+Lt+"]",Kt="[^"+Bt+zt+Ut+Nt+Lt+It+"]",Jt="\\ud83c[\\udffb-\\udfff]",Xt="[^"+Bt+"]",Zt="(?:\\ud83c[\\udde6-\\uddff]){2}",Qt="[\\ud800-\\udbff][\\udc00-\\udfff]",te="["+It+"]",ee="\\u200d",ne="(?:"+Gt+"|"+Kt+")",re="(?:"+te+"|"+Kt+")",ie="(?:['’](?:d|ll|m|re|s|t|ve))?",oe="(?:['’](?:D|LL|M|RE|S|T|VE))?",se="(?:"+qt+"|"+Jt+")"+"?",ae="["+Ft+"]?",le=ae+se+("(?:"+ee+"(?:"+[Xt,Zt,Qt].join("|")+")"+ae+se+")*"),ce="(?:"+[Yt,Zt,Qt].join("|")+")"+le,ue="(?:"+[Xt+qt+"?",qt,Zt,Qt,Ht].join("|")+")",he=RegExp(Vt,"g"),de=RegExp(qt,"g"),pe=RegExp(Jt+"(?="+Jt+")|"+ue+le,"g"),fe=RegExp([te+"?"+Gt+"+"+ie+"(?="+[Wt,te,"$"].join("|")+")",re+"+"+oe+"(?="+[Wt,te+ne,"$"].join("|")+")",te+"?"+ne+"+"+ie,te+"+"+oe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ut,ce].join("|"),"g"),me=RegExp("["+ee+Bt+$t+Ft+"]"),ge=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ve=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],be=-1,ye={};ye[W]=ye[U]=ye[Y]=ye[G]=ye[K]=ye[J]=ye[X]=ye[Z]=ye[Q]=!0,ye[O]=ye[E]=ye[V]=ye[A]=ye[H]=ye[T]=ye[M]=ye[D]=ye[P]=ye[R]=ye[B]=ye[N]=ye[L]=ye[I]=ye[z]=!1;var we={};we[O]=we[E]=we[V]=we[H]=we[A]=we[T]=we[W]=we[U]=we[Y]=we[G]=we[K]=we[P]=we[R]=we[B]=we[N]=we[L]=we[I]=we[F]=we[J]=we[X]=we[Z]=we[Q]=!0,we[M]=we[D]=we[z]=!1;var xe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ke=parseFloat,Se=parseInt,_e="object"==typeof t&&t&&t.Object===Object&&t,Ce="object"==typeof self&&self&&self.Object===Object&&self,Oe=_e||Ce||Function("return this")(),Ee=e&&!e.nodeType&&e,Ae=Ee&&"object"==typeof r&&r&&!r.nodeType&&r,Te=Ae&&Ae.exports===Ee,Me=Te&&_e.process,De=function(){try{var t=Ae&&Ae.require&&Ae.require("util").types;return t||Me&&Me.binding&&Me.binding("util")}catch(t){}}(),je=De&&De.isArrayBuffer,Pe=De&&De.isDate,Re=De&&De.isMap,Be=De&&De.isRegExp,$e=De&&De.isSet,Ne=De&&De.isTypedArray;function Le(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ie(t,e,n,r){for(var o=-1,l=null==t?0:t.length;++o-1}function qe(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function mn(t,e){for(var n=t.length;n--&&tn(e,t[n],0)>-1;);return n}var gn=sn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),vn=sn({"&":"&","<":"<",">":">",'"':""","'":"'"});function bn(t){return"\\"+xe[t]}function yn(t){return me.test(t)}function wn(map){var t=-1,e=Array(map.size);return map.forEach((function(n,r){e[++t]=[r,n]})),e}function xn(t,e){return function(n){return t(e(n))}}function kn(t,e){for(var n=-1,r=t.length,o=0,l=[];++n",""":'"',"'":"'"});var Tn=function t(e){var n,r=(e=null==e?Oe:Tn.defaults(Oe.Object(),e,Tn.pick(Oe,ve))).Array,o=e.Date,bt=e.Error,Bt=e.Function,$t=e.Math,Nt=e.Object,Lt=e.RegExp,It=e.String,Ft=e.TypeError,zt=r.prototype,Vt=Bt.prototype,Ht=Nt.prototype,Wt=e["__core-js_shared__"],qt=Vt.toString,Ut=Ht.hasOwnProperty,Yt=0,Gt=(n=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Kt=Ht.toString,Jt=qt.call(Nt),Xt=Oe._,Zt=Lt("^"+qt.call(Ut).replace(mt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qt=Te?e.Buffer:l,te=e.Symbol,ee=e.Uint8Array,ne=Qt?Qt.allocUnsafe:l,re=xn(Nt.getPrototypeOf,Nt),ie=Nt.create,oe=Ht.propertyIsEnumerable,se=zt.splice,ae=te?te.isConcatSpreadable:l,le=te?te.iterator:l,ce=te?te.toStringTag:l,ue=function(){try{var t=Eo(Nt,"defineProperty");return t({},"",{}),t}catch(t){}}(),pe=e.clearTimeout!==Oe.clearTimeout&&e.clearTimeout,me=o&&o.now!==Oe.Date.now&&o.now,xe=e.setTimeout!==Oe.setTimeout&&e.setTimeout,_e=$t.ceil,Ce=$t.floor,Ee=Nt.getOwnPropertySymbols,Ae=Qt?Qt.isBuffer:l,Me=e.isFinite,De=zt.join,Xe=xn(Nt.keys,Nt),sn=$t.max,Mn=$t.min,Dn=o.now,jn=e.parseInt,Pn=$t.random,Rn=zt.reverse,Bn=Eo(e,"DataView"),$n=Eo(e,"Map"),Nn=Eo(e,"Promise"),Ln=Eo(e,"Set"),In=Eo(e,"WeakMap"),Fn=Eo(Nt,"create"),zn=In&&new In,Vn={},Hn=Qo(Bn),Wn=Qo($n),qn=Qo(Nn),Un=Qo(Ln),Yn=Qo(In),Gn=te?te.prototype:l,Kn=Gn?Gn.valueOf:l,Jn=Gn?Gn.toString:l;function Xn(t){if(fa(t)&&!ra(t)&&!(t instanceof nr)){if(t instanceof er)return t;if(Ut.call(t,"__wrapped__"))return ts(t)}return new er(t)}var Zn=function(){function object(){}return function(t){if(!pa(t))return{};if(ie)return ie(t);object.prototype=t;var e=new object;return object.prototype=l,e}}();function Qn(){}function er(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=l}function nr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_,this.__views__=[]}function rr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function kr(t,e,n,r,object,o){var c,h=1&e,d=2&e,f=4&e;if(n&&(c=object?n(t,r,object,o):n(t)),c!==l)return c;if(!pa(t))return t;var m=ra(t);if(m){if(c=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Ut.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!h)return Wi(t,c)}else{var v=Mo(t),y=v==D||v==j;if(aa(t))return Li(t,h);if(v==B||v==O||y&&!object){if(c=d||y?{}:jo(t),!h)return d?function(source,object){return qi(source,To(source),object)}(t,function(object,source){return object&&qi(source,qa(source),object)}(c,t)):function(source,object){return qi(source,Ao(source),object)}(t,vr(c,t))}else{if(!we[v])return object?t:{};c=function(object,t,e){var n=object.constructor;switch(t){case V:return Ii(object);case A:case T:return new n(+object);case H:return function(t,e){var n=e?Ii(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(object,e);case W:case U:case Y:case G:case K:case J:case X:case Z:case Q:return Fi(object,e);case P:return new n;case R:case I:return new n(object);case N:return function(t){var e=new t.constructor(t.source,Ot.exec(t));return e.lastIndex=t.lastIndex,e}(object);case L:return new n;case F:return symbol=object,Kn?Nt(Kn.call(symbol)):{}}var symbol}(t,v,h)}}o||(o=new ar);var w=o.get(t);if(w)return w;o.set(t,c),ya(t)?t.forEach((function(r){c.add(kr(r,e,n,r,t,o))})):ma(t)&&t.forEach((function(r,l){c.set(l,kr(r,e,n,l,t,o))}));var x=m?l:(f?d?wo:yo:d?qa:Wa)(t);return Fe(x||t,(function(r,l){x&&(r=t[l=r]),fr(c,l,kr(r,e,n,l,t,o))})),c}function Sr(object,source,t){var e=t.length;if(null==object)return!e;for(object=Nt(object);e--;){var n=t[e],r=source[n],o=object[n];if(o===l&&!(n in object)||!r(o))return!1}return!0}function _r(t,e,n){if("function"!=typeof t)throw new Ft(c);return Uo((function(){t.apply(l,n)}),e)}function Cr(t,e,n,r){var o=-1,l=We,c=!0,h=t.length,d=[],f=e.length;if(!h)return d;n&&(e=Ue(e,hn(n))),r?(l=qe,c=!1):e.length>=200&&(l=pn,c=!1,e=new sr(e));t:for(;++o-1},ir.prototype.set=function(t,e){var data=this.__data__,n=mr(data,t);return n<0?(++this.size,data.push([t,e])):data[n][1]=e,this},or.prototype.clear=function(){this.size=0,this.__data__={hash:new rr,map:new($n||ir),string:new rr}},or.prototype.delete=function(t){var e=Co(this,t).delete(t);return this.size-=e?1:0,e},or.prototype.get=function(t){return Co(this,t).get(t)},or.prototype.has=function(t){return Co(this,t).has(t)},or.prototype.set=function(t,e){var data=Co(this,t),n=data.size;return data.set(t,e),this.size+=data.size==n?0:1,this},sr.prototype.add=sr.prototype.push=function(t){return this.__data__.set(t,h),this},sr.prototype.has=function(t){return this.__data__.has(t)},ar.prototype.clear=function(){this.__data__=new ir,this.size=0},ar.prototype.delete=function(t){var data=this.__data__,e=data.delete(t);return this.size=data.size,e},ar.prototype.get=function(t){return this.__data__.get(t)},ar.prototype.has=function(t){return this.__data__.has(t)},ar.prototype.set=function(t,e){var data=this.__data__;if(data instanceof ir){var n=data.__data__;if(!$n||n.length<199)return n.push([t,e]),this.size=++data.size,this;data=this.__data__=new or(n)}return data.set(t,e),this.size=data.size,this};var Or=Gi(Rr),Er=Gi(Br,!0);function Ar(t,e){var n=!0;return Or(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function Tr(t,e,n){for(var r=-1,o=t.length;++r0&&n(h)?e>1?Dr(h,e-1,n,r,o):Ye(o,h):r||(o[o.length]=h)}return o}var jr=Ki(),Pr=Ki(!0);function Rr(object,t){return object&&jr(object,t,Wa)}function Br(object,t){return object&&Pr(object,t,Wa)}function $r(object,t){return He(t,(function(t){return ua(object[t])}))}function Nr(object,path){for(var t=0,e=(path=Ri(path,object)).length;null!=object&&te}function zr(object,t){return null!=object&&Ut.call(object,t)}function Vr(object,t){return null!=object&&t in Nt(object)}function Hr(t,e,n){for(var o=n?qe:We,c=t[0].length,h=t.length,d=h,f=r(h),m=1/0,v=[];d--;){var y=t[d];d&&e&&(y=Ue(y,hn(e))),m=Mn(y.length,m),f[d]=!n&&(e||c>=120&&y.length>=120)?new sr(d&&y):l}y=t[0];var w=-1,x=f[0];t:for(;++w=c?h:h*("desc"==e[n]?-1:1)}return object.index-t.index}(object,t,n)}))}function oi(object,t,e){for(var n=-1,r=t.length,o={};++n-1;)h!==t&&se.call(h,d,1),se.call(t,d,1);return t}function ai(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==l){var l=o;Ro(o)?se.call(t,o,1):Oi(t,o)}}return t}function ci(t,e){return t+Ce(Pn()*(e-t+1))}function ui(t,e){var n="";if(!t||e<1||e>k)return n;do{e%2&&(n+=t),(e=Ce(e/2))&&(t+=t)}while(e);return n}function hi(t,e){return Yo(Vo(t,e,yl),t+"")}function di(t){return cr(Qa(t))}function pi(t,e){var n=Qa(t);return Jo(n,xr(e,0,n.length))}function fi(object,path,t,e){if(!pa(object))return object;for(var n=-1,r=(path=Ri(path,object)).length,o=r-1,c=object;null!=c&&++nl?0:l+e),(n=n>l?l:n)<0&&(n+=l),l=e>n?0:n-e>>>0,e>>>=0;for(var c=r(l);++o>>1,c=t[l];null!==c&&!xa(c)&&(n?c<=e:c=200){var f=e?null:uo(t);if(f)return Sn(f);c=!1,o=pn,d=new sr}else d=e?[]:h;t:for(;++r=r?t:bi(t,e,n)}var Ni=pe||function(t){return Oe.clearTimeout(t)};function Li(t,e){if(e)return t.slice();var n=t.length,r=ne?ne(n):new t.constructor(n);return t.copy(r),r}function Ii(t){var e=new t.constructor(t.byteLength);return new ee(e).set(new ee(t)),e}function Fi(t,e){var n=e?Ii(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function zi(t,e){if(t!==e){var n=t!==l,r=null===t,o=t==t,c=xa(t),h=e!==l,d=null===e,f=e==e,m=xa(e);if(!d&&!m&&!c&&t>e||c&&h&&f&&!d&&!m||r&&h&&f||!n&&f||!o)return 1;if(!r&&!c&&!m&&t1?e[r-1]:l,c=r>2?e[2]:l;for(o=t.length>3&&"function"==typeof o?(r--,o):l,c&&Bo(e[0],e[1],c)&&(o=r<3?l:o,r=1),object=Nt(object);++n-1?o[c?e[h]:h]:l}}function to(t){return bo((function(e){var n=e.length,r=n,o=er.prototype.thru;for(t&&e.reverse();r--;){var h=e[r];if("function"!=typeof h)throw new Ft(c);if(o&&!d&&"wrapper"==ko(h))var d=new er([],!0)}for(r=d?r:n;++r1&&E.reverse(),w&&md))return!1;var m=c.get(t),v=c.get(e);if(m&&v)return m==e&&v==t;var y=-1,w=!0,x=2&n?new sr:l;for(c.set(t,e),c.set(e,t);++y-1&&t%1==0&&t1?"& ":"")+details[e],details=details.join(t>2?", ":" "),source.replace(yt,"{\n/* [wrapped with "+details+"] */\n")}(source,function(details,t){return Fe(C,(function(e){var n="_."+e[0];t&e[1]&&!We(details,n)&&details.push(n)})),details.sort()}(function(source){var t=source.match(wt);return t?t[1].split(xt):[]}(source),n)))}function Ko(t){var e=0,n=0;return function(){var r=Dn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(l,arguments)}}function Jo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===l?r:e;++n1?t[e-1]:l;return n="function"==typeof n?(t.pop(),n):l,ys(t,n)}));function Os(t){var e=Xn(t);return e.__chain__=!0,e}function Es(t,e){return e(t)}var As=bo((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(object){return wr(object,t)};return!(e>1||this.__actions__.length)&&r instanceof nr&&Ro(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Es,args:[o],thisArg:l}),new er(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(l),t}))):this.thru(o)}));var Ts=Ui((function(t,e,n){Ut.call(t,n)?++t[n]:yr(t,n,1)}));var Ms=Qi(is),Ds=Qi(os);function js(t,e){return(ra(t)?Fe:Or)(t,_o(e,3))}function Ps(t,e){return(ra(t)?ze:Er)(t,_o(e,3))}var Rs=Ui((function(t,e,n){Ut.call(t,n)?t[n].push(e):yr(t,n,[e])}));var Bs=hi((function(t,path,e){var n=-1,o="function"==typeof path,l=oa(t)?r(t.length):[];return Or(t,(function(t){l[++n]=o?Le(path,t,e):Wr(t,path,e)})),l})),$s=Ui((function(t,e,n){yr(t,n,e)}));function map(t,e){return(ra(t)?Ue:Qr)(t,_o(e,3))}var Ns=Ui((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Ls=hi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Bo(t,e[0],e[1])?e=[]:n>2&&Bo(e[0],e[1],e[2])&&(e=[e[0]]),ii(t,Dr(e,1),[])})),Is=me||function(){return Oe.Date.now()};function Fs(t,e,n){return e=n?l:e,e=t&&null==e?t.length:e,po(t,y,l,l,l,l,e)}function zs(t,e){var n;if("function"!=typeof e)throw new Ft(c);return t=Ea(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=l),n}}var Vs=hi((function(t,e,n){var r=1;if(n.length){var o=kn(n,So(Vs));r|=m}return po(t,r,e,n,o)})),Hs=hi((function(object,t,e){var n=3;if(e.length){var r=kn(e,So(Hs));n|=m}return po(t,n,object,e,r)}));function Ws(t,e,n){var r,o,h,d,f,m,v=0,y=!1,w=!1,x=!0;if("function"!=typeof t)throw new Ft(c);function k(time){var e=r,n=o;return r=o=l,v=time,d=t.apply(n,e)}function S(time){var t=time-m;return m===l||t>=e||t<0||w&&time-v>=h}function _(){var time=Is();if(S(time))return C(time);f=Uo(_,function(time){var t=e-(time-m);return w?Mn(t,h-(time-v)):t}(time))}function C(time){return f=l,x&&r?k(time):(r=o=l,d)}function O(){var time=Is(),t=S(time);if(r=arguments,o=this,m=time,t){if(f===l)return function(time){return v=time,f=Uo(_,e),y?k(time):d}(m);if(w)return Ni(f),f=Uo(_,e),k(m)}return f===l&&(f=Uo(_,e)),d}return e=Ta(e)||0,pa(n)&&(y=!!n.leading,h=(w="maxWait"in n)?sn(Ta(n.maxWait)||0,e):h,x="trailing"in n?!!n.trailing:x),O.cancel=function(){f!==l&&Ni(f),v=0,r=m=o=f=l},O.flush=function(){return f===l?d:C(Is())},O}var qs=hi((function(t,e){return _r(t,1,e)})),Us=hi((function(t,e,n){return _r(t,Ta(e)||0,n)}));function Ys(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ft(c);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],l=n.cache;if(l.has(o))return l.get(o);var c=t.apply(this,r);return n.cache=l.set(o,c)||l,c};return n.cache=new(Ys.Cache||or),n}function Gs(t){if("function"!=typeof t)throw new Ft(c);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ys.Cache=or;var Ks=Bi((function(t,e){var n=(e=1==e.length&&ra(e[0])?Ue(e[0],hn(_o())):Ue(Dr(e,1),hn(_o()))).length;return hi((function(r){for(var o=-1,l=Mn(r.length,n);++o=e})),na=qr(function(){return arguments}())?qr:function(t){return fa(t)&&Ut.call(t,"callee")&&!oe.call(t,"callee")},ra=r.isArray,ia=je?hn(je):function(t){return fa(t)&&Ir(t)==V};function oa(t){return null!=t&&da(t.length)&&!ua(t)}function sa(t){return fa(t)&&oa(t)}var aa=Ae||jl,la=Pe?hn(Pe):function(t){return fa(t)&&Ir(t)==T};function ca(t){if(!fa(t))return!1;var e=Ir(t);return e==M||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!va(t)}function ua(t){if(!pa(t))return!1;var e=Ir(t);return e==D||e==j||"[object AsyncFunction]"==e||"[object Proxy]"==e}function ha(t){return"number"==typeof t&&t==Ea(t)}function da(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=k}function pa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function fa(t){return null!=t&&"object"==typeof t}var ma=Re?hn(Re):function(t){return fa(t)&&Mo(t)==P};function ga(t){return"number"==typeof t||fa(t)&&Ir(t)==R}function va(t){if(!fa(t)||Ir(t)!=B)return!1;var e=re(t);if(null===e)return!0;var n=Ut.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&qt.call(n)==Jt}var ba=Be?hn(Be):function(t){return fa(t)&&Ir(t)==N};var ya=$e?hn($e):function(t){return fa(t)&&Mo(t)==L};function wa(t){return"string"==typeof t||!ra(t)&&fa(t)&&Ir(t)==I}function xa(t){return"symbol"==typeof t||fa(t)&&Ir(t)==F}var ka=Ne?hn(Ne):function(t){return fa(t)&&da(t.length)&&!!ye[Ir(t)]};var Sa=ao(Zr),_a=ao((function(t,e){return t<=e}));function Ca(t){if(!t)return[];if(oa(t))return wa(t)?On(t):Wi(t);if(le&&t[le])return function(t){for(var data,e=[];!(data=t.next()).done;)e.push(data.value);return e}(t[le]());var e=Mo(t);return(e==P?wn:e==L?Sn:Qa)(t)}function Oa(t){return t?(t=Ta(t))===x||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Ea(t){var e=Oa(t),n=e%1;return e==e?n?e-n:e:0}function Aa(t){return t?xr(Ea(t),0,_):0}function Ta(t){if("number"==typeof t)return t;if(xa(t))return S;if(pa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=pa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=un(t);var n=At.test(t);return n||Mt.test(t)?Se(t.slice(2),n?2:8):Et.test(t)?S:+t}function Ma(t){return qi(t,qa(t))}function Da(t){return null==t?"":_i(t)}var ja=Yi((function(object,source){if(Io(source)||oa(source))qi(source,Wa(source),object);else for(var t in source)Ut.call(source,t)&&fr(object,t,source[t])})),Pa=Yi((function(object,source){qi(source,qa(source),object)})),Ra=Yi((function(object,source,t,e){qi(source,qa(source),object,e)})),Ba=Yi((function(object,source,t,e){qi(source,Wa(source),object,e)})),$a=bo(wr);var Na=hi((function(object,t){object=Nt(object);var e=-1,n=t.length,r=n>2?t[2]:l;for(r&&Bo(t[0],t[1],r)&&(n=1);++e1),path})),qi(object,wo(object),e),n&&(e=kr(e,7,go));for(var r=t.length;r--;)Oi(e,t[r]);return e}));var Ka=bo((function(object,t){return null==object?{}:function(object,t){return oi(object,t,(function(t,path){return Fa(object,path)}))}(object,t)}));function Ja(object,t){if(null==object)return{};var e=Ue(wo(object),(function(t){return[t]}));return t=_o(t),oi(object,e,(function(e,path){return t(e,path[0])}))}var Xa=ho(Wa),Za=ho(qa);function Qa(object){return null==object?[]:dn(object,Wa(object))}var tl=Xi((function(t,e,n){return e=e.toLowerCase(),t+(n?el(e):e)}));function el(t){return hl(Da(t).toLowerCase())}function nl(t){return(t=Da(t))&&t.replace(jt,gn).replace(de,"")}var rl=Xi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),il=Xi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),sl=Ji("toLowerCase");var al=Xi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var ll=Xi((function(t,e,n){return t+(n?" ":"")+hl(e)}));var cl=Xi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),hl=Ji("toUpperCase");function pl(t,pattern,e){return t=Da(t),(pattern=e?l:pattern)===l?function(t){return ge.test(t)}(t)?function(t){return t.match(fe)||[]}(t):function(t){return t.match(kt)||[]}(t):t.match(pattern)||[]}var fl=hi((function(t,e){try{return Le(t,l,e)}catch(t){return ca(t)?t:new bt(t)}})),ml=bo((function(object,t){return Fe(t,(function(t){t=Zo(t),yr(object,t,Vs(object[t],object))})),object}));function gl(t){return function(){return t}}var vl=to(),bl=to(!0);function yl(t){return t}function wl(t){return Kr("function"==typeof t?t:kr(t,1))}var xl=hi((function(path,t){return function(object){return Wr(object,path,t)}})),kl=hi((function(object,t){return function(path){return Wr(object,path,t)}}));function Sl(object,source,t){var e=Wa(source),n=$r(source,e);null!=t||pa(source)&&(n.length||!e.length)||(t=source,source=object,object=this,n=$r(source,Wa(source)));var r=!(pa(t)&&"chain"in t&&!t.chain),o=ua(object);return Fe(n,(function(t){var e=source[t];object[t]=e,o&&(object.prototype[t]=function(){var t=this.__chain__;if(r||t){var n=object(this.__wrapped__);return(n.__actions__=Wi(this.__actions__)).push({func:e,args:arguments,thisArg:object}),n.__chain__=t,n}return e.apply(object,Ye([this.value()],arguments))})})),object}function _l(){}var Cl=io(Ue),Ol=io(Ve),El=io(Je);function Al(path){return $o(path)?on(Zo(path)):function(path){return function(object){return Nr(object,path)}}(path)}var Tl=so(),Ml=so(!0);function Dl(){return[]}function jl(){return!1}var Pl=ro((function(t,e){return t+e}),0),Rl=co("ceil"),Bl=ro((function(t,e){return t/e}),1),$l=co("floor");var source,Nl=ro((function(t,e){return t*e}),1),Ll=co("round"),Il=ro((function(t,e){return t-e}),0);return Xn.after=function(t,e){if("function"!=typeof e)throw new Ft(c);return t=Ea(t),function(){if(--t<1)return e.apply(this,arguments)}},Xn.ary=Fs,Xn.assign=ja,Xn.assignIn=Pa,Xn.assignInWith=Ra,Xn.assignWith=Ba,Xn.at=$a,Xn.before=zs,Xn.bind=Vs,Xn.bindAll=ml,Xn.bindKey=Hs,Xn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return ra(t)?t:[t]},Xn.chain=Os,Xn.chunk=function(t,e,n){e=(n?Bo(t,e,n):e===l)?1:sn(Ea(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var c=0,h=0,d=r(_e(o/e));co?0:o+n),(r=r===l||r>o?o:Ea(r))<0&&(r+=o),r=n>r?0:Aa(r);n>>0)?(t=Da(t))&&("string"==typeof e||null!=e&&!ba(e))&&!(e=_i(e))&&yn(t)?$i(On(t),0,n):t.split(e,n):[]},Xn.spread=function(t,e){if("function"!=typeof t)throw new Ft(c);return e=null==e?0:sn(Ea(e),0),hi((function(n){var r=n[e],o=$i(n,0,e);return r&&Ye(o,r),Le(t,this,o)}))},Xn.tail=function(t){var e=null==t?0:t.length;return e?bi(t,1,e):[]},Xn.take=function(t,e,n){return t&&t.length?bi(t,0,(e=n||e===l?1:Ea(e))<0?0:e):[]},Xn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?bi(t,(e=r-(e=n||e===l?1:Ea(e)))<0?0:e,r):[]},Xn.takeRightWhile=function(t,e){return t&&t.length?Ai(t,_o(e,3),!1,!0):[]},Xn.takeWhile=function(t,e){return t&&t.length?Ai(t,_o(e,3)):[]},Xn.tap=function(t,e){return e(t),t},Xn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Ft(c);return pa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ws(t,e,{leading:r,maxWait:e,trailing:o})},Xn.thru=Es,Xn.toArray=Ca,Xn.toPairs=Xa,Xn.toPairsIn=Za,Xn.toPath=function(t){return ra(t)?Ue(t,Zo):xa(t)?[t]:Wi(Xo(Da(t)))},Xn.toPlainObject=Ma,Xn.transform=function(object,t,e){var n=ra(object),r=n||aa(object)||ka(object);if(t=_o(t,4),null==e){var o=object&&object.constructor;e=r?n?new o:[]:pa(object)&&ua(o)?Zn(re(object)):{}}return(r?Fe:Rr)(object,(function(n,r,object){return t(e,n,r,object)})),e},Xn.unary=function(t){return Fs(t,1)},Xn.union=ms,Xn.unionBy=gs,Xn.unionWith=vs,Xn.uniq=function(t){return t&&t.length?Ci(t):[]},Xn.uniqBy=function(t,e){return t&&t.length?Ci(t,_o(e,2)):[]},Xn.uniqWith=function(t,e){return e="function"==typeof e?e:l,t&&t.length?Ci(t,l,e):[]},Xn.unset=function(object,path){return null==object||Oi(object,path)},Xn.unzip=bs,Xn.unzipWith=ys,Xn.update=function(object,path,t){return null==object?object:Ei(object,path,Pi(t))},Xn.updateWith=function(object,path,t,e){return e="function"==typeof e?e:l,null==object?object:Ei(object,path,Pi(t),e)},Xn.values=Qa,Xn.valuesIn=function(object){return null==object?[]:dn(object,qa(object))},Xn.without=ws,Xn.words=pl,Xn.wrap=function(t,e){return Js(Pi(e),t)},Xn.xor=xs,Xn.xorBy=ks,Xn.xorWith=Ss,Xn.zip=_s,Xn.zipObject=function(t,e){return Di(t||[],e||[],fr)},Xn.zipObjectDeep=function(t,e){return Di(t||[],e||[],fi)},Xn.zipWith=Cs,Xn.entries=Xa,Xn.entriesIn=Za,Xn.extend=Pa,Xn.extendWith=Ra,Sl(Xn,Xn),Xn.add=Pl,Xn.attempt=fl,Xn.camelCase=tl,Xn.capitalize=el,Xn.ceil=Rl,Xn.clamp=function(t,e,n){return n===l&&(n=e,e=l),n!==l&&(n=(n=Ta(n))==n?n:0),e!==l&&(e=(e=Ta(e))==e?e:0),xr(Ta(t),e,n)},Xn.clone=function(t){return kr(t,4)},Xn.cloneDeep=function(t){return kr(t,5)},Xn.cloneDeepWith=function(t,e){return kr(t,5,e="function"==typeof e?e:l)},Xn.cloneWith=function(t,e){return kr(t,4,e="function"==typeof e?e:l)},Xn.conformsTo=function(object,source){return null==source||Sr(object,source,Wa(source))},Xn.deburr=nl,Xn.defaultTo=function(t,e){return null==t||t!=t?e:t},Xn.divide=Bl,Xn.endsWith=function(t,e,n){t=Da(t),e=_i(e);var r=t.length,o=n=n===l?r:xr(Ea(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Xn.eq=Qs,Xn.escape=function(t){return(t=Da(t))&&at.test(t)?t.replace(ot,vn):t},Xn.escapeRegExp=function(t){return(t=Da(t))&>.test(t)?t.replace(mt,"\\$&"):t},Xn.every=function(t,e,n){var r=ra(t)?Ve:Ar;return n&&Bo(t,e,n)&&(e=l),r(t,_o(e,3))},Xn.find=Ms,Xn.findIndex=is,Xn.findKey=function(object,t){return Ze(object,_o(t,3),Rr)},Xn.findLast=Ds,Xn.findLastIndex=os,Xn.findLastKey=function(object,t){return Ze(object,_o(t,3),Br)},Xn.floor=$l,Xn.forEach=js,Xn.forEachRight=Ps,Xn.forIn=function(object,t){return null==object?object:jr(object,_o(t,3),qa)},Xn.forInRight=function(object,t){return null==object?object:Pr(object,_o(t,3),qa)},Xn.forOwn=function(object,t){return object&&Rr(object,_o(t,3))},Xn.forOwnRight=function(object,t){return object&&Br(object,_o(t,3))},Xn.get=Ia,Xn.gt=ta,Xn.gte=ea,Xn.has=function(object,path){return null!=object&&Do(object,path,zr)},Xn.hasIn=Fa,Xn.head=head,Xn.identity=yl,Xn.includes=function(t,e,n,r){t=oa(t)?t:Qa(t),n=n&&!r?Ea(n):0;var o=t.length;return n<0&&(n=sn(o+n,0)),wa(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&tn(t,e,n)>-1},Xn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Ea(n);return o<0&&(o=sn(r+o,0)),tn(t,e,o)},Xn.inRange=function(t,e,n){return e=Oa(e),n===l?(n=e,e=0):n=Oa(n),function(t,e,n){return t>=Mn(e,n)&&t=-9007199254740991&&t<=k},Xn.isSet=ya,Xn.isString=wa,Xn.isSymbol=xa,Xn.isTypedArray=ka,Xn.isUndefined=function(t){return t===l},Xn.isWeakMap=function(t){return fa(t)&&Mo(t)==z},Xn.isWeakSet=function(t){return fa(t)&&"[object WeakSet]"==Ir(t)},Xn.join=function(t,e){return null==t?"":De.call(t,e)},Xn.kebabCase=rl,Xn.last=us,Xn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==l&&(o=(o=Ea(n))<0?sn(r+o,0):Mn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Qe(t,nn,o,!0)},Xn.lowerCase=il,Xn.lowerFirst=sl,Xn.lt=Sa,Xn.lte=_a,Xn.max=function(t){return t&&t.length?Tr(t,yl,Fr):l},Xn.maxBy=function(t,e){return t&&t.length?Tr(t,_o(e,2),Fr):l},Xn.mean=function(t){return rn(t,yl)},Xn.meanBy=function(t,e){return rn(t,_o(e,2))},Xn.min=function(t){return t&&t.length?Tr(t,yl,Zr):l},Xn.minBy=function(t,e){return t&&t.length?Tr(t,_o(e,2),Zr):l},Xn.stubArray=Dl,Xn.stubFalse=jl,Xn.stubObject=function(){return{}},Xn.stubString=function(){return""},Xn.stubTrue=function(){return!0},Xn.multiply=Nl,Xn.nth=function(t,e){return t&&t.length?ri(t,Ea(e)):l},Xn.noConflict=function(){return Oe._===this&&(Oe._=Xt),this},Xn.noop=_l,Xn.now=Is,Xn.pad=function(t,e,n){t=Da(t);var r=(e=Ea(e))?Cn(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return oo(Ce(o),n)+t+oo(_e(o),n)},Xn.padEnd=function(t,e,n){t=Da(t);var r=(e=Ea(e))?Cn(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Pn();return Mn(t+o*(e-t+ke("1e-"+((o+"").length-1))),e)}return ci(t,e)},Xn.reduce=function(t,e,n){var r=ra(t)?Ge:an,o=arguments.length<3;return r(t,_o(e,4),n,o,Or)},Xn.reduceRight=function(t,e,n){var r=ra(t)?Ke:an,o=arguments.length<3;return r(t,_o(e,4),n,o,Er)},Xn.repeat=function(t,e,n){return e=(n?Bo(t,e,n):e===l)?1:Ea(e),ui(Da(t),e)},Xn.replace=function(){var t=arguments,e=Da(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Xn.result=function(object,path,t){var e=-1,n=(path=Ri(path,object)).length;for(n||(n=1,object=l);++ek)return[];var n=_,r=Mn(t,_);e=_o(e),t-=_;for(var o=cn(r,e);++n=c)return t;var d=n-Cn(r);if(d<1)return r;var f=h?$i(h,0,d).join(""):t.slice(0,d);if(o===l)return f+r;if(h&&(d+=f.length-d),ba(o)){if(t.slice(d).search(o)){var m,v=f;for(o.global||(o=Lt(o.source,Da(Ot.exec(o))+"g")),o.lastIndex=0;m=o.exec(v);)var y=m.index;f=f.slice(0,y===l?d:y)}}else if(t.indexOf(_i(o),d)!=d){var w=f.lastIndexOf(o);w>-1&&(f=f.slice(0,w))}return f+r},Xn.unescape=function(t){return(t=Da(t))&&st.test(t)?t.replace(it,An):t},Xn.uniqueId=function(t){var e=++Yt;return Da(t)+e},Xn.upperCase=cl,Xn.upperFirst=hl,Xn.each=js,Xn.eachRight=Ps,Xn.first=head,Sl(Xn,(source={},Rr(Xn,(function(t,e){Ut.call(Xn.prototype,e)||(source[e]=t)})),source),{chain:!1}),Xn.VERSION="4.17.21",Fe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Xn[t].placeholder=Xn})),Fe(["drop","take"],(function(t,e){nr.prototype[t]=function(n){n=n===l?1:sn(Ea(n),0);var r=this.__filtered__&&!e?new nr(this):this.clone();return r.__filtered__?r.__takeCount__=Mn(n,r.__takeCount__):r.__views__.push({size:Mn(n,_),type:t+(r.__dir__<0?"Right":"")}),r},nr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Fe(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;nr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:_o(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Fe(["head","last"],(function(t,e){var n="take"+(e?"Right":"");nr.prototype[t]=function(){return this[n](1).value()[0]}})),Fe(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");nr.prototype[t]=function(){return this.__filtered__?new nr(this):this[n](1)}})),nr.prototype.compact=function(){return this.filter(yl)},nr.prototype.find=function(t){return this.filter(t).head()},nr.prototype.findLast=function(t){return this.reverse().find(t)},nr.prototype.invokeMap=hi((function(path,t){return"function"==typeof path?new nr(this):this.map((function(e){return Wr(e,path,t)}))})),nr.prototype.reject=function(t){return this.filter(Gs(_o(t)))},nr.prototype.slice=function(t,e){t=Ea(t);var n=this;return n.__filtered__&&(t>0||e<0)?new nr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==l&&(n=(e=Ea(e))<0?n.dropRight(-e):n.take(e-t)),n)},nr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},nr.prototype.toArray=function(){return this.take(_)},Rr(nr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Xn[r?"take"+("last"==e?"Right":""):e],c=r||/^find/.test(e);o&&(Xn.prototype[e]=function(){var e=this.__wrapped__,h=r?[1]:arguments,d=e instanceof nr,f=h[0],m=d||ra(e),v=function(t){var e=o.apply(Xn,Ye([t],h));return r&&y?e[0]:e};m&&n&&"function"==typeof f&&1!=f.length&&(d=m=!1);var y=this.__chain__,w=!!this.__actions__.length,x=c&&!y,k=d&&!w;if(!c&&m){e=k?e:new nr(this);var S=t.apply(e,h);return S.__actions__.push({func:Es,args:[v],thisArg:l}),new er(S,y)}return x&&k?t.apply(this,h):(S=this.thru(v),x?r?S.value()[0]:S.value():S)})})),Fe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=zt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Xn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(ra(o)?o:[],t)}return this[n]((function(n){return e.apply(ra(n)?n:[],t)}))}})),Rr(nr.prototype,(function(t,e){var n=Xn[e];if(n){var r=n.name+"";Ut.call(Vn,r)||(Vn[r]=[]),Vn[r].push({name:e,func:n})}})),Vn[eo(l,2).name]=[{name:"wrapper",func:l}],nr.prototype.clone=function(){var t=new nr(this.__wrapped__);return t.__actions__=Wi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Wi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Wi(this.__views__),t},nr.prototype.reverse=function(){if(this.__filtered__){var t=new nr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},nr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=ra(t),r=e<0,o=n?t.length:0,view=function(t,e,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:t,value:t?l:this.__values__[this.__index__++]}},Xn.prototype.plant=function(t){for(var e,n=this;n instanceof Qn;){var r=ts(n);r.__index__=0,r.__values__=l,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Xn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof nr){var e=t;return this.__actions__.length&&(e=new nr(this)),(e=e.reverse()).__actions__.push({func:Es,args:[fs],thisArg:l}),new er(e,this.__chain__)}return this.thru(fs)},Xn.prototype.toJSON=Xn.prototype.valueOf=Xn.prototype.value=function(){return Ti(this.__wrapped__,this.__actions__)},Xn.prototype.first=Xn.prototype.head,le&&(Xn.prototype[le]=function(){return this}),Xn}();Oe._=Tn,(o=function(){return Tn}.call(e,n,e,r))===l||(r.exports=o)}).call(this)}).call(this,n(41),n(112)(t))},476:function(t,e,n){"use strict";var r=n(477).Promise,o=n(131);function l(){this.sessionId=0,this.resetting=0,this.errors=[],this.validatingRecords=[],this.passedRecords=[],this.touchedRecords=[],this.activated=!1}function c(t,e){var n=t.filter((function(t){return t.field===e}));o.isEmpty(n)?t.push({field:e,value:!0}):n[0].value=!0}function h(t,e){if(e){var n=t.filter((function(t){return t.field===e}));o.isEmpty(n)||(n[0].value=!1)}else t.splice(0,t.length)}function d(t,e){var n=t.filter((function(t){return t.field===e}));return!o.isEmpty(n)&&n[0].value}l.prototype._setVM=function(t){this._vm=t},l.prototype.addError=function(t,e){this.resetting||this.errors.push({field:t,message:e})},l.prototype.removeErrors=function(t){o.isUndefined(t)?this.errors=[]:this.errors=this.errors.filter((function(e){return e.field!==t}))},l.prototype.hasError=function(t){return o.isUndefined(t)?!!this.errors.length:!!this.firstError(t)},l.prototype.firstError=function(t){for(var i=0;i=0?this.validatingRecords.splice(l,1):r=!1}else this.validatingRecords=[]},l.prototype.isValidating=function(t,e){var n=this.validatingRecords.filter((function(n){return(o.isUndefined(t)||n.field===t)&&function(t){return!!o.isUndefined(e)||t.id===e}(n)}));return!o.isEmpty(n)},l.prototype.setPassed=function(t){this.resetting||c(this.passedRecords,t)},l.prototype.resetPassed=function(t){h(this.passedRecords,t)},l.prototype.isPassed=function(t){return d(this.passedRecords,t)},l.prototype.setTouched=function(t){this.resetting||c(this.touchedRecords,t)},l.prototype.resetTouched=function(t){h(this.touchedRecords,t)},l.prototype.isTouched=function(t){return d(this.touchedRecords,t)},l.prototype.reset=function(){this.sessionId++,this.errors=[],this.validatingRecords=[],this.passedRecords=[],this.touchedRecords=[],this._vm&&(this.resetting++,this._vm.$nextTick(function(){this.resetting--}.bind(this))),this.activated=!1},l.prototype.setError=function(t,e){if(!this.resetting){this.removeErrors(t),this.resetPassed(t);var n=o.isArray(e)?e:[e],l=function(e){var n=!1;return e.forEach((function(e){e&&(this.addError(t,e),n=!0)}),this),n||this.setPassed(t),n}.bind(this),c=n.filter((function(t){return t&&t.then})).length>0;if(c){this.resetValidating(t);var h=this.setValidating(t),d=function(){this.resetValidating(t,h)}.bind(this);return r.all(n).then(function(e){return!!this.isValidating(t,h)&&l(e)}.bind(this)).then((function(t){return d(),t})).catch(function(t){return d(),r.reject(t)}.bind(this))}return r.resolve(l(n))}},l.prototype.checkRule=function(t){if(!this.resetting)return this.setError(t._field,t._messages)};var f=0;l.newValidatingId=function(){return(++f).toString()},t.exports=l},477:function(t,e,n){(function(e,r){var o;o=function(){"use strict";function t(t){return"function"==typeof t}var o=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},l=0,c=void 0,h=void 0,d=function(t,e){k[l]=t,k[l+1]=e,2===(l+=2)&&(h?h(S):A())},f="undefined"!=typeof window?window:void 0,m=f||{},v=m.MutationObserver||m.WebKitMutationObserver,y="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),w="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function x(){var t=setTimeout;return function(){return t(S,1)}}var k=new Array(1e3);function S(){for(var i=0;i=t&&this._messages.push(e||r.format(this.templates.lessThan,t))}return this},o.prototype.lessThanOrEqualTo=function(t,e){var n=this._checkValue();if(!r.isEmpty(n)){var o=parseFloat(n);r.isNaN(o)?this._messages.push(e||this.templates.number):o>t&&this._messages.push(e||r.format(this.templates.lessThanOrEqualTo,t))}return this},o.prototype.greaterThan=function(t,e){var n=this._checkValue();if(!r.isEmpty(n)){var o=parseFloat(n);r.isNaN(o)?this._messages.push(e||this.templates.number):o<=t&&this._messages.push(e||r.format(this.templates.greaterThan,t))}return this},o.prototype.greaterThanOrEqualTo=function(t,e){var n=this._checkValue();if(!r.isEmpty(n)){var o=parseFloat(n);r.isNaN(o)?this._messages.push(e||this.templates.number):oe)&&this._messages.push(n||r.format(this.templates.between,t,e))}return this},o.prototype.size=function(t,e){var n=this._checkValue();return!r.isEmpty(n)&&r.isArray(n)&&n.length!==t&&this._messages.push(e||r.format(this.templates.size,t)),this},o.prototype.length=function(t,e){var n=this._checkValue();return r.isEmpty(n)||String(n).length===t||this._messages.push(e||r.format(this.templates.length,t)),this},o.prototype.minLength=function(t,e){var n=this._checkValue();return!r.isEmpty(n)&&String(n).lengtht&&this._messages.push(e||r.format(this.templates.maxLength,t)),this},o.prototype.lengthBetween=function(t,e,n){var o=this._checkValue();if(!r.isEmpty(o)){var l=String(o);(l.lengthe)&&this._messages.push(n||r.format(this.templates.lengthBetween,t,e))}return this},o.prototype.in=function(t,e){var n=this._checkValue();return!r.isEmpty(n)&&t.indexOf(n)<0&&this._messages.push(e||r.format(this.templates.in,this.templates.optionCombiner(t))),this},o.prototype.notIn=function(t,e){var n=this._checkValue();return!r.isEmpty(n)&&t.indexOf(n)>=0&&this._messages.push(e||r.format(this.templates.notIn,this.templates.optionCombiner(t))),this},o.prototype.match=function(t,e){var n=this._checkValue();return r.isEmpty(n)||n===t||this._messages.push(e||this.templates.match),this},o.prototype.regex=function(t,e){var n=this._checkValue();return r.isEmpty(n)||(r.isString(t)&&(t=new RegExp(t)),t.test(n)||this._messages.push(e||this.templates.regex)),this},o.prototype.digit=function(t){return this.regex(/^\d*$/,t||this.templates.digit)},o.prototype.email=function(t){return this.regex(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,t||this.templates.email)},o.prototype.url=function(t){return this.regex(/(http|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/,t||this.templates.url)},o.prototype.hasImmediateError=function(){for(var i=0;i-1},F.prototype.set=function(t,e){var data=this.__data__,n=V(data,t);return n<0?data.push([t,e]):data[n][1]=e,this},z.prototype.clear=function(){this.__data__={hash:new I,map:new(B||F),string:new I}},z.prototype.delete=function(t){return U(this,t).delete(t)},z.prototype.get=function(t){return U(this,t).get(t)},z.prototype.has=function(t){return U(this,t).has(t)},z.prototype.set=function(t,e){return U(this,t).set(t,e),this};var G=J((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(Q(t))return L?L.call(t):"";var e=t+"";return"0"==e&&1/t==-r?"-0":e}(e);var n=[];return f.test(t)&&n.push(""),t.replace(m,(function(t,e,r,o){n.push(r?o.replace(v,"$1"):e||t)})),n}));function K(t){if("string"==typeof t||Q(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}function J(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],l=n.cache;if(l.has(o))return l.get(o);var c=t.apply(this,r);return n.cache=l.set(o,c),c};return n.cache=new(J.Cache||z),n}J.Cache=z;var X=Array.isArray;function Z(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Q(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&D.call(t)==c}t.exports=function(object,path,t){var e=null==object?void 0:H(object,path);return void 0===e?t:e}}).call(this,n(41))},498:function(t,e,n){"use strict";n.r(e),n.d(e,"disableBodyScroll",(function(){return x})),n.d(e,"clearAllBodyScrollLocks",(function(){return k})),n.d(e,"enableBodyScroll",(function(){return S}));var r=!1;if("undefined"!=typeof window){var o={get passive(){r=!0}};window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}var l="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),c=[],h=!1,d=-1,f=void 0,m=void 0,v=function(t){return c.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},y=function(t){var e=t||window.event;return!!v(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},w=function(){void 0!==m&&(document.body.style.paddingRight=m,m=void 0),void 0!==f&&(document.body.style.overflow=f,f=void 0)},x=function(t,e){if(t){if(!c.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};c=[].concat(function(t){if(Array.isArray(t)){for(var i=0,e=Array(t.length);i0||function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}(e)&&n<0?y(t):t.stopPropagation())}(e,t)},h||(document.addEventListener("touchmove",y,r?{passive:!1}:void 0),h=!0)):function(t){if(void 0===m){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(m=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===f&&(f=document.body.style.overflow,document.body.style.overflow="hidden")}(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},k=function(){l?(c.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),h&&(document.removeEventListener("touchmove",y,r?{passive:!1}:void 0),h=!1),d=-1):w(),c=[]},S=function(t){t?(c=c.filter((function(e){return e.targetElement!==t})),l?(t.ontouchstart=null,t.ontouchmove=null,h&&0===c.length&&(document.removeEventListener("touchmove",y,r?{passive:!1}:void 0),h=!1)):c.length||w()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}},499:function(t,e,n){(function(t,n){var r="__lodash_hash_undefined__",o=1,l=2,c=1/0,h=9007199254740991,d="[object Arguments]",f="[object Array]",m="[object Boolean]",v="[object Date]",y="[object Error]",w="[object Function]",x="[object GeneratorFunction]",k="[object Map]",S="[object Number]",_="[object Object]",C="[object Promise]",O="[object RegExp]",E="[object Set]",A="[object String]",T="[object Symbol]",M="[object WeakMap]",D="[object ArrayBuffer]",j="[object DataView]",P=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,B=/^\./,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N=/\\(\\)?/g,L=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,F={};F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F[d]=F[f]=F[D]=F[m]=F[j]=F[v]=F[y]=F[w]=F[k]=F[S]=F[_]=F[O]=F[E]=F[A]=F[M]=!1;var z="object"==typeof t&&t&&t.Object===Object&&t,V="object"==typeof self&&self&&self.Object===Object&&self,H=z||V||Function("return this")(),W=e&&!e.nodeType&&e,U=W&&"object"==typeof n&&n&&!n.nodeType&&n,Y=U&&U.exports===W&&z.process,G=function(){try{return Y&&Y.binding("util")}catch(t){}}(),K=G&&G.isTypedArray;function J(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n-1},Bt.prototype.set=function(t,e){var data=this.__data__,n=Ft(data,t);return n<0?data.push([t,e]):data[n][1]=e,this},$t.prototype.clear=function(){this.__data__={hash:new Rt,map:new(xt||Bt),string:new Rt}},$t.prototype.delete=function(t){return te(this,t).delete(t)},$t.prototype.get=function(t){return te(this,t).get(t)},$t.prototype.has=function(t){return te(this,t).has(t)},$t.prototype.set=function(t,e){return te(this,t).set(t,e),this},Nt.prototype.add=Nt.prototype.push=function(t){return this.__data__.set(t,r),this},Nt.prototype.has=function(t){return this.__data__.has(t)},Lt.prototype.clear=function(){this.__data__=new Bt},Lt.prototype.delete=function(t){return this.__data__.delete(t)},Lt.prototype.get=function(t){return this.__data__.get(t)},Lt.prototype.has=function(t){return this.__data__.has(t)},Lt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Bt){var r=n.__data__;if(!xt||r.length<199)return r.push([t,e]),this;n=this.__data__=new $t(r)}return n.set(t,e),this};var zt,Vt,Ht=(zt=function(object,t){return object&&Wt(object,t,xe)},function(t,e){if(null==t)return t;if(!fe(t))return zt(t,e);for(var n=t.length,r=Vt?n:-1,o=Object(t);(Vt?r--:++rf))return!1;var v=h.get(t);if(v&&h.get(e))return v==e;var y=-1,w=!0,x=c&o?new Nt:void 0;for(h.set(t,e),h.set(e,t);++y-1&&t%1==0&&t-1&&t%1==0&&t<=h}function ve(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function be(t){return!!t&&"object"==typeof t}function ye(t){return"symbol"==typeof t||be(t)&&pt.call(t)==T}var we=K?function(t){return function(e){return t(e)}}(K):function(t){return be(t)&&ge(t.length)&&!!F[pt.call(t)]};function xe(object){return fe(object)?It(object):Jt(object)}function ke(t){return t}n.exports=function(t,e){return(pe(t)?J:Xt)(t,Kt(e))}}).call(this,n(41),n(112)(t))},5:function(t,e,n){"use strict";var r=n(476),o=n(478),l=n(667),c=n(668),h=n(131);function d(t){Object.keys(t).forEach((function(e){h.templates[e]=t[e]}))}function f(t){if("interactive"!==t&&"conservative"!==t&&"manual"!==t)throw new Error("Invalid mode: "+t);h.mode=t}t.exports.name="SimpleVueValidator",t.exports.ValidationBag=r,t.exports.Rule=o,t.exports.Validator=l,t.exports.mixin=c,t.exports.install=function(t,e){t.mixin(c),e&&e.templates&&d(e.templates),e&&e.mode&&f(e.mode),e&&e.Promise&&(c.Promise=e.Promise)},t.exports.extendTemplates=d,t.exports.setMode=f},50:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},502:function(t,e,n){"use strict";function r(t,e){return e=e||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u={},a=function t(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:t,headers:{keys:function(){return o},entries:function(){return o.map((function(t){return[t,s.getResponseHeader(t)]}))},get:function(t){return s.getResponseHeader(t)},has:function(t){return null!=s.getResponseHeader(t)}}}};for(var i in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,(function(t,e){u[e]||o.push(u[e]=e)})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(i,e.headers[i]);s.send(e.body||null)}))}n.d(e,"a",(function(){return r}))},504:function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function c(t,source,e){return t.concat(source).map((function(element){return l(element,e)}))}function h(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return Object.propertyIsEnumerable.call(t,symbol)})):[]}(t))}function d(object,t){try{return t in object}catch(t){return!1}}function f(t,source,e){var n={};return e.isMergeableObject(t)&&h(t).forEach((function(r){n[r]=l(t[r],e)})),h(source).forEach((function(r){(function(t,e){return d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(d(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return m;var n=e.customMerge(t);return"function"==typeof n?n:m}(r,e)(t[r],source[r],e):n[r]=l(source[r],e))})),n}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||c,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):f(t,source,e):l(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return m(t,n,e)}),{})};var v=m;t.exports=v},505:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return f}));var r=n(94),o=n(177),l=n(67),c=n(58),h=n(61);const d="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class f extends r.a{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),e=this.opts.protocols,n=d?{}:Object(l.c)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=c.d&&!d?e?new c.a(t,e):new c.a(t):new c.a(t,e,n)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType||c.b,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(e){this.writable=!1;for(let i=0;i{const e={};if(!c.d&&(n.options&&(e.compress=n.options.compress),this.opts.perMessageDeflate)){("string"==typeof data?t.byteLength(data):data.length){this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=Object(o.a)()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}check(){return!!c.a}}}).call(this,n(631).Buffer)},506:function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=89)}([function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(35),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},function(t,e,n){var r=n(59),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},function(t,e,n){var r=n(4),i=n(43).f,o=n(30),s=n(11),u=n(33),a=n(95),l=n(66);t.exports=function(t,e){var n,c,h,p,d,f=t.target,m=t.global,g=t.stat;if(n=m?r:g?r[f]||u(f,{}):(r[f]||{}).prototype)for(c in e){if(p=e[c],h=t.dontCallGetSet?(d=i(n,c))&&d.value:n[c],!l(m?c:f+(g?".":"#")+c,t.forced)&&void 0!==h){if(typeof p==typeof h)continue;a(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),s(n,c,p,t)}}},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(e,n(139))},function(t,e,n){var r=n(0);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(8),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},function(t,e,n){var r=n(1),i=n(14),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},function(t,e,n){var r=n(2),i=n(59),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(4),i=n(47),o=n(7),s=n(75),u=n(72),a=n(76),l=i("wks"),c=r.Symbol,h=c&&c.for,p=a?c:c&&c.withoutSetter||s;t.exports=function(t){if(!o(l,t)||!u&&"string"!=typeof l[t]){var e="Symbol."+t;u&&o(c,t)?l[t]=c[t]:l[t]=a&&h?h(e):p(e)}return l[t]}},function(t,e,n){var r=n(123);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(2),i=n(13),o=n(104),s=n(33);t.exports=function(t,e,n,u){u||(u={});var a=u.enumerable,l=void 0!==u.name?u.name:e;if(r(n)&&o(n,l,u),u.global)a?t[e]=n:s(e,n);else{try{u.unsafe?t[e]&&(a=!0):delete t[e]}catch(t){}a?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},function(t,e,n){var r=n(35),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,e,n){var r=n(5),i=n(62),o=n(77),s=n(6),u=n(50),a=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;e.f=r?o?function(t,e,n){if(s(t),e=u(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=c(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(s(t),e=u(e),s(n),i)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(24),i=Object;t.exports=function(t){return i(r(t))}},function(t,e,n){var r=n(1),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},function(t,e,n){var r=n(0),i=n(9),o=n(23),s=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(4),i=n(2),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(39),i=n(24);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(29),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,e,n){var r=n(100),i=n(1),o=n(39),s=n(14),u=n(10),a=n(28),l=i([].push),c=function(t){var e=1==t,n=2==t,i=3==t,c=4==t,h=6==t,p=7==t,d=5==t||h;return function(f,m,g,v){for(var b,y,w=s(f),x=o(w),k=r(m,g),S=u(x),_=0,C=v||a,O=e?C(f,S):n||p?C(f,0):void 0;S>_;_++)if((d||_ in x)&&(y=k(b=x[_],_,w),t))if(e)O[_]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return _;case 2:l(O,b)}else switch(t){case 4:return!1;case 7:l(O,b)}return h?-1:i||c?c:O}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(t,e){var n=TypeError;t.exports=function(t){if(t>9007199254740991)throw n("Maximum allowed index exceeded");return t}},function(t,e,n){var r,i,o=n(4),s=n(97),u=o.process,a=o.Deno,l=u&&u.versions||a&&a.version,c=l&&l.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,e,n){var r=n(40),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},function(t,e,n){var r=n(2),i=n(74),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){"use strict";var r=n(5),i=n(18),o=TypeError,s=Object.getOwnPropertyDescriptor,u=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,e){if(i(t)&&!s(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},function(t,e,n){var r=n(94);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(51),i=n(2),o=n(15),u=n(9)("toStringTag"),a=Object,l="Arguments"==o(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(t){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=a(t),u))?n:l?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r=n(5),i=n(13),o=n(31);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(50),i=n(13),o=n(31);t.exports=function(t,e,n){var s=r(e);s in t?i.f(t,s,o(0,n)):t[s]=n}},function(t,e,n){var r=n(4),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(0);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e,n){var r=n(5),i=n(7),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,u=i(o,"name"),a=u&&"something"===function(){}.name,l=u&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:l}},function(t,e,n){var r=n(15),i=n(1);t.exports=function(t){if("Function"===r(t))return i(t)}},function(t,e){t.exports={}},function(t,e,n){var r=n(1),i=n(0),o=n(15),s=Object,u=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?u(t,""):s(t)}:s},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r=n(17),i=n(2),o=n(44),s=n(76),u=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,u(t))}},function(t,e,n){var r,i=n(6),o=n(107),s=n(34),u=n(38),a=n(101),l=n(60),c=n(70)("IE_PROTO"),p=function(){},h=function(t){return"