@chatui/core
Version:
The React library for Chatbot UI
1 lines • 210 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ChatUI={},e.React,e.ReactDOM)}(this,(function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}e.version="3.3.0";var a=r(t),o=r(n);function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function c(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function s(e,t,n){return s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&u(a,n.prototype),a},s.apply(null,arguments)}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(){for(var e=window.document,t=a(e);t;)t=a(e=t.ownerDocument);return e}(),t=[],n=null,r=null;i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?f(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},i._resetCrossOriginUpdater=function(){n=null,r=null},i.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},i.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},i.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,i=null;this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(c(n,"resize",r,!0),c(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(i=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),l(e,"resize",r,!0)),l(t,"scroll",r,!0),i&&i.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=u){var s=a(t);s&&this._monitorIntersections(s.ownerDocument)}}},i.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,o=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=a(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}));if(!o){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=r){var c=a(t);c&&this._unmonitorIntersections(c.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},i.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var a=r.element,i=u(a),c=this._rootContainsTarget(a),l=r.entry,s=e&&c&&this._computeTargetAndRootIntersection(a,i,t),f=null;this._rootContainsTarget(a)?n&&!this.root||(f=t):f={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:a,boundingClientRect:i,rootBounds:f,intersectionRect:s});l?e&&c?this._hasCrossedThreshold(l,d)&&this._queuedEntries.push(d):l&&l.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},i.prototype._computeTargetAndRootIntersection=function(t,a,o){if("none"!=window.getComputedStyle(t).display){for(var i,c,l,s,d,p,v,h,g=a,y=m(t),b=!1;!b&&y;){var E=null,w=1==y.nodeType?window.getComputedStyle(y):{};if("none"==w.display)return null;if(y==this.root||9==y.nodeType)if(b=!0,y==this.root||y==e)n&&!this.root?!r||0==r.width&&0==r.height?(y=null,E=null,g=null):E=r:E=o;else{var N=m(y),S=N&&u(N),T=N&&this._computeTargetAndRootIntersection(N,S,o);S&&T?(y=N,E=f(S,T)):(y=null,g=null)}else{var C=y.ownerDocument;y!=C.body&&y!=C.documentElement&&"visible"!=w.overflow&&(E=u(y))}if(E&&(i=E,c=g,l=void 0,s=void 0,d=void 0,p=void 0,v=void 0,h=void 0,l=Math.max(i.top,c.top),s=Math.min(i.bottom,c.bottom),d=Math.max(i.left,c.left),p=Math.min(i.right,c.right),h=s-l,g=(v=p-d)>=0&&h>=0&&{top:l,bottom:s,left:d,right:p,width:v,height:h}||null),!g)break;y=y&&m(y)}return g}},i.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=u(this.root);else{var n=p(this.root)?this.root:e,r=n.documentElement,a=n.body;t={top:0,left:0,right:r.clientWidth||a.clientWidth,width:r.clientWidth||a.clientWidth,bottom:r.clientHeight||a.clientHeight,height:r.clientHeight||a.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var a=0;a<this.thresholds.length;a++){var o=this.thresholds[a];if(o==n||o==r||o<n!=o<r)return!0}},i.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},i.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return d(n,t)&&(!this.root||n==t.ownerDocument)},i.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},i.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=o}function a(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=s(e.rootBounds),this.boundingClientRect=s(e.boundingClientRect),this.intersectionRect=s(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,a=r.width*r.height;this.intersectionRatio=n?Number((a/n).toFixed(4)):this.isIntersecting?1:0}function i(e,t){var n,r,a,o=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(o.root&&1!=o.root.nodeType&&9!=o.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,a=null,function(){a||(a=setTimeout((function(){n(),a=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(o.rootMargin),this.thresholds=this._initThresholds(o.threshold),this.root=o.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function c(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function u(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function s(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function f(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function d(e,t){for(var n=t;n;){if(n==e)return!0;n=m(n)}return!1}function m(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?a(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function p(e){return e&&9===e.nodeType}}();var m=Object.hasOwnProperty,p=Object.setPrototypeOf,v=Object.isFrozen,h=Object.getPrototypeOf,g=Object.getOwnPropertyDescriptor,y=Object.freeze,b=Object.seal,E=Object.create,w="undefined"!=typeof Reflect&&Reflect,N=w.apply,S=w.construct;N||(N=function(e,t,n){return e.apply(t,n)}),y||(y=function(e){return e}),b||(b=function(e){return e}),S||(S=function(e,t){return s(e,f(t))});var T,C=P(Array.prototype.forEach),O=P(Array.prototype.pop),k=P(Array.prototype.push),R=P(String.prototype.toLowerCase),x=P(String.prototype.toString),A=P(String.prototype.match),I=P(String.prototype.replace),M=P(String.prototype.indexOf),_=P(String.prototype.trim),L=P(RegExp.prototype.test),j=(T=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S(T,t)});function P(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return N(e,t,r)}}function D(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:R,p&&p(e,null);for(var a=t.length;a--;){var o=t[a];if("string"==typeof o){var i=n(o);i!==o&&(v(t)||(t[a]=i),o=i)}e[o]=!0}return e}function F(e){var t,n=E(null);for(t in e)!0===N(m,e,[t])&&(n[t]=e[t]);return n}function B(e,t){for(;null!==e;){var n=g(e,t);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}e=h(e)}return function(e){return null}}var H=y(["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"]),U=y(["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"]),z=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),G=y(["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"]),W=y(["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"]),V=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=y(["#text"]),q=y(["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=y(["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"]),K=y(["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"]),$=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Q=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),J=b(/<%[\w\W]*|[\w\W]*%>/gm),Z=b(/\${[\w\W]*}/gm),ee=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),te=b(/^aria-[\-\w]+$/),ne=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),re=b(/^(?:\w+script|data):/i),ae=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oe=b(/^html$/i),ie=b(/^[a-z][.\w]*(-[.\w]+)+$/i),ce=function(){return"undefined"==typeof window?null:window};var le=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce(),n=function(t){return e(t)};if(n.version="2.5.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,o=t.DocumentFragment,i=t.HTMLTemplateElement,c=t.Node,u=t.Element,s=t.NodeFilter,d=t.NamedNodeMap,m=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,p=t.HTMLFormElement,v=t.DOMParser,h=t.trustedTypes,g=u.prototype,b=B(g,"cloneNode"),E=B(g,"nextSibling"),w=B(g,"childNodes"),N=B(g,"parentNode");if("function"==typeof i){var S=a.createElement("template");S.content&&S.content.ownerDocument&&(a=S.content.ownerDocument)}var T=function(e,t){if("object"!==l(e)||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return null}}(h,r),P=T?T.createHTML(""):"",le=a,ue=le.implementation,se=le.createNodeIterator,fe=le.createDocumentFragment,de=le.getElementsByTagName,me=r.importNode,pe={};try{pe=F(a).documentMode?a.documentMode:{}}catch(e){}var ve={};n.isSupported="function"==typeof N&&ue&&void 0!==ue.createHTMLDocument&&9!==pe;var he,ge,ye=Q,be=J,Ee=Z,we=ee,Ne=te,Se=re,Te=ae,Ce=ie,Oe=ne,ke=null,Re=D({},[].concat(f(H),f(U),f(z),f(W),f(Y))),xe=null,Ae=D({},[].concat(f(q),f(X),f(K),f($))),Ie=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}})),Me=null,_e=null,Le=!0,je=!0,Pe=!1,De=!0,Fe=!1,Be=!0,He=!1,Ue=!1,ze=!1,Ge=!1,We=!1,Ve=!1,Ye=!0,qe=!1,Xe=!0,Ke=!1,$e={},Qe=null,Je=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"]),Ze=null,et=D({},["audio","video","img","source","image","track"]),tt=null,nt=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",it=ot,ct=!1,lt=null,ut=D({},[rt,at,ot],x),st=["application/xhtml+xml","text/html"],ft=null,dt=a.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},pt=function(e){ft&&ft===e||(e&&"object"===l(e)||(e={}),e=F(e),he=he=-1===st.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===he?x:R,ke="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS,ge):Re,xe="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR,ge):Ae,lt="ALLOWED_NAMESPACES"in e?D({},e.ALLOWED_NAMESPACES,x):ut,tt="ADD_URI_SAFE_ATTR"in e?D(F(nt),e.ADD_URI_SAFE_ATTR,ge):nt,Ze="ADD_DATA_URI_TAGS"in e?D(F(et),e.ADD_DATA_URI_TAGS,ge):et,Qe="FORBID_CONTENTS"in e?D({},e.FORBID_CONTENTS,ge):Je,Me="FORBID_TAGS"in e?D({},e.FORBID_TAGS,ge):{},_e="FORBID_ATTR"in e?D({},e.FORBID_ATTR,ge):{},$e="USE_PROFILES"in e&&e.USE_PROFILES,Le=!1!==e.ALLOW_ARIA_ATTR,je=!1!==e.ALLOW_DATA_ATTR,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Fe=e.SAFE_FOR_TEMPLATES||!1,Be=!1!==e.SAFE_FOR_XML,He=e.WHOLE_DOCUMENT||!1,Ge=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,qe=e.SANITIZE_NAMED_PROPS||!1,Xe=!1!==e.KEEP_CONTENT,Ke=e.IN_PLACE||!1,Oe=e.ALLOWED_URI_REGEXP||Oe,it=e.NAMESPACE||ot,Ie=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fe&&(je=!1),We&&(Ge=!0),$e&&(ke=D({},f(Y)),xe=[],!0===$e.html&&(D(ke,H),D(xe,q)),!0===$e.svg&&(D(ke,U),D(xe,X),D(xe,$)),!0===$e.svgFilters&&(D(ke,z),D(xe,X),D(xe,$)),!0===$e.mathMl&&(D(ke,W),D(xe,K),D(xe,$))),e.ADD_TAGS&&(ke===Re&&(ke=F(ke)),D(ke,e.ADD_TAGS,ge)),e.ADD_ATTR&&(xe===Ae&&(xe=F(xe)),D(xe,e.ADD_ATTR,ge)),e.ADD_URI_SAFE_ATTR&&D(tt,e.ADD_URI_SAFE_ATTR,ge),e.FORBID_CONTENTS&&(Qe===Je&&(Qe=F(Qe)),D(Qe,e.FORBID_CONTENTS,ge)),Xe&&(ke["#text"]=!0),He&&D(ke,["html","head","body"]),ke.table&&(D(ke,["tbody"]),delete Me.tbody),y&&y(e),ft=e)},vt=D({},["mi","mo","mn","ms","mtext"]),ht=D({},["annotation-xml"]),gt=D({},["title","style","font","a","script"]),yt=D({},U);D(yt,z),D(yt,G);var bt=D({},W);D(bt,V);var Et=function(e){k(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=P}catch(t){e.remove()}}},wt=function(e,t){try{k(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){k(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Ge||We)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Nt=function(e){var t,n;if(ze)e="<remove></remove>"+e;else{var r=A(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&it===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=T?T.createHTML(e):e;if(it===ot)try{t=(new v).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=ct?P:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),it===ot?de.call(t,He?"html":"body")[0]:He?t.documentElement:i},St=function(e){return se.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null,!1)},Tt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof m)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ct=function(e){return"object"===l(c)?e instanceof c:e&&"object"===l(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ot=function(e,t,r){ve[e]&&C(ve[e],(function(e){e.call(n,t,r,ft)}))},kt=function(e){var t;if(Ot("beforeSanitizeElements",e,null),Tt(e))return Et(e),!0;if(L(/[\u0080-\uFFFF]/,e.nodeName))return Et(e),!0;var r=ge(e.nodeName);if(Ot("uponSanitizeElement",e,{tagName:r,allowedTags:ke}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&(!Ct(e.content)||!Ct(e.content.firstElementChild))&&L(/<[/\w]/g,e.innerHTML)&&L(/<[/\w]/g,e.textContent))return Et(e),!0;if("select"===r&&L(/<template/i,e.innerHTML))return Et(e),!0;if(7===e.nodeType)return Et(e),!0;if(Be&&8===e.nodeType&&L(/<[/\w]/g,e.data))return Et(e),!0;if(!ke[r]||Me[r]){if(!Me[r]&&xt(r)){if(Ie.tagNameCheck instanceof RegExp&&L(Ie.tagNameCheck,r))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(r))return!1}if(Xe&&!Qe[r]){var a=N(e)||e.parentNode,o=w(e)||e.childNodes;if(o&&a)for(var i=o.length-1;i>=0;--i){var c=b(o[i],!0);c.__removalCount=(e.__removalCount||0)+1,a.insertBefore(c,E(e))}}return Et(e),!0}return e instanceof u&&!function(e){var t=N(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=R(e.tagName),r=R(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===at?t.namespaceURI===ot?"svg"===n:t.namespaceURI===rt?"svg"===n&&("annotation-xml"===r||vt[r]):Boolean(yt[n]):e.namespaceURI===rt?t.namespaceURI===ot?"math"===n:t.namespaceURI===at?"math"===n&&ht[r]:Boolean(bt[n]):e.namespaceURI===ot?!(t.namespaceURI===at&&!ht[r])&&!(t.namespaceURI===rt&&!vt[r])&&!bt[n]&&(gt[n]||!yt[n]):!("application/xhtml+xml"!==he||!lt[e.namespaceURI]))}(e)?(Et(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!L(/<\/no(script|embed|frames)/i,e.innerHTML)?(Fe&&3===e.nodeType&&(t=e.textContent,t=I(t,ye," "),t=I(t,be," "),t=I(t,Ee," "),e.textContent!==t&&(k(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ot("afterSanitizeElements",e,null),!1):(Et(e),!0)},Rt=function(e,t,n){if(Ye&&("id"===t||"name"===t)&&(n in a||n in dt))return!1;if(je&&!_e[t]&&L(we,t));else if(Le&&L(Ne,t));else if(!xe[t]||_e[t]){if(!(xt(e)&&(Ie.tagNameCheck instanceof RegExp&&L(Ie.tagNameCheck,e)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(e))&&(Ie.attributeNameCheck instanceof RegExp&&L(Ie.attributeNameCheck,t)||Ie.attributeNameCheck instanceof Function&&Ie.attributeNameCheck(t))||"is"===t&&Ie.allowCustomizedBuiltInElements&&(Ie.tagNameCheck instanceof RegExp&&L(Ie.tagNameCheck,n)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))))return!1}else if(tt[t]);else if(L(Oe,I(n,Te,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==M(n,"data:")||!Ze[e]){if(Pe&&!L(Se,I(n,Te,"")));else if(n)return!1}else;return!0},xt=function(e){return"annotation-xml"!==e&&A(e,Ce)},At=function(e){var t,r,a,o;Ot("beforeSanitizeAttributes",e,null);var i=e.attributes;if(i&&!Tt(e)){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(o=i.length;o--;){var u=t=i[o],s=u.name,f=u.namespaceURI;if(r="value"===s?t.value:_(t.value),a=ge(s),c.attrName=a,c.attrValue=r,c.keepAttr=!0,c.forceKeepAttr=void 0,Ot("uponSanitizeAttribute",e,c),r=c.attrValue,!c.forceKeepAttr&&(wt(s,e),c.keepAttr))if(De||!L(/\/>/i,r)){Fe&&(r=I(r,ye," "),r=I(r,be," "),r=I(r,Ee," "));var d=ge(e.nodeName);if(Rt(d,a,r))if(!qe||"id"!==a&&"name"!==a||(wt(s,e),r="user-content-"+r),Be&&L(/((--!?|])>)|<\/(style|title)/i,r))wt(s,e);else{if(T&&"object"===l(h)&&"function"==typeof h.getAttributeType)if(f);else switch(h.getAttributeType(d,a)){case"TrustedHTML":r=T.createHTML(r);break;case"TrustedScriptURL":r=T.createScriptURL(r)}try{f?e.setAttributeNS(f,s,r):e.setAttribute(s,r),Tt(e)?Et(e):O(n.removed)}catch(e){}}}else wt(s,e)}Ot("afterSanitizeAttributes",e,null)}},It=function e(t){var n,r=St(t);for(Ot("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ot("uponSanitizeShadowNode",n,null),kt(n),At(n),n.content instanceof o&&e(n.content);Ot("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var a,i,u,s,f,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ct=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ct(e)){if("function"!=typeof e.toString)throw j("toString is not a function");if("string"!=typeof(e=e.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===l(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Ct(e))return t.toStaticHTML(e.outerHTML)}return e}if(Ue||pt(d),n.removed=[],"string"==typeof e&&(Ke=!1),Ke){if(e.nodeName){var m=ge(e.nodeName);if(!ke[m]||Me[m])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(i=(a=Nt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?a=i:a.appendChild(i);else{if(!Ge&&!Fe&&!He&&-1===e.indexOf("<"))return T&&Ve?T.createHTML(e):e;if(!(a=Nt(e)))return Ge?null:Ve?P:""}a&&ze&&Et(a.firstChild);for(var p=St(Ke?e:a);u=p.nextNode();)3===u.nodeType&&u===s||(kt(u),At(u),u.content instanceof o&&It(u.content),s=u);if(s=null,Ke)return e;if(Ge){if(We)for(f=fe.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return(xe.shadowroot||xe.shadowrootmod)&&(f=me.call(r,f,!0)),f}var v=He?a.outerHTML:a.innerHTML;return He&&ke["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&L(oe,a.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+v),Fe&&(v=I(v,ye," "),v=I(v,be," "),v=I(v,Ee," ")),T&&Ve?T.createHTML(v):v},n.setConfig=function(e){pt(e),Ue=!0},n.clearConfig=function(){ft=null,Ue=!1},n.isValidAttribute=function(e,t,n){ft||pt({});var r=ge(e),a=ge(t);return Rt(r,a,n)},n.addHook=function(e,t){"function"==typeof t&&(ve[e]=ve[e]||[],k(ve[e],t))},n.removeHook=function(e){if(ve[e])return O(ve[e])},n.removeHooks=function(e){ve[e]&&(ve[e]=[])},n.removeAllHooks=function(){ve={}},n}(),ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fe={exports:{}},de=function(e){return e&&e.Math===Math&&e},me=de("object"==typeof globalThis&&globalThis)||de("object"==typeof window&&window)||de("object"==typeof self&&self)||de("object"==typeof ue&&ue)||de("object"==typeof ue&&ue)||function(){return this}()||Function("return this")(),pe=function(e){try{return!!e()}catch(e){return!0}},ve=!pe((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),he=ve,ge=Function.prototype,ye=ge.apply,be=ge.call,Ee="object"==typeof Reflect&&Reflect.apply||(he?be.bind(ye):function(){return be.apply(ye,arguments)}),we=ve,Ne=Function.prototype,Se=Ne.call,Te=we&&Ne.bind.bind(Se,Se),Ce=we?Te:function(e){return function(){return Se.apply(e,arguments)}},Oe=Ce,ke=Oe({}.toString),Re=Oe("".slice),xe=function(e){return Re(ke(e),8,-1)},Ae=xe,Ie=Ce,Me=function(e){if("Function"===Ae(e))return Ie(e)},_e="object"==typeof document&&document.all,Le=void 0===_e&&void 0!==_e?function(e){return"function"==typeof e||e===_e}:function(e){return"function"==typeof e},je={},Pe=!pe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),De=ve,Fe=Function.prototype.call,Be=De?Fe.bind(Fe):function(){return Fe.apply(Fe,arguments)},He={},Ue={}.propertyIsEnumerable,ze=Object.getOwnPropertyDescriptor,Ge=ze&&!Ue.call({1:2},1);He.f=Ge?function(e){var t=ze(this,e);return!!t&&t.enumerable}:Ue;var We,Ve,Ye=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qe=pe,Xe=xe,Ke=Object,$e=Ce("".split),Qe=qe((function(){return!Ke("z").propertyIsEnumerable(0)}))?function(e){return"String"===Xe(e)?$e(e,""):Ke(e)}:Ke,Je=function(e){return null==e},Ze=Je,et=TypeError,tt=function(e){if(Ze(e))throw new et("Can't call method on "+e);return e},nt=Qe,rt=tt,at=function(e){return nt(rt(e))},ot=Le,it=function(e){return"object"==typeof e?null!==e:ot(e)},ct={},lt=ct,ut=me,st=Le,ft=function(e){return st(e)?e:void 0},dt=function(e,t){return arguments.length<2?ft(lt[e])||ft(ut[e]):lt[e]&<[e][t]||ut[e]&&ut[e][t]},mt=Ce({}.isPrototypeOf),pt=me.navigator,vt=pt&&pt.userAgent,ht=vt?String(vt):"",gt=me,yt=ht,bt=gt.process,Et=gt.Deno,wt=bt&&bt.versions||Et&&Et.version,Nt=wt&&wt.v8;Nt&&(Ve=(We=Nt.split("."))[0]>0&&We[0]<4?1:+(We[0]+We[1])),!Ve&&yt&&(!(We=yt.match(/Edge\/(\d+)/))||We[1]>=74)&&(We=yt.match(/Chrome\/(\d+)/))&&(Ve=+We[1]);var St=Ve,Tt=St,Ct=pe,Ot=me.String,kt=!!Object.getOwnPropertySymbols&&!Ct((function(){var e=Symbol("symbol detection");return!Ot(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tt&&Tt<41})),Rt=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,xt=dt,At=Le,It=mt,Mt=Object,_t=Rt?function(e){return"symbol"==typeof e}:function(e){var t=xt("Symbol");return At(t)&&It(t.prototype,Mt(e))},Lt=String,jt=function(e){try{return Lt(e)}catch(e){return"Object"}},Pt=Le,Dt=jt,Ft=TypeError,Bt=function(e){if(Pt(e))return e;throw new Ft(Dt(e)+" is not a function")},Ht=Bt,Ut=Je,zt=function(e,t){var n=e[t];return Ut(n)?void 0:Ht(n)},Gt=Be,Wt=Le,Vt=it,Yt=TypeError,qt={exports:{}},Xt=me,Kt=Object.defineProperty,$t=me,Qt=function(e,t){try{Kt(Xt,e,{value:t,configurable:!0,writable:!0})}catch(n){Xt[e]=t}return t},Jt="__core-js_shared__",Zt=qt.exports=$t[Jt]||Qt(Jt,{});(Zt.versions||(Zt.versions=[])).push({version:"3.41.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"});var en=qt.exports,tn=en,nn=function(e,t){return tn[e]||(tn[e]=t||{})},rn=tt,an=Object,on=function(e){return an(rn(e))},cn=on,ln=Ce({}.hasOwnProperty),un=Object.hasOwn||function(e,t){return ln(cn(e),t)},sn=Ce,fn=0,dn=Math.random(),mn=sn(1..toString),pn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+mn(++fn+dn,36)},vn=nn,hn=un,gn=pn,yn=kt,bn=Rt,En=me.Symbol,wn=vn("wks"),Nn=bn?En.for||En:En&&En.withoutSetter||gn,Sn=function(e){return hn(wn,e)||(wn[e]=yn&&hn(En,e)?En[e]:Nn("Symbol."+e)),wn[e]},Tn=Be,Cn=it,On=_t,kn=zt,Rn=function(e,t){var n,r;if("string"===t&&Wt(n=e.toString)&&!Vt(r=Gt(n,e)))return r;if(Wt(n=e.valueOf)&&!Vt(r=Gt(n,e)))return r;if("string"!==t&&Wt(n=e.toString)&&!Vt(r=Gt(n,e)))return r;throw new Yt("Can't convert object to primitive value")},xn=TypeError,An=Sn("toPrimitive"),In=function(e,t){if(!Cn(e)||On(e))return e;var n,r=kn(e,An);if(r){if(void 0===t&&(t="default"),n=Tn(r,e,t),!Cn(n)||On(n))return n;throw new xn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Rn(e,t)},Mn=_t,_n=function(e){var t=In(e,"string");return Mn(t)?t:t+""},Ln=it,jn=me.document,Pn=Ln(jn)&&Ln(jn.createElement),Dn=function(e){return Pn?jn.createElement(e):{}},Fn=Dn,Bn=!Pe&&!pe((function(){return 7!==Object.defineProperty(Fn("div"),"a",{get:function(){return 7}}).a})),Hn=Pe,Un=Be,zn=He,Gn=Ye,Wn=at,Vn=_n,Yn=un,qn=Bn,Xn=Object.getOwnPropertyDescriptor;je.f=Hn?Xn:function(e,t){if(e=Wn(e),t=Vn(t),qn)try{return Xn(e,t)}catch(e){}if(Yn(e,t))return Gn(!Un(zn.f,e,t),e[t])};var Kn=pe,$n=Le,Qn=/#|\.prototype\./,Jn=function(e,t){var n=er[Zn(e)];return n===nr||n!==tr&&($n(t)?Kn(t):!!t)},Zn=Jn.normalize=function(e){return String(e).replace(Qn,".").toLowerCase()},er=Jn.data={},tr=Jn.NATIVE="N",nr=Jn.POLYFILL="P",rr=Jn,ar=Bt,or=ve,ir=Me(Me.bind),cr=function(e,t){return ar(e),void 0===t?e:or?ir(e,t):function(){return e.apply(t,arguments)}},lr={},ur=Pe&&pe((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),sr=it,fr=String,dr=TypeError,mr=function(e){if(sr(e))return e;throw new dr(fr(e)+" is not an object")},pr=Pe,vr=Bn,hr=ur,gr=mr,yr=_n,br=TypeError,Er=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,Nr="enumerable",Sr="configurable",Tr="writable";lr.f=pr?hr?function(e,t,n){if(gr(e),t=yr(t),gr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Tr in n&&!n[Tr]){var r=wr(e,t);r&&r[Tr]&&(e[t]=n.value,n={configurable:Sr in n?n[Sr]:r[Sr],enumerable:Nr in n?n[Nr]:r[Nr],writable:!1})}return Er(e,t,n)}:Er:function(e,t,n){if(gr(e),t=yr(t),gr(n),vr)try{return Er(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new br("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Cr=lr,Or=Ye,kr=Pe?function(e,t,n){return Cr.f(e,t,Or(1,n))}:function(e,t,n){return e[t]=n,e},Rr=me,xr=Ee,Ar=Me,Ir=Le,Mr=je.f,_r=rr,Lr=ct,jr=cr,Pr=kr,Dr=un,Fr=function(e){var t=function(n,r,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,a)}return xr(e,this,arguments)};return t.prototype=e.prototype,t},Br=function(e,t){var n,r,a,o,i,c,l,u,s,f=e.target,d=e.global,m=e.stat,p=e.proto,v=d?Rr:m?Rr[f]:Rr[f]&&Rr[f].prototype,h=d?Lr:Lr[f]||Pr(Lr,f,{})[f],g=h.prototype;for(o in t)r=!(n=_r(d?o:f+(m?".":"#")+o,e.forced))&&v&&Dr(v,o),c=h[o],r&&(l=e.dontCallGetSet?(s=Mr(v,o))&&s.value:v[o]),i=r&&l?l:t[o],(n||p||typeof c!=typeof i)&&(u=e.bind&&r?jr(i,Rr):e.wrap&&r?Fr(i):p&&Ir(i)?Ar(i):i,(e.sham||i&&i.sham||c&&c.sham)&&Pr(u,"sham",!0),Pr(h,o,u),p&&(Dr(Lr,a=f+"Prototype")||Pr(Lr,a,{}),Pr(Lr[a],o,i),e.real&&g&&(n||!g[o])&&Pr(g,o,i)))},Hr=Br,Ur=Pe,zr=lr.f;Hr({target:"Object",stat:!0,forced:Object.defineProperty!==zr,sham:!Ur},{defineProperty:zr});var Gr=ct.Object,Wr=fe.exports=function(e,t,n){return Gr.defineProperty(e,t,n)};Gr.defineProperty.sham&&(Wr.sham=!0);var Vr=fe.exports,Yr=se(Vr),qr={passiveListener:function(){var e=!1;try{var t=Yr({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e},smoothScroll:function(){return"scrollBehavior"in document.documentElement.style},touch:function(){return"ontouchstart"in window}};function Xr(e){return qr[e]()}var Kr=pn,$r=nn("keys"),Qr=function(e){return $r[e]||($r[e]=Kr(e))},Jr=!pe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Zr=un,ea=Le,ta=on,na=Jr,ra=Qr("IE_PROTO"),aa=Object,oa=aa.prototype,ia=na?aa.getPrototypeOf:function(e){var t=ta(e);if(Zr(t,ra))return t[ra];var n=t.constructor;return ea(n)&&t instanceof n?n.prototype:t instanceof aa?oa:null},ca=Ce,la=Bt,ua=it,sa=function(e){return ua(e)||null===e},fa=String,da=TypeError,ma=function(e,t,n){try{return ca(la(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},pa=it,va=tt,ha=function(e){if(sa(e))return e;throw new da("Can't set "+fa(e)+" as a prototype")},ga=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ma(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return va(n),ha(r),pa(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),ya={},ba=Math.ceil,Ea=Math.floor,wa=Math.trunc||function(e){var t=+e;return(t>0?Ea:ba)(t)},Na=function(e){var t=+e;return t!=t||0===t?0:wa(t)},Sa=Na,Ta=Math.max,Ca=Math.min,Oa=function(e,t){var n=Sa(e);return n<0?Ta(n+t,0):Ca(n,t)},ka=Na,Ra=Math.min,xa=function(e){var t=ka(e);return t>0?Ra(t,9007199254740991):0},Aa=function(e){return xa(e.length)},Ia=at,Ma=Oa,_a=Aa,La=function(e){return function(t,n,r){var a=Ia(t),o=_a(a);if(0===o)return!e&&-1;var i,c=Ma(r,o);if(e&&n!=n){for(;o>c;)if((i=a[c++])!=i)return!0}else for(;o>c;c++)if((e||c in a)&&a[c]===n)return e||c||0;return!e&&-1}},ja={includes:La(!0),indexOf:La(!1)},Pa={},Da=un,Fa=at,Ba=ja.indexOf,Ha=Pa,Ua=Ce([].push),za=function(e,t){var n,r=Fa(e),a=0,o=[];for(n in r)!Da(Ha,n)&&Da(r,n)&&Ua(o,n);for(;t.length>a;)Da(r,n=t[a++])&&(~Ba(o,n)||Ua(o,n));return o},Ga=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wa=za,Va=Ga.concat("length","prototype");ya.f=Object.getOwnPropertyNames||function(e){return Wa(e,Va)};var Ya={};Ya.f=Object.getOwnPropertySymbols;var qa=dt,Xa=ya,Ka=Ya,$a=mr,Qa=Ce([].concat),Ja=qa("Reflect","ownKeys")||function(e){var t=Xa.f($a(e)),n=Ka.f;return n?Qa(t,n(e)):t},Za=un,eo=Ja,to=je,no=lr,ro={},ao=za,oo=Ga,io=Object.keys||function(e){return ao(e,oo)},co=Pe,lo=ur,uo=lr,so=mr,fo=at,mo=io;ro.f=co&&!lo?Object.defineProperties:function(e,t){so(e);for(var n,r=fo(t),a=mo(t),o=a.length,i=0;o>i;)uo.f(e,n=a[i++],r[n]);return e};var po,vo=dt("document","documentElement"),ho=mr,go=ro,yo=Ga,bo=Pa,Eo=vo,wo=Dn,No="prototype",So="script",To=Qr("IE_PROTO"),Co=function(){},Oo=function(e){return"<"+So+">"+e+"</"+So+">"},ko=function(e){e.write(Oo("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ro=function(){try{po=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Ro="undefined"!=typeof document?document.domain&&po?ko(po):(t=wo("iframe"),n="java"+So+":",t.style.display="none",Eo.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Oo("document.F=Object")),e.close(),e.F):ko(po);for(var r=yo.length;r--;)delete Ro[No][yo[r]];return Ro()};bo[To]=!0;var xo=Object.create||function(e,t){var n;return null!==e?(Co[No]=ho(e),n=new Co,Co[No]=null,n[To]=e):n=Ro(),void 0===t?n:go.f(n,t)},Ao=it,Io=kr,Mo=Error,_o=Ce("".replace),Lo=String(new Mo("zxcasd").stack),jo=/\n\s*at [^:]*:[^\n]*/,Po=jo.test(Lo),Do=Ye,Fo=!pe((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Do(1,7)),7!==e.stack)})),Bo=kr,Ho=function(e,t){if(Po&&"string"==typeof e&&!Mo.prepareStackTrace)for(;t--;)e=_o(e,jo,"");return e},Uo=Fo,zo=Error.captureStackTrace,Go={},Wo=Go,Vo=Sn("iterator"),Yo=Array.prototype,qo=function(e){return void 0!==e&&(Wo.Array===e||Yo[Vo]===e)},Xo={};Xo[Sn("toStringTag")]="z";var Ko="[object z]"===String(Xo),$o=Ko,Qo=Le,Jo=xe,Zo=Sn("toStringTag"),ei=Object,ti="Arguments"===Jo(function(){return arguments}()),ni=$o?Jo:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ei(e),Zo))?n:ti?Jo(t):"Object"===(r=Jo(t))&&Qo(t.callee)?"Arguments":r},ri=ni,ai=zt,oi=Je,ii=Go,ci=Sn("iterator"),li=function(e){if(!oi(e))return ai(e,ci)||ai(e,"@@iterator")||ii[ri(e)]},ui=Be,si=Bt,fi=mr,di=jt,mi=li,pi=TypeError,vi=function(e,t){var n=arguments.length<2?mi(e):t;if(si(n))return fi(ui(n,e));throw new pi(di(e)+" is not iterable")},hi=Be,gi=mr,yi=zt,bi=function(e,t,n){var r,a;gi(e);try{if(!(r=yi(e,"return"))){if("throw"===t)throw n;return n}r=hi(r,e)}catch(e){a=!0,r=e}if("throw"===t)throw n;if(a)throw r;return gi(r),n},Ei=cr,wi=Be,Ni=mr,Si=jt,Ti=qo,Ci=Aa,Oi=mt,ki=vi,Ri=li,xi=bi,Ai=TypeError,Ii=function(e,t){this.stopped=e,this.result=t},Mi=Ii.prototype,_i=function(e,t,n){var r,a,o,i,c,l,u,s=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),m=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=Ei(t,s),h=function(e){return r&&xi(r,"normal",e),new Ii(!0,e)},g=function(e){return f?(Ni(e),p?v(e[0],e[1],h):v(e[0],e[1])):p?v(e,h):v(e)};if(d)r=e.iterator;else if(m)r=e;else{if(!(a=Ri(e)))throw new Ai(Si(e)+" is not iterable");if(Ti(a)){for(o=0,i=Ci(e);i>o;o++)if((c=g(e[o]))&&Oi(Mi,c))return c;return new Ii(!1)}r=ki(e,a)}for(l=d?e.next:r.next;!(u=wi(l,r)).done;){try{c=g(u.value)}catch(e){xi(r,"throw",e)}if("object"==typeof c&&c&&Oi(Mi,c))return c}return new Ii(!1)},Li=ni,ji=String,Pi=function(e){if("Symbol"===Li(e))throw new TypeError("Cannot convert a Symbol value to a string");return ji(e)},Di=Pi,Fi=Br,Bi=mt,Hi=ia,Ui=ga,zi=function(e,t,n){for(var r=eo(t),a=no.f,o=to.f,i=0;i<r.length;i++){var c=r[i];Za(e,c)||n&&Za(n,c)||a(e,c,o(t,c))}},Gi=xo,Wi=kr,Vi=Ye,Yi=function(e,t){Ao(t)&&"cause"in t&&Io(e,"cause",t.cause)},qi=function(e,t,n,r){Uo&&(zo?zo(e,t):Bo(e,"stack",Ho(n,r)))},Xi=_i,Ki=function(e,t){return void 0===e?arguments.length<2?"":t:Di(e)},$i=Sn("toStringTag"),Qi=Error,Ji=[].push,Zi=function(e,t){var n,r=Bi(ec,this);Ui?n=Ui(new Qi,r?Hi(this):ec):(n=r?this:Gi(ec),Wi(n,$i,"Error")),void 0!==t&&Wi(n,"message",Ki(t)),qi(n,Zi,n.stack,1),arguments.length>2&&Yi(n,arguments[2]);var a=[];return Xi(e,Ji,{that:a}),Wi(n,"errors",a),n};Ui?Ui(Zi,Qi):zi(Zi,Qi,{name:!0});var ec=Zi.prototype=Gi(Qi.prototype,{constructor:Vi(1,Zi),message:Vi(1,""),name:Vi(1,"AggregateError")});Fi({global:!0,constructor:!0,arity:2},{AggregateError:Zi});var tc,nc,rc,ac=Le,oc=me.WeakMap,ic=ac(oc)&&/native code/.test(String(oc)),cc=me,lc=it,uc=kr,sc=un,fc=en,dc=Qr,mc=Pa,pc="Object already initialized",vc=cc.TypeError,hc=cc.WeakMap;if(ic||fc.state){var gc=fc.state||(fc.state=new hc);gc.get=gc.get,gc.has=gc.has,gc.set=gc.set,tc=function(e,t){if(gc.has(e))throw new vc(pc);return t.facade=e,gc.set(e,t),t},nc=function(e){return gc.get(e)||{}},rc=function(e){return gc.has(e)}}else{var yc=dc("state");mc[yc]=!0,tc=function(e,t){if(sc(e,yc))throw new vc(pc);return t.facade=e,uc(e,yc,t),t},nc=function(e){return sc(e,yc)?e[yc]:{}},rc=function(e){return sc(e,yc)}}var bc,Ec,wc,Nc={set:tc,get:nc,has:rc,enforce:function(e){return rc(e)?nc(e):tc(e,{})},getterFor:function(e){return function(t){var n;if(!lc(t)||(n=nc(t)).type!==e)throw new vc("Incompatible receiver, "+e+" required");return n}}},Sc=Pe,Tc=un,Cc=Function.prototype,Oc=Sc&&Object.getOwnPropertyDescriptor,kc=Tc(Cc,"name"),Rc={EXISTS:kc,PROPER:kc&&"something"===function(){}.name,CONFIGURABLE:kc&&(!Sc||Sc&&Oc(Cc,"name").configurable)},xc=kr,Ac=function(e,t,n,r){return r&&r.enumerable?e[t]=n:xc(e,t,n),e},Ic=pe,Mc=Le,_c=it,Lc=xo,jc=ia,Pc=Ac,Dc=Sn("iterator"),Fc=!1;[].keys&&("next"in(wc=[].keys())?(Ec=jc(jc(wc)))!==Object.prototype&&(bc=Ec):Fc=!0);var Bc=!_c(bc)||Ic((function(){var e={};return bc[Dc].call(e)!==e}));Mc((bc=Bc?{}:Lc(bc))[Dc])||Pc(bc,Dc,(function(){return this}));var Hc={IteratorPrototype:bc,BUGGY_SAFARI_ITERATORS:Fc},Uc=ni,zc=Ko?{}.toString:function(){return"[object "+Uc(this)+"]"},Gc=Ko,Wc=lr.f,Vc=kr,Yc=un,qc=zc,Xc=Sn("toStringTag"),Kc=function(e,t,n,r){var a=n?e:e&&e.prototype;a&&(Yc(a,Xc)||Wc(a,Xc,{configurable:!0,value:t}),r&&!Gc&&Vc(a,"toString",qc))},$c=Hc.IteratorPrototype,Qc=xo,Jc=Ye,Zc=Kc,el=Go,tl=function(){return this},nl=Br,rl=Be,al=Rc,ol=function(e,t,n,r){var a=t+" Iterator";return e.prototype=Qc($c,{next:Jc(+!r,n)}),Zc(e,a,!1,!0),el[a]=tl,e},il=ia,cl=Kc,ll=Ac,ul=Go,sl=Hc,fl=al.PROPER,dl=sl.BUGGY_SAFARI_ITERATORS,ml=Sn("iterator"),pl="keys",vl="values",hl="entries",gl=function(){return this},yl=function(e,t,n,r,a,o,i){ol(n,t,r);var c,l,u,s=function(e){if(e===a&&v)return v;if(!dl&&e&&e in m)return m[e];switch(e){case pl:case vl:case hl:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,m=e.prototype,p=m[ml]||m["@@iterator"]||a&&m[a],v=!dl&&p||s(a),h="Array"===t&&m.entries||p;if(h&&(c=il(h.call(new e)))!==Object.prototype&&c.next&&(cl(c,f,!0,!0),ul[f]=gl),fl&&a===vl&&p&&p.name!==vl&&(d=!0,v=function(){return rl(p,this)}),a)if(l={values:s(vl),keys:o?v:s(pl),entries:s(hl)},i)for(u in l)(dl||d||!(u in m))&&ll(m,u,l[u]);else nl({target:t,proto:!0,forced:dl||d},l);return i&&m[ml]!==v&&ll(m,ml,v,{name:a}),ul[t]=v,l},bl=function(e,t){return{value:e,done:t}},El=at,wl=function(){},Nl=Go,Sl=Nc,Tl=(lr.f,yl),Cl=bl,Ol="Array Iterator",kl=Sl.set,Rl=Sl.getterFor(Ol);Tl(Array,"Array",(function(e,t){kl(this,{type:Ol,target:El(e),index:0,kind:t})}),(function(){var e=Rl(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,Cl(void 0,!0);switch(e.kind){case"keys":return Cl(n,!1);case"values":return Cl(t[n],!1)}return Cl([n,t[n]],!1)}),"values");Nl.Arguments=Nl.Array;wl(),wl(),wl();var xl=me,Al=ht,Il=xe,Ml=function(e){return Al.slice(0,e.length)===e},_l=Ml("Bun/")?"BUN":Ml("Cloudflare-Workers")?"CLOUDFLARE":Ml("Deno/")?"DENO":Ml("Node.js/")?"NODE":xl.Bun&&"string"==typeof Bun.version?"BUN":xl.Deno&&"object"==typeof Deno.version?"DENO":"process"===Il(xl.process)?"NODE":xl.window&&xl.document?"BROWSER":"REST",Ll="NODE"===_l,jl=lr,Pl=function(e,t,n){return jl.f(e,t,n)},Dl=dt,Fl=Pl,Bl=Pe,Hl=Sn("species"),Ul=mt,zl=TypeError,Gl=Le,Wl=en,Vl=Ce(Function.toString);Gl(Wl.inspectSource)||(Wl.inspectSource=function(e){return Vl(e)});var Yl=Wl.inspectSource,ql=Ce,Xl=pe,Kl=Le,$l=ni,Ql=Yl,Jl=function(){},Zl=dt("Reflect","construct"),eu=/^\s*(?:class|function)\b/,tu=ql(eu.exec),nu=!eu.test(Jl),ru=function(e){if(!Kl(e))return!1;try{return Zl(Jl,[],e),!0}catch(e){return!1}},au=function(e){if(!Kl(e))return!1;switch($l(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return nu||!!tu(eu,Ql(e))}catch(e){return!0}};au.sham=!0;var ou,iu,cu,lu,uu=!Zl||Xl((function(){var e;return ru(ru.call)||!ru(Object)||!ru((function(){e=!0}))||e}))?au:ru,su=uu,fu=jt,du=TypeError,mu=function(e){if(su(e))return e;throw new du(fu(e)+" is not a