@ianicdev/datatables2 0.14.0 → 0.14.2

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.
Files changed (45) hide show
  1. package/dist/{Comparison-2YRbsBSJ.cjs → Comparison-B7vPRdy6.cjs} +1 -1
  2. package/dist/{Comparison-BuQzB-si.js → Comparison-Dx_cCgp4.js} +1 -1
  3. package/dist/{Datepicker-ZDAgPotu.js → Datepicker-DeX7TZa5.js} +2 -2
  4. package/dist/{Datepicker-BObFVsrA.cjs → Datepicker-dNat1CIp.cjs} +1 -1
  5. package/dist/{Options-D4bbZDNy.cjs → Options-B1HFhzgV.cjs} +1 -1
  6. package/dist/{Options-BKNqYsWg.js → Options-Ds4GlgqC.js} +4 -4
  7. package/dist/{RefreshTable-B4lcus6j.cjs → RefreshTable-CP8D6BeL.cjs} +1 -1
  8. package/dist/{RefreshTable-C_KSEQQ2.js → RefreshTable-DdeEtKfP.js} +1 -1
  9. package/dist/{Search-CpSeJNQo.js → Search-C4CUhYgQ.js} +2 -2
  10. package/dist/{Search-BmKJJX6W.cjs → Search-Cc82YBqS.cjs} +1 -1
  11. package/dist/{Table-BLFlqJby.cjs → Table-BX-hoM94.cjs} +1 -1
  12. package/dist/{Table-BQwX5npC.js → Table-L_iuanjG.js} +3 -3
  13. package/dist/{TableServer-wxRxfrz2.cjs → TableServer-CFcEb-lT.cjs} +1 -1
  14. package/dist/{TableServer-CoKdajJh.js → TableServer-CKWOtSje.js} +3 -3
  15. package/dist/{TableVirtual-Ca9Tk07w.js → TableVirtual-DIqk-CMg.js} +3 -3
  16. package/dist/{TableVirtual-C9iDM-wb.cjs → TableVirtual-Dv6eV4eu.cjs} +1 -1
  17. package/dist/{cellRender-DbyhkQEK.cjs → cellRender-BdNP9UsQ.cjs} +1 -1
  18. package/dist/{cellRender-B9kC6jEb.js → cellRender-CDNBrGo3.js} +2 -2
  19. package/dist/dataTables-BrOQ3jQG.cjs +4 -0
  20. package/dist/{dataTables-CTzHnAN4.js → dataTables-Dal9gnAI.js} +326 -326
  21. package/dist/datatables.cjs +1 -1
  22. package/dist/datatables.js +1 -1
  23. package/dist/index-BADkkoFf.cjs +1 -0
  24. package/dist/{index-Dcsy9dQc.cjs → index-BJPZlNTc.cjs} +1 -1
  25. package/dist/{index-cgveAwK7.js → index-BwmvvtLr.js} +2 -2
  26. package/dist/{index--3PYYrqJ.cjs → index-C5gah2qY.cjs} +1 -1
  27. package/dist/{index-DBe3_idS.js → index-CIIgmF_G.js} +2 -2
  28. package/dist/{index-Br6pmK7t.cjs → index-DA-aRIaF.cjs} +1 -1
  29. package/dist/{index-BjQjVIrq.js → index-Dl4CQb_m.js} +1742 -1720
  30. package/dist/{index-Dnh2gNmS.js → index-gjI8QiHf.js} +2 -2
  31. package/dist/{index.es-2MQhREvK.cjs → index.es-CMEgL8sb.cjs} +1 -1
  32. package/dist/{index.es-BFlnZJ5-.js → index.es-DlohF0Sr.js} +1 -1
  33. package/dist/{jspdf--k_BCiS7.js → jspdf-C3bweOu8.js} +10 -7
  34. package/dist/{jspdf-Hm0oHFrh.cjs → jspdf-DOJt5cTR.cjs} +3 -3
  35. package/dist/purify.es-Dnh2QiaB.cjs +3 -0
  36. package/dist/purify.es-Drpa_w5x.js +829 -0
  37. package/dist/{useColumns-2-5bXJ1Y.cjs → useColumns-BN_Idt-R.cjs} +1 -1
  38. package/dist/{useColumns-DMHiyKUY.js → useColumns-DZj47D2H.js} +162 -162
  39. package/dist/{useDownload-mYZxXe0l.cjs → useDownload-BISXIZBY.cjs} +1 -1
  40. package/dist/{useDownload-BbiPuiZP.js → useDownload-DFDiPcfB.js} +1 -1
  41. package/package.json +17 -17
  42. package/dist/dataTables-BH3T8M7g.cjs +0 -4
  43. package/dist/index-OvaUUUMW.cjs +0 -1
  44. package/dist/purify.es-B_jmwKeU.cjs +0 -2
  45. package/dist/purify.es-CMwH3CPX.js +0 -552
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ct(n,o){(o==null||o>n.length)&&(o=n.length);for(var s=0,l=Array(o);s<o;s++)l[s]=n[s];return l}function Nn(n){if(Array.isArray(n))return n}function In(n,o){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var l,u,m,N,re=[],w=!0,ie=!1;try{if(m=(s=s.call(n)).next,o!==0)for(;!(w=(l=m.call(s)).done)&&(re.push(l.value),re.length!==o);w=!0);}catch(Ie){ie=!0,u=Ie}finally{try{if(!w&&s.return!=null&&(N=s.return(),Object(N)!==N))return}finally{if(ie)throw u}}return re}}function Dn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ln(n,o){return Nn(n)||In(n,o)||wn(n,o)||Dn()}function wn(n,o){if(n){if(typeof n=="string")return Ct(n,o);var s={}.toString.call(n).slice(8,-1);return s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set"?Array.from(n):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Ct(n,o):void 0}}const $t=Object.entries,Pt=Object.setPrototypeOf,Mn=Object.isFrozen,Cn=Object.getPrototypeOf,Pn=Object.getOwnPropertyDescriptor;let O=Object.freeze,R=Object.seal,oe=Object.create,Xt=typeof Reflect<"u"&&Reflect,Qe=Xt.apply,et=Xt.construct;O||(O=function(o){return o});R||(R=function(o){return o});Qe||(Qe=function(o,s){for(var l=arguments.length,u=new Array(l>2?l-2:0),m=2;m<l;m++)u[m-2]=arguments[m];return o.apply(s,u)});et||(et=function(o){for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];return new o(...l)});const me=A(Array.prototype.forEach),xn=A(Array.prototype.lastIndexOf),xt=A(Array.prototype.pop),ne=A(Array.prototype.push),kn=A(Array.prototype.splice),Y=Array.isArray,_e=A(String.prototype.toLowerCase),Ve=A(String.prototype.toString),kt=A(String.prototype.match),de=A(String.prototype.replace),vt=A(String.prototype.indexOf),vn=A(String.prototype.trim),Un=A(Number.prototype.toString),Fn=A(Boolean.prototype.toString),Ut=typeof BigInt>"u"?null:A(BigInt.prototype.toString),Ft=typeof Symbol>"u"?null:A(Symbol.prototype.toString),S=A(Object.prototype.hasOwnProperty),Te=A(Object.prototype.toString),b=A(RegExp.prototype.test),q=zn(TypeError);function A(n){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];return Qe(n,o,l)}}function zn(n){return function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return et(n,s)}}function f(n,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_e;if(Pt&&Pt(n,null),!Y(o))return n;let l=o.length;for(;l--;){let u=o[l];if(typeof u=="string"){const m=s(u);m!==u&&(Mn(o)||(o[l]=m),u=m)}n[u]=!0}return n}function Hn(n){for(let o=0;o<n.length;o++)S(n,o)||(n[o]=null);return n}function D(n){const o=oe(null);for(const l of $t(n)){var s=Ln(l,2);const u=s[0],m=s[1];S(n,u)&&(Y(m)?o[u]=Hn(m):m&&typeof m=="object"&&m.constructor===Object?o[u]=D(m):o[u]=m)}return o}function Gn(n){switch(typeof n){case"string":return n;case"number":return Un(n);case"boolean":return Fn(n);case"bigint":return Ut?Ut(n):"0";case"symbol":return Ft?Ft(n):"Symbol()";case"undefined":return Te(n);case"function":case"object":{if(n===null)return Te(n);const o=n,s=U(o,"toString");if(typeof s=="function"){const l=s(o);return typeof l=="string"?l:Te(l)}return Te(n)}default:return Te(n)}}function U(n,o){for(;n!==null;){const l=Pn(n,o);if(l){if(l.get)return A(l.get);if(typeof l.value=="function")return A(l.value)}n=Cn(n)}function s(){return null}return s}function Bn(n){try{return b(n,""),!0}catch{return!1}}const zt=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"]),qe=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"]),Ke=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"]),Wn=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"]),Ze=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"]),Yn=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ht=O(["#text"]),Gt=O(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),Je=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"]),Bt=O(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),Ne=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),jn=R(/{{[\w\W]*|^[\w\W]*}}/g),$n=R(/<%[\w\W]*|^[\w\W]*%>/g),Xn=R(/\${[\w\W]*/g),Vn=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),qn=R(/^aria-[\-\w]+$/),Wt=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Kn=R(/^(?:\w+script|data):/i),Zn=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Jn=R(/^html$/i),Qn=R(/^[a-z][.\w]*(-[.\w]+)+$/i),Yt=R(/<[/\w!]/g),eo=R(/<[/\w]/g),to=R(/<\/no(script|embed|frames)/i),no=R(/\/>/i),v={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},oo=function(){return typeof window>"u"?null:window},ro=function(o,s){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";s&&s.hasAttribute(u)&&(l=s.getAttribute(u));const m="dompurify"+(l?"#"+l:"");try{return o.createPolicy(m,{createHTML(N){return N},createScriptURL(N){return N}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},jt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},W=function(o,s,l,u){return S(o,s)&&Y(o[s])?f(u.base?D(u.base):{},o[s],u.transform):l};function Vt(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oo();const o=i=>Vt(i);if(o.version="3.4.11",o.removed=[],!n||!n.document||n.document.nodeType!==v.document||!n.Element)return o.isSupported=!1,o;let s=n.document;const l=s,u=l.currentScript;n.DocumentFragment;const m=n.HTMLTemplateElement,N=n.Node,re=n.Element,w=n.NodeFilter,ie=n.NamedNodeMap;ie===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;const Ie=n.DOMParser,he=n.trustedTypes,j=re.prototype,qt=U(j,"cloneNode"),tt=U(j,"remove"),Kt=U(j,"nextSibling"),ae=U(j,"childNodes"),se=U(j,"parentNode"),nt=U(j,"shadowRoot"),De=U(j,"attributes"),M=N&&N.prototype?U(N.prototype,"nodeType"):null,z=N&&N.prototype?U(N.prototype,"nodeName"):null;if(typeof m=="function"){const i=s.createElement("template");i.content&&i.content.ownerDocument&&(s=i.content.ownerDocument)}let L,$="",Le,ot=!1,le=0;const rt=function(){if(le>0)throw q('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},K=function(e){rt(),le++;try{return L.createHTML(e)}finally{le--}},Zt=function(e){rt(),le++;try{return L.createScriptURL(e)}finally{le--}},Jt=function(){return ot||(Le=ro(he,u),ot=!0),Le},ge=s,we=ge.implementation,it=ge.createNodeIterator,Qt=ge.createDocumentFragment,en=ge.getElementsByTagName,tn=l.importNode;let g=jt();o.isSupported=typeof $t=="function"&&typeof se=="function"&&we&&we.createHTMLDocument!==void 0;const nn=jn,on=$n,rn=Xn,an=Vn,sn=qn,ln=Kn,at=Zn,cn=Qn;let st=Wt,d=null;const lt=f({},[...zt,...qe,...Ke,...Ze,...Ht]);let T=null;const ct=f({},[...Gt,...Je,...Bt,...Ne]);let _=Object.seal(oe(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,ut=null;const H=Object.seal(oe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,Me=!0,pt=!1,mt=!0,G=!1,ue=!0,X=!1,Ce=!1,Pe=null,xe=null,ke=!1,Z=!1,Ee=!1,Ae=!1,dt=!0,Tt=!1;const _t="user-content-";let ve=!0,Ue=!1,J={},x=null;const Fe=f({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ht=null;const gt=f({},["audio","video","img","source","image","track"]);let ze=null;const Et=f({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ye="http://www.w3.org/1998/Math/MathML",Se="http://www.w3.org/2000/svg",k="http://www.w3.org/1999/xhtml";let Q=k,He=!1,Ge=null;const un=f({},[ye,Se,k],Ve),At=O(["mi","mo","mn","ms","mtext"]);let Be=f({},At);const yt=O(["annotation-xml"]);let We=f({},yt);const fn=f({},["title","style","font","a","script"]);let fe=null;const pn=["application/xhtml+xml","text/html"],mn="text/html";let h=null,ee=null;const dn=s.createElement("form"),St=function(e){return e instanceof RegExp||e instanceof Function},Ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ee&&ee===e)return;(!e||typeof e!="object")&&(e={}),e=D(e),fe=pn.indexOf(e.PARSER_MEDIA_TYPE)===-1?mn:e.PARSER_MEDIA_TYPE,h=fe==="application/xhtml+xml"?Ve:_e,d=W(e,"ALLOWED_TAGS",lt,{transform:h}),T=W(e,"ALLOWED_ATTR",ct,{transform:h}),Ge=W(e,"ALLOWED_NAMESPACES",un,{transform:Ve}),ze=W(e,"ADD_URI_SAFE_ATTR",Et,{transform:h,base:Et}),ht=W(e,"ADD_DATA_URI_TAGS",gt,{transform:h,base:gt}),x=W(e,"FORBID_CONTENTS",Fe,{transform:h}),ce=W(e,"FORBID_TAGS",D({}),{transform:h}),ut=W(e,"FORBID_ATTR",D({}),{transform:h}),J=S(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?D(e.USE_PROFILES):e.USE_PROFILES:!1,ft=e.ALLOW_ARIA_ATTR!==!1,Me=e.ALLOW_DATA_ATTR!==!1,pt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,mt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,G=e.SAFE_FOR_TEMPLATES||!1,ue=e.SAFE_FOR_XML!==!1,X=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,Ee=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,ke=e.FORCE_BODY||!1,dt=e.SANITIZE_DOM!==!1,Tt=e.SANITIZE_NAMED_PROPS||!1,ve=e.KEEP_CONTENT!==!1,Ue=e.IN_PLACE||!1,st=Bn(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Wt,Q=typeof e.NAMESPACE=="string"?e.NAMESPACE:k,Be=S(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?D(e.MATHML_TEXT_INTEGRATION_POINTS):f({},At),We=S(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?D(e.HTML_INTEGRATION_POINTS):f({},yt);const t=S(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?D(e.CUSTOM_ELEMENT_HANDLING):oe(null);if(_=oe(null),S(t,"tagNameCheck")&&St(t.tagNameCheck)&&(_.tagNameCheck=t.tagNameCheck),S(t,"attributeNameCheck")&&St(t.attributeNameCheck)&&(_.attributeNameCheck=t.attributeNameCheck),S(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),R(_),G&&(Me=!1),Ee&&(Z=!0),J&&(d=f({},Ht),T=oe(null),J.html===!0&&(f(d,zt),f(T,Gt)),J.svg===!0&&(f(d,qe),f(T,Je),f(T,Ne)),J.svgFilters===!0&&(f(d,Ke),f(T,Je),f(T,Ne)),J.mathMl===!0&&(f(d,Ze),f(T,Bt),f(T,Ne))),H.tagCheck=null,H.attributeCheck=null,S(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?H.tagCheck=e.ADD_TAGS:Y(e.ADD_TAGS)&&(d===lt&&(d=D(d)),f(d,e.ADD_TAGS,h))),S(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?H.attributeCheck=e.ADD_ATTR:Y(e.ADD_ATTR)&&(T===ct&&(T=D(T)),f(T,e.ADD_ATTR,h))),S(e,"ADD_URI_SAFE_ATTR")&&Y(e.ADD_URI_SAFE_ATTR)&&f(ze,e.ADD_URI_SAFE_ATTR,h),S(e,"FORBID_CONTENTS")&&Y(e.FORBID_CONTENTS)&&(x===Fe&&(x=D(x)),f(x,e.FORBID_CONTENTS,h)),S(e,"ADD_FORBID_CONTENTS")&&Y(e.ADD_FORBID_CONTENTS)&&(x===Fe&&(x=D(x)),f(x,e.ADD_FORBID_CONTENTS,h)),ve&&(d["#text"]=!0),X&&f(d,["html","head","body"]),d.table&&(f(d,["tbody"]),delete ce.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const r=L;L=e.TRUSTED_TYPES_POLICY;try{$=K("")}catch(a){throw L=r,a}}else e.TRUSTED_TYPES_POLICY===null?(L=void 0,$=""):(L===void 0&&(L=Jt()),L&&typeof $=="string"&&($=K("")));O&&O(e),ee=e},bt=f({},[...qe,...Ke,...Wn]),Ot=f({},[...Ze,...Yn]),Tn=function(e,t,r){return t.namespaceURI===k?e==="svg":t.namespaceURI===ye?e==="svg"&&(r==="annotation-xml"||Be[r]):!!bt[e]},_n=function(e,t,r){return t.namespaceURI===k?e==="math":t.namespaceURI===Se?e==="math"&&We[r]:!!Ot[e]},hn=function(e,t,r){return t.namespaceURI===Se&&!We[r]||t.namespaceURI===ye&&!Be[r]?!1:!Ot[e]&&(fn[e]||!bt[e])},gn=function(e){let t=se(e);(!t||!t.tagName)&&(t={namespaceURI:Q,tagName:"template"});const r=_e(e.tagName),a=_e(t.tagName);return Ge[e.namespaceURI]?e.namespaceURI===Se?Tn(r,t,a):e.namespaceURI===ye?_n(r,t,a):e.namespaceURI===k?hn(r,t,a):!!(fe==="application/xhtml+xml"&&Ge[e.namespaceURI]):!1},B=function(e){ne(o.removed,{element:e});try{se(e).removeChild(e)}catch{if(tt(e),!se(e))throw q("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Rt=function(e){const t=ae(e);if(t){const a=[];me(t,c=>{ne(a,c)}),me(a,c=>{try{tt(c)}catch{}})}const r=De(e);if(r)for(let a=r.length-1;a>=0;--a){const c=r[a],p=c&&c.name;if(typeof p=="string")try{e.removeAttribute(p)}catch{}}},V=function(e,t){try{ne(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{ne(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(Z||Ee)try{B(t)}catch{}else try{t.setAttribute(e,"")}catch{}},En=function(e){const t=De(e);if(t)for(let r=t.length-1;r>=0;--r){const a=t[r],c=a&&a.name;if(!(typeof c!="string"||T[h(c)]))try{e.removeAttribute(c)}catch{}}},An=function(e){const t=[e];for(;t.length>0;){const r=t.pop();(M?M(r):r.nodeType)===v.element&&En(r);const c=ae(r);if(c)for(let p=c.length-1;p>=0;--p)t.push(c[p])}},Nt=function(e){let t=null,r=null;if(ke)e="<remove></remove>"+e;else{const p=kt(e,/^[\r\n\t ]+/);r=p&&p[0]}fe==="application/xhtml+xml"&&Q===k&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const a=L?K(e):e;if(Q===k)try{t=new Ie().parseFromString(a,fe)}catch{}if(!t||!t.documentElement){t=we.createDocument(Q,"template",null);try{t.documentElement.innerHTML=He?$:a}catch{}}const c=t.body||t.documentElement;return e&&r&&c.insertBefore(s.createTextNode(r),c.childNodes[0]||null),Q===k?en.call(t,X?"html":"body")[0]:X?t.documentElement:c},It=function(e){return it.call(e.ownerDocument||e,e,w.SHOW_ELEMENT|w.SHOW_COMMENT|w.SHOW_TEXT|w.SHOW_PROCESSING_INSTRUCTION|w.SHOW_CDATA_SECTION,null)},be=function(e){return e=de(e,nn," "),e=de(e,on," "),e=de(e,rn," "),e},je=function(e){var t;e.normalize();const r=it.call(e.ownerDocument||e,e,w.SHOW_TEXT|w.SHOW_COMMENT|w.SHOW_CDATA_SECTION|w.SHOW_PROCESSING_INSTRUCTION,null);let a=r.nextNode();for(;a;)a.data=be(a.data),a=r.nextNode();const c=(t=e.querySelectorAll)===null||t===void 0?void 0:t.call(e,"template");c&&me(c,p=>{te(p.content)&&je(p.content)})},Oe=function(e){const t=z?z(e):null;return typeof t!="string"||h(t)!=="form"?!1:typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||e.attributes!==De(e)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function"||e.nodeType!==M(e)||e.childNodes!==ae(e)},te=function(e){if(!M||typeof e!="object"||e===null)return!1;try{return M(e)===v.documentFragment}catch{return!1}},pe=function(e){if(!M||typeof e!="object"||e===null)return!1;try{return typeof M(e)=="number"}catch{return!1}};function F(i,e,t){i.length!==0&&me(i,r=>{r.call(o,e,t,ee)})}const yn=function(e,t){return!!(ue&&e.hasChildNodes()&&!pe(e.firstElementChild)&&b(Yt,e.textContent)&&b(Yt,e.innerHTML)||ue&&e.namespaceURI===k&&t==="style"&&pe(e.firstElementChild)||e.nodeType===v.processingInstruction||ue&&e.nodeType===v.comment&&b(eo,e.data))},Sn=function(e,t){if(!ce[t]&&wt(t)&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,t)||_.tagNameCheck instanceof Function&&_.tagNameCheck(t)))return!1;if(ve&&!x[t]){const r=se(e),a=ae(e);if(a&&r){const c=a.length;for(let p=c-1;p>=0;--p){const y=Ue?a[p]:qt(a[p],!0);r.insertBefore(y,Kt(e))}}}return B(e),!0},Dt=function(e){if(F(g.beforeSanitizeElements,e,null),Oe(e))return B(e),!0;const t=h(z?z(e):e.nodeName);if(F(g.uponSanitizeElement,e,{tagName:t,allowedTags:d}),yn(e,t))return B(e),!0;if(ce[t]||!(H.tagCheck instanceof Function&&H.tagCheck(t))&&!d[t])return Sn(e,t);if((M?M(e):e.nodeType)===v.element&&!gn(e)||(t==="noscript"||t==="noembed"||t==="noframes")&&b(to,e.innerHTML))return B(e),!0;if(G&&e.nodeType===v.text){const a=be(e.textContent);e.textContent!==a&&(ne(o.removed,{element:e.cloneNode()}),e.textContent=a)}return F(g.afterSanitizeElements,e,null),!1},Lt=function(e,t,r){if(ut[t]||dt&&(t==="id"||t==="name")&&(r in s||r in dn))return!1;const a=T[t]||H.attributeCheck instanceof Function&&H.attributeCheck(t,e);if(!(Me&&b(an,t))){if(!(ft&&b(sn,t))){if(a){if(!ze[t]){if(!b(st,de(r,at,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&vt(r,"data:")===0&&ht[e])){if(!(pt&&!b(ln,de(r,at,"")))){if(r)return!1}}}}}else if(!(wt(e)&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,e)||_.tagNameCheck instanceof Function&&_.tagNameCheck(e))&&(_.attributeNameCheck instanceof RegExp&&b(_.attributeNameCheck,t)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(t,e))||t==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,r)||_.tagNameCheck instanceof Function&&_.tagNameCheck(r))))return!1}}return!0},bn=f({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wt=function(e){return!bn[_e(e)]&&b(cn,e)},On=function(e,t,r,a){if(L&&typeof he=="object"&&typeof he.getAttributeType=="function"&&!r)switch(he.getAttributeType(e,t)){case"TrustedHTML":return K(a);case"TrustedScriptURL":return Zt(a)}return a},Rn=function(e,t,r,a){try{r?e.setAttributeNS(r,t,a):e.setAttribute(t,a),Oe(e)?B(e):xt(o.removed)}catch{V(t,e)}},Mt=function(e){F(g.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Oe(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0};let a=t.length;const c=h(e.nodeName);for(;a--;){const p=t[a],y=p.name,E=p.namespaceURI,C=p.value,P=h(y),Xe=C;let I=y==="value"?Xe:vn(Xe);if(r.attrName=P,r.attrValue=I,r.keepAttr=!0,r.forceKeepAttr=void 0,F(g.uponSanitizeAttribute,e,r),I=r.attrValue,Tt&&(P==="id"||P==="name")&&vt(I,_t)!==0&&(V(y,e),I=_t+I),ue&&b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,I)){V(y,e);continue}if(P==="attributename"&&kt(I,"href")){V(y,e);continue}if(!r.forceKeepAttr){if(!r.keepAttr){V(y,e);continue}if(!mt&&b(no,I)){V(y,e);continue}if(G&&(I=be(I)),!Lt(c,P,I)){V(y,e);continue}I=On(c,P,E,I),I!==Xe&&Rn(e,y,E,I)}}F(g.afterSanitizeAttributes,e,null)},Re=function(e){let t=null;const r=It(e);for(F(g.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(F(g.uponSanitizeShadowNode,t,null),Dt(t),Mt(t),te(t.content)&&Re(t.content),(M?M(t):t.nodeType)===v.element){const c=nt(t);te(c)&&($e(c),Re(c))}F(g.afterSanitizeShadowDOM,e,null)},$e=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const r=t.pop();if(r.shadow){Re(r.shadow);continue}const a=r.node,p=(M?M(a):a.nodeType)===v.element,y=ae(a);if(y)for(let E=y.length-1;E>=0;--E)t.push({node:y[E],shadow:null});if(p){const E=z?z(a):null;if(typeof E=="string"&&h(E)==="template"){const C=a.content;te(C)&&t.push({node:C,shadow:null})}}if(p){const E=nt(a);te(E)&&t.push({node:null,shadow:E},{node:E,shadow:null})}}};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,r=null,a=null,c=null;if(He=!i,He&&(i="<!-->"),typeof i!="string"&&!pe(i)&&(i=Gn(i),typeof i!="string"))throw q("dirty is not a string, aborting");if(!o.isSupported)return i;Ce?(d=Pe,T=xe):Ye(e),(g.uponSanitizeElement.length>0||g.uponSanitizeAttribute.length>0)&&(d=D(d)),g.uponSanitizeAttribute.length>0&&(T=D(T)),o.removed=[];const p=Ue&&typeof i!="string"&&pe(i);if(p){const C=z?z(i):i.nodeName;if(typeof C=="string"){const P=h(C);if(!d[P]||ce[P])throw q("root node is forbidden and cannot be sanitized in-place")}if(Oe(i))throw q("root node is clobbered and cannot be sanitized in-place");try{$e(i)}catch(P){throw Rt(i),P}}else if(pe(i))t=Nt("<!---->"),r=t.ownerDocument.importNode(i,!0),r.nodeType===v.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r),$e(r);else{if(!Z&&!G&&!X&&i.indexOf("<")===-1)return L&&Ae?K(i):i;if(t=Nt(i),!t)return Z?null:Ae?$:""}t&&ke&&B(t.firstChild);const y=It(p?i:t);try{for(;a=y.nextNode();)Dt(a),Mt(a),te(a.content)&&Re(a.content)}catch(C){throw p&&Rt(i),C}if(p)return me(o.removed,C=>{C.element&&An(C.element)}),G&&je(i),i;if(Z){if(G&&je(t),Ee)for(c=Qt.call(t.ownerDocument);t.firstChild;)c.appendChild(t.firstChild);else c=t;return(T.shadowroot||T.shadowrootmode)&&(c=tn.call(l,c,!0)),c}let E=X?t.outerHTML:t.innerHTML;return X&&d["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(Jn,t.ownerDocument.doctype.name)&&(E="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
3
+ `+E),G&&(E=be(E)),L&&Ae?K(E):E},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ye(i),Ce=!0,Pe=d,xe=T},o.clearConfig=function(){ee=null,Ce=!1,Pe=null,xe=null,L=Le,$=""},o.isValidAttribute=function(i,e,t){ee||Ye({});const r=h(i),a=h(e);return Lt(r,a,t)},o.addHook=function(i,e){typeof e=="function"&&S(g,i)&&ne(g[i],e)},o.removeHook=function(i,e){if(S(g,i)){if(e!==void 0){const t=xn(g[i],e);return t===-1?void 0:kn(g[i],t,1)[0]}return xt(g[i])}},o.removeHooks=function(i){S(g,i)&&(g[i]=[])},o.removeAllHooks=function(){g=jt()},o}var io=Vt();exports.default=io;