@matdata/yasgui-utils 5.10.1 → 5.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,4 @@
1
1
  export { default as Storage } from "./Storage";
2
- export declare function drawSvgStringAsElement(svgString: string): HTMLDivElement;
3
- export interface FaIcon {
4
- width: number;
5
- height: number;
6
- svgPathData: string;
7
- }
8
- export declare function drawFontAwesomeIconAsSvg(faIcon: FaIcon): string;
9
2
  export declare function hasClass(el: Element | undefined, className: string): boolean;
10
3
  export declare function addClass(el: Element | undefined | null, ...classNames: string[]): void;
11
4
  export declare function removeClass(el: Element | undefined | null, className: string): void;
@@ -1,22 +1,6 @@
1
1
  import DOMPurify from "dompurify";
2
2
  export { default as Storage } from "./Storage";
3
3
  const { sanitize } = DOMPurify;
4
- export function drawSvgStringAsElement(svgString) {
5
- if (svgString && svgString.trim().indexOf("<svg") == 0) {
6
- var parser = new DOMParser();
7
- var dom = parser.parseFromString(svgString, "text/xml");
8
- var svg = dom.documentElement;
9
- svg.setAttribute("aria-hidden", "true");
10
- var svgContainer = document.createElement("div");
11
- svgContainer.className = "svgImg";
12
- svgContainer.appendChild(svg);
13
- return svgContainer;
14
- }
15
- throw new Error("No svg string given. Cannot draw");
16
- }
17
- export function drawFontAwesomeIconAsSvg(faIcon) {
18
- return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${faIcon.width} ${faIcon.height}" aria-hidden="true"><path fill="currentColor" d="${faIcon.svgPathData}"></path></svg>`;
19
- }
20
4
  export function hasClass(el, className) {
21
5
  if (!el)
22
6
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/utils/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;AAE/B,MAAM,UAAU,sBAAsB,CAAC,SAAiB;IACtD,IAAI,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAEvD,IAAI,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;QAC7B,IAAI,GAAG,GAAG,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QACxD,IAAI,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC;QAC9B,GAAG,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAExC,IAAI,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACjD,YAAY,CAAC,SAAS,GAAG,QAAQ,CAAC;QAClC,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC9B,OAAO,YAAY,CAAC;IACtB,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;AACtD,CAAC;AAYD,MAAM,UAAU,wBAAwB,CAAC,MAAc;IACrD,OAAO,wDAAwD,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,qDAAqD,MAAM,CAAC,WAAW,iBAAiB,CAAC;AACvL,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,EAAuB,EAAE,SAAiB;IACjE,IAAI,CAAC,EAAE;QAAE,OAAO;IAChB,IAAI,EAAE,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;;QACrD,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC;AAClF,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,EAA8B,EAAE,GAAG,UAAoB;IAC9E,IAAI,CAAC,EAAE;QAAE,OAAO;IAChB,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,IAAI,EAAE,CAAC,SAAS;YAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;aACzC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;YAAE,EAAE,CAAC,SAAS,IAAI,GAAG,GAAG,SAAS,CAAC;IACrE,CAAC;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAA8B,EAAE,SAAiB;IAC3E,IAAI,CAAC,EAAE;QAAE,OAAO;IAChB,IAAI,EAAE,CAAC,SAAS;QAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;SAC5C,IAAI,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC,EAAE,CAAC;QACjC,IAAI,GAAG,GAAG,IAAI,MAAM,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;QACxD,EAAE,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAChD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,UAAU,CAAO,SAA8B,EAAE,GAAM;IACrE,IAAI,OAAO,SAAS,KAAK,UAAU;QAAE,OAAQ,SAAiB,CAAC,GAAG,CAAC,CAAC;IACpE,IAAI,OAAO,SAAS,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC,SAAS,CAAQ,CAAC;IACrE,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/utils/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;AAE/B,MAAM,UAAU,QAAQ,CAAC,EAAuB,EAAE,SAAiB;IACjE,IAAI,CAAC,EAAE;QAAE,OAAO;IAChB,IAAI,EAAE,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;;QACrD,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC;AAClF,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,EAA8B,EAAE,GAAG,UAAoB;IAC9E,IAAI,CAAC,EAAE;QAAE,OAAO;IAChB,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,IAAI,EAAE,CAAC,SAAS;YAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;aACzC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;YAAE,EAAE,CAAC,SAAS,IAAI,GAAG,GAAG,SAAS,CAAC;IACrE,CAAC;AACH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAA8B,EAAE,SAAiB;IAC3E,IAAI,CAAC,EAAE;QAAE,OAAO;IAChB,IAAI,EAAE,CAAC,SAAS;QAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;SAC5C,IAAI,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC,EAAE,CAAC;QACjC,IAAI,GAAG,GAAG,IAAI,MAAM,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;QACxD,EAAE,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAChD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,UAAU,CAAO,SAA8B,EAAE,GAAM;IACrE,IAAI,OAAO,SAAS,KAAK,UAAU;QAAE,OAAQ,SAAiB,CAAC,GAAG,CAAC,CAAC;IACpE,IAAI,OAAO,SAAS,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC,SAAS,CAAQ,CAAC;IACrE,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,11 +1,11 @@
1
- "use strict";var Utils=(()=>{var Kn=Object.create;var Ne=Object.defineProperty;var Zn=Object.getOwnPropertyDescriptor;var Qn=Object.getOwnPropertyNames;var er=Object.getPrototypeOf,tr=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nr=(e,t)=>{for(var r in t)Ne(e,r,{get:t[r],enumerable:!0})},Wt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Qn(t))!tr.call(e,o)&&o!==r&&Ne(e,o,{get:()=>t[o],enumerable:!(i=Zn(t,o))||i.enumerable});return e};var rr=(e,t,r)=>(r=e!=null?Kn(er(e)):{},Wt(t||!e||!e.__esModule?Ne(r,"default",{value:e,enumerable:!0}):r,e)),ir=e=>Wt(Ne({},"__esModule",{value:!0}),e);var J=I((zi,rn)=>{var lt=Dr(),xr=Nr(),Or=Lr(),Rr=typeof window<"u"?window:global;rn.exports={assign:lt,create:xr,trim:Or,bind:Ir,slice:ct,each:nn,map:Cr,pluck:ut,isList:ft,isFunction:Mr,isObject:Pr,Global:Rr};function Dr(){return Object.assign?Object.assign:function(t,r,i,o){for(var u=1;u<arguments.length;u++)nn(Object(arguments[u]),function(g,m){t[m]=g});return t}}function Nr(){if(Object.create)return function(r,i,o,u){var g=ct(arguments,1);return lt.apply(this,[Object.create(r)].concat(g))};{let t=function(){};var e=t;return function(i,o,u,g){var m=ct(arguments,1);return t.prototype=i,lt.apply(this,[new t].concat(m))}}}function Lr(){return String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function Ir(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}}function ct(e,t){return Array.prototype.slice.call(e,t||0)}function nn(e,t){ut(e,function(r,i){return t(r,i),!1})}function Cr(e,t){var r=ft(e)?[]:{};return ut(e,function(i,o){return r[o]=t(i,o),!1}),r}function ut(e,t){if(ft(e)){for(var r=0;r<e.length;r++)if(t(e[r],r))return e[r]}else for(var i in e)if(e.hasOwnProperty(i)&&t(e[i],i))return e[i]}function ft(e){return e!=null&&typeof e!="function"&&typeof e.length=="number"}function Mr(e){return e&&{}.toString.call(e)==="[object Function]"}function Pr(e){return e&&{}.toString.call(e)==="[object Object]"}});var on=I((Hi,an)=>{var B=J(),Fr=B.slice,kr=B.pluck,ae=B.each,Ur=B.bind,zr=B.create,pt=B.isList,mt=B.isFunction,Hr=B.isObject;an.exports={createStore:dt};var Gr={version:"2.0.12",enabled:!1,get:function(e,t){var r=this.storage.read(this._namespacePrefix+e);return this._deserialize(r,t)},set:function(e,t){return t===void 0?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each(function(r,i){e.call(t,t._deserialize(r),(i||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return dt.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return dt(this.storage,this.plugins,e)}};function Wr(){var e=typeof console>"u"?null:console;if(e){var t=e.warn?e.warn:e.log;t.apply(e,arguments)}}function dt(e,t,r){r||(r=""),e&&!pt(e)&&(e=[e]),t&&!pt(t)&&(t=[t]);var i=r?"__storejs_"+r+"_":"",o=r?new RegExp("^"+i):null,u=/^[a-zA-Z0-9_\-]*$/;if(!u.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:i,_namespaceRegexp:o,_testStorage:function(l){try{var h="__storejs__test__";l.write(h,h);var N=l.read(h)===h;return l.remove(h),N}catch{return!1}},_assignPluginFnProp:function(l,h){var N=this[h];this[h]=function(){var L=Fr(arguments,0),F=this;function Y(){if(N)return ae(arguments,function(Pe,Fe){L[Fe]=Pe}),N.apply(F,L)}var Me=[Y].concat(L);return l.apply(F,Me)}},_serialize:function(l){return JSON.stringify(l)},_deserialize:function(l,h){if(!l)return h;var N="";try{N=JSON.parse(l)}catch{N=l}return N!==void 0?N:h},_addStorage:function(l){this.enabled||this._testStorage(l)&&(this.storage=l,this.enabled=!0)},_addPlugin:function(l){var h=this;if(pt(l)){ae(l,function(L){h._addPlugin(L)});return}var N=kr(this.plugins,function(L){return l===L});if(!N){if(this.plugins.push(l),!mt(l))throw new Error("Plugins must be function values that return objects");var q=l.call(this);if(!Hr(q))throw new Error("Plugins must return an object of function properties");ae(q,function(L,F){if(!mt(L))throw new Error("Bad plugin property: "+F+" from plugin "+l.name+". Plugins should only return functions.");h._assignPluginFnProp(L,F)})}},addStorage:function(l){Wr("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(l)}},m=zr(g,Gr,{plugins:[]});return m.raw={},ae(m,function(l,h){mt(l)&&(m.raw[h]=Ur(m,l))}),ae(e,function(l){m._addStorage(l)}),ae(t,function(l){m._addPlugin(l)}),m}});var cn=I((Gi,ln)=>{var jr=J(),Br=jr.Global;ln.exports={name:"localStorage",read:sn,write:qr,each:Yr,remove:$r,clearAll:Xr};function oe(){return Br.localStorage}function sn(e){return oe().getItem(e)}function qr(e,t){return oe().setItem(e,t)}function Yr(e){for(var t=oe().length-1;t>=0;t--){var r=oe().key(t);e(sn(r),r)}}function $r(e){return oe().removeItem(e)}function Xr(){return oe().clear()}});var pn=I((Wi,fn)=>{var Jr=J(),Vr=Jr.Global;fn.exports={name:"oldFF-globalStorage",read:Kr,write:Zr,each:un,remove:Qr,clearAll:ei};var V=Vr.globalStorage;function Kr(e){return V[e]}function Zr(e,t){V[e]=t}function un(e){for(var t=V.length-1;t>=0;t--){var r=V.key(t);e(V[r],r)}}function Qr(e){return V.removeItem(e)}function ei(){un(function(e,t){delete V[e]})}});var gn=I((ji,dn)=>{var ti=J(),gt=ti.Global;dn.exports={name:"oldIE-userDataStorage",write:ni,read:ri,each:ii,remove:ai,clearAll:oi};var Ee="storejs",_e=gt.document,Te=li(),mn=(gt.navigator?gt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ni(e,t){if(!mn){var r=ht(e);Te(function(i){i.setAttribute(r,t),i.save(Ee)})}}function ri(e){if(!mn){var t=ht(e),r=null;return Te(function(i){r=i.getAttribute(t)}),r}}function ii(e){Te(function(t){for(var r=t.XMLDocument.documentElement.attributes,i=r.length-1;i>=0;i--){var o=r[i];e(t.getAttribute(o.name),o.name)}})}function ai(e){var t=ht(e);Te(function(r){r.removeAttribute(t),r.save(Ee)})}function oi(){Te(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(Ee);for(var r=t.length-1;r>=0;r--)e.removeAttribute(t[r].name);e.save(Ee)})}var si=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ht(e){return e.replace(/^\d/,"___$&").replace(si,"___")}function li(){if(!_e||!_e.documentElement||!_e.documentElement.addBehavior)return null;var e="script",t,r,i;try{r=new ActiveXObject("htmlfile"),r.open(),r.write("<"+e+">document.w=window</"+e+'><iframe src="/favicon.ico"></iframe>'),r.close(),t=r.w.frames[0].document,i=t.createElement("div")}catch{i=_e.createElement("div"),t=_e.body}return function(o){var u=[].slice.call(arguments,0);u.unshift(i),t.appendChild(i),i.addBehavior("#default#userData"),i.load(Ee),o.apply(this,u),t.removeChild(i)}}});var vn=I((Bi,An)=>{var hn=J(),ci=hn.Global,ui=hn.trim;An.exports={name:"cookieStorage",read:fi,write:pi,each:_n,remove:En,clearAll:mi};var Ae=ci.document;function fi(e){if(!e||!Tn(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ae.cookie.replace(new RegExp(t),"$1"))}function _n(e){for(var t=Ae.cookie.split(/; ?/g),r=t.length-1;r>=0;r--)if(ui(t[r])){var i=t[r].split("="),o=unescape(i[0]),u=unescape(i[1]);e(u,o)}}function pi(e,t){e&&(Ae.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function En(e){!e||!Tn(e)||(Ae.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function mi(){_n(function(e,t){En(t)})}function Tn(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ae.cookie)}});var yn=I((qi,bn)=>{var di=J(),gi=di.Global;bn.exports={name:"sessionStorage",read:Sn,write:hi,each:_i,remove:Ei,clearAll:Ti};function se(){return gi.sessionStorage}function Sn(e){return se().getItem(e)}function hi(e,t){return se().setItem(e,t)}function _i(e){for(var t=se().length-1;t>=0;t--){var r=se().key(t);e(Sn(r),r)}}function Ei(e){return se().removeItem(e)}function Ti(){return se().clear()}});var xn=I((Yi,wn)=>{wn.exports={name:"memoryStorage",read:Ai,write:vi,each:Si,remove:bi,clearAll:yi};var K={};function Ai(e){return K[e]}function vi(e,t){K[e]=t}function Si(e){for(var t in K)K.hasOwnProperty(t)&&e(K[t],t)}function bi(e){delete K[e]}function yi(e){K={}}});var Rn=I(($i,On)=>{On.exports=[cn(),pn(),gn(),vn(),yn(),xn()]});var Dn=I((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(t){var r=meta[t];return typeof r=="string"?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var r,i,o,u,g=gap,m,l=t[e];switch(l&&typeof l=="object"&&typeof l.toJSON=="function"&&(l=l.toJSON(e)),typeof rep=="function"&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,m=[],Object.prototype.toString.apply(l)==="[object Array]"){for(u=l.length,r=0;r<u;r+=1)m[r]=str(r,l)||"null";return o=m.length===0?"[]":gap?`[
1
+ "use strict";var Utils=(()=>{var Kn=Object.create;var Ne=Object.defineProperty;var Zn=Object.getOwnPropertyDescriptor;var Qn=Object.getOwnPropertyNames;var er=Object.getPrototypeOf,tr=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nr=(e,t)=>{for(var r in t)Ne(e,r,{get:t[r],enumerable:!0})},Wt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Qn(t))!tr.call(e,o)&&o!==r&&Ne(e,o,{get:()=>t[o],enumerable:!(i=Zn(t,o))||i.enumerable});return e};var rr=(e,t,r)=>(r=e!=null?Kn(er(e)):{},Wt(t||!e||!e.__esModule?Ne(r,"default",{value:e,enumerable:!0}):r,e)),ir=e=>Wt(Ne({},"__esModule",{value:!0}),e);var J=I((Fi,rn)=>{var lt=Lr(),xr=Nr(),wr=Dr(),Rr=typeof window<"u"?window:global;rn.exports={assign:lt,create:xr,trim:wr,bind:Ir,slice:ct,each:nn,map:Cr,pluck:ut,isList:ft,isFunction:Mr,isObject:Pr,Global:Rr};function Lr(){return Object.assign?Object.assign:function(t,r,i,o){for(var u=1;u<arguments.length;u++)nn(Object(arguments[u]),function(g,m){t[m]=g});return t}}function Nr(){if(Object.create)return function(r,i,o,u){var g=ct(arguments,1);return lt.apply(this,[Object.create(r)].concat(g))};{let t=function(){};var e=t;return function(i,o,u,g){var m=ct(arguments,1);return t.prototype=i,lt.apply(this,[new t].concat(m))}}}function Dr(){return String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function Ir(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}}function ct(e,t){return Array.prototype.slice.call(e,t||0)}function nn(e,t){ut(e,function(r,i){return t(r,i),!1})}function Cr(e,t){var r=ft(e)?[]:{};return ut(e,function(i,o){return r[o]=t(i,o),!1}),r}function ut(e,t){if(ft(e)){for(var r=0;r<e.length;r++)if(t(e[r],r))return e[r]}else for(var i in e)if(e.hasOwnProperty(i)&&t(e[i],i))return e[i]}function ft(e){return e!=null&&typeof e!="function"&&typeof e.length=="number"}function Mr(e){return e&&{}.toString.call(e)==="[object Function]"}function Pr(e){return e&&{}.toString.call(e)==="[object Object]"}});var on=I((Ui,an)=>{var B=J(),kr=B.slice,Fr=B.pluck,ae=B.each,Ur=B.bind,zr=B.create,pt=B.isList,mt=B.isFunction,Hr=B.isObject;an.exports={createStore:dt};var Gr={version:"2.0.12",enabled:!1,get:function(e,t){var r=this.storage.read(this._namespacePrefix+e);return this._deserialize(r,t)},set:function(e,t){return t===void 0?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each(function(r,i){e.call(t,t._deserialize(r),(i||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return dt.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return dt(this.storage,this.plugins,e)}};function Wr(){var e=typeof console>"u"?null:console;if(e){var t=e.warn?e.warn:e.log;t.apply(e,arguments)}}function dt(e,t,r){r||(r=""),e&&!pt(e)&&(e=[e]),t&&!pt(t)&&(t=[t]);var i=r?"__storejs_"+r+"_":"",o=r?new RegExp("^"+i):null,u=/^[a-zA-Z0-9_\-]*$/;if(!u.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:i,_namespaceRegexp:o,_testStorage:function(l){try{var h="__storejs__test__";l.write(h,h);var N=l.read(h)===h;return l.remove(h),N}catch{return!1}},_assignPluginFnProp:function(l,h){var N=this[h];this[h]=function(){var D=kr(arguments,0),k=this;function Y(){if(N)return ae(arguments,function(Pe,ke){D[ke]=Pe}),N.apply(k,D)}var Me=[Y].concat(D);return l.apply(k,Me)}},_serialize:function(l){return JSON.stringify(l)},_deserialize:function(l,h){if(!l)return h;var N="";try{N=JSON.parse(l)}catch{N=l}return N!==void 0?N:h},_addStorage:function(l){this.enabled||this._testStorage(l)&&(this.storage=l,this.enabled=!0)},_addPlugin:function(l){var h=this;if(pt(l)){ae(l,function(D){h._addPlugin(D)});return}var N=Fr(this.plugins,function(D){return l===D});if(!N){if(this.plugins.push(l),!mt(l))throw new Error("Plugins must be function values that return objects");var q=l.call(this);if(!Hr(q))throw new Error("Plugins must return an object of function properties");ae(q,function(D,k){if(!mt(D))throw new Error("Bad plugin property: "+k+" from plugin "+l.name+". Plugins should only return functions.");h._assignPluginFnProp(D,k)})}},addStorage:function(l){Wr("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(l)}},m=zr(g,Gr,{plugins:[]});return m.raw={},ae(m,function(l,h){mt(l)&&(m.raw[h]=Ur(m,l))}),ae(e,function(l){m._addStorage(l)}),ae(t,function(l){m._addPlugin(l)}),m}});var cn=I((zi,ln)=>{var jr=J(),Br=jr.Global;ln.exports={name:"localStorage",read:sn,write:qr,each:Yr,remove:Xr,clearAll:$r};function oe(){return Br.localStorage}function sn(e){return oe().getItem(e)}function qr(e,t){return oe().setItem(e,t)}function Yr(e){for(var t=oe().length-1;t>=0;t--){var r=oe().key(t);e(sn(r),r)}}function Xr(e){return oe().removeItem(e)}function $r(){return oe().clear()}});var pn=I((Hi,fn)=>{var Jr=J(),Vr=Jr.Global;fn.exports={name:"oldFF-globalStorage",read:Kr,write:Zr,each:un,remove:Qr,clearAll:ei};var V=Vr.globalStorage;function Kr(e){return V[e]}function Zr(e,t){V[e]=t}function un(e){for(var t=V.length-1;t>=0;t--){var r=V.key(t);e(V[r],r)}}function Qr(e){return V.removeItem(e)}function ei(){un(function(e,t){delete V[e]})}});var gn=I((Gi,dn)=>{var ti=J(),gt=ti.Global;dn.exports={name:"oldIE-userDataStorage",write:ni,read:ri,each:ii,remove:ai,clearAll:oi};var Ee="storejs",_e=gt.document,Te=li(),mn=(gt.navigator?gt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ni(e,t){if(!mn){var r=ht(e);Te(function(i){i.setAttribute(r,t),i.save(Ee)})}}function ri(e){if(!mn){var t=ht(e),r=null;return Te(function(i){r=i.getAttribute(t)}),r}}function ii(e){Te(function(t){for(var r=t.XMLDocument.documentElement.attributes,i=r.length-1;i>=0;i--){var o=r[i];e(t.getAttribute(o.name),o.name)}})}function ai(e){var t=ht(e);Te(function(r){r.removeAttribute(t),r.save(Ee)})}function oi(){Te(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(Ee);for(var r=t.length-1;r>=0;r--)e.removeAttribute(t[r].name);e.save(Ee)})}var si=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ht(e){return e.replace(/^\d/,"___$&").replace(si,"___")}function li(){if(!_e||!_e.documentElement||!_e.documentElement.addBehavior)return null;var e="script",t,r,i;try{r=new ActiveXObject("htmlfile"),r.open(),r.write("<"+e+">document.w=window</"+e+'><iframe src="/favicon.ico"></iframe>'),r.close(),t=r.w.frames[0].document,i=t.createElement("div")}catch{i=_e.createElement("div"),t=_e.body}return function(o){var u=[].slice.call(arguments,0);u.unshift(i),t.appendChild(i),i.addBehavior("#default#userData"),i.load(Ee),o.apply(this,u),t.removeChild(i)}}});var Sn=I((Wi,An)=>{var hn=J(),ci=hn.Global,ui=hn.trim;An.exports={name:"cookieStorage",read:fi,write:pi,each:_n,remove:En,clearAll:mi};var Ae=ci.document;function fi(e){if(!e||!Tn(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ae.cookie.replace(new RegExp(t),"$1"))}function _n(e){for(var t=Ae.cookie.split(/; ?/g),r=t.length-1;r>=0;r--)if(ui(t[r])){var i=t[r].split("="),o=unescape(i[0]),u=unescape(i[1]);e(u,o)}}function pi(e,t){e&&(Ae.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function En(e){!e||!Tn(e)||(Ae.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function mi(){_n(function(e,t){En(t)})}function Tn(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ae.cookie)}});var yn=I((ji,bn)=>{var di=J(),gi=di.Global;bn.exports={name:"sessionStorage",read:vn,write:hi,each:_i,remove:Ei,clearAll:Ti};function se(){return gi.sessionStorage}function vn(e){return se().getItem(e)}function hi(e,t){return se().setItem(e,t)}function _i(e){for(var t=se().length-1;t>=0;t--){var r=se().key(t);e(vn(r),r)}}function Ei(e){return se().removeItem(e)}function Ti(){return se().clear()}});var xn=I((Bi,On)=>{On.exports={name:"memoryStorage",read:Ai,write:Si,each:vi,remove:bi,clearAll:yi};var K={};function Ai(e){return K[e]}function Si(e,t){K[e]=t}function vi(e){for(var t in K)K.hasOwnProperty(t)&&e(K[t],t)}function bi(e){delete K[e]}function yi(e){K={}}});var Rn=I((qi,wn)=>{wn.exports=[cn(),pn(),gn(),Sn(),yn(),xn()]});var Ln=I((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(t){var r=meta[t];return typeof r=="string"?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var r,i,o,u,g=gap,m,l=t[e];switch(l&&typeof l=="object"&&typeof l.toJSON=="function"&&(l=l.toJSON(e)),typeof rep=="function"&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,m=[],Object.prototype.toString.apply(l)==="[object Array]"){for(u=l.length,r=0;r<u;r+=1)m[r]=str(r,l)||"null";return o=m.length===0?"[]":gap?`[
2
2
  `+gap+m.join(`,
3
3
  `+gap)+`
4
4
  `+g+"]":"["+m.join(",")+"]",gap=g,o}if(rep&&typeof rep=="object")for(u=rep.length,r=0;r<u;r+=1)typeof rep[r]=="string"&&(i=rep[r],o=str(i,l),o&&m.push(quote(i)+(gap?": ":":")+o));else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(o=str(i,l),o&&m.push(quote(i)+(gap?": ":":")+o));return o=m.length===0?"{}":gap?`{
5
5
  `+gap+m.join(`,
6
6
  `+gap)+`
7
- `+g+"}":"{"+m.join(",")+"}",gap=g,o}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,r){var i;if(gap="",indent="",typeof r=="number")for(i=0;i<r;i+=1)indent+=" ";else typeof r=="string"&&(indent=r);if(rep=t,t&&typeof t!="function"&&(typeof t!="object"||typeof t.length!="number"))throw new Error("JSON.stringify");return str("",{"":e})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var r,i,o=e[t];if(o&&typeof o=="object")for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i=walk(o,r),i!==void 0?o[r]=i:delete o[r]);return reviver.call(e,t,o)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var Ln=I((Xi,Nn)=>{Nn.exports=wi;function wi(){return Dn(),{}}});var Cn=I((Ji,In)=>{var xi=on(),Oi=Rn(),Ri=[Ln()];In.exports=xi.createStore(Oi,Ri)});var Fi={};nr(Fi,{Storage:()=>ve,addClass:()=>Ci,drawFontAwesomeIconAsSvg:()=>Ii,drawSvgStringAsElement:()=>Li,getAsValue:()=>Pi,hasClass:()=>_t,removeClass:()=>Mi});var{entries:Kt,setPrototypeOf:jt,isFrozen:ar,getPrototypeOf:or,getOwnPropertyDescriptor:sr}=Object,{freeze:O,seal:C,create:at}=Object,{apply:ot,construct:st}=typeof Reflect<"u"&&Reflect;O||(O=function(t){return t});C||(C=function(t){return t});ot||(ot=function(t,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),u=2;u<i;u++)o[u-2]=arguments[u];return t.apply(r,o)});st||(st=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return new t(...i)});var Le=R(Array.prototype.forEach),lr=R(Array.prototype.lastIndexOf),Bt=R(Array.prototype.pop),pe=R(Array.prototype.push),cr=R(Array.prototype.splice),Ce=R(String.prototype.toLowerCase),Qe=R(String.prototype.toString),et=R(String.prototype.match),me=R(String.prototype.replace),ur=R(String.prototype.indexOf),fr=R(String.prototype.trim),M=R(Object.prototype.hasOwnProperty),x=R(RegExp.prototype.test),de=pr(TypeError);function R(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return ot(e,t,i)}}function pr(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return st(e,r)}}function p(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ce;jt&&jt(e,null);let i=t.length;for(;i--;){let o=t[i];if(typeof o=="string"){let u=r(o);u!==o&&(ar(t)||(t[i]=u),o=u)}e[o]=!0}return e}function mr(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function z(e){let t=at(null);for(let[r,i]of Kt(e))M(e,r)&&(Array.isArray(i)?t[r]=mr(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=z(i):t[r]=i);return t}function ge(e,t){for(;e!==null;){let i=sr(e,t);if(i){if(i.get)return R(i.get);if(typeof i.value=="function")return R(i.value)}e=or(e)}function r(){return null}return r}var qt=O(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),tt=O(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),nt=O(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dr=O(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rt=O(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),gr=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Yt=O(["#text"]),$t=O(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),it=O(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Xt=O(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ie=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hr=C(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_r=C(/<%[\w\W]*|[\w\W]*%>/gm),Er=C(/\$\{[\w\W]*/gm),Tr=C(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ar=C(/^aria-[\-\w]+$/),Zt=C(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vr=C(/^(?:\w+script|data):/i),Sr=C(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qt=C(/^html$/i),br=C(/^[a-z][.\w]*(-[.\w]+)+$/i),Jt=Object.freeze({__proto__:null,ARIA_ATTR:Ar,ATTR_WHITESPACE:Sr,CUSTOM_ELEMENT:br,DATA_ATTR:Tr,DOCTYPE_NAME:Qt,ERB_EXPR:_r,IS_ALLOWED_URI:Zt,IS_SCRIPT_OR_DATA:vr,MUSTACHE_EXPR:hr,TMPLIT_EXPR:Er}),he={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},yr=function(){return typeof window>"u"?null:window},wr=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(i=r.getAttribute(o));let u="dompurify"+(i?"#"+i:"");try{return t.createPolicy(u,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Vt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function en(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yr(),t=c=>en(c);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==he.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,i=r,o=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:g,Node:m,Element:l,NodeFilter:h,NamedNodeMap:N=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:q,DOMParser:L,trustedTypes:F}=e,Y=l.prototype,Me=ge(Y,"cloneNode"),Pe=ge(Y,"remove"),Fe=ge(Y,"nextSibling"),Mn=ge(Y,"childNodes"),Se=ge(Y,"parentNode");if(typeof g=="function"){let c=r.createElement("template");c.content&&c.content.ownerDocument&&(r=c.content.ownerDocument)}let y,le="",{implementation:ke,createNodeIterator:Pn,createDocumentFragment:Fn,getElementsByTagName:kn}=r,{importNode:Un}=i,w=Vt();t.isSupported=typeof Kt=="function"&&typeof Se=="function"&&ke&&ke.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ue,ERB_EXPR:ze,TMPLIT_EXPR:He,DATA_ATTR:zn,ARIA_ATTR:Hn,IS_SCRIPT_OR_DATA:Gn,ATTR_WHITESPACE:Et,CUSTOM_ELEMENT:Wn}=Jt,{IS_ALLOWED_URI:Tt}=Jt,A=null,At=p({},[...qt,...tt,...nt,...rt,...Yt]),v=null,vt=p({},[...$t,...it,...Xt,...Ie]),_=Object.seal(at(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ce=null,Ge=null,Z=Object.seal(at(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),St=!0,We=!0,bt=!1,yt=!0,Q=!1,be=!0,$=!1,je=!1,Be=!1,ee=!1,ye=!1,we=!1,wt=!0,xt=!1,jn="user-content-",qe=!0,ue=!1,te={},k=null,Ye=p({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ot=null,Rt=p({},["audio","video","img","source","image","track"]),$e=null,Dt=p({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xe="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",H="http://www.w3.org/1999/xhtml",ne=H,Xe=!1,Je=null,Bn=p({},[xe,Oe,H],Qe),Re=p({},["mi","mo","mn","ms","mtext"]),De=p({},["annotation-xml"]),qn=p({},["title","style","font","a","script"]),fe=null,Yn=["application/xhtml+xml","text/html"],$n="text/html",T=null,re=null,Xn=r.createElement("form"),Nt=function(n){return n instanceof RegExp||n instanceof Function},Ve=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(re&&re===n)){if((!n||typeof n!="object")&&(n={}),n=z(n),fe=Yn.indexOf(n.PARSER_MEDIA_TYPE)===-1?$n:n.PARSER_MEDIA_TYPE,T=fe==="application/xhtml+xml"?Qe:Ce,A=M(n,"ALLOWED_TAGS")?p({},n.ALLOWED_TAGS,T):At,v=M(n,"ALLOWED_ATTR")?p({},n.ALLOWED_ATTR,T):vt,Je=M(n,"ALLOWED_NAMESPACES")?p({},n.ALLOWED_NAMESPACES,Qe):Bn,$e=M(n,"ADD_URI_SAFE_ATTR")?p(z(Dt),n.ADD_URI_SAFE_ATTR,T):Dt,Ot=M(n,"ADD_DATA_URI_TAGS")?p(z(Rt),n.ADD_DATA_URI_TAGS,T):Rt,k=M(n,"FORBID_CONTENTS")?p({},n.FORBID_CONTENTS,T):Ye,ce=M(n,"FORBID_TAGS")?p({},n.FORBID_TAGS,T):z({}),Ge=M(n,"FORBID_ATTR")?p({},n.FORBID_ATTR,T):z({}),te=M(n,"USE_PROFILES")?n.USE_PROFILES:!1,St=n.ALLOW_ARIA_ATTR!==!1,We=n.ALLOW_DATA_ATTR!==!1,bt=n.ALLOW_UNKNOWN_PROTOCOLS||!1,yt=n.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Q=n.SAFE_FOR_TEMPLATES||!1,be=n.SAFE_FOR_XML!==!1,$=n.WHOLE_DOCUMENT||!1,ee=n.RETURN_DOM||!1,ye=n.RETURN_DOM_FRAGMENT||!1,we=n.RETURN_TRUSTED_TYPE||!1,Be=n.FORCE_BODY||!1,wt=n.SANITIZE_DOM!==!1,xt=n.SANITIZE_NAMED_PROPS||!1,qe=n.KEEP_CONTENT!==!1,ue=n.IN_PLACE||!1,Tt=n.ALLOWED_URI_REGEXP||Zt,ne=n.NAMESPACE||H,Re=n.MATHML_TEXT_INTEGRATION_POINTS||Re,De=n.HTML_INTEGRATION_POINTS||De,_=n.CUSTOM_ELEMENT_HANDLING||{},n.CUSTOM_ELEMENT_HANDLING&&Nt(n.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=n.CUSTOM_ELEMENT_HANDLING.tagNameCheck),n.CUSTOM_ELEMENT_HANDLING&&Nt(n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),n.CUSTOM_ELEMENT_HANDLING&&typeof n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(We=!1),ye&&(ee=!0),te&&(A=p({},Yt),v=[],te.html===!0&&(p(A,qt),p(v,$t)),te.svg===!0&&(p(A,tt),p(v,it),p(v,Ie)),te.svgFilters===!0&&(p(A,nt),p(v,it),p(v,Ie)),te.mathMl===!0&&(p(A,rt),p(v,Xt),p(v,Ie))),n.ADD_TAGS&&(typeof n.ADD_TAGS=="function"?Z.tagCheck=n.ADD_TAGS:(A===At&&(A=z(A)),p(A,n.ADD_TAGS,T))),n.ADD_ATTR&&(typeof n.ADD_ATTR=="function"?Z.attributeCheck=n.ADD_ATTR:(v===vt&&(v=z(v)),p(v,n.ADD_ATTR,T))),n.ADD_URI_SAFE_ATTR&&p($e,n.ADD_URI_SAFE_ATTR,T),n.FORBID_CONTENTS&&(k===Ye&&(k=z(k)),p(k,n.FORBID_CONTENTS,T)),n.ADD_FORBID_CONTENTS&&(k===Ye&&(k=z(k)),p(k,n.ADD_FORBID_CONTENTS,T)),qe&&(A["#text"]=!0),$&&p(A,["html","head","body"]),A.table&&(p(A,["tbody"]),delete ce.tbody),n.TRUSTED_TYPES_POLICY){if(typeof n.TRUSTED_TYPES_POLICY.createHTML!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof n.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=n.TRUSTED_TYPES_POLICY,le=y.createHTML("")}else y===void 0&&(y=wr(F,o)),y!==null&&typeof le=="string"&&(le=y.createHTML(""));O&&O(n),re=n}},Lt=p({},[...tt,...nt,...dr]),It=p({},[...rt,...gr]),Jn=function(n){let a=Se(n);(!a||!a.tagName)&&(a={namespaceURI:ne,tagName:"template"});let s=Ce(n.tagName),d=Ce(a.tagName);return Je[n.namespaceURI]?n.namespaceURI===Oe?a.namespaceURI===H?s==="svg":a.namespaceURI===xe?s==="svg"&&(d==="annotation-xml"||Re[d]):!!Lt[s]:n.namespaceURI===xe?a.namespaceURI===H?s==="math":a.namespaceURI===Oe?s==="math"&&De[d]:!!It[s]:n.namespaceURI===H?a.namespaceURI===Oe&&!De[d]||a.namespaceURI===xe&&!Re[d]?!1:!It[s]&&(qn[s]||!Lt[s]):!!(fe==="application/xhtml+xml"&&Je[n.namespaceURI]):!1},U=function(n){pe(t.removed,{element:n});try{Se(n).removeChild(n)}catch{Pe(n)}},X=function(n,a){try{pe(t.removed,{attribute:a.getAttributeNode(n),from:a})}catch{pe(t.removed,{attribute:null,from:a})}if(a.removeAttribute(n),n==="is")if(ee||ye)try{U(a)}catch{}else try{a.setAttribute(n,"")}catch{}},Ct=function(n){let a=null,s=null;if(Be)n="<remove></remove>"+n;else{let E=et(n,/^[\r\n\t ]+/);s=E&&E[0]}fe==="application/xhtml+xml"&&ne===H&&(n='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+n+"</body></html>");let d=y?y.createHTML(n):n;if(ne===H)try{a=new L().parseFromString(d,fe)}catch{}if(!a||!a.documentElement){a=ke.createDocument(ne,"template",null);try{a.documentElement.innerHTML=Xe?le:d}catch{}}let b=a.body||a.documentElement;return n&&s&&b.insertBefore(r.createTextNode(s),b.childNodes[0]||null),ne===H?kn.call(a,$?"html":"body")[0]:$?a.documentElement:b},Mt=function(n){return Pn.call(n.ownerDocument||n,n,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Ke=function(n){return n instanceof q&&(typeof n.nodeName!="string"||typeof n.textContent!="string"||typeof n.removeChild!="function"||!(n.attributes instanceof N)||typeof n.removeAttribute!="function"||typeof n.setAttribute!="function"||typeof n.namespaceURI!="string"||typeof n.insertBefore!="function"||typeof n.hasChildNodes!="function")},Pt=function(n){return typeof m=="function"&&n instanceof m};function G(c,n,a){Le(c,s=>{s.call(t,n,a,re)})}let Ft=function(n){let a=null;if(G(w.beforeSanitizeElements,n,null),Ke(n))return U(n),!0;let s=T(n.nodeName);if(G(w.uponSanitizeElement,n,{tagName:s,allowedTags:A}),be&&n.hasChildNodes()&&!Pt(n.firstElementChild)&&x(/<[/\w!]/g,n.innerHTML)&&x(/<[/\w!]/g,n.textContent)||n.nodeType===he.progressingInstruction||be&&n.nodeType===he.comment&&x(/<[/\w]/g,n.data))return U(n),!0;if(!(Z.tagCheck instanceof Function&&Z.tagCheck(s))&&(!A[s]||ce[s])){if(!ce[s]&&Ut(s)&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s)))return!1;if(qe&&!k[s]){let d=Se(n)||n.parentNode,b=Mn(n)||n.childNodes;if(b&&d){let E=b.length;for(let D=E-1;D>=0;--D){let W=Me(b[D],!0);W.__removalCount=(n.__removalCount||0)+1,d.insertBefore(W,Fe(n))}}}return U(n),!0}return n instanceof l&&!Jn(n)||(s==="noscript"||s==="noembed"||s==="noframes")&&x(/<\/no(script|embed|frames)/i,n.innerHTML)?(U(n),!0):(Q&&n.nodeType===he.text&&(a=n.textContent,Le([Ue,ze,He],d=>{a=me(a,d," ")}),n.textContent!==a&&(pe(t.removed,{element:n.cloneNode()}),n.textContent=a)),G(w.afterSanitizeElements,n,null),!1)},kt=function(n,a,s){if(wt&&(a==="id"||a==="name")&&(s in r||s in Xn))return!1;if(!(We&&!Ge[a]&&x(zn,a))){if(!(St&&x(Hn,a))){if(!(Z.attributeCheck instanceof Function&&Z.attributeCheck(a,n))){if(!v[a]||Ge[a]){if(!(Ut(n)&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,n)||_.tagNameCheck instanceof Function&&_.tagNameCheck(n))&&(_.attributeNameCheck instanceof RegExp&&x(_.attributeNameCheck,a)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(a,n))||a==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s))))return!1}else if(!$e[a]){if(!x(Tt,me(s,Et,""))){if(!((a==="src"||a==="xlink:href"||a==="href")&&n!=="script"&&ur(s,"data:")===0&&Ot[n])){if(!(bt&&!x(Gn,me(s,Et,"")))){if(s)return!1}}}}}}}return!0},Ut=function(n){return n!=="annotation-xml"&&et(n,Wn)},zt=function(n){G(w.beforeSanitizeAttributes,n,null);let{attributes:a}=n;if(!a||Ke(n))return;let s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v,forceKeepAttr:void 0},d=a.length;for(;d--;){let b=a[d],{name:E,namespaceURI:D,value:W}=b,ie=T(E),Ze=W,S=E==="value"?Ze:fr(Ze);if(s.attrName=ie,s.attrValue=S,s.keepAttr=!0,s.forceKeepAttr=void 0,G(w.uponSanitizeAttribute,n,s),S=s.attrValue,xt&&(ie==="id"||ie==="name")&&(X(E,n),S=jn+S),be&&x(/((--!?|])>)|<\/(style|title|textarea)/i,S)){X(E,n);continue}if(ie==="attributename"&&et(S,"href")){X(E,n);continue}if(s.forceKeepAttr)continue;if(!s.keepAttr){X(E,n);continue}if(!yt&&x(/\/>/i,S)){X(E,n);continue}Q&&Le([Ue,ze,He],Gt=>{S=me(S,Gt," ")});let Ht=T(n.nodeName);if(!kt(Ht,ie,S)){X(E,n);continue}if(y&&typeof F=="object"&&typeof F.getAttributeType=="function"&&!D)switch(F.getAttributeType(Ht,ie)){case"TrustedHTML":{S=y.createHTML(S);break}case"TrustedScriptURL":{S=y.createScriptURL(S);break}}if(S!==Ze)try{D?n.setAttributeNS(D,E,S):n.setAttribute(E,S),Ke(n)?U(n):Bt(t.removed)}catch{X(E,n)}}G(w.afterSanitizeAttributes,n,null)},Vn=function c(n){let a=null,s=Mt(n);for(G(w.beforeSanitizeShadowDOM,n,null);a=s.nextNode();)G(w.uponSanitizeShadowNode,a,null),Ft(a),zt(a),a.content instanceof u&&c(a.content);G(w.afterSanitizeShadowDOM,n,null)};return t.sanitize=function(c){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,s=null,d=null,b=null;if(Xe=!c,Xe&&(c="<!-->"),typeof c!="string"&&!Pt(c))if(typeof c.toString=="function"){if(c=c.toString(),typeof c!="string")throw de("dirty is not a string, aborting")}else throw de("toString is not a function");if(!t.isSupported)return c;if(je||Ve(n),t.removed=[],typeof c=="string"&&(ue=!1),ue){if(c.nodeName){let W=T(c.nodeName);if(!A[W]||ce[W])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(c instanceof m)a=Ct("<!---->"),s=a.ownerDocument.importNode(c,!0),s.nodeType===he.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?a=s:a.appendChild(s);else{if(!ee&&!Q&&!$&&c.indexOf("<")===-1)return y&&we?y.createHTML(c):c;if(a=Ct(c),!a)return ee?null:we?le:""}a&&Be&&U(a.firstChild);let E=Mt(ue?c:a);for(;d=E.nextNode();)Ft(d),zt(d),d.content instanceof u&&Vn(d.content);if(ue)return c;if(ee){if(ye)for(b=Fn.call(a.ownerDocument);a.firstChild;)b.appendChild(a.firstChild);else b=a;return(v.shadowroot||v.shadowrootmode)&&(b=Un.call(i,b,!0)),b}let D=$?a.outerHTML:a.innerHTML;return $&&A["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&x(Qt,a.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+a.ownerDocument.doctype.name+`>
8
- `+D),Q&&Le([Ue,ze,He],W=>{D=me(D,W," ")}),y&&we?y.createHTML(D):D},t.setConfig=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ve(c),je=!0},t.clearConfig=function(){re=null,je=!1},t.isValidAttribute=function(c,n,a){re||Ve({});let s=T(c),d=T(n);return kt(s,d,a)},t.addHook=function(c,n){typeof n=="function"&&pe(w[c],n)},t.removeHook=function(c,n){if(n!==void 0){let a=lr(w[c],n);return a===-1?void 0:cr(w[c],a,1)[0]}return Bt(w[c])},t.removeHooks=function(c){w[c]=[]},t.removeAllHooks=function(){w=Vt()},t}var tn=en();var P=rr(Cn()),ve=class{constructor(t){this.namespace=t}set(t,r,i,o){if(P.default.enabled&&(this.removeExpiredKeys(),t&&r!==void 0)){r.documentElement&&(r=new XMLSerializer().serializeToString(r.documentElement));try{P.default.set(t,{namespace:this.namespace,val:r,exp:i,time:new Date().getTime()/1e3})}catch(u){if(u instanceof Error){let g=u;if(g.quotaExceeded=Di(u),g.quotaExceeded&&o)o(u);else throw g}throw u}}}remove(t){P.default.enabled&&t&&P.default.remove(t)}removeExpiredKeys(){P.default.enabled&&P.default.each((t,r)=>{t&&t.exp&&new Date().getTime()/1e3-t.time>t.exp&&this.remove(r)})}removeAll(){P.default.enabled}removeNamespace(){P.default.each((t,r)=>{t.namespace&&t.namespace===this.namespace&&this.remove(r)})}get(t){if(P.default.enabled&&t)if(this.removeExpiredKeys(),t){var r=P.default.get(t);return r?r.val:void 0}else return}};function Di(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:e.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(t=!0);break}else e.number===-2147024882&&(t=!0);return t}var{sanitize:Ni}=tn;function Li(e){if(e&&e.trim().indexOf("<svg")==0){var t=new DOMParser,r=t.parseFromString(e,"text/xml"),i=r.documentElement;i.setAttribute("aria-hidden","true");var o=document.createElement("div");return o.className="svgImg",o.appendChild(i),o}throw new Error("No svg string given. Cannot draw")}function Ii(e){return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${e.width} ${e.height}" aria-hidden="true"><path fill="currentColor" d="${e.svgPathData}"></path></svg>`}function _t(e,t){if(e)return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Ci(e,...t){if(e)for(let r of t)e.classList?e.classList.add(r):_t(e,r)||(e.className+=" "+r)}function Mi(e,t){if(e){if(e.classList)e.classList.remove(t);else if(_t(e,t)){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(r," ")}}}function Pi(e,t){return typeof e=="function"?e(t):typeof e=="string"?Ni(e):e}return ir(Fi);})();
7
+ `+g+"}":"{"+m.join(",")+"}",gap=g,o}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,r){var i;if(gap="",indent="",typeof r=="number")for(i=0;i<r;i+=1)indent+=" ";else typeof r=="string"&&(indent=r);if(rep=t,t&&typeof t!="function"&&(typeof t!="object"||typeof t.length!="number"))throw new Error("JSON.stringify");return str("",{"":e})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var r,i,o=e[t];if(o&&typeof o=="object")for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i=walk(o,r),i!==void 0?o[r]=i:delete o[r]);return reviver.call(e,t,o)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var Dn=I((Yi,Nn)=>{Nn.exports=Oi;function Oi(){return Ln(),{}}});var Cn=I((Xi,In)=>{var xi=on(),wi=Rn(),Ri=[Dn()];In.exports=xi.createStore(wi,Ri)});var Mi={};nr(Mi,{Storage:()=>Se,addClass:()=>Di,getAsValue:()=>Ci,hasClass:()=>_t,removeClass:()=>Ii});var{entries:Kt,setPrototypeOf:jt,isFrozen:ar,getPrototypeOf:or,getOwnPropertyDescriptor:sr}=Object,{freeze:w,seal:C,create:at}=Object,{apply:ot,construct:st}=typeof Reflect<"u"&&Reflect;w||(w=function(t){return t});C||(C=function(t){return t});ot||(ot=function(t,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),u=2;u<i;u++)o[u-2]=arguments[u];return t.apply(r,o)});st||(st=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return new t(...i)});var De=R(Array.prototype.forEach),lr=R(Array.prototype.lastIndexOf),Bt=R(Array.prototype.pop),pe=R(Array.prototype.push),cr=R(Array.prototype.splice),Ce=R(String.prototype.toLowerCase),Qe=R(String.prototype.toString),et=R(String.prototype.match),me=R(String.prototype.replace),ur=R(String.prototype.indexOf),fr=R(String.prototype.trim),M=R(Object.prototype.hasOwnProperty),x=R(RegExp.prototype.test),de=pr(TypeError);function R(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return ot(e,t,i)}}function pr(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return st(e,r)}}function p(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ce;jt&&jt(e,null);let i=t.length;for(;i--;){let o=t[i];if(typeof o=="string"){let u=r(o);u!==o&&(ar(t)||(t[i]=u),o=u)}e[o]=!0}return e}function mr(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function z(e){let t=at(null);for(let[r,i]of Kt(e))M(e,r)&&(Array.isArray(i)?t[r]=mr(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=z(i):t[r]=i);return t}function ge(e,t){for(;e!==null;){let i=sr(e,t);if(i){if(i.get)return R(i.get);if(typeof i.value=="function")return R(i.value)}e=or(e)}function r(){return null}return r}var qt=w(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),tt=w(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),nt=w(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dr=w(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rt=w(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),gr=w(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Yt=w(["#text"]),Xt=w(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),it=w(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$t=w(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ie=w(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hr=C(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_r=C(/<%[\w\W]*|[\w\W]*%>/gm),Er=C(/\$\{[\w\W]*/gm),Tr=C(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ar=C(/^aria-[\-\w]+$/),Zt=C(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sr=C(/^(?:\w+script|data):/i),vr=C(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qt=C(/^html$/i),br=C(/^[a-z][.\w]*(-[.\w]+)+$/i),Jt=Object.freeze({__proto__:null,ARIA_ATTR:Ar,ATTR_WHITESPACE:vr,CUSTOM_ELEMENT:br,DATA_ATTR:Tr,DOCTYPE_NAME:Qt,ERB_EXPR:_r,IS_ALLOWED_URI:Zt,IS_SCRIPT_OR_DATA:Sr,MUSTACHE_EXPR:hr,TMPLIT_EXPR:Er}),he={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},yr=function(){return typeof window>"u"?null:window},Or=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(i=r.getAttribute(o));let u="dompurify"+(i?"#"+i:"");try{return t.createPolicy(u,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Vt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function en(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yr(),t=c=>en(c);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==he.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,i=r,o=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:g,Node:m,Element:l,NodeFilter:h,NamedNodeMap:N=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:q,DOMParser:D,trustedTypes:k}=e,Y=l.prototype,Me=ge(Y,"cloneNode"),Pe=ge(Y,"remove"),ke=ge(Y,"nextSibling"),Mn=ge(Y,"childNodes"),ve=ge(Y,"parentNode");if(typeof g=="function"){let c=r.createElement("template");c.content&&c.content.ownerDocument&&(r=c.content.ownerDocument)}let y,le="",{implementation:Fe,createNodeIterator:Pn,createDocumentFragment:kn,getElementsByTagName:Fn}=r,{importNode:Un}=i,O=Vt();t.isSupported=typeof Kt=="function"&&typeof ve=="function"&&Fe&&Fe.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ue,ERB_EXPR:ze,TMPLIT_EXPR:He,DATA_ATTR:zn,ARIA_ATTR:Hn,IS_SCRIPT_OR_DATA:Gn,ATTR_WHITESPACE:Et,CUSTOM_ELEMENT:Wn}=Jt,{IS_ALLOWED_URI:Tt}=Jt,A=null,At=p({},[...qt,...tt,...nt,...rt,...Yt]),S=null,St=p({},[...Xt,...it,...$t,...Ie]),_=Object.seal(at(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ce=null,Ge=null,Z=Object.seal(at(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),vt=!0,We=!0,bt=!1,yt=!0,Q=!1,be=!0,X=!1,je=!1,Be=!1,ee=!1,ye=!1,Oe=!1,Ot=!0,xt=!1,jn="user-content-",qe=!0,ue=!1,te={},F=null,Ye=p({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),wt=null,Rt=p({},["audio","video","img","source","image","track"]),Xe=null,Lt=p({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xe="http://www.w3.org/1998/Math/MathML",we="http://www.w3.org/2000/svg",H="http://www.w3.org/1999/xhtml",ne=H,$e=!1,Je=null,Bn=p({},[xe,we,H],Qe),Re=p({},["mi","mo","mn","ms","mtext"]),Le=p({},["annotation-xml"]),qn=p({},["title","style","font","a","script"]),fe=null,Yn=["application/xhtml+xml","text/html"],Xn="text/html",T=null,re=null,$n=r.createElement("form"),Nt=function(n){return n instanceof RegExp||n instanceof Function},Ve=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(re&&re===n)){if((!n||typeof n!="object")&&(n={}),n=z(n),fe=Yn.indexOf(n.PARSER_MEDIA_TYPE)===-1?Xn:n.PARSER_MEDIA_TYPE,T=fe==="application/xhtml+xml"?Qe:Ce,A=M(n,"ALLOWED_TAGS")?p({},n.ALLOWED_TAGS,T):At,S=M(n,"ALLOWED_ATTR")?p({},n.ALLOWED_ATTR,T):St,Je=M(n,"ALLOWED_NAMESPACES")?p({},n.ALLOWED_NAMESPACES,Qe):Bn,Xe=M(n,"ADD_URI_SAFE_ATTR")?p(z(Lt),n.ADD_URI_SAFE_ATTR,T):Lt,wt=M(n,"ADD_DATA_URI_TAGS")?p(z(Rt),n.ADD_DATA_URI_TAGS,T):Rt,F=M(n,"FORBID_CONTENTS")?p({},n.FORBID_CONTENTS,T):Ye,ce=M(n,"FORBID_TAGS")?p({},n.FORBID_TAGS,T):z({}),Ge=M(n,"FORBID_ATTR")?p({},n.FORBID_ATTR,T):z({}),te=M(n,"USE_PROFILES")?n.USE_PROFILES:!1,vt=n.ALLOW_ARIA_ATTR!==!1,We=n.ALLOW_DATA_ATTR!==!1,bt=n.ALLOW_UNKNOWN_PROTOCOLS||!1,yt=n.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Q=n.SAFE_FOR_TEMPLATES||!1,be=n.SAFE_FOR_XML!==!1,X=n.WHOLE_DOCUMENT||!1,ee=n.RETURN_DOM||!1,ye=n.RETURN_DOM_FRAGMENT||!1,Oe=n.RETURN_TRUSTED_TYPE||!1,Be=n.FORCE_BODY||!1,Ot=n.SANITIZE_DOM!==!1,xt=n.SANITIZE_NAMED_PROPS||!1,qe=n.KEEP_CONTENT!==!1,ue=n.IN_PLACE||!1,Tt=n.ALLOWED_URI_REGEXP||Zt,ne=n.NAMESPACE||H,Re=n.MATHML_TEXT_INTEGRATION_POINTS||Re,Le=n.HTML_INTEGRATION_POINTS||Le,_=n.CUSTOM_ELEMENT_HANDLING||{},n.CUSTOM_ELEMENT_HANDLING&&Nt(n.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=n.CUSTOM_ELEMENT_HANDLING.tagNameCheck),n.CUSTOM_ELEMENT_HANDLING&&Nt(n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),n.CUSTOM_ELEMENT_HANDLING&&typeof n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(We=!1),ye&&(ee=!0),te&&(A=p({},Yt),S=[],te.html===!0&&(p(A,qt),p(S,Xt)),te.svg===!0&&(p(A,tt),p(S,it),p(S,Ie)),te.svgFilters===!0&&(p(A,nt),p(S,it),p(S,Ie)),te.mathMl===!0&&(p(A,rt),p(S,$t),p(S,Ie))),n.ADD_TAGS&&(typeof n.ADD_TAGS=="function"?Z.tagCheck=n.ADD_TAGS:(A===At&&(A=z(A)),p(A,n.ADD_TAGS,T))),n.ADD_ATTR&&(typeof n.ADD_ATTR=="function"?Z.attributeCheck=n.ADD_ATTR:(S===St&&(S=z(S)),p(S,n.ADD_ATTR,T))),n.ADD_URI_SAFE_ATTR&&p(Xe,n.ADD_URI_SAFE_ATTR,T),n.FORBID_CONTENTS&&(F===Ye&&(F=z(F)),p(F,n.FORBID_CONTENTS,T)),n.ADD_FORBID_CONTENTS&&(F===Ye&&(F=z(F)),p(F,n.ADD_FORBID_CONTENTS,T)),qe&&(A["#text"]=!0),X&&p(A,["html","head","body"]),A.table&&(p(A,["tbody"]),delete ce.tbody),n.TRUSTED_TYPES_POLICY){if(typeof n.TRUSTED_TYPES_POLICY.createHTML!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof n.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=n.TRUSTED_TYPES_POLICY,le=y.createHTML("")}else y===void 0&&(y=Or(k,o)),y!==null&&typeof le=="string"&&(le=y.createHTML(""));w&&w(n),re=n}},Dt=p({},[...tt,...nt,...dr]),It=p({},[...rt,...gr]),Jn=function(n){let a=ve(n);(!a||!a.tagName)&&(a={namespaceURI:ne,tagName:"template"});let s=Ce(n.tagName),d=Ce(a.tagName);return Je[n.namespaceURI]?n.namespaceURI===we?a.namespaceURI===H?s==="svg":a.namespaceURI===xe?s==="svg"&&(d==="annotation-xml"||Re[d]):!!Dt[s]:n.namespaceURI===xe?a.namespaceURI===H?s==="math":a.namespaceURI===we?s==="math"&&Le[d]:!!It[s]:n.namespaceURI===H?a.namespaceURI===we&&!Le[d]||a.namespaceURI===xe&&!Re[d]?!1:!It[s]&&(qn[s]||!Dt[s]):!!(fe==="application/xhtml+xml"&&Je[n.namespaceURI]):!1},U=function(n){pe(t.removed,{element:n});try{ve(n).removeChild(n)}catch{Pe(n)}},$=function(n,a){try{pe(t.removed,{attribute:a.getAttributeNode(n),from:a})}catch{pe(t.removed,{attribute:null,from:a})}if(a.removeAttribute(n),n==="is")if(ee||ye)try{U(a)}catch{}else try{a.setAttribute(n,"")}catch{}},Ct=function(n){let a=null,s=null;if(Be)n="<remove></remove>"+n;else{let E=et(n,/^[\r\n\t ]+/);s=E&&E[0]}fe==="application/xhtml+xml"&&ne===H&&(n='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+n+"</body></html>");let d=y?y.createHTML(n):n;if(ne===H)try{a=new D().parseFromString(d,fe)}catch{}if(!a||!a.documentElement){a=Fe.createDocument(ne,"template",null);try{a.documentElement.innerHTML=$e?le:d}catch{}}let b=a.body||a.documentElement;return n&&s&&b.insertBefore(r.createTextNode(s),b.childNodes[0]||null),ne===H?Fn.call(a,X?"html":"body")[0]:X?a.documentElement:b},Mt=function(n){return Pn.call(n.ownerDocument||n,n,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Ke=function(n){return n instanceof q&&(typeof n.nodeName!="string"||typeof n.textContent!="string"||typeof n.removeChild!="function"||!(n.attributes instanceof N)||typeof n.removeAttribute!="function"||typeof n.setAttribute!="function"||typeof n.namespaceURI!="string"||typeof n.insertBefore!="function"||typeof n.hasChildNodes!="function")},Pt=function(n){return typeof m=="function"&&n instanceof m};function G(c,n,a){De(c,s=>{s.call(t,n,a,re)})}let kt=function(n){let a=null;if(G(O.beforeSanitizeElements,n,null),Ke(n))return U(n),!0;let s=T(n.nodeName);if(G(O.uponSanitizeElement,n,{tagName:s,allowedTags:A}),be&&n.hasChildNodes()&&!Pt(n.firstElementChild)&&x(/<[/\w!]/g,n.innerHTML)&&x(/<[/\w!]/g,n.textContent)||n.nodeType===he.progressingInstruction||be&&n.nodeType===he.comment&&x(/<[/\w]/g,n.data))return U(n),!0;if(!(Z.tagCheck instanceof Function&&Z.tagCheck(s))&&(!A[s]||ce[s])){if(!ce[s]&&Ut(s)&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s)))return!1;if(qe&&!F[s]){let d=ve(n)||n.parentNode,b=Mn(n)||n.childNodes;if(b&&d){let E=b.length;for(let L=E-1;L>=0;--L){let W=Me(b[L],!0);W.__removalCount=(n.__removalCount||0)+1,d.insertBefore(W,ke(n))}}}return U(n),!0}return n instanceof l&&!Jn(n)||(s==="noscript"||s==="noembed"||s==="noframes")&&x(/<\/no(script|embed|frames)/i,n.innerHTML)?(U(n),!0):(Q&&n.nodeType===he.text&&(a=n.textContent,De([Ue,ze,He],d=>{a=me(a,d," ")}),n.textContent!==a&&(pe(t.removed,{element:n.cloneNode()}),n.textContent=a)),G(O.afterSanitizeElements,n,null),!1)},Ft=function(n,a,s){if(Ot&&(a==="id"||a==="name")&&(s in r||s in $n))return!1;if(!(We&&!Ge[a]&&x(zn,a))){if(!(vt&&x(Hn,a))){if(!(Z.attributeCheck instanceof Function&&Z.attributeCheck(a,n))){if(!S[a]||Ge[a]){if(!(Ut(n)&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,n)||_.tagNameCheck instanceof Function&&_.tagNameCheck(n))&&(_.attributeNameCheck instanceof RegExp&&x(_.attributeNameCheck,a)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(a,n))||a==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s))))return!1}else if(!Xe[a]){if(!x(Tt,me(s,Et,""))){if(!((a==="src"||a==="xlink:href"||a==="href")&&n!=="script"&&ur(s,"data:")===0&&wt[n])){if(!(bt&&!x(Gn,me(s,Et,"")))){if(s)return!1}}}}}}}return!0},Ut=function(n){return n!=="annotation-xml"&&et(n,Wn)},zt=function(n){G(O.beforeSanitizeAttributes,n,null);let{attributes:a}=n;if(!a||Ke(n))return;let s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S,forceKeepAttr:void 0},d=a.length;for(;d--;){let b=a[d],{name:E,namespaceURI:L,value:W}=b,ie=T(E),Ze=W,v=E==="value"?Ze:fr(Ze);if(s.attrName=ie,s.attrValue=v,s.keepAttr=!0,s.forceKeepAttr=void 0,G(O.uponSanitizeAttribute,n,s),v=s.attrValue,xt&&(ie==="id"||ie==="name")&&($(E,n),v=jn+v),be&&x(/((--!?|])>)|<\/(style|title|textarea)/i,v)){$(E,n);continue}if(ie==="attributename"&&et(v,"href")){$(E,n);continue}if(s.forceKeepAttr)continue;if(!s.keepAttr){$(E,n);continue}if(!yt&&x(/\/>/i,v)){$(E,n);continue}Q&&De([Ue,ze,He],Gt=>{v=me(v,Gt," ")});let Ht=T(n.nodeName);if(!Ft(Ht,ie,v)){$(E,n);continue}if(y&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!L)switch(k.getAttributeType(Ht,ie)){case"TrustedHTML":{v=y.createHTML(v);break}case"TrustedScriptURL":{v=y.createScriptURL(v);break}}if(v!==Ze)try{L?n.setAttributeNS(L,E,v):n.setAttribute(E,v),Ke(n)?U(n):Bt(t.removed)}catch{$(E,n)}}G(O.afterSanitizeAttributes,n,null)},Vn=function c(n){let a=null,s=Mt(n);for(G(O.beforeSanitizeShadowDOM,n,null);a=s.nextNode();)G(O.uponSanitizeShadowNode,a,null),kt(a),zt(a),a.content instanceof u&&c(a.content);G(O.afterSanitizeShadowDOM,n,null)};return t.sanitize=function(c){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,s=null,d=null,b=null;if($e=!c,$e&&(c="<!-->"),typeof c!="string"&&!Pt(c))if(typeof c.toString=="function"){if(c=c.toString(),typeof c!="string")throw de("dirty is not a string, aborting")}else throw de("toString is not a function");if(!t.isSupported)return c;if(je||Ve(n),t.removed=[],typeof c=="string"&&(ue=!1),ue){if(c.nodeName){let W=T(c.nodeName);if(!A[W]||ce[W])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(c instanceof m)a=Ct("<!---->"),s=a.ownerDocument.importNode(c,!0),s.nodeType===he.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?a=s:a.appendChild(s);else{if(!ee&&!Q&&!X&&c.indexOf("<")===-1)return y&&Oe?y.createHTML(c):c;if(a=Ct(c),!a)return ee?null:Oe?le:""}a&&Be&&U(a.firstChild);let E=Mt(ue?c:a);for(;d=E.nextNode();)kt(d),zt(d),d.content instanceof u&&Vn(d.content);if(ue)return c;if(ee){if(ye)for(b=kn.call(a.ownerDocument);a.firstChild;)b.appendChild(a.firstChild);else b=a;return(S.shadowroot||S.shadowrootmode)&&(b=Un.call(i,b,!0)),b}let L=X?a.outerHTML:a.innerHTML;return X&&A["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&x(Qt,a.ownerDocument.doctype.name)&&(L="<!DOCTYPE "+a.ownerDocument.doctype.name+`>
8
+ `+L),Q&&De([Ue,ze,He],W=>{L=me(L,W," ")}),y&&Oe?y.createHTML(L):L},t.setConfig=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ve(c),je=!0},t.clearConfig=function(){re=null,je=!1},t.isValidAttribute=function(c,n,a){re||Ve({});let s=T(c),d=T(n);return Ft(s,d,a)},t.addHook=function(c,n){typeof n=="function"&&pe(O[c],n)},t.removeHook=function(c,n){if(n!==void 0){let a=lr(O[c],n);return a===-1?void 0:cr(O[c],a,1)[0]}return Bt(O[c])},t.removeHooks=function(c){O[c]=[]},t.removeAllHooks=function(){O=Vt()},t}var tn=en();var P=rr(Cn()),Se=class{constructor(t){this.namespace=t}set(t,r,i,o){if(P.default.enabled&&(this.removeExpiredKeys(),t&&r!==void 0)){r.documentElement&&(r=new XMLSerializer().serializeToString(r.documentElement));try{P.default.set(t,{namespace:this.namespace,val:r,exp:i,time:new Date().getTime()/1e3})}catch(u){if(u instanceof Error){let g=u;if(g.quotaExceeded=Li(u),g.quotaExceeded&&o)o(u);else throw g}throw u}}}remove(t){P.default.enabled&&t&&P.default.remove(t)}removeExpiredKeys(){P.default.enabled&&P.default.each((t,r)=>{t&&t.exp&&new Date().getTime()/1e3-t.time>t.exp&&this.remove(r)})}removeAll(){P.default.enabled}removeNamespace(){P.default.each((t,r)=>{t.namespace&&t.namespace===this.namespace&&this.remove(r)})}get(t){if(P.default.enabled&&t)if(this.removeExpiredKeys(),t){var r=P.default.get(t);return r?r.val:void 0}else return}};function Li(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:e.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(t=!0);break}else e.number===-2147024882&&(t=!0);return t}var{sanitize:Ni}=tn;function _t(e,t){if(e)return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Di(e,...t){if(e)for(let r of t)e.classList?e.classList.add(r):_t(e,r)||(e.className+=" "+r)}function Ii(e,t){if(e){if(e.classList)e.classList.remove(t);else if(_t(e,t)){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(r," ")}}}function Ci(e,t){return typeof e=="function"?e(t):typeof e=="string"?Ni(e):e}return ir(Mi);})();
9
9
  /*! Bundled license information:
10
10
 
11
11
  dompurify/dist/purify.es.mjs: