diff --git a/dist/assets/admin/js/chunk-common.cb2ec527.js b/dist/assets/admin/js/chunk-common.cd3704de.js similarity index 100% rename from dist/assets/admin/js/chunk-common.cb2ec527.js rename to dist/assets/admin/js/chunk-common.cd3704de.js diff --git a/dist/assets/admin/js/chunk-vendors.b3c5174d.js b/dist/assets/admin/js/chunk-vendors.6bb2c5a9.js similarity index 78% rename from dist/assets/admin/js/chunk-vendors.b3c5174d.js rename to dist/assets/admin/js/chunk-vendors.6bb2c5a9.js index b2c58060f..6a827b2cf 100644 --- a/dist/assets/admin/js/chunk-vendors.b3c5174d.js +++ b/dist/assets/admin/js/chunk-vendors.6bb2c5a9.js @@ -1,8 +1,8 @@ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0010":function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return k})),n.d(t,"f",(function(){return E})),n.d(t,"g",(function(){return S}));var r=n("2eae"),i=n("304a"),o=n("65e8");function a(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function s(e,t,n){var i=e.selection,a=i.$cursor;if(!a||(n?!n.endOfTextblock("backward",e):a.parentOffset>0))return!1;var s=c(a);if(!s){var l=a.blockRange(),f=l&&Object(r["k"])(l);return null!=f&&(t&&t(e.tr.lift(l,f).scrollIntoView()),!0)}var d=s.nodeBefore;if(!d.type.spec.isolating&&x(e,s,t))return!0;if(0==a.parent.content.size&&(u(d,"end")||o["NodeSelection"].isSelectable(d))){if(t){var h=e.tr.deleteRange(a.before(),a.after());h.setSelection(u(d,"end")?o["Selection"].findFrom(h.doc.resolve(h.mapping.map(s.pos,-1)),-1):o["NodeSelection"].create(h.doc,s.pos-d.nodeSize)),t(h.scrollIntoView())}return!0}return!(!d.isAtom||s.depth!=a.depth-1)&&(t&&t(e.tr.delete(s.pos-d.nodeSize,s.pos).scrollIntoView()),!0)}function u(e,t){for(;e;e="start"==t?e.firstChild:e.lastChild)if(e.isTextblock)return!0;return!1}function l(e,t,n){var r=e.selection,i=r.$head,a=r.empty,s=i;if(!a)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;s=c(i)}var u=s&&s.nodeBefore;return!(!u||!o["NodeSelection"].isSelectable(u))&&(t&&t(e.tr.setSelection(o["NodeSelection"].create(e.doc,s.pos-u.nodeSize)).scrollIntoView()),!0)}function c(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function f(e,t,n){var r=e.selection,i=r.$cursor;if(!i||(n?!n.endOfTextblock("forward",e):i.parentOffset=0;t--){var n=e.node(t);if(e.index(t)+11&&i.after()!=i.end(-1)){var o=i.before();if(Object(r["g"])(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}var a=i.blockRange(),s=a&&Object(r["k"])(a);return null!=s&&(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)}function q(e,t){var n=e.selection,a=n.$from,s=n.$to;if(e.selection instanceof o["NodeSelection"]&&e.selection.node.isBlock)return!(!a.parentOffset||!Object(r["g"])(e.doc,a.pos))&&(t&&t(e.tr.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(t){var u=s.parentOffset==s.parent.content.size,l=e.tr;e.selection instanceof o["TextSelection"]&&l.deleteSelection();var c=0==a.depth?null:g(a.node(-1).contentMatchAt(a.indexAfter(-1))),f=u&&c?[{type:c}]:null,d=Object(r["g"])(l.doc,l.mapping.map(a.pos),1,f);f||d||!Object(r["g"])(l.doc,l.mapping.map(a.pos),1,c&&[{type:c}])||(f=[{type:c}],d=!0),d&&(l.split(l.mapping.map(a.pos),1,f),u||a.parentOffset||a.parent.type==c||!a.node(-1).canReplace(a.index(-1),a.indexAfter(-1),i["Fragment"].from(c.create(),a.parent))||l.setNodeMarkup(l.mapping.map(a.before()),c)),t(l.scrollIntoView())}return!0}function w(e,t){return t&&t(e.tr.setSelection(new o["AllSelection"](e.doc))),!0}function _(e,t,n){var i=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(i&&o&&i.type.compatibleContent(o.type))&&(!i.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(r["f"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}function x(e,t,n){var a,s,u=t.nodeBefore,l=t.nodeAfter;if(u.type.spec.isolating||l.type.spec.isolating)return!1;if(_(e,t,n))return!0;if(t.parent.canReplace(t.index(),t.index()+1)&&(a=(s=u.contentMatchAt(u.childCount)).findWrapping(l.type))&&s.matchType(a[0]||l.type).validEnd){if(n){for(var c=t.pos+l.nodeSize,f=i["Fragment"].empty,d=a.length-1;d>=0;d--)f=i["Fragment"].from(a[d].create(null,f));f=i["Fragment"].from(u.copy(f));var h=e.tr.step(new r["b"](t.pos-1,c,t.pos,c,new i["Slice"](f,1,0),a.length,!0)),p=c+2*a.length;Object(r["f"])(h.doc,p)&&h.join(p),n(h.scrollIntoView())}return!0}var m=o["Selection"].findFrom(t,1),g=m&&m.$from.blockRange(m.$to),v=g&&Object(r["k"])(g);return null!=v&&v>=t.depth&&(n&&n(e.tr.lift(g,v).scrollIntoView()),!0)}function S(e,t){return function(n,i){var o=n.selection,a=o.$from,s=o.$to,u=a.blockRange(s),l=u&&Object(r["i"])(u,e,t);return!!l&&(i&&i(n.tr.wrap(u,l).scrollIntoView()),!0)}}function k(e,t){return function(n,r){var i=n.selection,o=i.from,a=i.to,s=!1;return n.doc.nodesBetween(o,a,(function(r,i){if(s)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)s=!0;else{var o=n.doc.resolve(i),a=o.index();s=o.parent.canReplaceWith(a,a+1,e)}})),!!s&&(r&&r(n.tr.setBlockType(o,a,e,t).scrollIntoView()),!0)}}function C(e,t,n){for(var r=function(r){var i=t[r],o=i.$from,a=i.$to,s=0==o.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,a.pos,(function(e){if(s)return!1;s=e.inlineContent&&e.type.allowsMarkType(n)})),s)return{v:!0}},i=0;i1?"ème":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer"};t.l10ns.fr=n;var r=t.l10ns;e.French=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},"03a5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qq=void 0;var r=n("9925"),i=u(r),o=n("94b2"),a=u(o),s=n("5ab1");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e){var n=e.options;return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{callbackNames:s.traditional,options:n,qq:a.default,type:"traditional"}))}return f(t,e),t}(i.default);t.default=d,t.qq=a.default},"03dd":function(e,t,n){var r=n("eac5"),i=n("57a5"),o=Object.prototype,a=o.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},"0644":function(e,t,n){var r=n("3818"),i=1,o=4;function a(e){return r(e,i|o)}e.exports=a},"073e":function(e,t,n){"use strict";var r=n("5dbe"),i=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=i,i.eval=o(EvalError),i.range=o(RangeError),i.reference=o(ReferenceError),i.syntax=o(SyntaxError),i.type=o(TypeError),i.uri=o(URIError),i.create=o},"07ac":function(e,t,n){var r=n("1540"),i=n("9ce6");e.exports={distanceInWords:r(),format:i()}},"07c7":function(e,t){function n(){return!1}e.exports=n},"087d":function(e,t){function n(e,t){var n=-1,r=t.length,i=e.length;while(++na?1:0}e.exports=i},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0f0f":function(e,t,n){var r=n("8eeb"),i=n("9934");function o(e,t){return e&&r(t,i(t),e)}e.exports=o},"0f32":function(e,t,n){var r=n("b047"),i=n("1a8c"),o="Expected a function";function a(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}e.exports=a},"100e":function(e,t,n){var r=n("cd9d"),i=n("2286"),o=n("c1c9");function a(e,t){return o(i(e,t,r),e+"")}e.exports=a},1041:function(e,t,n){var r=n("8eeb"),i=n("a029");function o(e,t){return r(e,i(e),t)}e.exports=o},1290:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},1310:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},1368:function(e,t,n){var r=n("da03"),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!i&&i in e}e.exports=o},"13ea":function(e,t,n){var r=n("03dd"),i=n("42a2"),o=n("d370"),a=n("6747"),s=n("30c9"),u=n("0d24"),l=n("eac5"),c=n("73ac"),f="[object Map]",d="[object Set]",h=Object.prototype,p=h.hasOwnProperty;function m(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||o(e)))return!e.length;var t=i(e);if(t==f||t==d)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}e.exports=m},"14e1":function(e,t,n){},1540:function(e,t){function n(e,t){if(1===t)return e.one;var n=t%100;if(n<=20&&n>10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function r(e,t,r){r=r||"regular";var i=n(e,t),o=i[r]||i;return o.replace("{{count}}",t)}function i(){var e={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godzina",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function t(t,n,i){i=i||{};var o=e[t];return i.addSuffix?i.comparison>0?"za "+r(o,n,"future"):r(o,n,"past")+" temu":r(o,n)}return{localize:t}}e.exports=i},"17cd":function(e,t,n){var r=n("c8d5"),i=n("b2e9"),o=n("0d3e");function a(e,t){var n=r(e),a=r(t),s=o(n,a),u=Math.abs(i(n,a));n.setMonth(n.getMonth()-s*u);var l=o(n,a)===-s;return s*(u-l)}e.exports=a},1838:function(e,t,n){var r=n("c05f"),i=n("9b02"),o=n("8604"),a=n("f608"),s=n("08cc"),u=n("20ec"),l=n("f4d6"),c=1,f=2;function d(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,c|f)}}e.exports=d},"18d8":function(e,t,n){var r=n("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},1980:function(e,t,n){(function(t,r){e.exports=r(n("aa47"))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),u=n("520a"),l=s("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var d=s(e),h=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=h?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!t})):void 0;if(!h||!p||"replace"===e&&!c||"split"===e&&!f){var m=/./[d],g=n(a,d,""[e],(function(e,t,n,r,i){return t.exec===u?h&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],y=g[1];r(String.prototype,e,v),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),u="toString",l=(""+s).split(u);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),u=n("8f60"),l=n("45f2"),c=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,b,q){u(n,t,v);var w,_,x,S=function(e){if(!d&&e in O)return O[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C=y==m,E=!1,O=e.prototype,A=O[f]||O[h]||y&&O[y],T=A||S(y),D=y?C?S("entries"):T:void 0,P="Array"==t&&O.entries||A;if(P&&(x=c(P.call(new e)),x!==Object.prototype&&x.next&&(l(x,k,!0),r||"function"==typeof x[f]||a(x,f,g))),C&&A&&A.name!==m&&(E=!0,T=function(){return A.call(this)}),r&&!q||!d&&!E&&O[f]||a(O,f,T),s[t]=T,s[k]=g,y)if(w={values:C?T:S(m),keys:b?T:S(p),entries:D},q)for(_ in w)_ in O||o(O,_,w[_]);else i(i.P+i.F*(d||E),t,w);return w}},"32a6":function(e,t,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(e){return i(r(e))}}))},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"481b":function(e,t){e.exports={}},"4aa6":function(e,t,n){e.exports=n("dc62")},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},5176:function(e,t,n){e.exports=n("51b6")},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",u=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),l=void 0!==/()??/.exec("")[1],c=u||l;c&&(a=function(e){var t,n,a,c,f=this;return l&&(n=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),u&&(t=f[s]),a=i.call(f,e),u&&a&&(f[s]=f.global?a.index+a[0].length:t),l&&a&&a.length>1&&o.call(a[0],n,(function(){for(c=1;c1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(d);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(t=u(d.length),n=new h(t);t>v;v++)l(n,v,g?m(d[v],v):d[v]);else for(f=y.call(d),n=new h;!(i=f.next()).done;v++)l(n,v,g?a(f,m,[i.value,v],!0):i.value);return n.length=v,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u="prototype",l=function(e,t,n){var c,f,d,h,p=e&l.F,m=e&l.G,g=e&l.S,v=e&l.P,y=e&l.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[u],q=m?i:i[t]||(i[t]={}),w=q[u]||(q[u]={});for(c in m&&(n=t),n)f=!p&&b&&void 0!==b[c],d=(f?b:n)[c],h=y&&f?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,e&l.U),q[c]!=d&&o(q,c,h),v&&w[c]!=d&&(w[c]=d)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5d73":function(e,t,n){e.exports=n("469f")},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),u="prototype",l=function(e,t,n){var c,f,d,h=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=e&l.W,b=p?i:i[t]||(i[t]={}),q=b[u],w=p?r:m?r[t]:(r[t]||{})[u];for(c in p&&(n=t),n)f=!h&&w&&void 0!==w[c],f&&s(b,c)||(d=f?w[c]:n[c],b[c]=p&&"function"!=typeof w[c]?n[c]:v&&f?o(d,r):y&&w[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((b.virtual||(b.virtual={}))[c]=d,e&l.R&&q&&!q[c]&&a(q,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7cd6":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"7d7b":function(e,t,n){var r=n("e4ae"),i=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,u=0;while(s>u)r.f(e,n=a[u++],t[n]);return e}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9138:function(e,t,n){e.exports=n("35e8")},9306:function(e,t,n){"use strict";var r=n("c3a1"),i=n("9aa9"),o=n("355d"),a=n("241e"),s=n("335c"),u=Object.assign;e.exports=!u||n("294c")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=a(e),u=arguments.length,l=1,c=i.f,f=o.f;while(u>l){var d,h=s(arguments[l++]),p=c?r(h).concat(c(h)):r(h),m=p.length,g=0;while(m>g)f.call(h,d=p[g++])&&(n[d]=h[d])}return n}:u},9427:function(e,t,n){var r=n("63b6");r(r.S,"Object",{create:n("a159")})},"95d5":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;while(r--)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},a352:function(t,n){t.exports=e},a3c3:function(e,t,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),u=n("5f1b"),l=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var f=r(e),d=String(this),h="function"===typeof t;h||(t=String(t));var v=f.global;if(v){var y=f.unicode;f.lastIndex=0}var b=[];while(1){var q=u(f,d);if(null===q)break;if(b.push(q),!v)break;var w=String(q[0]);""===w&&(f.lastIndex=s(d,o(f.lastIndex),y))}for(var _="",x=0,S=0;S=x&&(_+=d.slice(x,C)+D,x=C+k.length)}return _+d.slice(x)}];function g(e,t,r,o,a,s){var u=r+e.length,l=o.length,c=h;return void 0!==a&&(a=i(a),c=d),n.call(s,c,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>l){var d=f(c/10);return 0===d?n:d<=l?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s}))}}))},a4bb:function(e,t,n){e.exports=n("8aae")},a745:function(e,t,n){e.exports=n("f410")},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return c})),n("a481");var r=n("4aa6"),i=n.n(r);function o(){return"undefined"!==typeof window?window.console:e.console}var a=o();function s(e){var t=i()(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var u=/-(\w)/g,l=s((function(e){return e.replace(u,(function(e,t){return t?t.toUpperCase():""}))}));function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function f(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),o=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,n){n("9427");var r=n("584a").Object;e.exports=function(e,t){return r.create(e,t)}},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);while(t.length>u)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(e,t,n){"use strict";var r;n.r(t),"undefined"!==typeof window&&(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]);var i=n("5176"),o=n.n(i),a=(n("f559"),n("a4bb")),s=n.n(a),u=(n("6762"),n("2fdb"),n("a745")),l=n.n(u);function c(e){if(l()(e))return e}var f=n("5d73"),d=n.n(f);function h(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=d()(e);!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function m(e,t){return c(e)||h(e,t)||p()}function g(e){if(l()(e)){for(var t=0,n=new Array(e.length);t=o?i.length:i.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}function T(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function D(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),T.call(t,e,n)}}function P(e){if(!e||1!==e.length)return!1;var t=m(e,1),n=t[0].componentOptions;return!!n&&["transition-group","TransitionGroup"].includes(n.tag)}function M(e,t){var n=t.header,r=t.footer,i=0,o=0;return n&&(i=n.length,e=e?[].concat(x(n),x(e)):x(n)),r&&(o=r.length,e=e?[].concat(x(e),x(r)):x(r)),{children:e,headerOffset:i,footerOffset:o}}function N(e,t){var n=null,r=function(e,t){n=E(n,e,t)},i=s()(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(r("attrs",i),!t)return n;var a=t.on,u=t.props,l=t.attrs;return r("on",a),r("props",u),o()(n.attrs,l),n}var R=["Start","Add","Remove","Update","End"],I=["Choose","Sort","Filter","Clone"],F=["Move"].concat(R,I).map((function(e){return"on"+e})),j=null,L={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},B={name:"draggable",inheritAttrs:!1,props:L,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=P(t);var n=M(t,this.$slots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var a=N(this.$attrs,this.componentData);return e(this.getTag(),a,r)},created:function(){null!==this.list&&null!==this.value&&C["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&C["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&C["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};R.forEach((function(n){t["on"+n]=D.call(e,n)})),I.forEach((function(n){t["on"+n]=T.bind(e,n)}));var n=s()(this.$attrs).reduce((function(t,n){return t[Object(C["a"])(n)]=e.$attrs[n],t}),{}),r=o()({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new k.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(C["a"])(t);-1===F.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1===this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=A(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=O(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&"transition-group"===t.$options._componentTag?t.$parent:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=x(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,x(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,a={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var s=r.getUnderlyingVm(n);if(s)return o()(s,a)}return a},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),j=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(C["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(C["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(C["d"])(e.clone)},onDragUpdate:function(e){Object(C["d"])(e.item),Object(C["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=x(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),i=e.component.getVmIndex(r),o=-1!==n.indexOf(j);return o||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,a=this.computeFutureIndex(r,e);o()(i,{futureIndex:a});var s=o()({},e,{relatedContext:r,draggedContext:i});return n(s,t)},onDragEnd:function(){this.computeIndexes(),j=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",B);var U=B;t["default"]=U}})["default"]}))},"1a2d":function(e,t,n){var r=n("42a2"),i=n("1310"),o="[object Map]";function a(e){return i(e)&&r(e)==o}e.exports=a},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1bac":function(e,t,n){var r=n("7d1f"),i=n("a029"),o=n("9934");function a(e){return r(e,o,i)}e.exports=a},"1c3c":function(e,t,n){var r=n("9e69"),i=n("2474"),o=n("9638"),a=n("a2be"),s=n("edfa"),u=n("ac41"),l=1,c=2,f="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",q="[object ArrayBuffer]",w="[object DataView]",_=r?r.prototype:void 0,x=_?_.valueOf:void 0;function S(e,t,n,r,_,S,k){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case q:return!(e.byteLength!=t.byteLength||!S(new i(e),new i(t)));case f:case d:case m:return o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case p:var C=s;case v:var E=r&l;if(C||(C=u),e.size!=t.size&&!E)return!1;var O=k.get(e);if(O)return O==t;r|=c,k.set(e,t);var A=a(C(e),C(t),r,_,S,k);return k["delete"](e),A;case b:if(x)return x.call(e)==x.call(t)}return!1}e.exports=S},"1cec":function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Promise");e.exports=o},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=l(e),a=r[0],s=r[1],u=new o(f(e,a,s)),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ou?u:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fc8":function(e,t,n){var r=n("4245");function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},"20ec":function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},2286:function(e,t,n){var r=n("85e3"),i=Math.max;function o(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);while(++a1?"ème":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer"};t.l10ns.fr=n;var r=t.l10ns;e.French=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},"03a5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qq=void 0;var r=n("9925"),i=u(r),o=n("94b2"),a=u(o),s=n("5ab1");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e){var n=e.options;return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{callbackNames:s.traditional,options:n,qq:a.default,type:"traditional"}))}return f(t,e),t}(i.default);t.default=d,t.qq=a.default},"03dd":function(e,t,n){var r=n("eac5"),i=n("57a5"),o=Object.prototype,a=o.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},"0644":function(e,t,n){var r=n("3818"),i=1,o=4;function a(e){return r(e,i|o)}e.exports=a},"073e":function(e,t,n){"use strict";var r=n("5dbe"),i=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=i,i.eval=o(EvalError),i.range=o(RangeError),i.reference=o(ReferenceError),i.syntax=o(SyntaxError),i.type=o(TypeError),i.uri=o(URIError),i.create=o},"07ac":function(e,t,n){var r=n("1540"),i=n("9ce6");e.exports={distanceInWords:r(),format:i()}},"07c7":function(e,t){function n(){return!1}e.exports=n},"087d":function(e,t){function n(e,t){var n=-1,r=t.length,i=e.length;while(++na?1:0}e.exports=i},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0f0f":function(e,t,n){var r=n("8eeb"),i=n("9934");function o(e,t){return e&&r(t,i(t),e)}e.exports=o},"0f32":function(e,t,n){var r=n("b047"),i=n("1a8c"),o="Expected a function";function a(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}e.exports=a},"100e":function(e,t,n){var r=n("cd9d"),i=n("2286"),o=n("c1c9");function a(e,t){return o(i(e,t,r),e+"")}e.exports=a},1041:function(e,t,n){var r=n("8eeb"),i=n("a029");function o(e,t){return r(e,i(e),t)}e.exports=o},1290:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},1310:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},1368:function(e,t,n){var r=n("da03"),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!i&&i in e}e.exports=o},"13ea":function(e,t,n){var r=n("03dd"),i=n("42a2"),o=n("d370"),a=n("6747"),s=n("30c9"),u=n("0d24"),l=n("eac5"),c=n("73ac"),f="[object Map]",d="[object Set]",h=Object.prototype,p=h.hasOwnProperty;function m(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||o(e)))return!e.length;var t=i(e);if(t==f||t==d)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}e.exports=m},"14e1":function(e,t,n){},1540:function(e,t){function n(e,t){if(1===t)return e.one;var n=t%100;if(n<=20&&n>10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function r(e,t,r){r=r||"regular";var i=n(e,t),o=i[r]||i;return o.replace("{{count}}",t)}function i(){var e={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godzina",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function t(t,n,i){i=i||{};var o=e[t];return i.addSuffix?i.comparison>0?"za "+r(o,n,"future"):r(o,n,"past")+" temu":r(o,n)}return{localize:t}}e.exports=i},"17cd":function(e,t,n){var r=n("c8d5"),i=n("b2e9"),o=n("0d3e");function a(e,t){var n=r(e),a=r(t),s=o(n,a),u=Math.abs(i(n,a));n.setMonth(n.getMonth()-s*u);var l=o(n,a)===-s;return s*(u-l)}e.exports=a},1838:function(e,t,n){var r=n("c05f"),i=n("9b02"),o=n("8604"),a=n("f608"),s=n("08cc"),u=n("20ec"),l=n("f4d6"),c=1,f=2;function d(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,c|f)}}e.exports=d},"18d8":function(e,t,n){var r=n("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},1980:function(e,t,n){(function(t,r){e.exports=r(n("aa47"))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),u=n("520a"),l=s("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var d=s(e),h=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=h?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!t})):void 0;if(!h||!p||"replace"===e&&!c||"split"===e&&!f){var m=/./[d],g=n(a,d,""[e],(function(e,t,n,r,i){return t.exec===u?h&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],y=g[1];r(String.prototype,e,v),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),u="toString",l=(""+s).split(u);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),u=n("8f60"),l=n("45f2"),c=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,b,q){u(n,t,v);var w,_,x,S=function(e){if(!d&&e in O)return O[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C=y==m,E=!1,O=e.prototype,A=O[f]||O[h]||y&&O[y],T=A||S(y),D=y?C?S("entries"):T:void 0,P="Array"==t&&O.entries||A;if(P&&(x=c(P.call(new e)),x!==Object.prototype&&x.next&&(l(x,k,!0),r||"function"==typeof x[f]||a(x,f,g))),C&&A&&A.name!==m&&(E=!0,T=function(){return A.call(this)}),r&&!q||!d&&!E&&O[f]||a(O,f,T),s[t]=T,s[k]=g,y)if(w={values:C?T:S(m),keys:b?T:S(p),entries:D},q)for(_ in w)_ in O||o(O,_,w[_]);else i(i.P+i.F*(d||E),t,w);return w}},"32a6":function(e,t,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(e){return i(r(e))}}))},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"481b":function(e,t){e.exports={}},"4aa6":function(e,t,n){e.exports=n("dc62")},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},5176:function(e,t,n){e.exports=n("51b6")},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",u=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),l=void 0!==/()??/.exec("")[1],c=u||l;c&&(a=function(e){var t,n,a,c,f=this;return l&&(n=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),u&&(t=f[s]),a=i.call(f,e),u&&a&&(f[s]=f.global?a.index+a[0].length:t),l&&a&&a.length>1&&o.call(a[0],n,(function(){for(c=1;c1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(d);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(t=u(d.length),n=new h(t);t>v;v++)l(n,v,g?m(d[v],v):d[v]);else for(f=y.call(d),n=new h;!(i=f.next()).done;v++)l(n,v,g?a(f,m,[i.value,v],!0):i.value);return n.length=v,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u="prototype",l=function(e,t,n){var c,f,d,h,p=e&l.F,m=e&l.G,g=e&l.S,v=e&l.P,y=e&l.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[u],q=m?i:i[t]||(i[t]={}),w=q[u]||(q[u]={});for(c in m&&(n=t),n)f=!p&&b&&void 0!==b[c],d=(f?b:n)[c],h=y&&f?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,e&l.U),q[c]!=d&&o(q,c,h),v&&w[c]!=d&&(w[c]=d)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5d73":function(e,t,n){e.exports=n("469f")},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),u="prototype",l=function(e,t,n){var c,f,d,h=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=e&l.W,b=p?i:i[t]||(i[t]={}),q=b[u],w=p?r:m?r[t]:(r[t]||{})[u];for(c in p&&(n=t),n)f=!h&&w&&void 0!==w[c],f&&s(b,c)||(d=f?w[c]:n[c],b[c]=p&&"function"!=typeof w[c]?n[c]:v&&f?o(d,r):y&&w[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((b.virtual||(b.virtual={}))[c]=d,e&l.R&&q&&!q[c]&&a(q,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7cd6":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"7d7b":function(e,t,n){var r=n("e4ae"),i=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,u=0;while(s>u)r.f(e,n=a[u++],t[n]);return e}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9138:function(e,t,n){e.exports=n("35e8")},9306:function(e,t,n){"use strict";var r=n("c3a1"),i=n("9aa9"),o=n("355d"),a=n("241e"),s=n("335c"),u=Object.assign;e.exports=!u||n("294c")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=a(e),u=arguments.length,l=1,c=i.f,f=o.f;while(u>l){var d,h=s(arguments[l++]),p=c?r(h).concat(c(h)):r(h),m=p.length,g=0;while(m>g)f.call(h,d=p[g++])&&(n[d]=h[d])}return n}:u},9427:function(e,t,n){var r=n("63b6");r(r.S,"Object",{create:n("a159")})},"95d5":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;while(r--)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},a352:function(t,n){t.exports=e},a3c3:function(e,t,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),u=n("5f1b"),l=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var f=r(e),d=String(this),h="function"===typeof t;h||(t=String(t));var v=f.global;if(v){var y=f.unicode;f.lastIndex=0}var b=[];while(1){var q=u(f,d);if(null===q)break;if(b.push(q),!v)break;var w=String(q[0]);""===w&&(f.lastIndex=s(d,o(f.lastIndex),y))}for(var _="",x=0,S=0;S=x&&(_+=d.slice(x,C)+D,x=C+k.length)}return _+d.slice(x)}];function g(e,t,r,o,a,s){var u=r+e.length,l=o.length,c=h;return void 0!==a&&(a=i(a),c=d),n.call(s,c,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>l){var d=f(c/10);return 0===d?n:d<=l?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s}))}}))},a4bb:function(e,t,n){e.exports=n("8aae")},a745:function(e,t,n){e.exports=n("f410")},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return c})),n("a481");var r=n("4aa6"),i=n.n(r);function o(){return"undefined"!==typeof window?window.console:e.console}var a=o();function s(e){var t=i()(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var u=/-(\w)/g,l=s((function(e){return e.replace(u,(function(e,t){return t?t.toUpperCase():""}))}));function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function f(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),o=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,n){n("9427");var r=n("584a").Object;e.exports=function(e,t){return r.create(e,t)}},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);while(t.length>u)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(e,t,n){"use strict";var r;n.r(t),"undefined"!==typeof window&&(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]);var i=n("5176"),o=n.n(i),a=(n("f559"),n("a4bb")),s=n.n(a),u=(n("6762"),n("2fdb"),n("a745")),l=n.n(u);function c(e){if(l()(e))return e}var f=n("5d73"),d=n.n(f);function h(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=d()(e);!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function m(e,t){return c(e)||h(e,t)||p()}function g(e){if(l()(e)){for(var t=0,n=new Array(e.length);t=o?i.length:i.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}function T(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function D(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),T.call(t,e,n)}}function P(e){if(!e||1!==e.length)return!1;var t=m(e,1),n=t[0].componentOptions;return!!n&&["transition-group","TransitionGroup"].includes(n.tag)}function M(e,t){var n=t.header,r=t.footer,i=0,o=0;return n&&(i=n.length,e=e?[].concat(x(n),x(e)):x(n)),r&&(o=r.length,e=e?[].concat(x(e),x(r)):x(r)),{children:e,headerOffset:i,footerOffset:o}}function N(e,t){var n=null,r=function(e,t){n=E(n,e,t)},i=s()(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(r("attrs",i),!t)return n;var a=t.on,u=t.props,l=t.attrs;return r("on",a),r("props",u),o()(n.attrs,l),n}var R=["Start","Add","Remove","Update","End"],I=["Choose","Sort","Filter","Clone"],F=["Move"].concat(R,I).map((function(e){return"on"+e})),j=null,L={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},B={name:"draggable",inheritAttrs:!1,props:L,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=P(t);var n=M(t,this.$slots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var a=N(this.$attrs,this.componentData);return e(this.getTag(),a,r)},created:function(){null!==this.list&&null!==this.value&&C["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&C["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&C["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};R.forEach((function(n){t["on"+n]=D.call(e,n)})),I.forEach((function(n){t["on"+n]=T.bind(e,n)}));var n=s()(this.$attrs).reduce((function(t,n){return t[Object(C["a"])(n)]=e.$attrs[n],t}),{}),r=o()({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new k.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(C["a"])(t);-1===F.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1===this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=A(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=O(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&"transition-group"===t.$options._componentTag?t.$parent:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=x(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,x(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,a={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var s=r.getUnderlyingVm(n);if(s)return o()(s,a)}return a},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),j=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(C["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(C["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(C["d"])(e.clone)},onDragUpdate:function(e){Object(C["d"])(e.item),Object(C["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=x(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),i=e.component.getVmIndex(r),o=-1!==n.indexOf(j);return o||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,a=this.computeFutureIndex(r,e);o()(i,{futureIndex:a});var s=o()({},e,{relatedContext:r,draggedContext:i});return n(s,t)},onDragEnd:function(){this.computeIndexes(),j=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",B);var U=B;t["default"]=U}})["default"]}))},"1a2d":function(e,t,n){var r=n("42a2"),i=n("1310"),o="[object Map]";function a(e){return i(e)&&r(e)==o}e.exports=a},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1bac":function(e,t,n){var r=n("7d1f"),i=n("a029"),o=n("9934");function a(e){return r(e,o,i)}e.exports=a},"1c3c":function(e,t,n){var r=n("9e69"),i=n("2474"),o=n("9638"),a=n("a2be"),s=n("edfa"),u=n("ac41"),l=1,c=2,f="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",q="[object ArrayBuffer]",w="[object DataView]",_=r?r.prototype:void 0,x=_?_.valueOf:void 0;function S(e,t,n,r,_,S,k){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case q:return!(e.byteLength!=t.byteLength||!S(new i(e),new i(t)));case f:case d:case m:return o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case p:var C=s;case v:var E=r&l;if(C||(C=u),e.size!=t.size&&!E)return!1;var O=k.get(e);if(O)return O==t;r|=c,k.set(e,t);var A=a(C(e),C(t),r,_,S,k);return k["delete"](e),A;case b:if(x)return x.call(e)==x.call(t)}return!1}e.exports=S},"1cec":function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Promise");e.exports=o},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=l(e),a=r[0],s=r[1],u=new o(f(e,a,s)),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ou?u:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fc8":function(e,t,n){var r=n("4245");function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},"20ec":function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},2286:function(e,t,n){var r=n("85e3"),i=Math.max;function o(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);while(++a0?"dans "+i:"il y a "+i:i}return{localize:t}}e.exports=n},"234d":function(e,t,n){var r=n("e380"),i=500;function o(e){var t=r(e,(function(e){return n.size===i&&n.clear(),e})),n=t.cache;return t}e.exports=o},2376:function(e,t,n){var r=n("90e5");function i(){var e=["janv.","févr.","mars","avr.","mai","juin","juill.","août","sept.","oct.","nov.","déc."],t=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],n=["di","lu","ma","me","je","ve","sa"],i=["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],s=["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],u=["AM","PM"],l=["am","pm"],c=["du matin","de l’après-midi","du soir"],f={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return s[e.getDay()]},A:function(e){return e.getHours()/12>=1?u[1]:u[0]},a:function(e){return e.getHours()/12>=1?l[1]:l[0]},aa:function(e){var t=e.getHours();return t<=12?c[0]:t<=16?c[1]:c[2]},Wo:function(e,t){return a(t.W(e))}},d=["M","D","DDD","d","Q"];d.forEach((function(e){f[e+"o"]=function(t,n){return o(n[e](t))}}));var h=["MMM","MMMM"];return h.forEach((function(e){f["Do "+e]=function(t,n){var r=1===t.getDate()?"Do":"D",i=f[r]||n[r];return i(t,n)+" "+f[e](t)}})),{formatters:f,formattingTokensRegExp:r(f)}}function o(e){return 1===e?"1er":e+"e"}function a(e){return 1===e?"1re":e+"e"}e.exports=i},"242e":function(e,t,n){var r=n("72af"),i=n("ec69");function o(e,t){return e&&r(e,t,i)}e.exports=o},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var u={adapter:s(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(o)})),e.exports=u}).call(this,n("4362"))},2474:function(e,t,n){var r=n("2b3e"),i=r.Uint8Array;e.exports=i},2478:function(e,t,n){var r=n("4245");function i(e){return r(this,e).get(e)}e.exports=i},2524:function(e,t,n){var r=n("6044"),i="__lodash_hash_undefined__";function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=o},"253c":function(e,t,n){var r=n("3729"),i=n("1310"),o="[object Arguments]";function a(e){return i(e)&&r(e)==o}e.exports=a},"26df":function(e,t,n){ +(function(e,n){n(t)})(0,(function(e){"use strict";var t="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],longhand:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" até "};t.l10ns.pt=n;var r=t.l10ns;e.Portuguese=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},2333:function(e,t){function n(){var e={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"dans "+i:"il y a "+i:i}return{localize:t}}e.exports=n},"234d":function(e,t,n){var r=n("e380"),i=500;function o(e){var t=r(e,(function(e){return n.size===i&&n.clear(),e})),n=t.cache;return t}e.exports=o},2376:function(e,t,n){var r=n("90e5");function i(){var e=["janv.","févr.","mars","avr.","mai","juin","juill.","août","sept.","oct.","nov.","déc."],t=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],n=["di","lu","ma","me","je","ve","sa"],i=["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],s=["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],u=["AM","PM"],l=["am","pm"],c=["du matin","de l’après-midi","du soir"],f={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return s[e.getDay()]},A:function(e){return e.getHours()/12>=1?u[1]:u[0]},a:function(e){return e.getHours()/12>=1?l[1]:l[0]},aa:function(e){var t=e.getHours();return t<=12?c[0]:t<=16?c[1]:c[2]},Wo:function(e,t){return a(t.W(e))}},d=["M","D","DDD","d","Q"];d.forEach((function(e){f[e+"o"]=function(t,n){return o(n[e](t))}}));var h=["MMM","MMMM"];return h.forEach((function(e){f["Do "+e]=function(t,n){var r=1===t.getDate()?"Do":"D",i=f[r]||n[r];return i(t,n)+" "+f[e](t)}})),{formatters:f,formattingTokensRegExp:r(f)}}function o(e){return 1===e?"1er":e+"e"}function a(e){return 1===e?"1re":e+"e"}e.exports=i},"242e":function(e,t,n){var r=n("72af"),i=n("ec69");function o(e,t){return e&&r(e,t,i)}e.exports=o},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o=n("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function u(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:u(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),JSON.stringify(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l}).call(this,n("4362"))},2474:function(e,t,n){var r=n("2b3e"),i=r.Uint8Array;e.exports=i},2478:function(e,t,n){var r=n("4245");function i(e){return r(this,e).get(e)}e.exports=i},2524:function(e,t,n){var r=n("6044"),i="__lodash_hash_undefined__";function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=o},"253c":function(e,t,n){var r=n("3729"),i=n("1310"),o="[object Arguments]";function a(e){return i(e)&&r(e)==o}e.exports=a},"26df":function(e,t,n){ /* flatpickr v4.3.2, @license MIT */ (function(e,n){n(t)})(0,(function(e){"use strict";var t="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ändern scrollen",toggleTitle:"Zum Umschalten klicken"};t.l10ns.de=n;var r=t.l10ns;e.German=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},"26e8":function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(e,t){return u.call(t),c(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},"28c9":function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},"29d0":function(e,t){function n(){var e={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?i+"内":i+"前":i}return{localize:t}}e.exports=n},"29f3":function(e,t){var n=Object.prototype,r=n.toString;function i(e){return r.call(e)}e.exports=i},"2a63":function(e,t){function n(e,t){if(void 0!==e.one&&1===t)return e.one;var n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",t):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",t):e.pluralGenitive.replace("{{count}}",t)}function r(e){return function(t,r){return r.addSuffix?r.comparison>0?e.future?n(e.future,t):"через "+n(e.regular,t):e.past?n(e.past,t):n(e.regular,t)+" назад":n(e.regular,t)}}function i(){var e={lessThanXSeconds:r({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:r({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(e,t){return t.addSuffix?t.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:r({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:r({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:r({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:r({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:r({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXMonths:r({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:r({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:r({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:r({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:r({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:r({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})};function t(t,n,r){return r=r||{},e[t](n,r)}return{localize:t}}e.exports=i},"2b3e":function(e,t,n){var r=n("585a"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},"2b58":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qq=void 0;var r=n("9925"),i=u(r),o=n("7d8c"),a=u(o),s=n("5ab1");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e){var n=e.options;return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{callbackNames:s.s3,options:n,qq:a.default,type:"s3"}))}return f(t,e),t}(i.default);t.default=d,t.qq=a.default},"2ca0":function(e,t,n){var r=n("2333"),i=n("2376");e.exports={distanceInWords:r(),format:i()}},"2d7c":function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n0?"in "+i:i+" ago":i}return{localize:t}}e.exports=n},"2dcb":function(e,t,n){var r=n("91e9"),i=r(Object.getPrototypeOf,Object);e.exports=i},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2eae":function(e,t,n){"use strict";n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return g})),n.d(t,"j",(function(){return D})),n.d(t,"f",(function(){return A})),n.d(t,"g",(function(){return O})),n.d(t,"h",(function(){return M})),n.d(t,"k",(function(){return _})),n.d(t,"i",(function(){return x})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return b}));const r=65535,i=Math.pow(2,16);function o(e,t){return e+t*i}function a(e){return e&r}function s(e){return(e-(e&r))/i}class u{constructor(e,t=!1,n=null){this.pos=e,this.deleted=t,this.recover=n}}class l{constructor(e,t=!1){this.ranges=e,this.inverted=t}recover(e){let t=0,n=a(e);if(!this.inverted)for(let r=0;re)break;let c=this.ranges[s+i],f=this.ranges[s+a],d=l+c;if(e<=d){let i=c?e==l?-1:e==d?1:t:t,a=l+r+(i<0?0:f);if(n)return a;let h=o(s/3,e-l);return new u(a,t<0?e!=l:e!=d,h)}r+=f-c}return n?e+r:new u(e+r)}touches(e,t){let n=0,r=a(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;ae)break;let s=this.ranges[a+i],u=t+s;if(e<=u&&a==3*r)return!0;n+=this.ranges[a+o]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}}invert(){let e=new c;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;no&&t0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}}var h=n("304a");function p(){throw new Error("Override me")}const m=Object.create(null);class g{apply(e){return p()}getMap(){return l.empty}invert(e){return p()}map(e){return p()}merge(e){return null}toJSON(){return p()}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=m[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in m)throw new RangeError("Duplicate use of step JSON ID "+e);return m[e]=t,t.prototype.jsonID=e,t}}class v{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new v(e,null)}static fail(e){return new v(null,e)}static fromReplace(e,t,n,r){try{return v.ok(e.replace(t,n,r))}catch(i){if(i instanceof h["ReplaceError"])return v.fail(i.message);throw i}}}class y extends g{constructor(e,t,n,r){super(),this.from=e,this.to=t,this.slice=n,this.structure=!!r}apply(e){return this.structure&&q(e,this.from,this.to)?v.fail("Structure replace would overwrite content"):v.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new l([this.from,this.to-this.from,this.slice.size])}invert(e){return new y(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted?null:new y(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof y)||e.structure!=this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?h["Slice"].empty:new h["Slice"](e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new y(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?h["Slice"].empty:new h["Slice"](this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new y(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new y(t.from,t.to,h["Slice"].fromJSON(e,t.slice),!!t.structure)}}g.jsonID("replace",y);class b extends g{constructor(e,t,n,r,i,o,a){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=!!a}apply(e){if(this.structure&&(q(e,this.from,this.gapFrom)||q(e,this.gapTo,this.to)))return v.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return v.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?v.fromReplace(e,this.from,this.to,n):v.fail("Content does not fit in gap")}getMap(){return new l([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new b(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return t.deleted&&n.deleted||rn.pos?null:new b(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new b(t.from,t.to,t.gapFrom,t.gapTo,h["Slice"].fromJSON(e,t.slice),t.insert,!!t.structure)}}function q(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;while(i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));while(i>0){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function w(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function _(e){let t=e.parent,n=t.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let t=e.$from.node(r),i=e.$from.index(r),o=e.$to.indexAfter(r);if(ro;l--,c--){let e=i.node(l),t=i.index(l);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),o=r&&r[c]||e;if(o!=e&&(n=n.replaceChild(0,o.type.create(o.attrs))),!e.canReplace(t+1,e.childCount)||!o.type.validContent(n))return!1}let s=i.indexAfter(o),u=r&&r[0];return i.node(o).canReplaceWith(s,s,u?u.type:i.node(o+1).type)}function A(e,t){let n=e.resolve(t),r=n.index();return T(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function T(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function D(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let e,o,a=r.index(i);if(i==r.depth?(e=r.nodeBefore,o=r.nodeAfter):n>0?(e=r.node(i+1),a++,o=r.node(i).maybeChild(a)):(e=r.node(i).maybeChild(a-1),o=r.node(i+1)),e&&!e.isTextblock&&T(e,o)&&r.node(i).canReplace(a,a+1))return t;if(0==i)break;t=n<0?r.before(i):r.after(i)}}function P(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let i=r.depth-1;i>=0;i--){let e=r.index(i);if(r.node(i).canReplaceWith(e,e,n))return r.before(i+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let e=r.indexAfter(i);if(r.node(i).canReplaceWith(e,e,n))return r.after(i+1);if(e=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0);if(1==o?r.node(e).canReplace(n,n,i):r.node(e).contentMatchAt(n).findWrapping(i.firstChild.type))return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function N(e,t,n){let r=[];for(let i=0;it;p--)m||n.index(p)>0?(m=!0,l=h["Fragment"].from(n.node(p).copy(l)),c++):s--;let f=h["Fragment"].empty,d=0;for(let p=i,m=!1;p>t;p--)m||r.after(p+1)=0;o--)n=h["Fragment"].from(t[o].type.create(t[o].attrs,n));let r=e.start,i=e.end;return this.step(new b(r,i,r,i,new h["Slice"](n,0,0),t.length,!0))},d.prototype.setBlockType=function(e,t=e,n,r){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=this.steps.length;return this.doc.nodesBetween(e,t,(e,t)=>{if(e.isTextblock&&!e.hasMarkup(n,r)&&E(this.doc,this.mapping.slice(i).map(t),n)){this.clearIncompatible(this.mapping.slice(i).map(t,1),n);let o=this.mapping.slice(i),a=o.map(t,1),s=o.map(t+e.nodeSize,1);return this.step(new b(a,s,a+1,s-1,new h["Slice"](h["Fragment"].from(n.create(r,null,e.marks)),0,0),1,!0)),!1}}),this},d.prototype.setNodeMarkup=function(e,t,n,r){let i=this.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let o=t.create(n,null,r||i.marks);if(i.isLeaf)return this.replaceWith(e,e+i.nodeSize,o);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new b(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new h["Slice"](h["Fragment"].from(o),0,0),1,!0))},d.prototype.split=function(e,t=1,n){let r=this.doc.resolve(e),i=h["Fragment"].empty,o=h["Fragment"].empty;for(let a=r.depth,s=r.depth-t,u=t-1;a>s;a--,u--){i=h["Fragment"].from(r.node(a).copy(i));let e=n&&n[u];o=h["Fragment"].from(e?e.type.create(e.attrs,o):r.node(a).copy(o))}return this.step(new y(e,e,new h["Slice"](i.append(o),t,t),!0))},d.prototype.join=function(e,t=1){let n=new y(e-t,e+t,h["Slice"].empty,!0);return this.step(n)};class R extends g{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new h["Slice"](N(t.content,(e,t)=>t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,r),t.openStart,t.openEnd);return v.fromReplace(e,this.from,this.to,i)}invert(){return new I(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new R(t.pos,n.pos,this.mark)}merge(e){if(e instanceof R&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new R(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new R(t.from,t.to,e.markFromJSON(t.mark))}}g.jsonID("addMark",R);class I extends g{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new h["Slice"](N(t.content,e=>e.mark(this.mark.removeFromSet(e.marks))),t.openStart,t.openEnd);return v.fromReplace(e,this.from,this.to,n)}invert(){return new R(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new I(t.pos,n.pos,this.mark)}merge(e){if(e instanceof I&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new I(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new I(t.from,t.to,e.markFromJSON(t.mark))}}function F(e,t,n=t,r=h["Slice"].empty){if(t==n&&!r.size)return null;let i=e.resolve(t),o=e.resolve(n);return j(i,o,r)?new y(t,n,r):new L(i,o,r).fit()}function j(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}g.jsonID("removeMark",I),d.prototype.addMark=function(e,t,n){let r=[],i=[],o=null,a=null;return this.doc.nodesBetween(e,t,(s,u,l)=>{if(!s.isInline)return;let c=s.marks;if(!n.isInSet(c)&&l.type.allowsMarkType(n.type)){let l=Math.max(u,e),f=Math.min(u+s.nodeSize,t),d=n.addToSet(c);for(let e=0;ethis.step(e)),i.forEach(e=>this.step(e)),this},d.prototype.removeMark=function(e,t,n=null){let r=[],i=0;return this.doc.nodesBetween(e,t,(o,a)=>{if(!o.isInline)return;i++;let s=null;if(n instanceof h["MarkType"]){let e=n.isInSet(o.marks);e&&(s=[e])}else n?n.isInSet(o.marks)&&(s=[n]):s=o.marks;if(s&&s.length){let n=Math.min(a+o.nodeSize,t);for(let t=0;tthis.step(new I(e.from,e.to,e.style))),this},d.prototype.clearIncompatible=function(e,t,n=t.contentMatch){let r=this.doc.nodeAt(e),i=[],o=e+1;for(let a=0;a=0;a--)this.step(i[a]);return this},d.prototype.replace=function(e,t=e,n=h["Slice"].empty){let r=F(this.doc,e,t,n);return r&&this.step(r),this},d.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new h["Slice"](h["Fragment"].from(n),0,0))},d.prototype.delete=function(e,t){return this.replace(e,t,h["Slice"].empty)},d.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};class L{constructor(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}this.placed=h["Fragment"].empty;for(let r=e.depth;r>0;r--)this.placed=h["Fragment"].from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){while(this.unplaced.size){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=e<0?this.$to:n.doc.resolve(e);if(this.close(r)){let i=this.placed,o=n.depth,a=r.depth;while(o&&a&&1==i.childCount)i=i.firstChild.content,o--,a--;let s=new h["Slice"](i,o,a);if(e>-1)return new b(n.pos,e,this.$to.pos,this.$to.end(),s,t);if(s.size||n.pos!=this.$to.pos)return new y(n.pos,r.pos,s)}return null}findFittable(){for(let e=1;e<=2;e++)for(let t=this.unplaced.openStart;t>=0;t--){let n,r;t?(r=z(this.unplaced.content,t-1).firstChild,n=r.content):n=this.unplaced.content;let i=n.firstChild;for(let o=this.depth;o>=0;o--){let n,a,{type:s,match:u}=this.frontier[o];if(1==e&&(i?u.matchType(i.type)||(a=u.fillBefore(h["Fragment"].from(i),!1)):s.compatibleContent(r.type)))return{sliceDepth:t,frontierDepth:o,parent:r,inject:a};if(2==e&&i&&(n=u.findWrapping(i.type)))return{sliceDepth:t,frontierDepth:o,parent:r,wrap:n};if(r&&u.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=z(e,t);return!(!r.childCount||r.firstChild.isLeaf)&&(this.unplaced=new h["Slice"](e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=z(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new h["Slice"](B(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new h["Slice"](B(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){while(this.depth>t)this.closeFrontierNode();if(i)for(let h=0;h1||0==s||e.content.size)&&(c=t,l.push(H(e.mark(f.allowedMarks(e.marks)),1==u?s:0,u==a.childCount?d:-1)))}let p=u==a.childCount;p||(d=-1),p&&d<0&&n&&n.type==this.frontier[this.depth].type?this.closeFrontierNode():this.frontier[t].match=c;for(let h=0,m=a;h1&&r==this.$to.end(--n))++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=$(e,t,r,n,!1);if(i){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=$(e,n,r,t,!0);if(!i||i.childCount)continue e}return{depth:t,fit:i}}}}close(e){let t=this.findCloseLevel(e);if(!t)return!1;while(this.depth>t.depth)this.closeFrontierNode();t.fit.childCount&&(this.placed=U(this.placed,t.depth,t.fit));for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return!0}openFrontierNode(e,t,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=U(this.placed,this.depth,h["Fragment"].from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop(),t=e.match.fillBefore(h["Fragment"].empty,!0);t.childCount&&(this.placed=U(this.placed,this.frontier.length,t))}}function B(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(B(e.firstChild.content,t-1,n)))}function U(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(U(e.lastChild.content,t-1,n)))}function z(e,t){for(let n=0;n1&&(r=r.replaceChild(0,H(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(h["Fragment"].empty,!0)))),e.copy(r)}function $(e,t,n,r,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!V(n,o.content,a)?s:null}function V(e,t,n){for(let r=n;rr){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(h["Fragment"].empty,!0))}return e}function X(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(rt.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;r==t.start(i)&&n.push(i)}return n}d.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);let r=this.doc.resolve(e),i=this.doc.resolve(t);if(j(r,i,n))return this.step(new y(e,t,n));let o=X(r,this.doc.resolve(t));0==o[o.length-1]&&o.pop();let a=-(r.depth+1);o.unshift(a);for(let f=r.depth,d=r.pos-1;f>0;f--,d--){let e=r.node(f).type.spec;if(e.defining||e.isolating)break;o.indexOf(f)>-1?a=f:r.before(f)==d&&o.splice(1,0,-f)}let s=o.indexOf(a),u=[],l=n.openStart;for(let f=n.content,d=0;;d++){let e=f.firstChild;if(u.push(e),d==n.openStart)break;f=e.content}l>0&&u[l-1].type.spec.defining&&r.node(s).type!=u[l-1].type?l-=1:l>=2&&u[l-1].isTextblock&&u[l-2].type.spec.defining&&r.node(s).type!=u[l-2].type&&(l-=2);for(let f=n.openStart;f>=0;f--){let e=(f+l+1)%(n.openStart+1),a=u[e];if(a)for(let u=0;u=0;f--){if(this.replace(e,t,n),this.steps.length>c)break;let a=o[f];f<0||(e=r.before(a),t=i.after(a))}return this},d.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){let r=P(this.doc,e,n.type);null!=r&&(e=t=r)}return this.replaceRange(e,t,new h["Slice"](h["Fragment"].from(n),0,0))},d.prototype.deleteRange=function(e,t){let n=this.doc.resolve(e),r=this.doc.resolve(t),i=X(n,r);for(let o=0;o0&&(t||n.node(e-1).canReplace(n.index(e-1),r.indexAfter(e-1))))return this.delete(n.before(e),r.after(e))}for(let o=1;o<=n.depth&&o<=r.depth;o++)if(e-n.start(o)==n.depth-o&&t>n.end(o)&&r.end(o)-t!=r.depth-o)return this.delete(n.before(o),t);return this.delete(e,t)}},"2ec1d":function(e,t,n){var r=n("100e"),i=n("9aff");function o(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);while(++r=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return M}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function u(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=u(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function f(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,p);var m=function(e){this.register([],e,!1)};function g(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;g(e.concat(r),t.getChild(r),n.modules[r])}}m.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},m.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},m.prototype.update=function(e){g([],this.root,e)},m.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&l(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},m.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},m.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v;var y=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,u=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return u.call(i,e,t,n)},this.strict=r;var l=this._modules.root.state;x(this,l,[],this._modules.root),_(this,l),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:v.config.devtools;c&&a(this)},b={state:{configurable:!0}};function q(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;x(e,n,[],e._modules.root,!0),_(e,n,t)}function _(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};l(i,(function(t,n){o[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=a,e.strict&&A(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function x(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=T(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){v.set(s,u,r.state)}))}var l=r.context=S(e,a,n);r.forEachMutation((function(t,n){var r=a+n;C(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;E(e,r,i,l)})),r.forEachGetter((function(t,n){var r=a+n;O(e,r,t,l)})),r.forEachChild((function(r,o){x(e,t,n.concat(o),r,i)}))}function S(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=D(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=t+u),e.dispatch(u,a)},commit:r?e.commit:function(n,r,i){var o=D(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=t+u),e.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return k(e,t)}},state:{get:function(){return T(e.state,n)}}}),i}function k(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function C(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function E(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return f(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function O(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function A(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function T(e,t){return t.reduce((function(e,t){return e[t]}),e)}function D(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function P(e){v&&e===v||(v=e,r(v))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(e){0},y.prototype.commit=function(e,t,n){var r=this,i=D(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},y.prototype.dispatch=function(e,t){var n=this,r=D(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(l){0}var u=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(l){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(l){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return q(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return q(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),x(this,this.state,e,this._modules.get(e),n.preserveState),_(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=T(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),w(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,b);var M=B((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=U(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),N=B((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=U(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),R=B((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||U(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),I=B((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=U(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),F=function(e){return{mapState:M.bind(null,e),mapGetters:R.bind(null,e),mapMutations:N.bind(null,e),mapActions:I.bind(null,e)}};function j(e){return L(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function L(e){return Array.isArray(e)||c(e)}function B(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function U(e,t,n){var r=e._modulesNamespaceMap[n];return r}function z(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var f=u(e.state);"undefined"!==typeof c&&(s&&e.subscribe((function(e,o){var a=u(o);if(n(e,f,a)){var s=V(),l=i(e),d="mutation "+e.type+s;H(c,d,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),$(c)}f=a})),l&&e.subscribeAction((function(e,n){if(o(e,n)){var r=V(),i=a(e),s="action "+e.type+r;H(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),$(c)}})))}}function H(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function $(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function V(){var e=new Date;return" @ "+X(e.getHours(),2)+":"+X(e.getMinutes(),2)+":"+X(e.getSeconds(),2)+"."+X(e.getMilliseconds(),3)}function W(e,t){return new Array(t+1).join(e)}function X(e,t){return W("0",t-e.toString().length)+e}var Y={Store:y,install:P,version:"3.6.2",mapState:M,mapMutations:N,mapGetters:R,mapActions:I,createNamespacedHelpers:F,createLogger:z};t["a"]=Y}).call(this,n("c8ba"))},"2fcc":function(e,t){function n(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=n},"304a":function(e,t,n){"use strict";function r(e){this.content=e}n.r(t),n.d(t,"ContentMatch",(function(){return U})),n.d(t,"DOMParser",(function(){return he})),n.d(t,"DOMSerializer",(function(){return Ae})),n.d(t,"Fragment",(function(){return u})),n.d(t,"Mark",(function(){return h})),n.d(t,"MarkType",(function(){return ce})),n.d(t,"Node",(function(){return F})),n.d(t,"NodeRange",(function(){return N})),n.d(t,"NodeType",(function(){return ae})),n.d(t,"ReplaceError",(function(){return p})),n.d(t,"ResolvedPos",(function(){return A})),n.d(t,"Schema",(function(){return fe})),n.d(t,"Slice",(function(){return m})),r.prototype={constructor:r,find:function(e){for(var t=0;t>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var i=r,o=i;function a(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var i=e.child(r),o=t.child(r);if(i!=o){if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(var s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){var u=a(i.content,o.content,n+1);if(null!=u)return u}n+=i.nodeSize}else n+=i.nodeSize}}function s(e,t,n,r){for(var i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:n,b:r};var a=e.child(--i),u=t.child(--o),l=a.nodeSize;if(a!=u){if(!a.sameMarkup(u))return{a:n,b:r};if(a.isText&&a.text!=u.text){var c=0,f=Math.min(a.text.length,u.text.length);while(ce&&!1!==n(s,r+a,i,o)&&s.content.size){var l=a+1;s.nodesBetween(Math.max(0,e-l),Math.min(s.content.size,t-l),n,r+l)}a=u}},u.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},u.prototype.textBetween=function(e,t,n,r){var i="",o=!0;return this.nodesBetween(e,t,(function(a,s){a.isText?(i+=a.text.slice(Math.max(e,s)-s,t-s),o=!n):a.isLeaf&&r?(i+=r,o=!n):!o&&a.isBlock&&(i+=n,o=!0)}),0),i},u.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);ie)for(var i=0,o=0;oe&&((ot)&&(a=a.isText?a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),n.push(a),r+=a.nodeSize),o=s}return new u(n,r)},u.prototype.cutByIndex=function(e,t){return e==t?u.empty:0==e&&t==this.content.length?this:new u(this.content.slice(e,t))},u.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new u(r,i)},u.prototype.addToStart=function(e){return new u([e].concat(this.content),this.size+e.nodeSize)},u.prototype.addToEnd=function(e){return new u(this.content.concat(e),this.size+e.nodeSize)},u.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;tthis.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e||t>0?f(n+1,o):f(n,r);r=o}},u.prototype.toString=function(){return"<"+this.toStringInner()+">"},u.prototype.toStringInner=function(){return this.content.join(", ")},u.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},u.fromJSON=function(e,t){if(!t)return u.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new u(t.map(e.nodeFromJSON))},u.fromArray=function(e){if(!e.length)return u.empty;for(var t,n=0,r=0;rthis.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t},h.prototype.removeFromSet=function(e){for(var t=0;te.depth)throw new p("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new p("Inconsistent open depths");return q(e,t,n,0)}function q(e,t,n,r){var i=e.index(r),o=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function S(e,t,n,r){var i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(x(e.nodeAfter,r),o++));for(var s=o;si&&_(e,t,i+1),a=r.depth>i&&_(n,r,i+1),s=[];return S(null,e,i,s),o&&a&&t.index(i)==n.index(i)?(w(o,a),x(k(o,C(e,t,n,r,i+1)),s)):(o&&x(k(o,E(e,t,i+1)),s),S(t,n,i,s),a&&x(k(a,E(n,r,i+1)),s)),S(r,null,i,s),new u(s)}function E(e,t,n){var r=[];if(S(null,e,n,r),e.depth>n){var i=_(e,t,n+1);x(k(i,E(e,t,n+1)),r)}return S(t,null,n,r),new u(r)}function O(e,t){for(var n=t.depth-e.openStart,r=t.node(n),i=r.copy(e.content),o=n-1;o>=0;o--)i=t.node(o).copy(u.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}g.size.get=function(){return this.content.size-this.openStart-this.openEnd},m.prototype.insertAt=function(e,t){var n=y(this.content,e+this.openStart,t,null);return n&&new m(n,this.openStart,this.openEnd)},m.prototype.removeBetween=function(e,t){return new m(v(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},m.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},m.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},m.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},m.fromJSON=function(e,t){if(!t)return m.empty;var n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new m(u.fromJSON(e,t.content),t.openStart||0,t.openEnd||0)},m.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,r=0,i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(var o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)r++;return new m(e,n,r)},Object.defineProperties(m.prototype,g),m.empty=new m(u.empty,0,0);var A=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},T={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};A.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},T.parent.get=function(){return this.node(this.depth)},T.doc.get=function(){return this.node(0)},A.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},A.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},A.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},A.prototype.start=function(e){return e=this.resolveDepth(e),0==e?0:this.path[3*e-1]+1},A.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},A.prototype.before=function(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},A.prototype.after=function(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},T.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},T.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r},T.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},A.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return h.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var i=n;n=r,r=i}for(var o=n.marks,a=0;a0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},A.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new N(this,e,n)},A.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},A.prototype.max=function(e){return e.pos>this.pos?e:this},A.prototype.min=function(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],r=0,i=t,o=e;;){var a=o.content.findIndex(i),s=a.index,u=a.offset,l=i-u;if(n.push(o,s,r+u),!l)break;if(o=o.child(s),o.isText)break;i=l-1,r+=u+1}return new A(t,n,i)},A.resolveCached=function(e,t){for(var n=0;ne&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(r=!0),!r})),r},j.isBlock.get=function(){return this.type.isBlock},j.isTextblock.get=function(){return this.type.isTextblock},j.inlineContent.get=function(){return this.type.inlineContent},j.isInline.get=function(){return this.type.isInline},j.isText.get=function(){return this.type.isText},j.isLeaf.get=function(){return this.type.isLeaf},j.isAtom.get=function(){return this.type.isAtom},F.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),B(this.marks,e)},F.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},F.prototype.canReplace=function(e,t,n,r,i){void 0===n&&(n=u.empty),void 0===r&&(r=0),void 0===i&&(i=n.childCount);var o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=r;s=0;n--)t=e[n].type.name+"("+t+")";return t}var U=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},z={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};U.parse=function(e,t){var n=new H(e,t);if(null==n.next)return U.empty;var r=V(n);n.next&&n.err("Unexpected trailing text");var i=te(Q(r));return ne(i,n),i},U.prototype.matchType=function(e){for(var t=0;t>1},U.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},U.prototype.toString=function(){var e=[];function t(n){e.push(n);for(var r=1;r"+e.indexOf(t.next[i+1]);return r})).join("\n")},Object.defineProperties(U.prototype,z),U.empty=new U(!0);var H=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.unshift()},$={next:{configurable:!0}};function V(e){var t=[];do{t.push(W(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function W(e){var t=[];do{t.push(X(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function X(e){for(var t=J(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=G(e,t)}return t}function Y(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function G(e,t){var n=Y(e),r=n;return e.eat(",")&&(r="}"!=e.next?Y(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function K(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var i=[];for(var o in n){var a=n[o];a.groups.indexOf(t)>-1&&i.push(a)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i}function J(e){if(e.eat("(")){var t=V(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=K(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}function Q(e){var t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach((function(e){return e.to=t}))}function o(e,t){if("choice"==e.type)return e.exprs.reduce((function(e,n){return e.concat(o(n,t))}),[]);if("seq"==e.type)for(var a=0;;a++){var s=o(e.exprs[a],t);if(a==e.exprs.length-1)return s;i(s,t=n())}else{if("star"==e.type){var u=n();return r(t,u),i(o(e.expr,u),u),[r(u)]}if("plus"==e.type){var l=n();return i(o(e.expr,t),l),i(o(e.expr,l),l),[r(l)]}if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){for(var c=t,f=0;f-1&&i[o+1];ee(e,r).forEach((function(e){a||i.push(n,a=[]),-1==a.indexOf(e)&&a.push(e)}))}}))}));for(var o=t[r.join(",")]=new U(r.indexOf(e.length-1)>-1),a=0;a-1},ae.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t-1};var fe=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=o.from(e.nodes),this.spec.marks=o.from(e.marks),this.nodes=ae.compile(this.spec.nodes,this),this.marks=ce.compile(this.spec.marks,this);var n=Object.create(null);for(var r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");var i=this.nodes[r],a=i.spec.content||"",s=i.spec.marks;i.contentMatch=n[a]||(n[a]=U.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet="_"==s?null:s?de(this,s.split(" ")):""!=s&&i.inlineContent?null:[]}for(var u in this.marks){var l=this.marks[u],c=l.spec.excludes;l.excluded=null==c?[l]:""==c?[]:de(this,c.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function de(e,t){for(var n=[],r=0;r-1)&&n.push(a=u)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}fe.prototype.node=function(e,t,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof ae))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)},fe.prototype.text=function(e,t){var n=this.nodes.text;return new L(n,n.defaultAttrs,e,h.setFrom(t))},fe.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},fe.prototype.nodeFromJSON=function(e){return F.fromJSON(this,e)},fe.prototype.markFromJSON=function(e){return h.fromJSON(this,e)},fe.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var he=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)}))};he.prototype.parse=function(e,t){void 0===t&&(t={});var n=new _e(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},he.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new _e(this,t,!0);return n.addAll(e,null,t.from,t.to),m.maxOpen(n.finish())},he.prototype.matchTag=function(e,t){for(var n=0;ne.length&&(61!=i.style.charCodeAt(e.length)||i.style.slice(e.length+1)!=t))){if(i.getAttrs){var o=i.getAttrs(t);if(!1===o)continue;i.attrs=o}return i}}},he.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r=0;r--){var i=this.nodes[r],o=i.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=i,!o.length))break;if(i.solid)break}if(!t)return!1;this.sync(n);for(var a=0;athis.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},_e.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},_e.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},xe.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e},_e.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=function(e,s){for(;e>=0;e--){var u=n[e];if(""==u){if(e==n.length-1||0==e)continue;for(;s>=o;s--)if(a(e-1,s))return!0;return!1}var l=s>0||0==s&&i?t.nodes[s].type:r&&s>=o?r.node(s-o).type:null;if(!l||l.name!=u&&-1==l.groups.indexOf(u))return!1;s--}return!0};return a(n.length-1,this.open)},_e.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var i=this.parser.schema.nodes[r];if(i.isTextblock&&i.defaultAttrs)return i}},_e.prototype.addPendingMark=function(e){this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},_e.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var r=this.nodes[n],i=r.pendingMarks.lastIndexOf(e);if(i>-1?r.pendingMarks=e.removeFromSet(r.pendingMarks):r.activeMarks=e.removeFromSet(r.activeMarks),r==t)break}},Object.defineProperties(_e.prototype,xe);var Ae=function(e,t){this.nodes=e||{},this.marks=t||{}};function Te(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function De(e){return e.document||window.document}Ae.prototype.serializeFragment=function(e,t,n){var r=this;void 0===t&&(t={}),n||(n=De(t).createDocumentFragment());var i=n,o=null;return e.forEach((function(e){if(o||e.marks.length){o||(o=[]);var n=0,a=0;while(n=0;r--){var i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n},Ae.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&Ae.renderSpec(De(n),r(e,t))},Ae.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};var r=t[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));var o=null,a=n?e.createElementNS(n,r):e.createElement(r),s=t[1],u=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s))for(var l in u=2,s)if(null!=s[l]){var c=l.indexOf(" ");c>0?a.setAttributeNS(l.slice(0,c),l.slice(c+1),s[l]):a.setAttribute(l,s[l])}for(var f=u;fu)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}var h=Ae.renderSpec(e,d,n),p=h.dom,m=h.contentDOM;if(a.appendChild(p),m){if(o)throw new RangeError("Multiple content holes");o=m}}return{dom:a,contentDOM:o}},Ae.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ae(this.nodesFromSchema(e),this.marksFromSchema(e)))},Ae.nodesFromSchema=function(e){var t=Te(e.nodes);return t.text||(t.text=function(e){return e.text}),t},Ae.marksFromSchema=function(e){return Te(e.marks)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"30c9":function(e,t,n){var r=n("9520"),i=n("b218");function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},"320c":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function a(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}e.exports=a()?Object.assign:function(e,t){for(var n,a,s=o(e),u=1;u0?(g=i(e),v=i(t)):(g=i(t),v=i(e));var b,q=o(v,g),w=v.getTimezoneOffset()-g.getTimezoneOffset(),_=Math.round(q/60)-w;if(_<2)return d.includeSeconds?q<5?m("lessThanXSeconds",5,y):q<10?m("lessThanXSeconds",10,y):q<20?m("lessThanXSeconds",20,y):q<40?m("halfAMinute",null,y):m(q<60?"lessThanXMinutes":"xMinutes",1,y):0===_?m("lessThanXMinutes",1,y):m("xMinutes",_,y);if(_<45)return m("xMinutes",_,y);if(_<90)return m("aboutXHours",1,y);if(_r.relevance&&(r=o),o.relevance>n.relevance&&(r=n,n=o));return r.language&&(n.secondBest=r),n}function x(e,t,n){var r=n||{},i=r.prefix;return null!==i&&void 0!==i||(i=l),M(E(e,t,!0,i))}function S(e,t){var n=t(a);n.rawDefinition=t.bind(null,a),q[e]=n,b.push(e),n.aliases&&C(e,n.aliases)}function k(){return b.concat()}function C(e,t){var n,r,i,o,a=e;for(n in t&&(a={},a[e]=t),a){r=a[n],r="string"===typeof r?[r]:r,i=r.length,o=-1;while(++o");return b+=a,a.length}function A(e){var t;e.className&&(t=j(e.className,[])),t&&(f.push(t),y.push(f),f=t.children),s=Object.create(e,{parent:{value:s}})}function T(){var e=s.subLanguage?D():P();return b="",e}function D(){var e,t="string"===typeof s.subLanguage;return t&&!q[s.subLanguage]?I(b,[]):(e=t?E(s.subLanguage,b,!0,r,v[s.subLanguage]):_(b,{subset:0===s.subLanguage.length?void 0:s.subLanguage,prefix:r}),e.language?(s.relevance>0&&(w+=e.relevance),t&&(v[s.subLanguage]=e.top),[j(e.language,e.value,!0)]):[F(b)])}function P(){var e,t,n,r,i=[];if(!s.keywords)return I(b,i);e=0,s.lexemesRe.lastIndex=0,t=s.lexemesRe.exec(b);while(t)I(b.slice(e,t.index),i),r=L(s,t),r?(w+=r[1],n=j(r[0],[]),i.push(n),I(t[0],n.children)):I(t[0],i),e=s.lexemesRe.lastIndex,t=s.lexemesRe.exec(b);return I(b.slice(e),i),i}function M(e,t){var n,r=e.length,i=-1;while(++i0){if(o=s.exec(i),null===o){l+=i;break}l+=i.slice(0,o.index),i=i.slice(o.index+o[0].length),o[0][0]===v&&o[1]?l+=v+String(Number(o[1])+r):(l+=o[0],o[0]===m&&u++)}l+=g}return l}function o(t,n){return new RegExp(a(t),"m"+(e[c]?"i":"")+(n?"g":""))}function a(e){return e&&e.source||e}t(e)}function A(e,t){var n,r={};if("string"===typeof e)i("keyword",e);else for(n in e)i(n,e[n]);return r;function i(e,n){var r=t?n.toLowerCase():n;o(e,r.split(h))}function o(e,t){var n,i=t.length,o=-1;while(++on.bottom-y(r,"bottom")&&(l=t.bottom-n.bottom+y(i,"bottom")),t.leftn.right-y(r,"right")&&(s=t.right-n.right+y(i,"right")),s||l)if(e)a.scrollBy(s,l);else{let e=u.scrollLeft,n=u.scrollTop;l&&(u.scrollTop+=l),s&&(u.scrollLeft+=s);let r=u.scrollLeft-e,i=u.scrollTop-n;t={left:t.left-r,top:t.top-i,right:t.right-r,bottom:t.bottom-i}}if(e)break}}function q(e){let t,n,r=e.dom.getBoundingClientRect(),i=Math.max(0,r.top);for(let o=(r.left+r.right)/2,a=i+1;a=i-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:w(e.dom)}}function w(e){let t=[],n=e.ownerDocument;for(;e;e=s(e))if(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e==n)break;return t}function _({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;x(n,0==r?0:r-t)}function x(e,t){for(let n=0;n=s){a=Math.max(f.bottom,a),s=Math.min(f.top,s);let e=f.left>t.left?f.left-t.left:f.right=(f.left+f.right)/2?1:0));continue}}!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(o=c+1)}}return n&&3==n.nodeType?E(n,r):!n||i&&1==n.nodeType?{node:e,offset:o}:C(n,r)}function E(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}function O(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function A(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function D(e,t,n,r){let i=-1;for(let o=t;;){if(o==e.dom)break;let t=e.docView.nearestDesc(o,!0);if(!t)return null;if(t.node.isBlock&&t.parent){let e=t.dom.getBoundingClientRect();if(e.left>r.left||e.top>r.top)i=t.posBefore;else{if(!(e.right-1?i:e.docView.posFromDOM(t,n)}function P(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&r++}n==e.dom&&r==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:0!=r&&1==n.nodeType&&"BR"==n.childNodes[r-1].nodeName||(a=D(e,n,r,t))}null==a&&(a=T(e,s,t));let u=e.docView.nearestDesc(s,!0);return{pos:a,inside:u?u.posAtStart-u.border:-1}}function N(e,t){let n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}function R(e,t){let{node:n,offset:r}=e.docView.domFromPos(t);if(3==n.nodeType&&(o.webkit||o.gecko)){let e=N(u(n,r,r),0);if(o.gecko&&r&&/\s/.test(n.nodeValue[r-1])&&r0&&r{let{node:t}=e.docView.domFromPos(i.pos);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.dom;break}t=n.dom.parentNode}let r=R(e,i.pos);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=u(e,0,e.nodeValue.length).getClientRects()}for(let e=0;ei.top&&("up"==n?i.bottomr.bottom-1))return!1}}return!0})}const B=/[\u0590-\u08ac]/;function U(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=getSelection();return B.test(r.parent.textContent)&&s.modify?j(e,t,()=>{let t=s.getRangeAt(0),i=s.focusNode,o=s.focusOffset,a=s.caretBidiLevel;s.modify("move",n,"character");let u=r.depth?e.docView.domAfterPos(r.before()):e.dom,l=!u.contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||i==s.focusNode&&o==s.focusOffset;return s.removeAllRanges(),s.addRange(t),null!=a&&(s.caretBidiLevel=a),l}):"left"==n||"backward"==n?o:a}let z=null,H=null,$=!1;function V(e,t,n){return z==t&&H==n?$:(z=t,H=n,$="up"==n||"down"==n?L(e,t,n):U(e,t,n))}var W=n("304a");const X=0,Y=1,G=2,K=3;class J{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=X}matchesWidget(){return!1}matchesMark(){return!1}matchesNode(){return!1}matchesHack(){return!1}get beforePosition(){return!1}parseRule(){return null}stopEvent(){return!1}get size(){let e=0;for(let t=0;t0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i&&(!t||i.node)){if(!n||!i.nodeDOM||(1==i.nodeDOM.nodeType?i.nodeDOM.contains(1==e.nodeType?e:e.parentNode):i.nodeDOM==e))return i;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let n=t;n;n=n.parent)if(n==this)return t}posFromDOM(e,t,n){for(let r=e;;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}}descAt(e){for(let t=0,n=0;t=i&&t<=u-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=o;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=a(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&t<=u){t=u;for(let e=s+1;ed&&ot){let e=a;a=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r=n:en){let r=n+i.border,a=o-i.border;if(e>=r&&t<=a)return this.dirty=e==n||t==o?G:Y,void(e!=r||t!=a||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(e-r,t-r):i.dirty=K);i.dirty=K}n=o}this.dirty=G}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?G:Y;t.dirtyi?i.parent?i.parent.posBeforeChild(i):void 0:r)),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable=!1,o.classList.add("ProseMirror-widget")}super(e,Q,o,null),this.widget=t,i=this}get beforePosition(){return this.widget.type.side<0}matchesWidget(e){return this.dirty==X&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}}class ee extends J{constructor(e,t,n,r){super(e,Q,t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class te extends J{constructor(e,t,n,r){super(e,[],n,r),this.mark=t}static create(e,t,n,r){let i=r.nodeViews[t.type.name],o=i&&i(t,r,n);return o&&o.dom||(o=W["DOMSerializer"].renderSpec(document,t.type.spec.toDOM(t,n))),new te(e,t,o.dom,o.contentDOM||o.dom)}parseRule(){return{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=K&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=X){let e=this.parent;while(!e.node)e=e.parent;e.dirty0&&(i=xe(i,0,e,n));for(let a=0;aa?a.parent?a.parent.posBeforeChild(a):void 0:o,n),l=u&&u.dom,c=u&&u.contentDOM;if(t.isText)if(l){if(3!=l.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else l=document.createTextNode(t.text);else l||({dom:l,contentDOM:c}=W["DOMSerializer"].renderSpec(document,t.type.spec.toDOM(t)));c||t.isText||"BR"==l.nodeName||(l.hasAttribute("contenteditable")||(l.contentEditable=!1),t.type.spec.draggable&&(l.draggable=!0));let f=l;return l=he(l,n,t),u?a=new ae(e,t,n,r,l,c,f,u,i,o+1):t.isText?new ie(e,t,n,r,l,f,i):new ne(e,t,n,r,l,c,f,i,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};return this.node.type.spec.code&&(e.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?e.contentElement=this.contentDOM:e.getContent=()=>this.contentDOM?W["Fragment"].empty:this.node.content,e}matchesNode(e,t,n){return this.dirty==X&&e.eq(this.node)&&pe(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=n&&e.composing&&this.localCompositionNode(e,t),o=new ge(this,i&&i.node);be(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?o.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!a&&o.syncToMarks(i==this.node.childCount?W["Mark"].none:this.node.child(i).marks,n,e),o.placeWidget(t,e,r)},(t,i,a,s)=>{o.syncToMarks(t.marks,n,e),o.findNodeMatch(t,i,a,s)||o.updateNextNode(t,i,a,e,s)||o.addNode(t,i,a,e,r),r+=t.nodeSize}),o.syncToMarks(Q,n,e),this.node.isTextblock&&o.addTextblockHacks(),o.destroyRest(),(o.changed||this.dirty==G)&&(i&&this.protectLocalComposition(e,i),this.renderChildren())}renderChildren(){se(this.contentDOM,this.children,ne.is),o.ios&&qe(this.dom)}localCompositionNode(e,t){let{from:n,to:i}=e.state.selection;if(!(e.state.selection instanceof r["TextSelection"])||nt+this.node.content.size)return;let o=e.root.getSelection(),a=we(o.focusNode,o.focusOffset);if(!a||!this.dom.contains(a.parentNode))return;let s=a.nodeValue,u=_e(this.node.content,s,n-t,i-t);return u<0?null:{node:a,pos:u,text:s}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;;i=i.parentNode){if(i.parentNode==this.contentDOM)break;while(i.previousSibling)i.parentNode.removeChild(i.previousSibling);while(i.nextSibling)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=null)}let o=new ee(this,i,t,r);e.compositionNodes.push(o),this.children=xe(this.children,n,n+r.length,e,o)}update(e,t,n,r){return!(this.dirty==K||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=X}updateOuterDeco(e){if(pe(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=fe(this.dom,this.nodeDOM,ce(this.outerDeco,this.node,t),ce(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}}function re(e,t,n,r,i){return he(r,t,e),new ne(null,e,t,n,r,r,r,i,0)}class ie extends ne{constructor(e,t,n,r,i,o,a){super(e,t,n,r,i,null,o,a)}parseRule(){return{skip:this.nodeDOM.parentNode||!0}}update(e,t){return!(this.dirty==K||this.dirty!=X&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),this.dirty==X&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text),this.node=e,this.dirty=X,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),i=document.createTextNode(r.text);return new ie(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}}class oe extends J{parseRule(){return{ignore:!0}}matchesHack(){return this.dirty==X}}class ae extends ne{constructor(e,t,n,r,i,o,a,s,u,l){super(e,t,n,r,i,o,a,u,l),this.spec=s}update(e,t,n,r){if(this.dirty==K)return!1;if(this.spec.update){let i=this.spec.update(e,t);return i&&this.updateInner(e,t,n,r),i}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function se(e,t){let n=e.firstChild;for(let r=0;r=this.preMatchOffset?this.preMatched[e-this.preMatchOffset]:null}destroyBetween(e,t){if(e!=t){for(let n=e;n>1,o=Math.min(i,e.length);while(r-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=te.create(this.top,e[i],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,n,r){let i=-1,o=r<0?void 0:this.getPreMatch(r),a=this.top.children;if(o&&o.matchesNode(e,t,n))i=a.indexOf(o);else for(let s=this.index,u=Math.min(a.length,s+5);s-1&&s+this.preMatchOffset!=i)return!1;let u=a.dom,l=this.lock&&(u==this.lock||1==u.nodeType&&u.contains(this.lock.parentNode))&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=K&&pe(t,a.outerDeco));if(!l&&a.update(e,t,n,r))return this.destroyBetween(this.index,o),a.dom!=u&&(this.changed=!0),this.index++,!0;break}}return!1}addNode(e,t,n,r,i){this.top.children.splice(this.index++,0,ne.create(this.top,e,t,n,r,i)),this.changed=!0}placeWidget(e,t,n){if(this.index0&&i>=0;i--){let o=t[i],a=o.node;if(a){if(a!=e.child(r-1))break;n.push(o),--r}}return{nodes:n.reverse(),offset:r}}function ye(e,t){return e.type.side-t.type.side}function be(e,t,n,r){let i=t.locals(e),o=0;if(0==i.length){for(let n=0;n0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=d(e)}else{if(!(1==e.nodeType&&t=n){let e=u.lastIndexOf(t,r-s);if(e>=0&&e+t.length+s>=n)return s+e}}return-1}function xe(e,t,n,r,i){let o=[];for(let a=0,s=0;a=n||c<=t?o.push(u):(ln&&o.push(u.slice(n-l,u.size,r)))}return o}var Se=n("2eae");function ke(e,t){let{$anchor:n,$head:i}=e.selection,o=t>0?n.max(i):n.min(i),a=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return a&&r["Selection"].findFrom(a,t)}function Ce(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Ee(e,t,n){let i=e.state.selection;if(i instanceof r["TextSelection"]){if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){let n=ke(e.state,t);return!!(n&&n instanceof r["NodeSelection"])&&Ce(e,n)}{let n,a=i.$head,s=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!s||s.isText)return!1;let u=t<0?a.pos-s.nodeSize:a.pos;return!!(s.isAtom||(n=e.docView.descAt(u))&&!n.contentDOM)&&(r["NodeSelection"].isSelectable(s)?Ce(e,new r["NodeSelection"](t<0?e.state.doc.resolve(a.pos-s.nodeSize):a)):!!o.webkit&&Ce(e,new r["TextSelection"](e.state.doc.resolve(t<0?u:u+s.nodeSize))))}}if(i instanceof r["NodeSelection"]&&i.node.isInline)return Ce(e,new r["TextSelection"](t>0?i.$to:i.$from));{let n=ke(e.state,t);return!!n&&Ce(e,n)}}function Oe(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Ae(e){let t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function Te(e){let t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,s,u=!1;for(o.gecko&&1==n.nodeType&&r0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(Ae(e))i=n,s=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(Pe(n))break;{let t=n.previousSibling;while(t&&Ae(t))i=n.parentNode,s=a(t),t=t.previousSibling;if(t)n=t,r=Oe(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}u?Me(e,t,n,r):i&&Me(e,t,i,s)}function De(e){let t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,s=Oe(n);for(;;)if(r-1)return!1;let{$from:o,$to:a}=i;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=ke(e.state,t);if(n&&n instanceof r["NodeSelection"])return Ce(e,n)}if(!o.parent.inlineContent){let n=r["Selection"].findFrom(t<0?o:a,t);return!n||Ce(e,n)}return!1}function Re(e,t){if(!(e.state.selection instanceof r["TextSelection"]))return!0;let{$head:n,$anchor:i,empty:o}=e.state.selection;if(!n.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function Ie(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Fe(e){if(!o.chrome||e.state.selection.$head.parentOffset>0)return;let{focusNode:t,focusOffset:n}=e.root.getSelection();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;Ie(e,n,!0),setTimeout(()=>Ie(e,n,!1),20)}}function je(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function Le(e,t){let n=t.keyCode,r=je(t);return 8==n||o.mac&&72==n&&"c"==r?Re(e,-1)||Te(e):46==n||o.mac&&68==n&&"c"==r?Re(e,1)||De(e):13==n||27==n||(37==n?Ee(e,-1,r)||Te(e):39==n?Ee(e,1,r)||De(e):38==n?Ne(e,-1,r)||Te(e):40==n?Fe(e)||Ne(e,1,r)||De(e):r==(o.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function Be(e,t){let n,i,o=e.root.getSelection(),a=e.state.doc,s=e.docView.nearestDesc(o.focusNode),u=s&&0==s.size,l=e.docView.posFromDOM(o.focusNode,o.focusOffset),c=a.resolve(l);if(m(o)){n=c;while(s&&!s.node)s=s.parent;if(s&&s.node.isAtom&&r["NodeSelection"].isSelectable(s.node)&&s.parent&&(!s.node.isInline||!h(o.focusNode,o.focusOffset,s.dom))){let e=s.posBefore;i=new r["NodeSelection"](l==e?c:a.resolve(e))}}else n=a.resolve(e.docView.posFromDOM(o.anchorNode,o.anchorOffset));if(!i){let r="pointer"==t||e.state.selection.head{n.anchorNode==r&&n.anchorOffset==i||(t.removeEventListener("selectionchange",e.hideSelectionGuard),e.dom.classList.remove("ProseMirror-hideselection"))})}function Xe(e){let t=e.root.getSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i="IMG"==r.nodeName;i?n.setEnd(r.parentNode,a(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&o.ie&&o.ie_version<=11&&(r.disabled=!0,r.disabled=!1)}function Ye(e,t){if(t instanceof r["NodeSelection"]){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Ge(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Ge(e)}function Ge(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Ke(e,t,n,i){return e.someProp("createSelectionBetween",r=>r(e,t,n))||r["TextSelection"].between(t,n,i)}function Je(e){return(!e.editable||e.root.activeElement==e.dom)&&Qe(e)}function Qe(e){let t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function Ze(e){let t=e.docView.domFromPos(e.state.selection.anchor),n=e.root.getSelection();return l(t.node,t.offset,n.anchorNode,n.anchorOffset)}function et(e,t,n){let{node:r,fromOffset:i,toOffset:a,from:s,to:u}=e.docView.parseRange(t,n),l=e.root.getSelection(),c=null,f=l.anchorNode;if(f&&e.dom.contains(1==f.nodeType?f:f.parentNode)&&(c=[{node:f,offset:l.anchorOffset}],m(l)||c.push({node:l.focusNode,offset:l.focusOffset})),o.chrome&&8===e.lastKeyCode)for(let o=a;o>i;o--){let e=r.childNodes[o-1],t=e.pmViewDesc;if("BR"==e.nodeType&&!t){a=o;break}if(!t||t.size)break}let d=e.state.doc,h=e.someProp("domParser")||W["DOMParser"].fromSchema(e.state.schema),p=d.resolve(s),g=null,v=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:a,preserveWhitespace:!p.parent.type.spec.code||"full",editableContent:!0,findPositions:c,ruleFromNode:tt,context:p});if(c&&null!=c[0].pos){let e=c[0].pos,t=c[1]&&c[1].pos;null==t&&(t=e),g={anchor:e+s,head:t+s}}return{doc:v,sel:g,from:s,to:u}}function tt(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(o.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||o.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function nt(e,t,n,i,a){if(t<0){let t=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,n=Be(e,t);if(!e.state.selection.eq(n)){let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),e.dispatch(r)}return}let s=e.state.doc.resolve(t),u=s.sharedDepth(n);t=s.before(u+1),n=e.state.doc.resolve(n).after(u+1);let l,c,f=e.state.selection,d=et(e,t,n),h=e.state.doc,p=h.slice(d.from,d.to);8===e.lastKeyCode&&Date.now()-100e.state.selection.from&&m.start<=e.state.selection.from+2?m.start=e.state.selection.from:m.endA=e.state.selection.to-2&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),o.ie&&o.ie_version<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>d.from&&"  "==d.doc.textBetween(m.start-d.from-1,m.start-d.from+1)&&(m.start--,m.endA--,m.endB--);let v,y=d.doc.resolveNoCache(m.start-d.from),b=d.doc.resolveNoCache(m.endB-d.from);if((o.ios&&e.lastIOSEnter>Date.now()-100&&(!y.sameParent(b)||a.some(e=>"DIV"==e.nodeName))||!y.sameParent(b)&&y.post(e,g(13,"Enter"))))return void(e.lastIOSEnter=0);if(e.state.selection.anchor>m.start&&ot(h,m.start,m.endA,y,b)&&e.someProp("handleKeyDown",t=>t(e,g(8,"Backspace"))))return void(o.android&&o.chrome&&e.domObserver.suppressSelectionUpdates());let q,w,_,x,S=m.start,k=m.endA;if(y.sameParent(b)&&y.parent.inlineContent)if(y.pos==b.pos)o.ie&&o.ie_version<=11&&0==y.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ue(e),20)),q=e.state.tr.delete(S,k),w=h.resolve(m.start).marksAcross(h.resolve(m.endA));else if(m.endA==m.endB&&(x=h.resolve(m.start))&&(_=it(y.parent.content.cut(y.parentOffset,b.parentOffset),x.parent.content.cut(x.parentOffset,m.endA-x.start()))))q=e.state.tr,"add"==_.type?q.addMark(S,k,_.mark):q.removeMark(S,k,_.mark);else if(y.parent.child(y.index()).isText&&y.index()==b.index()-(b.textOffset?0:1)){let t=y.parent.textBetween(y.parentOffset,b.parentOffset);if(e.someProp("handleTextInput",n=>n(e,S,k,t)))return;q=e.state.tr.insertText(t,S,k)}if(q||(q=e.state.tr.replace(S,k,d.doc.slice(m.start-d.from,m.endB-d.from))),d.sel){let t=rt(e,q.doc,d.sel);t&&!(o.chrome&&o.android&&e.composing&&t.empty&&(t.head==S||t.head==q.mapping.map(k)-1)||o.ie&&t.empty&&t.head==S)&&q.setSelection(t)}w&&q.ensureMarks(w),e.dispatch(q.scrollIntoView())}function rt(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Ke(e,t.resolve(n.anchor),t.resolve(n.head))}function it(e,t){let n,r,i,o=e.firstChild.marks,a=t.firstChild.marks,s=o,u=a;for(let c=0;ce.mark(r.addToSet(e.marks));else{if(0!=s.length||1!=u.length)return null;r=u[0],n="remove",i=e=>e.mark(r.removeFromSet(e.marks))}let l=[];for(let c=0;cn||at(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount))r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));while(t&&!t.isLeaf)t=t.firstChild,i++}return i}function st(e,t,n,r,i){let o=e.findDiffStart(t,n);if(null==o)return null;let{a:a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==i){let e=Math.max(0,o-Math.min(a,s));r-=a+e-o}if(a=a?o-r:0;o-=e,s=o+(s-a),a=o}else if(s=s?o-r:0;o-=e,a=o+(a-s),s=o}return{start:o,endA:a,endB:s}}function ut(e,t){let n=[],{content:r,openStart:i,openEnd:o}=t;while(i>1&&o>1&&1==r.childCount&&1==r.firstChild.childCount){i--,o--;let e=r.firstChild;n.push(e.type.name,e.type.hasRequiredAttrs()?e.attrs:null),r=e.content}let a=e.someProp("clipboardSerializer")||W["DOMSerializer"].fromSchema(e.state.schema),s=yt(),u=s.createElement("div");u.appendChild(a.serializeFragment(r,{document:s}));let l,c=u.firstChild;while(c&&1==c.nodeType&&(l=gt[c.nodeName.toLowerCase()])){for(let e=l.length-1;e>=0;e--){let t=s.createElement(l[e]);while(u.firstChild)t.appendChild(u.firstChild);u.appendChild(t)}c=u.firstChild}c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${i} ${o} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",e=>e(t))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:u,text:f}}function lt(e,t,n,r,i){let o,a,s=i.parent.type.spec.code;if(!n&&!t)return null;let u=t&&(r||s||!n);if(u){if(e.someProp("transformPastedText",e=>{t=e(t)}),s)return new W["Slice"](W["Fragment"].from(e.state.schema.text(t)),0,0);let n=e.someProp("clipboardTextParser",e=>e(t,i));n?a=n:(o=document.createElement("div"),t.trim().split(/(?:\r\n?|\n)+/).forEach(e=>{o.appendChild(document.createElement("p")).textContent=e}))}else e.someProp("transformPastedHTML",e=>{n=e(n)}),o=bt(n);let l=o&&o.querySelector("[data-pm-slice]"),c=l&&/^(\d+) (\d+) (.*)/.exec(l.getAttribute("data-pm-slice"));if(!a){let t=e.someProp("clipboardParser")||e.someProp("domParser")||W["DOMParser"].fromSchema(e.state.schema);a=t.parseSlice(o,{preserveWhitespace:!(!u&&!c),context:i})}return a=c?qt(mt(a,+c[1],+c[2]),c[3]):W["Slice"].maxOpen(ct(a.content,i),!1),e.someProp("transformPasted",e=>{a=e(a)}),a}function ct(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,i=t.node(n),o=i.contentMatchAt(t.index(n)),a=[];if(e.forEach(e=>{if(!a)return;let t,n=o.findWrapping(e.type);if(!n)return a=null;if(t=a.length&&r.length&&dt(n,r,e,a[a.length-1],0))a[a.length-1]=t;else{a.length&&(a[a.length-1]=ht(a[a.length-1],r.length));let t=ft(e,n);a.push(t),o=o.matchType(t.type,t.attrs),r=n}}),a)return W["Fragment"].from(a)}return e}function ft(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,W["Fragment"].from(e));return e}function dt(e,t,n,r,i){if(i=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,e.childCount>1||o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(W["Fragment"].empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function mt(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=yt().createElement("div"),i=/(?:]*>)*<([a-z][^>\s]+)/i.exec(e),o=0;(n=i&>[i[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"").reverse().join(""),o=n.length),r.innerHTML=e;for(let a=0;a=0;u-=2){let e=r.nodes[n[u]];if(!e||e.hasRequiredAttrs())break;i=W["Fragment"].from(e.create(n[u+1],i)),o++,a++}return new W["Slice"](i,o,a)}const wt={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},_t=o.ie&&o.ie_version<=11;class xt{constructor(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class St{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),this.currentSelection=new xt,_t&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1}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.observe(this.view.dom,wt),_t&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;tthis.flush(),20)}this.observer.disconnect()}_t&&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(Je(this.view)){if(this.suppressingSelectionUpdates)return Ue(this.view);if(o.ie&&o.ie_version<=11&&!this.view.state.selection.empty){let e=this.view.root.getSelection();if(e.focusNode&&l(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.root.getSelection())}ignoreSelectionChange(e){if(0==e.rangeCount)return!0;let t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}flush(){if(!this.view.docView||this.flushingSoon>-1)return;let e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);let t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&Qe(this.view)&&!this.ignoreSelectionChange(t),r=-1,i=-1,a=!1,s=[];if(this.view.editable)for(let o=0;o1){let e=s.filter(e=>"BR"==e.nodeName);if(2==e.length){let[t,n]=e;t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,i),Ct(this.view)),this.handleDOMChange(r,i,a,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||Ue(this.view))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){let r=e.previousSibling,i=e.nextSibling;if(o.ie&&o.ie_version<=11&&e.addedNodes.length)for(let t=0;tnt(e,t,n,r,i)),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);for(let t in Et){let n=Et[t];e.dom.addEventListener(t,e.eventHandlers[t]=t=>{!Nt(e,t)||Mt(e,t)||!e.editable&&t.type in Ot||n(e,t)})}o.safari&&e.dom.addEventListener("input",()=>null),Pt(e)}function Tt(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function Dt(e){e.domObserver.stop();for(let t in e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout)}function Pt(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=t=>Mt(e,t))})}function Mt(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function Nt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function Rt(e,t){Mt(e,t)||!Et[t.type]||!e.editable&&t.type in Ot||Et[t.type](e,t)}function It(e){return{left:e.clientX,top:e.clientY}}function Ft(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function jt(e,t,n,r,i){if(-1==r)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,t=>a>o.depth?t(e,n,o.nodeAfter,o.before(a),i,!0):t(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Lt(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function Bt(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&r["NodeSelection"].isSelectable(i))&&(Lt(e,new r["NodeSelection"](n),"pointer"),!0)}function Ut(e,t){if(-1==t)return!1;let n,i,o=e.state.selection;o instanceof r["NodeSelection"]&&(n=o.node);let a=e.state.doc.resolve(t);for(let s=a.depth+1;s>0;s--){let e=s>a.depth?a.nodeAfter:a.node(s);if(r["NodeSelection"].isSelectable(e)){i=n&&o.$from.depth>0&&s>=o.$from.depth&&a.before(o.$from.depth+1)==o.$from.pos?a.before(o.$from.depth):a.before(s);break}}return null!=i&&(Lt(e,r["NodeSelection"].create(e.state.doc,i),"pointer"),!0)}function zt(e,t,n,r,i){return jt(e,"handleClickOn",t,n,r)||e.someProp("handleClick",n=>n(e,t,r))||(i?Ut(e,n):Bt(e,n))}function Ht(e,t,n,r){return jt(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function $t(e,t,n,r){return jt(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||Vt(e,n)}function Vt(e,t){let n=e.state.doc;if(-1==t)return!!n.inlineContent&&(Lt(e,r["TextSelection"].create(n,0,n.content.size),"pointer"),!0);let i=n.resolve(t);for(let o=i.depth+1;o>0;o--){let t=o>i.depth?i.nodeAfter:i.node(o),a=i.before(o);if(t.inlineContent)Lt(e,r["TextSelection"].create(n,a+1,a+1+t.content.size),"pointer");else{if(!r["NodeSelection"].isSelectable(t))continue;Lt(e,r["NodeSelection"].create(n,a),"pointer")}return!0}}function Wt(e){return Qt(e)}Ot.keydown=(e,t)=>{if(e.shiftKey=16==t.keyCode||t.shiftKey,!Gt(e,t))if(e.domObserver.forceFlush(),e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!o.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",n=>n(e,t))||Le(e,t)?t.preventDefault():Tt(e,"key");else{let t=Date.now();e.lastIOSEnter=t,setTimeout(()=>{e.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,g(13,"Enter"))),e.lastIOSEnter=0)},50)}},Ot.keyup=(e,t)=>{16==t.keyCode&&(e.shiftKey=!1)},Ot.keypress=(e,t)=>{if(Gt(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||o.mac&&t.metaKey)return;if(e.someProp("handleKeyPress",n=>n(e,t)))return void t.preventDefault();let n=e.state.selection;if(!(n instanceof r["TextSelection"])||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(t.charCode);e.someProp("handleTextInput",t=>t(e,n.$from.pos,n.$to.pos,r))||e.dispatch(e.state.tr.insertText(r).scrollIntoView()),t.preventDefault()}};const Xt=o.mac?"metaKey":"ctrlKey";Et.mousedown=(e,t)=>{e.shiftKey=t.shiftKey;let n=Wt(e),r=Date.now(),i="singleClick";r-e.lastClick.time<500&&Ft(t,e.lastClick)&&!t[Xt]&&("singleClick"==e.lastClick.type?i="doubleClick":"doubleClick"==e.lastClick.type&&(i="tripleClick")),e.lastClick={time:r,x:t.clientX,y:t.clientY,type:i};let o=e.posAtCoords(It(t));o&&("singleClick"==i?e.mouseDown=new Yt(e,o,t,n):("doubleClick"==i?Ht:$t)(e,o.pos,o.inside,t)?t.preventDefault():Tt(e,"pointer"))};class Yt{constructor(e,t,n,i){let a,s;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=i,this.selectNode=n[Xt],this.allowDefault=n.shiftKey,t.inside>-1)a=e.state.doc.nodeAt(t.inside),s=t.inside;else{let n=e.state.doc.resolve(t.pos);a=n.parent,s=n.depth?n.before():0}this.mightDrag=null;const u=i?null:n.target,l=u?e.docView.nearestDesc(u,!0):null;this.target=l?l.dom:null,(a.type.spec.draggable&&!1!==a.type.spec.selectable||e.state.selection instanceof r["NodeSelection"]&&s==e.state.selection.from)&&(this.mightDrag={node:a,pos:s,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&o.gecko&&!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.target.setAttribute("contentEditable","false"),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Tt(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.view.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(It(e))),this.allowDefault||!t?Tt(this.view,"pointer"):zt(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():!this.flushed&&(!o.chrome||this.view.state.selection instanceof r["TextSelection"]||t.pos!=this.view.state.selection.from&&t.pos!=this.view.state.selection.to)?Tt(this.view,"pointer"):(Lt(this.view,r["Selection"].near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault())}move(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),Tt(this.view,"pointer")}}function Gt(e,t){return!!e.composing||!!(o.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}Et.touchdown=e=>{Wt(e),Tt(e,"pointer")},Et.contextmenu=e=>Wt(e);const Kt=o.android?5e3:-1;function Jt(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout(()=>Qt(e),t))}function Qt(e,t){e.domObserver.forceFlush(),e.composing=!1;while(e.compositionNodes.length>0)e.compositionNodes.pop().markParentsDirty();if(t||e.docView.dirty){let t=Be(e);return t.eq(e.state.selection)?e.updateState(e.state):e.dispatch(e.state.tr.setSelection(t)),!0}return!1}function Zt(e,t){let n=e.dom.ownerDocument,r=n.body.appendChild(n.createElement("div"));r.appendChild(t),r.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),o=n.createRange();o.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(o),setTimeout(()=>{n.body.removeChild(r),e.focus()},50)}Ot.compositionstart=Ot.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||n.marks(),Qt(e,!0),e.markCursor=null;else if(Qt(e),o.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.root.getSelection();for(let e=t.focusNode,n=t.focusOffset;e&&1==e.nodeType&&0!=n;){let r=n<0?e.lastChild:e.childNodes[n-1];if(!r)break;if(3==r.nodeType){t.collapse(r,r.nodeValue.length);break}e=r,n=-1}}e.composing=!0}Jt(e,Kt)},Ot.compositionend=(e,t)=>{e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,Jt(e,20))};const en=o.ie&&o.ie_version<15||o.ios&&o.webkit_version<604;function tn(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function nn(e,t){let n=e.dom.ownerDocument,r=e.shiftKey||e.state.selection.$from.parent.type.spec.code,i=n.body.appendChild(n.createElement(r?"textarea":"div"));r||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{e.focus(),n.body.removeChild(i),r?rn(e,i.value,null,t):rn(e,i.textContent,i.innerHTML,t)},50)}function rn(e,t,n,r){let i=lt(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,r,i||W["Slice"].empty))||!i)return;let o=tn(i),a=o?e.state.tr.replaceSelectionWith(o,e.shiftKey):e.state.tr.replaceSelection(i);e.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste"))}Et.copy=Ot.cut=(e,t)=>{let n=e.state.selection,r="cut"==t.type;if(n.empty)return;let i=en?null:t.clipboardData,o=n.content(),{dom:a,text:s}=ut(e,o);i?(t.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",s)):Zt(e,a),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Ot.paste=(e,t)=>{let n=en?null:t.clipboardData,r=n&&n.getData("text/html"),i=n&&n.getData("text/plain");n&&(r||i||n.files.length)?(rn(e,i,r,t),t.preventDefault()):nn(e,t)};class on{constructor(e,t){this.slice=e,this.move=t}}const an=o.mac?"altKey":"ctrlKey";Et.dragstart=(e,t)=>{let n=e.mouseDown;if(n&&n.done(),!t.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(It(t));if(o&&o.pos>=i.from&&o.pos<=(i instanceof r["NodeSelection"]?i.to-1:i.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(r["NodeSelection"].create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){let n=e.docView.nearestDesc(t.target,!0);if(!n||!n.node.type.spec.draggable||n==e.docView)return;e.dispatch(e.state.tr.setSelection(r["NodeSelection"].create(e.state.doc,n.posBefore)))}let a=e.state.selection.content(),{dom:s,text:u}=ut(e,a);t.dataTransfer.clearData(),t.dataTransfer.setData(en?"Text":"text/html",s.innerHTML),en||t.dataTransfer.setData("text/plain",u),e.dragging=new on(a,!t[an])},Et.dragend=e=>{window.setTimeout(()=>e.dragging=null,50)},Ot.dragover=Ot.dragenter=(e,t)=>t.preventDefault(),Ot.drop=(e,t)=>{let n=e.dragging;if(e.dragging=null,!t.dataTransfer)return;let i=e.posAtCoords(It(t));if(!i)return;let o=e.state.doc.resolve(i.pos);if(!o)return;let a=n&&n.slice||lt(e,t.dataTransfer.getData(en?"Text":"text/plain"),en?null:t.dataTransfer.getData("text/html"),!1,o);if(e.someProp("handleDrop",r=>r(e,t,a||W["Slice"].empty,n&&n.move)))return void t.preventDefault();if(!a)return;t.preventDefault();let s=a?Object(Se["h"])(e.state.doc,o.pos,a):o.pos;null==s&&(s=o.pos);let u=e.state.tr;n&&n.move&&u.deleteSelection();let l=u.mapping.map(s),c=0==a.openStart&&0==a.openEnd&&1==a.content.childCount,f=u.doc;if(c?u.replaceRangeWith(l,l,a.content.firstChild):u.replaceRange(l,l,a),u.doc.eq(f))return;let d=u.doc.resolve(l);c&&r["NodeSelection"].isSelectable(a.content.firstChild)&&d.nodeAfter&&d.nodeAfter.sameMarkup(a.content.firstChild)?u.setSelection(new r["NodeSelection"](d)):u.setSelection(Ke(e,d,u.doc.resolve(u.mapping.map(s)))),e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))},Et.focus=e=>{e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&Ue(e)},20))},Et.blur=e=>{e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),e.domObserver.currentSelection.set({}),e.focused=!1)},Et.beforeinput=(e,t)=>{if(o.chrome&&o.android&&"deleteContentBackward"==t.inputType){let{domChangeCount:t}=e;setTimeout(()=>{if(e.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,g(8,"Backspace"))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let In in Ot)Et[In]=Ot[In];function sn(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class un{constructor(e,t){this.spec=t||hn,this.side=this.spec.side||0,this.toDOM=e}map(e,t,n,r){let{pos:i,deleted:o}=e.mapResult(t.from+r,this.side<0?-1:1);return o?null:new fn(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof un&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&sn(this.spec,e.spec))}}class ln{constructor(e,t){this.spec=t||hn,this.attrs=e}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new fn(i,o,this)}valid(e,t){return t.from=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let o=0;oe){let a=this.children[o]+1;this.children[o+2].findInner(e-a,t-a,n,r+a,i)}}map(e,t,n){return this==mn||0==e.maps.length?this:this.mapInner(e,t,0,0,n||hn)}mapInner(e,t,n,r,i){let o;for(let a=0;a{let a,s=o+n;if(a=qn(t,e,s)){r||(r=this.children.slice());while(io&&t.to=e){this.children[a]==e&&(n=this.children[a+2]);break}let i=e+1,o=i+t.content.size;for(let a=0;ai&&e.type instanceof ln){let t=Math.max(i,e.from)-i,n=Math.min(o,e.to)-i;t{for(let a=0;al+o||(t>=s[a]+o?s[a+1]=-1:n>=i&&(u=r-n-(t-e))&&(s[a]+=u,s[a+1]+=u))}};for(let c=0;c=r.content.size){l=!0;continue}let f=n.map(e[c+1]+o,-1),d=f-i,{index:h,offset:p}=r.content.findIndex(u),m=r.maybeChild(h);if(m&&p==u&&p+m.nodeSize==d){let e=s[c+2].mapInner(n,m,t+1,s[c]+o+1,a);e!=mn?(s[c]=u,s[c+1]=d,s[c+2]=e):(s[c+1]=-2,l=!0)}else l=!0}if(l){let u=bn(s,e,t||[],n,i,o,a),l=_n(u,r,0,a);t=l.local;for(let e=0;en&&o.to{let s=qn(e,t,a+n);if(s){o=!0;let e=_n(s,t,n+a+1,r);e!=mn&&i.push(a,a+t.nodeSize,e)}});let a=yn(o?wn(e):e,-n).sort(xn);for(let s=0;s0)t++;e.splice(t,0,n)}function Cn(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=mn&&t.push(r)}),e.cursorWrapper&&t.push(pn.create(e.state.doc,[e.cursorWrapper.deco])),gn.from(t)}class En{constructor(e,t){this._props=t,this.state=t.state,this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Tn(this),this.markCursor=null,this.cursorWrapper=null,An(this),this.nodeViews=Pn(this),this.docView=re(this.state.doc,On(this),Cn(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,At(this),this.pluginViews=[],this.updatePluginViews()}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Pt(this),this._props=e,this.updateStateInner(e.state,!0)}setProps(e){let t={};for(let n in this._props)t[n]=this._props[n];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this.state.plugins!=e.plugins)}updateStateInner(e,t){let n=this.state,i=!1;if(this.state=e,t){let e=Pn(this);Mn(e,this.nodeViews)&&(this.nodeViews=e,i=!0),Pt(this)}this.editable=Tn(this),An(this);let a=Cn(this),s=On(this),u=t?"reset":e.scrollToSelection>n.scrollToSelection?"to selection":"preserve",l=i||!this.docView.matchesNode(e.doc,s,a),c=l||!e.selection.eq(n.selection),f="preserve"==u&&c&&null==this.dom.style.overflowAnchor&&q(this);if(c){this.domObserver.stop();let t=l&&(o.ie||o.chrome)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&Dn(n.selection,e.selection);if(l){let n=o.chrome&&Nn(this.root);!i&&this.docView.update(e.doc,s,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=re(e.doc,s,a,this.dom,this)),n&&Rn(n,this.root)&&(t=!0)}t||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&Ze(this))?Ue(this,t):(Ye(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(n),"reset"==u)this.dom.scrollTop=0;else if("to selection"==u){let t=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",e=>e(this))||(e.selection instanceof r["NodeSelection"]?b(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),t):b(this,this.coordsAtPos(e.selection.head),t))}else f&&_(f)}destroyPluginViews(){let e;while(e=this.pluginViews.pop())e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins)for(let t=0;tdocument.getSelection()),this._root=t;return e||document}posAtCoords(e){return M(this,e)}coordsAtPos(e){return R(this,e)}domAtPos(e){return this.docView.domFromPos(e)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return V(this,t||this.state,e)}destroy(){this.docView&&(Dt(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Cn(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}dispatchEvent(e){return Rt(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}}function On(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),[fn.node(0,e.state.doc.content.size,t)]}function An(e){if(e.markCursor){let t=document.createElement("img");t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:fn.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Tn(e){return!e.someProp("editable",t=>!1===t(e.state))}function Dn(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Pn(e){let t={};return e.someProp("nodeViews",e=>{for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}),t}function Mn(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function Nn(e){let{focusOffset:t,focusNode:n}=e.getSelection();return n&&1==n.nodeType?[n,t,n.childNodes[t-1],n.childNodes[t]]:null}function Rn(e,t){let n=Nn(t);if(!n||3==n[0].nodeType)return!1;for(let r=0;r0?r:n)(e)}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(1),i=n(2),o=n(19),a=n(27),s=n(5).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(8)},function(e,t){"use strict";e.exports={props:{loading:{type:Boolean,default:!1},onSearch:{type:Function,default:function(e,t){}}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.search.length>0&&(this.onSearch(this.search,this.toggleLoading),this.$emit("search",this.search,this.toggleLoading))},loading:function(e){this.mutableLoading=e}},methods:{toggleLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==e?!this.mutableLoading:e}}}},function(e,t){"use strict";e.exports={watch:{typeAheadPointer:function(){this.maybeAdjustScroll()}},methods:{maybeAdjustScroll:function(){var e=this.pixelsToPointerTop(),t=this.pixelsToPointerBottom();return e<=this.viewport().top?this.scrollTo(e):t>=this.viewport().bottom?this.scrollTo(this.viewport().top+this.pointerHeight()):void 0},pixelsToPointerTop:function(){var e=0;if(this.$refs.dropdownMenu)for(var t=0;t0&&(this.typeAheadPointer--,this.maybeAdjustScroll&&this.maybeAdjustScroll())},typeAheadDown:function(){this.typeAheadPointer";for(t.style.display="none",n(60).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;r--;)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(38),i=n(17).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(4),i=n(7),o=n(57)(!1),a=n(22)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){e.exports=n(6)},function(e,t,n){var r=n(16);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),o=r(i),a=n(48),s=r(a),u=n(43),l=r(u),c=n(49),f=r(c),d=n(29),h=r(d),p=n(30),m=r(p),g=n(28),v=r(g);t.default={mixins:[h.default,m.default,v.default],props:{value:{default:null},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},maxHeight:{type:String,default:"400px"},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},index:{type:String,default:null},getOptionLabel:{type:Function,default:function(e){return this.index&&(e=this.findOptionByIndexValue(e)),"object"===("undefined"==typeof e?"undefined":(0,f.default)(e))?e.hasOwnProperty(this.label)?e[this.label]:console.warn('[vue-select warn]: Label key "option.'+this.label+'" does not exist in options object '+(0,l.default)(e)+".\nhttp://sagalbot.github.io/vue-select/#ex-labels"):e}},onChange:{type:Function,default:function(e){this.$emit("input",e)}},onTab:{type:Function,default:function(){this.selectOnTab&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(e,t,n){return(t||"").toLowerCase().indexOf(n.toLowerCase())>-1}},filter:{type:Function,default:function(e,t){var n=this;return e.filter((function(e){var r=n.getOptionLabel(e);return"number"==typeof r&&(r=r.toString()),n.filterBy(e,r,t)}))}},createOption:{type:Function,default:function(e){return"object"===(0,f.default)(this.mutableOptions[0])&&(e=(0,s.default)({},this.label,e)),this.$emit("option:created",e),e}},resetOnOptionsChange:{type:Boolean,default:!1},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1}},data:function(){return{search:"",open:!1,mutableValue:null,mutableOptions:[]}},watch:{value:function(e){this.mutableValue=e},mutableValue:function(e,t){this.multiple?this.onChange&&this.onChange(e):this.onChange&&e!==t&&this.onChange(e)},options:function(e){this.mutableOptions=e},mutableOptions:function(){!this.taggable&&this.resetOnOptionsChange&&(this.mutableValue=this.multiple?[]:null)},multiple:function(e){this.mutableValue=e?[]:null}},created:function(){this.mutableValue=this.value,this.mutableOptions=this.options.slice(0),this.mutableLoading=this.loading,this.$on("option:created",this.maybePushTag)},methods:{select:function(e){if(!this.isOptionSelected(e)){if(this.taggable&&!this.optionExists(e)&&(e=this.createOption(e)),this.index){if(!e.hasOwnProperty(this.index))return console.warn('[vue-select warn]: Index key "option.'+this.index+'" does not exist in options object '+(0,l.default)(e)+".");e=e[this.index]}this.multiple&&!this.mutableValue?this.mutableValue=[e]:this.multiple?this.mutableValue.push(e):this.mutableValue=e}this.onAfterSelect(e)},deselect:function(e){var t=this;if(this.multiple){var n=-1;this.mutableValue.forEach((function(r){(r===e||t.index&&r===e[t.index]||"object"===("undefined"==typeof r?"undefined":(0,f.default)(r))&&r[t.label]===e[t.label])&&(n=r)}));var r=this.mutableValue.indexOf(n);this.mutableValue.splice(r,1)}else this.mutableValue=null},clearSelection:function(){this.mutableValue=this.multiple?[]:null},onAfterSelect:function(e){this.closeOnSelect&&(this.open=!this.open,this.$refs.search.blur()),this.clearSearchOnSelect&&(this.search="")},toggleDropdown:function(e){(e.target===this.$refs.openIndicator||e.target===this.$refs.search||e.target===this.$refs.toggle||e.target.classList.contains("selected-tag")||e.target===this.$el)&&(this.open?this.$refs.search.blur():this.disabled||(this.open=!0,this.$refs.search.focus()))},isOptionSelected:function(e){var t=this,n=!1;return this.valueAsArray.forEach((function(r){"object"===("undefined"==typeof r?"undefined":(0,f.default)(r))?n=t.optionObjectComparator(r,e):r!==e&&r!==e[t.index]||(n=!0)})),n},optionObjectComparator:function(e,t){return!(!this.index||e!==t[this.index])||e[this.label]===t[this.label]||e[this.label]===t||!(!this.index||e[this.index]!==t[this.index])},findOptionByIndexValue:function(e){var t=this;return this.options.forEach((function(n){(0,l.default)(n[t.index])===(0,l.default)(e)&&(e=n)})),e},onEscape:function(){this.search.length?this.search="":this.$refs.search.blur()},onSearchBlur:function(){this.mousedown&&!this.searching?this.mousedown=!1:(this.clearSearchOnBlur&&(this.search=""),this.open=!1,this.$emit("search:blur"))},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},maybeDeleteValue:function(){if(!this.$refs.search.value.length&&this.mutableValue)return this.multiple?this.mutableValue.pop():this.mutableValue=null},optionExists:function(e){var t=this,n=!1;return this.mutableOptions.forEach((function(r){("object"===("undefined"==typeof r?"undefined":(0,f.default)(r))&&r[t.label]===e||r===e)&&(n=!0)})),n},maybePushTag:function(e){this.pushTags&&this.mutableOptions.push(e)},onMousedown:function(){this.mousedown=!0}},computed:{dropdownClasses:function(){return{open:this.dropdownOpen,single:!this.multiple,searching:this.searching,searchable:this.searchable,unsearchable:!this.searchable,loading:this.mutableLoading,rtl:"rtl"===this.dir,disabled:this.disabled}},clearSearchOnBlur:function(){return this.clearSearchOnSelect&&!this.multiple},searching:function(){return!!this.search},dropdownOpen:function(){return!this.noDrop&&this.open&&!this.mutableLoading},searchPlaceholder:function(){if(this.isValueEmpty&&this.placeholder)return this.placeholder},filteredOptions:function(){if(!this.filterable&&!this.taggable)return this.mutableOptions.slice();var e=this.search.length?this.filter(this.mutableOptions,this.search,this):this.mutableOptions;return this.taggable&&this.search.length&&!this.optionExists(this.search)&&e.unshift(this.search),e},isValueEmpty:function(){return!this.mutableValue||("object"===(0,f.default)(this.mutableValue)?!(0,o.default)(this.mutableValue).length:!this.valueAsArray.length)},valueAsArray:function(){return this.multiple&&this.mutableValue?this.mutableValue:this.mutableValue?[].concat(this.mutableValue):[]},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&null!=this.mutableValue}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(28),o=r(i),a=n(30),s=r(a),u=n(29),l=r(u);t.default={ajax:o.default,pointer:s.default,pointerScroll:l.default}},function(e,t,n){e.exports={default:n(50),__esModule:!0}},function(e,t,n){e.exports={default:n(51),__esModule:!0}},function(e,t,n){e.exports={default:n(52),__esModule:!0}},function(e,t,n){e.exports={default:n(53),__esModule:!0}},function(e,t,n){e.exports={default:n(54),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(44),o=r(i);t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(47),o=r(i),a=n(46),s=r(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t,n){var r=n(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},function(e,t,n){n(75);var r=n(2).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){n(76),e.exports=n(2).Object.keys},function(e,t,n){n(79),n(77),n(80),n(81),e.exports=n(2).Symbol},function(e,t,n){n(78),n(82),e.exports=n(27).f("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(7),i=n(73),o=n(72);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(55);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(13),i=n(37),o=n(20);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(31);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(31);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(35),i=n(14),o=n(21),a={};n(6)(a,n(8)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(15)("meta"),i=n(10),o=n(4),a=n(5).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(9)((function(){return u(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return l&&p.NEED&&u(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},function(e,t,n){var r=n(5),i=n(11),o=n(13);e.exports=n(3)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(20),i=n(14),o=n(7),a=n(25),s=n(4),u=n(33),l=Object.getOwnPropertyDescriptor;t.f=n(3)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(7),i=n(36).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t,n){var r=n(4),i=n(40),o=n(22)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(12),i=n(2),o=n(9);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){var r=n(24),i=n(16);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},function(e,t,n){var r=n(24),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(24),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(56),i=n(64),o=n(18),a=n(7);e.exports=n(34)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(12);r(r.S+r.F*!n(3),"Object",{defineProperty:n(5).f})},function(e,t,n){var r=n(40),i=n(13);n(70)("keys",(function(){return function(e){return i(r(e))}}))},function(e,t){},function(e,t,n){"use strict";var r=n(71)(!0);n(34)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(3),a=n(12),s=n(39),u=n(65).KEY,l=n(9),c=n(23),f=n(21),d=n(15),h=n(8),p=n(27),m=n(26),g=n(59),v=n(62),y=n(11),b=n(10),q=n(7),w=n(25),_=n(14),x=n(35),S=n(68),k=n(67),C=n(5),E=n(13),O=k.f,A=C.f,T=S.f,D=r.Symbol,P=r.JSON,M=P&&P.stringify,N="prototype",R=h("_hidden"),I=h("toPrimitive"),F={}.propertyIsEnumerable,j=c("symbol-registry"),L=c("symbols"),B=c("op-symbols"),U=Object[N],z="function"==typeof D,H=r.QObject,$=!H||!H[N]||!H[N].findChild,V=o&&l((function(){return 7!=x(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(U,t);r&&delete U[t],A(e,t,n),r&&e!==U&&A(U,t,r)}:A,W=function(e){var t=L[e]=x(D[N]);return t._k=e,t},X=z&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},Y=function(e,t,n){return e===U&&Y(B,t,n),y(e),t=w(t,!0),y(n),i(L,t)?(n.enumerable?(i(e,R)&&e[R][t]&&(e[R][t]=!1),n=x(n,{enumerable:_(0,!1)})):(i(e,R)||A(e,R,_(1,{})),e[R][t]=!0),V(e,t,n)):A(e,t,n)},G=function(e,t){y(e);for(var n,r=g(t=q(t)),i=0,o=r.length;o>i;)Y(e,n=r[i++],t[n]);return e},K=function(e,t){return void 0===t?x(e):G(x(e),t)},J=function(e){var t=F.call(this,e=w(e,!0));return!(this===U&&i(L,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(L,e)||i(this,R)&&this[R][e])||t)},Q=function(e,t){if(e=q(e),t=w(t,!0),e!==U||!i(L,t)||i(B,t)){var n=O(e,t);return!n||!i(L,t)||i(e,R)&&e[R][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=T(q(e)),r=[],o=0;n.length>o;)i(L,t=n[o++])||t==R||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===U,r=T(n?B:q(e)),o=[],a=0;r.length>a;)!i(L,t=r[a++])||n&&!i(U,t)||o.push(L[t]);return o};z||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(B,n),i(this,R)&&i(this[R],e)&&(this[R][e]=!1),V(this,e,_(1,n))};return o&&$&&V(U,e,{configurable:!0,set:t}),W(e)},s(D[N],"toString",(function(){return this._k})),k.f=Q,C.f=Y,n(36).f=S.f=Z,n(20).f=J,n(37).f=ee,o&&!n(19)&&s(U,"propertyIsEnumerable",J,!0),p.f=function(e){return W(h(e))}),a(a.G+a.W+a.F*!z,{Symbol:D});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var re=E(h.store),ie=0;re.length>ie;)m(re[ie++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=D(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!z,"Object",{create:K,defineProperty:Y,defineProperties:G,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),P&&a(a.S+a.F*(!z||l((function(){var e=D();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!X(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,M.apply(P,r)}}),D[N][I]||n(6)(D[N],I,D[N].valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){n(26)("asyncIterator")},function(e,t,n){n(26)("observable")},function(e,t,n){n(74);for(var r=n(1),i=n(6),o=n(18),a=n(8)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;ua{display:block;padding:3px 20px;clear:both;color:#333;white-space:nowrap}.v-select li:hover{cursor:pointer}.v-select .dropdown-menu .active>a{color:#333;background:rgba(50,50,50,.1)}.v-select .dropdown-menu>.highlight>a{background:#5897fb;color:#fff}.v-select .highlight:not(:last-child){margin-bottom:0}.v-select .spinner{align-self:center;opacity:0;font-size:5px;text-indent:-9999em;overflow:hidden;border-top:.9em solid hsla(0,0%,39%,.1);border-right:.9em solid hsla(0,0%,39%,.1);border-bottom:.9em solid hsla(0,0%,39%,.1);border-left:.9em solid rgba(60,60,60,.45);transform:translateZ(0);animation:vSelectSpinner 1.1s infinite linear;transition:opacity .1s}.v-select .spinner,.v-select .spinner:after{border-radius:50%;width:5em;height:5em}.v-select.disabled .dropdown-toggle,.v-select.disabled .dropdown-toggle .clear,.v-select.disabled .dropdown-toggle input,.v-select.disabled .open-indicator,.v-select.disabled .selected-tag .close{cursor:not-allowed;background-color:#f8f8f8}.v-select.loading .spinner{opacity:1}@-webkit-keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fade-enter-active,.fade-leave-active{transition:opacity .15s cubic-bezier(1,.5,.8,1)}.fade-enter,.fade-leave-to{opacity:0}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&v.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var o=g++;n=m||(m=s(t)),r=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else n=s(t),r=c.bind(null,n),i=function(){a(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function c(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f={},d=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=d((function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())})),p=d((function(){return document.head||document.getElementsByTagName("head")[0]})),m=null,g=0,v=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}},f=["M","D","DDD","d","Q","W"];return f.forEach((function(e){c[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:c,formattingTokensRegExp:r(c)}}function o(e){return e+"."}e.exports=i},"4cef":function(e,t){var n=/\s/;function r(e){var t=e.length;while(t--&&n.test(e.charAt(t)));return t}e.exports=r},"4d34":function(e,t,n){var r=n("90e5");function i(){var e=["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],t=["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],n=["do","se","te","qa","qi","se","sa"],i=["dom","seg","ter","qua","qui","sex","sáb"],a=["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],s=["AM","PM"],u=["am","pm"],l=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return a[e.getDay()]},A:function(e){return e.getHours()/12>=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}},f=["M","D","DDD","d","Q","W"];return f.forEach((function(e){c[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:c,formattingTokensRegExp:r(c)}}function o(e){return e+"º"}e.exports=i},"4e9d":function(e,t,n){var r;(function(){"use strict";var i={};function o(e,t){for(var n=e.data,r=t.data,i=e.width,o=e.height,a=0;a=i-1||0===a||a>=o-1?C(n,l):4*C(n,l)-C(n,l-4*i)-C(n,l-4)-C(n,l+4)-C(n,l+4*i),r[l+1]=u}}function a(e,t,n){for(var r=t.data,i=n.data,o=t.width,a=t.height,s=0;se.skinThreshold,p=c>=e.skinBrightnessMin&&c<=e.skinBrightnessMax;i[l]=d&&p?(f-e.skinThreshold)*(255/(1-e.skinThreshold)):0}}function s(e,t,n){for(var r=t.data,i=n.data,o=t.width,a=t.height,s=0;se.saturationThreshold,h=c>=e.saturationBrightnessMin&&c<=e.saturationBrightnessMax;i[l+2]=h&&d?(f-e.saturationThreshold)*(255/(1-e.saturationThreshold)):0}}function u(e,t){if(e.boost){for(var n=t.data,r=0;r=e.minScale;s-=e.scaleStep)for(var u=0;u+a*s<=n;u+=e.step)for(var l=0;l+o*s<=t;l+=e.step)r.push({x:l,y:u,width:o*s,height:a*s});return r}function f(e,t,n){for(var r={detail:0,saturation:0,skin:0,boost:0,total:0},i=t.data,o=e.scoreDownSample,a=1/o,s=t.height*o,u=t.width*o,l=t.width,c=0;cn||n>=t.x+t.width||t.y>r||r>=t.y+t.height)return e.outsideImportance;n=(n-t.x)/t.width,r=(r-t.y)/t.height;var i=2*w(.5-n),o=2*w(.5-r),a=Math.max(i-1+e.edgeRadius,0),s=Math.max(o-1+e.edgeRadius,0),u=(a*a+s*s)*e.edgeWeight,l=1.41-_(i*i+o*o);return e.ruleOfThirds&&(l+=1.2*Math.max(0,l+u+.5)*(S(i)+S(o))),l+u}function h(e,t,n,r){var i=_(t*t+n*n+r*r),o=t/i-e.skinColor[0],a=n/i-e.skinColor[1],s=r/i-e.skinColor[2],u=_(o*o+a*a+s*s);return 1-u}function p(e,t){var n={},r=new m(t.width,t.height);o(t,r),a(e,t,r),s(e,t,r),u(e,r);for(var i=g(r,e.scoreDownSample),l=-1/0,d=null,h=c(e,t.width,t.height),p=0,v=h.length;pl&&(d=y,l=y.score.total)}return n.topCrop=d,e.debug&&d&&(n.crops=h,n.debugOutput=r,n.debugOptions=e,n.debugTopCrop=x({},n.topCrop)),n}function m(e,t,n){this.width=e,this.height=t,this.data=n?new Uint8ClampedArray(n):new Uint8ClampedArray(e*t*4)}function g(e,t){for(var n=e.data,r=e.width,i=Math.floor(e.width/t),o=Math.floor(e.height/t),a=new m(i,o),s=a.data,u=1/(t*t),l=0;l.5?a/(2-r-i):a/(r+i)}r=function(){return i}.call(t,n,t,e),void 0===r||(e.exports=r),t.smartcrop=i,e.exports=i})()},"4f50":function(e,t,n){var r=n("b760"),i=n("e538"),o=n("c8fe"),a=n("4359"),s=n("fa21"),u=n("d370"),l=n("6747"),c=n("dcbe"),f=n("0d24"),d=n("9520"),h=n("1a8c"),p=n("60ed"),m=n("73ac"),g=n("8adb"),v=n("8de2");function y(e,t,n,y,b,q,w){var _=g(e,n),x=g(t,n),S=w.get(x);if(S)r(e,n,S);else{var k=q?q(_,x,n+"",e,t,w):void 0,C=void 0===k;if(C){var E=l(x),O=!E&&f(x),A=!E&&!O&&m(x);k=x,E||O||A?l(_)?k=_:c(_)?k=a(_):O?(C=!1,k=i(x,!0)):A?(C=!1,k=o(x,!0)):k=[]:p(x)||u(x)?(k=_,u(_)?k=v(_):h(_)&&!d(_)||(k=s(x))):C=!1}C&&(w.set(x,k),b(k,x,y,q,w),w["delete"](x)),r(e,n,k)}}e.exports=y},"50d8":function(e,t){function n(e,t){var n=-1,r=Array(e);while(++n=17?s[3]:t>=12?s[2]:t>=4?s[1]:s[0]},Do:function(e,t){return t.D(e)+"-е"},Wo:function(e,t){return t.W(e)+"-я"}};u.a=u.A,u.aa=u.A;var l=["M","DDD","d","Q"];l.forEach((function(e){u[e+"o"]=function(t,n){return n[e](t)+"-й"}}));var c=["D","Do","DD"];return c.forEach((function(e){u[e+" MMMM"]=function(t,r){var i=u[e]||r[e];return i(t,r)+" "+n[t.getMonth()]}})),{formatters:u,formattingTokensRegExp:r(u)}}e.exports=i},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"52cf":function(e,t,n){var r=n("2d96"),i=n("e830");e.exports={distanceInWords:r(),format:i()}},"532b":function(e,t){function n(){var e={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"over "+i:i+" geleden":i}return{localize:t}}e.exports=n},"54eb":function(e,t,n){var r=n("8eeb"),i=n("32f4");function o(e,t){return r(e,i(e),t)}e.exports=o},"55a3":function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},"57a5":function(e,t,n){var r=n("91e9"),i=r(Object.keys,Object);e.exports=i},"580f":function(e,t,n){var r=n("c8d5"),i=n("a4b7"),o=n("d420");function a(e){var t=r(e),n=o(t,i(t)),a=n+1;return a}e.exports=a},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},"59dc":function(e,t,n){"use strict";e.exports=n("96ae")},"5ab1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.s3=t.traditional=t.thenable=void 0;var r=n("320c"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.thenable=["onCancel","onPasteReceived","onSubmit","onSubmitDelete","onUpload","onUploadChunk","onValidate","onValidateBatch"];var a=t.traditional=["onAutoRetry","onCancel","onComplete","onAllComplete","onDelete","onDeleteComplete","onError","onManualRetry","onPasteReceived","onProgress","onResume","onSessionRequestComplete","onStatusChange","onSubmit","onSubmitDelete","onSubmitted","onTotalProgress","onUpload","onUploadChunk","onUploadChunkSuccess","onValidate","onValidateBatch"];t.s3=(0,i.default)([],a,["onCredentialsExpired"])},"5b01":function(e,t,n){var r=n("8eeb"),i=n("ec69");function o(e,t){return e&&r(t,i(t),e)}e.exports=o},"5d89":function(e,t,n){var r=n("f8af");function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e.exports=i},"5dbe":function(e,t,n){(function(){var t;function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t,n,r,i,o=1,a=[].slice.call(arguments),s=0,u=e.length,l="",c=!1,f=!1,d=function(){return a[o++]},h=function(){var n="";while(/\d/.test(e[s]))n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s=0;i--){let r=t<0?p(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):p(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(r)return r}}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new d(e.node(0))}static atStart(e){return p(e,e,0,0,1)||new d(e)}static atEnd(e){return p(e,e,e.content.size,e.childCount,-1)||new d(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw new RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}a.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}class u extends a{constructor(e,t=e){super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return a.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r["Slice"].empty){if(super.replace(e,t),t==r["Slice"].empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new l(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=a.findFrom(t,n,!0)||a.findFrom(t,-n,!0);if(!e)return a.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(a.findFrom(e,-n,!0)||a.findFrom(e,n,!0)).$anchor,e.pos0?0:1);i>0?a=0;a+=i){let r=t.child(a);if(r.isAtom){if(!o&&c.isSelectable(r))return c.create(e,n-(i<0?r.nodeSize:0))}else{let t=p(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}}function m(e,t,n){let r=e.steps.length-1;if(r{null==s&&(s=r)}),e.setSelection(a.near(e.doc.resolve(s),n))}const g=1,v=2,y=4;class b extends i["e"]{constructor(e){super(e.doc),this.time=Date.now(),this.curSelection=e.selection,this.curSelectionFor=0,this.storedMarks=e.storedMarks,this.updated=0,this.meta=Object.create(null)}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=v,this}ensureMarks(e){return r["Mark"].sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&v)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~v,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t){let n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r["Mark"].none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n=t){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(a.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=y,this}get scrolledIntoView(){return(this.updated&y)>0}}function q(e,t){return t&&e?e.bind(t):e}class w{constructor(e,t,n){this.name=e,this.init=q(t.init,n),this.apply=q(t.apply,n)}}const _=[new w("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new w("selection",{init(e,t){return e.selection||a.atStart(t.doc)},apply(e){return e.selection}}),new w("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new w("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class x{constructor(e,t){this.schema=e,this.fields=_.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new w(e.key,e.spec.state,e))})}}class S{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;ne.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new x(e.schema,e.plugins),o=new S(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r["Node"].fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=a.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let a=n[r],s=a.spec.state;if(a.key==i.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(o[i.name]=s.fromJSON.call(a,e,t[r],o))}o[i.name]=i.init(e,o)}}),o}static addApplyListener(e){k.push(e)}static removeApplyListener(e){let t=k.indexOf(e);t>-1&&k.splice(t,1)}}const k=[];function C(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):"handleDOMEvents"==r&&(i=C(i,t,{})),n[r]=i}return n}class E{constructor(e){this.props={},e.props&&C(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:A("plugin")}getState(e){return e[this.key]}}const O=Object.create(null);function A(e){return e in O?e+"$"+ ++O[e]:(O[e]=0,e+"$")}class T{constructor(e="key"){this.key=A(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},"66cb":function(e,t,n){var r;(function(i){var o=/^\s+/,a=/\s+$/,s=0,u=i.round,l=i.min,c=i.max,f=i.random;function d(e,t){if(e=e||"",t=t||{},e instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=h(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=s++}function h(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=K(e)),"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(t=p(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=V(e.s),i=V(e.v),t=y(e.h,r,i),a=!0,s="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=V(e.s),o=V(e.l),t=g(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=j(n),{ok:a,format:e.format||s,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:n}}function p(e,t,n){return{r:255*L(e,255),g:255*L(t,255),b:255*L(n,255)}}function m(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,i,o=c(e,t,n),a=l(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=L(e,360),t=L(t,100),n=L(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}function v(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,i,o=c(e,t,n),a=l(e,t,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(d(r));return o}function N(e,t){t=t||6;var n=d(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;while(t--)a.push(d({h:r,s:i,v:o})),o=(o+s)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,a,s=this.toRgb();return e=s.r/255,t=s.g/255,n=s.b/255,r=e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4),a=n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*a},setAlpha:function(e){return this._a=j(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=v(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return q(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*L(this._r,255))+"%",g:u(100*L(this._g,255))+"%",b:u(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*L(this._r,255))+"%, "+u(100*L(this._g,255))+"%, "+u(100*L(this._b,255))+"%)":"rgba("+u(100*L(this._r,255))+"%, "+u(100*L(this._g,255))+"%, "+u(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+w(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=d(e);n="#"+w(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return i?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:V(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),i=d(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return d(a)},d.readability=function(e,t){var n=d(e),r=d(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,i,o=d.readability(e,t);switch(i=!1,r=J(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7;break}return i},d.mostReadable=function(e,t,n){var r,i,o,a,s=null,u=0;n=n||{},i=n.includeFallbackColors,o=n.level,a=n.size;for(var l=0;lu&&(u=r,s=d(t[l]));return d.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var R=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=d.hexNames=F(R);function F(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function j(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){z(e)&&(e="100%");var n=H(e);return e=l(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function B(e){return l(1,c(0,e))}function U(e){return parseInt(e,16)}function z(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function H(e){return"string"===typeof e&&-1!=e.indexOf("%")}function $(e){return 1==e.length?"0"+e:""+e}function V(e){return e<=1&&(e=100*e+"%"),e}function W(e){return i.round(255*parseFloat(e)).toString(16)}function X(e){return U(e)/255}var Y=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function G(e){return!!Y.CSS_UNIT.exec(e)}function K(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(R[e])e=R[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=Y.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Y.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Y.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Y.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Y.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Y.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Y.hex8.exec(e))?{r:U(t[1]),g:U(t[2]),b:U(t[3]),a:X(t[4]),format:n?"name":"hex8"}:(t=Y.hex6.exec(e))?{r:U(t[1]),g:U(t[2]),b:U(t[3]),format:n?"name":"hex"}:(t=Y.hex4.exec(e))?{r:U(t[1]+""+t[1]),g:U(t[2]+""+t[2]),b:U(t[3]+""+t[3]),a:X(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=Y.hex3.exec(e))&&{r:U(t[1]+""+t[1]),g:U(t[2]+""+t[2]),b:U(t[3]+""+t[3]),format:n?"name":"hex"}}function J(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}e.exports?e.exports=d:(r=function(){return d}.call(t,n,t,e),void 0===r||(e.exports=r))})(Math)},6747:function(e,t){var n=Array.isArray;e.exports=n},"67ca":function(e,t,n){var r=n("cb5a");function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},6856:function(e,t){function n(){var e={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},t=["lessThanXSeconds","lessThanXMinutes","overXYears"];function n(n,r,i){var o;if(i=i||{},o="string"===typeof e[n]?e[n]:1===r?e[n].one:e[n].other.replace("{{count}}",r),i.addSuffix){var a="";return t.indexOf(n)>-1&&(a=" bir süre"),i.comparison>0?o+a+" içinde":o+a+" önce"}return o}return{localize:n}}e.exports=n},6933:function(e,t){function n(){var e={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"daqui a "+i:"há "+i:i}return{localize:t}}e.exports=n},"69d5":function(e,t,n){var r=n("cb5a"),i=Array.prototype,o=i.splice;function a(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():o.call(t,n,1),--this.size,!0}e.exports=a},"6d6b":function(e,t,n){"use strict";var r=n("aefd"),i=n("b726");e.exports=r.bind(null,i)},"6e0c":function(e,t,n){var r=n("e485"),i=n("4c70");e.exports={distanceInWords:r(),format:i()}},"6f6c":function(e,t){var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}e.exports=r},"6fcd":function(e,t,n){var r=n("50d8"),i=n("d370"),o=n("6747"),a=n("0d24"),s=n("c098"),u=n("73ac"),l=Object.prototype,c=l.hasOwnProperty;function f(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&u(e),h=n||l||f||d,p=h?r(e.length,String):[],m=p.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||p.push(g);return p}e.exports=f},"6ff7":function(e,t,n){"use strict";n.r(t),n.d(t,"tableEditing",(function(){return tt})),n.d(t,"fixTables",(function(){return ue})),n.d(t,"handlePaste",(function(){return te})),n.d(t,"fixTablesKey",(function(){return ae})),n.d(t,"cellAround",(function(){return m})),n.d(t,"isInTable",(function(){return v})),n.d(t,"selectionCell",(function(){return y})),n.d(t,"moveCellForward",(function(){return w})),n.d(t,"inSameTable",(function(){return _})),n.d(t,"findCell",(function(){return x})),n.d(t,"colCount",(function(){return S})),n.d(t,"nextCell",(function(){return k})),n.d(t,"tableNodes",(function(){return L})),n.d(t,"CellSelection",(function(){return T})),n.d(t,"TableMap",(function(){return l})),n.d(t,"tableEditingKey",(function(){return p})),n.d(t,"selectedRect",(function(){return ce})),n.d(t,"addColumn",(function(){return de})),n.d(t,"addColumnBefore",(function(){return he})),n.d(t,"addColumnAfter",(function(){return pe})),n.d(t,"removeColumn",(function(){return me})),n.d(t,"deleteColumn",(function(){return ge})),n.d(t,"rowIsHeader",(function(){return ve})),n.d(t,"addRow",(function(){return ye})),n.d(t,"addRowBefore",(function(){return be})),n.d(t,"addRowAfter",(function(){return qe})),n.d(t,"removeRow",(function(){return we})),n.d(t,"deleteRow",(function(){return _e})),n.d(t,"mergeCells",(function(){return ke})),n.d(t,"splitCell",(function(){return Ce})),n.d(t,"splitCellWithType",(function(){return Ee})),n.d(t,"setCellAttr",(function(){return Oe})),n.d(t,"toggleHeader",(function(){return De})),n.d(t,"toggleHeaderRow",(function(){return Pe})),n.d(t,"toggleHeaderColumn",(function(){return Me})),n.d(t,"toggleHeaderCell",(function(){return Ne})),n.d(t,"goToNextCell",(function(){return Ie})),n.d(t,"deleteTable",(function(){return Fe})),n.d(t,"columnResizing",(function(){return Ue})),n.d(t,"columnResizingPluginKey",(function(){return Be})),n.d(t,"updateColumnsOnResize",(function(){return Le})),n.d(t,"__pastedCells",(function(){return U})),n.d(t,"__insertCells",(function(){return Y})),n.d(t,"__clipCells",(function(){return $}));var r=n("65e8"),i=n("304a"),o=n("7f06");let a,s;if("undefined"!=typeof WeakMap){let e=new WeakMap;a=t=>e.get(t),s=(t,n)=>(e.set(t,n),n)}else{let e=[],t=10,n=0;a=t=>{for(let n=0;n(n==t&&(n=0),e[n++]=r,e[n++]=i)}class u{constructor(e,t,n,r){this.left=e,this.top=t,this.right=n,this.bottom=r}}class l{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t=n){(o||(o=[])).push({type:"overlong_rowspan",pos:c,n:d-e});break}let s=i+e*t;for(let e=0;er&&(o+=i.attrs.colspan)}}for(let e=0;e1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}function d(e,t,n){e.problems||(e.problems=[]);for(let r=0,i={};r0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function g(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}function v(e){let t=e.selection.$head;for(let n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function y(e){let t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:m(t.$head)||b(t.$head)}function b(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}function q(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function w(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function _(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function x(e){return l.get(e.node(-1)).findCell(e.pos-e.start(-1))}function S(e){return l.get(e.node(-1)).colCount(e.pos-e.start(-1))}function k(e,t,n){let r=e.start(-1),i=l.get(e.node(-1)),o=i.nextCell(e.pos-r,t,n);return null==o?null:e.node(0).resolve(r+o)}function C(e,t,n){let r={};for(let i in e)r[i]=e[i];return r[t]=n,r}function E(e,t,n=1){let r=C(e,"colspan",e.colspan-n);return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function O(e,t,n=1){let r=C(e,"colspan",e.colspan+n);if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;ee!=t.pos-o);u.unshift(t.pos-o);let c=u.map(e=>{let t=n.nodeAt(e),i=e+o+1;return new r["SelectionRange"](s.resolve(i),s.resolve(i+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(e,t){let n=e.resolve(t.map(this.$anchorCell.pos)),i=e.resolve(t.map(this.$headCell.pos));if(q(n)&&q(i)&&_(n,i)){let e=this.$anchorCell.node(-1)!=n.node(-1);return e&&this.isRowSelection()?T.rowSelection(n,i):e&&this.isColSelection()?T.colSelection(n,i):new T(n,i)}return r["TextSelection"].between(n,i)}content(){let e=this.$anchorCell.node(-1),t=l.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},a=[];for(let u=r.top;u0||l>0){let e=s.attrs;u>0&&(e=E(e,0,u)),l>0&&(e=E(e,e.colspan-l,l)),s=i.leftr.bottom){let e=C(s.attrs,"rowspan",Math.min(i.bottom,r.bottom)-Math.max(i.top,r.top));s=i.top0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){let n=l.get(e.node(-1)),r=e.start(-1),i=n.findCell(e.pos-r),o=n.findCell(t.pos-r),a=e.node(0);return i.top<=o.top?(i.top>0&&(e=a.resolve(r+n.map[i.left])),o.bottom0&&(t=a.resolve(r+n.map[o.left])),i.bottom0)return!1;let i=n+this.$anchorCell.nodeAfter.attrs.colspan,o=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,o)==e.width}eq(e){return e instanceof T&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){let n=l.get(e.node(-1)),r=e.start(-1),i=n.findCell(e.pos-r),o=n.findCell(t.pos-r),a=e.node(0);return i.left<=o.left?(i.left>0&&(e=a.resolve(r+n.map[i.top*n.width])),o.right0&&(t=a.resolve(r+n.map[o.top*n.width])),i.right{t.push(A["a"].node(n,n+e.nodeSize,{class:"selectedCell"}))}),A["b"].create(e.doc,t)}function M({$from:e,$to:t}){if(e.pos==t.pos||e.pos=0;i--,n++)if(e.after(i+1)=0;o--,r--)if(t.before(o+1)>t.start(o))break;return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}function N({$from:e,$to:t}){let n,r;for(let i=e.depth;i>0;i--){let t=e.node(i);if("cell"===t.type.spec.tableRole||"header_cell"===t.type.spec.tableRole){n=t;break}}for(let i=t.depth;i>0;i--){let e=t.node(i);if("cell"===e.type.spec.tableRole||"header_cell"===e.type.spec.tableRole){r=e;break}}return n!==r&&0===t.parentOffset}function R(e,t,n){let i,o,a=(t||e).selection,s=(t||e).doc;if(a instanceof r["NodeSelection"]&&(o=a.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)i=T.create(s,a.from);else if("row"==o){let e=s.resolve(a.from+1);i=T.rowSelection(e,e)}else if(!n){let e=l.get(a.node),t=a.from+1,n=t+e.map[e.width*e.height-1];i=T.create(s,t+1,n)}}else a instanceof r["TextSelection"]&&M(a)?i=r["TextSelection"].create(s,a.from):a instanceof r["TextSelection"]&&N(a)&&(i=r["TextSelection"].create(s,a.$from.start(),a.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}var I=n("2eae");function F(e,t){let n=e.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(e=>Number(e)):null,i=Number(e.getAttribute("colspan")||1),o={colspan:i,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:r&&r.length==i?r:null};for(let a in t){let n=t[a].getFromDOM,r=n&&n(e);null!=r&&(o[a]=r)}return o}function j(e,t){let n={};1!=e.attrs.colspan&&(n.colspan=e.attrs.colspan),1!=e.attrs.rowspan&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(","));for(let r in t){let i=t[r].setDOMAttr;i&&i(e.attrs[r],n)}return n}function L(e){let t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(let r in t)n[r]={default:t[r].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:e=>F(e,t)}],toDOM(e){return["td",j(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:e=>F(e,t)}],toDOM(e){return["th",j(e,t),0]}}}}function B(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}function U(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;while(1==t.childCount&&(n>0&&r>0||"table"==t.firstChild.type.spec.tableRole))n--,r--,t=t.firstChild.content;let o=t.firstChild,a=o.type.spec.tableRole,s=o.type.schema,u=[];if("row"==a)for(let l=0;l=0;t--){let{rowspan:r,colspan:o}=e.child(t).attrs;for(let e=i;e=t.length&&t.push(i["Fragment"].empty),n[o]r&&(o=o.type.create(E(o.attrs,o.attrs.colspan,n+o.attrs.colspan-r),o.content)),s.push(o),n+=o.attrs.colspan;for(let n=1;no&&(t=t.type.create(C(t.attrs,"rowspan",o-t.attrs.rowspan),t.content)),s.push(t)}e.push(i["Fragment"].from(s))}n=e,t=o}return{width:e,height:t,rows:n}}function V(e,t,n,r,o,a,s){let u,l,c=e.doc.type.schema,f=B(c);if(o>t.width)for(let i=0,d=0;it.height){let c=[];for(let e=0,r=(t.height-1)*t.width;e=t.width)&&n.nodeAt(t.map[r+e]).type==f.header_cell;c.push(i?l||(l=f.header_cell.createAndFill()):u||(u=f.cell.createAndFill()))}let d=f.row.create(null,i["Fragment"].from(c)),h=[];for(let e=t.height;e{let a=n.selection;if(a instanceof T)return K(n,i,r["Selection"].near(a.$headCell,t));if("horiz"!=e&&!a.empty)return!1;let s=re(o,e,t);if(null==s)return!1;if("horiz"==e)return K(n,i,r["Selection"].near(n.doc.resolve(a.head+t),t));{let o,a=n.doc.resolve(s),u=k(a,e,t);return o=u?r["Selection"].near(u,1):t<0?r["Selection"].near(n.doc.resolve(a.before(-1)),-1):r["Selection"].near(n.doc.resolve(a.after(-1)),1),K(n,i,o)}}}function Q(e,t){return(n,r,i)=>{let o=n.selection;if(!(o instanceof T)){let r=re(i,e,t);if(null==r)return!1;o=new T(n.doc.resolve(r))}let a=k(o.$headCell,e,t);return!!a&&K(n,r,new T(o.$anchorCell,a))}}function Z(e,t){let n=e.selection;if(!(n instanceof T))return!1;if(t){let r=e.tr,o=B(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(o)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new i["Slice"](o,0,0))}),r.docChanged&&t(r)}return!0}function ee(e,t){let n=e.state.doc,r=m(n.resolve(t));return!!r&&(e.dispatch(e.state.tr.setSelection(new T(r))),!0)}function te(e,t,n){if(!v(e.state))return!1;let r=U(n),o=e.state.selection;if(o instanceof T){r||(r={width:1,height:1,rows:[i["Fragment"].from(H(B(e.state.schema).cell,n))]});let t=o.$anchorCell.node(-1),a=o.$anchorCell.start(-1),s=l.get(t).rectBetween(o.$anchorCell.pos-a,o.$headCell.pos-a);return r=$(r,s.right-s.left,s.bottom-s.top),Y(e.state,e.dispatch,a,s,r),!0}if(r){let t=y(e.state),n=t.start(-1);return Y(e.state,e.dispatch,n,l.get(t.node(-1)).findCell(t.pos-n),r),!0}return!1}function ne(e,t){if(t.ctrlKey||t.metaKey)return;let n,r=ie(e,t.target);if(t.shiftKey&&e.state.selection instanceof T)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(n=m(e.state.selection.$anchor))&&oe(e,t).pos!=n.pos)i(n,t),t.preventDefault();else if(!r)return;function i(t,n){let r=oe(e,n),i=null==p.getState(e.state);if(!r||!_(t,r)){if(!i)return;r=t}let o=new T(t,r);if(i||!e.state.selection.eq(o)){let n=e.state.tr.setSelection(o);i&&n.setMeta(p,t.pos),e.dispatch(n)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",a),null!=p.getState(e.state)&&e.dispatch(e.state.tr.setMeta(p,-1))}function a(n){let a,s=p.getState(e.state);if(null!=s)a=e.state.doc.resolve(s);else if(ie(e,n.target)!=r&&(a=oe(e,t),!a))return o();a&&i(a,n)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",a)}function re(e,t,n){if(!(e.state.selection instanceof r["TextSelection"]))return null;let{$head:i}=e.state.selection;for(let r=i.depth-1;r>=0;r--){let o=i.node(r),a=n<0?i.index(r):i.indexAfter(r);if(a!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let o=i.before(r),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?o:null}}return null}function ie(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function oe(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?m(e.state.doc.resolve(n.pos)):null}const ae=new r["PluginKey"]("fix-tables");function se(e,t,n,r){let i=e.childCount,o=t.childCount;e:for(let a=0,s=0;a{"table"==t.type.spec.tableRole&&(n=le(e,t,r,n))};return t?t.doc!=e.doc&&se(t.doc,e.doc,0,r):e.doc.descendants(r),n}function le(e,t,n,r){let i=l.get(t);if(!i.problems)return r;r||(r=e.tr);let o,a,s=[];for(let u=0;u0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);let s=[];for(let n=0;n0?-1:0;fe(t,r,i+o)&&(o=0==i||i==t.width?null:0);for(let a=0;a0&&i0&&t.map[s-1]==u||i0?-1:0;ve(t,r,i+s)&&(s=0==i||i==t.height?null:0);for(let u=0,l=t.width*i;u0&&i0&&o==t.map[l-t.width]){let t=n.nodeAt(o).attrs;e.setNodeMarkup(e.mapping.slice(s).map(o+r),null,C(t,"rowspan",t.rowspan-1)),u+=t.colspan-1}else if(i0&&n[o]==n[o-1]||r.right0&&n[i]==n[i-e]||r.bottomn[e.type.spec.tableRole])(e,t)}function Ee(e){return(t,n)=>{let r,i,o=t.selection;if(o instanceof T){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;r=o.$anchorCell.nodeAfter,i=o.$anchorCell.pos}else{if(r=g(o.$from),!r)return!1;i=m(o.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(n){let a=r.attrs,s=[],u=a.colwidth;a.rowspan>1&&(a=C(a,"rowspan",1)),a.colspan>1&&(a=C(a,"colspan",1));let l,c=ce(t),f=t.tr;for(let e=0;e{n.attrs[e]!==t&&o.setNodeMarkup(r,null,C(n.attrs,e,t))}):o.setNodeMarkup(i.pos,null,C(i.nodeAfter.attrs,e,t)),r(o)}return!0}}function Ae(e){return function(t,n){if(!v(t))return!1;if(n){let r=B(t.schema),i=ce(t),o=t.tr,a=i.map.cellsInRect("column"==e?new u(i.left,0,i.right,i.map.height):"row"==e?new u(0,i.top,i.map.width,i.bottom):i),s=a.map(e=>i.table.nodeAt(e));for(let e=0;e{const t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,d,n.attrs)}),n(o)}return!0}}let Pe=De("row",{useDeprecatedLogic:!0}),Me=De("column",{useDeprecatedLogic:!0}),Ne=De("cell",{useDeprecatedLogic:!0});function Re(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let n=e.index(-1)-1,r=e.before();n>=0;n--){let t=e.node(-1).child(n);if(t.childCount)return r-1-t.lastChild.nodeSize;r-=t.nodeSize}}else{if(e.index()0;r--){let i=n.node(r);if("table"==i.type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0}return!1}class je{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Le(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,Le(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}}function Le(e,t,n,r,i,o){let a=0,s=!0,u=t.firstChild,l=e.firstChild;for(let c=0,f=0;cnew n(e,t,r),new ze(-1,!1)},apply(e,t){return t.apply(e)}},props:{attributes(e){let t=Be.getState(e);return t.activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove(n,r){He(n,r,e,t,i)},mouseleave(e){$e(e)},mousedown(e,n){Ve(e,n,t)}},decorations(e){let t=Be.getState(e);if(t.activeHandle>-1)return et(e,t.activeHandle)},nodeViews:{}}});return o}class ze{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){let t=this,n=e.getMeta(Be);if(n&&null!=n.setHandle)return new ze(n.setHandle,null);if(n&&void 0!==n.setDragging)return new ze(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){let n=e.mapping.map(t.activeHandle,-1);q(e.doc.resolve(n))||(n=null),t=new ze(n,t.dragging)}return t}}function He(e,t,n,r,i){let o=Be.getState(e.state);if(!o.dragging){let r=Xe(t.target),a=-1;if(r){let{left:i,right:o}=r.getBoundingClientRect();t.clientX-i<=n?a=Ye(e,t,"left"):o-t.clientX<=n&&(a=Ye(e,t,"right"))}if(a!=o.activeHandle){if(!i&&-1!==a){let t=e.state.doc.resolve(a),n=t.node(-1),r=l.get(n),i=t.start(-1),o=r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1;if(o==r.width-1)return}Ke(e,a)}}}function $e(e){let t=Be.getState(e.state);t.activeHandle>-1&&!t.dragging&&Ke(e,-1)}function Ve(e,t,n){let r=Be.getState(e.state);if(-1==r.activeHandle||r.dragging)return!1;let i=e.state.doc.nodeAt(r.activeHandle),o=We(e,r.activeHandle,i.attrs);function a(t){window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",s);let r=Be.getState(e.state);r.dragging&&(Je(e,r.activeHandle,Ge(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Be,{setDragging:null})))}function s(t){if(!t.which)return a(t);let r=Be.getState(e.state),i=Ge(r.dragging,t,n);Qe(e,r.activeHandle,i,n)}return e.dispatch(e.state.tr.setMeta(Be,{setDragging:{startX:t.clientX,startWidth:o}})),window.addEventListener("mouseup",a),window.addEventListener("mousemove",s),t.preventDefault(),!0}function We(e,t,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=e.domAtPos(t),a=o.node.childNodes[o.offset],s=a.offsetWidth,u=n;if(r)for(let l=0;l=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return M}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function u(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=u(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function f(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,p);var m=function(e){this.register([],e,!1)};function g(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;g(e.concat(r),t.getChild(r),n.modules[r])}}m.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},m.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},m.prototype.update=function(e){g([],this.root,e)},m.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&l(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},m.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},m.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v;var y=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,u=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return u.call(i,e,t,n)},this.strict=r;var l=this._modules.root.state;x(this,l,[],this._modules.root),_(this,l),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:v.config.devtools;c&&a(this)},b={state:{configurable:!0}};function q(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;x(e,n,[],e._modules.root,!0),_(e,n,t)}function _(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};l(i,(function(t,n){o[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=a,e.strict&&A(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function x(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=T(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){v.set(s,u,r.state)}))}var l=r.context=S(e,a,n);r.forEachMutation((function(t,n){var r=a+n;C(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;E(e,r,i,l)})),r.forEachGetter((function(t,n){var r=a+n;O(e,r,t,l)})),r.forEachChild((function(r,o){x(e,t,n.concat(o),r,i)}))}function S(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=D(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=t+u),e.dispatch(u,a)},commit:r?e.commit:function(n,r,i){var o=D(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=t+u),e.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return k(e,t)}},state:{get:function(){return T(e.state,n)}}}),i}function k(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function C(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function E(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return f(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function O(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function A(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function T(e,t){return t.reduce((function(e,t){return e[t]}),e)}function D(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function P(e){v&&e===v||(v=e,r(v))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(e){0},y.prototype.commit=function(e,t,n){var r=this,i=D(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},y.prototype.dispatch=function(e,t){var n=this,r=D(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(l){0}var u=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(l){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(l){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return q(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return q(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),x(this,this.state,e,this._modules.get(e),n.preserveState),_(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=T(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),w(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,b);var M=B((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=U(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),N=B((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=U(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),R=B((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||U(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),I=B((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=U(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),F=function(e){return{mapState:M.bind(null,e),mapGetters:R.bind(null,e),mapMutations:N.bind(null,e),mapActions:I.bind(null,e)}};function j(e){return L(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function L(e){return Array.isArray(e)||c(e)}function B(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function U(e,t,n){var r=e._modulesNamespaceMap[n];return r}function z(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var f=u(e.state);"undefined"!==typeof c&&(s&&e.subscribe((function(e,o){var a=u(o);if(n(e,f,a)){var s=V(),l=i(e),d="mutation "+e.type+s;H(c,d,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),$(c)}f=a})),l&&e.subscribeAction((function(e,n){if(o(e,n)){var r=V(),i=a(e),s="action "+e.type+r;H(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),$(c)}})))}}function H(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function $(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function V(){var e=new Date;return" @ "+X(e.getHours(),2)+":"+X(e.getMinutes(),2)+":"+X(e.getSeconds(),2)+"."+X(e.getMilliseconds(),3)}function W(e,t){return new Array(t+1).join(e)}function X(e,t){return W("0",t-e.toString().length)+e}var Y={Store:y,install:P,version:"3.6.2",mapState:M,mapMutations:N,mapGetters:R,mapActions:I,createNamespacedHelpers:F,createLogger:z};t["a"]=Y}).call(this,n("c8ba"))},"2fcc":function(e,t){function n(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=n},"304a":function(e,t,n){"use strict";function r(e){this.content=e}n.r(t),n.d(t,"ContentMatch",(function(){return U})),n.d(t,"DOMParser",(function(){return he})),n.d(t,"DOMSerializer",(function(){return Ae})),n.d(t,"Fragment",(function(){return u})),n.d(t,"Mark",(function(){return h})),n.d(t,"MarkType",(function(){return ce})),n.d(t,"Node",(function(){return F})),n.d(t,"NodeRange",(function(){return N})),n.d(t,"NodeType",(function(){return ae})),n.d(t,"ReplaceError",(function(){return p})),n.d(t,"ResolvedPos",(function(){return A})),n.d(t,"Schema",(function(){return fe})),n.d(t,"Slice",(function(){return m})),r.prototype={constructor:r,find:function(e){for(var t=0;t>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var i=r,o=i;function a(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var i=e.child(r),o=t.child(r);if(i!=o){if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(var s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){var u=a(i.content,o.content,n+1);if(null!=u)return u}n+=i.nodeSize}else n+=i.nodeSize}}function s(e,t,n,r){for(var i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:n,b:r};var a=e.child(--i),u=t.child(--o),l=a.nodeSize;if(a!=u){if(!a.sameMarkup(u))return{a:n,b:r};if(a.isText&&a.text!=u.text){var c=0,f=Math.min(a.text.length,u.text.length);while(ce&&!1!==n(s,r+a,i,o)&&s.content.size){var l=a+1;s.nodesBetween(Math.max(0,e-l),Math.min(s.content.size,t-l),n,r+l)}a=u}},u.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},u.prototype.textBetween=function(e,t,n,r){var i="",o=!0;return this.nodesBetween(e,t,(function(a,s){a.isText?(i+=a.text.slice(Math.max(e,s)-s,t-s),o=!n):a.isLeaf&&r?(i+=r,o=!n):!o&&a.isBlock&&(i+=n,o=!0)}),0),i},u.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);ie)for(var i=0,o=0;oe&&((ot)&&(a=a.isText?a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),n.push(a),r+=a.nodeSize),o=s}return new u(n,r)},u.prototype.cutByIndex=function(e,t){return e==t?u.empty:0==e&&t==this.content.length?this:new u(this.content.slice(e,t))},u.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new u(r,i)},u.prototype.addToStart=function(e){return new u([e].concat(this.content),this.size+e.nodeSize)},u.prototype.addToEnd=function(e){return new u(this.content.concat(e),this.size+e.nodeSize)},u.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;tthis.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e||t>0?f(n+1,o):f(n,r);r=o}},u.prototype.toString=function(){return"<"+this.toStringInner()+">"},u.prototype.toStringInner=function(){return this.content.join(", ")},u.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},u.fromJSON=function(e,t){if(!t)return u.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new u(t.map(e.nodeFromJSON))},u.fromArray=function(e){if(!e.length)return u.empty;for(var t,n=0,r=0;rthis.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t},h.prototype.removeFromSet=function(e){for(var t=0;te.depth)throw new p("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new p("Inconsistent open depths");return q(e,t,n,0)}function q(e,t,n,r){var i=e.index(r),o=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function S(e,t,n,r){var i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(x(e.nodeAfter,r),o++));for(var s=o;si&&_(e,t,i+1),a=r.depth>i&&_(n,r,i+1),s=[];return S(null,e,i,s),o&&a&&t.index(i)==n.index(i)?(w(o,a),x(k(o,C(e,t,n,r,i+1)),s)):(o&&x(k(o,E(e,t,i+1)),s),S(t,n,i,s),a&&x(k(a,E(n,r,i+1)),s)),S(r,null,i,s),new u(s)}function E(e,t,n){var r=[];if(S(null,e,n,r),e.depth>n){var i=_(e,t,n+1);x(k(i,E(e,t,n+1)),r)}return S(t,null,n,r),new u(r)}function O(e,t){for(var n=t.depth-e.openStart,r=t.node(n),i=r.copy(e.content),o=n-1;o>=0;o--)i=t.node(o).copy(u.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}g.size.get=function(){return this.content.size-this.openStart-this.openEnd},m.prototype.insertAt=function(e,t){var n=y(this.content,e+this.openStart,t,null);return n&&new m(n,this.openStart,this.openEnd)},m.prototype.removeBetween=function(e,t){return new m(v(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},m.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},m.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},m.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},m.fromJSON=function(e,t){if(!t)return m.empty;var n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new m(u.fromJSON(e,t.content),t.openStart||0,t.openEnd||0)},m.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,r=0,i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(var o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)r++;return new m(e,n,r)},Object.defineProperties(m.prototype,g),m.empty=new m(u.empty,0,0);var A=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},T={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};A.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},T.parent.get=function(){return this.node(this.depth)},T.doc.get=function(){return this.node(0)},A.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},A.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},A.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},A.prototype.start=function(e){return e=this.resolveDepth(e),0==e?0:this.path[3*e-1]+1},A.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},A.prototype.before=function(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},A.prototype.after=function(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},T.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},T.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r},T.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},A.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return h.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var i=n;n=r,r=i}for(var o=n.marks,a=0;a0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},A.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new N(this,e,n)},A.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},A.prototype.max=function(e){return e.pos>this.pos?e:this},A.prototype.min=function(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],r=0,i=t,o=e;;){var a=o.content.findIndex(i),s=a.index,u=a.offset,l=i-u;if(n.push(o,s,r+u),!l)break;if(o=o.child(s),o.isText)break;i=l-1,r+=u+1}return new A(t,n,i)},A.resolveCached=function(e,t){for(var n=0;ne&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(r=!0),!r})),r},j.isBlock.get=function(){return this.type.isBlock},j.isTextblock.get=function(){return this.type.isTextblock},j.inlineContent.get=function(){return this.type.inlineContent},j.isInline.get=function(){return this.type.isInline},j.isText.get=function(){return this.type.isText},j.isLeaf.get=function(){return this.type.isLeaf},j.isAtom.get=function(){return this.type.isAtom},F.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),B(this.marks,e)},F.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},F.prototype.canReplace=function(e,t,n,r,i){void 0===n&&(n=u.empty),void 0===r&&(r=0),void 0===i&&(i=n.childCount);var o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=r;s=0;n--)t=e[n].type.name+"("+t+")";return t}var U=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},z={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};U.parse=function(e,t){var n=new H(e,t);if(null==n.next)return U.empty;var r=V(n);n.next&&n.err("Unexpected trailing text");var i=te(Q(r));return ne(i,n),i},U.prototype.matchType=function(e){for(var t=0;t>1},U.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},U.prototype.toString=function(){var e=[];function t(n){e.push(n);for(var r=1;r"+e.indexOf(t.next[i+1]);return r})).join("\n")},Object.defineProperties(U.prototype,z),U.empty=new U(!0);var H=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.unshift()},$={next:{configurable:!0}};function V(e){var t=[];do{t.push(W(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function W(e){var t=[];do{t.push(X(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function X(e){for(var t=J(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=G(e,t)}return t}function Y(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function G(e,t){var n=Y(e),r=n;return e.eat(",")&&(r="}"!=e.next?Y(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function K(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var i=[];for(var o in n){var a=n[o];a.groups.indexOf(t)>-1&&i.push(a)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i}function J(e){if(e.eat("(")){var t=V(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=K(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}function Q(e){var t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach((function(e){return e.to=t}))}function o(e,t){if("choice"==e.type)return e.exprs.reduce((function(e,n){return e.concat(o(n,t))}),[]);if("seq"==e.type)for(var a=0;;a++){var s=o(e.exprs[a],t);if(a==e.exprs.length-1)return s;i(s,t=n())}else{if("star"==e.type){var u=n();return r(t,u),i(o(e.expr,u),u),[r(u)]}if("plus"==e.type){var l=n();return i(o(e.expr,t),l),i(o(e.expr,l),l),[r(l)]}if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){for(var c=t,f=0;f-1&&i[o+1];ee(e,r).forEach((function(e){a||i.push(n,a=[]),-1==a.indexOf(e)&&a.push(e)}))}}))}));for(var o=t[r.join(",")]=new U(r.indexOf(e.length-1)>-1),a=0;a-1},ae.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t-1};var fe=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=o.from(e.nodes),this.spec.marks=o.from(e.marks),this.nodes=ae.compile(this.spec.nodes,this),this.marks=ce.compile(this.spec.marks,this);var n=Object.create(null);for(var r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");var i=this.nodes[r],a=i.spec.content||"",s=i.spec.marks;i.contentMatch=n[a]||(n[a]=U.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet="_"==s?null:s?de(this,s.split(" ")):""!=s&&i.inlineContent?null:[]}for(var u in this.marks){var l=this.marks[u],c=l.spec.excludes;l.excluded=null==c?[l]:""==c?[]:de(this,c.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function de(e,t){for(var n=[],r=0;r-1)&&n.push(a=u)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}fe.prototype.node=function(e,t,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof ae))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)},fe.prototype.text=function(e,t){var n=this.nodes.text;return new L(n,n.defaultAttrs,e,h.setFrom(t))},fe.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},fe.prototype.nodeFromJSON=function(e){return F.fromJSON(this,e)},fe.prototype.markFromJSON=function(e){return h.fromJSON(this,e)},fe.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var he=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)}))};he.prototype.parse=function(e,t){void 0===t&&(t={});var n=new _e(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},he.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new _e(this,t,!0);return n.addAll(e,null,t.from,t.to),m.maxOpen(n.finish())},he.prototype.matchTag=function(e,t){for(var n=0;ne.length&&(61!=i.style.charCodeAt(e.length)||i.style.slice(e.length+1)!=t))){if(i.getAttrs){var o=i.getAttrs(t);if(!1===o)continue;i.attrs=o}return i}}},he.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r=0;r--){var i=this.nodes[r],o=i.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=i,!o.length))break;if(i.solid)break}if(!t)return!1;this.sync(n);for(var a=0;athis.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},_e.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},_e.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},xe.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e},_e.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=function(e,s){for(;e>=0;e--){var u=n[e];if(""==u){if(e==n.length-1||0==e)continue;for(;s>=o;s--)if(a(e-1,s))return!0;return!1}var l=s>0||0==s&&i?t.nodes[s].type:r&&s>=o?r.node(s-o).type:null;if(!l||l.name!=u&&-1==l.groups.indexOf(u))return!1;s--}return!0};return a(n.length-1,this.open)},_e.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var i=this.parser.schema.nodes[r];if(i.isTextblock&&i.defaultAttrs)return i}},_e.prototype.addPendingMark=function(e){this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},_e.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var r=this.nodes[n],i=r.pendingMarks.lastIndexOf(e);if(i>-1?r.pendingMarks=e.removeFromSet(r.pendingMarks):r.activeMarks=e.removeFromSet(r.activeMarks),r==t)break}},Object.defineProperties(_e.prototype,xe);var Ae=function(e,t){this.nodes=e||{},this.marks=t||{}};function Te(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function De(e){return e.document||window.document}Ae.prototype.serializeFragment=function(e,t,n){var r=this;void 0===t&&(t={}),n||(n=De(t).createDocumentFragment());var i=n,o=null;return e.forEach((function(e){if(o||e.marks.length){o||(o=[]);var n=0,a=0;while(n=0;r--){var i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n},Ae.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&Ae.renderSpec(De(n),r(e,t))},Ae.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};var r=t[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));var o=null,a=n?e.createElementNS(n,r):e.createElement(r),s=t[1],u=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s))for(var l in u=2,s)if(null!=s[l]){var c=l.indexOf(" ");c>0?a.setAttributeNS(l.slice(0,c),l.slice(c+1),s[l]):a.setAttribute(l,s[l])}for(var f=u;fu)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}var h=Ae.renderSpec(e,d,n),p=h.dom,m=h.contentDOM;if(a.appendChild(p),m){if(o)throw new RangeError("Multiple content holes");o=m}}return{dom:a,contentDOM:o}},Ae.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ae(this.nodesFromSchema(e),this.marksFromSchema(e)))},Ae.nodesFromSchema=function(e){var t=Te(e.nodes);return t.text||(t.text=function(e){return e.text}),t},Ae.marksFromSchema=function(e){return Te(e.marks)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"30c9":function(e,t,n){var r=n("9520"),i=n("b218");function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},"320c":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function a(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}e.exports=a()?Object.assign:function(e,t){for(var n,a,s=o(e),u=1;u0?(g=i(e),v=i(t)):(g=i(t),v=i(e));var b,q=o(v,g),w=v.getTimezoneOffset()-g.getTimezoneOffset(),_=Math.round(q/60)-w;if(_<2)return d.includeSeconds?q<5?m("lessThanXSeconds",5,y):q<10?m("lessThanXSeconds",10,y):q<20?m("lessThanXSeconds",20,y):q<40?m("halfAMinute",null,y):m(q<60?"lessThanXMinutes":"xMinutes",1,y):0===_?m("lessThanXMinutes",1,y):m("xMinutes",_,y);if(_<45)return m("xMinutes",_,y);if(_<90)return m("aboutXHours",1,y);if(_r.relevance&&(r=o),o.relevance>n.relevance&&(r=n,n=o));return r.language&&(n.secondBest=r),n}function x(e,t,n){var r=n||{},i=r.prefix;return null!==i&&void 0!==i||(i=l),M(E(e,t,!0,i))}function S(e,t){var n=t(a);n.rawDefinition=t.bind(null,a),q[e]=n,b.push(e),n.aliases&&C(e,n.aliases)}function k(){return b.concat()}function C(e,t){var n,r,i,o,a=e;for(n in t&&(a={},a[e]=t),a){r=a[n],r="string"===typeof r?[r]:r,i=r.length,o=-1;while(++o");return b+=a,a.length}function A(e){var t;e.className&&(t=j(e.className,[])),t&&(f.push(t),y.push(f),f=t.children),s=Object.create(e,{parent:{value:s}})}function T(){var e=s.subLanguage?D():P();return b="",e}function D(){var e,t="string"===typeof s.subLanguage;return t&&!q[s.subLanguage]?I(b,[]):(e=t?E(s.subLanguage,b,!0,r,v[s.subLanguage]):_(b,{subset:0===s.subLanguage.length?void 0:s.subLanguage,prefix:r}),e.language?(s.relevance>0&&(w+=e.relevance),t&&(v[s.subLanguage]=e.top),[j(e.language,e.value,!0)]):[F(b)])}function P(){var e,t,n,r,i=[];if(!s.keywords)return I(b,i);e=0,s.lexemesRe.lastIndex=0,t=s.lexemesRe.exec(b);while(t)I(b.slice(e,t.index),i),r=L(s,t),r?(w+=r[1],n=j(r[0],[]),i.push(n),I(t[0],n.children)):I(t[0],i),e=s.lexemesRe.lastIndex,t=s.lexemesRe.exec(b);return I(b.slice(e),i),i}function M(e,t){var n,r=e.length,i=-1;while(++i0){if(o=s.exec(i),null===o){l+=i;break}l+=i.slice(0,o.index),i=i.slice(o.index+o[0].length),o[0][0]===v&&o[1]?l+=v+String(Number(o[1])+r):(l+=o[0],o[0]===m&&u++)}l+=g}return l}function o(t,n){return new RegExp(a(t),"m"+(e[c]?"i":"")+(n?"g":""))}function a(e){return e&&e.source||e}t(e)}function A(e,t){var n,r={};if("string"===typeof e)i("keyword",e);else for(n in e)i(n,e[n]);return r;function i(e,n){var r=t?n.toLowerCase():n;o(e,r.split(h))}function o(e,t){var n,i=t.length,o=-1;while(++on.bottom-y(r,"bottom")&&(l=t.bottom-n.bottom+y(i,"bottom")),t.leftn.right-y(r,"right")&&(s=t.right-n.right+y(i,"right")),s||l)if(e)a.scrollBy(s,l);else{let e=u.scrollLeft,n=u.scrollTop;l&&(u.scrollTop+=l),s&&(u.scrollLeft+=s);let r=u.scrollLeft-e,i=u.scrollTop-n;t={left:t.left-r,top:t.top-i,right:t.right-r,bottom:t.bottom-i}}if(e)break}}function q(e){let t,n,r=e.dom.getBoundingClientRect(),i=Math.max(0,r.top);for(let o=(r.left+r.right)/2,a=i+1;a=i-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:w(e.dom)}}function w(e){let t=[],n=e.ownerDocument;for(;e;e=s(e))if(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e==n)break;return t}function _({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;x(n,0==r?0:r-t)}function x(e,t){for(let n=0;n=s){a=Math.max(f.bottom,a),s=Math.min(f.top,s);let e=f.left>t.left?f.left-t.left:f.right=(f.left+f.right)/2?1:0));continue}}!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(o=c+1)}}return n&&3==n.nodeType?E(n,r):!n||i&&1==n.nodeType?{node:e,offset:o}:C(n,r)}function E(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}function O(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function A(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function D(e,t,n,r){let i=-1;for(let o=t;;){if(o==e.dom)break;let t=e.docView.nearestDesc(o,!0);if(!t)return null;if(t.node.isBlock&&t.parent){let e=t.dom.getBoundingClientRect();if(e.left>r.left||e.top>r.top)i=t.posBefore;else{if(!(e.right-1?i:e.docView.posFromDOM(t,n)}function P(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&r++}n==e.dom&&r==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:0!=r&&1==n.nodeType&&"BR"==n.childNodes[r-1].nodeName||(a=D(e,n,r,t))}null==a&&(a=T(e,s,t));let u=e.docView.nearestDesc(s,!0);return{pos:a,inside:u?u.posAtStart-u.border:-1}}function N(e,t){let n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}function R(e,t){let{node:n,offset:r}=e.docView.domFromPos(t);if(3==n.nodeType&&(o.webkit||o.gecko)){let e=N(u(n,r,r),0);if(o.gecko&&r&&/\s/.test(n.nodeValue[r-1])&&r0&&r{let{node:t}=e.docView.domFromPos(i.pos);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.dom;break}t=n.dom.parentNode}let r=R(e,i.pos);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=u(e,0,e.nodeValue.length).getClientRects()}for(let e=0;ei.top&&("up"==n?i.bottomr.bottom-1))return!1}}return!0})}const B=/[\u0590-\u08ac]/;function U(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=getSelection();return B.test(r.parent.textContent)&&s.modify?j(e,t,()=>{let t=s.getRangeAt(0),i=s.focusNode,o=s.focusOffset,a=s.caretBidiLevel;s.modify("move",n,"character");let u=r.depth?e.docView.domAfterPos(r.before()):e.dom,l=!u.contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||i==s.focusNode&&o==s.focusOffset;return s.removeAllRanges(),s.addRange(t),null!=a&&(s.caretBidiLevel=a),l}):"left"==n||"backward"==n?o:a}let z=null,H=null,$=!1;function V(e,t,n){return z==t&&H==n?$:(z=t,H=n,$="up"==n||"down"==n?L(e,t,n):U(e,t,n))}var W=n("304a");const X=0,Y=1,G=2,K=3;class J{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=X}matchesWidget(){return!1}matchesMark(){return!1}matchesNode(){return!1}matchesHack(){return!1}get beforePosition(){return!1}parseRule(){return null}stopEvent(){return!1}get size(){let e=0;for(let t=0;t0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i&&(!t||i.node)){if(!n||!i.nodeDOM||(1==i.nodeDOM.nodeType?i.nodeDOM.contains(1==e.nodeType?e:e.parentNode):i.nodeDOM==e))return i;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let n=t;n;n=n.parent)if(n==this)return t}posFromDOM(e,t,n){for(let r=e;;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}}descAt(e){for(let t=0,n=0;t=i&&t<=u-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=o;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=a(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&t<=u){t=u;for(let e=s+1;ed&&ot){let e=a;a=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r=n:en){let r=n+i.border,a=o-i.border;if(e>=r&&t<=a)return this.dirty=e==n||t==o?G:Y,void(e!=r||t!=a||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(e-r,t-r):i.dirty=K);i.dirty=K}n=o}this.dirty=G}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?G:Y;t.dirtyi?i.parent?i.parent.posBeforeChild(i):void 0:r)),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable=!1,o.classList.add("ProseMirror-widget")}super(e,Q,o,null),this.widget=t,i=this}get beforePosition(){return this.widget.type.side<0}matchesWidget(e){return this.dirty==X&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}}class ee extends J{constructor(e,t,n,r){super(e,Q,t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class te extends J{constructor(e,t,n,r){super(e,[],n,r),this.mark=t}static create(e,t,n,r){let i=r.nodeViews[t.type.name],o=i&&i(t,r,n);return o&&o.dom||(o=W["DOMSerializer"].renderSpec(document,t.type.spec.toDOM(t,n))),new te(e,t,o.dom,o.contentDOM||o.dom)}parseRule(){return{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=K&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=X){let e=this.parent;while(!e.node)e=e.parent;e.dirty0&&(i=xe(i,0,e,n));for(let a=0;aa?a.parent?a.parent.posBeforeChild(a):void 0:o,n),l=u&&u.dom,c=u&&u.contentDOM;if(t.isText)if(l){if(3!=l.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else l=document.createTextNode(t.text);else l||({dom:l,contentDOM:c}=W["DOMSerializer"].renderSpec(document,t.type.spec.toDOM(t)));c||t.isText||"BR"==l.nodeName||(l.hasAttribute("contenteditable")||(l.contentEditable=!1),t.type.spec.draggable&&(l.draggable=!0));let f=l;return l=he(l,n,t),u?a=new ae(e,t,n,r,l,c,f,u,i,o+1):t.isText?new ie(e,t,n,r,l,f,i):new ne(e,t,n,r,l,c,f,i,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};return this.node.type.spec.code&&(e.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?e.contentElement=this.contentDOM:e.getContent=()=>this.contentDOM?W["Fragment"].empty:this.node.content,e}matchesNode(e,t,n){return this.dirty==X&&e.eq(this.node)&&pe(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=n&&e.composing&&this.localCompositionNode(e,t),o=new ge(this,i&&i.node);be(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?o.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!a&&o.syncToMarks(i==this.node.childCount?W["Mark"].none:this.node.child(i).marks,n,e),o.placeWidget(t,e,r)},(t,i,a,s)=>{o.syncToMarks(t.marks,n,e),o.findNodeMatch(t,i,a,s)||o.updateNextNode(t,i,a,e,s)||o.addNode(t,i,a,e,r),r+=t.nodeSize}),o.syncToMarks(Q,n,e),this.node.isTextblock&&o.addTextblockHacks(),o.destroyRest(),(o.changed||this.dirty==G)&&(i&&this.protectLocalComposition(e,i),this.renderChildren())}renderChildren(){se(this.contentDOM,this.children,ne.is),o.ios&&qe(this.dom)}localCompositionNode(e,t){let{from:n,to:i}=e.state.selection;if(!(e.state.selection instanceof r["TextSelection"])||nt+this.node.content.size)return;let o=e.root.getSelection(),a=we(o.focusNode,o.focusOffset);if(!a||!this.dom.contains(a.parentNode))return;let s=a.nodeValue,u=_e(this.node.content,s,n-t,i-t);return u<0?null:{node:a,pos:u,text:s}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;;i=i.parentNode){if(i.parentNode==this.contentDOM)break;while(i.previousSibling)i.parentNode.removeChild(i.previousSibling);while(i.nextSibling)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=null)}let o=new ee(this,i,t,r);e.compositionNodes.push(o),this.children=xe(this.children,n,n+r.length,e,o)}update(e,t,n,r){return!(this.dirty==K||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=X}updateOuterDeco(e){if(pe(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=fe(this.dom,this.nodeDOM,ce(this.outerDeco,this.node,t),ce(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}}function re(e,t,n,r,i){return he(r,t,e),new ne(null,e,t,n,r,r,r,i,0)}class ie extends ne{constructor(e,t,n,r,i,o,a){super(e,t,n,r,i,null,o,a)}parseRule(){return{skip:this.nodeDOM.parentNode||!0}}update(e,t){return!(this.dirty==K||this.dirty!=X&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),this.dirty==X&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text),this.node=e,this.dirty=X,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),i=document.createTextNode(r.text);return new ie(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}}class oe extends J{parseRule(){return{ignore:!0}}matchesHack(){return this.dirty==X}}class ae extends ne{constructor(e,t,n,r,i,o,a,s,u,l){super(e,t,n,r,i,o,a,u,l),this.spec=s}update(e,t,n,r){if(this.dirty==K)return!1;if(this.spec.update){let i=this.spec.update(e,t);return i&&this.updateInner(e,t,n,r),i}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function se(e,t){let n=e.firstChild;for(let r=0;r=this.preMatchOffset?this.preMatched[e-this.preMatchOffset]:null}destroyBetween(e,t){if(e!=t){for(let n=e;n>1,o=Math.min(i,e.length);while(r-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=te.create(this.top,e[i],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,n,r){let i=-1,o=r<0?void 0:this.getPreMatch(r),a=this.top.children;if(o&&o.matchesNode(e,t,n))i=a.indexOf(o);else for(let s=this.index,u=Math.min(a.length,s+5);s-1&&s+this.preMatchOffset!=i)return!1;let u=a.dom,l=this.lock&&(u==this.lock||1==u.nodeType&&u.contains(this.lock.parentNode))&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=K&&pe(t,a.outerDeco));if(!l&&a.update(e,t,n,r))return this.destroyBetween(this.index,o),a.dom!=u&&(this.changed=!0),this.index++,!0;break}}return!1}addNode(e,t,n,r,i){this.top.children.splice(this.index++,0,ne.create(this.top,e,t,n,r,i)),this.changed=!0}placeWidget(e,t,n){if(this.index0&&i>=0;i--){let o=t[i],a=o.node;if(a){if(a!=e.child(r-1))break;n.push(o),--r}}return{nodes:n.reverse(),offset:r}}function ye(e,t){return e.type.side-t.type.side}function be(e,t,n,r){let i=t.locals(e),o=0;if(0==i.length){for(let n=0;n0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=d(e)}else{if(!(1==e.nodeType&&t=n){let e=u.lastIndexOf(t,r-s);if(e>=0&&e+t.length+s>=n)return s+e}}return-1}function xe(e,t,n,r,i){let o=[];for(let a=0,s=0;a=n||c<=t?o.push(u):(ln&&o.push(u.slice(n-l,u.size,r)))}return o}var Se=n("2eae");function ke(e,t){let{$anchor:n,$head:i}=e.selection,o=t>0?n.max(i):n.min(i),a=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return a&&r["Selection"].findFrom(a,t)}function Ce(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Ee(e,t,n){let i=e.state.selection;if(i instanceof r["TextSelection"]){if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){let n=ke(e.state,t);return!!(n&&n instanceof r["NodeSelection"])&&Ce(e,n)}{let n,a=i.$head,s=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!s||s.isText)return!1;let u=t<0?a.pos-s.nodeSize:a.pos;return!!(s.isAtom||(n=e.docView.descAt(u))&&!n.contentDOM)&&(r["NodeSelection"].isSelectable(s)?Ce(e,new r["NodeSelection"](t<0?e.state.doc.resolve(a.pos-s.nodeSize):a)):!!o.webkit&&Ce(e,new r["TextSelection"](e.state.doc.resolve(t<0?u:u+s.nodeSize))))}}if(i instanceof r["NodeSelection"]&&i.node.isInline)return Ce(e,new r["TextSelection"](t>0?i.$to:i.$from));{let n=ke(e.state,t);return!!n&&Ce(e,n)}}function Oe(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Ae(e){let t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function Te(e){let t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,s,u=!1;for(o.gecko&&1==n.nodeType&&r0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(Ae(e))i=n,s=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(Pe(n))break;{let t=n.previousSibling;while(t&&Ae(t))i=n.parentNode,s=a(t),t=t.previousSibling;if(t)n=t,r=Oe(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}u?Me(e,t,n,r):i&&Me(e,t,i,s)}function De(e){let t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,s=Oe(n);for(;;)if(r-1)return!1;let{$from:o,$to:a}=i;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=ke(e.state,t);if(n&&n instanceof r["NodeSelection"])return Ce(e,n)}if(!o.parent.inlineContent){let n=r["Selection"].findFrom(t<0?o:a,t);return!n||Ce(e,n)}return!1}function Re(e,t){if(!(e.state.selection instanceof r["TextSelection"]))return!0;let{$head:n,$anchor:i,empty:o}=e.state.selection;if(!n.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function Ie(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Fe(e){if(!o.chrome||e.state.selection.$head.parentOffset>0)return;let{focusNode:t,focusOffset:n}=e.root.getSelection();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;Ie(e,n,!0),setTimeout(()=>Ie(e,n,!1),20)}}function je(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function Le(e,t){let n=t.keyCode,r=je(t);return 8==n||o.mac&&72==n&&"c"==r?Re(e,-1)||Te(e):46==n||o.mac&&68==n&&"c"==r?Re(e,1)||De(e):13==n||27==n||(37==n?Ee(e,-1,r)||Te(e):39==n?Ee(e,1,r)||De(e):38==n?Ne(e,-1,r)||Te(e):40==n?Fe(e)||Ne(e,1,r)||De(e):r==(o.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function Be(e,t){let n,i,o=e.root.getSelection(),a=e.state.doc,s=e.docView.nearestDesc(o.focusNode),u=s&&0==s.size,l=e.docView.posFromDOM(o.focusNode,o.focusOffset),c=a.resolve(l);if(m(o)){n=c;while(s&&!s.node)s=s.parent;if(s&&s.node.isAtom&&r["NodeSelection"].isSelectable(s.node)&&s.parent&&(!s.node.isInline||!h(o.focusNode,o.focusOffset,s.dom))){let e=s.posBefore;i=new r["NodeSelection"](l==e?c:a.resolve(e))}}else n=a.resolve(e.docView.posFromDOM(o.anchorNode,o.anchorOffset));if(!i){let r="pointer"==t||e.state.selection.head{n.anchorNode==r&&n.anchorOffset==i||(t.removeEventListener("selectionchange",e.hideSelectionGuard),e.dom.classList.remove("ProseMirror-hideselection"))})}function Xe(e){let t=e.root.getSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i="IMG"==r.nodeName;i?n.setEnd(r.parentNode,a(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&o.ie&&o.ie_version<=11&&(r.disabled=!0,r.disabled=!1)}function Ye(e,t){if(t instanceof r["NodeSelection"]){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Ge(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Ge(e)}function Ge(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Ke(e,t,n,i){return e.someProp("createSelectionBetween",r=>r(e,t,n))||r["TextSelection"].between(t,n,i)}function Je(e){return(!e.editable||e.root.activeElement==e.dom)&&Qe(e)}function Qe(e){let t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function Ze(e){let t=e.docView.domFromPos(e.state.selection.anchor),n=e.root.getSelection();return l(t.node,t.offset,n.anchorNode,n.anchorOffset)}function et(e,t,n){let{node:r,fromOffset:i,toOffset:a,from:s,to:u}=e.docView.parseRange(t,n),l=e.root.getSelection(),c=null,f=l.anchorNode;if(f&&e.dom.contains(1==f.nodeType?f:f.parentNode)&&(c=[{node:f,offset:l.anchorOffset}],m(l)||c.push({node:l.focusNode,offset:l.focusOffset})),o.chrome&&8===e.lastKeyCode)for(let o=a;o>i;o--){let e=r.childNodes[o-1],t=e.pmViewDesc;if("BR"==e.nodeType&&!t){a=o;break}if(!t||t.size)break}let d=e.state.doc,h=e.someProp("domParser")||W["DOMParser"].fromSchema(e.state.schema),p=d.resolve(s),g=null,v=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:a,preserveWhitespace:!p.parent.type.spec.code||"full",editableContent:!0,findPositions:c,ruleFromNode:tt,context:p});if(c&&null!=c[0].pos){let e=c[0].pos,t=c[1]&&c[1].pos;null==t&&(t=e),g={anchor:e+s,head:t+s}}return{doc:v,sel:g,from:s,to:u}}function tt(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(o.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||o.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function nt(e,t,n,i,a){if(t<0){let t=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,n=Be(e,t);if(!e.state.selection.eq(n)){let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),e.dispatch(r)}return}let s=e.state.doc.resolve(t),u=s.sharedDepth(n);t=s.before(u+1),n=e.state.doc.resolve(n).after(u+1);let l,c,f=e.state.selection,d=et(e,t,n),h=e.state.doc,p=h.slice(d.from,d.to);8===e.lastKeyCode&&Date.now()-100e.state.selection.from&&m.start<=e.state.selection.from+2?m.start=e.state.selection.from:m.endA=e.state.selection.to-2&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),o.ie&&o.ie_version<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>d.from&&"  "==d.doc.textBetween(m.start-d.from-1,m.start-d.from+1)&&(m.start--,m.endA--,m.endB--);let v,y=d.doc.resolveNoCache(m.start-d.from),b=d.doc.resolveNoCache(m.endB-d.from);if((o.ios&&e.lastIOSEnter>Date.now()-100&&(!y.sameParent(b)||a.some(e=>"DIV"==e.nodeName))||!y.sameParent(b)&&y.post(e,g(13,"Enter"))))return void(e.lastIOSEnter=0);if(e.state.selection.anchor>m.start&&ot(h,m.start,m.endA,y,b)&&e.someProp("handleKeyDown",t=>t(e,g(8,"Backspace"))))return void(o.android&&o.chrome&&e.domObserver.suppressSelectionUpdates());let q,w,_,x,S=m.start,k=m.endA;if(y.sameParent(b)&&y.parent.inlineContent)if(y.pos==b.pos)o.ie&&o.ie_version<=11&&0==y.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ue(e),20)),q=e.state.tr.delete(S,k),w=h.resolve(m.start).marksAcross(h.resolve(m.endA));else if(m.endA==m.endB&&(x=h.resolve(m.start))&&(_=it(y.parent.content.cut(y.parentOffset,b.parentOffset),x.parent.content.cut(x.parentOffset,m.endA-x.start()))))q=e.state.tr,"add"==_.type?q.addMark(S,k,_.mark):q.removeMark(S,k,_.mark);else if(y.parent.child(y.index()).isText&&y.index()==b.index()-(b.textOffset?0:1)){let t=y.parent.textBetween(y.parentOffset,b.parentOffset);if(e.someProp("handleTextInput",n=>n(e,S,k,t)))return;q=e.state.tr.insertText(t,S,k)}if(q||(q=e.state.tr.replace(S,k,d.doc.slice(m.start-d.from,m.endB-d.from))),d.sel){let t=rt(e,q.doc,d.sel);t&&!(o.chrome&&o.android&&e.composing&&t.empty&&(t.head==S||t.head==q.mapping.map(k)-1)||o.ie&&t.empty&&t.head==S)&&q.setSelection(t)}w&&q.ensureMarks(w),e.dispatch(q.scrollIntoView())}function rt(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Ke(e,t.resolve(n.anchor),t.resolve(n.head))}function it(e,t){let n,r,i,o=e.firstChild.marks,a=t.firstChild.marks,s=o,u=a;for(let c=0;ce.mark(r.addToSet(e.marks));else{if(0!=s.length||1!=u.length)return null;r=u[0],n="remove",i=e=>e.mark(r.removeFromSet(e.marks))}let l=[];for(let c=0;cn||at(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount))r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));while(t&&!t.isLeaf)t=t.firstChild,i++}return i}function st(e,t,n,r,i){let o=e.findDiffStart(t,n);if(null==o)return null;let{a:a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==i){let e=Math.max(0,o-Math.min(a,s));r-=a+e-o}if(a=a?o-r:0;o-=e,s=o+(s-a),a=o}else if(s=s?o-r:0;o-=e,a=o+(a-s),s=o}return{start:o,endA:a,endB:s}}function ut(e,t){let n=[],{content:r,openStart:i,openEnd:o}=t;while(i>1&&o>1&&1==r.childCount&&1==r.firstChild.childCount){i--,o--;let e=r.firstChild;n.push(e.type.name,e.type.hasRequiredAttrs()?e.attrs:null),r=e.content}let a=e.someProp("clipboardSerializer")||W["DOMSerializer"].fromSchema(e.state.schema),s=yt(),u=s.createElement("div");u.appendChild(a.serializeFragment(r,{document:s}));let l,c=u.firstChild;while(c&&1==c.nodeType&&(l=gt[c.nodeName.toLowerCase()])){for(let e=l.length-1;e>=0;e--){let t=s.createElement(l[e]);while(u.firstChild)t.appendChild(u.firstChild);u.appendChild(t)}c=u.firstChild}c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${i} ${o} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",e=>e(t))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:u,text:f}}function lt(e,t,n,r,i){let o,a,s=i.parent.type.spec.code;if(!n&&!t)return null;let u=t&&(r||s||!n);if(u){if(e.someProp("transformPastedText",e=>{t=e(t)}),s)return new W["Slice"](W["Fragment"].from(e.state.schema.text(t)),0,0);let n=e.someProp("clipboardTextParser",e=>e(t,i));n?a=n:(o=document.createElement("div"),t.trim().split(/(?:\r\n?|\n)+/).forEach(e=>{o.appendChild(document.createElement("p")).textContent=e}))}else e.someProp("transformPastedHTML",e=>{n=e(n)}),o=bt(n);let l=o&&o.querySelector("[data-pm-slice]"),c=l&&/^(\d+) (\d+) (.*)/.exec(l.getAttribute("data-pm-slice"));if(!a){let t=e.someProp("clipboardParser")||e.someProp("domParser")||W["DOMParser"].fromSchema(e.state.schema);a=t.parseSlice(o,{preserveWhitespace:!(!u&&!c),context:i})}return a=c?qt(mt(a,+c[1],+c[2]),c[3]):W["Slice"].maxOpen(ct(a.content,i),!1),e.someProp("transformPasted",e=>{a=e(a)}),a}function ct(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,i=t.node(n),o=i.contentMatchAt(t.index(n)),a=[];if(e.forEach(e=>{if(!a)return;let t,n=o.findWrapping(e.type);if(!n)return a=null;if(t=a.length&&r.length&&dt(n,r,e,a[a.length-1],0))a[a.length-1]=t;else{a.length&&(a[a.length-1]=ht(a[a.length-1],r.length));let t=ft(e,n);a.push(t),o=o.matchType(t.type,t.attrs),r=n}}),a)return W["Fragment"].from(a)}return e}function ft(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,W["Fragment"].from(e));return e}function dt(e,t,n,r,i){if(i=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,e.childCount>1||o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(W["Fragment"].empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function mt(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=yt().createElement("div"),i=/(?:]*>)*<([a-z][^>\s]+)/i.exec(e),o=0;(n=i&>[i[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"").reverse().join(""),o=n.length),r.innerHTML=e;for(let a=0;a=0;u-=2){let e=r.nodes[n[u]];if(!e||e.hasRequiredAttrs())break;i=W["Fragment"].from(e.create(n[u+1],i)),o++,a++}return new W["Slice"](i,o,a)}const wt={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},_t=o.ie&&o.ie_version<=11;class xt{constructor(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class St{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),this.currentSelection=new xt,_t&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1}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.observe(this.view.dom,wt),_t&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;tthis.flush(),20)}this.observer.disconnect()}_t&&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(Je(this.view)){if(this.suppressingSelectionUpdates)return Ue(this.view);if(o.ie&&o.ie_version<=11&&!this.view.state.selection.empty){let e=this.view.root.getSelection();if(e.focusNode&&l(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.root.getSelection())}ignoreSelectionChange(e){if(0==e.rangeCount)return!0;let t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}flush(){if(!this.view.docView||this.flushingSoon>-1)return;let e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);let t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&Qe(this.view)&&!this.ignoreSelectionChange(t),r=-1,i=-1,a=!1,s=[];if(this.view.editable)for(let o=0;o1){let e=s.filter(e=>"BR"==e.nodeName);if(2==e.length){let[t,n]=e;t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,i),Ct(this.view)),this.handleDOMChange(r,i,a,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||Ue(this.view))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){let r=e.previousSibling,i=e.nextSibling;if(o.ie&&o.ie_version<=11&&e.addedNodes.length)for(let t=0;tnt(e,t,n,r,i)),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);for(let t in Et){let n=Et[t];e.dom.addEventListener(t,e.eventHandlers[t]=t=>{!Nt(e,t)||Mt(e,t)||!e.editable&&t.type in Ot||n(e,t)})}o.safari&&e.dom.addEventListener("input",()=>null),Pt(e)}function Tt(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function Dt(e){e.domObserver.stop();for(let t in e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout)}function Pt(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=t=>Mt(e,t))})}function Mt(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function Nt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function Rt(e,t){Mt(e,t)||!Et[t.type]||!e.editable&&t.type in Ot||Et[t.type](e,t)}function It(e){return{left:e.clientX,top:e.clientY}}function Ft(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function jt(e,t,n,r,i){if(-1==r)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,t=>a>o.depth?t(e,n,o.nodeAfter,o.before(a),i,!0):t(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Lt(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function Bt(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&r["NodeSelection"].isSelectable(i))&&(Lt(e,new r["NodeSelection"](n),"pointer"),!0)}function Ut(e,t){if(-1==t)return!1;let n,i,o=e.state.selection;o instanceof r["NodeSelection"]&&(n=o.node);let a=e.state.doc.resolve(t);for(let s=a.depth+1;s>0;s--){let e=s>a.depth?a.nodeAfter:a.node(s);if(r["NodeSelection"].isSelectable(e)){i=n&&o.$from.depth>0&&s>=o.$from.depth&&a.before(o.$from.depth+1)==o.$from.pos?a.before(o.$from.depth):a.before(s);break}}return null!=i&&(Lt(e,r["NodeSelection"].create(e.state.doc,i),"pointer"),!0)}function zt(e,t,n,r,i){return jt(e,"handleClickOn",t,n,r)||e.someProp("handleClick",n=>n(e,t,r))||(i?Ut(e,n):Bt(e,n))}function Ht(e,t,n,r){return jt(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function $t(e,t,n,r){return jt(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||Vt(e,n)}function Vt(e,t){let n=e.state.doc;if(-1==t)return!!n.inlineContent&&(Lt(e,r["TextSelection"].create(n,0,n.content.size),"pointer"),!0);let i=n.resolve(t);for(let o=i.depth+1;o>0;o--){let t=o>i.depth?i.nodeAfter:i.node(o),a=i.before(o);if(t.inlineContent)Lt(e,r["TextSelection"].create(n,a+1,a+1+t.content.size),"pointer");else{if(!r["NodeSelection"].isSelectable(t))continue;Lt(e,r["NodeSelection"].create(n,a),"pointer")}return!0}}function Wt(e){return Qt(e)}Ot.keydown=(e,t)=>{if(e.shiftKey=16==t.keyCode||t.shiftKey,!Gt(e,t))if(e.domObserver.forceFlush(),e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!o.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",n=>n(e,t))||Le(e,t)?t.preventDefault():Tt(e,"key");else{let t=Date.now();e.lastIOSEnter=t,setTimeout(()=>{e.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,g(13,"Enter"))),e.lastIOSEnter=0)},50)}},Ot.keyup=(e,t)=>{16==t.keyCode&&(e.shiftKey=!1)},Ot.keypress=(e,t)=>{if(Gt(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||o.mac&&t.metaKey)return;if(e.someProp("handleKeyPress",n=>n(e,t)))return void t.preventDefault();let n=e.state.selection;if(!(n instanceof r["TextSelection"])||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(t.charCode);e.someProp("handleTextInput",t=>t(e,n.$from.pos,n.$to.pos,r))||e.dispatch(e.state.tr.insertText(r).scrollIntoView()),t.preventDefault()}};const Xt=o.mac?"metaKey":"ctrlKey";Et.mousedown=(e,t)=>{e.shiftKey=t.shiftKey;let n=Wt(e),r=Date.now(),i="singleClick";r-e.lastClick.time<500&&Ft(t,e.lastClick)&&!t[Xt]&&("singleClick"==e.lastClick.type?i="doubleClick":"doubleClick"==e.lastClick.type&&(i="tripleClick")),e.lastClick={time:r,x:t.clientX,y:t.clientY,type:i};let o=e.posAtCoords(It(t));o&&("singleClick"==i?e.mouseDown=new Yt(e,o,t,n):("doubleClick"==i?Ht:$t)(e,o.pos,o.inside,t)?t.preventDefault():Tt(e,"pointer"))};class Yt{constructor(e,t,n,i){let a,s;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=i,this.selectNode=n[Xt],this.allowDefault=n.shiftKey,t.inside>-1)a=e.state.doc.nodeAt(t.inside),s=t.inside;else{let n=e.state.doc.resolve(t.pos);a=n.parent,s=n.depth?n.before():0}this.mightDrag=null;const u=i?null:n.target,l=u?e.docView.nearestDesc(u,!0):null;this.target=l?l.dom:null,(a.type.spec.draggable&&!1!==a.type.spec.selectable||e.state.selection instanceof r["NodeSelection"]&&s==e.state.selection.from)&&(this.mightDrag={node:a,pos:s,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&o.gecko&&!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.target.setAttribute("contentEditable","false"),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Tt(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.view.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(It(e))),this.allowDefault||!t?Tt(this.view,"pointer"):zt(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():!this.flushed&&(!o.chrome||this.view.state.selection instanceof r["TextSelection"]||t.pos!=this.view.state.selection.from&&t.pos!=this.view.state.selection.to)?Tt(this.view,"pointer"):(Lt(this.view,r["Selection"].near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault())}move(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),Tt(this.view,"pointer")}}function Gt(e,t){return!!e.composing||!!(o.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}Et.touchdown=e=>{Wt(e),Tt(e,"pointer")},Et.contextmenu=e=>Wt(e);const Kt=o.android?5e3:-1;function Jt(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout(()=>Qt(e),t))}function Qt(e,t){e.domObserver.forceFlush(),e.composing=!1;while(e.compositionNodes.length>0)e.compositionNodes.pop().markParentsDirty();if(t||e.docView.dirty){let t=Be(e);return t.eq(e.state.selection)?e.updateState(e.state):e.dispatch(e.state.tr.setSelection(t)),!0}return!1}function Zt(e,t){let n=e.dom.ownerDocument,r=n.body.appendChild(n.createElement("div"));r.appendChild(t),r.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),o=n.createRange();o.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(o),setTimeout(()=>{n.body.removeChild(r),e.focus()},50)}Ot.compositionstart=Ot.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||n.marks(),Qt(e,!0),e.markCursor=null;else if(Qt(e),o.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.root.getSelection();for(let e=t.focusNode,n=t.focusOffset;e&&1==e.nodeType&&0!=n;){let r=n<0?e.lastChild:e.childNodes[n-1];if(!r)break;if(3==r.nodeType){t.collapse(r,r.nodeValue.length);break}e=r,n=-1}}e.composing=!0}Jt(e,Kt)},Ot.compositionend=(e,t)=>{e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,Jt(e,20))};const en=o.ie&&o.ie_version<15||o.ios&&o.webkit_version<604;function tn(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function nn(e,t){let n=e.dom.ownerDocument,r=e.shiftKey||e.state.selection.$from.parent.type.spec.code,i=n.body.appendChild(n.createElement(r?"textarea":"div"));r||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{e.focus(),n.body.removeChild(i),r?rn(e,i.value,null,t):rn(e,i.textContent,i.innerHTML,t)},50)}function rn(e,t,n,r){let i=lt(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,r,i||W["Slice"].empty))||!i)return;let o=tn(i),a=o?e.state.tr.replaceSelectionWith(o,e.shiftKey):e.state.tr.replaceSelection(i);e.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste"))}Et.copy=Ot.cut=(e,t)=>{let n=e.state.selection,r="cut"==t.type;if(n.empty)return;let i=en?null:t.clipboardData,o=n.content(),{dom:a,text:s}=ut(e,o);i?(t.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",s)):Zt(e,a),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Ot.paste=(e,t)=>{let n=en?null:t.clipboardData,r=n&&n.getData("text/html"),i=n&&n.getData("text/plain");n&&(r||i||n.files.length)?(rn(e,i,r,t),t.preventDefault()):nn(e,t)};class on{constructor(e,t){this.slice=e,this.move=t}}const an=o.mac?"altKey":"ctrlKey";Et.dragstart=(e,t)=>{let n=e.mouseDown;if(n&&n.done(),!t.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(It(t));if(o&&o.pos>=i.from&&o.pos<=(i instanceof r["NodeSelection"]?i.to-1:i.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(r["NodeSelection"].create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){let n=e.docView.nearestDesc(t.target,!0);if(!n||!n.node.type.spec.draggable||n==e.docView)return;e.dispatch(e.state.tr.setSelection(r["NodeSelection"].create(e.state.doc,n.posBefore)))}let a=e.state.selection.content(),{dom:s,text:u}=ut(e,a);t.dataTransfer.clearData(),t.dataTransfer.setData(en?"Text":"text/html",s.innerHTML),en||t.dataTransfer.setData("text/plain",u),e.dragging=new on(a,!t[an])},Et.dragend=e=>{window.setTimeout(()=>e.dragging=null,50)},Ot.dragover=Ot.dragenter=(e,t)=>t.preventDefault(),Ot.drop=(e,t)=>{let n=e.dragging;if(e.dragging=null,!t.dataTransfer)return;let i=e.posAtCoords(It(t));if(!i)return;let o=e.state.doc.resolve(i.pos);if(!o)return;let a=n&&n.slice||lt(e,t.dataTransfer.getData(en?"Text":"text/plain"),en?null:t.dataTransfer.getData("text/html"),!1,o);if(e.someProp("handleDrop",r=>r(e,t,a||W["Slice"].empty,n&&n.move)))return void t.preventDefault();if(!a)return;t.preventDefault();let s=a?Object(Se["h"])(e.state.doc,o.pos,a):o.pos;null==s&&(s=o.pos);let u=e.state.tr;n&&n.move&&u.deleteSelection();let l=u.mapping.map(s),c=0==a.openStart&&0==a.openEnd&&1==a.content.childCount,f=u.doc;if(c?u.replaceRangeWith(l,l,a.content.firstChild):u.replaceRange(l,l,a),u.doc.eq(f))return;let d=u.doc.resolve(l);c&&r["NodeSelection"].isSelectable(a.content.firstChild)&&d.nodeAfter&&d.nodeAfter.sameMarkup(a.content.firstChild)?u.setSelection(new r["NodeSelection"](d)):u.setSelection(Ke(e,d,u.doc.resolve(u.mapping.map(s)))),e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))},Et.focus=e=>{e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&Ue(e)},20))},Et.blur=e=>{e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),e.domObserver.currentSelection.set({}),e.focused=!1)},Et.beforeinput=(e,t)=>{if(o.chrome&&o.android&&"deleteContentBackward"==t.inputType){let{domChangeCount:t}=e;setTimeout(()=>{if(e.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,g(8,"Backspace"))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let In in Ot)Et[In]=Ot[In];function sn(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class un{constructor(e,t){this.spec=t||hn,this.side=this.spec.side||0,this.toDOM=e}map(e,t,n,r){let{pos:i,deleted:o}=e.mapResult(t.from+r,this.side<0?-1:1);return o?null:new fn(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof un&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&sn(this.spec,e.spec))}}class ln{constructor(e,t){this.spec=t||hn,this.attrs=e}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new fn(i,o,this)}valid(e,t){return t.from=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let o=0;oe){let a=this.children[o]+1;this.children[o+2].findInner(e-a,t-a,n,r+a,i)}}map(e,t,n){return this==mn||0==e.maps.length?this:this.mapInner(e,t,0,0,n||hn)}mapInner(e,t,n,r,i){let o;for(let a=0;a{let a,s=o+n;if(a=qn(t,e,s)){r||(r=this.children.slice());while(io&&t.to=e){this.children[a]==e&&(n=this.children[a+2]);break}let i=e+1,o=i+t.content.size;for(let a=0;ai&&e.type instanceof ln){let t=Math.max(i,e.from)-i,n=Math.min(o,e.to)-i;t{for(let a=0;al+o||(t>=s[a]+o?s[a+1]=-1:n>=i&&(u=r-n-(t-e))&&(s[a]+=u,s[a+1]+=u))}};for(let c=0;c=r.content.size){l=!0;continue}let f=n.map(e[c+1]+o,-1),d=f-i,{index:h,offset:p}=r.content.findIndex(u),m=r.maybeChild(h);if(m&&p==u&&p+m.nodeSize==d){let e=s[c+2].mapInner(n,m,t+1,s[c]+o+1,a);e!=mn?(s[c]=u,s[c+1]=d,s[c+2]=e):(s[c+1]=-2,l=!0)}else l=!0}if(l){let u=bn(s,e,t||[],n,i,o,a),l=_n(u,r,0,a);t=l.local;for(let e=0;en&&o.to{let s=qn(e,t,a+n);if(s){o=!0;let e=_n(s,t,n+a+1,r);e!=mn&&i.push(a,a+t.nodeSize,e)}});let a=yn(o?wn(e):e,-n).sort(xn);for(let s=0;s0)t++;e.splice(t,0,n)}function Cn(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=mn&&t.push(r)}),e.cursorWrapper&&t.push(pn.create(e.state.doc,[e.cursorWrapper.deco])),gn.from(t)}class En{constructor(e,t){this._props=t,this.state=t.state,this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Tn(this),this.markCursor=null,this.cursorWrapper=null,An(this),this.nodeViews=Pn(this),this.docView=re(this.state.doc,On(this),Cn(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,At(this),this.pluginViews=[],this.updatePluginViews()}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Pt(this),this._props=e,this.updateStateInner(e.state,!0)}setProps(e){let t={};for(let n in this._props)t[n]=this._props[n];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this.state.plugins!=e.plugins)}updateStateInner(e,t){let n=this.state,i=!1;if(this.state=e,t){let e=Pn(this);Mn(e,this.nodeViews)&&(this.nodeViews=e,i=!0),Pt(this)}this.editable=Tn(this),An(this);let a=Cn(this),s=On(this),u=t?"reset":e.scrollToSelection>n.scrollToSelection?"to selection":"preserve",l=i||!this.docView.matchesNode(e.doc,s,a),c=l||!e.selection.eq(n.selection),f="preserve"==u&&c&&null==this.dom.style.overflowAnchor&&q(this);if(c){this.domObserver.stop();let t=l&&(o.ie||o.chrome)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&Dn(n.selection,e.selection);if(l){let n=o.chrome&&Nn(this.root);!i&&this.docView.update(e.doc,s,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=re(e.doc,s,a,this.dom,this)),n&&Rn(n,this.root)&&(t=!0)}t||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&Ze(this))?Ue(this,t):(Ye(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(n),"reset"==u)this.dom.scrollTop=0;else if("to selection"==u){let t=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",e=>e(this))||(e.selection instanceof r["NodeSelection"]?b(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),t):b(this,this.coordsAtPos(e.selection.head),t))}else f&&_(f)}destroyPluginViews(){let e;while(e=this.pluginViews.pop())e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins)for(let t=0;tdocument.getSelection()),this._root=t;return e||document}posAtCoords(e){return M(this,e)}coordsAtPos(e){return R(this,e)}domAtPos(e){return this.docView.domFromPos(e)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return V(this,t||this.state,e)}destroy(){this.docView&&(Dt(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Cn(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}dispatchEvent(e){return Rt(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}}function On(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),[fn.node(0,e.state.doc.content.size,t)]}function An(e){if(e.markCursor){let t=document.createElement("img");t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:fn.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Tn(e){return!e.someProp("editable",t=>!1===t(e.state))}function Dn(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Pn(e){let t={};return e.someProp("nodeViews",e=>{for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}),t}function Mn(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function Nn(e){let{focusOffset:t,focusNode:n}=e.getSelection();return n&&1==n.nodeType?[n,t,n.childNodes[t-1],n.childNodes[t]]:null}function Rn(e,t){let n=Nn(t);if(!n||3==n[0].nodeType)return!1;for(let r=0;r0?r:n)(e)}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(1),i=n(2),o=n(19),a=n(27),s=n(5).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(8)},function(e,t){"use strict";e.exports={props:{loading:{type:Boolean,default:!1},onSearch:{type:Function,default:function(e,t){}}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.search.length>0&&(this.onSearch(this.search,this.toggleLoading),this.$emit("search",this.search,this.toggleLoading))},loading:function(e){this.mutableLoading=e}},methods:{toggleLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==e?!this.mutableLoading:e}}}},function(e,t){"use strict";e.exports={watch:{typeAheadPointer:function(){this.maybeAdjustScroll()}},methods:{maybeAdjustScroll:function(){var e=this.pixelsToPointerTop(),t=this.pixelsToPointerBottom();return e<=this.viewport().top?this.scrollTo(e):t>=this.viewport().bottom?this.scrollTo(this.viewport().top+this.pointerHeight()):void 0},pixelsToPointerTop:function(){var e=0;if(this.$refs.dropdownMenu)for(var t=0;t0&&(this.typeAheadPointer--,this.maybeAdjustScroll&&this.maybeAdjustScroll())},typeAheadDown:function(){this.typeAheadPointer";for(t.style.display="none",n(60).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;r--;)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(38),i=n(17).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(4),i=n(7),o=n(57)(!1),a=n(22)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){e.exports=n(6)},function(e,t,n){var r=n(16);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),o=r(i),a=n(48),s=r(a),u=n(43),l=r(u),c=n(49),f=r(c),d=n(29),h=r(d),p=n(30),m=r(p),g=n(28),v=r(g);t.default={mixins:[h.default,m.default,v.default],props:{value:{default:null},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},maxHeight:{type:String,default:"400px"},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},index:{type:String,default:null},getOptionLabel:{type:Function,default:function(e){return this.index&&(e=this.findOptionByIndexValue(e)),"object"===("undefined"==typeof e?"undefined":(0,f.default)(e))?e.hasOwnProperty(this.label)?e[this.label]:console.warn('[vue-select warn]: Label key "option.'+this.label+'" does not exist in options object '+(0,l.default)(e)+".\nhttp://sagalbot.github.io/vue-select/#ex-labels"):e}},onChange:{type:Function,default:function(e){this.$emit("input",e)}},onTab:{type:Function,default:function(){this.selectOnTab&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(e,t,n){return(t||"").toLowerCase().indexOf(n.toLowerCase())>-1}},filter:{type:Function,default:function(e,t){var n=this;return e.filter((function(e){var r=n.getOptionLabel(e);return"number"==typeof r&&(r=r.toString()),n.filterBy(e,r,t)}))}},createOption:{type:Function,default:function(e){return"object"===(0,f.default)(this.mutableOptions[0])&&(e=(0,s.default)({},this.label,e)),this.$emit("option:created",e),e}},resetOnOptionsChange:{type:Boolean,default:!1},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1}},data:function(){return{search:"",open:!1,mutableValue:null,mutableOptions:[]}},watch:{value:function(e){this.mutableValue=e},mutableValue:function(e,t){this.multiple?this.onChange&&this.onChange(e):this.onChange&&e!==t&&this.onChange(e)},options:function(e){this.mutableOptions=e},mutableOptions:function(){!this.taggable&&this.resetOnOptionsChange&&(this.mutableValue=this.multiple?[]:null)},multiple:function(e){this.mutableValue=e?[]:null}},created:function(){this.mutableValue=this.value,this.mutableOptions=this.options.slice(0),this.mutableLoading=this.loading,this.$on("option:created",this.maybePushTag)},methods:{select:function(e){if(!this.isOptionSelected(e)){if(this.taggable&&!this.optionExists(e)&&(e=this.createOption(e)),this.index){if(!e.hasOwnProperty(this.index))return console.warn('[vue-select warn]: Index key "option.'+this.index+'" does not exist in options object '+(0,l.default)(e)+".");e=e[this.index]}this.multiple&&!this.mutableValue?this.mutableValue=[e]:this.multiple?this.mutableValue.push(e):this.mutableValue=e}this.onAfterSelect(e)},deselect:function(e){var t=this;if(this.multiple){var n=-1;this.mutableValue.forEach((function(r){(r===e||t.index&&r===e[t.index]||"object"===("undefined"==typeof r?"undefined":(0,f.default)(r))&&r[t.label]===e[t.label])&&(n=r)}));var r=this.mutableValue.indexOf(n);this.mutableValue.splice(r,1)}else this.mutableValue=null},clearSelection:function(){this.mutableValue=this.multiple?[]:null},onAfterSelect:function(e){this.closeOnSelect&&(this.open=!this.open,this.$refs.search.blur()),this.clearSearchOnSelect&&(this.search="")},toggleDropdown:function(e){(e.target===this.$refs.openIndicator||e.target===this.$refs.search||e.target===this.$refs.toggle||e.target.classList.contains("selected-tag")||e.target===this.$el)&&(this.open?this.$refs.search.blur():this.disabled||(this.open=!0,this.$refs.search.focus()))},isOptionSelected:function(e){var t=this,n=!1;return this.valueAsArray.forEach((function(r){"object"===("undefined"==typeof r?"undefined":(0,f.default)(r))?n=t.optionObjectComparator(r,e):r!==e&&r!==e[t.index]||(n=!0)})),n},optionObjectComparator:function(e,t){return!(!this.index||e!==t[this.index])||e[this.label]===t[this.label]||e[this.label]===t||!(!this.index||e[this.index]!==t[this.index])},findOptionByIndexValue:function(e){var t=this;return this.options.forEach((function(n){(0,l.default)(n[t.index])===(0,l.default)(e)&&(e=n)})),e},onEscape:function(){this.search.length?this.search="":this.$refs.search.blur()},onSearchBlur:function(){this.mousedown&&!this.searching?this.mousedown=!1:(this.clearSearchOnBlur&&(this.search=""),this.open=!1,this.$emit("search:blur"))},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},maybeDeleteValue:function(){if(!this.$refs.search.value.length&&this.mutableValue)return this.multiple?this.mutableValue.pop():this.mutableValue=null},optionExists:function(e){var t=this,n=!1;return this.mutableOptions.forEach((function(r){("object"===("undefined"==typeof r?"undefined":(0,f.default)(r))&&r[t.label]===e||r===e)&&(n=!0)})),n},maybePushTag:function(e){this.pushTags&&this.mutableOptions.push(e)},onMousedown:function(){this.mousedown=!0}},computed:{dropdownClasses:function(){return{open:this.dropdownOpen,single:!this.multiple,searching:this.searching,searchable:this.searchable,unsearchable:!this.searchable,loading:this.mutableLoading,rtl:"rtl"===this.dir,disabled:this.disabled}},clearSearchOnBlur:function(){return this.clearSearchOnSelect&&!this.multiple},searching:function(){return!!this.search},dropdownOpen:function(){return!this.noDrop&&this.open&&!this.mutableLoading},searchPlaceholder:function(){if(this.isValueEmpty&&this.placeholder)return this.placeholder},filteredOptions:function(){if(!this.filterable&&!this.taggable)return this.mutableOptions.slice();var e=this.search.length?this.filter(this.mutableOptions,this.search,this):this.mutableOptions;return this.taggable&&this.search.length&&!this.optionExists(this.search)&&e.unshift(this.search),e},isValueEmpty:function(){return!this.mutableValue||("object"===(0,f.default)(this.mutableValue)?!(0,o.default)(this.mutableValue).length:!this.valueAsArray.length)},valueAsArray:function(){return this.multiple&&this.mutableValue?this.mutableValue:this.mutableValue?[].concat(this.mutableValue):[]},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&null!=this.mutableValue}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(28),o=r(i),a=n(30),s=r(a),u=n(29),l=r(u);t.default={ajax:o.default,pointer:s.default,pointerScroll:l.default}},function(e,t,n){e.exports={default:n(50),__esModule:!0}},function(e,t,n){e.exports={default:n(51),__esModule:!0}},function(e,t,n){e.exports={default:n(52),__esModule:!0}},function(e,t,n){e.exports={default:n(53),__esModule:!0}},function(e,t,n){e.exports={default:n(54),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(44),o=r(i);t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(47),o=r(i),a=n(46),s=r(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t,n){var r=n(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},function(e,t,n){n(75);var r=n(2).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){n(76),e.exports=n(2).Object.keys},function(e,t,n){n(79),n(77),n(80),n(81),e.exports=n(2).Symbol},function(e,t,n){n(78),n(82),e.exports=n(27).f("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(7),i=n(73),o=n(72);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(55);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(13),i=n(37),o=n(20);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(31);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(31);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(35),i=n(14),o=n(21),a={};n(6)(a,n(8)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(15)("meta"),i=n(10),o=n(4),a=n(5).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(9)((function(){return u(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return l&&p.NEED&&u(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},function(e,t,n){var r=n(5),i=n(11),o=n(13);e.exports=n(3)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(20),i=n(14),o=n(7),a=n(25),s=n(4),u=n(33),l=Object.getOwnPropertyDescriptor;t.f=n(3)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(7),i=n(36).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t,n){var r=n(4),i=n(40),o=n(22)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(12),i=n(2),o=n(9);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){var r=n(24),i=n(16);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},function(e,t,n){var r=n(24),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(24),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(56),i=n(64),o=n(18),a=n(7);e.exports=n(34)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(12);r(r.S+r.F*!n(3),"Object",{defineProperty:n(5).f})},function(e,t,n){var r=n(40),i=n(13);n(70)("keys",(function(){return function(e){return i(r(e))}}))},function(e,t){},function(e,t,n){"use strict";var r=n(71)(!0);n(34)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(3),a=n(12),s=n(39),u=n(65).KEY,l=n(9),c=n(23),f=n(21),d=n(15),h=n(8),p=n(27),m=n(26),g=n(59),v=n(62),y=n(11),b=n(10),q=n(7),w=n(25),_=n(14),x=n(35),S=n(68),k=n(67),C=n(5),E=n(13),O=k.f,A=C.f,T=S.f,D=r.Symbol,P=r.JSON,M=P&&P.stringify,N="prototype",R=h("_hidden"),I=h("toPrimitive"),F={}.propertyIsEnumerable,j=c("symbol-registry"),L=c("symbols"),B=c("op-symbols"),U=Object[N],z="function"==typeof D,H=r.QObject,$=!H||!H[N]||!H[N].findChild,V=o&&l((function(){return 7!=x(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(U,t);r&&delete U[t],A(e,t,n),r&&e!==U&&A(U,t,r)}:A,W=function(e){var t=L[e]=x(D[N]);return t._k=e,t},X=z&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},Y=function(e,t,n){return e===U&&Y(B,t,n),y(e),t=w(t,!0),y(n),i(L,t)?(n.enumerable?(i(e,R)&&e[R][t]&&(e[R][t]=!1),n=x(n,{enumerable:_(0,!1)})):(i(e,R)||A(e,R,_(1,{})),e[R][t]=!0),V(e,t,n)):A(e,t,n)},G=function(e,t){y(e);for(var n,r=g(t=q(t)),i=0,o=r.length;o>i;)Y(e,n=r[i++],t[n]);return e},K=function(e,t){return void 0===t?x(e):G(x(e),t)},J=function(e){var t=F.call(this,e=w(e,!0));return!(this===U&&i(L,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(L,e)||i(this,R)&&this[R][e])||t)},Q=function(e,t){if(e=q(e),t=w(t,!0),e!==U||!i(L,t)||i(B,t)){var n=O(e,t);return!n||!i(L,t)||i(e,R)&&e[R][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=T(q(e)),r=[],o=0;n.length>o;)i(L,t=n[o++])||t==R||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===U,r=T(n?B:q(e)),o=[],a=0;r.length>a;)!i(L,t=r[a++])||n&&!i(U,t)||o.push(L[t]);return o};z||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(B,n),i(this,R)&&i(this[R],e)&&(this[R][e]=!1),V(this,e,_(1,n))};return o&&$&&V(U,e,{configurable:!0,set:t}),W(e)},s(D[N],"toString",(function(){return this._k})),k.f=Q,C.f=Y,n(36).f=S.f=Z,n(20).f=J,n(37).f=ee,o&&!n(19)&&s(U,"propertyIsEnumerable",J,!0),p.f=function(e){return W(h(e))}),a(a.G+a.W+a.F*!z,{Symbol:D});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var re=E(h.store),ie=0;re.length>ie;)m(re[ie++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=D(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!z,"Object",{create:K,defineProperty:Y,defineProperties:G,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),P&&a(a.S+a.F*(!z||l((function(){var e=D();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!X(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,M.apply(P,r)}}),D[N][I]||n(6)(D[N],I,D[N].valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){n(26)("asyncIterator")},function(e,t,n){n(26)("observable")},function(e,t,n){n(74);for(var r=n(1),i=n(6),o=n(18),a=n(8)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;ua{display:block;padding:3px 20px;clear:both;color:#333;white-space:nowrap}.v-select li:hover{cursor:pointer}.v-select .dropdown-menu .active>a{color:#333;background:rgba(50,50,50,.1)}.v-select .dropdown-menu>.highlight>a{background:#5897fb;color:#fff}.v-select .highlight:not(:last-child){margin-bottom:0}.v-select .spinner{align-self:center;opacity:0;font-size:5px;text-indent:-9999em;overflow:hidden;border-top:.9em solid hsla(0,0%,39%,.1);border-right:.9em solid hsla(0,0%,39%,.1);border-bottom:.9em solid hsla(0,0%,39%,.1);border-left:.9em solid rgba(60,60,60,.45);transform:translateZ(0);animation:vSelectSpinner 1.1s infinite linear;transition:opacity .1s}.v-select .spinner,.v-select .spinner:after{border-radius:50%;width:5em;height:5em}.v-select.disabled .dropdown-toggle,.v-select.disabled .dropdown-toggle .clear,.v-select.disabled .dropdown-toggle input,.v-select.disabled .open-indicator,.v-select.disabled .selected-tag .close{cursor:not-allowed;background-color:#f8f8f8}.v-select.loading .spinner{opacity:1}@-webkit-keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fade-enter-active,.fade-leave-active{transition:opacity .15s cubic-bezier(1,.5,.8,1)}.fade-enter,.fade-leave-to{opacity:0}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&v.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var o=g++;n=m||(m=s(t)),r=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else n=s(t),r=c.bind(null,n),i=function(){a(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function c(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f={},d=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=d((function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())})),p=d((function(){return document.head||document.getElementsByTagName("head")[0]})),m=null,g=0,v=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}},f=["M","D","DDD","d","Q","W"];return f.forEach((function(e){c[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:c,formattingTokensRegExp:r(c)}}function o(e){return e+"."}e.exports=i},"4cef":function(e,t){var n=/\s/;function r(e){var t=e.length;while(t--&&n.test(e.charAt(t)));return t}e.exports=r},"4d34":function(e,t,n){var r=n("90e5");function i(){var e=["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],t=["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],n=["do","se","te","qa","qi","se","sa"],i=["dom","seg","ter","qua","qui","sex","sáb"],a=["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],s=["AM","PM"],u=["am","pm"],l=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return a[e.getDay()]},A:function(e){return e.getHours()/12>=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}},f=["M","D","DDD","d","Q","W"];return f.forEach((function(e){c[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:c,formattingTokensRegExp:r(c)}}function o(e){return e+"º"}e.exports=i},"4e9d":function(e,t,n){var r;(function(){"use strict";var i={};function o(e,t){for(var n=e.data,r=t.data,i=e.width,o=e.height,a=0;a=i-1||0===a||a>=o-1?C(n,l):4*C(n,l)-C(n,l-4*i)-C(n,l-4)-C(n,l+4)-C(n,l+4*i),r[l+1]=u}}function a(e,t,n){for(var r=t.data,i=n.data,o=t.width,a=t.height,s=0;se.skinThreshold,p=c>=e.skinBrightnessMin&&c<=e.skinBrightnessMax;i[l]=d&&p?(f-e.skinThreshold)*(255/(1-e.skinThreshold)):0}}function s(e,t,n){for(var r=t.data,i=n.data,o=t.width,a=t.height,s=0;se.saturationThreshold,h=c>=e.saturationBrightnessMin&&c<=e.saturationBrightnessMax;i[l+2]=h&&d?(f-e.saturationThreshold)*(255/(1-e.saturationThreshold)):0}}function u(e,t){if(e.boost){for(var n=t.data,r=0;r=e.minScale;s-=e.scaleStep)for(var u=0;u+a*s<=n;u+=e.step)for(var l=0;l+o*s<=t;l+=e.step)r.push({x:l,y:u,width:o*s,height:a*s});return r}function f(e,t,n){for(var r={detail:0,saturation:0,skin:0,boost:0,total:0},i=t.data,o=e.scoreDownSample,a=1/o,s=t.height*o,u=t.width*o,l=t.width,c=0;cn||n>=t.x+t.width||t.y>r||r>=t.y+t.height)return e.outsideImportance;n=(n-t.x)/t.width,r=(r-t.y)/t.height;var i=2*w(.5-n),o=2*w(.5-r),a=Math.max(i-1+e.edgeRadius,0),s=Math.max(o-1+e.edgeRadius,0),u=(a*a+s*s)*e.edgeWeight,l=1.41-_(i*i+o*o);return e.ruleOfThirds&&(l+=1.2*Math.max(0,l+u+.5)*(S(i)+S(o))),l+u}function h(e,t,n,r){var i=_(t*t+n*n+r*r),o=t/i-e.skinColor[0],a=n/i-e.skinColor[1],s=r/i-e.skinColor[2],u=_(o*o+a*a+s*s);return 1-u}function p(e,t){var n={},r=new m(t.width,t.height);o(t,r),a(e,t,r),s(e,t,r),u(e,r);for(var i=g(r,e.scoreDownSample),l=-1/0,d=null,h=c(e,t.width,t.height),p=0,v=h.length;pl&&(d=y,l=y.score.total)}return n.topCrop=d,e.debug&&d&&(n.crops=h,n.debugOutput=r,n.debugOptions=e,n.debugTopCrop=x({},n.topCrop)),n}function m(e,t,n){this.width=e,this.height=t,this.data=n?new Uint8ClampedArray(n):new Uint8ClampedArray(e*t*4)}function g(e,t){for(var n=e.data,r=e.width,i=Math.floor(e.width/t),o=Math.floor(e.height/t),a=new m(i,o),s=a.data,u=1/(t*t),l=0;l.5?a/(2-r-i):a/(r+i)}r=function(){return i}.call(t,n,t,e),void 0===r||(e.exports=r),t.smartcrop=i,e.exports=i})()},"4f50":function(e,t,n){var r=n("b760"),i=n("e538"),o=n("c8fe"),a=n("4359"),s=n("fa21"),u=n("d370"),l=n("6747"),c=n("dcbe"),f=n("0d24"),d=n("9520"),h=n("1a8c"),p=n("60ed"),m=n("73ac"),g=n("8adb"),v=n("8de2");function y(e,t,n,y,b,q,w){var _=g(e,n),x=g(t,n),S=w.get(x);if(S)r(e,n,S);else{var k=q?q(_,x,n+"",e,t,w):void 0,C=void 0===k;if(C){var E=l(x),O=!E&&f(x),A=!E&&!O&&m(x);k=x,E||O||A?l(_)?k=_:c(_)?k=a(_):O?(C=!1,k=i(x,!0)):A?(C=!1,k=o(x,!0)):k=[]:p(x)||u(x)?(k=_,u(_)?k=v(_):h(_)&&!d(_)||(k=s(x))):C=!1}C&&(w.set(x,k),b(k,x,y,q,w),w["delete"](x)),r(e,n,k)}}e.exports=y},"50d8":function(e,t){function n(e,t){var n=-1,r=Array(e);while(++n=17?s[3]:t>=12?s[2]:t>=4?s[1]:s[0]},Do:function(e,t){return t.D(e)+"-е"},Wo:function(e,t){return t.W(e)+"-я"}};u.a=u.A,u.aa=u.A;var l=["M","DDD","d","Q"];l.forEach((function(e){u[e+"o"]=function(t,n){return n[e](t)+"-й"}}));var c=["D","Do","DD"];return c.forEach((function(e){u[e+" MMMM"]=function(t,r){var i=u[e]||r[e];return i(t,r)+" "+n[t.getMonth()]}})),{formatters:u,formattingTokensRegExp:r(u)}}e.exports=i},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"52cf":function(e,t,n){var r=n("2d96"),i=n("e830");e.exports={distanceInWords:r(),format:i()}},"532b":function(e,t){function n(){var e={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"over "+i:i+" geleden":i}return{localize:t}}e.exports=n},"54eb":function(e,t,n){var r=n("8eeb"),i=n("32f4");function o(e,t){return r(e,i(e),t)}e.exports=o},"55a3":function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},"57a5":function(e,t,n){var r=n("91e9"),i=r(Object.keys,Object);e.exports=i},"580f":function(e,t,n){var r=n("c8d5"),i=n("a4b7"),o=n("d420");function a(e){var t=r(e),n=o(t,i(t)),a=n+1;return a}e.exports=a},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},"59dc":function(e,t,n){"use strict";e.exports=n("96ae")},"5ab1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.s3=t.traditional=t.thenable=void 0;var r=n("320c"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.thenable=["onCancel","onPasteReceived","onSubmit","onSubmitDelete","onUpload","onUploadChunk","onValidate","onValidateBatch"];var a=t.traditional=["onAutoRetry","onCancel","onComplete","onAllComplete","onDelete","onDeleteComplete","onError","onManualRetry","onPasteReceived","onProgress","onResume","onSessionRequestComplete","onStatusChange","onSubmit","onSubmitDelete","onSubmitted","onTotalProgress","onUpload","onUploadChunk","onUploadChunkSuccess","onValidate","onValidateBatch"];t.s3=(0,i.default)([],a,["onCredentialsExpired"])},"5b01":function(e,t,n){var r=n("8eeb"),i=n("ec69");function o(e,t){return e&&r(t,i(t),e)}e.exports=o},"5d89":function(e,t,n){var r=n("f8af");function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e.exports=i},"5dbe":function(e,t,n){(function(){var t;function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t,n,r,i,o=1,a=[].slice.call(arguments),s=0,u=e.length,l="",c=!1,f=!1,d=function(){return a[o++]},h=function(){var n="";while(/\d/.test(e[s]))n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s=0;i--){let r=t<0?p(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):p(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(r)return r}}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new d(e.node(0))}static atStart(e){return p(e,e,0,0,1)||new d(e)}static atEnd(e){return p(e,e,e.content.size,e.childCount,-1)||new d(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw new RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}a.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}class u extends a{constructor(e,t=e){super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return a.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r["Slice"].empty){if(super.replace(e,t),t==r["Slice"].empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new l(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=a.findFrom(t,n,!0)||a.findFrom(t,-n,!0);if(!e)return a.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(a.findFrom(e,-n,!0)||a.findFrom(e,n,!0)).$anchor,e.pos0?0:1);i>0?a=0;a+=i){let r=t.child(a);if(r.isAtom){if(!o&&c.isSelectable(r))return c.create(e,n-(i<0?r.nodeSize:0))}else{let t=p(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}}function m(e,t,n){let r=e.steps.length-1;if(r{null==s&&(s=r)}),e.setSelection(a.near(e.doc.resolve(s),n))}const g=1,v=2,y=4;class b extends i["e"]{constructor(e){super(e.doc),this.time=Date.now(),this.curSelection=e.selection,this.curSelectionFor=0,this.storedMarks=e.storedMarks,this.updated=0,this.meta=Object.create(null)}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=v,this}ensureMarks(e){return r["Mark"].sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&v)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~v,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t){let n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r["Mark"].none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n=t){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(a.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=y,this}get scrolledIntoView(){return(this.updated&y)>0}}function q(e,t){return t&&e?e.bind(t):e}class w{constructor(e,t,n){this.name=e,this.init=q(t.init,n),this.apply=q(t.apply,n)}}const _=[new w("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new w("selection",{init(e,t){return e.selection||a.atStart(t.doc)},apply(e){return e.selection}}),new w("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new w("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class x{constructor(e,t){this.schema=e,this.fields=_.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new w(e.key,e.spec.state,e))})}}class S{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;ne.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new x(e.schema,e.plugins),o=new S(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r["Node"].fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=a.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let a=n[r],s=a.spec.state;if(a.key==i.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(o[i.name]=s.fromJSON.call(a,e,t[r],o))}o[i.name]=i.init(e,o)}}),o}static addApplyListener(e){k.push(e)}static removeApplyListener(e){let t=k.indexOf(e);t>-1&&k.splice(t,1)}}const k=[];function C(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):"handleDOMEvents"==r&&(i=C(i,t,{})),n[r]=i}return n}class E{constructor(e){this.props={},e.props&&C(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:A("plugin")}getState(e){return e[this.key]}}const O=Object.create(null);function A(e){return e in O?e+"$"+ ++O[e]:(O[e]=0,e+"$")}class T{constructor(e="key"){this.key=A(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},"66cb":function(e,t,n){var r;(function(i){var o=/^\s+/,a=/\s+$/,s=0,u=i.round,l=i.min,c=i.max,f=i.random;function d(e,t){if(e=e||"",t=t||{},e instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=h(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=s++}function h(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=K(e)),"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(t=p(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=V(e.s),i=V(e.v),t=y(e.h,r,i),a=!0,s="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=V(e.s),o=V(e.l),t=g(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=j(n),{ok:a,format:e.format||s,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:n}}function p(e,t,n){return{r:255*L(e,255),g:255*L(t,255),b:255*L(n,255)}}function m(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,i,o=c(e,t,n),a=l(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=L(e,360),t=L(t,100),n=L(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}function v(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,i,o=c(e,t,n),a=l(e,t,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(d(r));return o}function N(e,t){t=t||6;var n=d(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;while(t--)a.push(d({h:r,s:i,v:o})),o=(o+s)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,a,s=this.toRgb();return e=s.r/255,t=s.g/255,n=s.b/255,r=e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4),a=n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*a},setAlpha:function(e){return this._a=j(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=v(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return q(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*L(this._r,255))+"%",g:u(100*L(this._g,255))+"%",b:u(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*L(this._r,255))+"%, "+u(100*L(this._g,255))+"%, "+u(100*L(this._b,255))+"%)":"rgba("+u(100*L(this._r,255))+"%, "+u(100*L(this._g,255))+"%, "+u(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+w(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=d(e);n="#"+w(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return i?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:V(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),i=d(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return d(a)},d.readability=function(e,t){var n=d(e),r=d(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,i,o=d.readability(e,t);switch(i=!1,r=J(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7;break}return i},d.mostReadable=function(e,t,n){var r,i,o,a,s=null,u=0;n=n||{},i=n.includeFallbackColors,o=n.level,a=n.size;for(var l=0;lu&&(u=r,s=d(t[l]));return d.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var R=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=d.hexNames=F(R);function F(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function j(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){z(e)&&(e="100%");var n=H(e);return e=l(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function B(e){return l(1,c(0,e))}function U(e){return parseInt(e,16)}function z(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function H(e){return"string"===typeof e&&-1!=e.indexOf("%")}function $(e){return 1==e.length?"0"+e:""+e}function V(e){return e<=1&&(e=100*e+"%"),e}function W(e){return i.round(255*parseFloat(e)).toString(16)}function X(e){return U(e)/255}var Y=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function G(e){return!!Y.CSS_UNIT.exec(e)}function K(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(R[e])e=R[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=Y.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Y.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Y.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Y.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Y.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Y.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Y.hex8.exec(e))?{r:U(t[1]),g:U(t[2]),b:U(t[3]),a:X(t[4]),format:n?"name":"hex8"}:(t=Y.hex6.exec(e))?{r:U(t[1]),g:U(t[2]),b:U(t[3]),format:n?"name":"hex"}:(t=Y.hex4.exec(e))?{r:U(t[1]+""+t[1]),g:U(t[2]+""+t[2]),b:U(t[3]+""+t[3]),a:X(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=Y.hex3.exec(e))&&{r:U(t[1]+""+t[1]),g:U(t[2]+""+t[2]),b:U(t[3]+""+t[3]),format:n?"name":"hex"}}function J(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}e.exports?e.exports=d:(r=function(){return d}.call(t,n,t,e),void 0===r||(e.exports=r))})(Math)},6747:function(e,t){var n=Array.isArray;e.exports=n},"67ca":function(e,t,n){var r=n("cb5a");function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},6856:function(e,t){function n(){var e={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},t=["lessThanXSeconds","lessThanXMinutes","overXYears"];function n(n,r,i){var o;if(i=i||{},o="string"===typeof e[n]?e[n]:1===r?e[n].one:e[n].other.replace("{{count}}",r),i.addSuffix){var a="";return t.indexOf(n)>-1&&(a=" bir süre"),i.comparison>0?o+a+" içinde":o+a+" önce"}return o}return{localize:n}}e.exports=n},6933:function(e,t){function n(){var e={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"daqui a "+i:"há "+i:i}return{localize:t}}e.exports=n},"69d5":function(e,t,n){var r=n("cb5a"),i=Array.prototype,o=i.splice;function a(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():o.call(t,n,1),--this.size,!0}e.exports=a},"6d6b":function(e,t,n){"use strict";var r=n("aefd"),i=n("b726");e.exports=r.bind(null,i)},"6e0c":function(e,t,n){var r=n("e485"),i=n("4c70");e.exports={distanceInWords:r(),format:i()}},"6f6c":function(e,t){var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}e.exports=r},"6fcd":function(e,t,n){var r=n("50d8"),i=n("d370"),o=n("6747"),a=n("0d24"),s=n("c098"),u=n("73ac"),l=Object.prototype,c=l.hasOwnProperty;function f(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&u(e),h=n||l||f||d,p=h?r(e.length,String):[],m=p.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||p.push(g);return p}e.exports=f},"6ff7":function(e,t,n){"use strict";n.r(t),n.d(t,"tableEditing",(function(){return tt})),n.d(t,"fixTables",(function(){return ue})),n.d(t,"handlePaste",(function(){return te})),n.d(t,"fixTablesKey",(function(){return ae})),n.d(t,"cellAround",(function(){return m})),n.d(t,"isInTable",(function(){return v})),n.d(t,"selectionCell",(function(){return y})),n.d(t,"moveCellForward",(function(){return w})),n.d(t,"inSameTable",(function(){return _})),n.d(t,"findCell",(function(){return x})),n.d(t,"colCount",(function(){return S})),n.d(t,"nextCell",(function(){return k})),n.d(t,"tableNodes",(function(){return L})),n.d(t,"CellSelection",(function(){return T})),n.d(t,"TableMap",(function(){return l})),n.d(t,"tableEditingKey",(function(){return p})),n.d(t,"selectedRect",(function(){return ce})),n.d(t,"addColumn",(function(){return de})),n.d(t,"addColumnBefore",(function(){return he})),n.d(t,"addColumnAfter",(function(){return pe})),n.d(t,"removeColumn",(function(){return me})),n.d(t,"deleteColumn",(function(){return ge})),n.d(t,"rowIsHeader",(function(){return ve})),n.d(t,"addRow",(function(){return ye})),n.d(t,"addRowBefore",(function(){return be})),n.d(t,"addRowAfter",(function(){return qe})),n.d(t,"removeRow",(function(){return we})),n.d(t,"deleteRow",(function(){return _e})),n.d(t,"mergeCells",(function(){return ke})),n.d(t,"splitCell",(function(){return Ce})),n.d(t,"splitCellWithType",(function(){return Ee})),n.d(t,"setCellAttr",(function(){return Oe})),n.d(t,"toggleHeader",(function(){return De})),n.d(t,"toggleHeaderRow",(function(){return Pe})),n.d(t,"toggleHeaderColumn",(function(){return Me})),n.d(t,"toggleHeaderCell",(function(){return Ne})),n.d(t,"goToNextCell",(function(){return Ie})),n.d(t,"deleteTable",(function(){return Fe})),n.d(t,"columnResizing",(function(){return Ue})),n.d(t,"columnResizingPluginKey",(function(){return Be})),n.d(t,"updateColumnsOnResize",(function(){return Le})),n.d(t,"__pastedCells",(function(){return U})),n.d(t,"__insertCells",(function(){return Y})),n.d(t,"__clipCells",(function(){return $}));var r=n("65e8"),i=n("304a"),o=n("7f06");let a,s;if("undefined"!=typeof WeakMap){let e=new WeakMap;a=t=>e.get(t),s=(t,n)=>(e.set(t,n),n)}else{let e=[],t=10,n=0;a=t=>{for(let n=0;n(n==t&&(n=0),e[n++]=r,e[n++]=i)}class u{constructor(e,t,n,r){this.left=e,this.top=t,this.right=n,this.bottom=r}}class l{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t=n){(o||(o=[])).push({type:"overlong_rowspan",pos:c,n:d-e});break}let s=i+e*t;for(let e=0;er&&(o+=i.attrs.colspan)}}for(let e=0;e1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}function d(e,t,n){e.problems||(e.problems=[]);for(let r=0,i={};r0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function g(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}function v(e){let t=e.selection.$head;for(let n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function y(e){let t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:m(t.$head)||b(t.$head)}function b(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}function q(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function w(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function _(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function x(e){return l.get(e.node(-1)).findCell(e.pos-e.start(-1))}function S(e){return l.get(e.node(-1)).colCount(e.pos-e.start(-1))}function k(e,t,n){let r=e.start(-1),i=l.get(e.node(-1)),o=i.nextCell(e.pos-r,t,n);return null==o?null:e.node(0).resolve(r+o)}function C(e,t,n){let r={};for(let i in e)r[i]=e[i];return r[t]=n,r}function E(e,t,n=1){let r=C(e,"colspan",e.colspan-n);return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function O(e,t,n=1){let r=C(e,"colspan",e.colspan+n);if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;ee!=t.pos-o);u.unshift(t.pos-o);let c=u.map(e=>{let t=n.nodeAt(e),i=e+o+1;return new r["SelectionRange"](s.resolve(i),s.resolve(i+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(e,t){let n=e.resolve(t.map(this.$anchorCell.pos)),i=e.resolve(t.map(this.$headCell.pos));if(q(n)&&q(i)&&_(n,i)){let e=this.$anchorCell.node(-1)!=n.node(-1);return e&&this.isRowSelection()?T.rowSelection(n,i):e&&this.isColSelection()?T.colSelection(n,i):new T(n,i)}return r["TextSelection"].between(n,i)}content(){let e=this.$anchorCell.node(-1),t=l.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},a=[];for(let u=r.top;u0||l>0){let e=s.attrs;u>0&&(e=E(e,0,u)),l>0&&(e=E(e,e.colspan-l,l)),s=i.leftr.bottom){let e=C(s.attrs,"rowspan",Math.min(i.bottom,r.bottom)-Math.max(i.top,r.top));s=i.top0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){let n=l.get(e.node(-1)),r=e.start(-1),i=n.findCell(e.pos-r),o=n.findCell(t.pos-r),a=e.node(0);return i.top<=o.top?(i.top>0&&(e=a.resolve(r+n.map[i.left])),o.bottom0&&(t=a.resolve(r+n.map[o.left])),i.bottom0)return!1;let i=n+this.$anchorCell.nodeAfter.attrs.colspan,o=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,o)==e.width}eq(e){return e instanceof T&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){let n=l.get(e.node(-1)),r=e.start(-1),i=n.findCell(e.pos-r),o=n.findCell(t.pos-r),a=e.node(0);return i.left<=o.left?(i.left>0&&(e=a.resolve(r+n.map[i.top*n.width])),o.right0&&(t=a.resolve(r+n.map[o.top*n.width])),i.right{t.push(A["a"].node(n,n+e.nodeSize,{class:"selectedCell"}))}),A["b"].create(e.doc,t)}function M({$from:e,$to:t}){if(e.pos==t.pos||e.pos=0;i--,n++)if(e.after(i+1)=0;o--,r--)if(t.before(o+1)>t.start(o))break;return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}function N({$from:e,$to:t}){let n,r;for(let i=e.depth;i>0;i--){let t=e.node(i);if("cell"===t.type.spec.tableRole||"header_cell"===t.type.spec.tableRole){n=t;break}}for(let i=t.depth;i>0;i--){let e=t.node(i);if("cell"===e.type.spec.tableRole||"header_cell"===e.type.spec.tableRole){r=e;break}}return n!==r&&0===t.parentOffset}function R(e,t,n){let i,o,a=(t||e).selection,s=(t||e).doc;if(a instanceof r["NodeSelection"]&&(o=a.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)i=T.create(s,a.from);else if("row"==o){let e=s.resolve(a.from+1);i=T.rowSelection(e,e)}else if(!n){let e=l.get(a.node),t=a.from+1,n=t+e.map[e.width*e.height-1];i=T.create(s,t+1,n)}}else a instanceof r["TextSelection"]&&M(a)?i=r["TextSelection"].create(s,a.from):a instanceof r["TextSelection"]&&N(a)&&(i=r["TextSelection"].create(s,a.$from.start(),a.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}var I=n("2eae");function F(e,t){let n=e.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(e=>Number(e)):null,i=Number(e.getAttribute("colspan")||1),o={colspan:i,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:r&&r.length==i?r:null};for(let a in t){let n=t[a].getFromDOM,r=n&&n(e);null!=r&&(o[a]=r)}return o}function j(e,t){let n={};1!=e.attrs.colspan&&(n.colspan=e.attrs.colspan),1!=e.attrs.rowspan&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(","));for(let r in t){let i=t[r].setDOMAttr;i&&i(e.attrs[r],n)}return n}function L(e){let t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(let r in t)n[r]={default:t[r].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:e=>F(e,t)}],toDOM(e){return["td",j(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:e=>F(e,t)}],toDOM(e){return["th",j(e,t),0]}}}}function B(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}function U(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;while(1==t.childCount&&(n>0&&r>0||"table"==t.firstChild.type.spec.tableRole))n--,r--,t=t.firstChild.content;let o=t.firstChild,a=o.type.spec.tableRole,s=o.type.schema,u=[];if("row"==a)for(let l=0;l=0;t--){let{rowspan:r,colspan:o}=e.child(t).attrs;for(let e=i;e=t.length&&t.push(i["Fragment"].empty),n[o]r&&(o=o.type.create(E(o.attrs,o.attrs.colspan,n+o.attrs.colspan-r),o.content)),s.push(o),n+=o.attrs.colspan;for(let n=1;no&&(t=t.type.create(C(t.attrs,"rowspan",o-t.attrs.rowspan),t.content)),s.push(t)}e.push(i["Fragment"].from(s))}n=e,t=o}return{width:e,height:t,rows:n}}function V(e,t,n,r,o,a,s){let u,l,c=e.doc.type.schema,f=B(c);if(o>t.width)for(let i=0,d=0;it.height){let c=[];for(let e=0,r=(t.height-1)*t.width;e=t.width)&&n.nodeAt(t.map[r+e]).type==f.header_cell;c.push(i?l||(l=f.header_cell.createAndFill()):u||(u=f.cell.createAndFill()))}let d=f.row.create(null,i["Fragment"].from(c)),h=[];for(let e=t.height;e{let a=n.selection;if(a instanceof T)return K(n,i,r["Selection"].near(a.$headCell,t));if("horiz"!=e&&!a.empty)return!1;let s=re(o,e,t);if(null==s)return!1;if("horiz"==e)return K(n,i,r["Selection"].near(n.doc.resolve(a.head+t),t));{let o,a=n.doc.resolve(s),u=k(a,e,t);return o=u?r["Selection"].near(u,1):t<0?r["Selection"].near(n.doc.resolve(a.before(-1)),-1):r["Selection"].near(n.doc.resolve(a.after(-1)),1),K(n,i,o)}}}function Q(e,t){return(n,r,i)=>{let o=n.selection;if(!(o instanceof T)){let r=re(i,e,t);if(null==r)return!1;o=new T(n.doc.resolve(r))}let a=k(o.$headCell,e,t);return!!a&&K(n,r,new T(o.$anchorCell,a))}}function Z(e,t){let n=e.selection;if(!(n instanceof T))return!1;if(t){let r=e.tr,o=B(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(o)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new i["Slice"](o,0,0))}),r.docChanged&&t(r)}return!0}function ee(e,t){let n=e.state.doc,r=m(n.resolve(t));return!!r&&(e.dispatch(e.state.tr.setSelection(new T(r))),!0)}function te(e,t,n){if(!v(e.state))return!1;let r=U(n),o=e.state.selection;if(o instanceof T){r||(r={width:1,height:1,rows:[i["Fragment"].from(H(B(e.state.schema).cell,n))]});let t=o.$anchorCell.node(-1),a=o.$anchorCell.start(-1),s=l.get(t).rectBetween(o.$anchorCell.pos-a,o.$headCell.pos-a);return r=$(r,s.right-s.left,s.bottom-s.top),Y(e.state,e.dispatch,a,s,r),!0}if(r){let t=y(e.state),n=t.start(-1);return Y(e.state,e.dispatch,n,l.get(t.node(-1)).findCell(t.pos-n),r),!0}return!1}function ne(e,t){if(t.ctrlKey||t.metaKey)return;let n,r=ie(e,t.target);if(t.shiftKey&&e.state.selection instanceof T)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(n=m(e.state.selection.$anchor))&&oe(e,t).pos!=n.pos)i(n,t),t.preventDefault();else if(!r)return;function i(t,n){let r=oe(e,n),i=null==p.getState(e.state);if(!r||!_(t,r)){if(!i)return;r=t}let o=new T(t,r);if(i||!e.state.selection.eq(o)){let n=e.state.tr.setSelection(o);i&&n.setMeta(p,t.pos),e.dispatch(n)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",a),null!=p.getState(e.state)&&e.dispatch(e.state.tr.setMeta(p,-1))}function a(n){let a,s=p.getState(e.state);if(null!=s)a=e.state.doc.resolve(s);else if(ie(e,n.target)!=r&&(a=oe(e,t),!a))return o();a&&i(a,n)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",a)}function re(e,t,n){if(!(e.state.selection instanceof r["TextSelection"]))return null;let{$head:i}=e.state.selection;for(let r=i.depth-1;r>=0;r--){let o=i.node(r),a=n<0?i.index(r):i.indexAfter(r);if(a!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let o=i.before(r),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?o:null}}return null}function ie(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function oe(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?m(e.state.doc.resolve(n.pos)):null}const ae=new r["PluginKey"]("fix-tables");function se(e,t,n,r){let i=e.childCount,o=t.childCount;e:for(let a=0,s=0;a{"table"==t.type.spec.tableRole&&(n=le(e,t,r,n))};return t?t.doc!=e.doc&&se(t.doc,e.doc,0,r):e.doc.descendants(r),n}function le(e,t,n,r){let i=l.get(t);if(!i.problems)return r;r||(r=e.tr);let o,a,s=[];for(let u=0;u0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);let s=[];for(let n=0;n0?-1:0;fe(t,r,i+o)&&(o=0==i||i==t.width?null:0);for(let a=0;a0&&i0&&t.map[s-1]==u||i0?-1:0;ve(t,r,i+s)&&(s=0==i||i==t.height?null:0);for(let u=0,l=t.width*i;u0&&i0&&o==t.map[l-t.width]){let t=n.nodeAt(o).attrs;e.setNodeMarkup(e.mapping.slice(s).map(o+r),null,C(t,"rowspan",t.rowspan-1)),u+=t.colspan-1}else if(i0&&n[o]==n[o-1]||r.right0&&n[i]==n[i-e]||r.bottomn[e.type.spec.tableRole])(e,t)}function Ee(e){return(t,n)=>{let r,i,o=t.selection;if(o instanceof T){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;r=o.$anchorCell.nodeAfter,i=o.$anchorCell.pos}else{if(r=g(o.$from),!r)return!1;i=m(o.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(n){let a=r.attrs,s=[],u=a.colwidth;a.rowspan>1&&(a=C(a,"rowspan",1)),a.colspan>1&&(a=C(a,"colspan",1));let l,c=ce(t),f=t.tr;for(let e=0;e{n.attrs[e]!==t&&o.setNodeMarkup(r,null,C(n.attrs,e,t))}):o.setNodeMarkup(i.pos,null,C(i.nodeAfter.attrs,e,t)),r(o)}return!0}}function Ae(e){return function(t,n){if(!v(t))return!1;if(n){let r=B(t.schema),i=ce(t),o=t.tr,a=i.map.cellsInRect("column"==e?new u(i.left,0,i.right,i.map.height):"row"==e?new u(0,i.top,i.map.width,i.bottom):i),s=a.map(e=>i.table.nodeAt(e));for(let e=0;e{const t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,d,n.attrs)}),n(o)}return!0}}let Pe=De("row",{useDeprecatedLogic:!0}),Me=De("column",{useDeprecatedLogic:!0}),Ne=De("cell",{useDeprecatedLogic:!0});function Re(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let n=e.index(-1)-1,r=e.before();n>=0;n--){let t=e.node(-1).child(n);if(t.childCount)return r-1-t.lastChild.nodeSize;r-=t.nodeSize}}else{if(e.index()0;r--){let i=n.node(r);if("table"==i.type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0}return!1}class je{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Le(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,Le(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}}function Le(e,t,n,r,i,o){let a=0,s=!0,u=t.firstChild,l=e.firstChild;for(let c=0,f=0;cnew n(e,t,r),new ze(-1,!1)},apply(e,t){return t.apply(e)}},props:{attributes(e){let t=Be.getState(e);return t.activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove(n,r){He(n,r,e,t,i)},mouseleave(e){$e(e)},mousedown(e,n){Ve(e,n,t)}},decorations(e){let t=Be.getState(e);if(t.activeHandle>-1)return et(e,t.activeHandle)},nodeViews:{}}});return o}class ze{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){let t=this,n=e.getMeta(Be);if(n&&null!=n.setHandle)return new ze(n.setHandle,null);if(n&&void 0!==n.setDragging)return new ze(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){let n=e.mapping.map(t.activeHandle,-1);q(e.doc.resolve(n))||(n=null),t=new ze(n,t.dragging)}return t}}function He(e,t,n,r,i){let o=Be.getState(e.state);if(!o.dragging){let r=Xe(t.target),a=-1;if(r){let{left:i,right:o}=r.getBoundingClientRect();t.clientX-i<=n?a=Ye(e,t,"left"):o-t.clientX<=n&&(a=Ye(e,t,"right"))}if(a!=o.activeHandle){if(!i&&-1!==a){let t=e.state.doc.resolve(a),n=t.node(-1),r=l.get(n),i=t.start(-1),o=r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1;if(o==r.width-1)return}Ke(e,a)}}}function $e(e){let t=Be.getState(e.state);t.activeHandle>-1&&!t.dragging&&Ke(e,-1)}function Ve(e,t,n){let r=Be.getState(e.state);if(-1==r.activeHandle||r.dragging)return!1;let i=e.state.doc.nodeAt(r.activeHandle),o=We(e,r.activeHandle,i.attrs);function a(t){window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",s);let r=Be.getState(e.state);r.dragging&&(Je(e,r.activeHandle,Ge(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Be,{setDragging:null})))}function s(t){if(!t.which)return a(t);let r=Be.getState(e.state),i=Ge(r.dragging,t,n);Qe(e,r.activeHandle,i,n)}return e.dispatch(e.state.tr.setMeta(Be,{setDragging:{startX:t.clientX,startWidth:o}})),window.addEventListener("mouseup",a),window.addEventListener("mousemove",s),t.preventDefault(),!0}function We(e,t,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=e.domAtPos(t),a=o.node.childNodes[o.offset],s=a.offsetWidth,u=n;if(r)for(let l=0;l12?t%12:t},hh:function(e){return p(c["h"](e),2)},m:function(e){return e.getMinutes()},mm:function(e){return p(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return p(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return p(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return p(e.getMilliseconds(),3)},Z:function(e){return h(e.getTimezoneOffset(),":")},ZZ:function(e){return h(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function f(e,t,n){var r,i,o=e.match(n),a=o.length;for(r=0;r0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return n+p(i,2)+t+p(o,2)}function p(e,t){var n=Math.abs(e).toString();while(n.length=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}},f=["M","D","DDD","d","Q","W"];return f.forEach((function(e){c[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:c,formattingTokensRegExp:r(c)}}function o(e){return e+"e"}e.exports=i},"76dd":function(e,t,n){var r=n("ce86");function i(e){return null==e?"":r(e)}e.exports=i},7948:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},o="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),a="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),s="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),u="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),c=o&&(u||+o[1]<57)||s&&u,f=0;f<10;f++)r[48+f]=r[96+f]=String(f);for(f=1;f<=24;f++)r[f+111]="F"+f;for(f=65;f<=90;f++)r[f]=String.fromCharCode(f+32),i[f]=String.fromCharCode(f);for(var d in r)i.hasOwnProperty(d)||(i[d]=r[d]);function h(e){var t=c&&(e.ctrlKey||e.altKey||e.metaKey)||(a||l)&&e.shiftKey&&e.key&&1==e.key.length,n=!t&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var p=n("65e8"),m="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);function g(e){var t,n,r,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(var s=0;s=a.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}e.exports=o},"8adb":function(e,t){function n(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}e.exports=n},"8c74":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(global){var qq=function(e){"use strict";return{hide:function(){return e.style.display="none",this},attach:function(t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n),function(){qq(e).detach(t,n)}},detach:function(t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.attachEvent&&e.detachEvent("on"+t,n),this},contains:function(t){return!!t&&(e===t||(e.contains?e.contains(t):!!(8&t.compareDocumentPosition(e))))},insertBefore:function(t){return t.parentNode.insertBefore(e,t),this},remove:function(){return e.parentNode.removeChild(e),this},css:function(t){if(null==e.style)throw new qq.Error("Can't apply style to node as it is not on the HTMLElement prototype chain!");return null!=t.opacity&&"string"!==typeof e.style.opacity&&"undefined"!==typeof e.filters&&(t.filter="alpha(opacity="+Math.round(100*t.opacity)+")"),qq.extend(e.style,t),this},hasClass:function(t,n){var r=new RegExp("(^| )"+t+"( |$)");return r.test(e.className)||!(!n||!r.test(e.parentNode.className))},addClass:function(t){return qq(e).hasClass(t)||(e.className+=" "+t),this},removeClass:function(t){var n=new RegExp("(^| )"+t+"( |$)");return e.className=e.className.replace(n," ").replace(/^\s+|\s+$/g,""),this},getByClass:function(t,n){var r,i=[];return n&&e.querySelector?e.querySelector("."+t):e.querySelectorAll?e.querySelectorAll("."+t):(r=e.getElementsByTagName("*"),qq.each(r,(function(e,n){qq(n).hasClass(t)&&i.push(n)})),n?i[0]:i)},getFirstByClass:function(t){return qq(e).getByClass(t,!0)},children:function(){var t=[],n=e.firstChild;while(n)1===n.nodeType&&t.push(n),n=n.nextSibling;return t},setText:function(t){return e.innerText=t,e.textContent=t,this},clearText:function(){return qq(e).setText("")},hasAttribute:function(t){var n;return e.hasAttribute?!!e.hasAttribute(t)&&null==/^false$/i.exec(e.getAttribute(t)):(n=e[t],void 0!==n&&null==/^false$/i.exec(n))}}};(function(){"use strict";qq.canvasToBlob=function(e,t,n){return qq.dataUriToBlob(e.toDataURL(t,n))},qq.dataUriToBlob=function(e){var t,n,r,i,o=function(e,t){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=n&&new n;return r?(r.append(e),r.getBlob(t)):new Blob([e],{type:t})};return n=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],t=new ArrayBuffer(n.length),r=new Uint8Array(t),qq.each(n,(function(e,t){r[e]=t.charCodeAt(0)})),o(t,i)},qq.log=function(e,t){window.console&&(t&&"info"!==t?window.console[t]?window.console[t](e):window.console.log("<"+t+"> "+e):window.console.log(e))},qq.isObject=function(e){return e&&!e.nodeType&&"[object Object]"===Object.prototype.toString.call(e)},qq.isFunction=function(e){return"function"===typeof e},qq.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)||e&&window.ArrayBuffer&&e.buffer&&e.buffer.constructor===ArrayBuffer},qq.isItemList=function(e){return"[object DataTransferItemList]"===Object.prototype.toString.call(e)},qq.isNodeList=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)||e.item&&e.namedItem},qq.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},qq.trimStr=function(e){return String.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},qq.format=function(e){var t=Array.prototype.slice.call(arguments,1),n=e,r=n.indexOf("{}");return qq.each(t,(function(e,t){var i=n.substring(0,r),o=n.substring(r+2);if(n=i+t+o,r=n.indexOf("{}",r+t.length),r<0)return!1})),n},qq.isFile=function(e){return window.File&&"[object File]"===Object.prototype.toString.call(e)},qq.isFileList=function(e){return window.FileList&&"[object FileList]"===Object.prototype.toString.call(e)},qq.isFileOrInput=function(e){return qq.isFile(e)||qq.isInput(e)},qq.isInput=function(e,t){var n=function(e){var n=e.toLowerCase();return t?"file"!==n:"file"===n};return!!(window.HTMLInputElement&&"[object HTMLInputElement]"===Object.prototype.toString.call(e)&&e.type&&n(e.type))||!!(e.tagName&&"input"===e.tagName.toLowerCase()&&e.type&&n(e.type))},qq.isBlob=function(e){if(window.Blob&&"[object Blob]"===Object.prototype.toString.call(e))return!0},qq.isXhrUploadSupported=function(){var e=document.createElement("input");return e.type="file",void 0!==e.multiple&&"undefined"!==typeof File&&"undefined"!==typeof FormData&&"undefined"!==typeof qq.createXhrInstance().upload},qq.createXhrInstance=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return qq.log("Neither XHR or ActiveX are supported!","error"),null}},qq.isFolderDropSupported=function(e){return e.items&&e.items.length>0&&e.items[0].webkitGetAsEntry},qq.isFileChunkingSupported=function(){return!qq.androidStock()&&qq.isXhrUploadSupported()&&(void 0!==File.prototype.slice||void 0!==File.prototype.webkitSlice||void 0!==File.prototype.mozSlice)},qq.sliceBlob=function(e,t,n){var r=e.slice||e.mozSlice||e.webkitSlice;return r.call(e,t,n)},qq.arrayBufferToHex=function(e){var t="",n=new Uint8Array(e);return qq.each(n,(function(e,n){var r=n.toString(16);r.length<2&&(r="0"+r),t+=r})),t},qq.readBlobToHex=function(e,t,n){var r=qq.sliceBlob(e,t,t+n),i=new FileReader,o=new qq.Promise;return i.onload=function(){o.success(qq.arrayBufferToHex(i.result))},i.onerror=o.failure,i.readAsArrayBuffer(r),o},qq.extend=function(e,t,n){return qq.each(t,(function(t,r){n&&qq.isObject(r)?(void 0===e[t]&&(e[t]={}),qq.extend(e[t],r,!0)):e[t]=r})),e},qq.override=function(e,t){var n={},r=t(n);return qq.each(r,(function(t,r){void 0!==e[t]&&(n[t]=e[t]),e[t]=r})),e},qq.indexOf=function(e,t,n){if(e.indexOf)return e.indexOf(t,n);n=n||0;var r=e.length;for(n<0&&(n+=r);n=0},qq.safari=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")},qq.chrome=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Google")},qq.opera=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Opera")},qq.firefox=function(){return!qq.edge()&&!qq.ie11()&&-1!==navigator.userAgent.indexOf("Mozilla")&&void 0!==navigator.vendor&&""===navigator.vendor},qq.windows=function(){return"Win32"===navigator.platform},qq.android=function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},qq.androidStock=function(){return qq.android()&&navigator.userAgent.toLowerCase().indexOf("chrome")<0},qq.ios6=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 6_")},qq.ios7=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 7_")},qq.ios8=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_")},qq.ios800=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_0 ")},qq.ios=function(){return-1!==navigator.userAgent.indexOf("iPad")||-1!==navigator.userAgent.indexOf("iPod")||-1!==navigator.userAgent.indexOf("iPhone")},qq.iosChrome=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf("CriOS")},qq.iosSafari=function(){return qq.ios()&&!qq.iosChrome()&&-1!==navigator.userAgent.indexOf("Safari")},qq.iosSafariWebView=function(){return qq.ios()&&!qq.iosChrome()&&!qq.iosSafari()},qq.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},qq.toElement=function(){var e=document.createElement("div");return function(t){e.innerHTML=t;var n=e.firstChild;return e.removeChild(n),n}}(),qq.each=function(e,t){var n,r;if(e)if(window.Storage&&e.constructor===window.Storage){for(n=0;n0)return e.substr(t,e.length-t)},qq.getFilename=function(e){return qq.isInput(e)?e.value.replace(/.*(\/|\\)/,""):qq.isFile(e)&&null!==e.fileName&&void 0!==e.fileName?e.fileName:e.name},qq.DisposeSupport=function(){var e=[];return{dispose:function(){var t;do{t=e.shift(),t&&t()}while(t)},attach:function(){var e=arguments;this.addDisposer(qq(e[0]).attach.apply(this,Array.prototype.slice.call(arguments,1)))},addDisposer:function(t){e.push(t)}}}})(),function(){"use strict";__WEBPACK_AMD_DEFINE_RESULT__=function(){return qq}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(),qq.version="5.16.2",qq.supportedFeatures=function(){"use strict";var e,t,n,r,i,o,a,s,u,l,c,f,d,h,p;function m(){var e,t=!0;try{e=document.createElement("input"),e.type="file",qq(e).hide(),e.disabled&&(t=!1)}catch(n){t=!1}return t}function g(){return(qq.chrome()||qq.opera())&&void 0!==navigator.userAgent.match(/Chrome\/[1][4-9]|Chrome\/[2-9][0-9]/)}function v(){if(window.XMLHttpRequest){var e=qq.createXhrInstance();return void 0!==e.withCredentials}return!1}function y(){return void 0!==window.XDomainRequest}function b(){return!!v()||y()}function q(){return void 0!==document.createElement("input").webkitdirectory}function w(){try{return!!window.localStorage&&qq.isFunction(window.localStorage.setItem)}catch(e){return!1}}function _(){var e=document.createElement("span");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&!qq.android()&&!qq.ios()}return e=m(),r=e&&qq.isXhrUploadSupported(),t=r&&!qq.androidStock(),n=r&&_(),i=n&&function(){var e=document.createElement("input");return e.type="file",!!("webkitdirectory"in(e||document.querySelectorAll("input[type=file]")[0]))}(),o=r&&qq.isFileChunkingSupported(),a=r&&o&&w(),s=r&&g(),u=e&&(void 0!==window.postMessage||r),c=v(),l=y(),f=b(),d=q(),h=r&&void 0!==window.FileReader,p=function(){return!!r&&(!qq.androidStock()&&!qq.iosChrome())}(),{ajaxUploading:r,blobUploading:t,canDetermineSize:r,chunking:o,deleteFileCors:f,deleteFileCorsXdr:l,deleteFileCorsXhr:c,dialogElement:!!window.HTMLDialogElement,fileDrop:n,folderDrop:i,folderSelection:d,imagePreviews:h,imageValidation:h,itemSizeValidation:r,pause:o,progressBar:p,resume:a,scaling:h&&t,tiffPreviews:qq.safari(),unlimitedScaledImageSize:!qq.ios(),uploading:e,uploadCors:u,uploadCustomHeaders:r,uploadNonMultipart:r,uploadViaPaste:s}}(),qq.isGenericPromise=function(e){"use strict";return!!(e&&e.then&&qq.isFunction(e.then))},qq.Promise=function(){"use strict";var e,t,n=[],r=[],i=[],o=0;qq.extend(this,{then:function(i,a){return 0===o?(i&&n.push(i),a&&r.push(a)):-1===o?a&&a.apply(null,t):i&&i.apply(null,e),this},done:function(n){return 0===o?i.push(n):n.apply(null,void 0===t?e:t),this},success:function(){return o=1,e=arguments,n.length&&qq.each(n,(function(t,n){n.apply(null,e)})),i.length&&qq.each(i,(function(t,n){n.apply(null,e)})),this},failure:function(){return o=-1,t=arguments,r.length&&qq.each(r,(function(e,n){n.apply(null,t)})),i.length&&qq.each(i,(function(e,n){n.apply(null,t)})),this}})},qq.DragAndDrop=function(e){"use strict";var t,n="qq-hidezones",r="qq-hide-dropzone",i=[],o=[],a=new qq.DisposeSupport;function s(e,n){var r=Array.prototype.slice.call(e);t.callbacks.dropLog("Grabbed "+e.length+" dropped files."),n.dropDisabled(!1),t.callbacks.processingDroppedFilesComplete(r,n.getElement())}function u(e){var n=new qq.Promise;return e.isFile?e.file((function(t){t.qqPath=l(e),o.push(t),n.success()}),(function(r){t.callbacks.dropLog("Problem parsing '"+e.fullPath+"'. FileError code "+r.code+".","error"),n.failure()})):e.isDirectory&&c(e).then((function(e){var t=e.length;qq.each(e,(function(e,r){u(r).done((function(){t-=1,0===t&&n.success()}))})),e.length||n.success()}),(function(r){t.callbacks.dropLog("Problem parsing '"+e.fullPath+"'. FileError code "+r.code+".","error"),n.failure()})),n}function l(e){var t=e.name,n=e.fullPath,r=n.lastIndexOf(t);return n=n.substr(0,r),"/"===n.charAt(0)&&(n=n.substr(1)),n}function c(e,t,n,r){var i=r||new qq.Promise,o=t||e.createReader();return o.readEntries((function(t){var r=n?n.concat(t):t;t.length?setTimeout((function(){c(e,o,r,i)}),0):i.success(r)}),i.failure),i}function f(e,n){var r=[],i=new qq.Promise;return t.callbacks.processingDroppedFiles(),n.dropDisabled(!0),e.files.length>1&&!t.allowMultipleItems?(t.callbacks.processingDroppedFilesComplete([]),t.callbacks.dropError("tooManyFilesError",""),n.dropDisabled(!1),i.failure()):(o=[],qq.isFolderDropSupported(e)?qq.each(e.items,(function(e,t){var n=t.webkitGetAsEntry();n&&(n.isFile?o.push(t.getAsFile()):r.push(u(n).done((function(){r.pop(),0===r.length&&i.success()}))))})):o=e.files,0===r.length&&i.success()),i}function d(e){var u=new qq.UploadDropZone({HIDE_ZONES_EVENT_NAME:n,element:e,onEnter:function(n){qq(e).addClass(t.classes.dropActive),n.stopPropagation()},onLeaveNotDescendants:function(n){qq(e).removeClass(t.classes.dropActive)},onDrop:function(e){f(e.dataTransfer,u).then((function(){s(o,u)}),(function(){t.callbacks.dropLog("Drop event DataTransfer parsing failed. No files will be uploaded.","error")}))}});return a.addDisposer((function(){u.dispose()})),qq(e).hasAttribute(r)&&qq(e).hide(),i.push(u),u}function h(e){var t;return qq.each(e.dataTransfer.types,(function(e,n){if("Files"===n)return t=!0,!1})),t}function p(e){return qq.safari()?e.x<0||e.y<0:0===e.x&&0===e.y}function m(){var e=t.dropZoneElements,i=function(){setTimeout((function(){qq.each(e,(function(e,n){qq(n).hasAttribute(r)&&qq(n).hide(),qq(n).removeClass(t.classes.dropActive)}))}),10)};qq.each(e,(function(t,n){var i=d(n);e.length&&qq.supportedFeatures.fileDrop&&a.attach(document,"dragenter",(function(t){!i.dropDisabled()&&h(t)&&qq.each(e,(function(e,t){t instanceof HTMLElement&&qq(t).hasAttribute(r)&&qq(t).css({display:"block"})}))}))})),a.attach(document,"dragleave",(function(e){p(e)&&i()})),a.attach(qq(document).children()[0],"mouseenter",(function(e){i()})),a.attach(document,"drop",(function(e){h(e)&&(e.preventDefault(),i())})),a.attach(document,n,i)}t={dropZoneElements:[],allowMultipleItems:!0,classes:{dropActive:null},callbacks:new qq.DragAndDrop.callbacks},qq.extend(t,e,!0),m(),qq.extend(this,{setupExtraDropzone:function(e){t.dropZoneElements.push(e),d(e)},removeDropzone:function(e){var n,r=t.dropZoneElements;for(n in r)if(r[n]===e)return r.splice(n,1)},dispose:function(){a.dispose(),qq.each(i,(function(e,t){t.dispose()}))}}),this._testing={},this._testing.extractDirectoryPath=l},qq.DragAndDrop.callbacks=function(){"use strict";return{processingDroppedFiles:function(){},processingDroppedFilesComplete:function(e,t){},dropError:function(e,t){qq.log("Drag & drop error code '"+e+" with these specifics: '"+t+"'","error")},dropLog:function(e,t){qq.log(e,t)}}},qq.UploadDropZone=function(e){"use strict";var t,n,r,i,o=new qq.DisposeSupport;function a(){return qq.safari()||qq.firefox()&&qq.windows()}function s(e){i||(a?o.attach(document,"dragover",(function(e){e.preventDefault()})):o.attach(document,"dragover",(function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="none",e.preventDefault())})),i=!0)}function u(e){if(!qq.supportedFeatures.fileDrop)return!1;var t,n=e.dataTransfer,r=qq.safari();return t=!(!qq.ie()||!qq.supportedFeatures.fileDrop)||"none"!==n.effectAllowed,n&&t&&(n.files&&n.files.length||!r&&n.types.contains&&n.types.contains("Files")||n.types.includes&&n.types.includes("Files"))}function l(e){return void 0!==e&&(r=e),r}function c(){var e;function n(){e=document.createEvent("Event"),e.initEvent(t.HIDE_ZONES_EVENT_NAME,!0,!0)}if(window.CustomEvent)try{e=new CustomEvent(t.HIDE_ZONES_EVENT_NAME)}catch(r){n()}else n();document.dispatchEvent(e)}function f(){o.attach(n,"dragover",(function(e){if(u(e)){var t=qq.ie()&&qq.supportedFeatures.fileDrop?null:e.dataTransfer.effectAllowed;e.dataTransfer.dropEffect="move"===t||"linkMove"===t?"move":"copy",e.stopPropagation(),e.preventDefault()}})),o.attach(n,"dragenter",(function(e){if(!l()){if(!u(e))return;t.onEnter(e)}})),o.attach(n,"dragleave",(function(e){if(u(e)){t.onLeave(e);var n=document.elementFromPoint(e.clientX,e.clientY);qq(this).contains(n)||t.onLeaveNotDescendants(e)}})),o.attach(n,"drop",(function(e){if(!l()){if(!u(e))return;e.preventDefault(),e.stopPropagation(),t.onDrop(e),c()}}))}t={element:null,onEnter:function(e){},onLeave:function(e){},onLeaveNotDescendants:function(e){},onDrop:function(e){}},qq.extend(t,e),n=t.element,s(),f(),qq.extend(this,{dropDisabled:function(e){return l(e)},dispose:function(){o.dispose()},getElement:function(){return n}}),this._testing={},this._testing.isValidFileDrag=u}})(window)},"8d74":function(e,t,n){var r=n("4cef"),i=/^\s+/;function o(e){return e?e.slice(0,r(e)+1).replace(i,""):e}e.exports=o},"8db5":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(global){var qq=function(e){"use strict";return{hide:function(){return e.style.display="none",this},attach:function(t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n),function(){qq(e).detach(t,n)}},detach:function(t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.attachEvent&&e.detachEvent("on"+t,n),this},contains:function(t){return!!t&&(e===t||(e.contains?e.contains(t):!!(8&t.compareDocumentPosition(e))))},insertBefore:function(t){return t.parentNode.insertBefore(e,t),this},remove:function(){return e.parentNode.removeChild(e),this},css:function(t){if(null==e.style)throw new qq.Error("Can't apply style to node as it is not on the HTMLElement prototype chain!");return null!=t.opacity&&"string"!==typeof e.style.opacity&&"undefined"!==typeof e.filters&&(t.filter="alpha(opacity="+Math.round(100*t.opacity)+")"),qq.extend(e.style,t),this},hasClass:function(t,n){var r=new RegExp("(^| )"+t+"( |$)");return r.test(e.className)||!(!n||!r.test(e.parentNode.className))},addClass:function(t){return qq(e).hasClass(t)||(e.className+=" "+t),this},removeClass:function(t){var n=new RegExp("(^| )"+t+"( |$)");return e.className=e.className.replace(n," ").replace(/^\s+|\s+$/g,""),this},getByClass:function(t,n){var r,i=[];return n&&e.querySelector?e.querySelector("."+t):e.querySelectorAll?e.querySelectorAll("."+t):(r=e.getElementsByTagName("*"),qq.each(r,(function(e,n){qq(n).hasClass(t)&&i.push(n)})),n?i[0]:i)},getFirstByClass:function(t){return qq(e).getByClass(t,!0)},children:function(){var t=[],n=e.firstChild;while(n)1===n.nodeType&&t.push(n),n=n.nextSibling;return t},setText:function(t){return e.innerText=t,e.textContent=t,this},clearText:function(){return qq(e).setText("")},hasAttribute:function(t){var n;return e.hasAttribute?!!e.hasAttribute(t)&&null==/^false$/i.exec(e.getAttribute(t)):(n=e[t],void 0!==n&&null==/^false$/i.exec(n))}}};(function(){"use strict";qq.canvasToBlob=function(e,t,n){return qq.dataUriToBlob(e.toDataURL(t,n))},qq.dataUriToBlob=function(e){var t,n,r,i,o=function(e,t){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=n&&new n;return r?(r.append(e),r.getBlob(t)):new Blob([e],{type:t})};return n=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],t=new ArrayBuffer(n.length),r=new Uint8Array(t),qq.each(n,(function(e,t){r[e]=t.charCodeAt(0)})),o(t,i)},qq.log=function(e,t){window.console&&(t&&"info"!==t?window.console[t]?window.console[t](e):window.console.log("<"+t+"> "+e):window.console.log(e))},qq.isObject=function(e){return e&&!e.nodeType&&"[object Object]"===Object.prototype.toString.call(e)},qq.isFunction=function(e){return"function"===typeof e},qq.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)||e&&window.ArrayBuffer&&e.buffer&&e.buffer.constructor===ArrayBuffer},qq.isItemList=function(e){return"[object DataTransferItemList]"===Object.prototype.toString.call(e)},qq.isNodeList=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)||e.item&&e.namedItem},qq.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},qq.trimStr=function(e){return String.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},qq.format=function(e){var t=Array.prototype.slice.call(arguments,1),n=e,r=n.indexOf("{}");return qq.each(t,(function(e,t){var i=n.substring(0,r),o=n.substring(r+2);if(n=i+t+o,r=n.indexOf("{}",r+t.length),r<0)return!1})),n},qq.isFile=function(e){return window.File&&"[object File]"===Object.prototype.toString.call(e)},qq.isFileList=function(e){return window.FileList&&"[object FileList]"===Object.prototype.toString.call(e)},qq.isFileOrInput=function(e){return qq.isFile(e)||qq.isInput(e)},qq.isInput=function(e,t){var n=function(e){var n=e.toLowerCase();return t?"file"!==n:"file"===n};return!!(window.HTMLInputElement&&"[object HTMLInputElement]"===Object.prototype.toString.call(e)&&e.type&&n(e.type))||!!(e.tagName&&"input"===e.tagName.toLowerCase()&&e.type&&n(e.type))},qq.isBlob=function(e){if(window.Blob&&"[object Blob]"===Object.prototype.toString.call(e))return!0},qq.isXhrUploadSupported=function(){var e=document.createElement("input");return e.type="file",void 0!==e.multiple&&"undefined"!==typeof File&&"undefined"!==typeof FormData&&"undefined"!==typeof qq.createXhrInstance().upload},qq.createXhrInstance=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return qq.log("Neither XHR or ActiveX are supported!","error"),null}},qq.isFolderDropSupported=function(e){return e.items&&e.items.length>0&&e.items[0].webkitGetAsEntry},qq.isFileChunkingSupported=function(){return!qq.androidStock()&&qq.isXhrUploadSupported()&&(void 0!==File.prototype.slice||void 0!==File.prototype.webkitSlice||void 0!==File.prototype.mozSlice)},qq.sliceBlob=function(e,t,n){var r=e.slice||e.mozSlice||e.webkitSlice;return r.call(e,t,n)},qq.arrayBufferToHex=function(e){var t="",n=new Uint8Array(e);return qq.each(n,(function(e,n){var r=n.toString(16);r.length<2&&(r="0"+r),t+=r})),t},qq.readBlobToHex=function(e,t,n){var r=qq.sliceBlob(e,t,t+n),i=new FileReader,o=new qq.Promise;return i.onload=function(){o.success(qq.arrayBufferToHex(i.result))},i.onerror=o.failure,i.readAsArrayBuffer(r),o},qq.extend=function(e,t,n){return qq.each(t,(function(t,r){n&&qq.isObject(r)?(void 0===e[t]&&(e[t]={}),qq.extend(e[t],r,!0)):e[t]=r})),e},qq.override=function(e,t){var n={},r=t(n);return qq.each(r,(function(t,r){void 0!==e[t]&&(n[t]=e[t]),e[t]=r})),e},qq.indexOf=function(e,t,n){if(e.indexOf)return e.indexOf(t,n);n=n||0;var r=e.length;for(n<0&&(n+=r);n=0},qq.safari=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")},qq.chrome=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Google")},qq.opera=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Opera")},qq.firefox=function(){return!qq.edge()&&!qq.ie11()&&-1!==navigator.userAgent.indexOf("Mozilla")&&void 0!==navigator.vendor&&""===navigator.vendor},qq.windows=function(){return"Win32"===navigator.platform},qq.android=function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},qq.androidStock=function(){return qq.android()&&navigator.userAgent.toLowerCase().indexOf("chrome")<0},qq.ios6=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 6_")},qq.ios7=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 7_")},qq.ios8=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_")},qq.ios800=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_0 ")},qq.ios=function(){return-1!==navigator.userAgent.indexOf("iPad")||-1!==navigator.userAgent.indexOf("iPod")||-1!==navigator.userAgent.indexOf("iPhone")},qq.iosChrome=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf("CriOS")},qq.iosSafari=function(){return qq.ios()&&!qq.iosChrome()&&-1!==navigator.userAgent.indexOf("Safari")},qq.iosSafariWebView=function(){return qq.ios()&&!qq.iosChrome()&&!qq.iosSafari()},qq.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},qq.toElement=function(){var e=document.createElement("div");return function(t){e.innerHTML=t;var n=e.firstChild;return e.removeChild(n),n}}(),qq.each=function(e,t){var n,r;if(e)if(window.Storage&&e.constructor===window.Storage){for(n=0;n0)return e.substr(t,e.length-t)},qq.getFilename=function(e){return qq.isInput(e)?e.value.replace(/.*(\/|\\)/,""):qq.isFile(e)&&null!==e.fileName&&void 0!==e.fileName?e.fileName:e.name},qq.DisposeSupport=function(){var e=[];return{dispose:function(){var t;do{t=e.shift(),t&&t()}while(t)},attach:function(){var e=arguments;this.addDisposer(qq(e[0]).attach.apply(this,Array.prototype.slice.call(arguments,1)))},addDisposer:function(t){e.push(t)}}}})(),function(){"use strict";__WEBPACK_AMD_DEFINE_RESULT__=function(){return qq}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(),function(){"use strict";qq.Error=function(e){this.message="[Fine Uploader "+qq.version+"] "+e},qq.Error.prototype=new Error}(),qq.version="5.16.2",qq.supportedFeatures=function(){"use strict";var e,t,n,r,i,o,a,s,u,l,c,f,d,h,p;function m(){var e,t=!0;try{e=document.createElement("input"),e.type="file",qq(e).hide(),e.disabled&&(t=!1)}catch(n){t=!1}return t}function g(){return(qq.chrome()||qq.opera())&&void 0!==navigator.userAgent.match(/Chrome\/[1][4-9]|Chrome\/[2-9][0-9]/)}function v(){if(window.XMLHttpRequest){var e=qq.createXhrInstance();return void 0!==e.withCredentials}return!1}function y(){return void 0!==window.XDomainRequest}function b(){return!!v()||y()}function q(){return void 0!==document.createElement("input").webkitdirectory}function w(){try{return!!window.localStorage&&qq.isFunction(window.localStorage.setItem)}catch(e){return!1}}function _(){var e=document.createElement("span");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&!qq.android()&&!qq.ios()}return e=m(),r=e&&qq.isXhrUploadSupported(),t=r&&!qq.androidStock(),n=r&&_(),i=n&&function(){var e=document.createElement("input");return e.type="file",!!("webkitdirectory"in(e||document.querySelectorAll("input[type=file]")[0]))}(),o=r&&qq.isFileChunkingSupported(),a=r&&o&&w(),s=r&&g(),u=e&&(void 0!==window.postMessage||r),c=v(),l=y(),f=b(),d=q(),h=r&&void 0!==window.FileReader,p=function(){return!!r&&(!qq.androidStock()&&!qq.iosChrome())}(),{ajaxUploading:r,blobUploading:t,canDetermineSize:r,chunking:o,deleteFileCors:f,deleteFileCorsXdr:l,deleteFileCorsXhr:c,dialogElement:!!window.HTMLDialogElement,fileDrop:n,folderDrop:i,folderSelection:d,imagePreviews:h,imageValidation:h,itemSizeValidation:r,pause:o,progressBar:p,resume:a,scaling:h&&t,tiffPreviews:qq.safari(),unlimitedScaledImageSize:!qq.ios(),uploading:e,uploadCors:u,uploadCustomHeaders:r,uploadNonMultipart:r,uploadViaPaste:s}}(),qq.isGenericPromise=function(e){"use strict";return!!(e&&e.then&&qq.isFunction(e.then))},qq.Promise=function(){"use strict";var e,t,n=[],r=[],i=[],o=0;qq.extend(this,{then:function(i,a){return 0===o?(i&&n.push(i),a&&r.push(a)):-1===o?a&&a.apply(null,t):i&&i.apply(null,e),this},done:function(n){return 0===o?i.push(n):n.apply(null,void 0===t?e:t),this},success:function(){return o=1,e=arguments,n.length&&qq.each(n,(function(t,n){n.apply(null,e)})),i.length&&qq.each(i,(function(t,n){n.apply(null,e)})),this},failure:function(){return o=-1,t=arguments,r.length&&qq.each(r,(function(e,n){n.apply(null,t)})),i.length&&qq.each(i,(function(e,n){n.apply(null,t)})),this}})},qq.BlobProxy=function(e,t){"use strict";qq.extend(this,{referenceBlob:e,create:function(){return t(e)}})},qq.UploadButton=function(e){"use strict";var t,n,r=this,i=new qq.DisposeSupport,o={acceptFiles:null,element:null,focusClass:"qq-upload-button-focus",folders:!1,hoverClass:"qq-upload-button-hover",ios8BrowserCrashWorkaround:!1,multiple:!1,name:"qqfile",onChange:function(e){},title:null};function a(){var e=document.createElement("input");return e.setAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME,n),e.setAttribute("title",o.title),r.setMultiple(o.multiple,e),o.folders&&qq.supportedFeatures.folderSelection&&e.setAttribute("webkitdirectory",""),o.acceptFiles&&e.setAttribute("accept",o.acceptFiles),e.setAttribute("type","file"),e.setAttribute("name",o.name),qq(e).css({position:"absolute",right:0,top:0,fontFamily:"Arial",fontSize:qq.ie()&&!qq.ie8()?"3500px":"118px",margin:0,padding:0,cursor:"pointer",opacity:0}),!qq.ie7()&&qq(e).css({height:"100%"}),o.element.appendChild(e),i.attach(e,"change",(function(){o.onChange(e)})),i.attach(e,"mouseover",(function(){qq(o.element).addClass(o.hoverClass)})),i.attach(e,"mouseout",(function(){qq(o.element).removeClass(o.hoverClass)})),i.attach(e,"focus",(function(){qq(o.element).addClass(o.focusClass)})),i.attach(e,"blur",(function(){qq(o.element).removeClass(o.focusClass)})),e}qq.extend(o,e),n=qq.getUniqueId(),qq(o.element).css({position:"relative",overflow:"hidden",direction:"ltr"}),qq.extend(this,{getInput:function(){return t},getButtonId:function(){return n},setMultiple:function(e,t){var n=t||this.getInput();o.ios8BrowserCrashWorkaround&&qq.ios8()&&(qq.iosChrome()||qq.iosSafariWebView())||e?n.setAttribute("multiple",""):n.removeAttribute("multiple")},setAcceptFiles:function(e){e!==o.acceptFiles&&t.setAttribute("accept",e)},reset:function(){t.parentNode&&qq(t).remove(),qq(o.element).removeClass(o.focusClass),t=null,t=a()}}),t=a()},qq.UploadButton.BUTTON_ID_ATTR_NAME="qq-button-id",qq.UploadData=function(e){"use strict";var t=[],n={},r={},i={},o={};function a(e){if(qq.isArray(e)){var n=[];return qq.each(e,(function(e,r){n.push(t[r])})),n}return t[e]}function s(e){if(qq.isArray(e)){var r=[];return qq.each(e,(function(e,i){r.push(t[n[i]])})),r}return t[n[e]]}function u(e){var n=[],i=[].concat(e);return qq.each(i,(function(e,i){var o=r[i];void 0!==o&&qq.each(o,(function(e,r){n.push(t[r])}))})),n}qq.extend(this,{addFile:function(a){var s=a.status||qq.status.SUBMITTING,u=t.push({name:a.name,originalName:a.name,uuid:a.uuid,size:null==a.size?-1:a.size,status:s,file:a.file})-1;return a.batchId&&(t[u].batchId=a.batchId,void 0===o[a.batchId]&&(o[a.batchId]=[]),o[a.batchId].push(u)),a.proxyGroupId&&(t[u].proxyGroupId=a.proxyGroupId,void 0===i[a.proxyGroupId]&&(i[a.proxyGroupId]=[]),i[a.proxyGroupId].push(u)),t[u].id=u,n[a.uuid]=u,void 0===r[s]&&(r[s]=[]),r[s].push(u),a.onBeforeStatusChange&&a.onBeforeStatusChange(u),e.onStatusChange(u,null,s),u},retrieve:function(e){return qq.isObject(e)&&t.length?void 0!==e.id?a(e.id):void 0!==e.uuid?s(e.uuid):e.status?u(e.status):void 0:qq.extend([],t,!0)},removeFileRef:function(e){var t=a(e);t&&delete t.file},reset:function(){t=[],n={},r={},o={}},setStatus:function(n,i){var o=t[n].status,a=qq.indexOf(r[o],n);r[o].splice(a,1),t[n].status=i,void 0===r[i]&&(r[i]=[]),r[i].push(n),e.onStatusChange(n,o,i)},uuidChanged:function(e,r){var i=t[e].uuid;t[e].uuid=r,n[r]=e,delete n[i]},updateName:function(e,n){t[e].name=n},updateSize:function(e,n){t[e].size=n},setParentId:function(e,n){t[e].parentId=n},getIdsInProxyGroup:function(e){var n=t[e].proxyGroupId;return n?i[n]:[]},getIdsInBatch:function(e){var n=t[e].batchId;return o[n]}})},qq.status={SUBMITTING:"submitting",SUBMITTED:"submitted",REJECTED:"rejected",QUEUED:"queued",CANCELED:"canceled",PAUSED:"paused",UPLOADING:"uploading",UPLOAD_FINALIZING:"upload finalizing",UPLOAD_RETRYING:"retrying upload",UPLOAD_SUCCESSFUL:"upload successful",UPLOAD_FAILED:"upload failed",DELETE_FAILED:"delete failed",DELETING:"deleting",DELETED:"deleted"},function(){"use strict";qq.basePublicApi={addBlobs:function(e,t,n){this.addFiles(e,t,n)},addInitialFiles:function(e){var t=this;qq.each(e,(function(e,n){t._addCannedFile(n)}))},addFiles:function(e,t,n){this._maybeHandleIos8SafariWorkaround();var r=0===this._storedIds.length?qq.getUniqueId():this._currentBatchId,i=qq.bind((function(e){this._handleNewFile({blob:e,name:this._options.blobs.defaultName},r,f)}),this),o=qq.bind((function(e){this._handleNewFile(e,r,f)}),this),a=qq.bind((function(e){var t=qq.canvasToBlob(e);this._handleNewFile({blob:t,name:this._options.blobs.defaultName+".png"},r,f)}),this),s=qq.bind((function(e){var t=e.quality&&e.quality/100,n=qq.canvasToBlob(e.canvas,e.type,t);this._handleNewFile({blob:n,name:e.name},r,f)}),this),u=qq.bind((function(e){if(qq.isInput(e)&&qq.supportedFeatures.ajaxUploading){var t=Array.prototype.slice.call(e.files),n=this;qq.each(t,(function(e,t){n._handleNewFile(t,r,f)}))}else this._handleNewFile(e,r,f)}),this),l=function(){qq.isFileList(e)&&(e=Array.prototype.slice.call(e)),e=[].concat(e)},c=this,f=[];this._currentBatchId=r,e&&(l(),qq.each(e,(function(e,t){qq.isFileOrInput(t)?u(t):qq.isBlob(t)?i(t):qq.isObject(t)?t.blob&&t.name?o(t):t.canvas&&t.name&&s(t):t.tagName&&"canvas"===t.tagName.toLowerCase()?a(t):c.log(t+" is not a valid file container! Ignoring!","warn")})),this.log("Received "+f.length+" files."),this._prepareItemsForUpload(f,t,n))},cancel:function(e){var t=this._uploadData.retrieve({id:e});t&&t.status===qq.status.UPLOAD_FINALIZING?this.log(qq.format("Ignoring cancel for file ID {} ({}). Finalizing upload.",e,this.getName(e)),"error"):this._handler.cancel(e)},cancelAll:function(){var e=[],t=this;qq.extend(e,this._storedIds),qq.each(e,(function(e,n){t.cancel(n)})),this._handler.cancelAll()},clearStoredFiles:function(){this._storedIds=[]},continueUpload:function(e){var t=this._uploadData.retrieve({id:e});return!(!qq.supportedFeatures.pause||!this._options.chunking.enabled)&&(t.status===qq.status.PAUSED?(this.log(qq.format("Paused file ID {} ({}) will be continued. Not paused.",e,this.getName(e))),this._uploadFile(e),!0):(this.log(qq.format("Ignoring continue for file ID {} ({}). Not paused.",e,this.getName(e)),"error"),!1))},deleteFile:function(e){return this._onSubmitDelete(e)},doesExist:function(e){return this._handler.isValid(e)},drawThumbnail:function(e,t,n,r,i){var o,a,s=new qq.Promise;return this._imageGenerator?(o=this._thumbnailUrls[e],a={customResizeFunction:i,maxSize:n>0?n:null,scale:n>0},!r&&qq.supportedFeatures.imagePreviews&&(o=this.getFile(e)),null==o?s.failure({container:t,error:"File or URL not found."}):this._imageGenerator.generate(o,t,a).then((function(e){s.success(e)}),(function(e,t){s.failure({container:e,error:t||"Problem generating thumbnail"})}))):s.failure({container:t,error:"Missing image generator module"}),s},getButton:function(e){return this._getButton(this._buttonIdsForFileIds[e])},getEndpoint:function(e){return this._endpointStore.get(e)},getFile:function(e){var t,n=this._handler.getFile(e);return n||(t=this._uploadData.retrieve({id:e}),t&&(n=t.file)),n||null},getInProgress:function(){return this._uploadData.retrieve({status:[qq.status.UPLOADING,qq.status.UPLOAD_RETRYING,qq.status.QUEUED]}).length},getName:function(e){return this._uploadData.retrieve({id:e}).name},getParentId:function(e){var t=this.getUploads({id:e}),n=null;return t&&void 0!==t.parentId&&(n=t.parentId),n},getResumableFilesData:function(){return this._handler.getResumableFilesData()},getSize:function(e){return this._uploadData.retrieve({id:e}).size},getNetUploads:function(){return this._netUploaded},getRemainingAllowedItems:function(){var e=this._currentItemLimit;return e>0?e-this._netUploadedOrQueued:null},getUploads:function(e){return this._uploadData.retrieve(e)},getUuid:function(e){return this._uploadData.retrieve({id:e}).uuid},isResumable:function(e){return this._handler.hasResumeRecord(e)},log:function(e,t){!this._options.debug||t&&"info"!==t?t&&"info"!==t&&qq.log("[Fine Uploader "+qq.version+"] "+e,t):qq.log("[Fine Uploader "+qq.version+"] "+e)},pauseUpload:function(e){var t=this._uploadData.retrieve({id:e});if(!qq.supportedFeatures.pause||!this._options.chunking.enabled)return!1;if(qq.indexOf([qq.status.UPLOADING,qq.status.UPLOAD_RETRYING],t.status)>=0){if(this._handler.pause(e))return this._uploadData.setStatus(e,qq.status.PAUSED),!0;this.log(qq.format("Unable to pause file ID {} ({}).",e,this.getName(e)),"error")}else this.log(qq.format("Ignoring pause for file ID {} ({}). Not in progress.",e,this.getName(e)),"error");return!1},removeFileRef:function(e){this._handler.expunge(e),this._uploadData.removeFileRef(e)},reset:function(){this.log("Resetting uploader..."),this._handler.reset(),this._storedIds=[],this._autoRetries=[],this._retryTimeouts=[],this._preventRetries=[],this._thumbnailUrls=[],qq.each(this._buttons,(function(e,t){t.reset()})),this._paramsStore.reset(),this._endpointStore.reset(),this._netUploadedOrQueued=0,this._netUploaded=0,this._uploadData.reset(),this._buttonIdsForFileIds=[],this._pasteHandler&&this._pasteHandler.reset(),this._options.session.refreshOnReset&&this._refreshSessionData(),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[],this._totalProgress&&this._totalProgress.reset(),this._customResumeDataStore.reset()},retry:function(e){return this._manualRetry(e)},scaleImage:function(e,t){var n=this;return qq.Scaler.prototype.scaleImage(e,t,{log:qq.bind(n.log,n),getFile:qq.bind(n.getFile,n),uploadData:n._uploadData})},setCustomHeaders:function(e,t){this._customHeadersStore.set(e,t)},setCustomResumeData:function(e,t){this._customResumeDataStore.set(t,e)},setDeleteFileCustomHeaders:function(e,t){this._deleteFileCustomHeadersStore.set(e,t)},setDeleteFileEndpoint:function(e,t){this._deleteFileEndpointStore.set(e,t)},setDeleteFileParams:function(e,t){this._deleteFileParamsStore.set(e,t)},setEndpoint:function(e,t){this._endpointStore.set(e,t)},setForm:function(e){this._updateFormSupportAndParams(e)},setItemLimit:function(e){this._currentItemLimit=e},setName:function(e,t){this._uploadData.updateName(e,t)},setParams:function(e,t){this._paramsStore.set(e,t)},setUuid:function(e,t){return this._uploadData.uuidChanged(e,t)},setStatus:function(e,t){var n=this.getUploads({id:e});if(!n)throw new qq.Error(e+" is not a valid file ID.");switch(t){case qq.status.DELETED:this._onDeleteComplete(e,null,!1);break;case qq.status.DELETE_FAILED:this._onDeleteComplete(e,null,!0);break;default:var r="Method setStatus called on '"+name+"' not implemented yet for "+t;throw this.log(r),new qq.Error(r)}},uploadStoredFiles:function(){0===this._storedIds.length?this._itemError("noFilesError"):this._uploadStoredFiles()}},qq.basePrivateApi={_addCannedFile:function(e){var t=this;return this._uploadData.addFile({uuid:e.uuid,name:e.name,size:e.size,status:qq.status.UPLOAD_SUCCESSFUL,onBeforeStatusChange:function(n){e.deleteFileEndpoint&&t.setDeleteFileEndpoint(e.deleteFileEndpoint,n),e.deleteFileParams&&t.setDeleteFileParams(e.deleteFileParams,n),e.thumbnailUrl&&(t._thumbnailUrls[n]=e.thumbnailUrl),t._netUploaded++,t._netUploadedOrQueued++}})},_annotateWithButtonId:function(e,t){qq.isFile(e)&&(e.qqButtonId=this._getButtonId(t))},_batchError:function(e){this._options.callbacks.onError(null,null,e,void 0)},_createDeleteHandler:function(){var e=this;return new qq.DeleteFileAjaxRequester({method:this._options.deleteFile.method.toUpperCase(),maxConnections:this._options.maxConnections,uuidParamName:this._options.request.uuidName,customHeaders:this._deleteFileCustomHeadersStore,paramsStore:this._deleteFileParamsStore,endpointStore:this._deleteFileEndpointStore,cors:this._options.cors,log:qq.bind(e.log,e),onDelete:function(t){e._onDelete(t),e._options.callbacks.onDelete(t)},onDeleteComplete:function(t,n,r){e._onDeleteComplete(t,n,r),e._options.callbacks.onDeleteComplete(t,n,r)}})},_createPasteHandler:function(){var e=this;return new qq.PasteSupport({targetElement:this._options.paste.targetElement,callbacks:{log:qq.bind(e.log,e),pasteReceived:function(t){e._handleCheckedCallback({name:"onPasteReceived",callback:qq.bind(e._options.callbacks.onPasteReceived,e,t),onSuccess:qq.bind(e._handlePasteSuccess,e,t),identifier:"pasted image"})}}})},_createStore:function(e,t){var n={},r=e,i={},o=t,a=function(e){return qq.isObject(e)?qq.extend({},e):e},s=function(){return qq.isFunction(o)?o():o},u=function(e,t){o&&qq.isObject(t)&&qq.extend(t,s()),i[e]&&qq.extend(t,i[e])};return{set:function(e,t){null==t?(n={},r=a(e)):n[t]=a(e)},get:function(e){var t;return t=null!=e&&n[e]?n[e]:a(r),u(e,t),a(t)},addReadOnly:function(e,t){qq.isObject(n)&&(null===e?qq.isFunction(t)?o=t:(o=o||{},qq.extend(o,t)):(i[e]=i[e]||{},qq.extend(i[e],t)))},remove:function(e){return delete n[e]},reset:function(){n={},i={},r=e}}},_createUploadDataTracker:function(){var e=this;return new qq.UploadData({getName:function(t){return e.getName(t)},getUuid:function(t){return e.getUuid(t)},getSize:function(t){return e.getSize(t)},onStatusChange:function(t,n,r){e._onUploadStatusChange(t,n,r),e._options.callbacks.onStatusChange(t,n,r),e._maybeAllComplete(t,r),e._totalProgress&&setTimeout((function(){e._totalProgress.onStatusChange(t,n,r)}),0)}})},_createUploadButton:function(e){var t,n=this,r=e.accept||this._options.validation.acceptFiles,i=e.allowedExtensions||this._options.validation.allowedExtensions;function o(){return!!qq.supportedFeatures.ajaxUploading&&(!(n._options.workarounds.iosEmptyVideos&&qq.ios()&&!qq.ios6()&&n._isAllowedExtension(i,".mov"))&&(void 0===e.multiple?n._options.multiple:e.multiple))}return t=new qq.UploadButton({acceptFiles:r,element:e.element,focusClass:this._options.classes.buttonFocus,folders:e.folders,hoverClass:this._options.classes.buttonHover,ios8BrowserCrashWorkaround:this._options.workarounds.ios8BrowserCrash,multiple:o(),name:this._options.request.inputName,onChange:function(e){n._onInputChange(e)},title:null==e.title?this._options.text.fileInputTitle:e.title}),this._disposeSupport.addDisposer((function(){t.dispose()})),n._buttons.push(t),t},_createUploadHandler:function(e,t){var n=this,r={},i={debug:this._options.debug,maxConnections:this._options.maxConnections,cors:this._options.cors,paramsStore:this._paramsStore,endpointStore:this._endpointStore,chunking:this._options.chunking,resume:this._options.resume,blobs:this._options.blobs,log:qq.bind(n.log,n),preventRetryParam:this._options.retry.preventRetryResponseProperty,onProgress:function(e,t,i,o){i<0||o<0||(r[e]&&r[e].loaded===i&&r[e].total===o||(n._onProgress(e,t,i,o),n._options.callbacks.onProgress(e,t,i,o)),r[e]={loaded:i,total:o})},onComplete:function(e,t,i,o){delete r[e];var a,s=n.getUploads({id:e}).status;s!==qq.status.UPLOAD_SUCCESSFUL&&s!==qq.status.UPLOAD_FAILED&&(a=n._onComplete(e,t,i,o),a instanceof qq.Promise?a.done((function(){n._options.callbacks.onComplete(e,t,i,o)})):n._options.callbacks.onComplete(e,t,i,o))},onCancel:function(e,t,r){var i=new qq.Promise;return n._handleCheckedCallback({name:"onCancel",callback:qq.bind(n._options.callbacks.onCancel,n,e,t),onFailure:i.failure,onSuccess:function(){r.then((function(){n._onCancel(e,t)})),i.success()},identifier:e}),i},onUploadPrep:qq.bind(this._onUploadPrep,this),onUpload:function(e,t){n._onUpload(e,t);var r=n._options.callbacks.onUpload(e,t);return qq.isGenericPromise(r)?(n.log(qq.format("onUpload for {} returned a Promise - waiting for resolution.",e)),r):(new qq.Promise).success()},onUploadChunk:function(e,t,r){n._onUploadChunk(e,r);var i=n._options.callbacks.onUploadChunk(e,t,r);return qq.isGenericPromise(i)?(n.log(qq.format("onUploadChunk for {}.{} returned a Promise - waiting for resolution.",e,r.partIndex)),i):(new qq.Promise).success()},onUploadChunkSuccess:function(e,t,r,i){n._onUploadChunkSuccess(e,t),n._options.callbacks.onUploadChunkSuccess.apply(n,arguments)},onResume:function(e,t,r,i){return n._options.callbacks.onResume(e,t,r,i)},onAutoRetry:function(e,t,r,i){return n._onAutoRetry.apply(n,arguments)},onUuidChanged:function(e,t){n.log("Server requested UUID change from '"+n.getUuid(e)+"' to '"+t+"'"),n.setUuid(e,t)},getName:qq.bind(n.getName,n),getUuid:qq.bind(n.getUuid,n),getSize:qq.bind(n.getSize,n),setSize:qq.bind(n._setSize,n),getDataByUuid:function(e){return n.getUploads({uuid:e})},isQueued:function(e){var t=n.getUploads({id:e}).status;return t===qq.status.QUEUED||t===qq.status.SUBMITTED||t===qq.status.UPLOAD_RETRYING||t===qq.status.PAUSED},getIdsInProxyGroup:n._uploadData.getIdsInProxyGroup,getIdsInBatch:n._uploadData.getIdsInBatch,isInProgress:function(e){return n.getUploads({id:e}).status===qq.status.UPLOADING},getCustomResumeData:qq.bind(n._getCustomResumeData,n),setStatus:function(e,t){n._uploadData.setStatus(e,t)}};return qq.each(this._options.request,(function(e,t){i[e]=t})),i.customHeaders=this._customHeadersStore,e&&qq.each(e,(function(e,t){i[e]=t})),new qq.UploadHandlerController(i,t)},_fileOrBlobRejected:function(e){this._netUploadedOrQueued--,this._uploadData.setStatus(e,qq.status.REJECTED)},_formatSize:function(e){if(0===e)return e+this._options.text.sizeSymbols[0];var t=-1;do{e/=1e3,t++}while(e>999);return Math.max(e,.1).toFixed(1)+this._options.text.sizeSymbols[t]},_generateExtraButtonSpecs:function(){var e=this;this._extraButtonSpecs={},qq.each(this._options.extraButtons,(function(t,n){var r=n.multiple,i=qq.extend({},e._options.validation,!0),o=qq.extend({},n);void 0===r&&(r=e._options.multiple),o.validation&&qq.extend(i,n.validation,!0),qq.extend(o,{multiple:r,validation:i},!0),e._initExtraButton(o)}))},_getButton:function(e){var t=this._extraButtonSpecs[e];return t?t.element:e===this._defaultButtonId?this._options.button:void 0},_getButtonId:function(e){var t,n,r=e;if(r instanceof qq.BlobProxy&&(r=r.referenceBlob),r&&!qq.isBlob(r)){if(qq.isFile(r))return r.qqButtonId;if("input"===r.tagName.toLowerCase()&&"file"===r.type.toLowerCase())return r.getAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME);if(t=r.getElementsByTagName("input"),qq.each(t,(function(e,t){if("file"===t.getAttribute("type"))return n=t,!1})),n)return n.getAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME)}},_getCustomResumeData:function(e){return this._customResumeDataStore.get(e)},_getNotFinished:function(){return this._uploadData.retrieve({status:[qq.status.UPLOADING,qq.status.UPLOAD_RETRYING,qq.status.QUEUED,qq.status.SUBMITTING,qq.status.SUBMITTED,qq.status.PAUSED]}).length},_getValidationBase:function(e){var t=this._extraButtonSpecs[e];return t?t.validation:this._options.validation},_getValidationDescriptor:function(e){return e.file instanceof qq.BlobProxy?{name:qq.getFilename(e.file.referenceBlob),size:e.file.referenceBlob.size}:{name:this.getUploads({id:e.id}).name,size:this.getUploads({id:e.id}).size}},_getValidationDescriptors:function(e){var t=this,n=[];return qq.each(e,(function(e,r){n.push(t._getValidationDescriptor(r))})),n},_handleCameraAccess:function(){if(this._options.camera.ios&&qq.ios()){var e="image/*;capture=camera",t=this._options.camera.button,n=t?this._getButtonId(t):this._defaultButtonId,r=this._options;n&&n!==this._defaultButtonId&&(r=this._extraButtonSpecs[n]),r.multiple=!1,null===r.validation.acceptFiles?r.validation.acceptFiles=e:r.validation.acceptFiles+=","+e,qq.each(this._buttons,(function(e,t){if(t.getButtonId()===n)return t.setMultiple(r.multiple),t.setAcceptFiles(r.acceptFiles),!1}))}},_handleCheckedCallback:function(e){var t=this,n=e.callback();return qq.isGenericPromise(n)?(this.log(e.name+" - waiting for "+e.name+" promise to be fulfilled for "+e.identifier),n.then((function(n){t.log(e.name+" promise success for "+e.identifier),e.onSuccess(n)}),(function(){e.onFailure?(t.log(e.name+" promise failure for "+e.identifier),e.onFailure()):t.log(e.name+" promise failure for "+e.identifier)}))):(!1!==n?e.onSuccess(n):e.onFailure?(this.log(e.name+" - return value was 'false' for "+e.identifier+". Invoking failure callback."),e.onFailure()):this.log(e.name+" - return value was 'false' for "+e.identifier+". Will not proceed."),n)},_handleNewFile:function(e,t,n){var r=this,i=qq.getUniqueId(),o=-1,a=qq.getFilename(e),s=e.blob||e,u=this._customNewFileHandler?this._customNewFileHandler:qq.bind(r._handleNewFileGeneric,r);!qq.isInput(s)&&s.size>=0&&(o=s.size),u(s,a,i,o,n,t,this._options.request.uuidName,{uploadData:r._uploadData,paramsStore:r._paramsStore,addFileToHandler:function(e,t){r._handler.add(e,t),r._netUploadedOrQueued++,r._trackButton(e)}})},_handleNewFileGeneric:function(e,t,n,r,i,o){var a=this._uploadData.addFile({uuid:n,name:t,size:r,batchId:o,file:e});this._handler.add(a,e),this._trackButton(a),this._netUploadedOrQueued++,i.push({id:a,file:e})},_handlePasteSuccess:function(e,t){var n=e.type.split("/")[1],r=t;null==r&&(r=this._options.paste.defaultName),r+="."+n,this.addFiles({name:r,blob:e})},_handleDeleteSuccess:function(e){if(this.getUploads({id:e}).status!==qq.status.DELETED){var t=this.getName(e);this._netUploadedOrQueued--,this._netUploaded--,this._handler.expunge(e),this._uploadData.setStatus(e,qq.status.DELETED),this.log("Delete request for '"+t+"' has succeeded.")}},_handleDeleteFailed:function(e,t){var n=this.getName(e);this._uploadData.setStatus(e,qq.status.DELETE_FAILED),this.log("Delete request for '"+n+"' has failed.","error"),t&&void 0!==t.withCredentials?this._options.callbacks.onError(e,n,"Delete request failed with response code "+t.status,t):this._options.callbacks.onError(e,n,"Delete request failed",t)},_initExtraButton:function(e){var t=this._createUploadButton({accept:e.validation.acceptFiles,allowedExtensions:e.validation.allowedExtensions,element:e.element,folders:e.folders,multiple:e.multiple,title:e.fileInputTitle});this._extraButtonSpecs[t.getButtonId()]=e},_initFormSupportAndParams:function(){this._formSupport=qq.FormSupport&&new qq.FormSupport(this._options.form,qq.bind(this.uploadStoredFiles,this),qq.bind(this.log,this)),this._formSupport&&this._formSupport.attachedToForm?(this._paramsStore=this._createStore(this._options.request.params,this._formSupport.getFormInputsAsObject),this._options.autoUpload=this._formSupport.newAutoUpload,this._formSupport.newEndpoint&&(this._options.request.endpoint=this._formSupport.newEndpoint)):this._paramsStore=this._createStore(this._options.request.params)},_isDeletePossible:function(){return!(!qq.DeleteFileAjaxRequester||!this._options.deleteFile.enabled)&&(!this._options.cors.expected||(!!qq.supportedFeatures.deleteFileCorsXhr||!(!qq.supportedFeatures.deleteFileCorsXdr||!this._options.cors.allowXdr)))},_isAllowedExtension:function(e,t){var n=!1;return!e.length||(qq.each(e,(function(e,r){if(qq.isString(r)){var i=new RegExp("\\."+r+"$","i");if(null!=t.match(i))return n=!0,!1}})),n)},_itemError:function(e,t,n){var r,i,o=this._options.messages[e],a=[],s=[].concat(t),u=s[0],l=this._getButtonId(n),c=this._getValidationBase(l);function f(e,t){o=o.replace(e,t)}return qq.each(c.allowedExtensions,(function(e,t){qq.isString(t)&&a.push(t)})),r=a.join(", ").toLowerCase(),f("{file}",this._options.formatFileName(u)),f("{extensions}",r),f("{sizeLimit}",this._formatSize(c.sizeLimit)),f("{minSizeLimit}",this._formatSize(c.minSizeLimit)),i=o.match(/(\{\w+\})/g),null!==i&&qq.each(i,(function(e,t){f(t,s[e])})),this._options.callbacks.onError(null,u,o,void 0),o},_manualRetry:function(e,t){if(this._onBeforeManualRetry(e))return this._netUploadedOrQueued++,this._uploadData.setStatus(e,qq.status.UPLOAD_RETRYING),t?t(e):this._handler.retry(e),!0},_maybeAllComplete:function(e,t){var n=this,r=this._getNotFinished();t===qq.status.UPLOAD_SUCCESSFUL?this._succeededSinceLastAllComplete.push(e):t===qq.status.UPLOAD_FAILED&&this._failedSinceLastAllComplete.push(e),0===r&&(this._succeededSinceLastAllComplete.length||this._failedSinceLastAllComplete.length)&&setTimeout((function(){n._onAllComplete(n._succeededSinceLastAllComplete,n._failedSinceLastAllComplete)}),0)},_maybeHandleIos8SafariWorkaround:function(){var e=this;if(this._options.workarounds.ios8SafariUploads&&qq.ios800()&&qq.iosSafari())throw setTimeout((function(){window.alert(e._options.messages.unsupportedBrowserIos8Safari)}),0),new qq.Error(this._options.messages.unsupportedBrowserIos8Safari)},_maybeParseAndSendUploadError:function(e,t,n,r){if(!n.success)if(r&&200!==r.status&&!n.error)this._options.callbacks.onError(e,t,"XHR returned response code "+r.status,r);else{var i=n.error?n.error:this._options.text.defaultResponseError;this._options.callbacks.onError(e,t,i,r)}},_maybeProcessNextItemAfterOnValidateCallback:function(e,t,n,r,i){var o=this;if(t.length>n)if(e||!this._options.validation.stopOnFirstInvalidFile)setTimeout((function(){var e=o._getValidationDescriptor(t[n]),a=o._getButtonId(t[n].file),s=o._getButton(a);o._handleCheckedCallback({name:"onValidate",callback:qq.bind(o._options.callbacks.onValidate,o,e,s),onSuccess:qq.bind(o._onValidateCallbackSuccess,o,t,n,r,i),onFailure:qq.bind(o._onValidateCallbackFailure,o,t,n,r,i),identifier:"Item '"+e.name+"', size: "+e.size})}),0);else if(!e)for(;n0&&this._netUploadedOrQueued+1>n?(this._itemError("retryFailTooManyItems"),!1):(this.log("Retrying upload for '"+t+"' (id: "+e+")..."),!0))):(this.log("'"+e+"' is not a valid file ID","error"),!1)},_onCancel:function(e,t){this._netUploadedOrQueued--,clearTimeout(this._retryTimeouts[e]);var n=qq.indexOf(this._storedIds,e);!this._options.autoUpload&&n>=0&&this._storedIds.splice(n,1),this._uploadData.setStatus(e,qq.status.CANCELED)},_onComplete:function(e,t,n,r){return n.success?(n.thumbnailUrl&&(this._thumbnailUrls[e]=n.thumbnailUrl),this._netUploaded++,this._uploadData.setStatus(e,qq.status.UPLOAD_SUCCESSFUL)):(this._netUploadedOrQueued--,this._uploadData.setStatus(e,qq.status.UPLOAD_FAILED),!0===n[this._options.retry.preventRetryResponseProperty]&&(this._preventRetries[e]=!0)),this._maybeParseAndSendUploadError(e,t,n,r),!!n.success},_onDelete:function(e){this._uploadData.setStatus(e,qq.status.DELETING)},_onDeleteComplete:function(e,t,n){this.getName(e);n?this._handleDeleteFailed(e,t):this._handleDeleteSuccess(e)},_onInputChange:function(e){var t;if(qq.supportedFeatures.ajaxUploading){for(t=0;t0&&this.addFiles(e);qq.each(this._buttons,(function(e,t){t.reset()}))},_onProgress:function(e,t,n,r){this._totalProgress&&this._totalProgress.onIndividualProgress(e,n,r)},_onSubmit:function(e,t){},_onSubmitCallbackSuccess:function(e,t){this._onSubmit.apply(this,arguments),this._uploadData.setStatus(e,qq.status.SUBMITTED),this._onSubmitted.apply(this,arguments),this._options.autoUpload?(this._options.callbacks.onSubmitted.apply(this,arguments),this._uploadFile(e)):(this._storeForLater(e),this._options.callbacks.onSubmitted.apply(this,arguments))},_onSubmitDelete:function(e,t,n){var r,i=this.getUuid(e);return t&&(r=qq.bind(t,this,e,i,n)),this._isDeletePossible()?(this._handleCheckedCallback({name:"onSubmitDelete",callback:qq.bind(this._options.callbacks.onSubmitDelete,this,e),onSuccess:r||qq.bind(this._deleteHandler.sendDelete,this,e,i,n),identifier:e}),!0):(this.log("Delete request ignored for ID "+e+", delete feature is disabled or request not possible due to CORS on a user agent that does not support pre-flighting.","warn"),!1)},_onSubmitted:function(e){},_onTotalProgress:function(e,t){this._options.callbacks.onTotalProgress(e,t)},_onUploadPrep:function(e){},_onUpload:function(e,t){this._uploadData.setStatus(e,qq.status.UPLOADING)},_onUploadChunk:function(e,t){},_onUploadChunkSuccess:function(e,t){!this._preventRetries[e]&&this._options.retry.enableAuto&&(this._autoRetries[e]=0)},_onUploadStatusChange:function(e,t,n){n===qq.status.PAUSED&&clearTimeout(this._retryTimeouts[e])},_onValidateBatchCallbackFailure:function(e){var t=this;qq.each(e,(function(e,n){t._fileOrBlobRejected(n.id)}))},_onValidateBatchCallbackSuccess:function(e,t,n,r,i){var o,a=this._currentItemLimit,s=this._netUploadedOrQueued;0===a||s<=a?t.length>0?this._handleCheckedCallback({name:"onValidate",callback:qq.bind(this._options.callbacks.onValidate,this,e[0],i),onSuccess:qq.bind(this._onValidateCallbackSuccess,this,t,0,n,r),onFailure:qq.bind(this._onValidateCallbackFailure,this,t,0,n,r),identifier:"Item '"+t[0].file.name+"', size: "+t[0].file.size}):this._itemError("noFilesError"):(this._onValidateBatchCallbackFailure(t),o=this._options.messages.tooManyItemsError.replace(/\{netItems\}/g,s).replace(/\{itemLimit\}/g,a),this._batchError(o))},_onValidateCallbackFailure:function(e,t,n,r){var i=t+1;this._fileOrBlobRejected(e[t].id,e[t].file.name),this._maybeProcessNextItemAfterOnValidateCallback(!1,e,i,n,r)},_onValidateCallbackSuccess:function(e,t,n,r){var i=this,o=t+1,a=this._getValidationDescriptor(e[t]);this._validateFileOrBlobData(e[t],a).then((function(){i._upload(e[t].id,n,r),i._maybeProcessNextItemAfterOnValidateCallback(!0,e,o,n,r)}),(function(){i._maybeProcessNextItemAfterOnValidateCallback(!1,e,o,n,r)}))},_prepareItemsForUpload:function(e,t,n){if(0!==e.length){var r=this._getValidationDescriptors(e),i=this._getButtonId(e[0].file),o=this._getButton(i);this._handleCheckedCallback({name:"onValidateBatch",callback:qq.bind(this._options.callbacks.onValidateBatch,this,r,o),onSuccess:qq.bind(this._onValidateBatchCallbackSuccess,this,r,e,t,n,o),onFailure:qq.bind(this._onValidateBatchCallbackFailure,this,e),identifier:"batch validation"})}else this._itemError("noFilesError")},_preventLeaveInProgress:function(){var e=this;this._disposeSupport.attach(window,"beforeunload",(function(t){if(e.getInProgress())return t=t||window.event,t.returnValue=e._options.messages.onLeave,e._options.messages.onLeave}))},_refreshSessionData:function(){var e=this,t=this._options.session;qq.Session&&null!=this._options.session.endpoint&&(this._session||(qq.extend(t,{cors:this._options.cors}),t.log=qq.bind(this.log,this),t.addFileRecord=qq.bind(this._addCannedFile,this),this._session=new qq.Session(t)),setTimeout((function(){e._session.refresh().then((function(t,n){e._sessionRequestComplete(),e._options.callbacks.onSessionRequestComplete(t,!0,n)}),(function(t,n){e._options.callbacks.onSessionRequestComplete(t,!1,n)}))}),0))},_sessionRequestComplete:function(){},_setSize:function(e,t){this._uploadData.updateSize(e,t),this._totalProgress&&this._totalProgress.onNewSize(e)},_shouldAutoRetry:function(e){var t=this._uploadData.retrieve({id:e});return!!(!this._preventRetries[e]&&this._options.retry.enableAuto&&t.status!==qq.status.PAUSED&&(void 0===this._autoRetries[e]&&(this._autoRetries[e]=0),this._autoRetries[e]0&&s.sizeLimit&&o>s.sizeLimit?(this._itemError("sizeError",i,r),u.failure()):o>0&&o=0}function s(e){var t=!1;return qq.each(t,(function(e,n){if(qq.indexOf(["Accept","Accept-Language","Content-Language","Content-Type"],n)<0)return t=!0,!1})),t}function u(e){return o.cors.expected&&void 0===e.withCredentials}function l(){var e;return(window.XMLHttpRequest||window.ActiveXObject)&&(e=qq.createXhrInstance(),void 0===e.withCredentials&&(e=new XDomainRequest,e.onload=function(){},e.onerror=function(){},e.ontimeout=function(){},e.onprogress=function(){})),e}function c(e,t){var n=i[e]&&i[e].xhr;return n||(n=t||(o.cors.expected?l():qq.createXhrInstance()),i[e].xhr=n),n}function f(e){var t,n=qq.indexOf(r,e),a=o.maxConnections;delete i[e],r.splice(n,1),r.length>=a&&n=0?s.send(qq.obj2url(f,"")):f&&o.contentType&&o.contentType.toLowerCase().indexOf("application/json")>=0?s.send(JSON.stringify(f)):s.send(f),s}function m(e,t,r){var a=o.endpointStore.get(e),s=i[e].addToPath;return void 0!=s&&(a+="/"+s),n&&t&&(a=qq.obj2url(t,a)),r&&(a=qq.obj2url(r,a)),a}function g(e){return function(){4===c(e).readyState&&d(e)}}function v(e){var t=o.onProgress;t&&(c(e).upload.onprogress=function(n){n.lengthComputable&&t(e,n.loaded,n.total)})}function y(e){return function(){d(e)}}function b(e){return function(){d(e,!0)}}function q(e){var t=c(e),n=o.customHeaders,r=i[e].additionalHeaders||{},l=o.method,f={};u(t)||(o.acceptHeader&&t.setRequestHeader("Accept",o.acceptHeader),o.allowXRequestedWithAndCacheControl&&(o.cors.expected&&a()&&!s(n)||(t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.setRequestHeader("Cache-Control","no-cache"))),!o.contentType||"POST"!==l&&"PUT"!==l||t.setRequestHeader("Content-Type",o.contentType),qq.extend(f,qq.isFunction(n)?n(e):n),qq.extend(f,r),qq.each(f,(function(e,n){t.setRequestHeader(e,n)})))}function w(e){return qq.indexOf(o.successfulResponseCodes[o.method],e)>=0}function _(e,t,n,a,s,u,l){i[e]={addToPath:n,additionalParams:a,additionalQueryParams:s,additionalHeaders:u,payload:l};var c=r.push(e);if(c<=o.maxConnections)return p(e,t)}n="GET"===o.method||"DELETE"===o.method,qq.extend(this,{initTransport:function(e){var t,n,r,i,a,s;return{withPath:function(e){return t=e,this},withParams:function(e){return n=e,this},withQueryParams:function(e){return s=e,this},withHeaders:function(e){return r=e,this},withPayload:function(e){return i=e,this},withCacheBuster:function(){return a=!0,this},send:function(u){return a&&qq.indexOf(["GET","DELETE"],o.method)>=0&&(n.qqtimestamp=(new Date).getTime()),_(e,u,t,n,s,r,i)}}},canceled:function(e){f(e)}})},qq.UploadHandler=function(e){"use strict";var t=e.proxy,n={},r=t.onCancel,i=t.getName;qq.extend(this,{add:function(e,t){n[e]=t,n[e].temp={}},cancel:function(e){var t=this,o=new qq.Promise,a=r(e,i(e),o);a.then((function(){t.isValid(e)&&(n[e].canceled=!0,t.expunge(e)),o.success()}))},expunge:function(e){delete n[e]},getThirdPartyFileId:function(e){return n[e].key},isValid:function(e){return void 0!==n[e]},reset:function(){n={}},_getFileState:function(e){return n[e]},_setThirdPartyFileId:function(e,t){n[e].key=t},_wasCanceled:function(e){return!!n[e].canceled}})},qq.UploadHandlerController=function(e,t){"use strict";var n,r,i,o=this,a=!1,s=!1,u={paramsStore:{},maxConnections:3,chunking:{enabled:!1,multiple:{enabled:!1}},log:function(e,t){},onProgress:function(e,t,n,r){},onComplete:function(e,t,n,r){},onCancel:function(e,t){},onUploadPrep:function(e){},onUpload:function(e,t){},onUploadChunk:function(e,t,n){},onUploadChunkSuccess:function(e,t,n,r){},onAutoRetry:function(e,t,n,r){},onResume:function(e,t,n,r){},onUuidChanged:function(e,t){},getName:function(e){},setSize:function(e,t){},isQueued:function(e){},getIdsInProxyGroup:function(e){},getIdsInBatch:function(e){},isInProgress:function(e){}},l={done:function(e,t,n,r){var o=i._getChunkData(e,t);i._getFileState(e).attemptingResume=!1,delete i._getFileState(e).temp.chunkProgress[t],i._getFileState(e).loaded+=o.size,u.onUploadChunkSuccess(e,i._getChunkDataForCallback(o),n,r)},finalize:function(e){var t=u.getSize(e),n=u.getName(e);r("All chunks have been uploaded for "+e+" - finalizing...."),i.finalizeChunks(e).then((function(o,a){r("Finalize successful for "+e);var s=d.normalizeResponse(o,!0);u.onProgress(e,n,t,t),i._maybeDeletePersistedChunkData(e),d.cleanup(e,s,a)}),(function(t,i){var o=d.normalizeResponse(t,!1);r("Problem finalizing chunks for file ID "+e+" - "+o.error,"error"),(o.reset||i&&u.chunking.success.resetOnStatus.indexOf(i.status)>=0)&&l.reset(e),u.onAutoRetry(e,n,o,i)||d.cleanup(e,o,i)}))},handleFailure:function(e,t,n,o){var a=u.getName(t);r("Chunked upload request failed for "+t+", chunk "+e),i.clearCachedChunk(t,e);var f,h=d.normalizeResponse(n,!1);if(h.reset)l.reset(t);else{var p=i._getFileState(t).chunking.inProgress;f=p?qq.indexOf(p,e):-1,f>=0&&(i._getFileState(t).chunking.inProgress.splice(f,1),i._getFileState(t).chunking.remaining.unshift(e))}i._getFileState(t).temp.ignoreFailure||(s&&(i._getFileState(t).temp.ignoreFailure=!0,r(qq.format("Going to attempt to abort these chunks: {}. These are currently in-progress: {}.",JSON.stringify(Object.keys(i._getXhrs(t))),JSON.stringify(i._getFileState(t).chunking.inProgress))),qq.each(i._getXhrs(t),(function(e,n){r(qq.format("Attempting to abort file {}.{}. XHR readyState {}. ",t,e,n.readyState)),n.abort(),n._cancelled=!0})),i.moveInProgressToRemaining(t),c.free(t,!0)),u.onAutoRetry(t,a,h,o)||d.cleanup(t,h,o))},hasMoreParts:function(e){return!!i._getFileState(e).chunking.remaining.length},nextPart:function(e){var t=i._getFileState(e).chunking.remaining.shift();return t>=i._getTotalChunks(e)&&(t=null),t},reset:function(e){r("Server or callback has ordered chunking effort to be restarted on next attempt for item ID "+e,"error"),i._maybeDeletePersistedChunkData(e),i.reevaluateChunking(e),i._getFileState(e).loaded=0,i._getFileState(e).attemptingResume=!1},sendNext:function(e){var t=u.getSize(e),n=u.getName(e),o=l.nextPart(e),a=i._getChunkData(e,o),f=i._getFileState(e),h=f.attemptingResume,p=f.chunking.inProgress||[];if(null==f.loaded&&(f.loaded=0),h&&!1===u.onResume(e,n,a,f.customResumeData)&&(l.reset(e),o=l.nextPart(e),a=i._getChunkData(e,o),h=!1),null==o&&0===p.length)l.finalize(e);else{p.push(o),i._getFileState(e).chunking.inProgress=p,s&&c.open(e,o),s&&c.available()&&i._getFileState(e).chunking.remaining.length&&l.sendNext(e),0===a.blob.size&&(r(qq.format("Chunk {} for file {} will not be uploaded, zero sized chunk.",o,e),"error"),l.handleFailure(o,e,"File is no longer available",null));var m=u.onUploadChunk(e,n,i._getChunkDataForCallback(a));m.then((function(n){if(u.isInProgress(e)){r(qq.format("Sending chunked upload request for item {}.{}, bytes {}-{} of {}.",e,o,a.start+1,a.end,t));var s={chunkIdx:o,id:e,overrides:n,resuming:h};i.uploadChunk(s).then((function(t,n){r("Chunked upload request succeeded for "+e+", chunk "+o),i.clearCachedChunk(e,o);var a=i._getFileState(e).chunking.inProgress||[],s=d.normalizeResponse(t,!0),u=qq.indexOf(a,o);r(qq.format("Chunk {} for file {} uploaded successfully.",o,e)),l.done(e,o,s,n),u>=0&&a.splice(u,1),i._maybePersistChunkedState(e),l.hasMoreParts(e)||0!==a.length?l.hasMoreParts(e)?l.sendNext(e):r(qq.format("File ID {} has no more chunks to send and these chunk indexes are still marked as in-progress: {}",e,JSON.stringify(a))):l.finalize(e)}),(function(t,n){l.handleFailure(o,e,t,n)})).done((function(){i.clearXhr(e,o)}))}else r(qq.format("Not sending chunked upload request for item {}.{} - no longer in progress.",e,o))}),(function(t){l.handleFailure(o,e,t,null)}))}}},c={_open:[],_openChunks:{},_waiting:[],available:function(){var e=u.maxConnections,t=0,n=0;return qq.each(c._openChunks,(function(e,r){t++,n+=r.length})),e-(c._open.length-t+n)},free:function(e,t){var n,o=!t,a=qq.indexOf(c._waiting,e),s=qq.indexOf(c._open,e);delete c._openChunks[e],d.getProxyOrBlob(e)instanceof qq.BlobProxy&&(r("Generated blob upload has ended for "+e+", disposing generated blob."),delete i._getFileState(e).file),a>=0?c._waiting.splice(a,1):o&&s>=0&&(c._open.splice(s,1),n=c._waiting.shift(),n>=0&&(c._open.push(n),d.start(n)))},getWaitingOrConnected:function(){var e=[];return qq.each(c._openChunks,(function(t,n){n&&n.length&&e.push(parseInt(t))})),qq.each(c._open,(function(t,n){c._openChunks[n]||e.push(parseInt(n))})),e=e.concat(c._waiting),e},isUsingConnection:function(e){return qq.indexOf(c._open,e)>=0},open:function(e,t){return null==t&&c._waiting.push(e),!!c.available()&&(null==t?(c._waiting.pop(),c._open.push(e)):function(){var n=c._openChunks[e]||[];n.push(t),c._openChunks[e]=n}(),!0)},reset:function(){c._waiting=[],c._open=[]}},f={send:function(e,t){var n=i._getFileState(e);n?(n.loaded=0,r("Sending simple upload request for "+e),i.uploadFile(e).then((function(n,i){r("Simple upload request succeeded for "+e);var o=d.normalizeResponse(n,!0),a=u.getSize(e);u.onProgress(e,t,a,a),d.maybeNewUuid(e,o),d.cleanup(e,o,i)}),(function(n,i){r("Simple upload request failed for "+e);var o=d.normalizeResponse(n,!1);u.onAutoRetry(e,t,o,i)||d.cleanup(e,o,i)}))):r("Ignoring send request as this upload may have been cancelled, File ID "+e,"warn")}},d={cancel:function(e){r("Cancelling "+e),u.paramsStore.remove(e),c.free(e)},cleanup:function(e,t,n){var r=u.getName(e);u.onComplete(e,r,t,n),i._getFileState(e)&&i._clearXhrs&&i._clearXhrs(e),c.free(e)},getProxyOrBlob:function(e){return i.getProxy&&i.getProxy(e)||i.getFile&&i.getFile(e)},initHandler:function(){var e=t?qq[t]:qq.traditional,n=qq.supportedFeatures.ajaxUploading?"Xhr":"Form";i=new e[n+"UploadHandler"](u,{getCustomResumeData:u.getCustomResumeData,getDataByUuid:u.getDataByUuid,getName:u.getName,getSize:u.getSize,getUuid:u.getUuid,log:r,onCancel:u.onCancel,onProgress:u.onProgress,onUuidChanged:u.onUuidChanged,onFinalizing:function(e){u.setStatus(e,qq.status.UPLOAD_FINALIZING)}}),i._removeExpiredChunkingRecords&&i._removeExpiredChunkingRecords()},isDeferredEligibleForUpload:function(e){return u.isQueued(e)},maybeDefer:function(e,t){return t&&!i.getFile(e)&&t instanceof qq.BlobProxy?(u.onUploadPrep(e),r("Attempting to generate a blob on-demand for "+e),t.create().then((function(t){r("Generated an on-demand blob for "+e),i.updateBlob(e,t),u.setSize(e,t.size),i.reevaluateChunking(e),d.maybeSendDeferredFiles(e)}),(function(t){var i={};t&&(i.error=t),r(qq.format("Failed to generate blob for ID {}. Error message: {}.",e,t),"error"),u.onComplete(e,u.getName(e),qq.extend(i,n),null),d.maybeSendDeferredFiles(e),c.free(e)})),!1):d.maybeSendDeferredFiles(e)},maybeSendDeferredFiles:function(e){var t=u.getIdsInProxyGroup(e),n=!1;return t&&t.length?(r("Maybe ready to upload proxy group file "+e),qq.each(t,(function(t,r){if(d.isDeferredEligibleForUpload(r)&&i.getFile(r))n=r===e,d.now(r);else if(d.isDeferredEligibleForUpload(r))return!1}))):(n=!0,d.now(e)),n},maybeNewUuid:function(e,t){void 0!==t.newUuid&&u.onUuidChanged(e,t.newUuid)},normalizeResponse:function(e,t){var n=e;return qq.isObject(e)||(n={},qq.isString(e)&&!t&&(n.error=e)),n.success=t,n},now:function(e){var t=u.getName(e);if(!o.isValid(e))throw new qq.Error(e+" is not a valid file ID to upload!");u.onUpload(e,t).then((function(n){n&&n.pause?(u.setStatus(e,qq.status.PAUSED),i.pause(e),c.free(e)):a&&i._shouldChunkThisFile(e)?l.sendNext(e):f.send(e,t)}),(function(n){if(n=n||{},r(e+" upload start aborted due to rejected onUpload Promise - details: "+n,"error"),!u.onAutoRetry(e,t,n.responseJSON||{})){var i=d.normalizeResponse(n.responseJSON,!1);d.cleanup(e,i)}}))},start:function(e){var t=d.getProxyOrBlob(e);return t?d.maybeDefer(e,t):(d.now(e),!0)}};qq.extend(this,{add:function(e,t){i.add.apply(this,arguments)},upload:function(e){return!!c.open(e)&&d.start(e)},retry:function(e){return s&&(i._getFileState(e).temp.ignoreFailure=!1),c.isUsingConnection(e)?d.start(e):o.upload(e)},cancel:function(e){var t=i.cancel(e);qq.isGenericPromise(t)?t.then((function(){d.cancel(e)})):!1!==t&&d.cancel(e)},cancelAll:function(){var e,t=c.getWaitingOrConnected();if(t.length)for(e=t.length-1;e>=0;e--)o.cancel(t[e]);c.reset()},getFile:function(e){return i.getProxy&&i.getProxy(e)?i.getProxy(e).referenceBlob:i.getFile&&i.getFile(e)},isProxied:function(e){return!(!i.getProxy||!i.getProxy(e))},getInput:function(e){if(i.getInput)return i.getInput(e)},reset:function(){r("Resetting upload handler"),o.cancelAll(),c.reset(),i.reset()},expunge:function(e){if(o.isValid(e))return i.expunge(e)},isValid:function(e){return i.isValid(e)},hasResumeRecord:function(e){var t=i.isValid(e)&&i._getLocalStorageId&&i._getLocalStorageId(e);return!!t&&!!localStorage.getItem(t)},getResumableFilesData:function(){return i.getResumableFilesData?i.getResumableFilesData():[]},getThirdPartyFileId:function(e){if(o.isValid(e))return i.getThirdPartyFileId(e)},pause:function(e){return!!(o.isResumable(e)&&i.pause&&o.isValid(e)&&i.pause(e))&&(c.free(e),i.moveInProgressToRemaining(e),!0)},isAttemptingResume:function(e){return!!i.isAttemptingResume&&i.isAttemptingResume(e)},isResumable:function(e){return!!i.isResumable&&i.isResumable(e)}}),qq.extend(u,e),r=u.log,a=u.chunking.enabled&&qq.supportedFeatures.chunking,s=a&&u.chunking.concurrent.enabled,n=function(){var e={};return e[u.preventRetryParam]=!0,e}(),d.initHandler()},qq.WindowReceiveMessage=function(e){"use strict";var t={log:function(e,t){}},n={};qq.extend(t,e),qq.extend(this,{receiveMessage:function(e,t){var r=function(e){t(e.data)};window.postMessage?n[e]=qq(window).attach("message",r):log("iframe message passing not supported in this browser!","error")},stopReceivingMessages:function(e){if(window.postMessage){var t=n[e];t&&t()}}})},qq.FormUploadHandler=function(e){"use strict";var t=e.options,n=this,r=e.proxy,i=qq.getUniqueId(),o={},a={},s={},u=t.isCors,l=t.inputName,c=r.getUuid,f=r.log,d=new qq.WindowReceiveMessage({log:f});function h(e){delete a[e],u&&(clearTimeout(s[e]),delete s[e],d.stopReceivingMessages(e));var t=document.getElementById(n._getIframeName(e));t&&(t.setAttribute("src","javascript:false;"),qq(t).remove())}function p(e){return e.split("_")[0]}function m(e){var t=qq.toElement("