diff --git a/tgui/public/tgui-panel.bundle.js b/tgui/public/tgui-panel.bundle.js index 140c8a5982eb..fc477925c796 100644 --- a/tgui/public/tgui-panel.bundle.js +++ b/tgui/public/tgui-panel.bundle.js @@ -1,8 +1,8 @@ -(function(){(function(){var An={15113:function(y,e,t){"use strict";e.__esModule=!0,e.createPopper=void 0,e.popperGenerator=p;var n=u(t(28770)),r=u(t(12866)),o=u(t(88577)),a=u(t(29727)),i=u(t(13657)),d=u(t(97902)),c=u(t(57547)),h=u(t(4709));e.detectOverflow=h.default;var f=t(65601);function u(g){return g&&g.__esModule?g:{default:g}}var v={placement:"bottom",modifiers:[],strategy:"absolute"};function s(){for(var g=arguments.length,m=new Array(g),b=0;b0&&(0,r.round)(u.width)/c.offsetWidth||1,s=c.offsetHeight>0&&(0,r.round)(u.height)/c.offsetHeight||1);var p=(0,n.isElement)(c)?(0,o.default)(c):window,l=p.visualViewport,g=!(0,a.default)()&&f,m=(u.left+(g&&l?l.offsetLeft:0))/v,b=(u.top+(g&&l?l.offsetTop:0))/s,O=u.width/v,I=u.height/s;return{width:O,height:I,top:b,right:m+O,bottom:b+I,left:m,x:m,y:b}}},98310:function(y,e,t){"use strict";e.__esModule=!0,e.default=I;var n=t(37802),r=g(t(63064)),o=g(t(16940)),a=g(t(88577)),i=g(t(29727)),d=g(t(9252)),c=g(t(75663)),h=t(65601),f=g(t(83199)),u=g(t(16292)),v=g(t(11848)),s=g(t(1707)),p=g(t(21194)),l=t(79257);function g(T){return T&&T.__esModule?T:{default:T}}function m(T,S){var E=(0,f.default)(T,!1,S==="fixed");return E.top=E.top+T.clientTop,E.left=E.left+T.clientLeft,E.bottom=E.top+T.clientHeight,E.right=E.left+T.clientWidth,E.width=T.clientWidth,E.height=T.clientHeight,E.x=E.left,E.y=E.top,E}function b(T,S,E){return S===n.viewport?(0,p.default)((0,r.default)(T,E)):(0,h.isElement)(S)?m(S,E):(0,p.default)((0,o.default)((0,d.default)(T)))}function O(T){var S=(0,a.default)((0,u.default)(T)),E=["absolute","fixed"].indexOf((0,c.default)(T).position)>=0,C=E&&(0,h.isHTMLElement)(T)?(0,i.default)(T):T;return(0,h.isElement)(C)?S.filter(function(P){return(0,h.isElement)(P)&&(0,v.default)(P,C)&&(0,s.default)(P)!=="body"}):[]}function I(T,S,E,C){var P=S==="clippingParents"?O(T):[].concat(S),N=[].concat(P,[E]),w=N[0],R=N.reduce(function(L,K){var x=b(T,K,C);return L.top=(0,l.max)(x.top,L.top),L.right=(0,l.min)(x.right,L.right),L.bottom=(0,l.min)(x.bottom,L.bottom),L.left=(0,l.max)(x.left,L.left),L},b(T,w,C));return R.width=R.right-R.left,R.height=R.bottom-R.top,R.x=R.left,R.y=R.top,R}},28770:function(y,e,t){"use strict";e.__esModule=!0,e.default=v;var n=f(t(83199)),r=f(t(3107)),o=f(t(1707)),a=t(65601),i=f(t(94889)),d=f(t(9252)),c=f(t(27703)),h=t(79257);function f(s){return s&&s.__esModule?s:{default:s}}function u(s){var p=s.getBoundingClientRect(),l=(0,h.round)(p.width)/s.offsetWidth||1,g=(0,h.round)(p.height)/s.offsetHeight||1;return l!==1||g!==1}function v(s,p,l){l===void 0&&(l=!1);var g=(0,a.isHTMLElement)(p),m=(0,a.isHTMLElement)(p)&&u(p),b=(0,d.default)(p),O=(0,n.default)(s,m,l),I={scrollLeft:0,scrollTop:0},T={x:0,y:0};return(g||!g&&!l)&&(((0,o.default)(p)!=="body"||(0,c.default)(b))&&(I=(0,r.default)(p)),(0,a.isHTMLElement)(p)?(T=(0,n.default)(p,!0),T.x+=p.clientLeft,T.y+=p.clientTop):b&&(T.x=(0,i.default)(b))),{x:O.left+I.scrollLeft-T.x,y:O.top+I.scrollTop-T.y,width:O.width,height:O.height}}},75663:function(y,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(44901));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a).getComputedStyle(a)}},9252:function(y,e,t){"use strict";e.__esModule=!0,e.default=r;var n=t(65601);function r(o){return(((0,n.isElement)(o)?o.ownerDocument:o.document)||window.document).documentElement}},16940:function(y,e,t){"use strict";e.__esModule=!0,e.default=c;var n=d(t(9252)),r=d(t(75663)),o=d(t(94889)),a=d(t(42532)),i=t(79257);function d(h){return h&&h.__esModule?h:{default:h}}function c(h){var f,u=(0,n.default)(h),v=(0,a.default)(h),s=(f=h.ownerDocument)==null?void 0:f.body,p=(0,i.max)(u.scrollWidth,u.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=(0,i.max)(u.scrollHeight,u.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),g=-v.scrollLeft+(0,o.default)(h),m=-v.scrollTop;return(0,r.default)(s||u).direction==="rtl"&&(g+=(0,i.max)(u.clientWidth,s?s.clientWidth:0)-p),{width:p,height:l,x:g,y:m}}},89741:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}},12866:function(y,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(83199));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){var i=(0,n.default)(a),d=a.offsetWidth,c=a.offsetHeight;return Math.abs(i.width-d)<=1&&(d=i.width),Math.abs(i.height-c)<=1&&(c=i.height),{x:a.offsetLeft,y:a.offsetTop,width:d,height:c}}},1707:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return n?(n.nodeName||"").toLowerCase():null}},3107:function(y,e,t){"use strict";e.__esModule=!0,e.default=d;var n=i(t(42532)),r=i(t(44901)),o=t(65601),a=i(t(89741));function i(c){return c&&c.__esModule?c:{default:c}}function d(c){return c===(0,r.default)(c)||!(0,o.isHTMLElement)(c)?(0,n.default)(c):(0,a.default)(c)}},29727:function(y,e,t){"use strict";e.__esModule=!0,e.default=v;var n=h(t(44901)),r=h(t(1707)),o=h(t(75663)),a=t(65601),i=h(t(36875)),d=h(t(16292)),c=h(t(88492));function h(s){return s&&s.__esModule?s:{default:s}}function f(s){return!(0,a.isHTMLElement)(s)||(0,o.default)(s).position==="fixed"?null:s.offsetParent}function u(s){var p=/firefox/i.test((0,c.default)()),l=/Trident/i.test((0,c.default)());if(l&&(0,a.isHTMLElement)(s)){var g=(0,o.default)(s);if(g.position==="fixed")return null}var m=(0,d.default)(s);for((0,a.isShadowRoot)(m)&&(m=m.host);(0,a.isHTMLElement)(m)&&["html","body"].indexOf((0,r.default)(m))<0;){var b=(0,o.default)(m);if(b.transform!=="none"||b.perspective!=="none"||b.contain==="paint"||["transform","perspective"].indexOf(b.willChange)!==-1||p&&b.willChange==="filter"||p&&b.filter&&b.filter!=="none")return m;m=m.parentNode}return null}function v(s){for(var p=(0,n.default)(s),l=f(s);l&&(0,i.default)(l)&&(0,o.default)(l).position==="static";)l=f(l);return l&&((0,r.default)(l)==="html"||(0,r.default)(l)==="body"&&(0,o.default)(l).position==="static")?p:l||u(s)||p}},16292:function(y,e,t){"use strict";e.__esModule=!0,e.default=i;var n=a(t(1707)),r=a(t(9252)),o=t(65601);function a(d){return d&&d.__esModule?d:{default:d}}function i(d){return(0,n.default)(d)==="html"?d:d.assignedSlot||d.parentNode||((0,o.isShadowRoot)(d)?d.host:null)||(0,r.default)(d)}},87899:function(y,e,t){"use strict";e.__esModule=!0,e.default=d;var n=i(t(16292)),r=i(t(27703)),o=i(t(1707)),a=t(65601);function i(c){return c&&c.__esModule?c:{default:c}}function d(c){return["html","body","#document"].indexOf((0,o.default)(c))>=0?c.ownerDocument.body:(0,a.isHTMLElement)(c)&&(0,r.default)(c)?c:d((0,n.default)(c))}},63064:function(y,e,t){"use strict";e.__esModule=!0,e.default=d;var n=i(t(44901)),r=i(t(9252)),o=i(t(94889)),a=i(t(95294));function i(c){return c&&c.__esModule?c:{default:c}}function d(c,h){var f=(0,n.default)(c),u=(0,r.default)(c),v=f.visualViewport,s=u.clientWidth,p=u.clientHeight,l=0,g=0;if(v){s=v.width,p=v.height;var m=(0,a.default)();(m||!m&&h==="fixed")&&(l=v.offsetLeft,g=v.offsetTop)}return{width:s,height:p,x:l+(0,o.default)(c),y:g}}},44901:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}},42532:function(y,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(44901));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){var i=(0,n.default)(a),d=i.pageXOffset,c=i.pageYOffset;return{scrollLeft:d,scrollTop:c}}},94889:function(y,e,t){"use strict";e.__esModule=!0,e.default=i;var n=a(t(83199)),r=a(t(9252)),o=a(t(42532));function a(d){return d&&d.__esModule?d:{default:d}}function i(d){return(0,n.default)((0,r.default)(d)).left+(0,o.default)(d).scrollLeft}},65601:function(y,e,t){"use strict";e.__esModule=!0,e.isElement=o,e.isHTMLElement=a,e.isShadowRoot=i;var n=r(t(44901));function r(d){return d&&d.__esModule?d:{default:d}}function o(d){var c=(0,n.default)(d).Element;return d instanceof c||d instanceof Element}function a(d){var c=(0,n.default)(d).HTMLElement;return d instanceof c||d instanceof HTMLElement}function i(d){if(typeof ShadowRoot=="undefined")return!1;var c=(0,n.default)(d).ShadowRoot;return d instanceof c||d instanceof ShadowRoot}},95294:function(y,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(88492));function r(a){return a&&a.__esModule?a:{default:a}}function o(){return!/^((?!chrome|android).)*safari/i.test((0,n.default)())}},27703:function(y,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(75663));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){var i=(0,n.default)(a),d=i.overflow,c=i.overflowX,h=i.overflowY;return/auto|scroll|overlay|hidden/.test(d+h+c)}},36875:function(y,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(1707));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return["table","td","th"].indexOf((0,n.default)(a))>=0}},88577:function(y,e,t){"use strict";e.__esModule=!0,e.default=d;var n=i(t(87899)),r=i(t(16292)),o=i(t(44901)),a=i(t(27703));function i(c){return c&&c.__esModule?c:{default:c}}function d(c,h){var f;h===void 0&&(h=[]);var u=(0,n.default)(c),v=u===((f=c.ownerDocument)==null?void 0:f.body),s=(0,o.default)(u),p=v?[s].concat(s.visualViewport||[],(0,a.default)(u)?u:[]):u,l=h.concat(p);return v?l:l.concat(d((0,r.default)(p)))}},37802:function(y,e){"use strict";e.__esModule=!0,e.write=e.viewport=e.variationPlacements=e.top=e.start=e.right=e.reference=e.read=e.popper=e.placements=e.modifierPhases=e.main=e.left=e.end=e.clippingParents=e.bottom=e.beforeWrite=e.beforeRead=e.beforeMain=e.basePlacements=e.auto=e.afterWrite=e.afterRead=e.afterMain=void 0;var t=e.top="top",n=e.bottom="bottom",r=e.right="right",o=e.left="left",a=e.auto="auto",i=e.basePlacements=[t,n,r,o],d=e.start="start",c=e.end="end",h=e.clippingParents="clippingParents",f=e.viewport="viewport",u=e.popper="popper",v=e.reference="reference",s=e.variationPlacements=i.reduce(function(P,N){return P.concat([N+"-"+d,N+"-"+c])},[]),p=e.placements=[].concat(i,[a]).reduce(function(P,N){return P.concat([N,N+"-"+d,N+"-"+c])},[]),l=e.beforeRead="beforeRead",g=e.read="read",m=e.afterRead="afterRead",b=e.beforeMain="beforeMain",O=e.main="main",I=e.afterMain="afterMain",T=e.beforeWrite="beforeWrite",S=e.write="write",E=e.afterWrite="afterWrite",C=e.modifierPhases=[l,g,m,b,O,I,T,S,E]},60028:function(y,e,t){"use strict";e.__esModule=!0;var n={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};e.popperGenerator=e.detectOverflow=e.createPopperLite=e.createPopperBase=e.createPopper=void 0;var r=t(37802);Object.keys(r).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(n,c)||c in e&&e[c]===r[c]||(e[c]=r[c])});var o=t(16055);Object.keys(o).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(n,c)||c in e&&e[c]===o[c]||(e[c]=o[c])});var a=t(15113);e.popperGenerator=a.popperGenerator,e.detectOverflow=a.detectOverflow,e.createPopperBase=a.createPopper;var i=t(98420);e.createPopper=i.createPopper;var d=t(22008);e.createPopperLite=d.createPopper},20637:function(y,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=o(t(1707)),r=t(65601);function o(c){return c&&c.__esModule?c:{default:c}}function a(c){var h=c.state;Object.keys(h.elements).forEach(function(f){var u=h.styles[f]||{},v=h.attributes[f]||{},s=h.elements[f];!(0,r.isHTMLElement)(s)||!(0,n.default)(s)||(Object.assign(s.style,u),Object.keys(v).forEach(function(p){var l=v[p];l===!1?s.removeAttribute(p):s.setAttribute(p,l===!0?"":l)}))})}function i(c){var h=c.state,f={popper:{position:h.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(h.elements.popper.style,f.popper),h.styles=f,h.elements.arrow&&Object.assign(h.elements.arrow.style,f.arrow),function(){Object.keys(h.elements).forEach(function(u){var v=h.elements[u],s=h.attributes[u]||{},p=Object.keys(h.styles.hasOwnProperty(u)?h.styles[u]:f[u]),l=p.reduce(function(g,m){return g[m]="",g},{});!(0,r.isHTMLElement)(v)||!(0,n.default)(v)||(Object.assign(v.style,l),Object.keys(s).forEach(function(g){v.removeAttribute(g)}))})}}var d=e.default={name:"applyStyles",enabled:!0,phase:"write",fn:a,effect:i,requires:["computeStyles"]}},11106:function(y,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=u(t(16275)),r=u(t(12866)),o=u(t(11848)),a=u(t(29727)),i=u(t(26608)),d=t(87415),c=u(t(41e3)),h=u(t(62605)),f=t(37802);function u(g){return g&&g.__esModule?g:{default:g}}var v=function(){function g(m,b){return m=typeof m=="function"?m(Object.assign({},b.rects,{placement:b.placement})):m,(0,c.default)(typeof m!="number"?m:(0,h.default)(m,f.basePlacements))}return g}();function s(g){var m,b=g.state,O=g.name,I=g.options,T=b.elements.arrow,S=b.modifiersData.popperOffsets,E=(0,n.default)(b.placement),C=(0,i.default)(E),P=[f.left,f.right].indexOf(E)>=0,N=P?"height":"width";if(!(!T||!S)){var w=v(I.padding,b),R=(0,r.default)(T),L=C==="y"?f.top:f.left,K=C==="y"?f.bottom:f.right,x=b.rects.reference[N]+b.rects.reference[C]-S[C]-b.rects.popper[N],U=S[C]-b.rects.reference[C],$=(0,a.default)(T),D=$?C==="y"?$.clientHeight||0:$.clientWidth||0:0,F=x/2-U/2,V=w[L],G=D-R[N]-w[K],Y=D/2-R[N]/2+F,z=(0,d.within)(V,Y,G),et=C;b.modifiersData[O]=(m={},m[et]=z,m.centerOffset=z-Y,m)}}function p(g){var m=g.state,b=g.options,O=b.element,I=O===void 0?"[data-popper-arrow]":O;I!=null&&(typeof I=="string"&&(I=m.elements.popper.querySelector(I),!I)||(0,o.default)(m.elements.popper,I)&&(m.elements.arrow=I))}var l=e.default={name:"arrow",enabled:!0,phase:"main",fn:s,effect:p,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},85445:function(y,e,t){"use strict";e.__esModule=!0,e.default=void 0,e.mapToStyles=s;var n=t(37802),r=f(t(29727)),o=f(t(44901)),a=f(t(9252)),i=f(t(75663)),d=f(t(16275)),c=f(t(56918)),h=t(79257);function f(g){return g&&g.__esModule?g:{default:g}}var u={top:"auto",right:"auto",bottom:"auto",left:"auto"};function v(g,m){var b=g.x,O=g.y,I=m.devicePixelRatio||1;return{x:(0,h.round)(b*I)/I||0,y:(0,h.round)(O*I)/I||0}}function s(g){var m,b=g.popper,O=g.popperRect,I=g.placement,T=g.variation,S=g.offsets,E=g.position,C=g.gpuAcceleration,P=g.adaptive,N=g.roundOffsets,w=g.isFixed,R=S.x,L=R===void 0?0:R,K=S.y,x=K===void 0?0:K,U=typeof N=="function"?N({x:L,y:x}):{x:L,y:x};L=U.x,x=U.y;var $=S.hasOwnProperty("x"),D=S.hasOwnProperty("y"),F=n.left,V=n.top,G=window;if(P){var Y=(0,r.default)(b),z="clientHeight",et="clientWidth";if(Y===(0,o.default)(b)&&(Y=(0,a.default)(b),(0,i.default)(Y).position!=="static"&&E==="absolute"&&(z="scrollHeight",et="scrollWidth")),Y=Y,I===n.top||(I===n.left||I===n.right)&&T===n.end){V=n.bottom;var at=w&&Y===G&&G.visualViewport?G.visualViewport.height:Y[z];x-=at-O.height,x*=C?1:-1}if(I===n.left||(I===n.top||I===n.bottom)&&T===n.end){F=n.right;var ft=w&&Y===G&&G.visualViewport?G.visualViewport.width:Y[et];L-=ft-O.width,L*=C?1:-1}}var W=Object.assign({position:E},P&&u),X=N===!0?v({x:L,y:x},(0,o.default)(b)):{x:L,y:x};if(L=X.x,x=X.y,C){var nt;return Object.assign({},W,(nt={},nt[V]=D?"0":"",nt[F]=$?"0":"",nt.transform=(G.devicePixelRatio||1)<=1?"translate("+L+"px, "+x+"px)":"translate3d("+L+"px, "+x+"px, 0)",nt))}return Object.assign({},W,(m={},m[V]=D?x+"px":"",m[F]=$?L+"px":"",m.transform="",m))}function p(g){var m=g.state,b=g.options,O=b.gpuAcceleration,I=O===void 0?!0:O,T=b.adaptive,S=T===void 0?!0:T,E=b.roundOffsets,C=E===void 0?!0:E,P={placement:(0,d.default)(m.placement),variation:(0,c.default)(m.placement),popper:m.elements.popper,popperRect:m.rects.popper,gpuAcceleration:I,isFixed:m.options.strategy==="fixed"};m.modifiersData.popperOffsets!=null&&(m.styles.popper=Object.assign({},m.styles.popper,s(Object.assign({},P,{offsets:m.modifiersData.popperOffsets,position:m.options.strategy,adaptive:S,roundOffsets:C})))),m.modifiersData.arrow!=null&&(m.styles.arrow=Object.assign({},m.styles.arrow,s(Object.assign({},P,{offsets:m.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:C})))),m.attributes.popper=Object.assign({},m.attributes.popper,{"data-popper-placement":m.placement})}var l=e.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:p,data:{}}},21068:function(y,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=r(t(44901));function r(d){return d&&d.__esModule?d:{default:d}}var o={passive:!0};function a(d){var c=d.state,h=d.instance,f=d.options,u=f.scroll,v=u===void 0?!0:u,s=f.resize,p=s===void 0?!0:s,l=(0,n.default)(c.elements.popper),g=[].concat(c.scrollParents.reference,c.scrollParents.popper);return v&&g.forEach(function(m){m.addEventListener("scroll",h.update,o)}),p&&l.addEventListener("resize",h.update,o),function(){v&&g.forEach(function(m){m.removeEventListener("scroll",h.update,o)}),p&&l.removeEventListener("resize",h.update,o)}}var i=e.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function d(){}return d}(),effect:a,data:{}}},51825:function(y,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=h(t(96346)),r=h(t(16275)),o=h(t(15022)),a=h(t(4709)),i=h(t(36705)),d=t(37802),c=h(t(56918));function h(s){return s&&s.__esModule?s:{default:s}}function f(s){if((0,r.default)(s)===d.auto)return[];var p=(0,n.default)(s);return[(0,o.default)(s),p,(0,o.default)(p)]}function u(s){var p=s.state,l=s.options,g=s.name;if(!p.modifiersData[g]._skip){for(var m=l.mainAxis,b=m===void 0?!0:m,O=l.altAxis,I=O===void 0?!0:O,T=l.fallbackPlacements,S=l.padding,E=l.boundary,C=l.rootBoundary,P=l.altBoundary,N=l.flipVariations,w=N===void 0?!0:N,R=l.allowedAutoPlacements,L=p.options.placement,K=(0,r.default)(L),x=K===L,U=T||(x||!w?[(0,n.default)(L)]:f(L)),$=[L].concat(U).reduce(function(dt,J){return dt.concat((0,r.default)(J)===d.auto?(0,i.default)(p,{placement:J,boundary:E,rootBoundary:C,padding:S,flipVariations:w,allowedAutoPlacements:R}):J)},[]),D=p.rects.reference,F=p.rects.popper,V=new Map,G=!0,Y=$[0],z=0;z<$.length;z++){var et=$[z],at=(0,r.default)(et),ft=(0,c.default)(et)===d.start,W=[d.top,d.bottom].indexOf(at)>=0,X=W?"width":"height",nt=(0,a.default)(p,{placement:et,boundary:E,rootBoundary:C,altBoundary:P,padding:S}),ct=W?ft?d.right:d.left:ft?d.bottom:d.top;D[X]>F[X]&&(ct=(0,n.default)(ct));var it=(0,n.default)(ct),St=[];if(b&&St.push(nt[at]<=0),I&&St.push(nt[ct]<=0,nt[it]<=0),St.every(function(dt){return dt})){Y=et,G=!1;break}V.set(et,St)}if(G)for(var Pt=w?3:1,Mt=function(){function dt(J){var Z=$.find(function(ot){var gt=V.get(ot);if(gt)return gt.slice(0,J).every(function(Et){return Et})});if(Z)return Y=Z,"break"}return dt}(),Nt=Pt;Nt>0;Nt--){var ht=Mt(Nt);if(ht==="break")break}p.placement!==Y&&(p.modifiersData[g]._skip=!0,p.placement=Y,p.reset=!0)}}var v=e.default={name:"flip",enabled:!0,phase:"main",fn:u,requiresIfExists:["offset"],data:{_skip:!1}}},44677:function(y,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=t(37802),r=o(t(4709));function o(h){return h&&h.__esModule?h:{default:h}}function a(h,f,u){return u===void 0&&(u={x:0,y:0}),{top:h.top-f.height-u.y,right:h.right-f.width+u.x,bottom:h.bottom-f.height+u.y,left:h.left-f.width-u.x}}function i(h){return[n.top,n.right,n.bottom,n.left].some(function(f){return h[f]>=0})}function d(h){var f=h.state,u=h.name,v=f.rects.reference,s=f.rects.popper,p=f.modifiersData.preventOverflow,l=(0,r.default)(f,{elementContext:"reference"}),g=(0,r.default)(f,{altBoundary:!0}),m=a(l,v),b=a(g,s,p),O=i(m),I=i(b);f.modifiersData[u]={referenceClippingOffsets:m,popperEscapeOffsets:b,isReferenceHidden:O,hasPopperEscaped:I},f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-reference-hidden":O,"data-popper-escaped":I})}var c=e.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:d}},16055:function(y,e,t){"use strict";e.__esModule=!0,e.preventOverflow=e.popperOffsets=e.offset=e.hide=e.flip=e.eventListeners=e.computeStyles=e.arrow=e.applyStyles=void 0;var n=u(t(20637));e.applyStyles=n.default;var r=u(t(11106));e.arrow=r.default;var o=u(t(85445));e.computeStyles=o.default;var a=u(t(21068));e.eventListeners=a.default;var i=u(t(51825));e.flip=i.default;var d=u(t(44677));e.hide=d.default;var c=u(t(34331));e.offset=c.default;var h=u(t(56154));e.popperOffsets=h.default;var f=u(t(69770));e.preventOverflow=f.default;function u(v){return v&&v.__esModule?v:{default:v}}},34331:function(y,e,t){"use strict";e.__esModule=!0,e.default=void 0,e.distanceAndSkiddingToXY=a;var n=o(t(16275)),r=t(37802);function o(c){return c&&c.__esModule?c:{default:c}}function a(c,h,f){var u=(0,n.default)(c),v=[r.left,r.top].indexOf(u)>=0?-1:1,s=typeof f=="function"?f(Object.assign({},h,{placement:c})):f,p=s[0],l=s[1];return p=p||0,l=(l||0)*v,[r.left,r.right].indexOf(u)>=0?{x:l,y:p}:{x:p,y:l}}function i(c){var h=c.state,f=c.options,u=c.name,v=f.offset,s=v===void 0?[0,0]:v,p=r.placements.reduce(function(b,O){return b[O]=a(O,h.rects,s),b},{}),l=p[h.placement],g=l.x,m=l.y;h.modifiersData.popperOffsets!=null&&(h.modifiersData.popperOffsets.x+=g,h.modifiersData.popperOffsets.y+=m),h.modifiersData[u]=p}var d=e.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:i}},56154:function(y,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=r(t(49306));function r(i){return i&&i.__esModule?i:{default:i}}function o(i){var d=i.state,c=i.name;d.modifiersData[c]=(0,n.default)({reference:d.rects.reference,element:d.rects.popper,strategy:"absolute",placement:d.placement})}var a=e.default={name:"popperOffsets",enabled:!0,phase:"read",fn:o,data:{}}},69770:function(y,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=t(37802),r=s(t(16275)),o=s(t(26608)),a=s(t(49903)),i=t(87415),d=s(t(12866)),c=s(t(29727)),h=s(t(4709)),f=s(t(56918)),u=s(t(26143)),v=t(79257);function s(g){return g&&g.__esModule?g:{default:g}}function p(g){var m=g.state,b=g.options,O=g.name,I=b.mainAxis,T=I===void 0?!0:I,S=b.altAxis,E=S===void 0?!1:S,C=b.boundary,P=b.rootBoundary,N=b.altBoundary,w=b.padding,R=b.tether,L=R===void 0?!0:R,K=b.tetherOffset,x=K===void 0?0:K,U=(0,h.default)(m,{boundary:C,rootBoundary:P,padding:w,altBoundary:N}),$=(0,r.default)(m.placement),D=(0,f.default)(m.placement),F=!D,V=(0,o.default)($),G=(0,a.default)(V),Y=m.modifiersData.popperOffsets,z=m.rects.reference,et=m.rects.popper,at=typeof x=="function"?x(Object.assign({},m.rects,{placement:m.placement})):x,ft=typeof at=="number"?{mainAxis:at,altAxis:at}:Object.assign({mainAxis:0,altAxis:0},at),W=m.modifiersData.offset?m.modifiersData.offset[m.placement]:null,X={x:0,y:0};if(Y){if(T){var nt,ct=V==="y"?n.top:n.left,it=V==="y"?n.bottom:n.right,St=V==="y"?"height":"width",Pt=Y[V],Mt=Pt+U[ct],Nt=Pt-U[it],ht=L?-et[St]/2:0,dt=D===n.start?z[St]:et[St],J=D===n.start?-et[St]:-z[St],Z=m.elements.arrow,ot=L&&Z?(0,d.default)(Z):{width:0,height:0},gt=m.modifiersData["arrow#persistent"]?m.modifiersData["arrow#persistent"].padding:(0,u.default)(),Et=gt[ct],ut=gt[it],pt=(0,i.within)(0,z[St],ot[St]),rt=F?z[St]/2-ht-pt-Et-ft.mainAxis:dt-pt-Et-ft.mainAxis,q=F?-z[St]/2+ht+pt+ut+ft.mainAxis:J+pt+ut+ft.mainAxis,mt=m.elements.arrow&&(0,c.default)(m.elements.arrow),Tt=mt?V==="y"?mt.clientTop||0:mt.clientLeft||0:0,wt=(nt=W==null?void 0:W[V])!=null?nt:0,xt=Pt+rt-wt-Tt,Ut=Pt+q-wt,Ot=(0,i.within)(L?(0,v.min)(Mt,xt):Mt,Pt,L?(0,v.max)(Nt,Ut):Nt);Y[V]=Ot,X[V]=Ot-Pt}if(E){var lt,yt=V==="x"?n.top:n.left,Ct=V==="x"?n.bottom:n.right,bt=Y[G],It=G==="y"?"height":"width",Lt=bt+U[yt],Vt=bt-U[Ct],Gt=[n.top,n.left].indexOf($)!==-1,kt=(lt=W==null?void 0:W[G])!=null?lt:0,Yt=Gt?Lt:bt-z[It]-et[It]-kt+ft.altAxis,Ht=Gt?bt+z[It]+et[It]-kt-ft.altAxis:Vt,Jt=L&&Gt?(0,i.withinMaxClamp)(Yt,bt,Ht):(0,i.within)(L?Yt:Lt,bt,L?Ht:Vt);Y[G]=Jt,X[G]=Jt-bt}m.modifiersData[O]=X}}var l=e.default={name:"preventOverflow",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"]}},22008:function(y,e,t){"use strict";e.__esModule=!0,e.defaultModifiers=e.createPopper=void 0;var n=t(15113);e.popperGenerator=n.popperGenerator,e.detectOverflow=n.detectOverflow;var r=d(t(21068)),o=d(t(56154)),a=d(t(85445)),i=d(t(20637));function d(f){return f&&f.__esModule?f:{default:f}}var c=e.defaultModifiers=[r.default,o.default,a.default,i.default],h=e.createPopper=(0,n.popperGenerator)({defaultModifiers:c})},98420:function(y,e,t){"use strict";e.__esModule=!0;var n={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};e.defaultModifiers=e.createPopperLite=e.createPopper=void 0;var r=t(15113);e.popperGenerator=r.popperGenerator,e.detectOverflow=r.detectOverflow;var o=l(t(21068)),a=l(t(56154)),i=l(t(85445)),d=l(t(20637)),c=l(t(34331)),h=l(t(51825)),f=l(t(69770)),u=l(t(11106)),v=l(t(44677)),s=t(22008);e.createPopperLite=s.createPopper;var p=t(16055);Object.keys(p).forEach(function(b){b==="default"||b==="__esModule"||Object.prototype.hasOwnProperty.call(n,b)||b in e&&e[b]===p[b]||(e[b]=p[b])});function l(b){return b&&b.__esModule?b:{default:b}}var g=e.defaultModifiers=[o.default,a.default,i.default,d.default,c.default,h.default,f.default,u.default,v.default],m=e.createPopperLite=e.createPopper=(0,r.popperGenerator)({defaultModifiers:g})},36705:function(y,e,t){"use strict";e.__esModule=!0,e.default=d;var n=i(t(56918)),r=t(37802),o=i(t(4709)),a=i(t(16275));function i(c){return c&&c.__esModule?c:{default:c}}function d(c,h){h===void 0&&(h={});var f=h,u=f.placement,v=f.boundary,s=f.rootBoundary,p=f.padding,l=f.flipVariations,g=f.allowedAutoPlacements,m=g===void 0?r.placements:g,b=(0,n.default)(u),O=b?l?r.variationPlacements:r.variationPlacements.filter(function(S){return(0,n.default)(S)===b}):r.basePlacements,I=O.filter(function(S){return m.indexOf(S)>=0});I.length===0&&(I=O);var T=I.reduce(function(S,E){return S[E]=(0,o.default)(c,{placement:E,boundary:v,rootBoundary:s,padding:p})[(0,a.default)(E)],S},{});return Object.keys(T).sort(function(S,E){return T[S]-T[E]})}},49306:function(y,e,t){"use strict";e.__esModule=!0,e.default=d;var n=i(t(16275)),r=i(t(56918)),o=i(t(26608)),a=t(37802);function i(c){return c&&c.__esModule?c:{default:c}}function d(c){var h=c.reference,f=c.element,u=c.placement,v=u?(0,n.default)(u):null,s=u?(0,r.default)(u):null,p=h.x+h.width/2-f.width/2,l=h.y+h.height/2-f.height/2,g;switch(v){case a.top:g={x:p,y:h.y-f.height};break;case a.bottom:g={x:p,y:h.y+h.height};break;case a.right:g={x:h.x+h.width,y:l};break;case a.left:g={x:h.x-f.width,y:l};break;default:g={x:h.x,y:h.y}}var m=v?(0,o.default)(v):null;if(m!=null){var b=m==="y"?"height":"width";switch(s){case a.start:g[m]=g[m]-(h[b]/2-f[b]/2);break;case a.end:g[m]=g[m]+(h[b]/2-f[b]/2);break;default:}}return g}},97902:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(n){var r;return function(){return r||(r=new Promise(function(o){Promise.resolve().then(function(){r=void 0,o(n())})})),r}}},4709:function(y,e,t){"use strict";e.__esModule=!0,e.default=v;var n=u(t(98310)),r=u(t(9252)),o=u(t(83199)),a=u(t(49306)),i=u(t(21194)),d=t(37802),c=t(65601),h=u(t(41e3)),f=u(t(62605));function u(s){return s&&s.__esModule?s:{default:s}}function v(s,p){p===void 0&&(p={});var l=p,g=l.placement,m=g===void 0?s.placement:g,b=l.strategy,O=b===void 0?s.strategy:b,I=l.boundary,T=I===void 0?d.clippingParents:I,S=l.rootBoundary,E=S===void 0?d.viewport:S,C=l.elementContext,P=C===void 0?d.popper:C,N=l.altBoundary,w=N===void 0?!1:N,R=l.padding,L=R===void 0?0:R,K=(0,h.default)(typeof L!="number"?L:(0,f.default)(L,d.basePlacements)),x=P===d.popper?d.reference:d.popper,U=s.rects.popper,$=s.elements[w?x:P],D=(0,n.default)((0,c.isElement)($)?$:$.contextElement||(0,r.default)(s.elements.popper),T,E,O),F=(0,o.default)(s.elements.reference),V=(0,a.default)({reference:F,element:U,strategy:"absolute",placement:m}),G=(0,i.default)(Object.assign({},U,V)),Y=P===d.popper?G:F,z={top:D.top-Y.top+K.top,bottom:Y.bottom-D.bottom+K.bottom,left:D.left-Y.left+K.left,right:Y.right-D.right+K.right},et=s.modifiersData.offset;if(P===d.popper&&et){var at=et[m];Object.keys(z).forEach(function(ft){var W=[d.right,d.bottom].indexOf(ft)>=0?1:-1,X=[d.top,d.bottom].indexOf(ft)>=0?"y":"x";z[ft]+=at[X]*W})}return z}},62605:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(n,r){return r.reduce(function(o,a){return o[a]=n,o},{})}},49903:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return n==="x"?"y":"x"}},16275:function(y,e,t){"use strict";e.__esModule=!0,e.default=r;var n=t(37802);function r(o){return o.split("-")[0]}},26143:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(){return{top:0,right:0,bottom:0,left:0}}},26608:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}},96346:function(y,e){"use strict";e.__esModule=!0,e.default=n;var t={left:"right",right:"left",bottom:"top",top:"bottom"};function n(r){return r.replace(/left|right|bottom|top/g,function(o){return t[o]})}},15022:function(y,e){"use strict";e.__esModule=!0,e.default=n;var t={start:"end",end:"start"};function n(r){return r.replace(/start|end/g,function(o){return t[o]})}},56918:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return n.split("-")[1]}},79257:function(y,e){"use strict";e.__esModule=!0,e.round=e.min=e.max=void 0;var t=e.max=Math.max,n=e.min=Math.min,r=e.round=Math.round},57547:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(n){var r=n.reduce(function(o,a){var i=o[a.name];return o[a.name]=i?Object.assign({},i,a,{options:Object.assign({},i.options,a.options),data:Object.assign({},i.data,a.data)}):a,o},{});return Object.keys(r).map(function(o){return r[o]})}},41e3:function(y,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(26143));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return Object.assign({},(0,n.default)(),a)}},13657:function(y,e,t){"use strict";e.__esModule=!0,e.default=o;var n=t(37802);function r(a){var i=new Map,d=new Set,c=[];a.forEach(function(f){i.set(f.name,f)});function h(f){d.add(f.name);var u=[].concat(f.requires||[],f.requiresIfExists||[]);u.forEach(function(v){if(!d.has(v)){var s=i.get(v);s&&h(s)}}),c.push(f)}return a.forEach(function(f){d.has(f.name)||h(f)}),c}function o(a){var i=r(a);return n.modifierPhases.reduce(function(d,c){return d.concat(i.filter(function(h){return h.phase===c}))},[])}},21194:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}},88492:function(y,e){"use strict";e.__esModule=!0,e.default=t;function t(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}},87415:function(y,e,t){"use strict";e.__esModule=!0,e.within=r,e.withinMaxClamp=o;var n=t(79257);function r(a,i,d){return(0,n.max)(a,(0,n.min)(i,d))}function o(a,i,d){var c=r(a,i,d);return c>d?d:c}},85966:function(y){"use strict";/*! @license DOMPurify 2.4.7 | (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.7/LICENSE */(function(e,t){y.exports=t()})(void 0,function(){"use strict";function e(rt){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},e(rt)}function t(rt,q){return t=Object.setPrototypeOf||function(){function mt(Tt,wt){return Tt.__proto__=wt,Tt}return mt}(),t(rt,q)}function n(){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(rt){return!1}}function r(rt,q,mt){return n()?r=Reflect.construct:r=function(){function Tt(wt,xt,Ut){var Ot=[null];Ot.push.apply(Ot,xt);var lt=Function.bind.apply(wt,Ot),yt=new lt;return Ut&&t(yt,Ut.prototype),yt}return Tt}(),r.apply(null,arguments)}function o(rt){return a(rt)||i(rt)||d(rt)||h()}function a(rt){if(Array.isArray(rt))return c(rt)}function i(rt){if(typeof Symbol!="undefined"&&rt[Symbol.iterator]!=null||rt["@@iterator"]!=null)return Array.from(rt)}function d(rt,q){if(rt){if(typeof rt=="string")return c(rt,q);var mt=Object.prototype.toString.call(rt).slice(8,-1);if(mt==="Object"&&rt.constructor&&(mt=rt.constructor.name),mt==="Map"||mt==="Set")return Array.from(rt);if(mt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(mt))return c(rt,q)}}function c(rt,q){(q==null||q>rt.length)&&(q=rt.length);for(var mt=0,Tt=new Array(q);mt1?mt-1:0),wt=1;wt/gm),Mt=g(/\${[\w\W]*}/gm),Nt=g(/^data-[\-\w.\u00B7-\uFFFF]/),ht=g(/^aria-[\-\w]+$/),dt=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=g(/^(?:\w+script|data):/i),Z=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ot=g(/^html$/i),gt=function(){function rt(){return typeof window=="undefined"?null:window}return rt}(),Et=function(){function rt(q,mt){if(e(q)!=="object"||typeof q.createPolicy!="function")return null;var Tt=null,wt="data-tt-policy-suffix";mt.currentScript&&mt.currentScript.hasAttribute(wt)&&(Tt=mt.currentScript.getAttribute(wt));var xt="dompurify"+(Tt?"#"+Tt:"");try{return q.createPolicy(xt,{createHTML:function(){function Ut(Ot){return Ot}return Ut}(),createScriptURL:function(){function Ut(Ot){return Ot}return Ut}()})}catch(Ut){return null}}return rt}();function ut(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt(),q=function(){function k(j){return ut(j)}return k}();if(q.version="2.4.7",q.removed=[],!rt||!rt.document||rt.document.nodeType!==9)return q.isSupported=!1,q;var mt=rt.document,Tt=rt.document,wt=rt.DocumentFragment,xt=rt.HTMLTemplateElement,Ut=rt.Node,Ot=rt.Element,lt=rt.NodeFilter,yt=rt.NamedNodeMap,Ct=yt===void 0?rt.NamedNodeMap||rt.MozNamedAttrMap:yt,bt=rt.HTMLFormElement,It=rt.DOMParser,Lt=rt.trustedTypes,Vt=Ot.prototype,Gt=V(Vt,"cloneNode"),kt=V(Vt,"nextSibling"),Yt=V(Vt,"childNodes"),Ht=V(Vt,"parentNode");if(typeof xt=="function"){var Jt=Tt.createElement("template");Jt.content&&Jt.content.ownerDocument&&(Tt=Jt.content.ownerDocument)}var qt=Et(Lt,mt),Ae=qt?qt.createHTML(""):"",Ee=Tt,be=Ee.implementation,on=Ee.createNodeIterator,an=Ee.createDocumentFragment,un=Ee.getElementsByTagName,xe=mt.importNode,Fe={};try{Fe=F(Tt).documentMode?Tt.documentMode:{}}catch(k){}var ne={};q.isSupported=typeof Ht=="function"&&be&&be.createHTMLDocument!==void 0&&Fe!==9;var Pe=St,Ve=Pt,je=Mt,Ne=Nt,Te=ht,te=J,re=Z,le=dt,zt=null,Ce=D({},[].concat(o(G),o(Y),o(z),o(at),o(W))),Qt=null,sn=D({},[].concat(o(X),o(nt),o(ct),o(it))),Xt=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}})),Oe=null,Ie=null,Ue=!0,we=!0,Ke=!1,Me=!0,Wt=!1,fe=!1,Ge=!1,Re=!1,de=!1,oe=!1,Le=!1,cn=!0,ln=!1,fn="user-content-",$e=!0,me=!1,ye={},Zt=null,dn=D({},["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"]),vn=null,hn=D({},["audio","video","img","source","image","track"]),Ye=null,gn=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",Se="http://www.w3.org/2000/svg",ue="http://www.w3.org/1999/xhtml",ve=ue,He=!1,We=null,yn=D({},[De,Se,ue],P),he,Sn=["application/xhtml+xml","text/html"],En="text/html",$t,se=null,pn=Tt.createElement("form"),mn=function(){function k(j){return j instanceof RegExp||j instanceof Function}return k}(),ke=function(){function k(j){se&&se===j||((!j||e(j)!=="object")&&(j={}),j=F(j),he=Sn.indexOf(j.PARSER_MEDIA_TYPE)===-1?he=En:he=j.PARSER_MEDIA_TYPE,$t=he==="application/xhtml+xml"?P:C,zt="ALLOWED_TAGS"in j?D({},j.ALLOWED_TAGS,$t):Ce,Qt="ALLOWED_ATTR"in j?D({},j.ALLOWED_ATTR,$t):sn,We="ALLOWED_NAMESPACES"in j?D({},j.ALLOWED_NAMESPACES,P):yn,Ye="ADD_URI_SAFE_ATTR"in j?D(F(gn),j.ADD_URI_SAFE_ATTR,$t):gn,vn="ADD_DATA_URI_TAGS"in j?D(F(hn),j.ADD_DATA_URI_TAGS,$t):hn,Zt="FORBID_CONTENTS"in j?D({},j.FORBID_CONTENTS,$t):dn,Oe="FORBID_TAGS"in j?D({},j.FORBID_TAGS,$t):{},Ie="FORBID_ATTR"in j?D({},j.FORBID_ATTR,$t):{},ye="USE_PROFILES"in j?j.USE_PROFILES:!1,Ue=j.ALLOW_ARIA_ATTR!==!1,we=j.ALLOW_DATA_ATTR!==!1,Ke=j.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=j.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Wt=j.SAFE_FOR_TEMPLATES||!1,fe=j.WHOLE_DOCUMENT||!1,de=j.RETURN_DOM||!1,oe=j.RETURN_DOM_FRAGMENT||!1,Le=j.RETURN_TRUSTED_TYPE||!1,Re=j.FORCE_BODY||!1,cn=j.SANITIZE_DOM!==!1,ln=j.SANITIZE_NAMED_PROPS||!1,$e=j.KEEP_CONTENT!==!1,me=j.IN_PLACE||!1,le=j.ALLOWED_URI_REGEXP||le,ve=j.NAMESPACE||ue,Xt=j.CUSTOM_ELEMENT_HANDLING||{},j.CUSTOM_ELEMENT_HANDLING&&mn(j.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Xt.tagNameCheck=j.CUSTOM_ELEMENT_HANDLING.tagNameCheck),j.CUSTOM_ELEMENT_HANDLING&&mn(j.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Xt.attributeNameCheck=j.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),j.CUSTOM_ELEMENT_HANDLING&&typeof j.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Xt.allowCustomizedBuiltInElements=j.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Wt&&(we=!1),oe&&(de=!0),ye&&(zt=D({},o(W)),Qt=[],ye.html===!0&&(D(zt,G),D(Qt,X)),ye.svg===!0&&(D(zt,Y),D(Qt,nt),D(Qt,it)),ye.svgFilters===!0&&(D(zt,z),D(Qt,nt),D(Qt,it)),ye.mathMl===!0&&(D(zt,at),D(Qt,ct),D(Qt,it))),j.ADD_TAGS&&(zt===Ce&&(zt=F(zt)),D(zt,j.ADD_TAGS,$t)),j.ADD_ATTR&&(Qt===sn&&(Qt=F(Qt)),D(Qt,j.ADD_ATTR,$t)),j.ADD_URI_SAFE_ATTR&&D(Ye,j.ADD_URI_SAFE_ATTR,$t),j.FORBID_CONTENTS&&(Zt===dn&&(Zt=F(Zt)),D(Zt,j.FORBID_CONTENTS,$t)),$e&&(zt["#text"]=!0),fe&&D(zt,["html","head","body"]),zt.table&&(D(zt,["tbody"]),delete Oe.tbody),l&&l(j),se=j)}return k}(),ze=D({},["mi","mo","mn","ms","mtext"]),Xe=D({},["foreignobject","desc","title","annotation-xml"]),bn=D({},["title","style","font","a","script"]),ge=D({},Y);D(ge,z),D(ge,et);var Qe=D({},at);D(Qe,ft);var Je=function(){function k(j){var st=Ht(j);(!st||!st.tagName)&&(st={namespaceURI:ve,tagName:"template"});var vt=C(j.tagName),At=C(st.tagName);return We[j.namespaceURI]?j.namespaceURI===Se?st.namespaceURI===ue?vt==="svg":st.namespaceURI===De?vt==="svg"&&(At==="annotation-xml"||ze[At]):!!ge[vt]:j.namespaceURI===De?st.namespaceURI===ue?vt==="math":st.namespaceURI===Se?vt==="math"&&Xe[At]:!!Qe[vt]:j.namespaceURI===ue?st.namespaceURI===Se&&!Xe[At]||st.namespaceURI===De&&!ze[At]?!1:!Qe[vt]&&(bn[vt]||!ge[vt]):!!(he==="application/xhtml+xml"&&We[j.namespaceURI]):!1}return k}(),ae=function(){function k(j){E(q.removed,{element:j});try{j.parentNode.removeChild(j)}catch(st){try{j.outerHTML=Ae}catch(vt){j.remove()}}}return k}(),Ze=function(){function k(j,st){try{E(q.removed,{attribute:st.getAttributeNode(j),from:st})}catch(vt){E(q.removed,{attribute:null,from:st})}if(st.removeAttribute(j),j==="is"&&!Qt[j])if(de||oe)try{ae(st)}catch(vt){}else try{st.setAttribute(j,"")}catch(vt){}}return k}(),_e=function(){function k(j){var st,vt;if(Re)j=""+j;else{var At=N(j,/^[\r\n\t ]+/);vt=At&&At[0]}he==="application/xhtml+xml"&&ve===ue&&(j=''+j+"");var Rt=qt?qt.createHTML(j):j;if(ve===ue)try{st=new It().parseFromString(Rt,he)}catch(Ft){}if(!st||!st.documentElement){st=be.createDocument(ve,"template",null);try{st.documentElement.innerHTML=He?Ae:Rt}catch(Ft){}}var Dt=st.body||st.documentElement;return j&&vt&&Dt.insertBefore(Tt.createTextNode(vt),Dt.childNodes[0]||null),ve===ue?un.call(st,fe?"html":"body")[0]:fe?st.documentElement:Dt}return k}(),qe=function(){function k(j){return on.call(j.ownerDocument||j,j,lt.SHOW_ELEMENT|lt.SHOW_COMMENT|lt.SHOW_TEXT,null,!1)}return k}(),tn=function(){function k(j){return j instanceof bt&&(typeof j.nodeName!="string"||typeof j.textContent!="string"||typeof j.removeChild!="function"||!(j.attributes instanceof Ct)||typeof j.removeAttribute!="function"||typeof j.setAttribute!="function"||typeof j.namespaceURI!="string"||typeof j.insertBefore!="function"||typeof j.hasChildNodes!="function")}return k}(),Be=function(){function k(j){return e(Ut)==="object"?j instanceof Ut:j&&e(j)==="object"&&typeof j.nodeType=="number"&&typeof j.nodeName=="string"}return k}(),A=function(){function k(j,st,vt){ne[j]&&T(ne[j],function(At){At.call(q,st,vt,se)})}return k}(),M=function(){function k(j){var st;if(A("beforeSanitizeElements",j,null),tn(j)||K(/[\u0080-\uFFFF]/,j.nodeName))return ae(j),!0;var vt=$t(j.nodeName);if(A("uponSanitizeElement",j,{tagName:vt,allowedTags:zt}),j.hasChildNodes()&&!Be(j.firstElementChild)&&(!Be(j.content)||!Be(j.content.firstElementChild))&&K(/<[/\w]/g,j.innerHTML)&&K(/<[/\w]/g,j.textContent)||vt==="select"&&K(/