define("simple-html-tokenizer/entity-parser",["module","exports"],function(t,e){"use strict";function i(t){this.a=t}try{try{Object.defineProperty(e,"__esModule",{value:!0})}catch(s){e.__esModule=!0}}catch(s){e.__esModule=!0}var n=/^#[xX]([A-Fa-f0-9]+)$/,r=/^#([0-9]+)$/,h=/^([A-Za-z0-9]+)$/;i.prototype.parse=function(t){if(t){var e=t.match(n);return e?"&#x"+e[1]+";":(e=t.match(r))?"&#"+e[1]+";":(e=t.match(h),e?"&"+e[1]+";":void 0)}},e["default"]=i,t.exports=e["default"]}),define("simple-html-tokenizer/evented-tokenizer",["module","exports","./utils"],function(t,e,i){"use strict";function s(t,e){this.b=t,this.c=e,this.d=null,this.input=null,this.e=-1,this.f=-1,this.g=-1,this.h=-1,this.i=-1,this.j()}try{try{Object.defineProperty(e,"__esModule",{value:!0})}catch(n){e.__esModule=!0}}catch(n){e.__esModule=!0}s.prototype={j:function(){this.d="beforeData",this.input="",this.e=0,this.f=1,this.g=0,this.h=-1,this.i=-1,this.b.j()},tokenize:function(t){this.j(),this.tokenizePart(t),this.tokenizeEOF()},tokenizePart:function(t){for(this.input+=(0,i.k)(t);this.e<this.input.length;)this.l[this.d].call(this)},tokenizeEOF:function(){this.m()},m:function(){"data"===this.d&&(this.b.n(),this.d="beforeData")},o:function(){return this.input.charAt(this.e)},p:function(){var t=this.o();return this.e++,"\n"===t?(this.f++,this.g=0):this.g++,t},q:function(){var t=this.input.indexOf(";",this.e);if(t!==-1){var e=this.input.slice(this.e,t),i=this.c.parse(e);if(i){for(var s=e.length;s;)this.p(),s--;return this.p(),i}}},r:function(){this.h=this.f,this.i=this.g,this.b.tagOpen&&this.b.tagOpen()},l:{beforeData:function(){var t=this.o();"<"===t?(this.d="tagOpen",this.r(),this.p()):(this.d="data",this.b.s())},data:function(){var t=this.o();"<"===t?(this.b.n(),this.d="tagOpen",this.r(),this.p()):"&"===t?(this.p(),this.b.t(this.q()||"&")):(this.p(),this.b.t(t))},tagOpen:function(){var t=this.p();"!"===t?this.d="markupDeclaration":"/"===t?this.d="endTagOpen":(0,i.u)(t)&&(this.d="tagName",this.b.v(),this.b.w(t.toLowerCase()))},markupDeclaration:function(){var t=this.p();"-"===t&&"-"===this.input.charAt(this.e)&&(this.p(),this.d="commentStart",this.b.x())},commentStart:function(){var t=this.p();"-"===t?this.d="commentStartDash":">"===t?(this.b.y(),this.d="beforeData"):(this.b.z(t),this.d="comment")},commentStartDash:function(){var t=this.p();"-"===t?this.d="commentEnd":">"===t?(this.b.y(),this.d="beforeData"):(this.b.z("-"),this.d="comment")},comment:function(){var t=this.p();"-"===t?this.d="commentEndDash":this.b.z(t)},commentEndDash:function(){var t=this.p();"-"===t?this.d="commentEnd":(this.b.z("-"+t),this.d="comment")},commentEnd:function(){var t=this.p();">"===t?(this.b.y(),this.d="beforeData"):(this.b.z("--"+t),this.d="comment")},tagName:function(){var t=this.p();(0,i.A)(t)?this.d="beforeAttributeName":"/"===t?this.d="selfClosingStartTag":">"===t?(this.b.B(),this.d="beforeData"):this.b.w(t)},beforeAttributeName:function(){var t=this.o();return(0,i.A)(t)?void this.p():void("/"===t?(this.d="selfClosingStartTag",this.p()):">"===t?(this.p(),this.b.B(),this.d="beforeData"):(this.d="attributeName",this.b.C(),this.p(),this.b.D(t)))},attributeName:function(){var t=this.o();(0,i.A)(t)?(this.d="afterAttributeName",this.p()):"/"===t?(this.b.F(!1),this.b.G(),this.p(),this.d="selfClosingStartTag"):"="===t?(this.d="beforeAttributeValue",this.p()):">"===t?(this.b.F(!1),this.b.G(),this.p(),this.b.B(),this.d="beforeData"):(this.p(),this.b.D(t))},afterAttributeName:function(){var t=this.o();return(0,i.A)(t)?void this.p():void("/"===t?(this.b.F(!1),this.b.G(),this.p(),this.d="selfClosingStartTag"):"="===t?(this.p(),this.d="beforeAttributeValue"):">"===t?(this.b.F(!1),this.b.G(),this.p(),this.b.B(),this.d="beforeData"):(this.b.F(!1),this.b.G(),this.p(),this.d="attributeName",this.b.C(),this.b.D(t)))},beforeAttributeValue:function(){var t=this.o();(0,i.A)(t)?this.p():'"'===t?(this.d="attributeValueDoubleQuoted",this.b.F(!0),this.p()):"'"===t?(this.d="attributeValueSingleQuoted",this.b.F(!0),this.p()):">"===t?(this.b.F(!1),this.b.G(),this.p(),this.b.B(),this.d="beforeData"):(this.d="attributeValueUnquoted",this.b.F(!1),this.p(),this.b.H(t))},attributeValueDoubleQuoted:function(){var t=this.p();'"'===t?(this.b.G(),this.d="afterAttributeValueQuoted"):"&"===t?this.b.H(this.q('"')||"&"):this.b.H(t)},attributeValueSingleQuoted:function(){var t=this.p();"'"===t?(this.b.G(),this.d="afterAttributeValueQuoted"):"&"===t?this.b.H(this.q("'")||"&"):this.b.H(t)},attributeValueUnquoted:function(){var t=this.o();(0,i.A)(t)?(this.b.G(),this.p(),this.d="beforeAttributeName"):"&"===t?(this.p(),this.b.H(this.q(">")||"&")):">"===t?(this.b.G(),this.p(),this.b.B(),this.d="beforeData"):(this.p(),this.b.H(t))},afterAttributeValueQuoted:function(){var t=this.o();(0,i.A)(t)?(this.p(),this.d="beforeAttributeName"):"/"===t?(this.p(),this.d="selfClosingStartTag"):">"===t?(this.p(),this.b.B(),this.d="beforeData"):this.d="beforeAttributeName"},selfClosingStartTag:function(){var t=this.o();">"===t?(this.p(),this.b.I(),this.b.B(),this.d="beforeData"):this.d="beforeAttributeName"},endTagOpen:function(){var t=this.p();(0,i.u)(t)&&(this.d="tagName",this.b.J(),this.b.w(t.toLowerCase()))}}},e["default"]=s,t.exports=e["default"]}),define("simple-html-tokenizer/html5-named-char-refs",["module","exports"],function(t,e){"use strict";try{try{Object.defineProperty(e,"__esModule",{value:!0})}catch(i){e.__esModule=!0}}catch(i){e.__esModule=!0}var s={};e["default"]=s,t.exports=e["default"]}),define("simple-html-tokenizer/index",["exports","./html5-named-char-refs","./entity-parser","./evented-tokenizer","./tokenizer","./tokenize"],function(t,e,i,s,n,r){"use strict";function h(t){return t&&t.__esModule?t:{"default":t}}try{try{Object.defineProperty(t,"__esModule",{value:!0})}catch(a){t.__esModule=!0}}catch(a){t.__esModule=!0}Object.defineProperty(t,"HTML5NamedCharRefs",{K:!0,get:function(){return h(e)["default"]}}),Object.defineProperty(t,"EntityParser",{K:!0,get:function(){return h(i)["default"]}}),Object.defineProperty(t,"EventedTokenizer",{K:!0,get:function(){return h(s)["default"]}}),Object.defineProperty(t,"Tokenizer",{K:!0,get:function(){return h(n)["default"]}}),Object.defineProperty(t,"tokenize",{K:!0,get:function(){return h(r)["default"]}})}),define("simple-html-tokenizer/tokenize",["module","exports","./tokenizer","./entity-parser","./html5-named-char-refs"],function(t,e,i,s,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function h(t,e){var i=new o["default"](new u["default"](f["default"]),e);return i.tokenize(t)}try{try{Object.defineProperty(e,"__esModule",{value:!0})}catch(a){e.__esModule=!0}}catch(a){e.__esModule=!0}e["default"]=h;var o=r(i),u=r(s),f=r(n);t.exports=e["default"]}),define("simple-html-tokenizer/tokenizer",["module","exports","./evented-tokenizer"],function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){this.L=null,this.startLine=1,this.startColumn=0,this.options=e||{},this.tokenizer=new h["default"](this,t)}try{try{Object.defineProperty(e,"__esModule",{value:!0})}catch(r){e.__esModule=!0}}catch(r){e.__esModule=!0}var h=s(i);n.prototype={tokenize:function(t){return this.M=[],this.tokenizer.tokenize(t),this.M},tokenizePart:function(t){return this.M=[],this.tokenizer.tokenizePart(t),this.M},tokenizeEOF:function(){return this.M=[],this.tokenizer.tokenizeEOF(),this.M[0]},j:function(){this.L=null,this.startLine=1,this.startColumn=0},N:function(){this.options.O&&(this.L.O={start:{f:this.startLine,g:this.startColumn},P:{f:this.tokenizer.f,g:this.tokenizer.g}}),this.startLine=this.tokenizer.f,this.startColumn=this.tokenizer.g},s:function(){this.L={type:"Chars",chars:""},this.M.push(this.L)},t:function(t){this.L.chars+=t},n:function(){this.N()},x:function(){this.L={type:"Comment",chars:""},this.M.push(this.L)},z:function(t){this.L.chars+=t},y:function(){this.N()},v:function(){this.L={type:"StartTag",tagName:"",attributes:[],Q:!1},this.M.push(this.L)},J:function(){this.L={type:"EndTag",tagName:""},this.M.push(this.L)},B:function(){this.N()},I:function(){this.L.Q=!0},w:function(t){this.L.tagName+=t},C:function(){this._currentAttribute=["","",null],this.L.attributes.push(this._currentAttribute)},D:function(t){this._currentAttribute[0]+=t},F:function(t){this._currentAttribute[2]=t},H:function(t){this._currentAttribute[1]=this._currentAttribute[1]||"",this._currentAttribute[1]+=t},G:function(){}},e["default"]=n,t.exports=e["default"]}),define("simple-html-tokenizer/utils",["exports"],function(t){"use strict";function e(t){return r.test(t)}function i(t){return h.test(t)}function s(t){return t.replace(a,"\n")}try{try{Object.defineProperty(t,"__esModule",{value:!0})}catch(n){t.__esModule=!0}}catch(n){t.__esModule=!0}t.A=e,t.u=i,t.k=s;var r=/[\t\n\f ]/,h=/[A-Za-z]/,a=/\r\n?/g}),define("simple-html-tokenizer",["module","exports","./simple-html-tokenizer/html5-named-char-refs","./simple-html-tokenizer/entity-parser","./simple-html-tokenizer/evented-tokenizer","./simple-html-tokenizer/tokenizer","./simple-html-tokenizer/tokenize"],function(t,e,i,s,n,r,h){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}try{try{Object.defineProperty(e,"__esModule",{value:!0})}catch(o){e.__esModule=!0}}catch(o){e.__esModule=!0}var u=a(i),f=a(s),c=a(n),l=a(r),d=a(h),p={HTML5NamedCharRefs:u["default"],EntityParser:f["default"],EventedTokenizer:c["default"],Tokenizer:l["default"],tokenize:d["default"]};e["default"]=p,t.exports=e["default"]}),define("linkify-html",["module","exports","./simple-html-tokenizer","./linkify"],function(t,e,i,s){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function h(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=d["default"].tokenize(t),n=[],r=[];for(i=new m(i),e=0;e<s.length;e++){var h=s[e];if(h.type!==v)if(h.type===g){var f=a(h.chars,i);n.push.apply(n,f)}else n.push(h);else{n.push(h);var l=h.tagName.toUpperCase(),p="A"===l||b.contains(i.ignoreTags,l);if(!p)continue;var k=n.length;o(l,s,++e,n),e+=n.length-k-1}}for(e=0;e<n.length;e++){var z=n[e];switch(z.type){case v:var M="<"+z.tagName;if(z.attributes.length>0){var A=c(z.attributes);M+=" "+A.join(" ")}M+=">",r.push(M);break;case _:r.push("</"+z.tagName+">");break;case g:r.push(u(z.chars));break;case y:r.push("<!--"+u(z.chars)+"-->")}}return r.join("")}function a(t,e){for(var i=p.tokenize(t),s=[],n=0;n<i.length;n++){var r=i[n];if("nl"===r.type&&e.nl2br)s.push({type:v,tagName:"br",attributes:[],Q:!0});else if(r.isLink&&e.check(r)){var h=e.resolve(r),a=(h.href,h.formatted),o=h.formattedHref,u=h.tagName,f=h.className,c=h.target,l=h.attributes,d=[["href",o]];f&&d.push(["class",f]),c&&d.push(["target",c]);for(var b in l)d.push([b,l[b]]);s.push({type:v,tagName:u,attributes:d,Q:!1}),s.push({type:g,chars:a}),s.push({type:_,tagName:u})}else s.push({type:g,chars:r.toString()})}return s}function o(t,e,i,s){for(var n=1;i<e.length&&n>0;){var r=e[i];r.type===v&&r.tagName.toUpperCase()===t?n++:r.type===_&&r.tagName.toUpperCase()===t&&n--,s.push(r),i++}return s}function u(t){return t}function f(t){return t.replace(/"/g,""")}function c(t){for(var e=[],i=0;i<t.length;i++){var s=t[i],n=s[0],r=s[1];e.push(n+'="'+f(r)+'"')}return e}try{try{Object.defineProperty(e,"__esModule",{value:!0})}catch(l){e.__esModule=!0}}catch(l){e.__esModule=!0}e["default"]=h;var d=r(i),p=n(s),b=p.options,m=b.Options,v="StartTag",_="EndTag",g="Chars",y="Comment";t.exports=e["default"]}); |