@sumcode/svgify
Version:
A lightweight React component designed to dynamically render and style SVG icons.
31 lines (29 loc) • 83.6 kB
JavaScript
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const K=require("react");var N=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pt={exports:{}},ge={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ur;function fi(){if(ur)return ge;ur=1;var e=K,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(l,f,u){var c,p={},S=null,O=null;u!==void 0&&(S=""+u),f.key!==void 0&&(S=""+f.key),f.ref!==void 0&&(O=f.ref);for(c in f)n.call(f,c)&&!o.hasOwnProperty(c)&&(p[c]=f[c]);if(l&&l.defaultProps)for(c in f=l.defaultProps,f)p[c]===void 0&&(p[c]=f[c]);return{$$typeof:t,type:l,key:S,ref:O,props:p,_owner:i.current}}return ge.Fragment=r,ge.jsx=a,ge.jsxs=a,ge}var ye={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var fr;function di(){return fr||(fr=1,process.env.NODE_ENV!=="production"&&function(){var e=K,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator";function y(s){if(s===null||typeof s!="object")return null;var h=m&&s[m]||s[g];return typeof h=="function"?h:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(s){{for(var h=arguments.length,v=new Array(h>1?h-1:0),b=1;b<h;b++)v[b-1]=arguments[b];x("error",s,v)}}function x(s,h,v){{var b=C.ReactDebugCurrentFrame,A=b.getStackAddendum();A!==""&&(h+="%s",v=v.concat([A]));var P=v.map(function(R){return String(R)});P.unshift("Warning: "+h),Function.prototype.apply.call(console[s],console,P)}}var M=!1,j=!1,L=!1,H=!1,se=!1,de;de=Symbol.for("react.module.reference");function jn(s){return!!(typeof s=="string"||typeof s=="function"||s===n||s===o||se||s===i||s===u||s===c||H||s===O||M||j||L||typeof s=="object"&&s!==null&&(s.$$typeof===S||s.$$typeof===p||s.$$typeof===a||s.$$typeof===l||s.$$typeof===f||s.$$typeof===de||s.getModuleId!==void 0))}function Ln(s,h,v){var b=s.displayName;if(b)return b;var A=h.displayName||h.name||"";return A!==""?v+"("+A+")":v}function Ht(s){return s.displayName||"Context"}function Y(s){if(s==null)return null;if(typeof s.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case l:var h=s;return Ht(h)+".Consumer";case a:var v=s;return Ht(v._context)+".Provider";case f:return Ln(s,s.render,"ForwardRef");case p:var b=s.displayName||null;return b!==null?b:Y(s.type)||"Memo";case S:{var A=s,P=A._payload,R=A._init;try{return Y(R(P))}catch{return null}}}return null}var te=Object.assign,pe=0,Vt,qt,$t,zt,Wt,Gt,Xt;function Jt(){}Jt.__reactDisabledLog=!0;function In(){{if(pe===0){Vt=console.log,qt=console.info,$t=console.warn,zt=console.error,Wt=console.group,Gt=console.groupCollapsed,Xt=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Jt,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}pe++}}function Mn(){{if(pe--,pe===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:te({},s,{value:Vt}),info:te({},s,{value:qt}),warn:te({},s,{value:$t}),error:te({},s,{value:zt}),group:te({},s,{value:Wt}),groupCollapsed:te({},s,{value:Gt}),groupEnd:te({},s,{value:Xt})})}pe<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ke=C.ReactCurrentDispatcher,Ze;function Re(s,h,v){{if(Ze===void 0)try{throw Error()}catch(A){var b=A.stack.trim().match(/\n( *(at )?)/);Ze=b&&b[1]||""}return`
`+Ze+s}}var Qe=!1,Oe;{var Bn=typeof WeakMap=="function"?WeakMap:Map;Oe=new Bn}function Yt(s,h){if(!s||Qe)return"";{var v=Oe.get(s);if(v!==void 0)return v}var b;Qe=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var P;P=Ke.current,Ke.current=null,In();try{if(h){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(V){b=V}Reflect.construct(s,[],R)}else{try{R.call()}catch(V){b=V}s.call(R.prototype)}}else{try{throw Error()}catch(V){b=V}s()}}catch(V){if(V&&b&&typeof V.stack=="string"){for(var _=V.stack.split(`
`),B=b.stack.split(`
`),k=_.length-1,D=B.length-1;k>=1&&D>=0&&_[k]!==B[D];)D--;for(;k>=1&&D>=0;k--,D--)if(_[k]!==B[D]){if(k!==1||D!==1)do if(k--,D--,D<0||_[k]!==B[D]){var G=`
`+_[k].replace(" at new "," at ");return s.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",s.displayName)),typeof s=="function"&&Oe.set(s,G),G}while(k>=1&&D>=0);break}}}finally{Qe=!1,Ke.current=P,Mn(),Error.prepareStackTrace=A}var ce=s?s.displayName||s.name:"",re=ce?Re(ce):"";return typeof s=="function"&&Oe.set(s,re),re}function Un(s,h,v){return Yt(s,!1)}function Hn(s){var h=s.prototype;return!!(h&&h.isReactComponent)}function Ce(s,h,v){if(s==null)return"";if(typeof s=="function")return Yt(s,Hn(s));if(typeof s=="string")return Re(s);switch(s){case u:return Re("Suspense");case c:return Re("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case f:return Un(s.render);case p:return Ce(s.type,h,v);case S:{var b=s,A=b._payload,P=b._init;try{return Ce(P(A),h,v)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,Kt={},Zt=C.ReactDebugCurrentFrame;function Ae(s){if(s){var h=s._owner,v=Ce(s.type,s._source,h?h.type:null);Zt.setExtraStackFrame(v)}else Zt.setExtraStackFrame(null)}function Vn(s,h,v,b,A){{var P=Function.call.bind(he);for(var R in s)if(P(s,R)){var _=void 0;try{if(typeof s[R]!="function"){var B=Error((b||"React class")+": "+v+" type `"+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[R]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw B.name="Invariant Violation",B}_=s[R](h,R,b,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){_=k}_&&!(_ instanceof Error)&&(Ae(A),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",b||"React class",v,R,typeof _),Ae(null)),_ instanceof Error&&!(_.message in Kt)&&(Kt[_.message]=!0,Ae(A),E("Failed %s type: %s",v,_.message),Ae(null))}}}var qn=Array.isArray;function et(s){return qn(s)}function $n(s){{var h=typeof Symbol=="function"&&Symbol.toStringTag,v=h&&s[Symbol.toStringTag]||s.constructor.name||"Object";return v}}function zn(s){try{return Qt(s),!1}catch{return!0}}function Qt(s){return""+s}function er(s){if(zn(s))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$n(s)),Qt(s)}var me=C.ReactCurrentOwner,Wn={key:!0,ref:!0,__self:!0,__source:!0},tr,rr,tt;tt={};function Gn(s){if(he.call(s,"ref")){var h=Object.getOwnPropertyDescriptor(s,"ref").get;if(h&&h.isReactWarning)return!1}return s.ref!==void 0}function Xn(s){if(he.call(s,"key")){var h=Object.getOwnPropertyDescriptor(s,"key").get;if(h&&h.isReactWarning)return!1}return s.key!==void 0}function Jn(s,h){if(typeof s.ref=="string"&&me.current&&h&&me.current.stateNode!==h){var v=Y(me.current.type);tt[v]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Y(me.current.type),s.ref),tt[v]=!0)}}function Yn(s,h){{var v=function(){tr||(tr=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",h))};v.isReactWarning=!0,Object.defineProperty(s,"key",{get:v,configurable:!0})}}function Kn(s,h){{var v=function(){rr||(rr=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",h))};v.isReactWarning=!0,Object.defineProperty(s,"ref",{get:v,configurable:!0})}}var Zn=function(s,h,v,b,A,P,R){var _={$$typeof:t,type:s,key:h,ref:v,props:R,_owner:P};return _._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_,"_self",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.defineProperty(_,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_};function Qn(s,h,v,b,A){{var P,R={},_=null,B=null;v!==void 0&&(er(v),_=""+v),Xn(h)&&(er(h.key),_=""+h.key),Gn(h)&&(B=h.ref,Jn(h,A));for(P in h)he.call(h,P)&&!Wn.hasOwnProperty(P)&&(R[P]=h[P]);if(s&&s.defaultProps){var k=s.defaultProps;for(P in k)R[P]===void 0&&(R[P]=k[P])}if(_||B){var D=typeof s=="function"?s.displayName||s.name||"Unknown":s;_&&Yn(R,D),B&&Kn(R,D)}return Zn(s,_,B,A,b,me.current,R)}}var rt=C.ReactCurrentOwner,nr=C.ReactDebugCurrentFrame;function le(s){if(s){var h=s._owner,v=Ce(s.type,s._source,h?h.type:null);nr.setExtraStackFrame(v)}else nr.setExtraStackFrame(null)}var nt;nt=!1;function it(s){return typeof s=="object"&&s!==null&&s.$$typeof===t}function ir(){{if(rt.current){var s=Y(rt.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}}function ei(s){return""}var or={};function ti(s){{var h=ir();if(!h){var v=typeof s=="string"?s:s.displayName||s.name;v&&(h=`
Check the top-level render call using <`+v+">.")}return h}}function ar(s,h){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var v=ti(h);if(or[v])return;or[v]=!0;var b="";s&&s._owner&&s._owner!==rt.current&&(b=" It was passed a child from "+Y(s._owner.type)+"."),le(s),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',v,b),le(null)}}function sr(s,h){{if(typeof s!="object")return;if(et(s))for(var v=0;v<s.length;v++){var b=s[v];it(b)&&ar(b,h)}else if(it(s))s._store&&(s._store.validated=!0);else if(s){var A=y(s);if(typeof A=="function"&&A!==s.entries)for(var P=A.call(s),R;!(R=P.next()).done;)it(R.value)&&ar(R.value,h)}}}function ri(s){{var h=s.type;if(h==null||typeof h=="string")return;var v;if(typeof h=="function")v=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===f||h.$$typeof===p))v=h.propTypes;else return;if(v){var b=Y(h);Vn(v,s.props,"prop",b,s)}else if(h.PropTypes!==void 0&&!nt){nt=!0;var A=Y(h);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ni(s){{for(var h=Object.keys(s.props),v=0;v<h.length;v++){var b=h[v];if(b!=="children"&&b!=="key"){le(s),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",b),le(null);break}}s.ref!==null&&(le(s),E("Invalid attribute `ref` supplied to `React.Fragment`."),le(null))}}var lr={};function cr(s,h,v,b,A,P){{var R=jn(s);if(!R){var _="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=ei();B?_+=B:_+=ir();var k;s===null?k="null":et(s)?k="array":s!==void 0&&s.$$typeof===t?(k="<"+(Y(s.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):k=typeof s,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,_)}var D=Qn(s,h,v,A,P);if(D==null)return D;if(R){var G=h.children;if(G!==void 0)if(b)if(et(G)){for(var ce=0;ce<G.length;ce++)sr(G[ce],s);Object.freeze&&Object.freeze(G)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else sr(G,s)}if(he.call(h,"key")){var re=Y(s),V=Object.keys(h).filter(function(ci){return ci!=="key"}),ot=V.length>0?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}";if(!lr[re+ot]){var li=V.length>0?"{"+V.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,ot,re,li,re),lr[re+ot]=!0}}return s===n?ni(D):ri(D),D}}function ii(s,h,v){return cr(s,h,v,!0)}function oi(s,h,v){return cr(s,h,v,!1)}var ai=oi,si=ii;ye.Fragment=n,ye.jsx=ai,ye.jsxs=si}()),ye}process.env.NODE_ENV==="production"?pt.exports=fi():pt.exports=di();var Hr=pt.exports,Vr={},_t={},Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.default=gi;var dr="html",pr="head",Pe="body",pi=/<([a-zA-Z]+[0-9]?)/,hr=/<head[^]*>/i,mr=/<body[^]*>/i,je=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},ht=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},gr=typeof window=="object"&&window.DOMParser;if(typeof gr=="function"){var hi=new gr,mi="text/html";ht=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),hi.parseFromString(e,mi)},je=ht}if(typeof document=="object"&&document.implementation){var xe=document.implementation.createHTMLDocument();je=function(e,t){if(t){var r=xe.documentElement.querySelector(t);return r&&(r.innerHTML=e),xe}return xe.documentElement.innerHTML=e,xe}}var ke=typeof document=="object"&&document.createElement("template"),mt;ke&&ke.content&&(mt=function(e){return ke.innerHTML=e,ke.content.childNodes});function gi(e){var t,r,n=e.match(pi),i=n&&n[1]?n[1].toLowerCase():"";switch(i){case dr:{var o=ht(e);if(!hr.test(e)){var a=o.querySelector(pr);(t=a==null?void 0:a.parentNode)===null||t===void 0||t.removeChild(a)}if(!mr.test(e)){var a=o.querySelector(Pe);(r=a==null?void 0:a.parentNode)===null||r===void 0||r.removeChild(a)}return o.querySelectorAll(dr)}case pr:case Pe:{var l=je(e).querySelectorAll(i);return mr.test(e)&&hr.test(e)?l[0].parentNode.childNodes:l}default:{if(mt)return mt(e);var a=je(e,Pe).querySelector(Pe);return a.childNodes}}}var Me={},Ot={},Ct={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Ct);var T={},Q=N&&N.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),be=N&&N.__assign||function(){return be=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},be.apply(this,arguments)};Object.defineProperty(T,"__esModule",{value:!0});T.cloneNode=T.hasChildren=T.isDocument=T.isDirective=T.isComment=T.isText=T.isCDATA=T.isTag=T.Element=T.Document=T.CDATA=T.NodeWithChildren=T.ProcessingInstruction=T.Comment=T.Text=T.DataNode=T.Node=void 0;var q=Ct,At=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),Pt(this,t)},e}();T.Node=At;var Be=function(e){Q(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(At);T.DataNode=Be;var qr=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=q.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(Be);T.Text=qr;var $r=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=q.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(Be);T.Comment=$r;var zr=function(e){Q(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=q.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(Be);T.ProcessingInstruction=zr;var Ue=function(e){Q(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(At);T.NodeWithChildren=Ue;var Wr=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=q.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(Ue);T.CDATA=Wr;var Gr=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=q.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(Ue);T.Document=Gr;var Xr=function(e){Q(t,e);function t(r,n,i,o){i===void 0&&(i=[]),o===void 0&&(o=r==="script"?q.ElementType.Script:r==="style"?q.ElementType.Style:q.ElementType.Tag);var a=e.call(this,i)||this;return a.name=r,a.attribs=n,a.type=o,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,o;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(o=r["x-attribsPrefix"])===null||o===void 0?void 0:o[n]}})},enumerable:!1,configurable:!0}),t}(Ue);T.Element=Xr;function Jr(e){return(0,q.isTag)(e)}T.isTag=Jr;function Yr(e){return e.type===q.ElementType.CDATA}T.isCDATA=Yr;function Kr(e){return e.type===q.ElementType.Text}T.isText=Kr;function Zr(e){return e.type===q.ElementType.Comment}T.isComment=Zr;function Qr(e){return e.type===q.ElementType.Directive}T.isDirective=Qr;function en(e){return e.type===q.ElementType.Root}T.isDocument=en;function yi(e){return Object.prototype.hasOwnProperty.call(e,"children")}T.hasChildren=yi;function Pt(e,t){t===void 0&&(t=!1);var r;if(Kr(e))r=new qr(e.data);else if(Zr(e))r=new $r(e.data);else if(Jr(e)){var n=t?at(e.children):[],i=new Xr(e.name,be({},e.attribs),n);n.forEach(function(f){return f.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=be({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=be({},e["x-attribsPrefix"])),r=i}else if(Yr(e)){var n=t?at(e.children):[],o=new Wr(n);n.forEach(function(u){return u.parent=o}),r=o}else if(en(e)){var n=t?at(e.children):[],a=new Gr(n);n.forEach(function(u){return u.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(Qr(e)){var l=new zr(e.name,e.data);e["x-name"]!=null&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}T.cloneNode=Pt;function at(e){for(var t=e.map(function(n){return Pt(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=N&&N.__createBinding||(Object.create?function(l,f,u,c){c===void 0&&(c=u);var p=Object.getOwnPropertyDescriptor(f,u);(!p||("get"in p?!f.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return f[u]}}),Object.defineProperty(l,c,p)}:function(l,f,u,c){c===void 0&&(c=u),l[c]=f[u]}),r=N&&N.__exportStar||function(l,f){for(var u in l)u!=="default"&&!Object.prototype.hasOwnProperty.call(f,u)&&t(f,l,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=Ct,i=T;r(T,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function l(f,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=o),typeof f=="object"&&(u=f,f=void 0),this.callback=f??null,this.options=u??o,this.elementCB=c??null}return l.prototype.onparserinit=function(f){this.parser=f},l.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(f){this.handleCallback(f)},l.prototype.onclosetag=function(){this.lastNode=null;var f=this.tagStack.pop();this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(f)},l.prototype.onopentag=function(f,u){var c=this.options.xmlMode?n.ElementType.Tag:void 0,p=new i.Element(f,u,void 0,c);this.addNode(p),this.tagStack.push(p)},l.prototype.ontext=function(f){var u=this.lastNode;if(u&&u.type===n.ElementType.Text)u.data+=f,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new i.Text(f);this.addNode(c),this.lastNode=c}},l.prototype.oncomment=function(f){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=f;return}var u=new i.Comment(f);this.addNode(u),this.lastNode=u},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var f=new i.Text(""),u=new i.CDATA([f]);this.addNode(u),f.parent=u,this.lastNode=f},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(f,u){var c=new i.ProcessingInstruction(f,u);this.addNode(c)},l.prototype.handleCallback=function(f){if(typeof this.callback=="function")this.callback(f,this.dom);else if(f)throw f},l.prototype.addNode=function(f){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(f.startIndex=this.parser.startIndex),this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),u.children.push(f),c&&(f.prev=c,c.next=f),f.parent=u,this.lastNode=null},l}();e.DomHandler=a,e.default=a})(Ot);var tn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{})})(tn);Object.defineProperty(Me,"__esModule",{value:!0});Me.formatAttributes=rn;Me.formatDOM=nn;var De=Ot,vi=tn;function Ei(e){return vi.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function rn(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}function bi(e){e=e.toLowerCase();var t=Ei(e);return t||e}function nn(e,t,r){t===void 0&&(t=null);for(var n=[],i,o=0,a=e.length;o<a;o++){var l=e[o];switch(l.nodeType){case 1:{var f=bi(l.nodeName);i=new De.Element(f,rn(l.attributes)),i.children=nn(f==="template"?l.content.childNodes:l.childNodes,i);break}case 3:i=new De.Text(l.nodeValue);break;case 8:i=new De.Comment(l.nodeValue);break;default:continue}var u=n[o-1]||null;u&&(u.next=i),i.parent=t,i.prev=u,i.next=null,n.push(i)}return r&&(i=new De.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),i.next=n[0]||null,i.parent=t,n.unshift(i),n[1]&&(n[1].prev=n[0])),n}var Si=N&&N.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_t,"__esModule",{value:!0});_t.default=Ri;var wi=Si(Rt),Ti=Me,_i=/<(![a-zA-Z\s]+)>/;function Ri(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(_i),r=t?t[1]:void 0;return(0,Ti.formatDOM)((0,wi.default)(e),null,r)}var He={},X={},Ve={},Oi=0;Ve.SAME=Oi;var Ci=1;Ve.CAMELCASE=Ci;Ve.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const on=0,ee=1,qe=2,$e=3,xt=4,an=5,sn=6;function Ai(e){return I.hasOwnProperty(e)?I[e]:null}function U(e,t,r,n,i,o,a){this.acceptsBooleans=t===qe||t===$e||t===xt,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}const I={},Pi=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Pi.forEach(e=>{I[e]=new U(e,on,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{I[e]=new U(e,ee,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{I[e]=new U(e,qe,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{I[e]=new U(e,qe,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{I[e]=new U(e,$e,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{I[e]=new U(e,$e,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{I[e]=new U(e,xt,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{I[e]=new U(e,sn,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{I[e]=new U(e,an,!1,e.toLowerCase(),null,!1,!1)});const kt=/[\-\:]([a-z])/g,Dt=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(kt,Dt);I[t]=new U(t,ee,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(kt,Dt);I[t]=new U(t,ee,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(kt,Dt);I[t]=new U(t,ee,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{I[e]=new U(e,ee,!1,e.toLowerCase(),null,!1,!1)});const xi="xlinkHref";I[xi]=new U("xlinkHref",ee,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{I[e]=new U(e,ee,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:ki,SAME:Di,possibleStandardNames:yr}=Ve,Ni=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Fi=Ni+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ji=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+Fi+"]*$")),Li=Object.keys(yr).reduce((e,t)=>{const r=yr[t];return r===Di?e[t]=t:r===ki?e[t.toLowerCase()]=t:e[t]=r,e},{});X.BOOLEAN=$e;X.BOOLEANISH_STRING=qe;X.NUMERIC=an;X.OVERLOADED_BOOLEAN=xt;X.POSITIVE_NUMERIC=sn;X.RESERVED=on;X.STRING=ee;X.getPropertyInfo=Ai;X.isCustomAttribute=ji;X.possibleStandardNames=Li;var Nt={},Ft={},vr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ii=/\n/g,Mi=/^\s*/,Bi=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ui=/^:\s*/,Hi=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Vi=/^[;\s]*/,qi=/^\s+|\s+$/g,$i=`
`,Er="/",br="*",ne="",zi="comment",Wi="declaration",Gi=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(m){var g=m.match(Ii);g&&(r+=g.length);var y=m.lastIndexOf($i);n=~y?m.length-y:n+m.length}function o(){var m={line:r,column:n};return function(g){return g.position=new a(m),u(),g}}function a(m){this.start=m,this.end={line:r,column:n},this.source=t.source}a.prototype.content=e;function l(m){var g=new Error(t.source+":"+r+":"+n+": "+m);if(g.reason=m,g.filename=t.source,g.line=r,g.column=n,g.source=e,!t.silent)throw g}function f(m){var g=m.exec(e);if(g){var y=g[0];return i(y),e=e.slice(y.length),g}}function u(){f(Mi)}function c(m){var g;for(m=m||[];g=p();)g!==!1&&m.push(g);return m}function p(){var m=o();if(!(Er!=e.charAt(0)||br!=e.charAt(1))){for(var g=2;ne!=e.charAt(g)&&(br!=e.charAt(g)||Er!=e.charAt(g+1));)++g;if(g+=2,ne===e.charAt(g-1))return l("End of comment missing");var y=e.slice(2,g-2);return n+=2,i(y),e=e.slice(g),n+=2,m({type:zi,comment:y})}}function S(){var m=o(),g=f(Bi);if(g){if(p(),!f(Ui))return l("property missing ':'");var y=f(Hi),C=m({type:Wi,property:Sr(g[0].replace(vr,ne)),value:y?Sr(y[0].replace(vr,ne)):ne});return f(Vi),C}}function O(){var m=[];c(m);for(var g;g=S();)g!==!1&&(m.push(g),c(m));return m}return u(),O()};function Sr(e){return e?e.replace(qi,ne):ne}var Xi=N&&N.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ft,"__esModule",{value:!0});var Ji=Xi(Gi);function Yi(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,Ji.default)(e),i=typeof t=="function";return n.forEach(function(o){if(o.type==="declaration"){var a=o.property,l=o.value;i?t(a,l,o):l&&(r=r||{},r[a]=l)}}),r}Ft.default=Yi;var ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.camelCase=void 0;var Ki=/^--[a-zA-Z0-9-]+$/,Zi=/-([a-z])/g,Qi=/^[^-]+$/,eo=/^-(webkit|moz|ms|o|khtml)-/,to=/^-(ms)-/,ro=function(e){return!e||Qi.test(e)||Ki.test(e)},no=function(e,t){return t.toUpperCase()},wr=function(e,t){return"".concat(t,"-")},io=function(e,t){return t===void 0&&(t={}),ro(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(to,wr):e=e.replace(eo,wr),e.replace(Zi,no))};ze.camelCase=io;var oo=N&&N.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ao=oo(Ft),so=ze;function gt(e,t){var r={};return!e||typeof e!="string"||(0,ao.default)(e,function(n,i){n&&i&&(r[(0,so.camelCase)(n,t)]=i)}),r}gt.default=gt;var lo=gt;(function(e){var t=N&&N.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=o,e.setStyleProp=l;var r=K,n=t(lo),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(c,p){return c.includes("-")?!i.has(c):!!(p&&typeof p.is=="string")}var a={reactCompat:!0};function l(c,p){if(typeof c=="string"){if(!c.trim()){p.style={};return}try{p.style=(0,n.default)(c,a)}catch{p.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var f=function(c){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(c.name)};e.canTextBeChildOfNode=f;var u=function(c){return c};e.returnFirstArg=u})(Nt);Object.defineProperty(He,"__esModule",{value:!0});He.default=po;var Ee=X,Tr=Nt,co=["checked","value"],uo=["input","select","textarea"],fo={reset:!0,submit:!0};function po(e,t){e===void 0&&(e={});var r={},n=!!(e.type&&fo[e.type]);for(var i in e){var o=e[i];if((0,Ee.isCustomAttribute)(i)){r[i]=o;continue}var a=i.toLowerCase(),l=_r(a);if(l){var f=(0,Ee.getPropertyInfo)(l);switch(co.includes(l)&&uo.includes(t)&&!n&&(l=_r("default"+a)),r[l]=o,f&&f.type){case Ee.BOOLEAN:r[l]=!0;break;case Ee.OVERLOADED_BOOLEAN:o===""&&(r[l]=!0);break}continue}Tr.PRESERVE_CUSTOM_ATTRIBUTES&&(r[i]=o)}return(0,Tr.setStyleProp)(e.style,r),r}function _r(e){return Ee.possibleStandardNames[e]}var jt={},ho=N&&N.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jt,"__esModule",{value:!0});jt.default=ln;var st=K,mo=ho(He),Se=Nt,go={cloneElement:st.cloneElement,createElement:st.createElement,isValidElement:st.isValidElement};function ln(e,t){t===void 0&&(t={});for(var r=[],n=typeof t.replace=="function",i=t.transform||Se.returnFirstArg,o=t.library||go,a=o.cloneElement,l=o.createElement,f=o.isValidElement,u=e.length,c=0;c<u;c++){var p=e[c];if(n){var S=t.replace(p,c);if(f(S)){u>1&&(S=a(S,{key:S.key||c})),r.push(i(S,p,c));continue}}if(p.type==="text"){var O=!p.data.trim().length;if(O&&p.parent&&!(0,Se.canTextBeChildOfNode)(p.parent)||t.trim&&O)continue;r.push(i(p.data,p,c));continue}var m=p,g={};yo(m)?((0,Se.setStyleProp)(m.attribs.style,m.attribs),g=m.attribs):m.attribs&&(g=(0,mo.default)(m.attribs,m.name));var y=void 0;switch(p.type){case"script":case"style":p.children[0]&&(g.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?g.defaultValue=p.children[0].data:p.children&&p.children.length&&(y=ln(p.children,t));break;default:continue}u>1&&(g.key=c),r.push(i(l(p.name,g,y),p,c))}return r.length===1?r[0]:r}function yo(e){return Se.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,Se.isCustomComponent)(e.name,e.attribs)}(function(e){var t=N&&N.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=l;var r=t(_t);e.htmlToDOM=r.default;var n=t(He);e.attributesToProps=n.default;var i=t(jt);e.domToReact=i.default;var o=Ot;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return o.Text}});var a={lowerCaseAttributeNames:!1};function l(f,u){if(typeof f!="string")throw new TypeError("First argument must be a string");return f?(0,i.default)((0,r.default)(f,(u==null?void 0:u.htmlparser2)||a),u):[]}})(Vr);const Rr=ui(Vr),vo=Rr.default||Rr;function cn(e,t){return function(){return e.apply(t,arguments)}}const{toString:Eo}=Object.prototype,{getPrototypeOf:Lt}=Object,We=(e=>t=>{const r=Eo.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),J=e=>(e=e.toLowerCase(),t=>We(t)===e),Ge=e=>t=>typeof t===e,{isArray:ue}=Array,we=Ge("undefined");function bo(e){return e!==null&&!we(e)&&e.constructor!==null&&!we(e.constructor)&&W(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const un=J("ArrayBuffer");function So(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&un(e.buffer),t}const wo=Ge("string"),W=Ge("function"),fn=Ge("number"),Xe=e=>e!==null&&typeof e=="object",To=e=>e===!0||e===!1,Ne=e=>{if(We(e)!=="object")return!1;const t=Lt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_o=J("Date"),Ro=J("File"),Oo=J("Blob"),Co=J("FileList"),Ao=e=>Xe(e)&&W(e.pipe),Po=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||W(e.append)&&((t=We(e))==="formdata"||t==="object"&&W(e.toString)&&e.toString()==="[object FormData]"))},xo=J("URLSearchParams"),[ko,Do,No,Fo]=["ReadableStream","Request","Response","Headers"].map(J),jo=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Te(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ue(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let l;for(n=0;n<a;n++)l=o[n],t.call(null,e[l],l,e)}}function dn(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const ie=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,pn=e=>!we(e)&&e!==ie;function yt(){const{caseless:e}=pn(this)&&this||{},t={},r=(n,i)=>{const o=e&&dn(t,i)||i;Ne(t[o])&&Ne(n)?t[o]=yt(t[o],n):Ne(n)?t[o]=yt({},n):ue(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Te(arguments[n],r);return t}const Lo=(e,t,r,{allOwnKeys:n}={})=>(Te(t,(i,o)=>{r&&W(i)?e[o]=cn(i,r):e[o]=i},{allOwnKeys:n}),e),Io=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mo=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Bo=(e,t,r,n)=>{let i,o,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=r!==!1&&Lt(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Uo=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Ho=e=>{if(!e)return null;if(ue(e))return e;let t=e.length;if(!fn(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Vo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lt(Uint8Array)),qo=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},$o=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},zo=J("HTMLFormElement"),Wo=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),Or=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Go=J("RegExp"),hn=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Te(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},Xo=e=>{hn(e,(t,r)=>{if(W(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(W(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jo=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return ue(e)?n(e):n(String(e).split(t)),r},Yo=()=>{},Ko=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,lt="abcdefghijklmnopqrstuvwxyz",Cr="0123456789",mn={DIGIT:Cr,ALPHA:lt,ALPHA_DIGIT:lt+lt.toUpperCase()+Cr},Zo=(e=16,t=mn.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Qo(e){return!!(e&&