=0&&!(x[v].level<=p);v--);x.length=v+1,a=r.content,c=0,u=a.length;e:for(;c=0&&(d=x[v],!(x[v].level\s]/i.test(e)}function o(e){return/^<\/a\s*>/i.test(e)}function s(){var e=[],t=new i({stripPrefix:!1,url:!0,email:!0,twitter:!1,replaceFn:function(t,r){switch(r.getType()){case"url":e.push({text:r.matchedText,url:r.getUrl()});break;case"email":e.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")})}return!1}});return{links:e,autolinker:t}}var i=r(242),a=/www|@|\:\/\//;e.exports=function(e){var t,r,i,l,c,u,p,f,h,d,g,m,v,b=e.tokens,y=null;if(e.options.linkify)for(r=0,i=b.length;r=0;t--)if(c=l[t],"link_close"!==c.type){if("htmltag"===c.type&&(n(c.content)&&g>0&&g--,o(c.content)&&g++),!(g>0)&&"text"===c.type&&a.test(c.content)){if(y||(y=s(),m=y.links,v=y.autolinker),u=c.content,m.length=0,v.link(u),!m.length)continue;for(p=[],d=c.level,f=0;f
17 | * MIT Licensed. http://www.opensource.org/licenses/mit-license.php
18 | *
19 | * https://github.com/gregjacobs/Autolinker.js
20 | */
21 | var e=function(t){e.Util.assign(this,t)};return e.prototype={constructor:e,urls:!0,email:!0,twitter:!0,newWindow:!0,stripPrefix:!0,truncate:void 0,className:"",htmlParser:void 0,matchParser:void 0,tagBuilder:void 0,link:function(e){for(var t=this.getHtmlParser(),r=t.parse(e),n=0,o=[],s=0,i=r.length;st&&(r=null==r?"..":r,e=e.substring(0,t-r.length)+r),e},indexOf:function(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r",this.getInnerHtml(),"",e,">"].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+'="'+e[r]+'"');return t.join(" ")}}),e.AnchorTagBuilder=e.Util.extend(Object,{constructor:function(t){e.Util.assign(this,t)},build:function(t){return new e.HtmlTag({tagName:"a",attrs:this.createAttrs(t.getType(),t.getAnchorHref()),innerHtml:this.processAnchorText(t.getAnchorText())})},createAttrs:function(e,t){var r={href:t},n=this.createCssClass(e);return n&&(r.class=n),this.newWindow&&(r.target="_blank"),r},createCssClass:function(e){var t=this.className;return t?t+" "+t+"-"+e:""},processAnchorText:function(e){return e=this.doTruncate(e)},doTruncate:function(t){return e.Util.ellipsis(t,this.truncate||Number.POSITIVE_INFINITY)}}),e.htmlParser.HtmlParser=e.Util.extend(Object,{htmlRegex:function(){var e=/[0-9a-zA-Z][0-9a-zA-Z:]*/,t=/[^\s\0"'>\/=\x01-\x1F\x7F]+/,r=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,n=t.source+"(?:\\s*=\\s*"+r.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",n,"|",r.source+")",")*",">",")","|","(?:","<(/)?","("+e.source+")","(?:","\\s+",n,")*","\\s*/?",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(e){for(var t,r,n=this.htmlRegex,o=0,s=[];null!==(t=n.exec(e));){var i=t[0],a=t[1]||t[3],l=!!t[2],c=e.substring(o,t.index);c&&(r=this.parseTextAndEntityNodes(c),s.push.apply(s,r)),s.push(this.createElementNode(i,a,l)),o=t.index+i.length}if(o=r))&&!(e.tShift[i]=0&&(e=e.replace(a,function(t,r){var n;return 10===e.charCodeAt(r)?(i=r+1,u=0,t):(n=" ".slice((r-i-u)%4),u=r-i+1,n)})),o=new s(e,this,t,r,n),this.tokenize(o,o.line,o.lineMax)},e.exports=n},function(e,t,r){"use strict";function n(e,t,r,n,o){var s,i,a,l,c,u,p;for(this.src=e,this.parser=t,this.options=r,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",i=this.src,u=0,p=!1,a=l=u=0,c=i.length;l=this.eMarks[e]},n.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e},n.prototype.getLines=function(e,t,r,n){var o,s,i,a,l,c=e;if(e>=t)return"";if(c+1===t)return s=this.bMarks[c]+Math.min(this.tShift[c],r),i=n?this.eMarks[c]+1:this.eMarks[c],this.src.slice(s,i);for(a=new Array(t-e),o=0;cr&&(l=r),l<0&&(l=0),s=this.bMarks[c]+l,i=c+1=4))break;n++,o=n}return e.line=n,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}},function(e,t,r){"use strict";e.exports=function(e,t,r,n){var o,s,i,a,l,c=!1,u=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(u+3>p)return!1;if(126!==(o=e.src.charCodeAt(u))&&96!==o)return!1;if(l=u,u=e.skipChars(u,o),(s=u-l)<3)return!1;if(i=e.src.slice(u,p).trim(),i.indexOf("`")>=0)return!1;if(n)return!0;for(a=t;!(++a>=r)&&(u=l=e.bMarks[a]+e.tShift[a],p=e.eMarks[a],!(u=4||(u=e.skipChars(u,o))-lm)return!1;if(62!==e.src.charCodeAt(g++))return!1;if(e.level>=e.options.maxNesting)return!1;if(n)return!0;for(32===e.src.charCodeAt(g)&&g++,l=e.blkIndent,e.blkIndent=0,a=[e.bMarks[t]],e.bMarks[t]=g,g=g=m,i=[e.tShift[t]],e.tShift[t]=g-e.bMarks[t],p=e.parser.ruler.getRules("blockquote"),o=t+1;o=m));o++)if(62!==e.src.charCodeAt(g++)){if(s)break;for(d=!1,f=0,h=p.length;f=m,i.push(e.tShift[o]),e.tShift[o]=g-e.bMarks[o];for(c=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:u=[t,0],level:e.level++}),e.parser.tokenize(e,t,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=c,u[1]=e.line,f=0;fl)return!1;if(42!==(o=e.src.charCodeAt(a++))&&45!==o&&95!==o)return!1;for(s=1;a=o?-1:(r=e.src.charCodeAt(n++),42!==r&&45!==r&&43!==r?-1:n=o)return-1;if((r=e.src.charCodeAt(n++))<48||r>57)return-1;for(;;){if(n>=o)return-1;if(!((r=e.src.charCodeAt(n++))>=48&&r<=57)){if(41===r||46===r)break;return-1}}return n=0)y=!0;else{if(!((d=n(e,t))>=0))return!1;y=!1}if(e.level>=e.options.maxNesting)return!1;if(b=e.src.charCodeAt(d-1),i)return!0;for(x=e.tokens.length,y?(h=e.bMarks[t]+e.tShift[t],v=Number(e.src.substr(h,d-h-1)),e.tokens.push({type:"ordered_list_open",order:v,lines:_=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:_=[t,0],level:e.level++}),a=t,w=!1,C=e.parser.ruler.getRules("list");!(!(a=g?1:k-d,m>4&&(m=1),m<1&&(m=1),l=d-e.bMarks[a]+m,e.tokens.push({type:"list_item_open",lines:A=[t,0],level:e.level++}),u=e.blkIndent,p=e.tight,c=e.tShift[t],f=e.parentType,e.tShift[t]=k-e.bMarks[t],e.blkIndent=l,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,r,!0),e.tight&&!w||(S=!1),w=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=u,e.tShift[t]=c,e.tight=p,e.parentType=f,e.tokens.push({type:"list_item_close",level:--e.level}),a=t=e.line,A[1]=a,k=e.bMarks[t],a>=r)||e.isEmpty(a)||e.tShift[a]u)return!1;if(91!==e.src.charCodeAt(c))return!1;if(94!==e.src.charCodeAt(c+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(a=c+2;a=u||58!==e.src.charCodeAt(++a))&&(!!n||(a++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),l=e.src.slice(c+2,a-2),e.env.footnotes.refs[":"+l]=-1,e.tokens.push({type:"footnote_reference_open",label:l,level:e.level++}),o=e.bMarks[t],s=e.tShift[t],i=e.parentType,e.tShift[t]=e.skipSpaces(a)-a,e.bMarks[t]=a,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]=l)return!1;if(35!==(o=e.src.charCodeAt(a))||a>=l)return!1;for(s=1,o=e.src.charCodeAt(++a);35===o&&a6||aa&&32===e.src.charCodeAt(i-1)&&(l=i),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:s,lines:[t,e.line],level:e.level}),a=r)&&(!(e.tShift[i]3)&&(o=e.bMarks[i]+e.tShift[i],s=e.eMarks[i],!(o>=s)&&((45===(n=e.src.charCodeAt(o))||61===n)&&(o=e.skipChars(o,n),!((o=e.skipSpaces(o))=97&&t<=122}var o=r(254),s=/^<([a-zA-Z]{1,15})[\s\/>]/,i=/^<\/([a-zA-Z]{1,15})[\s>]/;e.exports=function(e,t,r,a){var l,c,u,p=e.bMarks[t],f=e.eMarks[t],h=e.tShift[t];if(p+=h,!e.options.html)return!1;if(h>3||p+2>=f)return!1;if(60!==e.src.charCodeAt(p))return!1;if(33===(l=e.src.charCodeAt(p+1))||63===l){if(a)return!0}else{if(47!==l&&!n(l))return!1;if(47===l){if(!(c=e.src.slice(p,f).match(i)))return!1}else if(!(c=e.src.slice(p,f).match(s)))return!1;if(!0!==o[c[1].toLowerCase()])return!1;if(a)return!0}for(u=t+1;ur)return!1;if(c=t+1,e.tShift[c]=e.eMarks[c])return!1;if(124!==(s=e.src.charCodeAt(a))&&45!==s&&58!==s)return!1;if(i=n(e,t+1),!/^[-:| ]+$/.test(i))return!1;if((u=i.split("|"))<=2)return!1;for(f=[],l=0;l=s?-1:126!==(n=e.src.charCodeAt(o++))&&58!==n?-1:(r=e.skipSpaces(o),o===r?-1:r>=s?-1:r)}function o(e,t){var r,n,o=e.level+2;for(r=t+2,n=e.tokens.length-2;r=0;if(f=t+1,e.isEmpty(f)&&++f>r)return!1;if(e.tShift[f]=e.options.maxNesting)return!1;p=e.tokens.length,e.tokens.push({type:"dl_open",lines:u=[t,0],level:e.level++}),l=t,a=f;e:for(;;){for(y=!0,b=!1,e.tokens.push({type:"dt_open",lines:[l,l],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(l,l+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[l,l],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:c=[f,0],level:e.level++}),v=e.tight,d=e.ddIndent,h=e.blkIndent,m=e.tShift[a],g=e.parentType,e.blkIndent=e.ddIndent=e.tShift[a]+2,e.tShift[a]=i-e.bMarks[a],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,a,r,!0),e.tight&&!b||(y=!1),b=e.line-a>1&&e.isEmpty(e.line-1),e.tShift[a]=m,e.tight=v,e.parentType=g,e.blkIndent=h,e.ddIndent=d,e.tokens.push({type:"dd_close",level:--e.level}),c[1]=f=e.line,f>=r)break e;if(e.tShift[f]=r)break;if(l=f,e.isEmpty(l))break;if(e.tShift[l]=r)break;if(e.isEmpty(a)&&a++,a>=r)break;if(e.tShift[a]3)){for(o=!1,s=0,i=a.length;s0)return void(e.pos=r);for(t=0;t=s)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},n.prototype.parse=function(e,t,r,n){var o=new i(e,this,t,r,n);this.tokenize(o)},e.exports=n},function(e,t,r){"use strict";function n(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}e.exports=function(e,t){for(var r=e.pos;r=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){for(var s=r-2;s>=0;s--)if(32!==e.pending.charCodeAt(s)){e.pending=e.pending.substring(0,s+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o?@[]^_`{|}~-".split("").forEach(function(e){n[e.charCodeAt(0)]=1}),e.exports=function(e,t){var r,o=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o=a)return!1;if(126!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(s=l>0?e.src.charCodeAt(l-1):-1,i=e.src.charCodeAt(l+2),126===s)return!1;if(126===i)return!1;if(32===i||10===i)return!1;for(n=l+2;nl+3)return e.pos+=n-l,t||(e.pending+=e.src.slice(l,n)),!0;for(e.pos=l+2,o=1;e.pos+1=a)return!1;if(43!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(s=l>0?e.src.charCodeAt(l-1):-1,i=e.src.charCodeAt(l+2),43===s)return!1;if(43===i)return!1;if(32===i||10===i)return!1;for(n=l+2;n=a)return!1;if(61!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(s=l>0?e.src.charCodeAt(l-1):-1,i=e.src.charCodeAt(l+2),61===s)return!1;if(61===i)return!1;if(32===i||10===i)return!1;for(n=l+2;n=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function o(e,t){var r,o,s,i=t,a=!0,l=!0,c=e.posMax,u=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;i=c&&(a=!1),s=i-t,s>=4?a=l=!1:(o=i=e.options.maxNesting)return!1;for(e.pos=p+r,l=[r];e.pos?@[\]^_`{|}~-])/g;e.exports=function(e,t){var r,o,s=e.posMax,i=e.pos;if(126!==e.src.charCodeAt(i))return!1;if(t)return!1;if(i+2>=s)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=i+1;e.pos?@[\]^_`{|}~-])/g;e.exports=function(e,t){var r,o,s=e.posMax,i=e.pos;if(94!==e.src.charCodeAt(i))return!1;if(t)return!1;if(i+2>=s)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=i+1;e.pos=e.options.maxNesting)return!1;if(r=v+1,(a=n(e,v))<0)return!1;if((p=a+1)=m)return!1;for(v=p,o(e,p)?(c=e.linkContent,p=e.pos):c="",v=p;p=m||41!==e.src.charCodeAt(p))return e.pos=g,!1;p++}else{if(e.linkLevel>0)return!1;for(;p=0?l=e.src.slice(v,p++):p=v-1),l||(void 0===l&&(p=a+1),l=e.src.slice(r,a)),!(f=e.env.references[i(l)]))return e.pos=g,!1;c=f.href,u=f.title}return t||(e.pos=r,e.posMax=a,d?e.push({type:"image",src:c,title:u,alt:e.src.substr(r,a-r),level:e.level}):(e.push({type:"link_open",href:c,title:u,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=p,e.posMax=m,!0}},function(e,t,r){"use strict";var n=r(208);e.exports=function(e,t){var r,o,s,i,a=e.posMax,l=e.pos;return!(l+2>=a)&&(94===e.src.charCodeAt(l)&&(91===e.src.charCodeAt(l+1)&&(!(e.level>=e.options.maxNesting)&&(r=l+2,!((o=n(e,l+1))<0)&&(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),s=e.env.footnotes.list.length,e.pos=r,e.posMax=o,e.push({type:"footnote_ref",id:s,level:e.level}),e.linkLevel++,i=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[s]={tokens:e.tokens.splice(i)},e.linkLevel--),e.pos=o+1,e.posMax=a,!0)))))}},function(e,t,r){"use strict";e.exports=function(e,t){var r,n,o,s,i=e.posMax,a=e.pos;if(a+3>i)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(a))return!1;if(94!==e.src.charCodeAt(a+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(n=a+2;n=i)&&(n++,r=e.src.slice(a+2,n-1),void 0!==e.env.footnotes.refs[":"+r]&&(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+r]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:r,count:0},e.env.footnotes.refs[":"+r]=o):o=e.env.footnotes.refs[":"+r],s=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:s,level:e.level})),e.pos=n,e.posMax=i,!0)))}},function(e,t,r){"use strict";var n=r(273),o=r(221),s=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,i=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var r,a,l,c,u,p=e.pos;return 60===e.src.charCodeAt(p)&&(r=e.src.slice(p),!(r.indexOf(">")<0)&&((a=r.match(i))?!(n.indexOf(a[1].toLowerCase())<0)&&(c=a[0].slice(1,-1),u=o(c),!!e.parser.validateLink(c)&&(t||(e.push({type:"link_open",href:u,level:e.level}),e.push({type:"text",content:c,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=a[0].length,!0)):!!(l=r.match(s))&&(c=l[0].slice(1,-1),u=o("mailto:"+c),!!e.parser.validateLink(u)&&(t||(e.push({type:"link_open",href:u,level:e.level}),e.push({type:"text",content:c,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=l[0].length,!0))))}},function(e,t,r){"use strict";e.exports=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"]},function(e,t,r){"use strict";function n(e){var t=32|e;return t>=97&&t<=122}var o=r(275).HTML_TAG_RE;e.exports=function(e,t){var r,s,i,a=e.pos;return!!e.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(a)||a+2>=i)&&(!(33!==(r=e.src.charCodeAt(a+1))&&63!==r&&47!==r&&!n(r))&&(!!(s=e.src.slice(a).match(o))&&(t||e.push({type:"htmltag",content:e.src.slice(a,a+s[0].length),level:e.level}),e.pos+=s[0].length,!0))))}},function(e,t,r){"use strict";function n(e,t){return e=e.source,t=t||"",function r(n,o){return n?(o=o.source||o,e=e.replace(n,o),r):new RegExp(e,t)}}var o=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,s=/[^"'=<>`\x00-\x20]+/,i=/'[^']*'/,a=/"[^"]*"/,l=n(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",s)("single_quoted",i)("double_quoted",a)(),c=n(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",o)("attr_value",l)(),u=n(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",c)(),p=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,f=//,h=/<[?].*?[?]>/,d=/]*>/,g=/])*\]\]>/,m=n(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",u)("close_tag",p)("comment",f)("processing",h)("declaration",d)("cdata",g)();e.exports.HTML_TAG_RE=m},function(e,t,r){"use strict";var n=r(219),o=r(199).has,s=r(199).isValidEntityCode,i=r(199).fromCodePoint,a=/^((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var r,c,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,r){"use strict";function n(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0?this.closeWithTimeout():this.closeWithoutTimeout())},focusContent:function(){this.contentHasFocus()||this.refs.content.focus()},closeWithTimeout:function(){this.setState({beforeClose:!0},function(){this.closeTimer=setTimeout(this.closeWithoutTimeout,this.props.closeTimeoutMS)}.bind(this))},closeWithoutTimeout:function(){this.setState({beforeClose:!1,isOpen:!1,afterOpen:!1},this.afterClose)},afterClose:function(){s.returnFocus(),s.teardownScopedFocus()},handleKeyDown:function(e){9==e.keyCode&&i(this.refs.content,e),27==e.keyCode&&(e.preventDefault(),this.requestClose(e))},handleOverlayMouseDown:function(e){null===this.shouldClose&&(this.shouldClose=!0)},handleOverlayMouseUp:function(e){this.shouldClose&&this.props.shouldCloseOnOverlayClick&&(this.ownerHandlesClose()?this.requestClose(e):this.focusContent()),this.shouldClose=null},handleContentMouseDown:function(e){this.shouldClose=!1},handleContentMouseUp:function(e){this.shouldClose=!1},requestClose:function(e){this.ownerHandlesClose()&&this.props.onRequestClose(e)},ownerHandlesClose:function(){return this.props.onRequestClose},shouldBeClosed:function(){return!this.props.isOpen&&!this.state.beforeClose},contentHasFocus:function(){return document.activeElement===this.refs.content||this.refs.content.contains(document.activeElement)},buildClassName:function(e,t){var r=l[e].base;return this.state.afterOpen&&(r+=" "+l[e].afterOpen),this.state.beforeClose&&(r+=" "+l[e].beforeClose),t?r+" "+t:r},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?o():o({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:a({},t,this.props.style.overlay||{}),onMouseDown:this.handleOverlayMouseDown,onMouseUp:this.handleOverlayMouseUp},o({ref:"content",style:a({},e,this.props.style.content||{}),className:this.buildClassName("content",this.props.className),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentMouseDown,onMouseUp:this.handleContentMouseUp,role:this.props.role},this.props.children))}})},function(e,t,r){function n(e){l=!0}function o(e){if(l){if(l=!1,!i)return;setTimeout(function(){if(!i.contains(document.activeElement)){(s(i)[0]||i).focus()}},0)}}var s=r(224),i=null,a=null,l=!1;t.markForFocusLater=function(){a=document.activeElement},t.returnFocus=function(){try{a.focus()}catch(e){console.warn("You tried to return focus to "+a+" but it is not in the DOM anymore")}a=null},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",n,!1),document.addEventListener("focus",o,!0)):(window.attachEvent("onBlur",n),document.attachEvent("onFocus",o))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",n),document.removeEventListener("focus",o)):(window.detachEvent("onBlur",n),document.detachEvent("onFocus",o))}},function(e,t,r){var n=r(224);e.exports=function(e,t){var r=n(e);if(!r.length)return void t.preventDefault();r[t.shiftKey?0:r.length-1]!==document.activeElement&&e!==document.activeElement||(t.preventDefault(),r[t.shiftKey?r.length-1:0].focus())}},function(e,t,r){function n(e,t){return null==t?e:o(t,s(t),e)}var o=r(289),s=r(226);e.exports=n},function(e,t){function r(e,t,r){r||(r={});for(var n=-1,o=t.length;++n-1&&e%1==0&&e<=c}function a(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function l(e){return!!e&&"object"==typeof e}var c=9007199254740991,u="[object Arguments]",p="[object Function]",f="[object GeneratorFunction]",h=Object.prototype,d=h.hasOwnProperty,g=h.toString,m=h.propertyIsEnumerable;e.exports=r},function(e,t){function r(e){return!!e&&"object"==typeof e}function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=g}function o(e){return s(e)&&f.call(e)==a}function s(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function i(e){return null!=e&&(o(e)?h.test(u.call(e)):r(e)&&l.test(e))}var a="[object Function]",l=/^\[object .+?Constructor\]$/,c=Object.prototype,u=Function.prototype.toString,p=c.hasOwnProperty,f=c.toString,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),d=function(e,t){var r=null==e?void 0:e[t];return i(r)?r:void 0}(Array,"isArray"),g=9007199254740991,m=d||function(e){return r(e)&&n(e.length)&&"[object Array]"==f.call(e)};e.exports=m},function(e,t,r){function n(e){return i(function(t,r){var n=-1,i=null==t?0:r.length,a=i>2?r[i-2]:void 0,l=i>2?r[2]:void 0,c=i>1?r[i-1]:void 0;for("function"==typeof a?(a=o(a,c,5),i-=2):(a="function"==typeof c?c:void 0,i-=a?1:0),l&&s(r[0],r[1],l)&&(a=i<3?void 0:a,i=1);++n-1&&e%1==0&&e-1&&e%1==0&&e<=l}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var a=/^\d+$/,l=9007199254740991,c=function(e){return function(t){return null==t?void 0:t[e]}}("length");e.exports=o},function(e,t){function r(e,t){if("function"!=typeof e)throw new TypeError(n);return t=o(void 0===t?e.length-1:+t||0,0),function(){for(var r=arguments,n=-1,s=o(r.length-t,0),i=Array(s);++n-1?n:(n.push(e),t.className=n.join(" "),n)}},n.prototype.remove=function(e){var t=this.el;if(t&&""!==t.className){var n=t.className.split(" "),o=r(n,e);return o>-1&&n.splice(o,1),t.className=n.join(" "),n}},n.prototype.has=function(e){var t=this.el;if(t){return r(t.className.split(" "),e)>-1}},n.prototype.toggle=function(e){this.el&&(this.has(e)?this.remove(e):this.add(e))}}]));
--------------------------------------------------------------------------------