var b=Object.defineProperty;var V=(u,t,s)=>t in u?b(u,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[t]=s;var i=(u,t,s)=>(V(u,typeof t!="symbol"?t+"":t,s),s);import{d as N,r as L,f as B,j as m,k as w,e as x,g as h,x as T,y as j,m as g,l as D,t as y,F}from"./index-DeS8Almj.js";class k{constructor(t,s=0){i(this,"depth",0);i(this,"key");i(this,"word",!1);i(this,"children",{});i(this,"fail");i(this,"count",0);this.key=t,this.depth=s}}class I{constructor(t,s){i(this,"root",new k("root"));i(this,"customCharacter");const e=t.length;this.customCharacter=(s==null?void 0:s.customCharacter)||"*";for(let n=0;ns;){const e=t[s],n=e.children;for(const l in e.children){const r=n[l];let o=e.fail;for(;o&&!o.children[l];)o=o.fail;r.fail=(o==null?void 0:o.children[l])||this.root,t.push(r)}s++}}search(t,s={replace:!0}){let e=this.root;const n=[],l=[],r=[],{replace:o=!0,verify:c=!1}=s,p=t.length;for(let a=0;a{const o=w("el-tag"),c=w("el-input"),p=w("el-card");return x(),B(p,{shadow:"never"},{header:m(()=>[M]),default:m(()=>[h("div",S,[q,(x(),T(F,null,j(t,(a,d)=>g(o,{key:d,type:"warning",class:"mx-1",effect:"dark",round:""},{default:m(()=>[D(y(a),1)]),_:2},1024)),64))]),g(c,{modelValue:s.value,"onUpdate:modelValue":r[0]||(r[0]=a=>s.value=a),onInput:n},null,8,["modelValue"]),h("p",E,y(s.value),1)]),_:1})}}});export{z as default};