!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealHighlight=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var n=function(e){return e&&e.Math==Math&&e},a=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")(),r=function(e){try{return!!e()}catch(e){return!0}},i=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,l={f:s&&!o.call({1:2},1)?function(e){var t=s(this,e);return!!t&&t.enumerable}:o},c=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_={}.toString,d=function(e){return _.call(e).slice(8,-1)},u="".split,m=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?u.call(e,""):Object(e)}:Object,p=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},E=function(e){return m(p(e))},g=function(e){return"object"==typeof e?null!==e:"function"==typeof e},S=function(e,t){if(!g(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!g(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!g(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!g(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,T=function(e,t){return b.call(e,t)},f=a.document,C=g(f)&&g(f.createElement),N=function(e){return C?f.createElement(e):{}},R=!i&&!r((function(){return 7!=Object.defineProperty(N("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,v={f:i?O:function(e,t){if(e=E(e),t=S(t,!0),R)try{return O(e,t)}catch(e){}if(T(e,t))return c(!l.f.call(e,t),e[t])}},h=function(e){if(!g(e))throw TypeError(String(e)+" is not an object");return e},I=Object.defineProperty,A={f:i?I:function(e,t,n){if(h(e),t=S(t,!0),h(n),R)try{return I(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},y=i?function(e,t,n){return A.f(e,t,c(1,n))}:function(e,t,n){return e[t]=n,e},D=function(e,t){try{y(a,e,t)}catch(n){a[e]=t}return t},M="__core-js_shared__",L=a[M]||D(M,{}),x=Function.toString;"function"!=typeof L.inspectSource&&(L.inspectSource=function(e){return x.call(e)});var w,P,k,U=L.inspectSource,F=a.WeakMap,B="function"==typeof F&&/native code/.test(U(F)),G=t((function(e){(e.exports=function(e,t){return L[e]||(L[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Y=0,H=Math.random(),V=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Y+H).toString(36)},q=G("keys"),z=function(e){return q[e]||(q[e]=V(e))},$={},W=a.WeakMap;if(B){var Q=L.state||(L.state=new W),K=Q.get,j=Q.has,X=Q.set;w=function(e,t){return t.facade=e,X.call(Q,e,t),t},P=function(e){return K.call(Q,e)||{}},k=function(e){return j.call(Q,e)}}else{var Z=z("state");$[Z]=!0,w=function(e,t){return t.facade=e,y(e,Z,t),t},P=function(e){return T(e,Z)?e[Z]:{}},k=function(e){return T(e,Z)}}var J={set:w,get:P,has:k,enforce:function(e){return k(e)?P(e):w(e,{})},getterFor:function(e){return function(t){var n;if(!g(t)||(n=P(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ee=t((function(e){var t=J.get,n=J.enforce,r=String(String).split("String");(e.exports=function(e,t,i,o){var s,l=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,_=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||T(i,"name")||y(i,"name",t),(s=n(i)).source||(s.source=r.join("string"==typeof t?t:""))),e!==a?(l?!_&&e[t]&&(c=!0):delete e[t],c?e[t]=i:y(e,t,i)):c?e[t]=i:D(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||U(this)}))})),te=a,ne=function(e){return"function"==typeof e?e:void 0},ae=function(e,t){return arguments.length<2?ne(te[e])||ne(a[e]):te[e]&&te[e][t]||a[e]&&a[e][t]},re=Math.ceil,ie=Math.floor,oe=function(e){return isNaN(e=+e)?0:(e>0?ie:re)(e)},se=Math.min,le=function(e){return e>0?se(oe(e),9007199254740991):0},ce=Math.max,_e=Math.min,de=function(e,t){var n=oe(e);return n<0?ce(n+t,0):_e(n,t)},ue=function(e){return function(t,n,a){var r,i=E(t),o=le(i.length),s=de(a,o);if(e&&n!=n){for(;o>s;)if((r=i[s++])!=r)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},me={includes:ue(!0),indexOf:ue(!1)},pe=me.indexOf,Ee=function(e,t){var n,a=E(e),r=0,i=[];for(n in a)!T($,n)&&T(a,n)&&i.push(n);for(;t.length>r;)T(a,n=t[r++])&&(~pe(i,n)||i.push(n));return i},ge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=ge.concat("length","prototype"),be={f:Object.getOwnPropertyNames||function(e){return Ee(e,Se)}},Te={f:Object.getOwnPropertySymbols},fe=ae("Reflect","ownKeys")||function(e){var t=be.f(h(e)),n=Te.f;return n?t.concat(n(e)):t},Ce=function(e,t){for(var n=fe(t),a=A.f,r=v.f,i=0;ib;b++)if((o||b in E)&&(u=g(d=E[b],b,p),e))if(t)f[b]=u;else if(u)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:Ve.call(f,d)}else if(r)return!1;return i?-1:a||r?r:f}},ze={forEach:qe(0),map:qe(1),filter:qe(2),some:qe(3),every:qe(4),find:qe(5),findIndex:qe(6)},$e=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))},We=Object.defineProperty,Qe={},Ke=function(e){throw e},je=function(e,t){if(T(Qe,e))return Qe[e];t||(t={});var n=[][e],a=!!T(t,"ACCESSORS")&&t.ACCESSORS,o=T(t,0)?t[0]:Ke,s=T(t,1)?t[1]:void 0;return Qe[e]=!!n&&!r((function(){if(a&&!i)return!0;var e={length:-1};a?We(e,1,{enumerable:!0,get:Ke}):e[1]=1,n.call(e,o,s)}))},Xe=ze.forEach,Ze=$e("forEach"),Je=je("forEach"),et=Ze&&Je?[].forEach:function(e){return Xe(this,e,arguments.length>1?arguments[1]:void 0)};De({target:"Array",proto:!0,forced:[].forEach!=et},{forEach:et});var tt=[].join,nt=m!=Object,at=$e("join",",");De({target:"Array",proto:!0,forced:nt||!at},{join:function(e){return tt.call(E(this),void 0===e?",":e)}});var rt,it,ot=ae("navigator","userAgent")||"",st=a.process,lt=st&&st.versions,ct=lt&<.v8;ct?it=(rt=ct.split("."))[0]+rt[1]:ot&&(!(rt=ot.match(/Edge\/(\d+)/))||rt[1]>=74)&&(rt=ot.match(/Chrome\/(\d+)/))&&(it=rt[1]);var _t=it&&+it,dt=Ge("species"),ut=function(e){return _t>=51||!r((function(){var t=[];return(t.constructor={})[dt]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},mt=ze.map,pt=ut("map"),Et=je("map");De({target:"Array",proto:!0,forced:!pt||!Et},{map:function(e){return mt(this,e,arguments.length>1?arguments[1]:void 0)}});var gt=function(e){return function(t,n,a,r){Me(n);var i=xe(t),o=m(i),s=le(i.length),l=e?s-1:0,c=e?-1:1;if(a<2)for(;;){if(l in o){r=o[l],l+=c;break}if(l+=c,e?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=c)l in o&&(r=n(r,o[l],l,i));return r}},St={left:gt(!1),right:gt(!0)},bt="process"==d(a.process),Tt=St.left,ft=$e("reduce"),Ct=je("reduce",{1:0});De({target:"Array",proto:!0,forced:!ft||!Ct||!bt&&_t>79&&_t<83},{reduce:function(e){return Tt(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Nt=function(e,t,n){var a=S(t);a in e?A.f(e,a,c(0,n)):e[a]=n},Rt=ut("slice"),Ot=je("slice",{ACCESSORS:!0,0:0,1:2}),vt=Ge("species"),ht=[].slice,It=Math.max;De({target:"Array",proto:!0,forced:!Rt||!Ot},{slice:function(e,t){var n,a,r,i=E(this),o=le(i.length),s=de(e,o),l=de(void 0===t?o:t,o);if(we(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!we(n.prototype)?g(n)&&null===(n=n[vt])&&(n=void 0):n=void 0,n===Array||void 0===n))return ht.call(i,s,l);for(a=new(void 0===n?Array:n)(It(l-s,0)),r=0;sLt)throw TypeError(xt);for(r=He(l,a),i=0;ic-a+n;i--)delete l[i-1]}else if(n>a)for(i=c-a;i>_;i--)s=i+n-1,(o=i+a-1)in l?l[s]=l[o]:delete l[s];for(i=0;ii;)A.f(e,n=a[i++],t[n]);return e},Bt=ae("document","documentElement"),Gt=z("IE_PROTO"),Yt=function(){},Ht=function(e){return"