@ge-ge/highlight
Version:
2 lines (1 loc) • 31.2 kB
JavaScript
var Highlight=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=Function.prototype,r=e.bind,n=e.call,o=r&&r.bind(n),i=r?function(t){return t&&o(n,t)}:function(t){return t&&function(){return n.apply(t,arguments)}},a=i({}.isPrototypeOf),u=function(t){return t&&t.Math==Math&&t},c=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof t&&t)||function(){return this}()||Function("return this")(),f=Function.prototype,s=f.apply,l=f.bind,p=f.call,y="object"==typeof Reflect&&Reflect.apply||(l?p.bind(s):function(){return p.apply(s,arguments)}),d=function(t){return"function"==typeof t},h={},v=function(t){try{return!!t()}catch(t){return!0}},g=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=Function.prototype.call,b=m.bind?m.bind(m):function(){return m.apply(m,arguments)},S={},O={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,N=w&&!O.call({1:2},1);S.f=N?function(t){var e=w(this,t);return!!e&&e.enumerable}:O;var T,A,E=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},j=i,C=j({}.toString),x=j("".slice),P=function(t){return x(C(t),8,-1)},L=i,k=v,M=P,I=c.Object,_=L("".split),R=k((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"==M(t)?_(t,""):I(t)}:I,D=c.TypeError,F=function(t){if(null==t)throw D("Can't call method on "+t);return t},G=R,U=F,B=function(t){return G(U(t))},V=d,X=function(t){return"object"==typeof t?null!==t:V(t)},z={},H=z,W=c,J=d,Y=function(t){return J(t)?t:void 0},$=function(t,e){return arguments.length<2?Y(H[t])||Y(W[t]):H[t]&&H[t][e]||W[t]&&W[t][e]},q=c,K=$("navigator","userAgent")||"",Q=q.process,Z=q.Deno,tt=Q&&Q.versions||Z&&Z.version,et=tt&&tt.v8;et&&(A=(T=et.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!A&&K&&(!(T=K.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=K.match(/Chrome\/(\d+)/))&&(A=+T[1]);var rt=A,nt=rt,ot=v,it=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),at=it&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ut=$,ct=d,ft=a,st=at,lt=c.Object,pt=st?function(t){return"symbol"==typeof t}:function(t){var e=ut("Symbol");return ct(e)&&ft(e.prototype,lt(t))},yt=c.String,dt=function(t){try{return yt(t)}catch(t){return"Object"}},ht=d,vt=dt,gt=c.TypeError,mt=function(t){if(ht(t))return t;throw gt(vt(t)+" is not a function")},bt=mt,St=function(t,e){var r=t[e];return null==r?void 0:bt(r)},Ot=b,wt=d,Nt=X,Tt=c.TypeError,At={exports:{}},Et=c,jt=Object.defineProperty,Ct=function(t,e){try{jt(Et,t,{value:e,configurable:!0,writable:!0})}catch(r){Et[t]=e}return e},xt="__core-js_shared__",Pt=c[xt]||Ct(xt,{}),Lt=Pt;(At.exports=function(t,e){return Lt[t]||(Lt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.1",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var kt=F,Mt=c.Object,It=function(t){return Mt(kt(t))},_t=It,Rt=i({}.hasOwnProperty),Dt=Object.hasOwn||function(t,e){return Rt(_t(t),e)},Ft=i,Gt=0,Ut=Math.random(),Bt=Ft(1..toString),Vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Bt(++Gt+Ut,36)},Xt=c,zt=At.exports,Ht=Dt,Wt=Vt,Jt=it,Yt=at,$t=zt("wks"),qt=Xt.Symbol,Kt=qt&&qt.for,Qt=Yt?qt:qt&&qt.withoutSetter||Wt,Zt=function(t){if(!Ht($t,t)||!Jt&&"string"!=typeof $t[t]){var e="Symbol."+t;Jt&&Ht(qt,t)?$t[t]=qt[t]:$t[t]=Yt&&Kt?Kt(e):Qt(e)}return $t[t]},te=b,ee=X,re=pt,ne=St,oe=function(t,e){var r,n;if("string"===e&&wt(r=t.toString)&&!Nt(n=Ot(r,t)))return n;if(wt(r=t.valueOf)&&!Nt(n=Ot(r,t)))return n;if("string"!==e&&wt(r=t.toString)&&!Nt(n=Ot(r,t)))return n;throw Tt("Can't convert object to primitive value")},ie=Zt,ae=c.TypeError,ue=ie("toPrimitive"),ce=function(t,e){if(!ee(t)||re(t))return t;var r,n=ne(t,ue);if(n){if(void 0===e&&(e="default"),r=te(n,t,e),!ee(r)||re(r))return r;throw ae("Can't convert object to primitive value")}return void 0===e&&(e="number"),oe(t,e)},fe=pt,se=function(t){var e=ce(t,"string");return fe(e)?e:e+""},le=X,pe=c.document,ye=le(pe)&&le(pe.createElement),de=function(t){return ye?pe.createElement(t):{}},he=de,ve=!g&&!v((function(){return 7!=Object.defineProperty(he("div"),"a",{get:function(){return 7}}).a})),ge=g,me=b,be=S,Se=E,Oe=B,we=se,Ne=Dt,Te=ve,Ae=Object.getOwnPropertyDescriptor;h.f=ge?Ae:function(t,e){if(t=Oe(t),e=we(e),Te)try{return Ae(t,e)}catch(t){}if(Ne(t,e))return Se(!me(be.f,t,e),t[e])};var Ee=v,je=d,Ce=/#|\.prototype\./,xe=function(t,e){var r=Le[Pe(t)];return r==Me||r!=ke&&(je(e)?Ee(e):!!e)},Pe=xe.normalize=function(t){return String(t).replace(Ce,".").toLowerCase()},Le=xe.data={},ke=xe.NATIVE="N",Me=xe.POLYFILL="P",Ie=xe,_e=mt,Re=i(i.bind),De=function(t,e){return _e(t),void 0===e?t:Re?Re(t,e):function(){return t.apply(e,arguments)}},Fe={},Ge=c,Ue=X,Be=Ge.String,Ve=Ge.TypeError,Xe=function(t){if(Ue(t))return t;throw Ve(Be(t)+" is not an object")},ze=g,He=ve,We=Xe,Je=se,Ye=c.TypeError,$e=Object.defineProperty;Fe.f=ze?$e:function(t,e,r){if(We(t),e=Je(e),We(r),He)try{return $e(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ye("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var qe=Fe,Ke=E,Qe=g?function(t,e,r){return qe.f(t,e,Ke(1,r))}:function(t,e,r){return t[e]=r,t},Ze=c,tr=y,er=i,rr=d,nr=h.f,or=Ie,ir=z,ar=De,ur=Qe,cr=Dt,fr=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return tr(t,this,arguments)};return e.prototype=t.prototype,e},sr=function(t,e){var r,n,o,i,a,u,c,f,s=t.target,l=t.global,p=t.stat,y=t.proto,d=l?Ze:p?Ze[s]:(Ze[s]||{}).prototype,h=l?ir:ir[s]||ur(ir,s,{})[s],v=h.prototype;for(o in e)r=!or(l?o:s+(p?".":"#")+o,t.forced)&&d&&cr(d,o),a=h[o],r&&(u=t.noTargetGet?(f=nr(d,o))&&f.value:d[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(c=t.bind&&r?ar(i,Ze):t.wrap&&r?fr(i):y&&rr(i)?er(i):i,(t.sham||i&&i.sham||a&&a.sham)&&ur(c,"sham",!0),ur(h,o,c),y&&(cr(ir,n=s+"Prototype")||ur(ir,n,{}),ur(ir[n],o,i),t.real&&v&&!v[o]&&ur(v,o,i)))},lr=P,pr=Array.isArray||function(t){return"Array"==lr(t)},yr={};yr[Zt("toStringTag")]="z";var dr="[object z]"===String(yr),hr=c,vr=dr,gr=d,mr=P,br=Zt("toStringTag"),Sr=hr.Object,Or="Arguments"==mr(function(){return arguments}()),wr=vr?mr:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Sr(t),br))?r:Or?mr(e):"Object"==(n=mr(e))&&gr(e.callee)?"Arguments":n},Nr=d,Tr=Pt,Ar=i(Function.toString);Nr(Tr.inspectSource)||(Tr.inspectSource=function(t){return Ar(t)});var Er=Tr.inspectSource,jr=i,Cr=v,xr=d,Pr=wr,Lr=Er,kr=function(){},Mr=[],Ir=$("Reflect","construct"),_r=/^\s*(?:class|function)\b/,Rr=jr(_r.exec),Dr=!_r.exec(kr),Fr=function(t){if(!xr(t))return!1;try{return Ir(kr,Mr,t),!0}catch(t){return!1}},Gr=!Ir||Cr((function(){var t;return Fr(Fr.call)||!Fr(Object)||!Fr((function(){t=!0}))||t}))?function(t){if(!xr(t))return!1;switch(Pr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Dr||!!Rr(_r,Lr(t))}:Fr,Ur=Math.ceil,Br=Math.floor,Vr=function(t){var e=+t;return e!=e||0===e?0:(e>0?Br:Ur)(e)},Xr=Vr,zr=Math.max,Hr=Math.min,Wr=function(t,e){var r=Xr(t);return r<0?zr(r+e,0):Hr(r,e)},Jr=Vr,Yr=Math.min,$r=function(t){return t>0?Yr(Jr(t),9007199254740991):0},qr=function(t){return $r(t.length)},Kr=se,Qr=Fe,Zr=E,tn=function(t,e,r){var n=Kr(e);n in t?Qr.f(t,n,Zr(0,r)):t[n]=r},en=v,rn=rt,nn=Zt("species"),on=function(t){return rn>=51||!en((function(){var e=[];return(e.constructor={})[nn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},an=i([].slice),un=sr,cn=c,fn=pr,sn=Gr,ln=X,pn=Wr,yn=qr,dn=B,hn=tn,vn=Zt,gn=an,mn=on("slice"),bn=vn("species"),Sn=cn.Array,On=Math.max;un({target:"Array",proto:!0,forced:!mn},{slice:function(t,e){var r,n,o,i=dn(this),a=yn(i),u=pn(t,a),c=pn(void 0===e?a:e,a);if(fn(i)&&(r=i.constructor,(sn(r)&&(r===Sn||fn(r.prototype))||ln(r)&&null===(r=r[bn]))&&(r=void 0),r===Sn||void 0===r))return gn(i,u,c);for(n=new(void 0===r?Sn:r)(On(c-u,0)),o=0;u<c;u++,o++)u in i&&hn(n,o,i[u]);return n.length=o,n}});var wn,Nn,Tn,An=z,En=function(t){return An[t+"Prototype"]},jn=En("Array").slice,Cn=a,xn=jn,Pn=Array.prototype,Ln=function(t){var e=t.slice;return t===Pn||Cn(Pn,t)&&e===Pn.slice?xn:e},kn=Ln,Mn=wr,In=c.String,_n=function(t){if("Symbol"===Mn(t))throw TypeError("Cannot convert a Symbol value to a string");return In(t)},Rn=i,Dn=Vr,Fn=_n,Gn=F,Un=Rn("".charAt),Bn=Rn("".charCodeAt),Vn=Rn("".slice),Xn=function(t){return function(e,r){var n,o,i=Fn(Gn(e)),a=Dn(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Bn(i,a))<55296||n>56319||a+1===u||(o=Bn(i,a+1))<56320||o>57343?t?Un(i,a):n:t?Vn(i,a,a+2):o-56320+(n-55296<<10)+65536}},zn={codeAt:Xn(!1),charAt:Xn(!0)},Hn=d,Wn=Er,Jn=c.WeakMap,Yn=Hn(Jn)&&/native code/.test(Wn(Jn)),$n=At.exports,qn=Vt,Kn=$n("keys"),Qn=function(t){return Kn[t]||(Kn[t]=qn(t))},Zn={},to=Yn,eo=c,ro=i,no=X,oo=Qe,io=Dt,ao=Pt,uo=Qn,co=Zn,fo="Object already initialized",so=eo.TypeError,lo=eo.WeakMap;if(to||ao.state){var po=ao.state||(ao.state=new lo),yo=ro(po.get),ho=ro(po.has),vo=ro(po.set);wn=function(t,e){if(ho(po,t))throw new so(fo);return e.facade=t,vo(po,t,e),e},Nn=function(t){return yo(po,t)||{}},Tn=function(t){return ho(po,t)}}else{var go=uo("state");co[go]=!0,wn=function(t,e){if(io(t,go))throw new so(fo);return e.facade=t,oo(t,go,e),e},Nn=function(t){return io(t,go)?t[go]:{}},Tn=function(t){return io(t,go)}}var mo,bo={set:wn,get:Nn,has:Tn,enforce:function(t){return Tn(t)?Nn(t):wn(t,{})},getterFor:function(t){return function(e){var r;if(!no(e)||(r=Nn(e)).type!==t)throw so("Incompatible receiver, "+t+" required");return r}}},So=g,Oo=Dt,wo=Function.prototype,No=So&&Object.getOwnPropertyDescriptor,To=Oo(wo,"name"),Ao={EXISTS:To,PROPER:To&&"something"===function(){}.name,CONFIGURABLE:To&&(!So||So&&No(wo,"name").configurable)},Eo=B,jo=Wr,Co=qr,xo=function(t){return function(e,r,n){var o,i=Eo(e),a=Co(i),u=jo(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Po={includes:xo(!0),indexOf:xo(!1)},Lo=Dt,ko=B,Mo=Po.indexOf,Io=Zn,_o=i([].push),Ro=function(t,e){var r,n=ko(t),o=0,i=[];for(r in n)!Lo(Io,r)&&Lo(n,r)&&_o(i,r);for(;e.length>o;)Lo(n,r=e[o++])&&(~Mo(i,r)||_o(i,r));return i},Do=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fo=Ro,Go=Do,Uo=Object.keys||function(t){return Fo(t,Go)},Bo=Fe,Vo=Xe,Xo=B,zo=Uo,Ho=g?Object.defineProperties:function(t,e){Vo(t);for(var r,n=Xo(e),o=zo(e),i=o.length,a=0;i>a;)Bo.f(t,r=o[a++],n[r]);return t},Wo=$("document","documentElement"),Jo=Xe,Yo=Ho,$o=Do,qo=Zn,Ko=Wo,Qo=de,Zo=Qn("IE_PROTO"),ti=function(){},ei=function(t){return"<script>"+t+"</"+"script>"},ri=function(t){t.write(ei("")),t.close();var e=t.parentWindow.Object;return t=null,e},ni=function(){try{mo=new ActiveXObject("htmlfile")}catch(t){}var t,e;ni="undefined"!=typeof document?document.domain&&mo?ri(mo):((e=Qo("iframe")).style.display="none",Ko.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ei("document.F=Object")),t.close(),t.F):ri(mo);for(var r=$o.length;r--;)delete ni.prototype[$o[r]];return ni()};qo[Zo]=!0;var oi,ii,ai,ui=Object.create||function(t,e){var r;return null!==t?(ti.prototype=Jo(t),r=new ti,ti.prototype=null,r[Zo]=t):r=ni(),void 0===e?r:Yo(r,e)},ci=!v((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),fi=c,si=Dt,li=d,pi=It,yi=ci,di=Qn("IE_PROTO"),hi=fi.Object,vi=hi.prototype,gi=yi?hi.getPrototypeOf:function(t){var e=pi(t);if(si(e,di))return e[di];var r=e.constructor;return li(r)&&e instanceof r?r.prototype:e instanceof hi?vi:null},mi=Qe,bi=function(t,e,r,n){n&&n.enumerable?t[e]=r:mi(t,e,r)},Si=v,Oi=d,wi=ui,Ni=gi,Ti=bi,Ai=Zt("iterator"),Ei=!1;[].keys&&("next"in(ai=[].keys())?(ii=Ni(Ni(ai)))!==Object.prototype&&(oi=ii):Ei=!0);var ji=null==oi||Si((function(){var t={};return oi[Ai].call(t)!==t}));Oi((oi=ji?{}:wi(oi))[Ai])||Ti(oi,Ai,(function(){return this}));var Ci={IteratorPrototype:oi,BUGGY_SAFARI_ITERATORS:Ei},xi=wr,Pi=dr?{}.toString:function(){return"[object "+xi(this)+"]"},Li=dr,ki=Fe.f,Mi=Qe,Ii=Dt,_i=Pi,Ri=Zt("toStringTag"),Di=function(t,e,r,n){if(t){var o=r?t:t.prototype;Ii(o,Ri)||ki(o,Ri,{configurable:!0,value:e}),n&&!Li&&Mi(o,"toString",_i)}},Fi={},Gi=Ci.IteratorPrototype,Ui=ui,Bi=E,Vi=Di,Xi=Fi,zi=function(){return this},Hi=c,Wi=(Hi.String,Hi.TypeError,i);Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,r={};try{(t=Wi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}}();var Ji=sr,Yi=b,$i=function(t,e,r){var n=e+" Iterator";return t.prototype=Ui(Gi,{next:Bi(1,r)}),Vi(t,n,!1,!0),Xi[n]=zi,t},qi=gi,Ki=Di,Qi=bi,Zi=Fi,ta=Ao.PROPER,ea=Ci.BUGGY_SAFARI_ITERATORS,ra=Zt("iterator"),na="keys",oa="values",ia="entries",aa=function(){return this},ua=function(t,e,r,n,o,i,a){$i(r,e,n);var u,c,f,s=function(t){if(t===o&&h)return h;if(!ea&&t in y)return y[t];switch(t){case na:case oa:case ia:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,y=t.prototype,d=y[ra]||y["@@iterator"]||o&&y[o],h=!ea&&d||s(o),v="Array"==e&&y.entries||d;if(v&&(u=qi(v.call(new t)))!==Object.prototype&&u.next&&(Ki(u,l,!0,!0),Zi[l]=aa),ta&&o==oa&&d&&d.name!==oa&&(p=!0,h=function(){return Yi(d,this)}),o)if(c={values:s(oa),keys:i?h:s(na),entries:s(ia)},a)for(f in c)(ea||p||!(f in y))&&Qi(y,f,c[f]);else Ji({target:e,proto:!0,forced:ea||p},c);return a&&y[ra]!==h&&Qi(y,ra,h,{name:o}),Zi[e]=h,c},ca=zn.charAt,fa=_n,sa=bo,la=ua,pa="String Iterator",ya=sa.set,da=sa.getterFor(pa);la(String,"String",(function(t){ya(this,{type:pa,string:fa(t),index:0})}),(function(){var t,e=da(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=ca(r,n),e.index+=t.length,{value:t,done:!1})}));var ha=b,va=Xe,ga=St,ma=Xe,ba=function(t,e,r){var n,o;va(t);try{if(!(n=ga(t,"return"))){if("throw"===e)throw r;return r}n=ha(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return va(n),r},Sa=Fi,Oa=Zt("iterator"),wa=Array.prototype,Na=wr,Ta=St,Aa=Fi,Ea=Zt("iterator"),ja=function(t){if(null!=t)return Ta(t,Ea)||Ta(t,"@@iterator")||Aa[Na(t)]},Ca=b,xa=mt,Pa=Xe,La=dt,ka=ja,Ma=c.TypeError,Ia=De,_a=b,Ra=It,Da=function(t,e,r,n){try{return n?e(ma(r)[0],r[1]):e(r)}catch(e){ba(t,"throw",e)}},Fa=function(t){return void 0!==t&&(Sa.Array===t||wa[Oa]===t)},Ga=Gr,Ua=qr,Ba=tn,Va=function(t,e){var r=arguments.length<2?ka(t):e;if(xa(r))return Pa(Ca(r,t));throw Ma(La(t)+" is not iterable")},Xa=ja,za=c.Array,Ha=Zt("iterator"),Wa=!1;try{var Ja=0,Ya={next:function(){return{done:!!Ja++}},return:function(){Wa=!0}};Ya[Ha]=function(){return this},Array.from(Ya,(function(){throw 2}))}catch(t){}var $a=function(t){var e=Ra(t),r=Ga(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ia(o,n>2?arguments[2]:void 0));var a,u,c,f,s,l,p=Xa(e),y=0;if(!p||this==za&&Fa(p))for(a=Ua(e),u=r?new this(a):za(a);a>y;y++)l=i?o(e[y],y):e[y],Ba(u,y,l);else for(s=(f=Va(e,p)).next,u=r?new this:[];!(c=_a(s,f)).done;y++)l=i?Da(f,o,[c.value,y],!0):c.value,Ba(u,y,l);return u.length=y,u},qa=function(t,e){if(!e&&!Wa)return!1;var r=!1;try{var n={};n[Ha]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r};sr({target:"Array",stat:!0,forced:!qa((function(t){Array.from(t)}))},{from:$a});var Ka=z.Array.from,Qa=Ka,Za=c,tu=pr,eu=Gr,ru=X,nu=Zt("species"),ou=Za.Array,iu=function(t){var e;return tu(t)&&(e=t.constructor,(eu(e)&&(e===ou||tu(e.prototype))||ru(e)&&null===(e=e[nu]))&&(e=void 0)),void 0===e?ou:e},au=function(t,e){return new(iu(t))(0===e?0:e)},uu=sr,cu=c,fu=v,su=pr,lu=X,pu=It,yu=qr,du=tn,hu=au,vu=on,gu=rt,mu=Zt("isConcatSpreadable"),bu=9007199254740991,Su="Maximum allowed index exceeded",Ou=cu.TypeError,wu=gu>=51||!fu((function(){var t=[];return t[mu]=!1,t.concat()[0]!==t})),Nu=vu("concat"),Tu=function(t){if(!lu(t))return!1;var e=t[mu];return void 0!==e?!!e:su(t)};uu({target:"Array",proto:!0,forced:!wu||!Nu},{concat:function(t){var e,r,n,o,i,a=pu(this),u=hu(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Tu(i=-1===e?a:arguments[e])){if(c+(o=yu(i))>bu)throw Ou(Su);for(r=0;r<o;r++,c++)r in i&&du(u,c,i[r])}else{if(c>=bu)throw Ou(Su);du(u,c++,i)}return u.length=c,u}});var Au={},Eu=Ro,ju=Do.concat("length","prototype");Au.f=Object.getOwnPropertyNames||function(t){return Eu(t,ju)};var Cu={},xu=P,Pu=B,Lu=Au.f,ku=an,Mu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Cu.f=function(t){return Mu&&"Window"==xu(t)?function(t){try{return Lu(t)}catch(t){return ku(Mu)}}(t):Lu(Pu(t))};var Iu={};Iu.f=Object.getOwnPropertySymbols;var _u={},Ru=Zt;_u.f=Ru;var Du=z,Fu=Dt,Gu=_u,Uu=Fe.f,Bu=function(t){var e=Du.Symbol||(Du.Symbol={});Fu(e,t)||Uu(e,t,{value:Gu.f(t)})},Vu=De,Xu=R,zu=It,Hu=qr,Wu=au,Ju=i([].push),Yu=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,f,s,l){for(var p,y,d=zu(c),h=Xu(d),v=Vu(f,s),g=Hu(h),m=0,b=l||Wu,S=e?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in h)&&(y=v(p=h[m],m,d),t))if(e)S[m]=y;else if(y)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:Ju(S,p)}else switch(t){case 4:return!1;case 7:Ju(S,p)}return i?-1:n||o?o:S}},$u={forEach:Yu(0),map:Yu(1),filter:Yu(2),some:Yu(3),every:Yu(4),find:Yu(5),findIndex:Yu(6),filterReject:Yu(7)},qu=sr,Ku=c,Qu=$,Zu=y,tc=b,ec=i,rc=g,nc=it,oc=v,ic=Dt,ac=pr,uc=d,cc=X,fc=a,sc=pt,lc=Xe,pc=It,yc=B,dc=se,hc=_n,vc=E,gc=ui,mc=Uo,bc=Au,Sc=Cu,Oc=Iu,wc=h,Nc=Fe,Tc=S,Ac=an,Ec=bi,jc=At.exports,Cc=Zn,xc=Vt,Pc=Zt,Lc=_u,kc=Bu,Mc=Di,Ic=bo,_c=$u.forEach,Rc=Qn("hidden"),Dc="Symbol",Fc=Pc("toPrimitive"),Gc=Ic.set,Uc=Ic.getterFor(Dc),Bc=Object.prototype,Vc=Ku.Symbol,Xc=Vc&&Vc.prototype,zc=Ku.TypeError,Hc=Ku.QObject,Wc=Qu("JSON","stringify"),Jc=wc.f,Yc=Nc.f,$c=Sc.f,qc=Tc.f,Kc=ec([].push),Qc=jc("symbols"),Zc=jc("op-symbols"),tf=jc("string-to-symbol-registry"),ef=jc("symbol-to-string-registry"),rf=jc("wks"),nf=!Hc||!Hc.prototype||!Hc.prototype.findChild,of=rc&&oc((function(){return 7!=gc(Yc({},"a",{get:function(){return Yc(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Jc(Bc,e);n&&delete Bc[e],Yc(t,e,r),n&&t!==Bc&&Yc(Bc,e,n)}:Yc,af=function(t,e){var r=Qc[t]=gc(Xc);return Gc(r,{type:Dc,tag:t,description:e}),rc||(r.description=e),r},uf=function(t,e,r){t===Bc&&uf(Zc,e,r),lc(t);var n=dc(e);return lc(r),ic(Qc,n)?(r.enumerable?(ic(t,Rc)&&t[Rc][n]&&(t[Rc][n]=!1),r=gc(r,{enumerable:vc(0,!1)})):(ic(t,Rc)||Yc(t,Rc,vc(1,{})),t[Rc][n]=!0),of(t,n,r)):Yc(t,n,r)},cf=function(t,e){lc(t);var r=yc(e),n=mc(r).concat(pf(r));return _c(n,(function(e){rc&&!tc(ff,r,e)||uf(t,e,r[e])})),t},ff=function(t){var e=dc(t),r=tc(qc,this,e);return!(this===Bc&&ic(Qc,e)&&!ic(Zc,e))&&(!(r||!ic(this,e)||!ic(Qc,e)||ic(this,Rc)&&this[Rc][e])||r)},sf=function(t,e){var r=yc(t),n=dc(e);if(r!==Bc||!ic(Qc,n)||ic(Zc,n)){var o=Jc(r,n);return!o||!ic(Qc,n)||ic(r,Rc)&&r[Rc][n]||(o.enumerable=!0),o}},lf=function(t){var e=$c(yc(t)),r=[];return _c(e,(function(t){ic(Qc,t)||ic(Cc,t)||Kc(r,t)})),r},pf=function(t){var e=t===Bc,r=$c(e?Zc:yc(t)),n=[];return _c(r,(function(t){!ic(Qc,t)||e&&!ic(Bc,t)||Kc(n,Qc[t])})),n};if(nc||(Vc=function(){if(fc(Xc,this))throw zc("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?hc(arguments[0]):void 0,e=xc(t),r=function(t){this===Bc&&tc(r,Zc,t),ic(this,Rc)&&ic(this[Rc],e)&&(this[Rc][e]=!1),of(this,e,vc(1,t))};return rc&&nf&&of(Bc,e,{configurable:!0,set:r}),af(e,t)},Ec(Xc=Vc.prototype,"toString",(function(){return Uc(this).tag})),Ec(Vc,"withoutSetter",(function(t){return af(xc(t),t)})),Tc.f=ff,Nc.f=uf,wc.f=sf,bc.f=Sc.f=lf,Oc.f=pf,Lc.f=function(t){return af(Pc(t),t)},rc&&Yc(Xc,"description",{configurable:!0,get:function(){return Uc(this).description}})),qu({global:!0,wrap:!0,forced:!nc,sham:!nc},{Symbol:Vc}),_c(mc(rf),(function(t){kc(t)})),qu({target:Dc,stat:!0,forced:!nc},{for:function(t){var e=hc(t);if(ic(tf,e))return tf[e];var r=Vc(e);return tf[e]=r,ef[r]=e,r},keyFor:function(t){if(!sc(t))throw zc(t+" is not a symbol");if(ic(ef,t))return ef[t]},useSetter:function(){nf=!0},useSimple:function(){nf=!1}}),qu({target:"Object",stat:!0,forced:!nc,sham:!rc},{create:function(t,e){return void 0===e?gc(t):cf(gc(t),e)},defineProperty:uf,defineProperties:cf,getOwnPropertyDescriptor:sf}),qu({target:"Object",stat:!0,forced:!nc},{getOwnPropertyNames:lf,getOwnPropertySymbols:pf}),qu({target:"Object",stat:!0,forced:oc((function(){Oc.f(1)}))},{getOwnPropertySymbols:function(t){return Oc.f(pc(t))}}),Wc){var yf=!nc||oc((function(){var t=Vc();return"[null]"!=Wc([t])||"{}"!=Wc({a:t})||"{}"!=Wc(Object(t))}));qu({target:"JSON",stat:!0,forced:yf},{stringify:function(t,e,r){var n=Ac(arguments),o=e;if((cc(e)||void 0!==t)&&!sc(t))return ac(e)||(e=function(t,e){if(uc(o)&&(e=tc(o,this,t,e)),!sc(e))return e}),n[1]=e,Zu(Wc,null,n)}})}if(!Xc[Fc]){var df=Xc.valueOf;Ec(Xc,Fc,(function(t){return tc(df,this)}))}Mc(Vc,Dc),Cc[Rc]=!0,Bu("asyncIterator"),Bu("hasInstance"),Bu("isConcatSpreadable"),Bu("iterator"),Bu("match"),Bu("matchAll"),Bu("replace"),Bu("search"),Bu("species"),Bu("split"),Bu("toPrimitive"),Bu("toStringTag"),Bu("unscopables"),Di(c.JSON,"JSON",!0);var hf=z.Symbol,vf=B,gf=Fi,mf=bo,bf=ua,Sf="Array Iterator",Of=mf.set,wf=mf.getterFor(Sf);bf(Array,"Array",(function(t,e){Of(this,{type:Sf,target:vf(t),index:0,kind:e})}),(function(){var t=wf(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),gf.Arguments=gf.Array;var Nf={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Tf=c,Af=wr,Ef=Qe,jf=Fi,Cf=Zt("toStringTag");for(var xf in Nf){var Pf=Tf[xf],Lf=Pf&&Pf.prototype;Lf&&Af(Lf)!==Cf&&Ef(Lf,Cf,xf),jf[xf]=jf.Array}var kf=hf,Mf=kf,If=ja;sr({target:"Array",stat:!0},{isArray:pr});var _f=z.Array.isArray;function Rf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Bu("asyncDispose"),Bu("dispose"),Bu("matcher"),Bu("metadata"),Bu("observable"),Bu("patternMatch"),Bu("replaceAll");var Df=kf,Ff=Ka;var Gf=Ln;function Uf(t){return function(t){if(_f(t))return Rf(t)}(t)||function(t){if(void 0!==Df&&null!=If(t)||null!=t["@@iterator"])return Ff(t)}(t)||function(t,e){var r;if(t){if("string"==typeof t)return Rf(t,e);var n=Gf(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Ff(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rf(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Bf={exports:{}};sr({target:"Object",stat:!0,forced:!g,sham:!g},{defineProperty:Fe.f});var Vf=z.Object,Xf=Bf.exports=function(t,e,r){return Vf.defineProperty(t,e,r)};Vf.defineProperty.sham&&(Xf.sham=!0);var zf=Bf.exports;function Hf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),zf(t,n.key,n)}}function Wf(t,e,r){return e in t?zf(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Jf=It,Yf=Uo;sr({target:"Object",stat:!0,forced:v((function(){Yf(1)}))},{keys:function(t){return Yf(Jf(t))}});var $f=z.Object.keys,qf=En("Array").concat,Kf=a,Qf=qf,Zf=Array.prototype,ts=function(t){var e=t.concat;return t===Zf||Kf(Zf,t)&&e===Zf.concat?Qf:e};function es(t,e){var r=void 0!==Mf&&If(t)||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return rs(t,e);var n=kn(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Qa(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rs(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function rs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ns(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(t){var n=[],o=function(t,e){e instanceof Array?t.push.apply(t,Uf(e)):t.push(e)};if(t.nodeType===Node.TEXT_NODE)return o(n,t),n;if(t.nodeType===Node.ELEMENT_NODE&&"childElementCount"in t&&0===t.childElementCount&&!e)return o(n,t),n;for(var i=t.childNodes.length,a=0;a<i;a++){var u=t.childNodes[a];if(u.nodeType!==Node.TEXT_NODE)o(n,r(u));else o(n,u)}return n}return r(t)}function os(t,e,r){var n=[];if(t.nextSibling){n.push(t.nextSibling);var o=os(t.nextSibling,e);n.push.apply(n,Uf(o)),r&&r(o)}else if(e&&t.parentNode&&t.parentNode!==e&&t.parentNode.parentNode!==e){var i=os(t.parentNode,e);n.push.apply(n,Uf(i)),r&&r(i)}return n}function is(t,e,r){var n=[];if(t.previousSibling){n.unshift(t.previousSibling);var o=is(t.previousSibling,e);n.unshift.apply(n,Uf(o)),r&&r(o)}else if(e&&t.parentNode&&t.parentNode!==e&&t.parentNode.parentNode!==e){var i=is(t.parentNode,e);n.unshift.apply(n,Uf(i)),r&&r(i)}return n}function as(t,e){var r=[];return function t(n){n!==e&&n.parentNode&&n.parentNode!==e&&(r.push(n.parentNode),t(n.parentNode))}(t),r}function us(t){var e,r=t.startContainer,n=t.endContainer,o=t.commonAncestorContainer;if(r===n)return[];if(r&&n&&r.parentNode===n.parentNode){var i=document.createRange();return i.setStartAfter(r),i.setEndBefore(n),[i]}function a(t){var e=document.createRange();return e.setStartBefore(t[0]),e.setEndAfter(t[t.length-1]),e}var u=[];os(r,o,(function(t){t&&t.length&&u.push(a(t))}));var c=[];is(n,o,(function(t){t&&t.length&&c.push(a(t))}));var f=[],s=!1;if(o.childNodes.length>2)for(var l=as(r,o),p=as(n,o),y=0;y<o.childNodes.length-1;y++){var d=o.childNodes[y];if(d!==l[l.length-1]){if(s){if(d===p[p.length-1])break;f.push(d)}}else s=!0}if(f.length){var h,v=a(f);return ts(h=[]).call(h,u,[v],c)}return ts(e=[]).call(e,u,c)}function cs(t,e){var r=function(t){var e={},r=document.createRange(),n=document.createRange();return t.startContainer===t.endContainer?(r.setStart(t.startContainer,t.startOffset),r.setEnd(t.endContainer,t.endOffset)):(t.startContainer&&(r.setStart(t.startContainer,t.startOffset),t.startContainer.nodeType===Node.TEXT_NODE?r.setEndAfter(t.startContainer):r.setEnd(t.startContainer,t.startContainer.childNodes.length)),n.setStart(t.endContainer,0),n.setEnd(t.endContainer,t.endOffset)),e.start={id:"start",range:r},e.end={id:"end",range:n},e}(t),n=r.start,o=r.end,i=us(t);n&&n.range&&i.unshift(n.range),o&&o.range&&i.push(o.range);var a,u=es(i);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(c){var f=c.extractContents();e&&e(f),c.deleteContents(),c.insertNode(f)}}}catch(t){u.e(t)}finally{u.f()}}function fs(t,e){var r=void 0!==Mf&&If(t)||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return ss(t,e);var n=kn(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Qa(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ss(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function ss(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ls(t,e){$f(e).forEach((function(r){t.style[r]=e[r]}))}var ps=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Wf(this,"style",{}),Wf(this,"className",""),Wf(this,"tagName","mark"),Wf(this,"tagNameUp","MARK"),e&&(this.className=e.className||this.className,this.style=e.style||this.style,this.tagName=e.tagName||this.tagName,this.tagNameUp=this.tagName.toUpperCase())}var e,r,n;return e=t,r=[{key:"reset",value:function(t){t.nodeName===this.tagNameUp&&t.parentNode&&(t.outerHTML=t.textContent||"")}},{key:"highLight",value:function(t){var e,r=this,n=[],o=ns(t,!1),i=function(t){var e=r.highLightText(t);if(e){var o={mix:!1,el:e};n.push(o)}},a=fs(o);try{for(a.s();!(e=a.n()).done;){var u=e.value;if(u.nodeType===Node.TEXT_NODE&&u.textContent){if(u.parentNode&&u.parentNode.nodeName===this.tagNameUp)continue;i(u)}else if(u.nodeName===this.tagNameUp){var c={mix:!0,el:u};n.push(c)}else ns(u,!0).forEach((function(t){i(t)}))}}catch(t){a.e(t)}finally{a.f()}return n}},{key:"addStyle",value:function(t){console.log("addStyle");var e=[];if(t.nodeType===Node.DOCUMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];e.push.apply(e,Uf(this.addStyle(n)))}else if(t.nodeType===Node.ELEMENT_NODE)ls(t,this.style),e.push({mix:!1,el:t});else if(t.nodeType===Node.TEXT_NODE){var o=this.highLightText(t);o&&(ls(o,this.style),e.push({mix:!1,el:t}))}return e}},{key:"mark",value:function(t){var e=this,r=[];return cs(t,(function(t){var n=e.highLight(t);r.push.apply(r,Uf(n))})),r}},{key:"markStyle",value:function(t){var e=this,r=[];return cs(t,(function(t){var n=e.addStyle(t);r.push.apply(r,Uf(n))})),r}},{key:"createRange",value:function(t,e){var r=document.createRange();return r.setStartBefore(t),r.setEndAfter(e),r}},{key:"highLightText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;if(t.nodeType===Node.TEXT_NODE&&t.textContent){if(0===t.textContent.length)return;r=r||t.textContent.length-e;var n=t.textContent.substr(e,r),o=this.getMarkElement(n),i=document.createRange();return i.setStart(t,e),i.setEnd(t,e+r),i.deleteContents(),o&&i.insertNode(o),i.detach(),o}}},{key:"getMarkElement",value:function(t){var e=t,r=document.createElement(this.tagName);return this.className&&r.classList.add(this.className),r.textContent=e,r}}],r&&Hf(e.prototype,r),n&&Hf(e,n),t}();return ps}();