!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,a){return e(a={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&a.path)}},a.exports),a.exports}var a=function(e){return e&&e.Math==Math&&e},n=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof e&&e)||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},_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},c={}.toString,d=function(e){return c.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 a,n;if(t&&"function"==typeof(a=e.toString)&&!g(n=a.call(e)))return n;if("function"==typeof(a=e.valueOf)&&!g(n=a.call(e)))return n;if(!t&&"function"==typeof(a=e.toString)&&!g(n=a.call(e)))return n;throw TypeError("Can't convert object to primitive value")},T={}.hasOwnProperty,b=function(e,t){return T.call(e,t)},f=n.document,C=g(f)&&g(f.createElement),R=function(e){return C?f.createElement(e):{}},N=!i&&!r((function(){return 7!=Object.defineProperty(R("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),N)try{return O(e,t)}catch(e){}if(b(e,t))return _(!l.f.call(e,t),e[t])}},I=function(e){if(!g(e))throw TypeError(String(e)+" is not an object");return e},h=Object.defineProperty,A={f:i?h:function(e,t,a){if(I(e),t=S(t,!0),I(a),N)try{return h(e,t,a)}catch(e){}if("get"in a||"set"in a)throw TypeError("Accessors not supported");return"value"in a&&(e[t]=a.value),e}},y=i?function(e,t,a){return A.f(e,t,_(1,a))}:function(e,t,a){return e[t]=a,e},D=function(e,t){try{y(n,e,t)}catch(a){n[e]=t}return t},M="__core-js_shared__",L=n[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=n.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.6.5",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={},Q=n.WeakMap;if(B){var $=new Q,K=$.get,j=$.has,X=$.set;w=function(e,t){return X.call($,e,t),t},P=function(e){return K.call($,e)||{}},k=function(e){return j.call($,e)}}else{var Z=z("state");W[Z]=!0,w=function(e,t){return y(e,Z,t),t},P=function(e){return b(e,Z)?e[Z]:{}},k=function(e){return b(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 a;if(!g(t)||(a=P(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return a}}},ee=t((function(e){var t=J.get,a=J.enforce,r=String(String).split("String");(e.exports=function(e,t,i,o){var s=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,_=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||b(i,"name")||y(i,"name",t),a(i).source=r.join("string"==typeof t?t:"")),e!==n?(s?!_&&e[t]&&(l=!0):delete e[t],l?e[t]=i:y(e,t,i)):l?e[t]=i:D(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||U(this)}))})),te=n,ae=function(e){return"function"==typeof e?e:void 0},ne=function(e,t){return arguments.length<2?ae(te[e])||ae(n[e]):te[e]&&te[e][t]||n[e]&&n[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},_e=Math.max,ce=Math.min,de=function(e,t){var a=oe(e);return a<0?_e(a+t,0):ce(a,t)},ue=function(e){return function(t,a,n){var r,i=E(t),o=le(i.length),s=de(n,o);if(e&&a!=a){for(;o>s;)if((r=i[s++])!=r)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===a)return e||s||0;return!e&&-1}},me={includes:ue(!0),indexOf:ue(!1)},pe=me.indexOf,Ee=function(e,t){var a,n=E(e),r=0,i=[];for(a in n)!b(W,a)&&b(n,a)&&i.push(a);for(;t.length>r;)b(n,a=t[r++])&&(~pe(i,a)||i.push(a));return i},ge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=ge.concat("length","prototype"),Te={f:Object.getOwnPropertyNames||function(e){return Ee(e,Se)}},be={f:Object.getOwnPropertySymbols},fe=ne("Reflect","ownKeys")||function(e){var t=Te.f(I(e)),a=be.f;return a?t.concat(a(e)):t},Ce=function(e,t){for(var a=fe(t),n=A.f,r=v.f,i=0;iT;T++)if((o||T in E)&&(u=g(d=E[T],T,p),e))if(t)f[T]=u;else if(u)switch(e){case 3:return!0;case 5:return d;case 6:return T;case 2:He.call(f,d)}else if(r)return!1;return i?-1:n||r?r:f}},qe={forEach:Ve(0),map:Ve(1),filter:Ve(2),some:Ve(3),every:Ve(4),find:Ve(5),findIndex:Ve(6)},ze=function(e,t){var a=[][e];return!!a&&r((function(){a.call(null,t||function(){throw 1},1)}))},We=Object.defineProperty,Qe={},$e=function(e){throw e},Ke=function(e,t){if(b(Qe,e))return Qe[e];t||(t={});var a=[][e],n=!!b(t,"ACCESSORS")&&t.ACCESSORS,o=b(t,0)?t[0]:$e,s=b(t,1)?t[1]:void 0;return Qe[e]=!!a&&!r((function(){if(n&&!i)return!0;var e={length:-1};n?We(e,1,{enumerable:!0,get:$e}):e[1]=1,a.call(e,o,s)}))},je=qe.forEach,Xe=ze("forEach"),Ze=Ke("forEach"),Je=Xe&&Ze?[].forEach:function(e){return je(this,e,arguments.length>1?arguments[1]:void 0)};De({target:"Array",proto:!0,forced:[].forEach!=Je},{forEach:Je});var et=[].join,tt=m!=Object,at=ze("join",",");De({target:"Array",proto:!0,forced:tt||!at},{join:function(e){return et.call(E(this),void 0===e?",":e)}});var nt,rt,it=ne("navigator","userAgent")||"",ot=n.process,st=ot&&ot.versions,lt=st&&st.v8;lt?rt=(nt=lt.split("."))[0]+nt[1]:it&&(!(nt=it.match(/Edge\/(\d+)/))||nt[1]>=74)&&(nt=it.match(/Chrome\/(\d+)/))&&(rt=nt[1]);var _t=rt&&+rt,ct=Be("species"),dt=function(e){return _t>=51||!r((function(){var t=[];return(t.constructor={})[ct]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ut=qe.map,mt=dt("map"),pt=Ke("map");De({target:"Array",proto:!0,forced:!mt||!pt},{map:function(e){return ut(this,e,arguments.length>1?arguments[1]:void 0)}});var Et=function(e){return function(t,a,n,r){Me(a);var i=Le(t),o=m(i),s=le(i.length),l=e?s-1:0,_=e?-1:1;if(n<2)for(;;){if(l in o){r=o[l],l+=_;break}if(l+=_,e?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=_)l in o&&(r=a(r,o[l],l,i));return r}},gt={left:Et(!1),right:Et(!0)}.left,St=ze("reduce"),Tt=Ke("reduce",{1:0});De({target:"Array",proto:!0,forced:!St||!Tt},{reduce:function(e){return gt(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var bt=function(e,t,a){var n=S(t);n in e?A.f(e,n,_(0,a)):e[n]=a},ft=dt("slice"),Ct=Ke("slice",{ACCESSORS:!0,0:0,1:2}),Rt=Be("species"),Nt=[].slice,Ot=Math.max;De({target:"Array",proto:!0,forced:!ft||!Ct},{slice:function(e,t){var a,n,r,i=E(this),o=le(i.length),s=de(e,o),l=de(void 0===t?o:t,o);if(xe(i)&&("function"!=typeof(a=i.constructor)||a!==Array&&!xe(a.prototype)?g(a)&&null===(a=a[Rt])&&(a=void 0):a=void 0,a===Array||void 0===a))return Nt.call(i,s,l);for(n=new(void 0===a?Array:a)(Ot(l-s,0)),r=0;syt)throw TypeError(Dt);for(r=Ye(l,n),i=0;i_-n+a;i--)delete l[i-1]}else if(a>n)for(i=_-n;i>c;i--)s=i+a-1,(o=i+n-1)in l?l[s]=l[o]:delete l[s];for(i=0;ii;)A.f(e,a=n[i++],t[a]);return e},kt=ne("document","documentElement"),Ut=z("IE_PROTO"),Ft=function(){},Bt=function(e){return"