!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=265)}([function(e,t,n){"use strict";function r(e,t){return!(!t||!t[ne[e]])}function o(){return oe()}function i(e){oe=e}function a(){re=0,oe=function(){return""+re++}}function s(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;!function(t){var n=e[t];if(!n)throw new Error('Object does not have a property named "'+t+'".');e[t]=function(){for(var e=arguments.length,r=Array(e),o=0;o=Number.MAX_SAFE_INTEGER&&(Te=0)}function f(e){be=e}function p(e){return"text"==e.object?e:e.getFirstText()}function d(e){return"text"==e.object?e:e.getLastText()}function h(e){if("string"==typeof e)return e;throw new Error("Invalid `key` argument! It must be a key string, but you passed: "+e)}function m(e){return je<=e&&e<=Fe}function g(e,t){if(He.test(e))return!1;if(Ue.test(e)){var n=t.charAt(0),r=v(n);n=t.slice(0,r);if(g(n,t.slice(r)))return!0}return!ze.test(e)}function v(e){return m(e.charCodeAt(0))?2:1}function y(e){return v(e.charAt(0))}function b(e,t){return e=e.slice(0,t),e=Object(z.reverse)(e),y(e)}function T(e,t){return e=e.slice(t),y(e)}function _(e){for(var t=0,n=0,r=!1,o=void 0;o=e.charAt(n);){var i=v(o);o=e.slice(n,n+i);if(g(o,e.slice(n+i)))r=!0,t+=i;else{if(r)break;t+=i}n+=i}return t}function E(e,t){return e=e.slice(0,t),e=Object(z.reverse)(e),_(e)}function k(e,t){return e=e.slice(t),_(e)}function w(e,t){return!!t&&("set_selection"==e.type&&"set_selection"==t.type||"insert_text"==e.type&&"insert_text"==t.type&&e.offset==t.offset+t.text.length&&G()(e.path,t.path)||"remove_text"==e.type&&"remove_text"==t.type&&e.offset+e.text.length==t.offset&&G()(e.path,t.path))}function x(e,t){return!!t&&("set_selection"==e.type&&"set_selection"==t.type)}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={document:{},blocks:{},inlines:{}};return e.slice().reverse().forEach(function(e){if(e.schema){if(e.schema.rules)throw new Error("Schemas in Slate have changed! They are no longer accept a `rules` property.");if(e.schema.nodes)throw new Error("Schemas in Slate have changed! They are no longer accept a `nodes` property.");var n=e.schema,r=n.document,o=void 0===r?{}:r,i=n.blocks,a=void 0===i?{}:i,s=n.inlines,u=void 0===s?{}:s,l=A(o),c={},f={};for(var p in a)c[p]=O("block",p,a[p]);for(var d in u)f[d]=O("inline",d,u[d]);Y()(t.document,l,S),Y()(t.blocks,c,S),Y()(t.inlines,f,S)}}),t}function A(e){return ue({data:{},nodes:null},e)}function O(e,t,n){return ue({data:{},isVoid:null,nodes:null,first:null,last:null,parent:null,text:null},n)}function S(e,t,n){return"objects"==n||"types"==n||"marks"==n?null==e?t:e.concat(t):null==t?e:t}function N(e){e=it.create(e);var t=e,n=t.type;if(at(n,e),"insert_node"==n){return e.set("type","remove_node")}if("remove_node"==n){return e.set("type","insert_node")}if("move_node"==n){var r=e,o=r.newPath,i=r.path,a=o,s=i,u=i.length-1,l=o.length-1;i.lengtho)throw new Error("A schema rule could not be validated after sufficient iterations. This is usually due to a `rule.validate` or `rule.normalize` function of a schema being incorrectly written, causing an infinite loop.");r(e,t)}}}var o=n.stack.plugins.length+1,i=0;r(e,t)}function M(e,t,n){if(e.selection&&t(e.selection)&&(e=e.set("selection",n(e.selection))),!e.decorations)return e;var r=e.decorations.map(function(e){return t(e)?n(e):e}).filter(function(e){return null!==e.anchorKey});return e.set("decorations",r)}function L(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return M(e,function(e){if(!e.isAtomic)return!1;var o=e.startKey,i=e.startOffset,a=e.endKey,s=e.endOffset;return o==t&&in)||r&&o==t&&ir)},function(e){return e.deselect()})}function P(e,t){t=it.create(t);var n=t,r=n.type,o=mt[r];if(!o)throw new Error('Unknown operation type: "'+r+'".');return ht(r,t),e=o(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Block",function(){return me}),n.d(t,"Change",function(){return vt}),n.d(t,"Changes",function(){return dt}),n.d(t,"Character",function(){return Ie}),n.d(t,"Data",function(){return ye}),n.d(t,"Document",function(){return Oe}),n.d(t,"History",function(){return $e}),n.d(t,"Inline",function(){return ve}),n.d(t,"Leaf",function(){return Le}),n.d(t,"Mark",function(){return xe}),n.d(t,"Node",function(){return Be}),n.d(t,"Operation",function(){return it}),n.d(t,"Operations",function(){return yt}),n.d(t,"Range",function(){return Ne}),n.d(t,"Schema",function(){return tt}),n.d(t,"Stack",function(){return Qe}),n.d(t,"Text",function(){return Re}),n.d(t,"Value",function(){return rt}),n.d(t,"resetKeyGenerator",function(){return a}),n.d(t,"setKeyGenerator",function(){return i}),n.d(t,"resetMemoization",function(){return c}),n.d(t,"useMemoization",function(){return f});var R=n(337),B=n.n(R),j=n(90),F=n(5),H=(n.n(F),n(339)),U=n.n(H),z=n(340),K=(n.n(z),n(341)),q=n.n(K),W=n(343),G=n.n(W),V=n(394),Y=n.n(V),$=n(63),J=n(411),X=n.n(J),Q=n(427),Z=n.n(Q),ee=n(448),te=n.n(ee),ne={BLOCK:"@@__SLATE_BLOCK__@@",CHANGE:"@@__SLATE_CHANGE__@@",CHARACTER:"@@__SLATE_CHARACTER__@@",DOCUMENT:"@@__SLATE_DOCUMENT__@@",HISTORY:"@@__SLATE_HISTORY__@@",INLINE:"@@__SLATE_INLINE__@@",LEAF:"@@__SLATE_LEAF__@@",MARK:"@@__SLATE_MARK__@@",OPERATION:"@@__SLATE_OPERATION__@@",RANGE:"@@__SLATE_RANGE__@@",SCHEMA:"@@__SLATE_SCHEMA__@@",STACK:"@@__SLATE_STACK__@@",TEXT:"@@__SLATE_TEXT__@@",VALUE:"@@__SLATE_VALUE__@@"},re=void 0,oe=void 0;a();var ie="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},se=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},fe=function(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},pe=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),de=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,isVoid:this.isVoid,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(t){return t.toJSON(e)})};return e.preserveKeys&&(t.key=this.key),t}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"object",get:function(){return"block"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"isEmpty",get:function(){return!this.isVoid&&!this.nodes.some(function(e){return!e.isEmpty})}},{key:"text",get:function(){return this.getText()}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isBlock(e))return e;if("string"==typeof e&&(e={type:e}),B()(e))return t.fromJSON(e);throw new Error("`Block.create` only accepts objects, strings or blocks, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Block.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isBlock(e))return e;var n=e.data,r=void 0===n?{}:n,i=e.isVoid,a=void 0!==i&&i,s=e.key,u=void 0===s?o():s,l=e.nodes,c=void 0===l?[]:l,f=e.type;if("string"!=typeof f)throw new Error("`Block.fromJSON` requires a `type` string.");return new t({key:u,type:f,isVoid:!!a,data:Object(F.Map)(r),nodes:t.createChildren(c)})}},{key:"isBlockList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isBlock(e)})}}]),t}(Object(F.Record)(he));me.fromJS=me.fromJSON,me.isBlock=r.bind(null,"BLOCK"),me.prototype[ne.BLOCK]=!0;var ge={data:new F.Map,isVoid:!1,key:void 0,nodes:new F.List,type:void 0},ve=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,isVoid:this.isVoid,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(t){return t.toJSON(e)})};return e.preserveKeys&&(t.key=this.key),t}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"object",get:function(){return"inline"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"isEmpty",get:function(){return!this.isVoid&&!this.nodes.some(function(e){return!e.isEmpty})}},{key:"text",get:function(){return this.getText()}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isInline(e))return e;if("string"==typeof e&&(e={type:e}),B()(e))return t.fromJSON(e);throw new Error("`Inline.create` only accepts objects, strings or inlines, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Inline.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isInline(e))return e;var n=e.data,r=void 0===n?{}:n,i=e.isVoid,a=void 0!==i&&i,s=e.key,u=void 0===s?o():s,l=e.nodes,c=void 0===l?[]:l,f=e.type;if("string"!=typeof f)throw new Error("`Inline.fromJS` requires a `type` string.");return new t({key:u,type:f,isVoid:!!a,data:new F.Map(r),nodes:t.createChildren(c)})}},{key:"isInlineList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isInline(e)})}}]),t}(Object(F.Record)(ge));ve.fromJS=ve.fromJSON,ve.isInline=r.bind(null,"INLINE"),ve.prototype[ne.INLINE]=!0;var ye=function(){function e(){ae(this,e)}return se(e,null,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(F.Map.isMap(t))return t;if(B()(t))return e.fromJSON(t);throw new Error("`Data.create` only accepts objects or maps, but you passed it: "+t)}},{key:"fromJSON",value:function(e){return new F.Map(e)}}]),e}();ye.fromJS=ye.fromJSON;var be=!0,Te=0,_e={},Ee={},ke=void 0,we={data:new F.Map,type:void 0},xe=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"getComponent",value:function(e){return e.__getComponent(this)}},{key:"toJSON",value:function(){return{object:this.object,type:this.type,data:this.data.toJSON()}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"mark"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return e;if("string"==typeof e&&(e={type:e}),B()(e))return t.fromJSON(e);throw new Error("`Mark.create` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"createSet",value:function(e){if(F.Set.isSet(e)||Array.isArray(e)){return new F.Set(e.map(t.create))}if(null==e)return Object(F.Set)();throw new Error("`Mark.createSet` only accepts sets, arrays or null, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return{data:e.data,type:e.type};if("string"==typeof e)return{type:e};if(B()(e)){var n={};return"type"in e&&(n.type=e.type),"data"in e&&(n.data=ye.create(e.data)),n}throw new Error("`Mark.createProperties` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.data,r=void 0===n?{}:n,o=e.type;if("string"!=typeof o)throw new Error("`Mark.fromJS` requires a `type` string.");return new t({type:o,data:new F.Map(r)})}},{key:"isMarkSet",value:function(e){return F.Set.isSet(e)&&e.every(function(e){return t.isMark(e)})}}]),t}(Object(F.Record)(we));xe.fromJS=xe.fromJSON,xe.isMark=r.bind(null,"MARK"),xe.prototype[ne.MARK]=!0,s(xe.prototype,["getComponent"]);var Ce={};["deleteBackward","deleteCharBackward","deleteLineBackward","deleteWordBackward","deleteForward","deleteCharForward","deleteWordForward","deleteLineForward","setBlocks","setInlines","splitInline","unwrapBlock","unwrapInline","wrapBlock","wrapInline"].forEach(function(e){Ce[e]=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:1,n=e.value,r=n.selection,o=n.document,i=r.marks||o.getInsertMarksAtRange(r);e.splitBlockAtRange(r,t).collapseToEnd(),i&&0!==i.size&&e.select({marks:i})},Ce.removeMark=function(e,t){t=xe.create(t);var n=e.value,r=n.document,o=n.selection;if(o.isExpanded)e.removeMarkAtRange(o,t);else if(o.marks){var i=o.marks.remove(t),a=o.set("marks",i);e.select(a)}else{var s=r.getActiveMarksAtRange(o).remove(t),u=o.set("marks",s);e.select(u)}},Ce.replaceMark=function(e,t,n){e.removeMark(t),e.addMark(n)},Ce.toggleMark=function(e,t){t=xe.create(t),e.value.activeMarks.has(t)?e.removeMark(t):e.addMark(t)},Ce.wrapText=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.value,o=r.selection;e.wrapTextAtRange(o,t,n),o.isCollapsed&&e.moveStart(0-t.length),e.moveEnd(0-n.length),o.isForward!=e.value.selection.isForward&&e.flip()};var Ae={data:new F.Map,key:void 0,nodes:new F.List},Oe=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(t){return t.toJSON(e)})};return e.preserveKeys&&(t.key=this.key),t}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"object",get:function(){return"document"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"isEmpty",get:function(){return!this.nodes.some(function(e){return!e.isEmpty})}},{key:"text",get:function(){return this.getText()}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDocument(e))return e;if((F.List.isList(e)||Array.isArray(e))&&(e={nodes:e}),B()(e))return t.fromJSON(e);throw new Error("`Document.create` only accepts objects, arrays, lists or documents, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isDocument(e))return e;var n=e.data,r=void 0===n?{}:n,i=e.key,a=void 0===i?o():i,s=e.nodes,u=void 0===s?[]:s;return new t({key:a,data:new F.Map(r),nodes:t.createChildren(u)})}}]),t}(Object(F.Record)(Ae));Oe.fromJS=Oe.fromJSON,Oe.isDocument=r.bind(null,"DOCUMENT"),Oe.prototype[ne.DOCUMENT]=!0;var Se={anchorKey:null,anchorOffset:0,focusKey:null,focusOffset:0,isBackward:null,isFocused:!1,marks:null,isAtomic:!1},Ne=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"hasAnchorAtStartOf",value:function(e){if(0!=this.anchorOffset)return!1;var t=p(e);return this.anchorKey==t.key}},{key:"hasAnchorAtEndOf",value:function(e){var t=d(e);return this.anchorKey==t.key&&this.anchorOffset==t.text.length}},{key:"hasAnchorBetween",value:function(e,t,n){return this.anchorOffset<=n&&t<=this.anchorOffset&&this.hasAnchorIn(e)}},{key:"hasAnchorIn",value:function(e){return"text"==e.object?e.key==this.anchorKey:null!=this.anchorKey&&e.hasDescendant(this.anchorKey)}},{key:"hasFocusAtEndOf",value:function(e){var t=d(e);return this.focusKey==t.key&&this.focusOffset==t.text.length}},{key:"hasFocusAtStartOf",value:function(e){if(0!=this.focusOffset)return!1;var t=p(e);return this.focusKey==t.key}},{key:"hasFocusBetween",value:function(e,t,n){return t<=this.focusOffset&&this.focusOffset<=n&&this.hasFocusIn(e)}},{key:"hasFocusIn",value:function(e){return"text"==e.object?e.key==this.focusKey:null!=this.focusKey&&e.hasDescendant(this.focusKey)}},{key:"isAtStartOf",value:function(e){return this.isCollapsed&&this.hasAnchorAtStartOf(e)}},{key:"isAtEndOf",value:function(e){return this.isCollapsed&&this.hasAnchorAtEndOf(e)}},{key:"focus",value:function(){return this.merge({isFocused:!0})}},{key:"blur",value:function(){return this.merge({isFocused:!1})}},{key:"deselect",value:function(){return this.merge({anchorKey:null,anchorOffset:0,focusKey:null,focusOffset:0,isFocused:!1,isBackward:!1})}},{key:"flip",value:function(){return this.merge({anchorKey:this.focusKey,anchorOffset:this.focusOffset,focusKey:this.anchorKey,focusOffset:this.anchorOffset,isBackward:null==this.isBackward?null:!this.isBackward})}},{key:"moveAnchor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.anchorKey,n=this.focusKey,r=this.focusOffset,o=this.isBackward,i=this.anchorOffset+e;return this.merge({anchorOffset:i,isBackward:t==n?i>r:o})}},{key:"moveFocus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.anchorKey,n=this.anchorOffset,r=this.focusKey,o=this.isBackward,i=this.focusOffset+e;return this.merge({focusOffset:i,isBackward:r==t?n>i:o})}},{key:"moveAnchorTo",value:function(e,t){var n=this.anchorKey,r=this.focusKey,o=this.focusOffset,i=this.isBackward;return this.merge({anchorKey:e,anchorOffset:t,isBackward:e==r?t>o:e==n?i:null})}},{key:"moveFocusTo",value:function(e,t){var n=this.focusKey,r=this.anchorKey,o=this.anchorOffset,i=this.isBackward;return this.merge({focusKey:e,focusOffset:t,isBackward:e==r?o>t:e==n?i:null})}},{key:"moveAnchorOffsetTo",value:function(e){return this.merge({anchorOffset:e,isBackward:this.anchorKey==this.focusKey?e>this.focusOffset:this.isBackward})}},{key:"moveFocusOffsetTo",value:function(e){return this.merge({focusOffset:e,isBackward:this.anchorKey==this.focusKey?this.anchorOffset>e:this.isBackward})}},{key:"moveOffsetsTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.moveAnchorOffsetTo(e).moveFocusOffsetTo(t)}},{key:"moveToAnchor",value:function(){return this.moveFocusTo(this.anchorKey,this.anchorOffset)}},{key:"moveToFocus",value:function(){return this.moveAnchorTo(this.focusKey,this.focusOffset)}},{key:"moveAnchorToStartOf",value:function(e){return e=p(e),this.moveAnchorTo(e.key,0)}},{key:"moveAnchorToEndOf",value:function(e){return e=d(e),this.moveAnchorTo(e.key,e.text.length)}},{key:"moveFocusToStartOf",value:function(e){return e=p(e),this.moveFocusTo(e.key,0)}},{key:"moveFocusToEndOf",value:function(e){return e=d(e),this.moveFocusTo(e.key,e.text.length)}},{key:"moveToRangeOf",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return(this.isBackward?this.flip():this).moveAnchorToStartOf(e).moveFocusToEndOf(t)}},{key:"normalize",value:function(e){var t=this,n=t.anchorKey,r=t.anchorOffset,o=t.focusKey,i=t.focusOffset,a=t.isBackward,s="undefined"===typeof r?"undefined":ie(r),u="undefined"===typeof i?"undefined":ie(i);if("number"==s&&"number"==u||j.default.warn('The range offsets should be numbers, but they were of type "'+s+'" and "'+u+'".'),null==n||null==o)return t.merge({anchorKey:null,anchorOffset:0,focusKey:null,focusOffset:0,isBackward:!1});var l=e.getDescendant(n),c=e.getDescendant(o);if(!l||!c){j.default.warn("The range was invalid and was reset. The range in question was:",t);var f=e.getFirstText();return t.merge({anchorKey:f?f.key:null,anchorOffset:0,focusKey:f?f.key:null,focusOffset:0,isBackward:!1})}if("text"!=l.object){j.default.warn("The range anchor was set to a Node that is not a Text node. This should not happen and can degrade performance. The node in question was:",l);var p=l.getTextAtOffset(r);r-=l.getOffset(p.key),l=p}if("text"!=c.object){j.default.warn("The range focus was set to a Node that is not a Text node. This should not happen and can degrade performance. The node in question was:",c);var d=c.getTextAtOffset(i);i-=c.getOffset(d.key),c=d}return null==a&&(a=l.key===c.key?r>i:!e.areDescendantsSorted(l.key,c.key)),t.merge({anchorKey:l.key,anchorOffset:r,focusKey:c.key,focusOffset:i,isBackward:a})}},{key:"toJSON",value:function(){return{object:this.object,anchorKey:this.anchorKey,anchorOffset:this.anchorOffset,focusKey:this.focusKey,focusOffset:this.focusOffset,isBackward:this.isBackward,isFocused:this.isFocused,marks:null==this.marks?null:this.marks.toArray().map(function(e){return e.toJSON()}),isAtomic:this.isAtomic}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"range"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"isBlurred",get:function(){return!this.isFocused}},{key:"isCollapsed",get:function(){return this.anchorKey==this.focusKey&&this.anchorOffset==this.focusOffset}},{key:"isExpanded",get:function(){return!this.isCollapsed}},{key:"isForward",get:function(){return null==this.isBackward?null:!this.isBackward}},{key:"isSet",get:function(){return null!=this.anchorKey&&null!=this.focusKey}},{key:"isUnset",get:function(){return!this.isSet}},{key:"startKey",get:function(){return this.isBackward?this.focusKey:this.anchorKey}},{key:"startOffset",get:function(){return this.isBackward?this.focusOffset:this.anchorOffset}},{key:"endKey",get:function(){return this.isBackward?this.anchorKey:this.focusKey}},{key:"endOffset",get:function(){return this.isBackward?this.anchorOffset:this.focusOffset}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return e;if(B()(e))return t.fromJSON(e);throw new Error("`Range.create` only accepts objects or ranges, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Range.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return{anchorKey:e.anchorKey,anchorOffset:e.anchorOffset,focusKey:e.focusKey,focusOffset:e.focusOffset,isBackward:e.isBackward,isFocused:e.isFocused,marks:e.marks,isAtomic:e.isAtomic};if(B()(e)){var n={};return"anchorKey"in e&&(n.anchorKey=e.anchorKey),"anchorOffset"in e&&(n.anchorOffset=e.anchorOffset),"anchorPath"in e&&(n.anchorPath=e.anchorPath),"focusKey"in e&&(n.focusKey=e.focusKey),"focusOffset"in e&&(n.focusOffset=e.focusOffset),"focusPath"in e&&(n.focusPath=e.focusPath),"isBackward"in e&&(n.isBackward=e.isBackward),"isFocused"in e&&(n.isFocused=e.isFocused),"marks"in e&&(n.marks=null==e.marks?null:xe.createSet(e.marks)),"isAtomic"in e&&(n.isAtomic=e.isAtomic),n}throw new Error("`Range.createProperties` only accepts objects or ranges, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchorKey,r=void 0===n?null:n,o=e.anchorOffset,i=void 0===o?0:o,a=e.focusKey,s=void 0===a?null:a,u=e.focusOffset,l=void 0===u?0:u,c=e.isBackward,f=void 0===c?null:c,p=e.isFocused,d=void 0!==p&&p,h=e.marks,m=void 0===h?null:h,g=e.isAtomic,v=void 0!==g&&g;return new t({anchorKey:r,anchorOffset:i,focusKey:s,focusOffset:l,isBackward:f,isFocused:d,marks:null==m?null:new F.Set(m.map(xe.fromJSON)),isAtomic:v})}},{key:"isRange",value:function(e){return!(!e||!e[ne.RANGE])}}]),t}(Object(F.Record)(Se));Ne.fromJS=Ne.fromJSON,Ne.prototype[ne.RANGE]=!0,[["move",""],["move","To"],["move","ToStartOf"],["move","ToEndOf"]].forEach(function(e){var t=pe(e,2),n=t[0],r=t[1];Ne.prototype[""+n+r]=function(){var e;return(e=this[n+"Anchor"+r].apply(this,arguments))[n+"Focus"+r].apply(e,arguments)}}),[["has","AtStartOf",!0],["has","AtEndOf",!0],["has","Between",!0],["has","In",!0],["collapseTo",""],["move",""],["moveTo",""],["move","To"],["move","OffsetTo"]].forEach(function(e){var t=pe(e,3),n=t[0],r=t[1],o=t[2],i=n+"Anchor"+r,a=n+"Focus"+r;Ne.prototype[n+"Start"+r]=function(){return this.isBackward?this[a].apply(this,arguments):this[i].apply(this,arguments)},Ne.prototype[n+"End"+r]=function(){return this.isBackward?this[i].apply(this,arguments):this[a].apply(this,arguments)},o&&(Ne.prototype[n+"Edge"+r]=function(){return this[i].apply(this,arguments)||this[a].apply(this,arguments)})}),[["collapseTo","moveTo"],["collapseToAnchor","moveToAnchor"],["collapseToFocus","moveToFocus"],["collapseToStart","moveToStart"],["collapseToEnd","moveToEnd"],["collapseToStartOf","moveToStartOf"],["collapseToEndOf","moveToEndOf"],["extend","moveFocus"],["extendTo","moveFocusTo"],["extendToStartOf","moveFocusToStartOf"],["extendToEndOf","moveFocusToEndOf"]].forEach(function(e){var t=pe(e,2),n=t[0],r=t[1];Ne.prototype[n]=function(){return this[r].apply(this,arguments)}});var De={marks:new F.Set,text:""},Ie=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"toJSON",value:function(){return{object:this.object,text:this.text,marks:this.marks.toArray().map(function(e){return e.toJSON()})}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"character"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isCharacter(e))return e;if("string"==typeof e&&(e={text:e}),B()(e))return t.fromJSON(e);throw new Error("`Character.create` only accepts objects, strings or characters, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("string"==typeof e&&(e=e.split("")),F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Block.createList` only accepts strings, arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.text,r=e.marks,o=void 0===r?[]:r;if("string"!=typeof n)throw new Error("`Character.fromJSON` requires a block `text` string.");return new t({text:n,marks:new F.Set(o)})}},{key:"isCharacterList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isCharacter(e)})}}]),t}(Object(F.Record)(De));Ie.fromJS=Ie.fromJSON,Ie.isCharacter=r.bind(null,"CHARACTER"),Ie.prototype[ne.CHARACTER]=!0;var Me={marks:Object(F.Set)(),text:""},Le=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"getCharacters",value:function(){j.default.deprecate("slate@0.34.0","The `characters` property of Slate objects is deprecated");var e=this.marks;return Ie.createList(this.text.split("").map(function(t){return Ie.create({text:t,marks:e})}))}},{key:"updateMark",value:function(e,t){var n=this.marks;if(t.equals(e))return this;if(!n.has(e))return this;var r=n.withMutations(function(n){n.remove(e).add(t)});return this.set("marks",r)}},{key:"addMarks",value:function(e){var t=this.marks;return this.set("marks",t.union(e))}},{key:"removeMark",value:function(e){var t=this.marks;return this.set("marks",t.remove(e))}},{key:"toJSON",value:function(){return{object:this.object,text:this.text,marks:this.marks.toArray().map(function(e){return e.toJSON()})}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"leaf"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isLeaf(e))return e;if("string"==typeof e&&(e={text:e}),B()(e))return t.fromJSON(e);throw new Error("`Leaf.create` only accepts objects, strings or leaves, but you passed it: "+e)}},{key:"createLeaves",value:function(e){if(e.size<=1)return e;var t=!1,n=Object(F.List)().withMutations(function(n){e.findLast(function(e,r){var o=n.first();if(o){if(o.marks.equals(e.marks))return t=!0,void n.set(0,o.set("text",""+e.text+o.text));if(""===o.text)return t=!0,void n.set(0,e);if(""===e.text)return void(t=!0)}n.unshift(e)})});return t?n:e}},{key:"splitLeaves",value:function(e,t){if(t<0)return[Object(F.List)(),e];if(0===e.size)return[Object(F.List)(),Object(F.List)()];var n=0,r=-1,o=void 0,i=void 0;return e.find(function(e){r++;var a=n,s=e.text;if((n+=s.length)t)return!1;var u=t-a;return o=e.set("text",s.slice(0,u)),i=e.set("text",s.slice(u)),!0}),o?""===o.text?0===r?[F.List.of(o),e]:[e.take(r),e.skip(r)]:""===i.text?r===e.size-1?[e,F.List.of(i)]:[e.take(r+1),e.skip(r+1)]:[e.take(r).push(o),e.skip(r+1).unshift(i)]:[e,Object(F.List)()]}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Leaf.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.text,r=void 0===n?"":n,o=e.marks,i=void 0===o?[]:o;return new t({text:r,marks:Object(F.Set)(i.map(xe.fromJSON))})}},{key:"isLeafList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isLeaf(e)})}}]),t}(Object(F.Record)(Me));Le.fromJS=Le.fromJSON,Le.isLeaf=r.bind(null,"LEAF"),Le.prototype[ne.LEAF]=!0;var Pe={leaves:Object(F.List)(),key:void 0},Re=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"getString",value:function(){return this.leaves.reduce(function(e,t){return e+t.text},"")}},{key:"searchLeafAtOffset",value:function(e){var t=0,n=0,r=-1;return{leaf:this.leaves.find(function(o){return r++,n=t,(t=n+o.text.length)>=e}),endOffset:t,index:r,startOffset:n}}},{key:"addMark",value:function(e,t,n){var r=F.Set.of(n);return this.addMarks(e,t,r)}},{key:"addMarks",value:function(e,t,n){if(""===this.text&&0===t&&0===e){var r=this.leaves,o=r.first();if(!o)return this.set("leaves",F.List.of(Le.fromJSON({text:"",marks:n})));var i=o.addMarks(n);return i===o?this:this.set("leaves",F.List.of(i))}if(""===this.text)return this;if(0===t)return this;if(e>=this.text.length)return this;var a=Le.splitLeaves(this.leaves,e),s=pe(a,2),u=s[0],l=s[1],c=Le.splitLeaves(l,t),f=pe(c,2),p=f[0],d=f[1],h=u.concat(p.map(function(e){return e.addMarks(n)}),d);return this.setLeaves(h)}},{key:"getDecorations",value:function(e){return e.__getDecorations(this)}},{key:"getLeaves",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this.leaves;if(0===n.size)return F.List.of(Le.create({}));if(!t||0===t.length)return n;if(0===this.text.length)return n;var r=this.key;return t.forEach(function(t){var o=t.startKey,i=t.endKey,a=t.startOffset,s=t.endOffset,u=t.marks,l=o==r,c=i==r;if(l&&c){var f=l?a:0,p=c?s-f:e.text.length-f;if(p<1)return;if(f>=e.text.length)return;if(0!==f||p=this.text.length)return this.getActiveMarks();if(e>=t)return Object(F.Set)();if(""===this.text)return this.getActiveMarks();var n=null,r=0;return this.leaves.forEach(function(o){var i=r;if(!((r=i+o.text.length)<=e))return!(i>=t)&&(n?(n=n.intersect(o.marks),n&&n.size,!1):void(n=o.marks))}),n||Object(F.Set)()}},{key:"getActiveMarks",value:function(){var e=this;if(0===this.leaves.size)return Object(F.Set)();var t=this.leaves.first().marks;return 0===t.size?t:t.withMutations(function(t){e.leaves.forEach(function(e){if(t.intersect(e.marks),0===t.size)return!1})})}},{key:"getMarksBetweenOffsets",value:function(e,t){if(e<=0&&t>=this.text.length)return this.getMarks();if(e>=t)return Object(F.Set)();if(""===this.text)return this.getActiveMarks();var n=null,r=0;return this.leaves.forEach(function(o){var i=r;if(!((r=i+o.text.length)<=e))return!(i>=t)&&(n?void(n=n.union(o.marks)):void(n=o.marks))}),n||Object(F.Set)()}},{key:"getMarks",value:function(){var e=this.getMarksAsArray();return new F.OrderedSet(e)}},{key:"getMarksAsArray",value:function(){if(0===this.leaves.size)return[];var e=this.leaves.first().marks;if(1===this.leaves.size)return e.toArray();var t=[];return this.leaves.forEach(function(e){t.push(e.marks.toArray())}),Array.prototype.concat.apply(e.toArray(),t)}},{key:"getMarksAtIndex",value:function(e){var t=this.searchLeafAtOffset(e),n=t.leaf;return n?n.marks:Object(F.Set)()}},{key:"getNode",value:function(e){return this.key==e?this:null}},{key:"hasNode",value:function(e){return!!this.getNode(e)}},{key:"insertText",value:function(e,t,n){if(""===this.text)return this.set("leaves",F.List.of(Le.create({text:t,marks:n})));if(0===t.length)return this;n||(n=Object(F.Set)());var r=this.searchLeafAtOffset(e),o=r.startOffset,i=r.leaf,a=r.index,s=e-o,u=i.text.slice(0,s),l=i.text.slice(s),c=this.leaves;if(i.marks.equals(n))return this.set("leaves",c.set(a,i.set("text",u+t+l)));var f=c.splice(a,1,i.set("text",u),Le.create({text:t,marks:n}),i.set("text",l));return this.setLeaves(f)}},{key:"regenerateKey",value:function(){var e=o();return this.set("key",e)}},{key:"removeMark",value:function(e,t,n){if(""===this.text&&0===e&&0===t){var r=this.leaves.first();if(!r)return this;var o=r.removeMark(n);return o===r?this:this.set("leaves",F.List.of(o))}if(t<=0)return this;if(e>=this.text.length)return this;var i=Le.splitLeaves(this.leaves,e),a=pe(i,2),s=a[0],u=a[1],l=Le.splitLeaves(u,t),c=pe(l,2),f=c[0],p=c[1],d=s.concat(f.map(function(e){return e.removeMark(n)}),p);return this.setLeaves(d)}},{key:"removeText",value:function(e,t){if(t<=0)return this;if(e>=this.text.length)return this;if(1===t){var n=this.searchLeafAtOffset(e+1),r=n.leaf,o=n.index,i=n.startOffset,a=e-i;if(r){if(1===r.text.length){var s=this.leaves.remove(o);return this.setLeaves(s)}var u=r.text.slice(0,a),l=r.text.slice(a+t),c=u+l;if(c.length>0)return this.set("leaves",this.leaves.set(o,r.set("text",c)))}}var f=Le.splitLeaves(this.leaves,e),p=pe(f,2),d=p[0],h=p[1],m=Le.splitLeaves(h,t)[1],g=Le.createLeaves(d.concat(m));if(1===g.size){var v=g.first();if(""===v.text)return this.set("leaves",F.List.of(v.set("marks",this.getActiveMarks())))}return this.set("leaves",g)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,leaves:this.getLeaves().toArray().map(function(e){return e.toJSON()})};return e.preserveKeys&&(t.key=this.key),t}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"updateMark",value:function(e,t,n,r){var o=n.merge(r);if(""===this.text&&0===t&&0===e){var i=this.leaves,a=i.first();if(!a)return this;var s=a.updateMark(n,o);return s===a?this:this.set("leaves",F.List.of(s))}if(t<=0)return this;if(e>=this.text.length)return this;var u=Le.splitLeaves(this.leaves,e),l=pe(u,2),c=l[0],f=l[1],p=Le.splitLeaves(f,t),d=pe(p,2),h=d[0],m=d[1],g=c.concat(h.map(function(e){return e.updateMark(n,o)}),m);return this.setLeaves(g)}},{key:"splitText",value:function(e){var t=Le.splitLeaves(this.leaves,e);return[this.set("leaves",t[0]),this.set("leaves",t[1]).regenerateKey()]}},{key:"mergeText",value:function(e){var t=this.leaves.concat(e.leaves);return this.setLeaves(t)}},{key:"validate",value:function(e){return e.validateNode(this)}},{key:"getFirstInvalidDescendant",value:function(e){return this.validate(e)?this:null}},{key:"setLeaves",value:function(e){var t=Le.createLeaves(e);if(1===t.size){var n=t.first();if((!n.marks||0===n.marks.size)&&""===n.text)return this.set("leaves",Object(F.List)())}return this.set("leaves",Le.createLeaves(e))}},{key:"object",get:function(){return"text"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"isEmpty",get:function(){return""==this.text}},{key:"text",get:function(){return this.getString()}},{key:"characters",get:function(){return this.leaves.flatMap(function(e){return e.getCharacters()})}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t.isText(e))return e;if("string"==typeof e&&(e={leaves:[{text:e}]}),B()(e)){if(e.text){var n=e,r=n.text,o=n.marks;e={key:n.key,leaves:[{text:r,marks:o}]}}return t.fromJSON(e)}throw new Error("`Text.create` only accepts objects, arrays, strings or texts, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Text.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isText(e))return e;var n=e.key,r=void 0===n?o():n,i=e.leaves,a=void 0===i?Object(F.List)():i;if(Array.isArray(a))a=Object(F.List)(a.map(function(e){return Le.create(e)}));else{if(!F.List.isList(a))throw new Error("leaves must be either Array or Immutable.List");a=a.map(function(e){return Le.create(e)})}return new t({leaves:Le.createLeaves(a),key:r})}},{key:"isTextList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isText(e)})}}]),t}(Object(F.Record)(Pe));Re.fromJS=Re.fromJSON,Re.isText=r.bind(null,"TEXT"),Re.prototype[ne.TEXT]=!0,s(Re.prototype,["getDecorations","getActiveMarks","getMarks","getMarksAsArray","validate","getString"]);var Be=function(){function e(){ae(this,e)}return se(e,[{key:"areDescendantsSorted",value:function(e,t){e=h(e),t=h(t);var n=this.getKeysAsArray(),r=n.indexOf(e),o=n.indexOf(t);return-1==r||-1==o?null:r1&&void 0!==arguments[1]?arguments[1]:1;return this.assertDescendant(e),this.hasChild(e)?t:this.getFurthestAncestor(e).getDepth(e,t+1)}},{key:"getDescendant",value:function(e){e=h(e);var t=null,n=this.nodes.find(function(n){return n.key===e?n:"text"!==n.object&&(t=n.getDescendant(e))});return t||n}},{key:"getDescendantAtPath",value:function(e){var t=this,n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;if(!t)return;if(!t.nodes)return;t=t.nodes.get(s)}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return t}},{key:"getFirstText",value:function(){var e=null,t=this.nodes.find(function(t){return"text"==t.object||(e=t.getFirstText())});return e||t}},{key:"getFragmentAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Oe.create();for(var t=this,n=e,r=n.startKey,o=n.startOffset,i=n.endKey,a=n.endOffset,s=t.assertDescendant(r),u=t.assertDescendant(i),l=s,c=void 0,f=void 0;f=t.getParent(l.key);){var p=f.nodes.indexOf(l),d="text"==l.object?o:l.nodes.indexOf(c);f=f.splitNode(p,d),t=t.updateNode(f),c=f.nodes.get(p+1),l=f}for(l=r==i?t.getNextText(r):u;f=t.getParent(l.key);){var h=f.nodes.indexOf(l),m="text"==l.object?r==i?a-o:a:l.nodes.indexOf(c);f=f.splitNode(h,m),t=t.updateNode(f),c=f.nodes.get(h+1),l=f}var g=t.getNextSibling(t.getFurthestAncestor(r).key),v=r==i?t.getNextSibling(t.getNextSibling(t.getFurthestAncestor(i).key).key):t.getNextSibling(t.getFurthestAncestor(i).key),y=t.nodes.indexOf(g),b=t.nodes.indexOf(v),T=t.nodes.slice(y,b);return Oe.create({nodes:T})}},{key:"getFurthest",value:function(e,t){var n=this.getAncestors(e);if(!n)throw e=h(e),new Error('Could not find a descendant node with key "'+e+'".');return n.rest().find(t)}},{key:"getFurthestBlock",value:function(e){return this.getFurthest(e,function(e){return"block"==e.object})}},{key:"getFurthestInline",value:function(e){return this.getFurthest(e,function(e){return"inline"==e.object})}},{key:"getFurthestAncestor",value:function(e){return e=h(e),this.nodes.find(function(t){return t.key==e||"text"!=t.object&&t.hasDescendant(e)})}},{key:"getFurthestOnlyChildAncestor",value:function(e){var t=this.getAncestors(e);if(!t)throw e=h(e),new Error('Could not find a descendant node with key "'+e+'".');var n=t.shift().reverse().takeUntil(function(e){return e.nodes.size>1}).last();return n||null}},{key:"getInlines",value:function(){var e=this.getInlinesAsArray();return new F.List(e)}},{key:"getInlinesAsArray",value:function(){var e=[];return this.nodes.forEach(function(t){"text"!=t.object&&(t.isLeafInline()?e.push(t):e=e.concat(t.getInlinesAsArray()))}),e}},{key:"getInlinesAtRange",value:function(e){var t=this.getInlinesAtRangeAsArray(e);return new F.List(new F.OrderedSet(t))}},{key:"getInlinesAtRangeAsArray",value:function(e){var t=this;return e=e.normalize(this),e.isUnset?[]:this.getTextsAtRangeAsArray(e).map(function(e){return t.getClosestInline(e.key)}).filter(function(e){return e})}},{key:"getInlinesByType",value:function(e){var t=this.getInlinesByTypeAsArray(e);return new F.List(t)}},{key:"getInlinesByTypeAsArray",value:function(e){return this.nodes.reduce(function(t,n){return"text"==n.object?t:n.isLeafInline()&&n.type==e?(t.push(n),t):t.concat(n.getInlinesByTypeAsArray(e))},[])}},{key:"getKeysAsArray",value:function(){var e=[];return this.forEachDescendant(function(t){e.push(t.key)}),e}},{key:"getKeys",value:function(){var e=this.getKeysAsArray();return new F.Set(e)}},{key:"getLastText",value:function(){var e=null,t=this.nodes.findLast(function(t){return"text"==t.object||(e=t.getLastText())});return e||t}},{key:"getMarks",value:function(){var e=this.getMarksAsArray();return new F.Set(e)}},{key:"getOrderedMarks",value:function(){var e=this.getMarksAsArray();return new F.OrderedSet(e)}},{key:"getMarksAsArray",value:function(){var e=[];return this.nodes.forEach(function(t){e.push(t.getMarksAsArray())}),Array.prototype.concat.apply([],e)}},{key:"getMarksAtRange",value:function(e){return new F.Set(this.getOrderedMarksAtRange(e))}},{key:"getInsertMarksAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Object(F.Set)();if(e.isCollapsed)return this.getMarksAtPosition(e.startKey,e.startOffset);var t=e,n=t.startKey,r=t.startOffset;return this.getDescendant(n).getMarksAtIndex(r+1)}},{key:"getOrderedMarksAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Object(F.OrderedSet)();if(e.isCollapsed)return this.getMarksAtPosition(e.startKey,e.startOffset);var t=e,n=t.startKey,r=t.startOffset,o=t.endKey,i=t.endOffset;return this.getOrderedMarksBetweenPositions(n,r,o,i)}},{key:"getOrderedMarksBetweenPositions",value:function(e,t,n,r){if(e===n){return this.getDescendant(e).getMarksBetweenOffsets(t,r)}var o=this.getTextsBetweenPositionsAsArray(e,n);return Object(F.OrderedSet)().withMutations(function(i){o.forEach(function(o){o.key===e?i.union(o.getMarksBetweenOffsets(t,o.text.length)):o.key===n?i.union(o.getMarksBetweenOffsets(0,r)):i.union(o.getMarks())})})}},{key:"getActiveMarksAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Object(F.Set)();if(e.isCollapsed){var t=e,n=t.startKey,r=t.startOffset;return this.getMarksAtPosition(n,r).toSet()}var o=e,i=o.startKey,a=o.endKey,s=o.startOffset,u=o.endOffset,l=this.getDescendant(i);if(i!==a){for(;i!==a&&0===u;){var c=this.getPreviousText(a);a=c.key,u=c.text.length}for(;i!==a&&s===l.text.length;)l=this.getNextText(i),i=l.key,s=0}if(i===a)return l.getActiveMarksBetweenOffsets(s,u);var f=l.getActiveMarksBetweenOffsets(s,l.text.length);if(0===f.size)return Object(F.Set)();var p=this.getDescendant(a),d=p.getActiveMarksBetweenOffsets(0,u),h=f.intersect(d);if(0===h.size)return h;for(var m=this.getNextText(i);m.key!==a;){if(0!==m.text.length&&(h=h.intersect(m.getActiveMarks()),0===h.size))return Object(F.Set)();m=this.getNextText(m.key)}return h}},{key:"getMarksAtPosition",value:function(e,t){var n=this.getDescendant(e),r=n.getMarksAtIndex(t);if(0!==t)return r;var o=this.getClosestBlock(e);if(""===o.text)return r;var i=this.getPreviousText(e);return i?o.hasDescendant(i.key)?i.getMarksAtIndex(i.text.length):r:Object(F.Set)()}},{key:"getMarksByType",value:function(e){var t=this.getMarksByTypeAsArray(e);return new F.Set(t)}},{key:"getOrderedMarksByType",value:function(e){var t=this.getMarksByTypeAsArray(e);return new F.OrderedSet(t)}},{key:"getMarksByTypeAsArray",value:function(e){return this.nodes.reduce(function(t,n){return"text"==n.object?t.concat(n.getMarksAsArray().filter(function(t){return t.type==e})):t.concat(n.getMarksByTypeAsArray(e))},[])}},{key:"getNextBlock",value:function(e){var t=this.assertDescendant(e),n=void 0;if("block"==t.object)n=t.getLastText();else{n=this.getClosestBlock(e).getLastText()}var r=this.getNextText(n.key);return r?this.getClosestBlock(r.key):null}},{key:"getNextSibling",value:function(e){e=h(e);var t=this.getParent(e),n=t.nodes.skipUntil(function(t){return t.key==e});if(0==n.size)throw new Error('Could not find a child node with key "'+e+'".');return n.get(1)}},{key:"getNextText",value:function(e){return e=h(e),this.getTexts().skipUntil(function(t){return t.key==e}).get(1)}},{key:"getNode",value:function(e){return e=h(e),this.key==e?this:this.getDescendant(e)}},{key:"getNodeAtPath",value:function(e){return e.length?this.getDescendantAtPath(e):this}},{key:"getOffset",value:function(e){this.assertDescendant(e);var t=this.getFurthestAncestor(e),n=this.nodes.takeUntil(function(e){return e==t}).reduce(function(e,t){return e+t.text.length},0);return this.hasChild(e)?n:n+t.getOffset(e)}},{key:"getOffsetAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)throw new Error("The range cannot be unset to calculcate its offset.");if(e.isExpanded)throw new Error("The range must be collapsed to calculcate its offset.");var t=e,n=t.startKey,r=t.startOffset;return this.getOffset(n)+r}},{key:"getParent",value:function(e){if(this.hasChild(e))return this;var t=null;return this.nodes.find(function(n){return"text"!=n.object&&(t=n.getParent(e))}),t}},{key:"getPath",value:function(e){var t=this.assertNode(e),n=this.getAncestors(e),r=[];return n.reverse().forEach(function(e){var n=e.nodes.indexOf(t);r.unshift(n),t=e}),r}},{key:"refindPath",value:function(e,t){var n=this.getDescendantAtPath(e);return n&&n.key===t?e:this.getPath(t)}},{key:"refindNode",value:function(e,t){var n=this.getDescendantAtPath(e);return n&&n.key===t?n:this.getDescendant(t)}},{key:"getPlaceholder",value:function(e){return e.__getPlaceholder(this)}},{key:"getPreviousBlock",value:function(e){var t=this.assertDescendant(e),n=void 0;if("block"==t.object)n=t.getFirstText();else{n=this.getClosestBlock(e).getFirstText()}var r=this.getPreviousText(n.key);return r?this.getClosestBlock(r.key):null}},{key:"getPreviousSibling",value:function(e){e=h(e);var t=this.getParent(e),n=t.nodes.takeUntil(function(t){return t.key==e});if(n.size==t.nodes.size)throw new Error('Could not find a child node with key "'+e+'".');return n.last()}},{key:"getPreviousText",value:function(e){return e=h(e),this.getTexts().takeUntil(function(t){return t.key==e}).last()}},{key:"getSelectionIndexes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.startKey,r=e.endKey;if(!t||e.isBlurred)return null;if(e.isUnset)return null;if(n==r){var o=this.getFurthestAncestor(n),i=o?this.nodes.indexOf(o):null;return{start:i,end:i+1}}var a=null,s=null;return this.nodes.forEach(function(e,t){return"text"==e.object?(null==a&&e.key==n&&(a=t),null==s&&e.key==r&&(s=t+1)):(null==a&&e.hasDescendant(n)&&(a=t),null==s&&e.hasDescendant(r)&&(s=t+1)),null==a||null==s}),t&&null==a&&(a=0),t&&null==s&&(s=this.nodes.size),null==a?null:{start:a,end:s}}},{key:"getText",value:function(){return this.nodes.reduce(function(e,t){return e+t.text},"")}},{key:"getTextAtOffset",value:function(e){if(0==e)return this.getFirstText();if(e==this.text.length)return this.getLastText();if(e<0||e>this.text.length)return null;var t=0;return this.getTexts().find(function(n,r,o){return(t+=n.text.length)>e})}},{key:"getTextDirection",value:function(){var e=U()(this.text);return"neutral"==e?void 0:e}},{key:"getTexts",value:function(){var e=this.getTextsAsArray();return new F.List(e)}},{key:"getTextsAsArray",value:function(){var e=[];return this.nodes.forEach(function(t){"text"==t.object?e.push(t):e=e.concat(t.getTextsAsArray())}),e}},{key:"getTextsAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Object(F.List)();var t=e,n=t.startKey,r=t.endKey;return new F.List(this.getTextsBetweenPositionsAsArray(n,r))}},{key:"getTextsBetweenPositionsAsArray",value:function(e,t){var n=this.getDescendant(e);if(e==t)return[n];var r=this.getDescendant(t),o=this.getTextsAsArray(),i=o.indexOf(n),a=o.indexOf(r,i);return o.slice(i,a+1)}},{key:"getTextsAtRangeAsArray",value:function(e){if(e=e.normalize(this),e.isUnset)return[];var t=e,n=t.startKey,r=t.endKey;return this.getTextsBetweenPositionsAsArray(n,r)}},{key:"hasChild",value:function(e){return!!this.getChild(e)}},{key:"hasBlocks",value:function(e){var t=this.assertNode(e);return!(!t.nodes||!t.nodes.find(function(e){return"block"===e.object}))}},{key:"hasInlines",value:function(e){var t=this.assertNode(e);return!(!t.nodes||!t.nodes.find(function(e){return ve.isInline(e)||Re.isText(e)}))}},{key:"hasDescendant",value:function(e){return!!this.getDescendant(e)}},{key:"hasNode",value:function(e){return!!this.getNode(e)}},{key:"hasVoidParent",value:function(e){return!!this.getClosestVoid(e)}},{key:"insertNode",value:function(e,t){var n=this.getKeysAsArray();n.includes(t.key)&&(t=t.regenerateKey()),"text"!=t.object&&(t=t.mapDescendants(function(e){return n.includes(e.key)?e.regenerateKey():e}));var r=this.nodes.insert(e,t);return this.set("nodes",r)}},{key:"isInRange",value:function(e){e=e.normalize(this);var t=this,n=e,r=n.startKey,o=n.endKey,i=n.isCollapsed;if(t.key==r||t.key==o||t.hasDescendant(r)||t.hasDescendant(o))return!0;if(i)return!1;var a=t.getTextsAtRange(e),s=!1;return a.forEach(function(e){return t.hasDescendant(e.key)&&(s=!0),s}),s}},{key:"isLeafBlock",value:function(){return"block"==this.object&&this.nodes.every(function(e){return"block"!=e.object})}},{key:"isLeafInline",value:function(){return"inline"==this.object&&this.nodes.every(function(e){return"inline"!=e.object})}},{key:"mergeNode",value:function(e,t){var n=this,r=n.nodes.get(e),o=n.nodes.get(t);if(r.object!=o.object)throw new Error('Tried to merge two nodes of different objects: "'+r.object+'" and "'+o.object+'".');if("text"==r.object)r=r.mergeText(o);else{var i=r.nodes.concat(o.nodes);r=r.set("nodes",i)}return n=n.removeNode(t),n=n.removeNode(e),n=n.insertNode(e,r)}},{key:"mapChildren",value:function(e){var t=this,n=this.nodes;return n.forEach(function(r,o){var i=e(r,o,t.nodes);i!=r&&(n=n.set(i.key,i))}),this.set("nodes",n)}},{key:"mapDescendants",value:function(e){var t=this,n=this.nodes;return n.forEach(function(r,o){var i=r;"text"!=i.object&&(i=i.mapDescendants(e)),(i=e(i,o,t.nodes))!=r&&(n=n.set(o,i))}),this.set("nodes",n)}},{key:"regenerateKey",value:function(){var e=o();return this.set("key",e)}},{key:"removeDescendant",value:function(e){e=h(e);var t=this,n=t.getParent(e);if(!n)throw new Error('Could not find a descendant node with key "'+e+'".');var r=n.nodes.findIndex(function(t){return t.key===e}),o=n.nodes.delete(r);return n=n.set("nodes",o),t=t.updateNode(n)}},{key:"removeNode",value:function(e){var t=this.nodes.delete(e);return this.set("nodes",t)}},{key:"splitNode",value:function(e,t){var n=this,r=n.nodes.get(e),o=void 0,i=void 0;if("text"==r.object){var a=r.splitText(t),s=pe(a,2);o=s[0],i=s[1]}else{var u=r.nodes.take(t),l=r.nodes.skip(t);o=r.set("nodes",u),i=r.set("nodes",l).regenerateKey()}return n=n.removeNode(e),n=n.insertNode(e,i),n=n.insertNode(e,o)}},{key:"updateNode",value:function(e){if(e.key==this.key)return e;var t=this.assertDescendant(e.key);return this.getAncestors(e.key).reverse().forEach(function(n){var r=n,o=r.nodes,i=o.indexOf(t);t=n,o=o.set(i,e),n=n.set("nodes",o),e=n}),e}},{key:"validate",value:function(e){return e.validateNode(this)}},{key:"getFirstInvalidDescendant",value:function(e){var t=null;return this.nodes.find(function(n){return t=n.validate(e)?n:n.getFirstInvalidDescendant(e)}),t}}],[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.isNode(t))return t;if(B()(t)){var n=t.object;switch(!n&&t.kind&&(j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),n=t.kind),n){case"block":return me.create(t);case"document":return Oe.create(t);case"inline":return ve.create(t);case"text":return Re.create(t);default:throw new Error("`Node.create` requires a `object` string.")}}throw new Error("`Node.create` only accepts objects or nodes but you passed it: "+t)}},{key:"createList",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(t)||Array.isArray(t)){return Object(F.List)(t.map(e.create))}throw new Error("`Node.createList` only accepts lists or arrays, but you passed it: "+t)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(me.isBlock(e)||ve.isInline(e))return{data:e.data,isVoid:e.isVoid,type:e.type};if("string"==typeof e)return{type:e};if(B()(e)){var t={};return"type"in e&&(t.type=e.type),"data"in e&&(t.data=ye.create(e.data)),"isVoid"in e&&(t.isVoid=e.isVoid),t}throw new Error("`Node.createProperties` only accepts objects, strings, blocks or inlines, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var t=e.object;switch(!t&&e.kind&&(j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),t=e.kind),t){case"block":return me.fromJSON(e);case"document":return Oe.fromJSON(e);case"inline":return ve.fromJSON(e);case"text":return Re.fromJSON(e);default:throw new Error("`Node.fromJSON` requires an `object` of either 'block', 'document', 'inline' or 'text', but you passed: "+e)}}},{key:"isNode",value:function(e){return!!["BLOCK","DOCUMENT","INLINE","TEXT"].find(function(t){return r(t,e)})}},{key:"isNodeList",value:function(t){return F.List.isList(t)&&t.every(function(t){return e.isNode(t)})}}]),e}();Be.fromJS=Be.fromJSON,s(Be.prototype,["areDescendantsSorted","getAncestors","getBlocksAsArray","getBlocksAtRangeAsArray","getBlocksByTypeAsArray","getChild","getClosestBlock","getClosestInline","getClosestVoid","getCommonAncestor","getDecorations","getDepth","getDescendant","getDescendantAtPath","getFirstText","getFragmentAtRange","getFurthestBlock","getFurthestInline","getFurthestAncestor","getFurthestOnlyChildAncestor","getInlinesAsArray","getInlinesAtRangeAsArray","getInlinesByTypeAsArray","getMarksAsArray","getMarksAtPosition","getOrderedMarksBetweenPositions","getInsertMarksAtRange","getKeysAsArray","getLastText","getMarksByTypeAsArray","getNextBlock","getNextSibling","getNextText","getNode","getNodeAtPath","getOffset","getOffsetAtRange","getParent","getPath","getPlaceholder","getPreviousBlock","getPreviousSibling","getPreviousText","getText","getTextAtOffset","getTextDirection","getTextsAsArray","getTextsBetweenPositionsAsArray","isLeafBlock","isLeafInline","validate","getFirstInvalidDescendant"]),Object.getOwnPropertyNames(Be.prototype).forEach(function(e){"constructor"!=e&&(me.prototype[e]=Be.prototype[e],ve.prototype[e]=Be.prototype[e],Oe.prototype[e]=Be.prototype[e])}),me.createChildren=Be.createList,ve.createChildren=Be.createList,Oe.createChildren=Be.createList;var je=55296,Fe=57343,He=/\s/,Ue=/['\u2018\u2019]/,ze=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Ke={getCharOffsetForward:T,getCharOffsetBackward:b,getWordOffsetBackward:E,getWordOffsetForward:k},qe={};qe.addMarkAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t.isCollapsed){var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=t.startKey,u=t.startOffset,l=t.endKey,c=t.endOffset;a.getTextsAtRange(t).forEach(function(t){var r=t.key,i=0,a=t.text.length;r==s&&(i=u),r==l&&(a=c),r==s&&r==l&&(a=c-u),e.addMarkByKey(r,i,a,n,{normalize:o})})}},qe.addMarksAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n.forEach(function(n){return e.addMarkAtRange(t,n,r)})},qe.deleteAtRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.isCollapsed){e.snapshotSelection();var r=e.getFlag("normalize",n),o=e.value,i=t.startKey,a=t.startOffset,s=t.endKey,u=t.endOffset,l=o.document,c=l.hasVoidParent(i),f=l.hasVoidParent(s),p=l.getClosestBlock(i),d=l.getClosestBlock(s),h=0==a&&0==u&&0==c&&i==p.getFirstText().key&&s==d.getFirstText().key;if(h&&f){var m=l.getPreviousText(s);s=m.key,u=m.text.length,f=l.hasVoidParent(s)}for(;c;){var g=l.getClosestVoid(i),v=l.getNextText(i);if(e.removeNodeByKey(g.key,{normalize:!1}),i==s)return;if(!v)return;l=e.value.document,i=v.key,a=0,c=l.hasVoidParent(i)}for(;f;){var y=l.getClosestVoid(s),b=l.getPreviousText(s);e.removeNodeByKey(y.key,{normalize:!1}),l=e.value.document,s=b.key,u=b.text.length,f=l.hasVoidParent(s)}if(i==s&&h)return void e.removeNodeByKey(p.key,{normalize:r});if(i==s){var T=a,_=u-a;return void e.removeTextByKey(i,T,_,{normalize:r})}p=l.getClosestBlock(i),d=l.getClosestBlock(s);var E=l.getNode(i),k=l.getNode(s),w=E.text.length-a,x=u,C=l.getCommonAncestor(i,s),A=C.getFurthestAncestor(i),O=C.getFurthestAncestor(s),S=l.getParent(p.key),N=S.nodes.indexOf(p),D=S.nodes.indexOf(d),I=void 0;for(I=E;I.key!=A.key;){var M=l.getParent(I.key),L=M.nodes.indexOf(I);M.nodes.slice(L+1).reverse().forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})}),I=M}var P=C.nodes.indexOf(A),R=C.nodes.indexOf(O),B=C.nodes.slice(P+1,R);for(B.reverse().forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})}),I=k;I.key!=O.key;){var j=l.getParent(I.key),F=j.nodes.indexOf(I);j.nodes.slice(0,F).reverse().forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})}),I=j}if(0!=w&&e.removeTextByKey(i,a,w,{normalize:!1}),0!=x&&e.removeTextByKey(s,0,u,{normalize:!1}),p.key!=d.key){l=e.value.document;var H=l.getFurthestOnlyChildAncestor(d.key);D!=N+1&&e.moveNodeByKey(d.key,S.key,N+1,{normalize:!1}),h?e.removeNodeByKey(p.key,{normalize:!1}):e.mergeNodeByKey(d.key,{normalize:!1}),H&&e.removeNodeByKey(H.key,{normalize:!1})}r&&e.normalizeNodeByKey(C.key)}},qe.deleteCharBackwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a,c=s.text,f=Ke.getCharOffsetBackward(c,l);e.deleteBackwardAtRange(t,f,n)},qe.deleteLineBackwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a;e.deleteBackwardAtRange(t,l,n)},qe.deleteWordBackwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a,c=s.text,f=Ke.getWordOffsetBackward(c,l);e.deleteBackwardAtRange(t,f,n)},qe.deleteBackwardAtRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(0!==n){var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=t,u=s.startKey,l=s.focusOffset;if(t.isExpanded)return void e.deleteAtRange(t,{normalize:o});var c=a.getClosestVoid(u);if(c)return void e.removeNodeByKey(c.key,{normalize:o});var f=a.getClosestBlock(u);if(f&&f.isEmpty&&1!==a.nodes.size)return void e.removeNodeByKey(f.key,{normalize:o});if(!t.isAtStartOf(a)){var p=a.getDescendant(u);if(t.isAtStartOf(p)){var d=a.getPreviousText(p.key),h=a.getClosestBlock(d.key),m=a.getClosestVoid(d.key);if(m)return void e.removeNodeByKey(m.key,{normalize:o});if(1==n&&h!=f)return t=t.merge({anchorKey:d.key,anchorOffset:d.text.length}),void e.deleteAtRange(t,{normalize:o})}if(ny;){g=a.getPreviousText(g.key);var b=y+g.text.length;if(n<=b){v=b-n;break}y=b}t=t.merge({focusKey:g.key,focusOffset:v,isBackward:!0}),e.deleteAtRange(t,{normalize:o})}}},qe.deleteCharForwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a,c=s.text,f=Ke.getCharOffsetForward(c,l);e.deleteForwardAtRange(t,f,n)},qe.deleteLineForwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a;e.deleteForwardAtRange(t,s.text.length-l,n)},qe.deleteWordForwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a,c=s.text,f=Ke.getWordOffsetForward(c,l);e.deleteForwardAtRange(t,f,n)},qe.deleteForwardAtRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(0!==n){var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=t,u=s.startKey,l=s.focusOffset;if(t.isExpanded)return void e.deleteAtRange(t,{normalize:o});var c=a.getClosestVoid(u);if(c)return void e.removeNodeByKey(c.key,{normalize:o});var f=a.getClosestBlock(u);if(f&&f.isEmpty&&1!==a.nodes.size){var p=a.getNextBlock(f.key);return e.removeNodeByKey(f.key,{normalize:o}),void(p&&p.key&&e.moveToStartOf(p))}if(!t.isAtEndOf(a)){var d=a.getDescendant(u);if(t.isAtEndOf(d)){var h=a.getNextText(d.key),m=a.getClosestBlock(h.key),g=a.getClosestVoid(h.key);if(g)return void e.removeNodeByKey(g.key,{normalize:o});if(1==n&&m!=f)return t=t.merge({focusKey:h.key,focusOffset:0}),void e.deleteAtRange(t,{normalize:o})}if(n<=d.text.length-l)return t=t.merge({focusOffset:l+n}),void e.deleteAtRange(t,{normalize:o});for(var v=d,y=l,b=d.text.length-l;n>b;){v=a.getNextText(v.key);var T=b+v.text.length;if(n<=T){y=n-b;break}b=T}if(a.hasVoidParent(v.key)){var _=a.getClosestVoid(v.key);v=a.getPreviousText(_.key),y=v.text.length}t=t.merge({focusKey:v.key,focusOffset:y}),e.deleteAtRange(t,{normalize:o})}}},qe.insertBlockAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=me.create(n);var o=e.getFlag("normalize",r);t.isExpanded&&(e.deleteAtRange(t),t=t.collapseToStart());var i=e.value,a=i.document,s=t,u=s.startKey,l=s.startOffset,c=a.getClosestBlock(u),f=a.getParent(c.key),p=f.nodes.indexOf(c);if(c.isVoid){var d=t.isAtEndOf(c)?1:0;e.insertNodeByKey(f.key,p+d,n,{normalize:o})}else c.isEmpty?e.insertNodeByKey(f.key,p+1,n,{normalize:o}):t.isAtStartOf(c)?e.insertNodeByKey(f.key,p,n,{normalize:o}):t.isAtEndOf(c)?e.insertNodeByKey(f.key,p+1,n,{normalize:o}):(e.splitDescendantsByKey(c.key,u,l,{normalize:!1}),e.insertNodeByKey(f.key,p+1,n,{normalize:o}));o&&e.normalizeNodeByKey(f.key)},qe.insertFragmentAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r);if(t.isExpanded&&(e.deleteAtRange(t,{normalize:!1}),t=e.value.document.getDescendant(t.startKey)?t.collapseToStart():t.collapseTo(t.endKey,0)),n.nodes.size){n=n.mapDescendants(function(e){return e.regenerateKey()});var i=t,a=i.startKey,s=i.startOffset,u=e.value,l=u.document,c=l.getDescendant(a),f=l.getClosestBlock(c.key),p=f.getFurthestAncestor(c.key),d=t.isAtStartOf(f),h=l.getParent(f.key),m=h.nodes.indexOf(f),g=n.getBlocks(),v=n.nodes.first(),y=n.nodes.last(),b=g.first(),T=g.last();if(b==T&&b.isVoid)return void e.insertBlockAtRange(t,b,r);if(n.hasBlocks(v.key)||n.hasBlocks(y.key))return void n.nodes.reverse().forEach(function(n){e.insertBlockAtRange(t,n,r)});if(b!=T){var _=n.getFurthest(b.key,function(e){return 1==e.nodes.size}),E=_||b,k=h.nodes.indexOf(f);n=n.removeDescendant(E.key),n.nodes.forEach(function(t,n){var r=k+n+1;e.insertNodeByKey(h.key,r,t,{normalize:!1})})}if(0!=s&&e.splitDescendantsByKey(p.key,a,s,{normalize:!1}),l=e.value.document,c=l.getDescendant(a),f=l.getClosestBlock(a),p=f.getFurthestAncestor(c.key),b!=T){var w=d?p:f.getNextSibling(p.key),x=w?f.nodes.skipUntil(function(e){return e.key==w.key}):Object(F.List)(),C=T.nodes.size;x.forEach(function(t,n){var r=C+n;e.moveNodeByKey(t.key,T.key,r,{normalize:!1})})}if(f.isEmpty)e.removeNodeByKey(f.key,{normalize:!1}),e.insertNodeByKey(h.key,m,b,{normalize:!1});else{var A=f.getFurthestAncestor(c.key),O=f.nodes.indexOf(A);b.nodes.forEach(function(t,n){var r=0==s?0:1,o=O+n+r;e.insertNodeByKey(f.key,o,t,{normalize:!1})})}o&&e.normalizeNodeByKey(h.key)}},qe.insertInlineAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r);n=ve.create(n),t.isExpanded&&(e.deleteAtRange(t,{normalize:!1}),t=t.collapseToStart());var i=e.value,a=i.document,s=t,u=s.startKey,l=s.startOffset,c=a.getParent(u),f=a.assertDescendant(u),p=c.nodes.indexOf(f);c.isVoid||(e.splitNodeByKey(u,l,{normalize:!1}),e.insertNodeByKey(c.key,p+1,n,{normalize:!1}),o&&e.normalizeNodeByKey(c.key))},qe.insertTextAtRange=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.normalize,a=e.value,s=a.document,u=t.startKey,l=t.startOffset,c=u,f=l;if(!s.getParent(u).isVoid&&(t.isExpanded&&(e.deleteAtRange(t,{normalize:!1}),e.value.startKey!==c&&(c=e.value.startKey,f=e.value.startOffset)),void 0===i&&(i=t.isExpanded&&0!==r.size),e.insertTextByKey(c,f,n,r,{normalize:!1}),i)){var p=s.getCommonAncestor(u,t.endKey),d=s.getAncestors(p.key).push(p),h=d.findLast(function(t){return e.value.document.getDescendant(t.key)}),m=h?h.key:u;e.normalizeNodeByKey(m)}},qe.removeMarkAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t.isCollapsed){var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getTextsAtRange(t),u=t.startKey,l=t.startOffset,c=t.endKey,f=t.endOffset;s.forEach(function(t){var r=t.key,i=0,a=t.text.length;r==u&&(i=l),r==c&&(a=f),r==u&&r==c&&(a=f-l),e.removeMarkByKey(r,i,a,n,{normalize:o})})}},qe.setBlocksAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getBlocksAtRange(t),u=t.startKey,l=t.startOffset,c=t.endKey,f=t.endOffset,p=t.isCollapsed,d=a.hasVoidParent(u),h=a.getClosestBlock(u),m=a.getClosestBlock(c);(0==p&&0==l&&0==f&&0==d&&u==h.getFirstText().key&&c==m.getFirstText().key?s.slice(0,-1):s).forEach(function(t){e.setNodeByKey(t.key,n,{normalize:o})})},qe.setBlockAtRange=function(){j.default.deprecate("slate@0.33.0","The `setBlockAtRange` method of Slate changes has been renamed to `setBlocksAtRange`."),qe.setBlocksAtRange.apply(qe,arguments)},qe.setInlinesAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r);e.value.document.getInlinesAtRange(t).forEach(function(t){e.setNodeByKey(t.key,n,{normalize:o})})},qe.setInlineAtRange=function(){j.default.deprecate("slate@0.33.0","The `setInlineAtRange` method of Slate changes has been renamed to `setInlinesAtRange`."),qe.setInlinesAtRange.apply(qe,arguments)},qe.splitBlockAtRange=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r),i=t,a=i.startKey,s=i.startOffset,u=i.endOffset,l=i.endKey,c=e.value,f=c.document,p=f.assertDescendant(a),d=f.getClosestBlock(p.key),h=0;d&&"block"==d.object&&h2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r);t.isExpanded&&(e.deleteAtRange(t,{normalize:o}),t=t.collapseToStart());for(var i=t,a=i.startKey,s=i.startOffset,u=e.value,l=u.document,c=l.assertDescendant(a),f=l.getClosestInline(c.key),p=0;f&&"inline"==f.object&&p3&&void 0!==arguments[3]?arguments[3]:{};if(!t.isCollapsed){n=xe.create(n);var o=e.getFlag("normalize",r);e.value.document.getActiveMarksAtRange(t).some(function(e){return e.equals(n)})?e.removeMarkAtRange(t,n,{normalize:o}):e.addMarkAtRange(t,n,{normalize:o})}},qe.unwrapBlockAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=Be.createProperties(n);var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getBlocksAtRange(t);s.map(function(e){return a.getClosest(e.key,function(e){return"block"==e.object&&((null==n.type||e.type==n.type)&&((null==n.isVoid||e.isVoid==n.isVoid)&&!(null!=n.data&&!e.data.isSuperset(n.data))))})}).filter(function(e){return e}).toOrderedSet().toList().forEach(function(t){var n=t.nodes.first(),r=t.nodes.last(),o=a.getParent(t.key),i=o.nodes.indexOf(t),u=t.nodes.filter(function(e){return s.some(function(t){return e==t||e.hasDescendant(t.key)})}),l=u.first(),c=u.last();if(n==l&&r==c)t.nodes.forEach(function(t,n){e.moveNodeByKey(t.key,o.key,i+n,{normalize:!1})}),e.removeNodeByKey(t.key,{normalize:!1});else if(r==c)t.nodes.skipUntil(function(e){return e==l}).forEach(function(t,n){e.moveNodeByKey(t.key,o.key,i+1+n,{normalize:!1})});else if(n==l)t.nodes.takeUntil(function(e){return e==c}).push(c).forEach(function(t,n){e.moveNodeByKey(t.key,o.key,i+n,{normalize:!1})});else{var f=l.getFirstText();e.splitDescendantsByKey(t.key,f.key,0,{normalize:!1}),a=e.value.document,u.forEach(function(t,n){if(0==n){var r=t;t=a.getNextBlock(t.key),e.removeNodeByKey(r.key,{normalize:!1})}e.moveNodeByKey(t.key,o.key,i+1+n,{normalize:!1})})}}),o&&e.normalizeDocument()},qe.unwrapInlineAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=Be.createProperties(n);var o=e.getFlag("normalize",r),i=e.value,a=i.document;a.getTextsAtRange(t).map(function(e){return a.getClosest(e.key,function(e){return"inline"==e.object&&(null==n.type||e.type==n.type)&&(null==n.isVoid||e.isVoid==n.isVoid)&&!(null!=n.data&&!e.data.isSuperset(n.data))})}).filter(function(e){return e}).toOrderedSet().toList().forEach(function(t){var n=e.value.document.getParent(t.key),r=n.nodes.indexOf(t);t.nodes.forEach(function(t,o){e.moveNodeByKey(t.key,n.key,r+o,{normalize:!1})})}),o&&e.normalizeDocument()},qe.wrapBlockAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=me.create(n),n=n.set("nodes",n.nodes.clear());var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getBlocksAtRange(t),u=s.first(),l=s.last(),c=void 0,f=void 0,p=void 0;if(1===s.length?(c=a.getParent(u.key),f=s):c=a.getClosest(u.key,function(e){return!!a.getClosest(l.key,function(t){return e==t})}),null==c&&(c=a),null==f){var d=c.nodes.reduce(function(e,t,n){return(t==u||t.hasDescendant(u.key))&&(e[0]=n),(t==l||t.hasDescendant(l.key))&&(e[1]=n),e},[]);p=d[0],f=c.nodes.slice(d[0],d[1]+1)}null==p&&(p=c.nodes.indexOf(f.first())),e.insertNodeByKey(c.key,p,n,{normalize:!1}),f.forEach(function(t,r){e.moveNodeByKey(t.key,n.key,r,{normalize:!1})}),o&&e.normalizeNodeByKey(c.key)},qe.wrapInlineAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.value,i=o.document,a=e.getFlag("normalize",r),s=t.startKey,u=t.startOffset,l=t.endKey,c=t.endOffset;if(t.isCollapsed){var f=i.getClosestInline(s);if(!f.isVoid)return;return e.wrapInlineByKey(f.key,n,r)}n=ve.create(n),n=n.set("nodes",n.nodes.clear());var p=i.getBlocksAtRange(t),d=i.getClosestBlock(s),h=i.getClosestBlock(l),m=d.getFurthestAncestor(s),g=h.getFurthestAncestor(l);e.splitDescendantsByKey(g.key,l,c,{normalize:!1}),e.splitDescendantsByKey(m.key,s,u,{normalize:!1}),i=e.value.document,d=i.getDescendant(d.key),h=i.getDescendant(h.key),m=d.getFurthestAncestor(s),g=h.getFurthestAncestor(l);var v=d.nodes.indexOf(m),y=h.nodes.indexOf(g);if(d==h){i=e.value.document,d=i.getClosestBlock(s),m=d.getFurthestAncestor(s);var b=i.getNextSibling(m.key),T=d.nodes.indexOf(b),_=s==l?b:d.getFurthestAncestor(l),E=d.nodes.skipUntil(function(e){return e==b}).takeUntil(function(e){return e==_}).push(_),k=n.regenerateKey();e.insertNodeByKey(d.key,T,k,{normalize:!1}),E.forEach(function(t,n){e.moveNodeByKey(t.key,k.key,n,{normalize:!1})}),a&&e.normalizeNodeByKey(d.key)}else{var w=d.nodes.slice(v+1),x=h.nodes.slice(0,y+1),C=n.regenerateKey(),A=n.regenerateKey();e.insertNodeByKey(d.key,v+1,C,{normalize:!1}),e.insertNodeByKey(h.key,y,A,{normalize:!1}),w.forEach(function(t,n){e.moveNodeByKey(t.key,C.key,n,{normalize:!1})}),x.forEach(function(t,n){e.moveNodeByKey(t.key,A.key,n,{normalize:!1})}),a&&e.normalizeNodeByKey(d.key).normalizeNodeByKey(h.key),p.slice(1,-1).forEach(function(t){var r=n.regenerateKey();e.insertNodeByKey(t.key,0,r,{normalize:!1}),t.nodes.forEach(function(t,n){e.moveNodeByKey(t.key,r.key,n,{normalize:!1})}),a&&e.normalizeNodeByKey(t.key)})}},qe.wrapTextAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.getFlag("normalize",o),a=t.startKey,s=t.endKey,u=t.collapseToStart(),l=t.collapseToEnd();a==s&&(l=l.move(n.length)),e.insertTextAtRange(u,n,[],{normalize:i}),e.insertTextAtRange(l,r,[],{normalize:i})};var We={};We.addMarkByKey=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};o=xe.create(o);var a=e.getFlag("normalize",i),s=e.value,u=s.document,l=u.getPath(t),c=u.getNode(t),f=c.getLeaves(),p=[],d=n,h=n+r,m=0;if(f.forEach(function(e){var t=m,n=t+e.text.length;if(m+=e.text.length,!(n4&&void 0!==arguments[4]?arguments[4]:{},i=e.getFlag("normalize",o);r.nodes.forEach(function(r,o){e.insertNodeByKey(t,n+o,r)}),i&&e.normalizeNodeByKey(t)},We.insertNodeByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.getFlag("normalize",o),a=e.value,s=a.document,u=s.getPath(t);e.applyOperation({type:"insert_node",value:a,path:[].concat(de(u),[n]),node:r}),i&&e.normalizeNodeByKey(t)},We.insertTextByKey=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=e.getFlag("normalize",i),s=e.value,u=s.document,l=u.getPath(t),c=u.getNode(t);if(o=o||c.getMarksAtIndex(n),e.applyOperation({type:"insert_text",value:s,path:l,offset:n,text:r,marks:o}),a){var f=u.getParent(t);e.normalizeNodeByKey(f.key)}},We.mergeNodeByKey=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.getFlag("normalize",n),o=e.value,i=o.document,a=i.getPath(t),s=i.getDescendant(t),u=i.getPreviousSibling(t);if(!u)throw new Error('Unable to merge node with key "'+t+'", no previous key.');var l="text"==u.object?u.text.length:u.nodes.size;if(e.applyOperation({type:"merge_node",value:o,path:a,position:l,properties:{type:s.type,data:s.data},target:null}),r){var c=i.getParent(t);e.normalizeNodeByKey(c.key)}},We.moveNodeByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.getFlag("normalize",o),a=e.value,s=a.document,u=s.getPath(t),l=s.getPath(n);if(e.applyOperation({type:"move_node",value:a,path:u,newPath:[].concat(de(l),[r])}),i){var c=s.getCommonAncestor(t,n);e.normalizeNodeByKey(c.key)}},We.removeMarkByKey=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};o=xe.create(o);var a=e.getFlag("normalize",i),s=e.value,u=s.document,l=u.getPath(t),c=u.getNode(t),f=c.getLeaves(),p=[],d=n,h=n+r,m=0;if(f.forEach(function(e){var t=m,n=t+e.text.length;if(m+=e.text.length,!(n2&&void 0!==arguments[2]?arguments[2]:{},r=e.state,o=r.document,i=o.getNode(t);("text"===i.object?[i]:i.getTextsAsArray()).forEach(function(t){t.getMarksAsArray().forEach(function(r){e.removeMarkByKey(t.key,0,t.text.length,r,n)})})},We.removeNodeByKey=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.getFlag("normalize",n),o=e.value,i=o.document,a=i.getPath(t),s=i.getNode(t);if(e.applyOperation({type:"remove_node",value:o,path:a,node:s}),r){var u=i.getParent(t);e.normalizeNodeByKey(u.key)}},We.setTextByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.value.document.getDescendant(t);e.replaceTextByKey(t,0,i.text.length,n,r,o)},We.replaceTextByKey=function(e,t,n,r,o,i,a){var s=e.value.document,u=s.getDescendant(t);r+n>u.text.length&&(r=u.text.length-n);var l=Ne.create({anchorKey:t,focusKey:t,anchorOffset:n,focusOffset:n+r}),c=s.getActiveMarksAtRange(l);e.removeTextByKey(t,n,r,{normalize:!1}),i?c&&(c=c.filter(function(e){return!i.find(function(t){return e.type===t.type})}),i=c.merge(i)):i=c||[],e.insertTextByKey(t,n,o,i,a)},We.removeTextByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.getFlag("normalize",o),a=e.value,s=a.document,u=s.getPath(t),l=s.getNode(t),c=l.getLeaves(),f=l.text,p=[],d=n,h=n+r,m=0;if(c.forEach(function(e){var t=m,n=t+e.text.length;if(m+=e.text.length,!(n3&&void 0!==arguments[3]?arguments[3]:{};n=Be.create(n);var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getNode(t),u=a.getParent(t),l=u.nodes.indexOf(s);e.removeNodeByKey(t,{normalize:!1}),e.insertNodeByKey(u.key,l,n,{normalize:!1}),o&&e.normalizeNodeByKey(u.key)},We.setMarkByKey=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};o=xe.create(o),i=xe.createProperties(i);var s=e.getFlag("normalize",a),u=e.value,l=u.document,c=l.getPath(t);if(e.applyOperation({type:"set_mark",value:u,path:c,offset:n,length:r,mark:o,properties:i}),s){var f=l.getParent(t);e.normalizeNodeByKey(f.key)}},We.setNodeByKey=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=Be.createProperties(n);var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getPath(t),u=a.getNode(t);e.applyOperation({type:"set_node",value:i,path:s,node:u,properties:n}),o&&e.normalizeNodeByKey(u.key)},We.splitNodeByKey=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.normalize,i=void 0===o||o,a=r.target,s=void 0===a?null:a,u=e.value,l=u.document,c=l.getPath(t),f=l.getDescendantAtPath(c);if(e.applyOperation({type:"split_node",value:u,path:c,position:n,properties:{type:f.type,data:f.data},target:s}),i){var p=l.getParent(t);e.normalizeNodeByKey(p.key)}},We.splitDescendantsByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t==n)return void e.splitNodeByKey(n,r,o);var i=e.getFlag("normalize",o),a=e.value,s=a.document,u=s.getNode(n),l=s.getAncestors(n),c=l.skipUntil(function(e){return e.key==t}).reverse().unshift(u),f=void 0,p=void 0;if(c.forEach(function(t){var n=null==p?null:p;p=f?t.nodes.indexOf(f)+1:r,f=t,e.splitNodeByKey(t.key,p,{normalize:!1,target:n})}),i){var d=s.getParent(t);e.normalizeNodeByKey(d.key)}},We.unwrapInlineByKey=function(e,t,n,r){var o=e.value,i=o.document,a=o.selection,s=i.assertDescendant(t),u=s.getFirstText(),l=s.getLastText(),c=a.moveToRangeOf(u,l);e.unwrapInlineAtRange(c,n,r)},We.unwrapBlockByKey=function(e,t,n,r){var o=e.value,i=o.document,a=o.selection,s=i.assertDescendant(t),u=s.getFirstText(),l=s.getLastText(),c=a.moveToRangeOf(u,l);e.unwrapBlockAtRange(c,n,r)},We.unwrapNodeByKey=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.getFlag("normalize",n),o=e.value,i=o.document,a=i.getParent(t),s=a.getChild(t),u=a.nodes.indexOf(s),l=0===u,c=u===a.nodes.size-1,f=i.getParent(a.key),p=f.nodes.indexOf(a);1===a.nodes.size?(e.moveNodeByKey(t,f.key,p,{normalize:!1}),e.removeNodeByKey(a.key,n)):l?e.moveNodeByKey(t,f.key,p,n):c?e.moveNodeByKey(t,f.key,p+1,n):(e.splitNodeByKey(a.key,u,{normalize:!1}),e.moveNodeByKey(t,f.key,p+1,{normalize:!1}),r&&e.normalizeNodeByKey(f.key))},We.wrapBlockByKey=function(e,t,n,r){n=me.create(n),n=n.set("nodes",n.nodes.clear());var o=e.value.document,i=o.assertDescendant(t),a=o.getParent(i.key),s=a.nodes.indexOf(i);e.insertNodeByKey(a.key,s,n,{normalize:!1}),e.moveNodeByKey(i.key,n.key,0,r)},We.wrapInlineByKey=function(e,t,n,r){n=ve.create(n),n=n.set("nodes",n.nodes.clear());var o=e.value.document,i=o.assertDescendant(t),a=o.getParent(i.key),s=a.nodes.indexOf(i);e.insertNodeByKey(a.key,s,n,{normalize:!1}),e.moveNodeByKey(i.key,n.key,0,r)},We.wrapNodeByKey=function(e,t,n){return n=Be.create(n),n=n.set("nodes",n.nodes.clear()),"block"==n.object?void e.wrapBlockByKey(t,n):"inline"==n.object?void e.wrapInlineByKey(t,n):void 0};var Ge={add_mark:["value","path","offset","length","mark"],insert_node:["value","path","node"],insert_text:["value","path","offset","text","marks"],merge_node:["value","path","position","properties","target"],move_node:["value","path","newPath"],remove_mark:["value","path","offset","length","mark"],remove_node:["value","path","node"],remove_text:["value","path","offset","text","marks"],set_mark:["value","path","offset","length","mark","properties"],set_node:["value","path","node","properties"],set_selection:["value","selection","properties"],set_value:["value","properties"],split_node:["value","path","position","properties","target"]},Ve=q()("slate:history"),Ye={redos:new F.Stack,undos:new F.Stack},$e=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"save",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n,o=r.undos,i=r.redos,a=t.merge,s=t.skip,u=o.peek(),l=u&&u.last();if(null==s&&(s=x(e,l)),s)return n;if(null==a&&(a=w(e,l)),Ve("save",{operation:e,merge:a}),a&&u){var c=u.push(e);o=o.pop(),o=o.push(c)}else{var f=new F.List([e]);o=o.push(f)}return o.size>100&&(o=o.take(100)),i=i.clear(),n=n.set("undos",o).set("redos",i)}},{key:"toJSON",value:function(){return{object:this.object,redos:this.redos.toJSON(),undos:this.undos.toJSON()}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"history"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isHistory(e))return e;if(B()(e))return t.fromJSON(e);throw new Error("`History.create` only accepts objects or histories, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.redos,r=void 0===n?[]:n,o=e.undos,i=void 0===o?[]:o;return new t({redos:new F.Stack(r),undos:new F.Stack(i)})}}]),t}(Object(F.Record)(Ye));$e.fromJS=$e.fromJSON,$e.isHistory=r.bind(null,"HISTORY"),$e.prototype[ne.HISTORY]=!0;var Je=[{validateNode:function(e){if("document"==e.object){var t=e.nodes.filter(function(e){return"block"!=e.object});if(t.size)return function(e){t.forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})})}}}},{validateNode:function(e){if("block"==e.object){var t=e.nodes.first();if(t){var n="block"==t.object?["block"]:["inline","text"],r=e.nodes.filter(function(e){return!n.includes(e.object)});if(r.size)return function(e){r.forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})})}}}}},{validateNode:function(e){if("inline"==e.object){var t=e.nodes.filter(function(e){return"inline"!=e.object&&"text"!=e.object});if(t.size)return function(e){t.forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})})}}}},{validateNode:function(e){if(("block"==e.object||"inline"==e.object)&&!(e.nodes.size>0))return function(t){var n=Re.create();t.insertNodeByKey(e.key,0,n,{normalize:!1})}}},{validateNode:function(e){if("inline"==e.object||"block"==e.object){var t=e.nodes.filter(function(e){return"inline"===e.object&&e.isEmpty});if(t.size)return function(n){if(e.nodes.size==t.size){var r=Re.create();n.insertNodeByKey(e.key,1,r,{normalize:!1})}t.forEach(function(e){n.removeNodeByKey(e.key,{normalize:!1})})}}}},{validateNode:function(e){if("block"==e.object||"inline"==e.object){var t=e.nodes.reduce(function(t,n,r){if("inline"!==n.object)return t;var o=r>0?e.nodes.get(r-1):null,i=e.nodes.get(r+1),a=!o,s=!i||"inline"==i.object;return(s||a)&&(t=t.push({insertAfter:s,insertBefore:a,index:r})),t},new F.List);if(t.size)return function(n){var r=0;t.forEach(function(t){var o=t.index,i=t.insertAfter;t.insertBefore&&(n.insertNodeByKey(e.key,r+o,Re.create(),{normalize:!1}),r++),i&&(n.insertNodeByKey(e.key,r+o+1,Re.create(),{normalize:!1}),r++)})}}}},{validateNode:function(e){if("block"==e.object||"inline"==e.object){var t=e.nodes.map(function(t,n){var r=e.nodes.get(n+1);if("text"==t.object&&r&&"text"==r.object)return r}).filter(Boolean);if(t.size)return function(e){t.reverse().forEach(function(t){e.mergeNodeByKey(t.key,{normalize:!1})})}}}},{validateNode:function(e){if("block"==e.object||"inline"==e.object){var t=e.nodes;if(!(t.size<=1)){var n=t.filter(function(e,n){if("text"==e.object&&!(e.text.length>0)){var r=n>0?t.get(n-1):null,o=t.get(n+1);if((r||"inline"!=o.object)&&(o||"inline"!=r.object)&&(!o||!r||"inline"!=o.object||"inline"!=r.object))return!0}});if(n.size)return function(e){n.forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})})}}}}}],Xe={plugins:[]},Qe=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"getPluginsWith",value:function(e){return this.plugins.filter(function(t){return null!=t[e]})}},{key:"find",value:function(e){for(var t=this.getPluginsWith(e),n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?r-1:0),i=1;i1?n-1:0),o=1;o2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},n=e.plugins;return new t({plugins:void 0===n?[]:n})}},{key:"isStack",value:function(e){return!(!e||!e[ne.STACK])}}]),t}(Object(F.Record)(Xe));Qe.prototype[ne.STACK]=!0,s(Qe.prototype,["getPluginsWith"]);var Ze=q()("slate:schema"),et={stack:Qe.create(),document:{},blocks:{},inlines:{}},tt=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"getRule",value:function(e){switch(e.object){case"document":return this.document;case"block":return this.blocks[e.type];case"inline":return this.inlines[e.type]}}},{key:"getParentRules",value:function(){var e=this.blocks,t=this.inlines,n={};for(var r in e){var o=e[r];null!=o.parent&&(n[r]=o)}for(var i in t){var a=t[i];null!=a.parent&&(n[i]=a)}return 0==Object.keys(n).length?null:n}},{key:"fail",value:function(e,t){var n=this;return function(r){Ze("normalizing",{violation:e,context:t});var o=t.rule,i=r.operations.size;o.normalize&&o.normalize(r,e,t),r.operations.size>i||n.normalize(r,e,t)}}},{key:"normalize",value:function(e,t,n){switch(t){case $.CHILD_OBJECT_INVALID:case $.CHILD_TYPE_INVALID:case $.CHILD_UNKNOWN:case $.FIRST_CHILD_OBJECT_INVALID:case $.FIRST_CHILD_TYPE_INVALID:case $.LAST_CHILD_OBJECT_INVALID:case $.LAST_CHILD_TYPE_INVALID:var r=n.child,o=n.node;return"text"==r.object&&"block"==o.object&&1==o.nodes.size?e.removeNodeByKey(o.key):e.removeNodeByKey(r.key);case $.CHILD_REQUIRED:case $.NODE_TEXT_INVALID:case $.PARENT_OBJECT_INVALID:case $.PARENT_TYPE_INVALID:var i=n.node;return"document"==i.object?i.nodes.forEach(function(t){return e.removeNodeByKey(t.key)}):e.removeNodeByKey(i.key);case $.NODE_DATA_INVALID:var a=n.node,s=n.key;return void 0===a.data.get(s)&&"document"!=a.object?e.removeNodeByKey(a.key):e.setNodeByKey(a.key,{data:a.data.delete(s)});case $.NODE_IS_VOID_INVALID:var u=n.node;return e.setNodeByKey(u.key,{isVoid:!u.isVoid});case $.NODE_MARK_INVALID:var l=n.node,c=n.mark;return l.getTexts().forEach(function(t){return e.removeMarkByKey(t.key,0,t.text.length,c)})}}},{key:"validateNode",value:function(e){var t=this,n=this.stack.find("validateNode",e);if(n)return n;if("text"!=e.object){var r=this.getRule(e)||{},o=this.getParentRules(),i={node:e,rule:r};if(null!=r.isVoid&&e.isVoid!=r.isVoid)return this.fail($.NODE_IS_VOID_INVALID,i);if(null!=r.data)for(var a in r.data){var s=r.data[a],u=e.data.get(a);if(!s(u))return this.fail($.NODE_DATA_INVALID,ue({},i,{key:a,value:u}))}if(null!=r.marks){var l=e.getMarks().toArray(),c=!0,f=!1,p=void 0;try{for(var d,h=l[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value,g=function(e){if(!r.marks.some(function(t){return t.type===e.type}))return{v:t.fail($.NODE_MARK_INVALID,ue({},i,{mark:e}))}}(m);if("object"===("undefined"===typeof g?"undefined":ie(g)))return g.v}}catch(e){f=!0,p=e}finally{try{!c&&h.return&&h.return()}finally{if(f)throw p}}}if(null!=r.text){var v=e.text;if(!r.text.test(v))return this.fail($.NODE_TEXT_INVALID,ue({},i,{text:v}))}if(null!=r.first){var y=r.first,b=y.objects,T=y.types,_=e.nodes.first();if(_&&b&&!b.includes(_.object))return this.fail($.FIRST_CHILD_OBJECT_INVALID,ue({},i,{child:_}));if(_&&T&&!T.includes(_.type))return this.fail($.FIRST_CHILD_TYPE_INVALID,ue({},i,{child:_}))}if(null!=r.last){var E=r.last,k=E.objects,w=E.types,x=e.nodes.last();if(x&&k&&!k.includes(x.object))return this.fail($.LAST_CHILD_OBJECT_INVALID,ue({},i,{child:x}));if(x&&w&&!w.includes(x.type))return this.fail($.LAST_CHILD_TYPE_INVALID,ue({},i,{child:x}))}if(null!=r.nodes||null!=o){var C=function(){return N=null==N?null:0,M=S.shift(),D=M&&(null==M.min?0:M.min),L=M&&(null==M.max?1/0:M.max),!!M},A=function(){N-=1,I-=1},O=e.nodes.toArray(),S=null!=r.nodes?r.nodes.slice():[],N=void 0,D=void 0,I=void 0,M=void 0,L=void 0,P=void 0;for(null!=r.nodes&&C();function(){return I=null==I?0:I+1,N=null==N?0:N+1,P=O[I],null!=L&&N==L&&C(),!!P}();){if(null!=o&&"text"!=P.object&&P.type in o){var R=o[P.type];if(null!=R.parent.objects&&!R.parent.objects.includes(e.object))return this.fail($.PARENT_OBJECT_INVALID,{node:P,parent:e,rule:R});if(null!=R.parent.types&&!R.parent.types.includes(e.type))return this.fail($.PARENT_TYPE_INVALID,{node:P,parent:e,rule:R})}if(null!=r.nodes){if(!M)return this.fail($.CHILD_UNKNOWN,ue({},i,{child:P,index:I}));if(null!=M.objects&&!M.objects.includes(P.object)){if(N>=D&&C()){A();continue}return this.fail($.CHILD_OBJECT_INVALID,ue({},i,{child:P,index:I}))}if(null!=M.types&&!M.types.includes(P.type)){if(N>=D&&C()){A();continue}return this.fail($.CHILD_TYPE_INVALID,ue({},i,{child:P,index:I}))}}}if(null!=r.nodes)for(;null!=D;){if(N0&&void 0!==arguments[0]?arguments[0]:{};if(t.isSchema(e))return e;if(B()(e))return t.fromJSON(e);throw new Error("`Schema.create` only accepts objects or schemas, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isSchema(e))return e;var n=e.plugins;if(e.rules)throw new Error("Schemas in Slate have changed! They are no longer accept a `rules` property.");if(e.nodes)throw new Error("Schemas in Slate have changed! They are no longer accept a `nodes` property.");n||(n=[{schema:e}]);var r=C(n),o=Qe.create({plugins:[].concat(de(Je),de(n))});return new t(ue({},r,{stack:o}))}},{key:"isSchema",value:function(e){return!(!e||!e[ne.SCHEMA])}}]),t}(Object(F.Record)(et));tt.fromJS=tt.fromJSON,tt.prototype[ne.SCHEMA]=!0,s(tt.prototype,["getParentRules"]);var nt={data:new F.Map,decorations:null,document:Oe.create(),history:$e.create(),schema:tt.create(),selection:Ne.create()},rt=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new vt(ue({},e,{value:this}))}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,document:this.document.toJSON(e)};if(e.preserveData&&(t.data=this.data.toJSON()),e.preserveDecorations&&(t.decorations=this.decorations?this.decorations.toArray().map(function(e){return e.toJSON()}):null),e.preserveHistory&&(t.history=this.history.toJSON()),e.preserveSelection&&(t.selection=this.selection.toJSON()),e.preserveSchema&&(t.schema=this.schema.toJSON()),e.preserveSelection&&!e.preserveKeys){var n=this.document,r=this.selection;t.selection.anchorPath=r.isSet?n.getPath(r.anchorKey):null,t.selection.focusPath=r.isSet?n.getPath(r.focusKey):null,delete t.selection.anchorKey,delete t.selection.focusKey}if(e.preserveDecorations&&t.decorations&&!e.preserveKeys){var o=this.document;t.decorations=t.decorations.map(function(e){var t=ue({},e,{anchorPath:o.getPath(e.anchorKey),focusPath:o.getPath(e.focusKey)});return delete t.anchorKey,delete t.focusKey,t})}return t}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"object",get:function(){return"value"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"hasUndos",get:function(){return this.history.undos.size>0}},{key:"hasRedos",get:function(){return this.history.redos.size>0}},{key:"isBlurred",get:function(){return this.selection.isBlurred}},{key:"isFocused",get:function(){return this.selection.isFocused}},{key:"isCollapsed",get:function(){return this.selection.isCollapsed}},{key:"isExpanded",get:function(){return this.selection.isExpanded}},{key:"isBackward",get:function(){return this.selection.isBackward}},{key:"isForward",get:function(){return this.selection.isForward}},{key:"startKey",get:function(){return this.selection.startKey}},{key:"endKey",get:function(){return this.selection.endKey}},{key:"startOffset",get:function(){return this.selection.startOffset}},{key:"endOffset",get:function(){return this.selection.endOffset}},{key:"anchorKey",get:function(){return this.selection.anchorKey}},{key:"focusKey",get:function(){return this.selection.focusKey}},{key:"anchorOffset",get:function(){return this.selection.anchorOffset}},{key:"focusOffset",get:function(){return this.selection.focusOffset}},{key:"startBlock",get:function(){return this.startKey&&this.document.getClosestBlock(this.startKey)}},{key:"endBlock",get:function(){return this.endKey&&this.document.getClosestBlock(this.endKey)}},{key:"anchorBlock",get:function(){return this.anchorKey&&this.document.getClosestBlock(this.anchorKey)}},{key:"focusBlock",get:function(){return this.focusKey&&this.document.getClosestBlock(this.focusKey)}},{key:"startInline",get:function(){return this.startKey&&this.document.getClosestInline(this.startKey)}},{key:"endInline",get:function(){return this.endKey&&this.document.getClosestInline(this.endKey)}},{key:"anchorInline",get:function(){return this.anchorKey&&this.document.getClosestInline(this.anchorKey)}},{key:"focusInline",get:function(){return this.focusKey&&this.document.getClosestInline(this.focusKey)}},{key:"startText",get:function(){return this.startKey&&this.document.getDescendant(this.startKey)}},{key:"endText",get:function(){return this.endKey&&this.document.getDescendant(this.endKey)}},{key:"anchorText",get:function(){return this.anchorKey&&this.document.getDescendant(this.anchorKey)}},{key:"focusText",get:function(){return this.focusKey&&this.document.getDescendant(this.focusKey)}},{key:"nextBlock",get:function(){return this.endKey&&this.document.getNextBlock(this.endKey)}},{key:"previousBlock",get:function(){return this.startKey&&this.document.getPreviousBlock(this.startKey)}},{key:"nextInline",get:function(){return this.endKey&&this.document.getNextInline(this.endKey)}},{key:"previousInline",get:function(){return this.startKey&&this.document.getPreviousInline(this.startKey)}},{key:"nextText",get:function(){return this.endKey&&this.document.getNextText(this.endKey)}},{key:"previousText",get:function(){return this.startKey&&this.document.getPreviousText(this.startKey)}},{key:"characters",get:function(){return this.selection.isUnset?new F.List:this.document.getCharactersAtRange(this.selection)}},{key:"marks",get:function(){return this.selection.isUnset?new F.Set:this.selection.marks||this.document.getMarksAtRange(this.selection)}},{key:"activeMarks",get:function(){return this.selection.isUnset?new F.Set:this.selection.marks||this.document.getActiveMarksAtRange(this.selection)}},{key:"blocks",get:function(){return this.selection.isUnset?new F.List:this.document.getBlocksAtRange(this.selection)}},{key:"fragment",get:function(){return this.selection.isUnset?Oe.create():this.document.getFragmentAtRange(this.selection)}},{key:"inlines",get:function(){return this.selection.isUnset?new F.List:this.document.getInlinesAtRange(this.selection)}},{key:"texts",get:function(){return this.selection.isUnset?new F.List:this.document.getTextsAtRange(this.selection)}},{key:"isEmpty",get:function(){return!!this.isCollapsed||(0==this.endOffset||0==this.startOffset)&&this.fragment.isEmpty}},{key:"isInVoid",get:function(){return!this.isExpanded&&this.document.hasVoidParent(this.startKey)}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.isValue(e))return e;if(B()(e))return t.fromJSON(e,n);throw new Error("`Value.create` only accepts objects or values, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isValue(e))return{data:e.data,decorations:e.decorations,schema:e.schema};if(B()(e)){var n={};return"data"in e&&(n.data=ye.create(e.data)),"decorations"in e&&(n.decorations=Ne.createList(e.decorations)),"schema"in e&&(n.schema=tt.create(e.schema)),n}throw new Error("`Value.createProperties` only accepts objects or values, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.document,o=void 0===r?{}:r,i=e.selection,a=void 0===i?{}:i,s=e.schema,u=void 0===s?{}:s,l=new F.Map;if(o=Oe.fromJSON(o),a=Ne.fromJSON(a),u=tt.fromJSON(u),n.plugins){var c=!0,f=!1,p=void 0;try{for(var d,h=n.plugins[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value;m.data&&(l=l.merge(m.data))}}catch(e){f=!0,p=e}finally{try{!c&&h.return&&h.return()}finally{if(f)throw p}}}if("data"in e&&(l=l.merge(e.data)),a.isUnset){var g=o.getFirstText();g&&(a=a.collapseToStartOf(g))}var v=new t({data:l,document:o,selection:a,schema:u});return!1!==n.normalize&&(v=v.change({save:!1}).normalize().value),v}},{key:"isValue",value:function(e){return!(!e||!e[ne.VALUE])}}]),t}(Object(F.Record)(nt));rt.fromJS=rt.fromJSON,rt.prototype[ne.VALUE]=!0;var ot={length:void 0,mark:void 0,marks:void 0,newPath:void 0,node:void 0,offset:void 0,path:void 0,position:void 0,properties:void 0,selection:void 0,target:void 0,text:void 0,type:void 0,value:void 0},it=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"toJSON",value:function(){var e=this.object,t=this.type,n={object:e,type:t},r=Ge[t],o=!0,i=!1,a=void 0;try{for(var s,u=r[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var l=s.value,c=this[l];if("document"!=l&&("selection"!=l&&"value"!=l&&("node"!=l||"insert_node"==t))){if("mark"!=l&&"marks"!=l&&"node"!=l||(c=c.toJSON()),"properties"==l&&"merge_node"==t){var f={};"data"in c&&(f.data=c.data.toJS()),"type"in c&&(f.type=c.type),c=f}if("properties"==l&&"set_mark"==t){var p={};"data"in c&&(p.data=c.data.toJS()),"type"in c&&(p.type=c.type),c=p}if("properties"==l&&"set_node"==t){var d={};"data"in c&&(d.data=c.data.toJS()),"isVoid"in c&&(d.isVoid=c.isVoid),"type"in c&&(d.type=c.type),c=d}if("properties"==l&&"set_selection"==t){var h={};"anchorOffset"in c&&(h.anchorOffset=c.anchorOffset),"anchorPath"in c&&(h.anchorPath=c.anchorPath),"focusOffset"in c&&(h.focusOffset=c.focusOffset),"focusPath"in c&&(h.focusPath=c.focusPath),"isBackward"in c&&(h.isBackward=c.isBackward),"isFocused"in c&&(h.isFocused=c.isFocused),"marks"in c&&(h.marks=null==c.marks?null:c.marks.toJSON()),c=h}if("properties"==l&&"set_value"==t){var m={};"data"in c&&(m.data=c.data.toJS()),"decorations"in c&&(m.decorations=c.decorations.toJS()),"schema"in c&&(m.schema=c.schema.toJS()),c=m}if("properties"==l&&"split_node"==t){var g={};"data"in c&&(g.data=c.data.toJS()),"type"in c&&(g.type=c.type),c=g}n[l]=c}}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return n}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"object",get:function(){return"operation"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isOperation(e))return e;if(B()(e))return t.fromJSON(e);throw new Error("`Operation.create` only accepts objects or operations, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Operation.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isOperation(e))return e;var n=e.type,r=e.value,o=Ge[n],i={type:n};if(!o)throw new Error('`Operation.fromJSON` was passed an unrecognized operation type: "'+n+'"');var a=!0,s=!1,u=void 0;try{for(var l,c=o[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var f=l.value,p=e[f];if(void 0===p){if("document"==f)continue;if("selection"==f)continue;if("value"==f)continue;if("node"==f&&"insert_node"!=n)continue;throw new Error('`Operation.fromJSON` was passed a "'+n+'" operation without the required "'+f+'" attribute.')}if("mark"==f&&(p=xe.create(p)),"marks"==f&&null!=p&&(p=xe.createSet(p)),"node"==f&&(p=Be.create(p)),"selection"==f&&(p=Ne.create(p)),"value"==f&&(p=rt.create(p)),"properties"==f&&"merge_node"==n&&(p=Be.createProperties(p)),"properties"==f&&"set_mark"==n&&(p=xe.createProperties(p)),"properties"==f&&"set_node"==n&&(p=Be.createProperties(p)),"properties"==f&&"set_selection"==n){var d=p,h=d.anchorKey,m=d.focusKey,g=ce(d,["anchorKey","focusKey"]);p=Ne.createProperties(g),void 0!==h&&(p.anchorPath=null===h?null:r.document.getPath(h)),void 0!==m&&(p.focusPath=null===m?null:r.document.getPath(m))}"properties"==f&&"set_value"==n&&(p=rt.createProperties(p)),"properties"==f&&"split_node"==n&&(p=Be.createProperties(p)),i[f]=p}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}return new t(i)}},{key:"isOperation",value:function(e){return!(!e||!e[ne.OPERATION])}},{key:"isOperationList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isOperation(e)})}}]),t}(Object(F.Record)(ot));it.fromJS=it.fromJSON,it.prototype[ne.OPERATION]=!0;var at=q()("slate:operation:invert"),st={};st.redo=function(e){var t=e.value,n=t,r=n.history;if(r){var o=r,i=o.undos,a=o.redos,s=a.peek();s&&(a=a.pop(),i=i.push(s),s.forEach(function(t){var n=t,r=n.type,o=n.properties;"set_selection"==r&&(t=t.set("properties",Z()(o,"isFocused"))),e.applyOperation(t,{save:!1})}),t=e.value,r=r.set("undos",i).set("redos",a),t=t.set("history",r),e.value=t)}},st.undo=function(e){var t=e.value,n=t,r=n.history;if(r){var o=r,i=o.undos,a=o.redos,s=i.peek();s&&(i=i.pop(),a=a.push(s),s.slice().reverse().map(N).forEach(function(t){var n=t,r=n.type,o=n.properties;"set_selection"==r&&(t=t.set("properties",Z()(o,"isFocused"))),e.applyOperation(t,{save:!1})}),t=e.value,r=r.set("undos",i).set("redos",a),t=t.set("history",r),e.value=t)}};var ut={};ut.select=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=Ne.createProperties(t);var r=n.snapshot,o=void 0!==r&&r,i=e.value,a=i.document,s=i.selection,u={},l=s.toJSON(),c=s.merge(t).normalize(a);t=X()(c,Object.keys(t));for(var f in t)0==o&&t[f]==l[f]||(u[f]=t[f]);var p=["anchorKey","anchorOffset","focusKey","focusOffset"].some(function(e){return u.hasOwnProperty(e)});l.marks&&t.marks==l.marks&&p&&(u.marks=null),te()(u)||e.applyOperation({type:"set_selection",value:i,properties:u,selection:l},o?{skip:!1,merge:!1}:{})},ut.selectAll=function(e){var t=e.value,n=t.document,r=t.selection,o=r.moveToRangeOf(n);e.select(o)},ut.snapshotSelection=function(e){var t=e.value,n=t.selection;e.select(n,{snapshot:!0})},ut.moveAnchorCharBackward=function(e){var t=e.value,n=t.document,r=t.selection,o=t.anchorText,i=t.anchorBlock,a=r.anchorOffset,s=n.getPreviousText(o.key),u=n.hasVoidParent(o.key),l=s&&n.hasVoidParent(s.key);if(!u&&a>0)return void e.moveAnchor(-1);s&&(e.moveAnchorToEndOf(s),u||l||!i.hasNode(s.key)||e.moveAnchor(-1))},ut.moveAnchorCharForward=function(e){var t=e.value,n=t.document,r=t.selection,o=t.anchorText,i=t.anchorBlock,a=r.anchorOffset,s=n.getNextText(o.key),u=n.hasVoidParent(o.key),l=s&&n.hasVoidParent(s.key);if(!u&&a0)return void e.moveFocus(-1);s&&(e.moveFocusToEndOf(s),u||l||!i.hasNode(s.key)||e.moveFocus(-1))},ut.moveFocusCharForward=function(e){var t=e.value,n=t.document,r=t.selection,o=t.focusText,i=t.focusBlock,a=r.focusOffset,s=n.getNextText(o.key),u=n.hasVoidParent(o.key),l=s&&n.hasVoidParent(s.key);if(!u&&a1?t-1:0),o=1;o1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:{};t=rt.createProperties(t);var r=e.value;e.applyOperation({type:"set_value",properties:t,value:r},n)};var pt={};pt.normalize=function(e){e.normalizeDocument()},pt.normalizeDocument=function(e){var t=e.value,n=t.document;e.normalizeNodeByKey(n.key)},pt.normalizeNodeByKey=function(e,t){var n=e.value,r=n.document,o=n.schema,i=r.assertNode(t);D(e,i,o),r=e.value.document;var a=r.getAncestors(t);a&&a.forEach(function(t){e.value.document.getDescendant(t.key)&&I(e,t,o)})};var dt=ue({},Ce,qe,We,st,ut,ft,pt),ht=q()("slate:operation:apply"),mt={add_mark:function(e,t){var n=t.path,r=t.offset,o=t.length,i=t.mark,a=e,s=a.document,u=s.assertPath(n);return u=u.addMark(r,o,i),s=s.updateNode(u),e=e.set("document",s)},insert_node:function(e,t){var n=t.path,r=t.node,o=n[n.length-1],i=n.slice(0,-1),a=e,s=a.document,u=s.assertPath(i);return u=u.insertNode(o,r),s=s.updateNode(u),e=e.set("document",s)},insert_text:function(e,t){var n=t.path,r=t.offset,o=t.text,i=t.marks,a=e,s=a.document,u=s.assertPath(n);return u=u.insertText(r,o,i),s=s.updateNode(u),e=e.set("document",s),e=L(e,u.key,r),e=M(e,function(e){var t=e.anchorKey,n=e.anchorOffset,o=e.isBackward,i=e.isAtomic;return t==u.key&&(n>r||n==r&&(!i||!o))},function(e){return e.moveAnchor(o.length)}),e=M(e,function(e){var t=e.focusKey,n=e.focusOffset,o=e.isBackward,i=e.isAtomic;return t==u.key&&(n>r||n==r&&(!i||o))},function(e){return e.moveFocus(o.length)})},merge_node:function(e,t){var n=t.path,r=n.slice(0,n.length-1).concat([n[n.length-1]-1]),o=e,i=o.document,a=i.assertPath(r),s=i.assertPath(n),u=i.getParent(a.key),l=u.nodes.indexOf(a),c=u.nodes.indexOf(s);return u=u.mergeNode(l,c),i=i.updateNode(u),e=e.set("document",i),"text"==a.object&&(e=M(e,function(e){var t=e.anchorKey,n=e.focusKey;return t==s.key||n==s.key},function(e){return e.anchorKey==s.key&&(e=e.moveAnchorTo(a.key,a.text.length+e.anchorOffset)),e.focusKey==s.key&&(e=e.moveFocusTo(a.key,a.text.length+e.focusOffset)),e.normalize(i)})),e},move_node:function(e,t){var n=t.path,r=t.newPath,o=r[r.length-1],i=r.slice(0,-1),a=n.slice(0,-1),s=n[n.length-1],u=e,l=u.document,c=l.assertPath(n),f=l.getParent(c.key);f=f.removeNode(s),l=l.updateNode(f);var p=void 0;return a.every(function(e,t){return e===i[t]})&&a.length===i.length?p=f:a.every(function(e,t){return e===i[t]})&&s=a?e.moveAnchor(-i):e.anchorOffset>r?e.moveAnchorTo(e.anchorKey,r):e}),e=M(e,function(e){return e.focusKey==l.key},function(e){return e.focusOffset>=a?e.moveFocus(-i):e.focusOffset>r?e.moveFocusTo(e.focusKey,r):e}),l=l.removeText(r,i),u=u.updateNode(l),e=e.set("document",u)},set_mark:function(e,t){var n=t.path,r=t.offset,o=t.length,i=t.mark,a=t.properties,s=e,u=s.document,l=u.assertPath(n);return l=l.updateMark(r,o,i,a),u=u.updateNode(l),e=e.set("document",u)},set_node:function(e,t){var n=t.path,r=t.properties,o=e,i=o.document,a=i.assertPath(n);return a=a.merge(r),i=i.updateNode(a),e=e.set("document",i)},set_selection:function(e,t){var n=t.properties,r=n.anchorPath,o=n.focusPath,i=ce(n,["anchorPath","focusPath"]),a=e,s=a.document,u=a.selection;return void 0!==r&&(i.anchorKey=null===r?null:s.assertPath(r).key),void 0!==o&&(i.focusKey=null===o?null:s.assertPath(o).key),u=u.merge(i),u=u.normalize(s),e=e.set("selection",u)},set_value:function(e,t){var n=t.properties;return e=e.merge(n)},split_node:function(e,t){var n=t.path,r=t.position,o=t.properties,i=e,a=i.document,s=a.assertPath(n),u=a.getParent(s.key),l=u.nodes.indexOf(s);if(u=u.splitNode(l,r),o){var c=u.nodes.get(l+1);"text"!==c.object&&(u=u.updateNode(c.merge(o)))}a=a.updateNode(u);var f=a.getNextText(s.key);return e=M(e,function(e){var t=e.startKey,n=e.startOffset,o=e.endKey,i=e.endOffset;return s.key==t&&r<=n||s.key==o&&r<=i},function(e){var t=e,n=t.startKey,o=t.startOffset,i=t.endKey,u=t.endOffset,l=!1;return s.key==n&&r<=o&&(e=e.moveStartTo(f.key,o-r),l=!0),s.key==i&&r<=u&&(e=e.moveEndTo(f.key,u-r),l=!0),l?e.normalize(a):e}),e=e.set("document",a)}},gt=q()("slate:change"),vt=function(){function e(t){ae(this,e);var n=t.value;this.value=n,this.operations=new F.List,this.flags=ue({normalize:!0},X()(t,["merge","save","normalize"]))}return se(e,[{key:"applyOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.operations,r=this.flags,o=this.value,i=o,a=i.history;B()(e)&&(e=ue({},e,{value:o})),e=it.create(e),t=ue({},r,t);var s=t,u=s.merge,l=void 0===u?0!=n.size||null:u,c=s.save,f=void 0===c||c,p=s.skip,d=void 0===p?null:p;return gt("apply",{operation:e,save:f,merge:l}),o=P(o,e),a&&f&&(a=a.save(e,{merge:l,skip:d}),o=o.set("history",a)),this.value=o,this.operations=n.push(e),this}},{key:"applyOperations",value:function(e,t){var n=this;return e.forEach(function(e){return n.applyOperation(e,t)}),this}},{key:"call",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};return void 0!==t[e]?t[e]:this.flags[e]}},{key:"unsetOperationFlag",value:function(e){return delete this.flags[e],this}},{key:"object",get:function(){return"change"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}]),e}();vt.isChange=r.bind(null,"CHANGE"),vt.prototype[ne.CHANGE]=!0,Object.keys(dt).forEach(function(e){vt.prototype[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var i=0;i>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=0;o>16)&r,t=18e3*(65535&t)+(t>>16)&r;var o=(n<<16)+t&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}}(4294967296*(n||e.random()));n=987654071*i(),r.push(4294967296*i()|0)}return new a.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=4*i,u=o/s;u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0);var l=u*i,c=e.min(4*l,o);if(l){for(var f=0;f>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?h(e)+t:t}function g(){return!0}function v(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function y(e,t){return T(e,t,0)}function b(e,t){return T(e,t,t)}function T(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function _(e){this.next=e}function E(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function k(){return{value:void 0,done:!0}}function w(e){return!!A(e)}function x(e){return e&&"function"===typeof e.next}function C(e){var t=A(e);return t&&t.call(e)}function A(e){var t=e&&(En&&e[En]||e[kn]);if("function"===typeof t)return t}function O(e){return e&&"number"===typeof e.length}function S(e){return null===e||void 0===e?j():i(e)?e.toSeq():U(e)}function N(e){return null===e||void 0===e?j().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():F(e)}function D(e){return null===e||void 0===e?j():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():H(e)}function I(e){return(null===e||void 0===e?j():i(e)?a(e)?e.entrySeq():e:H(e)).toSetSeq()}function M(e){this._array=e,this.size=e.length}function L(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function P(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function B(e){return!(!e||!e[xn])}function j(){return Cn||(Cn=new M([]))}function F(e){var t=Array.isArray(e)?new M(e).fromEntrySeq():x(e)?new R(e).fromEntrySeq():w(e)?new P(e).fromEntrySeq():"object"===typeof e?new L(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function H(e){var t=z(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){var t=z(e)||"object"===typeof e&&new L(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function z(e){return O(e)?new M(e):x(e)?new R(e):w(e)?new P(e):void 0}function K(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new _(function(){var e=o[n?i-a:a];return a++>i?k():E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?G(t,e,"",{"":e}):V(e)}function G(e,t,n,r){return Array.isArray(t)?e.call(r,n,D(t).map(function(n,r){return G(e,n,r,t)})):Y(t)?e.call(r,n,N(t).map(function(n,r){return G(e,n,r,t)})):t}function V(e){return Array.isArray(e)?D(e).map(V).toList():Y(e)?N(e).map(V).toMap():e}function Y(e){return e&&(e.constructor===Object||void 0===e.constructor)}function $(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function J(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&$(o[1],e)&&(n||$(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):o?!$(t,e.get(r,gn)):!$(e.get(r,gn),t))return f=!1,!1});return f&&e.size===p}function X(e,t){if(!(this instanceof X))return new X(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(An)return An;An=this}}function Q(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(Q(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function ie(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return oe(n)}if("string"===t)return e.length>Rn?ae(e):se(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"===typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Fn[e];return void 0===t&&(t=se(e),jn===Bn&&(jn=0,Fn={}),jn++,Fn[e]=t),t}function se(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Q(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?Ee():pe(e)&&!l(e)?e:Ee().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function pe(e){return!(!e||!e[Hn])}function de(e,t){this.ownerID=e,this.entries=t}function he(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function me(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ye(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Te(e._root)}function be(e,t){return E(e,t[0],t[1])}function Te(e,t){return{node:e,index:0,__prev:t}}function _e(e,t,n,r){var o=Object.create(Un);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ee(){return zn||(zn=_e(0))}function ke(e,t,n){var r,o;if(e._root){var i=c(vn),a=c(yn);if(r=we(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===gn?-1:1:0)}else{if(n===gn)return e;o=1,r=new de(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?_e(o,r):Ee()}function we(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===gn?e:(f(s),f(a),new ve(t,r,[o,i]))}function xe(e){return e.constructor===ve||e.constructor===ge}function Ce(e,t,n,r,o){if(e.keyHash===r)return new ge(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&mn,s=(0===n?r:r>>>n)&mn;return new he(t,1<>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new me(e,i+1,a)}function Ne(e,t,r){for(var o=[],a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Re(e,t,n,r){var o=r?e:d(e);return o[t]=n,o}function Be(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s0&&oi?0:i-n,l=a-n;return l>hn&&(l=hn),function(){if(o===l)return $n;var e=t?--l:o++;return r&&r[e]}}function o(e,r,o){var s,u=e&&e.array,l=o>i?0:i-o>>r,c=1+(a-o>>r);return c>hn&&(c=hn),function(){for(;;){if(s){var e=s();if(e!==$n)return e;s=null}if(l===c)return $n;var i=t?--c:l++;s=n(u&&u[i],r-dn,o+(i<=e.size||t<0)return e.withMutations(function(e){t<0?$e(e,t).set(0,n):$e(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(yn);return t>=Xe(e._capacity)?r=Ge(r,e.__ownerID,0,t,n,i):o=Ge(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ke(e._origin,e._capacity,e._level,o,r):e}function Ge(e,t,n,r,o,i){var a=r>>>n&mn,s=e&&a0){var l=e&&e.array[a],c=Ge(l,t,n-dn,r,o,i);return c===l?e:(u=Ve(e,t),u.array[a]=c,u)}return s&&e.array[a]===o?e:(f(i),u=Ve(e,t),void 0===o&&a===u.array.length-1?u.array.pop():u.array[a]=o,u)}function Ve(e,t){return t&&e&&t===e.ownerID?e:new Ue(e?e.array.slice():[],t)}function Ye(e,t){if(t>=Xe(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&mn],r-=dn;return n}}function $e(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new Ue(l&&l.array.length?[void 0,l]:[],r),u+=dn,c+=1<=1<f?new Ue([],r):h;if(h&&d>f&&adn;v-=dn){var y=f>>>v&mn;g=g.array[y]=Ve(g.array[y],r)}g.array[f>>>dn&mn]=h}if(s=d)a-=d,s-=d,u=dn,l=null,m=m&&m.removeBefore(r,0,a);else if(a>o||d>>u&mn;if(b!==d>>>u&mn)break;b&&(c+=(1<o&&(l=l.removeBefore(r,u,a-c)),l&&da&&(a=l.size),i(u)||(l=l.map(function(e){return W(e)})),o.push(l)}return a>e.size&&(e=e.setSize(a)),Me(e,t,o)}function Xe(e){return e>>dn<=hn&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):et(r,o)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=Ot(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=St,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===_n){var r=e.__iterator(t,n);return new _(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Tn?bn:Tn,n)},t}function ut(e,t,n){var r=Ot(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,gn);return i===gn?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(_n,o);return new _(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),o)})},r}function lt(e,t){var n=Ot(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=St,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var o=Ot(e);return r&&(o.has=function(r){var o=e.get(r,gn);return o!==gn&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,gn);return i!==gn&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(_n,i),s=0;return new _(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return E(o,r?l:s++,c,i)}})},o}function ft(e,t,n){var r=fe().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}function pt(e,t,n){var r=a(e),o=(l(e)?Qe():fe()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return e=e||[],e.push(r?[a,i]:i),e})});var i=At(e);return o.map(function(t){return wt(e,i(t))})}function dt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),v(t,n,o))return e;var i=y(t,o),a=b(n,o);if(i!==i||a!==a)return dt(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u===u&&(s=u<0?0:u);var l=Ot(e);return l.size=0===s?s:e.size&&s||void 0,!r&&B(e)&&s>=0&&(l.get=function(t,n){return t=m(this,t),t>=0&&ts)return k();var e=o.next();return r||t===Tn?e:t===bn?E(t,u-1,void 0,e):E(t,u-1,e.value[1],e)})},l}function ht(e,t,n){var r=Ot(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(_n,o),s=!0;return new _(function(){if(!s)return k();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===_n?e:E(r,u,l,e):(s=!1,k())})},r}function mt(e,t,n,r){var o=Ot(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(_n,i),u=!0,l=0;return new _(function(){var e,i,c;do{if(e=s.next(),e.done)return r||o===Tn?e:o===bn?E(o,l++,void 0,e):E(o,l++,e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===_n?e:E(o,i,c,e)})},o}function gt(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?F(e):H(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new M(o);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}function vt(e,t,n){var r=Ot(e);return r.__iterateUncached=function(r,o){function a(e,l){var c=this;e.__iterate(function(e,o){return(!t||l0}function kt(e,n,r){var o=Ot(e);return o.size=new M(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Tn,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),C(o?e.reverse():e)}),a=0,s=!1;return new _(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?k():E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function wt(e,t){return B(e)?t:e.constructor(t)}function xt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ct(e){return ce(e.size),h(e)}function At(e){return a(e)?n:s(e)?r:o}function Ot(e){return Object.create((a(e)?N:s(e)?D:I).prototype)}function St(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):S.prototype.cacheResult.call(this)}function Nt(e,t){return e>t?1:et?-1:0}function on(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0;return an(e.__iterate(n?t?function(e,t){r=31*r+sn(ie(e),ie(t))|0}:function(e,t){r=r+sn(ie(e),ie(t))|0}:t?function(e){r=31*r+ie(e)|0}:function(e){r=r+ie(e)|0}),r)}function an(e,t){return t=Nn(t,3432918353),t=Nn(t<<15|t>>>-15,461845907),t=Nn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Nn(t^t>>>16,2246822507),t=Nn(t^t>>>13,3266489909),t=oe(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=o;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",pn="@@__IMMUTABLE_ORDERED__@@",dn=5,hn=1<r?k():E(e,o,n[t?r-o++:o++])})},e(L,N),L.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},L.prototype.has=function(e){return this._object.hasOwnProperty(e)},L.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},L.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new _(function(){var a=r[t?o-i:i];return i++>o?k():E(e,a,n[a])})},L.prototype[pn]=!0,e(P,D),P.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=C(n),o=0;if(x(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},P.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=C(n);if(!x(r))return new _(k);var o=0;return new _(function(){var t=r.next();return t.done?t:E(e,o++,t.value)})},e(R,D),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return E(e,o,r[o++])})};var Cn;e(X,D),X.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},X.prototype.get=function(e,t){return this.has(e)?this._value:t},X.prototype.includes=function(e){return $(this._value,e)},X.prototype.slice=function(e,t){var n=this.size;return v(e,t,n)?this:new X(this._value,b(t,n)-y(e,n))},X.prototype.reverse=function(){return this},X.prototype.indexOf=function(e){return $(this._value,e)?0:-1},X.prototype.lastIndexOf=function(e){return $(this._value,e)?this.size:-1},X.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?k():E(e,i++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:J(this,e)};var On;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Sn,Nn="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Dn=Object.isExtensible,In=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Mn="function"===typeof WeakMap;Mn&&(Sn=new WeakMap);var Ln=0,Pn="__immutablehash__";"function"===typeof Symbol&&(Pn=Symbol(Pn));var Rn=16,Bn=255,jn=0,Fn={};e(fe,te),fe.of=function(){var e=un.call(arguments,0);return Ee().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},fe.prototype.set=function(e,t){return ke(this,e,t)},fe.prototype.setIn=function(e,t){return this.updateIn(e,gn,function(){return t})},fe.prototype.remove=function(e){return ke(this,e,gn)},fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return gn})},fe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},fe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Le(this,Dt(e),t,n);return r===gn?void 0:r},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ee()},fe.prototype.merge=function(){return Ne(this,void 0,arguments)},fe.prototype.mergeWith=function(e){return Ne(this,e,un.call(arguments,1))},fe.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,Ee(),function(e){return"function"===typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){return Ne(this,De,arguments)},fe.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Ne(this,Ie(e),t)},fe.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,Ee(),function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Qe(Tt(this,e))},fe.prototype.sortBy=function(e,t){return Qe(Tt(this,t,e))},fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(e,t){return new ye(this,e,t)},fe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=pe;var Hn="@@__IMMUTABLE_MAP__@@",Un=fe.prototype;Un[Hn]=!0,Un.delete=Un.remove,Un.removeIn=Un.deleteIn,de.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=Kn)return Ae(e,u,r,o);var h=e&&e===this.ownerID,m=h?u:d(u);return p?s?l===c-1?m.pop():m[l]=m.pop():m[l]=[r,o]:m.push([r,o]),h?(this.entries=m,this):new de(e,m)}},he.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=1<<((0===e?t:t>>>e)&mn),i=this.bitmap;return 0===(i&o)?r:this.nodes[Pe(i&o-1)].get(e+dn,t,n,r)},he.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&mn,u=1<=qn)return Se(e,p,l,s,h);if(c&&!h&&2===p.length&&xe(p[1^f]))return p[1^f];if(c&&h&&1===p.length&&xe(h))return h;var m=e&&e===this.ownerID,g=c?h?l:l^u:l|u,v=c?h?Re(p,f,h,m):je(p,f,m):Be(p,f,h,m);return m?(this.bitmap=g,this.nodes=v,this):new he(e,g,v)},me.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=(0===e?t:t>>>e)&mn,i=this.nodes[o];return i?i.get(e+dn,t,n,r):r},me.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&mn,u=o===gn,l=this.nodes,c=l[s];if(u&&!c)return this;var f=we(c,e,t+dn,n,r,o,i,a);if(f===c)return this;var p=this.count;if(c){if(!f&&--p=0&&e>>t&mn;if(r>=this.array.length)return new Ue([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-dn,n))===a&&i)return this}if(i&&!o)return this;var s=Ve(this,e);if(!i)for(var u=0;u>>t&mn;if(r>=this.array.length)return this;var o;if(t>0){var i=this.array[r];if((o=i&&i.removeAfter(e,t-dn,n))===i&&r===this.array.length-1)return this}var a=Ve(this,e);return a.array.splice(r+1),o&&(a.array[r]=o),a};var Yn,$n={};e(Qe,fe),Qe.of=function(){return this(arguments)},Qe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Qe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Qe.prototype.set=function(e,t){return nt(this,e,t)},Qe.prototype.remove=function(e){return nt(this,e,gn)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Qe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Qe.isOrderedMap=Ze,Qe.prototype[pn]=!0,Qe.prototype.delete=Qe.prototype.remove;var Jn;e(rt,N),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=lt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=ut(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Ct(this):0,function(o){return e(o,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Tn,t),r=t?Ct(this):0;return new _(function(){var o=n.next();return o.done?o:E(e,t?--r:r++,o.value,o)})},rt.prototype[pn]=!0,e(ot,D),ot.prototype.includes=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t),r=0;return new _(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(it,I),it.prototype.has=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t);return new _(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(at,N),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){xt(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t);return new _(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){xt(r);var o=i(r);return E(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ot.prototype.cacheResult=rt.prototype.cacheResult=it.prototype.cacheResult=at.prototype.cacheResult=St,e(It,te),It.prototype.toString=function(){return this.__toString(Lt(this)+" {","}")},It.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},It.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},It.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Mt(this,Ee()))},It.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Lt(this));if(this._map&&!this._map.has(e)){if(t===this._defaultValues[e])return this}var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Mt(this,n)},It.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Mt(this,t)},It.prototype.wasAltered=function(){return this._map.wasAltered()},It.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},It.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},It.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Mt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Xn=It.prototype;Xn.delete=Xn.remove,Xn.deleteIn=Xn.removeIn=Un.removeIn,Xn.merge=Un.merge,Xn.mergeWith=Un.mergeWith,Xn.mergeIn=Un.mergeIn,Xn.mergeDeep=Un.mergeDeep,Xn.mergeDeepWith=Un.mergeDeepWith,Xn.mergeDeepIn=Un.mergeDeepIn,Xn.setIn=Un.setIn,Xn.update=Un.update,Xn.updateIn=Un.updateIn,Xn.withMutations=Un.withMutations,Xn.asMutable=Un.asMutable,Xn.asImmutable=Un.asImmutable,e(Bt,re),Bt.of=function(){return this(arguments)},Bt.fromKeys=function(e){return this(n(e).keySeq())},Bt.prototype.toString=function(){return this.__toString("Set {","}")},Bt.prototype.has=function(e){return this._map.has(e)},Bt.prototype.add=function(e){return Ft(this,this._map.set(e,!0))},Bt.prototype.remove=function(e){return Ft(this,this._map.remove(e))},Bt.prototype.clear=function(){return Ft(this,this._map.clear())},Bt.prototype.union=function(){var e=un.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yt(e,t)},Gt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yt(t,n)},Gt.prototype.pop=function(){return this.slice(1)},Gt.prototype.unshift=function(){return this.push.apply(this,arguments)},Gt.prototype.unshiftAll=function(e){return this.pushAll(e)},Gt.prototype.shift=function(){return this.pop.apply(this,arguments)},Gt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):$t()},Gt.prototype.slice=function(e,t){if(v(e,t,this.size))return this;var n=y(e,this.size);if(b(t,this.size)!==this.size)return ne.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Yt(r,o)},Gt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Gt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Gt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new _(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return k()})},Gt.isStack=Vt;var rr="@@__IMMUTABLE_STACK__@@",or=Gt.prototype;or[rr]=!0,or.withMutations=Un.withMutations,or.asMutable=Un.asMutable,or.asImmutable=Un.asImmutable,or.wasAltered=Un.wasAltered;var ir;t.Iterator=_,Jt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new ot(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"===typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return fe(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Qe(this.toKeyedSeq())},toOrderedSet:function(){return zt(a(this)?this.valueSeq():this)},toSet:function(){return Bt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new it(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Gt(a(this)?this.valueSeq():this)},toList:function(){return Fe(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return wt(this,gt(this,un.call(arguments,0)))},includes:function(e){return this.some(function(t){return $(t,e)})},entries:function(){return this.__iterator(_n)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return wt(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(bn)},map:function(e,t){return wt(this,ut(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,o;return arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return wt(this,lt(this,!0))},slice:function(e,t){return wt(this,dt(this,e,t,!0))},some:function(e,t){return!this.every(Zt(e),t)},sort:function(e){return wt(this,Tt(this,e))},values:function(){return this.__iterator(Tn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return h(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return ft(this,e,t)},equals:function(e){return J(this,e)},entrySeq:function(){var e=this;if(e._cache)return new M(e._cache);var t=e.toSeq().map(Qt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Zt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(g)},flatMap:function(e,t){return wt(this,yt(this,e,t))},flatten:function(e){return wt(this,vt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return $(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=Dt(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,gn):gn)===gn)return t}return r},groupBy:function(e,t){return pt(this,e,t)},has:function(e){return this.get(e,gn)!==gn},hasIn:function(e){return this.getIn(e,gn)!==gn},isSubset:function(e){return e="function"===typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"===typeof e.isSubset?e:t(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return $(t,e)})},keySeq:function(){return this.toSeq().map(Xt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return _t(this,e)},maxBy:function(e,t){return _t(this,t,e)},min:function(e){return _t(this,e?en(e):rn)},minBy:function(e,t){return _t(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return wt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return wt(this,mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Zt(e),t)},sortBy:function(e,t){return wt(this,Tt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return wt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return wt(this,ht(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Zt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var ar=t.prototype;ar[ln]=!0,ar[wn]=ar.values,ar.__toJS=ar.toArray,ar.__toStringMapper=tn,ar.inspect=ar.toSource=function(){return this.toString()},ar.chain=ar.flatMap,ar.contains=ar.includes,Jt(n,{flip:function(){return wt(this,st(this))},mapEntries:function(e,t){var n=this,r=0;return wt(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return wt(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var sr=n.prototype;return sr[cn]=!0,sr[wn]=ar.entries,sr.__toJS=ar.toObject,sr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Jt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return wt(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return wt(this,lt(this,!1))},slice:function(e,t){return wt(this,dt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=y(e,e<0?this.count():this.size);var r=this.slice(0,e);return wt(this,1===n?r:r.concat(d(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return wt(this,vt(this,e,!1))},get:function(e,t){return e=m(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=m(this,e))>=0&&(void 0!==this.size?this.size===1/0||e>>2];e.sigBytes-=t}},v=(r.BlockCipher=f.extend({cfg:f.cfg.extend({mode:h,padding:g}),reset:function(){f.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else{var r=n.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==r?this._mode.init(this,t&&t.words):(this._mode=r.call(n,this,t&&t.words),this._mode.__creator=r)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=n.format={},b=y.OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=i.create([1398893684,1701076831]).concat(n).concat(t);else var r=t;return r.toString(u)},parse:function(e){var t=u.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=i.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return v.create({ciphertext:t,salt:r})}},T=r.SerializableCipher=o.extend({cfg:o.extend({format:b}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return v.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=n.kdf={},E=_.OpenSSL={execute:function(e,t,n,r){r||(r=i.random(8));var o=c.create({keySize:t+n}).compute(e,r),a=i.create(o.words.slice(t),4*n);return o.sigBytes=4*t,v.create({key:o,iv:a,salt:r})}},k=r.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:E}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=r.kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var i=T.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=o.iv,T.decrypt.call(this,e,t,o.key,r)}})}()})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.createTable=t.createRow=t.createCell=t.TablePosition=t.isSelectionOutOfTable=t.isSelectionInTable=t.getCellsAtColumn=t.getCellsAtRow=t.forEachCells=t.getPosition=void 0;var o=n(188),i=r(o),a=n(189),s=r(a),u=n(486),l=r(u),c=n(487),f=r(c),p=n(488),d=r(p),h=n(489),m=r(h),g=n(67),v=r(g),y=n(490),b=r(y),T=n(491),_=r(T),E=n(492),k=r(E);t.getPosition=f.default,t.forEachCells=b.default,t.getCellsAtRow=_.default,t.getCellsAtColumn=k.default,t.isSelectionInTable=d.default,t.isSelectionOutOfTable=m.default,t.TablePosition=v.default,t.createCell=i.default,t.createRow=s.default,t.createTable=l.default},function(e,t){function n(){for(var e={},t=0;t=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i+=e,i=i.substr(0,n)}var o,i="";e.exports=r},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.isInCodeBlock=t.getIndent=t.getCurrentIndent=t.getCurrentCode=t.deserializeCode=void 0;var o=n(466),i=r(o),a=n(176),s=r(a),u=n(468),l=r(u),c=n(177),f=r(c),p=n(473),d=r(p);t.deserializeCode=i.default,t.getCurrentCode=s.default,t.getCurrentIndent=l.default,t.getIndent=f.default,t.isInCodeBlock=d.default},function(e,t,n){"use strict";var r=n(41);e.exports=function(e,t,n){return null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={}),r({},t,{type:String(e)},null!=n&&(Array.isArray(n)?{children:n}:{value:String(n)}))}},function(e,t,n){"use strict";function r(e){return"[object Array]"===w.call(e)}function o(e){return"[object ArrayBuffer]"===w.call(e)}function i(e){return"undefined"!==typeof FormData&&e instanceof FormData}function a(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function s(e){return"string"===typeof e}function u(e){return"number"===typeof e}function l(e){return"undefined"===typeof e}function c(e){return null!==e&&"object"===typeof e}function f(e){return"[object Date]"===w.call(e)}function p(e){return"[object File]"===w.call(e)}function d(e){return"[object Blob]"===w.call(e)}function h(e){return"[object Function]"===w.call(e)}function m(e){return c(e)&&h(e.pipe)}function g(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function v(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function b(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n1)for(var n=1;n1?{type:b[o],data:e.substring(1)}:{type:b[o]}:T}var i=new Uint8Array(e),o=i[0],a=p(e,1);return _&&"blob"===n&&(a=new _([a])),{type:b[o],data:a}},t.decodeBase64Packet=function(e,t){var n=b[e.charAt(0)];if(!l)return{type:n,data:{base64:!0,data:e.substr(1)}};var r=l.decode(e.substr(1));return"blob"===t&&_&&(r=new _([r])),{type:n,data:r}},t.encodePayload=function(e,n,r){function o(e){return e.length+":"+e}function i(e,r){t.encodePacket(e,!!a&&n,!1,function(e){r(null,o(e))})}"function"===typeof n&&(r=n,n=null);var a=f(e);return n&&a?_&&!v?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r):e.length?void u(e,i,function(e,t){return r(t.join(""))}):r("0:")},t.decodePayload=function(e,n,r){if("string"!==typeof e)return t.decodePayloadAsBinary(e,n,r);"function"===typeof n&&(r=n,n=null);var o;if(""===e)return r(T,0,1);for(var i,a,s="",u=0,l=e.length;u0;){for(var a=new Uint8Array(o),s=0===a[0],u="",l=1;255!==a[l];l++){if(u.length>310)return r(T,0,1);u+=a[l]}o=p(o,2+u.length),u=parseInt(u);var c=p(o,0,u);if(s)try{c=String.fromCharCode.apply(null,new Uint8Array(c))}catch(e){var f=new Uint8Array(c);c="";for(var l=0;l` for `tagNames`, not `"+t+"`");return!(!e||"object"!==typeof e||"element"!==e.type||"string"!==typeof e.tagName)&&(null===t||void 0===t||(n=e.tagName,"string"===typeof t?n===t:-1!==t.indexOf(n)))}e.exports=r},function(e,t,n){"use strict";var r=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var o=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",MENUITEM:"menuitem",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"},i=t.SPECIAL_ELEMENTS=Object.create(null);i[r.HTML]=Object.create(null),i[r.HTML][o.ADDRESS]=!0,i[r.HTML][o.APPLET]=!0,i[r.HTML][o.AREA]=!0,i[r.HTML][o.ARTICLE]=!0,i[r.HTML][o.ASIDE]=!0,i[r.HTML][o.BASE]=!0,i[r.HTML][o.BASEFONT]=!0,i[r.HTML][o.BGSOUND]=!0,i[r.HTML][o.BLOCKQUOTE]=!0,i[r.HTML][o.BODY]=!0,i[r.HTML][o.BR]=!0,i[r.HTML][o.BUTTON]=!0,i[r.HTML][o.CAPTION]=!0,i[r.HTML][o.CENTER]=!0,i[r.HTML][o.COL]=!0,i[r.HTML][o.COLGROUP]=!0,i[r.HTML][o.DD]=!0,i[r.HTML][o.DETAILS]=!0,i[r.HTML][o.DIR]=!0,i[r.HTML][o.DIV]=!0,i[r.HTML][o.DL]=!0,i[r.HTML][o.DT]=!0,i[r.HTML][o.EMBED]=!0,i[r.HTML][o.FIELDSET]=!0,i[r.HTML][o.FIGCAPTION]=!0,i[r.HTML][o.FIGURE]=!0,i[r.HTML][o.FOOTER]=!0,i[r.HTML][o.FORM]=!0,i[r.HTML][o.FRAME]=!0,i[r.HTML][o.FRAMESET]=!0,i[r.HTML][o.H1]=!0,i[r.HTML][o.H2]=!0,i[r.HTML][o.H3]=!0,i[r.HTML][o.H4]=!0,i[r.HTML][o.H5]=!0,i[r.HTML][o.H6]=!0,i[r.HTML][o.HEAD]=!0,i[r.HTML][o.HEADER]=!0,i[r.HTML][o.HGROUP]=!0,i[r.HTML][o.HR]=!0,i[r.HTML][o.HTML]=!0,i[r.HTML][o.IFRAME]=!0,i[r.HTML][o.IMG]=!0,i[r.HTML][o.INPUT]=!0,i[r.HTML][o.LI]=!0,i[r.HTML][o.LINK]=!0,i[r.HTML][o.LISTING]=!0,i[r.HTML][o.MAIN]=!0,i[r.HTML][o.MARQUEE]=!0,i[r.HTML][o.MENU]=!0,i[r.HTML][o.META]=!0,i[r.HTML][o.NAV]=!0,i[r.HTML][o.NOEMBED]=!0,i[r.HTML][o.NOFRAMES]=!0,i[r.HTML][o.NOSCRIPT]=!0,i[r.HTML][o.OBJECT]=!0,i[r.HTML][o.OL]=!0,i[r.HTML][o.P]=!0,i[r.HTML][o.PARAM]=!0,i[r.HTML][o.PLAINTEXT]=!0,i[r.HTML][o.PRE]=!0,i[r.HTML][o.SCRIPT]=!0,i[r.HTML][o.SECTION]=!0,i[r.HTML][o.SELECT]=!0,i[r.HTML][o.SOURCE]=!0,i[r.HTML][o.STYLE]=!0,i[r.HTML][o.SUMMARY]=!0,i[r.HTML][o.TABLE]=!0,i[r.HTML][o.TBODY]=!0,i[r.HTML][o.TD]=!0,i[r.HTML][o.TEMPLATE]=!0,i[r.HTML][o.TEXTAREA]=!0,i[r.HTML][o.TFOOT]=!0,i[r.HTML][o.TH]=!0,i[r.HTML][o.THEAD]=!0,i[r.HTML][o.TITLE]=!0,i[r.HTML][o.TR]=!0,i[r.HTML][o.TRACK]=!0,i[r.HTML][o.UL]=!0,i[r.HTML][o.WBR]=!0,i[r.HTML][o.XMP]=!0,i[r.MATHML]=Object.create(null),i[r.MATHML][o.MI]=!0,i[r.MATHML][o.MO]=!0,i[r.MATHML][o.MN]=!0,i[r.MATHML][o.MS]=!0,i[r.MATHML][o.MTEXT]=!0,i[r.MATHML][o.ANNOTATION_XML]=!0,i[r.SVG]=Object.create(null),i[r.SVG][o.TITLE]=!0,i[r.SVG][o.FOREIGN_OBJECT]=!0,i[r.SVG][o.DESC]=!0},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(){function t(e,t,n){for(var r=[],i=0,a=0;a>>6-a%4*2;r[i>>>2]|=(s|u)<<24-i%4*8,i++}return o.create(r,i)}var n=e,r=n.lib,o=r.WordArray,i=n.enc;i.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255,s=t[i+1>>>2]>>>24-(i+1)%4*8&255,u=t[i+2>>>2]>>>24-(i+2)%4*8&255,l=a<<16|s<<8|u,c=0;c<4&&i+.75*c>>6*(3-c)&63));var f=r.charAt(64);if(f)for(;o.length%4;)o.push(f);return o.join("")},parse:function(e){var n=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>32-i)+t}function r(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<>>32-i)+t}function o(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<>>32-i)+t}function i(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<>>32-i)+t}var a=e,s=a.lib,u=s.WordArray,l=s.Hasher,c=a.algo,f=[];!function(){for(var e=0;e<64;e++)f[e]=4294967296*t.abs(t.sin(e+1))|0}();var p=c.MD5=l.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var s=t+a,u=e[s];e[s]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}var l=this._hash.words,c=e[t+0],p=e[t+1],d=e[t+2],h=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],T=e[t+9],_=e[t+10],E=e[t+11],k=e[t+12],w=e[t+13],x=e[t+14],C=e[t+15],A=l[0],O=l[1],S=l[2],N=l[3];A=n(A,O,S,N,c,7,f[0]),N=n(N,A,O,S,p,12,f[1]),S=n(S,N,A,O,d,17,f[2]),O=n(O,S,N,A,h,22,f[3]),A=n(A,O,S,N,m,7,f[4]),N=n(N,A,O,S,g,12,f[5]),S=n(S,N,A,O,v,17,f[6]),O=n(O,S,N,A,y,22,f[7]),A=n(A,O,S,N,b,7,f[8]),N=n(N,A,O,S,T,12,f[9]),S=n(S,N,A,O,_,17,f[10]),O=n(O,S,N,A,E,22,f[11]),A=n(A,O,S,N,k,7,f[12]),N=n(N,A,O,S,w,12,f[13]),S=n(S,N,A,O,x,17,f[14]),O=n(O,S,N,A,C,22,f[15]),A=r(A,O,S,N,p,5,f[16]),N=r(N,A,O,S,v,9,f[17]),S=r(S,N,A,O,E,14,f[18]),O=r(O,S,N,A,c,20,f[19]),A=r(A,O,S,N,g,5,f[20]),N=r(N,A,O,S,_,9,f[21]),S=r(S,N,A,O,C,14,f[22]),O=r(O,S,N,A,m,20,f[23]),A=r(A,O,S,N,T,5,f[24]),N=r(N,A,O,S,x,9,f[25]),S=r(S,N,A,O,h,14,f[26]),O=r(O,S,N,A,b,20,f[27]),A=r(A,O,S,N,w,5,f[28]),N=r(N,A,O,S,d,9,f[29]),S=r(S,N,A,O,y,14,f[30]),O=r(O,S,N,A,k,20,f[31]),A=o(A,O,S,N,g,4,f[32]),N=o(N,A,O,S,b,11,f[33]),S=o(S,N,A,O,E,16,f[34]),O=o(O,S,N,A,x,23,f[35]),A=o(A,O,S,N,p,4,f[36]),N=o(N,A,O,S,m,11,f[37]),S=o(S,N,A,O,y,16,f[38]),O=o(O,S,N,A,_,23,f[39]),A=o(A,O,S,N,w,4,f[40]),N=o(N,A,O,S,c,11,f[41]),S=o(S,N,A,O,h,16,f[42]),O=o(O,S,N,A,v,23,f[43]),A=o(A,O,S,N,T,4,f[44]),N=o(N,A,O,S,k,11,f[45]),S=o(S,N,A,O,C,16,f[46]),O=o(O,S,N,A,d,23,f[47]),A=i(A,O,S,N,c,6,f[48]),N=i(N,A,O,S,y,10,f[49]),S=i(S,N,A,O,x,15,f[50]),O=i(O,S,N,A,g,21,f[51]),A=i(A,O,S,N,k,6,f[52]),N=i(N,A,O,S,h,10,f[53]),S=i(S,N,A,O,_,15,f[54]),O=i(O,S,N,A,p,21,f[55]),A=i(A,O,S,N,b,6,f[56]),N=i(N,A,O,S,C,10,f[57]),S=i(S,N,A,O,v,15,f[58]),O=i(O,S,N,A,w,21,f[59]),A=i(A,O,S,N,m,6,f[60]),N=i(N,A,O,S,E,10,f[61]),S=i(S,N,A,O,d,15,f[62]),O=i(O,S,N,A,T,21,f[63]),l[0]=l[0]+A|0,l[1]=l[1]+O|0,l[2]=l[2]+S|0,l[3]=l[3]+N|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=l.clone.call(this);return e._hash=this._hash.clone(),e}});a.MD5=l._createHelper(p),a.HmacMD5=l._createHmacHelper(p)}(Math),e.MD5})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.init(t,n)}return e.prototype.init=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||a,this.options=t,this.debug=t.debug},e.prototype.setDebug=function(e){this.debug=e},e.prototype.log=function(){for(var e=arguments.length,t=Array(e),n=0;n100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(e){return e>=l?Math.round(e/l)+"d":e>=u?Math.round(e/u)+"h":e>=s?Math.round(e/s)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function o(e){return i(e,l,"day")||i(e,u,"hour")||i(e,s,"minute")||i(e,a,"second")||e+" ms"}function i(e,t,n){if(!(e0)return n(e);if("number"===i&&!1===isNaN(e))return t.long?o(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){"use strict";function r(e,t,n){var r=t.document;if(!n){if(!t.selection.startKey)return null;n=t.startBlock}var o=r.getParent(n.key);return o&&o.type===e.typeItem?o:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){function u(e,r,i){var u;return r=r||(i?0:null),t&&e.type!==t&&!o(t,e,r,i||null)||(u=n(e,r,i||null)),u===s?u:e.children&&u!==a&&l(e.children,e)===s?s:u}function l(e,t){for(var n,o,a=r?-1:1,l=(r?e.length:-1)+a;l>-1&&l=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(293),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(16))},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(312),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(16))},function(e,t,n){"use strict";function r(e){var t=ce.exec(e);if(!t)throw new Error('Invalid offset key string "'+e+'".');var n=se(t,3),r=(n[0],n[1]),o=n[2];return{key:r,index:parseInt(o,10)}}function o(e){return e.key+":"+e.index}function i(e,t){var n=Object(j.Set)().asMutable(),r=[];return a(e,t).forEach(function(e){e.isRangeStart?n.add(e.decoration):e.isRangeEnd?n.remove(e.decoration):r.push(n.toList())}),r}function a(e,t){if(t.isEmpty())return e.nodes.toArray().map(function(e,t){return{child:e,index:t}});var n=re({},e.key,0),r=1;e.forEachDescendant(function(e){n[e.key]=r,r+=1});var o=e.nodes.toArray(),i=o.map(function(e,t){return{child:e,index:t,order:n[e.key]}});return t.forEach(function(e){var t=n[e.startKey],a=void 0===t?0:s(o,n,t);i.push({isRangeStart:!0,order:a-.5,decoration:e});var u=(n[e.endKey]||r)+.5;i.push({isRangeEnd:!0,order:u,decoration:e})}),i.sort(function(e,t){return e.order>t.order?1:-1})}function s(e,t,n){var r=e.findIndex(function(e){return n1&&void 0!==arguments[1]?arguments[1]:window;H.Node.isNode(e)&&(e=e.key);var n=t.document.querySelector('[data-key="'+e+'"]');if(!n)throw new Error('Unable to find a DOM node for "'+e+'". This is often because of forgetting to add `props.attributes` to a custom component.');return n}function l(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,r=u(e,n),o=0,i=void 0,a=n.document.createNodeIterator(r,NodeFilter.SHOW_TEXT,function(){return NodeFilter.FILTER_ACCEPT},!1);i=a.nextNode();){var s=i.textContent.length,l=o+s;if(t<=l){var c=t-o;return{node:i,offset:c>=0?c:0}}o=l}return null}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=e.anchorKey,r=e.anchorOffset,o=e.focusKey,i=e.focusOffset,a=e.isBackward,s=e.isCollapsed,u=l(n,r,t),c=s?u:l(o,i,t);if(!u||!c)return null;var f=t.document.createRange(),p=a?c:u,d=a?u:c;return f.setStart(p.node,p.offset),f.setEnd(d.node,d.offset),f}function f(e,t,n){var r=p(e,t),o=r.node,i=r.offset,a=z()(e),s=o.parentNode,u=s.closest(Ae),l=void 0,c=void 0;if(u){var f=a.document.createRange(),d=u.closest(Oe);f.setStart(d,0),f.setEnd(o,i),c=d,l=f.toString().length}else{var h=s.closest(Se);if(!h)return null;if(!(u=h.querySelector(Ae)))return null;c=u,l=c.textContent.length}l==c.textContent.length&&s.hasAttribute(we)&&l--;var m=u.getAttribute(Ce);if(!m)return null;var g=fe.parse(m),v=g.key;return n.document.hasDescendant(v)?{key:v,offset:l}:null}function p(e,t){if(1==e.nodeType&&e.childNodes.length){var n=t==e.childNodes.length,r=n?"backward":"forward",o=n?t-1:t;for(e=d(e,o,r);1==e.nodeType&&e.childNodes.length;){e=d(e,n?e.childNodes.length-1:0,r)}t=n?e.textContent.length:0}return{node:e,offset:t}}function d(e,t,n){for(var r=e.childNodes,o=r[t],i=t,a=!1,s=!1;(8==o.nodeType||1==o.nodeType&&0==o.childNodes.length||1==o.nodeType&&"false"==o.getAttribute("contenteditable"))&&(!a||!s);)i>=r.length?(a=!0,i=t-1,n="backward"):i<0?(s=!0,i=t+1,n="forward"):(o=r[i],"forward"==n&&i++,"backward"==n&&i--);return o||null}function h(e,t){var n=e.anchorNode||e.startContainer;if(!n)return null;var r=z()(n);(e instanceof r.Range||r.StaticRange&&e instanceof r.StaticRange)&&(e={anchorNode:e.startContainer,anchorOffset:e.startOffset,focusNode:e.endContainer,focusOffset:e.endOffset});var o=e,i=o.anchorNode,a=o.anchorOffset,s=o.focusNode,u=o.focusOffset,c=o.isCollapsed,p=f(i,a,t),d=c?p:f(s,u,t);if(!p||!d)return null;if(W.d||W.b){var h=l(p.key,p.offset),m=l(d.key,d.offset);e={anchorNode:h.node,anchorOffset:h.offset,focusNode:m.node,focusOffset:m.offset}}return H.Range.create({anchorKey:p.key,anchorOffset:p.offset,focusKey:d.key,focusOffset:d.offset,isBackward:!c&&q()(e),isFocused:!0})}function m(e,t){for(var n=e.parentNode,r=void 0;!r&&n.parentNode;){var o=t.getComputedStyle(n),i=o.overflowY;if(Ne.includes(i)){r=n;break}n=n.parentNode}return r||t.document.body}function g(e){if(!De&&e.anchorNode){var t=z()(e.anchorNode),n=m(e.anchorNode,t),r=n==t.document.body||n==t.document.documentElement,o=q()(e),i=e.getRangeAt(0).cloneRange();i.collapse(o);var a=i.getBoundingClientRect();W.g&&i.collapsed&&0==a.top&&0==a.height&&(0==i.startOffset?i.setEnd(i.endContainer,1):i.setStart(i.startContainer,i.startOffset-1),a=i.getBoundingClientRect(),0==a.top&&0==a.height&&i.getClientRects().length&&(a=i.getClientRects()[0]));var s=void 0,u=void 0,l=void 0,c=void 0,f=0,p=0,d=0,h=0,g=0,v=0,y=0,b=0;if(r){var T=t.innerWidth,_=t.innerHeight,E=t.pageYOffset,k=t.pageXOffset;s=T,u=_,l=E,c=k}else{var w=n.offsetWidth,x=n.offsetHeight,C=n.scrollTop,A=n.scrollLeft,O=t.getComputedStyle(n),S=O.borderTopWidth,N=O.borderBottomWidth,D=O.borderLeftWidth,I=O.borderRightWidth,M=O.paddingTop,L=O.paddingBottom,P=O.paddingLeft,R=O.paddingRight,B=n.getBoundingClientRect();s=w,u=x,f=B.top+parseInt(S,10),p=B.left+parseInt(D,10),d=parseInt(S,10)+parseInt(N,10),h=parseInt(D,10)+parseInt(I,10),g=parseInt(M,10),v=parseInt(L,10),y=parseInt(P,10),b=parseInt(R,10),l=C,c=A}var j=a.top+l-f,F=a.left+c-p,H=c,U=l;Fc+s&&(H=F+h+b-s),jl+u&&(U=j+d+v+a.height-u),r?t.scrollTo(H,U):(n.scrollTop=U,n.scrollLeft=H)}}function v(e){var t=window.document;if(t&&t.body.createTextRange){var n=t.body.createTextRange();n.collapse(),n.select()}else e.removeAllRanges()}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.fragment,r=z()(e.target),o=r.getSelection(),i=t.startKey,a=t.endKey,s=t.document.getClosestVoid(i),l=t.document.getClosestVoid(a);if(!o.isCollapsed||s){var c=Y.a.serializeNode(n),f=o.getRangeAt(0),p=f.cloneContents(),d=p.childNodes[0];if(p.childNodes.forEach(function(e){e.textContent&&""!==e.textContent.trim()&&(d=e)}),l){var h=f.cloneRange(),m=u(l,r);h.setEndAfter(m),p=h.cloneContents()}if(s&&(d=p.childNodes[0].childNodes[1].firstChild),[].slice.call(p.querySelectorAll(xe)).forEach(function(e){var t="n"===e.getAttribute(we);e.textContent=t?"\n":""}),3==d.nodeType){var g=r.document.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),p.appendChild(g),d=g}d.setAttribute("data-slate-fragment",c);var y=r.document.createElement("div");if(y.appendChild(p),e.clipboardData&&e.clipboardData.setData)return e.preventDefault(),e.clipboardData.setData(Be,y.textContent),e.clipboardData.setData(Pe,c),void e.clipboardData.setData(Re,y.innerHTML);var b=e.target.closest("[data-slate-editor]");y.setAttribute("contenteditable",!0),y.style.position="absolute",y.style.left="-9999px",b.appendChild(y),o.selectAllChildren(y),r.requestAnimationFrame(function(){b.removeChild(y),v(o),o.addRange(f)})}}function b(e,t){var n=e.closest("[data-key]");if(!n)return null;var r=n.getAttribute("data-key");return r?t.document.getNode(r)||null:null}function T(e,t){e.nativeEvent&&(e=e.nativeEvent);var n=e,r=n.x,o=n.y,i=n.target;if(null==r||null==o)return null;var a=t.document,s=b(i,t);if(!s)return null;if(s.isVoid){var u=i.getBoundingClientRect(),l="inline"==s.object?r-u.left0&&t.splitBlock(),t.insertText(e)})}"fragment"==c&&t.insertFragment(f),"node"==c&&H.Block.isBlock(p)&&t.insertBlock(p.regenerateKey()).removeNodeByKey(p.key),"node"==c&&H.Inline.isInline(p)&&t.insertInline(p.regenerateKey()).removeNodeByKey(p.key);var y=o.getNode(s.focusKey),b=u(y,a);b&&b.dispatchEvent(new MouseEvent("mouseup",{view:a,bubbles:!0,cancelable:!0}))}}function c(e,t,n){We("onInput",{event:e});var r=z()(e.target),o=t.value,i=r.getSelection(),a=i.anchorNode,s=f(a,0,o);if(s){var u=o.document,l=o.selection,c=u.getDescendant(s.key),p=u.getClosestBlock(c.key),d=c.getLeaves(),h=p.getLastText(),m=d.last(),g=0,v=0,y=d.find(function(e){if(g=v,(v+=e.text.length)>s.offset)return!0})||m,b=y.text,T=a.textContent,_=c==h,E=y==m,k=T.charAt(T.length-1);if(_&&E&&"\n"==k&&(T=T.slice(0,-1)),T!=b){var w=T.length-b.length,x=l.collapseToEnd().move(w),C=l.moveAnchorTo(s.key,g).moveFocusTo(s.key,v);t.insertTextAtRange(C,T,y.marks).select(x)}}}function p(e,t,n){We("onKeyDown",{event:e});var r=t.value;if(J.a.isSplitBlock(e)&&!W.e)return r.isInVoid?t.collapseToStartOfNextText():t.splitBlock();if(J.a.isDeleteCharBackward(e)&&!W.e)return t.deleteCharBackward();if(J.a.isDeleteCharForward(e)&&!W.e)return t.deleteCharForward();if(J.a.isDeleteLineBackward(e))return t.deleteLineBackward();if(J.a.isDeleteLineForward(e))return t.deleteLineForward();if(J.a.isDeleteWordBackward(e))return t.deleteWordBackward();if(J.a.isDeleteWordForward(e))return t.deleteWordForward();if(J.a.isRedo(e))return t.redo();if(J.a.isUndo(e))return t.undo();if(J.a.isCollapseLineBackward(e))return e.preventDefault(),t.collapseLineBackward();if(J.a.isCollapseLineForward(e))return e.preventDefault(),t.collapseLineForward();if(J.a.isExtendLineBackward(e))return e.preventDefault(),t.extendLineBackward();if(J.a.isExtendLineForward(e))return e.preventDefault(),t.extendLineForward();if(J.a.isCollapseCharBackward(e)){var o=r.document,i=r.isInVoid,a=r.previousText,s=r.startText,u=a&&o.hasVoidParent(a.key);if(i||u||""==s.text)return e.preventDefault(),t.collapseCharBackward()}if(J.a.isCollapseCharForward(e)){var l=r.document,c=r.isInVoid,f=r.nextText,p=r.startText,d=f&&l.hasVoidParent(f.key);if(c||d||""==p.text)return e.preventDefault(),t.collapseCharForward()}if(J.a.isExtendCharBackward(e)){var h=r.document,m=r.isInVoid,g=r.previousText,v=r.startText,y=g&&h.hasVoidParent(g.key);if(m||y||""==v.text)return e.preventDefault(),t.extendCharBackward()}if(J.a.isExtendCharForward(e)){var b=r.document,T=r.isInVoid,_=r.nextText,E=r.startText,k=_&&b.hasVoidParent(_.key);if(T||k||""==E.text)return e.preventDefault(),t.extendCharForward()}}function d(e,t,n){We("onPaste",{event:e});var r=_(e),o=r.type,i=r.fragment,a=r.text;if("fragment"==o&&t.insertFragment(i),"text"==o||"html"==o){if(!a)return;var s=t.value,u=s.document,l=s.selection,c=s.startBlock;if(c.isVoid)return;var f=c,p=u.getInsertMarksAtRange(l),d=$.a.deserialize(a,{defaultBlock:f,defaultMarks:p}).document;t.insertFragment(d)}}function m(e,t,n){We("onSelect",{event:e});var r=z()(e.target),o=t.value,i=o.document,a=r.getSelection();if(!a.rangeCount)return void t.blur();var s=h(a,o);if(s){var u=s,l=u.anchorKey,c=u.anchorOffset,f=u.focusKey,p=u.focusOffset,d=i.getNode(l),m=i.getNode(f),g=i.getClosestInline(l),v=i.getClosestInline(f),y=i.getClosestBlock(f),b=i.getClosestBlock(l);if(b&&!b.isVoid&&0==c&&y&&y.isVoid&&0!=p&&(s=s.set("focusOffset",0)),g&&!g.isVoid&&c==d.text.length){var T=i.getClosestBlock(l),_=T.getNextText(l);_&&(s=s.moveAnchorTo(_.key,0))}if(v&&!v.isVoid&&p==m.text.length){var E=i.getClosestBlock(f),k=E.getNextText(f);k&&(s=s.moveFocusTo(k.key,0))}s=s.normalize(i),t.select(s)}}function g(e,t){var n=ee.reduce(function(e,n){return e[n]=t[n],e},{});return I.a.createElement(Me,oe({},n,{autoCorrect:e.autoCorrect,className:e.className,children:e.children,editor:t,readOnly:e.readOnly,role:e.role,spellCheck:e.spellCheck,style:e.style,tabIndex:e.tabIndex,tagName:e.tagName}))}function v(e){var t=e.attributes,n=e.children,r=e.node;if("block"==r.object||"inline"==r.object){var o="block"==r.object?"div":"span",i={position:"relative"};return I.a.createElement(o,oe({},t,{style:i}),n)}}function E(e){var t=e.editor,n=e.node;if(t.props.placeholder&&!t.state.isComposing&&"block"==n.object&&H.Text.isTextList(n.nodes)&&""==n.text&&!(t.value.document.getBlocks().size>1)){var r={pointerEvents:"none",display:"inline-block",width:"0",maxWidth:"100%",whiteSpace:"nowrap",opacity:"0.333"};return I.a.createElement("span",{contentEditable:!1,style:r},t.props.placeholder)}}var k=null;return{onBeforeInput:e,onBlur:t,onClick:n,onCopy:r,onCut:o,onDragEnd:i,onDragOver:a,onDragStart:s,onDrop:l,onInput:c,onKeyDown:p,onPaste:d,onSelect:m,renderEditor:g,renderNode:v,renderPlaceholder:E}}function A(){function e(e,t,n){return!!n.props.readOnly||(!(!W.e&&!W.a||!W.h.beforeinput)||void Ge("onBeforeInput",{event:e}))}function t(e,t,n){if(k)return!0;if(n.props.readOnly)return!0;var r=t.value,o=e.relatedTarget,i=e.target,a=z()(i);if(T==a.document.activeElement)return!0;if(o){var s=Object(X.findDOMNode)(n);if(o==s)return!0;if(o.hasAttribute("data-slate-spacer"))return!0;var u=b(o,r);if(s.contains(o)&&u&&!u.isVoid)return!0}Ge("onBlur",{event:e})}function n(e,t){e.value.schema!=t.schema&&e.setValue({schema:t.schema},{save:!1}).normalize(),Ge("onChange")}function r(e,t,n){var r=_;window.requestAnimationFrame(function(){_>r||(E=!1,n.state.isComposing&&n.setState({isComposing:!1}))}),Ge("onCompositionEnd",{event:e})}function o(e,t,n){E=!0,_++,n.state.isComposing||n.setState({isComposing:!0}),Ge("onCompositionStart",{event:e})}function i(e,t,n){var r=z()(e.target);k=!0,r.requestAnimationFrame(function(){return k=!1}),Ge("onCopy",{event:e})}function a(e,t,n){if(n.props.readOnly)return!0;var r=z()(e.target);k=!0,r.requestAnimationFrame(function(){return k=!1}),Ge("onCut",{event:e})}function s(e,t,n){w=!1,Ge("onDragEnd",{event:e})}function u(e,t,n){Ge("onDragEnter",{event:e})}function l(e,t,n){Ge("onDragExit",{event:e})}function c(e,t,n){Ge("onDragLeave",{event:e})}function f(e,t,n){b(e.target,n.value).isVoid&&e.preventDefault(),w||(w=!0,e.nativeEvent.dataTransfer.dropEffect="move"),Ge("onDragOver",{event:e})}function p(e,t,n){w=!0,Ge("onDragStart",{event:e})}function d(e,t,n){if(n.props.readOnly)return!0;e.preventDefault(),Ge("onDrop",{event:e})}function h(e,t,n){if(k)return!0;if(n.props.readOnly)return!0;var r=Object(X.findDOMNode)(n),o=z()(e.target);if(T=o.document.activeElement,W.c&&e.target!=r)return r.focus(),!0;Ge("onFocus",{event:e})}function m(e,t,n){return!!E||(!!t.value.isBlurred||void Ge("onInput",{event:e}))}function g(e,t,n){return!!n.props.readOnly||(E?(J.a.isComposing(e)&&e.preventDefault(),!0):(J.a.isContentEditable(e)&&!W.e&&e.preventDefault(),void Ge("onKeyDown",{event:e})))}function v(e,t,n){if(n.props.readOnly)return!0;e.preventDefault(),Ge("onPaste",{event:e})}function y(e,t,n){if(k)return!0;if(E)return!0;if(n.props.readOnly)return!0;var r=z()(e.target);T=r.document.activeElement,Ge("onSelect",{event:e})}var T=null,_=0,E=!1,k=!1,w=!1;return{onBeforeInput:e,onBlur:t,onChange:n,onCompositionEnd:r,onCompositionStart:o,onCopy:i,onCut:a,onDragEnd:s,onDragEnter:u,onDragExit:l,onDragLeave:c,onDragOver:f,onDragStart:p,onDrop:d,onFocus:h,onInput:m,onKeyDown:g,onPaste:v,onSelect:y}}function O(){}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Editor",function(){return Ye}),n.d(t,"cloneFragment",function(){return y}),n.d(t,"findDOMNode",function(){return u}),n.d(t,"findDOMRange",function(){return c}),n.d(t,"findNode",function(){return b}),n.d(t,"findRange",function(){return h}),n.d(t,"getEventRange",function(){return T}),n.d(t,"getEventTransfer",function(){return _}),n.d(t,"setEventTransfer",function(){return x}),n.d(t,"AfterPlugin",function(){return C}),n.d(t,"BeforePlugin",function(){return A});var S=n(334),N=n.n(S),D=n(1),I=n.n(D),M=n(4),L=n.n(M),P=n(336),R=n(449),B=n.n(R),j=n(5),F=(n.n(j),n(90)),H=n(0),U=n(450),z=n.n(U),K=n(453),q=n.n(K),W=n(173),G=n(455),V=n.n(G),Y=n(459),$=n(461),J=n(462),X=n(18),Q=(n.n(X),n(463)),Z=n.n(Q),ee=["onBeforeInput","onBlur","onClick","onCompositionEnd","onCompositionStart","onCopy","onCut","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onInput","onFocus","onKeyDown","onKeyUp","onPaste","onSelect"],te=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ne=function(){function e(e,t){for(var n=0;n1?n-1:0),o=1;o1?n-1:0),o=1;o1?n-1:0),o=1;o1?n-1:0),o=1;o5&&e.tmp.resolves==e.tmp.updates&&F.default.warn("A Slate is re-resolving `props.plugins` or `props.schema` on each update, which leads to poor performance. This is often due to passing in a new `schema` or `plugins` prop with each render by declaring them inline in your render function. Do not do this!")}var i=t.value.change();r.run("onChange",i,e),e.queueChange(i),e.setState({value:i.value})},this.componentDidMount=function(){e.flushChange(),e.props.autoFocus&&e.focus()},this.componentDidUpdate=function(){e.flushChange()},this.queueChange=function(t){t.operations.size&&(Ve("queueChange",{change:t}),e.tmp.change=t)},this.flushChange=function(){var t=e.tmp.change;t&&(Ve("flushChange",{change:t}),delete e.tmp.change,e.props.onChange(t))},this.change=function(){var t,n=(t=e.value.change()).call.apply(t,arguments);e.onChange(n)},this.blur=function(){e.change(function(e){return e.blur()})},this.focus=function(){e.change(function(e){return e.focus()})},this.onEvent=function(t,n){e.change(function(r){e.stack.run(t,n,r,e)})},this.onChange=function(t){Ve("onChange",{change:t}),e.stack.run("onChange",t,e);var n=t.value,r=e.props.onChange;n!=e.value&&r(t)},this.resolvePlugins=function(t,n){var r=A(),o=C(),i={schema:n||{}},a=!0,s=!1,u=void 0;try{for(var l,c=le[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var f=l.value;(function(t){"onChange"==t||("schema"==t||(i[t]=function(){var n;return e.props[t]&&(n=e.props)[t].apply(n,arguments)}))})(f)}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}return[r,i].concat(ue(t||[]),[o])}},Je=!0,Xe=!1,Qe=void 0;try{for(var Ze,et=ee[Symbol.iterator]();!(Je=(Ze=et.next()).done);Je=!0){var tt=Ze.value;Ye.propTypes[tt]=L.a.func}}catch(e){Xe=!0,Qe=e}finally{try{!Je&&et.return&&et.return()}finally{if(Xe)throw Qe}}var nt={Editor:Ye,cloneFragment:y,findDOMNode:u,findDOMRange:c,findNode:b,findRange:h,getEventRange:T,getEventTransfer:_,setEventTransfer:x,AfterPlugin:C,BeforePlugin:A};t.default=nt},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return t=n(r(t.split("/"),function(e){return!!e}),!o).join("/"),(o?"/":"")+t||"."},t.normalize=function(e){var o=t.isAbsolute(e),i="/"===a(e,-1);return e=n(r(e.split("/"),function(e){return!!e}),!o).join("/"),e||o||(e="."),e&&i&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u0?e+"px":null}function i(){return document.body.clientWidth0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H;return t?e.split(" ").map(function(e){return t[e]||e}).join(" "):e}function c(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function f(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,o=void 0,i={};r>0;)r-=1,o=n[r],i[o]=e[o];return i}function p(e){U[e]||("undefined"!==typeof console&&console.error(e),U[e]=!0)}function d(e,t){return function(n,r,o){null!==n[r]&&"undefined"!==typeof n[r]&&p('"'+r+'" property of "'+o+'" has been deprecated.\n'+t);for(var i=arguments.length,a=Array(i>3?i-3:0),s=3;s=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},ee=function(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},te={tag:A.a.oneOfType([A.a.func,A.a.string]),fluid:A.a.bool,className:A.a.string,cssModule:A.a.object},ne={tag:"div"},re=function(e){var t=e.className,n=e.cssModule,r=e.fluid,o=e.tag,i=Z(e,["className","cssModule","fluid","tag"]),a=l(S()(t,r?"container-fluid":"container"),n);return x.a.createElement(o,X({},i,{className:a}))};re.propTypes=te,re.defaultProps=ne;var oe={tag:A.a.oneOfType([A.a.func,A.a.string]),noGutters:A.a.bool,className:A.a.string,cssModule:A.a.object},ie={tag:"div"},ae=function(e){var t=e.className,n=e.cssModule,r=e.noGutters,o=e.tag,i=Z(e,["className","cssModule","noGutters","tag"]),a=l(S()(t,r?"no-gutters":null,"row"),n);return x.a.createElement(o,X({},i,{className:a}))};ae.propTypes=oe,ae.defaultProps=ie;var se=["xs","sm","md","lg","xl"],ue=A.a.oneOfType([A.a.number,A.a.string]),le=A.a.oneOfType([A.a.bool,A.a.number,A.a.string,A.a.shape({size:A.a.oneOfType([A.a.bool,A.a.number,A.a.string]),push:d(ue,'Please use the prop "order"'),pull:d(ue,'Please use the prop "order"'),order:ue,offset:ue})]),ce={tag:A.a.oneOfType([A.a.func,A.a.string]),xs:le,sm:le,md:le,lg:le,xl:le,className:A.a.string,cssModule:A.a.object,widths:A.a.array},fe={tag:"div",widths:se},pe=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},de=function(e){var t=e.className,n=e.cssModule,r=e.widths,o=e.tag,i=Z(e,["className","cssModule","widths","tag"]),a=[];r.forEach(function(t,r){var o=e[t];if(delete i[t],o||""===o){var s=!r;if(M()(o)){var u,c=s?"-":"-"+t+"-",f=pe(s,t,o.size);a.push(l(S()((u={},J(u,f,o.size||""===o.size),J(u,"order"+c+o.order,o.order||0===o.order),J(u,"offset"+c+o.offset,o.offset||0===o.offset),u)),n))}else{var p=pe(s,t,o);a.push(p)}}}),a.length||a.push("col");var s=l(S()(t,a),n);return x.a.createElement(o,X({},i,{className:s}))};de.propTypes=ce,de.defaultProps=fe;var he={light:A.a.bool,dark:A.a.bool,inverse:d(A.a.bool,'Please use the prop "dark"'),full:A.a.bool,fixed:A.a.string,sticky:A.a.string,color:A.a.string,role:A.a.string,tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object,toggleable:d(A.a.oneOfType([A.a.bool,A.a.string]),'Please use the prop "expand"'),expand:A.a.oneOfType([A.a.bool,A.a.string])},me={tag:"nav",expand:!1},ge=function(e){return!1!==e&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-"+e)},ve={xs:"sm",sm:"md",md:"lg",lg:"xl"},ye=function(e){return void 0!==e&&"xl"!==e&&(!1===e?"navbar-expand":"navbar-expand-"+(!0===e?"sm":ve[e]||e))},be=function(e){var t,n=e.toggleable,r=e.expand,o=e.className,i=e.cssModule,a=e.light,s=e.dark,u=e.inverse,c=e.fixed,f=e.sticky,p=e.color,d=e.tag,h=Z(e,["toggleable","expand","className","cssModule","light","dark","inverse","fixed","sticky","color","tag"]),m=l(S()(o,"navbar",ge(r)||ye(n),(t={"navbar-light":a,"navbar-dark":u||s},J(t,"bg-"+p,p),J(t,"fixed-"+c,c),J(t,"sticky-"+f,f),t)),i);return x.a.createElement(d,X({},h,{className:m}))};be.propTypes=he,be.defaultProps=me;var Te={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},_e={tag:"a"},Ee=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"navbar-brand"),n);return x.a.createElement(r,X({},o,{className:i}))};Ee.propTypes=Te,Ee.defaultProps=_e;var ke={tag:A.a.oneOfType([A.a.func,A.a.string]),type:A.a.string,className:A.a.string,cssModule:A.a.object,children:A.a.node},we={tag:"button",type:"button"},xe=function(e){var t=e.className,n=e.cssModule,r=e.children,o=e.tag,i=Z(e,["className","cssModule","children","tag"]),a=l(S()(t,"navbar-toggler"),n);return x.a.createElement(o,X({},i,{className:a}),r||x.a.createElement("span",{className:l("navbar-toggler-icon",n)}))};xe.propTypes=ke,xe.defaultProps=we;var Ce={tabs:A.a.bool,pills:A.a.bool,vertical:A.a.oneOfType([A.a.bool,A.a.string]),horizontal:A.a.string,justified:A.a.bool,fill:A.a.bool,navbar:A.a.bool,card:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Ae={tag:"ul",vertical:!1},Oe=function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-"+e+"-column")},Se=function(e){var t=e.className,n=e.cssModule,r=e.tabs,o=e.pills,i=e.vertical,a=e.horizontal,s=e.justified,u=e.fill,c=e.navbar,f=e.card,p=e.tag,d=Z(e,["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"]),h=l(S()(t,c?"navbar-nav":"nav",!!a&&"justify-content-"+a,Oe(i),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":o,"card-header-pills":f&&o,"nav-justified":s,"nav-fill":u}),n);return x.a.createElement(p,X({},d,{className:h}))};Se.propTypes=Ce,Se.defaultProps=Ae;var Ne={tag:A.a.oneOfType([A.a.func,A.a.string]),active:A.a.bool,className:A.a.string,cssModule:A.a.object},De={tag:"li"},Ie=function(e){var t=e.className,n=e.cssModule,r=e.active,o=e.tag,i=Z(e,["className","cssModule","active","tag"]),a=l(S()(t,"nav-item",!!r&&"active"),n);return x.a.createElement(o,X({},i,{className:a}))};Ie.propTypes=Ne,Ie.defaultProps=De;var Me={disabled:A.a.bool,dropup:d(A.a.bool,'Please use the prop "direction" with the value "up".'),direction:A.a.oneOf(["up","down","left","right"]),group:A.a.bool,isOpen:A.a.bool,nav:A.a.bool,active:A.a.bool,addonType:A.a.oneOfType([A.a.bool,A.a.oneOf(["prepend","append"])]),size:A.a.string,tag:A.a.string,toggle:A.a.func,children:A.a.node,className:A.a.string,cssModule:A.a.object,inNavbar:A.a.bool},Le={isOpen:!1,direction:"down",nav:!1,active:!1,addonType:!1,inNavbar:!1},Pe={toggle:A.a.func.isRequired,isOpen:A.a.bool.isRequired,direction:A.a.oneOf(["up","down","left","right"]).isRequired,inNavbar:A.a.bool.isRequired},Re=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addEvents=n.addEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.removeEvents=n.removeEvents.bind(n),n.toggle=n.toggle.bind(n),n}return Q(t,e),$(t,[{key:"getChildContext",value:function(){return{toggle:this.props.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"getContainer",value:function(){return P.a.findDOMNode(this)}},{key:"addEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"handleDocumentClick",value:function(e){if(!e||3!==e.which&&("keyup"!==e.type||e.which===W.tab)){var t=this.getContainer();(!t.contains(e.target)||t===e.target||"keyup"===e.type&&e.which!==W.tab)&&this.toggle(e)}}},{key:"handleKeyDown",value:function(e){if(!(-1===[W.esc,W.up,W.down,W.space].indexOf(e.which)||/button/i.test(e.target.tagName)&&e.which===W.space||/input|textarea/i.test(e.target.tagName))&&(e.preventDefault(),!this.props.disabled)){var t=this.getContainer();if(e.which===W.space&&this.props.isOpen&&t!==e.target&&e.target.click(),e.which===W.esc||!this.props.isOpen)return this.toggle(e),void t.querySelector("[aria-expanded]").focus();var n=l("dropdown-menu",this.props.cssModule),r=l("dropdown-item",this.props.cssModule),o=l("disabled",this.props.cssModule),i=t.querySelectorAll("."+n+" ."+r+":not(."+o+")");if(i.length){for(var a=-1,s=0;s0&&(a-=1),e.which===W.down&&a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":V(t))&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":V(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)}function s(){}t.__esModule=!0,t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(A.a),l=n(x.a),c=n(P.a),f=t.UNMOUNTED="unmounted",p=t.EXITED="exited",d=t.ENTERING="entering",h=t.ENTERED="entered",m=t.EXITING="exiting",g=function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r)),s=r.transitionGroup,u=s&&!s.isMounting?n.enter:n.appear,l=void 0;return a.nextStatus=null,n.in?u?(l=p,a.nextStatus=d):l=h:l=n.unmountOnExit||n.mountOnEnter?f:p,a.state={status:l},a.nextCallback=null,a}return a(t,e),t.prototype.getChildContext=function(){return{transitionGroup:null}},t.prototype.componentDidMount=function(){this.updateStatus(!0)},t.prototype.componentWillReceiveProps=function(e){var t=this.pendingState||this.state,n=t.status;e.in?(n===f&&this.setState({status:p}),n!==d&&n!==h&&(this.nextStatus=d)):n!==d&&n!==h||(this.nextStatus=m)},t.prototype.componentDidUpdate=function(){this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cancelNextCallback()},t.prototype.getTimeouts=function(){var e=this.props.timeout,t=void 0,n=void 0,r=void 0;return t=n=r=e,null!=e&&"number"!==typeof e&&(t=e.exit,n=e.enter,r=e.appear),{exit:t,enter:n,appear:r}},t.prototype.updateStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nextStatus;if(null!==t){this.nextStatus=null,this.cancelNextCallback();var n=c.default.findDOMNode(this);t===d?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},t.prototype.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts();if(!t&&!r)return void this.safeSetState({status:h},function(){n.props.onEntered(e)});this.props.onEnter(e,o),this.safeSetState({status:d},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,i.enter,function(){n.safeSetState({status:h},function(){n.props.onEntered(e,o)})})})},t.prototype.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:p},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:m},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:p},function(){t.props.onExited(e)})})})},t.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.prototype.safeSetState=function(e,t){var n=this;this.pendingState=e,t=this.setNextCallback(t),this.setState(e,function(){n.pendingState=null,t()})},t.prototype.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.prototype.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},t.prototype.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,o=r(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"===typeof n)return n(e,o);var i=l.default.Children.only(n);return l.default.cloneElement(i,o)},t}(l.default.Component);g.contextTypes={transitionGroup:u.object},g.childContextTypes={transitionGroup:function(){}},g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},g.UNMOUNTED=0,g.EXITED=1,g.ENTERING=2,g.ENTERED=3,g.EXITING=4,t.default=g}),bt=g(yt),Tt=X({},bt.propTypes,{children:A.a.oneOfType([A.a.arrayOf(A.a.node),A.a.node]),tag:A.a.oneOfType([A.a.string,A.a.func]),baseClass:A.a.string,baseClassActive:A.a.string,className:A.a.string,cssModule:A.a.object}),_t=X({},bt.defaultProps,{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:z.Fade,appear:!0,enter:!0,exit:!0,in:!0});y.propTypes=Tt,y.defaultProps=_t;var Et={color:A.a.string,pill:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),children:A.a.node,className:A.a.string,cssModule:A.a.object},kt={color:"secondary",pill:!1,tag:"span"},wt=function(e){var t=e.className,n=e.cssModule,r=e.color,o=e.pill,i=e.tag,a=Z(e,["className","cssModule","color","pill","tag"]),s=l(S()(t,"badge","badge-"+r,!!o&&"badge-pill"),n);return a.href&&"span"===i&&(i="a"),x.a.createElement(i,X({},a,{className:s}))};wt.propTypes=Et,wt.defaultProps=kt;var xt={tag:A.a.oneOfType([A.a.func,A.a.string]),inverse:A.a.bool,color:A.a.string,block:d(A.a.bool,'Please use the props "body"'),body:A.a.bool,outline:A.a.bool,className:A.a.string,cssModule:A.a.object},Ct={tag:"div"},At=function(e){var t=e.className,n=e.cssModule,r=e.color,o=e.block,i=e.body,a=e.inverse,s=e.outline,u=e.tag,c=Z(e,["className","cssModule","color","block","body","inverse","outline","tag"]),f=l(S()(t,"card",!!a&&"text-white",!(!o&&!i)&&"card-body",!!r&&(s?"border":"bg")+"-"+r),n);return x.a.createElement(u,X({},c,{className:f}))};At.propTypes=xt,At.defaultProps=Ct;var Ot={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},St={tag:"div"},Nt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-group"),n);return x.a.createElement(r,X({},o,{className:i}))};Nt.propTypes=Ot,Nt.defaultProps=St;var Dt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},It={tag:"div"},Mt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-deck"),n);return x.a.createElement(r,X({},o,{className:i}))};Mt.propTypes=Dt,Mt.defaultProps=It;var Lt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Pt={tag:"div"},Rt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-columns"),n);return x.a.createElement(r,X({},o,{className:i}))};Rt.propTypes=Lt,Rt.defaultProps=Pt;var Bt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},jt={tag:"div"},Ft=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-body"),n);return x.a.createElement(r,X({},o,{className:i}))};Ft.propTypes=Bt,Ft.defaultProps=jt;var Ht={tag:A.a.oneOfType([A.a.func,A.a.string]),innerRef:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Ut={tag:"a"},zt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.innerRef,i=Z(e,["className","cssModule","tag","innerRef"]),a=l(S()(t,"card-link"),n);return x.a.createElement(r,X({},i,{ref:o,className:a}))};zt.propTypes=Ht,zt.defaultProps=Ut;var Kt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},qt={tag:"div"},Wt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-footer"),n);return x.a.createElement(r,X({},o,{className:i}))};Wt.propTypes=Kt,Wt.defaultProps=qt;var Gt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Vt={tag:"div"},Yt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-header"),n);return x.a.createElement(r,X({},o,{className:i}))};Yt.propTypes=Gt,Yt.defaultProps=Vt;var $t={tag:A.a.oneOfType([A.a.func,A.a.string]),top:A.a.bool,bottom:A.a.bool,className:A.a.string,cssModule:A.a.object},Jt={tag:"img"},Xt=function(e){var t=e.className,n=e.cssModule,r=e.top,o=e.bottom,i=e.tag,a=Z(e,["className","cssModule","top","bottom","tag"]),s="card-img";r&&(s="card-img-top"),o&&(s="card-img-bottom");var u=l(S()(t,s),n);return x.a.createElement(i,X({},a,{className:u}))};Xt.propTypes=$t,Xt.defaultProps=Jt;var Qt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Zt={tag:"div"},en=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-img-overlay"),n);return x.a.createElement(r,X({},o,{className:i}))};en.propTypes=Qt,en.defaultProps=Zt;var tn=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={startAnimation:!1},n.onEnter=n.onEnter.bind(n),n.onEntering=n.onEntering.bind(n),n.onExit=n.onExit.bind(n),n.onExiting=n.onExiting.bind(n),n.onExited=n.onExited.bind(n),n}return Q(t,e),$(t,[{key:"onEnter",value:function(e,t){this.setState({startAnimation:!1}),this.props.onEnter(e,t)}},{key:"onEntering",value:function(e,t){var n=e.offsetHeight;return this.setState({startAnimation:!0}),this.props.onEntering(e,t),n}},{key:"onExit",value:function(e){this.setState({startAnimation:!1}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.setState({startAnimation:!0}),e.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(e)}},{key:"onExited",value:function(e){e.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.in,r=t.children,o=t.cssModule,i=t.slide,a=t.tag,s=t.className,u=Z(t,["in","children","cssModule","slide","tag","className"]);return x.a.createElement(bt,X({},u,{enter:i,exit:i,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(t){var n=e.context.direction,i=t===q.ENTERED||t===q.EXITING,u=(t===q.ENTERING||t===q.EXITING)&&e.state.startAnimation&&("right"===n?"carousel-item-left":"carousel-item-right"),c=t===q.ENTERING&&("right"===n?"carousel-item-next":"carousel-item-prev"),f=l(S()(s,"carousel-item",i&&"active",u,c),o);return x.a.createElement(a,{className:f},r)})}}]),t}(x.a.Component);tn.propTypes=X({},bt.propTypes,{tag:A.a.oneOfType([A.a.func,A.a.string]),in:A.a.bool,cssModule:A.a.object,children:A.a.node,slide:A.a.bool,className:A.a.string}),tn.defaultProps=X({},bt.defaultProps,{tag:"div",timeout:z.Carousel,slide:!0}),tn.contextTypes={direction:A.a.string};var nn=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyPress=n.handleKeyPress.bind(n),n.renderItems=n.renderItems.bind(n),n.hoverStart=n.hoverStart.bind(n),n.hoverEnd=n.hoverEnd.bind(n),n.state={direction:"right"},n}return Q(t,e),$(t,[{key:"getChildContext",value:function(){return{direction:this.state.direction}}},{key:"componentDidMount",value:function(){"carousel"===this.props.ride&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}},{key:"componentWillReceiveProps",value:function(e){this.setInterval(e),this.props.activeIndex+1===e.activeIndex?this.setState({direction:"right"}):this.props.activeIndex-1===e.activeIndex?this.setState({direction:"left"}):this.props.activeIndex>e.activeIndex?this.setState({direction:"right"}):this.props.activeIndex!==e.activeIndex&&this.setState({direction:"left"})}},{key:"componentWillUnmount",value:function(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}},{key:"setInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.clearInterval(),e.interval&&(this.cycleInterval=setInterval(function(){e.next()},parseInt(e.interval,10)))})},{key:"clearInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){clearInterval(this.cycleInterval)})},{key:"hoverStart",value:function(){if("hover"===this.props.pause&&this.clearInterval(),this.props.mouseEnter){var e;(e=this.props).mouseEnter.apply(e,arguments)}}},{key:"hoverEnd",value:function(){if("hover"===this.props.pause&&this.setInterval(),this.props.mouseLeave){var e;(e=this.props).mouseLeave.apply(e,arguments)}}},{key:"handleKeyPress",value:function(e){this.props.keyboard&&(37===e.keyCode?this.props.previous():39===e.keyCode&&this.props.next())}},{key:"renderItems",value:function(e,t){var n=this,r=this.props.slide;return x.a.createElement("div",{role:"listbox",className:t},e.map(function(e,t){var o=t===n.props.activeIndex;return x.a.cloneElement(e,{in:o,slide:r})}))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.cssModule,r=e.slide,o=e.className,i=l(S()(o,"carousel",r&&"slide"),n),a=l(S()("carousel-inner"),n);if(t.every(function(e){return e.type===tn}))return x.a.createElement("div",{className:i,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},this.renderItems(t,a));if(t[0]instanceof Array){var s=t[0],u=t[1],c=t[2];return x.a.createElement("div",{className:i,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},this.renderItems(s,a),u,c)}var f=t[0],p=t[1],d=t[2],h=t[3];return x.a.createElement("div",{className:i,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},f,this.renderItems(p,a),d,h)}}]),t}(x.a.Component);nn.propTypes={activeIndex:A.a.number,next:A.a.func.isRequired,previous:A.a.func.isRequired,keyboard:A.a.bool,pause:A.a.oneOf(["hover",!1]),ride:A.a.oneOf(["carousel"]),interval:A.a.oneOfType([A.a.number,A.a.string,A.a.bool]),children:A.a.array,mouseEnter:A.a.func,mouseLeave:A.a.func,slide:A.a.bool,cssModule:A.a.object,className:A.a.string},nn.defaultProps={interval:5e3,pause:"hover",keyboard:!0,slide:!0},nn.childContextTypes={direction:A.a.string};var rn=function(e){var t=e.direction,n=e.onClickHandler,r=e.cssModule,o=e.directionText,i=e.className,a=l(S()(i,"carousel-control-"+t),r),s=l(S()("carousel-control-"+t+"-icon"),r),u=l(S()("sr-only"),r);return x.a.createElement("a",{className:a,role:"button",tabIndex:"0",onClick:function(e){e.preventDefault(),n()}},x.a.createElement("span",{className:s,"aria-hidden":"true"}),x.a.createElement("span",{className:u},o||t))};rn.propTypes={direction:A.a.oneOf(["prev","next"]).isRequired,onClickHandler:A.a.func.isRequired,cssModule:A.a.object,directionText:A.a.string,className:A.a.string};var on=function(e){var t=e.items,n=e.activeIndex,r=e.cssModule,o=e.onClickHandler,i=e.className,a=l(S()(i,"carousel-indicators"),r),s=t.map(function(e,t){var i=l(S()({active:n===t}),r);return x.a.createElement("li",{key:""+(e.key||e.src)+e.caption+e.altText,onClick:function(e){e.preventDefault(),o(t)},className:i})});return x.a.createElement("ol",{className:a},s)};on.propTypes={items:A.a.array.isRequired,activeIndex:A.a.number.isRequired,cssModule:A.a.object,onClickHandler:A.a.func.isRequired,className:A.a.string};var an=function(e){var t=e.captionHeader,n=e.captionText,r=e.cssModule,o=e.className,i=l(S()(o,"carousel-caption","d-none","d-md-block"),r);return x.a.createElement("div",{className:i},x.a.createElement("h3",null,t),x.a.createElement("p",null,n))};an.propTypes={captionHeader:A.a.string,captionText:A.a.string.isRequired,cssModule:A.a.object,className:A.a.string};var sn={items:A.a.array.isRequired,indicators:A.a.bool,controls:A.a.bool,autoPlay:A.a.bool,activeIndex:A.a.number,next:A.a.func,previous:A.a.func,goToIndex:A.a.func},un=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.animating=!1,n.state={activeIndex:0},n.next=n.next.bind(n),n.previous=n.previous.bind(n),n.goToIndex=n.goToIndex.bind(n),n.onExiting=n.onExiting.bind(n),n.onExited=n.onExited.bind(n),n}return Q(t,e),$(t,[{key:"onExiting",value:function(){this.animating=!0}},{key:"onExited",value:function(){this.animating=!1}},{key:"next",value:function(){if(!this.animating){var e=this.state.activeIndex===this.props.items.length-1?0:this.state.activeIndex+1;this.setState({activeIndex:e})}}},{key:"previous",value:function(){if(!this.animating){var e=0===this.state.activeIndex?this.props.items.length-1:this.state.activeIndex-1;this.setState({activeIndex:e})}}},{key:"goToIndex",value:function(e){this.animating||this.setState({activeIndex:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.indicators,o=t.controls,i=t.items,a=t.goToIndex,s=Z(t,["autoPlay","indicators","controls","items","goToIndex"]),u=this.state.activeIndex,l=i.map(function(t){return x.a.createElement(tn,{onExiting:e.onExiting,onExited:e.onExited,key:t.src},x.a.createElement("img",{src:t.src,alt:t.altText}),x.a.createElement(an,{captionText:t.caption,captionHeader:t.caption}))});return x.a.createElement(nn,X({activeIndex:u,next:this.next,previous:this.previous,ride:n?"carousel":void 0},s),r&&x.a.createElement(on,{items:i,activeIndex:s.activeIndex||u,onClickHandler:a||this.goToIndex}),l,o&&x.a.createElement(rn,{direction:"prev",directionText:"Previous",onClickHandler:s.previous||this.previous}),o&&x.a.createElement(rn,{direction:"next",directionText:"Next",onClickHandler:s.next||this.next}))}}]),t}(w.Component);un.propTypes=sn,un.defaultProps={controls:!0,indicators:!0,autoPlay:!0};var ln={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},cn={tag:"h6"},fn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-subtitle"),n);return x.a.createElement(r,X({},o,{className:i}))};fn.propTypes=ln,fn.defaultProps=cn;var pn={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},dn={tag:"p"},hn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-text"),n);return x.a.createElement(r,X({},o,{className:i}))};hn.propTypes=pn,hn.defaultProps=dn;var mn={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},gn={tag:"h5"},vn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-title"),n);return x.a.createElement(r,X({},o,{className:i}))};vn.propTypes=mn,vn.defaultProps=gn;var yn={children:A.a.node.isRequired,className:A.a.string,placement:A.a.string,placementPrefix:A.a.string,hideArrow:A.a.bool,tag:A.a.string,isOpen:A.a.bool.isRequired,cssModule:A.a.object,offset:A.a.oneOfType([A.a.string,A.a.number]),fallbackPlacement:A.a.oneOfType([A.a.string,A.a.array]),flip:A.a.bool,container:A.a.oneOfType([A.a.string,A.a.func,h]),target:A.a.oneOfType([A.a.string,A.a.func,h]).isRequired,modifiers:A.a.object},bn={placement:"auto",hideArrow:!1,isOpen:!1,offset:0,fallbackPlacement:"flip",flip:!0,container:"body",modifiers:{}},Tn={popperManager:A.a.object.isRequired},_n=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handlePlacementChange=n.handlePlacementChange.bind(n),n.setTargetNode=n.setTargetNode.bind(n),n.getTargetNode=n.getTargetNode.bind(n),n.state={},n}return Q(t,e),$(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this.setTargetNode,getTargetNode:this.getTargetNode}}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen?this.handleProps():this._element&&this.renderIntoSubtree()}},{key:"componentWillUnmount",value:function(){this.hide()}},{key:"setTargetNode",value:function(e){this.targetNode=e}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return m(this.props.container)}},{key:"handlePlacementChange",value:function(e){return this.state.placement!==e.placement&&this.setState({placement:e.placement}),e}},{key:"handleProps",value:function(){"inline"!==this.props.container&&(this.props.isOpen?this.show():this.hide())}},{key:"hide",value:function(){this._element&&(this.getContainerNode().removeChild(this._element),P.a.unmountComponentAtNode(this._element),this._element=null)}},{key:"show",value:function(){this._element=document.createElement("div"),this.getContainerNode().appendChild(this._element),this.renderIntoSubtree(),this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"renderIntoSubtree",value:function(){P.a.unstable_renderSubtreeIntoContainer(this,this.renderChildren(),this._element)}},{key:"renderChildren",value:function(){var e=this.props,t=e.cssModule,n=e.children,r=(e.isOpen,e.flip),o=(e.target,e.offset),i=e.fallbackPlacement,a=e.placementPrefix,s=e.hideArrow,u=e.className,c=e.tag,f=(e.container,e.modifiers),p=Z(e,["cssModule","children","isOpen","flip","target","offset","fallbackPlacement","placementPrefix","hideArrow","className","tag","container","modifiers"]),d=l("arrow",t),h=(this.state.placement||p.placement).split("-")[0],m=l(S()(u,a?a+"-"+h:h),this.props.cssModule),g=X({offset:{offset:o},flip:{enabled:r,behavior:i},update:{enabled:!0,order:950,fn:this.handlePlacementChange}},f);return x.a.createElement(R.Popper,X({modifiers:g},p,{component:c,className:m}),n,!s&&x.a.createElement(R.Arrow,{className:d}))}},{key:"render",value:function(){return this.setTargetNode(m(this.props.target)),"inline"===this.props.container&&this.props.isOpen?this.renderChildren():null}}]),t}(x.a.Component);_n.propTypes=yn,_n.defaultProps=bn,_n.childContextTypes=Tn;var En=function(e,t){return t.popperManager.setTargetNode(m(e.target)),null};En.contextTypes={popperManager:A.a.object.isRequired},En.propTypes={target:A.a.oneOfType([A.a.string,A.a.func,h]).isRequired};var kn={placement:A.a.oneOf(G),target:A.a.oneOfType([A.a.string,A.a.func,h]).isRequired,container:A.a.oneOfType([A.a.string,A.a.func,h]),isOpen:A.a.bool,disabled:A.a.bool,hideArrow:A.a.bool,className:A.a.string,innerClassName:A.a.string,placementPrefix:A.a.string,cssModule:A.a.object,toggle:A.a.func,delay:A.a.oneOfType([A.a.shape({show:A.a.number,hide:A.a.number}),A.a.number]),modifiers:A.a.object},wn={show:0,hide:0},xn={isOpen:!1,hideArrow:!1,placement:"right",placementPrefix:"bs-popover",delay:wn,toggle:function(){}},Cn=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addTargetEvents=n.addTargetEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.removeTargetEvents=n.removeTargetEvents.bind(n),n.getRef=n.getRef.bind(n),n.toggle=n.toggle.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n}return Q(t,e),$(t,[{key:"componentDidMount",value:function(){this._target=m(this.props.target),this.handleProps()}},{key:"componentDidUpdate",value:function(){this.handleProps()}},{key:"componentWillUnmount",value:function(){this.clearShowTimeout(),this.clearHideTimeout(),this.removeTargetEvents()}},{key:"getRef",value:function(e){this._popover=e}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===("undefined"===typeof t?"undefined":V(t))?isNaN(t[e])?wn[e]:t[e]:t}},{key:"handleProps",value:function(){this.props.isOpen?this.show():this.hide()}},{key:"show",value:function(){this.clearHideTimeout(),this.addTargetEvents(),this.props.isOpen||(this.clearShowTimeout(),this._showTimeout=setTimeout(this.toggle,this.getDelay("show")))}},{key:"hide",value:function(){this.clearShowTimeout(),this.removeTargetEvents(),this.props.isOpen&&(this.clearHideTimeout(),this._hideTimeout=setTimeout(this.toggle,this.getDelay("hide")))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){e.target===this._target||this._target.contains(e.target)||e.target===this._popover||this._popover&&this._popover.contains(e.target)||(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&this.toggle(e))}},{key:"addTargetEvents",value:function(){var e=this;["click","touchstart"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeTargetEvents",value:function(){var e=this;["click","touchstart"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){if(!this.props.isOpen)return null;var e=c(this.props,Object.keys(kn)),t=l(S()("popover-inner",this.props.innerClassName),this.props.cssModule),n=l(S()("popover","show",this.props.className),this.props.cssModule);return x.a.createElement(_n,{className:n,target:this.props.target,isOpen:this.props.isOpen,hideArrow:this.props.hideArrow,placement:this.props.placement,placementPrefix:this.props.placementPrefix,container:this.props.container,modifiers:this.props.modifiers},x.a.createElement("div",X({},e,{className:t,ref:this.getRef})))}}]),t}(x.a.Component);Cn.propTypes=kn,Cn.defaultProps=xn;var An={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},On={tag:"h3"},Sn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"popover-header"),n);return x.a.createElement(r,X({},o,{className:i}))};Sn.propTypes=An,Sn.defaultProps=On;var Nn={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Dn={tag:"div"},In=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"popover-body"),n);return x.a.createElement(r,X({},o,{className:i}))};In.propTypes=Nn,In.defaultProps=Dn;var Mn={children:A.a.node,bar:A.a.bool,multi:A.a.bool,tag:A.a.string,value:A.a.oneOfType([A.a.string,A.a.number]),max:A.a.oneOfType([A.a.string,A.a.number]),animated:A.a.bool,striped:A.a.bool,color:A.a.string,className:A.a.string,barClassName:A.a.string,cssModule:A.a.object},Ln={tag:"div",value:0,max:100},Pn=function(e){var t=e.children,n=e.className,r=e.barClassName,o=e.cssModule,i=e.value,a=e.max,s=e.animated,u=e.striped,c=e.color,f=e.bar,p=e.multi,d=e.tag,h=Z(e,["children","className","barClassName","cssModule","value","max","animated","striped","color","bar","multi","tag"]),m=j()(i)/j()(a)*100,g=l(S()(n,"progress"),o),v=l(S()("progress-bar",f?n||r:r,s?"progress-bar-animated":null,c?"bg-"+c:null,u||s?"progress-bar-striped":null),o),y=p?t:x.a.createElement("div",{className:v,style:{width:m+"%"},role:"progressbar","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":a,children:t});return f?y:x.a.createElement(d,X({},h,{className:g,children:y}))};Pn.propTypes=Mn,Pn.defaultProps=Ln;var Rn=A.a.shape(y.propTypes),Bn={isOpen:A.a.bool,autoFocus:A.a.bool,centered:A.a.bool,size:A.a.string,toggle:A.a.func,keyboard:A.a.bool,role:A.a.string,labelledBy:A.a.string,backdrop:A.a.oneOfType([A.a.bool,A.a.oneOf(["static"])]),onEnter:A.a.func,onExit:A.a.func,onOpened:A.a.func,onClosed:A.a.func,children:A.a.node,className:A.a.string,wrapClassName:A.a.string,modalClassName:A.a.string,backdropClassName:A.a.string,contentClassName:A.a.string,external:A.a.node,fade:A.a.bool,cssModule:A.a.object,zIndex:A.a.oneOfType([A.a.number,A.a.string]),backdropTransition:Rn,modalTransition:Rn},jn=Object.keys(Bn),Fn={isOpen:!1,autoFocus:!0,centered:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:b,onClosed:b,modalTransition:{timeout:z.Modal},backdropTransition:{mountOnEnter:!0,timeout:z.Fade}},Hn=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._element=null,n._originalBodyPadding=null,n.handleBackdropClick=n.handleBackdropClick.bind(n),n.handleEscape=n.handleEscape.bind(n),n.onOpened=n.onOpened.bind(n),n.onClosed=n.onClosed.bind(n),n.state={isOpen:e.isOpen},e.isOpen&&n.init(),n}return Q(t,e),$(t,[{key:"componentDidMount",value:function(){this.props.onEnter&&this.props.onEnter(),this.state.isOpen&&this.props.autoFocus&&this.setFocus(),this._isMounted=!0}},{key:"componentWillReceiveProps",value:function(e){e.isOpen&&!this.props.isOpen&&this.setState({isOpen:e.isOpen})}},{key:"componentWillUpdate",value:function(e,t){t.isOpen&&!this.state.isOpen&&this.init()}},{key:"componentDidUpdate",value:function(e,t){this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus()}},{key:"componentWillUnmount",value:function(){this.props.onExit&&this.props.onExit(),this.state.isOpen&&this.destroy(),this._isMounted=!1}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||b)(e,t)}},{key:"onClosed",value:function(e){this.props.onClosed(),(this.props.modalTransition.onExited||b)(e),this.destroy(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&"function"===typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()}},{key:"handleBackdropClick",value:function(e){if(e.stopPropagation(),this.props.isOpen&&!0===this.props.backdrop){var t=this._dialog;e.target&&!t.contains(e.target)&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleEscape",value:function(e){this.props.isOpen&&this.props.keyboard&&27===e.keyCode&&this.props.toggle&&this.props.toggle(e)}},{key:"init",value:function(){this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._originalBodyPadding=a(),s(),document.body.appendChild(this._element),document.body.className=S()(document.body.className,l("modal-open",this.props.cssModule))}},{key:"destroy",value:function(){document.body.removeChild(this._element),this._element=null;var e=l("modal-open",this.props.cssModule),t=new RegExp("(^| )"+e+"( |$)");document.body.className=document.body.className.replace(t," ").trim(),o(this._originalBodyPadding)}},{key:"renderModalDialog",value:function(){var e,t=this,n=c(this.props,jn);return x.a.createElement("div",X({},n,{className:l(S()("modal-dialog",this.props.className,(e={},J(e,"modal-"+this.props.size,this.props.size),J(e,"modal-dialog-centered",this.props.centered),e)),this.props.cssModule),role:"document",ref:function(e){t._dialog=e}}),x.a.createElement("div",{className:l(S()("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){if(this.state.isOpen){var e=this.props,t=e.wrapClassName,n=e.modalClassName,r=e.backdropClassName,o=e.cssModule,i=e.isOpen,a=e.backdrop,s=e.role,u=e.labelledBy,c=e.external,f={onClick:this.handleBackdropClick,onKeyUp:this.handleEscape,style:{display:"block"},"aria-labelledby":u,role:s,tabIndex:"-1"},p=this.props.fade,d=X({},y.defaultProps,this.props.modalTransition,{baseClass:p?this.props.modalTransition.baseClass:"",timeout:p?this.props.modalTransition.timeout:0}),h=X({},y.defaultProps,this.props.backdropTransition,{baseClass:p?this.props.backdropTransition.baseClass:"",timeout:p?this.props.backdropTransition.timeout:0});return x.a.createElement(F.a,{node:this._element},x.a.createElement("div",{className:l(t)},x.a.createElement(y,X({},f,d,{in:i,onEntered:this.onOpened,onExited:this.onClosed,cssModule:o,className:l(S()("modal",n),o)}),c,this.renderModalDialog()),x.a.createElement(y,X({},h,{in:i&&!!a,cssModule:o,className:l(S()("modal-backdrop",r),o)}))))}return null}}]),t}(x.a.Component);Hn.propTypes=Bn,Hn.defaultProps=Fn;var Un={tag:A.a.oneOfType([A.a.func,A.a.string]),wrapTag:A.a.oneOfType([A.a.func,A.a.string]),toggle:A.a.func,className:A.a.string,cssModule:A.a.object,children:A.a.node,closeAriaLabel:A.a.string},zn={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"},Kn=function(e){var t=void 0,n=e.className,r=e.cssModule,o=e.children,i=e.toggle,a=e.tag,s=e.wrapTag,u=e.closeAriaLabel,c=Z(e,["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel"]),f=l(S()(n,"modal-header"),r);return i&&(t=x.a.createElement("button",{type:"button",onClick:i,className:l("close",r),"aria-label":u},x.a.createElement("span",{"aria-hidden":"true"},String.fromCharCode(215)))),x.a.createElement(s,X({},c,{className:f}),x.a.createElement(a,{className:l("modal-title",r)},o),t)};Kn.propTypes=Un,Kn.defaultProps=zn;var qn={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Wn={tag:"div"},Gn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"modal-body"),n);return x.a.createElement(r,X({},o,{className:i}))};Gn.propTypes=qn,Gn.defaultProps=Wn;var Vn={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Yn={tag:"div"},$n=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"modal-footer"),n);return x.a.createElement(r,X({},o,{className:i}))};$n.propTypes=Vn,$n.defaultProps=Yn;var Jn={placement:A.a.oneOf(G),target:A.a.oneOfType([A.a.string,A.a.func,h]).isRequired,container:A.a.oneOfType([A.a.string,A.a.func,h]),isOpen:A.a.bool,disabled:A.a.bool,hideArrow:A.a.bool,className:A.a.string,innerClassName:A.a.string,cssModule:A.a.object,toggle:A.a.func,autohide:A.a.bool,placementPrefix:A.a.string,delay:A.a.oneOfType([A.a.shape({show:A.a.number,hide:A.a.number}),A.a.number]),modifiers:A.a.object},Xn={show:0,hide:250},Qn={isOpen:!1,hideArrow:!1,placement:"top",placementPrefix:"bs-tooltip",delay:Xn,autohide:!0,toggle:function(){}},Zn=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addTargetEvents=n.addTargetEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.removeTargetEvents=n.removeTargetEvents.bind(n),n.toggle=n.toggle.bind(n),n.onMouseOverTooltip=n.onMouseOverTooltip.bind(n),n.onMouseLeaveTooltip=n.onMouseLeaveTooltip.bind(n),n.onMouseOverTooltipContent=n.onMouseOverTooltipContent.bind(n),n.onMouseLeaveTooltipContent=n.onMouseLeaveTooltipContent.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n}return Q(t,e),$(t,[{key:"componentDidMount",value:function(){this._target=m(this.props.target),this.addTargetEvents()}},{key:"componentWillUnmount",value:function(){this.removeTargetEvents()}},{key:"onMouseOverTooltip",value:function(){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show,this.getDelay("show"))}},{key:"onMouseLeaveTooltip",value:function(){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide,this.getDelay("hide"))}},{key:"onMouseOverTooltipContent",value:function(){this.props.autohide||this._hideTimeout&&this.clearHideTimeout()}},{key:"onMouseLeaveTooltipContent",value:function(){this.props.autohide||(this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide,this.getDelay("hide")))}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===("undefined"===typeof t?"undefined":V(t))?isNaN(t[e])?Xn[e]:t[e]:t}},{key:"show",value:function(){this.props.isOpen||(this.clearShowTimeout(),this.toggle())}},{key:"hide",value:function(){this.props.isOpen&&(this.clearHideTimeout(),this.toggle())}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){(e.target===this._target||this._target.contains(e.target))&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen||this.toggle())}},{key:"addTargetEvents",value:function(){var e=this;this._target.addEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.addEventListener("mouseout",this.onMouseLeaveTooltip,!0),["click","touchstart"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeTargetEvents",value:function(){var e=this;this._target.removeEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.removeEventListener("mouseout",this.onMouseLeaveTooltip,!0),["click","touchstart"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle()}},{key:"render",value:function(){if(!this.props.isOpen)return null;var e=c(this.props,Object.keys(Jn)),t=l(S()("tooltip-inner",this.props.innerClassName),this.props.cssModule),n=l(S()("tooltip","show",this.props.className),this.props.cssModule);return x.a.createElement(_n,{className:n,target:this.props.target,isOpen:this.props.isOpen,hideArrow:this.props.hideArrow,placement:this.props.placement,placementPrefix:this.props.placementPrefix,container:this.props.container,modifiers:this.props.modifiers},x.a.createElement("div",X({},e,{className:t,onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent})))}}]),t}(x.a.Component);Zn.propTypes=Jn,Zn.defaultProps=Qn;var er={className:A.a.string,cssModule:A.a.object,size:A.a.string,bordered:A.a.bool,striped:A.a.bool,inverse:d(A.a.bool,'Please use the prop "dark"'),dark:A.a.bool,hover:A.a.bool,responsive:A.a.oneOfType([A.a.bool,A.a.string]),tag:A.a.oneOfType([A.a.func,A.a.string]),responsiveTag:A.a.oneOfType([A.a.func,A.a.string])},tr={tag:"table",responsiveTag:"div"},nr=function(e){var t=e.className,n=e.cssModule,r=e.size,o=e.bordered,i=e.striped,a=e.inverse,s=e.dark,u=e.hover,c=e.responsive,f=e.tag,p=e.responsiveTag,d=Z(e,["className","cssModule","size","bordered","striped","inverse","dark","hover","responsive","tag","responsiveTag"]),h=l(S()(t,"table",!!r&&"table-"+r,!!o&&"table-bordered",!!i&&"table-striped",!(!s&&!a)&&"table-dark",!!u&&"table-hover"),n),m=x.a.createElement(f,X({},d,{className:h}));if(c){var g=!0===c?"table-responsive":"table-responsive-"+c;return x.a.createElement(p,{className:g},m)}return m};nr.propTypes=er,nr.defaultProps=tr;var rr={tag:A.a.oneOfType([A.a.func,A.a.string]),flush:A.a.bool,className:A.a.string,cssModule:A.a.object},or={tag:"ul"},ir=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.flush,i=Z(e,["className","cssModule","tag","flush"]),a=l(S()(t,"list-group",!!o&&"list-group-flush"),n);return x.a.createElement(r,X({},i,{className:a}))};ir.propTypes=rr,ir.defaultProps=or;var ar={children:A.a.node,inline:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),innerRef:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},sr={tag:"form"},ur=function(e){var t=e.className,n=e.cssModule,r=e.inline,o=e.tag,i=e.innerRef,a=Z(e,["className","cssModule","inline","tag","innerRef"]),s=l(S()(t,!!r&&"form-inline"),n);return x.a.createElement(o,X({},a,{ref:i,className:s}))};ur.propTypes=ar,ur.defaultProps=sr;var lr={children:A.a.node,tag:A.a.string,className:A.a.string,cssModule:A.a.object,valid:A.a.bool},cr={tag:"div",valid:void 0},fr=function(e){var t=e.className,n=e.cssModule,r=e.valid,o=e.tag,i=Z(e,["className","cssModule","valid","tag"]),a=l(S()(t,r?"valid-feedback":"invalid-feedback"),n);return x.a.createElement(o,X({},i,{className:a}))};fr.propTypes=lr,fr.defaultProps=cr;var pr={children:A.a.node,row:A.a.bool,check:A.a.bool,inline:A.a.bool,disabled:A.a.bool,tag:A.a.string,className:A.a.string,cssModule:A.a.object},dr={tag:"div"},hr=function(e){var t=e.className,n=e.cssModule,r=e.row,o=e.disabled,i=e.check,a=e.inline,s=e.tag,u=Z(e,["className","cssModule","row","disabled","check","inline","tag"]),c=l(S()(t,!!r&&"row",i?"form-check":"form-group",!(!i||!a)&&"form-check-inline",!(!i||!o)&&"disabled"),n);return x.a.createElement(s,X({},u,{className:c}))};hr.propTypes=pr,hr.defaultProps=dr;var mr={children:A.a.node,inline:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),color:A.a.string,className:A.a.string,cssModule:A.a.object},gr={tag:"small",color:"muted"},vr=function(e){var t=e.className,n=e.cssModule,r=e.inline,o=e.color,i=e.tag,a=Z(e,["className","cssModule","inline","color","tag"]),s=l(S()(t,!r&&"form-text",!!o&&"text-"+o),n);return x.a.createElement(i,X({},a,{className:s}))};vr.propTypes=mr,vr.defaultProps=gr;var yr={children:A.a.node,type:A.a.string,size:A.a.string,bsSize:A.a.string,state:d(A.a.string,'Please use the props "valid" and "invalid" to indicate the state.'),valid:A.a.bool,invalid:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),innerRef:A.a.oneOfType([A.a.func,A.a.string]),static:d(A.a.bool,'Please use the prop "plaintext"'),plaintext:A.a.bool,addon:A.a.bool,className:A.a.string,cssModule:A.a.object},br={type:"text"},Tr=function(e){function t(){return Y(this,t),ee(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Q(t,e),$(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.type,o=e.bsSize,i=e.state,a=e.valid,s=e.invalid,u=e.tag,c=e.addon,f=e.static,d=e.plaintext,h=e.innerRef,m=Z(e,["className","cssModule","type","bsSize","state","valid","invalid","tag","addon","static","plaintext","innerRef"]),g=["radio","checkbox"].indexOf(r)>-1,v=new RegExp("\\D","g"),y="file"===r,b="textarea"===r,T="select"===r,_=u||(T||b?r:"input"),E="form-control";d||f?(E+="-plaintext",_=u||"p"):y?E+="-file":g&&(E=c?null:"form-check-input"),i&&"undefined"===typeof a&&"undefined"===typeof s&&("danger"===i?s=!0:"success"===i&&(a=!0)),m.size&&v.test(m.size)&&(p('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=m.size,delete m.size);var k=l(S()(t,s&&"is-invalid",a&&"is-valid",!!o&&"form-control-"+o,E),n);return"input"!==_&&"string"===typeof u||(m.type=r),x.a.createElement(_,X({},m,{ref:h,className:k}))}}]),t}(x.a.Component);Tr.propTypes=yr,Tr.defaultProps=br;var _r={tag:A.a.oneOfType([A.a.func,A.a.string]),size:A.a.string,className:A.a.string,cssModule:A.a.object},Er={tag:"div"},kr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.size,i=Z(e,["className","cssModule","tag","size"]),a=l(S()(t,"input-group",o?"input-group-"+o:null),n);return x.a.createElement(r,X({},i,{className:a}))};kr.propTypes=_r,kr.defaultProps=Er;var wr={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},xr={tag:"span"},Cr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"input-group-text"),n);return x.a.createElement(r,X({},o,{className:i}))};Cr.propTypes=wr,Cr.defaultProps=xr;var Ar={tag:A.a.oneOfType([A.a.func,A.a.string]),addonType:A.a.oneOf(["prepend","append"]).isRequired,children:A.a.node,className:A.a.string,cssModule:A.a.object},Or={tag:"div"},Sr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.addonType,i=e.children,a=Z(e,["className","cssModule","tag","addonType","children"]),s=l(S()(t,"input-group-"+o),n);return"string"===typeof i?x.a.createElement(r,X({},a,{className:s}),x.a.createElement(Cr,{children:i})):x.a.createElement(r,X({},a,{className:s,children:i}))};Sr.propTypes=Ar,Sr.defaultProps=Or;var Nr={tag:A.a.oneOfType([A.a.func,A.a.string]),addonType:A.a.oneOf(["prepend","append"]).isRequired,children:A.a.node,groupClassName:A.a.string,groupAttributes:A.a.object,className:A.a.string,cssModule:A.a.object};(function(e){p('The "InputGroupButton" component has been deprecated.\nPlease use component "InputGroupAddon".');var t=e.children,n=e.groupClassName,r=e.groupAttributes,o=Z(e,["children","groupClassName","groupAttributes"]);if("string"===typeof t){var i=o.cssModule,a=o.tag,s=o.addonType,u=Z(o,["cssModule","tag","addonType"]),l=X({},r,{cssModule:i,tag:a,addonType:s});return x.a.createElement(Sr,X({},l,{className:n}),x.a.createElement(Ye,X({},u,{children:t})))}return x.a.createElement(Sr,X({},e,{children:t}))}).propTypes=Nr;var Dr={addonType:A.a.oneOf(["prepend","append"]).isRequired,children:A.a.node};(function(e){return x.a.createElement(Re,e)}).propTypes=Dr;var Ir=["xs","sm","md","lg","xl"],Mr=A.a.oneOfType([A.a.number,A.a.string]),Lr=A.a.oneOfType([A.a.string,A.a.number,A.a.shape({size:Mr,push:d(Mr,'Please use the prop "order"'),pull:d(Mr,'Please use the prop "order"'),order:Mr,offset:Mr})]),Pr={children:A.a.node,hidden:A.a.bool,check:A.a.bool,size:A.a.string,for:A.a.string,tag:A.a.string,className:A.a.string,cssModule:A.a.object,xs:Lr,sm:Lr,md:Lr,lg:Lr,xl:Lr,widths:A.a.array},Rr={tag:"label",widths:Ir},Br=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},jr=function(e){var t=e.className,n=e.cssModule,r=e.hidden,o=e.widths,i=e.tag,a=e.check,s=e.size,u=e.for,c=Z(e,["className","cssModule","hidden","widths","tag","check","size","for"]),f=[];o.forEach(function(t,r){var o=e[t];if(delete c[t],o||""===o){var i=!r,a=void 0;if(M()(o)){var s,u=i?"-":"-"+t+"-";a=Br(i,t,o.size),f.push(l(S()((s={},J(s,a,o.size||""===o.size),J(s,"order"+u+o.order,o.order||0===o.order),J(s,"offset"+u+o.offset,o.offset||0===o.offset),s))),n)}else a=Br(i,t,o),f.push(a)}});var p=l(S()(t,!!r&&"sr-only",!!a&&"form-check-label",!!s&&"col-form-label-"+s,f,!!f.length&&"col-form-label"),n);return x.a.createElement(i,X({htmlFor:u},c,{className:p}))};jr.propTypes=Pr,jr.defaultProps=Rr;var Fr={body:A.a.bool,bottom:A.a.bool,children:A.a.node,className:A.a.string,cssModule:A.a.object,heading:A.a.bool,left:A.a.bool,list:A.a.bool,middle:A.a.bool,object:A.a.bool,right:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),top:A.a.bool};(function(e){var t=e.body,n=e.bottom,r=e.className,o=e.cssModule,i=e.heading,a=e.left,s=e.list,u=e.middle,c=e.object,f=e.right,p=e.tag,d=e.top,h=Z(e,["body","bottom","className","cssModule","heading","left","list","middle","object","right","tag","top"]),m=void 0;m=i?"h4":a||f?"a":c?"img":s?"ul":"div";var g=p||m,v=l(S()(r,{"media-body":t,"media-heading":i,"media-left":a,"media-right":f,"media-top":d,"media-bottom":n,"media-middle":u,"media-object":c,"media-list":s,media:!t&&!i&&!a&&!f&&!d&&!n&&!u&&!c&&!s}),o);return x.a.createElement(g,X({},h,{className:v}))}).propTypes=Fr;var Hr={children:A.a.node,className:A.a.string,cssModule:A.a.object,size:A.a.string,tag:A.a.oneOfType([A.a.func,A.a.string])},Ur={tag:"ul"},zr=function(e){var t=e.className,n=e.cssModule,r=e.size,o=e.tag,i=Z(e,["className","cssModule","size","tag"]),a=l(S()(t,"pagination",J({},"pagination-"+r,!!r)),n);return x.a.createElement(o,X({},i,{className:a}))};zr.propTypes=Hr,zr.defaultProps=Ur;var Kr={active:A.a.bool,children:A.a.node,className:A.a.string,cssModule:A.a.object,disabled:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string])},qr={tag:"li"},Wr=function(e){var t=e.active,n=e.className,r=e.cssModule,o=e.disabled,i=e.tag,a=Z(e,["active","className","cssModule","disabled","tag"]),s=l(S()(n,"page-item",{active:t,disabled:o}),r);return x.a.createElement(i,X({},a,{className:s}))};Wr.propTypes=Kr,Wr.defaultProps=qr;var Gr={"aria-label":A.a.string,children:A.a.node,className:A.a.string,cssModule:A.a.object,next:A.a.bool,previous:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string])},Vr={tag:"a"},Yr=function(e){var t=e.className,n=e.cssModule,r=e.next,o=e.previous,i=e.tag,a=Z(e,["className","cssModule","next","previous","tag"]),s=l(S()(t,"page-link"),n),u=void 0;o?u="Previous":r&&(u="Next");var c=e["aria-label"]||u,f=void 0;o?f="\xab":r&&(f="\xbb");var p=e.children;return p&&Array.isArray(p)&&0===p.length&&(p=null),(o||r)&&(p=[x.a.createElement("span",{"aria-hidden":"true",key:"caret"},p||f),x.a.createElement("span",{className:"sr-only",key:"sr"},c)]),x.a.createElement(i,X({},a,{className:s,"aria-label":c}),p)};Yr.propTypes=Gr,Yr.defaultProps=Vr;var $r={tag:A.a.oneOfType([A.a.func,A.a.string]),activeTab:A.a.any,className:A.a.string,cssModule:A.a.object},Jr={tag:"div"},Xr={activeTabId:A.a.any},Qr=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={activeTab:n.props.activeTab},n}return Q(t,e),$(t,[{key:"getChildContext",value:function(){return{activeTabId:this.state.activeTab}}},{key:"componentWillReceiveProps",value:function(e){this.state.activeTab!==e.activeTab&&this.setState({activeTab:e.activeTab})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.tag,o=c(this.props,Object.keys($r)),i=l(S()("tab-content",t),n);return x.a.createElement(r,X({},o,{className:i}))}}]),t}(w.Component);Qr.propTypes=$r,Qr.defaultProps=Jr,Qr.childContextTypes=Xr;var Zr={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object,tabId:A.a.any},eo={tag:"div"},to={activeTabId:A.a.any};T.propTypes=Zr,T.defaultProps=eo,T.contextTypes=to;var no={tag:A.a.oneOfType([A.a.func,A.a.string]),fluid:A.a.bool,className:A.a.string,cssModule:A.a.object},ro={tag:"div"},oo=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.fluid,i=Z(e,["className","cssModule","tag","fluid"]),a=l(S()(t,"jumbotron",!!o&&"jumbotron-fluid"),n);return x.a.createElement(r,X({},i,{className:a}))};oo.propTypes=no,oo.defaultProps=ro;var io={children:A.a.node,className:A.a.string,closeClassName:A.a.string,closeAriaLabel:A.a.string,cssModule:A.a.object,color:A.a.string,isOpen:A.a.bool,toggle:A.a.func,tag:A.a.oneOfType([A.a.func,A.a.string]),transition:A.a.shape(y.propTypes)},ao={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",transition:X({},y.defaultProps,{unmountOnExit:!0})};_.propTypes=io,_.defaultProps=ao;var so,uo=X({},bt.propTypes,{isOpen:A.a.bool,children:A.a.oneOfType([A.a.arrayOf(A.a.node),A.a.node]),tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.node,navbar:A.a.bool,cssModule:A.a.object}),lo=X({},bt.defaultProps,{isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:z.Collapse}),co=(so={},J(so,q.ENTERING,"collapsing"),J(so,q.ENTERED,"collapse show"),J(so,q.EXITING,"collapsing"),J(so,q.EXITED,"collapse"),so),fo=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={height:null},["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(e){n[e]=n[e].bind(n)}),n}return Q(t,e),$(t,[{key:"onEntering",value:function(e,t){this.setState({height:k(e)}),this.props.onEntering(e,t)}},{key:"onEntered",value:function(e,t){this.setState({height:null}),this.props.onEntered(e,t)}},{key:"onExit",value:function(e){this.setState({height:k(e)}),this.props.onExit(e)}},{key:"onExiting",value:function(e){e.offsetHeight;this.setState({height:0}),this.props.onExiting(e)}},{key:"onExited",value:function(e){this.setState({height:null}),this.props.onExited(e)}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.isOpen,r=e.className,o=e.navbar,i=e.cssModule,a=e.children,s=Z(e,["tag","isOpen","className","navbar","cssModule","children"]),u=this.state.height,p=f(s,K),d=c(s,K);return x.a.createElement(bt,X({},p,{in:n,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(e){var n=E(e),s=l(S()(r,n,o&&"navbar-collapse"),i),c=null===u?null:{height:u};return x.a.createElement(t,X({},d,{style:X({},d.style,c),className:s}),a)})}}]),t}(w.Component);fo.propTypes=uo,fo.defaultProps=lo;var po={tag:A.a.oneOfType([A.a.func,A.a.string]),active:A.a.bool,disabled:A.a.bool,color:A.a.string,action:A.a.bool,className:A.a.any,cssModule:A.a.object},ho={tag:"li"},mo=function(e){e.preventDefault()},go=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.active,i=e.disabled,a=e.action,s=e.color,u=Z(e,["className","cssModule","tag","active","disabled","action","color"]),c=l(S()(t,!!o&&"active",!!i&&"disabled",!!a&&"list-group-item-action",!!s&&"list-group-item-"+s,"list-group-item"),n);return i&&(u.onClick=mo),x.a.createElement(r,X({},u,{className:c}))};go.propTypes=po,go.defaultProps=ho;var vo={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.any,cssModule:A.a.object},yo={tag:"h5"},bo=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"list-group-item-heading"),n);return x.a.createElement(r,X({},o,{className:i}))};bo.propTypes=vo,bo.defaultProps=yo;var To={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.any,cssModule:A.a.object},_o={tag:"p"},Eo=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"list-group-item-text"),n);return x.a.createElement(r,X({},o,{className:i}))};Eo.propTypes=To,Eo.defaultProps=_o;(function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!0},n.toggle=n.toggle.bind(n),n}Q(t,e),$(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return x.a.createElement(_,X({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])})(w.Component),function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}Q(t,e),$(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return x.a.createElement(Je,X({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])}(w.Component),function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}Q(t,e),$(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return x.a.createElement(Re,X({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])}(w.Component),function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}Q(t,e),$(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return x.a.createElement(Zn,X({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])}(w.Component)},function(e,t,n){"use strict";function r(e,t){var n,r,i={};t||(t={});for(r in S)n=t[r],i[r]=null===n||void 0===n?S[r]:n;return(i.position.indent||i.position.start)&&(i.indent=i.position.indent||[],i.position=i.position.start),o(e,i)}function o(e,t){function n(){return{line:be,column:ye,offset:ge+(de.offset||0)}}function r(e,t){var r=n();r.column+=t,r.offset+=t,le.call(pe,W[e],r,e)}function o(t){return e.charAt(t)}function c(){Te&&(_e.push(Te),se&&se.call(ce,Te,{start:te,end:n()}),Te=A)}var f,S,z,K,q,G,V,Y,$,J,X,Q,Z,ee,te,ne,re,oe,ie=t.additional,ae=t.nonTerminated,se=t.text,ue=t.reference,le=t.warning,ce=t.textContext,fe=t.referenceContext,pe=t.warningContext,de=t.position,he=t.indent||[],me=e.length,ge=0,ve=-1,ye=de.column||1,be=de.line||1,Te=A,_e=[];for(te=n(),V=le?r:m,ge--,me++;++ge65535&&(q-=65536,$+=h(q>>>10|55296),q=56320|1023&q),q=$+h(q))):Z!==N&&V(j,re)),q?(c(),te=n(),ge=oe-1,ye+=oe-Q+1,_e.push(q),ne=n(),ne.offset++,ue&&ue.call(fe,q,{start:te,end:ne},e.slice(Q-1,oe)),te=ne):(z=e.slice(Q-1,oe),Te+=z,ye+=z.length,ge=oe-1)}return _e.join(A)}function i(e){return e>=55296&&e<=57343||e>1114111}function a(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}var s=n(590),u=n(212),l=n(591),c=n(45),f=n(213),p=n(214);e.exports=r;var d={}.hasOwnProperty,h=String.fromCharCode,m=Function.prototype,g="\ufffd",v="\f",y="&",b="#",T=";",_="\n",E="x",k="X",w=" ",x="<",C="=",A="",O="\t",S={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},N="named",D="hexadecimal",I="decimal",M={};M[D]=16,M[I]=10;var L={};L[N]=p,L[I]=c,L[D]=f;var P=1,R=2,B=3,j=4,F=5,H=6,U=7,z="Numeric character references",K=" must be terminated by a semicolon",q=" cannot be empty",W={};W[P]="Named character references"+K,W[R]=z+K,W[B]="Named character references"+q,W[j]=z+q,W[F]="Named character references must be known",W[H]=z+" cannot be disallowed",W[U]=z+" cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";function r(e){var t,n,r=i[e];if(r)return r;for(r=i[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1=56320&&u<=57343){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}var i={};o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()",e.exports=o},function(e,t,n){"use strict";function r(e){return e===y.SPACE||e===y.LINE_FEED||e===y.TABULATION||e===y.FORM_FEED}function o(e){return e>=y.DIGIT_0&&e<=y.DIGIT_9}function i(e){return e>=y.LATIN_CAPITAL_A&&e<=y.LATIN_CAPITAL_Z}function a(e){return e>=y.LATIN_SMALL_A&&e<=y.LATIN_SMALL_Z}function s(e){return a(e)||i(e)}function u(e){return s(e)||o(e)}function l(e,t){return o(e)||t&&(e>=y.LATIN_CAPITAL_A&&e<=y.LATIN_CAPITAL_F||e>=y.LATIN_SMALL_A&&e<=y.LATIN_SMALL_F)}function c(e){return e>=55296&&e<=57343||e>1114111}function f(e){return e+32}function p(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function d(e){return String.fromCharCode(f(e))}function h(e,t){for(var n=v[++e],r=++e,o=r+n-1;r<=o;){var i=r+o>>>1,a=v[i];if(at))return v[i+n];o=i-1}}return-1}var m=n(672),g=n(74),v=n(673),y=g.CODE_POINTS,b=g.CODE_POINT_SEQUENCES,T={0:65533,13:13,128:8364,129:129,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,141:141,142:381,143:143,144:144,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,157:157,158:382,159:376},_="DATA_STATE",E=e.exports=function(){this.preprocessor=new m,this.tokenQueue=[],this.allowCDATA=!1,this.state=_,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null};E.CHARACTER_TOKEN="CHARACTER_TOKEN",E.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",E.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",E.START_TAG_TOKEN="START_TAG_TOKEN",E.END_TAG_TOKEN="END_TAG_TOKEN",E.COMMENT_TOKEN="COMMENT_TOKEN",E.DOCTYPE_TOKEN="DOCTYPE_TOKEN",E.EOF_TOKEN="EOF_TOKEN",E.HIBERNATION_TOKEN="HIBERNATION_TOKEN",E.MODE={DATA:_,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},E.getTokenAttr=function(e,t){for(var n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},E.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()},E.prototype.write=function(e,t){this.active=!0,this.preprocessor.write(e,t)},E.prototype.insertHtmlAtCurrentPos=function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)},E.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0},E.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:E.HIBERNATION_TOKEN}),!0}return!1},E.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},E.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat()},E.prototype._unconsumeSeveral=function(e){for(;e--;)this._unconsume()},E.prototype._reconsumeInState=function(e){this.state=e,this._unconsume()},E.prototype._consumeSubsequentIfMatch=function(e,t,n){for(var r=0,o=!0,i=e.length,a=0,s=t,u=void 0;a0&&(s=this._consume(),r++),s===y.EOF){o=!1;break}if(u=e[a],s!==u&&(n||s!==f(u))){o=!1;break}}return o||this._unconsumeSeveral(r),o},E.prototype._lookahead=function(){var e=this._consume();return this._unconsume(),e},E.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==b.SCRIPT_STRING.length)return!1;for(var e=0;e-1;){var s=v[a],l=s<7;if(l&&1&s&&(t=2&s?[v[++a],v[++a]]:[v[++a]],n=o,r===y.SEMICOLON)){i=!0;break}if(r=this._consume(),o++,r===y.EOF)break;a=l?4&s?h(a,r):-1:r===s?++a:-1}if(t){if(!i&&(this._unconsumeSeveral(o-n),e)){var c=this._lookahead();if(c===y.EQUALS_SIGN||u(c))return this._unconsumeSeveral(n),null}return t}return this._unconsumeSeveral(o),null},E.prototype._consumeCharacterReference=function(e,t){if(r(e)||e===y.GREATER_THAN_SIGN||e===y.AMPERSAND||e===this.additionalAllowedCp||e===y.EOF)return this._unconsume(),null;if(e===y.NUMBER_SIGN){var n=!1,o=this._lookahead();return o!==y.LATIN_SMALL_X&&o!==y.LATIN_CAPITAL_X||(this._consume(),n=!0),(o=this._lookahead())!==y.EOF&&l(o,n)?[this._consumeNumericEntity(n)]:(this._unconsumeSeveral(n?2:1),null)}return this._unconsume(),this._consumeNamedEntity(t)};var k=E.prototype;k[_]=function(e){this.preprocessor.dropParsedChunk(),e===y.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_DATA_STATE":e===y.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===y.NULL?this._emitCodePoint(e):e===y.EOF?this._emitEOFToken():this._emitCodePoint(e)},k.CHARACTER_REFERENCE_IN_DATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=_)},k.RCDATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===y.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_RCDATA_STATE":e===y.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._emitEOFToken():this._emitCodePoint(e)},k.CHARACTER_REFERENCE_IN_RCDATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state="RCDATA_STATE")},k.RAWTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===y.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._emitEOFToken():this._emitCodePoint(e)},k.SCRIPT_DATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===y.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._emitEOFToken():this._emitCodePoint(e)},k.PLAINTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._emitEOFToken():this._emitCodePoint(e)},k.TAG_OPEN_STATE=function(e){e===y.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===y.SOLIDUS?this.state="END_TAG_OPEN_STATE":s(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===y.QUESTION_MARK?this._reconsumeInState("BOGUS_COMMENT_STATE"):(this._emitChar("<"),this._reconsumeInState(_))},k.END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===y.GREATER_THAN_SIGN?this.state=_:e===y.EOF?(this._reconsumeInState(_),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState("BOGUS_COMMENT_STATE")},k.TAG_NAME_STATE=function(e){r(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===y.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===y.GREATER_THAN_SIGN?(this.state=_,this._emitCurrentToken()):i(e)?this.currentToken.tagName+=d(e):e===y.NULL?this.currentToken.tagName+=g.REPLACEMENT_CHARACTER:e===y.EOF?this._reconsumeInState(_):this.currentToken.tagName+=p(e)},k.RCDATA_LESS_THAN_SIGN_STATE=function(e){e===y.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RCDATA_STATE"))},k.RCDATA_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RCDATA_STATE"))},k.RCDATA_END_TAG_NAME_STATE=function(e){if(i(e))this.currentToken.tagName+=d(e),this.tempBuff.push(e);else if(a(e))this.currentToken.tagName+=p(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(r(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===y.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===y.GREATER_THAN_SIGN)return this.state=_,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE")}},k.RAWTEXT_LESS_THAN_SIGN_STATE=function(e){e===y.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RAWTEXT_STATE"))},k.RAWTEXT_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RAWTEXT_STATE"))},k.RAWTEXT_END_TAG_NAME_STATE=function(e){if(i(e))this.currentToken.tagName+=d(e),this.tempBuff.push(e);else if(a(e))this.currentToken.tagName+=p(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(r(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===y.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===y.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=_)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE")}},k.SCRIPT_DATA_LESS_THAN_SIGN_STATE=function(e){e===y.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===y.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_STATE"))},k.SCRIPT_DATA_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_STATE"))},k.SCRIPT_DATA_END_TAG_NAME_STATE=function(e){if(i(e))this.currentToken.tagName+=d(e),this.tempBuff.push(e);else if(a(e))this.currentToken.tagName+=p(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(r(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===y.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===y.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=_)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE")}},k.SCRIPT_DATA_ESCAPE_START_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE")},k.SCRIPT_DATA_ESCAPE_START_DASH_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE")},k.SCRIPT_DATA_ESCAPED_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChar("-")):e===y.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._reconsumeInState(_):this._emitCodePoint(e)},k.SCRIPT_DATA_ESCAPED_DASH_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===y.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===y.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(g.REPLACEMENT_CHARACTER)):e===y.EOF?this._reconsumeInState(_):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))},k.SCRIPT_DATA_ESCAPED_DASH_DASH_STATE=function(e){e===y.HYPHEN_MINUS?this._emitChar("-"):e===y.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===y.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===y.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(g.REPLACEMENT_CHARACTER)):e===y.EOF?this._reconsumeInState(_):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))},k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===y.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):s(e)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))},k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))},k.SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE=function(e){if(i(e))this.currentToken.tagName+=d(e),this.tempBuff.push(e);else if(a(e))this.currentToken.tagName+=p(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(r(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===y.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===y.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=_)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}},k.SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE=function(e){r(e)||e===y.SOLIDUS||e===y.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):i(e)?(this.tempBuff.push(f(e)),this._emitCodePoint(e)):a(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")},k.SCRIPT_DATA_DOUBLE_ESCAPED_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChar("-")):e===y.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._reconsumeInState(_):this._emitCodePoint(e)},k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===y.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===y.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(g.REPLACEMENT_CHARACTER)):e===y.EOF?this._reconsumeInState(_):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))},k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE=function(e){e===y.HYPHEN_MINUS?this._emitChar("-"):e===y.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===y.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===y.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(g.REPLACEMENT_CHARACTER)):e===y.EOF?this._reconsumeInState(_):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))},k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===y.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChar("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")},k.SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE=function(e){r(e)||e===y.SOLIDUS||e===y.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):i(e)?(this.tempBuff.push(f(e)),this._emitCodePoint(e)):a(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")},k.BEFORE_ATTRIBUTE_NAME_STATE=function(e){r(e)||(e===y.SOLIDUS||e===y.GREATER_THAN_SIGN||e===y.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===y.EQUALS_SIGN?(this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))},k.ATTRIBUTE_NAME_STATE=function(e){r(e)||e===y.SOLIDUS||e===y.GREATER_THAN_SIGN||e===y.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===y.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):i(e)?this.currentAttr.name+=d(e):e===y.QUOTATION_MARK||e===y.APOSTROPHE||e===y.LESS_THAN_SIGN?this.currentAttr.name+=p(e):e===y.NULL?this.currentAttr.name+=g.REPLACEMENT_CHARACTER:this.currentAttr.name+=p(e)},k.AFTER_ATTRIBUTE_NAME_STATE=function(e){r(e)||(e===y.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===y.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===y.GREATER_THAN_SIGN?(this.state=_,this._emitCurrentToken()):e===y.EOF?this._reconsumeInState(_):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))},k.BEFORE_ATTRIBUTE_VALUE_STATE=function(e){r(e)||(e===y.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===y.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))},k.ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE=function(e){e===y.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===y.AMPERSAND?(this.additionalAllowedCp=y.QUOTATION_MARK,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===y.NULL?this.currentAttr.value+=g.REPLACEMENT_CHARACTER:e===y.EOF?this._reconsumeInState(_):this.currentAttr.value+=p(e)},k.ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE=function(e){e===y.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===y.AMPERSAND?(this.additionalAllowedCp=y.APOSTROPHE,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===y.NULL?this.currentAttr.value+=g.REPLACEMENT_CHARACTER:e===y.EOF?this._reconsumeInState(_):this.currentAttr.value+=p(e)},k.ATTRIBUTE_VALUE_UNQUOTED_STATE=function(e){r(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===y.AMPERSAND?(this.additionalAllowedCp=y.GREATER_THAN_SIGN,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===y.GREATER_THAN_SIGN?(this._leaveAttrValue(_),this._emitCurrentToken()):e===y.NULL?this.currentAttr.value+=g.REPLACEMENT_CHARACTER:e===y.QUOTATION_MARK||e===y.APOSTROPHE||e===y.LESS_THAN_SIGN||e===y.EQUALS_SIGN||e===y.GRAVE_ACCENT?this.currentAttr.value+=p(e):e===y.EOF?this._reconsumeInState(_):this.currentAttr.value+=p(e)},k.CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE=function(e){var t=this._consumeCharacterReference(e,!0);if(!this._ensureHibernation()){if(t)for(var n=0;n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),u(r,e,r.depth)}function i(e,t){var n=o.styles[t];return n?"\x1b["+o.colors[n][0]+"m"+e+"\x1b["+o.colors[n][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(e,n,r){if(e.customInspect&&n&&C(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=u(e,o,r)),o}var i=l(e,n);if(i)return i;var a=Object.keys(n),m=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(n);if(0===a.length){if(C(n)){var g=n.name?": "+n.name:"";return e.stylize("[Function"+g+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return c(n)}var v="",y=!1,T=["{","}"];if(h(n)&&(y=!0,T=["[","]"]),C(n)){v=" [Function"+(n.name?": "+n.name:"")+"]"}if(E(n)&&(v=" "+RegExp.prototype.toString.call(n)),w(n)&&(v=" "+Date.prototype.toUTCString.call(n)),x(n)&&(v=" "+c(n)),0===a.length&&(!y||0==n.length))return T[0]+v+T[1];if(r<0)return E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var _;return _=y?f(e,n,r,m,a):a.map(function(t){return p(e,n,r,m,t,y)}),e.seen.pop(),d(_,v,T)}function l(e,t){if(_(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,o){for(var i=[],a=0,s=t.length;a-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),_(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function m(e){return"boolean"===typeof e}function g(e){return null===e}function v(e){return null==e}function y(e){return"number"===typeof e}function b(e){return"string"===typeof e}function T(e){return"symbol"===typeof e}function _(e){return void 0===e}function E(e){return k(e)&&"[object RegExp]"===O(e)}function k(e){return"object"===typeof e&&null!==e}function w(e){return k(e)&&"[object Date]"===O(e)}function x(e){return k(e)&&("[object Error]"===O(e)||e instanceof Error)}function C(e){return"function"===typeof e}function A(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function O(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}function N(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var I=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}}function p(e,t){for(var n=0;n=t)return r+Math.min(a,t-o);if(o+=i-r,o+=n-o%n,r=i+1,o>=t)return r}}function h(e){for(;Ya.length<=e;)Ya.push(m(Ya)+" ");return Ya[e]}function m(e){return e[e.length-1]}function g(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||$a.test(e))}function _(e,t){return t?!!(t.source.indexOf("\\w")>-1&&T(e))||t.test(e):T(e)}function E(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function k(e){return e.charCodeAt(0)>=768&&Ja.test(e)}function w(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function C(e,t,n){var i=this;this.input=n,i.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=o("div",null,"CodeMirror-code"),i.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=r("div",null,"CodeMirror-cursors"),i.measure=r("div",null,"CodeMirror-measure"),i.lineMeasure=r("div",null,"CodeMirror-measure"),i.lineSpace=o("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var a=o("div",[i.lineSpace],"CodeMirror-lines");i.mover=r("div",[a],null,"position: relative"),i.sizer=r("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=r("div",null,null,"position: absolute; height: "+Ka+"px; width: 1px;"),i.gutters=r("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=r("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=r("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),ba&&Ta<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),_a||ma&&Na||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,n.init(i)}function A(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t=e.first&&tn?P(n,A(e,n).text.length):K(t,A(e,t.line).text.length)}function K(e,t){var n=e.ch;return null==n||n>t?P(e.line,t):n<0?P(e.line,0):e}function q(e,t){for(var n=[],r=0;r=t:i.to>t);(r||(r=[])).push(new V(a,i.from,u?null:i.to))}}return r}function Q(e,t,n){var r;if(e)for(var o=0;o=t:i.to>t);if(s||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var u=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&s)for(var _=0;_0)){var c=[u,1],f=R(l.from,s.from),d=R(l.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:l.to}),o.splice.apply(o,c),u+=c.length-3}}return o}function ne(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||ae(n,i.marker)<0)&&(n=i.marker)}return n}function fe(e,t,n,r,o){var i=A(e,t),a=Qa&&i.markedSpans;if(a)for(var s=0;s=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&o.inclusiveLeft?R(l.to,n)>=0:R(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&o.inclusiveLeft?R(l.from,r)<=0:R(l.from,r)<0)))return!0}}}function pe(e){for(var t;t=ue(e);)e=t.find(-1,!0).line;return e}function de(e){for(var t;t=le(e);)e=t.find(1,!0).line;return e}function he(e){for(var t,n;t=le(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function me(e,t){var n=A(e,t),r=pe(n);return n==r?t:D(r)}function ge(e,t){if(t>e.lastLine())return t;var n,r=A(e,t);if(!ve(e,r))return t;for(;n=le(r);)r=n.find(1,!0).line;return D(r)+1}function ve(e,t){var n=Qa&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function Ee(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var o=!1,i=0;it||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}function ke(e,t,n){var r;Za=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:Za=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:Za=o)}return null!=r?r:Za}function we(e,t){var n=e.order;return null==n&&(n=e.order=es(e.text,t)),n}function xe(e,t){return e._handlers&&e._handlers[t]||ts}function Ce(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,o=r&&r[t];if(o){var i=p(o,n);i>-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function Ae(e,t){var n=xe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function De(e){e.prototype.on=function(e,t){ns(this,e,t)},e.prototype.off=function(e,t){Ce(this,e,t)}}function Ie(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Le(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Pe(e){Ie(e),Me(e)}function Re(e){return e.target||e.srcElement}function Be(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),Da&&e.ctrlKey&&1==t&&(t=3),t}function je(e){if(null==Ua){var t=r("span","\u200b");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ua=t.offsetWidth<=1&&t.offsetHeight>2&&!(ba&&Ta<8))}var o=Ua?r("span","\u200b"):r("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}function Fe(e){if(null!=za)return za;var r=n(e,document.createTextNode("A\u062eA")),o=Pa(r,0,1).getBoundingClientRect(),i=Pa(r,1,2).getBoundingClientRect();return t(e),!(!o||o.left==o.right)&&(za=i.right-o.right<3)}function He(e){if(null!=ss)return ss;var t=n(e,r("span","x")),o=t.getBoundingClientRect(),i=Pa(t,0,1).getBoundingClientRect();return ss=Math.abs(o.left-i.left)>1}function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),us[e]=t}function ze(e,t){ls[e]=t}function Ke(e){if("string"==typeof e&&ls.hasOwnProperty(e))e=ls[e];else if(e&&"string"==typeof e.name&&ls.hasOwnProperty(e.name)){var t=ls[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ke("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ke("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function qe(e,t){t=Ke(t);var n=us[t.name];if(!n)return qe(e,"text/plain");var r=n(e,t);if(cs.hasOwnProperty(t.name)){var o=cs[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}function We(e,t){c(t,cs.hasOwnProperty(e)?cs[e]:cs[e]={})}function Ge(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Ve(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ye(e,t,n){return!e.startState||e.startState(t,n)}function $e(e,t,n,r){var o=[e.state.modeGen],i={};rt(e,t.text,e.doc.mode,n,function(e,t){return o.push(e,t)},i,r);for(var a=n.state,s=0;se&&o.splice(u,1,e,o[u+1],r),u+=2,l=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;ne.options.maxHighlightLength&&Ge(e.doc.mode,r.state),i=$e(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Xe(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new ds(r,!0,t);var i=ot(e,t,n),a=i>r.first&&A(r,i-1).stateAfter,s=a?ds.fromSaved(r,a,i):new ds(r,Ye(r.mode),i);return r.iter(i,t,function(n){Qe(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}function tt(e,t,n,r){var o,i=e.doc,a=i.mode;t=z(i,t);var s,u=A(i,t.line),l=Xe(e,t.line,n),c=new fs(u.text,e.options.tabSize,l);for(r&&(s=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&Qe(e,t,r,f.pos),f.pos=t.length,u=null):u=nt(et(n,f,r.state,p),i),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||c!=u){for(;la;--s){if(s<=i.first)return i.first;var u=A(i,s-1),l=u.stateAfter;if(l&&(!n||s+(l instanceof ps?l.lookAhead:0)<=i.modeFrontier))return s;var c=f(u.text,null,e.options.tabSize);(null==o||r>c)&&(o=s-1,r=c)}return o}function it(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var o=A(e,r).stateAfter;if(o&&(!(o instanceof ps)||r+o.lookAhead1&&!/ /.test(e))return e;for(var n=t,r="",o=0;ol&&f.from<=l));p++);if(f.to>=c)return e(n,r,o,i,a,s,u);e(n,r.slice(0,f.to-l),o,i,null,s,u),i=null,r=r.slice(f.to-l),l=f.to}}}function ht(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function mt(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,u,l,c,f,p,d=o.length,h=0,m=1,g="",v=0;;){if(v==h){u=l=c=f=s="",p=null,v=1/0;for(var y=[],b=void 0,T=0;Th||E.collapsed&&_.to==h&&_.from==h)?(null!=_.to&&_.to!=h&&v>_.to&&(v=_.to,l=""),E.className&&(u+=" "+E.className),E.css&&(s=(s?s+";":"")+E.css),E.startStyle&&_.from==h&&(c+=" "+E.startStyle),E.endStyle&&_.to==v&&(b||(b=[])).push(E.endStyle,_.to),E.title&&!f&&(f=E.title),E.collapsed&&(!p||ae(p.marker,E)<0)&&(p=_)):_.from>h&&v>_.from&&(v=_.from)}if(b)for(var k=0;k=d)break;for(var x=Math.min(d,v);;){if(g){var C=h+g.length;if(!p){var A=C>x?g.slice(0,x-h):g;t.addToken(t,A,a?a+u:u,c,h+A.length==v?l:"",f,s)}if(C>=x){g=g.slice(x-h),h=x;break}h=C,c=""}g=o.slice(i,i=n[m++]),a=ut(n[m++],t.cm.options)}}else for(var O=1;O2&&i.push((u.bottom+l.top)/2-n.top)}}i.push(n.bottom-n.top)}}function qt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function Wt(e,t){t=pe(t);var r=D(t),o=e.display.externalMeasured=new gt(e.doc,t,r);o.lineN=r;var i=o.built=lt(e,o);return o.text=i.pre,n(e.display.lineMeasure,i.pre),o}function Gt(e,t,n,r){return $t(e,Yt(e,t),n,r)}function Vt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(i=u-s,o=i-1,t>=u&&(a="right")),null!=o){if(r=e[l+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&o==u-s)for(;l=0&&(n=e[o]).left==n.right;o--);return n}function Qt(e,t,n,r){var o,i=Jt(t.map,n,r),a=i.node,s=i.start,u=i.end,l=i.collapse;if(3==a.nodeType){for(var c=0;c<4;c++){for(;s&&k(t.line.text.charAt(i.coverStart+s));)--s;for(;i.coverStart+u0&&(l=r="right");var f;o=e.options.lineWrapping&&(f=a.getClientRects()).length>1?f["right"==r?f.length-1:0]:a.getBoundingClientRect()}if(ba&&Ta<9&&!s&&(!o||!o.left&&!o.right)){var p=a.parentNode.getClientRects()[0];o=p?{left:p.left,right:p.left+_n(e.display),top:p.top,bottom:p.bottom}:_s}for(var d=o.top-t.rect.top,h=o.bottom-t.rect.top,m=(d+h)/2,g=t.view.measure.heights,v=0;v=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!u)return a("before"==c?l-1:l,"before"==c);var f=ke(u,l,c),p=Za,d=s(l,f,"before"==c);return null!=p&&(d.other=s(l,p,"before"!=c)),d}function fn(e,t){var n=0;t=z(e.doc,t),e.options.lineWrapping||(n=_n(e.display)*t.ch);var r=A(e.doc,t.line),o=be(r)+Bt(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function pn(e,t,n,r,o){var i=P(e,t,n);return i.xRel=o,r&&(i.outside=!0),i}function dn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return pn(r.first,0,null,!0,-1);var o=I(r,n),i=r.first+r.size-1;if(o>i)return pn(r.first+r.size-1,A(r,i).text.length,null,!0,1);t<0&&(t=0);for(var a=A(r,o);;){var s=vn(e,a,o,t,n),u=ce(a,s.ch+(s.xRel>0?1:0));if(!u)return s;var l=u.find(1);if(l.line==o)return l;a=A(r,o=l.line)}}function hn(e,t,n,r){r-=an(t);var o=t.text.length,i=x(function(t){return $t(e,n,t-1).bottom<=r},o,0);return o=x(function(t){return $t(e,n,t).top>r},i,o),{begin:i,end:o}}function mn(e,t,n,r){return n||(n=Yt(e,t)),hn(e,t,n,sn(e,t,$t(e,n,r),"line").top)}function gn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function vn(e,t,n,r,o){o-=be(t);var i=Yt(e,t),a=an(t),s=0,u=t.text.length,l=!0,c=we(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?bn:yn)(e,t,n,i,c,r,o);l=1!=f.level,s=l?f.from:f.to-1,u=l?f.to:f.from-1}var p,d,h=null,m=null,g=x(function(t){var n=$t(e,i,t);return n.top+=a,n.bottom+=a,!!gn(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=t,m=n),!0)},s,u),v=!1;if(m){var y=r-m.left=T.bottom}return g=w(t.text,g,1),pn(n,g,d,v,r-p)}function yn(e,t,n,r,o,i,a){var s=x(function(s){var u=o[s],l=1!=u.level;return gn(cn(e,P(n,l?u.to:u.from,l?"before":"after"),"line",t,r),i,a,!0)},0,o.length-1),u=o[s];if(s>0){var l=1!=u.level,c=cn(e,P(n,l?u.from:u.to,l?"after":"before"),"line",t,r);gn(c,i,a,!0)&&c.top>a&&(u=o[s-1])}return u}function bn(e,t,n,r,o,i,a){var s=hn(e,t,r,a),u=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,f=null,p=0;p=l||d.to<=u)){var h=1!=d.level,m=$t(e,r,h?Math.min(l,d.to)-1:Math.max(u,d.from)).right,g=mg)&&(c=d,f=g)}}return c||(c=o[o.length-1]),c.froml&&(c={from:c.from,to:l,level:c.level}),c}function Tn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==gs){gs=r("pre");for(var o=0;o<49;++o)gs.appendChild(document.createTextNode("x")),gs.appendChild(r("br"));gs.appendChild(document.createTextNode("x"))}n(e.measure,gs);var i=gs.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),t(e.measure),i||1}function _n(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),o=r("pre",[t]);n(e.measure,o);var i=t.getBoundingClientRect(),a=(i.right-i.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function En(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a)n[e.options.gutters[a]]=i.offsetLeft+i.clientLeft+o,r[e.options.gutters[a]]=i.clientWidth;return{fixedPos:kn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function kn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function wn(e){var t=Tn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/_n(e.display)-3);return function(o){if(ve(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r=e.display.viewTo||s.to().line0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ln(e){e.state.focused||(e.display.input.focus(),Rn(e))}function Pn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Bn(e))},100)}function Rn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Ae(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),_a&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Mn(e))}function Bn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ae(e,"blur",e,t),e.state.focused=!1,ja(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function jn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||u<-.005)&&(N(o.line,i),Fn(o.line),o.rest))for(var l=0;l=a&&(i=I(t,be(A(t,u))-e.wrapper.clientHeight),a=u)}return{from:i,to:Math.max(a,i+1)}}function Un(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=kn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!Aa){var a=r("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Bt(e.display))+"px;\n height: "+(t.bottom-t.top+Ht(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function qn(e,t,n,r){null==r&&(r=0);var o;e.options.lineWrapping||t!=n||(t=t.ch?P(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?P(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var a=!1,s=cn(e,t),u=n&&n!=t?cn(e,n):s;o={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r};var l=Gn(e,o),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&(Zn(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(tr(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}function Wn(e,t){var n=Gn(e,t);null!=n.scrollTop&&Zn(e,n.scrollTop),null!=n.scrollLeft&&tr(e,n.scrollLeft)}function Gn(e,t){var n=e.display,r=Tn(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=zt(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+jt(n),u=t.tops-r;if(t.topo+i){var c=Math.min(t.top,(l?s:t.bottom)-i);c!=o&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=Ut(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+f-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function Vn(e,t){null!=t&&(Xn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Yn(e){Xn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function $n(e,t,n){null==t&&null==n||Xn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Jn(e,t){Xn(e),e.curOp.scrollToPos=t}function Xn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;Qn(e,fn(e,t.from),fn(e,t.to),t.margin)}}function Qn(e,t,n,r){var o=Gn(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});$n(e,o.scrollLeft,o.scrollTop)}function Zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(ma||Dr(e,{top:t}),er(e,t,!0),ma&&Dr(e),wr(e,100))}function er(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function tr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Un(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function nr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+jt(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Ht(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function rr(e,t){t||(t=nr(e));var n=e.display.barWidth,r=e.display.barHeight;or(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&jn(e),or(e,nr(e)),n=e.display.barWidth,r=e.display.barHeight}function or(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function ir(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ja(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ws[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ns(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?tr(e,t):Zn(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function ar(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++xs},yt(e.curOp)}function sr(e){Tt(e.curOp,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Cs(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function cr(e){e.updatedDisplay=e.mustUpdate&&Sr(e.cm,e.update)}function fr(e){var t=e.cm,n=t.display;e.updatedDisplay&&jn(t),e.barMeasure=nr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Gt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Ht(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ut(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function pr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Qa&&me(e.doc,t)o.viewFrom?Tr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)Tr(e);else if(t<=o.viewFrom){var i=_r(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):Tr(e)}else if(n>=o.viewTo){var a=_r(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):Tr(e)}else{var s=_r(e,t,t,-1),u=_r(e,n,n+r,1);s&&u?(o.view=o.view.slice(0,s.index).concat(vt(e,s.lineN,u.lineN)).concat(o.view.slice(u.index)),o.viewTo+=r):Tr(e)}var l=o.externalMeasured;l&&(n=o.lineN&&t=r.viewTo)){var i=r.view[An(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==p(a,n)&&a.push(n)}}}function Tr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function _r(e,t,n,r){var o,i=An(e,t),a=e.display.view;if(!Qa||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,u=0;u0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;me(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Er(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=vt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=vt(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,An(e,n)))),r.viewTo=n}function kr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Xe(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?Ge(t.mode,r.state):null,u=$e(e,i,r,!0);s&&(r.state=s),i.styles=u.styles;var l=i.styleClasses,c=u.classes;c?i.styleClasses=c:l&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),p=0;!f&&pn)return wr(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&hr(e,function(){for(var t=0;t=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==kr(e))return!1;zn(e)&&(Tr(e),n.dims=En(e));var i=o.first+o.size,a=Math.max(n.visible.from-e.options.viewportMargin,o.first),s=Math.min(i,n.visible.to+e.options.viewportMargin);r.viewFroms&&r.viewTo-s<20&&(s=Math.min(i,r.viewTo)),Qa&&(a=me(e.doc,a),s=ge(e.doc,s));var u=a!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;Er(e,a,s),r.viewOffset=be(A(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var l=kr(e);if(!u&&0==l&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=Ar(e);return l>4&&(r.lineDiv.style.display="none"),Ir(e,r.updateLineNumbers,n.dims),l>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Or(c),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,u&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,wr(e,400)),r.updateLineNumbers=null,!0}function Nr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Ut(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+jt(e.display)-zt(e),n.top)}),t.visible=Hn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Sr(e,t);r=!1){jn(e);var o=nr(e);On(e),rr(e,o),Lr(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Dr(e,t){var n=new Cs(e,t);if(Sr(e,n)){jn(e),Nr(e,n);var r=nr(e);On(e),rr(e,r),Lr(e,r),n.finish()}}function Ir(e,n,r){function o(t){var n=t.nextSibling;return _a&&Da&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var i=e.display,a=e.options.lineNumbers,s=i.lineDiv,u=s.firstChild,l=i.view,c=i.viewFrom,f=0;f-1&&(h=!1),kt(e,d,c,r)),h&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(L(e.options,c)))),u=d.node.nextSibling}else{var m=Dt(e,d,c,r);s.insertBefore(m,u)}c+=d.size}for(;u;)u=o(u)}function Mr(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Lr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ht(e)+"px"}function Pr(e){var n=e.display.gutters,o=e.options.gutters;t(n);for(var i=0;i-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Br(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function jr(e){var t=Br(e);return t.x*=Os,t.y*=Os,t}function Fr(e,t){var n=Br(t),r=n.x,o=n.y,i=e.display,a=i.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||o&&u){if(o&&Da&&_a)e:for(var l=t.target,c=i.view;l!=a;l=l.parentNode)for(var f=0;f=0){var a=H(i.from(),o.from()),s=F(i.to(),o.to()),u=i.empty()?o.from()==o.head:i.from()==i.head;r<=t&&--t,e.splice(--r,2,new Ns(u?s:a,u?a:s))}}return new Ss(e,t)}function Ur(e,t){return new Ss([new Ns(e,t||e)],0)}function zr(e){return e.text?P(e.from.line+e.text.length-1,m(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Kr(e,t){if(R(e,t.from)<0)return e;if(R(e,t.to)<=0)return zr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=zr(t).ch-t.to.ch),P(n,r)}function qr(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}_t(e,"change",e,t)}function Xr(e,t,n){function r(e,o,i){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),m(e.done)):void 0}function io(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=oo(o,o.lastOp==r)))a=m(i.changes),0==R(t.from,t.to)&&0==R(t.from,a.to)?a.to=zr(t):i.changes.push(no(e,t));else{var u=m(o.done);for(u&&u.ranges||uo(e.sel,o.done),i={changes:[no(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||Ae(e,"historyAdded")}function ao(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function so(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||ao(e,i,m(o.done),t))?o.done[o.done.length-1]=t:uo(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&ro(o.undone)}function uo(e,t){var n=m(t);n&&n.ranges&&n.equals(e)||t.push(e)}function lo(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i})}function co(e){if(!e)return null;for(var t,n=0;n-1&&(m(s)[f]=l[f],delete l[f])}}}return r}function mo(e,t,n,r){if(r){var o=e.anchor;if(n){var i=R(t,o)<0;i!=R(n,o)<0?(o=t,t=n):i!=R(t,n)<0&&(t=n)}return new Ns(o,t)}return new Ns(n||t,t)}function go(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Eo(e,new Ss([mo(e.sel.primary(),t,n,o)],0),r)}function vo(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:s.to>t.ch))){if(o&&(Ae(u,"beforeCursorEnter"),u.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var l=u.find(r<0?1:-1),c=void 0;if((r<0?u.inclusiveRight:u.inclusiveLeft)&&(l=So(e,l,-r,l&&l.line==t.line?i:null)),l&&l.line==t.line&&(c=R(l,n))&&(r<0?c<0:c>0))return Ao(e,l,t,r,o)}var f=u.find(r<0?-1:1);return(r<0?u.inclusiveLeft:u.inclusiveRight)&&(f=So(e,f,r,f.line==t.line?i:null)),f?Ao(e,f,t,r,o):null}}return t}function Oo(e,t,n,r,o){var i=r||1,a=Ao(e,t,n,i,o)||!o&&Ao(e,t,n,i,!0)||Ao(e,t,n,-i,o)||!o&&Ao(e,t,n,-i,!0);return a||(e.cantEdit=!0,P(e.first,0))}function So(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?z(e,P(t.line-1)):null:n>0&&t.ch==(r||A(e,t.line)).text.length?t.line=0;--o)Mo(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else Mo(e,t)}}function Mo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=R(t.from,t.to)){var n=qr(e,t);io(e,t,n,e.cm?e.cm.curOp.id:NaN),Ro(e,t,n,Z(e,t));var r=[];Xr(e,function(e,n){n||-1!=p(r,e.history)||(Uo(e.history,t),r.push(e.history)),Ro(e,t,null,Z(e,t))})}}function Lo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,s="undo"==t?i.done:i.undone,u="undo"==t?i.undone:i.done,l=0;l=0;--d){var h=function(n){var r=o.changes[n];if(r.origin=t,f&&!Do(e,r,!1))return s.length=0,{};c.push(no(e,r));var i=n?qr(e,r):m(s);Ro(e,r,i,po(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:zr(r)});var a=[];Xr(e,function(e,t){t||-1!=p(a,e.history)||(Uo(e.history,r),a.push(e.history)),Ro(e,r,null,po(e,r))})}(d);if(h)return h.v}}}}function Po(e,t){if(0!=t&&(e.first+=t,e.sel=new Ss(g(e.sel.ranges,function(e){return new Ns(P(e.anchor.line+t,e.anchor.ch),P(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){yr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:P(i,A(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=O(e,t.from,t.to),n||(n=qr(e,t)),e.cm?Bo(e.cm,t,r):Jr(e,t,r),ko(e,n,Wa)}}function Bo(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,u=i.line;e.options.lineWrapping||(u=D(pe(A(r,i.line))),r.iter(u,a.line+1,function(e){if(e==o.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Se(e),Jr(r,t,n,wn(e)),e.options.lineWrapping||(r.iter(u,i.line+t.text.length,function(e){var t=Te(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),it(r,i.line),wr(e,400);var l=t.text.length-(a.line-i.line)-1;t.full?yr(e):i.line!=a.line||1!=t.text.length||$r(e.doc,t)?yr(e,i.line,a.line+1,l):br(e,i.line,"text");var c=Ne(e,"changes"),f=Ne(e,"change");if(f||c){var p={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&_t(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function jo(e,t,n,r,o){if(r||(r=n),R(r,n)<0){var i;i=[r,n],n=i[0],r=i[1]}"string"==typeof t&&(t=e.splitLines(t)),Io(e,{from:n,to:r,text:t,origin:o})}function Fo(e,t,n,r){n0||0==s&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=o("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(fe(e,t.line,t,n,a)||t.line!=n.line&&fe(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");G()}a.addToHistory&&io(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var u,l=t.line,f=e.cm;if(e.iter(l,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&pe(e)==f.display.maxLine&&(u=!0),a.collapsed&&l!=t.line&&N(e,0),J(e,new V(a,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),a.collapsed&&e.iter(t.line,n.line+1,function(t){ve(e,t)&&N(t,0)}),a.clearOnEnter&&ns(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(W(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++Is,a.atomic=!0),f){if(u&&(f.curOp.updateMaxLine=!0),a.collapsed)yr(f,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var p=t.line;p<=n.line;p++)br(f,p,"text");a.atomic&&xo(f.doc),_t(f,"markerAdded",f,a)}return a}function Yo(e,t,n,r,o){r=c(r),r.shared=!1;var i=[Vo(e,t,n,r,o)],a=i[0],s=r.widgetNode;return Xr(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),i.push(Vo(e,z(e,t),z(e,n),r,o));for(var u=0;u-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var u=e.dataTransfer.getData("Text");if(u){var l;if(t.state.draggingText&&!t.state.draggingText.copy&&(l=t.listSelections()),ko(t.doc,Ur(n,n)),l)for(var c=0;c=0;t--)jo(e.doc,"",r[t].from,r[t].to,"+delete");Yn(e)})}function hi(e,t,n){var r=w(e.text,t+n,n);return r<0||r>e.text.length?null:r}function mi(e,t,n){var r=hi(e,t.ch,n);return null==r?null:new P(t.line,r,n<0?"after":"before")}function gi(e,t,n,r,o){if(e){var i=we(n,t.doc.direction);if(i){var a,s=o<0?m(i):i[0],u=o<0==(1==s.level),l=u?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=Yt(t,n);a=o<0?n.text.length-1:0;var f=$t(t,c,a).top;a=x(function(e){return $t(t,c,e).top==f},o<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=hi(n,a,1))}else a=o<0?s.to:s.from;return new P(r,a,l)}}return new P(r,o<0?n.text.length:0,o<0?"before":"after")}function vi(e,t,n,r){var o=we(t,e.doc.direction);if(!o)return mi(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=ke(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&p>=c.begin)){var d=f?"before":"after";return new P(n.line,p,d)}}var h=function(e,t,r){for(var i=function(e,t){return t?new P(n.line,u(e,1),"before"):new P(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=s?r.begin:u(r.end,-1);if(a.from<=l&&l0?c.end:u(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:o.length-1,r,l(g)))?null:m}function yi(e,t){var n=A(e.doc,t),r=pe(n);return r!=n&&(t=D(r)),gi(!0,e,r,t,1)}function bi(e,t){var n=A(e.doc,t),r=de(n);return r!=n&&(t=D(r)),gi(!0,e,n,t,-1)}function Ti(e,t){var n=yi(e,t.line),r=A(e.doc,n.line),o=we(r,e.doc.direction);if(!o||0==o[0].level){var i=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=i&&t.ch;return P(n.line,a?0:i,n.sticky)}return n}function _i(e,t,n){if("string"==typeof t&&!(t=qs[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),o=t(e)!=qa}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function Ei(e,t,n){for(var r=0;r-1&&(R((o=s.ranges[o]).from(),t)<0||t.xRel>0)&&(R(o.to(),t)>0||t.xRel<0)?Ri(e,r,t,i):ji(e,r,t,i)}function Ri(e,t,n,r){var o=e.display,i=!1,a=mr(e,function(t){_a&&(o.scroller.draggable=!1),e.state.draggingText=!1,Ce(o.wrapper.ownerDocument,"mouseup",a),Ce(o.wrapper.ownerDocument,"mousemove",s),Ce(o.scroller,"dragstart",u),Ce(o.scroller,"drop",a),i||(Ie(t),r.addNew||go(e.doc,n,null,null,r.extend),_a||ba&&9==Ta?setTimeout(function(){o.wrapper.ownerDocument.body.focus(),o.input.focus()},20):o.input.focus())}),s=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return i=!0};_a&&(o.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),ns(o.wrapper.ownerDocument,"mouseup",a),ns(o.wrapper.ownerDocument,"mousemove",s),ns(o.scroller,"dragstart",u),ns(o.scroller,"drop",a),Pn(e),setTimeout(function(){return o.input.focus()},20)}function Bi(e,t,n){if("char"==n)return new Ns(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ns(P(t.line,0),z(e.doc,P(t.line+1,0)));var r=n(e,t);return new Ns(r.from,r.to)}function ji(e,t,n,r){function o(t){if(0!=R(v,t))if(v=t,"rectangle"==r.unit){for(var o=[],i=e.options.tabSize,a=f(A(l,n.line).text,n.ch,i),s=f(A(l,t.line).text,t.ch,i),u=Math.min(a,s),m=Math.max(a,s),g=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=y;g++){var b=A(l,g).text,T=d(b,u,i);u==m?o.push(new Ns(P(g,T),P(g,T))):b.length>T&&o.push(new Ns(P(g,T),P(g,d(b,m,i))))}o.length||o.push(new Ns(n,n)),Eo(l,Hr(h.ranges.slice(0,p).concat(o),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var _,E=c,k=Bi(e,t,r.unit),w=E.anchor;R(k.anchor,w)>0?(_=k.head,w=H(E.from(),k.anchor)):(_=k.anchor,w=F(E.to(),k.head));var x=h.ranges.slice(0);x[p]=Fi(e,new Ns(z(l,w),_)),Eo(l,Hr(x,p),Ga)}}function i(t){var n=++b,s=Cn(e,t,!0,"rectangle"==r.unit);if(s)if(0!=R(s,v)){e.curOp.focus=a(),o(s);var c=Hn(u,l);(s.line>=c.to||s.liney.bottom?20:0;f&&setTimeout(mr(e,function(){b==n&&(u.scroller.scrollTop+=f,i(t))}),50)}}function s(t){e.state.selectingText=!1,b=1/0,Ie(t),u.input.focus(),Ce(u.wrapper.ownerDocument,"mousemove",T),Ce(u.wrapper.ownerDocument,"mouseup",_),l.history.lastSelOrigin=null}var u=e.display,l=e.doc;Ie(t);var c,p,h=l.sel,m=h.ranges;if(r.addNew&&!r.extend?(p=l.sel.contains(n),c=p>-1?m[p]:new Ns(n,n)):(c=l.sel.primary(),p=l.sel.primIndex),"rectangle"==r.unit)r.addNew||(c=new Ns(n,n)),n=Cn(e,t,!0,!0),p=-1;else{var g=Bi(e,n,r.unit);c=r.extend?mo(c,g.anchor,g.head,r.extend):g}r.addNew?-1==p?(p=m.length,Eo(l,Hr(m.concat([c]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&"char"==r.unit&&!r.extend?(Eo(l,Hr(m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),h=l.sel):yo(l,p,c,Ga):(p=0,Eo(l,new Ss([c],0),Ga),h=l.sel);var v=n,y=u.wrapper.getBoundingClientRect(),b=0,T=mr(e,function(e){0!==e.buttons&&Be(e)?i(e):s(e)}),_=mr(e,s);e.state.selectingText=_,ns(u.wrapper.ownerDocument,"mousemove",T),ns(u.wrapper.ownerDocument,"mouseup",_)}function Fi(e,t){var n=t.anchor,r=t.head,o=A(e.doc,n.line);if(0==R(n,r)&&n.sticky==r.sticky)return t;var i=we(o);if(!i)return t;var a=ke(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==i.length)return t;var l;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ke(i,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var p=i[u+(l?-1:0)],d=l==(1==p.level),h=d?p.from:p.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new Ns(new P(n.line,h,m),r)}function Hi(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ie(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!Ne(e,n))return Le(t);i-=s.top-a.viewOffset;for(var u=0;u=o){return Ae(e,n,e,I(e.doc,i),e.options.gutters[u],t),Le(t)}}}function Ui(e,t){return Hi(e,t,"gutterClick",!0)}function zi(e,t){Rt(e.display,t)||Ki(e,t)||Oe(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Ki(e,t){return!!Ne(e,"gutterContextMenu")&&Hi(e,t,"gutterContextMenu",!1)}function qi(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),nn(e)}function Wi(e){Pr(e),yr(e),Un(e)}function Gi(e,t,n){if(!t!=!(n&&n!=Js)){var r=e.display.dragFunctions,o=t?ns:Ce;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Vi(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ja(e.display.wrapper,"CodeMirror-wrap"),_e(e)),xn(e),yr(e),nn(e),setTimeout(function(){return rr(e)},100)}function Yi(e,t){var n=this;if(!(this instanceof Yi))return new Yi(e,t);this.options=t=t?c(t):{},c(Xs,t,!1),Rr(t);var r=t.value;"string"==typeof r?r=new Rs(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new Yi.inputStyles[t.inputStyle](this),i=this.display=new C(e,r,o);i.wrapper.CodeMirror=this,Pr(this),qi(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ir(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Ha,keySeq:null,specialChars:null},t.autofocus&&!Na&&i.input.focus(),ba&&Ta<11&&setTimeout(function(){return n.display.input.reset(!0)},20),$i(this),ri(),ar(this),this.curOp.forceUpdate=!0,Qr(this,r),t.autofocus&&!Na||this.hasFocus()?setTimeout(l(Rn,this),20):Bn(this);for(var a in Qs)Qs.hasOwnProperty(a)&&Qs[a](n,t[a],Js);zn(this),t.finishInit&&t.finishInit(this);for(var s=0;s400}var o=e.display;ns(o.scroller,"mousedown",mr(e,Ii)),ba&&Ta<11?ns(o.scroller,"dblclick",mr(e,function(t){if(!Oe(e,t)){var n=Cn(e,t);if(n&&!Ui(e,t)&&!Rt(e.display,t)){Ie(t);var r=e.findWordAt(n);go(e.doc,r.anchor,r.head)}}})):ns(o.scroller,"dblclick",function(t){return Oe(e,t)||Ie(t)}),Ba||ns(o.scroller,"contextmenu",function(t){return zi(e,t)});var i,a={end:0};ns(o.scroller,"touchstart",function(t){if(!Oe(e,t)&&!n(t)&&!Ui(e,t)){o.input.ensurePolled(),clearTimeout(i);var r=+new Date;o.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),ns(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),ns(o.scroller,"touchend",function(n){var i=o.activeTouch;if(i&&!Rt(o,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var a,s=e.coordsChar(o.activeTouch,"page");a=!i.prev||r(i,i.prev)?new Ns(s,s):!i.prev.prev||r(i,i.prev.prev)?e.findWordAt(s):new Ns(P(s.line,0),z(e.doc,P(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ie(n)}t()}),ns(o.scroller,"touchcancel",t),ns(o.scroller,"scroll",function(){o.scroller.clientHeight&&(Zn(e,o.scroller.scrollTop),tr(e,o.scroller.scrollLeft,!0),Ae(e,"scroll",e))}),ns(o.scroller,"mousewheel",function(t){return Fr(e,t)}),ns(o.scroller,"DOMMouseScroll",function(t){return Fr(e,t)}),ns(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){Oe(e,t)||Pe(t)},over:function(t){Oe(e,t)||(ei(e,t),Pe(t))},start:function(t){return Zo(e,t)},drop:mr(e,Qo),leave:function(t){Oe(e,t)||ti(e)}};var s=o.input.getField();ns(s,"keyup",function(t){return Si.call(e,t)}),ns(s,"keydown",mr(e,Ai)),ns(s,"keypress",mr(e,Ni)),ns(s,"focus",function(t){return Rn(e,t)}),ns(s,"blur",function(t){return Bn(e,t)})}function Ji(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=Xe(e,t).state:n="prev");var a=e.options.tabSize,s=A(i,t),u=f(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=i.mode.indent(o,s.text.slice(c.length),s.text))==qa||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>i.first?f(A(i,t-1).text,null,a):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var p="",d=0;if(e.options.indentWithTabs)for(var m=Math.floor(l/a);m;--m)d+=a,p+="\t";if(d1)if(eu&&eu.text.join("\n")==t){if(r.ranges.length%eu.text.length==0){u=[];for(var l=0;l=0;f--){var p=r.ranges[f],d=p.from(),h=p.to();p.empty()&&(n&&n>0?d=P(d.line,d.ch-n):e.state.overwrite&&!a?h=P(h.line,Math.min(A(i,h.line).text.length,h.ch+m(s).length)):eu&&eu.lineWise&&eu.text.join("\n")==t&&(d=h=P(d.line,0))),c=e.curOp.updateInput;var v={from:d,to:h,text:u?u[f%u.length]:s,origin:o||(a?"paste":e.state.cutIncoming?"cut":"+input")};Io(e.doc,v),_t(e,"inputRead",e,v)}t&&!a&&ea(e,t),Yn(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Zi(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||hr(t,function(){return Qi(t,n,0,null,"paste")}),!0}function ea(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s-1){a=Ji(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(A(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Ji(e,o.head.line,"smart"));a&&_t(e,"electricInput",e,o.head.line)}}}function ta(e){for(var t=[],n=[],r=0;r=e.first+e.size)&&(t=new P(r,t.ch,t.sticky),l=A(e,r))}function a(r){var a;if(null==(a=o?vi(e.cm,l,t,n):mi(l,t,n))){if(r||!i())return!1;t=gi(o,e.cm,l,t.line,n)}else t=a;return!0}var s=t,u=n,l=A(e,t.line);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||a(!d);d=!1){var h=l.text.charAt(t.ch)||"\n",m=_(h,p)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||d||m||(m="s"),c&&c!=m){n<0&&(n=1,a(),t.sticky="after");break}if(m&&(c=m),n>0&&!a(!d))break}var g=Oo(e,t,s,u,!0);return B(s,g)&&(g.hitSide=!0),g}function ia(e,t,n,r){var o,i=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*Tn(e.display),3);o=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(var l;l=dn(e,a,o),l.outside;){if(n<0?o<=0:o>=i.height){l.hitSide=!0;break}o+=5*n}return l}function aa(e,t){var n=Vt(e,t.line);if(!n||n.hidden)return null;var r=A(e.doc,t.line),o=qt(n,r,t.line),i=we(r,e.doc.direction),a="left";if(i){a=ke(i,t.ch)%2?"right":"left"}var s=Jt(o.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function sa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ua(e,t){return t&&(e.bad=!0),e}function la(e,t,n,r,o){function i(e){return function(t){return t.id==e}}function a(){c&&(l+=f,p&&(l+=f),c=p=!1)}function s(e){e&&(a(),l+=e)}function u(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void s(n);var l,d=t.getAttribute("cm-marker");if(d){var h=e.findMarks(P(r,0),P(o+1,0),i(+d));return void(h.length&&(l=h[0].find(0))&&s(O(e.doc,l.from,l.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&a();for(var g=0;g=15&&(wa=!1,_a=!0);var Pa,Ra=Da&&(Ea||wa&&(null==La||La<12.11)),Ba=ma||ba&&Ta>=9,ja=function(t,n){var r=t.className,o=e(n).exec(r);if(o){var i=r.slice(o.index+o[0].length);t.className=r.slice(0,o.index)+(i?o[1]+i:"")}};Pa=document.createRange?function(e,t,n,r){var o=document.createRange();return o.setEnd(r||e,n),o.setStart(e,t),o}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Fa=function(e){e.select()};Oa?Fa=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ba&&(Fa=function(e){try{e.select()}catch(e){}});var Ha=function(){this.id=null};Ha.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var Ua,za,Ka=30,qa={toString:function(){return"CodeMirror.Pass"}},Wa={scroll:!1},Ga={origin:"*mouse"},Va={origin:"+move"},Ya=[""],$a=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ja=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Xa=!1,Qa=!1,Za=null,es=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,u=/[1n]/;return function(n,r){var l="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!o.test(n))return!1;for(var c=n.length,f=[],p=0;p=this.string.length},fs.prototype.sol=function(){return this.pos==this.lineStart},fs.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fs.prototype.next=function(){if(this.post},fs.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},fs.prototype.skipToEnd=function(){this.pos=this.string.length},fs.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},fs.prototype.backUp=function(e){this.pos-=e},fs.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},fs.prototype.current=function(){return this.string.slice(this.start,this.pos)},fs.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},fs.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},fs.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ps=function(e,t){this.state=e,this.lookAhead=t},ds=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};ds.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ds.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ds.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ds.fromSaved=function(e,t,n){return t instanceof ps?new ds(e,Ge(e.mode,t.state),n,t.lookAhead):new ds(e,Ge(e.mode,t),n)},ds.prototype.save=function(e){var t=!1!==e?Ge(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ps(t,this.maxLookAhead):t};var hs=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},ms=function(e,t,n){this.text=e,re(this,t),this.height=n?n(this):1};ms.prototype.lineNo=function(){return D(this)},De(ms);var gs,vs={},ys={},bs=null,Ts=null,_s={left:0,right:0,top:0,bottom:0},Es=function(e,t,n){this.cm=n;var o=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=i.tabIndex=-1,e(o),e(i),ns(o,"scroll",function(){o.clientHeight&&t(o.scrollTop,"vertical")}),ns(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ba&&Ta<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Es.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Es.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Es.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Es.prototype.zeroWidthHack=function(){var e=Da&&!Ca?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ha,this.disableVert=new Ha},Es.prototype.enableZeroWidthBar=function(e,t,n){function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},Es.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ks=function(){};ks.prototype.update=function(){return{bottom:0,right:0}},ks.prototype.setScrollLeft=function(){},ks.prototype.setScrollTop=function(){},ks.prototype.clear=function(){};var ws={native:Es,null:ks},xs=0,Cs=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Hn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Ut(e),this.force=n,this.dims=En(e),this.events=[]};Cs.prototype.signal=function(e,t){Ne(e,t)&&this.events.push(arguments)},Cs.prototype.finish=function(){for(var e=this,t=0;t=0&&R(e,o.to())<=0)return r}return-1};var Ns=function(e,t){this.anchor=e,this.head=t};Ns.prototype.from=function(){return H(this.anchor,this.head)},Ns.prototype.to=function(){return F(this.anchor,this.head)},Ns.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Ko.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,o=e+t;r1||!(this.children[0]instanceof Ko))){var u=[];this.collapse(u),this.children=[new Ko(u)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n50){for(var s=i.lines.length%25+25,u=s;u10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,o=0;ot.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=o&&t&&this.collapsed&&yr(t,o,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&xo(t.doc)),t&&_t(t,"markerCleared",t,this,o,i),n&&sr(t),this.parent&&this.parent.clear()}},Ms.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,o,i=0;i=0;l--)Io(r,o[l]);u?_o(this,u):this.cm&&Yn(this.cm)}),undo:vr(function(){Lo(this,"undo")}),redo:vr(function(){Lo(this,"redo")}),undoSelection:vr(function(){Lo(this,"undo",!0)}),redoSelection:vr(function(){Lo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=z(this,e),t=z(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(i){var a=i.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&o!=e.line||null!=u.from&&o==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=i,++n}),z(this,P(n,t))},indexFromPos:function(e){e=z(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)o=new P(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),P(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=A(e.doc,o.line-1).text;a&&(o=new P(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),P(o.line-1,a.length-1),o,"+transpose"))}n.push(new Ns(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){return hr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&0==R(t,this.pos)&&n==this.button};var Ys,$s,Js={toString:function(){return"CodeMirror.Init"}},Xs={},Qs={};Yi.defaults=Xs,Yi.optionHandlers=Qs;var Zs=[];Yi.defineInitHook=function(e){return Zs.push(e)};var eu=null,tu=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ha,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};tu.prototype.init=function(e){function t(e){if(!Oe(o,e)){if(o.somethingSelected())Xi({lineWise:!1,text:o.getSelections()}),"cut"==e.type&&o.replaceSelection("",null,"cut");else{if(!o.options.lineWiseCopyCut)return;var t=ta(o);Xi({lineWise:!0,text:t.text}),"cut"==e.type&&o.operation(function(){o.setSelections(t.ranges,0,Wa),o.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=eu.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=ra(),s=a.firstChild;o.display.lineSpace.insertBefore(a,o.display.lineSpace.firstChild),s.value=eu.text.join("\n");var u=document.activeElement;Fa(s),setTimeout(function(){o.display.lineSpace.removeChild(a),u.focus(),u==i&&r.showPrimarySelection()},50)}}var n=this,r=this,o=r.cm,i=r.div=e.lineDiv;na(i,o.options.spellcheck),ns(i,"paste",function(e){Oe(o,e)||Zi(e,o)||Ta<=11&&setTimeout(mr(o,function(){return n.updateFromDOM()}),20)}),ns(i,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),ns(i,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),ns(i,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),ns(i,"touchstart",function(){return r.forceCompositionEnd()}),ns(i,"input",function(){n.composing||n.readFromDOMSoon()}),ns(i,"copy",t),ns(i,"cut",t)},tu.prototype.prepareSelection=function(){var e=Sn(this.cm,!1);return e.focus=this.cm.state.focused,e},tu.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},tu.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tu.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),o=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||o.line=t.display.viewFrom&&aa(t,r)||{node:s[0].measure.map[2],offset:0},l=o.linee.firstLine()&&(r=P(r.line-1,A(e.doc,r.line-1).length)),o.ch==A(e.doc,o.line).text.length&&o.linet.viewTo-1)return!1;var i,a,s;r.line==t.viewFrom||0==(i=An(e,r.line))?(a=D(t.view[0].line),s=t.view[0].node):(a=D(t.view[i].line),s=t.view[i-1].node.nextSibling);var u,l,c=An(e,o.line);if(c==t.view.length-1?(u=t.viewTo-1,l=t.lineDiv.lastChild):(u=D(t.view[c+1].line)-1,l=t.view[c+1].node.previousSibling),!s)return!1;for(var f=e.doc.splitLines(la(e,s,l,a,u)),p=O(e.doc,P(a,0),P(u,A(e.doc,u).text.length));f.length>1&&p.length>1;)if(m(f)==m(p))f.pop(),p.pop(),u--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),a++}for(var d=0,h=0,g=f[0],v=p[0],y=Math.min(g.length,v.length);dr.ch&&b.charCodeAt(b.length-h-1)==T.charCodeAt(T.length-h-1);)d--,h++;f[f.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var E=P(a,d),k=P(u,p.length?m(p).length-h:0);return f.length>1||f[0]||R(E,k)?(jo(e.doc,f,E,k,"+input"),!0):void 0},tu.prototype.ensurePolled=function(){this.forceCompositionEnd()},tu.prototype.reset=function(){this.forceCompositionEnd()},tu.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tu.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},tu.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||hr(this.cm,function(){return yr(e.cm)})},tu.prototype.setUneditable=function(e){e.contentEditable="false"},tu.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||mr(this.cm,Qi)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},tu.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},tu.prototype.onContextMenu=function(){},tu.prototype.resetPosition=function(){},tu.prototype.needsContentAttribute=!0;var nu=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ha,this.hasSelection=!1,this.composing=null};nu.prototype.init=function(e){function t(e){if(!Oe(o,e)){if(o.somethingSelected())Xi({lineWise:!1,text:o.getSelections()});else{if(!o.options.lineWiseCopyCut)return;var t=ta(o);Xi({lineWise:!0,text:t.text}),"cut"==e.type?o.setSelections(t.ranges,null,Wa):(r.prevInput="",i.value=t.text.join("\n"),Fa(i))}"cut"==e.type&&(o.state.cutIncoming=!0)}}var n=this,r=this,o=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Oa&&(i.style.width="0px"),ns(i,"input",function(){ba&&Ta>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),ns(i,"paste",function(e){Oe(o,e)||Zi(e,o)||(o.state.pasteIncoming=!0,r.fastPoll())}),ns(i,"cut",t),ns(i,"copy",t),ns(e.scroller,"paste",function(t){Rt(e,t)||Oe(o,t)||(o.state.pasteIncoming=!0,r.focus())}),ns(e.lineSpace,"selectstart",function(t){Rt(e,t)||Ie(t)}),ns(i,"compositionstart",function(){var e=o.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:o.markText(e,o.getCursor("to"),{className:"CodeMirror-composing"})}}),ns(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},nu.prototype.createField=function(e){this.wrapper=ra(),this.textarea=this.wrapper.firstChild},nu.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Sn(e);if(e.options.moveInputWithCursor){var o=cn(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},nu.prototype.showSelection=function(e){var t=this.cm,r=t.display;n(r.cursorDiv,e.cursors),n(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},nu.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&Fa(this.textarea),ba&&Ta>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",ba&&Ta>=9&&(this.hasSelection=null))}},nu.prototype.getField=function(){return this.textarea},nu.prototype.supportsTouch=function(){return!1},nu.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Na||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},nu.prototype.blur=function(){this.textarea.blur()},nu.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},nu.prototype.receivedFocus=function(){this.slowPoll()},nu.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},nu.prototype.fastPoll=function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},nu.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||is(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(ba&&Ta>=9&&this.hasSelection===o||Da&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(r.length,o.length);a1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},nu.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},nu.prototype.onKeyPress=function(){ba&&Ta>=9&&(this.hasSelection=null),this.fastPoll()},nu.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=o.somethingSelected(),t="\u200b"+(e?a.value:"");a.value="\u21da",a.value=t,r.prevInput=e?"":"\u200b",a.selectionStart=1,a.selectionEnd=t.length,i.selForContextMenu=o.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=c,a.style.cssText=l,ba&&Ta<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=a.selectionStart){(!ba||ba&&Ta<9)&&t();var e=0,n=function(){i.selForContextMenu==o.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"\u200b"==r.prevInput?mr(o,No)(o):e++<10?i.detectingSelectAll=setTimeout(n,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(n,200)}}var r=this,o=r.cm,i=o.display,a=r.textarea,s=Cn(o,e),u=i.scroller.scrollTop;if(s&&!wa){o.options.resetSelectionOnContextMenu&&-1==o.doc.sel.contains(s)&&mr(o,Eo)(o.doc,Ur(s),Wa);var l=a.style.cssText,c=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var f=r.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(ba?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var p;if(_a&&(p=window.scrollY),i.input.focus(),_a&&window.scrollTo(null,p),i.input.reset(),o.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll),ba&&Ta>=9&&t(),Ba){Pe(e);var d=function(){Ce(window,"mouseup",d),setTimeout(n,20)};ns(window,"mouseup",d)}else setTimeout(n,50)}},nu.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},nu.prototype.setUneditable=function(){},nu.prototype.needsContentAttribute=!1,function(e){function t(t,r,o,i){e.defaults[t]=r,o&&(n[t]=i?function(e,t,n){n!=Js&&o(e,t,n)}:o)}var n=e.optionHandlers;e.defineOption=t,e.Init=Js,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Vr(e)},!0),t("indentUnit",2,Vr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Yr(e),nn(e),yr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(P(r,i))}r++});for(var o=n.length-1;o>=0;o--)jo(e.doc,t,n[o],P(n[o].line,n[o].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Js&&e.refresh()}),t("specialCharPlaceholder",ct,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",Na?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!Ma),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){qi(e),Wi(e)},!0),t("keyMap","default",function(e,t,n){var r=pi(t),o=n!=Js&&pi(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Vi,!0),t("gutters",[],function(e){Rr(e.options),Wi(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?kn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return rr(e)},!0),t("scrollbarStyle","native",function(e){ir(e),rr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Rr(e.options),Wi(e)},!0),t("firstLineNumber",1,Wi,!0),t("lineNumberFormatter",function(e){return e},Wi,!0),t("showCursorWhenSelecting",!1,On,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("readOnly",!1,function(e,t){"nocursor"==t&&(Bn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Gi),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,On,!0),t("singleCursorHeightPerLine",!0,On,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Yr,!0),t("addModeClass",!1,Yr,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,Yr,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Yi),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&mr(this,t[e])(this,n,o),Ae(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](pi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nr&&(Ji(t,i.head.line,e,!0),r=i.head.line,o==t.doc.sel.primIndex&&Yn(t));else{var a=i.from(),s=i.to(),u=Math.max(r,a.line);r=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var l=u;l0&&yo(t.doc,o,new Ns(a,c[o].to()),Wa)}}}),getTokenAt:function(e,t){return tt(this,e,t)},getLineTokens:function(e,t){return tt(this,P(e),t,!0)},getTokenTypeAt:function(e){e=z(this.doc,e);var t,n=Je(this,A(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]i&&(e=i,o=!0),r=A(this.doc,e)}else r=e;return sn(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-be(r):0)},defaultTextHeight:function(){return Tn(this.display)},defaultCharWidth:function(){return _n(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i=this.display;e=cn(this,z(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var u=Math.max(i.wrapper.clientHeight,this.doc.height),l=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(a=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==o?(s=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?s=0:"middle"==o&&(s=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&Wn(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:gr(Ai),triggerOnKeyPress:gr(Ni),triggerOnKeyUp:Si,triggerOnMouseDown:gr(Ii),execCommand:function(e){if(qs.hasOwnProperty(e))return qs[e].call(null,this)},triggerElectric:gr(function(e){ea(this,e)}),findPosH:function(e,t,n,r){var o=this,i=1;t<0&&(i=-1,t=-t);for(var a=z(this.doc,e),s=0;s0&&s(n.charAt(r-1));)--r;for(;o.5)&&xn(this),Ae(this,"refresh",this)}),swapDoc:gr(function(e){var t=this.doc;return t.cm=null,Qr(this,e),nn(this),this.display.input.reset(),$n(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,_t(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},De(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}(Yi);var ru="iter insert remove copy getEditor constructor".split(" ");for(var ou in Rs.prototype)Rs.prototype.hasOwnProperty(ou)&&p(ru,ou)<0&&(Yi.prototype[ou]=function(e){return function(){return e.apply(this.doc,arguments)}}(Rs.prototype[ou]));return De(Rs),Yi.inputStyles={textarea:nu,contenteditable:tu},Yi.defineMode=function(e){Yi.defaults.mode||"null"==e||(Yi.defaults.mode=e),Ue.apply(this,arguments)},Yi.defineMIME=ze,Yi.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Yi.defineMIME("text/plain","null"),Yi.defineExtension=function(e,t){Yi.prototype[e]=t},Yi.defineDocExtension=function(e,t){Rs.prototype[e]=t},Yi.fromTextArea=pa,function(e){e.off=Ce,e.on=ns,e.wheelEventPixels=jr,e.Doc=Rs,e.splitLines=os,e.countColumn=f,e.findColumn=d,e.isWordChar=T,e.Pass=qa,e.signal=Ae,e.Line=ms,e.changeEnd=zr,e.scrollbarModel=ws,e.Pos=P,e.cmpPos=R,e.modes=us,e.mimeModes=ls,e.resolveMode=Ke,e.getMode=qe,e.modeExtensions=cs,e.extendMode=We,e.copyState=Ge,e.startState=Ye,e.innerMode=Ve,e.commands=qs,e.keyMap=Ks,e.keyName=fi,e.isModifierKey=li,e.lookupKey=ui,e.normalizeKeyMap=si,e.StringStream=fs,e.SharedTextMarker=Ls,e.TextMarker=Ms,e.LineWidget=Ds,e.e_preventDefault=Ie,e.e_stopPropagation=Me,e.e_stop=Pe,e.addClass=s,e.contains=i,e.rmClass=ja,e.keyNames=Fs}(Yi),Yi.version="5.39.2",Yi})},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=n.x64={};a.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r-1&&n.observers[e].splice(r,1)}else delete n.observers[e]})},e.prototype.emit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function o(){return!e||"string"===typeof e}for(var i="string"!==typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}function a(e,t,n){var r=i(e,t,Object);r.obj[r.k]=n}function s(e,t,n,r){var o=i(e,t,Object),a=o.obj,s=o.k;a[s]=a[s]||[],r&&(a[s]=a[s].concat(n)),r||a[s].push(n)}function u(e,t){var n=i(e,t),r=n.obj,o=n.k;if(r)return r[o]}function l(e,t,n){for(var r in t)r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):l(e[r],t[r],n):e[r]=t[r];return e}function c(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function f(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,function(e){return p[e]}):e}t.e=r,t.a=o,t.h=a,t.f=s,t.d=u,t.b=l,t.g=c,t.c=f;var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}},function(e,t,n){e.exports=n(283)()},function(e,t,n){e.exports=n(285)},function(e,t,n){var r,o,i;!function(n,a){o=[t],r=a,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=void 0,r={randomId:function(){return Math.random().toString(36).split(".")[1]},returnFirstDefined:function(){for(var e=void 0,t=void 0,n=arguments.length,r=Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"INSERT":return n(e,t);case"REMOVE":return r(e,t);case"REMOVEALL":return[];default:return e}},i=function(e){var t=void 0,n=[],r=function(){return t},o=function(r){t=e(t,r),n.forEach(function(e){return e()})},i=function(e){return n.push(e),function(){n=n.filter(function(t){return t!==e})}};return o({}),{getState:r,dispatch:o,subscribe:i}}(o);e.default=i})},function(e,t,n){function r(){}function o(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var r=i(e.data);if(!1===r)return v;n+=r}return p("encoded %j as %s",e,n),n}function i(e){try{return JSON.stringify(e)}catch(e){return!1}}function a(e,t){function n(e){var n=h.deconstructPacket(e),r=o(n.packet),i=n.buffers;i.unshift(r),t(i)}h.removeBlobs(e,n)}function s(){this.reconstructor=null}function u(e){var n=0,r={type:Number(e.charAt(0))};if(null==t.types[r.type])return f("unknown packet type "+r.type);if(t.BINARY_EVENT===r.type||t.BINARY_ACK===r.type){for(var o="";"-"!==e.charAt(++n)&&(o+=e.charAt(n),n!=e.length););if(o!=Number(o)||"-"!==e.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===e.charAt(n+1))for(r.nsp="";++n;){var i=e.charAt(n);if(","===i)break;if(r.nsp+=i,n===e.length)break}else r.nsp="/";var a=e.charAt(n+1);if(""!==a&&Number(a)==a){for(r.id="";++n;){var i=e.charAt(n);if(null==i||Number(i)!=i){--n;break}if(r.id+=e.charAt(n),n===e.length)break}r.id=Number(r.id)}if(e.charAt(++n)){var s=l(e.substr(n));if(!(!1!==s&&(r.type===t.ERROR||m(s))))return f("invalid payload");r.data=s}return p("decoded %s as %j",e,r),r}function l(e){try{return JSON.parse(e)}catch(e){return!1}}function c(e){this.reconPack=e,this.buffers=[]}function f(e){return{type:t.ERROR,data:"parser error: "+e}}var p=n(294)("socket.io-parser"),d=n(27),h=n(296),m=n(136),g=n(137);t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=r,t.Decoder=s;var v=t.ERROR+'"encode error"';r.prototype.encode=function(e,n){if(p("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type)a(e,n);else{n([o(e)])}},d(s.prototype),s.prototype.add=function(e){var n;if("string"===typeof e)n=u(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new c(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!g(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},s.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},c.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=h.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},c.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){(function(t){var r=n(299);e.exports=function(e){var n=e.xdomain,o=e.xscheme,i=e.enablesXDR;try{if("undefined"!==typeof XMLHttpRequest&&(!n||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!==typeof XDomainRequest&&!o&&i)return new XDomainRequest}catch(e){}if(!n)try{return new(t[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}}).call(t,n(3))},function(e,t,n){function r(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}var o=n(28),i=n(27);e.exports=r,i(r.prototype),r.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(e){var t=o.decodePacket(e,this.socket.binaryType);this.onPacket(t)},r.prototype.onPacket=function(e){this.emit("packet",e)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){"use strict";function r(e){u=s({},u,e)}function o(){return u}function i(e){l=e}function a(){return l}t.d=r,t.a=o,t.e=i,t.b=a,n.d(t,"c",function(){return c});var s=Object.assign||function(e){for(var t=1;t1)for(var n=1;n2?r-2:0),i=2;i1?n-1:0),o=1;o1?t-1:0),r=1;r2?n-2:0),o=2;o-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){(function(e){var r=n(148),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a&&r.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(t,n(29)(e))},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t,n){function r(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var o=n(158);e.exports=r},function(e,t,n){function r(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}var o=n(151);e.exports=r},function(e,t,n){var r=n(156),o=r(Object.getPrototypeOf,Object);e.exports=o},function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&i(r,n)&&(void 0!==n||t in e)||o(e,t,n)}var o=n(103),i=n(43),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCodeBlockByKey=t.wrapCodeBlock=t.unwrapCodeBlockByKey=t.unwrapCodeBlock=t.toggleCodeBlock=t.indentLines=t.dedentLines=void 0;var o=n(474),i=r(o),a=n(475),s=r(a),u=n(476),l=r(u),c=n(180),f=r(c),p=n(181),d=r(p),h=n(178),m=r(h),g=n(179),v=r(g);t.dedentLines=i.default,t.indentLines=s.default,t.toggleCodeBlock=l.default,t.unwrapCodeBlock=f.default,t.unwrapCodeBlockByKey=d.default,t.wrapCodeBlock=m.default,t.wrapCodeBlockByKey=v.default},function(e,t,n){"use strict";function r(e,t,n){return n.nodes.forEach(function(e,r){var i=o.Range.create().moveToRangeOf(n);t.deleteAtRange(i)}),t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.default=r},function(e,t,n){"use strict";function r(e,t){return e.types.includes(t.type)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.isSelectionInBlockquote=t.getCurrentBlockquote=void 0;var o=n(200),i=r(o),a=n(527),s=r(a);t.getCurrentBlockquote=i.default,t.isSelectionInBlockquote=s.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapInBlockquote=t.unwrapBlockquote=void 0;var o=n(528),i=r(o),a=n(529),s=r(a);t.unwrapBlockquote=i.default,t.wrapInBlockquote=s.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}n.d(t,"d",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"f",function(){return y}),n.d(t,"a",function(){return h}),n.d(t,"e",function(){return d}),n.d(t,"c",function(){return b});var a=n(1),s=n.n(a),u=n(70),l=n(22),c=function(){function e(e,t){for(var n=0;n","&","`"],g=function(){var e,t={};for(e in l)t[l[e]]=e;return t}(),v=u(m),y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g},function(e,t,n){"use strict";function r(e,t){return t||0===e.length||i.test(e)||o(e,"(")!==o(e,")")?"<"+e+">":e}var o=n(246);e.exports=r;var i=/\s/},function(e,t,n){"use strict";function r(e){var t=-1===e.indexOf('"')?'"':"'";return t+e+t}e.exports=r},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],u=n[4],l=0;l<80;l++){if(l<16)a[l]=0|e[t+l];else{var c=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=c<<1|c>>>31}var f=(r<<5|r>>>27)+u+a[l];f+=l<20?1518500249+(o&i|~o&s):l<40?1859775393+(o^i^s):l<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,u=s,s=i,i=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){!function(){var t=e,n=t.lib,r=n.Base,o=t.enc,i=o.Utf8,a=t.algo;a.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,l=0;l=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){s.headers[e]={}}),o.forEach(["post","put","patch"],function(e){s.headers[e]=o.merge(a)}),e.exports=s}).call(t,n(16))},function(e,t,n){"use strict";function r(){}function o(e){try{return e.then}catch(e){return v=e,y}}function i(e,t){try{return e(t)}catch(e){return v=e,y}}function a(e,t,n){try{e(t,n)}catch(e){return v=e,y}}function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,e!==r&&m(e,this)}function u(e,t,n){return new e.constructor(function(o,i){var a=new s(r);a.then(o,i),l(e,new h(t,n,a))})}function l(e,t){for(;3===e._83;)e=e._18;if(s._47&&s._47(e),0===e._83)return 0===e._75?(e._75=1,void(e._38=t)):1===e._75?(e._75=2,void(e._38=[e._38,t])):void e._38.push(t);c(e,t)}function c(e,t){g(function(){var n=1===e._83?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._83?f(t.promise,e._18):p(t.promise,e._18));var r=i(n,e._18);r===y?p(t.promise,v):f(t.promise,r)})}function f(e,t){if(t===e)return p(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=o(t);if(n===y)return p(e,v);if(n===e.then&&t instanceof s)return e._83=3,e._18=t,void d(e);if("function"===typeof n)return void m(n.bind(t),e)}e._83=1,e._18=t,d(e)}function p(e,t){e._83=2,e._18=t,s._71&&s._71(e,t),d(e)}function d(e){if(1===e._75&&(l(e,e._38),e._38=null),2===e._75){for(var t=0;t-1?t:e}function d(e,t){t=t||{};var n=t.body;if(e instanceof d){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=p(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function m(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function g(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var v={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(v.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},T=ArrayBuffer.isView||function(e){return e&&y.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+","+r:r},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=n(r)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},v.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},f.call(d.prototype),f.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];g.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=d,e.Response=g,e.fetch=function(e,t){return new Promise(function(n,r){var o=new d(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:m(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;n(new g(t,e))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&v.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"===typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(18),n(4),n(84),n(85),n(289)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n,r,o,i,a){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 c(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)}Object.defineProperty(e,"__esModule",{value:!0});var f=s(t),p=s(n),d=s(r),h=s(o),m=s(i),g=s(a),v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=function(){function e(e,t){for(var n=0;n0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},r.prototype.cleanup=function(){c("cleanup");for(var e=this.subs.length,t=0;t=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){(function(e){function r(t){var n=!1,r=!1,s=!1!==t.jsonp;if(e.location){var u="https:"===location.protocol,l=location.port;l||(l=u?443:80),n=t.hostname!==location.hostname||l!==t.port,r=t.secure!==u}if(t.xdomain=n,t.xscheme=r,"open"in new o(t)&&!t.forceJSONP)return new i(t);if(!s)throw new Error("JSONP disabled");return new a(t)}var o=n(87),i=n(300),a=n(313),s=n(314);t.polling=r,t.websocket=s}).call(t,n(3))},function(e,t,n){function r(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),o.call(this,e)}var o=n(88),i=n(49),a=n(28),s=n(50),u=n(142),l=n(51)("engine.io-client:polling");e.exports=r;var c=function(){return null!=new(n(87))({xdomain:!1}).responseType}();s(r,o),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(e){function t(){l("paused"),n.readyState="paused",e()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){l("pre-pause polling complete"),--r||t()})),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",function(){l("pre-pause writing complete"),--r||t()}))}else t()},r.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(e){var t=this;l("polling got data %s",e);var n=function(e,n,r){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)};a.decodePayload(e,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function e(){l("writing close packet"),t.write([{type:"close"}])}var t=this;"open"===this.readyState?(l("transport open - closing"),e()):(l("transport not open - deferring close"),this.once("open",e))},r.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};a.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=u()),this.supportsBinary||e.sid||(e.b64=1),e=i.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){(function(t){function r(e){if(!e||"object"!==typeof e)return!1;if(o(e)){for(var n=0,i=e.length;n0);return t}function o(e){var t=0;for(f=0;fp))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var m=-1,g=!0,v=n&u?new o:void 0;for(c.set(e,t),c.set(t,e);++m1&&void 0!==arguments[1]?arguments[1]:a;return(0,i.default)(e).indent||t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(469),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=" ";t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.value,r=n.startBlock,o=n.selection;return(0,i.default)(e,t,r.key),t.collapseToStartOf(t.value.document.getDescendant(r.key)).moveOffsetsTo(o.startOffset),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(179),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,i=r.document,a=i.getDescendant(n),s=a.text;return a.nodes.forEach(function(e){t.removeNodeByKey(e.key,{normalize:!1})}),(0,o.deserializeCode)(e,s).nodes.forEach(function(e,n){t.insertNodeByKey(a.key,n,e,{normalize:!1})}),t.setNodeByKey(a.key,{type:e.containerType}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,i=(0,o.getCurrentCode)(e,r);return i?((0,a.default)(e,t,i.key,n),t):t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13),i=n(181),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var o=t.value,i=o.document,a=i.getDescendant(n);if(!a||a.type!=e.containerType)throw new Error("Block passed to unwrapCodeBlockByKey should be a code block container");return a.nodes.forEach(function(e){return t.setNodeByKey(e.key,{type:r},{normalize:!1}).unwrapNodeByKey(e.key,{normalize:!1})}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=n.value;t.preventDefault(),t.stopPropagation();var s=(0,o.getCurrentIndent)(e,a);return(0,i.dedentLines)(e,n,s)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13),i=n(107);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var i=n.value;if(i.isCollapsed){t.preventDefault();var a=i.startBlock,s=a.text,u=(0,o.getIndent)(s,"");return n.splitBlock().insertText(u).focus()}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){if(n.value.isCollapsed)return t.preventDefault(),e.resolvedOnExit(n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var o=n.value;if(!o.isExpanded){var s=o.startOffset,u=o.startText,l=o.startBlock,c=(0,a.getCurrentIndent)(e,o),f=l.text.slice(0,s);if((0,i.default)(f,c))return t.preventDefault(),n.deleteBackward(c.length).focus();if(e.exitBlockType){var p=(0,a.getCurrentCode)(e,o),d=0===s&&p.getFirstText()===u,h=1===p.nodes.size&&0===l.text.length;if(d&&h)return t.preventDefault(),n.setBlocks(e.exitBlockType,{normalize:!1}).unwrapNodeByKey(l.key)}}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(477),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=n(13);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var i=n.value;t.preventDefault();var a=(0,o.getCurrentCode)(e,i);return n.collapseToStartOf(a.getFirstText()).extendToEndOf(a.getLastText())}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13);t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}((0,a.Record)({typeTable:"table",typeRow:"table_row",typeCell:"table_cell",typeContent:"paragraph",exitBlockType:"paragraph"}));t.default=s},function(e,t,n){"use strict";function r(e,t){return i.Block.create({type:e.typeCell,nodes:t||[o(e)]})}function o(e){return i.Block.create({type:e.typeContent,nodes:[i.Text.create()]})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=(0,o.Range)(0,t).map(function(t){return(0,s.default)(e,n?n(t):void 0)}).toList();return i.Block.create({type:e.typeRow,nodes:r})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=n(0),a=n(188),s=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){return e.preventDefault(),(0,o.insertRow)(r,t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(25);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value;if(a.isCollapsed){e.preventDefault();var s=o.Block.create({type:r.exitBlockType,nodes:[o.Text.create("")]}),u=i.TablePosition.create(r,a.document,a.startKey).table,l=a.document.getParent(u.key),c=l.nodes.indexOf(u)+1;return t.insertNodeByKey(l.key,c,s).collapseToStartOf(s)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(7);t.default=r},function(e,t,n){"use strict";function r(e){var t=e.value,n=t.startBlock;return e.moveOffsetsTo(0).extend(n.text.length)}function o(e,t,n,o){e.preventDefault();var s=t.value,u=e.shiftKey?-1:1,l=s.startKey,c=s.selection,f=i.TablePosition.create(o,s.document,l);return f.isFirstCell()&&-1===u?(0,a.insertRow)(o,t,0):f.isLastCell()&&1===u&&(0,a.insertRow)(o,t),t.select(c),(0,a.moveSelectionBy)(o,t,u,0),r(t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(7),a=n(25);t.default=o},function(e,t,n){"use strict";function r(e,t,n,r){var i=t.value,a=i.startBlock,s=i.startOffset,u=i.isCollapsed,l=i.endBlock;if(0===s&&u)return e.preventDefault(),t;if(a!==l){e.preventDefault();var c=i.blocks,f=i.document,p=function(e){return e.type===r.typeCell?e:f.getClosest(e.key,function(e){return e.type===r.typeCell})};return c.map(p).toSet().forEach(function(e){return(0,o.clearCell)(r,t,e)}),t.collapseToStartOf(a)}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(25);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value,s="ArrowUp"===e.key?-1:1,u=o.TablePosition.create(r,a.document,a.startKey);if(!(u.isFirstRow()&&-1===s||u.isLastRow()&&1===s))return e.preventDefault(),(0,i.moveSelectionBy)(r,t,0,"ArrowUp"===e.key?-1:1),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7),i=n(25);t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}((0,a.Record)({types:["ul_list","ol_list"],typeItem:"list_item",typeDefault:"paragraph"}));t.default=s},function(e,t,n){"use strict";function r(e,t,n){var r=t.document,o=r.getParent(n.key);return o&&(0,i.default)(e,o)?o:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(109),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){if(n=n||t.selection,!n.startKey)return(0,i.List)();var r=t.document,o=r.getClosestBlock(n.startKey),a=r.getClosestBlock(n.endKey);if(o===a){var u=(0,l.default)(e,t,o);return u?(0,i.List)([u]):(0,i.List)()}var c=r.getCommonAncestor(o.key,a.key);if((0,s.default)(e,c)){var f=c.getPath(o.key),p=c.getPath(a.key);return c.nodes.slice(f[0],p[0]+1)}return c.type===e.typeItem?(0,i.List)([c]):(0,i.List)()}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(5),a=n(109),s=r(a),u=n(44),l=r(u);t.default=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),s={type:"blockquote",typeDefault:"paragraph"},u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}((0,a.Record)(s));t.default=u},function(e,t,n){"use strict";function r(e,t,n,r){var a=n.value,s=a.startOffset,u=a.isCollapsed;if((0,o.getCurrentBlockquote)(e,a)&&u&&0===s)return t.preventDefault(),(0,i.unwrapBlockquote)(e,n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(110),i=n(111);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.document;if(!n){if(!t.selection.startKey)return null;n=t.startBlock}var o=r.getParent(n.key);return o&&o.type===e.type?o:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=n.value,s=a.startBlock;if((0,o.getCurrentBlockquote)(e,a)&&0===s.text.length)return t.preventDefault(),(0,i.unwrapBlockquote)(e,n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(110),i=n(111);t.default=r},function(e,t){function n(e){if("string"!==typeof e)return!1;var t=e.match(r);if(!t)return!1;var n=t[1];return!!n&&!(!o.test(n)&&!i.test(n))}e.exports=n;var r=/^(?:\w+:)?\/\/(\S+)$/,o=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,i=/^[^\s\.]+\.\S{2,}$/},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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 a=n(1),s=n.n(a),u=n(544),l=n(545),c=function(){function e(e,t){for(var n=0;nt)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}return t}function i(e){function t(t){var n=t&&t.line,r=t&&t.column;return!isNaN(n)&&!isNaN(r)&&n-1 in e?(e[n-2]||0)+r-1||0:-1}return t}function a(e){for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}e.exports=r},function(e,t){e.exports={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Acirc:"\xc2",Agrave:"\xc0",Aring:"\xc5",Atilde:"\xc3",Auml:"\xc4",COPY:"\xa9",Ccedil:"\xc7",ETH:"\xd0",Eacute:"\xc9",Ecirc:"\xca",Egrave:"\xc8",Euml:"\xcb",GT:">",Iacute:"\xcd",Icirc:"\xce",Igrave:"\xcc",Iuml:"\xcf",LT:"<",Ntilde:"\xd1",Oacute:"\xd3",Ocirc:"\xd4",Ograve:"\xd2",Oslash:"\xd8",Otilde:"\xd5",Ouml:"\xd6",QUOT:'"',REG:"\xae",THORN:"\xde",Uacute:"\xda",Ucirc:"\xdb",Ugrave:"\xd9",Uuml:"\xdc",Yacute:"\xdd",aacute:"\xe1",acirc:"\xe2",acute:"\xb4",aelig:"\xe6",agrave:"\xe0",amp:"&",aring:"\xe5",atilde:"\xe3",auml:"\xe4",brvbar:"\xa6",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",ecirc:"\xea",egrave:"\xe8",eth:"\xf0",euml:"\xeb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",iacute:"\xed",icirc:"\xee",iexcl:"\xa1",igrave:"\xec",iquest:"\xbf",iuml:"\xef",laquo:"\xab",lt:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",oacute:"\xf3",ocirc:"\xf4",ograve:"\xf2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",otilde:"\xf5",ouml:"\xf6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',raquo:"\xbb",reg:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",times:"\xd7",uacute:"\xfa",ucirc:"\xfb",ugrave:"\xf9",uml:"\xa8",uuml:"\xfc",yacute:"\xfd",yen:"\xa5",yuml:"\xff"}},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)||i(e)}var o=n(215),i=n(45);e.exports=r},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e||{};return t.commonmark?a:t.gfm?i:o}e.exports=r;var o=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],i=o.concat(["~","|"]),a=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);r.default=o,r.gfm=i,r.commonmark=a},function(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(594)}},function(e,t,n){"use strict";function r(e){for(var t,n=0,r=0,i=e.charAt(n),a={};i in o;)t=o[i],r+=t,t>1&&(r=Math.floor(r/t)*t),a[r]=n,i=e.charAt(++n);return{indent:r,stops:a}}e.exports=r;var o={" ":1,"\t":4}},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",o="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+o+")"),t.tag=new RegExp("^(?:"+r+"|"+o+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)")},function(e,t,n){"use strict";function r(e,t){return e.indexOf("<",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);return-1===r?n:n2?arguments[2]:{},a=r(t);i&&(a=a.concat(Object.getOwnPropertySymbols(t))),o(a,function(r){l(e,r,t[r],n[r])})};c.supportsDescriptors=!!u,e.exports=c},function(e,t,n){"use strict";e.exports=function(e){return e!==e}},function(e,t,n){"use strict";var r=n(234);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},function(e,t){e.exports={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(e,t,n){"use strict";function r(e,t){function n(t){var r=n.invalid,a=n.handlers;return t&&i.call(t,e)&&(r=i.call(a,t[e])?a[t[e]]:n.unknown),(r||o).apply(this,arguments)}var r=t||{};return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}e.exports=r;var o=Function.prototype,i={}.hasOwnProperty},function(e,t){e.exports=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]},function(e,t,n){"use strict";function r(e){var t;if(e&&"object"===typeof e&&"text"===e.type)t=e.value||"";else{if("string"!==typeof e)return!1;t=e}return""===t.replace(o,"")}var o=/[\ \t\n\f\r]/g;e.exports=r},function(e,t,n){"use strict";function r(e){return o("text",e)&&i(e.value.charAt(0))}var o=n(34),i=n(239);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=E(n,t,!0);return!r||!b("comment",r)&&!_(r)}function o(e,t,n){var r=E(n,t);return!r||!b("comment",r)}function i(e,t,n){var r=E(n,t);return!r||!b("comment",r)}function a(e,t,n){var r=E(n,t);return r?T(r,["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]):!n||!T(n,["a","audio","del","ins","map","noscript","video"])}function s(e,t,n){var r=E(n,t);return!r||T(r,"li")}function u(e,t,n){var r=E(n,t);return r&&T(r,["dt","dd"])}function l(e,t,n){var r=E(n,t);return!r||T(r,["dt","dd"])}function c(e,t,n){var r=E(n,t);return!r||T(r,["rp","rt"])}function f(e,t,n){var r=E(n,t);return!r||T(r,"optgroup")}function p(e,t,n){var r=E(n,t);return!r||T(r,["option","optgroup"])}function d(e,t,n){var r=E(n,t);return!r||T(r,["menuitem","hr","menu"])}function h(e,t,n){var r=E(n,t);return r&&T(r,["tbody","tfoot"])}function m(e,t,n){var r=E(n,t);return!r||T(r,["tbody","tfoot"])}function g(e,t,n){return!E(n,t)}function v(e,t,n){var r=E(n,t);return!r||T(r,"tr")}function y(e,t,n){var r=E(n,t);return!r||T(r,["td","th"])}var b=n(34),T=n(36),_=n(240),E=n(124).after,k=n(242);e.exports=k({html:o,head:r,body:i,p:a,li:s,dt:u,dd:l,rt:c,rp:c,optgroup:f,option:p,menuitem:d,colgroup:r,caption:r,thead:h,tbody:m,tfoot:g,tr:v,td:y,th:y})},function(e,t,n){"use strict";function r(e){function t(t,n,r){var i=t.tagName,a=!!o.call(e,i)&&e[i];return!!a&&a(t,n,r)}return t}e.exports=r;var o={}.hasOwnProperty},function(e,t,n){"use strict";function r(e,t,n,r){var a=t&&t.type;if(!a)throw new Error("Expected node, not `"+t+"`");if(!o.call(i,a))throw new Error("Cannot compile unknown node `"+a+"`");return i[a](e,t,n,r)}e.exports=r;var o={}.hasOwnProperty,i={};i.root=n(244),i.text=n(245),i.element=n(707),i.doctype=n(708),i.comment=n(709),i.raw=n(710)},function(e,t,n){"use strict";function r(e,t){for(var n=t&&t.children,r=n&&n.length,i=-1,a=[];++ie.length)return;if(!(_ instanceof u)){if(m&&b!=t.length-1){p.lastIndex=T;var E=p.exec(e);if(!E)break;for(var k=E.index+(h?E[1].length:0),w=E.index+E[0].length,x=b,C=T,A=t.length;x=C&&(++b,T=C);if(t[b]instanceof u)continue;O=x-b,_=e.slice(T,C),E.index-=T}else{p.lastIndex=0;var E=p.exec(_),O=1}if(E){h&&(g=E[1]?E[1].length:0);var k=E.index+g,E=E[0].slice(g),w=k+E.length,S=_.slice(0,k),N=_.slice(w),D=[b,O];S&&(++b,T+=S.length,D.push(S));var I=new u(l,d?r.tokenize(E,d):E,v,E,m);if(D.push(I),N&&D.push(N),Array.prototype.splice.apply(t,D),1!=O&&r.matchGrammar(e,t,n,b,T,!0,l),a)break}else if(a)break}}}}},tokenize:function(e,t,n){var o=[e],i=t.rest;if(i){for(var a in i)t[a]=i[a];delete t.rest}return r.matchGrammar(e,o,t,0,0,!1),o},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}}},o=r.Token=function(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o};if(o.stringify=function(e,t,n){if("string"==typeof e)return e;if("Array"===r.util.type(e))return e.map(function(n){return o.stringify(n,t,e)}).join("");var i={type:e.type,content:o.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n};if(e.alias){var a="Array"===r.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(i.classes,a)}r.hooks.run("wrap",i);var s=Object.keys(i.attributes).map(function(e){return e+'="'+(i.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+(s?" "+s:"")+">"+i.content+""},!n.document)return n.addEventListener?(r.disableWorkerMessageHandler||n.addEventListener("message",function(e){var t=JSON.parse(e.data),o=t.language,i=t.code,a=t.immediateClose;n.postMessage(r.highlight(i,r.languages[o],o)),a&&n.close()},!1),n.Prism):n.Prism;var i=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return i&&(r.filename=i.src,r.manual||i.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(r.highlightAll):window.setTimeout(r.highlightAll,16):document.addEventListener("DOMContentLoaded",r.highlightAll))),n.Prism}();"undefined"!==typeof e&&e.exports&&(e.exports=r),"undefined"!==typeof t&&(t.Prism=r),r.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),r.languages.xml=r.languages.markup,r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},r.languages.css.atrule.inside.rest=r.languages.css,r.languages.markup&&(r.languages.insertBefore("markup","tag",{style:{pattern:/()[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:r.languages.css,alias:"language-css",greedy:!0}}),r.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:r.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:r.languages.css}},alias:"language-css"}},r.languages.markup.tag)),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{keyword:/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,function:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"},constant:/\b[A-Z][A-Z\d_]*\b/}),r.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}}}),r.languages.javascript["template-string"].inside.interpolation.inside.rest=r.languages.javascript,r.languages.markup&&r.languages.insertBefore("markup","tag",{script:{pattern:/()[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:r.languages.javascript,alias:"language-javascript",greedy:!0}}),r.languages.js=r.languages.javascript,function(){"undefined"!==typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(t){for(var n,o=t.getAttribute("data-src"),i=t,a=/\blang(?:uage)?-([\w-]+)\b/i;i&&!a.test(i.className);)i=i.parentNode;if(i&&(n=(t.className.match(a)||[,""])[1]),!n){var s=(o.match(/\.(\w+)$/)||[,""])[1];n=e[s]||s}var u=document.createElement("code");u.className="language-"+n,t.textContent="",u.textContent="Loading\u2026",t.appendChild(u);var l=new XMLHttpRequest;l.open("GET",o,!0),l.onreadystatechange=function(){4==l.readyState&&(l.status<400&&l.responseText?(u.textContent=l.responseText,r.highlightElement(u)):l.status>=400?u.textContent="\u2716 Error "+l.status+" while fetching file: "+l.statusText:u.textContent="\u2716 Error: File does not exist or is empty")},l.send(null)}),r.plugins.toolbar&&r.plugins.toolbar.registerButton("download-file",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-src")&&t.hasAttribute("data-download-link")){var n=t.getAttribute("data-src"),r=document.createElement("a");return r.textContent=t.getAttribute("data-download-link-label")||"Download",r.setAttribute("download",""),r.href=n,r}})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}()}).call(t,n(3))},function(e,t,n){(function(e,r){var o;(function(){function i(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function a(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function p(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function B(e,t){for(var n=e.length;n--&&E(t,e[n],0)>-1;);return n}function j(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function F(e){return"\\"+Cn[e]}function H(e,t){return null==e?re:e[t]}function U(e){return vn.test(e)}function z(e){return yn.test(e)}function K(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function q(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e,t){return function(n){return e(t(n))}}function G(e,t){for(var n=-1,r=e.length,o=0,i=[];++n>>1,je=[["ary",Ee],["bind",me],["bindKey",ge],["curry",ye],["curryRight",be],["flip",we],["partial",Te],["partialRight",_e],["rearg",ke]],Fe="[object Arguments]",He="[object Array]",Ue="[object AsyncFunction]",ze="[object Boolean]",Ke="[object Date]",qe="[object DOMException]",We="[object Error]",Ge="[object Function]",Ve="[object GeneratorFunction]",Ye="[object Map]",$e="[object Number]",Je="[object Null]",Xe="[object Object]",Qe="[object Proxy]",Ze="[object RegExp]",et="[object Set]",tt="[object String]",nt="[object Symbol]",rt="[object Undefined]",ot="[object WeakMap]",it="[object WeakSet]",at="[object ArrayBuffer]",st="[object DataView]",ut="[object Float32Array]",lt="[object Float64Array]",ct="[object Int8Array]",ft="[object Int16Array]",pt="[object Int32Array]",dt="[object Uint8Array]",ht="[object Uint8ClampedArray]",mt="[object Uint16Array]",gt="[object Uint32Array]",vt=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tt=/&(?:amp|lt|gt|quot|#39);/g,_t=/[&<>"']/g,Et=RegExp(Tt.source),kt=RegExp(_t.source),wt=/<%-([\s\S]+?)%>/g,xt=/<%([\s\S]+?)%>/g,Ct=/<%=([\s\S]+?)%>/g,At=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ot=/^\w*$/,St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nt=/[\\^$.*+?()[\]{}|]/g,Dt=RegExp(Nt.source),It=/^\s+|\s+$/g,Mt=/^\s+/,Lt=/\s+$/,Pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rt=/\{\n\/\* \[wrapped with (.+)\] \*/,Bt=/,? & /,jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ft=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ut=/\w*$/,zt=/^[-+]0x[0-9a-f]+$/i,Kt=/^0b[01]+$/i,qt=/^\[object .+?Constructor\]$/,Wt=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,Vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yt=/($^)/,$t=/['\n\r\u2028\u2029\\]/g,Jt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qt="["+Xt+"]",Zt="["+Jt+"]",en="[a-z\\xdf-\\xf6\\xf8-\\xff]",tn="[^\\ud800-\\udfff"+Xt+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",nn="\\ud83c[\\udffb-\\udfff]",rn="(?:\\ud83c[\\udde6-\\uddff]){2}",on="[\\ud800-\\udbff][\\udc00-\\udfff]",an="[A-Z\\xc0-\\xd6\\xd8-\\xde]",sn="(?:"+en+"|"+tn+")",un="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",ln="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",rn,on].join("|")+")[\\ufe0e\\ufe0f]?"+un+")*",cn="[\\ufe0e\\ufe0f]?"+un+ln,fn="(?:"+["[\\u2700-\\u27bf]",rn,on].join("|")+")"+cn,pn="(?:"+["[^\\ud800-\\udfff]"+Zt+"?",Zt,rn,on,"[\\ud800-\\udfff]"].join("|")+")",dn=RegExp("['\u2019]","g"),hn=RegExp(Zt,"g"),mn=RegExp(nn+"(?="+nn+")|"+pn+cn,"g"),gn=RegExp([an+"?"+en+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Qt,an,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Qt,an+sn,"$"].join("|")+")",an+"?"+sn+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",an+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",fn].join("|"),"g"),vn=RegExp("[\\u200d\\ud800-\\udfff"+Jt+"\\ufe0e\\ufe0f]"),yn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Tn=-1,_n={};_n[ut]=_n[lt]=_n[ct]=_n[ft]=_n[pt]=_n[dt]=_n[ht]=_n[mt]=_n[gt]=!0,_n[Fe]=_n[He]=_n[at]=_n[ze]=_n[st]=_n[Ke]=_n[We]=_n[Ge]=_n[Ye]=_n[$e]=_n[Xe]=_n[Ze]=_n[et]=_n[tt]=_n[ot]=!1;var En={};En[Fe]=En[He]=En[at]=En[st]=En[ze]=En[Ke]=En[ut]=En[lt]=En[ct]=En[ft]=En[pt]=En[Ye]=En[$e]=En[Xe]=En[Ze]=En[et]=En[tt]=En[nt]=En[dt]=En[ht]=En[mt]=En[gt]=!0,En[We]=En[Ge]=En[ot]=!1;var kn={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"},wn={"&":"&","<":"<",">":">",'"':""","'":"'"},xn={"&":"&","<":"<",">":">",""":'"',"'":"'"},Cn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},An=parseFloat,On=parseInt,Sn="object"==typeof e&&e&&e.Object===Object&&e,Nn="object"==typeof self&&self&&self.Object===Object&&self,Dn=Sn||Nn||Function("return this")(),In="object"==typeof t&&t&&!t.nodeType&&t,Mn=In&&"object"==typeof r&&r&&!r.nodeType&&r,Ln=Mn&&Mn.exports===In,Pn=Ln&&Sn.process,Rn=function(){try{return Pn&&Pn.binding&&Pn.binding("util")}catch(e){}}(),Bn=Rn&&Rn.isArrayBuffer,jn=Rn&&Rn.isDate,Fn=Rn&&Rn.isMap,Hn=Rn&&Rn.isRegExp,Un=Rn&&Rn.isSet,zn=Rn&&Rn.isTypedArray,Kn=C("length"),qn=A(kn),Wn=A(wn),Gn=A(xn),Vn=function e(t){function n(e){if(tu(e)&&!dp(e)&&!(e instanceof y)){if(e instanceof o)return e;if(pc.call(e,"__wrapped__"))return Qi(e)}return new o(e)}function r(){}function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=re}function y(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pe,this.__views__=[]}function A(){var e=new y(this.__wrapped__);return e.__actions__=Lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lo(this.__views__),e}function J(){if(this.__filtered__){var e=new y(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function ee(){var e=this.__wrapped__.value(),t=this.__dir__,n=dp(e),r=t<0,o=n?e.length:0,i=ki(0,o,this.__views__),a=i.start,s=i.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,p=0,d=zc(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return vo(e,this.__actions__);var h=[];e:for(;u--&&p-1}function an(e,t){var n=this.__data__,r=Yn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function sn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function tr(e,t,n,r,o,i){var a,u=t&ce,l=t&fe,c=t&pe;if(n&&(a=o?n(e,r,o,i):n(e)),a!==re)return a;if(!eu(e))return e;var f=dp(e);if(f){if(a=Ci(e),!u)return Lo(e,a)}else{var p=kf(e),d=p==Ge||p==Ve;if(mp(e))return wo(e,u);if(p==Xe||p==Fe||d&&!o){if(a=l||d?{}:Ai(e),!u)return l?Bo(e,Xn(a,e)):Ro(e,Jn(a,e))}else{if(!En[p])return o?e:{};a=Oi(e,p,u)}}i||(i=new yn);var h=i.get(e);if(h)return h;if(i.set(e,a),bp(e))return e.forEach(function(r){a.add(tr(r,t,n,r,e,i))}),a;if(vp(e))return e.forEach(function(r,o){a.set(o,tr(r,t,n,o,e,i))}),a;var m=c?l?mi:hi:l?Bu:Ru,g=f?re:m(e);return s(g||e,function(r,o){g&&(o=r,r=e[o]),Kn(a,o,tr(r,t,n,o,e,i))}),a}function nr(e){var t=Ru(e);return function(n){return rr(n,e,t)}}function rr(e,t,n){var r=n.length;if(null==e)return!r;for(e=rc(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===re&&!(o in e)||!i(a))return!1}return!0}function or(e,t,n){if("function"!=typeof e)throw new ac(ae);return Cf(function(){e.apply(re,n)},t)}function ir(e,t,n,r){var o=-1,i=f,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=d(t,M(n))),r?(i=p,a=!1):t.length>=oe&&(i=P,a=!1,t=new mn(t));e:for(;++oo?0:o+n),r=r===re||r>o?o:yu(r),r<0&&(r+=o),r=n>r?0:bu(r);n0&&n(s)?t>1?cr(s,t-1,n,r,o):h(o,s):r||(o[o.length]=s)}return o}function fr(e,t){return e&&df(e,t,Ru)}function pr(e,t){return e&&hf(e,t,Ru)}function dr(e,t){return c(t,function(t){return Xs(e[t])})}function hr(e,t){t=Eo(t,e);for(var n=0,r=t.length;null!=e&&nt}function yr(e,t){return null!=e&&pc.call(e,t)}function br(e,t){return null!=e&&t in rc(e)}function Tr(e,t,n){return e>=zc(t,n)&&e=120&&c.length>=120)?new mn(a&&c):re}c=e[0];var h=-1,m=s[0];e:for(;++h-1;)s!==e&&Cc.call(s,u,1),Cc.call(e,u,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Di(o)?Cc.call(e,o,1):ho(e,o)}}return e}function Xr(e,t){return e+Pc(Wc()*(t-e+1))}function Qr(e,t,n,r){for(var o=-1,i=Uc(Lc((t-e)/(n||1)),0),a=Ql(i);i--;)a[r?i:++o]=e,e+=n;return a}function Zr(e,t){var n="";if(!e||t<1||t>Ie)return n;do{t%2&&(n+=e),(t=Pc(t/2))&&(e+=e)}while(t);return n}function eo(e,t){return Af(Ki(e,t,Cl),e+"")}function to(e){return In($u(e))}function no(e,t){var n=$u(e);return Yi(n,er(t,0,n.length))}function ro(e,t,n,r){if(!eu(e))return e;t=Eo(t,e);for(var o=-1,i=t.length,a=i-1,s=e;null!=s&&++oo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Ql(o);++r>>1,a=e[i];null!==a&&!pu(a)&&(n?a<=t:a=oe){var l=t?null:bf(e);if(l)return Y(l);a=!1,o=P,u=new mn}else u=t?[]:s;e:for(;++r=r?e:io(e,t,n)}function wo(e,t){if(t)return e.slice();var n=e.length,r=Ec?Ec(n):new e.constructor(n);return e.copy(r),r}function xo(e){var t=new e.constructor(e.byteLength);return new _c(t).set(new _c(e)),t}function Co(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ao(e){var t=new e.constructor(e.source,Ut.exec(e));return t.lastIndex=e.lastIndex,t}function Oo(e){return uf?rc(uf.call(e)):{}}function So(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function No(e,t){if(e!==t){var n=e!==re,r=null===e,o=e===e,i=pu(e),a=t!==re,s=null===t,u=t===t,l=pu(t);if(!s&&!l&&!i&&e>t||i&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!l&&e=s)return u;return u*("desc"==n[r]?-1:1)}}return e.index-t.index}function Io(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,u=t.length,l=Uc(i-a,0),c=Ql(u+l),f=!r;++s1?n[o-1]:re,a=o>2?n[2]:re;for(i=e.length>3&&"function"==typeof i?(o--,i):re,a&&Ii(n[0],n[1],a)&&(i=o<3?re:i,o=1),t=rc(t);++r-1?o[i?t[a]:a]:re}}function Yo(e){return di(function(t){var n=t.length,r=n,i=o.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ac(ae);if(i&&!s&&"wrapper"==gi(a))var s=new o([],!0)}for(r=s?r:n;++r1&&y.reverse(),f&&us))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,p=n&he?new mn:re;for(i.set(e,t),i.set(t,e);++c1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Pt,"{\n/* [wrapped with "+t+"] */\n")}function Ni(e){return dp(e)||pp(e)||!!(Ac&&e&&e[Ac])}function Di(e,t){var n=typeof e;return!!(t=null==t?Ie:t)&&("number"==n||"symbol"!=n&&Gt.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Ae)return arguments[0]}else t=0;return e.apply(re,arguments)}}function Yi(e,t){var n=-1,r=e.length,o=r-1;for(t=t===re?r:t;++n=this.__values__.length;return{done:e,value:e?re:this.__values__[this.__index__++]}}function Qa(){return this}function Za(e){for(var t,n=this;n instanceof r;){var o=Qi(n);o.__index__=0,o.__values__=re,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t}function es(){var e=this.__wrapped__;if(e instanceof y){var t=e;return this.__actions__.length&&(t=new y(this)),t=t.reverse(),t.__actions__.push({func:Ya,args:[wa],thisArg:re}),new o(t,this.__chain__)}return this.thru(wa)}function ts(){return vo(this.__wrapped__,this.__actions__)}function ns(e,t,n){var r=dp(e)?l:ar;return n&&Ii(e,t,n)&&(t=re),r(e,yi(t,3))}function rs(e,t){return(dp(e)?c:lr)(e,yi(t,3))}function os(e,t){return cr(cs(e,t),1)}function is(e,t){return cr(cs(e,t),De)}function as(e,t,n){return n=n===re?1:yu(n),cr(cs(e,t),n)}function ss(e,t){return(dp(e)?s:ff)(e,yi(t,3))}function us(e,t){return(dp(e)?u:pf)(e,yi(t,3))}function ls(e,t,n,r){e=zs(e)?e:$u(e),n=n&&!r?yu(n):0;var o=e.length;return n<0&&(n=Uc(o+n,0)),fu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&E(e,t,n)>-1}function cs(e,t){return(dp(e)?d:Fr)(e,yi(t,3))}function fs(e,t,n,r){return null==e?[]:(dp(t)||(t=null==t?[]:[t]),n=r?re:n,dp(n)||(n=null==n?[]:[n]),Wr(e,t,n))}function ps(e,t,n){var r=dp(e)?m:O,o=arguments.length<3;return r(e,yi(t,4),n,o,ff)}function ds(e,t,n){var r=dp(e)?g:O,o=arguments.length<3;return r(e,yi(t,4),n,o,pf)}function hs(e,t){return(dp(e)?c:lr)(e,Os(yi(t,3)))}function ms(e){return(dp(e)?In:to)(e)}function gs(e,t,n){return t=(n?Ii(e,t,n):t===re)?1:yu(t),(dp(e)?Mn:no)(e,t)}function vs(e){return(dp(e)?Pn:oo)(e)}function ys(e){if(null==e)return 0;if(zs(e))return fu(e)?Q(e):e.length;var t=kf(e);return t==Ye||t==et?e.size:Rr(e).length}function bs(e,t,n){var r=dp(e)?v:ao;return n&&Ii(e,t,n)&&(t=re),r(e,yi(t,3))}function Ts(e,t){if("function"!=typeof t)throw new ac(ae);return e=yu(e),function(){if(--e<1)return t.apply(this,arguments)}}function _s(e,t,n){return t=n?re:t,t=e&&null==t?e.length:t,ai(e,Ee,re,re,re,re,t)}function Es(e,t){var n;if("function"!=typeof t)throw new ac(ae);return e=yu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=re),n}}function ks(e,t,n){t=n?re:t;var r=ai(e,ye,re,re,re,re,re,t);return r.placeholder=ks.placeholder,r}function ws(e,t,n){t=n?re:t;var r=ai(e,be,re,re,re,re,re,t);return r.placeholder=ws.placeholder,r}function xs(e,t,n){function r(t){var n=p,r=d;return p=d=re,y=t,m=e.apply(r,n)}function o(e){return y=e,g=Cf(s,t),b?r(e):m}function i(e){var n=e-v,r=e-y,o=t-n;return T?zc(o,h-r):o}function a(e){var n=e-v,r=e-y;return v===re||n>=t||n<0||T&&r>=h}function s(){var e=tp();if(a(e))return u(e);g=Cf(s,i(e))}function u(e){return g=re,_&&p?r(e):(p=d=re,m)}function l(){g!==re&&yf(g),y=0,p=v=d=g=re}function c(){return g===re?m:u(tp())}function f(){var e=tp(),n=a(e);if(p=arguments,d=this,v=e,n){if(g===re)return o(v);if(T)return g=Cf(s,t),r(v)}return g===re&&(g=Cf(s,t)),m}var p,d,h,m,g,v,y=0,b=!1,T=!1,_=!0;if("function"!=typeof e)throw new ac(ae);return t=Tu(t)||0,eu(n)&&(b=!!n.leading,T="maxWait"in n,h=T?Uc(Tu(n.maxWait)||0,t):h,_="trailing"in n?!!n.trailing:_),f.cancel=l,f.flush=c,f}function Cs(e){return ai(e,we)}function As(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ac(ae);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(As.Cache||sn),n}function Os(e){if("function"!=typeof e)throw new ac(ae);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ss(e){return Es(2,e)}function Ns(e,t){if("function"!=typeof e)throw new ac(ae);return t=t===re?t:yu(t),eo(e,t)}function Ds(e,t){if("function"!=typeof e)throw new ac(ae);return t=null==t?0:Uc(yu(t),0),eo(function(n){var r=n[t],o=ko(n,0,t);return r&&h(o,r),i(e,this,o)})}function Is(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ac(ae);return eu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),xs(e,t,{leading:r,maxWait:t,trailing:o})}function Ms(e){return _s(e,1)}function Ls(e,t){return sp(_o(t),e)}function Ps(){if(!arguments.length)return[];var e=arguments[0];return dp(e)?e:[e]}function Rs(e){return tr(e,pe)}function Bs(e,t){return t="function"==typeof t?t:re,tr(e,pe,t)}function js(e){return tr(e,ce|pe)}function Fs(e,t){return t="function"==typeof t?t:re,tr(e,ce|pe,t)}function Hs(e,t){return null==t||rr(e,t,Ru(t))}function Us(e,t){return e===t||e!==e&&t!==t}function zs(e){return null!=e&&Zs(e.length)&&!Xs(e)}function Ks(e){return tu(e)&&zs(e)}function qs(e){return!0===e||!1===e||tu(e)&&gr(e)==ze}function Ws(e){return tu(e)&&1===e.nodeType&&!lu(e)}function Gs(e){if(null==e)return!0;if(zs(e)&&(dp(e)||"string"==typeof e||"function"==typeof e.splice||mp(e)||Tp(e)||pp(e)))return!e.length;var t=kf(e);if(t==Ye||t==et)return!e.size;if(Bi(e))return!Rr(e).length;for(var n in e)if(pc.call(e,n))return!1;return!0}function Vs(e,t){return Ar(e,t)}function Ys(e,t,n){n="function"==typeof n?n:re;var r=n?n(e,t):re;return r===re?Ar(e,t,re,n):!!r}function $s(e){if(!tu(e))return!1;var t=gr(e);return t==We||t==qe||"string"==typeof e.message&&"string"==typeof e.name&&!lu(e)}function Js(e){return"number"==typeof e&&jc(e)}function Xs(e){if(!eu(e))return!1;var t=gr(e);return t==Ge||t==Ve||t==Ue||t==Qe}function Qs(e){return"number"==typeof e&&e==yu(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ie}function eu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tu(e){return null!=e&&"object"==typeof e}function nu(e,t){return e===t||Nr(e,t,Ti(t))}function ru(e,t,n){return n="function"==typeof n?n:re,Nr(e,t,Ti(t),n)}function ou(e){return uu(e)&&e!=+e}function iu(e){if(wf(e))throw new ec(ie);return Dr(e)}function au(e){return null===e}function su(e){return null==e}function uu(e){return"number"==typeof e||tu(e)&&gr(e)==$e}function lu(e){if(!tu(e)||gr(e)!=Xe)return!1;var t=kc(e);if(null===t)return!0;var n=pc.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&fc.call(n)==gc}function cu(e){return Qs(e)&&e>=-Ie&&e<=Ie}function fu(e){return"string"==typeof e||!dp(e)&&tu(e)&&gr(e)==tt}function pu(e){return"symbol"==typeof e||tu(e)&&gr(e)==nt}function du(e){return e===re}function hu(e){return tu(e)&&kf(e)==ot}function mu(e){return tu(e)&&gr(e)==it}function gu(e){if(!e)return[];if(zs(e))return fu(e)?Z(e):Lo(e);if(Oc&&e[Oc])return K(e[Oc]());var t=kf(e);return(t==Ye?q:t==et?Y:$u)(e)}function vu(e){if(!e)return 0===e?e:0;if((e=Tu(e))===De||e===-De){return(e<0?-1:1)*Me}return e===e?e:0}function yu(e){var t=vu(e),n=t%1;return t===t?n?t-n:t:0}function bu(e){return e?er(yu(e),0,Pe):0}function Tu(e){if("number"==typeof e)return e;if(pu(e))return Le;if(eu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(It,"");var n=Kt.test(e);return n||Wt.test(e)?On(e.slice(2),n?2:8):zt.test(e)?Le:+e}function _u(e){return Po(e,Bu(e))}function Eu(e){return e?er(yu(e),-Ie,Ie):0===e?e:0}function ku(e){return null==e?"":fo(e)}function wu(e,t){var n=cf(e);return null==t?n:Jn(n,t)}function xu(e,t){return T(e,yi(t,3),fr)}function Cu(e,t){return T(e,yi(t,3),pr)}function Au(e,t){return null==e?e:df(e,yi(t,3),Bu)}function Ou(e,t){return null==e?e:hf(e,yi(t,3),Bu)}function Su(e,t){return e&&fr(e,yi(t,3))}function Nu(e,t){return e&&pr(e,yi(t,3))}function Du(e){return null==e?[]:dr(e,Ru(e))}function Iu(e){return null==e?[]:dr(e,Bu(e))}function Mu(e,t,n){var r=null==e?re:hr(e,t);return r===re?n:r}function Lu(e,t){return null!=e&&xi(e,t,yr)}function Pu(e,t){return null!=e&&xi(e,t,br)}function Ru(e){return zs(e)?Nn(e):Rr(e)}function Bu(e){return zs(e)?Nn(e,!0):Br(e)}function ju(e,t){var n={};return t=yi(t,3),fr(e,function(e,r,o){Qn(n,t(e,r,o),e)}),n}function Fu(e,t){var n={};return t=yi(t,3),fr(e,function(e,r,o){Qn(n,r,t(e,r,o))}),n}function Hu(e,t){return Uu(e,Os(yi(t)))}function Uu(e,t){if(null==e)return{};var n=d(mi(e),function(e){return[e]});return t=yi(t),Vr(e,n,function(e,n){return t(e,n[0])})}function zu(e,t,n){t=Eo(t,e);var r=-1,o=t.length;for(o||(o=1,e=re);++rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Wc();return zc(e+o*(t-e+An("1e-"+((o+"").length-1))),t)}return Xr(e,t)}function el(e){return Gp(ku(e).toLowerCase())}function tl(e){return(e=ku(e))&&e.replace(Vt,qn).replace(hn,"")}function nl(e,t,n){e=ku(e),t=fo(t);var r=e.length;n=n===re?r:er(yu(n),0,r);var o=n;return(n-=t.length)>=0&&e.slice(n,o)==t}function rl(e){return e=ku(e),e&&kt.test(e)?e.replace(_t,Wn):e}function ol(e){return e=ku(e),e&&Dt.test(e)?e.replace(Nt,"\\$&"):e}function il(e,t,n){e=ku(e),t=yu(t);var r=t?Q(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Zo(Pc(o),n)+e+Zo(Lc(o),n)}function al(e,t,n){e=ku(e),t=yu(t);var r=t?Q(e):0;return t&&r>>0)?(e=ku(e),e&&("string"==typeof t||null!=t&&!yp(t))&&!(t=fo(t))&&U(e)?ko(Z(e),0,n):e.split(t,n)):[]}function pl(e,t,n){return e=ku(e),n=null==n?0:er(yu(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t}function dl(e,t,r){var o=n.templateSettings;r&&Ii(e,t,r)&&(t=re),e=ku(e),t=xp({},t,o,si);var i,a,s=xp({},t.imports,o.imports,si),u=Ru(s),l=L(s,u),c=0,f=t.interpolate||Yt,p="__p += '",d=oc((t.escape||Yt).source+"|"+f.source+"|"+(f===Ct?Ht:Yt).source+"|"+(t.evaluate||Yt).source+"|$","g"),h="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Tn+"]")+"\n";e.replace(d,function(t,n,r,o,s,u){return r||(r=o),p+=e.slice(c,u).replace($t,F),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t}),p+="';\n";var m=t.variable;m||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(vt,""):p).replace(yt,"$1").replace(bt,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Vp(function(){return tc(u,h+"return "+p).apply(re,l)});if(g.source=p,$s(g))throw g;return g}function hl(e){return ku(e).toLowerCase()}function ml(e){return ku(e).toUpperCase()}function gl(e,t,n){if((e=ku(e))&&(n||t===re))return e.replace(It,"");if(!e||!(t=fo(t)))return e;var r=Z(e),o=Z(t);return ko(r,R(r,o),B(r,o)+1).join("")}function vl(e,t,n){if((e=ku(e))&&(n||t===re))return e.replace(Lt,"");if(!e||!(t=fo(t)))return e;var r=Z(e);return ko(r,0,B(r,Z(t))+1).join("")}function yl(e,t,n){if((e=ku(e))&&(n||t===re))return e.replace(Mt,"");if(!e||!(t=fo(t)))return e;var r=Z(e);return ko(r,R(r,Z(t))).join("")}function bl(e,t){var n=xe,r=Ce;if(eu(t)){var o="separator"in t?t.separator:o;n="length"in t?yu(t.length):n,r="omission"in t?fo(t.omission):r}e=ku(e);var i=e.length;if(U(e)){var a=Z(e);i=a.length}if(n>=i)return e;var s=n-Q(r);if(s<1)return r;var u=a?ko(a,0,s).join(""):e.slice(0,s);if(o===re)return u+r;if(a&&(s+=u.length-s),yp(o)){if(e.slice(s).search(o)){var l,c=u;for(o.global||(o=oc(o.source,ku(Ut.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;u=u.slice(0,f===re?s:f)}}else if(e.indexOf(fo(o),s)!=s){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+r}function Tl(e){return e=ku(e),e&&Et.test(e)?e.replace(Tt,Gn):e}function _l(e,t,n){return e=ku(e),t=n?re:t,t===re?z(e)?ne(e):b(e):e.match(t)||[]}function El(e){var t=null==e?0:e.length,n=yi();return e=t?d(e,function(e){if("function"!=typeof e[1])throw new ac(ae);return[n(e[0]),e[1]]}):[],eo(function(n){for(var r=-1;++rIe)return[];var n=Pe,r=zc(e,Pe);t=yi(t),e-=Pe;for(var o=D(r,t);++n1?e[t-1]:re;return n="function"==typeof n?(e.pop(),n):re,Ka(e,n)}),Gf=di(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Zn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof y&&Di(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Ya,args:[i],thisArg:re}),new o(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(re),e})):this.thru(i)}),Vf=jo(function(e,t,n){pc.call(e,n)?++e[n]:Qn(e,n,1)}),Yf=Vo(sa),$f=Vo(ua),Jf=jo(function(e,t,n){pc.call(e,n)?e[n].push(t):Qn(e,n,[t])}),Xf=eo(function(e,t,n){var r=-1,o="function"==typeof t,a=zs(e)?Ql(e.length):[];return ff(e,function(e){a[++r]=o?i(t,e,n):kr(e,t,n)}),a}),Qf=jo(function(e,t,n){Qn(e,n,t)}),Zf=jo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ep=eo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ii(e,t[0],t[1])?t=[]:n>2&&Ii(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,cr(t,1),[])}),tp=Ic||function(){return Dn.Date.now()},np=eo(function(e,t,n){var r=me;if(n.length){var o=G(n,vi(np));r|=Te}return ai(e,r,t,n,o)}),rp=eo(function(e,t,n){var r=me|ge;if(n.length){var o=G(n,vi(rp));r|=Te}return ai(t,r,e,n,o)}),op=eo(function(e,t){return or(e,1,t)}),ip=eo(function(e,t,n){return or(e,Tu(t)||0,n)});As.Cache=sn;var ap=vf(function(e,t){t=1==t.length&&dp(t[0])?d(t[0],M(yi())):d(cr(t,1),M(yi()));var n=t.length;return eo(function(r){for(var o=-1,a=zc(r.length,n);++o=t}),pp=wr(function(){return arguments}())?wr:function(e){return tu(e)&&pc.call(e,"callee")&&!xc.call(e,"callee")},dp=Ql.isArray,hp=Bn?M(Bn):xr,mp=Bc||Bl,gp=jn?M(jn):Cr,vp=Fn?M(Fn):Sr,yp=Hn?M(Hn):Ir,bp=Un?M(Un):Mr,Tp=zn?M(zn):Lr,_p=ni(jr),Ep=ni(function(e,t){return e<=t}),kp=Fo(function(e,t){if(Bi(t)||zs(t))return void Po(t,Ru(t),e);for(var n in t)pc.call(t,n)&&Kn(e,n,t[n])}),wp=Fo(function(e,t){Po(t,Bu(t),e)}),xp=Fo(function(e,t,n,r){Po(t,Bu(t),e,r)}),Cp=Fo(function(e,t,n,r){Po(t,Ru(t),e,r)}),Ap=di(Zn),Op=eo(function(e,t){e=rc(e);var n=-1,r=t.length,o=r>2?t[2]:re;for(o&&Ii(t[0],t[1],o)&&(r=1);++n1),t}),Po(e,mi(e),n),r&&(n=tr(n,ce|fe|pe,li));for(var o=t.length;o--;)ho(n,t[o]);return n}),Rp=di(function(e,t){return null==e?{}:Gr(e,t)}),Bp=ii(Ru),jp=ii(Bu),Fp=qo(function(e,t,n){return t=t.toLowerCase(),e+(n?el(t):t)}),Hp=qo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Up=qo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),zp=Ko("toLowerCase"),Kp=qo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),qp=qo(function(e,t,n){return e+(n?" ":"")+Gp(t)}),Wp=qo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Gp=Ko("toUpperCase"),Vp=eo(function(e,t){try{return i(e,re,t)}catch(e){return $s(e)?e:new ec(e)}}),Yp=di(function(e,t){return s(t,function(t){t=$i(t),Qn(e,t,np(e[t],e))}),e}),$p=Yo(),Jp=Yo(!0),Xp=eo(function(e,t){return function(n){return kr(n,e,t)}}),Qp=eo(function(e,t){return function(n){return kr(e,n,t)}}),Zp=Qo(d),ed=Qo(l),td=Qo(v),nd=ti(),rd=ti(!0),od=Xo(function(e,t){return e+t},0),id=oi("ceil"),ad=Xo(function(e,t){return e/t},1),sd=oi("floor"),ud=Xo(function(e,t){return e*t},1),ld=oi("round"),cd=Xo(function(e,t){return e-t},0);return n.after=Ts,n.ary=_s,n.assign=kp,n.assignIn=wp,n.assignInWith=xp,n.assignWith=Cp,n.at=Ap,n.before=Es,n.bind=np,n.bindAll=Yp,n.bindKey=rp,n.castArray=Ps,n.chain=Ga,n.chunk=Zi,n.compact=ea,n.concat=ta,n.cond=El,n.conforms=kl,n.constant=wl,n.countBy=Vf,n.create=wu,n.curry=ks,n.curryRight=ws,n.debounce=xs,n.defaults=Op,n.defaultsDeep=Sp,n.defer=op,n.delay=ip,n.difference=Sf,n.differenceBy=Nf,n.differenceWith=Df,n.drop=na,n.dropRight=ra,n.dropRightWhile=oa,n.dropWhile=ia,n.fill=aa,n.filter=rs,n.flatMap=os,n.flatMapDeep=is,n.flatMapDepth=as,n.flatten=la,n.flattenDeep=ca,n.flattenDepth=fa,n.flip=Cs,n.flow=$p,n.flowRight=Jp,n.fromPairs=pa,n.functions=Du,n.functionsIn=Iu,n.groupBy=Jf,n.initial=ma,n.intersection=If,n.intersectionBy=Mf,n.intersectionWith=Lf,n.invert=Np,n.invertBy=Dp,n.invokeMap=Xf,n.iteratee=Al,n.keyBy=Qf,n.keys=Ru,n.keysIn=Bu,n.map=cs,n.mapKeys=ju,n.mapValues=Fu,n.matches=Ol,n.matchesProperty=Sl,n.memoize=As,n.merge=Mp,n.mergeWith=Lp,n.method=Xp,n.methodOf=Qp,n.mixin=Nl,n.negate=Os,n.nthArg=Ml,n.omit=Pp,n.omitBy=Hu,n.once=Ss,n.orderBy=fs,n.over=Zp,n.overArgs=ap,n.overEvery=ed,n.overSome=td,n.partial=sp,n.partialRight=up,n.partition=Zf,n.pick=Rp,n.pickBy=Uu,n.property=Ll,n.propertyOf=Pl,n.pull=Pf,n.pullAll=Ta,n.pullAllBy=_a,n.pullAllWith=Ea,n.pullAt=Rf,n.range=nd,n.rangeRight=rd,n.rearg=lp,n.reject=hs,n.remove=ka,n.rest=Ns,n.reverse=wa,n.sampleSize=gs,n.set=Ku,n.setWith=qu,n.shuffle=vs,n.slice=xa,n.sortBy=ep,n.sortedUniq=Ia,n.sortedUniqBy=Ma,n.split=fl,n.spread=Ds,n.tail=La,n.take=Pa,n.takeRight=Ra,n.takeRightWhile=Ba,n.takeWhile=ja,n.tap=Va,n.throttle=Is,n.thru=Ya,n.toArray=gu,n.toPairs=Bp,n.toPairsIn=jp,n.toPath=zl,n.toPlainObject=_u,n.transform=Wu,n.unary=Ms,n.union=Bf,n.unionBy=jf,n.unionWith=Ff,n.uniq=Fa,n.uniqBy=Ha,n.uniqWith=Ua,n.unset=Gu,n.unzip=za,n.unzipWith=Ka,n.update=Vu,n.updateWith=Yu,n.values=$u,n.valuesIn=Ju,n.without=Hf,n.words=_l,n.wrap=Ls,n.xor=Uf,n.xorBy=zf,n.xorWith=Kf,n.zip=qf,n.zipObject=qa,n.zipObjectDeep=Wa,n.zipWith=Wf,n.entries=Bp,n.entriesIn=jp,n.extend=wp,n.extendWith=xp,Nl(n,n),n.add=od,n.attempt=Vp,n.camelCase=Fp,n.capitalize=el,n.ceil=id,n.clamp=Xu,n.clone=Rs,n.cloneDeep=js,n.cloneDeepWith=Fs,n.cloneWith=Bs,n.conformsTo=Hs,n.deburr=tl,n.defaultTo=xl,n.divide=ad,n.endsWith=nl,n.eq=Us,n.escape=rl,n.escapeRegExp=ol,n.every=ns,n.find=Yf,n.findIndex=sa,n.findKey=xu,n.findLast=$f,n.findLastIndex=ua,n.findLastKey=Cu,n.floor=sd,n.forEach=ss,n.forEachRight=us,n.forIn=Au,n.forInRight=Ou,n.forOwn=Su,n.forOwnRight=Nu,n.get=Mu,n.gt=cp,n.gte=fp,n.has=Lu,n.hasIn=Pu,n.head=da,n.identity=Cl,n.includes=ls,n.indexOf=ha,n.inRange=Qu,n.invoke=Ip,n.isArguments=pp,n.isArray=dp,n.isArrayBuffer=hp,n.isArrayLike=zs,n.isArrayLikeObject=Ks,n.isBoolean=qs,n.isBuffer=mp,n.isDate=gp,n.isElement=Ws,n.isEmpty=Gs,n.isEqual=Vs,n.isEqualWith=Ys,n.isError=$s,n.isFinite=Js,n.isFunction=Xs,n.isInteger=Qs,n.isLength=Zs,n.isMap=vp,n.isMatch=nu,n.isMatchWith=ru,n.isNaN=ou,n.isNative=iu,n.isNil=su,n.isNull=au,n.isNumber=uu,n.isObject=eu,n.isObjectLike=tu,n.isPlainObject=lu,n.isRegExp=yp,n.isSafeInteger=cu,n.isSet=bp,n.isString=fu,n.isSymbol=pu,n.isTypedArray=Tp,n.isUndefined=du,n.isWeakMap=hu,n.isWeakSet=mu,n.join=ga,n.kebabCase=Hp,n.last=va,n.lastIndexOf=ya,n.lowerCase=Up,n.lowerFirst=zp,n.lt=_p,n.lte=Ep,n.max=ql,n.maxBy=Wl,n.mean=Gl,n.meanBy=Vl,n.min=Yl,n.minBy=$l,n.stubArray=Rl,n.stubFalse=Bl,n.stubObject=jl,n.stubString=Fl,n.stubTrue=Hl,n.multiply=ud,n.nth=ba,n.noConflict=Dl,n.noop=Il,n.now=tp,n.pad=il,n.padEnd=al,n.padStart=sl,n.parseInt=ul,n.random=Zu,n.reduce=ps,n.reduceRight=ds,n.repeat=ll,n.replace=cl,n.result=zu,n.round=ld,n.runInContext=e,n.sample=ms,n.size=ys,n.snakeCase=Kp,n.some=bs,n.sortedIndex=Ca,n.sortedIndexBy=Aa,n.sortedIndexOf=Oa,n.sortedLastIndex=Sa,n.sortedLastIndexBy=Na,n.sortedLastIndexOf=Da,n.startCase=qp,n.startsWith=pl,n.subtract=cd,n.sum=Jl,n.sumBy=Xl,n.template=dl,n.times=Ul,n.toFinite=vu,n.toInteger=yu,n.toLength=bu,n.toLower=hl,n.toNumber=Tu,n.toSafeInteger=Eu,n.toString=ku,n.toUpper=ml,n.trim=gl,n.trimEnd=vl,n.trimStart=yl,n.truncate=bl,n.unescape=Tl,n.uniqueId=Kl,n.upperCase=Wp,n.upperFirst=Gp,n.each=ss,n.eachRight=us,n.first=da,Nl(n,function(){var e={};return fr(n,function(t,r){pc.call(n.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),n.VERSION="4.17.5",s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){n[e].placeholder=n}),s(["drop","take"],function(e,t){y.prototype[e]=function(n){n=n===re?1:Uc(yu(n),0);var r=this.__filtered__&&!t?new y(this):this.clone();return r.__filtered__?r.__takeCount__=zc(n,r.__takeCount__):r.__views__.push({size:zc(n,Pe),type:e+(r.__dir__<0?"Right":"")}),r},y.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),s(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==Se||3==n;y.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:yi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),s(["head","last"],function(e,t){var n="take"+(t?"Right":"");y.prototype[e]=function(){return this[n](1).value()[0]}}),s(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");y.prototype[e]=function(){return this.__filtered__?new y(this):this[n](1)}}),y.prototype.compact=function(){return this.filter(Cl)},y.prototype.find=function(e){return this.filter(e).head()},y.prototype.findLast=function(e){return this.reverse().find(e)},y.prototype.invokeMap=eo(function(e,t){return"function"==typeof e?new y(this):this.map(function(n){return kr(n,e,t)})}),y.prototype.reject=function(e){return this.filter(Os(yi(e)))},y.prototype.slice=function(e,t){e=yu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==re&&(t=yu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},y.prototype.toArray=function(){return this.take(Pe)},fr(y.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=n[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);a&&(n.prototype[t]=function(){var t=this.__wrapped__,u=i?[1]:arguments,l=t instanceof y,c=u[0],f=l||dp(t),p=function(e){var t=a.apply(n,h([e],u));return i&&d?t[0]:t};f&&r&&"function"==typeof c&&1!=c.length&&(l=f=!1);var d=this.__chain__,m=!!this.__actions__.length,g=s&&!d,v=l&&!m;if(!s&&f){t=v?t:new y(this);var b=e.apply(t,u);return b.__actions__.push({func:Ya,args:[p],thisArg:re}),new o(b,d)}return g&&v?e.apply(this,u):(b=this.thru(p),g?i?b.value()[0]:b.value():b)})}),s(["pop","push","shift","sort","splice","unshift"],function(e){var t=sc[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var n=this.value();return t.apply(dp(n)?n:[],e)}return this[r](function(n){return t.apply(dp(n)?n:[],e)})}}),fr(y.prototype,function(e,t){var r=n[t];if(r){var o=r.name+"";(ef[o]||(ef[o]=[])).push({name:t,func:r})}}),ef[$o(re,ge).name]=[{name:"wrapper",func:re}],y.prototype.clone=A,y.prototype.reverse=J,y.prototype.value=ee,n.prototype.at=Gf,n.prototype.chain=$a,n.prototype.commit=Ja,n.prototype.next=Xa,n.prototype.plant=Za,n.prototype.reverse=es,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ts,n.prototype.first=n.prototype.head,Oc&&(n.prototype[Oc]=Qa),n}();Dn._=Vn,(o=function(){return Vn}.call(t,n,t,r))!==re&&(r.exports=o)}).call(this)}).call(t,n(3),n(29)(e))},function(e,t){},function(e,t,n){"use strict";function r(e){return e}e.exports=r},function(e,t,n){"use strict";function r(e){return e.length}e.exports={gfm:!0,commonmark:!1,pedantic:!1,entities:"false",setext:!1,closeAtx:!1,looseTable:!1,spacedTable:!0,paddedTable:!0,stringLength:r,incrementListMarker:!0,fences:!1,fence:"`",bullet:"-",listItemIndent:"tab",rule:"*",ruleSpaces:!0,ruleRepetition:3,strong:"*",emphasis:"_"}},function(e,t,n){"use strict";function r(e){var t;return"&"!==e.charAt(0)?0:(t=e.split("&",2).join("&"),t.length-o(t).length)}var o=n(71);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r;for(e=e.split("\n"),n=e.length,r=o(" ",t*i);n--;)0!==e[n].length&&(e[n]=r+e[n]);return e.join("\n")}var o=n(11);e.exports=r;var i=4},function(e,t,n){"use strict";function r(e,t){var n,r,o=0,i=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");for(e=String(e),r=e.indexOf(t),n=r;-1!==r;)o++,r===n?o>i&&(i=o):o=1,n=r+1,r=e.indexOf(t,n);return i}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.referenceType,n="full"===t?e.identifier:"";return"shortcut"===t?n:"["+n+"]"}e.exports=r},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[],u=[];!function(){function e(e){return 4294967296*(e-(0|e))|0}for(var n=2,r=0;r<64;)(function(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0})(n)&&(r<8&&(s[r]=e(t.pow(n,.5))),u[r]=e(t.pow(n,1/3)),r++),n++}();var l=[],c=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],c=n[5],f=n[6],p=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var h=l[d-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=l[d-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[d]=m+l[d-7]+v+l[d-16]}var y=s&c^~s&f,b=r&o^r&i^o&i,T=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),E=p+_+y+u[d]+l[d],k=T+b;p=f,f=c,c=s,s=a+E|0,a=i,i=o,o=r,r=E+k|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(c),n.HmacSHA256=i._createHmacHelper(c)}(Math),e.SHA256})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(79))}(0,function(e){return function(){function t(){return a.create.apply(a,arguments)}var n=e,r=n.lib,o=r.Hasher,i=n.x64,a=i.Word,s=i.WordArray,u=n.algo,l=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=t()}();var f=u.SHA512=o.extend({_doReset:function(){this._hash=new s.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],f=n[6],p=n[7],d=r.high,h=r.low,m=o.high,g=o.low,v=i.high,y=i.low,b=a.high,T=a.low,_=s.high,E=s.low,k=u.high,w=u.low,x=f.high,C=f.low,A=p.high,O=p.low,S=d,N=h,D=m,I=g,M=v,L=y,P=b,R=T,B=_,j=E,F=k,H=w,U=x,z=C,K=A,q=O,W=0;W<80;W++){var G=c[W];if(W<16)var V=G.high=0|e[t+2*W],Y=G.low=0|e[t+2*W+1];else{var $=c[W-15],J=$.high,X=$.low,Q=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,Z=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=c[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[W-7],ae=ie.high,se=ie.low,ue=c[W-16],le=ue.high,ce=ue.low,Y=Z+se,V=Q+ae+(Y>>>0>>0?1:0),Y=Y+oe,V=V+re+(Y>>>0>>0?1:0),Y=Y+ce,V=V+le+(Y>>>0>>0?1:0);G.high=V,G.low=Y}var fe=B&F^~B&U,pe=j&H^~j&z,de=S&D^S&M^D&M,he=N&I^N&L^I&L,me=(S>>>28|N<<4)^(S<<30|N>>>2)^(S<<25|N>>>7),ge=(N>>>28|S<<4)^(N<<30|S>>>2)^(N<<25|S>>>7),ve=(B>>>14|j<<18)^(B>>>18|j<<14)^(B<<23|j>>>9),ye=(j>>>14|B<<18)^(j>>>18|B<<14)^(j<<23|B>>>9),be=l[W],Te=be.high,_e=be.low,Ee=q+ye,ke=K+ve+(Ee>>>0>>0?1:0),Ee=Ee+pe,ke=ke+fe+(Ee>>>0>>0?1:0),Ee=Ee+_e,ke=ke+Te+(Ee>>>0<_e>>>0?1:0),Ee=Ee+Y,ke=ke+V+(Ee>>>0>>0?1:0),we=ge+he,xe=me+de+(we>>>0>>0?1:0);K=U,q=z,U=F,z=H,F=B,H=j,j=R+Ee|0,B=P+ke+(j>>>0>>0?1:0)|0,P=M,R=L,M=D,L=I,D=S,I=N,N=Ee+we|0,S=ke+xe+(N>>>0>>0?1:0)|0}h=r.low=h+N,r.high=d+S+(h>>>0>>0?1:0),g=o.low=g+I,o.high=m+D+(g>>>0>>0?1:0),y=i.low=y+L,i.high=v+M+(y>>>0>>0?1:0),T=a.low=T+R,a.high=b+P+(T>>>0>>0?1:0),E=s.low=E+j,s.high=_+B+(E>>>0>>0?1:0),w=u.low=w+H,u.high=k+F+(w>>>0>>0?1:0),C=f.low=C+z,f.high=x+U+(C>>>0>>0?1:0),O=p.low=O+q,p.high=A+K+(O>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});n.SHA512=o._createHelper(f),n.HmacSHA512=o._createHmacHelper(f)}(),e.SHA512})},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;rl){for(var t=0,n=a.length-u;tP.length&&P.push(e)}function d(e,t,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case E:case k:case w:case x:a=!0}}if(a)return n(o,e,""===t?"."+h(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;sthis.eventPool.length&&this.eventPool.push(e)}function z(e){e.eventPool=[],e.getPooled=H,e.release=U}function K(e,t,n,r){return F.call(this,e,t,n,r)}function q(e,t,n,r){return F.call(this,e,t,n,r)}function W(e,t){switch(e){case"topKeyUp":return-1!==dr.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function G(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}function V(e,t){switch(e){case"topCompositionEnd":return G(t);case"topKeyPress":return 32!==t.which?null:(kr=!0,_r);case"topTextInput":return e=t.data,e===_r&&kr?null:e;default:return null}}function Y(e,t){if(wr)return"topCompositionEnd"===e||!hr&&W(e,t)?(e=B(),cr._root=null,cr._startText=null,cr._fallbackText=null,wr=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1zr.length&&zr.push(e)}}}function Me(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function Le(e){if(Vr[e])return Vr[e];if(!Gr[e])return e;var t,n=Gr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Yr)return Vr[e]=n[t];return""}function Pe(e){return Object.prototype.hasOwnProperty.call(e,Qr)||(e[Qr]=Xr++,Jr[e[Qr]]={}),Jr[e[Qr]]}function Re(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Be(e,t){var n=Re(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Re(n)}}function je(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function Fe(e,t){if(oo||null==to||to!==wn())return null;var n=to;return"selectionStart"in n&&je(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ro&&xn(ro,n)?null:(ro=n,e=F.getPooled(eo.select,no,e,t),e.type="select",e.target=to,L(e),e)}function He(e,t,n,r){return F.call(this,e,t,n,r)}function Ue(e,t,n,r){return F.call(this,e,t,n,r)}function ze(e,t,n,r){return F.call(this,e,t,n,r)}function Ke(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}function qe(e,t,n,r){return F.call(this,e,t,n,r)}function We(e,t,n,r){return F.call(this,e,t,n,r)}function Ge(e,t,n,r){return F.call(this,e,t,n,r)}function Ve(e,t,n,r){return F.call(this,e,t,n,r)}function Ye(e,t,n,r){return F.call(this,e,t,n,r)}function $e(e){0>po||(e.current=fo[po],fo[po]=null,po--)}function Je(e,t){po++,fo[po]=e.current,e.current=t}function Xe(e){return Ze(e)?go:ho.current}function Qe(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ze(e){return 2===e.tag&&null!=e.type.childContextTypes}function et(e){Ze(e)&&($e(mo,e),$e(ho,e))}function tt(e,t,n){null!=ho.cursor&&r("168"),Je(ho,t,e),Je(mo,n,e)}function nt(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!==typeof n.getChildContext)return t;n=n.getChildContext();for(var i in n)i in o||r("108",_e(e)||"Unknown",i);return _n({},t,n)}function rt(e){if(!Ze(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||On,go=ho.current,Je(ho,t,e),Je(mo,mo.current,e),!0}function ot(e,t){var n=e.stateNode;if(n||r("169"),t){var o=nt(e,go);n.__reactInternalMemoizedMergedChildContext=o,$e(mo,e),$e(ho,e),Je(ho,o,e)}else $e(mo,e);Je(mo,t,e)}function it(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function at(e,t,n){var r=e.alternate;return null===r?(r=new it(e.tag,e.key,e.internalContextTag),r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=t,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function st(e,t,n){var o=void 0,i=e.type,a=e.key;return"function"===typeof i?(o=i.prototype&&i.prototype.isReactComponent?new it(2,a,t):new it(0,a,t),o.type=i,o.pendingProps=e.props):"string"===typeof i?(o=new it(5,a,t),o.type=i,o.pendingProps=e.props):"object"===typeof i&&null!==i&&"number"===typeof i.tag?(o=i,o.pendingProps=e.props):r("130",null==i?i:typeof i,""),o.expirationTime=n,o}function ut(e,t,n,r){return t=new it(10,r,t),t.pendingProps=e,t.expirationTime=n,t}function lt(e,t,n){return t=new it(6,null,t),t.pendingProps=e,t.expirationTime=n,t}function ct(e,t,n){return t=new it(7,e.key,t),t.type=e.handler,t.pendingProps=e,t.expirationTime=n,t}function ft(e,t,n){return e=new it(9,null,t),e.expirationTime=n,e}function pt(e,t,n){return t=new it(4,e.key,t),t.pendingProps=e.children||[],t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dt(e){return function(t){try{return e(t)}catch(e){}}}function ht(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);vo=dt(function(e){return t.onCommitFiberRoot(n,e)}),yo=dt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function mt(e){"function"===typeof vo&&vo(e)}function gt(e){"function"===typeof yo&&yo(e)}function vt(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function yt(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function bt(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=vt(null)),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=vt(null)):e=null,e=e!==r?e:null,null===e?yt(r,t):null===r.last||null===e.last?(yt(r,t),yt(e,t)):(yt(r,t),e.last=t)}function Tt(e,t,n,r){return e=e.partialState,"function"===typeof e?e.call(t,n,r):e}function _t(e,t,n,r,o,i){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var a=!0,s=n.first,u=!1;null!==s;){var l=s.expirationTime;if(l>i){var c=n.expirationTime;(0===c||c>l)&&(n.expirationTime=l),u||(u=!0,n.baseState=e)}else u||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(e=Tt(s,r,e,o),a=!0):(l=Tt(s,r,e,o))&&(e=a?_n({},e,l):_n(e,l),a=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(l=n.callbackList,null===l&&(l=n.callbackList=[]),l.push(s));s=s.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||(t.updateQueue=null),u||(n.baseState=e),e}function Et(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;ep?(d=f,f=null):d=f.sibling;var v=m(r,f,s[p],u);if(null===v){null===f&&(f=d);break}e&&f&&null===v.alternate&&t(r,f),i=a(v,i,p),null===c?l=v:c.sibling=v,c=v,f=d}if(p===s.length)return n(r,f),l;if(null===f){for(;pd?(v=p,p=null):v=p.sibling;var b=m(i,p,y.value,l);if(null===b){p||(p=v);break}e&&p&&null===b.alternate&&t(i,p),s=a(b,s,d),null===f?c=b:f.sibling=b,f=b,p=v}if(y.done)return n(i,p),c;if(null===p){for(;!y.done;d++,y=u.next())null!==(y=h(i,y.value,l))&&(s=a(y,s,d),null===f?c=y:f.sibling=y,f=y);return c}for(p=o(i,p);!y.done;d++,y=u.next())null!==(y=g(p,i,d,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?d:y.key),s=a(y,s,d),null===f?c=y:f.sibling=y,f=y);return e&&p.forEach(function(e){return t(i,e)}),c}return function(e,o,a,u){"object"===typeof a&&null!==a&&a.type===wo&&null===a.key&&(a=a.props.children);var l="object"===typeof a&&null!==a;if(l)switch(a.$$typeof){case To:e:{var c=a.key;for(l=o;null!==l;){if(l.key===c){if(10===l.tag?a.type===wo:l.type===a.type){n(e,l.sibling),o=i(l,a.type===wo?a.props.children:a.props,u),o.ref=xt(l,a),o.return=e,e=o;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===wo?(o=ut(a.props.children,e.internalContextTag,u,a.key),o.return=e,e=o):(u=st(a,e.internalContextTag,u),u.ref=xt(o,a),u.return=e,e=u)}return s(e);case _o:e:{for(l=a.key;null!==o;){if(o.key===l){if(7===o.tag){n(e,o.sibling),o=i(o,a,u),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=ct(a,e.internalContextTag,u),o.return=e,e=o}return s(e);case Eo:e:{if(null!==o){if(9===o.tag){n(e,o.sibling),o=i(o,null,u),o.type=a.value,o.return=e,e=o;break e}n(e,o)}o=ft(a,e.internalContextTag,u),o.type=a.value,o.return=e,e=o}return s(e);case ko:e:{for(l=a.key;null!==o;){if(o.key===l){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),o=i(o,a.children||[],u),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=pt(a,e.internalContextTag,u),o.return=e,e=o}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),o=i(o,a,u)):(n(e,o),o=lt(a,e.internalContextTag,u)),o.return=e,e=o,s(e);if(Co(a))return v(e,o,a,u);if(wt(a))return y(e,o,a,u);if(l&&Ct(e,a),"undefined"===typeof a)switch(e.tag){case 2:case 1:u=e.type,r("152",u.displayName||u.name||"Component")}return n(e,o)}}function Ot(e,t,n,o,i){function a(e,t,n){var r=t.expirationTime;t.child=null===e?Oo(t,null,n,r):Ao(t,e.child,n,r)}function s(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=128)}function u(e,t,n,r){if(s(e,t),!n)return r&&ot(t,!1),c(e,t);n=t.stateNode,Ur.current=t;var o=n.render();return t.effectTag|=1,a(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&ot(t,!0),t.child}function l(e){var t=e.stateNode;t.pendingContext?tt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tt(e,t.context,!1),g(e,t.containerInfo)}function c(e,t){if(null!==e&&t.child!==e.child&&r("153"),null!==t.child){e=t.child;var n=at(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=at(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function f(e,t){switch(t.tag){case 3:l(t);break;case 2:rt(t);break;case 4:g(t,t.stateNode.containerInfo)}return null}var p=e.shouldSetTextContent,d=e.useSyncScheduling,h=e.shouldDeprioritizeSubtree,m=t.pushHostContext,g=t.pushHostContainer,v=n.enterHydrationState,y=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;e=kt(o,i,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var T=e.adoptClassInstance,_=e.constructClassInstance,E=e.mountClassInstance,k=e.updateClassInstance;return{beginWork:function(e,t,n){if(0===t.expirationTime||t.expirationTime>n)return f(e,t);switch(t.tag){case 0:null!==e&&r("155");var o=t.type,i=t.pendingProps,w=Xe(t);return w=Qe(t,w),o=o(i,w),t.effectTag|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render?(t.tag=2,i=rt(t),T(t,o),E(t,n),t=u(e,t,!0,i)):(t.tag=1,a(e,t,o),t.memoizedProps=i,t=t.child),t;case 1:e:{if(i=t.type,n=t.pendingProps,o=t.memoizedProps,mo.current)null===n&&(n=o);else if(null===n||o===n){t=c(e,t);break e}o=Xe(t),o=Qe(t,o),i=i(n,o),t.effectTag|=1,a(e,t,i),t.memoizedProps=n,t=t.child}return t;case 2:return i=rt(t),o=void 0,null===e?t.stateNode?r("153"):(_(t,t.pendingProps),E(t,n),o=!0):o=k(e,t,n),u(e,t,o,i);case 3:return l(t),i=t.updateQueue,null!==i?(o=t.memoizedState,i=_t(e,t,i,null,null,n),o===i?(y(),t=c(e,t)):(o=i.element,w=t.stateNode,(null===e||null===e.child)&&w.hydrate&&v(t)?(t.effectTag|=2,t.child=Oo(t,null,o,n)):(y(),a(e,t,o)),t.memoizedState=i,t=t.child)):(y(),t=c(e,t)),t;case 5:m(t),null===e&&b(t),i=t.type;var x=t.memoizedProps;return o=t.pendingProps,null===o&&null===(o=x)&&r("154"),w=null!==e?e.memoizedProps:null,mo.current||null!==o&&x!==o?(x=o.children,p(i,o)?x=null:w&&p(i,w)&&(t.effectTag|=16),s(e,t),2147483647!==n&&!d&&h(i,o)?(t.expirationTime=2147483647,t=null):(a(e,t,x),t.memoizedProps=o,t=t.child)):t=c(e,t),t;case 6:return null===e&&b(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case 8:t.tag=7;case 7:return i=t.pendingProps,mo.current?null===i&&null===(i=e&&e.memoizedProps)&&r("154"):null!==i&&t.memoizedProps!==i||(i=t.memoizedProps),o=i.children,t.stateNode=null===e?Oo(t,t.stateNode,o,n):Ao(t,t.stateNode,o,n),t.memoizedProps=i,t.stateNode;case 9:return null;case 4:e:{if(g(t,t.stateNode.containerInfo),i=t.pendingProps,mo.current)null===i&&null==(i=e&&e.memoizedProps)&&r("154");else if(null===i||t.memoizedProps===i){t=c(e,t);break e}null===e?t.child=Ao(t,null,i,n):a(e,t,i),t.memoizedProps=i,t=t.child}return t;case 10:e:{if(n=t.pendingProps,mo.current)null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=c(e,t);break e}a(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case 2:rt(t);break;case 3:l(t);break;default:r("157")}return t.effectTag|=64,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),0===t.expirationTime||t.expirationTime>n?f(e,t):(t.firstEffect=null,t.lastEffect=null,t.child=null===e?Oo(t,null,null,n):Ao(t,e.child,null,n),2===t.tag&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function St(e,t,n){function o(e){e.effectTag|=4}var i=e.createInstance,a=e.createTextInstance,s=e.appendInitialChild,u=e.finalizeInitialChildren,l=e.prepareUpdate,c=e.persistence,f=t.getRootHostContainer,p=t.popHostContext,d=t.getHostContext,h=t.popHostContainer,m=n.prepareToHydrateHostInstance,g=n.prepareToHydrateHostTextInstance,v=n.popHydrationState,y=void 0,b=void 0,T=void 0;return e.mutation?(y=function(){},b=function(e,t,n){(t.updateQueue=n)&&o(t)},T=function(e,t,n,r){n!==r&&o(t)}):r(c?"235":"236"),{completeWork:function(e,t,n){var c=t.pendingProps;switch(null===c?c=t.memoizedProps:2147483647===t.expirationTime&&2147483647!==n||(t.pendingProps=null),t.tag){case 1:return null;case 2:return et(t),null;case 3:return h(t),$e(mo,t),$e(ho,t),c=t.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==e&&null!==e.child||(v(t),t.effectTag&=-3),y(t),null;case 5:p(t),n=f();var _=t.type;if(null!==e&&null!=t.stateNode){var E=e.memoizedProps,k=t.stateNode,w=d();k=l(k,_,E,c,n,w),b(e,t,k,_,E,c,n),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!c)return null===t.stateNode&&r("166"),null;if(e=d(),v(t))m(t,n,e)&&o(t);else{e=i(_,c,n,e,t);e:for(E=t.child;null!==E;){if(5===E.tag||6===E.tag)s(e,E.stateNode);else if(4!==E.tag&&null!==E.child){E.child.return=E,E=E.child;continue}if(E===t)break;for(;null===E.sibling;){if(null===E.return||E.return===t)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}u(e,_,c,n)&&o(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)T(e,t,e.memoizedProps,c);else{if("string"!==typeof c)return null===t.stateNode&&r("166"),null;e=f(),n=d(),v(t)?g(t)&&o(t):t.stateNode=a(c,e,n,t)}return null;case 7:(c=t.memoizedProps)||r("165"),t.tag=8,_=[];e:for((E=t.stateNode)&&(E.return=t);null!==E;){if(5===E.tag||6===E.tag||4===E.tag)r("247");else if(9===E.tag)_.push(E.type);else if(null!==E.child){E.child.return=E,E=E.child;continue}for(;null===E.sibling;){if(null===E.return||E.return===t)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}return E=c.handler,c=E(c.props,_),t.child=Ao(t,null!==e?e.child:null,c,n),t.child;case 8:return t.tag=7,null;case 9:case 10:return null;case 4:return h(t),y(t),null;case 0:r("167");default:r("156")}}}}function Nt(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function o(e){switch("function"===typeof gt&>(e),e.tag){case 2:n(e);var r=e.stateNode;if("function"===typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case 5:n(e);break;case 7:i(e.stateNode);break;case 4:l&&s(e)}}function i(e){for(var t=e;;)if(o(t),null===t.child||l&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function a(e){return 5===e.tag||3===e.tag||4===e.tag}function s(e){for(var t=e,n=!1,a=void 0,s=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case 5:a=n.stateNode,s=!1;break e;case 3:case 4:a=n.stateNode.containerInfo,s=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)i(t),s?b(a,t.stateNode):y(a,t.stateNode);else if(4===t.tag?a=t.stateNode.containerInfo:o(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}var u=e.getPublicInstance,l=e.mutation;e=e.persistence,l||r(e?"235":"236");var c=l.commitMount,f=l.commitUpdate,p=l.resetTextContent,d=l.commitTextUpdate,h=l.appendChild,m=l.appendChildToContainer,g=l.insertBefore,v=l.insertInContainerBefore,y=l.removeChild,b=l.removeChildFromContainer;return{commitResetTextContent:function(e){p(e.stateNode)},commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(a(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var o=t=void 0;switch(n.tag){case 5:t=n.stateNode,o=!1;break;case 3:case 4:t=n.stateNode.containerInfo,o=!0;break;default:r("161")}16&n.effectTag&&(p(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||a(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)n?o?v(t,i.stateNode,n):g(t,i.stateNode,n):o?m(t,i.stateNode):h(t,i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){s(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var i=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&f(n,a,i,e,o,t)}break;case 6:null===t.stateNode&&r("162"),n=t.memoizedProps,d(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case 2:var n=t.stateNode;if(4&t.effectTag)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var o=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(o,e)}t=t.updateQueue,null!==t&&Et(t,n);break;case 3:n=t.updateQueue,null!==n&&Et(n,null!==t.child?t.child.stateNode:null);break;case 5:n=t.stateNode,null===e&&4&t.effectTag&&c(n,t.type,t.memoizedProps,t);break;case 6:case 4:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:t(u(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}function Dt(e){function t(e){return e===So&&r("174"),e}var n=e.getChildHostContext,o=e.getRootHostContext,i={current:So},a={current:So},s={current:So};return{getHostContext:function(){return t(i.current)},getRootHostContainer:function(){return t(s.current)},popHostContainer:function(e){$e(i,e),$e(a,e),$e(s,e)},popHostContext:function(e){a.current===e&&($e(i,e),$e(a,e))},pushHostContainer:function(e,t){Je(s,t,e),t=o(t),Je(a,e,e),Je(i,t,e)},pushHostContext:function(e){var r=t(s.current),o=t(i.current);r=n(o,e.type,r),o!==r&&(Je(a,e,e),Je(i,r,e))},resetHostContainer:function(){i.current=So,s.current=So}}}function It(e){function t(e,t){var n=new it(5,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case 5:return null!==(t=a(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=s(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function o(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;p=e}var i=e.shouldSetTextContent;if(!(e=e.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var a=e.canHydrateInstance,s=e.canHydrateTextInstance,u=e.getNextHydratableSibling,l=e.getFirstHydratableChild,c=e.hydrateInstance,f=e.hydrateTextInstance,p=null,d=null,h=!1;return{enterHydrationState:function(e){return d=l(e.stateNode.containerInfo),p=e,h=!0},resetHydrationState:function(){d=p=null,h=!1},tryToClaimNextHydratableInstance:function(e){if(h){var r=d;if(r){if(!n(e,r)){if(!(r=u(r))||!n(e,r))return e.effectTag|=2,h=!1,void(p=e);t(p,d)}p=e,d=l(r)}else e.effectTag|=2,h=!1,p=e}},prepareToHydrateHostInstance:function(e,t,n){return t=c(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return f(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==p)return!1;if(!h)return o(e),h=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!i(n,e.memoizedProps))for(n=d;n;)t(e,n),n=u(n);return o(e),d=p?u(e.stateNode):null,!0}}}function Mt(e){function t(e){ie=$=!0;var t=e.stateNode;if(t.current===e&&r("177"),t.isReadyForCommit=!1,Ur.current=null,1a.expirationTime)&&(i=a.expirationTime),a=a.sibling;o.expirationTime=i}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1e))if(Q<=V)for(;null!==J;)J=l(J)?i(J):o(J);else for(;null!==J&&!E();)J=l(J)?i(J):o(J)}else if(!(0===Q||Q>e))if(Q<=V)for(;null!==J;)J=o(J);else for(;null!==J&&!E();)J=o(J)}function s(e,t){if($&&r("243"),$=!0,e.isReadyForCommit=!1,e!==X||t!==Q||null===J){for(;-1t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!$&&n===X&&tTe&&r("185"),null===o.nextScheduledRoot)o.remainingExpirationTime=i,null===ue?(se=ue=o,o.nextScheduledRoot=o):(ue=ue.nextScheduledRoot=o,ue.nextScheduledRoot=se);else{var a=o.remainingExpirationTime;(0===a||ile)return;z(ce)}var t=H()-G;le=e,ce=U(b,{timeout:10*(e-2)-t})}function y(){var e=0,t=null;if(null!==ue)for(var n=ue,o=se;null!==o;){var i=o.remainingExpirationTime;if(0===i){if((null===n||null===ue)&&r("244"),o===o.nextScheduledRoot){se=ue=o.nextScheduledRoot=null;break}if(o===se)se=i=o.nextScheduledRoot,ue.nextScheduledRoot=i,o.nextScheduledRoot=null;else{if(o===ue){ue=n,ue.nextScheduledRoot=se,o.nextScheduledRoot=null;break}n.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null}o=n.nextScheduledRoot}else{if((0===e||ike)&&(he=!0)}function k(e){null===pe&&r("246"),pe.remainingExpirationTime=0,me||(me=!0,ge=e)}var w=Dt(e),x=It(e),C=w.popHostContainer,A=w.popHostContext,O=w.resetHostContainer,S=Ot(e,w,x,d,p),N=S.beginWork,D=S.beginFailedWork,I=St(e,w,x).completeWork;w=Nt(e,u);var M=w.commitResetTextContent,L=w.commitPlacement,P=w.commitDeletion,R=w.commitWork,B=w.commitLifeCycles,j=w.commitAttachRef,F=w.commitDetachRef,H=e.now,U=e.scheduleDeferredCallback,z=e.cancelDeferredCallback,K=e.useSyncScheduling,q=e.prepareForCommit,W=e.resetAfterCommit,G=H(),V=2,Y=0,$=!1,J=null,X=null,Q=0,Z=null,ee=null,te=null,ne=null,re=null,oe=!1,ie=!1,ae=!1,se=null,ue=null,le=0,ce=-1,fe=!1,pe=null,de=0,he=!1,me=!1,ge=null,ve=null,ye=!1,be=!1,Te=1e3,Ee=0,ke=1;return{computeAsyncExpiration:f,computeExpirationForFiber:p,scheduleWork:d,batchedUpdates:function(e,t){var n=ye;ye=!0;try{return e(t)}finally{(ye=n)||fe||T(1,null)}},unbatchedUpdates:function(e){if(ye&&!be){be=!0;try{return e()}finally{be=!1}}return e()},flushSync:function(e){var t=ye;ye=!0;try{e:{var n=Y;Y=1;try{var o=e();break e}finally{Y=n}o=void 0}return o}finally{ye=t,fe&&r("187"),T(1,null)}},deferredUpdates:function(e){var t=Y;Y=f();try{return e()}finally{Y=t}}}}function Lt(e){function t(e){return e=Ce(e),null===e?null:e.stateNode}var n=e.getPublicInstance;e=Mt(e);var o=e.computeAsyncExpiration,i=e.computeExpirationForFiber,a=e.scheduleWork;return{createContainer:function(e,t){var n=new it(3,null,0);return e={current:n,containerInfo:e,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:t,nextScheduledRoot:null},n.stateNode=e},updateContainer:function(e,t,n,s){var u=t.current;if(n){n=n._reactInternalFiber;var l;e:{for(2===Ee(n)&&2===n.tag||r("170"),l=n;3!==l.tag;){if(Ze(l)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}(l=l.return)||r("171")}l=l.stateNode.context}n=Ze(n)?nt(n,l):l}else n=On;null===t.context?t.context=n:t.pendingContext=n,t=s,t=void 0===t?null:t,s=null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent?o():i(u),bt(u,{expirationTime:s,partialState:{element:e},callback:t,isReplace:!1,isForced:!1,nextCallback:null,next:null}),a(u,s)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return n(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:t,findHostInstanceWithNoPortals:function(e){return e=Ae(e),null===e?null:e.stateNode},injectIntoDevTools:function(e){var n=e.findFiberByHostInstance;return ht(_n({},e,{findHostInstanceByFiber:function(e){return t(e)},findFiberByHostInstance:function(e){return n?n(e):null}}))}}}function Pt(e,t,n){var r=3n||r.hasOverloadedBooleanValue&&!1===n?Ft(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(o=r.attributeNamespace)?e.setAttributeNS(o,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else jt(e,t,i(t,n)?n:null)}function jt(e,t,n){Rt(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))}function Ft(e,t){var n=a(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}function Ht(e,t){var n=t.value,r=t.checked;return _n({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})}function Ut(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function zt(e,t){null!=(t=t.checked)&&Bt(e,"checked",t)}function Kt(e,t){zt(e,t);var n=t.value;null!=n?0===n&&""===e.value?e.value="0":"number"===t.type?(t=parseFloat(e.value)||0,(n!=t||n==t&&e.value!=n)&&(e.value=""+n)):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))}function qt(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)}function Wt(e){var t="";return bn.Children.forEach(e,function(e){null==e||"string"!==typeof e&&"number"!==typeof e||(t+=e)}),t}function Gt(e,t){return e=_n({children:void 0},t),(t=Wt(t.children))&&(e.children=t),e}function Vt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=t.length||r("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Xt(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Qt(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function Zt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function en(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Zt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function tn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function nn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,i=t[n];o=null==i||"boolean"===typeof i||""===i?"":r||"number"!==typeof i||0===i||Zo.hasOwnProperty(o)&&Zo[o]?(""+i).trim():i+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}function rn(e,t,n){t&&(ti[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r("60"),"object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||r("61")),null!=t.style&&"object"!==typeof t.style&&r("62",n()))}function on(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function an(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Pe(e);t=Jn[t];for(var r=0;r<\/script>",e=e.removeChild(e.firstChild)):e="string"===typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function un(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function ln(e,t,n,r){var o=on(t,n);switch(t){case"iframe":case"object":Ne("topLoad","load",e);var i=n;break;case"video":case"audio":for(i in oi)oi.hasOwnProperty(i)&&Ne(i,oi[i],e);i=n;break;case"source":Ne("topError","error",e),i=n;break;case"img":case"image":Ne("topError","error",e),Ne("topLoad","load",e),i=n;break;case"form":Ne("topReset","reset",e),Ne("topSubmit","submit",e),i=n;break;case"details":Ne("topToggle","toggle",e),i=n;break;case"input":Ut(e,n),i=Ht(e,n),Ne("topInvalid","invalid",e),an(r,"onChange");break;case"option":i=Gt(e,n);break;case"select":Yt(e,n),i=_n({},n,{value:void 0}),Ne("topInvalid","invalid",e),an(r,"onChange");break;case"textarea":Jt(e,n),i=$t(e,n),Ne("topInvalid","invalid",e),an(r,"onChange");break;default:i=n}rn(t,i,ri);var a,s=i;for(a in s)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?nn(e,u,ri):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&Qo(e,u):"children"===a?"string"===typeof u?("textarea"!==t||""!==u)&&tn(e,u):"number"===typeof u&&tn(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&($n.hasOwnProperty(a)?null!=u&&an(r,a):o?jt(e,a,u):null!=u&&Bt(e,a,u))}switch(t){case"input":ie(e),qt(e,n);break;case"textarea":ie(e),Qt(e,n);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,t=n.value,null!=t?Vt(e,!!n.multiple,t,!1):null!=n.defaultValue&&Vt(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=En)}}function cn(e,t,n,r,o){var i=null;switch(t){case"input":n=Ht(e,n),r=Ht(e,r),i=[];break;case"option":n=Gt(e,n),r=Gt(e,r),i=[];break;case"select":n=_n({},n,{value:void 0}),r=_n({},r,{value:void 0}),i=[];break;case"textarea":n=$t(e,n),r=$t(e,r),i=[];break;default:"function"!==typeof n.onClick&&"function"===typeof r.onClick&&(e.onclick=En)}rn(t,r,ri);var a,s;e=null;for(a in n)if(!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&null!=n[a])if("style"===a)for(s in t=n[a])t.hasOwnProperty(s)&&(e||(e={}),e[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&($n.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var u=r[a];if(t=null!=n?n[a]:void 0,r.hasOwnProperty(a)&&u!==t&&(null!=u||null!=t))if("style"===a)if(t){for(s in t)!t.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(e||(e={}),e[s]="");for(s in u)u.hasOwnProperty(s)&&t[s]!==u[s]&&(e||(e={}),e[s]=u[s])}else e||(i||(i=[]),i.push(a,e)),e=u;else"dangerouslySetInnerHTML"===a?(u=u?u.__html:void 0,t=t?t.__html:void 0,null!=u&&t!==u&&(i=i||[]).push(a,""+u)):"children"===a?t===u||"string"!==typeof u&&"number"!==typeof u||(i=i||[]).push(a,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&($n.hasOwnProperty(a)?(null!=u&&an(o,a),i||t===u||(i=[])):(i=i||[]).push(a,u))}return e&&(i=i||[]).push("style",e),i}function fn(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&zt(e,o),on(n,r),r=on(n,o);for(var i=0;i=u.hasBooleanValue+u.hasNumericValue+u.hasOverloadedBooleanValue||r("50",s),a.hasOwnProperty(s)&&(u.attributeName=a[s]),i.hasOwnProperty(s)&&(u.attributeNamespace=i[s]),e.hasOwnProperty(s)&&(u.mutationMethod=e[s]),Dn[s]=u}}},Dn={},In=Nn,Mn=In.MUST_USE_PROPERTY,Ln=In.HAS_BOOLEAN_VALUE,Pn=In.HAS_NUMERIC_VALUE,Rn=In.HAS_POSITIVE_NUMERIC_VALUE,Bn=In.HAS_OVERLOADED_BOOLEAN_VALUE,jn=In.HAS_STRING_BOOLEAN_VALUE,Fn={Properties:{allowFullScreen:Ln,async:Ln,autoFocus:Ln,autoPlay:Ln,capture:Bn,checked:Mn|Ln,cols:Rn,contentEditable:jn,controls:Ln,default:Ln,defer:Ln,disabled:Ln,download:Bn,draggable:jn,formNoValidate:Ln,hidden:Ln,loop:Ln,multiple:Mn|Ln,muted:Mn|Ln,noValidate:Ln,open:Ln,playsInline:Ln,readOnly:Ln,required:Ln,reversed:Ln,rows:Rn,rowSpan:Pn,scoped:Ln,seamless:Ln,selected:Mn|Ln,size:Rn,start:Pn,span:Rn,spellCheck:jn,style:0,tabIndex:0,itemScope:Ln,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:jn},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},Hn=In.HAS_STRING_BOOLEAN_VALUE,Un={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},zn={Properties:{autoReverse:Hn,externalResourcesRequired:Hn,preserveAlpha:Hn},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:Un.xlink,xlinkArcrole:Un.xlink,xlinkHref:Un.xlink,xlinkRole:Un.xlink,xlinkShow:Un.xlink,xlinkTitle:Un.xlink,xlinkType:Un.xlink,xmlBase:Un.xml,xmlLang:Un.xml,xmlSpace:Un.xml}},Kn=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(Kn,s);zn.Properties[t]=0,zn.DOMAttributeNames[t]=e}),In.injectDOMPropertyConfig(Fn),In.injectDOMPropertyConfig(zn);var qn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!==typeof e.invokeGuardedCallback&&r("197"),u=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,i,a,s,l){u.apply(qn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,i,a,s,u){if(qn.invokeGuardedCallback.apply(this,arguments),qn.hasCaughtError()){var l=qn.clearCaughtError();qn._hasRethrowError||(qn._hasRethrowError=!0,qn._rethrowError=l)}},rethrowCaughtError:function(){return l.apply(qn,arguments)},hasCaughtError:function(){return qn._hasCaughtError},clearCaughtError:function(){if(qn._hasCaughtError){var e=qn._caughtError;return qn._caughtError=null,qn._hasCaughtError=!1,e}r("198")}},Wn=null,Gn={},Vn=[],Yn={},$n={},Jn={},Xn=Object.freeze({plugins:Vn,eventNameDispatchConfigs:Yn,registrationNameModules:$n,registrationNameDependencies:Jn,possibleRegistrationNames:null,injectEventPluginOrder:p,injectEventPluginsByName:d}),Qn=null,Zn=null,er=null,tr=null,nr={injectEventPluginOrder:p,injectEventPluginsByName:d},rr=Object.freeze({injection:nr,getListener:T,extractEvents:_,enqueueEvents:E,processEventQueue:k}),or=Math.random().toString(36).slice(2),ir="__reactInternalInstance$"+or,ar="__reactEventHandlers$"+or,sr=Object.freeze({precacheFiberNode:function(e,t){t[ir]=e},getClosestInstanceFromNode:w,getInstanceFromNode:function(e){return e=e[ir],!e||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:x,getFiberCurrentPropsFromNode:C,updateFiberProps:function(e,t){e[ar]=t}}),ur=Object.freeze({accumulateTwoPhaseDispatches:L,accumulateTwoPhaseDispatchesSkipTarget:function(e){g(e,D)},accumulateEnterLeaveDispatches:P,accumulateDirectDispatches:function(e){g(e,M)}}),lr=null,cr={_root:null,_startText:null,_fallbackText:null},fr="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),pr={type:null,target:null,currentTarget:En.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};_n(F.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=En.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=En.thatReturnsTrue)},persist:function(){this.isPersistent=En.thatReturnsTrue},isPersistent:En.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t=parseInt(vr.version(),10))}var yr,br=gr,Tr=Tn.canUseDOM&&(!hr||mr&&8=mr),_r=String.fromCharCode(32),Er={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},kr=!1,wr=!1,xr={eventTypes:Er,extractEvents:function(e,t,n,r){var o;if(hr)e:{switch(e){case"topCompositionStart":var i=Er.compositionStart;break e;case"topCompositionEnd":i=Er.compositionEnd;break e;case"topCompositionUpdate":i=Er.compositionUpdate;break e}i=void 0}else wr?W(e,n)&&(i=Er.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(i=Er.compositionStart);return i?(Tr&&(wr||i!==Er.compositionStart?i===Er.compositionEnd&&wr&&(o=B()):(cr._root=r,cr._startText=j(),wr=!0)),i=K.getPooled(i,t,n,r),o?i.data=o:null!==(o=G(n))&&(i.data=o),L(i),o=i):o=null,(e=br?V(e,n):Y(e,n))?(t=q.getPooled(Er.beforeInput,t,n,r),t.data=e,L(t)):t=null,[o,t]}},Cr=null,Ar=null,Or=null,Sr={injectFiberControlledHostComponent:function(e){Cr=e}},Nr=Object.freeze({injection:Sr,enqueueStateRestore:J,restoreStateIfNeeded:X}),Dr=!1,Ir={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};Tn.canUseDOM&&(yr=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Mr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Lr=null,Pr=null,Rr=!1;Tn.canUseDOM&&(Rr=ne("input")&&(!document.documentMode||9=document.documentMode,eo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},to=null,no=null,ro=null,oo=!1,io={eventTypes:eo,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Pe(i),o=Jn.onSelect;for(var a=0;a=zo-e){if(!(-1!==Ho&&Ho<=e))return void(Uo||(Uo=!0,requestAnimationFrame(Go)));Bo.didTimeout=!0}else Bo.didTimeout=!1;Ho=-1,e=jo,jo=null,null!==e&&e(Bo)}},!1);var Go=function(e){Uo=!1;var t=e-zo+qo;tt&&(t=8),qo=t"+t+"",t=Xo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Zo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ei=["Webkit","ms","Moz","O"];Object.keys(Zo).forEach(function(e){ei.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zo[t]=Zo[e]})});var ti=_n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),ni=Jo.html,ri=En.thatReturns(""),oi={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ii=Object.freeze({createElement:sn,createTextNode:un,setInitialProperties:ln,diffProperties:cn,updateProperties:fn,diffHydratedProperties:pn,diffHydratedText:dn,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(Kt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;tr&&(o=r,r=e,e=o),o=Be(n,e);var i=Be(n,r);if(o&&i&&(1!==t.rangeCount||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==i.node||t.focusOffset!==i.offset)){var a=document.createRange();a.setStart(o.node,o.offset),t.removeAllRanges(),e>r?(t.addRange(a),t.extend(i.node,i.offset)):(a.setEnd(i.node,i.offset),t.addRange(a))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(An(n),n=0;ne.props.stack.limit){var r=n[0].id;h.default.dispatch({type:"REMOVE",data:{id:r}}),n=(0,g.default)("right",e)||[]}e.setState({dataRight:n})})})};this.unsubStoreRight=h.default.subscribe(i);var a=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var n=void 0;if(t=(0,g.default)("left",e)||[],n=t.length,e.props.stack&&e.props.stack.limit&&n>e.props.stack.limit){var r=t[0].id;h.default.dispatch({type:"REMOVE",data:{id:r}}),t=(0,g.default)("left",e)||[]}e.setState({dataLeft:t})})})};this.unsubStoreLeft=h.default.subscribe(a);var s=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var t=void 0;if(r=(0,g.default)("full-top",e)||[],t=r.length,e.props.stack&&e.props.stack.limit&&t>e.props.stack.limit){var n=r[0].id;h.default.dispatch({type:"REMOVE",data:{id:n}}),r=(0,g.default)("full-top",e)||[]}e.setState({dataTop:r})})})};this.unsubStoreTop=h.default.subscribe(s);var u=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var t=void 0;if(o=(0,g.default)("full-bottom",e)||[],t=o.length,e.props.stack&&e.props.stack.limit&&t>e.props.stack.limit){var n=o[0].id;h.default.dispatch({type:"REMOVE",data:{id:n}}),o=(0,g.default)("full-bottom",e)||[]}e.setState({dataBottom:o})})})};this.unsubStoreBottom=h.default.subscribe(u);var l={contentTemplate:this.props.contentTemplate,offset:this.props.offset,message:this.props.message,stack:this.props.stack,html:this.props.html,customFields:this.props.customFields,position:this.props.position||"top-right",preserveContext:this.props.preserveContext||!1};m.default.setGlobalConfig(l)}},{key:"componentWillUnmount",value:function(){this.unsubStoreTop(),this.unsubStoreBottom(),this.unsubStoreLeft(),this.unsubStoreRight()}},{key:"render",value:function(){var e=this,t=function(t,n){var r="alert-key-"+t.id+"-"+t.position,o=t.id,i=m.default.returnFirstDefined(t.condition,"info"),a=m.default.returnFirstDefined(t.message,e.props.message,""),s=m.default.returnFirstDefined(t.position,e.props.position,"top-right"),u=(m.default.returnFirstDefined(t.offset,e.props.offset,0),m.default.returnFirstDefined(t.effect,e.props.effect)),l=t.boxPosition,c=m.default.returnFirstDefined(t.beep,e.props.beep,!1),d=m.default.returnFirstDefined(t.timeout,e.props.timeout,5e3),h=m.default.returnFirstDefined(t.html,e.props.html),g=m.default.returnFirstDefined(t.onClose,e.props.onClose),v=m.default.returnFirstDefined(t.onShow,e.props.onShow),y=m.default.returnFirstDefined(t.customFields,e.props.customFields),b=e.props.contentTemplate;return f.default.createElement(p.default,{key:r,id:o,customFields:y,condition:i,message:a,position:s,effect:u,boxPosition:l,beep:c,timeout:d,html:h,onClose:g,onShow:v,contentTemplate:b})},n=this.state.dataRight.map(t),r=this.state.dataLeft.map(t),o=this.state.dataTop.map(t),i=this.state.dataBottom.map(t);return f.default.createElement("div",{className:"s-alert-wrapper"},n,r,o,i)}}],[{key:"info",value:function(e,t){return b(e,t,"info")}},{key:"error",value:function(e,t){return b(e,t,"error")}},{key:"warning",value:function(e,t){return b(e,t,"warning")}},{key:"success",value:function(e,t){return b(e,t,"success")}},{key:"close",value:function(e){h.default.dispatch({type:"REMOVE",data:{id:e}})}},{key:"closeAll",value:function(){h.default.dispatch({type:"REMOVEALL"})}}]),t}(f.default.Component);T.propTypes={message:d.default.string,position:d.default.string,offset:d.default.number,stack:d.default.oneOfType([d.default.bool,d.default.object]),effect:d.default.string,beep:d.default.oneOfType([d.default.string,d.default.object,d.default.bool]),timeout:d.default.oneOfType([d.default.oneOf(["none"]),d.default.number]),html:d.default.bool,preserveContext:d.default.bool,onClose:d.default.func,onShow:d.default.func,customFields:d.default.object,contentTemplate:d.default.func},e.default=T})},function(e,t,n){"use strict";var r=n(47),o=n(287),i=n(288);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,s,u],f=0;l=new Error(t.replace(/%s/g,function(){return c[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(4)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(e,"__esModule",{value:!0});var s=r(t),u=r(n),l=function(){function e(e,t){for(var n=0;n=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(295),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(16))},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function o(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(o||r);e.diff=i,e.prev=o,e.curr=r,o=r;for(var a=new Array(arguments.length),s=0;s0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function o(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var i=n(139),a=n(27),s=n(51)("engine.io-client:socket"),u=n(143),l=n(28),c=n(135),f=n(49);e.exports=r,r.priorWebsocketSuccess=!1,a(r.prototype),r.protocol=l.protocol,r.Socket=r,r.Transport=n(88),r.transports=n(139),r.parser=n(28),r.prototype.createTransport=function(e){s('creating transport "%s"',e);var t=o(this.query);t.EIO=l.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new i[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0})},r.prototype.open=function(){var e;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},r.prototype.setTransport=function(e){s("setting transport %s",e.name);var t=this;this.transport&&(s("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},r.prototype.probe=function(e){function t(){if(p.onlyBinaryUpgrades){var t=!this.supportsBinary&&p.transport.supportsBinary;f=f||t}f||(s('probe transport "%s" opened',e),c.send([{type:"ping",data:"probe"}]),c.once("packet",function(t){if(!f)if("pong"===t.type&&"probe"===t.data){if(s('probe transport "%s" pong',e),p.upgrading=!0,p.emit("upgrading",c),!c)return;r.priorWebsocketSuccess="websocket"===c.name,s('pausing current transport "%s"',p.transport.name),p.transport.pause(function(){f||"closed"!==p.readyState&&(s("changing transport and sending upgrade packet"),l(),p.setTransport(c),c.send([{type:"upgrade"}]),p.emit("upgrade",c),c=null,p.upgrading=!1,p.flush())})}else{s('probe transport "%s" failed',e);var n=new Error("probe error");n.transport=c.name,p.emit("upgradeError",n)}}))}function n(){f||(f=!0,l(),c.close(),c=null)}function o(t){var r=new Error("probe error: "+t);r.transport=c.name,n(),s('probe transport "%s" failed because of error: %s',e,t),p.emit("upgradeError",r)}function i(){o("transport closed")}function a(){o("socket closed")}function u(e){c&&e.name!==c.name&&(s('"%s" works - aborting "%s"',e.name,c.name),n())}function l(){c.removeListener("open",t),c.removeListener("error",o),c.removeListener("close",i),p.removeListener("close",a),p.removeListener("upgrading",u)}s('probing transport "%s"',e);var c=this.createTransport(e,{probe:1}),f=!1,p=this;r.priorWebsocketSuccess=!1,c.once("open",t),c.once("error",o),c.once("close",i),this.once("close",a),this.once("upgrading",u),c.open()},r.prototype.onOpen=function(){if(s("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){s("starting upgrade probes");for(var e=0,t=this.upgrades.length;e=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),i.alloc(+e)}function g(e,t){if(i.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:T(e,t,n,r,o);if("number"===typeof t)return t&=255,i.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):T(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function T(e,t,n,r,o){function i(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}var l;if(o){var c=-1;for(l=n;ls&&(n=s-u),l=n;l>=0;l--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:i>223?3:i>191?2:1;if(o+s<=n){var u,l,c,f;switch(s){case 1:i<128&&(a=i);break;case 2:u=e[o+1],128===(192&u)&&(f=(31&i)<<6|63&u)>127&&(a=f);break;case 3:u=e[o+1],l=e[o+2],128===(192&u)&&128===(192&l)&&(f=(15&i)<<12|(63&u)<<6|63&l)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=e[o+1],l=e[o+2],c=e[o+3],128===(192&u)&&128===(192&l)&&128===(192&c)&&(f=(15&i)<<18|(63&u)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=s}return S(r)}function S(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,o,a){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function B(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function j(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return o||j(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,o){return o||j(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,n,r,52,8),n+8}function U(e){if(e=z(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function K(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function V(e){return J.toByteArray(U(e))}function Y(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function $(e){return e!==e}var J=n(303),X=n(304),Q=n(305);t.Buffer=i,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,t,n){return a(null,e,t,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(e,t,n){return u(null,e,t,n)},i.allocUnsafe=function(e){return l(null,e)},i.allocUnsafeSlow=function(e){return l(null,e)},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},i.prototype.compare=function(e,t,n,r,o){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var a=o-r,s=n-t,u=Math.min(a,s),l=this.slice(r,o),c=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)r+=this[e+--t]*o;return r},i.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],o=1,i=0;++i=o&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);P(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);P(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"===typeof e)for(a=t;a0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function o(e){return 3*e.length/4-r(e)}function i(e){var t,n,o,i,a,s=e.length;i=r(e),a=new f(3*s/4-i),n=i>0?s-4:s;var u=0;for(t=0;t>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,a[u++]=255&o):1===i&&(o=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}function a(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function s(e,t,n){for(var r,o=[],i=t;iu?u:a+16383));return 1===r?(t=e[n-1],o+=l[t>>2],o+=l[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=l[t>>10],o+=l[t>>4&63],o+=l[t<<2&63],o+="="),i.push(o),i.join("")}t.byteLength=o,t.toByteArray=i,t.fromByteArray=u;for(var l=[],c=[],f="undefined"!==typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,h=p.length;d>1,c=-7,f=n?o-1:0,p=n?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=l}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,l=8*i-o-1,c=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?p/u:p*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<0;e[n+d]=255&a,d+=h,a/=256,l-=8);e[n+d-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),a=t,s=0;a=55296&&t<=56319&&o65535&&(t-=65536,o+=T(t>>>10&1023|55296),t=56320|1023&t),o+=T(t);return o}function u(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(e,t){return T(e>>t&63|128)}function c(e,t){if(0==(4294967168&e))return T(e);var n="";return 0==(4294965248&e)?n=T(e>>6&31|192):0==(4294901760&e)?(u(e,t)||(e=65533),n=T(e>>12&15|224),n+=l(e,6)):0==(4292870144&e)&&(n=T(e>>18&7|240),n+=l(e,12),n+=l(e,6)),n+=T(63&e|128)}function f(e,t){t=t||{};for(var n,r=!1!==t.strict,o=a(e),i=o.length,s=-1,u="";++s=y)throw Error("Invalid byte index");var e=255&v[b];if(b++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function d(e){var t,n,r,o,i;if(b>y)throw Error("Invalid byte index");if(b==y)return!1;if(t=255&v[b],b++,0==(128&t))return t;if(192==(224&t)){if(n=p(),(i=(31&t)<<6|n)>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(n=p(),r=p(),(i=(15&t)<<12|n<<6|r)>=2048)return u(i,e)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(n=p(),r=p(),o=p(),(i=(7&t)<<18|n<<12|r<<6|o)>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}function h(e,t){t=t||{};var n=!1!==t.strict;v=a(e),y=v.length,b=0;for(var r,o=[];!1!==(r=d(n));)o.push(r);return s(o)}var m="object"==typeof t&&t,g=("object"==typeof e&&e&&e.exports,"object"==typeof r&&r);var v,y,b,T=String.fromCharCode,_={version:"2.1.2",encode:f,decode:h};void 0!==(o=function(){return _}.call(t,n,t,e))&&(e.exports=o)}()}).call(t,n(29)(e),n(3))},function(e,t){!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(e){var t,r,o,i,a,s=.75*e.length,u=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c=new ArrayBuffer(s),f=new Uint8Array(c);for(t=0;t>4,f[l++]=(15&o)<<4|i>>2,f[l++]=(3&i)<<6|63&a;return c}}()},function(e,t,n){(function(t){function n(e){for(var t=0;t';i=document.createElement(e)}catch(e){i=document.createElement("iframe"),i.name=o.iframeId,i.src="javascript:0"}i.id=o.iframeId,o.form.appendChild(i),o.iframe=i}var o=this;if(!this.form){var i,a=document.createElement("form"),s=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=c,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}this.form.action=this.uri(),r(),e=e.replace(l,"\\\n"),this.area.value=e.replace(u,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===o.iframe.readyState&&n()}:this.iframe.onload=n}}).call(t,n(3))},function(e,t,n){(function(t){function r(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=f&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(p=o),i.call(this,e)}var o,i=n(88),a=n(28),s=n(49),u=n(50),l=n(142),c=n(51)("engine.io-client:websocket"),f=t.WebSocket||t.MozWebSocket;if("undefined"===typeof window)try{o=n(315)}catch(e){}var p=f;p||"undefined"!==typeof window||(p=o),e.exports=r,u(r,i),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?t?new p(e,t):new p(e):new p(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},r.prototype.write=function(e){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var o=e.length,i=0,s=o;i0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return e.displayName||e.name||"Component"}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var u=function(s){function u(n,r){o(this,u);var a=i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,n,r));a.i18n=n.i18n||t.i18n||r.i18n||Object(g.b)(),a.namespaces="function"===typeof e?e(n):e||a.i18n.options&&a.i18n.options.defaultNS,"string"===typeof a.namespaces&&(a.namespaces=[a.namespaces]);var s=a.i18n&&a.i18n.options&&a.i18n.options.react||{};return a.options=y({},Object(g.a)(),s,t),a.getWrappedInstance=a.getWrappedInstance.bind(a),a}return a(u,s),b(u,[{key:"shouldComponentUpdate",value:function(e){return!this.options.usePureComponent||!Object(m.a)(this.props,e)}},{key:"getWrappedInstance",value:function(){return this.options.withRef||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.wrappedInstance}},{key:"render",value:function(){var e=this,t={};return this.options.withRef&&(t.ref=function(t){e.wrappedInstance=t}),c.a.createElement(v.a,y({ns:this.namespaces},this.options,this.props,{i18n:this.i18n}),function(o,i){var a=i.ready,s=r(i,["ready"]);return c.a.createElement(n,y({tReady:a},e.props,t,s))})}}]),u}(l.Component);return u.WrappedComponent=n,u.contextTypes={i18n:p.a.object},u.displayName="Translate("+s(n)+")",u.namespaces=e,h()(u,n)}}t.a=u;var l=n(1),c=n.n(l),f=n(4),p=n.n(f),d=n(319),h=n.n(d),m=n(320),g=n(89),v=n(147),y=Object.assign||function(e){for(var t=1;t-1){m=this.props.i18nKey.split(this.i18n.options.nsSeparator)[0]}this.t.ns&&(h["data-i18next-options"]=JSON.stringify({ns:m}))}return o&&(h.className=o),i&&(h.style=i),s.a.createElement.apply(this,[t,h].concat(p))}}]),t}(a.Component);p.propTypes={className:l.a.string},p.defaultProps={className:""},p.contextTypes={i18n:l.a.object.isRequired,t:l.a.func.isRequired},t.a=p},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return e&&(e.children||e.props&&e.props.children)}function u(e){return e&&e.children?e.children:e.props&&e.props.children}function l(e,t,n){return t?("[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),t.forEach(function(t,n){var r=""+n;if("string"===typeof t)e=""+e+t;else if(s(t))e=e+"<"+r+">"+l("",u(t),n+1)+"";else if(p.a.isValidElement(t))e=e+"<"+r+">";else if("object"===("undefined"===typeof t?"undefined":b(t))){var o=y({},t),i=o.format;delete o.format;var a=Object.keys(o);i&&1===a.length?e=e+"<"+r+">{{"+a[0]+", "+i+"}}":1===a.length?e=e+"<"+r+">{{"+a[0]+"}}":console&&console.warn&&console.warn("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else console&&console.warn&&console.warn("react-i18next: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)}),e):""}function c(e,t,n){function r(e,t){return"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),t.reduce(function(t,o,i){if("tag"===o.type){var a=e[parseInt(o.name,10)]||{},l=p.a.isValidElement(a);if("string"===typeof a)t.push(a);else if(s(a)){var c=r(u(a),o.children);a.dummy&&(a.children=c),t.push(p.a.cloneElement(a,y({},a.props,{key:i}),c))}else if("object"!==("undefined"===typeof a?"undefined":b(a))||l)t.push(a);else{var f=n.services.interpolator.interpolate(o.children[0].content,a,n.language);t.push(f)}}else"text"===o.type&&t.push(o.content);return t},[])}return""===t?[]:e?u(r([{dummy:!0,children:e}],g.a.parse("<0>"+t+""))[0]):[t]}var f=n(1),p=n.n(f),d=n(4),h=n.n(d),m=n(323),g=n.n(m),v=function(){function e(e,t){for(var n=0;n-1){E=i.split(u.options.nsSeparator)[0]}h.ns&&(d["data-i18next-options"]=JSON.stringify({ns:E}))}return g?p.a.createElement(g,d,c(t,_,u)):c(t,_,u)}}]),t}(p.a.Component);t.a=T,T.propTypes={count:h.a.number,parent:h.a.oneOfType([h.a.node,h.a.func]),i18nKey:h.a.string,i18n:h.a.object,t:h.a.func},T.contextTypes={i18n:h.a.object.isRequired,t:h.a.func}},function(e,t,n){e.exports={parse:n(324),stringify:n(327)}},function(e,t,n){function r(e,t,n,r,o){var i=t.indexOf("<",r),a=t.slice(r,-1===i?void 0:i);/^\s*$/.test(a)&&(a=" "),(!o&&i>-1&&n+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}var o=/(?:|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,i=n(325),a=Object.create?Object.create(null):{};e.exports=function(e,t){t||(t={}),t.components||(t.components=a);var n,s=[],u=-1,l=[],c={},f=!1;return e.replace(o,function(o,a){if(f){if(o!=="")return;f=!1}var p,d="/"!==o.charAt(1),h=0===o.indexOf("\x3c!--"),m=a+o.length,g=e.charAt(m);d&&!h&&(u++,n=i(o),"tag"===n.type&&t.components[n.name]&&(n.type="component",f=!0),n.voidElement||f||!g||"<"===g||r(n.children,e,u,m,t.ignoreWhitespace),c[n.tagName]=n,0===u&&s.push(n),p=l[u-1],p&&p.children.push(n),l[u]=n),(h||!d||n.voidElement)&&(h||u--,!f&&"<"!==g&&g&&(p=-1===u?s:l[u].children,r(p,e,u,m,t.ignoreWhitespace)))}),!s.length&&e.length&&r(s,e,0,0,t.ignoreWhitespace),s}},function(e,t,n){var r=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,o=n(326);e.exports=function(e){var t,n=0,i=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(r,function(r){if("="===r)return i=!0,void n++;i?0===n?((o[r]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=r):(a.attrs[t]=r.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(a.attrs[t]=t),t=r),n++,i=!1}),a}},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},function(e,t){function n(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}function r(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?n(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(r,"")+""}}e.exports=function(e){return e.reduce(function(e,t){return e+r("",t)},"")}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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 a=n(1),s=(n.n(a),n(4)),u=n.n(s),l=function(){function e(e,t){for(var n=0;n=90||n<=5)return void e.setState({resizeFlag:!1});e.setState({rightWidth:n})},this.onSave=function(t){e.props.onSave()},this.renderToolbar=function(){var t=e.props.t,n=e.props.value,r=!1,o=!1;try{r=K.utils.isSelectionInTable(n),o=z.utils.isInCodeBlock(n)}catch(e){console.log(e)}var i=e.hasSelectImage(n),a=e.hasLinks(n),u=n.focusBlock.type,l=!0,c=!0,f=!0,p=!0,d=!0,h=!0,m=e.props.contentChanged;return o&&(l=!1,c=!1,f=!0,p=!1,d=!1,h=!1),r&&(l=!0,f=!1,p=!0,c=!1,d=!1,h=!0),s.a.createElement("div",{className:"menu toolbar-menu"},!0===l&&s.a.createElement(j.a,null,e.renderMarkButton("BOLD","fa fa-bold"),e.renderMarkButton("ITALIC","fa fa-italic"),e.renderMarkButton("CODE","fa fa-code")),!0===c&&s.a.createElement(j.c,{headerType:u,onClickBlock:e.onClickBlock}),!0===c&&s.a.createElement(j.a,null,e.renderBlockButton("block-quote","fa fa-quote-left"),e.renderBlockButton("ordered_list","fa fa-list-ol"),e.renderBlockButton("unordered_list","fa fa-list-ul"),s.a.createElement(j.d,{text:t("check_list_item"),id:"checkListItemButton",icon:"fa fa-check-square",onMouseDown:e.onAddCheckItem})),s.a.createElement(j.a,null,!0===h&&s.a.createElement(j.d,{text:t("insert_link"),id:"linkButton",icon:"fa fa-link",isActive:a,onMouseDown:e.onToggleLink}),!0===f&&s.a.createElement(j.d,{text:t("code"),id:"codeButton",icon:"fa fa-code fa-code",onMouseDown:e.onToggleCode,isActive:o}),!0===d&&e.renderAddTableButton(),!0===p&&s.a.createElement(j.d,{text:t("insert_image"),id:"imageButton",icon:"fa fa-image",onMouseDown:e.onAddImage,isActive:i})),!0===r&&e.renderTableToolbar(),e.props.saving?s.a.createElement(j.a,null,s.a.createElement("button",{type:"button",className:"btn btn-icon btn-secondary btn-active"},s.a.createElement("i",{className:"fa fa-spin fa-spinner"}))):s.a.createElement(j.a,null,s.a.createElement(j.d,{text:t("save"),id:"saveButton",icon:"fa fa-save",onMouseDown:e.onSave,disabled:!m,isActive:m})),s.a.createElement(j.e,{id:"moreButton",text:t("more"),showHelpDialog:e.showHelpDialog,switchToMarkDownViewer:e.props.switchToMarkDownViewer,switchToPlainTextEditor:e.props.switchToPlainTextEditor}),e.props.collabUsers.length>0&&s.a.createElement(j.b,{users:e.props.collabUsers,id:"usersButton"}),s.a.createElement(O.a,{showAddImageDialog:e.state.showAddImageDialog,toggleImageDialog:e.toggleImageDialog,onInsertImage:e.onInsertImage}),s.a.createElement(S.a,{showAddLinkDialog:e.state.showAddLinkDialog,toggleLinkDialog:e.toggleLinkDialog,onSetLink:e.onSetLink}),s.a.createElement(M.a,{stack:{limit:3}}))},this.renderAddTableButton=function(){var t=e.props.t,n=function(t){return e.onAddTable(t)};return s.a.createElement(j.d,{text:t("insert_table"),id:"tableButton",icon:"fa fa-table",onMouseDown:n})},this.renderTableToolbar=function(){return s.a.createElement(j.f,{onRemoveTable:e.onRemoveTable,onInsertColumn:e.onInsertColumn,onRemoveColumn:e.onRemoveColumn,onInsertRow:e.onInsertRow,onRemoveRow:e.onRemoveRow,onSetAlign:e.onSetAlign})},this.onInsertColumn=function(t){t.preventDefault();var n=K.changes.insertColumn(e.props.value.change());n=Y.resetTableAlign(n,"insertColumn"),e.onChange(n)},this.onInsertRow=function(t){t.preventDefault(),e.onChange(K.changes.insertRow(e.props.value.change()))},this.onRemoveColumn=function(t){t.preventDefault();var n=e.props.value.change();n=Y.resetTableAlign(n,"removeColumn"),n=K.changes.removeColumn(n),e.onChange(n)},this.onRemoveRow=function(t){t.preventDefault(),e.onChange(K.changes.removeRow(e.props.value.change()))},this.onRemoveTable=function(t){t.preventDefault(),e.onChange(K.changes.removeTable(e.props.value.change()))},this.onSetAlign=function(t,n){t.preventDefault();var r=Y.setColumnAlign(e.props.value.change(),n);e.onChange(r)},this.renderMarkButton=function(t,n){var r=e.props.t,o=e.hasMark(t),i="",a=function(n){return e.onClickMark(n,t)};return i="BOLD"===t?"bold":"ITALIC"===t?"italic":"inline_code",s.a.createElement(j.d,{text:r(i),id:t+"Button",onMouseDown:a,isActive:o,icon:n})},this.renderBlockButton=function(t,n){var r=e.props.t,o=!1,i="";if("ordered_list"===t||"unordered_list"===t){var a=W.utils.getCurrentList(e.props.value);o=a&&a.type===t,i="ordered_list"===t?"ordered_list":"unordered_list"}else"block-quote"===t&&(o=q.utils.isSelectionInBlockquote(e.props.value),i="quote");var u=function(n){return e.onClickBlock(n,t)};return s.a.createElement(j.d,{text:r(i),id:t+"Button",onMouseDown:u,isActive:o,icon:n})}};J.propTypes={collabUsers:l.a.array},t.a=Object(F.translate)("translations")(J)},function(e,t,n){(function(r){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(335),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(16))},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function o(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(o||r);e.diff=i,e.prev=o,e.curr=r,o=r;for(var a=new Array(arguments.length),s=0;s",function(e){return o.Block.isBlockList(e)}),change:r("Change",function(e){return o.Change.isChange(e)}),character:r("Character",function(e){return o.Character.isCharacter(e)}),characters:r("List",function(e){return o.Character.isCharacterList(e)}),data:r("Data",function(e){return o.Data.isData(e)}),document:r("Document",function(e){return o.Document.isDocument(e)}),history:r("History",function(e){return o.History.isHistory(e)}),inline:r("Inline",function(e){return o.Inline.isInline(e)}),inlines:r("Inline",function(e){return o.Inline.isInlineList(e)}),leaf:r("Leaf",function(e){return o.Leaf.isLeaf(e)}),leaves:r("List",function(e){return o.Leaf.isLeafList(e)}),mark:r("Mark",function(e){return o.Mark.isMark(e)}),marks:r("Set",function(e){return o.Mark.isMarkSet(e)}),node:r("Node",function(e){return o.Node.isNode(e)}),nodes:r("List",function(e){return o.Node.isNodeList(e)}),range:r("Range",function(e){return o.Range.isRange(e)}),ranges:r("List",function(e){return o.Range.isRangeList(e)}),schema:r("Schema",function(e){return o.Schema.isSchema(e)}),stack:r("Stack",function(e){return o.Stack.isStack(e)}),value:r("Value",function(e){return o.Value.isValue(e)}),text:r("Text",function(e){return o.Text.isText(e)}),texts:r("List",function(e){return o.Text.isTextList(e)})};t.a=i},function(e,t,n){"use strict";function r(e){return!0===o(e)&&"[object Object]"===Object.prototype.toString.call(e)}var o=n(338);e.exports=function(e){var t,n;return!1!==r(e)&&("function"===typeof(t=e.constructor)&&(n=t.prototype,!1!==r(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},function(e,t,n){"use strict";e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},function(e,t,n){"use strict";function r(e){return e=e.toString(),s.test(e)?"rtl":a.test(e)?"ltr":"neutral"}var o,i,a,s;o="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",i="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",a=new RegExp("^[^"+i+"]*["+o+"]"),s=new RegExp("^[^"+o+"]*["+i+"]"),e.exports=r},function(e,t,n){(function(e,r){var o;!function(i){var a="object"==typeof t&&t,s=("object"==typeof e&&e&&e.exports,"object"==typeof r&&r);var u=/([\0-\u02FF\u0370-\u1AAF\u1B00-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uE000-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])([\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g,l=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g,c=function(e){e=e.replace(u,function(e,t,n){return c(n)+t}).replace(l,"$2$1");for(var t="",n=e.length;n--;)t+=e.charAt(n);return t},f={version:"0.2.0",reverse:c};void 0!==(o=function(){return f}.call(t,n,t,e))&&(e.exports=o)}()}).call(t,n(29)(e),n(3))},function(e,t,n){(function(r){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(342),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(16))},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function o(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(o||r);e.diff=i,e.prev=o,e.curr=r,o=r;for(var a=new Array(arguments.length),s=0;s-1}var o=n(54);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var o=n(54);e.exports=r},function(e,t,n){function r(){this.__data__=new o,this.size=0}var o=n(53);e.exports=r},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(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);++r0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;e.exports=n},function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?i(n)&&a(t,n.length):"string"==r&&t in n)&&o(n[t],e)}var o=n(43),i=n(60),a=n(59),s=n(12);e.exports=r},function(e,t,n){var r=n(412),o=n(170),i=o(function(e,t){return null==e?{}:r(e,t)});e.exports=i},function(e,t,n){function r(e,t){return o(e,t,function(t,n){return i(e,n)})}var o=n(413),i=n(421);e.exports=r},function(e,t,n){function r(e,t,n){for(var r=-1,s=t.length,u={};++r0&&n(c)?t>1?r(c,t-1,n,a,s):o(s,c):a||(s[s.length]=c)}return s}var o=n(95),i=n(426);e.exports=r},function(e,t,n){function r(e){return a(e)||i(e)||!!(s&&e&&e[s])}var o=n(31),i=n(57),a=n(19),s=o?o.isConcatSpreadable:void 0;e.exports=r},function(e,t,n){var r=n(169),o=n(428),i=n(443),a=n(33),s=n(32),u=n(447),l=n(170),c=n(172),f=l(function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,function(t){return t=a(t,e),l||(l=t.length>1),t}),s(e,c(e),n),l&&(n=o(n,7,u));for(var f=t.length;f--;)i(n,t[f]);return n});e.exports=f},function(e,t,n){function r(e,t,n,M,L,P){var R,B=t&x,j=t&C,F=t&A;if(n&&(R=L?n(e,M,L,P):n(e)),void 0!==R)return R;if(!E(e))return e;var H=b(e);if(H){if(R=g(e),!B)return c(e,R)}else{var U=m(e),z=U==S||U==N;if(T(e))return l(e,B);if(U==D||U==O||z&&!L){if(R=j||z?{}:y(e),!B)return j?p(e,u(R,e)):f(e,s(R,e))}else{if(!I[U])return L?e:{};R=v(e,U,B)}}P||(P=new o);var K=P.get(e);if(K)return K;if(P.set(e,R),k(e))return e.forEach(function(o){R.add(r(o,t,n,o,e,P))}),R;if(_(e))return e.forEach(function(o,i){R.set(i,r(o,t,n,i,e,P))}),R;var q=F?j?h:d:j?keysIn:w,W=H?void 0:q(e);return i(W||e,function(o,i){W&&(i=o,o=e[i]),a(R,i,r(o,t,n,i,e,P))}),R}var o=n(91),i=n(429),a=n(106),s=n(430),u=n(431),l=n(159),c=n(161),f=n(432),p=n(433),d=n(152),h=n(172),m=n(61),g=n(434),v=n(435),y=n(162),b=n(19),T=n(58),_=n(439),E=n(12),k=n(441),w=n(97),x=1,C=2,A=4,O="[object Arguments]",S="[object Function]",N="[object GeneratorFunction]",D="[object Object]",I={};I[O]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[D]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[S]=I["[object WeakMap]"]=!1,e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++no?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r6?s-6:0),l=6;l5?l-5:0),f=5;f5?a-5:0),u=5;u key("+c[f]+")"].concat(s));if(d instanceof Error)return d}}return o(t)}function u(e){return a(e,"List",T.List.isList)}function l(e,t,n,r){function i(){for(var o=arguments.length,i=Array(o),u=0;u5?s-5:0),l=5;l5?l-5:0),f=5;f>",E={listOf:u,mapOf:c,orderedMapOf:f,setOf:p,orderedSetOf:d,stackOf:h,iterableOf:m,recordOf:g,shape:y,contains:y,mapContains:b,list:i("List",T.List.isList),map:i("Map",T.Map.isMap),orderedMap:i("OrderedMap",T.OrderedMap.isOrderedMap),set:i("Set",T.Set.isSet),orderedSet:i("OrderedSet",T.OrderedSet.isOrderedSet),stack:i("Stack",T.Stack.isStack),seq:i("Seq",T.Seq.isSeq),record:i("Record",function(e){return e instanceof T.Record}),iterable:i("Iterable",T.Iterable.isIterable)};e.exports=E},function(e,t,n){function r(e){return e&&e.window===e}function o(e){if(r(e))return e;var t=i(e);if(a){t.parentWindow.execScript("document._parentWindow = window;","Javascript");var n=t._parentWindow;return t._parentWindow=null,n}return t.defaultView||t.parentWindow}var i=n(451);e.exports=o;var a=n(452)},function(e,t){function n(e){return e&&e.nodeType===o}function r(e){return n(e)?e:n(e.ownerDocument)?e.ownerDocument:n(e.document)?e.document:e.parentNode?r(e.parentNode):e.commonAncestorContainer?r(e.commonAncestorContainer):e.startContainer?r(e.startContainer):e.anchorNode?r(e.anchorNode):void 0}e.exports=r;var o=9},function(e,t){e.exports=!!document.attachEvent&&window!==document.parentWindow},function(e,t){function n(e){var t=e.anchorNode,n=e.anchorOffset,r=e.focusNode,o=e.focusOffset,i=t.compareDocumentPosition(r);return!(4===i||0===i&&n=t||n<0||C&&r>=T}function d(){var e=i();if(p(e))return h(e);E=setTimeout(d,f(e))}function h(e){return E=void 0,A&&y?r(e):(y=b=void 0,_)}function m(){void 0!==E&&clearTimeout(E),w=0,y=k=b=E=void 0}function g(){return void 0===E?_:h(i())}function v(){var e=i(),n=p(e);if(y=arguments,b=this,k=e,n){if(void 0===E)return c(k);if(C)return E=setTimeout(d,t),r(k)}return void 0===E&&(E=setTimeout(d,t)),_}var y,b,T,_,E,k,w=0,x=!1,C=!1,A=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,o(n)&&(x=!!n.leading,C="maxWait"in n,T=C?u(a(n.maxWait)||0,t):T,A="trailing"in n?!!n.trailing:A),v.cancel=m,v.flush=g,v}var o=n(12),i=n(457),a=n(458),s="Expected a function",u=Math.max,l=Math.min;e.exports=r},function(e,t,n){var r=n(17),o=function(){return r.Date.now()};e.exports=o},function(e,t,n){function r(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?f(e.slice(2),n?2:8):u.test(e)?a:+e}var o=n(12),i=n(64),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;e.exports=r},function(e,t,n){"use strict";function r(e){var t=JSON.stringify(e);return Object(c.btoa)(encodeURIComponent(t))}function o(e){var t=decodeURIComponent(Object(c.atob)(e));return JSON.parse(t)}function i(e,t){var n=o(e);return l.Value.fromJSON(n,t)}function a(e,t){var n=o(e);return l.Node.fromJSON(n,t)}function s(e,t){return r(e.toJSON(t))}function u(e,t){return r(e.toJSON(t))}var l=n(0),c=n(460),f=(n.n(c),{deserialize:i,deserializeNode:a,serialize:s,serializeNode:u});t.a=f},function(e,t,n){"use strict";t.atob=self.atob.bind(self),t.btoa=self.btoa.bind(self)},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultBlock,r=void 0===n?"line":n,o=t.defaultMarks,i=void 0===o?[]:o,l=t.toJSON,c=void 0!==l&&l;s.Set.isSet(i)&&(i=i.toArray()),r=a.Node.createProperties(r),i=i.map(a.Mark.createProperties);var f={object:"value",document:{object:"document",data:{},nodes:e.split("\n").map(function(e){return u({},r,{object:"block",isVoid:!1,data:{},nodes:[{object:"text",leaves:[{object:"leaf",text:e,marks:i}]}]})})}};return c?f:a.Value.fromJSON(f)}function o(e){return i(e.document)}function i(e){return"document"==e.object||"block"==e.object&&a.Block.isBlockList(e.nodes)?e.nodes.map(i).join("\n"):e.text}var a=n(0),s=n(5),u=(n.n(s),Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props;this.setState({active:!0}),this.renderPortal(e),this.props.onOpen(this.node)}},{key:"closePortal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=function(n){e.node&&(f.default.unmountComponentAtNode(e.node),document.body.removeChild(e.node)),e.portal=null,e.node=null,!0!==(void 0===n?t:n)&&e.setState({active:!1})};this.state.active&&(this.props.beforeClose?this.props.beforeClose(this.node,n):n(),this.props.onClose())}},{key:"handleOutsideMouseClick",value:function(e){if(this.state.active){(0,c.findDOMNode)(this.portal).contains(e.target)||e.button&&0!==e.button||(e.stopPropagation(),this.closePortal())}}},{key:"handleKeydown",value:function(e){e.keyCode===h.ESCAPE&&this.state.active&&this.closePortal()}},{key:"renderPortal",value:function(e){this.node||(this.node=document.createElement("div"),document.body.appendChild(this.node));var t=e.children;"function"===typeof e.children.type&&(t=l.default.cloneElement(e.children,{closePortal:this.closePortal})),this.portal=f.default.unstable_renderSubtreeIntoContainer(this,t,this.node,this.props.onUpdate)}},{key:"render",value:function(){return this.props.openByClickOn?l.default.cloneElement(this.props.openByClickOn,{onClick:this.handleWrapperClick}):null}}]),t}(l.default.Component);t.default=m,m.propTypes={children:d.default.element.isRequired,openByClickOn:d.default.element,closeOnEsc:d.default.bool,closeOnOutsideClick:d.default.bool,isOpened:d.default.bool,onOpen:d.default.func,onClose:d.default.func,beforeClose:d.default.func,onUpdate:d.default.func},m.defaultProps={onOpen:function(){},onClose:function(){},onUpdate:function(){}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new s.default(e),n=(0,c.default)(t);return i({},n,{onKeyDown:u.onKeyDown.bind(null,t),onPaste:u.onPaste.bind(null,t)})}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;tt.length-n?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(e.getIndent)return e.getIndent(t);var n=(0,u.default)(e,t);if(!n)return"";var r=n.getTexts().map(function(e){return e.text}).join("\n");return(0,a.default)(r)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(177),a=r(i),s=n(176),u=r(s);t.default=o},function(e,t,n){"use strict";function r(e){var t=0,n=0,r=0;for(var o in e){var i=e[o],a=i[0],s=i[1];(a>n||a===n&&s>r)&&(n=a,r=s,t=Number(o))}return t}var o=n(470),i=/^(?:( )+|\t+)/;e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t,n,a=0,s=0,u=0,l={};e.split(/\n/g).forEach(function(e){if(e){var r,o=e.match(i);o?(r=o[0].length,o[1]?s++:a++):r=0;var c=r-u;u=r,c?(n=c>0,t=l[n?c:-c],t?t[0]++:t=l[c]=[1,0]):t&&(t[1]+=Number(n))}});var c,f,p=r(l);return p?s>=a?(c="space",f=o(" ",p)):(c="tab",f=o("\t",p)):(c=null,f=""),{amount:p,type:c,indent:f}}},function(e,t,n){"use strict";var r=n(471);e.exports=function(e,t){if("string"!==typeof e)throw new TypeError("Expected `input` to be a string");if(t<0||!r(t))throw new TypeError("Expected `count` to be a positive finite number");var n="";do{1&t&&(n+=e),e+=e}while(t>>=1);return n}},function(e,t,n){"use strict";var r=n(472);e.exports=Number.isFinite||function(e){return!("number"!==typeof e||r(e)||e===1/0||e===-1/0)}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!==e}},function(e,t,n){"use strict";function r(e,t){var n=t.document,r=t.startKey,o=n.getClosest(r,function(t){return t.type===e.containerType});return Boolean(o)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t){if(e.length>t.length)return r(t,e);var n=(0,i.Range)(0,e.length).find(function(n){return e[n]!==t[n]});return null==n?e.length:n}function o(e,t,n){var o=t.value,i=o.document,a=o.selection;return i.getBlocksAtRange(a).filter(function(t){return t.type===e.lineType}).reduce(function(e,t){var o=t.nodes.first(),i=r(o.text,n);return e.removeTextByKey(o.key,0,i)},t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(5);t.default=o},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,o=r.document,i=r.selection;return o.getBlocksAtRange(i).filter(function(t){return t.type===e.lineType}).reduce(function(e,t){var r=t.nodes.first();return e.insertTextByKey(r.key,0,n)},t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return(0,i.isInCodeBlock)(e,t.value)?(0,l.default)(e,t,n):(0,s.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(13),a=n(178),s=r(a),u=n(180),l=r(u);t.default=o},function(e,t,n){"use strict";e.exports=function(e,t){if(Array.isArray(e))return e[e.length-1]===t;e=String(e),t=String(t);for(var n=t.length,r=e.length-n;n--;)if(t.charAt(n)!==e.charAt(r+n))return!1;return!0}},function(e,t,n){"use strict";function r(e,t,n,r){var s=n.value,u=(0,i.getEventTransfer)(t),l=(0,a.getCurrentCode)(e,s),c=s.endBlock;if(l&&l.hasDescendant(c.key)){var f=void 0;f="fragment"===u.type?u.fragment.getTexts().map(function(e){return e.text}).join("\n"):u.text;var p=(0,a.deserializeCode)(e,f).nodes,d=o.Document.create({nodes:p});return n.insertFragment(d)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(52),a=n(13);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){var o=n.value;if((0,a.getCurrentCode)(e,o)){var i=[e,t,n,r];return e.selectAll&&b(t)?y.default.apply(void 0,i):T(t)?c.default.apply(void 0,i):_(t)?u.default.apply(void 0,i):e.exitBlockType&&E(t)?h.default.apply(void 0,i):k(t)?p.default.apply(void 0,i):w(t)?g.default.apply(void 0,i):void 0}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(66);n(0);var a=n(13),s=n(175),u=r(s),l=n(182),c=r(l),f=n(183),p=r(f),d=n(184),h=r(d),m=n(185),g=r(m),v=n(186),y=r(v),b=(0,i.isKeyHotkey)("mod+a"),T=(0,i.isKeyHotkey)("shift+tab"),_=(0,i.isKeyHotkey)("tab"),E=(0,i.isKeyHotkey)("mod+enter"),k=(0,i.isKeyHotkey)("enter"),w=(0,i.isKeyHotkey)("backspace");t.default=o},function(e,t,n){"use strict";function r(e){var t=new i.default(e);return{schema:(0,u.schema)(t),changes:{unwrapCodeBlockByKey:s.unwrapCodeBlockByKey.bind(null,t),wrapCodeBlockByKey:s.wrapCodeBlockByKey.bind(null,t),wrapCodeBlock:s.wrapCodeBlock.bind(null,t),unwrapCodeBlock:s.unwrapCodeBlock.bind(null,t),toggleCodeBlock:s.toggleCodeBlock.bind(null,t)},utils:{isInCodeBlock:a.isInCodeBlock.bind(null,t),deserializeCode:a.deserializeCode.bind(null,t)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(174),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=n(13),s=n(107),u=n(481);t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schema=void 0;var r=n(482),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.schema=o.default},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t,n={blocks:(t={},r(t,e.containerType,{nodes:[{types:[e.lineType]}],normalize:function(t,n,r){switch(n){case l.CHILD_INVALID:case l.CHILD_TYPE_INVALID:return a(e,t,r);default:return}}}),r(t,e.lineType,{nodes:[{objects:["text"],min:1}],parent:{types:[e.containerType]},normalize:function(t,n,r){switch(n){case l.PARENT_INVALID:case l.PARENT_TYPE_INVALID:return s(e,t,r);default:return}}}),t)};return e.allowMarks||(n.blocks[e.lineType].marks=[]),n}function i(e,t){var n=e.takeUntil(t),r=e.skip(n.size);if(r.isEmpty())return(0,c.List)();var o=r.takeWhile(t),a=r.skip(o.size);return(0,c.List)([o]).concat(i(a,t))}function a(e,t,n){var r=function(t){return t.type!==e.lineType};return i(n.node.nodes,r).filter(function(e){return!e.isEmpty()}).forEach(function(n){var r=n.map(function(e){return e.text}).join(""),o=(0,f.deserializeCode)(e,r).nodes,i=n.first(),a=t.value.document.getParent(i.key),s=a.nodes.indexOf(i);o.forEach(function(e,n){t.insertNodeByKey(a.key,s+n,e,{normalize:!1})}),n.forEach(function(e){return t.removeNodeByKey(e.key,{normalize:!1})})}),t}function s(e,t,n){var r=n.parent,o=function(t){return t.type===e.lineType};i(r.nodes,o).forEach(function(n){var o=u.Block.create({type:e.containerType,nodes:[]}),i=r.nodes.indexOf(n.first());t.insertNodeByKey(r.key,i,o,{normalize:!1}),n.forEach(function(e,n){return t.moveNodeByKey(e.key,o.key,n,{normalize:!1})})})}Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),l=n(63),c=n(5),f=n(13);t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=new s.default(e||{}),n=(0,l.default)(t);return i({},n,{onKeyDown:c.onKeyDown.bind(null,t)})}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t1?o-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:2,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,i=arguments[4];if(!t.value.selection.startKey)return t;var a=(0,o.createTable)(e,n,r,i);return t.insertBlock(a)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=(0,o.Range)(0,n).map(function(n){return(0,s.default)(e,t,r?r.bind(null,n):void 0)}).toList();return i.Block.create({type:e.typeTable,nodes:a})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=n(0),a=n(189),s=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.startKey;return i.default.create(e,t.document,n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(67),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){if(!t.selection.startKey)return!1;var n=t.startKey,r=t.endKey,o=i.default.create(e,t.document,n),a=i.default.create(e,t.document,r);return!(!o.isInTable()||!a.isInTable())&&o.table===a.table}Object.defineProperty(t,"__esModule",{value:!0});var o=n(67),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){if(!t.selection.startKey)return!1;var n=t.startKey,r=t.endKey,o=i.default.create(e,t.document,n),a=i.default.create(e,t.document,r);return!o.isInTable()&&!a.isInTable()}Object.defineProperty(t,"__esModule",{value:!0});var o=n(67),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t,n){return t.nodes.forEach(function(e,t){return e.nodes.forEach(function(e,r){return n(e,t,r)})})}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n){return t.nodes.get(n).nodes}Object.defineProperty(t,"__esModule",{value:!0}),n(0),n(5),t.default=r},function(e,t,n){"use strict";function r(e,t,n){return t.nodes.map(function(e){return e.nodes.get(n)})}Object.defineProperty(t,"__esModule",{value:!0}),n(0),n(5),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var i=t.value,a=i.startKey,s=o.TablePosition.create(e,i.document,a),u=s.table,l=u.nodes.get(0).nodes.size,c=r?r(l):(0,o.createRow)(e,l);return"undefined"===typeof n&&(n=s.getRowIndex()+1),t.insertNodeByKey(u.key,n,c).collapseToEndOf(c.nodes.get(s.getColumnIndex()))}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,i=r.startKey,s=o.TablePosition.create(e,r.document,i),u=s.table;"undefined"===typeof n&&(n=s.getRowIndex());var l=u.nodes.get(n);return s.getHeight()>1?t.removeNodeByKey(l.key):l.nodes.forEach(function(n){n.nodes.forEach(function(r){return(0,a.default)(e,t,n)})}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7),i=n(108),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value,s=a.startKey,u=o.TablePosition.create(e,a.document,s),l=u.table,c="undefined"===typeof n?u.getColumnIndex()+1:n;return l.nodes.forEach(function(n,i){var a=r?r(c,i):(0,o.createCell)(e);t.insertNodeByKey(n.key,c,a,{normalize:!1})}),(0,i.moveSelection)(e,t,u.getColumnIndex()+1,u.getRowIndex())}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7),i=n(25);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,i=r.startKey,s=o.TablePosition.create(e,r.document,i),u=s.table;"undefined"===typeof n&&(n=s.getColumnIndex());var l=u.nodes;return s.getWidth()>1?l.forEach(function(e){var r=e.nodes.get(n);t.removeNodeByKey(r.key,{normalize:!1})}):l.forEach(function(n){n.nodes.forEach(function(n){n.nodes.forEach(function(r){return(0,a.default)(e,t,n)})})}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7),i=n(108),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.value,r=n.startKey,a=i.TablePosition.create(e,n.document,r),s=a.table,u=t.value.document,l=null,c=!1,f=t.value.document.getNextBlock(s.key);if(f)l=f;else{var p=t.value.document.getPreviousBlock(s.key);if(p)l=p,c=!0;else if(e.exitBlockType){l=o.Block.create({type:e.exitBlockType,nodes:[o.Text.create("")]});var d=u.getParent(s.key),h=d.nodes.indexOf(s)+1;t.insertNodeByKey(d.key,h,l)}}return t.removeNodeByKey(s.key),l?(c?t.collapseToEndOf(l).focus():t.collapseToStartOf(l).focus(),t):t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(7);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var i=t.value,a=i.startKey,s=o.TablePosition.create(e,i.document,a);if(!s.isInCell())throw new Error("moveSelection can only be applied from within a cell");var u=s.table,l=u.nodes.get(r),c=l.nodes.get(n);return t.collapseToStartOf(c)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var u=t.value,l=u.startKey,c=a.TablePosition.create(e,u.document,l);if(!c.isInCell())throw new Error("moveSelectionBy can only be applied in a cell");var f=c.getRowIndex(),p=c.getColumnIndex(),d=c.getWidth(),h=c.getHeight(),m=o(n+p,r+f,d,h),g=i(m,2),v=g[0],y=g[1];return-1===v?t:(0,s.moveSelection)(e,t,v,y)}function o(e,t,n,r){return e<0&&(e=n-1,t-=1),t<0?[-1,-1]:(e>=n&&(e=0,t+=1),t>=r?[-1,-1]:[e,t])}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();n(0);var a=n(7),s=n(25);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.validateNode=t.schema=void 0;var o=n(501),i=r(o),a=n(502),s=r(a);t.schema=i.default,t.validateNode=s.default},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t;return{blocks:(t={},r(t,e.typeTable,{nodes:[{types:[e.typeRow]}],normalize:function(t,n,r){switch(n){case f.CHILD_TYPE_INVALID:return i(e,t,r);default:return}}}),r(t,e.typeRow,{nodes:[{types:[e.typeCell]}],parent:{types:[e.typeTable]},normalize:function(t,n,r){switch(n){case f.CHILD_TYPE_INVALID:return a(e,t,r);case f.PARENT_TYPE_INVALID:return s(e,t,r);default:return}}}),r(t,e.typeCell,{nodes:[{objects:["block"]}],parent:{types:[e.typeRow]},normalize:function(t,n,r){switch(n){case f.CHILD_OBJECT_INVALID:return u(e,t,r);case f.PARENT_TYPE_INVALID:return l(e,t,r);default:return}}}),t)}}function i(e,t,n){var r=n.node.nodes.filter(function(t){return t.type!==e.typeRow});r.size===n.node.nodes.size&&(r.forEach(function(e){return t.removeNodeByKey(e.key,{normalize:!1})}),t.insertNodeByKey(n.node.key,0,(0,p.createRow)(e,1),{normalize:!1}))}function a(e,t,n){var r=(0,p.createCell)(e,[]),o=n.node.nodes.findIndex(function(e){return e.key===n.child.key});t.insertNodeByKey(n.node.key,o,r,{normalize:!1}),t.moveNodeByKey(n.child.key,r.key,0,{normalize:!1})}function s(e,t,n){return t.wrapBlockByKey(n.node.key,e.typeTable)}function u(e,t,n){var r=c.Block.create({type:e.typeContent});t.insertNodeByKey(n.node.key,0,r,{normalize:!1}),n.node.nodes.filter(function(e){return"block"!==e.object}).forEach(function(e,n){t.moveNodeByKey(e.key,r.key,n,{normalize:!1})})}function l(e,t,n){return t.wrapBlockByKey(n.node.key,e.typeRow)}Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),f=n(63),p=n(7);t.default=o},function(e,t,n){"use strict";function r(e){var t=function(t){return t.type===e.typeRow},n=function(t){return t.type===e.typeCell},r=function(e){return e.nodes.count(n)};return function(n){if(n.type===e.typeTable){var i=n.nodes.filter(t),a=Math.max(1,i.map(r).max()),s=i.filter(function(e){return r(e)0&&void 0!==arguments[0]?arguments[0]:{};e=new u.default(e);var t=(0,f.default)(e);return a({},t,{onKeyDown:i.bind(null,e)})}function i(e,t,n,r){var o=[t,n,r,e];switch(t.key){case p:return l.onEnter.apply(void 0,o);case d:return l.onTab.apply(void 0,o);case h:return l.onBackspace.apply(void 0,o);default:return}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t1?(0,o.decreaseItemDepth)(r,t):(0,o.unwrapList)(r,t):(0,o.splitListItem)(r,t)}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(68),i=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=o(t.value);return n=n||e.types[0],t.wrapBlock({type:n,data:i.Data.create(r)},{normalize:!1}),a.forEach(function(n){(0,s.isList)(e,n)?n.nodes.forEach(function(e){var n=e.key;return t.unwrapNodeByKey(n,{normalize:!1})}):t.wrapBlockByKey(n.key,e.typeItem,{normalize:!1})}),t.normalize()}function o(e){var t=e.selection,n=e.document,r=n.getClosestBlock(t.startKey),o=n.getClosestBlock(t.endKey);if(r===o)return(0,a.List)([r]);var i=n.getCommonAncestor(r.key,o.key),s=i.getPath(r.key),u=i.getPath(o.key);return i.nodes.slice(s[0],u[0]+1)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5),s=n(20);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var r=(0,a.default)(e,t,n);return r?(0,u.default)(e,t,r):null}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(44),a=r(i),s=n(196),u=r(s);t.default=o},function(e,t,n){"use strict";function r(e,t,n){var o=t.document,a=t.startBlock;n=n||a;var s=(0,i.default)(e,t,n);return s?1+r(e,t,o.getParent(s.key)):0}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(44),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.document,o=t.startBlock;n=n||o;var a=(0,i.default)(e,t,n);if(!a)return null;var s=r.getPreviousSibling(a.key);return s&&s.type===e.typeItem?s:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(44),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){return!(0,i.default)(e,t).isEmpty()}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(197),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=(0,o.getItemsAtRange)(e,t.value);if(n.isEmpty())return t;n.forEach(function(e){return t.unwrapNodeByKey(e.key,{normalize:!1})});var r=n.first(),i=t.value.document.getParent(r.key),a=i.nodes.findIndex(function(e){return e.key===r.key});return n.forEach(function(e){e.nodes.forEach(function(e){t.moveNodeByKey(e.key,i.key,a,{normalize:!1}),a+=1})}),n.forEach(function(e){return t.removeNodeByKey(e.key,{normalize:!1})}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.value,r=(0,o.getCurrentItem)(e,n);if(!r)return t;var i=n.startOffset;return t.splitDescendantsByKey(r.key,n.startKey,i)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=(0,a.getPreviousItem)(e,t.value),r=(0,a.getCurrentItem)(e,t.value);return n&&r?o(e,t,r,n.key):t}function o(e,t,n,r){var o=t.value.document.getDescendant(r),s=o.nodes.size,u=o.nodes.last(),l=(0,a.isList)(e,u)?u:null;if(l)return t.moveNodeByKey(n.key,l.key,l.nodes.size);var c=(0,a.getListForItem)(e,t.value,o);if(!c)throw new Error("Destination is not in a list");var f=i.Block.create({object:"block",type:c.type,data:c.data});return t.insertNodeByKey(r,s,f,{normalize:!1}),t.moveNodeByKey(n.key,f.key,0)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.value,r=n.document;if(1==(0,i.getItemDepth)(e,n))return t;var a=(0,i.getCurrentItem)(e,n);if(!a)return t;var s=r.getParent(a.key),u=r.getParent(s.key),l=r.getParent(u.key),c=s.nodes.skipUntil(function(e){return e===a}).rest(),f=s.nodes.size===c.size+1;if(c.isEmpty())t.moveNodeByKey(a.key,l.key,l.nodes.indexOf(u)+1);else{var p=o.Block.create({object:"block",type:s.type,data:s.data});t.insertNodeByKey(a.key,a.nodes.size,p,{normalize:!1}),t.moveNodeByKey(a.key,l.key,l.nodes.indexOf(u)+1,{normalize:!1}),c.forEach(function(e,n){return t.moveNodeByKey(e.key,p.key,p.nodes.size+n,{normalize:!1})})}return f&&t.removeNodeByKey(s.key),t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value;if(a.isCollapsed&&(0,i.getCurrentItem)(r,a))return e.shiftKey?(e.preventDefault(),(0,o.decreaseItemDepth)(r,t)):(e.preventDefault(),(0,o.increaseItemDepth)(r,t))}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(68),i=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value,s=a.startOffset,u=a.selection;if(!u.isExpanded&&!(s>0)){var l=(0,i.getCurrentItem)(r,a);if(l&&u.isAtStartOf(l))return e.preventDefault(),(0,o.unwrapList)(r,t)}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(68),i=n(20);t.default=r},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{};return e=new s.default(e),{schema:(0,u.schema)(e),validateNode:(0,u.validateNode)(e),utils:{getCurrentItem:c.getCurrentItem.bind(null,e),getCurrentList:c.getCurrentList.bind(null,e),getItemDepth:c.getItemDepth.bind(null,e),getItemsAtRange:c.getItemsAtRange.bind(null,e),getPreviousItem:c.getPreviousItem.bind(null,e),isList:c.isList.bind(null,e),isSelectionInList:c.isSelectionInList.bind(null,e)},changes:{decreaseItemDepth:i(e,l.decreaseItemDepth),increaseItemDepth:i(e,l.increaseItemDepth),splitListItem:i(e,l.splitListItem),unwrapList:i(e,l.unwrapList),wrapInList:l.wrapInList.bind(null,e)}}}function i(e,t){return function(n){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};e=new s.default(e);var t=(0,c.default)(e);return i({},t,{onKeyDown:u.onKeyDown.bind(null,e)})}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t1?o-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},c=u.insertImage,p=u.extensions;if(u.applyTransform&&(d.default.deprecate("0.6.0","The `applyTransform` argument to `slate-drop-or-paste-images` has been renamed to `insertImage` instead."),c=u.applyTransform),!c)throw new Error("You must supply an `insertImage` function.");return{onDrop:n,onPaste:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(535),s=r(a),u=n(536),l=r(u),c=n(202),f=r(c),p=n(90),d=r(p),h=n(538),m=r(h),g=n(69),v=n(52);t.default=o},function(e,t,n){(function(t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function r(e){return"function"===typeof e}function o(e){U=e}function i(e){z=e}function a(){return"undefined"!==typeof H?function(){H(u)}:s()}function s(){var e=setTimeout;return function(){return e(u,1)}}function u(){for(var e=0;ee.children.length)throw new Error("Invalid index.");t.parent=e,e.children.splice(n,0,t)}},{key:"parse",value:function(e){var t=new o.a({name:e.name,type:e.type,isExpanded:e.isExpanded});this.root=t;var n=!0,r=!1,i=void 0;try{for(var a,s=e.children[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;this.addChildToNode(t,this.parseNode(u))}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}}},{key:"parseFromList",value:function(e,t){var n=new o.a({name:e.name,type:e.type,isExpanded:e.isExpanded});this.root=n;var r=new Map;r.set(n.name,n);var i=[],a=!0,s=!1,u=void 0;try{for(var l,c=t[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var f=l.value,p=new o.a({name:f.name,type:f.type,isExpanded:!1});p.parent_path=f.parent_path,i.push(p),"dir"===f.type&&r.set(function(e,t){return"/"===e?e+t:e+"/"+t}(f.parent_path,f.name),p)}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}var d=!0,h=!1,m=void 0;try{for(var g,v=i[Symbol.iterator]();!(d=(g=v.next()).done);d=!0){var y=g.value,b=r.get(y.parent_path);void 0===b?console.log("warning: node "+y.parent_path+" not exist"):this.addChildToNode(b,y)}}catch(e){h=!0,m=e}finally{try{!d&&v.return&&v.return()}finally{if(h)throw m}}}},{key:"parseNode",value:function(e){var t=new o.a({name:e.name,type:e.type,isExpanded:e.isExpanded});if(e.children instanceof Array){var n=!0,r=!1,i=void 0;try{for(var a,s=e.children[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;this.addChildToNode(t,this.parseNode(u))}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}}return t}}]),e}();t.a=a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return i});var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0]}},{key:"fromJSON",value:function(t){var n=t.name,r=t.type,o=t.isExpanded,i=void 0===o||o,a=t.children;return new e({name:n,type:r,isExpanded:i,children:(void 0===a?[]:a).map(e.fromJSON)})}}]),o(e,[{key:"path",value:function(){if(this.parent){var e=this.parent.path();return"/"===e?e+this.name:e+"/"+this.name}return this.name}},{key:"copy",value:function(){var t=new e({name:this.name,type:this.type,isExpanded:this.isExpanded});return t.children=this.children.map(function(e){var n=e.copy();return n.parent=t,n}),t}},{key:"isRoot",value:function(){return void 0===this.parent}},{key:"hasChildren",value:function(){return this.children.length>0}},{key:"isImage",value:function(){var e=this.name.lastIndexOf(".");if(-1==e)return!1;var t=this.name.substring(e).toLowerCase();return".png"==t||".jpg"==t}},{key:"toJSON",value:function(){var e=[];return this.hasChildren()&&(e=this.children.map(function(e){return e.toJSON()})),{name:this.name,type:this.type,isExpanded:this.isExpanded,children:e}}}]),e}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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 a=n(1),s=n.n(a),u=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[n]}return e[n]}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(t,"top"),o=d(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function m(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function g(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],u(10)?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function v(){var e=document.body,t=document.documentElement,n=u(10)&&getComputedStyle(t);return{height:g("Height",e,t,n),width:g("Width",e,t,n)}}function y(e){return Te({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};try{if(u(10)){t=e.getBoundingClientRect();var n=d(e,"top"),r=d(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?v():{},s=a.width||e.clientWidth||o.right-o.left,l=a.height||e.clientHeight||o.bottom-o.top,c=e.offsetWidth-s,f=e.offsetHeight-l;if(c||f){var p=i(e);c-=m(p,"x"),f-=m(p,"y"),o.width-=c,o.height-=f}return y(o)}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=u(10),o="HTML"===t.nodeName,a=b(e),l=b(t),c=s(e),f=i(t),p=parseFloat(f.borderTopWidth,10),d=parseFloat(f.borderLeftWidth,10);n&&"HTML"===t.nodeName&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var m=y({top:a.top-l.top-p,left:a.left-l.left-d,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&o){var g=parseFloat(f.marginTop,10),v=parseFloat(f.marginLeft,10);m.top-=p-g,m.bottom-=p-g,m.left-=d-v,m.right-=d-v,m.marginTop=g,m.marginLeft=v}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(m=h(m,t)),m}function _(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=T(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:d(n),s=t?0:d(n,"left");return y({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}function E(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===i(e,"position")||E(a(e)))}function k(e){if(!e||!e.parentElement||u())return document.documentElement;for(var t=e.parentElement;t&&"none"===i(t,"transform");)t=t.parentElement;return t||document.documentElement}function w(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},u=o?k(e):p(e,t);if("viewport"===r)i=_(u,o);else{var l=void 0;"scrollParent"===r?(l=s(a(t)),"BODY"===l.nodeName&&(l=e.ownerDocument.documentElement)):l="window"===r?e.ownerDocument.documentElement:r;var c=T(l,u,o);if("HTML"!==l.nodeName||E(u))i=c;else{var f=v(),d=f.height,h=f.width;i.top+=c.top-c.marginTop,i.bottom=d+c.top,i.left+=c.left-c.marginLeft,i.right=h+c.left}}return i.left+=n,i.top+=n,i.right-=n,i.bottom-=n,i}function x(e){return e.width*e.height}function C(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=w(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map(function(e){return Te({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),l=u.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=l.length>0?l[0].key:u[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function A(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return T(n,r?k(t):p(t,n),r)}function O(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function S(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function N(e,t,n){n=n.split("-")[0];var r=O(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",u=i?"height":"width",l=i?"width":"height";return o[a]=t[a]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[l]:t[S(s)],o}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function I(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=D(e,function(e){return e[t]===n});return e.indexOf(r)}function M(e,t,n){return(void 0===n?e:e.slice(0,I(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=y(t.offsets.popper),t.offsets.reference=y(t.offsets.reference),t=n(t,e))}),t}function L(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=C(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=M(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function P(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;rs[h]&&(e.offsets.popper[p]+=u[p]+m-s[h]),e.offsets.popper=y(e.offsets.popper);var g=u[p]+u[c]/2-m/2,v=i(e.instance.popper),b=parseFloat(v["margin"+f],10),T=parseFloat(v["border"+f+"Width"],10),_=g-e.offsets.popper[p]-b-T;return _=Math.max(Math.min(s[c]-m,_),0),e.arrowElement=r,e.offsets.arrow=(n={},be(n,p,Math.round(_)),be(n,d,""),n),e}function Q(e){return"end"===e?"start":"start"===e?"end":e}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ee.indexOf(e),r=Ee.slice(n+1).concat(Ee.slice(0,n));return t?r.reverse():r}function ee(e,t){if(P(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=S(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ke.FLIP:a=[r,o];break;case ke.CLOCKWISE:a=Z(r);break;case ke.COUNTERCLOCKWISE:a=Z(r,!0);break;default:a=t.behavior}return a.forEach(function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],o=S(r);var l=e.offsets.popper,c=e.offsets.reference,f=Math.floor,p="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)f(c.top)||"bottom"===r&&f(l.top)f(n.right),m=f(l.top)f(n.bottom),v="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&d||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&g);(p||v||b)&&(e.flipped=!0,(p||v)&&(r=a[u+1]),b&&(i=Q(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=Te({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=M(e.instance.modifiers,e,"flip"))}),e}function te(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]i(r[s])&&(e.offsets.popper[u]=i(r[s])),e}function ne(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return y(s)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}function re(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(D(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return l=l.map(function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return ne(e,o,t,n)})}),l.forEach(function(e,t){e.forEach(function(n,r){q(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}function oe(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],u=void 0;return u=q(+n)?[+n,0]:re(n,i,a,s),"left"===s?(i.top+=u[0],i.left-=u[1]):"right"===s?(i.top+=u[0],i.left+=u[1]):"top"===s?(i.left+=u[0],i.top-=u[1]):"bottom"===s&&(i.left+=u[0],i.top+=u[1]),e.popper=i,e}function ie(e,t){var n=t.boundariesElement||l(e.instance.popper);e.instance.reference===n&&(n=l(n));var r=R("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=w(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=u;var c=t.priority,f=e.offsets.popper,p={primary:function(e){var n=f[e];return f[e]u[e]&&!t.escapeWithReference&&(r=Math.min(f[n],u[e]-("right"===e?f.width:f.height))),be({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";f=Te({},f,p[t](e))}),e.offsets.popper=f,e}function ae(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:be({},u,i[u]),end:be({},u,i[u]+i[l]-a[l])};e.offsets.popper=Te({},a,c[r])}return e}function se(e){if(!J(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=D(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right=0){fe=1;break}var de=le&&window.Promise,he=de?n:r,me=le&&!(!window.MSInputMethodContext||!document.documentMode),ge=le&&/MSIE 10/.test(navigator.userAgent),ve=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ye=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};ve(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=he(this.update.bind(this)),this.options=Te({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Te({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=Te({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Te({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return ye(e,[{key:"update",value:function(){return L.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return U.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();Ce.Utils=("undefined"!==typeof window?window:e).PopperUtils,Ce.placements=_e,Ce.Defaults=xe,t.default=Ce}.call(t,n(3))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t":return"block-quote";case"#":return"header_one";case"##":return"header_two";case"###":return"header_three";case"####":return"header_four";case"#####":return"header_five";case"######":return"header_six";case" ":return"code_block";default:return null}},onEnter:function(e,n){var r=n.value;if(!r.isExpanded){var o=r.startBlock;if(r.endOffset===o.text.length){if("```"===o.text)return e.preventDefault(),t.changes.wrapCodeBlockByKey(n,o.key),n.collapseToStartOf(n.value.document.getDescendant(o.key)),n.deleteForward(3),!0;if("***"===o.text||"---"===o.text)return e.preventDefault(),n.removeNodeByKey(o.key).insertBlock({type:"hr",isVoid:!0}).collapseToStartOfNextBlock(),!0;if("header_one"===o.type||"header_two"===o.type||"header_three"===o.type||"header_four"===o.type||"header_five"===o.type||"header_six"===o.type||"block-quote"===o.type)return e.preventDefault(),n.splitBlock().setBlocks("paragraph"),!0}}},handleInlineMarks:function(e,t){var n=t.value,r=n.texts,o=r.get(0),u=o.text,l=void 0,c=n.selection.anchorOffset-1,f=u.charAt(c),p=u.substr(0,c+1);if("*"===f||"_"===f){if(l=p.match(/\s?(\*\*\*|___)((?!\1).)+?\1$/m))return s(o,l,t);if(l=p.match(/\s?(\*\*|__)((?!\1).)+?\1$/m))return a(o,l,t);if(l=p.match(/\s?(\*|_)((?!\1).)+?\1$/m))return i(o,l,t)}},onSpace:function(e,n){if(!this.editor.isInCode()){var i=n.value;if(!i.isExpanded){var a=i.startBlock,s=i.startOffset,u=a.text.slice(0,s);u=" "===u?" ":u.replace(/\s*/g,"");var l=this.getType(u);if(!l)return this.handleInlineMarks(e,n);if("list_item"===l&&"list_item"===a.type)return this.handleInlineMarks(e,n);if(e.preventDefault(),"list_item"===l)"1."===u?o.changes.wrapInList(n,"ordered_list"):o.changes.wrapInList(n,"unordered_list");else if("block-quote"===l)r.changes.wrapInBlockquote(n);else{if("code_block"===l)return n.extendToStartOf(a).delete(),t.changes.wrapCodeBlock(n),!0;n.setBlocks(l)}return n.extendToStartOf(a).delete(),!0}}},onBackspace:function(e,t){var n=t.value;if(!n.isExpanded&&0===n.startOffset){var r=n.startBlock;if("paragraph"!==r.type&&"code_line"!==r.type){e.preventDefault(),t.setBlocks("paragraph");var o=n.document;if("list-item"===r.type){var i=o.getParent(r.key);t.unwrapBlock(i.type)}return!0}}},onKeyDown:function(e,t,n){switch(e.key){case"Enter":return this.onEnter(e,t);case" ":return this.onSpace(e,t);case"Backspace":return this.onBackspace(e,t)}return d()("mod+s",e)?(e.preventDefault(),this.editor.onSave(e),!0):d()("mod+b",e)?(e.preventDefault(),t.toggleMark("BOLD"),!0):d()("mod+i",e)?(e.preventDefault(),t.toggleMark("ITALIC"),!0):void 0},onDrop:function(e,t,n){var r=Object(l.getEventTransfer)(e);Object(l.getEventRange)(e,t.value);switch(r.type){case"text":var o=r.text;if(!f()(o))return;if(o.endsWith("png?raw=1")||o.endsWith("png?raw=1")||o.endsWith("jpg?raw=1")||o.endsWith("JPG?raw=1")){var i=h.Inline.create({type:"image",isVoid:!0,data:{src:o}});return t.insertInline(i),!0}if(n.props.editorUtilities.isInternalFileLink(o)){var a=o.lastIndexOf("%2F");if(-1===a)return;var s=o.substring(a+3),u=decodeURIComponent(s),c=h.Text.create({text:u}),i=h.Inline.create({type:"link",data:{href:o},nodes:[c]});return t.insertInline(i),!0}if(n.props.editorUtilities.isInternalDirLink(o)){var p=o.lastIndexOf("%2F");if(-1===p)return;var s=o.substring(p+3),d=decodeURIComponent(s),c=h.Text.create({text:d}),i=h.Inline.create({type:"link",data:{href:o},nodes:[c]});return t.insertInline(i),!0}}}}}var l=n(52),c=n(202),f=n.n(c),p=n(66),d=n.n(p),h=n(0);t.a=u},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="second",t="minute",n="hour",r="day",o="week",i="month",a="year",s=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,u=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},c=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},f={padStart:c,padZoneStr:function(e){var t=Math.abs(e),n=Math.floor(t/60),r=t%60;return(e<=0?"+":"-")+c(n,2,"0")+":"+c(r,2,"0")},monthDiff:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months"),o=t-r<0,i=e.clone().add(n+(o?-1:1),"months");return Number(-(n+(t-r)/(o?r-i:i-r)))},absFloor:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},prettyUnit:function(e){return e&&String(e).toLowerCase().replace(/s$/,"")},isUndefined:function(e){return void 0===e}},p="en",d={};d[p]=l;var h=function(e){return e instanceof b},m=function(e,t,n){var r;if(!e)return null;if("string"==typeof e)d[e]&&(r=e),t&&(d[e]=t,r=e);else{var o=e.name;d[o]=e,r=o}return n||(p=r),r},g=function(e,t){if(h(e))return e.clone();var n=t||{};return n.date=e,new b(n)},v=function(e,t){return g(e,{locale:t.$L})},y=f;y.parseLocale=m,y.isDayjs=h,y.wrapper=v;var b=function(){function l(e){this.parse(e)}var c=l.prototype;return c.parse=function(e){var t,n;this.$d=null===(t=e.date)?new Date(NaN):y.isUndefined(t)?new Date:t instanceof Date?t:"string"==typeof t&&(n=t.match(s))?new Date(n[1],n[2]-1,n[3]||1,n[5]||0,n[6]||0,n[7]||0,n[8]||0):new Date(t),this.init(e)},c.init=function(e){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||m(e.locale,null,!0)||p},c.$utils=function(){return y},c.isValid=function(){return!("Invalid Date"===this.$d.toString())},c.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0},c.isSame=function(e){return this.valueOf()===e.valueOf()},c.isBefore=function(e){return this.valueOf()e.valueOf()},c.year=function(){return this.$y},c.month=function(){return this.$M},c.day=function(){return this.$W},c.date=function(){return this.$D},c.hour=function(){return this.$H},c.minute=function(){return this.$m},c.second=function(){return this.$s},c.millisecond=function(){return this.$ms},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(s,u){var l=this,c=!!y.isUndefined(u)||u,f=function(e,t,n){void 0===n&&(n=l.$y);var o=v(new Date(n,t,e),l);return c?o:o.endOf(r)},p=function(e,t){return v(l.toDate()[e].apply(l.toDate(),c?[0,0,0,0].slice(t):[23,59,59,999].slice(t)),l)};switch(y.prettyUnit(s)){case a:return c?f(1,0):f(31,11,this.$y);case i:return c?f(1,this.$M):f(0,this.$M+1,this.$y);case o:return c?f(this.$D-this.$W,this.$M):f(this.$D+(6-this.$W),this.$M,this.$y);case r:case"date":return p("setHours",0);case n:return p("setMinutes",1);case t:return p("setSeconds",2);case e:return p("setMilliseconds",3);default:return this.clone()}},c.endOf=function(e){return this.startOf(e,!1)},c.$set=function(r,o){switch(y.prettyUnit(r)){case"date":this.$d.setDate(o);break;case i:this.$d.setMonth(o);break;case a:this.$d.setFullYear(o);break;case n:this.$d.setHours(o);break;case t:this.$d.setMinutes(o);break;case e:this.$d.setSeconds(o);break;case"millisecond":this.$d.setMilliseconds(o)}return this.init(),this},c.set=function(e,t){return this.clone().$set(e,t)},c.add=function(s,u){var l=this;s=Number(s);var c,f=!u||1!==u.length&&"ms"!==u?y.prettyUnit(u):u,p=function(e,t){var n=l.set("date",1).set(e,t+s);return n.set("date",Math.min(l.$D,n.daysInMonth()))};if(["M",i].indexOf(f)>-1)return p(i,this.$M);if(["y",a].indexOf(f)>-1)return p(a,this.$y);switch(f){case"m":case t:c=6e4;break;case"h":case n:c=36e5;break;case"d":case r:c=864e5;break;case"w":case o:c=6048e5;break;case"s":case e:c=1e3;break;default:c=1}var d=this.valueOf()+s*c;return v(d,this)},c.subtract=function(e,t){return this.add(-1*e,t)},c.format=function(e,t){var n=this,r=e||"YYYY-MM-DDTHH:mm:ssZ",o=y.padZoneStr(this.$d.getTimezoneOffset()),i=t||this.$locale(),a=i.weekdays,s=i.months;return r.replace(u,function(e){if(e.indexOf("[")>-1)return e.replace(/\[|\]/g,"");switch(e){case"YY":return String(n.$y).slice(-2);case"YYYY":return String(n.$y);case"M":return String(n.$M+1);case"MM":return y.padStart(n.$M+1,2,"0");case"MMM":return s[n.$M].slice(0,3);case"MMMM":return s[n.$M];case"D":return String(n.$D);case"DD":return y.padStart(n.$D,2,"0");case"d":return String(n.$W);case"dddd":return a[n.$W];case"H":return String(n.$H);case"HH":return y.padStart(n.$H,2,"0");case"h":case"hh":return 0===n.$H?12:y.padStart(n.$H<13?n.$H:n.$H-12,"hh"===e?2:1,"0");case"a":return n.$H<12?"am":"pm";case"A":return n.$H<12?"AM":"PM";case"m":return String(n.$m);case"mm":return y.padStart(n.$m,2,"0");case"s":return String(n.$s);case"ss":return y.padStart(n.$s,2,"0");case"SSS":return y.padStart(n.$ms,3,"0");case"Z":return o;default:return o.replace(":","")}})},c.diff=function(s,u,l){var c=y.prettyUnit(u),f=h(s)?s:g(s.valueOf()),p=this-f,d=y.monthDiff(this,f);switch(c){case a:d/=12;break;case i:break;case"quarter":d/=3;break;case o:d=p/6048e5;break;case r:d=p/864e5;break;case n:d=p/36e5;break;case t:d=p/6e4;break;case e:d=p/1e3;break;default:d=p}return l?d:y.absFloor(d)},c.daysInMonth=function(){return this.endOf(i).$D},c.$locale=function(){return d[this.$L]},c.locale=function(e,t){return this.$L=m(e,t,!0),this},c.clone=function(){return v(this.toDate(),this)},c.toDate=function(){return new Date(this.$d)},c.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},c.toJSON=function(){return this.toISOString()},c.toISOString=function(){return this.toDate().toISOString()},c.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},c.toString=function(){return this.$d.toUTCString()},l}();return g.extend=function(e,t){return e(t,b,g),g},g.locale=m,g.en=d[p],g})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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 a=n(1),s=n.n(a),u=n(82),l=n.n(u),c=n(112),f=n(70),p=n(206),d=n(83),h=n.n(d),m=n(66),g=n.n(m),v=n(22),y=n(113),b=n(248),T=n.n(b),_=function(){function e(e,t){for(var n=0;n0&&s.a.createElement(c.b,{users:this.props.collabUsers,id:"usersButton"}),s.a.createElement(h.a,{stack:{limit:3}}))}},{key:"componentDidUpdate",value:function(){T.a.highlightAll()}},{key:"render",value:function(){return s.a.createElement("div",{className:"seafile-editor"},s.a.createElement("div",{className:"seafile-editor-topbar"},s.a.createElement(y.a,{toggleStar:this.props.toggleStar,fileInfo:this.props.fileInfo}),this.renderToolbar()),s.a.createElement("div",{className:"seafile-editor-main d-flex"},s.a.createElement("div",{className:"plain-editor-left-panel",onKeyDown:this.onHotKey,onMouseLeave:this.onLeaveLeftPanel,onMouseEnter:this.onEnterLeftPanel,onScroll:this.state.leftIsBindScroll?this.onLeftScroll:null},s.a.createElement(w,{initialValue:this.props.initialValue,onChange:this.updateCode,options:this.options})),s.a.createElement("div",{className:"plain-editor-right-panel",onMouseEnter:this.onEnterRightPanel,onMouseLeave:this.onLeaveRightPanel,onScroll:this.state.rightIsBindScroll?this.onRightScroll:null},s.a.createElement("div",{className:"preview"},s.a.createElement("div",{className:"rendered-markdown article",dangerouslySetInnerHTML:{__html:this.state.html}})))))}}]),t}(s.a.Component);A.propTypes={collabUsers:l.a.array},t.a=Object(v.translate)("translations")(A)},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},a=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var i;for(i in e);return"undefined"===typeof i||r.call(e,i)};e.exports=function e(){var t,n,r,o,s,u,l=arguments[0],c=1,f=arguments.length,p=!1;for("boolean"===typeof l&&(p=l,l=arguments[1]||{},c=2),(null==l||"object"!==typeof l&&"function"!==typeof l)&&(l={});cn.length;s&&n.push(r);try{t=e.apply(null,n)}catch(e){if(s&&a)throw e;return r(e)}s||(t&&"function"===typeof t.then?t.then(o,r):t instanceof Error?r(t):o(t))}function r(){a||(a=!0,t.apply(null,arguments))}function o(e){r(null,e)}var a;return n}e.exports=r;var i=[].slice},function(e,t){function n(e){return"[object String]"===r.call(e)}var r=Object.prototype.toString;e.exports=n},function(e,t){e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";function r(e,t){this.file=t,this.offset={},this.options=i(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=s(t).toOffset,this.unescape=u(this,"escape"),this.decode=l(this)}function o(e){var t,n=[];for(t in e)n.push(t);return n}var i=n(8),a=n(210),s=n(211),u=n(588),l=n(589),c=n(592);e.exports=r;var f=r.prototype;f.setOptions=n(593),f.parse=n(595),f.options=n(217),f.exitStart=a("atStart",!0),f.enterList=a("inList",!1),f.enterLink=a("inLink",!1),f.enterBlock=a("inBlock",!1),f.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.blockTokenizers={newline:n(597),indentedCode:n(598),fencedCode:n(599),blockquote:n(600),atxHeading:n(601),thematicBreak:n(602),list:n(603),setextHeading:n(605),html:n(606),footnote:n(607),definition:n(608),table:n(609),paragraph:n(610)},f.inlineTokenizers={escape:n(611),autoLink:n(613),url:n(614),html:n(616),link:n(617),reference:n(618),strong:n(619),emphasis:n(621),deletion:n(624),code:n(626),break:n(628),text:n(630)},f.blockMethods=o(f.blockTokenizers),f.inlineMethods=o(f.inlineTokenizers),f.tokenizeBlock=c("block"),f.tokenizeInline=c("inline"),f.tokenizeFactory=c},function(e,t,n){"use strict";function r(e,t){function n(n){for(var r,o=0,i=n.indexOf("\\"),a=e[t],s=[];-1!==i;)s.push(n.slice(o,i)),o=i+1,r=n.charAt(o),r&&-1!==a.indexOf(r)||s.push("\\"),i=n.indexOf("\\",o);return s.push(n.slice(o)),s.join("")}return n}e.exports=r},function(e,t,n){"use strict";function r(e){function t(t){for(var n=e.offset,r=t.line,o=[];++r&&r in n;)o.push((n[r]||0)+1);return{start:t,indent:o}}function n(t,n,r){3!==r&&e.file.message(t,n)}function r(r,o,a){i(r,{position:t(o),warning:n,text:a,reference:a,textContext:e,referenceContext:e})}function a(e,r,a){return i(e,o(a,{position:t(r),warning:n}))}return r.raw=a,r}var o=n(8),i=n(71);e.exports=r},function(e,t){e.exports={AEli:"\xc6",AElig:"\xc6",AM:"&",AMP:"&",Aacut:"\xc1",Aacute:"\xc1",Abreve:"\u0102",Acir:"\xc2",Acirc:"\xc2",Acy:"\u0410",Afr:"\ud835\udd04",Agrav:"\xc0",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\ud835\udd38",ApplyFunction:"\u2061",Arin:"\xc5",Aring:"\xc5",Ascr:"\ud835\udc9c",Assign:"\u2254",Atild:"\xc3",Atilde:"\xc3",Aum:"\xc4",Auml:"\xc4",Backslash:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212c",Beta:"\u0392",Bfr:"\ud835\udd05",Bopf:"\ud835\udd39",Breve:"\u02d8",Bscr:"\u212c",Bumpeq:"\u224e",CHcy:"\u0427",COP:"\xa9",COPY:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",Cayleys:"\u212d",Ccaron:"\u010c",Ccedi:"\xc7",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"\u212d",Chi:"\u03a7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2a74",Congruent:"\u2261",Conint:"\u222f",ContourIntegral:"\u222e",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2a2f",Cscr:"\ud835\udc9e",Cup:"\u22d3",CupCap:"\u224d",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\ud835\udd07",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",Diamond:"\u22c4",DifferentialD:"\u2146",Dopf:"\ud835\udd3b",Dot:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",Downarrow:"\u21d3",Dscr:"\ud835\udc9f",Dstrok:"\u0110",ENG:"\u014a",ET:"\xd0",ETH:"\xd0",Eacut:"\xc9",Eacute:"\xc9",Ecaron:"\u011a",Ecir:"\xca",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\ud835\udd08",Egrav:"\xc8",Egrave:"\xc8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\ud835\udd3c",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",Equilibrium:"\u21cc",Escr:"\u2130",Esim:"\u2a73",Eta:"\u0397",Eum:"\xcb",Euml:"\xcb",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\ud835\udd09",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",Fopf:"\ud835\udd3d",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\ud835\udd0a",Gg:"\u22d9",Gopf:"\ud835\udd3e",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",Gt:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",HilbertSpace:"\u210b",Hopf:"\u210d",HorizontalLine:"\u2500",Hscr:"\u210b",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xcd",Iacute:"\xcd",Icir:"\xce",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xcc",Igrave:"\xcc",Im:"\u2111",Imacr:"\u012a",ImaginaryI:"\u2148",Implies:"\u21d2",Int:"\u222c",Integral:"\u222b",Intersection:"\u22c2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012e",Iopf:"\ud835\udd40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xcf",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\ud835\udd0d",Jopf:"\ud835\udd41",Jscr:"\ud835\udca5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\ud835\udd0e",Kopf:"\ud835\udd42",Kscr:"\ud835\udca6",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Larr:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",LeftRightArrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",Leftarrow:"\u21d0",Leftrightarrow:"\u21d4",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",Lfr:"\ud835\udd0f",Ll:"\u22d8",Lleftarrow:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",LongLeftRightArrow:"\u27f7",LongRightArrow:"\u27f6",Longleftarrow:"\u27f8",Longleftrightarrow:"\u27fa",Longrightarrow:"\u27f9",Lopf:"\ud835\udd43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",MinusPlus:"\u2213",Mopf:"\ud835\udd44",Mscr:"\u2133",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",Nfr:"\ud835\udd11",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\ud835\udca9",Ntild:"\xd1",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacut:"\xd3",Oacute:"\xd3",Ocir:"\xd4",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\ud835\udd12",Ograv:"\xd2",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",Omicron:"\u039f",Oopf:"\ud835\udd46",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",Or:"\u2a54",Oscr:"\ud835\udcaa",Oslas:"\xd8",Oslash:"\xd8",Otild:"\xd5",Otilde:"\xd5",Otimes:"\u2a37",Oum:"\xd6",Ouml:"\xd6",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",Pcy:"\u041f",Pfr:"\ud835\udd13",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",Poincareplane:"\u210c",Popf:"\u2119",Pr:"\u2abb",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",Prime:"\u2033",Product:"\u220f",Proportion:"\u2237",Proportional:"\u221d",Pscr:"\ud835\udcab",Psi:"\u03a8",QUO:'"',QUOT:'"',Qfr:"\ud835\udd14",Qopf:"\u211a",Qscr:"\ud835\udcac",RBarr:"\u2910",RE:"\xae",REG:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",Rfr:"\u211c",Rho:"\u03a1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",Rightarrow:"\u21d2",Ropf:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",Rscr:"\u211b",Rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\ud835\udd16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",Sopf:"\ud835\udd4a",Sqrt:"\u221a",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\ud835\udcae",Star:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",SuchThat:"\u220b",Sum:"\u2211",Sup:"\u22d1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22d1",THOR:"\xde",THORN:"\xde",TRADE:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\ud835\udd17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\ud835\udd4b",TripleDot:"\u20db",Tscr:"\ud835\udcaf",Tstrok:"\u0166",Uacut:"\xda",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucir:"\xdb",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\ud835\udd18",Ugrav:"\xd9",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",Uopf:"\ud835\udd4c",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",UpTee:"\u22a5",UpTeeArrow:"\u21a5",Uparrow:"\u21d1",Updownarrow:"\u21d5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\ud835\udcb0",Utilde:"\u0168",Uum:"\xdc",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",Vopf:"\ud835\udd4d",Vscr:"\ud835\udcb1",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",Wfr:"\ud835\udd1a",Wopf:"\ud835\udd4e",Wscr:"\ud835\udcb2",Xfr:"\ud835\udd1b",Xi:"\u039e",Xopf:"\ud835\udd4f",Xscr:"\ud835\udcb3",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacut:"\xdd",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\ud835\udd1c",Yopf:"\ud835\udd50",Yscr:"\ud835\udcb4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",ZeroWidthSpace:"\u200b",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\ud835\udcb5",aacut:"\xe1",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acir:"\xe2",acirc:"\xe2",acut:"\xb4",acute:"\xb4",acy:"\u0430",aeli:"\xe6",aelig:"\xe6",af:"\u2061",afr:"\ud835\udd1e",agrav:"\xe0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",am:"&",amp:"&",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",aopf:"\ud835\udd52",ap:"\u2248",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",apid:"\u224b",apos:"'",approx:"\u2248",approxeq:"\u224a",arin:"\xe5",aring:"\xe5",ascr:"\ud835\udcb6",ast:"*",asymp:"\u2248",asympeq:"\u224d",atild:"\xe3",atilde:"\xe3",aum:"\xe4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",beta:"\u03b2",beth:"\u2136",between:"\u226c",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",bprime:"\u2035",breve:"\u02d8",brvba:"\xa6",brvbar:"\xa6",bscr:"\ud835\udcb7",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",bumpeq:"\u224f",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",ccaps:"\u2a4d",ccaron:"\u010d",ccedi:"\xe7",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cedi:"\xb8",cedil:"\xb8",cemptyv:"\u29b2",cen:"\xa2",cent:"\xa2",centerdot:"\xb7",cfr:"\ud835\udd20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledR:"\xae",circledS:"\u24c8",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",conint:"\u222e",copf:"\ud835\udd54",coprod:"\u2210",cop:"\xa9",copy:"\xa9",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curre:"\xa4",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dArr:"\u21d3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",ddotseq:"\u2a77",de:"\xb0",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",dharl:"\u21c3",dharr:"\u21c2",diam:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divid:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",dot:"\u02d9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eDDot:"\u2a77",eDot:"\u2251",eacut:"\xe9",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\xea",ecirc:"\xea",ecolon:"\u2255",ecy:"\u044d",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\ud835\udd22",eg:"\u2a9a",egrav:"\xe8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",equals:"=",equest:"\u225f",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",erarr:"\u2971",escr:"\u212f",esdot:"\u2250",esim:"\u2242",eta:"\u03b7",et:"\xf0",eth:"\xf0",eum:"\xeb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac1:"\xbc",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac3:"\xbe",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",gE:"\u2267",gEl:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gammad:"\u03dd",gap:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\ud835\udd58",grave:"`",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",g:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hArr:"\u21d4",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",hbar:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",horbar:"\u2015",hscr:"\ud835\udcbd",hslash:"\u210f",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xed",iacute:"\xed",ic:"\u2063",icir:"\xee",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexc:"\xa1",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",igrav:"\xec",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",intcal:"\u22ba",integers:"\u2124",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\ud835\udd5a",iota:"\u03b9",iprod:"\u2a3c",iques:"\xbf",iquest:"\xbf",iscr:"\ud835\udcbe",isin:"\u2208",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xef",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\ud835\udd27",jmath:"\u0237",jopf:"\ud835\udd5b",jscr:"\ud835\udcbf",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\ud835\udd28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\ud835\udd5c",kscr:"\ud835\udcc0",lAarr:"\u21da",lArr:"\u21d0",lAtail:"\u291b",lBarr:"\u290e",lE:"\u2266",lEg:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",laqu:"\xab",laquo:"\xab",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lceil:"\u2308",lcub:"{",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21a2",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",leftthreetimes:"\u22cb",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",mac:"\xaf",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",measuredangle:"\u2221",mfr:"\ud835\udd2a",mho:"\u2127",micr:"\xb5",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middo:"\xb7",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",mstpos:"\u223e",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nGtv:"\u226b\u0338",nLeftarrow:"\u21cd",nLeftrightarrow:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nLtv:"\u226a\u0338",nRightarrow:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbs:"\xa0",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",neArr:"\u21d7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",ngsim:"\u2275",ngt:"\u226f",ngtr:"\u226f",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",nlArr:"\u21cd",nlE:"\u2266\u0338",nlarr:"\u219a",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219a",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nlsim:"\u2274",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nmid:"\u2224",nopf:"\ud835\udd5f",no:"\xac",not:"\xac",notin:"\u2209",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntild:"\xf1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24c8",oacut:"\xf3",oacute:"\xf3",oast:"\u229b",ocir:"\xf4",ocirc:"\xf4",ocy:"\u043e",odash:"\u229d",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\ud835\udd2c",ogon:"\u02db",ograv:"\xf2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",oopf:"\ud835\udd60",opar:"\u29b7",operp:"\u29b9",oplus:"\u2295",or:"\u2228",orarr:"\u21bb",ord:"\xba",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oscr:"\u2134",oslas:"\xf8",oslash:"\xf8",osol:"\u2298",otild:"\xf5",otilde:"\xf5",otimes:"\u2297",otimesas:"\u2a36",oum:"\xf6",ouml:"\xf6",ovbar:"\u233d",par:"\xb6",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\ud835\udd2d",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",plusm:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",pointint:"\u2a15",popf:"\ud835\udd61",poun:"\xa3",pound:"\xa3",pr:"\u227a",prE:"\u2ab3",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",primes:"\u2119",prnE:"\u2ab5",prnap:"\u2ab9",prnsim:"\u22e8",prod:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\ud835\udcc5",psi:"\u03c8",puncsp:"\u2008",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",qprime:"\u2057",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quo:'"',quot:'"',rAarr:"\u21db",rArr:"\u21d2",rAtail:"\u291c",rBarr:"\u290f",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raqu:"\xbb",raquo:"\xbb",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",re:"\xae",reg:"\xae",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",rightarrow:"\u2192",rightarrowtail:"\u21a3",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",rightthreetimes:"\u22cc",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",rsaquo:"\u203a",rscr:"\ud835\udcc7",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",sbquo:"\u201a",sc:"\u227b",scE:"\u2ab4",scap:"\u2ab8",scaron:"\u0161",sccue:"\u227d",sce:"\u2ab0",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",scnap:"\u2aba",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",seArr:"\u21d8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xa7",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xad",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",subE:"\u2ac5",subdot:"\u2abd",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",sum:"\u2211",sung:"\u266a",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szli:"\xdf",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tbrk:"\u23b4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",thor:"\xfe",thorn:"\xfe",tilde:"\u02dc",time:"\xd7",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uArr:"\u21d1",uHar:"\u2963",uacut:"\xfa",uacute:"\xfa",uarr:"\u2191",ubrcy:"\u045e",ubreve:"\u016d",ucir:"\xfb",ucirc:"\xfb",ucy:"\u0443",udarr:"\u21c5",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",ufr:"\ud835\udd32",ugrav:"\xf9",ugrave:"\xf9",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",um:"\xa8",uml:"\xa8",uogon:"\u0173",uopf:"\ud835\udd66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",upsi:"\u03c5",upsih:"\u03d2",upsilon:"\u03c5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\ud835\udcca",utdot:"\u22f0",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uum:"\xfc",uuml:"\xfc",uwangle:"\u29a7",vArr:"\u21d5",vBar:"\u2ae8",vBarv:"\u2ae9",vDash:"\u22a8",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vcy:"\u0432",vdash:"\u22a2",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",vert:"|",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\ud835\udd34",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\ud835\udd35",xhArr:"\u27fa",xharr:"\u27f7",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacut:"\xfd",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",ye:"\xa5",yen:"\xa5",yfr:"\ud835\udd36",yicy:"\u0457",yopf:"\ud835\udd6a",yscr:"\ud835\udcce",yucy:"\u044e",yum:"\xff",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeetrf:"\u2128",zeta:"\u03b6",zfr:"\ud835\udd37",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"}},function(e,t){e.exports={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"}},function(e,t,n){"use strict";function r(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}function o(e,t){return e.value+=t.value,e}function i(e,t){return this.options.commonmark?t:(e.children=e.children.concat(t.children),e)}function a(e){function t(t,n){function o(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)w++,t=n,n=e.indexOf("\n",n+1);-1===t?x+=e.length:x=e.length-t,w in T&&(-1!==t?x+=T[w]:x<=T[w]&&(x=T[w]+1))}function i(){var e=[],t=w+1;return function(){for(var n=w+1;t=f)){for(m="";xu)&&c&&(p.pedantic||t.charAt(h+1)!==s)){for(d=t.length+1,l="";++h=c&&(!r||r===o)?(g+=d,!!n||e(g)({type:"thematicBreak"})):void 0;d+=r}}e.exports=r;var o="\n",i="\t",a=" ",s="*",u="_",l="-",c=3},function(e,t,n){"use strict";function r(e,t,n){for(var r,i,a,u,c,f,b,_,E,k,w,x,S,N,D,I,M,L,P,R,B,j,F,H,U=this,z=U.options.commonmark,K=U.options.pedantic,q=U.blockTokenizers,W=U.interruptList,G=0,V=t.length,Y=null,$=0;G=T)){if(u=t.charAt(G),r=z?O:A,!0===C[u])c=u,a=!1;else{for(a=!0,i="";G=T&&(H=!0),M&&$>=M.indent&&(H=!0),u=t.charAt(G),E=null,!H){if(!0===C[u])E=u,G++,$++;else{for(i="";G=M.indent||$>T):H=!0,_=!1,G=b;if(w=t.slice(b,f),k=b===G?w:t.slice(G,f),(E===d||E===h||E===m)&&q.thematicBreak.call(U,e,w,!0))break;if(x=S,S=!s(k).length,H&&M)M.value=M.value.concat(I,w),D=D.concat(I,w),I=[];else if(_)0!==I.length&&(M.value.push(""),M.trail=I.concat()),M={value:[w],indent:$,trail:[]},N.push(M),D=D.concat(I,w),I=[];else if(S){if(x)break;I.push(w)}else{if(x)break;if(p(W,q,U,[e,w,!0]))break;M.value=M.value.concat(I,w),D=D.concat(I,w),I=[]}G=f+1}for(B=e(D.join(v)).reset({type:"list",ordered:a,start:Y,loose:null,children:[]}),L=U.enterList(),P=U.enterBlock(),R=!1,G=-1,V=N.length;++G0&&r.indent=s){g--;break}v+=c}for(r="",l="";++g|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];yF){if(P1&&(C?(_+=x.slice(0,x.length-1),x=x.charAt(x.length-1)):(_+=x,x="")),M=e.now(),e(_)({type:"tableCell",children:z.tokenizeInline(S,M)},E)),e(x+C),x="",S=""}else if(x&&(S+=x,x=""),S+=C,C===i&&r!==k-2&&(S+=R.charAt(r+1),r++),C===a){for(D=1;R.charAt(r+1)===C;)S+=C,r++,D++;I?D>=I&&(I=0):I=D}N=!1,r++}else S?x+=C:e(C),r++;L||e(f+b)}return j}}}var o=n(10);e.exports=r;var i="\\",a="`",s="-",u="|",l=":",c=" ",f="\n",p="\t",d=1,h=2,m="left",g="center",v="right",y=null},function(e,t,n){"use strict";function r(e,t,n){for(var r,p,d,h,m,g=this,v=g.options,y=v.commonmark,b=v.gfm,T=g.blockTokenizers,_=g.interruptParagraph,E=t.indexOf(u),k=t.length;E=f){E=t.indexOf(u,E+1);continue}}if(p=t.slice(E+1),s(_,T,g,[e,p,!0]))break;if(T.list.call(g,e,p,!0)&&(g.inList||y||b&&!i(o.left(p).charAt(0))))break;if(r=E,-1!==(E=t.indexOf(u,E+1))&&""===o(t.slice(r,E))){E=r;break}}return p=t.slice(0,E),""===o(p)?(e(p),null):!!n||(m=e.now(),p=a(p),e(p)({type:"paragraph",children:g.tokenizeInline(p,m)}))}var o=n(21),i=n(45),a=n(115),s=n(116);e.exports=r;var u="\n",l="\t",c=" ",f=4},function(e,t,n){"use strict";function r(e,t,n){var r,o,i=this;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==i.escape.indexOf(r)))return!!n||(o="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(o))}var o=n(612);e.exports=r,r.locator=o},function(e,t,n){"use strict";function r(e,t){return e.indexOf("\\",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,a,d,h,m,g,v,y,b,T,_,E;if(t.charAt(0)===s){for(r=this,a="",d=t.length,h=0,m="",v=!1,y="",h++,a=s;h/i},function(e,t,n){"use strict";function r(e,t,n){var r,i,v,y,b,T,_,E,k,w,x,C,A,O,S,N,D,I,M,L=this,P="",R=0,B=t.charAt(0),j=L.options.pedantic,F=L.options.commonmark,H=L.options.gfm;if("!"===B&&(k=!0,P=B,B=t.charAt(++R)),B===u&&(k||!L.inLink)){for(P+=B,S="",R++,C=t.length,D=e.now(),O=0,D.column+=R,D.offset+=R;R=v&&(v=0):v=i}else if(B===s)R++,T+=t.charAt(R);else if(v&&!H||B!==u){if((!v||H)&&B===l){if(!O){if(!j)for(;R",h="`",m={};m['"']='"',m["'"]="'";var g={};g['"']='"',g["'"]="'",g[c]=f},function(e,t,n){"use strict";function r(e,t,n){var r,i,v,y,b,T,_,E,k=this,w=t.charAt(0),x=0,C=t.length,A="",O="",S=s,N=c;if("!"===w&&(S=u,O=w,w=t.charAt(++x)),w===m){if(x++,O+=w,T="",k.options.footnotes&&t.charAt(x)===d){if(S===u)return;O+=d,x++,S=l}for(E=0;xt&&" "===e.charAt(n-1);)n--;return n}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,o,i,a,s,u,l,c,f,p,d=this;if(n)return!0;for(r=d.inlineMethods,a=r.length,o=d.inlineTokenizers,i=-1,f=t.length;++i?@[\]^`{|}~]/g;return"string"!==typeof e?"":(t||(e=e.replace(/[A-Z]+/g,o)),e.trim().replace(n,"").replace(a(),"").replace(s,"-"))}var a=n(634);e.exports=r,r.prototype.slug=function(e,t){t=!0===t;var n=this,r=i(e,t),o=n.occurrences[r];return n.occurrences.hasOwnProperty(r)?o++:o=0,n.occurrences[r]=o,o&&(r=r+"-"+o),r},r.prototype.reset=function(){this.occurrences={}};var s=/\s/g},function(e,t){e.exports=function(){return/[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2694\u2696\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD79\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED0\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3]|\uD83E[\uDD10-\uDD18\uDD80-\uDD84\uDDC0]|\uD83C\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uD83C\uDDFE\uD83C[\uDDEA\uDDF9]|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDFC\uD83C[\uDDEB\uDDF8]|\uD83C\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uD83C\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF8\uDDFE\uDDFF]|\uD83C\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uD83C\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uD83C\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uD83C\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uD83C\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uD83C\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uD83C\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uD83C\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uD83C\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uD83C\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uD83C\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uD83C\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uD83C\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uD83C\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uD83C\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uD83C\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|[#\*0-9]\u20E3/g}},function(e,t,n){"use strict";function r(){function e(e,t,n){for(var r,o=t.length,i=-1,a="";++i=0;r--){var o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o)&&(n=o)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function i(e,t,n){for(var r=t,o=e.openElements.getCommonAncestor(t),i=0,s=o;s!==n;i++,s=o){o=e.openElements.getCommonAncestor(s);var u=e.activeFormattingElements.getElementEntry(s),l=u&&i>=Rt;!u||l?(l&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=a(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function a(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function s(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{var r=e.treeAdapter.getTagName(t),o=e.treeAdapter.getNamespaceURI(t);r===Nt.TEMPLATE&&o===Dt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function u(e,t,n){var r=e.treeAdapter.getNamespaceURI(n.element),o=n.token,i=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}function l(e,t){for(var n,a=0;a0&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Nt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode())}function C(e,t){e.openElements.pop(),e.insertionMode=Ht,e._processToken(t)}function A(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.BODY?(e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode=Ut):n===Nt.FRAMESET?(e._insertElement(t,Dt.HTML),e.insertionMode=en):n===Nt.BASE||n===Nt.BASEFONT||n===Nt.BGSOUND||n===Nt.LINK||n===Nt.META||n===Nt.NOFRAMES||n===Nt.SCRIPT||n===Nt.STYLE||n===Nt.TEMPLATE||n===Nt.TITLE?(e.openElements.push(e.headElement),w(e,t),e.openElements.remove(e.headElement)):n!==Nt.HEAD&&S(e,t)}function O(e,t){var n=t.tagName;n===Nt.BODY||n===Nt.HTML||n===Nt.BR?S(e,t):n===Nt.TEMPLATE&&x(e,t)}function S(e,t){e._insertFakeElement(Nt.BODY),e.insertionMode=Ut,e._processToken(t)}function N(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function D(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function I(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function M(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function L(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Dt.HTML),e.insertionMode=en)}function P(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML)}function R(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement();var n=e.openElements.currentTagName;n!==Nt.H1&&n!==Nt.H2&&n!==Nt.H3&&n!==Nt.H4&&n!==Nt.H5&&n!==Nt.H6||e.openElements.pop(),e._insertElement(t,Dt.HTML)}function B(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function j(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),n||(e.formElement=e.openElements.current))}function F(e,t){e.framesetOk=!1;for(var n=t.tagName,r=e.openElements.stackTop;r>=0;r--){var o=e.openElements.items[r],i=e.treeAdapter.getTagName(o),a=null;if(n===Nt.LI&&i===Nt.LI?a=Nt.LI:n!==Nt.DD&&n!==Nt.DT||i!==Nt.DD&&i!==Nt.DT||(a=i),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(i!==Nt.ADDRESS&&i!==Nt.DIV&&i!==Nt.P&&e._isSpecialElement(o))break}e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML)}function H(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.tokenizer.state=Tt.MODE.PLAINTEXT}function U(e,t){e.openElements.hasInScope(Nt.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Nt.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.framesetOk=!1}function z(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Nt.A);n&&(l(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function K(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function q(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Nt.NOBR)&&(l(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function W(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function G(e,t){e.treeAdapter.getDocumentMode(e.document)!==St.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode=Kt}function V(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dt.HTML),e.framesetOk=!1}function Y(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dt.HTML);var n=Tt.getTokenAttr(t,It.TYPE);n&&n.toLowerCase()===Lt||(e.framesetOk=!1)}function $(e,t){e._appendElement(t,Dt.HTML)}function J(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e.openElements.currentTagName===Nt.MENUITEM&&e.openElements.pop(),e._appendElement(t,Dt.HTML),e.framesetOk=!1}function X(e,t){t.tagName=Nt.IMG,V(e,t)}function Q(e,t){e._insertElement(t,Dt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Tt.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=zt}function Z(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Tt.MODE.RAWTEXT)}function ee(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Tt.MODE.RAWTEXT)}function te(e,t){e._switchToTextParsing(t,Tt.MODE.RAWTEXT)}function ne(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode===Kt||e.insertionMode===Wt||e.insertionMode===Vt||e.insertionMode===Yt||e.insertionMode===$t?e.insertionMode=Xt:e.insertionMode=Jt}function re(e,t){e.openElements.currentTagName===Nt.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML)}function oe(e,t){e.openElements.hasInScope(Nt.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Dt.HTML)}function ie(e,t){e.openElements.hasInScope(Nt.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Nt.RTC),e._insertElement(t,Dt.HTML)}function ae(e,t){e.openElements.currentTagName===Nt.MENUITEM&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML)}function se(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e.openElements.currentTagName===Nt.MENUITEM&&e.openElements.pop(),e._insertElement(t,Dt.HTML)}function ue(e,t){e._reconstructActiveFormattingElements(),At.adjustTokenMathMLAttrs(t),At.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dt.MATHML):e._insertElement(t,Dt.MATHML)}function le(e,t){e._reconstructActiveFormattingElements(),At.adjustTokenSVGAttrs(t),At.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dt.SVG):e._insertElement(t,Dt.SVG)}function ce(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML)}function fe(e,t){var n=t.tagName;switch(n.length){case 1:n===Nt.I||n===Nt.S||n===Nt.B||n===Nt.U?K(e,t):n===Nt.P?P(e,t):n===Nt.A?z(e,t):ce(e,t);break;case 2:n===Nt.DL||n===Nt.OL||n===Nt.UL?P(e,t):n===Nt.H1||n===Nt.H2||n===Nt.H3||n===Nt.H4||n===Nt.H5||n===Nt.H6?R(e,t):n===Nt.LI||n===Nt.DD||n===Nt.DT?F(e,t):n===Nt.EM||n===Nt.TT?K(e,t):n===Nt.BR?V(e,t):n===Nt.HR?J(e,t):n===Nt.RB?oe(e,t):n===Nt.RT||n===Nt.RP?ie(e,t):n!==Nt.TH&&n!==Nt.TD&&n!==Nt.TR&&ce(e,t);break;case 3:n===Nt.DIV||n===Nt.DIR||n===Nt.NAV?P(e,t):n===Nt.PRE?B(e,t):n===Nt.BIG?K(e,t):n===Nt.IMG||n===Nt.WBR?V(e,t):n===Nt.XMP?Z(e,t):n===Nt.SVG?le(e,t):n===Nt.RTC?oe(e,t):n!==Nt.COL&&ce(e,t);break;case 4:n===Nt.HTML?I(e,t):n===Nt.BASE||n===Nt.LINK||n===Nt.META?w(e,t):n===Nt.BODY?M(e,t):n===Nt.MAIN?P(e,t):n===Nt.FORM?j(e,t):n===Nt.CODE||n===Nt.FONT?K(e,t):n===Nt.NOBR?q(e,t):n===Nt.AREA?V(e,t):n===Nt.MATH?ue(e,t):n===Nt.MENU?se(e,t):n!==Nt.HEAD&&ce(e,t);break;case 5:n===Nt.STYLE||n===Nt.TITLE?w(e,t):n===Nt.ASIDE?P(e,t):n===Nt.SMALL?K(e,t):n===Nt.TABLE?G(e,t):n===Nt.EMBED?V(e,t):n===Nt.INPUT?Y(e,t):n===Nt.PARAM||n===Nt.TRACK?$(e,t):n===Nt.IMAGE?X(e,t):n!==Nt.FRAME&&n!==Nt.TBODY&&n!==Nt.TFOOT&&n!==Nt.THEAD&&ce(e,t);break;case 6:n===Nt.SCRIPT?w(e,t):n===Nt.CENTER||n===Nt.FIGURE||n===Nt.FOOTER||n===Nt.HEADER||n===Nt.HGROUP?P(e,t):n===Nt.BUTTON?U(e,t):n===Nt.STRIKE||n===Nt.STRONG?K(e,t):n===Nt.APPLET||n===Nt.OBJECT?W(e,t):n===Nt.KEYGEN?V(e,t):n===Nt.SOURCE?$(e,t):n===Nt.IFRAME?ee(e,t):n===Nt.SELECT?ne(e,t):n===Nt.OPTION?re(e,t):ce(e,t);break;case 7:n===Nt.BGSOUND?w(e,t):n===Nt.DETAILS||n===Nt.ADDRESS||n===Nt.ARTICLE||n===Nt.SECTION||n===Nt.SUMMARY?P(e,t):n===Nt.LISTING?B(e,t):n===Nt.MARQUEE?W(e,t):n===Nt.NOEMBED?te(e,t):n!==Nt.CAPTION&&ce(e,t);break;case 8:n===Nt.BASEFONT?w(e,t):n===Nt.MENUITEM?ae(e,t):n===Nt.FRAMESET?L(e,t):n===Nt.FIELDSET?P(e,t):n===Nt.TEXTAREA?Q(e,t):n===Nt.TEMPLATE?w(e,t):n===Nt.NOSCRIPT?te(e,t):n===Nt.OPTGROUP?re(e,t):n!==Nt.COLGROUP&&ce(e,t);break;case 9:n===Nt.PLAINTEXT?H(e,t):ce(e,t);break;case 10:n===Nt.BLOCKQUOTE||n===Nt.FIGCAPTION?P(e,t):ce(e,t);break;default:ce(e,t)}}function pe(e){e.openElements.hasInScope(Nt.BODY)&&(e.insertionMode=Zt)}function de(e,t){e.openElements.hasInScope(Nt.BODY)&&(e.insertionMode=Zt,e._processToken(t))}function he(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function me(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Nt.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Nt.FORM):e.openElements.remove(n))}function ge(e){e.openElements.hasInButtonScope(Nt.P)||e._insertFakeElement(Nt.P),e._closePElement()}function ve(e){e.openElements.hasInListItemScope(Nt.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Nt.LI),e.openElements.popUntilTagNamePopped(Nt.LI))}function ye(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function be(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Te(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function _e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Nt.BR),e.openElements.pop(),e.framesetOk=!1}function Ee(e,t){for(var n=t.tagName,r=e.openElements.stackTop;r>0;r--){var o=e.openElements.items[r];if(e.treeAdapter.getTagName(o)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(o);break}if(e._isSpecialElement(o))break}}function ke(e,t){var n=t.tagName;switch(n.length){case 1:n===Nt.A||n===Nt.B||n===Nt.I||n===Nt.S||n===Nt.U?l(e,t):n===Nt.P?ge(e,t):Ee(e,t);break;case 2:n===Nt.DL||n===Nt.UL||n===Nt.OL?he(e,t):n===Nt.LI?ve(e,t):n===Nt.DD||n===Nt.DT?ye(e,t):n===Nt.H1||n===Nt.H2||n===Nt.H3||n===Nt.H4||n===Nt.H5||n===Nt.H6?be(e,t):n===Nt.BR?_e(e,t):n===Nt.EM||n===Nt.TT?l(e,t):Ee(e,t);break;case 3:n===Nt.BIG?l(e,t):n===Nt.DIR||n===Nt.DIV||n===Nt.NAV?he(e,t):Ee(e,t);break;case 4:n===Nt.BODY?pe(e,t):n===Nt.HTML?de(e,t):n===Nt.FORM?me(e,t):n===Nt.CODE||n===Nt.FONT||n===Nt.NOBR?l(e,t):n===Nt.MAIN||n===Nt.MENU?he(e,t):Ee(e,t);break;case 5:n===Nt.ASIDE?he(e,t):n===Nt.SMALL?l(e,t):Ee(e,t);break;case 6:n===Nt.CENTER||n===Nt.FIGURE||n===Nt.FOOTER||n===Nt.HEADER||n===Nt.HGROUP?he(e,t):n===Nt.APPLET||n===Nt.OBJECT?Te(e,t):n===Nt.STRIKE||n===Nt.STRONG?l(e,t):Ee(e,t);break;case 7:n===Nt.ADDRESS||n===Nt.ARTICLE||n===Nt.DETAILS||n===Nt.SECTION||n===Nt.SUMMARY?he(e,t):n===Nt.MARQUEE?Te(e,t):Ee(e,t);break;case 8:n===Nt.FIELDSET?he(e,t):n===Nt.TEMPLATE?x(e,t):Ee(e,t);break;case 10:n===Nt.BLOCKQUOTE||n===Nt.FIGCAPTION?he(e,t):Ee(e,t);break;default:Ee(e,t)}}function we(e,t){e.tmplInsertionModeStackTop>-1?it(e,t):e.stopped=!0}function xe(e,t){t.tagName===Nt.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Ce(e,t){e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Ae(e,t){var n=e.openElements.currentTagName;n===Nt.TABLE||n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD||n===Nt.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=qt,e._processToken(t)):je(e,t)}function Oe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Dt.HTML),e.insertionMode=Wt}function Se(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dt.HTML),e.insertionMode=Gt}function Ne(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Nt.COLGROUP),e.insertionMode=Gt,e._processToken(t)}function De(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dt.HTML),e.insertionMode=Vt}function Ie(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Nt.TBODY),e.insertionMode=Vt,e._processToken(t)}function Me(e,t){e.openElements.hasInTableScope(Nt.TABLE)&&(e.openElements.popUntilTagNamePopped(Nt.TABLE),e._resetInsertionMode(),e._processToken(t))}function Le(e,t){var n=Tt.getTokenAttr(t,It.TYPE);n&&n.toLowerCase()===Lt?e._appendElement(t,Dt.HTML):je(e,t)}function Pe(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Dt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Re(e,t){var n=t.tagName;switch(n.length){case 2:n===Nt.TD||n===Nt.TH||n===Nt.TR?Ie(e,t):je(e,t);break;case 3:n===Nt.COL?Ne(e,t):je(e,t);break;case 4:n===Nt.FORM?Pe(e,t):je(e,t);break;case 5:n===Nt.TABLE?Me(e,t):n===Nt.STYLE?w(e,t):n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD?De(e,t):n===Nt.INPUT?Le(e,t):je(e,t);break;case 6:n===Nt.SCRIPT?w(e,t):je(e,t);break;case 7:n===Nt.CAPTION?Oe(e,t):je(e,t);break;case 8:n===Nt.COLGROUP?Se(e,t):n===Nt.TEMPLATE?w(e,t):je(e,t);break;default:je(e,t)}}function Be(e,t){var n=t.tagName;n===Nt.TABLE?e.openElements.hasInTableScope(Nt.TABLE)&&(e.openElements.popUntilTagNamePopped(Nt.TABLE),e._resetInsertionMode()):n===Nt.TEMPLATE?x(e,t):n!==Nt.BODY&&n!==Nt.CAPTION&&n!==Nt.COL&&n!==Nt.COLGROUP&&n!==Nt.HTML&&n!==Nt.TBODY&&n!==Nt.TD&&n!==Nt.TFOOT&&n!==Nt.TH&&n!==Nt.THEAD&&n!==Nt.TR&&je(e,t)}function je(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Fe(e,t){e.pendingCharacterTokens.push(t)}function He(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ue(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(Nt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function at(e,t){t.tagName===Nt.HTML?fe(e,t):ut(e,t)}function st(e,t){t.tagName===Nt.HTML?e.fragmentContext||(e.insertionMode=nn):ut(e,t)}function ut(e,t){e.insertionMode=Ut,e._processToken(t)}function lt(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.FRAMESET?e._insertElement(t,Dt.HTML):n===Nt.FRAME?e._appendElement(t,Dt.HTML):n===Nt.NOFRAMES&&w(e,t)}function ct(e,t){t.tagName!==Nt.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===Nt.FRAMESET||(e.insertionMode=tn))}function ft(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.NOFRAMES&&w(e,t)}function pt(e,t){t.tagName===Nt.HTML&&(e.insertionMode=rn)}function dt(e,t){t.tagName===Nt.HTML?fe(e,t):ht(e,t)}function ht(e,t){e.insertionMode=Ut,e._processToken(t)}function mt(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.NOFRAMES&&w(e,t)}function gt(e,t){t.chars=Ot.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function vt(e,t){e._insertCharacters(t),e.framesetOk=!1}function yt(e,t){if(At.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Dt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{var n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Dt.MATHML?At.adjustTokenMathMLAttrs(t):r===Dt.SVG&&(At.adjustTokenSVGTagName(t),At.adjustTokenSVGAttrs(t)),At.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r)}}function bt(e,t){for(var n=e.openElements.stackTop;n>0;n--){var r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Dt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}var Tt=n(73),_t=n(674),Et=n(675),kt=n(676),wt=n(681),xt=n(682),Ct=n(683),At=n(684),Ot=n(74),St=n(37),Nt=St.TAG_NAMES,Dt=St.NAMESPACES,It=St.ATTRS,Mt={locationInfo:!1,treeAdapter:wt},Lt="hidden",Pt=8,Rt=3,Bt="BEFORE_HTML_MODE",jt="BEFORE_HEAD_MODE",Ft="IN_HEAD_MODE",Ht="AFTER_HEAD_MODE",Ut="IN_BODY_MODE",zt="TEXT_MODE",Kt="IN_TABLE_MODE",qt="IN_TABLE_TEXT_MODE",Wt="IN_CAPTION_MODE",Gt="IN_COLUMN_GROUP_MODE",Vt="IN_TABLE_BODY_MODE",Yt="IN_ROW_MODE",$t="IN_CELL_MODE",Jt="IN_SELECT_MODE",Xt="IN_SELECT_IN_TABLE_MODE",Qt="IN_TEMPLATE_MODE",Zt="AFTER_BODY_MODE",en="IN_FRAMESET_MODE",tn="AFTER_FRAMESET_MODE",nn="AFTER_AFTER_BODY_MODE",rn="AFTER_AFTER_FRAMESET_MODE",on=Object.create(null);on[Nt.TR]=Yt,on[Nt.TBODY]=on[Nt.THEAD]=on[Nt.TFOOT]=Vt,on[Nt.CAPTION]=Wt,on[Nt.COLGROUP]=Gt,on[Nt.TABLE]=Kt,on[Nt.BODY]=Ut,on[Nt.FRAMESET]=en;var an=Object.create(null);an[Nt.CAPTION]=an[Nt.COLGROUP]=an[Nt.TBODY]=an[Nt.TFOOT]=an[Nt.THEAD]=Kt,an[Nt.COL]=Gt,an[Nt.TR]=Vt,an[Nt.TD]=an[Nt.TH]=Yt;var sn=Object.create(null);sn.INITIAL_MODE=Object.create(null),sn.INITIAL_MODE[Tt.CHARACTER_TOKEN]=sn.INITIAL_MODE[Tt.NULL_CHARACTER_TOKEN]=v,sn.INITIAL_MODE[Tt.WHITESPACE_CHARACTER_TOKEN]=c,sn.INITIAL_MODE[Tt.COMMENT_TOKEN]=f,sn.INITIAL_MODE[Tt.DOCTYPE_TOKEN]=g,sn.INITIAL_MODE[Tt.START_TAG_TOKEN]=sn.INITIAL_MODE[Tt.END_TAG_TOKEN]=sn.INITIAL_MODE[Tt.EOF_TOKEN]=v,sn[Bt]=Object.create(null),sn[Bt][Tt.CHARACTER_TOKEN]=sn[Bt][Tt.NULL_CHARACTER_TOKEN]=T,sn[Bt][Tt.WHITESPACE_CHARACTER_TOKEN]=c,sn[Bt][Tt.COMMENT_TOKEN]=f,sn[Bt][Tt.DOCTYPE_TOKEN]=c,sn[Bt][Tt.START_TAG_TOKEN]=y,sn[Bt][Tt.END_TAG_TOKEN]=b,sn[Bt][Tt.EOF_TOKEN]=T,sn[jt]=Object.create(null),sn[jt][Tt.CHARACTER_TOKEN]=sn[jt][Tt.NULL_CHARACTER_TOKEN]=k,sn[jt][Tt.WHITESPACE_CHARACTER_TOKEN]=c,sn[jt][Tt.COMMENT_TOKEN]=f,sn[jt][Tt.DOCTYPE_TOKEN]=c,sn[jt][Tt.START_TAG_TOKEN]=_,sn[jt][Tt.END_TAG_TOKEN]=E,sn[jt][Tt.EOF_TOKEN]=k,sn[Ft]=Object.create(null),sn[Ft][Tt.CHARACTER_TOKEN]=sn[Ft][Tt.NULL_CHARACTER_TOKEN]=C,sn[Ft][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[Ft][Tt.COMMENT_TOKEN]=f,sn[Ft][Tt.DOCTYPE_TOKEN]=c,sn[Ft][Tt.START_TAG_TOKEN]=w,sn[Ft][Tt.END_TAG_TOKEN]=x,sn[Ft][Tt.EOF_TOKEN]=C,sn[Ht]=Object.create(null),sn[Ht][Tt.CHARACTER_TOKEN]=sn[Ht][Tt.NULL_CHARACTER_TOKEN]=S,sn[Ht][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[Ht][Tt.COMMENT_TOKEN]=f,sn[Ht][Tt.DOCTYPE_TOKEN]=c,sn[Ht][Tt.START_TAG_TOKEN]=A,sn[Ht][Tt.END_TAG_TOKEN]=O,sn[Ht][Tt.EOF_TOKEN]=S,sn[Ut]=Object.create(null),sn[Ut][Tt.CHARACTER_TOKEN]=D,sn[Ut][Tt.NULL_CHARACTER_TOKEN]=c,sn[Ut][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[Ut][Tt.COMMENT_TOKEN]=f,sn[Ut][Tt.DOCTYPE_TOKEN]=c,sn[Ut][Tt.START_TAG_TOKEN]=fe,sn[Ut][Tt.END_TAG_TOKEN]=ke,sn[Ut][Tt.EOF_TOKEN]=we,sn[zt]=Object.create(null),sn[zt][Tt.CHARACTER_TOKEN]=sn[zt][Tt.NULL_CHARACTER_TOKEN]=sn[zt][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[zt][Tt.COMMENT_TOKEN]=sn[zt][Tt.DOCTYPE_TOKEN]=sn[zt][Tt.START_TAG_TOKEN]=c,sn[zt][Tt.END_TAG_TOKEN]=xe,sn[zt][Tt.EOF_TOKEN]=Ce,sn[Kt]=Object.create(null),sn[Kt][Tt.CHARACTER_TOKEN]=sn[Kt][Tt.NULL_CHARACTER_TOKEN]=sn[Kt][Tt.WHITESPACE_CHARACTER_TOKEN]=Ae,sn[Kt][Tt.COMMENT_TOKEN]=f,sn[Kt][Tt.DOCTYPE_TOKEN]=c,sn[Kt][Tt.START_TAG_TOKEN]=Re,sn[Kt][Tt.END_TAG_TOKEN]=Be,sn[Kt][Tt.EOF_TOKEN]=we,sn[qt]=Object.create(null),sn[qt][Tt.CHARACTER_TOKEN]=He,sn[qt][Tt.NULL_CHARACTER_TOKEN]=c,sn[qt][Tt.WHITESPACE_CHARACTER_TOKEN]=Fe,sn[qt][Tt.COMMENT_TOKEN]=sn[qt][Tt.DOCTYPE_TOKEN]=sn[qt][Tt.START_TAG_TOKEN]=sn[qt][Tt.END_TAG_TOKEN]=sn[qt][Tt.EOF_TOKEN]=Ue,sn[Wt]=Object.create(null),sn[Wt][Tt.CHARACTER_TOKEN]=D,sn[Wt][Tt.NULL_CHARACTER_TOKEN]=c,sn[Wt][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[Wt][Tt.COMMENT_TOKEN]=f,sn[Wt][Tt.DOCTYPE_TOKEN]=c,sn[Wt][Tt.START_TAG_TOKEN]=ze,sn[Wt][Tt.END_TAG_TOKEN]=Ke,sn[Wt][Tt.EOF_TOKEN]=we,sn[Gt]=Object.create(null),sn[Gt][Tt.CHARACTER_TOKEN]=sn[Gt][Tt.NULL_CHARACTER_TOKEN]=Ge,sn[Gt][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[Gt][Tt.COMMENT_TOKEN]=f,sn[Gt][Tt.DOCTYPE_TOKEN]=c,sn[Gt][Tt.START_TAG_TOKEN]=qe,sn[Gt][Tt.END_TAG_TOKEN]=We,sn[Gt][Tt.EOF_TOKEN]=we,sn[Vt]=Object.create(null),sn[Vt][Tt.CHARACTER_TOKEN]=sn[Vt][Tt.NULL_CHARACTER_TOKEN]=sn[Vt][Tt.WHITESPACE_CHARACTER_TOKEN]=Ae,sn[Vt][Tt.COMMENT_TOKEN]=f,sn[Vt][Tt.DOCTYPE_TOKEN]=c,sn[Vt][Tt.START_TAG_TOKEN]=Ve,sn[Vt][Tt.END_TAG_TOKEN]=Ye,sn[Vt][Tt.EOF_TOKEN]=we,sn[Yt]=Object.create(null),sn[Yt][Tt.CHARACTER_TOKEN]=sn[Yt][Tt.NULL_CHARACTER_TOKEN]=sn[Yt][Tt.WHITESPACE_CHARACTER_TOKEN]=Ae,sn[Yt][Tt.COMMENT_TOKEN]=f,sn[Yt][Tt.DOCTYPE_TOKEN]=c,sn[Yt][Tt.START_TAG_TOKEN]=$e,sn[Yt][Tt.END_TAG_TOKEN]=Je,sn[Yt][Tt.EOF_TOKEN]=we,sn[$t]=Object.create(null),sn[$t][Tt.CHARACTER_TOKEN]=D,sn[$t][Tt.NULL_CHARACTER_TOKEN]=c,sn[$t][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[$t][Tt.COMMENT_TOKEN]=f,sn[$t][Tt.DOCTYPE_TOKEN]=c,sn[$t][Tt.START_TAG_TOKEN]=Xe,sn[$t][Tt.END_TAG_TOKEN]=Qe,sn[$t][Tt.EOF_TOKEN]=we,sn[Jt]=Object.create(null),sn[Jt][Tt.CHARACTER_TOKEN]=h,sn[Jt][Tt.NULL_CHARACTER_TOKEN]=c,sn[Jt][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[Jt][Tt.COMMENT_TOKEN]=f,sn[Jt][Tt.DOCTYPE_TOKEN]=c,sn[Jt][Tt.START_TAG_TOKEN]=Ze,sn[Jt][Tt.END_TAG_TOKEN]=et,sn[Jt][Tt.EOF_TOKEN]=we,sn[Xt]=Object.create(null),sn[Xt][Tt.CHARACTER_TOKEN]=h,sn[Xt][Tt.NULL_CHARACTER_TOKEN]=c,sn[Xt][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[Xt][Tt.COMMENT_TOKEN]=f,sn[Xt][Tt.DOCTYPE_TOKEN]=c,sn[Xt][Tt.START_TAG_TOKEN]=tt,sn[Xt][Tt.END_TAG_TOKEN]=nt,sn[Xt][Tt.EOF_TOKEN]=we,sn[Qt]=Object.create(null),sn[Qt][Tt.CHARACTER_TOKEN]=D,sn[Qt][Tt.NULL_CHARACTER_TOKEN]=c,sn[Qt][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[Qt][Tt.COMMENT_TOKEN]=f,sn[Qt][Tt.DOCTYPE_TOKEN]=c,sn[Qt][Tt.START_TAG_TOKEN]=rt,sn[Qt][Tt.END_TAG_TOKEN]=ot,sn[Qt][Tt.EOF_TOKEN]=it,sn[Zt]=Object.create(null),sn[Zt][Tt.CHARACTER_TOKEN]=sn[Zt][Tt.NULL_CHARACTER_TOKEN]=ut,sn[Zt][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[Zt][Tt.COMMENT_TOKEN]=p,sn[Zt][Tt.DOCTYPE_TOKEN]=c,sn[Zt][Tt.START_TAG_TOKEN]=at,sn[Zt][Tt.END_TAG_TOKEN]=st,sn[Zt][Tt.EOF_TOKEN]=m,sn[en]=Object.create(null),sn[en][Tt.CHARACTER_TOKEN]=sn[en][Tt.NULL_CHARACTER_TOKEN]=c,sn[en][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[en][Tt.COMMENT_TOKEN]=f,sn[en][Tt.DOCTYPE_TOKEN]=c,sn[en][Tt.START_TAG_TOKEN]=lt,sn[en][Tt.END_TAG_TOKEN]=ct,sn[en][Tt.EOF_TOKEN]=m,sn[tn]=Object.create(null),sn[tn][Tt.CHARACTER_TOKEN]=sn[tn][Tt.NULL_CHARACTER_TOKEN]=c,sn[tn][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[tn][Tt.COMMENT_TOKEN]=f,sn[tn][Tt.DOCTYPE_TOKEN]=c,sn[tn][Tt.START_TAG_TOKEN]=ft,sn[tn][Tt.END_TAG_TOKEN]=pt,sn[tn][Tt.EOF_TOKEN]=m,sn[nn]=Object.create(null),sn[nn][Tt.CHARACTER_TOKEN]=ht,sn[nn][Tt.NULL_CHARACTER_TOKEN]=ht,sn[nn][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[nn][Tt.COMMENT_TOKEN]=d,sn[nn][Tt.DOCTYPE_TOKEN]=c,sn[nn][Tt.START_TAG_TOKEN]=dt,sn[nn][Tt.END_TAG_TOKEN]=ht,sn[nn][Tt.EOF_TOKEN]=m,sn[rn]=Object.create(null),sn[rn][Tt.CHARACTER_TOKEN]=sn[rn][Tt.NULL_CHARACTER_TOKEN]=c,sn[rn][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[rn][Tt.COMMENT_TOKEN]=d,sn[rn][Tt.DOCTYPE_TOKEN]=c,sn[rn][Tt.START_TAG_TOKEN]=mt,sn[rn][Tt.END_TAG_TOKEN]=c,sn[rn][Tt.EOF_TOKEN]=m;var un=e.exports=function(e){this.options=xt(Mt,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.locationInfo&&new kt(this)};un.prototype.parse=function(e){var t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t},un.prototype.parseFragment=function(e,t){t||(t=this.treeAdapter.createElement(Nt.TEMPLATE,Dt.HTML,[]));var n=this.treeAdapter.createElement("documentmock",Dt.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===Nt.TEMPLATE&&this._pushTmplInsertionMode(Qt),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);var r=this.treeAdapter.getFirstChild(n),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,o),o},un.prototype._bootstrap=function(e,t){this.tokenizer=new Tt(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new _t(this.document,this.treeAdapter),this.activeFormattingElements=new Et(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1},un.prototype._runParsingLoop=function(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();var t=this.tokenizer.getNextToken();if(t.type===Tt.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===Tt.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}},un.prototype.runParsingLoopForCurrentChunk=function(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){var n=this.pendingScript;return this.pendingScript=null,void t(n)}e&&e()},un.prototype._setupTokenizerCDATAMode=function(){var e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==Dt.HTML&&!this._isIntegrationPoint(e)},un.prototype._switchToTextParsing=function(e,t){this._insertElement(e,Dt.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=zt},un.prototype.switchToPlaintextParsing=function(){this.insertionMode=zt,this.originalInsertionMode=Ut,this.tokenizer.state=Tt.MODE.PLAINTEXT},un.prototype._getAdjustedCurrentElement=function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current},un.prototype._findFormInFragmentContext=function(){var e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===Nt.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)},un.prototype._initTokenizerForFragmentParsing=function(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Dt.HTML){var e=this.treeAdapter.getTagName(this.fragmentContext);e===Nt.TITLE||e===Nt.TEXTAREA?this.tokenizer.state=Tt.MODE.RCDATA:e===Nt.STYLE||e===Nt.XMP||e===Nt.IFRAME||e===Nt.NOEMBED||e===Nt.NOFRAMES||e===Nt.NOSCRIPT?this.tokenizer.state=Tt.MODE.RAWTEXT:e===Nt.SCRIPT?this.tokenizer.state=Tt.MODE.SCRIPT_DATA:e===Nt.PLAINTEXT&&(this.tokenizer.state=Tt.MODE.PLAINTEXT)}},un.prototype._setDocumentType=function(e){this.treeAdapter.setDocumentType(this.document,e.name,e.publicId,e.systemId)},un.prototype._attachElementToTree=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}},un.prototype._appendElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)},un.prototype._insertElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)},un.prototype._insertFakeElement=function(e){var t=this.treeAdapter.createElement(e,Dt.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)},un.prototype._insertTemplate=function(e){var t=this.treeAdapter.createElement(e.tagName,Dt.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)},un.prototype._insertFakeRootElement=function(){var e=this.treeAdapter.createElement(Nt.HTML,Dt.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)},un.prototype._appendCommentNode=function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)},un.prototype._insertCharacters=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}},un.prototype._adoptNodes=function(e,t){for(;;){var n=this.treeAdapter.getFirstChild(e);if(!n)break;this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}},un.prototype._shouldProcessTokenInForeignContent=function(e){var t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;var n=this.treeAdapter.getNamespaceURI(t);if(n===Dt.HTML)return!1;if(this.treeAdapter.getTagName(t)===Nt.ANNOTATION_XML&&n===Dt.MATHML&&e.type===Tt.START_TAG_TOKEN&&e.tagName===Nt.SVG)return!1;var r=e.type===Tt.CHARACTER_TOKEN||e.type===Tt.NULL_CHARACTER_TOKEN||e.type===Tt.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===Tt.START_TAG_TOKEN&&e.tagName!==Nt.MGLYPH&&e.tagName!==Nt.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,Dt.MATHML))&&(e.type!==Tt.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,Dt.HTML))&&e.type!==Tt.EOF_TOKEN},un.prototype._processToken=function(e){sn[this.insertionMode][e.type](this,e)},un.prototype._processTokenInBodyMode=function(e){sn[Ut][e.type](this,e)},un.prototype._processTokenInForeignContent=function(e){e.type===Tt.CHARACTER_TOKEN?vt(this,e):e.type===Tt.NULL_CHARACTER_TOKEN?gt(this,e):e.type===Tt.WHITESPACE_CHARACTER_TOKEN?h(this,e):e.type===Tt.COMMENT_TOKEN?f(this,e):e.type===Tt.START_TAG_TOKEN?yt(this,e):e.type===Tt.END_TAG_TOKEN&&bt(this,e)},un.prototype._processInputToken=function(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e)},un.prototype._isIntegrationPoint=function(e,t){var n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),o=this.treeAdapter.getAttrList(e);return At.isIntegrationPoint(n,r,o,t)},un.prototype._reconstructActiveFormattingElements=function(){var e=this.activeFormattingElements.length;if(e){var t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===Et.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(var r=t;r=0;e--){var n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));var r=this.treeAdapter.getTagName(n),o=on[r];if(o){this.insertionMode=o;break}if(!(t||r!==Nt.TD&&r!==Nt.TH)){this.insertionMode=$t;break}if(!t&&r===Nt.HEAD){this.insertionMode=Ft;break}if(r===Nt.SELECT){this._resetInsertionModeForSelect(e);break}if(r===Nt.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===Nt.HTML){this.insertionMode=this.headElement?Ht:jt;break}if(t){this.insertionMode=Ut;break}}},un.prototype._resetInsertionModeForSelect=function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.items[t],r=this.treeAdapter.getTagName(n);if(r===Nt.TEMPLATE)break;if(r===Nt.TABLE)return void(this.insertionMode=Xt)}this.insertionMode=Jt},un.prototype._pushTmplInsertionMode=function(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e},un.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]},un.prototype._isElementCausesFosterParenting=function(e){var t=this.treeAdapter.getTagName(e);return t===Nt.TABLE||t===Nt.TBODY||t===Nt.TFOOT||t===Nt.THEAD||t===Nt.TR},un.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},un.prototype._findFosterParentingLocation=function(){for(var e={parent:null,beforeElement:null},t=this.openElements.stackTop;t>=0;t--){var n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),o=this.treeAdapter.getNamespaceURI(n);if(r===Nt.TEMPLATE&&o===Dt.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===Nt.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e},un.prototype._fosterParentElement=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)},un.prototype._fosterParentText=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)},un.prototype._isSpecialElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return St.SPECIAL_ELEMENTS[n][t]}},function(e,t,n){"use strict";function r(e,t){return e>=55296&&e<=56319&&t>=56320&&t<=57343}function o(e,t){return 1024*(e-55296)+9216+t}var i=n(74),a=i.CODE_POINTS,s=e.exports=function(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536};s.prototype.dropParsedChunk=function(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])},s.prototype._addGap=function(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos},s.prototype._processHighRangeCodePoint=function(e){if(this.pos!==this.lastCharPos){var t=this.html.charCodeAt(this.pos+1);r(e,t)&&(this.pos++,e=o(e,t),this._addGap())}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,a.EOF;return e},s.prototype.write=function(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t},s.prototype.insertHtmlAtCurrentPos=function(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1},s.prototype.advance=function(){if(++this.pos>this.lastCharPos)return this.lastChunkWritten||(this.endOfChunkHit=!0),a.EOF;var e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===a.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===a.CARRIAGE_RETURN?(this.skipNextNewLine=!0,a.LINE_FEED):(this.skipNextNewLine=!1,e>=55296?this._processHighRangeCodePoint(e):e)},s.prototype.retreat=function(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},function(e,t,n){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},function(e,t,n){"use strict";function r(e){switch(e.length){case 1:return e===a.P;case 2:return e===a.RB||e===a.RP||e===a.RT||e===a.DD||e===a.DT||e===a.LI;case 3:return e===a.RTC;case 6:return e===a.OPTION;case 8:return e===a.OPTGROUP||e===a.MENUITEM}return!1}function o(e,t){switch(e.length){case 2:if(e===a.TD||e===a.TH)return t===s.HTML;if(e===a.MI||e===a.MO||e===a.MN||e===a.MS)return t===s.MATHML;break;case 4:if(e===a.HTML)return t===s.HTML;if(e===a.DESC)return t===s.SVG;break;case 5:if(e===a.TABLE)return t===s.HTML;if(e===a.MTEXT)return t===s.MATHML;if(e===a.TITLE)return t===s.SVG;break;case 6:return(e===a.APPLET||e===a.OBJECT)&&t===s.HTML;case 7:return(e===a.CAPTION||e===a.MARQUEE)&&t===s.HTML;case 8:return e===a.TEMPLATE&&t===s.HTML;case 13:return e===a.FOREIGN_OBJECT&&t===s.SVG;case 14:return e===a.ANNOTATION_XML&&t===s.MATHML}return!1}var i=n(37),a=i.TAG_NAMES,s=i.NAMESPACES,u=e.exports=function(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t};u.prototype._indexOf=function(e){for(var t=-1,n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t},u.prototype._isInTemplate=function(){return this.currentTagName===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===s.HTML},u.prototype._updateCurrentElement=function(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null},u.prototype.push=function(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++},u.prototype.pop=function(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()},u.prototype.replace=function(e,t){var n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()},u.prototype.insertAfter=function(e,t){var n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()},u.prototype.popUntilTagNamePopped=function(e){for(;this.stackTop>-1;){var t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===s.HTML)break}},u.prototype.popUntilElementPopped=function(e){for(;this.stackTop>-1;){var t=this.current;if(this.pop(),t===e)break}},u.prototype.popUntilNumberedHeaderPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===a.H1||e===a.H2||e===a.H3||e===a.H4||e===a.H5||e===a.H6&&t===s.HTML)break}},u.prototype.popUntilTableCellPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===a.TD||e===a.TH&&t===s.HTML)break}},u.prototype.popAllUpToHtmlElement=function(){this.stackTop=0,this._updateCurrentElement()},u.prototype.clearBackToTableContext=function(){for(;this.currentTagName!==a.TABLE&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop()},u.prototype.clearBackToTableBodyContext=function(){for(;this.currentTagName!==a.TBODY&&this.currentTagName!==a.TFOOT&&this.currentTagName!==a.THEAD&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop()},u.prototype.clearBackToTableRowContext=function(){for(;this.currentTagName!==a.TR&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop()},u.prototype.remove=function(e){for(var t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}},u.prototype.tryPeekProperlyNestedBodyElement=function(){var e=this.items[1];return e&&this.treeAdapter.getTagName(e)===a.BODY?e:null},u.prototype.contains=function(e){return this._indexOf(e)>-1},u.prototype.getCommonAncestor=function(e){var t=this._indexOf(e);return--t>=0?this.items[t]:null},u.prototype.isRootHtmlElementCurrent=function(){return 0===this.stackTop&&this.currentTagName===a.HTML},u.prototype.hasInScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===s.HTML)return!0;if(o(n,r))return!1}return!0},u.prototype.hasNumberedHeaderInScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===a.H1||t===a.H2||t===a.H3||t===a.H4||t===a.H5||t===a.H6)&&n===s.HTML)return!0;if(o(t,n))return!1}return!0},u.prototype.hasInListItemScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===s.HTML)return!0;if((n===a.UL||n===a.OL)&&r===s.HTML||o(n,r))return!1}return!0},u.prototype.hasInButtonScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===s.HTML)return!0;if(n===a.BUTTON&&r===s.HTML||o(n,r))return!1}return!0},u.prototype.hasInTableScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===s.HTML){if(n===e)return!0;if(n===a.TABLE||n===a.TEMPLATE||n===a.HTML)return!1}}return!0},u.prototype.hasTableBodyContextInTableScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===s.HTML){if(t===a.TBODY||t===a.THEAD||t===a.TFOOT)return!0;if(t===a.TABLE||t===a.HTML)return!1}}return!0},u.prototype.hasInSelectScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===s.HTML){if(n===e)return!0;if(n!==a.OPTION&&n!==a.OPTGROUP)return!1}}return!0},u.prototype.generateImpliedEndTags=function(){for(;r(this.currentTagName);)this.pop()},u.prototype.generateImpliedEndTagsWithExclusion=function(e){for(;r(this.currentTagName)&&this.currentTagName!==e;)this.pop()}},function(e,t,n){"use strict";var r=e.exports=function(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null};r.MARKER_ENTRY="MARKER_ENTRY",r.ELEMENT_ENTRY="ELEMENT_ENTRY",r.prototype._getNoahArkConditionCandidates=function(e){var t=[];if(this.length>=3)for(var n=this.treeAdapter.getAttrList(e).length,o=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e),a=this.length-1;a>=0;a--){var s=this.entries[a];if(s.type===r.MARKER_ENTRY)break;var u=s.element,l=this.treeAdapter.getAttrList(u),c=this.treeAdapter.getTagName(u)===o&&this.treeAdapter.getNamespaceURI(u)===i&&l.length===n;c&&t.push({idx:a,attrs:l})}return t.length<3?[]:t},r.prototype._ensureNoahArkCondition=function(e){var t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){for(var r=this.treeAdapter.getAttrList(e),o=r.length,i=Object.create(null),a=0;a=2;a--)this.entries.splice(t[a].idx,1),this.length--}},r.prototype.insertMarker=function(){this.entries.push({type:r.MARKER_ENTRY}),this.length++},r.prototype.pushElement=function(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:r.ELEMENT_ENTRY,element:e,token:t}),this.length++},r.prototype.insertElementAfterBookmark=function(e,t){for(var n=this.length-1;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:r.ELEMENT_ENTRY,element:e,token:t}),this.length++},r.prototype.removeEntry=function(e){for(var t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}},r.prototype.clearToLastMarker=function(){for(;this.length;){var e=this.entries.pop();if(this.length--,e.type===r.MARKER_ENTRY)break}},r.prototype.getElementEntryInScopeWithTagName=function(e){for(var t=this.length-1;t>=0;t--){var n=this.entries[t];if(n.type===r.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null},r.prototype.getElementEntry=function(e){for(var t=this.length-1;t>=0;t--){var n=this.entries[t];if(n.type===r.ELEMENT_ENTRY&&n.element===e)return n}return null}},function(e,t,n){"use strict";var r=n(75),o=n(73),i=n(677),a=n(231),s=n(680),u=n(37),l=n(76).inherits,c=u.TAG_NAMES,f=e.exports=function(e){r.call(this,e),this.parser=e,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null};l(f,r),f.prototype._setStartLocation=function(e){this.lastStartTagToken?(e.__location=Object.create(this.lastStartTagToken.location),e.__location.startTag=this.lastStartTagToken.location):e.__location=null},f.prototype._setEndLocation=function(e,t){var n=e.__location;if(n)if(t.location){var r=t.location,i=this.parser.treeAdapter.getTagName(e),a=t.type===o.END_TAG_TOKEN&&i===t.tagName;a?(n.endTag=Object.create(r),n.endOffset=r.endOffset):n.endOffset=r.startOffset}else t.type===o.EOF_TOKEN&&(n.endOffset=this.posTracker.offset)},f.prototype._getOverriddenMethods=function(e,t){return{_bootstrap:function(n,r){t._bootstrap.call(this,n,r),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null,e.posTracker=new a(this.tokenizer.preprocessor),new i(this.tokenizer),new s(this.openElements,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop:function(n){t._runParsingLoop.call(this,n);for(var r=this.openElements.stackTop;r>=0;r--)e._setEndLocation(this.openElements.items[r],e.currentToken)},_processTokenInForeignContent:function(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken:function(n){if(e.currentToken=n,t._processToken.call(this,n),n.type===o.END_TAG_TOKEN&&(n.tagName===c.HTML||n.tagName===c.BODY&&this.openElements.hasInScope(c.BODY)))for(var r=this.openElements.stackTop;r>=0;r--){var i=this.openElements.items[r];if(this.treeAdapter.getTagName(i)===n.tagName){e._setEndLocation(i,n);break}}},_setDocumentType:function(e){t._setDocumentType.call(this,e);for(var n=this.treeAdapter.getChildNodes(this.document),r=n.length,o=0;o0;n--)e.onItemPop(this.items[n]);t.popAllUpToHtmlElement.call(this)},remove:function(n){e.onItemPop(this.current),t.remove.call(this,n)}}}},function(e,t,n){"use strict";var r=n(37).DOCUMENT_MODE;t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};var o=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){var r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){for(var o=null,a=0;a-1)return i.QUIRKS;var r=null===n?s:a;if(o(t,r))return i.QUIRKS;if(r=null===n?l:c,o(t,r))return i.LIMITED_QUIRKS}return i.NO_QUIRKS},t.serializeContent=function(e,t,n){var o="!DOCTYPE ";return e&&(o+=e),null!==t?o+=" PUBLIC "+r(t):null!==n&&(o+=" SYSTEM"),null!==n&&(o+=" "+r(n)),o}},function(e,t,n){"use strict";function r(e,t){return t===u.MATHML&&(e===s.MI||e===s.MO||e===s.MN||e===s.MS||e===s.MTEXT)}function o(e,t,n){if(t===u.MATHML&&e===s.ANNOTATION_XML)for(var r=0;r0&&!r.call(e,0))for(var d=0;d0)for(var m=0;m=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,t,o){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a","="],c=l.concat("\0",s,u,"<"),f=[s,u,"`"],p=["&"," ","\t","\n","\r","\f",">"],d=p.concat("\0",s,u,"<","=","`"),h=["&",u],m=h.concat("\0"),g=["&",s],v=g.concat("\0")},function(e,t,n){"use strict";t.opening=n(702),t.closing=n(241)},function(e,t,n){"use strict";function r(e){var t=f(e);return!t||!u("comment",t)}function o(e){for(var t,n,r=e.children,o=r.length,i={},a=-1;++a",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"}},function(e,t){e.exports=["cent","copy","divide","gt","lt","not","para","times"]},function(e,t,n){"use strict";function r(e,t,n,r){var i=t.tagName,a=m(e,"template"===i?t.content:t),s=-1!==e.voids.indexOf(i.toLowerCase()),u=o(e,t.properties),l=e.omit,c="";return s=!a&&s,!u&&l&&l.opening(t,n,r)||(c=E+i+(u?y+u:v),s&&e.close&&(e.tightClose&&u.charAt(u.length-1)!==w||(c+=y),c+=w),c+=k),c+=a,s||l&&l.closing(t,n,r)||(c+=E+w+i+k),c}function o(e,t){var n,r,o,a,s,u,l=[];for(n in t)null!=(r=t[n])&&(o=i(e,n,r))&&l.push(o);for(a=l.length,s=-1;++sh(n,s)&&(a=s),n=p(n,u(i,{subset:a===T?e.SINGLE_QUOTED:e.DOUBLE_QUOTED,attribute:!0})),n=a+n+a),n=n?_+n:n),n}var u=n(8),l=n(122).stringify,c=n(123).stringify,f=n(77),p=n(125),d=n(232),h=n(246),m=n(244);e.exports=r;var g="data",v="",y=" ",b='"',T="'",_="=",E="<",k=">",w="/"},function(e,t,n){"use strict";function r(e,t){var n=t.public,r=t.system,i=""):i+">"}function o(e){var t=-1===e.indexOf('"')?'"':"'";return t+e+t}e.exports=r},function(e,t,n){"use strict";function r(e,t){return"\x3c!--"+t.value+"--\x3e"}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e.dangerous?t.value:o(e,t)}var o=n(245);e.exports=r},function(e,t,n){"use strict";e.exports=n(712)},function(e,t,n){"use strict";function r(e,t){var n,r={type:"root",children:[]};return e&&"object"===typeof e&&e.type?(n=o(h(m,t||{}),e,[]),n?"length"in n?1===n.length?n[0]:(r.children=n,r):n:r):r}function o(e,t,n){var r,o,i,a=t&&t.type,s={type:t.type},u=!0;if(g.call(v,a)){r=h(v[a],v["*"]);for(i in r)o=r[i](e,t[i],t,n),!1===o?(u=!1,s[i]=t[i]):null!==o&&void 0!==o&&(s[i]=o)}else u=!1;return u?s:s.children&&0!==s.children.length&&-1===e.strip.indexOf(s.tagName)?s.children:null}function i(e,t,n,r){var i,a=t||[],s=a.length||0,u=[],l=-1;for(r=r.concat(n.tagName);++ls||-1!==(s=t.indexOf("#"))&&i>s}function c(e,t,n,r){var o,i,a="string"===typeof t?t:null,s=e.ancestors;if(!a||"*"===a||-1===e.tagNames.indexOf(a))return!1;if(s=g.call(s,a)?s[a]:[],0!==s.length)for(o=s.length+1,i=-1;++i4&&"data"===e.slice(0,4).toLowerCase()}var h=n(8),m=n(247);e.exports=r;var g={}.hasOwnProperty,v={root:{children:i},element:{tagName:c,properties:a,children:i},text:{value:f},"*":{data:p,position:p}}},function(e,t,n){"use strict";function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||i(e)}function i(e){return e.$$typeof===d}function a(e){return Array.isArray(e)?[]:{}}function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(a(e),e,t):e}function u(e,t,n){return e.concat(t).map(function(e){return s(e,n)})}function l(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=s(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=c(e[o],t[o],n):r[o]=s(t[o],n)}),r}function c(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||f;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):l(e,t,n):s(t,n)}Object.defineProperty(t,"__esModule",{value:!0});var f=function(e){return r(e)&&!o(e)},p="function"===typeof Symbol&&Symbol.for,d=p?Symbol.for("react.element"):60103;c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var h=c;t.default=h},function(e,t){},function(e,t,n){!function(e){e(n(78),n(716),n(717))}(function(e){"use strict";e.defineMode("markdown",function(t,n){function r(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var o=e.getMode(t,n);return"null"==o.name?null:o}function o(e,t,n){return t.f=t.inline=n,n(e,t)}function i(e,t,n){return t.f=t.block=n,n(e,t)}function a(e){return!e||!/\S/.test(e.string)}function s(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==l){var n=_;if(!n){var r=e.innerMode(T,t.htmlState);n="xml"==r.mode.name&&null===r.state.tagStart&&!r.state.context&&r.state.tokenize.isInText}n&&(t.f=d,t.block=u,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function u(t,i){var s=t.column()===i.indentation,u=a(i.prevLine.stream),l=i.indentedCode,p=i.prevLine.hr,d=!1!==i.list,h=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var m=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,d)){for(i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,i.list=null;m=4&&(l||i.prevLine.fencedCodeEnd||i.prevLine.header||u))return t.skipToEnd(),i.indentedCode=!0,E.code;if(t.eatSpace())return null;if(s&&i.indentation<=h&&(b=t.match(A))&&b[1].length<=6)return i.quote=0,i.header=b[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,f(i);if(i.indentation<=h&&t.eat(">"))return i.quote=s?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),t.eatSpace(),f(i);if(!y&&!i.setext&&s&&i.indentation<=h&&(b=t.match(x))){var T=b[1]?"ol":"ul";return i.indentation=m+t.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),n.taskLists&&t.match(C,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+T]),f(i)}return s&&i.indentation<=h&&(b=t.match(N,!0))?(i.quote=0,i.fencedEndRE=new RegExp(b[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&r(b[2]),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=c,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,f(i)):i.setext||!(g&&d||i.quote||!1!==i.list||i.code||y||D.test(t.string))&&(b=t.lookAhead(1))&&(b=b.match(O))?(i.setext?(i.header=i.setext,i.setext=0,t.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==b[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,f(i)):y?(t.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,E.hr):"["===t.peek()?o(t,i,v):o(t,i,i.inline)}function l(t,n){var r=T.token(t,n.htmlState);if(!_){var o=e.innerMode(T,n.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=d,n.block=u,n.htmlState=null)}return r}function c(e,t){var r=t.listStack[t.listStack.length-1]||0,o=t.indentation=e.quote?t.push(E.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(E.linkHref,"url"):(e.strong&&t.push(E.strong),e.em&&t.push(E.em),e.strikethrough&&t.push(E.strikethrough),e.emoji&&t.push(E.emoji),e.linkText&&t.push(E.linkText),e.code&&t.push(E.code),e.image&&t.push(E.image),e.imageAltText&&t.push(E.imageAltText,"link"),e.imageMarker&&t.push(E.imageMarker)),e.header&&t.push(E.header,E.header+"-"+e.header),e.quote&&(t.push(E.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(E.quote+"-"+e.quote):t.push(E.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var o=(e.listStack.length-1)%3;o?1===o?t.push(E.list2):t.push(E.list3):t.push(E.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function p(e,t){if(e.match(S,!0))return f(t)}function d(t,r){var o=r.text(t,r);if("undefined"!==typeof o)return o;if(r.list)return r.list=null,f(r);if(r.taskList){return" "===t.match(C,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,f(r)}if(r.taskOpen=!1,r.taskClosed=!1,r.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),f(r);var a=t.next();if(r.linkTitle){r.linkTitle=!1;var s=a;"("===a&&(s=")"),s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var u="^\\s*(?:[^"+s+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(t.match(new RegExp(u),!0))return E.linkHref}if("`"===a){var c=r.formatting;n.highlightFormatting&&(r.formatting="code"),t.eatWhile("`");var p=t.current().length;if(0!=r.code||r.quote&&1!=p){if(p==r.code){var g=f(r);return r.code=0,g}return r.formatting=c,f(r)}return r.code=p,f(r)}if(r.code)return f(r);if("\\"===a&&(t.next(),n.highlightFormatting)){var v=f(r),y=E.formatting+"-escape";return v?v+" "+y:y}if("!"===a&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,n.highlightFormatting&&(r.formatting="image"),f(r);if("["===a&&r.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,n.highlightFormatting&&(r.formatting="image"),f(r);if("]"===a&&r.imageAltText){n.highlightFormatting&&(r.formatting="image");var v=f(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=m,v}if("["===a&&!r.image)return r.linkText&&t.match(/^.*?\]/)?f(r):(r.linkText=!0,n.highlightFormatting&&(r.formatting="link"),f(r));if("]"===a&&r.linkText){n.highlightFormatting&&(r.formatting="link");var v=f(r);return r.linkText=!1,r.inline=r.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?m:d,v}if("<"===a&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=h,n.highlightFormatting&&(r.formatting="link");var v=f(r);return v?v+=" ":v="",v+E.linkInline}if("<"===a&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=h,n.highlightFormatting&&(r.formatting="link");var v=f(r);return v?v+=" ":v="",v+E.linkEmail}if(n.xml&&"<"===a&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var b=t.string.indexOf(">",t.pos);if(-1!=b){/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(t.string.substring(t.start,b))&&(r.md_inside=!0)}return t.backUp(1),r.htmlState=e.startState(T),i(t,r,l)}if(n.xml&&"<"===a&&t.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===a||"_"===a){for(var _=1,k=1==t.pos?" ":t.string.charAt(t.pos-2);_<3&&t.eat(a);)_++;var w=t.peek()||" ",x=!/\s/.test(w)&&(!I.test(w)||/\s/.test(k)||I.test(k)),A=!/\s/.test(k)&&(!I.test(k)||/\s/.test(w)||I.test(w)),O=null,S=null;if(_%2&&(r.em||!x||"*"!==a&&A&&!I.test(k)?r.em!=a||!A||"*"!==a&&x&&!I.test(w)||(O=!1):O=!0),_>1&&(r.strong||!x||"*"!==a&&A&&!I.test(k)?r.strong!=a||!A||"*"!==a&&x&&!I.test(w)||(S=!1):S=!0),null!=S||null!=O){n.highlightFormatting&&(r.formatting=null==O?"strong":null==S?"em":"strong em"),!0===O&&(r.em=a),!0===S&&(r.strong=a);var g=f(r);return!1===O&&(r.em=!1),!1===S&&(r.strong=!1),g}}else if(" "===a&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return f(r);t.backUp(1)}if(n.strikethrough)if("~"===a&&t.eatWhile(a)){if(r.strikethrough){n.highlightFormatting&&(r.formatting="strikethrough");var g=f(r);return r.strikethrough=!1,g}if(t.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),f(r)}else if(" "===a&&t.match(/^~~/,!0)){if(" "===t.peek())return f(r);t.backUp(2)}if(n.emoji&&":"===a&&t.match(/^[a-z_\d+-]+:/)){r.emoji=!0,n.highlightFormatting&&(r.formatting="emoji");var N=f(r);return r.emoji=!1,N}return" "===a&&(t.match(/^ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),f(r)}function h(e,t){if(">"===e.next()){t.f=t.inline=d,n.highlightFormatting&&(t.formatting="link");var r=f(t);return r?r+=" ":r="",r+E.linkInline}return e.match(/^[^>]+/,!0),E.linkInline}function m(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=g("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,f(t)):"error"}function g(e){return function(t,r){if(t.next()===e){r.f=r.inline=d,n.highlightFormatting&&(r.formatting="link-string");var o=f(r);return r.linkHref=!1,o}return t.match(M[e]),r.linkHref=!0,f(r)}}function v(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=y,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,f(t)):o(e,t,d)}function y(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=b,n.highlightFormatting&&(t.formatting="link");var r=f(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),E.linkText}function b(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=d,E.linkHref+" url")}var T=e.getMode(t,"text/html"),_="null"==T.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var E={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var k in E)E.hasOwnProperty(k)&&n.tokenTypeOverrides[k]&&(E[k]=n.tokenTypeOverrides[k]);var w=/^([*\-_])(?:\s*\1){2,}\s*$/,x=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,C=/^\[(x| )\](?=\s)/i,A=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,O=/^ *(?:\={1,}|-{1,})\s*$/,S=/^[^#!\[\]*_\\<>` "'(~:]+/,N=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,D=/^\s*\[[^\]]+?\]:.*$/,I=/[!\"#$%&\'()*+,\-\.\/:;<=>?@\[\\\]^_`{|}~\u2014]/,M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/},L={startState:function(){return{f:u,prevLine:{stream:null},thisLine:{stream:null},block:u,htmlState:null,indentation:0,inline:d,text:p,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(T,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return s(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=l)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==l?{state:e.htmlState,mode:T}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:L}},indent:function(t,n,r){return t.block==l&&T.indent?T.indent(t.htmlState,n,r):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},blankLine:s,getType:f,closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return L},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")})},function(e,t,n){!function(e){e(n(78))}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,o){function i(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(u("atom","]]>")):null:e.match("--")?n(u("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(l(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=u("meta","?>"),"meta"):(C=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=i,C=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return C="equals",null;if("<"==n){t.tokenize=i,t.state=d,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=s(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function u(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=i;break}n.next()}return e}}function l(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=l(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=i;break}return n.tokenize=l(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(k.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function f(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!k.contextGrabbers.hasOwnProperty(n)||!k.contextGrabbers[n].hasOwnProperty(t))return;f(e)}}function d(e,t,n){return"openTag"==e?(n.tagStart=t.column(),h):"closeTag"==e?m:d}function h(e,t,n){return"word"==e?(n.tagName=t.current(),A="tag",y):k.allowMissingTagName&&"endTag"==e?(A="tag bracket",y(e,t,n)):(A="error",h)}function m(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&k.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==r||!1===k.matchClosing?(A="tag",g):(A="tag error",v)}return k.allowMissingTagName&&"endTag"==e?(A="tag bracket",g(e,t,n)):(A="error",v)}function g(e,t,n){return"endTag"!=e?(A="error",g):(f(n),d)}function v(e,t,n){return A="error",g(e,t,n)}function y(e,t,n){if("word"==e)return A="attribute",b;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||k.autoSelfClosers.hasOwnProperty(r)?p(n,r):(p(n,r),n.context=new c(n,r,o==n.indented)),d}return A="error",y}function b(e,t,n){return"equals"==e?T:(k.allowMissing||(A="error"),y(e,t,n))}function T(e,t,n){return"string"==e?_:"word"==e&&k.allowUnquoted?(A="string",y):(A="error",y(e,t,n))}function _(e,t,n){return"string"==e?_:y(e,t,n)}var E=r.indentUnit,k={},w=o.htmlMode?t:n;for(var x in w)k[x]=w[x];for(var x in o)k[x]=o[x];var C,A;return i.isInText=!0,{startState:function(e){var t={tokenize:i,state:d,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;C=null;var n=t.tokenize(e,t);return(n||C)&&"comment"!=n&&(A=null,t.state=t.state(C||n,e,t),A&&(n="error"==A?n+" error":A)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+E;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=i)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==k.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+E*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(e){e.state==T&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},function(e,t,n){!function(e){e(n(78))}(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t-1&&t.substring(o+1,t.length);if(i)return e.findModeByExtension(i)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n-]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/]/,number:/(?:\b0x[\da-f]+|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?)[ful]*/i}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+(?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(?:<.+?>|("|')(?:\\?.)+?\2)/,lookbehind:!0},directive:{pattern:/(#\s*)\b(?:define|defined|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,lookbehind:!0,alias:"keyword"}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c["class-name"],delete Prism.languages.c.boolean},function(e,t){Prism.languages.cpp=Prism.languages.extend("c",{keyword:/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,boolean:/\b(?:true|false)\b/,operator:/--?|\+\+?|!=?|<{1,2}=?|>{1,2}=?|->|:{1,2}|={1,2}|\^|~|%|&{1,2}|\|\|?|\?|\*|\/|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/}),Prism.languages.insertBefore("cpp","keyword",{"class-name":{pattern:/(class\s+)\w+/i,lookbehind:!0}}),Prism.languages.insertBefore("cpp","string",{"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}})},function(e,t){Prism.languages.csharp=Prism.languages.extend("clike",{keyword:/\b(?:abstract|add|alias|as|ascending|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|descending|do|double|dynamic|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|from|get|global|goto|group|if|implicit|in|int|interface|internal|into|is|join|let|lock|long|namespace|new|null|object|operator|orderby|out|override|params|partial|private|protected|public|readonly|ref|remove|return|sbyte|sealed|select|set|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|value|var|virtual|void|volatile|where|while|yield)\b/,string:[{pattern:/@("|')(?:\1\1|\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*?\1/,greedy:!0}],"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=\s+\w+)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|interface|new)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)f?/i}),Prism.languages.insertBefore("csharp","class-name",{"generic-method":{pattern:/\w+\s*<[^>\r\n]+?>\s*(?=\()/,inside:{function:/^\w+/,"class-name":{pattern:/\b[A-Z]\w*(?:\.\w+)*\b/,inside:{punctuation:/\./}},keyword:Prism.languages.csharp.keyword,punctuation:/[<>(),.:]/}},preprocessor:{pattern:/(^\s*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(\s*#)\b(?:define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}}),Prism.languages.dotnet=Prism.languages.csharp},function(e,t){Prism.languages.java=Prism.languages.extend("clike",{keyword:/\b(?:abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/,number:/\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp-]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?[df]?/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,lookbehind:!0}}),Prism.languages.insertBefore("java","function",{annotation:{alias:"punctuation",pattern:/(^|[^.])@\w+/,lookbehind:!0}}),Prism.languages.insertBefore("java","class-name",{generics:{pattern:/<\s*\w+(?:\.\w+)?(?:\s*,\s*\w+(?:\.\w+)?)*>/i,alias:"function",inside:{keyword:Prism.languages.java.keyword,punctuation:/[<>(),.:]/}}})},function(e,t){Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"triple-quoted-string":{pattern:/("""|''')[\s\S]+?\1/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},keyword:/\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/,punctuation:/[{}[\];(),.:]/}},function(e,t){Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\])*\2/,greedy:!0,lookbehind:!0},variable:/@[\w.$]+|@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURNS?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+\.?\d*|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|IN|LIKE|NOT|OR|IS|DIV|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},function(e,t){Prism.languages.swift=Prism.languages.extend("clike",{string:{pattern:/("|')(\\(?:\((?:[^()]|\([^)]+\))+\)|\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/\\\((?:[^()]|\([^)]+\))+\)/,inside:{delimiter:{pattern:/^\\\(|\)$/,alias:"variable"}}}}},keyword:/\b(?:as|associativity|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extension|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix|precedence|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|Self|set|static|struct|subscript|super|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__|LINE__))\b/,number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,constant:/\b(?:nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,atrule:/@\b(?:IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\b/,builtin:/\b(?:[A-Z]\S+|abs|advance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|distance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?|numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Value)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugString|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|Unsafe(?:MutablePointers?|Pointers?)|VaList))\b/}),Prism.languages.swift.string.inside.interpolation.inside.rest=Prism.languages.swift},function(e,t){},function(e,t){},function(e,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var e=[],t={},n=function(){};Prism.plugins.toolbar={};var r=Prism.plugins.toolbar.registerButton=function(n,r){var o;o="function"==typeof r?r:function(e){var t;return"function"==typeof r.onClick?(t=document.createElement("button"),t.type="button",t.addEventListener("click",function(){r.onClick.call(this,e)})):"string"==typeof r.url?(t=document.createElement("a"),t.href=r.url):t=document.createElement("span"),t.textContent=r.text,t},e.push(t[n]=o)},o=Prism.plugins.toolbar.hook=function(r){var o=r.element.parentNode;if(o&&/pre/i.test(o.nodeName)&&!o.parentNode.classList.contains("code-toolbar")){var i=document.createElement("div");i.classList.add("code-toolbar"),o.parentNode.insertBefore(i,o),i.appendChild(o);var a=document.createElement("div");a.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(e=document.body.getAttribute("data-toolbar-order").split(",").map(function(e){return t[e]||n})),e.forEach(function(e){var t=e(r);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),a.appendChild(n)}}),i.appendChild(a)}};r("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,r,o=t.getAttribute("data-label");try{r=document.querySelector("template#"+o)}catch(e){}return r?n=r.content:(t.hasAttribute("data-url")?(n=document.createElement("a"),n.href=t.getAttribute("data-url")):n=document.createElement("span"),n.textContent=o),n}}),Prism.hooks.add("complete",o)}}()},function(e,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){if(!Prism.plugins.toolbar)return void console.warn("Show Languages plugin loaded before Toolbar plugin.");var e={html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",css:"CSS",clike:"C-like",javascript:"JavaScript",abap:"ABAP",actionscript:"ActionScript",apacheconf:"Apache Configuration",apl:"APL",applescript:"AppleScript",arff:"ARFF",asciidoc:"AsciiDoc",asm6502:"6502 Assembly",aspnet:"ASP.NET (C#)",autohotkey:"AutoHotkey",autoit:"AutoIt",basic:"BASIC",csharp:"C#",cpp:"C++",coffeescript:"CoffeeScript",csp:"Content-Security-Policy","css-extras":"CSS Extras",django:"Django/Jinja2",erb:"ERB",fsharp:"F#",gedcom:"GEDCOM",glsl:"GLSL",graphql:"GraphQL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam",inform7:"Inform 7",json:"JSON",latex:"LaTeX",livescript:"LiveScript",lolcode:"LOLCODE","markup-templating":"Markup templating",matlab:"MATLAB",mel:"MEL",n4js:"N4JS",nasm:"NASM",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",parigp:"PARI/GP",objectpascal:"Object Pascal",php:"PHP","php-extras":"PHP Extras",plsql:"PL/SQL",powershell:"PowerShell",properties:".properties",protobuf:"Protocol Buffers",q:"Q (kdb+ database)",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rest:"reST (reStructuredText)",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)",sql:"SQL",soy:"Soy (Closure Template)",tap:"TAP",tt2:"Template Toolkit 2",typescript:"TypeScript",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",wasm:"WebAssembly",wiki:"Wiki markup",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML"};Prism.plugins.toolbar.registerButton("show-language",function(t){var n=t.element.parentNode;if(n&&/pre/i.test(n.nodeName)){var r=n.getAttribute("data-language")||e[t.language]||t.language&&t.language.substring(0,1).toUpperCase()+t.language.substring(1);if(r){var o=document.createElement("span");return o.textContent=r,o}}})}}()},function(e,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var e="line-numbers",t=/\n(?!$)/g,n=function(e){var n=r(e),o=n["white-space"];if("pre-wrap"===o||"pre-line"===o){var i=e.querySelector("code"),a=e.querySelector(".line-numbers-rows"),s=e.querySelector(".line-numbers-sizer"),u=i.textContent.split(t);s||(s=document.createElement("span"),s.className="line-numbers-sizer",i.appendChild(s)),s.style.display="block",u.forEach(function(e,t){s.textContent=e||"\n";var n=s.getBoundingClientRect().height;a.children[t].style.height=n+"px"}),s.textContent="",s.style.display="none"}},r=function(e){return e?window.getComputedStyle?getComputedStyle(e):e.currentStyle||null:null};window.addEventListener("resize",function(){Array.prototype.forEach.call(document.querySelectorAll("pre."+e),n)}),Prism.hooks.add("complete",function(e){if(e.code){var r=e.element.parentNode,o=/\s*\bline-numbers\b\s*/;if(r&&/pre/i.test(r.nodeName)&&(o.test(r.className)||o.test(e.element.className))&&!e.element.querySelector(".line-numbers-rows")){o.test(e.element.className)&&(e.element.className=e.element.className.replace(o," ")),o.test(r.className)||(r.className+=" line-numbers");var i,a=e.code.match(t),s=a?a.length+1:1,u=new Array(s+1);u=u.join(""),i=document.createElement("span"),i.setAttribute("aria-hidden","true"),i.className="line-numbers-rows",i.innerHTML=u,r.hasAttribute("data-start")&&(r.style.counterReset="linenumber "+(parseInt(r.getAttribute("data-start"),10)-1)),e.element.appendChild(i),n(r),Prism.hooks.run("line-numbers",e)}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}),Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var r=t.querySelector(".line-numbers-rows"),o=parseInt(t.getAttribute("data-start"),10)||1,i=o+(r.children.length-1);o>n&&(n=o),n>i&&(n=i);var a=n-o;return r.children[a]}}}}}()},function(e,t){},function(e,t,n){"use strict";var r=n(739),o=n(780);n.d(t,"b",function(){return r.a}),n.d(t,"a",function(){return o.a})},function(e,t,n){"use strict";function r(e,t){switch(t){case"BOLD":return{type:"strong",children:[e]};case"ITALIC":return{type:"emphasis",children:[e]};case"CODE":return{type:"inlineCode",value:e.value};default:return console.log("unknown mark string: "+t),e}}function o(e){var t=[],n=!0,o=!1,i=void 0;try{for(var a,s=e.leaves[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value,l={type:"text",value:u.text},c=!0,f=!1,p=void 0;try{for(var d,h=u.marks[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){l=r(l,d.value.type)}}catch(e){f=!0,p=e}finally{try{!c&&h.return&&h.return()}finally{if(f)throw p}}t.push(l)}}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return t}function i(e,t){t instanceof Array?t.map(function(t){return e.push(t)}):void 0!==t&&e.push(t)}function a(e){var t=[],n=!0,r=!1,o=void 0;try{for(var a,u=e.nodes[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){i(t,s(a.value))}}catch(e){r=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw o}}return t}function s(e){if("block"==e.object){var t;switch(e.type){case"paragraph":return t=a(e),{type:"paragraph",children:t};case"header_one":return t=a(e),{type:"heading",depth:1,children:t};case"header_two":return t=a(e),{type:"heading",depth:2,children:t};case"header_three":return t=a(e),{type:"heading",depth:3,children:t};case"header_four":return t=a(e),{type:"heading",depth:4,children:t};case"header_five":return t=a(e),{type:"heading",depth:5,children:t};case"header_six":return t=a(e),{type:"heading",depth:6,children:t};case"hr":return{type:"thematicBreak"};case"ordered_list":t=a(e);var n=!1,r=!0,i=!1,s=void 0;try{for(var u,l=t[Symbol.iterator]();!(r=(u=l.next()).done);r=!0){if(1==u.value.loose){n=!0;break}}}catch(e){i=!0,s=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw s}}return{type:"list",ordered:!0,start:1,loose:n,children:t};case"unordered_list":t=a(e);var n=!1,c=!0,f=!1,p=void 0;try{for(var d,h=t[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){if(!0===d.value.loose){n=!0;break}}}catch(e){f=!0,p=e}finally{try{!c&&h.return&&h.return()}finally{if(f)throw p}}return{type:"list",ordered:!1,start:1,loose:n,children:t};case"list_item":t=a(e);var n=!1;return t&&(n=1!=t.length&&(2!=t.length||"list"!=t[1].type)),{type:"listItem",loose:n,checked:void 0!==e.data.checked?e.data.checked:null,children:t};case"code_block":return t=a(e),{type:"code",lang:e.data.syntax?e.data.syntax:null,value:t.join("")};case"code_line":return e.nodes[0].leaves[0].text+"\n";case"table":return t=a(e),{type:"table",align:e.data.align?e.data.align:null,children:t};case"table_row":return t=a(e),{type:"tableRow",children:t};case"table_cell":return t=a(e),{type:"tableCell",children:t};case"blockquote":return t=a(e),{type:"blockquote",children:t};case"html_block":return{type:"html",value:e.data.html};default:return t=a(e),{type:"paragraph",children:t}}}else{if("text"==e.object)return o(e);if("inline"!=e.object)return o(e);var t;switch(e.type){case"image":return{type:"image",alt:e.data.alt?e.data.alt:null,url:e.data.src,title:e.data.title?e.data.title:null};case"link":return t=a(e),{type:"link",url:e.data.href,title:e.data.title?e.data.title:null,children:t};case"html_block":return{type:"html",value:e.data.html};default:return o(e)}}}function u(e){var t=e.document,n=[],r=!0,o=!1,a=void 0;try{for(var u,l=t.nodes[Symbol.iterator]();!(r=(u=l.next()).done);r=!0){i(n,s(u.value))}}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}var c={type:"root",children:n};return f.stringify(c)}n.d(t,"a",function(){return u});var l=n(114),c=n(740),f=(n(120),l().use(c,{rule:"-",ruleSpaces:!1,listItemIndent:1,bullet:"*",commonmark:!0,fences:!0}))},function(e,t,n){"use strict";function r(e){var t=o(a);t.prototype.options=i(t.prototype.options,this.data("settings"),e),this.Compiler=t}var o=n(209),i=n(8),a=n(741);e.exports=r,r.Compiler=a},function(e,t,n){"use strict";function r(e,t){this.inLink=!1,this.inTable=!1,this.tree=e,this.file=t,this.options=o(this.options),this.setOptions({})}var o=n(8),i=n(210);e.exports=r;var a=r.prototype;a.enterLink=i("inLink",!1),a.enterTable=i("inTable",!1),a.enterLinkReference=n(742),a.options=n(252),a.setOptions=n(743),a.compile=n(746),a.visit=n(748),a.all=n(749),a.block=n(750),a.visitOrderedItems=n(751),a.visitUnorderedItems=n(752),a.visitors={root:n(753),text:n(754),heading:n(755),paragraph:n(756),blockquote:n(757),list:n(758),listItem:n(759),inlineCode:n(760),code:n(761),html:n(762),thematicBreak:n(763),strong:n(764),emphasis:n(765),break:n(766),delete:n(767),link:n(768),linkReference:n(769),imageReference:n(771),definition:n(772),image:n(773),footnote:n(774),footnoteReference:n(775),footnoteDefinition:n(776),table:n(777),tableCell:n(779)}},function(e,t,n){"use strict";function r(e,t){var n=e.encode,r=e.escape,i=e.enterLink();return"shortcut"!==t.referenceType&&"collapsed"!==t.referenceType?i:(e.escape=o,e.encode=o,function(){e.encode=n,e.escape=r,i()})}var o=n(251);e.exports=r},function(e,t,n){"use strict";function r(e){var t,n,r=this,i=r.options;if(null==e)e={};else{if("object"!==typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=c(e)}for(n in p)g[typeof p[n]](e,n,i[n],m[n]);return t=e.ruleRepetition,t&&t<3&&o(t,"options.ruleRepetition"),r.encode=l(String(e.entities)),r.escape=d(e),r.options=e,r}function o(e,t){throw new Error("Invalid value `"+e+"` for setting `"+t+"`")}function i(e,t,n){var r=e[t];null==r&&(r=n),"boolean"!==typeof r&&o(r,"options."+t),e[t]=r}function a(e,t,n){var r=e[t];null==r&&(r=n),isNaN(r)&&o(r,"options."+t),e[t]=r}function s(e,t,n,r){var i=e[t];null==i&&(i=n),i=String(i),i in r||o(i,"options."+t),e[t]=i}function u(e,t,n){var r=e[t];null==r&&(r=n),"function"!==typeof r&&o(r,"options."+t),e[t]=r}function l(e){function t(e){return f(e,n)}var n={};return"false"===e?h:("true"===e&&(n.useNamedReferences=!0),"escape"===e&&(n.escapeOnly=!0,n.useNamedReferences=!0),t)}var c=n(8),f=n(125),p=n(252),d=n(744),h=n(251);e.exports=r;var m={entities:{true:!0,false:!0,numbers:!0,escape:!0},bullet:{"*":!0,"-":!0,"+":!0},rule:{"-":!0,_:!0,"*":!0},listItemIndent:{tab:!0,mixed:!0,1:!0},emphasis:{_:!0,"*":!0},strong:{_:!0,"*":!0},fence:{"`":!0,"~":!0}},g={boolean:i,string:s,number:a,function:u}},function(e,t,n){"use strict";function r(e){function t(t,n,r){function h(e){return-1===I.indexOf(e)?m[e]:p+e}var g,v,y,b,T,_,E=this,k=e.gfm,w=e.commonmark,x=e.pedantic,C=w?[".",")"]:["."],A=r&&r.children,O=A&&A.indexOf(n),S=A&&A[O-1],N=A&&A[O+1],D=t.length,I=c(e),M=-1,L=[],P=L;for(g=S?i(S)&&/\n\s*$/.test(S.value):!r||"root"===r.type||"paragraph"===r.type;++M0||"]"===v&&E.inLink||k&&"~"===v&&"~"===t.charAt(M+1)||k&&"|"===v&&(E.inTable||o(t,M))||"_"===v&&M>0&&M"===v||"#"===v||-1!==d.indexOf(v))_=!0;else if(s(v)){for(T=M+1;T"+r.join("\n>")}e.exports=r},function(e,t,n){"use strict";function r(e){return this[o[e.ordered]](e)}e.exports=r;var o={true:"visitOrderedItems",false:"visitUnorderedItems"}},function(e,t,n){"use strict";function r(e,t,n,r){for(var s,u,l,c=this,f=c.options.listItemIndent,p=e.loose,d=e.children,h=d.length,m=[],g=-1;++g?@[\\\]^`{|}~_]/},function(e,t,n){"use strict";function r(e){return"!["+(this.encode(e.alt,e)||"")+"]"+o(e)}var o=n(256);e.exports=r},function(e,t,n){"use strict";function r(e){var t=o(e.url);return e.title&&(t+=" "+i(e.title)),"["+e.identifier+"]: "+t}var o=n(126),i=n(127);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=o(t.encode(e.url||"",e)),r=t.enterLink(),a=t.encode(t.escape(e.alt||"",e));return r(),e.title&&(n+=" "+i(t.encode(e.title,e))),"!["+a+"]("+n+")"}var o=n(126),i=n(127);e.exports=r},function(e,t,n){"use strict";function r(e){return"[^"+this.all(e).join("")+"]"}e.exports=r},function(e,t,n){"use strict";function r(e){return"[^"+e.identifier+"]"}e.exports=r},function(e,t,n){"use strict";function r(e){return"[^"+e.identifier.toLowerCase()+"]: "+this.all(e).join("\n\n"+o(" ",4))}var o=n(11);e.exports=r},function(e,t,n){"use strict";function r(e){for(var t,n,r=this,i=r.options,a=i.looseTable,s=i.spacedTable,u=i.paddedTable,l=i.stringLength,c=e.children,f=c.length,p=r.enterTable(),d=[];f--;)d[f]=r.all(c[f]);return p(),a?(t="",n=""):s?(t="| ",n=" |"):(t="|",n="|"),o(d,{align:e.align,pad:u,start:t,end:n,stringLength:l,delimiter:s?" | ":"|"})}var o=n(778);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r,l,E,k,w,x,C,A,O,S,N,D=t||{},I=D.delimiter,M=D.start,L=D.end,P=D.align,R=D.stringLength||i,B=0,j=-1,F=e.length,H=[];for(P=P?P.concat():[],null!==I&&void 0!==I||(I=T+b+T),null!==M&&void 0!==M||(M=b+T),null!==L&&void 0!==L||(L=T+b);++jB&&(B=E.length);++wH[w]&&(H[w]=x);for("string"===typeof P&&(P=a(B,P).split("")),w=-1;++wH[w]&&(H[w]=C);for(j=-1;++jg?O:g):O=H[w],n=P[w],A=n===f||n===h?y:v,A+=a(O-2,y),A+=n!==c&&n!==h?v:y,r[w]=A;l.splice(1,0,r.join(I))}return M+l.join(L+_+M)+L}function o(e){return null===e||void 0===e?"":String(e)}function i(e){return String(e).length}function a(e,t){return Array(e+1).join(t||T)}function s(e){var t=l.exec(e);return t?t.index+1:e.length}e.exports=r;var u=/\./,l=/\.[^.]*$/,c="l",f="r",p="c",d=".",h="",m=[c,f,p,d,h],g=3,v=":",y="-",b="|",T=" ",_="\n"},function(e,t,n){"use strict";function r(e){return this.all(e).join("")}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.split("\n"),n=void 0,r=void 0;return t.map(function(e){return n=f.Text.create({text:e}),r=f.Block.create({nodes:[n],type:"code_line"})})}function o(e,t){for(var n=e.align,r=e.children,o=[],i=0;i>>2]|=e[r]<<24-r%4*8;o.call(this,n,t)}else o.apply(this,arguments)}).prototype=r}}(),e.lib.WordArray})},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(){function t(e){return e<<8&4278255360|e>>>8&16711935}var n=e,r=n.lib,o=r.WordArray,i=n.enc;i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>1]|=e.charCodeAt(r)<<16-r%2*16;return o.create(n,2*t)}};i.Utf16LE={stringify:function(e){for(var n=e.words,r=e.sigBytes,o=[],i=0;i>>2]>>>16-i%4*8&65535);o.push(String.fromCharCode(a))}return o.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i>>1]|=t(e.charCodeAt(i)<<16-i%2*16);return o.create(r,2*n)}}}(),e.enc.Utf16})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(257))}(0,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=t.algo,i=o.SHA256,a=o.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(a),t.HmacSHA224=i._createHmacHelper(a)}(),e.SHA224})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(79),n(258))}(0,function(e){return function(){var t=e,n=t.x64,r=n.Word,o=n.WordArray,i=t.algo,a=i.SHA512,s=i.SHA384=a.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(79))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.x64,s=a.Word,u=n.algo,l=[],c=[],f=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,o=(2*e+3*t)%5;e=r,t=o}for(var e=0;e<5;e++)for(var t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,a=0;a<24;a++){for(var u=0,p=0,d=0;d<7;d++){if(1&i){var h=(1<>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[o];s.high^=a,s.low^=i}for(var u=0;u<24;u++){for(var d=0;d<5;d++){for(var h=0,m=0,g=0;g<5;g++){var s=n[d+5*g];h^=s.high,m^=s.low}var v=p[d];v.high=h,v.low=m}for(var d=0;d<5;d++)for(var y=p[(d+4)%5],b=p[(d+1)%5],T=b.high,_=b.low,h=y.high^(T<<1|_>>>31),m=y.low^(_<<1|T>>>31),g=0;g<5;g++){var s=n[d+5*g];s.high^=h,s.low^=m}for(var E=1;E<25;E++){var s=n[E],k=s.high,w=s.low,x=l[E];if(x<32)var h=k<>>32-x,m=w<>>32-x;else var h=w<>>64-x,m=k<>>64-x;var C=p[c[E]];C.high=h,C.low=m}var A=p[0],O=n[0];A.high=O.high,A.low=O.low;for(var d=0;d<5;d++)for(var g=0;g<5;g++){var E=d+5*g,s=n[E],S=p[E],N=p[(d+1)%5+5*g],D=p[(d+2)%5+5*g];s.high=S.high^~N.high&D.high,s.low=S.low^~N.low&D.low}var s=n[0],I=f[u];s.high^=I.high,s.low^=I.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,l=[],c=0;c>>24)|4278255360&(p<<24|p>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(p)}return new o.init(l,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(d),n.HmacSHA3=i._createHmacHelper(d)}(Math),e.SHA3})},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(t){function n(e,t,n){return e^t^n}function r(e,t,n){return e&t|~e&n}function o(e,t,n){return(e|~t)^n}function i(e,t,n){return e&n|t&~n}function a(e,t,n){return e^(t|~n)}function s(e,t){return e<>>32-t}var u=e,l=u.lib,c=l.WordArray,f=l.Hasher,p=u.algo,d=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),m=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),g=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),v=c.create([0,1518500249,1859775393,2400959708,2840853838]),y=c.create([1352829926,1548603684,1836072691,2053994217,0]),b=p.RIPEMD160=f.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var u=0;u<16;u++){var l=t+u,c=e[l];e[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var f,p,b,T,_,E,k,w,x,C,A=this._hash.words,O=v.words,S=y.words,N=d.words,D=h.words,I=m.words,M=g.words;E=f=A[0],k=p=A[1],w=b=A[2],x=T=A[3],C=_=A[4];for(var L,u=0;u<80;u+=1)L=f+e[t+N[u]]|0,L+=u<16?n(p,b,T)+O[0]:u<32?r(p,b,T)+O[1]:u<48?o(p,b,T)+O[2]:u<64?i(p,b,T)+O[3]:a(p,b,T)+O[4],L|=0,L=s(L,I[u]),L=L+_|0,f=_,_=T,T=s(b,10),b=p,p=L,L=E+e[t+D[u]]|0,L+=u<16?a(k,w,x)+S[0]:u<32?i(k,w,x)+S[1]:u<48?o(k,w,x)+S[2]:u<64?r(k,w,x)+S[3]:n(k,w,x)+S[4],L|=0,L=s(L,M[u]),L=L+C|0,E=C,C=x,x=s(w,10),w=k,k=L;L=A[1]+b+x|0,A[1]=A[2]+T+C|0,A[2]=A[3]+_+E|0,A[3]=A[4]+f+k|0,A[4]=A[0]+p+w|0,A[0]=L},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=f.clone.call(this);return e._hash=this._hash.clone(),e}});u.RIPEMD160=f._createHelper(b),u.HmacRIPEMD160=f._createHmacHelper(b)}(Math),e.RIPEMD160})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(128),n(129))}(0,function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,a=i.SHA1,s=i.HMAC,u=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),i=o.create(),a=o.create([1]),u=i.words,l=a.words,c=n.keySize,f=n.iterations;u.length>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var u=0;u>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},e.pad.ZeroPadding})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.CipherParams,i=n.enc,a=i.Hex,s=n.format;s.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}}}(),e.format.Hex})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(38),n(39),n(26),n(6))}(0,function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,o=t.algo,i=[],a=[],s=[],u=[],l=[],c=[],f=[],p=[],d=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var o=r^r<<1^r<<2^r<<3^r<<4;o=o>>>8^255&o^99,i[n]=o,a[o]=n;var m=e[n],g=e[m],v=e[g],y=257*e[o]^16843008*o;s[n]=y<<24|y>>>8,u[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y;var y=16843009*v^65537*g^257*m^16843008*n;f[o]=y<<24|y>>>8,p[o]=y<<16|y>>>16,d[o]=y<<8|y>>>24,h[o]=y,n?(n=m^e[e[e[v^m]]],r^=e[e[r]]):n=r=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=this._nRounds=n+6,o=4*(r+1),a=this._keySchedule=[],s=0;s6&&s%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=u<<8|u>>>24,u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=m[s/n|0]<<24),a[s]=a[s-n]^u}for(var l=this._invKeySchedule=[],c=0;c>>24]]^p[i[u>>>16&255]]^d[i[u>>>8&255]]^h[i[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,u,l,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,f,p,d,h,a);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,s){for(var u=this._nRounds,l=e[t]^n[0],c=e[t+1]^n[1],f=e[t+2]^n[2],p=e[t+3]^n[3],d=4,h=1;h>>24]^o[c>>>16&255]^i[f>>>8&255]^a[255&p]^n[d++],g=r[c>>>24]^o[f>>>16&255]^i[p>>>8&255]^a[255&l]^n[d++],v=r[f>>>24]^o[p>>>16&255]^i[l>>>8&255]^a[255&c]^n[d++],y=r[p>>>24]^o[l>>>16&255]^i[c>>>8&255]^a[255&f]^n[d++];l=m,c=g,f=v,p=y}var m=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[f>>>8&255]<<8|s[255&p])^n[d++],g=(s[c>>>24]<<24|s[f>>>16&255]<<16|s[p>>>8&255]<<8|s[255&l])^n[d++],v=(s[f>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^n[d++],y=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&f])^n[d++];e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=r._createHelper(g)}(),e.AES})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(38),n(39),n(26),n(6))}(0,function(e){return function(){function t(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<>>5]>>>31-o%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){for(var s=i[a]=[],f=c[a],r=0;r<24;r++)s[r/6|0]|=n[(l[r]-1+f)%28]<<31-r%6,s[4+(r/6|0)]|=n[28+(l[r+24]-1+f)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(var r=1;r<7;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var p=this._invSubKeys=[],r=0;r<16;r++)p[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,r,o){this._lBlock=e[r],this._rBlock=e[r+1],t.call(this,4,252645135),t.call(this,16,65535),n.call(this,2,858993459),n.call(this,8,16711935),t.call(this,1,1431655765);for(var i=0;i<16;i++){for(var a=o[i],s=this._lBlock,u=this._rBlock,l=0,c=0;c<8;c++)l|=f[c][((u^a[c])&p[c])>>>0];this._lBlock=u,this._rBlock=s^l}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,t.call(this,1,1431655765),n.call(this,8,16711935),n.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),e[r]=this._lBlock,e[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=a._createHelper(d);var h=s.TripleDES=a.extend({_doReset:function(){var e=this._key,t=e.words;this._des1=d.createEncryptor(i.create(t.slice(0,2))),this._des2=d.createEncryptor(i.create(t.slice(2,4))),this._des3=d.createEncryptor(i.create(t.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=a._createHelper(h)}(),e.TripleDES})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(38),n(39),n(26),n(6))}(0,function(e){return function(){function t(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){t=(t+1)%256,n=(n+e[t])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}var n=e,r=n.lib,o=r.StreamCipher,i=n.algo,a=i.RC4=o.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;for(var o=0,i=0;o<256;o++){var a=o%n,s=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var u=r[o];r[o]=r[i],r[i]=u}this._i=this._j=0},_doProcessBlock:function(e,n){e[n]^=t.call(this)},keySize:8,ivSize:0});n.RC4=o._createHelper(a);var s=i.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)t.call(this)}});n.RC4Drop=o._createHelper(s)}(),e.RC4})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(38),n(39),n(26),n(6))}(0,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,i=r>>>16,a=((o*o>>>17)+o*i>>>15)+i*i,l=((4294901760&r)*r|0)+((65535&r)*r|0);u[n]=a^l}e[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,e[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,e[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,e[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,e[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,e[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,e[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,e[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}var n=e,r=n.lib,o=r.StreamCipher,i=n.algo,a=[],s=[],u=[],l=i.Rabbit=o.extend({_doReset:function(){for(var e=this._key.words,n=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)t.call(this);for(var r=0;r<8;r++)i[r]^=o[r+4&7];if(n){var a=n.words,s=a[0],u=a[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=l>>>16|4294901760&c,p=c<<16|65535&l;i[0]^=l,i[1]^=f,i[2]^=c,i[3]^=p,i[4]^=l,i[5]^=f,i[6]^=c,i[7]^=p;for(var r=0;r<4;r++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[n+o]^=a[o]},blockSize:4,ivSize:2});n.Rabbit=o._createHelper(l)}(),e.Rabbit})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(38),n(39),n(26),n(6))}(0,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,i=r>>>16,a=((o*o>>>17)+o*i>>>15)+i*i,l=((4294901760&r)*r|0)+((65535&r)*r|0);u[n]=a^l}e[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,e[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,e[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,e[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,e[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,e[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,e[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,e[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}var n=e,r=n.lib,o=r.StreamCipher,i=n.algo,a=[],s=[],u=[],l=i.RabbitLegacy=o.extend({_doReset:function(){var e=this._key.words,n=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)t.call(this);for(var i=0;i<8;i++)o[i]^=r[i+4&7];if(n){var a=n.words,s=a[0],u=a[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=l>>>16|4294901760&c,p=c<<16|65535&l;o[0]^=l,o[1]^=f,o[2]^=c,o[3]^=p,o[4]^=l,o[5]^=f,o[6]^=c,o[7]^=p;for(var i=0;i<4;i++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[n+o]^=a[o]},blockSize:4,ivSize:2});n.RabbitLegacy=o._createHelper(l)}(),e.RabbitLegacy})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=n.recursive,o="/api2/repos/"+e+"/dir/?p="+encodeURIComponent(t);return r&&(o+="&recursive=1"),this.req.get(o)}},{key:"getFileInfo",value:function(e,t){var n="/api2/repos/"+e+"/file/detail/?p="+encodeURIComponent(t);return this.req.get(n)}},{key:"starFile",value:function(e,t){var n=new a;return n.append("repo_id",e),n.append("p",t),this.req.post("/api2/starredfiles/",n)}},{key:"unStarFile",value:function(e,t){var n="/api2/starredfiles/?repo_id="+e+"&p="+encodeURIComponent(t);return this.req.delete(n)}},{key:"getFileDownloadLink",value:function(e,t){var n="/api2/repos/"+e+"/file/?p="+encodeURIComponent(t)+"&reuse=1";return this.req.get(n)}},{key:"getFileContent",value:function(e){return i.create().get(e)}},{key:"getUpdateLink",value:function(e,t){console.log("encode getupdateLink");var n="/api2/repos/"+e+"/update-link/?p="+encodeURIComponent(t);return this.req.get(n)}},{key:"updateFile",value:function(e,t,n,r){var o=new a;o.append("target_file",t),o.append("filename",n);var s=new Blob([r],{type:"text/plain"});return o.append("file",s),i.create()({method:"post",url:e,data:o})}},{key:"uploadImage",value:function(e,t){return i.create()({method:"post",data:t,url:e})}},{key:"getFileHistory",value:function(e,t){var n="/api2/repos/"+e+"/file/history/?p="+encodeURIComponent(t);return this.req.get(n)}},{key:"getUploadLink",value:function(e,t){var n="/api2/repos/"+e+"/upload-link/?p="+encodeURIComponent(t)+"&from=web";return this.req.get(n)}},{key:"getSharedRepos",value:function(){return this.req.get("/api2/shared-repos/")}},{key:"getBeSharedRepos",value:function(){return this.req.get("/api2/beshared-repos/")}},{key:"createDirectory",value:function(e,t){var n="/api2/repos/"+e+"/dir/?p="+encodeURIComponent(t),r=new a;return r.append("operation","mkdir"),this.req.post(n,r,{headers:r.getHeaders()})}}]),e}());t.SeafileAPI=s},function(e,t,n){e.exports=n(807)},function(e,t,n){"use strict";function r(e){var t=new a(e),n=i(a.prototype.request,t);return o.extend(n,a.prototype,t),o.extend(n,t),n}var o=n(15),i=n(259),a=n(808),s=n(130),u=r(s);u.Axios=a,u.create=function(e){return r(o.merge(s,e))},u.Cancel=n(263),u.CancelToken=n(822),u.isCancel=n(262),u.all=function(e){return Promise.all(e)},u.spread=n(823),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var o=n(130),i=n(15),a=n(817),s=n(818);r.prototype.request=function(e){"string"===typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";var r=n(15);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(261);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(15);e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var a=[];o.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(15),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(15);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function o(e){for(var t,n,o=String(e),a="",s=0,u=i;o.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&t>>8-s%1*8)){if((n=o.charCodeAt(s+=.75))>255)throw new r;t=t<<8|n}return a}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=o},function(e,t,n){"use strict";var r=n(15);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(15);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(15),i=n(819),a=n(262),s=n(130),u=n(820),l=n(821);e.exports=function(e){return r(e),e.baseURL&&!u(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(15);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(263);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){e.exports="object"==typeof self?self.FormData:window.FormData},function(e,t){},function(e,t,n){"use strict";(function(e){function r(e){return e&&e.__esModule?e:{default:e}}function o(){return b&&!b.headersSent}function i(e,t){var n=v?y:h.default.parse(document.cookie),r=n&&n[e];if("undefined"===typeof t&&(t=!r||"{"!==r[0]&&"["!==r[0]),!t)try{r=JSON.parse(r)}catch(e){}return r}function a(e){var t=v?y:h.default.parse(document.cookie),n=t;if("undefined"===typeof e&&(e=!n||"{"!==n[0]&&"["!==n[0]),!e)try{n=JSON.parse(n)}catch(e){}return n}function s(e){var t=v?y:h.default.parse(document.cookie);return t?e?Object.keys(t).reduce(function(n,r){if(!e.test(r))return n;var o={};return o[r]=t[r],(0,g.default)({},n,o)},{}):t:{}}function u(e,t,n){y[e]=t,"object"===("undefined"===typeof t?"undefined":p(t))&&(y[e]=JSON.stringify(t)),v||(document.cookie=h.default.serialize(e,y[e],n)),o()&&b.cookie&&b.cookie(e,t,n)}function l(e,t){delete y[e],t="undefined"===typeof t?{}:"string"===typeof t?{path:t}:(0,g.default)({},t),"undefined"!==typeof document&&(t.expires=new Date(1970,1,1,0,0,1),t.maxAge=0,document.cookie=h.default.serialize(e,"",t)),o()&&b.clearCookie&&b.clearCookie(e,t)}function c(e){y=e?h.default.parse(e):{}}function f(e,t){return e.cookie?y=e.cookie:e.cookies?y=e.cookies:e.headers&&e.headers.cookie?c(e.headers.cookie):y={},b=t,function(){b=null,y={}}}Object.defineProperty(t,"__esModule",{value:!0});var p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.load=i,t.loadAll=a,t.select=s,t.save=u,t.remove=l,t.setRawCookie=c,t.plugToRequest=f;var d=n(827),h=r(d),m=n(41),g=r(m),v="undefined"===typeof document||e&&Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"})&&!1,y={},b=void 0;t.default={setRawCookie:c,load:i,loadAll:a,select:s,save:u,remove:l,plugToRequest:f}}).call(t,n(16))},function(e,t,n){"use strict";function r(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=e.split(u),s=r.decode||a,l=0;l0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];o(this,t);var a=i(this,e.call(this));if(a.options=Object(g.b)(n),a.services={},a.logger=u.a,a.modules={external:[]},r&&!a.isInitialized&&!n.isClone){var s;if(!a.options.initImmediate)return s=a.init(n,r),i(a,s);setTimeout(function(){a.init(n,r)},0)}return a}return a(t,e),t.prototype.init=function(){function e(e){return e?"function"===typeof e?new e:e:null}var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];if("function"===typeof n&&(r=n,n={}),this.options=b({},Object(g.a)(),this.options,Object(g.b)(n)),this.format=this.options.interpolation.format,r||(r=s),!this.options.isClone){this.modules.logger?u.a.init(e(this.modules.logger),this.options):u.a.init(null,this.options);var o=new p.a(this.options);this.store=new c.a(this.options.resources,this.options);var i=this.services;i.logger=u.a,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new d.a(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new h.a(this.options),i.backendConnector=new m.a(e(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:s;if(this.options.resources)t(null);else{if(this.language&&"cimode"===this.language.toLowerCase())return t();var n=[],r=function(t){if(t){e.services.languageUtils.toResolveHierarchy(t).forEach(function(e){n.indexOf(e)<0&&n.push(e)})}};if(this.language)r(this.language);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return r(e)})}this.options.preload&&this.options.preload.forEach(function(e){return r(e)}),this.services.backendConnector.load(n,this.options.ns,t)}},t.prototype.reloadResources=function(e,t){e||(e=this.languages),t||(t=this.options.ns),this.services.backendConnector.reload(e,t)},t.prototype.use=function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&v.a.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this},t.prototype.changeLanguage=function(e,t){var n=this,r=function(e,r){n.translator.changeLanguage(r),r&&(n.emit("languageChanged",r),n.logger.log("languageChanged",r)),t&&t(e,function(){return n.t.apply(n,arguments)})},o=function(e){e&&(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.translator.language||n.translator.changeLanguage(e),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(e)),n.loadResources(function(t){r(t,e)})};e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect())},t.prototype.getFixedT=function(e,t){var n=this,r=function e(t,r){for(var o=arguments.length,i=Array(o>2?o-2:0),a=2;a0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"},t.prototype.createInstance=function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments[1])},t.prototype.cloneInstance=function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,o=b({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach(function(t){i[t]=e[t]}),i.translator=new f.a(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};o(this,t);var a=i(this,e.call(this));return a.data=n||{},a.options=r,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a}return a(t,e),t.prototype.addNamespaces=function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)},t.prototype.removeNamespaces=function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)},t.prototype.getResource=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!==typeof n&&(i=i.concat(n)),n&&"string"===typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),u.d(this.data,i)},t.prototype.addResource=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),u.h(this.data,a,r),o.silent||this.emit("added",e,t,n,r)},t.prototype.addResources=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"===typeof n[o]&&this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)},t.prototype.addResourceBundle=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);var s=u.d(this.data,a)||{};r?u.b(s,n,o):s=l({},s,n),u.h(this.data,a,s),i.silent||this.emit("added",e,t,n)},t.prototype.removeResourceBundle=function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)},t.prototype.hasResourceBundle=function(e,t){return void 0!==this.getResource(e,t)},t.prototype.getResourceBundle=function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?l({},this.getResource(e,t)):this.getResource(e,t)},t.prototype.toJSON=function(){return this.data},t}(s.a);t.a=c},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var a=i(this,e.call(this));return c.a(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat"],n,a),a.options=r,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=s.a.create("translator"),a}return a(t,e),t.prototype.changeLanguage=function(e){e&&(this.language=e)},t.prototype.exists=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res},t.prototype.extractFromKey=function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"===typeof o&&(o=[o]),{key:e,namespaces:o}},t.prototype.translate=function(e,t){var n=this;if("object"!==("undefined"===typeof t?"undefined":p(t))&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),void 0===e||null===e||""===e)return"";"number"===typeof e&&(e=String(e)),"string"===typeof e&&(e=[e]);var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=this.extractFromKey(e[e.length-1],t),i=o.key,a=o.namespaces,s=a[a.length-1],u=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(l){var c=t.nsSeparator||this.options.nsSeparator;return s+c+i}return i}var d=this.resolve(e,t),h=d&&d.res,m=d&&d.usedKey||i,g=Object.prototype.toString.apply(h),v=["[object Number]","[object Function]","[object RegExp]"],y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,b="string"!==typeof h&&"boolean"!==typeof h&&"number"!==typeof h;if(h&&b&&v.indexOf(g)<0&&(!y||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,t):"key '"+i+" ("+this.language+")' returned an object instead of string.";if(r){var T="[object Array]"===g?[]:{};for(var _ in h)if(Object.prototype.hasOwnProperty.call(h,_)){var E=""+m+r+_;T[_]=this.translate(E,f({},t,{joinArrays:!1,ns:a})),T[_]===E&&(T[_]=h[_])}h=T}}else if(y&&"[object Array]"===g)(h=h.join(y))&&(h=this.extendTranslation(h,e,t));else{var k=!1,w=!1;this.isValidLookup(h)||void 0===t.defaultValue||(k=!0,h=t.defaultValue),this.isValidLookup(h)||(w=!0,h=i);var x=t.defaultValue&&t.defaultValue!==h&&this.options.updateMissing;if(w||k||x){this.logger.log(x?"updateKey":"missingKey",u,s,i,x?t.defaultValue:h);var C=[],A=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&A&&A[0])for(var O=0;O1&&void 0!==arguments[1]?arguments[1]:{},r=void 0,o=void 0,i=void 0,a=void 0;return"string"===typeof e&&(e=[e]),e.forEach(function(e){if(!t.isValidLookup(r)){var s=t.extractFromKey(e,n),u=s.key;o=u;var l=s.namespaces;t.options.fallbackNS&&(l=l.concat(t.options.fallbackNS));var c=void 0!==n.count&&"string"!==typeof n.count,f=void 0!==n.context&&"string"===typeof n.context&&""!==n.context,p=n.lngs?n.lngs:t.languageUtils.toResolveHierarchy(n.lng||t.language);l.forEach(function(e){t.isValidLookup(r)||(a=e,p.forEach(function(o){if(!t.isValidLookup(r)){i=o;var a=u,s=[a];if(t.i18nFormat&&t.i18nFormat.addLookupKeys)t.i18nFormat.addLookupKeys(s,u,o,e,n);else{var l=void 0;c&&(l=t.pluralResolver.getSuffix(o,n.count)),c&&f&&s.push(a+l),f&&s.push(a+=""+t.options.contextSeparator+n.context),c&&s.push(a+=l)}for(var p=void 0;p=s.pop();)t.isValidLookup(r)||(r=t.getResource(o,e,p,n))}}))})}}),{res:r,usedKey:o,usedLng:i,usedNS:a}},t.prototype.isValidLookup=function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)},t.prototype.getResource=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.resourceStore.getResource(e,t,n,r)},t}(u.a);t.a=d},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}var i=n(40),a=function(){function e(t){r(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=i.a.create("languageUtils")}return e.prototype.getScriptPartFromCode=function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))},e.prototype.getLanguagePartFromCode=function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])},e.prototype.formatLanguageCode=function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=o(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=o(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=o(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e},e.prototype.isWhitelisted=function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1},e.prototype.getFallbackCodes=function(e,t){if(!e)return[];if("string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]},e.prototype.toResolveHierarchy=function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isWhitelisted(e)?o.push(e):n.logger.warn("rejecting non-whitelisted language code: "+e))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"===typeof e&&i(this.formatLanguageCode(e)),r.forEach(function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))}),o},e}();t.a=a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){var e={};return a.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:s[t.fc]}})}),e}var i=n(40),a=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","he","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21}],s={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)}},u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.languageUtils=t,this.options=n,this.logger=i.a.create("pluralResolver"),this.rules=o()}return e.prototype.addRule=function(e,t){this.rules[e]=t},e.prototype.getRule=function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]},e.prototype.needsPlural=function(e){var t=this.getRule(e);return t&&t.numbers.length>1},e.prototype.getPluralFormsOfKey=function(e,t){var n=this,r=[],o=this.getRule(e);return o?(o.numbers.forEach(function(o){var i=n.getSuffix(e,o);r.push(""+t+i)}),r):r},e.prototype.getSuffix=function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"===typeof i?"_plural_"+i.toString():a():"v2"===this.options.compatibilityJSON||2===r.numbers.length&&1===r.numbers[0]?a():2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: "+e),""},e}();t.a=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(81),i=n(40),a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.logger=i.a.create("interpolator"),this.init(t,!0)}return e.prototype.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments[1]&&(this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.escape=e.interpolation&&e.interpolation.escape||o.c),e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.prefix=t.prefix?o.g(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?o.g(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?o.g(t.nestingPrefix):t.nestingPrefixEscaped||o.g("$t("),this.nestingSuffix=t.nestingSuffix?o.g(t.nestingSuffix):t.nestingSuffixEscaped||o.g(")"),this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.resetRegExp()},e.prototype.reset=function(){this.options&&this.init(this.options)},e.prototype.resetRegExp=function(){var e=this.prefix+"(.+?)"+this.suffix;this.regexp=new RegExp(e,"g");var t=""+this.prefix+this.unescapePrefix+"(.+?)"+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(t,"g");var n=this.nestingPrefix+"(.+?)"+this.nestingSuffix;this.nestingRegexp=new RegExp(n,"g")},e.prototype.interpolate=function(e,t,n){function r(e){return e.replace(/\$/g,"$$$$")}var i=this,a=void 0,s=void 0,u=void 0,l=function(e){if(e.indexOf(i.formatSeparator)<0)return o.d(t,e);var r=e.split(i.formatSeparator),a=r.shift().trim(),s=r.join(i.formatSeparator).trim();return i.format(o.d(t,a),s,n)};for(this.resetRegExp(),u=0;(a=this.regexpUnescape.exec(e))&&(s=l(a[1].trim()),e=e.replace(a[0],s),this.regexpUnescape.lastIndex=0,!(++u>=this.maxReplaces)););for(u=0;a=this.regexp.exec(e);){if(void 0===(s=l(a[1].trim())))if("function"===typeof this.options.missingInterpolationHandler){var c=this.options.missingInterpolationHandler(e,a);s="string"===typeof c?c:""}else this.logger.warn("missed to pass in variable "+a[1]+" for interpolating "+e),s="";else"string"!==typeof s&&(s=o.e(s));if(s=r(this.escapeValue?this.escape(s):s),e=e.replace(a[0],s),this.regexp.lastIndex=0,++u>=this.maxReplaces)break}return e},e.prototype.nest=function(e,t){function n(e,t){if(e.indexOf(",")<0)return e;var n=e.split(",");e=n.shift();var r=n.join(",");r=this.interpolate(r,u),r=r.replace(/'/g,'"');try{u=JSON.parse(r),t&&(u=a({},t,u))}catch(t){this.logger.error("failed parsing options string in nesting for key "+e,t)}return e}var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=void 0,s=void 0,u=a({},r);for(u.applyPostProcessor=!1;i=this.nestingRegexp.exec(e);){if((s=t(n.call(this,i[1].trim(),u),u))&&i[0]===e&&"string"!==typeof s)return s;"string"!==typeof s&&(s=o.e(s)),s||(this.logger.warn("missed to resolve "+i[1]+" for nesting "+e),s=""),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e},e}();t.a=s},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r3&&void 0!==arguments[3]?arguments[3]:{};o(this,t);var u=i(this,e.call(this));return u.backend=n,u.store=r,u.languageUtils=a.languageUtils,u.options=s,u.logger=l.a.create("backendConnector"),u.state={},u.queue=[],u.backend&&u.backend.init&&u.backend.init(a,s.backend,s),u}return a(t,e),t.prototype.queueLoad=function(e,t,n){var r=this,o=[],i=[],a=[],s=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var a=e+"|"+t;r.store.hasResourceBundle(e,t)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?i.indexOf(a)<0&&i.push(a):(r.state[a]=1,n=!1,i.indexOf(a)<0&&i.push(a),o.indexOf(a)<0&&o.push(a),s.indexOf(t)<0&&s.push(t)))}),n||a.push(e)}),(o.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:n}),{toLoad:o,pending:i,toLoadLanguages:a,toLoadNamespaces:s}},t.prototype.loaded=function(e,t,n){var r=this,o=e.split("|"),i=p(o,2),a=i[0],l=i[1];t&&this.emit("failedLoading",a,l,t),n&&this.store.addResourceBundle(a,l,n),this.state[e]=t?-1:2,this.queue.forEach(function(n){u.f(n.loaded,[a],l),s(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(r.emit("loaded",n.loaded),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.queue=this.queue.filter(function(e){return!e.done})},t.prototype.read=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=arguments[5];return e.length?this.backend[n](e,t,function(s,u){if(s&&u&&r<5)return void setTimeout(function(){o.read.call(o,e,t,n,r+1,2*i,a)},i);a(s,u)}):a(null,{})},t.prototype.load=function(e,t,n){var r=this;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var o=this.queueLoad(e,t,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(function(e){r.loadOne(e)})},t.prototype.reload=function(e,t){var n=this;this.backend||this.logger.warn("No backend was added via i18next.use. Will not load resources."),"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]),e.forEach(function(e){t.forEach(function(t){n.loadOne(e+"|"+t,"re")})})},t.prototype.loadOne=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=p(r,2),i=o[0],a=o[1];this.read(i,a,"read",null,null,function(r,o){r&&t.logger.warn(n+"loading namespace "+a+" for language "+i+" failed",r),!r&&o&&t.logger.log(n+"loaded namespace "+a+" for language "+i,o),t.loaded(e,r,o)})},t.prototype.saveMissing=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,f({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r)},t}(c.a);t.a=d},function(e,t,n){"use strict";function r(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};return e[1]&&(t.defaultValue=e[1]),e[2]&&(t.tDescription=e[2]),t},interpolation:{escapeValue:!0,format:function(e,t,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}}}function o(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e}n.d(t,"a",function(){return r}),t.b=o},function(e,t,n){e.exports=n(839).default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:l.default}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.init(t,n),this.type="backend"}return i(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=e,this.options=s.defaults(t,this.options||{},o())}},{key:"readMulti",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath(e,t));var o=this.services.interpolator.interpolate(r,{lng:e.join("+"),ns:t.join("+")});this.loadUrl(o,n)}},{key:"read",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath([e],[t]));var o=this.services.interpolator.interpolate(r,{lng:e,ns:t});this.loadUrl(o,n)}},{key:"loadUrl",value:function(e,t){var n=this;this.options.ajax(e,this.options,function(r,o){if(o.status>=500&&o.status<600)return t("failed loading "+e,!0);if(o.status>=400&&o.status<500)return t("failed loading "+e,!1);var i=void 0,a=void 0;try{i=n.options.parse(r,e)}catch(t){a="failed parsing "+e+" to json"}if(a)return t(a,!1);t(null,i)})}},{key:"create",value:function(e,t,n,r){var o=this;"string"===typeof e&&(e=[e]);var i={};i[n]=r||"",e.forEach(function(e){var n=o.services.interpolator.interpolate(o.options.addPath,{lng:e,ns:t});o.options.ajax(n,o.options,function(e,t){},i)})}}]),e}();c.type="backend",t.default=c},function(e,t,n){"use strict";function r(e){return a.call(s.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}function o(e){return a.call(s.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=r,t.extend=o;var i=[],a=i.forEach,s=i.slice},function(e,t,n){"use strict";function r(e,t){if(t&&"object"===("undefined"===typeof t?"undefined":i(t))){var n="",r=encodeURIComponent;for(var o in t)n+="&"+r(o)+"="+r(t[o]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e}function o(e,t,n,o,a){o&&"object"===("undefined"===typeof o?"undefined":i(o))&&(a||(o._t=new Date),o=r("",o).slice(1)),t.queryStringParams&&(e=r(e,t.queryStringParams));try{var s;s=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0"),s.open(o?"POST":"GET",e,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,o&&s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var u=t.customHeaders;if(u)for(var l in u)s.setRequestHeader(l,u[l]);s.onreadystatechange=function(){s.readyState>3&&n&&n(s.responseText,s)},s.send(o)}catch(e){console&&console.log(e)}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=o},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}]); //# sourceMappingURL=main.js.map