/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
const t="numeric",e="ascii",n="alpha",s="asciinumeric",r="alphanumeric",i="domain",o="emoji",a="scheme",l="slashscheme",c="whitespace";function u(t,e){return t in e||(e[t]=[]),e[t]}function g(a,l,c){l[t]&&(l[s]=!0,l[r]=!0),l[e]&&(l[s]=!0,l[n]=!0),l[s]&&(l[r]=!0),l[n]&&(l[r]=!0),l[r]&&(l[i]=!0),l[o]&&(l[i]=!0);for(const t in l){const e=u(t,c);e.indexOf(a)<0&&e.push(a)}}function h(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}h.groups={},h.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let s=0;s<e.jr.length;s++){const n=e.jr[s][0],r=e.jr[s][1];if(r&&n.test(t))return r}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,s){for(let r=0;r<t.length;r++)this.tt(t[r],e,n,s)},tr(t,e,n,s){let r;return s=s||h.groups,e&&e.j?r=e:(r=new h(e),n&&s&&g(e,n,s)),this.jr.push([t,r]),r},ts(t,e,n,s){let r=this;const i=t.length;if(!i)return r;for(let o=0;o<i-1;o++)r=r.tt(t[o]);return r.tt(t[i-1],e,n,s)},tt(t,e,n,s){s=s||h.groups;const r=this;if(e&&e.j)return r.j[t]=e,e;const i=e;let o,a=r.go(t);if(a?(o=new h,Object.assign(o.j,a.j),o.jr.push.apply(o.jr,a.jr),o.jd=a.jd,o.t=a.t):o=new h,i){if(s)if(o.t&&"string"==typeof o.t){const t=Object.assign(function(t,e){const n={};for(const s in e)e[s].indexOf(t)>=0&&(n[s]=!0);return n}(o.t,s),n);g(i,t,s)}else n&&g(i,n,s);o.t=i}return r.j[t]=o,o}};const d=(t,e,n,s,r)=>t.ta(e,n,s,r),m=(t,e,n,s,r)=>t.tr(e,n,s,r),p=(t,e,n,s,r)=>t.ts(e,n,s,r),f=(t,e,n,s,r)=>t.tt(e,n,s,r),E="WORD",y="UWORD",k="ASCIINUMERICAL",b="ALPHANUMERICAL",L="LOCALHOST",A="TLD",R="UTLD",T="SCHEME",O="SLASH_SCHEME",C="NUM",S="WS",v="NL",w="OPENBRACE",j="CLOSEBRACE",N="OPENBRACKET",H="CLOSEBRACKET",I="OPENPAREN",x="CLOSEPAREN",P="OPENANGLEBRACKET",z="CLOSEANGLEBRACKET",D="FULLWIDTHLEFTPAREN",U="FULLWIDTHRIGHTPAREN",M="LEFTCORNERBRACKET",B="RIGHTCORNERBRACKET",K="LEFTWHITECORNERBRACKET",F="RIGHTWHITECORNERBRACKET",W="FULLWIDTHLESSTHAN",Q="FULLWIDTHGREATERTHAN",G="AMPERSAND",q="APOSTROPHE",_="ASTERISK",Y="AT",$="BACKSLASH",J="BACKTICK",X="CARET",Z="COLON",V="COMMA",tt="DOLLAR",et="DOT",nt="EQUALS",st="EXCLAMATION",rt="HYPHEN",it="PERCENT",ot="PIPE",at="PLUS",lt="POUND",ct="QUERY",ut="QUOTE",gt="FULLWIDTHMIDDLEDOT",ht="SEMI",dt="SLASH",mt="TILDE",pt="UNDERSCORE",ft="EMOJI",Et="SYM";var yt=/* @__PURE__ */Object.freeze({__proto__:null,ALPHANUMERICAL:b,AMPERSAND:G,APOSTROPHE:q,ASCIINUMERICAL:k,ASTERISK:_,AT:Y,BACKSLASH:$,BACKTICK:J,CARET:X,CLOSEANGLEBRACKET:z,CLOSEBRACE:j,CLOSEBRACKET:H,CLOSEPAREN:x,COLON:Z,COMMA:V,DOLLAR:tt,DOT:et,EMOJI:ft,EQUALS:nt,EXCLAMATION:st,FULLWIDTHGREATERTHAN:Q,FULLWIDTHLEFTPAREN:D,FULLWIDTHLESSTHAN:W,FULLWIDTHMIDDLEDOT:gt,FULLWIDTHRIGHTPAREN:U,HYPHEN:rt,LEFTCORNERBRACKET:M,LEFTWHITECORNERBRACKET:K,LOCALHOST:L,NL:v,NUM:C,OPENANGLEBRACKET:P,OPENBRACE:w,OPENBRACKET:N,OPENPAREN:I,PERCENT:it,PIPE:ot,PLUS:at,POUND:lt,QUERY:ct,QUOTE:ut,RIGHTCORNERBRACKET:B,RIGHTWHITECORNERBRACKET:F,SCHEME:T,SEMI:ht,SLASH:dt,SLASH_SCHEME:O,SYM:Et,TILDE:mt,TLD:A,UNDERSCORE:pt,UTLD:R,UWORD:y,WORD:E,WS:S});const kt=/[a-z]/,bt=new RegExp("\\p{L}","u"),Lt=new RegExp("\\p{Emoji}","u"),At=/\d/,Rt=/\s/;let Tt=null,Ot=null;function Ct(t,e){const n=St(e.replace(/[A-Z]/g,t=>t.toLowerCase())),s=n.length,r=[];let i=0,o=0;for(;o<s;){let a=t,l=null,c=0,u=null,g=-1,h=-1;for(;o<s&&(l=a.go(n[o]));)a=l,a.accepts()?(g=0,h=0,u=a):g>=0&&(g+=n[o].length,h++),c+=n[o].length,i+=n[o].length,o++;i-=g,o-=h,c-=g,r.push({t:u.t,v:e.slice(i-c,i),s:i-c,e:i})}return r}function St(t){const e=[],n=t.length;let s=0;for(;s<n;){let r,i=t.charCodeAt(s),o=i<55296||i>56319||s+1===n||(r=t.charCodeAt(s+1))<56320||r>57343?t[s]:t.slice(s,s+2);e.push(o),s+=o.length}return e}function vt(t,e,n,s,r){let i;const o=e.length;for(let a=0;a<o-1;a++){const n=e[a];t.j[n]?i=t.j[n]:(i=new h(s),i.jr=r.slice(),t.j[n]=i),t=i}return i=new h(n),i.jr=r.slice(),t.j[e[o-1]]=i,i}function wt(t){const e=[],n=[];let s=0;for(;s<t.length;){let r=0;for(;"0123456789".indexOf(t[s+r])>=0;)r++;if(r>0){e.push(n.join(""));for(let e=parseInt(t.substring(s,s+r),10);e>0;e--)n.pop();s+=r}else n.push(t[s]),s++}return e}const jt={defaultProtocol:"http",events:null,format:Ht,formatHref:Ht,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Nt(t,e=null){let n=Object.assign({},jt);t&&(n=Object.assign(n,t instanceof Nt?t.o:t));const s=n.ignoreTags,r=[];for(let i=0;i<s.length;i++)r.push(s[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=r}function Ht(t){return t}function It(t,e){this.t="token",this.v=t,this.tk=e}function xt(t,e){class n extends It{constructor(e,n){super(e,n),this.t=t}}for(const s in e)n.prototype[s]=e[s];return n.t=t,n}Nt.prototype={o:jt,ignoreTags:[],defaultRender:t=>t,check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const s=null!=e;let r=this.o[t];return r?("object"==typeof r?(r=n.t in r?r[n.t]:jt[t],"function"==typeof r&&s&&(r=r(e,n))):"function"==typeof r&&s&&(r=r(e,n.t,n)),r):r},getObj(t,e,n){let s=this.o[t];return"function"==typeof s&&null!=e&&(s=s(e,n.t,n)),s},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}},It.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),s=t.get("format",e,this);return n&&s.length>n?s.substring(0,n)+"…":s},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=jt.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),s=t.get("formatHref",n,this),r=t.get("tagName",n,e),i=this.toFormattedString(t),o={},a=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),u=t.getObj("attributes",n,e),g=t.getObj("events",n,e);return o.href=s,a&&(o.class=a),l&&(o.target=l),c&&(o.rel=c),u&&Object.assign(o,u),{tagName:r,attributes:o,content:i,eventListeners:g}}};const Pt=xt("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),zt=xt("text"),Dt=xt("nl"),Ut=xt("url",{isLink:!0,toHref(t=jt.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==L&&t[1].t===Z}}),Mt=t=>new h(t);function Bt(t,e,n){const s=n[0].s,r=n[n.length-1].e;return new t(e.slice(s,r),n)}const Kt="undefined"!=typeof console&&console&&console.warn||(()=>{}),Ft={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Wt(){return h.groups={},Ft.scanner=null,Ft.parser=null,Ft.tokenQueue=[],Ft.pluginQueue=[],Ft.customSchemes=[],Ft.initialized=!1,Ft}function Qt(t,e=!1){if(Ft.initialized&&Kt(`linkifyjs: already initialized - will not register custom scheme "${t}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error('linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or "-"\n2. Cannot start or end with "-"\n3. "-" cannot repeat');Ft.customSchemes.push([t,e])}function Gt(){Ft.scanner=function(u=[]){const d={};h.groups=d;const Ct=new h;null==Tt&&(Tt=wt(" ögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==Ot&&(Ot=wt("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),f(Ct,"'",q),f(Ct,"{",w),f(Ct,"}",j),f(Ct,"[",N),f(Ct,"]",H),f(Ct,"(",I),f(Ct,")",x),f(Ct,"<",P),f(Ct,">",z),f(Ct,"（",D),f(Ct,"）",U),f(Ct,"「",M),f(Ct,"」",B),f(Ct,"『",K),f(Ct,"』",F),f(Ct,"＜",W),f(Ct,"＞",Q),f(Ct,"&",G),f(Ct,"*",_),f(Ct,"@",Y),f(Ct,"`",J),f(Ct,"^",X),f(Ct,":",Z),f(Ct,",",V),f(Ct,"$",tt),f(Ct,".",et),f(Ct,"=",nt),f(Ct,"!",st),f(Ct,"-",rt),f(Ct,"%",it),f(Ct,"|",ot),f(Ct,"+",at),f(Ct,"#",lt),f(Ct,"?",ct),f(Ct,'"',ut),f(Ct,"/",dt),f(Ct,";",ht),f(Ct,"~",mt),f(Ct,"_",pt),f(Ct,"\\",$),f(Ct,"・",gt);const St=m(Ct,At,C,{[t]:!0});m(St,At,St);const jt=m(St,kt,k,{[s]:!0}),Nt=m(St,bt,b,{[r]:!0}),Ht=m(Ct,kt,E,{[e]:!0});m(Ht,At,jt),m(Ht,kt,Ht),m(jt,At,jt),m(jt,kt,jt);const It=m(Ct,bt,y,{[n]:!0});m(It,kt),m(It,At,Nt),m(It,bt,It),m(Nt,At,Nt),m(Nt,kt),m(Nt,bt,Nt);const xt=f(Ct,"\n",v,{[c]:!0}),Pt=f(Ct,"\r",S,{[c]:!0}),zt=m(Ct,Rt,S,{[c]:!0});f(Ct,"￼",zt),f(Pt,"\n",xt),f(Pt,"￼",zt),m(Pt,Rt,zt),f(zt,"\r"),f(zt,"\n"),m(zt,Rt,zt),f(zt,"￼",zt);const Dt=m(Ct,Lt,ft,{[o]:!0});f(Dt,"#"),m(Dt,Lt,Dt),f(Dt,"️",Dt);const Ut=f(Dt,"‍");f(Ut,"#"),m(Ut,Lt,Dt);const Mt=[[kt,Ht],[At,jt]],Bt=[[kt,null],[bt,It],[At,Nt]];for(let t=0;t<Tt.length;t++)vt(Ct,Tt[t],A,E,Mt);for(let t=0;t<Ot.length;t++)vt(Ct,Ot[t],R,y,Bt);g(A,{tld:!0,ascii:!0},d),g(R,{utld:!0,alpha:!0},d),vt(Ct,"file",T,E,Mt),vt(Ct,"mailto",T,E,Mt),vt(Ct,"http",O,E,Mt),vt(Ct,"https",O,E,Mt),vt(Ct,"ftp",O,E,Mt),vt(Ct,"ftps",O,E,Mt),g(T,{scheme:!0,ascii:!0},d),g(O,{slashscheme:!0,ascii:!0},d),u=u.sort((t,e)=>t[0]>e[0]?1:-1);for(let n=0;n<u.length;n++){const r=u[n][0],o=u[n][1]?{[a]:!0}:{[l]:!0};r.indexOf("-")>=0?o[i]=!0:kt.test(r)?At.test(r)?o[s]=!0:o[e]=!0:o[t]=!0,p(Ct,r,r,o)}return p(Ct,"localhost",L,{ascii:!0}),Ct.jd=new h(Et),{start:Ct,tokens:Object.assign({groups:d},yt)}}(Ft.customSchemes);for(let t=0;t<Ft.tokenQueue.length;t++)Ft.tokenQueue[t][1]({scanner:Ft.scanner});Ft.parser=function({groups:t}){const e=t.domain.concat([G,_,Y,$,J,X,tt,nt,rt,C,it,ot,at,lt,dt,Et,mt,pt]),n=[q,Z,V,et,st,it,ct,ut,ht,P,z,w,j,H,N,I,x,D,U,M,B,K,F,W,Q],s=[G,q,_,$,J,X,tt,nt,rt,w,j,it,ot,at,lt,ct,dt,Et,mt,pt],r=Mt(),i=f(r,mt);d(i,s,i),d(i,t.domain,i);const o=Mt(),a=Mt(),l=Mt();d(r,t.domain,o),d(r,t.scheme,a),d(r,t.slashscheme,l),d(o,s,i),d(o,t.domain,o);const c=f(o,Y);f(i,Y,c),f(a,Y,c),f(l,Y,c);const u=f(i,et);d(u,s,i),d(u,t.domain,i);const g=Mt();d(c,t.domain,g),d(g,t.domain,g);const h=f(g,et);d(h,t.domain,g);const m=Mt(Pt);d(h,t.tld,m),d(h,t.utld,m),f(c,L,m);const p=f(g,rt);f(p,rt,p),d(p,t.domain,g),d(m,t.domain,g),f(m,et,h),f(m,rt,p);const E=f(m,Z);d(E,t.numeric,Pt);const y=f(o,rt),k=f(o,et);f(y,rt,y),d(y,t.domain,o),d(k,s,i),d(k,t.domain,o);const b=Mt(Ut);d(k,t.tld,b),d(k,t.utld,b),d(b,t.domain,o),d(b,s,i),f(b,et,k),f(b,rt,y),f(b,Y,c);const A=f(b,Z),R=Mt(Ut);d(A,t.numeric,R);const T=Mt(Ut),O=Mt();d(T,e,T),d(T,n,O),d(O,e,T),d(O,n,O),f(b,dt,T),f(R,dt,T);const S=f(a,Z),gt=f(l,Z),ft=f(gt,dt),kt=f(ft,dt);d(a,t.domain,o),f(a,et,k),f(a,rt,y),d(l,t.domain,o),f(l,et,k),f(l,rt,y),d(S,t.domain,T),f(S,dt,T),f(S,ct,T),d(kt,t.domain,T),d(kt,e,T),f(kt,dt,T);const bt=[[w,j],[N,H],[I,x],[P,z],[D,U],[M,B],[K,F],[W,Q]];for(let L=0;L<bt.length;L++){const[t,s]=bt[L],r=f(T,t);f(O,t,r),f(r,s,T);const i=Mt(Ut);d(r,e,i);const o=Mt();d(r,n),d(i,e,i),d(i,n,o),d(o,e,i),d(o,n,o),f(i,s,T),f(o,s,T)}return f(r,L,b),f(r,v,Dt),{start:r,tokens:yt}}(Ft.scanner.tokens);for(let t=0;t<Ft.pluginQueue.length;t++)Ft.pluginQueue[t][1]({scanner:Ft.scanner,parser:Ft.parser});return Ft.initialized=!0,Ft}function qt(t){return Ft.initialized||Gt(),function(t,e,n){let s=n.length,r=0,i=[],o=[];for(;r<s;){let a=t,l=null,c=null,u=0,g=null,h=-1;for(;r<s&&!(l=a.go(n[r].t));)o.push(n[r++]);for(;r<s&&(c=l||a.go(n[r].t));)l=null,a=c,a.accepts()?(h=0,g=a):h>=0&&h++,r++,u++;if(h<0)r-=u,r<s&&(o.push(n[r]),r++);else{o.length>0&&(i.push(Bt(zt,e,o)),o=[]),r-=h,u-=h;const t=g.t,s=n.slice(r-u,r);i.push(Bt(t,e,s))}}return o.length>0&&i.push(Bt(zt,e,o)),i}(Ft.parser.start,t,Ct(Ft.scanner.start,t))}function _t(t,e=null,n=null){if(e&&"object"==typeof e){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const s=new Nt(n),r=qt(t),i=[];for(let o=0;o<r.length;o++){const t=r[o];!t.isLink||e&&t.t!==e||!s.check(t)||i.push(t.toFormattedObject(s))}return i}qt.scan=Ct;export{It as MultiToken,Nt as Options,h as State,xt as createTokenClass,_t as find,Gt as init,Qt as registerCustomProtocol,Wt as reset,St as stringToArray,qt as tokenize};