text: (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.SlatePlainSerializer=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";function deserialize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.defaultBlock,r=void 0===i?"line":i,a=t.defaultMarks,n=void 0===a?[]:a,o=t.toJSON,s=void 0!==o&&o;_immutable.Set.isSet(n)&&(n=n.toArray()),r=_slate.Node.createProperties(r),n=n.map(_slate.Mark.createProperties);var l={kind:"value",document:{kind:"document",data:{},nodes:e.split("\n").map(function(e){return _extends({},r,{kind:"block",isVoid:!1,data:{},nodes:[{kind:"text",leaves:[{kind:"leaf",text:e,marks:n}]}]})})}};return s?l:_slate.Value.fromJSON(l)}function serialize(e){return serializeNode(e.document)}function serializeNode(e){return"document"==e.kind||"block"==e.kind&&_slate.Block.isBlockList(e.nodes)?e.nodes.map(serializeNode).join("\n"):e.text}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},_slate=window.Slate,_immutable=window.Immutable;exports.default={deserialize:deserialize,serialize:serialize}},{}]},{},[1])(1)});
  