UNPKG

vue3-beautiful-chat

Version:

A simple and beautiful Vue 3 chat component backend agnostic.

4 lines 404 kB
(function(e,L){typeof exports=="object"&&typeof module<"u"?module.exports=L(require("vue")):typeof define=="function"&&define.amd?define(["vue"],L):(e=typeof globalThis<"u"?globalThis:e||self,e.VueBeatifulChat=L(e.Vue))})(this,function(e){"use strict";const L={state:e.reactive({editMessage:null}),setState(u,D){this.state[u]=D}};function ZD(u){const D={};return u.forEach(f=>{D[f]=function(){return L.state[f]}}),D}const $=(u,D)=>{const f=u.__vccOpts||u;for(const[t,n]of D)f[t]=n;return f},n1={props:{title:{type:String,required:!0},colors:{type:Object,required:!0}},data(){return{inUserList:!1}},computed:{...ZD(["disableUserListToggle","titleImageUrl","showCloseButton","showMinimizeButton"])},methods:{toggleUserList(){this.inUserList=!this.inUserList,this.$emit("userList",this.inUserList)}}},a1=["src"],o1={key:2,class:"sc-header--title"};function r1(u,D,f,t,n,F){return e.openBlock(),e.createElementBlock("div",{class:"sc-header",style:e.normalizeStyle({background:f.colors.header.bg,color:f.colors.header.text,zIndex:1})},[u.titleImageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,class:"sc-header--img",src:u.titleImageUrl,alt:""},null,8,a1)):e.createCommentVNode("",!0),u.disableUserListToggle?(e.openBlock(),e.createElementBlock("div",o1,[e.renderSlot(u.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(f.title),1)],!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"sc-header--title enabled",onClick:D[0]||(D[0]=(...o)=>F.toggleUserList&&F.toggleUserList(...o))},[e.renderSlot(u.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(f.title),1)],!0)])),u.showMinimizeButton?(e.openBlock(),e.createElementBlock("div",{key:3,class:"sc-header--minimize-button",onClick:D[1]||(D[1]=o=>u.$emit("minimize"))},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({fill:f.colors.header.text}),xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 47.971 47.971"},D[3]||(D[3]=[e.createElementVNode("g",null,[e.createElementVNode("rect",{x:"0",y:"20",width:"47.971",height:"6.5",rx:"3",ry:"3"})],-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1)]),4))])):e.createCommentVNode("",!0),u.showCloseButton?(e.openBlock(),e.createElementBlock("div",{key:4,class:"sc-header--close-button",onClick:D[2]||(D[2]=o=>u.$emit("close"))},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({fill:f.colors.header.text}),xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 47.971 47.971"},D[4]||(D[4]=[e.createElementVNode("g",null,[e.createElementVNode("path",{d:`M28.228,23.986L47.092,5.122c1.172-1.171,1.172-3.071,0-4.242c-1.172-1.172-3.07-1.172-4.242,0L23.986,19.744L5.121,0.88 c-1.172-1.172-3.07-1.172-4.242,0c-1.172,1.171-1.172,3.071,0,4.242l18.865,18.864L0.879,42.85c-1.172,1.171-1.172,3.071,0,4.242 C1.465,47.677,2.233,47.97,3,47.97s1.535-0.293,2.121-0.879l18.865-18.864L42.85,47.091c0.586,0.586,1.354,0.879,2.121,0.879 s1.535-0.293,2.121-0.879c1.172-1.171,1.172-3.071,0-4.242L28.228,23.986z`})],-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1),e.createElementVNode("g",null,null,-1)]),4))])):e.createCommentVNode("",!0)],4)}const d1=$(n1,[["render",r1],["__scopeId","data-v-83a4c0f7"]]),i1={props:{iconName:{type:String,default:"box"},width:{type:[Number,String],default:18},height:{type:[Number,String],default:18},iconColor:{type:String,default:"currentColor"}}},s1=["width","height","aria-labelledby"],C1=["id"],c1=["fill"];function l1(u,D,f,t,n,F){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:f.width,height:f.height,viewBox:"0 0 18 18","aria-labelledby":f.iconName,role:"presentation"},[e.createElementVNode("title",{id:f.iconName,lang:"en"},e.toDisplayString(f.iconName),9,C1),e.createElementVNode("g",{fill:f.iconColor},[e.renderSlot(u.$slots,"default",{},void 0,!0)],8,c1)],8,s1)}const QD=$(i1,[["render",l1],["__scopeId","data-v-1fd45a6c"]]),E1={},B1={d:"M19.404,6.65l-5.998-5.996c-0.292-0.292-0.765-0.292-1.056,0l-2.22,2.22l-8.311,8.313l-0.003,0.001v0.003l-0.161,0.161c-0.114,0.112-0.187,0.258-0.21,0.417l-1.059,7.051c-0.035,0.233,0.044,0.47,0.21,0.639c0.143,0.14,0.333,0.219,0.528,0.219c0.038,0,0.073-0.003,0.111-0.009l7.054-1.055c0.158-0.025,0.306-0.098,0.417-0.211l8.478-8.476l2.22-2.22C19.695,7.414,19.695,6.941,19.404,6.65z M8.341,16.656l-0.989-0.99l7.258-7.258l0.989,0.99L8.341,16.656z M2.332,15.919l0.411-2.748l4.143,4.143l-2.748,0.41L2.332,15.919z M13.554,7.351L6.296,14.61l-0.849-0.848l7.259-7.258l0.423,0.424L13.554,7.351zM10.658,4.457l0.992,0.99l-7.259,7.258L3.4,11.715L10.658,4.457z M16.656,8.342l-1.517-1.517V6.823h-0.003l-0.951-0.951l-2.471-2.471l1.164-1.164l4.942,4.94L16.656,8.342z"};function p1(u,D){return e.openBlock(),e.createElementBlock("path",B1)}const m1=$(E1,[["render",p1]]),b1={},g1={d:"M15.898,4.045c-0.271-0.272-0.713-0.272-0.986,0l-4.71,4.711L5.493,4.045c-0.272-0.272-0.714-0.272-0.986,0s-0.272,0.714,0,0.986l4.709,4.711l-4.71,4.711c-0.272,0.271-0.272,0.713,0,0.986c0.136,0.136,0.314,0.203,0.492,0.203c0.179,0,0.357-0.067,0.493-0.203l4.711-4.711l4.71,4.711c0.137,0.136,0.314,0.203,0.494,0.203c0.178,0,0.355-0.067,0.492-0.203c0.273-0.273,0.273-0.715,0-0.986l-4.711-4.711l4.711-4.711C16.172,4.759,16.172,4.317,15.898,4.045z"};function h1(u,D){return e.openBlock(),e.createElementBlock("path",g1)}const JD=$(b1,[["render",h1]]),uf=u=>u.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;");function _1(u,...D){if(typeof u=="string")return uf(u);let f=u[0];for(const[t,n]of D.entries())f=f+uf(String(n))+u[t+1];return f}var y1="4.1.0";function A1(u){return u===void 0}function Q(u){return typeof u=="boolean"}function w1(u,D){for(var f in D)D.hasOwnProperty(f)&&A1(u[f])&&(u[f]=D[f]);return u}function v1(u,D,f){var t;return u.length>D&&(f==null?(f="&hellip;",t=3):t=f.length,u=u.substring(0,D-t)+f),u}function T(u,D){for(var f=u.length-1;f>=0;f--)u[f]===D&&u.splice(f,1)}function pu(u,D){for(var f=u.length-1;f>=0;f--)D(u[f])===!0&&u.splice(f,1)}function yu(u){throw new Error("Unhandled case for value: '".concat(u,"'"))}var Au=/[A-Za-z]/,M=/[\d]/,fu=/\s/,cD=/['"]/,k1=/[\x00-\x1F\x7F]/,x1=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,S1=/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source,T1=/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,N1=x1+S1+T1,$1=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,Df=N1+$1,mu=new RegExp("[".concat(Df,"]")),ff=function(){function u(D){D===void 0&&(D={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=D.tagName||"",this.attrs=D.attrs||{},this.innerHTML=D.innerHtml||D.innerHTML||""}return u.prototype.setTagName=function(D){return this.tagName=D,this},u.prototype.getTagName=function(){return this.tagName||""},u.prototype.setAttr=function(D,f){var t=this.getAttrs();return t[D]=f,this},u.prototype.getAttr=function(D){return this.getAttrs()[D]},u.prototype.setAttrs=function(D){return Object.assign(this.getAttrs(),D),this},u.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},u.prototype.setClass=function(D){return this.setAttr("class",D)},u.prototype.addClass=function(D){for(var f=this.getClass(),t=f?f.split(fu):[],n=D.split(fu),F;F=n.shift();)t.indexOf(F)===-1&&t.push(F);return this.getAttrs().class=t.join(" "),this},u.prototype.removeClass=function(D){for(var f=this.getClass(),t=f?f.split(fu):[],n=D.split(fu),F;t.length&&(F=n.shift());){var o=t.indexOf(F);o!==-1&&t.splice(o,1)}return this.getAttrs().class=t.join(" "),this},u.prototype.getClass=function(){return this.getAttrs().class||""},u.prototype.hasClass=function(D){return(" "+this.getClass()+" ").indexOf(" "+D+" ")!==-1},u.prototype.setInnerHTML=function(D){return this.innerHTML=D,this},u.prototype.setInnerHtml=function(D){return this.setInnerHTML(D)},u.prototype.getInnerHTML=function(){return this.innerHTML||""},u.prototype.getInnerHtml=function(){return this.getInnerHTML()},u.prototype.toAnchorString=function(){var D=this.getTagName(),f=this.buildAttrsStr();return f=f?" "+f:"",["<",D,f,">",this.getInnerHtml(),"</",D,">"].join("")},u.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var D=this.getAttrs(),f=[];for(var t in D)D.hasOwnProperty(t)&&f.push(t+'="'+D[t]+'"');return f.join(" ")},u}();function j1(u,D,f){var t,n;f==null?(f="&hellip;",n=3,t=8):(n=f.length,t=f.length);var F=function(_){var y={},m=_,h=m.match(/^([a-z]+):\/\//i);return h&&(y.scheme=h[1],m=m.substr(h[0].length)),h=m.match(/^(.*?)(?=(\?|#|\/|$))/i),h&&(y.host=h[1],m=m.substr(h[0].length)),h=m.match(/^\/(.*?)(?=(\?|#|$))/i),h&&(y.path=h[1],m=m.substr(h[0].length)),h=m.match(/^\?(.*?)(?=(#|$))/i),h&&(y.query=h[1],m=m.substr(h[0].length)),h=m.match(/^#(.*?)$/i),h&&(y.fragment=h[1]),y},o=function(_){var y="";return _.scheme&&_.host&&(y+=_.scheme+"://"),_.host&&(y+=_.host),_.path&&(y+="/"+_.path),_.query&&(y+="?"+_.query),_.fragment&&(y+="#"+_.fragment),y},a=function(_,y){var m=y/2,h=Math.ceil(m),w=-1*Math.floor(m),v="";return w<0&&(v=_.substr(w)),_.substr(0,h)+f+v};if(u.length<=D)return u;var r=D-n,C=F(u);if(C.query){var d=C.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);d&&(C.query=C.query.substr(0,d[1].length),u=o(C))}if(u.length<=D||(C.host&&(C.host=C.host.replace(/^www\./,""),u=o(C)),u.length<=D))return u;var l="";if(C.host&&(l+=C.host),l.length>=r)return C.host.length==D?(C.host.substr(0,D-n)+f).substr(0,r+t):a(l,r).substr(0,r+t);var s="";if(C.path&&(s+="/"+C.path),C.query&&(s+="?"+C.query),s)if((l+s).length>=r){if((l+s).length==D)return(l+s).substr(0,D);var B=r-l.length;return(l+a(s,B)).substr(0,r+t)}else l+=s;if(C.fragment){var E="#"+C.fragment;if((l+E).length>=r){if((l+E).length==D)return(l+E).substr(0,D);var b=r-l.length;return(l+a(E,b)).substr(0,r+t)}else l+=E}if(C.scheme&&C.host){var g=C.scheme+"://";if((l+g).length<r)return(g+l).substr(0,D)}if(l.length<=D)return l;var A="";return r>0&&(A=l.substr(-1*Math.floor(r/2))),(l.substr(0,Math.ceil(r/2))+f+A).substr(0,r+t)}function O1(u,D,f){if(u.length<=D)return u;var t,n;f==null?(f="&hellip;",t=8,n=3):(t=f.length,n=f.length);var F=D-n,o="";return F>0&&(o=u.substr(-1*Math.floor(F/2))),(u.substr(0,Math.ceil(F/2))+f+o).substr(0,F+t)}function z1(u,D,f){return v1(u,D,f)}var I1=function(){function u(D){D===void 0&&(D={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=D.newWindow||!1,this.truncate=D.truncate||{},this.className=D.className||""}return u.prototype.build=function(D){return new ff({tagName:"a",attrs:this.createAttrs(D),innerHtml:this.processAnchorText(D.getAnchorText())})},u.prototype.createAttrs=function(D){var f={href:D.getAnchorHref()},t=this.createCssClass(D);return t&&(f.class=t),this.newWindow&&(f.target="_blank",f.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<D.getAnchorText().length&&(f.title=D.getAnchorHref()),f},u.prototype.createCssClass=function(D){var f=this.className;if(f){for(var t=[f],n=D.getCssClassSuffixes(),F=0,o=n.length;F<o;F++)t.push(f+"-"+n[F]);return t.join(" ")}else return""},u.prototype.processAnchorText=function(D){return D=this.doTruncate(D),D},u.prototype.doTruncate=function(D){var f=this.truncate;if(!f||!f.length)return D;var t=f.length,n=f.location;return n==="smart"?j1(D,t):n==="middle"?O1(D,t):z1(D,t)},u}(),lD=function(u,D){return lD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,t){f.__proto__=t}||function(f,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(f[n]=t[n])},lD(u,D)};function ju(u,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");lD(u,D);function f(){this.constructor=u}u.prototype=D===null?Object.create(D):(f.prototype=D.prototype,new f)}var V=function(){return V=Object.assign||function(D){for(var f,t=1,n=arguments.length;t<n;t++){f=arguments[t];for(var F in f)Object.prototype.hasOwnProperty.call(f,F)&&(D[F]=f[F])}return D},V.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var Ou=function(){function u(D){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=D.tagBuilder,this.matchedText=D.matchedText,this.offset=D.offset}return u.prototype.getMatchedText=function(){return this.matchedText},u.prototype.setOffset=function(D){this.offset=D},u.prototype.getOffset=function(){return this.offset},u.prototype.getCssClassSuffixes=function(){return[this.type]},u.prototype.buildTag=function(){return this.tagBuilder.build(this)},u}(),P1="(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|banamex|bauhaus|bentley|bestbuy|booking|brother|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|yamaxun|youtube|zuerich|католик|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kindle|kosher|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|nagoya|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|lipsy|loans|locus|lotte|lotto|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|scb|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)",V1=new RegExp("^"+P1+"$"),L1=/[\/?#]/,q1=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,ef=/[?!:,.;^]/,tf=/https?:\/\//i,R1=new RegExp("^"+tf.source,"i"),M1=new RegExp(ef.source+"$"),H1=/^(javascript|vbscript):/i,U1=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,W1=/^(?:\/\/)?([^/#?:]+)/;function zu(u){return Au.test(u)}function Ff(u){return Au.test(u)||M.test(u)||u==="+"||u==="-"||u==="."}function cu(u){return mu.test(u)}function ED(u){return u==="_"||cu(u)}function nf(u){return mu.test(u)||q1.test(u)||ef.test(u)}function BD(u){return L1.test(u)}function af(u){return V1.test(u.toLowerCase())}function G1(u){if(H1.test(u))return!1;var D=u.match(U1);if(!D)return!1;var f=!!D[1],t=D[2];return f?!0:!(t.indexOf(".")===-1||!Au.test(t))}function Y1(u){var D=u.match(W1);if(!D)return!1;var f=D[0],t=f.split(".");if(t.length<2)return!1;var n=t[t.length-1];return!!af(n)}var X1=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,K1=/[:/?#]/;function Z1(u){var D=u.split(K1,1)[0];return X1.test(D)}var Q1=/^(https?:\/\/)?(www\.)?/i,J1=/^\/\//,u0=function(u){ju(D,u);function D(f){var t=u.call(this,f)||this;return t.type="url",t.url="",t.urlMatchType="scheme",t.protocolRelativeMatch=!1,t.stripPrefix={scheme:!0,www:!0},t.stripTrailingSlash=!0,t.decodePercentEncoding=!0,t.protocolPrepended=!1,t.urlMatchType=f.urlMatchType,t.url=f.url,t.protocolRelativeMatch=f.protocolRelativeMatch,t.stripPrefix=f.stripPrefix,t.stripTrailingSlash=f.stripTrailingSlash,t.decodePercentEncoding=f.decodePercentEncoding,t}return D.prototype.getType=function(){return"url"},D.prototype.getUrlMatchType=function(){return this.urlMatchType},D.prototype.getUrl=function(){var f=this.url;return!this.protocolRelativeMatch&&this.urlMatchType!=="scheme"&&!this.protocolPrepended&&(f=this.url="http://"+f,this.protocolPrepended=!0),f},D.prototype.getAnchorHref=function(){var f=this.getUrl();return f.replace(/&amp;/g,"&")},D.prototype.getAnchorText=function(){var f=this.getMatchedText();return this.protocolRelativeMatch&&(f=e0(f)),this.stripPrefix.scheme&&(f=D0(f)),this.stripPrefix.www&&(f=f0(f)),this.stripTrailingSlash&&(f=t0(f)),this.decodePercentEncoding&&(f=F0(f)),f},D}(Ou);function D0(u){return u.replace(R1,"")}function f0(u){return u.replace(Q1,"$1")}function e0(u){return u.replace(J1,"")}function t0(u){return u.charAt(u.length-1)==="/"&&(u=u.slice(0,-1)),u}function F0(u){var D=u.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(D)}catch{return D}}var n0=/^mailto:/i,a0=new RegExp("[".concat(Df,"!#$%&'*+/=?^_`{|}~-]"));function o0(u){return mu.test(u)}function pD(u){return a0.test(u)}function r0(u){var D=u.split(".").pop()||"";return af(D)}var d0=function(u){ju(D,u);function D(f){var t=u.call(this,f)||this;return t.type="email",t.email="",t.email=f.email,t}return D.prototype.getType=function(){return"email"},D.prototype.getEmail=function(){return this.email},D.prototype.getAnchorHref=function(){return"mailto:"+this.email},D.prototype.getAnchorText=function(){return this.email},D}(Ou);function of(u){return u==="_"||mu.test(u)}function i0(u){return u.length<=140}var s0=["twitter","facebook","instagram","tiktok","youtube"],C0=function(u){ju(D,u);function D(f){var t=u.call(this,f)||this;return t.type="hashtag",t.serviceName="twitter",t.hashtag="",t.serviceName=f.serviceName,t.hashtag=f.hashtag,t}return D.prototype.getType=function(){return"hashtag"},D.prototype.getServiceName=function(){return this.serviceName},D.prototype.getHashtag=function(){return this.hashtag},D.prototype.getAnchorHref=function(){var f=this.serviceName,t=this.hashtag;switch(f){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;case"youtube":return"https://youtube.com/hashtag/"+t;default:throw yu(f),new Error("Invalid hashtag service: ".concat(f))}},D.prototype.getAnchorText=function(){return"#"+this.hashtag},D.prototype.getCssClassSuffixes=function(){var f=u.prototype.getCssClassSuffixes.call(this),t=this.getServiceName();return t&&f.push(t),f},D}(Ou),c0={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/,youtube:/^@[-.·\w]{3,30}$/},l0=/[-\w.]/;function rf(u){return l0.test(u)}function E0(u,D){var f=c0[D];return f.test(u)}var B0=["twitter","instagram","soundcloud","tiktok","youtube"],p0=function(u){ju(D,u);function D(f){var t=u.call(this,f)||this;return t.type="mention",t.serviceName="twitter",t.mention="",t.mention=f.mention,t.serviceName=f.serviceName,t}return D.prototype.getType=function(){return"mention"},D.prototype.getMention=function(){return this.mention},D.prototype.getServiceName=function(){return this.serviceName},D.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;case"youtube":return"https://youtube.com/@"+this.mention;default:throw yu(this.serviceName),new Error("Unknown service name to point mention to: "+this.serviceName)}},D.prototype.getAnchorText=function(){return"@"+this.mention},D.prototype.getCssClassSuffixes=function(){var f=u.prototype.getCssClassSuffixes.call(this),t=this.getServiceName();return t&&f.push(t),f},D}(Ou),m0=/[-. ]/,b0=/[-. ()]/,g0=/[,;]/,h0=/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/,_0=/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/,y0=new RegExp("^".concat(h0.source,"|").concat(_0.source,"$"));function df(u){return m0.test(u)}function mD(u){return g0.test(u)}function A0(u){var D=u.charAt(0)==="+"||b0.test(u);return D&&y0.test(u)}var w0=function(u){ju(D,u);function D(f){var t=u.call(this,f)||this;return t.type="phone",t.number="",t.plusSign=!1,t.number=f.number,t.plusSign=f.plusSign,t}return D.prototype.getType=function(){return"phone"},D.prototype.getPhoneNumber=function(){return this.number},D.prototype.getNumber=function(){return this.getPhoneNumber()},D.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},D.prototype.getAnchorText=function(){return this.matchedText},D}(Ou);function v0(u,D){for(var f=D.tagBuilder,t=D.stripPrefix,n=D.stripTrailingSlash,F=D.decodePercentEncoding,o=D.hashtagServiceName,a=D.mentionServiceName,r=[],C=u.length,d=[],l=0;l<C;l++){var s=u.charAt(l);if(d.length===0)A(s);else{for(var B=d.length-1;B>=0;B--){var E=d[B];switch(E.state){case 11:v(E,s);break;case 12:O(E,s);break;case 0:_(E,s);break;case 1:y(E,s);break;case 2:m(E,s);break;case 3:h(E,s);break;case 4:w(E,s);break;case 5:j(E,s);break;case 6:N(E,s);break;case 7:I(E,s);break;case 13:W(E,s);break;case 14:P(E,s);break;case 8:eu(E,s);break;case 9:tu(E,s);break;case 10:q(E,s);break;case 15:G(E,s);break;case 16:Bu(E,s);break;case 17:z(E,s);break;case 18:R(E,s);break;case 19:H(E,s);break;case 20:iu(E,s);break;case 21:ru(E,s);break;case 22:U(E,s);break;case 23:p(E,s);break;case 24:_u(E,s);break;case 25:Nu(E,s);break;case 26:su(E,s);break;case 27:Wu(E,s);break;case 28:HD(E,s);break;case 29:Gu(E,s);break;case 30:UD(E,s);break;case 31:oD(E,s);break;case 32:GD(E,s);break;case 33:rD(E,s);break;case 34:dD(E,s);break;case 35:YD(E,s);break;case 36:XD(E,s);break;case 37:WD(E,s);break;case 38:Cu(E,s);break;case 39:$u(E,s);break;case 40:iD(E,s);break;case 41:sD(E,s);break;default:yu(E.state)}}if(l>0&&zu(s)){var b=u.charAt(l-1);!zu(b)&&!d.some(j0)&&d.push(Xu(l,0))}}}for(var g=d.length-1;g>=0;g--)d.forEach(function(i){return S(i)});return r;function A(i){if(i==="#")d.push(N0(l,28));else if(i==="@")d.push($0(l,30));else if(i==="/")d.push(bD(l,11));else if(i==="+")d.push(gD(l,37));else if(i==="(")d.push(gD(l,32));else{if(M.test(i)&&(d.push(gD(l,38)),d.push(S0(l,13))),o0(i)){var c=i.toLowerCase()==="m"?15:22;d.push(T0(l,c))}zu(i)&&d.push(Xu(l,0)),mu.test(i)&&d.push(bD(l,5))}}function _(i,c){c===":"?i.state=2:c==="-"?i.state=1:Ff(c)||T(d,i)}function y(i,c){c==="-"||(c==="/"?(T(d,i),d.push(bD(l,11))):Ff(c)?i.state=0:T(d,i))}function m(i,c){c==="/"?i.state=3:c==="."?T(d,i):cu(c)?(i.state=5,zu(c)&&d.push(Xu(l,0))):T(d,i)}function h(i,c){c==="/"?i.state=4:nf(c)?(i.state=10,i.acceptStateReached=!0):S(i)}function w(i,c){c==="/"?i.state=10:cu(c)?(i.state=5,i.acceptStateReached=!0):T(d,i)}function v(i,c){c==="/"?i.state=12:T(d,i)}function O(i,c){cu(c)?i.state=5:T(d,i)}function j(i,c){c==="."?i.state=7:c==="-"?i.state=6:c===":"?i.state=8:BD(c)?i.state=10:ED(c)||S(i)}function N(i,c){c==="-"||(c==="."?S(i):cu(c)?i.state=5:S(i))}function I(i,c){c==="."?S(i):cu(c)?(i.state=5,i.acceptStateReached=!0):S(i)}function W(i,c){c==="."?i.state=14:c===":"?i.state=8:M.test(c)||(BD(c)?i.state=10:mu.test(c)?T(d,i):S(i))}function P(i,c){M.test(c)?(i.octetsEncountered++,i.octetsEncountered===4&&(i.acceptStateReached=!0),i.state=13):S(i)}function eu(i,c){M.test(c)?i.state=9:S(i)}function tu(i,c){M.test(c)||(BD(c)?i.state=10:S(i))}function q(i,c){nf(c)||S(i)}function G(i,c){c.toLowerCase()==="a"?i.state=16:U(i,c)}function Bu(i,c){c.toLowerCase()==="i"?i.state=17:U(i,c)}function z(i,c){c.toLowerCase()==="l"?i.state=18:U(i,c)}function R(i,c){c.toLowerCase()==="t"?i.state=19:U(i,c)}function H(i,c){c.toLowerCase()==="o"?i.state=20:U(i,c)}function iu(i,c){c.toLowerCase()===":"?i.state=21:U(i,c)}function ru(i,c){pD(c)?i.state=22:T(d,i)}function U(i,c){c==="."?i.state=23:c==="@"?i.state=24:pD(c)?i.state=22:T(d,i)}function p(i,c){c==="."||c==="@"?T(d,i):pD(c)?i.state=22:T(d,i)}function _u(i,c){cu(c)?i.state=25:T(d,i)}function Nu(i,c){c==="."?i.state=27:c==="-"?i.state=26:ED(c)||S(i)}function su(i,c){c==="-"||c==="."?S(i):ED(c)?i.state=25:S(i)}function Wu(i,c){c==="."||c==="-"?S(i):cu(c)?(i.state=25,i.acceptStateReached=!0):S(i)}function HD(i,c){of(c)?(i.state=29,i.acceptStateReached=!0):T(d,i)}function Gu(i,c){of(c)||S(i)}function UD(i,c){rf(c)?(i.state=31,i.acceptStateReached=!0):T(d,i)}function oD(i,c){rf(c)||(mu.test(c)?T(d,i):S(i))}function WD(i,c){M.test(c)?i.state=38:(T(d,i),A(c))}function GD(i,c){M.test(c)?i.state=33:T(d,i),A(c)}function rD(i,c){M.test(c)?i.state=34:T(d,i)}function dD(i,c){M.test(c)?i.state=35:T(d,i)}function YD(i,c){c===")"?i.state=36:T(d,i)}function XD(i,c){M.test(c)?i.state=38:df(c)?i.state=39:T(d,i)}function Cu(i,c){i.acceptStateReached=!0,mD(c)?i.state=40:c==="#"?i.state=41:M.test(c)||(c==="("?i.state=32:df(c)?i.state=39:(S(i),zu(c)&&d.push(Xu(l,0))))}function $u(i,c){M.test(c)?i.state=38:c==="("?i.state=32:(S(i),A(c))}function iD(i,c){mD(c)||(c==="#"?i.state=41:M.test(c)?i.state=38:S(i))}function sD(i,c){mD(c)?i.state=40:M.test(c)?T(d,i):S(i)}function S(i){if(T(d,i),!!i.acceptStateReached){var c=i.startIdx,k=u.slice(i.startIdx,l);if(k=x0(k),i.type==="url"){var CD=u.charAt(i.startIdx-1);if(CD==="@")return;var Yu=i.matchType;if(Yu==="scheme"){var KD=tf.exec(k);if(KD&&(c=c+KD.index,k=k.slice(KD.index)),!G1(k))return}else if(Yu==="tld"){if(!Y1(k))return}else if(Yu==="ipV4"){if(!Z1(k))return}else yu(Yu);r.push(new u0({tagBuilder:f,matchedText:k,offset:c,urlMatchType:Yu,url:k,protocolRelativeMatch:k.slice(0,2)==="//",stripPrefix:t,stripTrailingSlash:n,decodePercentEncoding:F}))}else if(i.type==="email")r0(k)&&r.push(new d0({tagBuilder:f,matchedText:k,offset:c,email:k.replace(n0,"")}));else if(i.type==="hashtag")i0(k)&&r.push(new C0({tagBuilder:f,matchedText:k,offset:c,serviceName:o,hashtag:k.slice(1)}));else if(i.type==="mention")E0(k,a)&&r.push(new p0({tagBuilder:f,matchedText:k,offset:c,serviceName:a,mention:k.slice(1)}));else if(i.type==="phone"){if(k=k.replace(/ +$/g,""),A0(k)){var _8=k.replace(/[^0-9,;#]/g,"");r.push(new w0({tagBuilder:f,matchedText:k,offset:c,number:_8,plusSign:k.charAt(0)==="+"}))}}else yu(i)}}}var k0=/[\(\{\[]/,sf=/[\)\}\]]/,Cf={")":"(","}":"{","]":"["};function x0(u){for(var D={"(":0,"{":0,"[":0},f=0;f<u.length;f++){var t=u.charAt(f);k0.test(t)?D[t]++:sf.test(t)&&D[Cf[t]]--}for(var n=u.length-1,F;n>=0;)if(F=u.charAt(n),sf.test(F)){var o=Cf[F];if(D[o]<0)D[o]++,n--;else break}else if(M1.test(F))n--;else break;return u.slice(0,n+1)}function Xu(u,D){return{type:"url",startIdx:u,state:D,acceptStateReached:!1,matchType:"scheme"}}function bD(u,D){return{type:"url",startIdx:u,state:D,acceptStateReached:!1,matchType:"tld"}}function S0(u,D){return{type:"url",startIdx:u,state:D,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1}}function T0(u,D){return{type:"email",startIdx:u,state:D,acceptStateReached:!1}}function N0(u,D){return{type:"hashtag",startIdx:u,state:D,acceptStateReached:!1}}function $0(u,D){return{type:"mention",startIdx:u,state:D,acceptStateReached:!1}}function gD(u,D){return{type:"phone",startIdx:u,state:D,acceptStateReached:!1}}function j0(u){return u.type==="url"&&u.matchType==="scheme"}function O0(u,D){for(var f=D.onOpenTag,t=D.onCloseTag,n=D.onText,F=D.onComment,o=D.onDoctype,a=new Fu,r=0,C=u.length,d=0,l=0,s=a;r<C;){var B=u.charAt(r);switch(d){case 0:E(B);break;case 1:b(B);break;case 2:A(B);break;case 3:g(B);break;case 4:_(B);break;case 5:y(B);break;case 6:m(B);break;case 7:h(B);break;case 8:w(B);break;case 9:v(B);break;case 10:O(B);break;case 11:j(B);break;case 12:N(B);break;case 13:I();break;case 14:W(B);break;case 15:P(B);break;case 16:eu(B);break;case 17:tu(B);break;case 18:q(B);break;case 19:G(B);break;case 20:Bu(B);break;default:yu(d)}r++}l<r&&iu();function E(p){p==="<"&&R()}function b(p){p==="!"?d=13:p==="/"?(d=2,s=new Fu(V(V({},s),{isClosing:!0}))):p==="<"?R():Au.test(p)?(d=3,s=new Fu(V(V({},s),{isOpening:!0}))):(d=0,s=a)}function g(p){fu.test(p)?(s=new Fu(V(V({},s),{name:ru()})),d=4):p==="<"?R():p==="/"?(s=new Fu(V(V({},s),{name:ru()})),d=12):p===">"?(s=new Fu(V(V({},s),{name:ru()})),H()):!Au.test(p)&&!M.test(p)&&p!==":"&&z()}function A(p){p===">"?z():Au.test(p)?d=3:z()}function _(p){fu.test(p)||(p==="/"?d=12:p===">"?H():p==="<"?R():p==="="||cD.test(p)||k1.test(p)?z():d=5)}function y(p){fu.test(p)?d=6:p==="/"?d=12:p==="="?d=7:p===">"?H():p==="<"?R():cD.test(p)&&z()}function m(p){fu.test(p)||(p==="/"?d=12:p==="="?d=7:p===">"?H():p==="<"?R():cD.test(p)?z():d=5)}function h(p){fu.test(p)||(p==='"'?d=8:p==="'"?d=9:/[>=`]/.test(p)?z():p==="<"?R():d=10)}function w(p){p==='"'&&(d=11)}function v(p){p==="'"&&(d=11)}function O(p){fu.test(p)?d=4:p===">"?H():p==="<"&&R()}function j(p){fu.test(p)?d=4:p==="/"?d=12:p===">"?H():p==="<"?R():(d=4,U())}function N(p){p===">"?(s=new Fu(V(V({},s),{isClosing:!0})),H()):d=4}function I(p){u.substr(r,2)==="--"?(r+=2,s=new Fu(V(V({},s),{type:"comment"})),d=14):u.substr(r,7).toUpperCase()==="DOCTYPE"?(r+=7,s=new Fu(V(V({},s),{type:"doctype"})),d=20):z()}function W(p){p==="-"?d=15:p===">"?z():d=16}function P(p){p==="-"?d=18:p===">"?z():d=16}function eu(p){p==="-"&&(d=17)}function tu(p){p==="-"?d=18:d=16}function q(p){p===">"?H():p==="!"?d=19:p==="-"||(d=16)}function G(p){p==="-"?d=17:p===">"?H():d=16}function Bu(p){p===">"?H():p==="<"&&R()}function z(){d=0,s=a}function R(){d=1,s=new Fu({idx:r})}function H(){var p=u.slice(l,s.idx);p&&n(p,l),s.type==="comment"?F(s.idx):s.type==="doctype"?o(s.idx):(s.isOpening&&f(s.name,s.idx),s.isClosing&&t(s.name,s.idx)),z(),l=r+1}function iu(){var p=u.slice(l,r);n(p,l),l=r+1}function ru(){var p=s.idx+(s.isClosing?2:1);return u.slice(p,r).toLowerCase()}function U(){r--}}var Fu=function(){function u(D){D===void 0&&(D={}),this.idx=D.idx!==void 0?D.idx:-1,this.type=D.type||"tag",this.name=D.name||"",this.isOpening=!!D.isOpening,this.isClosing=!!D.isClosing}return u}(),z0=function(){function u(D){D===void 0&&(D={}),this.version=u.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=I0(D.urls),this.email=Q(D.email)?D.email:this.email,this.phone=Q(D.phone)?D.phone:this.phone,this.hashtag=D.hashtag||this.hashtag,this.mention=D.mention||this.mention,this.newWindow=Q(D.newWindow)?D.newWindow:this.newWindow,this.stripPrefix=P0(D.stripPrefix),this.stripTrailingSlash=Q(D.stripTrailingSlash)?D.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=Q(D.decodePercentEncoding)?D.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=D.sanitizeHtml||!1;var f=this.mention;if(f!==!1&&B0.indexOf(f)===-1)throw new Error("invalid `mention` cfg '".concat(f,"' - see docs"));var t=this.hashtag;if(t!==!1&&s0.indexOf(t)===-1)throw new Error("invalid `hashtag` cfg '".concat(t,"' - see docs"));this.truncate=V0(D.truncate),this.className=D.className||this.className,this.replaceFn=D.replaceFn||this.replaceFn,this.context=D.context||this}return u.link=function(D,f){var t=new u(f);return t.link(D)},u.parse=function(D,f){var t=new u(f);return t.parse(D)},u.prototype.parse=function(D){var f=this,t=["a","style","script"],n=0,F=[];return O0(D,{onOpenTag:function(o){t.indexOf(o)>=0&&n++},onText:function(o,a){if(n===0){var r=/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi,C=o.split(r),d=a;C.forEach(function(l,s){if(s%2===0){var B=f.parseText(l,d);F.push.apply(F,B)}d+=l.length})}},onCloseTag:function(o){t.indexOf(o)>=0&&(n=Math.max(n-1,0))},onComment:function(o){},onDoctype:function(o){}}),F=this.compactMatches(F),F=this.removeUnwantedMatches(F),F},u.prototype.compactMatches=function(D){D.sort(function(r,C){return r.getOffset()-C.getOffset()});for(var f=0;f<D.length-1;){var t=D[f],n=t.getOffset(),F=t.getMatchedText().length,o=n+F;if(f+1<D.length){if(D[f+1].getOffset()===n){var a=D[f+1].getMatchedText().length>F?f:f+1;D.splice(a,1);continue}if(D[f+1].getOffset()<o){D.splice(f+1,1);continue}}f++}return D},u.prototype.removeUnwantedMatches=function(D){return this.hashtag||pu(D,function(f){return f.getType()==="hashtag"}),this.email||pu(D,function(f){return f.getType()==="email"}),this.phone||pu(D,function(f){return f.getType()==="phone"}),this.mention||pu(D,function(f){return f.getType()==="mention"}),this.urls.schemeMatches||pu(D,function(f){return f.getType()==="url"&&f.getUrlMatchType()==="scheme"}),this.urls.tldMatches||pu(D,function(f){return f.getType()==="url"&&f.getUrlMatchType()==="tld"}),this.urls.ipV4Matches||pu(D,function(f){return f.getType()==="url"&&f.getUrlMatchType()==="ipV4"}),D},u.prototype.parseText=function(D,f){f===void 0&&(f=0),f=f||0;for(var t=v0(D,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),n=0,F=t.length;n<F;n++)t[n].setOffset(f+t[n].getOffset());return t},u.prototype.link=function(D){if(!D)return"";this.sanitizeHtml&&(D=D.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for