@nocobase/app 1.9.0-beta.8 → 2.0.0-alpha.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.
- package/dist/client/1145.4029b0be.async.js +3 -0
- package/dist/client/1617.dd671a87.async.js +6 -0
- package/dist/client/1833.82373d30.async.js +6 -0
- package/dist/client/2134.1d86e440.async.js +5 -0
- package/dist/client/2190.90c718a9.async.js +3 -0
- package/dist/client/2498.be8b1194.async.js +7 -0
- package/dist/client/260.5b02a0a5.async.js +4 -0
- package/dist/client/2953.2e77d77c.async.js +24 -0
- package/dist/client/3130.8c624281.async.js +35 -0
- package/dist/client/3170.6147bd19.async.js +24 -0
- package/dist/client/3255.e6303833.async.js +10 -0
- package/dist/client/3520.81fd6362.async.js +24 -0
- package/dist/client/3522.674f2264.async.js +4 -0
- package/dist/client/4088.0568ef31.async.js +5 -0
- package/dist/client/4205.c3eac46d.async.js +9 -0
- package/dist/client/4644.ae01f8a6.async.js +4 -0
- package/dist/client/4666.d20ff352.async.js +8 -0
- package/dist/client/4840.477401f9.async.js +8 -0
- package/dist/client/5068.72e9d750.async.js +5 -0
- package/dist/client/5087.468f5500.async.js +6 -0
- package/dist/client/5950.b83f8586.async.js +4 -0
- package/dist/client/6416.361c93ff.async.js +4 -0
- package/dist/client/6472.ac05f778.async.js +7 -0
- package/dist/client/6779.47fc1971.async.js +10 -0
- package/dist/client/6816.1ff200ac.async.js +5 -0
- package/dist/client/6996.836a3f7f.async.js +8 -0
- package/dist/client/7463.70ca58ce.async.js +20 -0
- package/dist/client/7522.1f91be5c.async.js +23 -0
- package/dist/client/7596.232a7185.async.js +10 -0
- package/dist/client/7688.85d6d7bb.async.js +4 -0
- package/dist/client/8106.829fd6b5.async.js +10 -0
- package/dist/client/816.b71d5e67.async.js +1 -0
- package/dist/client/8541.e3110aaa.async.js +8 -0
- package/dist/client/9017.28eacc5a.async.js +6 -0
- package/dist/client/937.a55819ab.async.js +5 -0
- package/dist/client/9489.25ca39a9.async.js +7 -0
- package/dist/client/9663.c04b2ad1.async.js +5 -0
- package/dist/client/9729.0d7a5c47.async.js +8 -0
- package/dist/client/9848.18f8d3db.async.js +4 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/npm._at_ant-design.0bc226be.async.js +141 -0
- package/dist/client/npm._at_babel.aa6aa60c.async.js +3 -0
- package/dist/client/npm._at_codemirror.23366286.async.js +26 -0
- package/dist/client/npm._at_formily.7785699b.async.js +96 -0
- package/dist/client/npm._at_lezer.8e7184b5.async.js +2 -0
- package/dist/client/npm._at_rc-component.adfcb69e.async.js +8 -0
- package/dist/client/npm._at_react-spring.47360957.async.js +1 -0
- package/dist/client/npm._at_umijs.47085d01.async.js +7 -0
- package/dist/client/npm._at_use-gesture.15164819.async.js +1 -0
- package/dist/client/npm.acorn.1f389fab.async.js +6 -0
- package/dist/client/npm.ahooks.7b545023.async.js +6 -0
- package/dist/client/npm.antd-mobile.9ba7b196.async.js +1 -0
- package/dist/client/npm.antd-style.f89528fc.async.js +1 -0
- package/dist/client/npm.antd.8f85b075.async.js +935 -0
- package/dist/client/npm.babel-runtime.eed49798.async.js +1 -0
- package/dist/client/{npm.d3-selection.15d6ab5b.async.js → npm.d3-selection.605ec083.async.js} +1 -1
- package/dist/client/{npm.d3-transition.5fd82a9c.async.js → npm.d3-transition.1d02fe5d.async.js} +1 -1
- package/dist/client/{npm.dayjs.45ed1676.async.js → npm.dayjs.772d2a39.async.js} +1 -1
- package/dist/client/npm.dompurify.2dcd638d.async.js +2 -0
- package/dist/client/{npm.entities.8159ac3e.async.js → npm.entities.536e25f7.async.js} +1 -1
- package/dist/client/{npm.highlight.js.f727dfe3.async.js → npm.highlight.js.c1f693ec.async.js} +2 -2
- package/dist/client/{npm.htmlparser2.1a3babb6.async.js → npm.htmlparser2.a2f8d64d.async.js} +1 -1
- package/dist/client/npm.joi.0be0ffb8.async.js +1 -0
- package/dist/client/npm.lodash-es.d3d83c5d.async.js +1 -0
- package/dist/client/{npm.markdown-it.5b35f93d.async.js → npm.markdown-it.9eced26c.async.js} +1 -1
- package/dist/client/npm.mermaid.91e7e45d.async.js +1556 -0
- package/dist/client/npm.rc-cascader.2d4909f4.async.js +4 -0
- package/dist/client/npm.rc-image.500705f3.async.js +1 -0
- package/dist/client/npm.rc-menu.623f9c7e.async.js +1 -0
- package/dist/client/npm.rc-picker.c4dce7bc.async.js +22 -0
- package/dist/client/npm.rc-select.34fc277e.async.js +3 -0
- package/dist/client/npm.rc-slider.a10210c6.async.js +1 -0
- package/dist/client/npm.rc-table.8e9124fe.async.js +22 -0
- package/dist/client/npm.rc-tree-select.c1fbaa19.async.js +5 -0
- package/dist/client/npm.rc-tree.c1d5eac5.async.js +1 -0
- package/dist/client/npm.rc-util.7f3dc7bf.async.js +35 -0
- package/dist/client/{npm.react-router-dom.2109af81.async.js → npm.react-router-dom.c4482ef7.async.js} +1 -1
- package/dist/client/npm.ses.94a6543e.async.js +29 -0
- package/dist/client/npm.slate-react.ef6881ab.async.js +15 -0
- package/dist/client/npm.slate.44c32547.async.js +1 -0
- package/dist/client/npm.util.9c956416.async.js +10 -0
- package/dist/client/p__index.5eda2656.chunk.css +1 -0
- package/dist/client/p__index.751f234c.async.js +2316 -0
- package/dist/client/umi.ce574f8c.js +63 -0
- package/lib/config/cache.d.ts +2 -11
- package/lib/config/cache.js +3 -2
- package/lib/config/index.d.ts +2 -21
- package/lib/config/index.js +3 -0
- package/package.json +6 -6
- package/src/config/cache.ts +5 -4
- package/src/config/index.ts +5 -1
- package/dist/client/6858.082255a5.async.js +0 -59
- package/dist/client/npm._at_ant-design.5b9b3ce7.async.js +0 -141
- package/dist/client/npm._at_formily.f71b1c62.async.js +0 -96
- package/dist/client/npm._at_rc-component.5f4cc5e2.async.js +0 -8
- package/dist/client/npm._at_umijs.7f6c4722.async.js +0 -7
- package/dist/client/npm.ahooks.c5b165dc.async.js +0 -6
- package/dist/client/npm.antd.168d1e29.async.js +0 -464
- package/dist/client/npm.dompurify.2ca7a7c6.async.js +0 -3
- package/dist/client/npm.elkjs.f35a7d45.async.js +0 -26
- package/dist/client/npm.lodash-es.99877438.async.js +0 -1
- package/dist/client/npm.mermaid.b398414f.async.js +0 -1529
- package/dist/client/npm.rc-cascader.cf6ec555.async.js +0 -4
- package/dist/client/npm.rc-image.d550fa79.async.js +0 -1
- package/dist/client/npm.rc-menu.da4ef0ce.async.js +0 -1
- package/dist/client/npm.rc-picker.89eafb74.async.js +0 -22
- package/dist/client/npm.rc-select.44fb85b4.async.js +0 -3
- package/dist/client/npm.rc-slider.d2d511ab.async.js +0 -1
- package/dist/client/npm.rc-table.c5aa8a0d.async.js +0 -22
- package/dist/client/npm.rc-tree-select.5597dcbf.async.js +0 -5
- package/dist/client/npm.rc-tree.49888c60.async.js +0 -1
- package/dist/client/p__index.15474ef0.async.js +0 -1685
- package/dist/client/p__index.e4a52407.chunk.css +0 -1
- package/dist/client/umi.cb68cc62.js +0 -63
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[8370],{22424:function(dn,At,St){St.d(At,{Z:function(){return Bt}});const{entries:Pe,setPrototypeOf:ke,isFrozen:Rt,getPrototypeOf:yt,getOwnPropertyDescriptor:Ot}=Object;let{freeze:g,seal:O,create:ve}=Object,{apply:ue,construct:me}=typeof Reflect<"u"&&Reflect;g||(g=function(o){return o}),O||(O=function(o){return o}),ue||(ue=function(o,l,s){return o.apply(l,s)}),me||(me=function(o,l){return new o(...l)});const Q=A(Array.prototype.forEach),Lt=A(Array.prototype.lastIndexOf),Ue=A(Array.prototype.pop),G=A(Array.prototype.push),bt=A(Array.prototype.splice),ee=A(String.prototype.toLowerCase),pe=A(String.prototype.toString),Fe=A(String.prototype.match),W=A(String.prototype.replace),Dt=A(String.prototype.indexOf),Nt=A(String.prototype.trim),L=A(Object.prototype.hasOwnProperty),h=A(RegExp.prototype.test),B=It(TypeError);function A(r){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,s=new Array(l>1?l-1:0),T=1;T<l;T++)s[T-1]=arguments[T];return ue(r,o,s)}}function It(r){return function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return me(r,l)}}function a(r,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ee;ke&&ke(r,null);let s=o.length;for(;s--;){let T=o[s];if(typeof T=="string"){const N=l(T);N!==T&&(Rt(o)||(o[s]=N),T=N)}r[T]=!0}return r}function Mt(r){for(let o=0;o<r.length;o++)L(r,o)||(r[o]=null);return r}function D(r){const o=ve(null);for(const[l,s]of Pe(r))L(r,l)&&(Array.isArray(s)?o[l]=Mt(s):s&&typeof s=="object"&&s.constructor===Object?o[l]=D(s):o[l]=s);return o}function Y(r,o){for(;r!==null;){const s=Ot(r,o);if(s){if(s.get)return A(s.get);if(typeof s.value=="function")return A(s.value)}r=yt(r)}function l(){return null}return l}const He=g(["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","section","select","shadow","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"]),de=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Te=g(["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"]),Ct=g(["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"]),_e=g(["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"]),wt=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ze=g(["#text"]),Ge=g(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ee=g(["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","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"]),We=g(["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"]),te=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xt=O(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pt=O(/<%[\w\W]*|[\w\W]*%>/gm),kt=O(/\$\{[\w\W]*/gm),vt=O(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ut=O(/^aria-[\-\w]+$/),Be=O(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ft=O(/^(?:\w+script|data):/i),Ht=O(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ye=O(/^html$/i),zt=O(/^[a-z][.\w]*(-[.\w]+)+$/i);var Xe=Object.freeze({__proto__:null,ARIA_ATTR:Ut,ATTR_WHITESPACE:Ht,CUSTOM_ELEMENT:zt,DATA_ATTR:vt,DOCTYPE_NAME:Ye,ERB_EXPR:Pt,IS_ALLOWED_URI:Be,IS_SCRIPT_OR_DATA:Ft,MUSTACHE_EXPR:xt,TMPLIT_EXPR:kt});const X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Gt=function(){return typeof window>"u"?null:window},Wt=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let s=null;const T="data-tt-policy-suffix";l&&l.hasAttribute(T)&&(s=l.getAttribute(T));const N="dompurify"+(s?"#"+s:"");try{return o.createPolicy(N,{createHTML(x){return x},createScriptURL(x){return x}})}catch{return console.warn("TrustedTypes policy "+N+" could not be created."),null}},je=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ve(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gt();const o=i=>Ve(i);if(o.version="3.2.6",o.removed=[],!r||!r.document||r.document.nodeType!==X.document||!r.Element)return o.isSupported=!1,o;let{document:l}=r;const s=l,T=s.currentScript,{DocumentFragment:N,HTMLTemplateElement:x,Node:ge,Element:$e,NodeFilter:j,NamedNodeMap:Yt=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Xt,DOMParser:jt,trustedTypes:ne}=r,V=$e.prototype,Vt=Y(V,"cloneNode"),$t=Y(V,"remove"),qt=Y(V,"nextSibling"),Kt=Y(V,"childNodes"),oe=Y(V,"parentNode");if(typeof x=="function"){const i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let S,$="";const{implementation:he,createNodeIterator:Zt,createDocumentFragment:Jt,getElementsByTagName:Qt}=l,{importNode:en}=s;let R=je();o.isSupported=typeof Pe=="function"&&typeof oe=="function"&&he&&he.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ae,ERB_EXPR:Se,TMPLIT_EXPR:Re,DATA_ATTR:tn,ARIA_ATTR:nn,IS_SCRIPT_OR_DATA:on,ATTR_WHITESPACE:qe,CUSTOM_ELEMENT:an}=Xe;let{IS_ALLOWED_URI:Ke}=Xe,m=null;const Ze=a({},[...He,...de,...Te,..._e,...ze]);let d=null;const Je=a({},[...Ge,...Ee,...We,...te]);let f=Object.seal(ve(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}})),q=null,ye=null,Qe=!0,Oe=!0,et=!1,tt=!0,P=!1,ie=!0,w=!1,Le=!1,be=!1,k=!1,ae=!1,re=!1,nt=!0,ot=!1;const rn="user-content-";let De=!0,K=!1,v={},U=null;const it=a({},["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"]);let at=null;const rt=a({},["audio","video","img","source","image","track"]);let Ne=null;const st=a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),se="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",I="http://www.w3.org/1999/xhtml";let F=I,Ie=!1,Me=null;const sn=a({},[se,le,I],pe);let ce=a({},["mi","mo","mn","ms","mtext"]),fe=a({},["annotation-xml"]);const ln=a({},["title","style","font","a","script"]);let Z=null;const cn=["application/xhtml+xml","text/html"],fn="text/html";let p=null,H=null;const un=l.createElement("form"),lt=function(e){return e instanceof RegExp||e instanceof Function},Ce=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===e)){if((!e||typeof e!="object")&&(e={}),e=D(e),Z=cn.indexOf(e.PARSER_MEDIA_TYPE)===-1?fn:e.PARSER_MEDIA_TYPE,p=Z==="application/xhtml+xml"?pe:ee,m=L(e,"ALLOWED_TAGS")?a({},e.ALLOWED_TAGS,p):Ze,d=L(e,"ALLOWED_ATTR")?a({},e.ALLOWED_ATTR,p):Je,Me=L(e,"ALLOWED_NAMESPACES")?a({},e.ALLOWED_NAMESPACES,pe):sn,Ne=L(e,"ADD_URI_SAFE_ATTR")?a(D(st),e.ADD_URI_SAFE_ATTR,p):st,at=L(e,"ADD_DATA_URI_TAGS")?a(D(rt),e.ADD_DATA_URI_TAGS,p):rt,U=L(e,"FORBID_CONTENTS")?a({},e.FORBID_CONTENTS,p):it,q=L(e,"FORBID_TAGS")?a({},e.FORBID_TAGS,p):D({}),ye=L(e,"FORBID_ATTR")?a({},e.FORBID_ATTR,p):D({}),v=L(e,"USE_PROFILES")?e.USE_PROFILES:!1,Qe=e.ALLOW_ARIA_ATTR!==!1,Oe=e.ALLOW_DATA_ATTR!==!1,et=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,P=e.SAFE_FOR_TEMPLATES||!1,ie=e.SAFE_FOR_XML!==!1,w=e.WHOLE_DOCUMENT||!1,k=e.RETURN_DOM||!1,ae=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,nt=e.SANITIZE_DOM!==!1,ot=e.SANITIZE_NAMED_PROPS||!1,De=e.KEEP_CONTENT!==!1,K=e.IN_PLACE||!1,Ke=e.ALLOWED_URI_REGEXP||Be,F=e.NAMESPACE||I,ce=e.MATHML_TEXT_INTEGRATION_POINTS||ce,fe=e.HTML_INTEGRATION_POINTS||fe,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&(Oe=!1),ae&&(k=!0),v&&(m=a({},ze),d=[],v.html===!0&&(a(m,He),a(d,Ge)),v.svg===!0&&(a(m,de),a(d,Ee),a(d,te)),v.svgFilters===!0&&(a(m,Te),a(d,Ee),a(d,te)),v.mathMl===!0&&(a(m,_e),a(d,We),a(d,te))),e.ADD_TAGS&&(m===Ze&&(m=D(m)),a(m,e.ADD_TAGS,p)),e.ADD_ATTR&&(d===Je&&(d=D(d)),a(d,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&a(Ne,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(U===it&&(U=D(U)),a(U,e.FORBID_CONTENTS,p)),De&&(m["#text"]=!0),w&&a(m,["html","head","body"]),m.table&&(a(m,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=e.TRUSTED_TYPES_POLICY,$=S.createHTML("")}else S===void 0&&(S=Wt(ne,T)),S!==null&&typeof $=="string"&&($=S.createHTML(""));g&&g(e),H=e}},ct=a({},[...de,...Te,...Ct]),ft=a({},[..._e,...wt]),mn=function(e){let t=oe(e);(!t||!t.tagName)&&(t={namespaceURI:F,tagName:"template"});const n=ee(e.tagName),c=ee(t.tagName);return Me[e.namespaceURI]?e.namespaceURI===le?t.namespaceURI===I?n==="svg":t.namespaceURI===se?n==="svg"&&(c==="annotation-xml"||ce[c]):!!ct[n]:e.namespaceURI===se?t.namespaceURI===I?n==="math":t.namespaceURI===le?n==="math"&&fe[c]:!!ft[n]:e.namespaceURI===I?t.namespaceURI===le&&!fe[c]||t.namespaceURI===se&&!ce[c]?!1:!ft[n]&&(ln[n]||!ct[n]):!!(Z==="application/xhtml+xml"&&Me[e.namespaceURI]):!1},b=function(e){G(o.removed,{element:e});try{oe(e).removeChild(e)}catch{$t(e)}},z=function(e,t){try{G(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{G(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(k||ae)try{b(t)}catch{}else try{t.setAttribute(e,"")}catch{}},ut=function(e){let t=null,n=null;if(be)e="<remove></remove>"+e;else{const u=Fe(e,/^[\r\n\t ]+/);n=u&&u[0]}Z==="application/xhtml+xml"&&F===I&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const c=S?S.createHTML(e):e;if(F===I)try{t=new jt().parseFromString(c,Z)}catch{}if(!t||!t.documentElement){t=he.createDocument(F,"template",null);try{t.documentElement.innerHTML=Ie?$:c}catch{}}const _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),F===I?Qt.call(t,w?"html":"body")[0]:w?t.documentElement:_},mt=function(e){return Zt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},we=function(e){return e instanceof Xt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Yt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},pt=function(e){return typeof ge=="function"&&e instanceof ge};function M(i,e,t){Q(i,n=>{n.call(o,e,t,H)})}const dt=function(e){let t=null;if(M(R.beforeSanitizeElements,e,null),we(e))return b(e),!0;const n=p(e.nodeName);if(M(R.uponSanitizeElement,e,{tagName:n,allowedTags:m}),ie&&e.hasChildNodes()&&!pt(e.firstElementChild)&&h(/<[/\w!]/g,e.innerHTML)&&h(/<[/\w!]/g,e.textContent)||e.nodeType===X.progressingInstruction||ie&&e.nodeType===X.comment&&h(/<[/\w]/g,e.data))return b(e),!0;if(!m[n]||q[n]){if(!q[n]&&_t(n)&&(f.tagNameCheck instanceof RegExp&&h(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n)))return!1;if(De&&!U[n]){const c=oe(e)||e.parentNode,_=Kt(e)||e.childNodes;if(_&&c){const u=_.length;for(let y=u-1;y>=0;--y){const C=Vt(_[y],!0);C.__removalCount=(e.__removalCount||0)+1,c.insertBefore(C,qt(e))}}}return b(e),!0}return e instanceof $e&&!mn(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&h(/<\/no(script|embed|frames)/i,e.innerHTML)?(b(e),!0):(P&&e.nodeType===X.text&&(t=e.textContent,Q([Ae,Se,Re],c=>{t=W(t,c," ")}),e.textContent!==t&&(G(o.removed,{element:e.cloneNode()}),e.textContent=t)),M(R.afterSanitizeElements,e,null),!1)},Tt=function(e,t,n){if(nt&&(t==="id"||t==="name")&&(n in l||n in un))return!1;if(!(Oe&&!ye[t]&&h(tn,t))){if(!(Qe&&h(nn,t))){if(!d[t]||ye[t]){if(!(_t(e)&&(f.tagNameCheck instanceof RegExp&&h(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&h(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&h(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n))))return!1}else if(!Ne[t]){if(!h(Ke,W(n,qe,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Dt(n,"data:")===0&&at[e])){if(!(et&&!h(on,W(n,qe,"")))){if(n)return!1}}}}}}return!0},_t=function(e){return e!=="annotation-xml"&&Fe(e,an)},Et=function(e){M(R.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||we(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let c=t.length;for(;c--;){const _=t[c],{name:u,namespaceURI:y,value:C}=_,J=p(u),xe=C;let E=u==="value"?xe:Nt(xe);if(n.attrName=J,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,M(R.uponSanitizeAttribute,e,n),E=n.attrValue,ot&&(J==="id"||J==="name")&&(z(u,e),E=rn+E),ie&&h(/((--!?|])>)|<\/(style|title)/i,E)){z(u,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){z(u,e);continue}if(!tt&&h(/\/>/i,E)){z(u,e);continue}P&&Q([Ae,Se,Re],ht=>{E=W(E,ht," ")});const gt=p(e.nodeName);if(!Tt(gt,J,E)){z(u,e);continue}if(S&&typeof ne=="object"&&typeof ne.getAttributeType=="function"&&!y)switch(ne.getAttributeType(gt,J)){case"TrustedHTML":{E=S.createHTML(E);break}case"TrustedScriptURL":{E=S.createScriptURL(E);break}}if(E!==xe)try{y?e.setAttributeNS(y,u,E):e.setAttribute(u,E),we(e)?b(e):Ue(o.removed)}catch{z(u,e)}}M(R.afterSanitizeAttributes,e,null)},pn=function i(e){let t=null;const n=mt(e);for(M(R.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)M(R.uponSanitizeShadowNode,t,null),dt(t),Et(t),t.content instanceof N&&i(t.content);M(R.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,c=null,_=null;if(Ie=!i,Ie&&(i="<!-->"),typeof i!="string"&&!pt(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw B("dirty is not a string, aborting")}else throw B("toString is not a function");if(!o.isSupported)return i;if(Le||Ce(e),o.removed=[],typeof i=="string"&&(K=!1),K){if(i.nodeName){const C=p(i.nodeName);if(!m[C]||q[C])throw B("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof ge)t=ut("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===X.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!k&&!P&&!w&&i.indexOf("<")===-1)return S&&re?S.createHTML(i):i;if(t=ut(i),!t)return k?null:re?$:""}t&&be&&b(t.firstChild);const u=mt(K?i:t);for(;c=u.nextNode();)dt(c),Et(c),c.content instanceof N&&pn(c.content);if(K)return i;if(k){if(ae)for(_=Jt.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(d.shadowroot||d.shadowrootmode)&&(_=en.call(s,_,!0)),_}let y=w?t.outerHTML:t.innerHTML;return w&&m["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&h(Ye,t.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
2
|
+
`+y),P&&Q([Ae,Se,Re],C=>{y=W(y,C," ")}),S&&re?S.createHTML(y):y},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ce(i),Le=!0},o.clearConfig=function(){H=null,Le=!1},o.isValidAttribute=function(i,e,t){H||Ce({});const n=p(i),c=p(e);return Tt(n,c,t)},o.addHook=function(i,e){typeof e=="function"&&G(R[i],e)},o.removeHook=function(i,e){if(e!==void 0){const t=Lt(R[i],e);return t===-1?void 0:bt(R[i],t,1)[0]}return Ue(R[i])},o.removeHooks=function(i){R[i]=[]},o.removeAllHooks=function(){R=je()},o}var Bt=Ve()}}]);
|