'use strict';(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],b):b(CodeMirror)})(function(b){function d(a){var c=a.match(/^\s*\S/);a.skipToEnd();return c?"error":null}b.defineMode("asciiarmor",function(){return{token:function(a,c){var b;if("top"==c.state)return a.sol()&&(b=a.match(/^-----BEGIN (.*)?-----\s*$/))?(c.state="headers",c.type=b[1],"tag"):d(a);if("headers"==c.state){if(a.sol()&&
a.match(/^\w+:/))return c.state="header","atom";if(a=d(a))c.state="body";return a}if("header"==c.state)return a.skipToEnd(),c.state="headers","string";if("body"==c.state){if(a.sol()&&(b=a.match(/^-----END (.*)?-----\s*$/))){if(b[1]!=c.type)return"error";c.state="end";return"tag"}if(a.eatWhile(/[A-Za-z0-9+\/=]/))return null;a.next();return"error"}if("end"==c.state)return d(a)},blankLine:function(a){"headers"==a.state&&(a.state="body")},startState:function(){return{state:"top",type:null}}}});b.defineMIME("application/pgp",
"asciiarmor");b.defineMIME("application/pgp-encrypted","asciiarmor");b.defineMIME("application/pgp-keys","asciiarmor");b.defineMIME("application/pgp-signature","asciiarmor")});
