1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-05-28 23:41:32 +00:00
8bitworkshop/gen/chunk-PP6TWFIY.js

7 lines
28 KiB
JavaScript

import{a as pr}from"./chunk-5SHCNQ2O.js";import{c as Vt}from"./chunk-5XVCUSSZ.js";var vr=Vt((_t,Et)=>{(function(v,_){typeof _t=="object"&&typeof Et!="undefined"?Et.exports=_():typeof define=="function"&&define.amd?define(_):(v=typeof globalThis!="undefined"?globalThis:v||self,v.DOMPurify=_())})(_t,function(){"use strict";function v(i){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},v(i)}function _(i,a){return _=Object.setPrototypeOf||function(p,E){return p.__proto__=E,p},_(i,a)}function U(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function S(i,a,f){return U()?S=Reflect.construct:S=function(E,o,t){var n=[null];n.push.apply(n,o);var l=Function.bind.apply(E,n),A=new l;return t&&_(A,t.prototype),A},S.apply(null,arguments)}function y(i){return W(i)||se(i)||H(i)||ce()}function W(i){if(Array.isArray(i))return G(i)}function se(i){if(typeof Symbol!="undefined"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function H(i,a){if(!!i){if(typeof i=="string")return G(i,a);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return G(i,a)}}function G(i,a){(a==null||a>i.length)&&(a=i.length);for(var f=0,p=new Array(a);f<a;f++)p[f]=i[f];return p}function ce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=Object.hasOwnProperty,xe=Object.setPrototypeOf,Ie=Object.isFrozen,ze=Object.getPrototypeOf,w=Object.getOwnPropertyDescriptor,O=Object.freeze,j=Object.seal,Xe=Object.create,ke=typeof Reflect!="undefined"&&Reflect,me=ke.apply,h=ke.construct;me||(me=function(a,f,p){return a.apply(f,p)}),O||(O=function(a){return a}),j||(j=function(a){return a}),h||(h=function(a,f){return S(a,y(f))});var m=P(Array.prototype.forEach),g=P(Array.prototype.pop),T=P(Array.prototype.push),Z=P(String.prototype.toLowerCase),be=P(String.prototype.match),Y=P(String.prototype.replace),Oe=P(String.prototype.indexOf),R=P(String.prototype.trim),L=P(RegExp.prototype.test),J=Pe(TypeError);function P(i){return function(a){for(var f=arguments.length,p=new Array(f>1?f-1:0),E=1;E<f;E++)p[E-1]=arguments[E];return me(i,a,p)}}function Pe(i){return function(){for(var a=arguments.length,f=new Array(a),p=0;p<a;p++)f[p]=arguments[p];return h(i,f)}}function c(i,a,f){f=f||Z,xe&&xe(i,null);for(var p=a.length;p--;){var E=a[p];if(typeof E=="string"){var o=f(E);o!==E&&(Ie(a)||(a[p]=o),E=o)}i[E]=!0}return i}function V(i){var a=Xe(null),f;for(f in i)me(B,i,[f])&&(a[f]=i[f]);return a}function ae(i,a){for(;i!==null;){var f=w(i,a);if(f){if(f.get)return P(f.get);if(typeof f.value=="function")return P(f.value)}i=ze(i)}function p(E){return console.warn("fallback value for",E),null}return p}var pe=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","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"]),Re=O(["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"]),Me=O(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),le=O(["animate","color-profile","cursor","discard","fedropshadow","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"]),ie=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"]),we=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fe=O(["#text"]),de=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","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","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","xmlns","slot"]),X=O(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),ve=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"]),he=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ue=j(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ke=j(/<%[\w\W]*|[\w\W]*%>/gm),ue=j(/^data-[\-\w.\u00B7-\uFFFF]/),Ze=j(/^aria-[\-\w]+$/),ge=j(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),He=j(/^(?:\w+script|data):/i),Ge=j(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Je=j(/^html$/i),Be=function(){return typeof window=="undefined"?null:window},Qe=function(a,f){if(v(a)!=="object"||typeof a.createPolicy!="function")return null;var p=null,E="data-tt-policy-suffix";f.currentScript&&f.currentScript.hasAttribute(E)&&(p=f.currentScript.getAttribute(E));var o="dompurify"+(p?"#"+p:"");try{return a.createPolicy(o,{createHTML:function(n){return n},createScriptURL:function(n){return n}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function De(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Be(),a=function(e){return De(e)};if(a.version="2.4.0",a.removed=[],!i||!i.document||i.document.nodeType!==9)return a.isSupported=!1,a;var f=i.document,p=i.document,E=i.DocumentFragment,o=i.HTMLTemplateElement,t=i.Node,n=i.Element,l=i.NodeFilter,A=i.NamedNodeMap,b=A===void 0?i.NamedNodeMap||i.MozNamedAttrMap:A,k=i.HTMLFormElement,Q=i.DOMParser,ee=i.trustedTypes,te=n.prototype,Xt=ae(te,"cloneNode"),Kt=ae(te,"nextSibling"),Zt=ae(te,"childNodes"),tt=ae(te,"parentNode");if(typeof o=="function"){var rt=p.createElement("template");rt.content&&rt.content.ownerDocument&&(p=rt.content.ownerDocument)}var q=Qe(ee,f),bt=q?q.createHTML(""):"",We=p,nt=We.implementation,Jt=We.createNodeIterator,Qt=We.createDocumentFragment,er=We.getElementsByTagName,tr=f.importNode,Ot={};try{Ot=V(p).documentMode?p.documentMode:{}}catch(u){}var K={};a.isSupported=typeof tt=="function"&&nt&&typeof nt.createHTMLDocument!="undefined"&&Ot!==9;var at=Ue,it=Ke,rr=ue,nr=Ze,ar=He,Rt=Ge,ot=ge,D=null,Mt=c({},[].concat(y(pe),y(Re),y(Me),y(ie),y(Fe))),C=null,wt=c({},[].concat(y(de),y(X),y(ve),y(he))),M=Object.seal(Object.create(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}})),Ne=null,st=null,Dt=!0,lt=!0,Nt=!1,ye=!1,fe=!1,ut=!1,ft=!1,Te=!1,je=!1,$e=!1,Lt=!0,Ct=!1,ir="user-content-",ct=!0,Le=!1,_e={},Ee=null,xt=c({},["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"]),It=null,zt=c({},["audio","video","img","source","image","track"]),mt=null,kt=c({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pt="http://www.w3.org/1998/Math/MathML",dt="http://www.w3.org/2000/svg",oe="http://www.w3.org/1999/xhtml",Ye=oe,vt=!1,Ae,or=["application/xhtml+xml","text/html"],sr="text/html",N,Se=null,lr=p.createElement("form"),Pt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(e){Se&&Se===e||((!e||v(e)!=="object")&&(e={}),e=V(e),Ae=or.indexOf(e.PARSER_MEDIA_TYPE)===-1?Ae=sr:Ae=e.PARSER_MEDIA_TYPE,N=Ae==="application/xhtml+xml"?function(r){return r}:Z,D="ALLOWED_TAGS"in e?c({},e.ALLOWED_TAGS,N):Mt,C="ALLOWED_ATTR"in e?c({},e.ALLOWED_ATTR,N):wt,mt="ADD_URI_SAFE_ATTR"in e?c(V(kt),e.ADD_URI_SAFE_ATTR,N):kt,It="ADD_DATA_URI_TAGS"in e?c(V(zt),e.ADD_DATA_URI_TAGS,N):zt,Ee="FORBID_CONTENTS"in e?c({},e.FORBID_CONTENTS,N):xt,Ne="FORBID_TAGS"in e?c({},e.FORBID_TAGS,N):{},st="FORBID_ATTR"in e?c({},e.FORBID_ATTR,N):{},_e="USE_PROFILES"in e?e.USE_PROFILES:!1,Dt=e.ALLOW_ARIA_ATTR!==!1,lt=e.ALLOW_DATA_ATTR!==!1,Nt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ye=e.SAFE_FOR_TEMPLATES||!1,fe=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,$e=e.RETURN_TRUSTED_TYPE||!1,ft=e.FORCE_BODY||!1,Lt=e.SANITIZE_DOM!==!1,Ct=e.SANITIZE_NAMED_PROPS||!1,ct=e.KEEP_CONTENT!==!1,Le=e.IN_PLACE||!1,ot=e.ALLOWED_URI_REGEXP||ot,Ye=e.NAMESPACE||oe,e.CUSTOM_ELEMENT_HANDLING&&Pt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(M.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Pt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(M.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(M.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ye&&(lt=!1),je&&(Te=!0),_e&&(D=c({},y(Fe)),C=[],_e.html===!0&&(c(D,pe),c(C,de)),_e.svg===!0&&(c(D,Re),c(C,X),c(C,he)),_e.svgFilters===!0&&(c(D,Me),c(C,X),c(C,he)),_e.mathMl===!0&&(c(D,ie),c(C,ve),c(C,he))),e.ADD_TAGS&&(D===Mt&&(D=V(D)),c(D,e.ADD_TAGS,N)),e.ADD_ATTR&&(C===wt&&(C=V(C)),c(C,e.ADD_ATTR,N)),e.ADD_URI_SAFE_ATTR&&c(mt,e.ADD_URI_SAFE_ATTR,N),e.FORBID_CONTENTS&&(Ee===xt&&(Ee=V(Ee)),c(Ee,e.FORBID_CONTENTS,N)),ct&&(D["#text"]=!0),fe&&c(D,["html","head","body"]),D.table&&(c(D,["tbody"]),delete Ne.tbody),O&&O(e),Se=e)},Ft=c({},["mi","mo","mn","ms","mtext"]),Ut=c({},["foreignobject","desc","title","annotation-xml"]),ur=c({},["title","style","font","a","script"]),Ve=c({},Re);c(Ve,Me),c(Ve,le);var gt=c({},ie);c(gt,we);var fr=function(e){var r=tt(e);(!r||!r.tagName)&&(r={namespaceURI:oe,tagName:"template"});var s=Z(e.tagName),d=Z(r.tagName);return e.namespaceURI===dt?r.namespaceURI===oe?s==="svg":r.namespaceURI===pt?s==="svg"&&(d==="annotation-xml"||Ft[d]):Boolean(Ve[s]):e.namespaceURI===pt?r.namespaceURI===oe?s==="math":r.namespaceURI===dt?s==="math"&&Ut[d]:Boolean(gt[s]):e.namespaceURI===oe?r.namespaceURI===dt&&!Ut[d]||r.namespaceURI===pt&&!Ft[d]?!1:!gt[s]&&(ur[s]||!Ve[s]):!1},re=function(e){T(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(r){try{e.outerHTML=bt}catch(s){e.remove()}}},yt=function(e,r){try{T(a.removed,{attribute:r.getAttributeNode(e),from:r})}catch(s){T(a.removed,{attribute:null,from:r})}if(r.removeAttribute(e),e==="is"&&!C[e])if(Te||je)try{re(r)}catch(s){}else try{r.setAttribute(e,"")}catch(s){}},Ht=function(e){var r,s;if(ft)e="<remove></remove>"+e;else{var d=be(e,/^[\r\n\t ]+/);s=d&&d[0]}Ae==="application/xhtml+xml"&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var F=q?q.createHTML(e):e;if(Ye===oe)try{r=new Q().parseFromString(F,Ae)}catch(x){}if(!r||!r.documentElement){r=nt.createDocument(Ye,"template",null);try{r.documentElement.innerHTML=vt?"":F}catch(x){}}var I=r.body||r.documentElement;return e&&s&&I.insertBefore(p.createTextNode(s),I.childNodes[0]||null),Ye===oe?er.call(r,fe?"html":"body")[0]:fe?r.documentElement:I},Gt=function(e){return Jt.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},cr=function(e){return e instanceof k&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof b)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function")},Ce=function(e){return v(t)==="object"?e instanceof t:e&&v(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},ne=function(e,r,s){!K[e]||m(K[e],function(d){d.call(a,r,s,Se)})},Bt=function(e){var r;if(ne("beforeSanitizeElements",e,null),cr(e)||L(/[\u0080-\uFFFF]/,e.nodeName))return re(e),!0;var s=N(e.nodeName);if(ne("uponSanitizeElement",e,{tagName:s,allowedTags:D}),e.hasChildNodes()&&!Ce(e.firstElementChild)&&(!Ce(e.content)||!Ce(e.content.firstElementChild))&&L(/<[/\w]/g,e.innerHTML)&&L(/<[/\w]/g,e.textContent)||s==="select"&&L(/<template/i,e.innerHTML))return re(e),!0;if(!D[s]||Ne[s]){if(!Ne[s]&&jt(s)&&(M.tagNameCheck instanceof RegExp&&L(M.tagNameCheck,s)||M.tagNameCheck instanceof Function&&M.tagNameCheck(s)))return!1;if(ct&&!Ee[s]){var d=tt(e)||e.parentNode,F=Zt(e)||e.childNodes;if(F&&d)for(var I=F.length,x=I-1;x>=0;--x)d.insertBefore(Xt(F[x],!0),Kt(e))}return re(e),!0}return e instanceof n&&!fr(e)||(s==="noscript"||s==="noembed")&&L(/<\/no(script|embed)/i,e.innerHTML)?(re(e),!0):(ye&&e.nodeType===3&&(r=e.textContent,r=Y(r,at," "),r=Y(r,it," "),e.textContent!==r&&(T(a.removed,{element:e.cloneNode()}),e.textContent=r)),ne("afterSanitizeElements",e,null),!1)},Wt=function(e,r,s){if(Lt&&(r==="id"||r==="name")&&(s in p||s in lr))return!1;if(!(lt&&!st[r]&&L(rr,r))){if(!(Dt&&L(nr,r))){if(!C[r]||st[r]){if(!(jt(e)&&(M.tagNameCheck instanceof RegExp&&L(M.tagNameCheck,e)||M.tagNameCheck instanceof Function&&M.tagNameCheck(e))&&(M.attributeNameCheck instanceof RegExp&&L(M.attributeNameCheck,r)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(r))||r==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&L(M.tagNameCheck,s)||M.tagNameCheck instanceof Function&&M.tagNameCheck(s))))return!1}else if(!mt[r]){if(!L(ot,Y(s,Rt,""))){if(!((r==="src"||r==="xlink:href"||r==="href")&&e!=="script"&&Oe(s,"data:")===0&&It[e])){if(!(Nt&&!L(ar,Y(s,Rt,"")))){if(s)return!1}}}}}}return!0},jt=function(e){return e.indexOf("-")>0},$t=function(e){var r,s,d,F;ne("beforeSanitizeAttributes",e,null);var I=e.attributes;if(!!I){var x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:C};for(F=I.length;F--;){r=I[F];var qe=r,z=qe.name,Tt=qe.namespaceURI;if(s=z==="value"?r.value:R(r.value),d=N(z),x.attrName=d,x.attrValue=s,x.keepAttr=!0,x.forceKeepAttr=void 0,ne("uponSanitizeAttribute",e,x),s=x.attrValue,!x.forceKeepAttr&&(yt(z,e),!!x.keepAttr)){if(L(/\/>/i,s)){yt(z,e);continue}ye&&(s=Y(s,at," "),s=Y(s,it," "));var Yt=N(e.nodeName);if(!!Wt(Yt,d,s)){if(Ct&&(d==="id"||d==="name")&&(yt(z,e),s=ir+s),q&&v(ee)==="object"&&typeof ee.getAttributeType=="function"&&!Tt)switch(ee.getAttributeType(Yt,d)){case"TrustedHTML":s=q.createHTML(s);break;case"TrustedScriptURL":s=q.createScriptURL(s);break}try{Tt?e.setAttributeNS(Tt,z,s):e.setAttribute(z,s),g(a.removed)}catch(gr){}}}}ne("afterSanitizeAttributes",e,null)}},mr=function u(e){var r,s=Gt(e);for(ne("beforeSanitizeShadowDOM",e,null);r=s.nextNode();)ne("uponSanitizeShadowNode",r,null),!Bt(r)&&(r.content instanceof E&&u(r.content),$t(r));ne("afterSanitizeShadowDOM",e,null)};return a.sanitize=function(u){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,d,F,I;if(vt=!u,vt&&(u="<!-->"),typeof u!="string"&&!Ce(u)){if(typeof u.toString!="function")throw J("toString is not a function");if(u=u.toString(),typeof u!="string")throw J("dirty is not a string, aborting")}if(!a.isSupported){if(v(i.toStaticHTML)==="object"||typeof i.toStaticHTML=="function"){if(typeof u=="string")return i.toStaticHTML(u);if(Ce(u))return i.toStaticHTML(u.outerHTML)}return u}if(ut||ht(e),a.removed=[],typeof u=="string"&&(Le=!1),Le){if(u.nodeName){var x=N(u.nodeName);if(!D[x]||Ne[x])throw J("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof t)r=Ht("<!---->"),s=r.ownerDocument.importNode(u,!0),s.nodeType===1&&s.nodeName==="BODY"||s.nodeName==="HTML"?r=s:r.appendChild(s);else{if(!Te&&!ye&&!fe&&u.indexOf("<")===-1)return q&&$e?q.createHTML(u):u;if(r=Ht(u),!r)return Te?null:$e?bt:""}r&&ft&&re(r.firstChild);for(var qe=Gt(Le?u:r);d=qe.nextNode();)d.nodeType===3&&d===F||Bt(d)||(d.content instanceof E&&mr(d.content),$t(d),F=d);if(F=null,Le)return u;if(Te){if(je)for(I=Qt.call(r.ownerDocument);r.firstChild;)I.appendChild(r.firstChild);else I=r;return C.shadowroot&&(I=tr.call(f,I,!0)),I}var z=fe?r.outerHTML:r.innerHTML;return fe&&D["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&L(Je,r.ownerDocument.doctype.name)&&(z="<!DOCTYPE "+r.ownerDocument.doctype.name+`>
`+z),ye&&(z=Y(z,at," "),z=Y(z,it," ")),q&&$e?q.createHTML(z):z},a.setConfig=function(u){ht(u),ut=!0},a.clearConfig=function(){Se=null,ut=!1},a.isValidAttribute=function(u,e,r){Se||ht({});var s=N(u),d=N(e);return Wt(s,d,r)},a.addHook=function(u,e){typeof e=="function"&&(K[u]=K[u]||[],T(K[u],e))},a.removeHook=function(u){if(K[u])return g(K[u])},a.removeHooks=function(u){K[u]&&(K[u]=[])},a.removeAllHooks=function(){K={}},a}var et=De();return et})});var hr=Vt((At,St)=>{(function(v,_){typeof At=="object"&&typeof St!="undefined"?St.exports=_():typeof define=="function"&&define.amd?define(_):(v=typeof globalThis!="undefined"?globalThis:v||self,v.Split=_())})(At,function(){"use strict";var v=typeof window!="undefined"?window:null,_=v===null,U=_?void 0:v.document,S="addEventListener",y="removeEventListener",W="getBoundingClientRect",se="_a",H="_b",G="_c",ce="horizontal",B=function(){return!1},xe=_?"calc":["","-webkit-","-moz-","-o-"].filter(function(h){var m=U.createElement("div");return m.style.cssText="width:"+h+"calc(9px)",!!m.style.length}).shift()+"calc",Ie=function(h){return typeof h=="string"||h instanceof String},ze=function(h){if(Ie(h)){var m=U.querySelector(h);if(!m)throw new Error("Selector "+h+" did not match a DOM element");return m}return h},w=function(h,m,g){var T=h[m];return T!==void 0?T:g},O=function(h,m,g,T){if(m){if(T==="end")return 0;if(T==="center")return h/2}else if(g){if(T==="start")return 0;if(T==="center")return h/2}return h},j=function(h,m){var g=U.createElement("div");return g.className="gutter gutter-"+m,g},Xe=function(h,m,g){var T={};return Ie(m)?T[h]=m:T[h]=xe+"("+m+"% - "+g+"px)",T},ke=function(h,m){var g;return g={},g[h]=m+"px",g},me=function(h,m){if(m===void 0&&(m={}),_)return{};var g=h,T,Z,be,Y,Oe,R;Array.from&&(g=Array.from(g));var L=ze(g[0]),J=L.parentNode,P=getComputedStyle?getComputedStyle(J):null,Pe=P?P.flexDirection:null,c=w(m,"sizes")||g.map(function(){return 100/g.length}),V=w(m,"minSize",100),ae=Array.isArray(V)?V:g.map(function(){return V}),pe=w(m,"maxSize",1/0),Re=Array.isArray(pe)?pe:g.map(function(){return pe}),Me=w(m,"expandToMin",!1),le=w(m,"gutterSize",10),ie=w(m,"gutterAlign","center"),we=w(m,"snapOffset",30),Fe=Array.isArray(we)?we:g.map(function(){return we}),de=w(m,"dragInterval",1),X=w(m,"direction",ce),ve=w(m,"cursor",X===ce?"col-resize":"row-resize"),he=w(m,"gutter",j),Ue=w(m,"elementStyle",Xe),Ke=w(m,"gutterStyle",ke);X===ce?(T="width",Z="clientX",be="left",Y="right",Oe="clientWidth"):X==="vertical"&&(T="height",Z="clientY",be="top",Y="bottom",Oe="clientHeight");function ue(o,t,n,l){var A=Ue(T,t,n,l);Object.keys(A).forEach(function(b){o.style[b]=A[b]})}function Ze(o,t,n){var l=Ke(T,t,n);Object.keys(l).forEach(function(A){o.style[A]=l[A]})}function ge(){return R.map(function(o){return o.size})}function He(o){return"touches"in o?o.touches[0][Z]:o[Z]}function Ge(o){var t=R[this.a],n=R[this.b],l=t.size+n.size;t.size=o/this.size*l,n.size=l-o/this.size*l,ue(t.element,t.size,this[H],t.i),ue(n.element,n.size,this[G],n.i)}function Je(o){var t,n=R[this.a],l=R[this.b];!this.dragging||(t=He(o)-this.start+(this[H]-this.dragOffset),de>1&&(t=Math.round(t/de)*de),t<=n.minSize+n.snapOffset+this[H]?t=n.minSize+this[H]:t>=this.size-(l.minSize+l.snapOffset+this[G])&&(t=this.size-(l.minSize+this[G])),t>=n.maxSize-n.snapOffset+this[H]?t=n.maxSize+this[H]:t<=this.size-(l.maxSize-l.snapOffset+this[G])&&(t=this.size-(l.maxSize+this[G])),Ge.call(this,t),w(m,"onDrag",B)(ge()))}function Be(){var o=R[this.a].element,t=R[this.b].element,n=o[W](),l=t[W]();this.size=n[T]+l[T]+this[H]+this[G],this.start=n[be],this.end=n[Y]}function Qe(o){if(!getComputedStyle)return null;var t=getComputedStyle(o);if(!t)return null;var n=o[Oe];return n===0?null:(X===ce?n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n)}function De(o){var t=Qe(J);if(t===null||ae.reduce(function(b,k){return b+k},0)>t)return o;var n=0,l=[],A=o.map(function(b,k){var Q=t*b/100,ee=O(le,k===0,k===o.length-1,ie),te=ae[k]+ee;return Q<te?(n+=te-Q,l.push(0),te):(l.push(Q-te),Q)});return n===0?o:A.map(function(b,k){var Q=b;if(n>0&&l[k]-n>0){var ee=Math.min(n,l[k]-n);n-=ee,Q=b-ee}return Q/t*100})}function et(){var o=this,t=R[o.a].element,n=R[o.b].element;o.dragging&&w(m,"onDragEnd",B)(ge()),o.dragging=!1,v[y]("mouseup",o.stop),v[y]("touchend",o.stop),v[y]("touchcancel",o.stop),v[y]("mousemove",o.move),v[y]("touchmove",o.move),o.stop=null,o.move=null,t[y]("selectstart",B),t[y]("dragstart",B),n[y]("selectstart",B),n[y]("dragstart",B),t.style.userSelect="",t.style.webkitUserSelect="",t.style.MozUserSelect="",t.style.pointerEvents="",n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",o.gutter.style.cursor="",o.parent.style.cursor="",U.body.style.cursor=""}function i(o){if(!("button"in o&&o.button!==0)){var t=this,n=R[t.a].element,l=R[t.b].element;t.dragging||w(m,"onDragStart",B)(ge()),o.preventDefault(),t.dragging=!0,t.move=Je.bind(t),t.stop=et.bind(t),v[S]("mouseup",t.stop),v[S]("touchend",t.stop),v[S]("touchcancel",t.stop),v[S]("mousemove",t.move),v[S]("touchmove",t.move),n[S]("selectstart",B),n[S]("dragstart",B),l[S]("selectstart",B),l[S]("dragstart",B),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",l.style.userSelect="none",l.style.webkitUserSelect="none",l.style.MozUserSelect="none",l.style.pointerEvents="none",t.gutter.style.cursor=ve,t.parent.style.cursor=ve,U.body.style.cursor=ve,Be.call(t),t.dragOffset=He(o)-t.end}}c=De(c);var a=[];R=g.map(function(o,t){var n={element:ze(o),size:c[t],minSize:ae[t],maxSize:Re[t],snapOffset:Fe[t],i:t},l;if(t>0&&(l={a:t-1,b:t,dragging:!1,direction:X,parent:J},l[H]=O(le,t-1==0,!1,ie),l[G]=O(le,!1,t===g.length-1,ie),Pe==="row-reverse"||Pe==="column-reverse")){var A=l.a;l.a=l.b,l.b=A}if(t>0){var b=he(t,X,n.element);Ze(b,le,t),l[se]=i.bind(l),b[S]("mousedown",l[se]),b[S]("touchstart",l[se]),J.insertBefore(b,n.element),l.gutter=b}return ue(n.element,n.size,O(le,t===0,t===g.length-1,ie),t),t>0&&a.push(l),n});function f(o){var t=o.i===a.length,n=t?a[o.i-1]:a[o.i];Be.call(n);var l=t?n.size-o.minSize-n[G]:o.minSize+n[H];Ge.call(n,l)}R.forEach(function(o){var t=o.element[W]()[T];t<o.minSize&&(Me?f(o):o.minSize=t)});function p(o){var t=De(o);t.forEach(function(n,l){if(l>0){var A=a[l-1],b=R[A.a],k=R[A.b];b.size=t[l-1],k.size=n,ue(b.element,b.size,A[H],b.i),ue(k.element,k.size,A[G],k.i)}})}function E(o,t){a.forEach(function(n){if(t!==!0?n.parent.removeChild(n.gutter):(n.gutter[y]("mousedown",n[se]),n.gutter[y]("touchstart",n[se])),o!==!0){var l=Ue(T,n.a.size,n[H]);Object.keys(l).forEach(function(A){R[n.a].element.style[A]="",R[n.b].element.style[A]=""})}})}return{setSizes:p,getSizes:ge,collapse:function(t){f(R[t])},destroy:E,parent:J,pairs:a}};return me})});var qt=pr(),dr=class{constructor(_,U){this.boundkeys=[];this.mousetrap=U?new qt(U):qt,this.span=$(document.createElement("span")).addClass("btn_toolbar"),_.appendChild(this.span[0]),this.newGroup()}destroy(){if(this.span&&(this.span.remove(),this.span=null),this.mousetrap){for(var _ of this.boundkeys)this.mousetrap.unbind(_);this.mousetrap=null}}newGroup(){return this.grp=$(document.createElement("span")).addClass("btn_group").appendTo(this.span).hide()}add(_,U,S,y){var W=null;return S&&(W=$(document.createElement("button")).addClass("btn"),S.startsWith("glyphicon")&&(S='<span class="glyphicon '+S+'" aria-hidden="true"></span>'),W.html(S),W.prop("title",_?U+" ("+_+")":U),W.click(y),this.grp.append(W).show()),_&&(this.mousetrap.bind(_,y),this.boundkeys.push(_)),W}};export{dr as a,vr as b,hr as c};
/*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */
/*! Split.js - v1.6.5 */
//# sourceMappingURL=chunk-PP6TWFIY.js.map