!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t=t||self).CherryCodeBlockPlantumlPlugin=r()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,r){return t(r={exports:{}},r.exports),r.exports}var n,o,i=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype,l=f.apply,s=f.call,p="object"==typeof Reflect&&Reflect.apply||(c?s.bind(l):function(){return s.apply(l,arguments)}),v=Function.prototype,y=v.bind,d=v.call,h=c&&y.bind(d,d),b=c?function(t){return t&&h(t)}:function(t){return t&&function(){return d.apply(t,arguments)}},g=function(t){return"function"==typeof t},m=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_=Function.prototype.call,w=c?_.bind(_):function(){return _.apply(_,arguments)},O={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,S={f:j&&!O.call({1:2},1)?function(t){var r=j(this,t);return!!r&&r.enumerable}:O},x=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},A=b({}.toString),P=b("".slice),T=function(t){return P(A(t),8,-1)},E=a.Object,C=b("".split),F=u((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?C(t,""):E(t)}:E,L=a.TypeError,k=function(t){if(null==t)throw L("Can't call method on "+t);return t},M=function(t){return F(k(t))},I=function(t){return"object"==typeof t?null!==t:g(t)},z={},D=function(t){return g(t)?t:void 0},R=function(t,r){return arguments.length<2?D(z[t])||D(a[t]):z[t]&&z[t][r]||a[t]&&a[t][r]},N=b({}.isPrototypeOf),G=R("navigator","userAgent")||"",U=a.process,B=a.Deno,$=U&&U.versions||B&&B.version,V=$&&$.v8;V&&(o=(n=V.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&G&&(!(n=G.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=G.match(/Chrome\/(\d+)/))&&(o=+n[1]);var W=o,q=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41})),H=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=a.Object,J=H?function(t){return"symbol"==typeof t}:function(t){var r=R("Symbol");return g(r)&&N(r.prototype,Y(t))},X=a.String,K=function(t){try{return X(t)}catch(t){return"Object"}},Q=a.TypeError,Z=function(t){if(g(t))return t;throw Q(K(t)+" is not a function")},tt=a.TypeError,rt=Object.defineProperty,et=a["__core-js_shared__"]||function(t,r){try{rt(a,t,{value:r,configurable:!0,writable:!0})}catch(e){a[t]=r}return r}("__core-js_shared__",{}),nt=e((function(t){(t.exports=function(t,r){return et[t]||(et[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),ot=a.Object,it=function(t){return ot(k(t))},at=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,r){return at(it(t),r)},ct=0,ft=Math.random(),lt=b(1..toString),st=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ct+ft,36)},pt=nt("wks"),vt=a.Symbol,yt=vt&&vt.for,dt=H?vt:vt&&vt.withoutSetter||st,ht=function(t){if(!ut(pt,t)||!q&&"string"!=typeof pt[t]){var r="Symbol."+t;q&&ut(vt,t)?pt[t]=vt[t]:pt[t]=H&&yt?yt(r):dt(r)}return pt[t]},bt=a.TypeError,gt=ht("toPrimitive"),mt=function(t,r){if(!I(t)||J(t))return t;var e,n,o=null==(e=t[gt])?void 0:Z(e);if(o){if(void 0===r&&(r="default"),n=w(o,t,r),!I(n)||J(n))return n;throw bt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var e,n;if("string"===r&&g(e=t.toString)&&!I(n=w(e,t)))return n;if(g(e=t.valueOf)&&!I(n=w(e,t)))return n;if("string"!==r&&g(e=t.toString)&&!I(n=w(e,t)))return n;throw tt("Can't convert object to primitive value")}(t,r)},_t=function(t){var r=mt(t,"string");return J(r)?r:r+""},wt=a.document,Ot=I(wt)&&I(wt.createElement),jt=function(t){return Ot?wt.createElement(t):{}},St=!m&&!u((function(){return 7!=Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),xt=Object.getOwnPropertyDescriptor,At={f:m?xt:function(t,r){if(t=M(t),r=_t(r),St)try{return xt(t,r)}catch(t){}if(ut(t,r))return x(!w(S.f,t,r),t[r])}},Pt=/#|\.prototype\./,Tt=function(t,r){var e=Ct[Et(t)];return e==Lt||e!=Ft&&(g(r)?u(r):!!r)},Et=Tt.normalize=function(t){return String(t).replace(Pt,".").toLowerCase()},Ct=Tt.data={},Ft=Tt.NATIVE="N",Lt=Tt.POLYFILL="P",kt=Tt,Mt=b(b.bind),It=function(t,r){return Z(t),void 0===r?t:c?Mt(t,r):function(){return t.apply(r,arguments)}},zt=m&&u((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Dt=a.String,Rt=a.TypeError,Nt=function(t){if(I(t))return t;throw Rt(Dt(t)+" is not an object")},Gt=a.TypeError,Ut=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,$t={f:m?zt?function(t,r,e){if(Nt(t),r=_t(r),Nt(e),"function"==typeof t&&"prototype"===r&&"value"in e&&"writable"in e&&!e.writable){var n=Bt(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:"configurable"in e?e.configurable:n.configurable,enumerable:"enumerable"in e?e.enumerable:n.enumerable,writable:!1})}return Ut(t,r,e)}:Ut:function(t,r,e){if(Nt(t),r=_t(r),Nt(e),St)try{return Ut(t,r,e)}catch(t){}if("get"in e||"set"in e)throw Gt("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},Vt=m?function(t,r,e){return $t.f(t,r,x(1,e))}:function(t,r,e){return t[r]=e,t},Wt=At.f,qt=function(t){var r=function(e,n,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return p(t,this,arguments)};return r.prototype=t.prototype,r},Ht=function(t,r){var e,n,o,i,u,c,f,l,s=t.target,p=t.global,v=t.stat,y=t.proto,d=p?a:v?a[s]:(a[s]||{}).prototype,h=p?z:z[s]||Vt(z,s,{})[s],m=h.prototype;for(o in r)e=!kt(p?o:s+(v?".":"#")+o,t.forced)&&d&&ut(d,o),u=h[o],e&&(c=t.dontCallGetSet?(l=Wt(d,o))&&l.value:d[o]),i=e&&c?c:r[o],e&&typeof u==typeof i||(f=t.bind&&e?It(i,a):t.wrap&&e?qt(i):y&&g(i)?b(i):i,(t.sham||i&&i.sham||u&&u.sham)&&Vt(f,"sham",!0),Vt(h,o,f),y&&(ut(z,n=s+"Prototype")||Vt(z,n,{}),Vt(z[n],o,i),t.real&&m&&!m[o]&&Vt(m,o,i)))},Yt=Math.ceil,Jt=Math.floor,Xt=Math.trunc||function(t){var r=+t;return(r>0?Jt:Yt)(r)},Kt=function(t){var r=+t;return r!=r||0===r?0:Xt(r)},Qt=Math.max,Zt=Math.min,tr=function(t,r){var e=Kt(t);return e<0?Qt(e+r,0):Zt(e,r)},rr=Math.min,er=function(t){return(r=t.length)>0?rr(Kt(r),9007199254740991):0;var r},nr=function(t){return function(r,e,n){var o,i=M(r),a=er(i),u=tr(n,a);if(t&&e!=e){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},or={includes:nr(!0),indexOf:nr(!1)},ir={},ar=or.indexOf,ur=b([].push),cr=function(t,r){var e,n=M(t),o=0,i=[];for(e in n)!ut(ir,e)&&ut(n,e)&&ur(i,e);for(;r.length>o;)ut(n,e=r[o++])&&(~ar(i,e)||ur(i,e));return i},fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lr=Object.keys||function(t){return cr(t,fr)},sr=u((function(){lr(1)}));Ht({target:"Object",stat:!0,forced:sr},{keys:function(t){return lr(it(t))}});var pr=z.Object.keys,vr={};vr[ht("toStringTag")]="z";var yr,dr="[object z]"===String(vr),hr=ht("toStringTag"),br=a.Object,gr="Arguments"==T(function(){return arguments}()),mr=dr?T:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=br(t),hr))?e:gr?T(r):"Object"==(n=T(r))&&g(r.callee)?"Arguments":n},_r=a.String,wr=function(t){if("Symbol"===mr(t))throw TypeError("Cannot convert a Symbol value to a string");return _r(t)},Or={f:m&&!zt?Object.defineProperties:function(t,r){Nt(t);for(var e,n=M(r),o=lr(r),i=o.length,a=0;i>a;)$t.f(t,e=o[a++],n[e]);return t}},jr=R("document","documentElement"),Sr=nt("keys"),xr=function(t){return Sr[t]||(Sr[t]=st(t))},Ar=xr("IE_PROTO"),Pr=function(){},Tr=function(t){return"