'use strict';

function t(){return (t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);}return t}).apply(this,arguments)}var e=function(e){return Object.entries(e).reduce(function(e,n){var o,r=n[1];return void 0===r?e:t({},e,((o={})[n[0]]=r,o))},{})},l=function(n){return t({},e(n),{type:"CodeChunk"})},p=function(n){return t({},e(n),{type:"CodeExpression"})},s=function(n){return t({},e(n),{type:"CodeError"})},lt=function(n){return void 0===n&&(n={}),t({},e(n),{type:"SoftwareSession"})},kt={Code:"Code",CodeBlock:"CodeBlock",CodeChunk:"CodeChunk",CodeExpression:"CodeExpression",CodeFragment:"CodeFragment"},Lt=function(t){return function(e){return Object.keys(t).includes(e)}},Nt=function(t){return function(e){return !!qt(e)&&Lt(t)(e.type)}},Qt=function(t){var e,n=((e={})[t]=t,e);return Nt(n)},Rt=function(t,e){return qt(e)&&e.type===t},Ht=function(t){var e=typeof t;return null===t||"boolean"===e||"number"===e||"string"===e},qt=function(t){return null!=t&&Object.prototype.hasOwnProperty.call(t,"type")},Yt=Nt(kt),Zt=Qt("Article"),$t=Qt("Paragraph"),_t=Qt("ListItem");

exports.Ht = Ht;
exports.Rt = Rt;
exports.Yt = Yt;
exports.l = l;
exports.lt = lt;
exports.p = p;
exports.s = s;
